bloom-player 2.22.0-alpha.1 → 2.22.0
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
function On(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Uv(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function a(){var r=!1;try{r=this instanceof a}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}),n}var xd={exports:{}},De={};var Sd,Og;function kh(){if(Og)return Sd;Og=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function a(l){if(l==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(l)}function r(){try{if(!Object.assign)return!1;var l=new String("abc");if(l[5]="de",Object.getOwnPropertyNames(l)[0]==="5")return!1;for(var d={},f=0;f<10;f++)d["_"+String.fromCharCode(f)]=f;var p=Object.getOwnPropertyNames(d).map(function(k){return d[k]});if(p.join("")!=="0123456789")return!1;var y={};return"abcdefghijklmnopqrst".split("").forEach(function(k){y[k]=k}),Object.keys(Object.assign({},y)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Sd=r()?Object.assign:function(l,d){for(var f,p=a(l),y,k=1;k<arguments.length;k++){f=Object(arguments[k]);for(var E in f)t.call(f,E)&&(p[E]=f[E]);if(e){y=e(f);for(var N=0;N<y.length;N++)n.call(f,y[N])&&(p[y[N]]=f[y[N]])}}return p},Sd}var Kg;function Aw(){if(Kg)return De;Kg=1;var e=kh(),t=60103,n=60106;De.Fragment=60107,De.StrictMode=60108,De.Profiler=60114;var a=60109,r=60110,l=60112;De.Suspense=60113;var d=60115,f=60116;if(typeof Symbol=="function"&&Symbol.for){var p=Symbol.for;t=p("react.element"),n=p("react.portal"),De.Fragment=p("react.fragment"),De.StrictMode=p("react.strict_mode"),De.Profiler=p("react.profiler"),a=p("react.provider"),r=p("react.context"),l=p("react.forward_ref"),De.Suspense=p("react.suspense"),d=p("react.memo"),f=p("react.lazy")}var y=typeof Symbol=="function"&&Symbol.iterator;function k(x){return x===null||typeof x!="object"?null:(x=y&&x[y]||x["@@iterator"],typeof x=="function"?x:null)}function E(x){for(var lt="https://reactjs.org/docs/error-decoder.html?invariant="+x,bt=1;bt<arguments.length;bt++)lt+="&args[]="+encodeURIComponent(arguments[bt]);return"Minified React error #"+x+"; visit "+lt+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},I={};function L(x,lt,bt){this.props=x,this.context=lt,this.refs=I,this.updater=bt||N}L.prototype.isReactComponent={},L.prototype.setState=function(x,lt){if(typeof x!="object"&&typeof x!="function"&&x!=null)throw Error(E(85));this.updater.enqueueSetState(this,x,lt,"setState")},L.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function K(){}K.prototype=L.prototype;function J(x,lt,bt){this.props=x,this.context=lt,this.refs=I,this.updater=bt||N}var F=J.prototype=new K;F.constructor=J,e(F,L.prototype),F.isPureReactComponent=!0;var G={current:null},ot=Object.prototype.hasOwnProperty,dt={key:!0,ref:!0,__self:!0,__source:!0};function _(x,lt,bt){var St,O={},wt=null,xt=null;if(lt!=null)for(St in lt.ref!==void 0&&(xt=lt.ref),lt.key!==void 0&&(wt=""+lt.key),lt)ot.call(lt,St)&&!dt.hasOwnProperty(St)&&(O[St]=lt[St]);var Ot=arguments.length-2;if(Ot===1)O.children=bt;else if(1<Ot){for(var Mt=Array(Ot),Ht=0;Ht<Ot;Ht++)Mt[Ht]=arguments[Ht+2];O.children=Mt}if(x&&x.defaultProps)for(St in Ot=x.defaultProps,Ot)O[St]===void 0&&(O[St]=Ot[St]);return{$$typeof:t,type:x,key:wt,ref:xt,props:O,_owner:G.current}}function $(x,lt){return{$$typeof:t,type:x.type,key:lt,ref:x.ref,props:x.props,_owner:x._owner}}function v(x){return typeof x=="object"&&x!==null&&x.$$typeof===t}function mt(x){var lt={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(bt){return lt[bt]})}var ft=/\/+/g;function Lt(x,lt){return typeof x=="object"&&x!==null&&x.key!=null?mt(""+x.key):lt.toString(36)}function Nt(x,lt,bt,St,O){var wt=typeof x;(wt==="undefined"||wt==="boolean")&&(x=null);var xt=!1;if(x===null)xt=!0;else switch(wt){case"string":case"number":xt=!0;break;case"object":switch(x.$$typeof){case t:case n:xt=!0}}if(xt)return xt=x,O=O(xt),x=St===""?"."+Lt(xt,0):St,Array.isArray(O)?(bt="",x!=null&&(bt=x.replace(ft,"$&/")+"/"),Nt(O,lt,bt,"",function(Ht){return Ht})):O!=null&&(v(O)&&(O=$(O,bt+(!O.key||xt&&xt.key===O.key?"":(""+O.key).replace(ft,"$&/")+"/")+x)),lt.push(O)),1;if(xt=0,St=St===""?".":St+":",Array.isArray(x))for(var Ot=0;Ot<x.length;Ot++){wt=x[Ot];var Mt=St+Lt(wt,Ot);xt+=Nt(wt,lt,bt,Mt,O)}else if(Mt=k(x),typeof Mt=="function")for(x=Mt.call(x),Ot=0;!(wt=x.next()).done;)wt=wt.value,Mt=St+Lt(wt,Ot++),xt+=Nt(wt,lt,bt,Mt,O);else if(wt==="object")throw lt=""+x,Error(E(31,lt==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":lt));return xt}function At(x,lt,bt){if(x==null)return x;var St=[],O=0;return Nt(x,St,"","",function(wt){return lt.call(bt,wt,O++)}),St}function tt(x){if(x._status===-1){var lt=x._result;lt=lt(),x._status=0,x._result=lt,lt.then(function(bt){x._status===0&&(bt=bt.default,x._status=1,x._result=bt)},function(bt){x._status===0&&(x._status=2,x._result=bt)})}if(x._status===1)return x._result;throw x._result}var H={current:null};function s(){var x=H.current;if(x===null)throw Error(E(321));return x}var ht={ReactCurrentDispatcher:H,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:G,IsSomeRendererActing:{current:!1},assign:e};return De.Children={map:At,forEach:function(x,lt,bt){At(x,function(){lt.apply(this,arguments)},bt)},count:function(x){var lt=0;return At(x,function(){lt++}),lt},toArray:function(x){return At(x,function(lt){return lt})||[]},only:function(x){if(!v(x))throw Error(E(143));return x}},De.Component=L,De.PureComponent=J,De.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ht,De.cloneElement=function(x,lt,bt){if(x==null)throw Error(E(267,x));var St=e({},x.props),O=x.key,wt=x.ref,xt=x._owner;if(lt!=null){if(lt.ref!==void 0&&(wt=lt.ref,xt=G.current),lt.key!==void 0&&(O=""+lt.key),x.type&&x.type.defaultProps)var Ot=x.type.defaultProps;for(Mt in lt)ot.call(lt,Mt)&&!dt.hasOwnProperty(Mt)&&(St[Mt]=lt[Mt]===void 0&&Ot!==void 0?Ot[Mt]:lt[Mt])}var Mt=arguments.length-2;if(Mt===1)St.children=bt;else if(1<Mt){Ot=Array(Mt);for(var Ht=0;Ht<Mt;Ht++)Ot[Ht]=arguments[Ht+2];St.children=Ot}return{$$typeof:t,type:x.type,key:O,ref:wt,props:St,_owner:xt}},De.createContext=function(x,lt){return lt===void 0&&(lt=null),x={$$typeof:r,_calculateChangedBits:lt,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider={$$typeof:a,_context:x},x.Consumer=x},De.createElement=_,De.createFactory=function(x){var lt=_.bind(null,x);return lt.type=x,lt},De.createRef=function(){return{current:null}},De.forwardRef=function(x){return{$$typeof:l,render:x}},De.isValidElement=v,De.lazy=function(x){return{$$typeof:f,_payload:{_status:-1,_result:x},_init:tt}},De.memo=function(x,lt){return{$$typeof:d,type:x,compare:lt===void 0?null:lt}},De.useCallback=function(x,lt){return s().useCallback(x,lt)},De.useContext=function(x,lt){return s().useContext(x,lt)},De.useDebugValue=function(){},De.useEffect=function(x,lt){return s().useEffect(x,lt)},De.useImperativeHandle=function(x,lt,bt){return s().useImperativeHandle(x,lt,bt)},De.useLayoutEffect=function(x,lt){return s().useLayoutEffect(x,lt)},De.useMemo=function(x,lt){return s().useMemo(x,lt)},De.useReducer=function(x,lt,bt){return s().useReducer(x,lt,bt)},De.useRef=function(x){return s().useRef(x)},De.useState=function(x){return s().useState(x)},De.version="17.0.2",De}var qg;function sa(){return qg||(qg=1,xd.exports=Aw()),xd.exports}var R=sa();const Rt=On(R);var To={},fi={};function $g(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function xh(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(function(n){typeof e[n]>"u"?e[n]=t[n]:$g(t[n])&&$g(e[n])&&Object.keys(t[n]).length>0&&xh(e[n],t[n])})}var Ya=typeof document<"u"?document:{},Yv={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:""}};xh(Ya,Yv);var Xa=typeof window<"u"?window:{},Nw={document:Yv,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{}}};xh(Xa,Nw);class We{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 jt(e,t){const n=[];let a=0;if(e&&!t&&e instanceof We)return e;if(e){if(typeof e=="string"){let r,l;const d=e.trim();if(d.indexOf("<")>=0&&d.indexOf(">")>=0){let f="div";for(d.indexOf("<li")===0&&(f="ul"),d.indexOf("<tr")===0&&(f="tbody"),(d.indexOf("<td")===0||d.indexOf("<th")===0)&&(f="tr"),d.indexOf("<tbody")===0&&(f="table"),d.indexOf("<option")===0&&(f="select"),l=Ya.createElement(f),l.innerHTML=d,a=0;a<l.childNodes.length;a+=1)n.push(l.childNodes[a])}else for(!t&&e[0]==="#"&&!e.match(/[ .<>:~]/)?r=[Ya.getElementById(e.trim().split("#")[1])]:r=(t||Ya).querySelectorAll(e.trim()),a=0;a<r.length;a+=1)r[a]&&n.push(r[a])}else if(e.nodeType||e===Xa||e===Ya)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 We(n)}jt.fn=We.prototype;jt.Class=We;jt.Dom7=We;function Sh(e){const t=[];for(let n=0;n<e.length;n+=1)t.indexOf(e[n])===-1&&t.push(e[n]);return t}function Lw(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 Bw(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 zw(e){return this[0]?this[0].classList.contains(e):!1}function Iw(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 Dw(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 Rw(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function jw(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 Ow(e){for(let t=0;t<this.length;t+=1){const n=this[t].style;n.webkitTransform=e,n.transform=e}return this}function Kw(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 qw(...e){let[t,n,a,r]=e;typeof e[1]=="function"&&([t,a,r]=e,n=void 0),r||(r=!1);function l(y){const k=y.target;if(!k)return;const E=y.target.dom7EventData||[];if(E.indexOf(y)<0&&E.unshift(y),jt(k).is(n))a.apply(k,E);else{const N=jt(k).parents();for(let I=0;I<N.length;I+=1)jt(N[I]).is(n)&&a.apply(N[I],E)}}function d(y){const k=y&&y.target?y.target.dom7EventData||[]:[];k.indexOf(y)<0&&k.unshift(y),a.apply(this,k)}const f=t.split(" ");let p;for(let y=0;y<this.length;y+=1){const k=this[y];if(n)for(p=0;p<f.length;p+=1){const E=f[p];k.dom7LiveListeners||(k.dom7LiveListeners={}),k.dom7LiveListeners[E]||(k.dom7LiveListeners[E]=[]),k.dom7LiveListeners[E].push({listener:a,proxyListener:l}),k.addEventListener(E,l,r)}else for(p=0;p<f.length;p+=1){const E=f[p];k.dom7Listeners||(k.dom7Listeners={}),k.dom7Listeners[E]||(k.dom7Listeners[E]=[]),k.dom7Listeners[E].push({listener:a,proxyListener:d}),k.addEventListener(E,d,r)}}return this}function $w(...e){let[t,n,a,r]=e;typeof e[1]=="function"&&([t,a,r]=e,n=void 0),r||(r=!1);const l=t.split(" ");for(let d=0;d<l.length;d+=1){const f=l[d];for(let p=0;p<this.length;p+=1){const y=this[p];let k;if(!n&&y.dom7Listeners?k=y.dom7Listeners[f]:n&&y.dom7LiveListeners&&(k=y.dom7LiveListeners[f]),k&&k.length)for(let E=k.length-1;E>=0;E-=1){const N=k[E];a&&N.listener===a||a&&N.listener&&N.listener.dom7proxy&&N.listener.dom7proxy===a?(y.removeEventListener(f,N.proxyListener,r),k.splice(E,1)):a||(y.removeEventListener(f,N.proxyListener,r),k.splice(E,1))}}}return this}function Hw(...e){const t=e[0].split(" "),n=e[1];for(let a=0;a<t.length;a+=1){const r=t[a];for(let l=0;l<this.length;l+=1){const d=this[l];let f;try{f=new Xa.CustomEvent(r,{detail:n,bubbles:!0,cancelable:!0})}catch{f=Ya.createEvent("Event"),f.initEvent(r,!0,!0),f.detail=n}d.dom7EventData=e.filter((p,y)=>y>0),d.dispatchEvent(f),d.dom7EventData=[],delete d.dom7EventData}}return this}function Fw(e){const t=["webkitTransitionEnd","transitionend"],n=this;let a;function r(l){if(l.target===this)for(e.call(this,l),a=0;a<t.length;a+=1)n.off(t[a],r)}if(e)for(a=0;a<t.length;a+=1)n.on(t[a],r);return this}function Ww(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 _w(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 Vw(){if(this.length>0){const e=this[0],t=e.getBoundingClientRect(),n=Ya.body,a=e.clientTop||n.clientTop||0,r=e.clientLeft||n.clientLeft||0,l=e===Xa?Xa.scrollY:e.scrollTop,d=e===Xa?Xa.scrollX:e.scrollLeft;return{top:t.top+l-a,left:t.left+d-r}}return null}function Gw(){return this[0]?Xa.getComputedStyle(this[0],null):{}}function Uw(e,t){let n;if(arguments.length===1)if(typeof e=="string"){if(this[0])return Xa.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 Yw(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 Xw(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 Zw(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 Jw(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=jt(e),a=0;a<n.length;a+=1)if(n[a]===t)return!0;return!1}else{if(e===Ya)return t===Ya;if(e===Xa)return t===Xa}if(e.nodeType||e instanceof We){for(n=e.nodeType?[e]:e,a=0;a<n.length;a+=1)if(n[a]===t)return!0;return!1}return!1}function Qw(){let e=this[0],t;if(e){for(t=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(t+=1);return t}}function tk(e){if(typeof e>"u")return this;const t=this.length;let n;return e>t-1?new We([]):e<0?(n=t+e,n<0?new We([]):new We([this[n]])):new We([this[e]])}function ek(...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 r=Ya.createElement("div");for(r.innerHTML=t;r.firstChild;)this[a].appendChild(r.firstChild)}else if(t instanceof We)for(let r=0;r<t.length;r+=1)this[a].appendChild(t[r]);else this[a].appendChild(t)}return this}function nk(e){let t,n;for(t=0;t<this.length;t+=1)if(typeof e=="string"){const a=Ya.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 We)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 ak(e){return this.length>0?e?this[0].nextElementSibling&&jt(this[0].nextElementSibling).is(e)?new We([this[0].nextElementSibling]):new We([]):this[0].nextElementSibling?new We([this[0].nextElementSibling]):new We([]):new We([])}function ik(e){const t=[];let n=this[0];if(!n)return new We([]);for(;n.nextElementSibling;){const a=n.nextElementSibling;e?jt(a).is(e)&&t.push(a):t.push(a),n=a}return new We(t)}function rk(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&jt(t.previousElementSibling).is(e)?new We([t.previousElementSibling]):new We([]):t.previousElementSibling?new We([t.previousElementSibling]):new We([])}return new We([])}function ok(e){const t=[];let n=this[0];if(!n)return new We([]);for(;n.previousElementSibling;){const a=n.previousElementSibling;e?jt(a).is(e)&&t.push(a):t.push(a),n=a}return new We(t)}function sk(e){const t=[];for(let n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?jt(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return jt(Sh(t))}function lk(e){const t=[];for(let n=0;n<this.length;n+=1){let a=this[n].parentNode;for(;a;)e?jt(a).is(e)&&t.push(a):t.push(a),a=a.parentNode}return jt(Sh(t))}function uk(e){let t=this;return typeof e>"u"?new We([]):(t.is(e)||(t=t.parents(e).eq(0)),t)}function ck(e){const t=[];for(let n=0;n<this.length;n+=1){const a=this[n].querySelectorAll(e);for(let r=0;r<a.length;r+=1)t.push(a[r])}return new We(t)}function dk(e){const t=[];for(let n=0;n<this.length;n+=1){const a=this[n].childNodes;for(let r=0;r<a.length;r+=1)e?a[r].nodeType===1&&jt(a[r]).is(e)&&t.push(a[r]):a[r].nodeType===1&&t.push(a[r])}return new We(Sh(t))}function fk(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function hk(...e){const t=this;let n,a;for(n=0;n<e.length;n+=1){const r=jt(e[n]);for(a=0;a<r.length;a+=1)t[t.length]=r[a],t.length+=1}return t}var Ee=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,Wt=typeof window>"u"?{document:Ee,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 Hg={addClass:Lw,removeClass:Bw,hasClass:zw,toggleClass:Iw,attr:Dw,removeAttr:Rw,data:jw,transform:Ow,transition:Kw,on:qw,off:$w,trigger:Hw,transitionEnd:Fw,outerWidth:Ww,outerHeight:_w,offset:Vw,css:Uw,each:Yw,html:Xw,text:Zw,is:Jw,index:Qw,eq:tk,append:ek,prepend:nk,next:ak,nextAll:ik,prev:rk,prevAll:ok,parent:sk,parents:lk,closest:uk,find:ck,children:dk,remove:fk,add:hk,styles:Gw};Object.keys(Hg).forEach(e=>{jt.fn[e]=jt.fn[e]||Hg[e]});const It={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,r;const l=Wt.getComputedStyle(e,null);return Wt.WebKitCSSMatrix?(a=l.transform||l.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(d=>d.replace(",",".")).join(", ")),r=new Wt.WebKitCSSMatrix(a==="none"?"":a)):(r=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=r.toString().split(",")),t==="x"&&(Wt.WebKitCSSMatrix?a=r.m41:n.length===16?a=parseFloat(n[12]):a=parseFloat(n[4])),t==="y"&&(Wt.WebKitCSSMatrix?a=r.m42:n.length===16?a=parseFloat(n[13]):a=parseFloat(n[5])),a||0},parseUrlQuery(e){const t={};let n=e||Wt.location.href,a,r,l,d;if(typeof n=="string"&&n.length)for(n=n.indexOf("?")>-1?n.replace(/\S*\?/,""):"",r=n.split("&").filter(f=>f!==""),d=r.length,a=0;a<d;a+=1)l=r[a].replace(/#\S+/g,"").split("="),t[decodeURIComponent(l[0])]=typeof l[1]>"u"?void 0:decodeURIComponent(l[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 r=Object.keys(Object(a));for(let l=0,d=r.length;l<d;l+=1){const f=r[l],p=Object.getOwnPropertyDescriptor(a,f);p!==void 0&&p.enumerable&&(It.isObject(t[f])&&It.isObject(a[f])?It.extend(t[f],a[f]):!It.isObject(t[f])&&It.isObject(a[f])?(t[f]={},It.extend(t[f],a[f])):t[f]=a[f])}}}return t}},ae=(function(){const t=Ee.createElement("div");return{touch:Wt.Modernizr&&Wt.Modernizr.touch===!0||(function(){return!!(Wt.navigator.maxTouchPoints>0||"ontouchstart"in Wt||Wt.DocumentTouch&&Ee instanceof Wt.DocumentTouch)})(),pointerEvents:!!(Wt.navigator.pointerEnabled||Wt.PointerEvent||"maxTouchPoints"in Wt.navigator&&Wt.navigator.maxTouchPoints>0),prefixedPointerEvents:!!Wt.navigator.msPointerEnabled,transition:(function(){const a=t.style;return"transition"in a||"webkitTransition"in a||"MozTransition"in a})(),transforms3d:Wt.Modernizr&&Wt.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,r="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" ");for(let l=0;l<r.length;l+=1)if(r[l]in a)return!0;return!1})(),observer:(function(){return"MutationObserver"in Wt||"WebkitMutationObserver"in Wt})(),passiveListener:(function(){let a=!1;try{const r=Object.defineProperty({},"passive",{get(){a=!0}});Wt.addEventListener("testPassiveListener",null,r)}catch{}return a})(),gestures:(function(){return"ongesturestart"in Wt})()}})(),yi=(function(){function t(){const n=Wt.navigator.userAgent.toLowerCase();return n.indexOf("safari")>=0&&n.indexOf("chrome")<0&&n.indexOf("android")<0}return{isIE:!!Wt.navigator.userAgent.match(/Trident/g)||!!Wt.navigator.userAgent.match(/MSIE/g),isEdge:!!Wt.navigator.userAgent.match(/Edge/g),isSafari:t(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(Wt.navigator.userAgent)}})();class Fg{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 r=this;if(typeof n!="function")return r;const l=a?"unshift":"push";return t.split(" ").forEach(d=>{r.eventsListeners[d]||(r.eventsListeners[d]=[]),r.eventsListeners[d][l](n)}),r}once(t,n,a){const r=this;if(typeof n!="function")return r;function l(...d){n.apply(r,d),r.off(t,l),l.f7proxy&&delete l.f7proxy}return l.f7proxy=n,r.on(t,l,a)}off(t,n){const a=this;return a.eventsListeners&&t.split(" ").forEach(r=>{typeof n>"u"?a.eventsListeners[r]=[]:a.eventsListeners[r]&&a.eventsListeners[r].length&&a.eventsListeners[r].forEach((l,d)=>{(l===n||l.f7proxy&&l.f7proxy===n)&&a.eventsListeners[r].splice(d,1)})}),a}emit(...t){const n=this;if(!n.eventsListeners)return n;let a,r,l;return typeof t[0]=="string"||Array.isArray(t[0])?(a=t[0],r=t.slice(1,t.length),l=n):(a=t[0].events,r=t[0].data,l=t[0].context||n),(Array.isArray(a)?a:a.split(" ")).forEach(f=>{if(n.eventsListeners&&n.eventsListeners[f]){const p=[];n.eventsListeners[f].forEach(y=>{p.push(y)}),p.forEach(y=>{y.apply(l,r)})}}),n}useModulesParams(t){const n=this;n.modules&&Object.keys(n.modules).forEach(a=>{const r=n.modules[a];r.params&&It.extend(t,r.params)})}useModules(t={}){const n=this;n.modules&&Object.keys(n.modules).forEach(a=>{const r=n.modules[a],l=t[a]||{};r.instance&&Object.keys(r.instance).forEach(d=>{const f=r.instance[d];typeof f=="function"?n[d]=f.bind(n):n[d]=f}),r.on&&n.on&&Object.keys(r.on).forEach(d=>{n.on(d,r.on[d])}),r.create&&r.create.bind(n)(l)})}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 r=t.name||`${Object.keys(a.prototype.modules).length}_${It.now()}`;return a.prototype.modules[r]=t,t.proto&&Object.keys(t.proto).forEach(l=>{a.prototype[l]=t.proto[l]}),t.static&&Object.keys(t.static).forEach(l=>{a[l]=t.static[l]}),t.install&&t.install.apply(a,n),a}static use(t,...n){const a=this;return Array.isArray(t)?(t.forEach(r=>a.installModule(r)),a):a.installModule(t,...n)}}function pk(){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),It.extend(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function gk(){const e=this,t=e.params,{$wrapperEl:n,size:a,rtlTranslate:r,wrongRTL:l}=e,d=e.virtual&&t.virtual.enabled,f=d?e.virtual.slides.length:e.slides.length,p=n.children(`.${e.params.slideClass}`),y=d?e.virtual.slides.length:p.length;let k=[];const E=[],N=[];let I=t.slidesOffsetBefore;typeof I=="function"&&(I=t.slidesOffsetBefore.call(e));let L=t.slidesOffsetAfter;typeof L=="function"&&(L=t.slidesOffsetAfter.call(e));const K=e.snapGrid.length,J=e.snapGrid.length;let F=t.spaceBetween,G=-I,ot=0,dt=0;if(typeof a>"u")return;typeof F=="string"&&F.indexOf("%")>=0&&(F=parseFloat(F.replace("%",""))/100*a),e.virtualSize=-F,r?p.css({marginLeft:"",marginTop:""}):p.css({marginRight:"",marginBottom:""});let _;t.slidesPerColumn>1&&(Math.floor(y/t.slidesPerColumn)===y/e.params.slidesPerColumn?_=y:_=Math.ceil(y/t.slidesPerColumn)*t.slidesPerColumn,t.slidesPerView!=="auto"&&t.slidesPerColumnFill==="row"&&(_=Math.max(_,t.slidesPerView*t.slidesPerColumn)));let $;const v=t.slidesPerColumn,mt=_/v,ft=Math.floor(y/t.slidesPerColumn);for(let Nt=0;Nt<y;Nt+=1){$=0;const At=p.eq(Nt);if(t.slidesPerColumn>1){let tt,H,s;if(t.slidesPerColumnFill==="column"||t.slidesPerColumnFill==="row"&&t.slidesPerGroup>1){if(t.slidesPerColumnFill==="column")H=Math.floor(Nt/v),s=Nt-H*v,(H>ft||H===ft&&s===v-1)&&(s+=1,s>=v&&(s=0,H+=1));else{const ht=Math.floor(Nt/t.slidesPerGroup);s=Math.floor(Nt/t.slidesPerView)-ht*t.slidesPerColumn,H=Nt-s*t.slidesPerView-ht*t.slidesPerView}tt=H+s*_/v,At.css({"-webkit-box-ordinal-group":tt,"-moz-box-ordinal-group":tt,"-ms-flex-order":tt,"-webkit-order":tt,order:tt})}else s=Math.floor(Nt/mt),H=Nt-s*mt;At.css(`margin-${e.isHorizontal()?"top":"left"}`,s!==0&&t.spaceBetween&&`${t.spaceBetween}px`).attr("data-swiper-column",H).attr("data-swiper-row",s)}if(At.css("display")!=="none"){if(t.slidesPerView==="auto"){const tt=Wt.getComputedStyle(At[0],null),H=At[0].style.transform,s=At[0].style.webkitTransform;if(H&&(At[0].style.transform="none"),s&&(At[0].style.webkitTransform="none"),t.roundLengths)$=e.isHorizontal()?At.outerWidth(!0):At.outerHeight(!0);else if(e.isHorizontal()){const ht=parseFloat(tt.getPropertyValue("width")),x=parseFloat(tt.getPropertyValue("padding-left")),lt=parseFloat(tt.getPropertyValue("padding-right")),bt=parseFloat(tt.getPropertyValue("margin-left")),St=parseFloat(tt.getPropertyValue("margin-right")),O=tt.getPropertyValue("box-sizing");O&&O==="border-box"&&!yi.isIE?$=ht+bt+St:$=ht+x+lt+bt+St}else{const ht=parseFloat(tt.getPropertyValue("height")),x=parseFloat(tt.getPropertyValue("padding-top")),lt=parseFloat(tt.getPropertyValue("padding-bottom")),bt=parseFloat(tt.getPropertyValue("margin-top")),St=parseFloat(tt.getPropertyValue("margin-bottom")),O=tt.getPropertyValue("box-sizing");O&&O==="border-box"&&!yi.isIE?$=ht+bt+St:$=ht+x+lt+bt+St}H&&(At[0].style.transform=H),s&&(At[0].style.webkitTransform=s),t.roundLengths&&($=Math.floor($))}else $=(a-(t.slidesPerView-1)*F)/t.slidesPerView,t.roundLengths&&($=Math.floor($)),p[Nt]&&(e.isHorizontal()?p[Nt].style.width=`${$}px`:p[Nt].style.height=`${$}px`);p[Nt]&&(p[Nt].swiperSlideSize=$),N.push($),t.centeredSlides?(G=G+$/2+ot/2+F,ot===0&&Nt!==0&&(G=G-a/2-F),Nt===0&&(G=G-a/2-F),Math.abs(G)<1/1e3&&(G=0),t.roundLengths&&(G=Math.floor(G)),dt%t.slidesPerGroup===0&&k.push(G),E.push(G)):(t.roundLengths&&(G=Math.floor(G)),dt%t.slidesPerGroup===0&&k.push(G),E.push(G),G=G+$+F),e.virtualSize+=$+F,ot=$,dt+=1}}e.virtualSize=Math.max(e.virtualSize,a)+L;let Lt;if(r&&l&&(t.effect==="slide"||t.effect==="coverflow")&&n.css({width:`${e.virtualSize+t.spaceBetween}px`}),(!ae.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=($+t.spaceBetween)*_,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)){Lt=[];for(let Nt=0;Nt<k.length;Nt+=1){let At=k[Nt];t.roundLengths&&(At=Math.floor(At)),k[Nt]<e.virtualSize+k[0]&&Lt.push(At)}k=Lt}if(!t.centeredSlides){Lt=[];for(let Nt=0;Nt<k.length;Nt+=1){let At=k[Nt];t.roundLengths&&(At=Math.floor(At)),k[Nt]<=e.virtualSize-a&&Lt.push(At)}k=Lt,Math.floor(e.virtualSize-a)-Math.floor(k[k.length-1])>1&&k.push(e.virtualSize-a)}if(k.length===0&&(k=[0]),t.spaceBetween!==0&&(e.isHorizontal()?r?p.css({marginLeft:`${F}px`}):p.css({marginRight:`${F}px`}):p.css({marginBottom:`${F}px`})),t.centerInsufficientSlides){let Nt=0;if(N.forEach(At=>{Nt+=At+(t.spaceBetween?t.spaceBetween:0)}),Nt-=t.spaceBetween,Nt<a){const At=(a-Nt)/2;k.forEach((tt,H)=>{k[H]=tt-At}),E.forEach((tt,H)=>{E[H]=tt+At})}}It.extend(e,{slides:p,snapGrid:k,slidesGrid:E,slidesSizesGrid:N}),y!==f&&e.emit("slidesLengthChange"),k.length!==K&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),E.length!==J&&e.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&e.updateSlidesOffset()}function mk(e){const t=this,n=[];let a=0,r;if(typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed),t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)for(r=0;r<Math.ceil(t.params.slidesPerView);r+=1){const l=t.activeIndex+r;if(l>t.slides.length)break;n.push(t.slides.eq(l)[0])}else n.push(t.slides.eq(t.activeIndex)[0]);for(r=0;r<n.length;r+=1)if(typeof n[r]<"u"){const l=n[r].offsetHeight;a=l>a?l:a}a&&t.$wrapperEl.css("height",`${a}px`)}function vk(){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 yk(e=this&&this.translate||0){const t=this,n=t.params,{slides:a,rtlTranslate:r}=t;if(a.length===0)return;typeof a[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let l=-e;r&&(l=e),a.removeClass(n.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let d=0;d<a.length;d+=1){const f=a[d],p=(l+(n.centeredSlides?t.minTranslate():0)-f.swiperSlideOffset)/(f.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility){const y=-(l-f.swiperSlideOffset),k=y+t.slidesSizesGrid[d];(y>=0&&y<t.size-1||k>1&&k<=t.size||y<=0&&k>=t.size)&&(t.visibleSlides.push(f),t.visibleSlidesIndexes.push(d),a.eq(d).addClass(n.slideVisibleClass))}f.progress=r?-p:p}t.visibleSlides=jt(t.visibleSlides)}function bk(e=this&&this.translate||0){const t=this,n=t.params,a=t.maxTranslate()-t.minTranslate();let{progress:r,isBeginning:l,isEnd:d}=t;const f=l,p=d;a===0?(r=0,l=!0,d=!0):(r=(e-t.minTranslate())/a,l=r<=0,d=r>=1),It.extend(t,{progress:r,isBeginning:l,isEnd:d}),(n.watchSlidesProgress||n.watchSlidesVisibility)&&t.updateSlidesProgress(e),l&&!f&&t.emit("reachBeginning toEdge"),d&&!p&&t.emit("reachEnd toEdge"),(f&&!l||p&&!d)&&t.emit("fromEdge"),t.emit("progress",r)}function wk(){const e=this,{slides:t,params:n,$wrapperEl:a,activeIndex:r,realIndex:l}=e,d=e.virtual&&n.virtual.enabled;t.removeClass(`${n.slideActiveClass} ${n.slideNextClass} ${n.slidePrevClass} ${n.slideDuplicateActiveClass} ${n.slideDuplicateNextClass} ${n.slideDuplicatePrevClass}`);let f;d?f=e.$wrapperEl.find(`.${n.slideClass}[data-swiper-slide-index="${r}"]`):f=t.eq(r),f.addClass(n.slideActiveClass),n.loop&&(f.hasClass(n.slideDuplicateClass)?a.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${l}"]`).addClass(n.slideDuplicateActiveClass):a.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${l}"]`).addClass(n.slideDuplicateActiveClass));let p=f.nextAll(`.${n.slideClass}`).eq(0).addClass(n.slideNextClass);n.loop&&p.length===0&&(p=t.eq(0),p.addClass(n.slideNextClass));let y=f.prevAll(`.${n.slideClass}`).eq(0).addClass(n.slidePrevClass);n.loop&&y.length===0&&(y=t.eq(-1),y.addClass(n.slidePrevClass)),n.loop&&(p.hasClass(n.slideDuplicateClass)?a.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${p.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass):a.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${p.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass),y.hasClass(n.slideDuplicateClass)?a.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${y.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass):a.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${y.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass))}function kk(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:a,snapGrid:r,params:l,activeIndex:d,realIndex:f,snapIndex:p}=t;let y=e,k;if(typeof y>"u"){for(let N=0;N<a.length;N+=1)typeof a[N+1]<"u"?n>=a[N]&&n<a[N+1]-(a[N+1]-a[N])/2?y=N:n>=a[N]&&n<a[N+1]&&(y=N+1):n>=a[N]&&(y=N);l.normalizeSlideIndex&&(y<0||typeof y>"u")&&(y=0)}if(r.indexOf(n)>=0?k=r.indexOf(n):k=Math.floor(y/l.slidesPerGroup),k>=r.length&&(k=r.length-1),y===d){k!==p&&(t.snapIndex=k,t.emit("snapIndexChange"));return}const E=parseInt(t.slides.eq(y).attr("data-swiper-slide-index")||y,10);It.extend(t,{snapIndex:k,realIndex:E,previousIndex:d,activeIndex:y}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),f!==E&&t.emit("realIndexChange"),(t.initialized||t.runCallbacksOnInit)&&t.emit("slideChange")}function xk(e){const t=this,n=t.params,a=jt(e.target).closest(`.${n.slideClass}`)[0];let r=!1;if(a)for(let l=0;l<t.slides.length;l+=1)t.slides[l]===a&&(r=!0);if(a&&r)t.clickedSlide=a,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(jt(a).attr("data-swiper-slide-index"),10):t.clickedIndex=jt(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 Sk={updateSize:pk,updateSlides:gk,updateAutoHeight:mk,updateSlidesOffset:vk,updateSlidesProgress:yk,updateProgress:bk,updateSlidesClasses:wk,updateActiveIndex:kk,updateClickedSlide:xk};function Ck(e=this.isHorizontal()?"x":"y"){const t=this,{params:n,rtlTranslate:a,translate:r,$wrapperEl:l}=t;if(n.virtualTranslate)return a?-r:r;let d=It.getTranslate(l[0],e);return a&&(d=-d),d||0}function Tk(e,t){const n=this,{rtlTranslate:a,params:r,$wrapperEl:l,progress:d}=n;let f=0,p=0;const y=0;n.isHorizontal()?f=a?-e:e:p=e,r.roundLengths&&(f=Math.floor(f),p=Math.floor(p)),r.virtualTranslate||(ae.transforms3d?l.transform(`translate3d(${f}px, ${p}px, ${y}px)`):l.transform(`translate(${f}px, ${p}px)`)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?f:p;let k;const E=n.maxTranslate()-n.minTranslate();E===0?k=0:k=(e-n.minTranslate())/E,k!==d&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function Ek(){return-this.snapGrid[0]}function Pk(){return-this.snapGrid[this.snapGrid.length-1]}var Mk={getTranslate:Ck,setTranslate:Tk,minTranslate:Ek,maxTranslate:Pk};function Ak(e,t){const n=this;n.$wrapperEl.transition(e),n.emit("setTransition",e,t)}function Nk(e=!0,t){const n=this,{activeIndex:a,params:r,previousIndex:l}=n;r.autoHeight&&n.updateAutoHeight();let d=t;if(d||(a>l?d="next":a<l?d="prev":d="reset"),n.emit("transitionStart"),e&&a!==l){if(d==="reset"){n.emit("slideResetTransitionStart");return}n.emit("slideChangeTransitionStart"),d==="next"?n.emit("slideNextTransitionStart"):n.emit("slidePrevTransitionStart")}}function Lk(e=!0,t){const n=this,{activeIndex:a,previousIndex:r}=n;n.animating=!1,n.setTransition(0);let l=t;if(l||(a>r?l="next":a<r?l="prev":l="reset"),n.emit("transitionEnd"),e&&a!==r){if(l==="reset"){n.emit("slideResetTransitionEnd");return}n.emit("slideChangeTransitionEnd"),l==="next"?n.emit("slideNextTransitionEnd"):n.emit("slidePrevTransitionEnd")}}var Bk={setTransition:Ak,transitionStart:Nk,transitionEnd:Lk};function zk(e=0,t=this.params.speed,n=!0,a){const r=this;let l=e;l<0&&(l=0);const{params:d,snapGrid:f,slidesGrid:p,previousIndex:y,activeIndex:k,rtlTranslate:E}=r;if(r.animating&&d.preventInteractionOnTransition)return!1;let N=Math.floor(l/d.slidesPerGroup);N>=f.length&&(N=f.length-1),(k||d.initialSlide||0)===(y||0)&&n&&r.emit("beforeSlideChangeStart");const I=-f[N];if(r.updateProgress(I),d.normalizeSlideIndex)for(let K=0;K<p.length;K+=1)-Math.floor(I*100)>=Math.floor(p[K]*100)&&(l=K);if(r.initialized&&l!==k&&(!r.allowSlideNext&&I<r.translate&&I<r.minTranslate()||!r.allowSlidePrev&&I>r.translate&&I>r.maxTranslate()&&(k||0)!==l))return!1;let L;return l>k?L="next":l<k?L="prev":L="reset",E&&-I===r.translate||!E&&I===r.translate?(r.updateActiveIndex(l),d.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),d.effect!=="slide"&&r.setTranslate(I),L!=="reset"&&(r.transitionStart(n,L),r.transitionEnd(n,L)),!1):(t===0||!ae.transition?(r.setTransition(0),r.setTranslate(I),r.updateActiveIndex(l),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,a),r.transitionStart(n,L),r.transitionEnd(n,L)):(r.setTransition(t),r.setTranslate(I),r.updateActiveIndex(l),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,a),r.transitionStart(n,L),r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(J){!r||r.destroyed||J.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(n,L))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd))),!0)}function Ik(e=0,t=this.params.speed,n=!0,a){const r=this;let l=e;return r.params.loop&&(l+=r.loopedSlides),r.slideTo(l,t,n,a)}function Dk(e=this.params.speed,t=!0,n){const a=this,{params:r,animating:l}=a;return r.loop?l?!1:(a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft,a.slideTo(a.activeIndex+r.slidesPerGroup,e,t,n)):a.slideTo(a.activeIndex+r.slidesPerGroup,e,t,n)}function Rk(e=this.params.speed,t=!0,n){const a=this,{params:r,animating:l,snapGrid:d,slidesGrid:f,rtlTranslate:p}=a;if(r.loop){if(l)return!1;a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft}const y=p?a.translate:-a.translate;function k(K){return K<0?-Math.floor(Math.abs(K)):Math.floor(K)}const E=k(y),N=d.map(K=>k(K));f.map(K=>k(K)),d[N.indexOf(E)];const I=d[N.indexOf(E)-1];let L;return typeof I<"u"&&(L=f.indexOf(I),L<0&&(L=a.activeIndex-1)),a.slideTo(L,e,t,n)}function jk(e=this.params.speed,t=!0,n){const a=this;return a.slideTo(a.activeIndex,e,t,n)}function Ok(e=this.params.speed,t=!0,n){const a=this;let r=a.activeIndex;const l=Math.floor(r/a.params.slidesPerGroup);if(l<a.snapGrid.length-1){const d=a.rtlTranslate?a.translate:-a.translate,f=a.snapGrid[l],p=a.snapGrid[l+1];d-f>(p-f)/2&&(r=a.params.slidesPerGroup)}return a.slideTo(r,e,t,n)}function Kk(){const e=this,{params:t,$wrapperEl:n}=e,a=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let r=e.clickedIndex,l;if(t.loop){if(e.animating)return;l=parseInt(jt(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?r<e.loopedSlides-a/2||r>e.slides.length-e.loopedSlides+a/2?(e.loopFix(),r=n.children(`.${t.slideClass}[data-swiper-slide-index="${l}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),It.nextTick(()=>{e.slideTo(r)})):e.slideTo(r):r>e.slides.length-a?(e.loopFix(),r=n.children(`.${t.slideClass}[data-swiper-slide-index="${l}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),It.nextTick(()=>{e.slideTo(r)})):e.slideTo(r)}else e.slideTo(r)}var qk={slideTo:zk,slideToLoop:Ik,slideNext:Dk,slidePrev:Rk,slideReset:jk,slideToClosest:Ok,slideToClickedSlide:Kk};function $k(){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 d=t.slidesPerGroup-a.length%t.slidesPerGroup;if(d!==t.slidesPerGroup){for(let f=0;f<d;f+=1){const p=jt(Ee.createElement("div")).addClass(`${t.slideClass} ${t.slideBlankClass}`);n.append(p)}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 r=[],l=[];a.each((d,f)=>{const p=jt(f);d<e.loopedSlides&&l.push(f),d<a.length&&d>=a.length-e.loopedSlides&&r.push(f),p.attr("data-swiper-slide-index",d)});for(let d=0;d<l.length;d+=1)n.append(jt(l[d].cloneNode(!0)).addClass(t.slideDuplicateClass));for(let d=r.length-1;d>=0;d-=1)n.prepend(jt(r[d].cloneNode(!0)).addClass(t.slideDuplicateClass))}function Hk(){const e=this,{params:t,activeIndex:n,slides:a,loopedSlides:r,allowSlidePrev:l,allowSlideNext:d,snapGrid:f,rtlTranslate:p}=e;let y;e.allowSlidePrev=!0,e.allowSlideNext=!0;const E=-f[n]-e.getTranslate();n<r?(y=a.length-r*3+n,y+=r,e.slideTo(y,0,!1,!0)&&E!==0&&e.setTranslate((p?-e.translate:e.translate)-E)):(t.slidesPerView==="auto"&&n>=r*2||n>=a.length-r)&&(y=-a.length+n+r,y+=r,e.slideTo(y,0,!1,!0)&&E!==0&&e.setTranslate((p?-e.translate:e.translate)-E)),e.allowSlidePrev=l,e.allowSlideNext=d}function Fk(){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 Wk={loopCreate:$k,loopFix:Hk,loopDestroy:Fk};function _k(e){const t=this;if(ae.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 Vk(){const e=this;ae.touch||e.params.watchOverflow&&e.isLocked||(e.el.style.cursor="")}var Gk={setGrabCursor:_k,unsetGrabCursor:Vk};function Uk(e){const t=this,{$wrapperEl:n,params:a}=t;if(a.loop&&t.loopDestroy(),typeof e=="object"&&"length"in e)for(let r=0;r<e.length;r+=1)e[r]&&n.append(e[r]);else n.append(e);a.loop&&t.loopCreate(),a.observer&&ae.observer||t.update()}function Yk(e){const t=this,{params:n,$wrapperEl:a,activeIndex:r}=t;n.loop&&t.loopDestroy();let l=r+1;if(typeof e=="object"&&"length"in e){for(let d=0;d<e.length;d+=1)e[d]&&a.prepend(e[d]);l=r+e.length}else a.prepend(e);n.loop&&t.loopCreate(),n.observer&&ae.observer||t.update(),t.slideTo(l,0,!1)}function Xk(e,t){const n=this,{$wrapperEl:a,params:r,activeIndex:l}=n;let d=l;r.loop&&(d-=n.loopedSlides,n.loopDestroy(),n.slides=a.children(`.${r.slideClass}`));const f=n.slides.length;if(e<=0){n.prependSlide(t);return}if(e>=f){n.appendSlide(t);return}let p=d>e?d+1:d;const y=[];for(let k=f-1;k>=e;k-=1){const E=n.slides.eq(k);E.remove(),y.unshift(E)}if(typeof t=="object"&&"length"in t){for(let k=0;k<t.length;k+=1)t[k]&&a.append(t[k]);p=d>e?d+t.length:d}else a.append(t);for(let k=0;k<y.length;k+=1)a.append(y[k]);r.loop&&n.loopCreate(),r.observer&&ae.observer||n.update(),r.loop?n.slideTo(p+n.loopedSlides,0,!1):n.slideTo(p,0,!1)}function Zk(e){const t=this,{params:n,$wrapperEl:a,activeIndex:r}=t;let l=r;n.loop&&(l-=t.loopedSlides,t.loopDestroy(),t.slides=a.children(`.${n.slideClass}`));let d=l,f;if(typeof e=="object"&&"length"in e){for(let p=0;p<e.length;p+=1)f=e[p],t.slides[f]&&t.slides.eq(f).remove(),f<d&&(d-=1);d=Math.max(d,0)}else f=e,t.slides[f]&&t.slides.eq(f).remove(),f<d&&(d-=1),d=Math.max(d,0);n.loop&&t.loopCreate(),n.observer&&ae.observer||t.update(),n.loop?t.slideTo(d+t.loopedSlides,0,!1):t.slideTo(d,0,!1)}function Jk(){const e=this,t=[];for(let n=0;n<e.slides.length;n+=1)t.push(n);e.removeSlide(t)}var Qk={appendSlide:Uk,prependSlide:Yk,addSlide:Xk,removeSlide:Zk,removeAllSlides:Jk};const Zn=(function(){const t=Wt.navigator.userAgent,n={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:Wt.cordova||Wt.phonegap,phonegap:Wt.cordova||Wt.phonegap},a=t.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),r=t.match(/(Android);?[\s\/]+([\d.]+)?/),l=t.match(/(iPad).*OS\s([\d_]+)/),d=t.match(/(iPod)(.*OS\s([\d_]+))?/),f=!l&&t.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(a&&(n.os="windows",n.osVersion=a[2],n.windows=!0),r&&!a&&(n.os="android",n.osVersion=r[2],n.android=!0,n.androidChrome=t.toLowerCase().indexOf("chrome")>=0),(l||f||d)&&(n.os="ios",n.ios=!0),f&&!d&&(n.osVersion=f[2].replace(/_/g,"."),n.iphone=!0),l&&(n.osVersion=l[2].replace(/_/g,"."),n.ipad=!0),d&&(n.osVersion=d[3]?d[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=(f||l||d)&&t.match(/.*AppleWebKit(?!.*Safari)/i),n.os&&n.os==="ios"){const p=n.osVersion.split("."),y=Ee.querySelector('meta[name="viewport"]');n.minimalUi=!n.webView&&(d||f)&&(p[0]*1===7?p[1]*1>=1:p[0]*1>7)&&y&&y.getAttribute("content").indexOf("minimal-ui")>=0}return n.pixelRatio=Wt.devicePixelRatio||1,n})();function t0(e){const t=this,n=t.touchEventsData,{params:a,touches:r}=t;if(t.animating&&a.preventInteractionOnTransition)return;let l=e;if(l.originalEvent&&(l=l.originalEvent),n.isTouchEvent=l.type==="touchstart",!n.isTouchEvent&&"which"in l&&l.which===3||!n.isTouchEvent&&"button"in l&&l.button>0||n.isTouched&&n.isMoved)return;if(a.noSwiping&&jt(l.target).closest(a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`)[0]){t.allowClick=!0;return}if(a.swipeHandler&&!jt(l).closest(a.swipeHandler)[0])return;r.currentX=l.type==="touchstart"?l.targetTouches[0].pageX:l.pageX,r.currentY=l.type==="touchstart"?l.targetTouches[0].pageY:l.pageY;const d=r.currentX,f=r.currentY,p=a.edgeSwipeDetection||a.iOSEdgeSwipeDetection,y=a.edgeSwipeThreshold||a.iOSEdgeSwipeThreshold;if(!(p&&(d<=y||d>=Wt.screen.width-y))){if(It.extend(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=d,r.startY=f,n.touchStartTime=It.now(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,a.threshold>0&&(n.allowThresholdMove=!1),l.type!=="touchstart"){let k=!0;jt(l.target).is(n.formElements)&&(k=!1),Ee.activeElement&&jt(Ee.activeElement).is(n.formElements)&&Ee.activeElement!==l.target&&Ee.activeElement.blur();const E=k&&t.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||E)&&l.preventDefault()}t.emit("touchStart",l)}}function e0(e){const t=this,n=t.touchEventsData,{params:a,touches:r,rtlTranslate:l}=t;let d=e;if(d.originalEvent&&(d=d.originalEvent),!n.isTouched){n.startMoving&&n.isScrolling&&t.emit("touchMoveOpposite",d);return}if(n.isTouchEvent&&d.type==="mousemove")return;const f=d.type==="touchmove"?d.targetTouches[0].pageX:d.pageX,p=d.type==="touchmove"?d.targetTouches[0].pageY:d.pageY;if(d.preventedByNestedSwiper){r.startX=f,r.startY=p;return}if(!t.allowTouchMove){t.allowClick=!1,n.isTouched&&(It.extend(r,{startX:f,startY:p,currentX:f,currentY:p}),n.touchStartTime=It.now());return}if(n.isTouchEvent&&a.touchReleaseOnEdges&&!a.loop){if(t.isVertical()){if(p<r.startY&&t.translate<=t.maxTranslate()||p>r.startY&&t.translate>=t.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(f<r.startX&&t.translate<=t.maxTranslate()||f>r.startX&&t.translate>=t.minTranslate())return}if(n.isTouchEvent&&Ee.activeElement&&d.target===Ee.activeElement&&jt(d.target).is(n.formElements)){n.isMoved=!0,t.allowClick=!1;return}if(n.allowTouchCallbacks&&t.emit("touchMove",d),d.targetTouches&&d.targetTouches.length>1)return;r.currentX=f,r.currentY=p;const y=r.currentX-r.startX,k=r.currentY-r.startY;if(t.params.threshold&&Math.sqrt(y**2+k**2)<t.params.threshold)return;if(typeof n.isScrolling>"u"){let L;t.isHorizontal()&&r.currentY===r.startY||t.isVertical()&&r.currentX===r.startX?n.isScrolling=!1:y*y+k*k>=25&&(L=Math.atan2(Math.abs(k),Math.abs(y))*180/Math.PI,n.isScrolling=t.isHorizontal()?L>a.touchAngle:90-L>a.touchAngle)}if(n.isScrolling&&t.emit("touchMoveOpposite",d),typeof n.startMoving>"u"&&(r.currentX!==r.startX||r.currentY!==r.startY)&&(n.startMoving=!0),n.isScrolling){n.isTouched=!1;return}if(!n.startMoving)return;t.allowClick=!1,d.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&d.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",d)),t.emit("sliderMove",d),n.isMoved=!0;let E=t.isHorizontal()?y:k;r.diff=E,E*=a.touchRatio,l&&(E=-E),t.swipeDirection=E>0?"prev":"next",n.currentTranslate=E+n.startTranslate;let N=!0,I=a.resistanceRatio;if(a.touchReleaseOnEdges&&(I=0),E>0&&n.currentTranslate>t.minTranslate()?(N=!1,a.resistance&&(n.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+n.startTranslate+E)**I)):E<0&&n.currentTranslate<t.maxTranslate()&&(N=!1,a.resistance&&(n.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-n.startTranslate-E)**I)),N&&(d.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(E)>a.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,n.currentTranslate=n.startTranslate,r.diff=t.isHorizontal()?r.currentX-r.startX:r.currentY-r.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:r[t.isHorizontal()?"startX":"startY"],time:n.touchStartTime}),n.velocities.push({position:r[t.isHorizontal()?"currentX":"currentY"],time:It.now()})),t.updateProgress(n.currentTranslate),t.setTranslate(n.currentTranslate))}function n0(e){const t=this,n=t.touchEventsData,{params:a,touches:r,rtlTranslate:l,$wrapperEl:d,slidesGrid:f,snapGrid:p}=t;let y=e;if(y.originalEvent&&(y=y.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",y),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 k=It.now(),E=k-n.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(y),t.emit("tap",y),E<300&&k-n.lastClickTime>300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),n.clickTimeout=It.nextTick(()=>{!t||t.destroyed||t.emit("click",y)},300)),E<300&&k-n.lastClickTime<300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),t.emit("doubleTap",y))),n.lastClickTime=It.now(),It.nextTick(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||r.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 N;if(a.followFinger?N=l?t.translate:-t.translate:N=-n.currentTranslate,a.freeMode){if(N<-t.minTranslate()){t.slideTo(t.activeIndex);return}if(N>-t.maxTranslate()){t.slides.length<p.length?t.slideTo(p.length-1):t.slideTo(t.slides.length-1);return}if(a.freeModeMomentum){if(n.velocities.length>1){const v=n.velocities.pop(),mt=n.velocities.pop(),ft=v.position-mt.position,Lt=v.time-mt.time;t.velocity=ft/Lt,t.velocity/=2,Math.abs(t.velocity)<a.freeModeMinimumVelocity&&(t.velocity=0),(Lt>150||It.now()-v.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=a.freeModeMomentumVelocityRatio,n.velocities.length=0;let J=1e3*a.freeModeMomentumRatio;const F=t.velocity*J;let G=t.translate+F;l&&(G=-G);let ot=!1,dt;const _=Math.abs(t.velocity)*20*a.freeModeMomentumBounceRatio;let $;if(G<t.maxTranslate())a.freeModeMomentumBounce?(G+t.maxTranslate()<-_&&(G=t.maxTranslate()-_),dt=t.maxTranslate(),ot=!0,n.allowMomentumBounce=!0):G=t.maxTranslate(),a.loop&&a.centeredSlides&&($=!0);else if(G>t.minTranslate())a.freeModeMomentumBounce?(G-t.minTranslate()>_&&(G=t.minTranslate()+_),dt=t.minTranslate(),ot=!0,n.allowMomentumBounce=!0):G=t.minTranslate(),a.loop&&a.centeredSlides&&($=!0);else if(a.freeModeSticky){let v;for(let mt=0;mt<p.length;mt+=1)if(p[mt]>-G){v=mt;break}Math.abs(p[v]-G)<Math.abs(p[v-1]-G)||t.swipeDirection==="next"?G=p[v]:G=p[v-1],G=-G}if($&&t.once("transitionEnd",()=>{t.loopFix()}),t.velocity!==0)l?J=Math.abs((-G-t.translate)/t.velocity):J=Math.abs((G-t.translate)/t.velocity);else if(a.freeModeSticky){t.slideToClosest();return}a.freeModeMomentumBounce&&ot?(t.updateProgress(dt),t.setTransition(J),t.setTranslate(G),t.transitionStart(!0,t.swipeDirection),t.animating=!0,d.transitionEnd(()=>{!t||t.destroyed||!n.allowMomentumBounce||(t.emit("momentumBounce"),t.setTransition(a.speed),t.setTranslate(dt),d.transitionEnd(()=>{!t||t.destroyed||t.transitionEnd()}))})):t.velocity?(t.updateProgress(G),t.setTransition(J),t.setTranslate(G),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,d.transitionEnd(()=>{!t||t.destroyed||t.transitionEnd()}))):t.updateProgress(G),t.updateActiveIndex(),t.updateSlidesClasses()}else if(a.freeModeSticky){t.slideToClosest();return}(!a.freeModeMomentum||E>=a.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses());return}let I=0,L=t.slidesSizesGrid[0];for(let J=0;J<f.length;J+=a.slidesPerGroup)typeof f[J+a.slidesPerGroup]<"u"?N>=f[J]&&N<f[J+a.slidesPerGroup]&&(I=J,L=f[J+a.slidesPerGroup]-f[J]):N>=f[J]&&(I=J,L=f[f.length-1]-f[f.length-2]);const K=(N-f[I])/L;if(E>a.longSwipesMs){if(!a.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(K>=a.longSwipesRatio?t.slideTo(I+a.slidesPerGroup):t.slideTo(I)),t.swipeDirection==="prev"&&(K>1-a.longSwipesRatio?t.slideTo(I+a.slidesPerGroup):t.slideTo(I))}else{if(!a.shortSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&t.slideTo(I+a.slidesPerGroup),t.swipeDirection==="prev"&&t.slideTo(I)}}function Xv(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:a,allowSlidePrev:r,snapGrid:l}=e;if(e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),t.freeMode){const d=Math.min(Math.max(e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(d),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=r,e.allowSlideNext=a,e.params.watchOverflow&&l!==e.snapGrid&&e.checkOverflow()}function a0(e){const t=this;t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function i0(){const e=this,{params:t,touchEvents:n,el:a,wrapperEl:r}=e;e.onTouchStart=t0.bind(e),e.onTouchMove=e0.bind(e),e.onTouchEnd=n0.bind(e),e.onClick=a0.bind(e);const l=t.touchEventsTarget==="container"?a:r,d=!!t.nested;{if(!ae.touch&&(ae.pointerEvents||ae.prefixedPointerEvents))l.addEventListener(n.start,e.onTouchStart,!1),Ee.addEventListener(n.move,e.onTouchMove,d),Ee.addEventListener(n.end,e.onTouchEnd,!1);else{if(ae.touch){const f=n.start==="touchstart"&&ae.passiveListener&&t.passiveListeners?{passive:!0,capture:!1}:!1;l.addEventListener(n.start,e.onTouchStart,f),l.addEventListener(n.move,e.onTouchMove,ae.passiveListener?{passive:!1,capture:d}:d),l.addEventListener(n.end,e.onTouchEnd,f)}(t.simulateTouch&&!Zn.ios&&!Zn.android||t.simulateTouch&&!ae.touch&&Zn.ios)&&(l.addEventListener("mousedown",e.onTouchStart,!1),Ee.addEventListener("mousemove",e.onTouchMove,d),Ee.addEventListener("mouseup",e.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&l.addEventListener("click",e.onClick,!0)}e.on(Zn.ios||Zn.android?"resize orientationchange observerUpdate":"resize observerUpdate",Xv,!0)}function r0(){const e=this,{params:t,touchEvents:n,el:a,wrapperEl:r}=e,l=t.touchEventsTarget==="container"?a:r,d=!!t.nested;{if(!ae.touch&&(ae.pointerEvents||ae.prefixedPointerEvents))l.removeEventListener(n.start,e.onTouchStart,!1),Ee.removeEventListener(n.move,e.onTouchMove,d),Ee.removeEventListener(n.end,e.onTouchEnd,!1);else{if(ae.touch){const f=n.start==="onTouchStart"&&ae.passiveListener&&t.passiveListeners?{passive:!0,capture:!1}:!1;l.removeEventListener(n.start,e.onTouchStart,f),l.removeEventListener(n.move,e.onTouchMove,d),l.removeEventListener(n.end,e.onTouchEnd,f)}(t.simulateTouch&&!Zn.ios&&!Zn.android||t.simulateTouch&&!ae.touch&&Zn.ios)&&(l.removeEventListener("mousedown",e.onTouchStart,!1),Ee.removeEventListener("mousemove",e.onTouchMove,d),Ee.removeEventListener("mouseup",e.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&l.removeEventListener("click",e.onClick,!0)}e.off(Zn.ios||Zn.android?"resize orientationchange observerUpdate":"resize observerUpdate",Xv)}var o0={attachEvents:i0,detachEvents:r0};function s0(){const e=this,{activeIndex:t,initialized:n,loopedSlides:a=0,params:r}=e,l=r.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const d=e.getBreakpoint(l);if(d&&e.currentBreakpoint!==d){const f=d in l?l[d]:void 0;f&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach(E=>{const N=f[E];typeof N>"u"||(E==="slidesPerView"&&(N==="AUTO"||N==="auto")?f[E]="auto":E==="slidesPerView"?f[E]=parseFloat(N):f[E]=parseInt(N,10))});const p=f||e.originalParams,y=p.direction&&p.direction!==r.direction,k=r.loop&&(p.slidesPerView!==r.slidesPerView||y);y&&n&&e.changeDirection(),It.extend(e.params,p),It.extend(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),e.currentBreakpoint=d,k&&n&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-a+e.loopedSlides,0,!1)),e.emit("breakpoint",p)}}function l0(e){const t=this;if(!e)return;let n=!1;const a=[];Object.keys(e).forEach(r=>{a.push(r)}),a.sort((r,l)=>parseInt(r,10)-parseInt(l,10));for(let r=0;r<a.length;r+=1){const l=a[r];t.params.breakpointsInverse?l<=Wt.innerWidth&&(n=l):l>=Wt.innerWidth&&!n&&(n=l)}return n||"max"}var u0={setBreakpoint:s0,getBreakpoint:l0};function c0(){const e=this,{classNames:t,params:n,rtl:a,$el:r}=e,l=[];l.push("initialized"),l.push(n.direction),n.freeMode&&l.push("free-mode"),ae.flexbox||l.push("no-flexbox"),n.autoHeight&&l.push("autoheight"),a&&l.push("rtl"),n.slidesPerColumn>1&&l.push("multirow"),Zn.android&&l.push("android"),Zn.ios&&l.push("ios"),(yi.isIE||yi.isEdge)&&(ae.pointerEvents||ae.prefixedPointerEvents)&&l.push(`wp8-${n.direction}`),l.forEach(d=>{t.push(n.containerModifierClass+d)}),r.addClass(t.join(" "))}function d0(){const e=this,{$el:t,classNames:n}=e;t.removeClass(n.join(" "))}var f0={addClasses:c0,removeClasses:d0};function h0(e,t,n,a,r,l){let d;function f(){l&&l()}(!e.complete||!r)&&t?(d=new Wt.Image,d.onload=f,d.onerror=f,a&&(d.sizes=a),n&&(d.srcset=n),t&&(d.src=t)):f()}function p0(){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 g0={loadImage:h0,preloadImages:p0};function m0(){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 v0={checkOverflow:m0},Wg={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 Cd={update:Sk,translate:Mk,transition:Bk,slide:qk,loop:Wk,grabCursor:Gk,manipulation:Qk,events:o0,breakpoints:u0,checkOverflow:v0,classes:f0,images:g0},Td={};let Ua=class bu extends Fg{constructor(...t){let n,a;t.length===1&&t[0].constructor&&t[0].constructor===Object?a=t[0]:[n,a]=t,a||(a={}),a=It.extend({},a),n&&!a.el&&(a.el=n),super(a),Object.keys(Cd).forEach(p=>{Object.keys(Cd[p]).forEach(y=>{bu.prototype[y]||(bu.prototype[y]=Cd[p][y])})});const r=this;typeof r.modules>"u"&&(r.modules={}),Object.keys(r.modules).forEach(p=>{const y=r.modules[p];if(y.params){const k=Object.keys(y.params)[0],E=y.params[k];if(typeof E!="object"||E===null||!(k in a&&"enabled"in E))return;a[k]===!0&&(a[k]={enabled:!0}),typeof a[k]=="object"&&!("enabled"in a[k])&&(a[k].enabled=!0),a[k]||(a[k]={enabled:!1})}});const l=It.extend({},Wg);r.useModulesParams(l),r.params=It.extend({},l,Td,a),r.originalParams=It.extend({},r.params),r.passedParams=It.extend({},a),r.$=jt;const d=jt(r.params.el);if(n=d[0],!n)return;if(d.length>1){const p=[];return d.each((y,k)=>{const E=It.extend({},a,{el:k});p.push(new bu(E))}),p}n.swiper=r,d.data("swiper",r);const f=d.children(`.${r.params.wrapperClass}`);return It.extend(r,{$el:d,el:n,$wrapperEl:f,wrapperEl:f[0],classNames:[],slides:jt(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return r.params.direction==="horizontal"},isVertical(){return r.params.direction==="vertical"},rtl:n.dir.toLowerCase()==="rtl"||d.css("direction")==="rtl",rtlTranslate:r.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||d.css("direction")==="rtl"),wrongRTL:f.css("display")==="-webkit-box",activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,touchEvents:(function(){const y=["touchstart","touchmove","touchend"];let k=["mousedown","mousemove","mouseup"];return ae.pointerEvents?k=["pointerdown","pointermove","pointerup"]:ae.prefixedPointerEvents&&(k=["MSPointerDown","MSPointerMove","MSPointerUp"]),r.touchEventsTouch={start:y[0],move:y[1],end:y[2]},r.touchEventsDesktop={start:k[0],move:k[1],end:k[2]},ae.touch||!r.params.simulateTouch?r.touchEventsTouch:r.touchEventsDesktop})(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video",lastClickTime:It.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.useModules(),r.params.init&&r.init(),r}slidesPerViewDynamic(){const t=this,{params:n,slides:a,slidesGrid:r,size:l,activeIndex:d}=t;let f=1;if(n.centeredSlides){let p=a[d].swiperSlideSize,y;for(let k=d+1;k<a.length;k+=1)a[k]&&!y&&(p+=a[k].swiperSlideSize,f+=1,p>l&&(y=!0));for(let k=d-1;k>=0;k-=1)a[k]&&!y&&(p+=a[k].swiperSlideSize,f+=1,p>l&&(y=!0))}else for(let p=d+1;p<a.length;p+=1)r[p]-r[d]<l&&(f+=1);return f}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 r(){const d=t.rtlTranslate?t.translate*-1:t.translate,f=Math.min(Math.max(d,t.maxTranslate()),t.minTranslate());t.setTranslate(f),t.updateActiveIndex(),t.updateSlidesClasses()}let l;t.params.freeMode?(r(),t.params.autoHeight&&t.updateAutoHeight()):((t.params.slidesPerView==="auto"||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?l=t.slideTo(t.slides.length-1,0,!1,!0):l=t.slideTo(t.activeIndex,0,!1,!0),l||r()),a.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n=!0){const a=this,r=a.params.direction;return t||(t=r==="horizontal"?"vertical":"horizontal"),t===r||t!=="horizontal"&&t!=="vertical"||(a.$el.removeClass(`${a.params.containerModifierClass}${r} wp8-${r}`).addClass(`${a.params.containerModifierClass}${t}`),(yi.isIE||yi.isEdge)&&(ae.pointerEvents||ae.prefixedPointerEvents)&&a.$el.addClass(`${a.params.containerModifierClass}wp8-${t}`),a.params.direction=t,a.slides.each((l,d)=>{t==="vertical"?d.style.width="":d.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:r,$el:l,$wrapperEl:d,slides:f}=a;return typeof a.params>"u"||a.destroyed||(a.emit("beforeDestroy"),a.initialized=!1,a.detachEvents(),r.loop&&a.loopDestroy(),n&&(a.removeClasses(),l.removeAttr("style"),d.removeAttr("style"),f&&f.length&&f.removeClass([r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.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(p=>{a.off(p)}),t!==!1&&(a.$el[0].swiper=null,a.$el.data("swiper",null),It.deleteProps(a)),a.destroyed=!0),null}static extendDefaults(t){It.extend(Td,t)}static get extendedDefaults(){return Td}static get defaults(){return Wg}static get Class(){return Fg}static get $(){return jt}};var y0={name:"device",proto:{device:Zn},static:{device:Zn}},b0={name:"support",proto:{support:ae},static:{support:ae}},w0={name:"browser",proto:{browser:yi},static:{browser:yi}},k0={name:"resize",create(){const e=this;It.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;Wt.addEventListener("resize",e.resize.resizeHandler),Wt.addEventListener("orientationchange",e.resize.orientationChangeHandler)},destroy(){const e=this;Wt.removeEventListener("resize",e.resize.resizeHandler),Wt.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}};const wu={func:Wt.MutationObserver||Wt.WebkitMutationObserver,attach(e,t={}){const n=this,a=wu.func,r=new a(l=>{if(l.length===1){n.emit("observerUpdate",l[0]);return}const d=function(){n.emit("observerUpdate",l[0])};Wt.requestAnimationFrame?Wt.requestAnimationFrame(d):Wt.setTimeout(d,0)});r.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(r)},init(){const e=this;if(!(!ae.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 x0={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create(){const e=this;It.extend(e,{observer:{init:wu.init.bind(e),attach:wu.attach.bind(e),destroy:wu.destroy.bind(e),observers:[]}})},on:{init(){this.observer.init()},destroy(){this.observer.destroy()}}};const Eo={update(e){const t=this,{slidesPerView:n,slidesPerGroup:a,centeredSlides:r}=t.params,{addSlidesBefore:l,addSlidesAfter:d}=t.params.virtual,{from:f,to:p,slides:y,slidesGrid:k,renderSlide:E,offset:N}=t.virtual;t.updateActiveIndex();const I=t.activeIndex||0;let L;t.rtlTranslate?L="right":L=t.isHorizontal()?"left":"top";let K,J;r?(K=Math.floor(n/2)+a+l,J=Math.floor(n/2)+a+d):(K=n+(a-1)+l,J=a+d);const F=Math.max((I||0)-J,0),G=Math.min((I||0)+K,y.length-1),ot=(t.slidesGrid[F]||0)-(t.slidesGrid[0]||0);It.extend(t.virtual,{from:F,to:G,offset:ot,slidesGrid:t.slidesGrid});function dt(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(f===F&&p===G&&!e){t.slidesGrid!==k&&ot!==N&&t.slides.css(L,`${ot}px`),t.updateProgress();return}if(t.params.virtual.renderExternal){t.params.virtual.renderExternal.call(t,{offset:ot,from:F,to:G,slides:(function(){const mt=[];for(let ft=F;ft<=G;ft+=1)mt.push(y[ft]);return mt})()}),dt();return}const _=[],$=[];if(e)t.$wrapperEl.find(`.${t.params.slideClass}`).remove();else for(let v=f;v<=p;v+=1)(v<F||v>G)&&t.$wrapperEl.find(`.${t.params.slideClass}[data-swiper-slide-index="${v}"]`).remove();for(let v=0;v<y.length;v+=1)v>=F&&v<=G&&(typeof p>"u"||e?$.push(v):(v>p&&$.push(v),v<f&&_.push(v)));$.forEach(v=>{t.$wrapperEl.append(E(y[v],v))}),_.sort((v,mt)=>mt-v).forEach(v=>{t.$wrapperEl.prepend(E(y[v],v))}),t.$wrapperEl.children(".swiper-slide").css(L,`${ot}px`),dt()},renderSlide(e,t){const n=this,a=n.params.virtual;if(a.cache&&n.virtual.cache[t])return n.virtual.cache[t];const r=a.renderSlide?jt(a.renderSlide.call(n,e,t)):jt(`<div class="${n.params.slideClass}" data-swiper-slide-index="${t}">${e}</div>`);return r.attr("data-swiper-slide-index")||r.attr("data-swiper-slide-index",t),a.cache&&(n.virtual.cache[t]=r),r},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,r=1;if(Array.isArray(e)){for(let l=0;l<e.length;l+=1)e[l]&&t.virtual.slides.unshift(e[l]);a=n+e.length,r=e.length}else t.virtual.slides.unshift(e);if(t.params.virtual.cache){const l=t.virtual.cache,d={};Object.keys(l).forEach(f=>{d[parseInt(f,10)+r]=l[f]}),t.virtual.cache=d}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 S0={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create(){const e=this;It.extend(e,{virtual:{update:Eo.update.bind(e),appendSlide:Eo.appendSlide.bind(e),prependSlide:Eo.prependSlide.bind(e),removeSlide:Eo.removeSlide.bind(e),removeAllSlides:Eo.removeAllSlides.bind(e),renderSlide:Eo.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};It.extend(e.params,t),It.extend(e.originalParams,t),e.params.initialSlide||e.virtual.update()},setTranslate(){const e=this;e.params.virtual.enabled&&e.virtual.update()}}};const Ed={handle(e){const t=this,{rtlTranslate:n}=t;let a=e;a.originalEvent&&(a=a.originalEvent);const r=a.keyCode||a.charCode;if(!t.allowSlideNext&&(t.isHorizontal()&&r===39||t.isVertical()&&r===40||r===34)||!t.allowSlidePrev&&(t.isHorizontal()&&r===37||t.isVertical()&&r===38||r===33))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey)&&!(Ee.activeElement&&Ee.activeElement.nodeName&&(Ee.activeElement.nodeName.toLowerCase()==="input"||Ee.activeElement.nodeName.toLowerCase()==="textarea"))){if(t.params.keyboard.onlyInViewport&&(r===33||r===34||r===37||r===39||r===38||r===40)){let l=!1;if(t.$el.parents(`.${t.params.slideClass}`).length>0&&t.$el.parents(`.${t.params.slideActiveClass}`).length===0)return;const d=Wt.innerWidth,f=Wt.innerHeight,p=t.$el.offset();n&&(p.left-=t.$el[0].scrollLeft);const y=[[p.left,p.top],[p.left+t.width,p.top],[p.left,p.top+t.height],[p.left+t.width,p.top+t.height]];for(let k=0;k<y.length;k+=1){const E=y[k];E[0]>=0&&E[0]<=d&&E[1]>=0&&E[1]<=f&&(l=!0)}if(!l)return}t.isHorizontal()?((r===33||r===34||r===37||r===39)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),((r===34||r===39)&&!n||(r===33||r===37)&&n)&&t.slideNext(),((r===33||r===37)&&!n||(r===34||r===39)&&n)&&t.slidePrev()):((r===33||r===34||r===38||r===40)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),(r===34||r===40)&&t.slideNext(),(r===33||r===38)&&t.slidePrev()),t.emit("keyPress",r)}},enable(){const e=this;e.keyboard.enabled||(jt(Ee).on("keydown",e.keyboard.handle),e.keyboard.enabled=!0)},disable(){const e=this;e.keyboard.enabled&&(jt(Ee).off("keydown",e.keyboard.handle),e.keyboard.enabled=!1)}};var C0={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create(){const e=this;It.extend(e,{keyboard:{enabled:!1,enable:Ed.enable.bind(e),disable:Ed.disable.bind(e),handle:Ed.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 T0(){const e="onwheel";let t=e in Ee;if(!t){const n=Ee.createElement("div");n.setAttribute(e,"return;"),t=typeof n[e]=="function"}return!t&&Ee.implementation&&Ee.implementation.hasFeature&&Ee.implementation.hasFeature("","")!==!0&&(t=Ee.implementation.hasFeature("Events.wheel","3.0")),t}const gi={lastScrollTime:It.now(),event:(function(){return Wt.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":T0()?"wheel":"mousewheel"})(),normalize(e){let r=0,l=0,d=0,f=0;return"detail"in e&&(l=e.detail),"wheelDelta"in e&&(l=-e.wheelDelta/120),"wheelDeltaY"in e&&(l=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(r=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(r=l,l=0),d=r*10,f=l*10,"deltaY"in e&&(f=e.deltaY),"deltaX"in e&&(d=e.deltaX),(d||f)&&e.deltaMode&&(e.deltaMode===1?(d*=40,f*=40):(d*=800,f*=800)),d&&!r&&(r=d<1?-1:1),f&&!l&&(l=f<1?-1:1),{spinX:r,spinY:l,pixelX:d,pixelY:f}},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 r=0;const l=n.rtlTranslate?-1:1,d=gi.normalize(t);if(a.forceToAxis)if(n.isHorizontal())if(Math.abs(d.pixelX)>Math.abs(d.pixelY))r=d.pixelX*l;else return!0;else if(Math.abs(d.pixelY)>Math.abs(d.pixelX))r=d.pixelY;else return!0;else r=Math.abs(d.pixelX)>Math.abs(d.pixelY)?-d.pixelX*l:-d.pixelY;if(r===0)return!0;if(a.invert&&(r=-r),n.params.freeMode){n.params.loop&&n.loopFix();let f=n.getTranslate()+r*a.sensitivity;const p=n.isBeginning,y=n.isEnd;if(f>=n.minTranslate()&&(f=n.minTranslate()),f<=n.maxTranslate()&&(f=n.maxTranslate()),n.setTransition(0),n.setTranslate(f),n.updateProgress(),n.updateActiveIndex(),n.updateSlidesClasses(),(!p&&n.isBeginning||!y&&n.isEnd)&&n.updateSlidesClasses(),n.params.freeModeSticky&&(clearTimeout(n.mousewheel.timeout),n.mousewheel.timeout=It.nextTick(()=>{n.slideToClosest()},300)),n.emit("scroll",t),n.params.autoplay&&n.params.autoplayDisableOnInteraction&&n.autoplay.stop(),f===n.minTranslate()||f===n.maxTranslate())return!0}else{if(It.now()-n.mousewheel.lastScrollTime>60){if(r<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 Wt.Date().getTime()}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},enable(){const e=this;if(!gi.event||e.mousewheel.enabled)return!1;let t=e.$el;return e.params.mousewheel.eventsTarged!=="container"&&(t=jt(e.params.mousewheel.eventsTarged)),t.on("mouseenter",e.mousewheel.handleMouseEnter),t.on("mouseleave",e.mousewheel.handleMouseLeave),t.on(gi.event,e.mousewheel.handle),e.mousewheel.enabled=!0,!0},disable(){const e=this;if(!gi.event||!e.mousewheel.enabled)return!1;let t=e.$el;return e.params.mousewheel.eventsTarged!=="container"&&(t=jt(e.params.mousewheel.eventsTarged)),t.off(gi.event,e.mousewheel.handle),e.mousewheel.enabled=!1,!0}};var E0={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create(){const e=this;It.extend(e,{mousewheel:{enabled:!1,enable:gi.enable.bind(e),disable:gi.disable.bind(e),handle:gi.handle.bind(e),handleMouseEnter:gi.handleMouseEnter.bind(e),handleMouseLeave:gi.handleMouseLeave.bind(e),lastScrollTime:It.now()}})},on:{init(){const e=this;e.params.mousewheel.enabled&&e.mousewheel.enable()},destroy(){const e=this;e.mousewheel.enabled&&e.mousewheel.disable()}}};const Ls={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=jt(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=jt(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),It.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 P0={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;It.extend(e,{navigation:{init:Ls.init.bind(e),update:Ls.update.bind(e),destroy:Ls.destroy.bind(e),onNextClick:Ls.onNextClick.bind(e),onPrevClick:Ls.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&&!jt(e.target).is(a)&&!jt(e.target).is(n)){let r;n?r=n.hasClass(t.params.navigation.hiddenClass):a&&(r=a.hasClass(t.params.navigation.hiddenClass)),r===!0?t.emit("navigationShow",t):t.emit("navigationHide",t),n&&n.toggleClass(t.params.navigation.hiddenClass),a&&a.toggleClass(t.params.navigation.hiddenClass)}}}};const ou={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,r=e.pagination.$el;let l;const d=e.params.loop?Math.ceil((a-e.loopedSlides*2)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(l=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup),l>a-1-e.loopedSlides*2&&(l-=a-e.loopedSlides*2),l>d-1&&(l-=d),l<0&&e.params.paginationType!=="bullets"&&(l=d+l)):typeof e.snapIndex<"u"?l=e.snapIndex:l=e.activeIndex||0,n.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const f=e.pagination.bullets;let p,y,k;if(n.dynamicBullets&&(e.pagination.bulletSize=f.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),r.css(e.isHorizontal()?"width":"height",`${e.pagination.bulletSize*(n.dynamicMainBullets+4)}px`),n.dynamicMainBullets>1&&e.previousIndex!==void 0&&(e.pagination.dynamicBulletIndex+=l-e.previousIndex,e.pagination.dynamicBulletIndex>n.dynamicMainBullets-1?e.pagination.dynamicBulletIndex=n.dynamicMainBullets-1:e.pagination.dynamicBulletIndex<0&&(e.pagination.dynamicBulletIndex=0)),p=l-e.pagination.dynamicBulletIndex,y=p+(Math.min(f.length,n.dynamicMainBullets)-1),k=(y+p)/2),f.removeClass(`${n.bulletActiveClass} ${n.bulletActiveClass}-next ${n.bulletActiveClass}-next-next ${n.bulletActiveClass}-prev ${n.bulletActiveClass}-prev-prev ${n.bulletActiveClass}-main`),r.length>1)f.each((E,N)=>{const I=jt(N),L=I.index();L===l&&I.addClass(n.bulletActiveClass),n.dynamicBullets&&(L>=p&&L<=y&&I.addClass(`${n.bulletActiveClass}-main`),L===p&&I.prev().addClass(`${n.bulletActiveClass}-prev`).prev().addClass(`${n.bulletActiveClass}-prev-prev`),L===y&&I.next().addClass(`${n.bulletActiveClass}-next`).next().addClass(`${n.bulletActiveClass}-next-next`))});else if(f.eq(l).addClass(n.bulletActiveClass),n.dynamicBullets){const N=f.eq(p),I=f.eq(y);for(let L=p;L<=y;L+=1)f.eq(L).addClass(`${n.bulletActiveClass}-main`);N.prev().addClass(`${n.bulletActiveClass}-prev`).prev().addClass(`${n.bulletActiveClass}-prev-prev`),I.next().addClass(`${n.bulletActiveClass}-next`).next().addClass(`${n.bulletActiveClass}-next-next`)}if(n.dynamicBullets){const E=Math.min(f.length,n.dynamicMainBullets+4),N=(e.pagination.bulletSize*E-e.pagination.bulletSize)/2-k*e.pagination.bulletSize,I=t?"right":"left";f.css(e.isHorizontal()?I:"top",`${N}px`)}}if(n.type==="fraction"&&(r.find(`.${n.currentClass}`).text(n.formatFractionCurrent(l+1)),r.find(`.${n.totalClass}`).text(n.formatFractionTotal(d))),n.type==="progressbar"){let f;n.progressbarOpposite?f=e.isHorizontal()?"vertical":"horizontal":f=e.isHorizontal()?"horizontal":"vertical";const p=(l+1)/d;let y=1,k=1;f==="horizontal"?y=p:k=p,r.find(`.${n.progressbarFillClass}`).transform(`translate3d(0,0,0) scaleX(${y}) scaleY(${k})`).transition(e.params.speed)}n.type==="custom"&&n.renderCustom?(r.html(n.renderCustom(e,l+1,d)),e.emit("paginationRender",e,r[0])):e.emit("paginationUpdate",e,r[0]),r[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 r="";if(t.type==="bullets"){const l=e.params.loop?Math.ceil((n-e.loopedSlides*2)/e.params.slidesPerGroup):e.snapGrid.length;for(let d=0;d<l;d+=1)t.renderBullet?r+=t.renderBullet.call(e,d,t.bulletClass):r+=`<${t.bulletElement} class="${t.bulletClass}"></${t.bulletElement}>`;a.html(r),e.pagination.bullets=a.find(`.${t.bulletClass}`)}t.type==="fraction"&&(t.renderFraction?r=t.renderFraction.call(e,t.currentClass,t.totalClass):r=`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`,a.html(r)),t.type==="progressbar"&&(t.renderProgressbar?r=t.renderProgressbar.call(e,t.progressbarFillClass):r=`<span class="${t.progressbarFillClass}"></span>`,a.html(r)),t.type!=="custom"&&e.emit("paginationRender",e.pagination.$el[0])},init(){const e=this,t=e.params.pagination;if(!t.el)return;let n=jt(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(r){r.preventDefault();let l=jt(this).index()*e.params.slidesPerGroup;e.params.loop&&(l+=e.loopedSlides),e.slideTo(l)}),It.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 M0={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;It.extend(e,{pagination:{init:ou.init.bind(e),render:ou.render.bind(e),update:ou.update.bind(e),destroy:ou.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&&!jt(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 ja={setTranslate(){const e=this;if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t,rtlTranslate:n,progress:a}=e,{dragSize:r,trackSize:l,$dragEl:d,$el:f}=t,p=e.params.scrollbar;let y=r,k=(l-r)*a;n?(k=-k,k>0?(y=r-k,k=0):-k+r>l&&(y=l+k)):k<0?(y=r+k,k=0):k+r>l&&(y=l-k),e.isHorizontal()?(ae.transforms3d?d.transform(`translate3d(${k}px, 0, 0)`):d.transform(`translateX(${k}px)`),d[0].style.width=`${y}px`):(ae.transforms3d?d.transform(`translate3d(0px, ${k}px, 0)`):d.transform(`translateY(${k}px)`),d[0].style.height=`${y}px`),p.hide&&(clearTimeout(e.scrollbar.timeout),f[0].style.opacity=1,e.scrollbar.timeout=setTimeout(()=>{f[0].style.opacity=0,f.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 r=e.isHorizontal()?a[0].offsetWidth:a[0].offsetHeight,l=e.size/e.virtualSize,d=l*(r/e.size);let f;e.params.scrollbar.dragSize==="auto"?f=r*l:f=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?n[0].style.width=`${f}px`:n[0].style.height=`${f}px`,l>=1?a[0].style.display="none":a[0].style.display="",e.params.scrollbar.hide&&(a[0].style.opacity=0),It.extend(t,{trackSize:r,divider:l,moveDivider:d,dragSize:f}),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:r,dragSize:l,trackSize:d,dragStartPos:f}=n;let p;p=(n.getPointerPosition(e)-r.offset()[t.isHorizontal()?"left":"top"]-(f!==null?f:l/2))/(d-l),p=Math.max(Math.min(p,1),0),a&&(p=1-p);const y=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*p;t.updateProgress(y),t.setTranslate(y),t.updateActiveIndex(),t.updateSlidesClasses()},onDragStart(e){const t=this,n=t.params.scrollbar,{scrollbar:a,$wrapperEl:r}=t,{$el:l,$dragEl:d}=a;t.scrollbar.isTouched=!0,t.scrollbar.dragStartPos=e.target===d[0]||e.target===d?a.getPointerPosition(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),r.transition(100),d.transition(100),a.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),l.transition(0),n.hide&&l.css("opacity",1),t.emit("scrollbarDragStart",e)},onDragMove(e){const t=this,{scrollbar:n,$wrapperEl:a}=t,{$el:r,$dragEl:l}=n;t.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,n.setDragPosition(e),a.transition(0),r.transition(0),l.transition(0),t.emit("scrollbarDragMove",e))},onDragEnd(e){const t=this,n=t.params.scrollbar,{scrollbar:a}=t,{$el:r}=a;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,n.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=It.nextTick(()=>{r.css("opacity",0),r.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:r}=e,d=t.$el[0],f=ae.passiveListener&&r.passiveListeners?{passive:!1,capture:!1}:!1,p=ae.passiveListener&&r.passiveListeners?{passive:!0,capture:!1}:!1;ae.touch?(d.addEventListener(n.start,e.scrollbar.onDragStart,f),d.addEventListener(n.move,e.scrollbar.onDragMove,f),d.addEventListener(n.end,e.scrollbar.onDragEnd,p)):(d.addEventListener(a.start,e.scrollbar.onDragStart,f),Ee.addEventListener(a.move,e.scrollbar.onDragMove,f),Ee.addEventListener(a.end,e.scrollbar.onDragEnd,p))},disableDraggable(){const e=this;if(!e.params.scrollbar.el)return;const{scrollbar:t,touchEventsTouch:n,touchEventsDesktop:a,params:r}=e,d=t.$el[0],f=ae.passiveListener&&r.passiveListeners?{passive:!1,capture:!1}:!1,p=ae.passiveListener&&r.passiveListeners?{passive:!0,capture:!1}:!1;ae.touch?(d.removeEventListener(n.start,e.scrollbar.onDragStart,f),d.removeEventListener(n.move,e.scrollbar.onDragMove,f),d.removeEventListener(n.end,e.scrollbar.onDragEnd,p)):(d.removeEventListener(a.start,e.scrollbar.onDragStart,f),Ee.removeEventListener(a.move,e.scrollbar.onDragMove,f),Ee.removeEventListener(a.end,e.scrollbar.onDragEnd,p))},init(){const e=this;if(!e.params.scrollbar.el)return;const{scrollbar:t,$el:n}=e,a=e.params.scrollbar;let r=jt(a.el);e.params.uniqueNavElements&&typeof a.el=="string"&&r.length>1&&n.find(a.el).length===1&&(r=n.find(a.el));let l=r.find(`.${e.params.scrollbar.dragClass}`);l.length===0&&(l=jt(`<div class="${e.params.scrollbar.dragClass}"></div>`),r.append(l)),It.extend(t,{$el:r,el:r[0],$dragEl:l,dragEl:l[0]}),a.draggable&&t.enableDraggable()},destroy(){this.scrollbar.disableDraggable()}};var A0={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;It.extend(e,{scrollbar:{init:ja.init.bind(e),destroy:ja.destroy.bind(e),updateSize:ja.updateSize.bind(e),setTranslate:ja.setTranslate.bind(e),setTransition:ja.setTransition.bind(e),enableDraggable:ja.enableDraggable.bind(e),disableDraggable:ja.disableDraggable.bind(e),setDragPosition:ja.setDragPosition.bind(e),getPointerPosition:ja.getPointerPosition.bind(e),onDragStart:ja.onDragStart.bind(e),onDragMove:ja.onDragMove.bind(e),onDragEnd:ja.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 Pd={setTransform(e,t){const n=this,{rtl:a}=n,r=jt(e),l=a?-1:1,d=r.attr("data-swiper-parallax")||"0";let f=r.attr("data-swiper-parallax-x"),p=r.attr("data-swiper-parallax-y");const y=r.attr("data-swiper-parallax-scale"),k=r.attr("data-swiper-parallax-opacity");if(f||p?(f=f||"0",p=p||"0"):n.isHorizontal()?(f=d,p="0"):(p=d,f="0"),f.indexOf("%")>=0?f=`${parseInt(f,10)*t*l}%`:f=`${f*t*l}px`,p.indexOf("%")>=0?p=`${parseInt(p,10)*t}%`:p=`${p*t}px`,typeof k<"u"&&k!==null){const E=k-(k-1)*(1-Math.abs(t));r[0].style.opacity=E}if(typeof y>"u"||y===null)r.transform(`translate3d(${f}, ${p}, 0px)`);else{const E=y-(y-1)*(1-Math.abs(t));r.transform(`translate3d(${f}, ${p}, 0px) scale(${E})`)}},setTranslate(){const e=this,{$el:t,slides:n,progress:a,snapGrid:r}=e;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((l,d)=>{e.parallax.setTransform(d,a)}),n.each((l,d)=>{let f=d.progress;e.params.slidesPerGroup>1&&e.params.slidesPerView!=="auto"&&(f+=Math.ceil(l/2)-a*(r.length-1)),f=Math.min(Math.max(f,-1),1),jt(d).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((p,y)=>{e.parallax.setTransform(y,f)})})},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,r)=>{const l=jt(r);let d=parseInt(l.attr("data-swiper-parallax-duration"),10)||e;e===0&&(d=0),l.transition(d)})}};var N0={name:"parallax",params:{parallax:{enabled:!1}},create(){const e=this;It.extend(e,{parallax:{setTransform:Pd.setTransform.bind(e),setTranslate:Pd.setTranslate.bind(e),setTransition:Pd.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 Hf={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,r=e.targetTouches[1].pageY;return Math.sqrt((a-t)**2+(r-n)**2)},onGestureStart(e){const t=this,n=t.params.zoom,a=t.zoom,{gesture:r}=a;if(a.fakeGestureTouched=!1,a.fakeGestureMoved=!1,!ae.gestures){if(e.type!=="touchstart"||e.type==="touchstart"&&e.targetTouches.length<2)return;a.fakeGestureTouched=!0,r.scaleStart=Hf.getDistanceBetweenTouches(e)}if((!r.$slideEl||!r.$slideEl.length)&&(r.$slideEl=jt(e.target).closest(".swiper-slide"),r.$slideEl.length===0&&(r.$slideEl=t.slides.eq(t.activeIndex)),r.$imageEl=r.$slideEl.find("img, svg, canvas"),r.$imageWrapEl=r.$imageEl.parent(`.${n.containerClass}`),r.maxRatio=r.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,r.$imageWrapEl.length===0)){r.$imageEl=void 0;return}r.$imageEl.transition(0),t.zoom.isScaling=!0},onGestureChange(e){const t=this,n=t.params.zoom,a=t.zoom,{gesture:r}=a;if(!ae.gestures){if(e.type!=="touchmove"||e.type==="touchmove"&&e.targetTouches.length<2)return;a.fakeGestureMoved=!0,r.scaleMove=Hf.getDistanceBetweenTouches(e)}!r.$imageEl||r.$imageEl.length===0||(ae.gestures?a.scale=e.scale*a.currentScale:a.scale=r.scaleMove/r.scaleStart*a.currentScale,a.scale>r.maxRatio&&(a.scale=r.maxRatio-1+(a.scale-r.maxRatio+1)**.5),a.scale<n.minRatio&&(a.scale=n.minRatio+1-(n.minRatio-a.scale+1)**.5),r.$imageEl.transform(`translate3d(0,0,0) scale(${a.scale})`))},onGestureEnd(e){const t=this,n=t.params.zoom,a=t.zoom,{gesture:r}=a;if(!ae.gestures){if(!a.fakeGestureTouched||!a.fakeGestureMoved||e.type!=="touchend"||e.type==="touchend"&&e.changedTouches.length<2&&!Zn.android)return;a.fakeGestureTouched=!1,a.fakeGestureMoved=!1}!r.$imageEl||r.$imageEl.length===0||(a.scale=Math.max(Math.min(a.scale,r.maxRatio),n.minRatio),r.$imageEl.transition(t.params.speed).transform(`translate3d(0,0,0) scale(${a.scale})`),a.currentScale=a.scale,a.isScaling=!1,a.scale===1&&(r.$slideEl=void 0))},onTouchStart(e){const n=this.zoom,{gesture:a,image:r}=n;!a.$imageEl||a.$imageEl.length===0||r.isTouched||(Zn.android&&e.preventDefault(),r.isTouched=!0,r.touchesStart.x=e.type==="touchstart"?e.targetTouches[0].pageX:e.pageX,r.touchesStart.y=e.type==="touchstart"?e.targetTouches[0].pageY:e.pageY)},onTouchMove(e){const t=this,n=t.zoom,{gesture:a,image:r,velocity:l}=n;if(!a.$imageEl||a.$imageEl.length===0||(t.allowClick=!1,!r.isTouched||!a.$slideEl))return;r.isMoved||(r.width=a.$imageEl[0].offsetWidth,r.height=a.$imageEl[0].offsetHeight,r.startX=It.getTranslate(a.$imageWrapEl[0],"x")||0,r.startY=It.getTranslate(a.$imageWrapEl[0],"y")||0,a.slideWidth=a.$slideEl[0].offsetWidth,a.slideHeight=a.$slideEl[0].offsetHeight,a.$imageWrapEl.transition(0),t.rtl&&(r.startX=-r.startX,r.startY=-r.startY));const d=r.width*n.scale,f=r.height*n.scale;if(!(d<a.slideWidth&&f<a.slideHeight)){if(r.minX=Math.min(a.slideWidth/2-d/2,0),r.maxX=-r.minX,r.minY=Math.min(a.slideHeight/2-f/2,0),r.maxY=-r.minY,r.touchesCurrent.x=e.type==="touchmove"?e.targetTouches[0].pageX:e.pageX,r.touchesCurrent.y=e.type==="touchmove"?e.targetTouches[0].pageY:e.pageY,!r.isMoved&&!n.isScaling){if(t.isHorizontal()&&(Math.floor(r.minX)===Math.floor(r.startX)&&r.touchesCurrent.x<r.touchesStart.x||Math.floor(r.maxX)===Math.floor(r.startX)&&r.touchesCurrent.x>r.touchesStart.x)){r.isTouched=!1;return}if(!t.isHorizontal()&&(Math.floor(r.minY)===Math.floor(r.startY)&&r.touchesCurrent.y<r.touchesStart.y||Math.floor(r.maxY)===Math.floor(r.startY)&&r.touchesCurrent.y>r.touchesStart.y)){r.isTouched=!1;return}}e.preventDefault(),e.stopPropagation(),r.isMoved=!0,r.currentX=r.touchesCurrent.x-r.touchesStart.x+r.startX,r.currentY=r.touchesCurrent.y-r.touchesStart.y+r.startY,r.currentX<r.minX&&(r.currentX=r.minX+1-(r.minX-r.currentX+1)**.8),r.currentX>r.maxX&&(r.currentX=r.maxX-1+(r.currentX-r.maxX+1)**.8),r.currentY<r.minY&&(r.currentY=r.minY+1-(r.minY-r.currentY+1)**.8),r.currentY>r.maxY&&(r.currentY=r.maxY-1+(r.currentY-r.maxY+1)**.8),l.prevPositionX||(l.prevPositionX=r.touchesCurrent.x),l.prevPositionY||(l.prevPositionY=r.touchesCurrent.y),l.prevTime||(l.prevTime=Date.now()),l.x=(r.touchesCurrent.x-l.prevPositionX)/(Date.now()-l.prevTime)/2,l.y=(r.touchesCurrent.y-l.prevPositionY)/(Date.now()-l.prevTime)/2,Math.abs(r.touchesCurrent.x-l.prevPositionX)<2&&(l.x=0),Math.abs(r.touchesCurrent.y-l.prevPositionY)<2&&(l.y=0),l.prevPositionX=r.touchesCurrent.x,l.prevPositionY=r.touchesCurrent.y,l.prevTime=Date.now(),a.$imageWrapEl.transform(`translate3d(${r.currentX}px, ${r.currentY}px,0)`)}},onTouchEnd(){const t=this.zoom,{gesture:n,image:a,velocity:r}=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 l=300,d=300;const f=r.x*l,p=a.currentX+f,y=r.y*d,k=a.currentY+y;r.x!==0&&(l=Math.abs((p-a.currentX)/r.x)),r.y!==0&&(d=Math.abs((k-a.currentY)/r.y));const E=Math.max(l,d);a.currentX=p,a.currentY=k;const N=a.width*t.scale,I=a.height*t.scale;a.minX=Math.min(n.slideWidth/2-N/2,0),a.maxX=-a.minX,a.minY=Math.min(n.slideHeight/2-I/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(E).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:r,image:l}=n;if(r.$slideEl||(r.$slideEl=t.clickedSlide?jt(t.clickedSlide):t.slides.eq(t.activeIndex),r.$imageEl=r.$slideEl.find("img, svg, canvas"),r.$imageWrapEl=r.$imageEl.parent(`.${a.containerClass}`)),!r.$imageEl||r.$imageEl.length===0)return;r.$slideEl.addClass(`${a.zoomedSlideClass}`);let d,f,p,y,k,E,N,I,L,K,J,F,G,ot,dt,_,$,v;typeof l.touchesStart.x>"u"&&e?(d=e.type==="touchend"?e.changedTouches[0].pageX:e.pageX,f=e.type==="touchend"?e.changedTouches[0].pageY:e.pageY):(d=l.touchesStart.x,f=l.touchesStart.y),n.scale=r.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,n.currentScale=r.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,e?($=r.$slideEl[0].offsetWidth,v=r.$slideEl[0].offsetHeight,p=r.$slideEl.offset().left,y=r.$slideEl.offset().top,k=p+$/2-d,E=y+v/2-f,L=r.$imageEl[0].offsetWidth,K=r.$imageEl[0].offsetHeight,J=L*n.scale,F=K*n.scale,G=Math.min($/2-J/2,0),ot=Math.min(v/2-F/2,0),dt=-G,_=-ot,N=k*n.scale,I=E*n.scale,N<G&&(N=G),N>dt&&(N=dt),I<ot&&(I=ot),I>_&&(I=_)):(N=0,I=0),r.$imageWrapEl.transition(300).transform(`translate3d(${N}px, ${I}px,0)`),r.$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?jt(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"&&ae.passiveListener&&e.params.passiveListeners?{passive:!0,capture:!1}:!1;ae.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"&&ae.passiveListener&&e.params.passiveListeners?{passive:!0,capture:!1}:!1;ae.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 L0={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]=Hf[a].bind(e)}),It.extend(e,{zoom:t});let n=1;Object.defineProperty(e.zoom,"scale",{get(){return n},set(a){if(n!==a){const r=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,l=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",a,r,l)}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 _g={loadInSlide(e,t=!0){const n=this,a=n.params.lazy;if(typeof e>"u"||n.slides.length===0)return;const l=n.virtual&&n.params.virtual.enabled?n.$wrapperEl.children(`.${n.params.slideClass}[data-swiper-slide-index="${e}"]`):n.slides.eq(e);let d=l.find(`.${a.elementClass}:not(.${a.loadedClass}):not(.${a.loadingClass})`);l.hasClass(a.elementClass)&&!l.hasClass(a.loadedClass)&&!l.hasClass(a.loadingClass)&&(d=d.add(l[0])),d.length!==0&&d.each((f,p)=>{const y=jt(p);y.addClass(a.loadingClass);const k=y.attr("data-background"),E=y.attr("data-src"),N=y.attr("data-srcset"),I=y.attr("data-sizes");n.loadImage(y[0],E||k,N,I,!1,()=>{if(!(typeof n>"u"||n===null||!n||n&&!n.params||n.destroyed)){if(k?(y.css("background-image",`url("${k}")`),y.removeAttr("data-background")):(N&&(y.attr("srcset",N),y.removeAttr("data-srcset")),I&&(y.attr("sizes",I),y.removeAttr("data-sizes")),E&&(y.attr("src",E),y.removeAttr("data-src"))),y.addClass(a.loadedClass).removeClass(a.loadingClass),l.find(`.${a.preloaderClass}`).remove(),n.params.loop&&t){const L=l.attr("data-swiper-slide-index");if(l.hasClass(n.params.slideDuplicateClass)){const K=n.$wrapperEl.children(`[data-swiper-slide-index="${L}"]:not(.${n.params.slideDuplicateClass})`);n.lazy.loadInSlide(K.index(),!1)}else{const K=n.$wrapperEl.children(`.${n.params.slideDuplicateClass}[data-swiper-slide-index="${L}"]`);n.lazy.loadInSlide(K.index(),!1)}}n.emit("lazyImageReady",l[0],y[0])}}),n.emit("lazyImageLoad",l[0],y[0])})},load(){const e=this,{$wrapperEl:t,params:n,slides:a,activeIndex:r}=e,l=e.virtual&&n.virtual.enabled,d=n.lazy;let f=n.slidesPerView;f==="auto"&&(f=0);function p(k){if(l){if(t.children(`.${n.slideClass}[data-swiper-slide-index="${k}"]`).length)return!0}else if(a[k])return!0;return!1}function y(k){return l?jt(k).attr("data-swiper-slide-index"):jt(k).index()}if(e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children(`.${n.slideVisibleClass}`).each((k,E)=>{const N=l?jt(E).attr("data-swiper-slide-index"):jt(E).index();e.lazy.loadInSlide(N)});else if(f>1)for(let k=r;k<r+f;k+=1)p(k)&&e.lazy.loadInSlide(k);else e.lazy.loadInSlide(r);if(d.loadPrevNext)if(f>1||d.loadPrevNextAmount&&d.loadPrevNextAmount>1){const k=d.loadPrevNextAmount,E=f,N=Math.min(r+E+Math.max(k,E),a.length),I=Math.max(r-Math.max(E,k),0);for(let L=r+f;L<N;L+=1)p(L)&&e.lazy.loadInSlide(L);for(let L=I;L<r;L+=1)p(L)&&e.lazy.loadInSlide(L)}else{const k=t.children(`.${n.slideNextClass}`);k.length>0&&e.lazy.loadInSlide(y(k));const E=t.children(`.${n.slidePrevClass}`);E.length>0&&e.lazy.loadInSlide(y(E))}}};var B0={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;It.extend(e,{lazy:{initialImageLoaded:!1,load:_g.load.bind(e),loadInSlide:_g.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 Zs={LinearSpline:function(t,n){const a=(function(){let f,p,y;return(k,E)=>{for(p=-1,f=k.length;f-p>1;)y=f+p>>1,k[y]<=E?p=y:f=y;return f}})();this.x=t,this.y=n,this.lastIndex=t.length-1;let r,l;return this.interpolate=function(f){return f?(l=a(this.x,f),r=l-1,(f-this.x[r])*(this.y[l]-this.y[r])/(this.x[l]-this.x[r])+this.y[r]):0},this},getInterpolateFunction(e){const t=this;t.controller.spline||(t.controller.spline=t.params.loop?new Zs.LinearSpline(t.slidesGrid,e.slidesGrid):new Zs.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate(e,t){const n=this,a=n.controller.control;let r,l;function d(f){const p=n.rtlTranslate?-n.translate:n.translate;n.params.controller.by==="slide"&&(n.controller.getInterpolateFunction(f),l=-n.controller.spline.interpolate(-p)),(!l||n.params.controller.by==="container")&&(r=(f.maxTranslate()-f.minTranslate())/(n.maxTranslate()-n.minTranslate()),l=(p-n.minTranslate())*r+f.minTranslate()),n.params.controller.inverse&&(l=f.maxTranslate()-l),f.updateProgress(l),f.setTranslate(l,n),f.updateActiveIndex(),f.updateSlidesClasses()}if(Array.isArray(a))for(let f=0;f<a.length;f+=1)a[f]!==t&&a[f]instanceof Ua&&d(a[f]);else a instanceof Ua&&t!==a&&d(a)},setTransition(e,t){const n=this,a=n.controller.control;let r;function l(d){d.setTransition(e,n),e!==0&&(d.transitionStart(),d.params.autoHeight&&It.nextTick(()=>{d.updateAutoHeight()}),d.$wrapperEl.transitionEnd(()=>{a&&(d.params.loop&&n.params.controller.by==="slide"&&d.loopFix(),d.transitionEnd())}))}if(Array.isArray(a))for(r=0;r<a.length;r+=1)a[r]!==t&&a[r]instanceof Ua&&l(a[r]);else a instanceof Ua&&t!==a&&l(a)}};var z0={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create(){const e=this;It.extend(e,{controller:{control:e.params.controller.control,getInterpolateFunction:Zs.getInterpolateFunction.bind(e),setTranslate:Zs.setTranslate.bind(e),setTransition:Zs.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 Vg={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=jt(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 r=jt(a);e.a11y.makeElFocusable(r),e.a11y.addElRole(r,"button"),e.a11y.addElLabel(r,t.paginationBulletMessage.replace(/{{index}}/,r.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 I0={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;It.extend(e,{a11y:{liveRegion:jt(`<span class="${e.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)}}),Object.keys(Vg).forEach(t=>{e.a11y[t]=Vg[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 Li={init(){const e=this;if(!e.params.history)return;if(!Wt.history||!Wt.history.pushState){e.params.history.enabled=!1,e.params.hashNavigation.enabled=!0;return}const t=e.history;t.initialized=!0,t.paths=Li.getPathValues(),!(!t.paths.key&&!t.paths.value)&&(t.scrollToSlide(0,t.paths.value,e.params.runCallbacksOnInit),e.params.history.replaceState||Wt.addEventListener("popstate",e.history.setHistoryPopState))},destroy(){const e=this;e.params.history.replaceState||Wt.removeEventListener("popstate",e.history.setHistoryPopState)},setHistoryPopState(){const e=this;e.history.paths=Li.getPathValues(),e.history.scrollToSlide(e.params.speed,e.history.paths.value,!1)},getPathValues(){const e=Wt.location.pathname.slice(1).split("/").filter(r=>r!==""),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 r=Li.slugify(a.attr("data-history"));Wt.location.pathname.includes(e)||(r=`${e}/${r}`);const l=Wt.history.state;l&&l.value===r||(n.params.history.replaceState?Wt.history.replaceState({value:r},null,r):Wt.history.pushState({value:r},null,r))},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 r=0,l=a.slides.length;r<l;r+=1){const d=a.slides.eq(r);if(Li.slugify(d.attr("data-history"))===t&&!d.hasClass(a.params.slideDuplicateClass)){const p=d.index();a.slideTo(p,e,n)}}else a.slideTo(0,e,n)}};var D0={name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create(){const e=this;It.extend(e,{history:{init:Li.init.bind(e),setHistory:Li.setHistory.bind(e),setHistoryPopState:Li.setHistoryPopState.bind(e),scrollToSlide:Li.scrollToSlide.bind(e),destroy:Li.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 su={onHashCange(){const e=this,t=Ee.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&&Wt.history&&Wt.history.replaceState)Wt.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");Ee.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=Ee.location.hash.replace("#","");if(t)for(let a=0,r=e.slides.length;a<r;a+=1){const l=e.slides.eq(a);if((l.attr("data-hash")||l.attr("data-history"))===t&&!l.hasClass(e.params.slideDuplicateClass)){const f=l.index();e.slideTo(f,0,e.params.runCallbacksOnInit,!0)}}e.params.hashNavigation.watchState&&jt(Wt).on("hashchange",e.hashNavigation.onHashCange)},destroy(){const e=this;e.params.hashNavigation.watchState&&jt(Wt).off("hashchange",e.hashNavigation.onHashCange)}};var R0={name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create(){const e=this;It.extend(e,{hashNavigation:{initialized:!1,init:su.init.bind(e),destroy:su.destroy.bind(e),setHash:su.setHash.bind(e),onHashCange:su.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 lu={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=It.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 j0={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create(){const e=this;It.extend(e,{autoplay:{running:!1,paused:!1,run:lu.run.bind(e),start:lu.start.bind(e),stop:lu.stop.bind(e),pause:lu.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 Gg={setTranslate(){const e=this,{slides:t}=e;for(let n=0;n<t.length;n+=1){const a=e.slides.eq(n);let l=-a[0].swiperSlideOffset;e.params.virtualTranslate||(l-=e.translate);let d=0;e.isHorizontal()||(d=l,l=0);const f=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:f}).transform(`translate3d(${l}px, ${d}px, 0px)`)}},setTransition(e){const t=this,{slides:n,$wrapperEl:a}=t;if(n.transition(e),t.params.virtualTranslate&&e!==0){let r=!1;n.transitionEnd(()=>{if(r||!t||t.destroyed)return;r=!0,t.animating=!1;const l=["webkitTransitionEnd","transitionend"];for(let d=0;d<l.length;d+=1)a.trigger(l[d])})}}};var O0={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create(){const e=this;It.extend(e,{fadeEffect:{setTranslate:Gg.setTranslate.bind(e),setTransition:Gg.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};It.extend(e.params,t),It.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 Ug={setTranslate(){const e=this,{$el:t,$wrapperEl:n,slides:a,width:r,height:l,rtlTranslate:d,size:f}=e,p=e.params.cubeEffect,y=e.isHorizontal(),k=e.virtual&&e.params.virtual.enabled;let E=0,N;p.shadow&&(y?(N=n.find(".swiper-cube-shadow"),N.length===0&&(N=jt('<div class="swiper-cube-shadow"></div>'),n.append(N)),N.css({height:`${r}px`})):(N=t.find(".swiper-cube-shadow"),N.length===0&&(N=jt('<div class="swiper-cube-shadow"></div>'),t.append(N))));for(let L=0;L<a.length;L+=1){const K=a.eq(L);let J=L;k&&(J=parseInt(K.attr("data-swiper-slide-index"),10));let F=J*90,G=Math.floor(F/360);d&&(F=-F,G=Math.floor(-F/360));const ot=Math.max(Math.min(K[0].progress,1),-1);let dt=0,_=0,$=0;J%4===0?(dt=-G*4*f,$=0):(J-1)%4===0?(dt=0,$=-G*4*f):(J-2)%4===0?(dt=f+G*4*f,$=f):(J-3)%4===0&&(dt=-f,$=3*f+f*4*G),d&&(dt=-dt),y||(_=dt,dt=0);const v=`rotateX(${y?0:-F}deg) rotateY(${y?F:0}deg) translate3d(${dt}px, ${_}px, ${$}px)`;if(ot<=1&&ot>-1&&(E=J*90+ot*90,d&&(E=-J*90-ot*90)),K.transform(v),p.slideShadows){let mt=y?K.find(".swiper-slide-shadow-left"):K.find(".swiper-slide-shadow-top"),ft=y?K.find(".swiper-slide-shadow-right"):K.find(".swiper-slide-shadow-bottom");mt.length===0&&(mt=jt(`<div class="swiper-slide-shadow-${y?"left":"top"}"></div>`),K.append(mt)),ft.length===0&&(ft=jt(`<div class="swiper-slide-shadow-${y?"right":"bottom"}"></div>`),K.append(ft)),mt.length&&(mt[0].style.opacity=Math.max(-ot,0)),ft.length&&(ft[0].style.opacity=Math.max(ot,0))}}if(n.css({"-webkit-transform-origin":`50% 50% -${f/2}px`,"-moz-transform-origin":`50% 50% -${f/2}px`,"-ms-transform-origin":`50% 50% -${f/2}px`,"transform-origin":`50% 50% -${f/2}px`}),p.shadow)if(y)N.transform(`translate3d(0px, ${r/2+p.shadowOffset}px, ${-r/2}px) rotateX(90deg) rotateZ(0deg) scale(${p.shadowScale})`);else{const L=Math.abs(E)-Math.floor(Math.abs(E)/90)*90,K=1.5-(Math.sin(L*2*Math.PI/360)/2+Math.cos(L*2*Math.PI/360)/2),J=p.shadowScale,F=p.shadowScale/K,G=p.shadowOffset;N.transform(`scale3d(${J}, 1, ${F}) translate3d(0px, ${l/2+G}px, ${-l/2/F}px) rotateX(-90deg)`)}const I=yi.isSafari||yi.isUiWebView?-f/2:0;n.transform(`translate3d(0px,0,${I}px) rotateX(${e.isHorizontal()?0:E}deg) rotateY(${e.isHorizontal()?-E: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 K0={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create(){const e=this;It.extend(e,{cubeEffect:{setTranslate:Ug.setTranslate.bind(e),setTransition:Ug.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};It.extend(e.params,t),It.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 Yg={setTranslate(){const e=this,{slides:t,rtlTranslate:n}=e;for(let a=0;a<t.length;a+=1){const r=t.eq(a);let l=r[0].progress;e.params.flipEffect.limitRotation&&(l=Math.max(Math.min(r[0].progress,1),-1));const d=r[0].swiperSlideOffset;let p=-180*l,y=0,k=-d,E=0;if(e.isHorizontal()?n&&(p=-p):(E=k,k=0,y=-p,p=0),r[0].style.zIndex=-Math.abs(Math.round(l))+t.length,e.params.flipEffect.slideShadows){let N=e.isHorizontal()?r.find(".swiper-slide-shadow-left"):r.find(".swiper-slide-shadow-top"),I=e.isHorizontal()?r.find(".swiper-slide-shadow-right"):r.find(".swiper-slide-shadow-bottom");N.length===0&&(N=jt(`<div class="swiper-slide-shadow-${e.isHorizontal()?"left":"top"}"></div>`),r.append(N)),I.length===0&&(I=jt(`<div class="swiper-slide-shadow-${e.isHorizontal()?"right":"bottom"}"></div>`),r.append(I)),N.length&&(N[0].style.opacity=Math.max(-l,0)),I.length&&(I[0].style.opacity=Math.max(l,0))}r.transform(`translate3d(${k}px, ${E}px, 0px) rotateX(${y}deg) rotateY(${p}deg)`)}},setTransition(e){const t=this,{slides:n,activeIndex:a,$wrapperEl:r}=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 l=!1;n.eq(a).transitionEnd(function(){if(l||!t||t.destroyed)return;l=!0,t.animating=!1;const f=["webkitTransitionEnd","transitionend"];for(let p=0;p<f.length;p+=1)r.trigger(f[p])})}}};var q0={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create(){const e=this;It.extend(e,{flipEffect:{setTranslate:Yg.setTranslate.bind(e),setTransition:Yg.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};It.extend(e.params,t),It.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 Xg={setTranslate(){const e=this,{width:t,height:n,slides:a,$wrapperEl:r,slidesSizesGrid:l}=e,d=e.params.coverflowEffect,f=e.isHorizontal(),p=e.translate,y=f?-p+t/2:-p+n/2,k=f?d.rotate:-d.rotate,E=d.depth;for(let N=0,I=a.length;N<I;N+=1){const L=a.eq(N),K=l[N],J=L[0].swiperSlideOffset,F=(y-J-K/2)/K*d.modifier;let G=f?k*F:0,ot=f?0:k*F,dt=-E*Math.abs(F),_=f?0:d.stretch*F,$=f?d.stretch*F:0;Math.abs($)<.001&&($=0),Math.abs(_)<.001&&(_=0),Math.abs(dt)<.001&&(dt=0),Math.abs(G)<.001&&(G=0),Math.abs(ot)<.001&&(ot=0);const v=`translate3d(${$}px,${_}px,${dt}px) rotateX(${ot}deg) rotateY(${G}deg)`;if(L.transform(v),L[0].style.zIndex=-Math.abs(Math.round(F))+1,d.slideShadows){let mt=f?L.find(".swiper-slide-shadow-left"):L.find(".swiper-slide-shadow-top"),ft=f?L.find(".swiper-slide-shadow-right"):L.find(".swiper-slide-shadow-bottom");mt.length===0&&(mt=jt(`<div class="swiper-slide-shadow-${f?"left":"top"}"></div>`),L.append(mt)),ft.length===0&&(ft=jt(`<div class="swiper-slide-shadow-${f?"right":"bottom"}"></div>`),L.append(ft)),mt.length&&(mt[0].style.opacity=F>0?F:0),ft.length&&(ft[0].style.opacity=-F>0?-F:0)}}if(ae.pointerEvents||ae.prefixedPointerEvents){const N=r[0].style;N.perspectiveOrigin=`${y}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 $0={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create(){const e=this;It.extend(e,{coverflowEffect:{setTranslate:Xg.setTranslate.bind(e),setTransition:Xg.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 Md={init(){const e=this,{thumbs:t}=e.params,n=e.constructor;t.swiper instanceof n?(e.thumbs.swiper=t.swiper,It.extend(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),It.extend(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):It.isObject(t.swiper)&&(e.thumbs.swiper=new n(It.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&&jt(a).hasClass(e.params.thumbs.slideThumbActiveClass)||typeof n>"u"||n===null)return;let r;if(t.params.loop?r=parseInt(jt(t.clickedSlide).attr("data-swiper-slide-index"),10):r=n,e.params.loop){let l=e.activeIndex;e.slides.eq(l).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,l=e.activeIndex);const d=e.slides.eq(l).prevAll(`[data-swiper-slide-index="${r}"]`).eq(0).index(),f=e.slides.eq(l).nextAll(`[data-swiper-slide-index="${r}"]`).eq(0).index();typeof d>"u"?r=f:typeof f>"u"?r=d:f-l<l-d?r=f:r=d}e.slideTo(r)},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 d=n.activeIndex,f;if(n.params.loop){n.slides.eq(d).hasClass(n.params.slideDuplicateClass)&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,d=n.activeIndex);const p=n.slides.eq(d).prevAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index(),y=n.slides.eq(d).nextAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index();typeof p>"u"?f=y:typeof y>"u"?f=p:y-d===d-p?f=d:y-d<d-p?f=y:f=p}else f=t.realIndex;n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(f)<0&&(n.params.centeredSlides?f>d?f=f-Math.floor(a/2)+1:f=f+Math.floor(a/2)-1:f>d&&(f=f-a+1),n.slideTo(f,e?0:void 0))}let r=1;const l=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(r=t.params.slidesPerView),n.slides.removeClass(l),n.params.loop||n.params.virtual)for(let d=0;d<r;d+=1)n.$wrapperEl.children(`[data-swiper-slide-index="${t.realIndex+d}"]`).addClass(l);else for(let d=0;d<r;d+=1)n.slides.eq(t.realIndex+d).addClass(l)}};var H0={name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create(){const e=this;It.extend(e,{thumbs:{swiper:null,init:Md.init.bind(e),update:Md.update.bind(e),onThumbClick:Md.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 F0=[y0,b0,w0,k0,x0,S0,C0,E0,P0,M0,A0,N0,L0,B0,z0,I0,D0,R0,j0,O0,K0,q0,$0,H0];typeof Ua.use>"u"&&(Ua.use=Ua.Class.use,Ua.installModule=Ua.Class.installModule);Ua.use(F0);const W0=Object.freeze(Object.defineProperty({__proto__:null,default:Ua},Symbol.toStringTag,{value:"Module"})),_0=Uv(W0);var Rr={},Zg;function V0(){if(Zg)return Rr;Zg=1,Object.defineProperty(Rr,"__esModule",{value:!0});var e=sa();return Rr.classNames=function(t){return typeof t=="string"?t.split(".").join(" ").trim():t instanceof HTMLElement?t.className:""},Rr.validateChildren=function(t){var n=!0;return Array.isArray(t)?e.Children.forEach(t,function(a){e.isValidElement(a)||(n=!1)}):n=e.isValidElement(t),n},Rr.isReactElement=function(t){return e.isValidElement(t)&&(typeof t.type=="string"||typeof t.type=="function"||typeof t.type=="object")},Rr.isModuleAvailable=function(t,n){for(var a=!1,r=0;r<t.length;r++)if(t[r].name===n){a=!0;break}return a},Rr}var Jg;function G0(){if(Jg)return fi;Jg=1;var e=fi&&fi.__assign||function(){return e=Object.assign||function(p){for(var y,k=1,E=arguments.length;k<E;k++){y=arguments[k];for(var N in y)Object.prototype.hasOwnProperty.call(y,N)&&(p[N]=y[N])}return p},e.apply(this,arguments)},t=fi&&fi.__importStar||function(p){if(p&&p.__esModule)return p;var y={};if(p!=null)for(var k in p)Object.hasOwnProperty.call(p,k)&&(y[k]=p[k]);return y.default=p,y},n=fi&&fi.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(fi,"__esModule",{value:!0});var a=t(sa()),r=n(_0),l=n(kh()),d=V0(),f=function(p){var y=p.activeSlideKey,k=p.ContainerEl,E=p.children,N=p.containerClass,I=p.getSwiper,L=p.navigation,K=p.noSwiping,J=p.pagination,F=p.parallax,G=p.parallaxEl,ot=p.WrapperEl,dt=p.wrapperClass,_=p.rebuildOnUpdate,$=p.renderScrollbar,v=p.renderPagination,mt=p.renderPrevButton,ft=p.renderNextButton,Lt=p.renderParallax,Nt=p.rtl,At=p.scrollbar,tt=p.shouldSwiperUpdate,H=p.slideClass,s=p.loop,ht=a.createRef(),x=a.useRef(null);if(!E||!k||!ot)return null;if(!d.validateChildren(E))return console.warn("Children should be react element or an array of react element!!"),null;var lt=function(){if(!y)return null;var Mt=0,Ht=s?1:0;return a.Children.forEach(E,function(Qt){a.isValidElement(Qt)&&(Qt.key===y&&(Mt=Ht),Ht+=1)}),Mt},bt=function(Mt){typeof I=="function"&&I(Mt)},St=function(){x.current!==null&&(x.current.destroy(!0,!0),x.current=null,bt(x.current))},O=function(){ht.current&&x.current===null&&(x.current=new r.default(ht.current,l.default({},p)),bt(x.current))},wt=function(){St(),O()},xt=function(){x.current!==null&&(x.current.update(),bt(x.current))},Ot=function(Mt){if(!d.isReactElement(Mt))return null;var Ht=[H,Mt.props.className];return K&&Ht.push("swiper-no-swiping"),a.cloneElement(Mt,e({},Mt.props,{className:Ht.join(" ").trim()}))};return a.useEffect(function(){O();var Mt=lt();return x.current!==null&&Mt!==null&&x.current.slideTo(Mt),function(){return St()}},[]),a.useEffect(function(){if(x.current!==null){if(_)wt();else if(tt){xt();var Mt=x.current.slides.length;if(Mt<=x.current.activeIndex){var Ht=Math.max(Mt-1,0);x.current.slideTo(Ht)}}var Qt=lt();Qt!==null&&x.current.slideTo(Qt)}}),a.default.createElement(k,{className:N,dir:Nt&&"rtl",ref:ht},F&&G&&Lt&&Lt(p),a.default.createElement(ot,{className:dt},a.Children.map(E,Ot)),J&&J.el&&v&&v(p),At&&At.el&&$&&$(p),L&&L.nextEl&&ft&&ft(p),L&&L.prevEl&&mt&&mt(p))};return f.defaultProps={containerClass:"swiper-container",wrapperClass:"swiper-wrapper",slideClass:"swiper-slide",ContainerEl:"div",WrapperEl:"div",renderScrollbar:function(p){var y=p.scrollbar;return y?a.default.createElement("div",{className:d.classNames(y.el)}):null},renderPagination:function(p){var y=p.pagination;return y?a.default.createElement("div",{className:d.classNames(y.el)}):null},renderPrevButton:function(p){var y=p.navigation;return y?a.default.createElement("div",{className:d.classNames(y.prevEl)}):null},renderNextButton:function(p){var y=p.navigation;return y?a.default.createElement("div",{className:d.classNames(y.nextEl)}):null},renderParallax:function(p){var y=p.parallaxEl;return y?a.default.createElement("div",{className:d.classNames(y.el),"data-swiper-parallax":y.value}):null}},f.displayName="ReactIdSwiper",fi.default=f,fi}var Qg;function U0(){if(Qg)return To;Qg=1;var e=To&&To.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(To,"__esModule",{value:!0});var t=e(G0());return To.default=t.default,To}var Y0=U0();const X0=On(Y0);class rr{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 Z0{static getActualUrlFromCSSPropertyValue(t){const n=t.match(/.*url\((['"])(.*?)\1\).*/i);return n?n[2]:""}}const hi=class hi{constructor(){this.animationDuration=3e3,this.animatableCanvas=null,window.addEventListener("orientationchange",()=>window.setTimeout(()=>this.adjustAnimationWrapper(this.currentPage),200))}static pageHasAnimation(t){return!!hi.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(hi.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=hi.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,r=null;if(!a||!a.classList.contains("bloom-animationBackground")){a=document.createElement("div");for(let f=0;f<this.animatableCanvas.classList.length;f++)a.classList.add(this.animatableCanvas.classList[f]);a.classList.add("bloom-animationBackground");const l=this.animatableCanvas.cloneNode(!0),d=()=>{const f=this.animatableCanvas.style.backgroundImage;f?l.style.backgroundImage=f:requestAnimationFrame(d)};l.hasAttribute("data-imgsizebasedon")||requestAnimationFrame(d),r=document.createElement("div"),r.classList.add(hi.wrapperClassName),r.appendChild(l),r.style.visibility="hidden",a.appendChild(r),t.insertBefore(a,t.firstChild),this.applyCanvasAspectRatioToAnimationWrapper(t,r,l,n)}else r=a.firstElementChild,r.hasAttribute("data-aspectRatio")?(this.placeAnimationWrapper(r),this.createAndPlayAnimation(t,n)):this.applyCanvasAspectRatioToAnimationWrapper(t,r,r.firstElementChild,n)}createAndPlayAnimation(t,n){const a=hi.getAnimationCanvas(t);if(this.animationEngine&&this.animationEngine.endAnimation(),a){const r=a.getAttribute("data-initialrect"),l=a.getAttribute("data-finalrect");this.animationEngine=new J0(r,l,this.animationDuration,a),n?this.animationEngine.setCurrentAnimationFrame():this.animationEngine.startAnimation()}}applyCanvasAspectRatioToAnimationWrapper(t,n,a,r){if(t.hasAttribute("data-aspectRatio"))this.placeAnimationWrapper(n),this.createAndPlayAnimation(t,r);else if(a.hasAttribute("data-imgsizebasedon")){const l=a.getAttribute("data-imgsizebasedon").split(",").map(parseFloat);n.setAttribute("data-aspectRatio",(l[0]/l[1]).toString()),this.placeAnimationWrapper(n),this.createAndPlayAnimation(t,r)}else{const l=()=>{if(a.style.backgroundImage){const d=new Image;d.addEventListener("load",()=>{n.setAttribute("data-aspectRatio",(d.naturalWidth/d.naturalHeight).toString()),this.placeAnimationWrapper(n),this.createAndPlayAnimation(t,r)}),d.src=Z0.getActualUrlFromCSSPropertyValue(a.style.backgroundImage)}else requestAnimationFrame(l)};requestAnimationFrame(l)}}placeAnimationWrapper(t){const n=parseFloat(t.getAttribute("data-aspectRatio")),a=t.parentElement,r=a.clientWidth,l=a.clientHeight,d=r/l;if(n<d){const f=l*n;t.style.height="100%",t.style.width=`${f}px`,t.style.left=`${(r-f)/2}px`}else{const f=r/n;t.style.width="100%",t.style.height=`${f}px`,t.style.top=`${(l-f)/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),r=[t.clientWidth,t.clientHeight];n.style.width=`${a[0]}px`,n.style.height=`${a[1]}px`,n.style.scale=`${r[0]/a[0]}`,n.style.top=`${(r[1]-a[1])/2}px`,n.style.left=`${(r[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=hi.getAnimationCanvas(t);if(!n||n.children.length!==1)return null;const a=n.firstElementChild;return a.classList.contains(hi.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}};hi.wrapperClassName="bloom-ui-animationWrapper";let Eu=hi;class J0{constructor(t,n,a,r){this.duration=a*1e3,this.totalElapsedTime=0,this.lastFrameTime=Date.now(),this.paused=!0,this.canvasToAnimate=r;const l=t.split(" ").map(parseFloat),d=n.split(" ").map(parseFloat);l.length!=4||d.length!=4||Math.min(...d)<0||Math.min(...l)<0||l[0]+l[2]>1.01||l[1]+l[3]>1.01||d[0]+d[2]>1.01||d[1]+d[3]>1.01?(this.initialScale=1,this.finalScale=1,this.initialLeft=0,this.finalLeft=0,this.initialTop=0,this.finalTop=0):(l[0],d[0],l[1],d[1],this.initialScale=1/Math.min(l[2],l[3]),this.initialScale==1&&(this.initialScale=1.0001),this.finalScale=1/Math.min(d[2],d[3]),this.finalScale==1&&(this.finalScale=1.0001),this.initialLeft=this.initialScale*100*(.5-(.5*l[2]+l[0])),this.initialTop=this.initialScale*100*(.5-(.5*l[3]+l[1])),this.finalLeft=this.finalScale*100*(.5-(.5*d[2]+d[0])),this.finalTop=this.finalScale*100*(.5-(.5*d[3]+d[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,r=this.initialLeft+(this.finalLeft-this.initialLeft)*n,l=this.initialTop+(this.finalTop-this.initialTop)*n;return{scale:a,left:r,top:l}}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}}let Do;function Q0(e){Do&&Do!==e&&console.warn("bloom-player: registering a current player while another is still registered"),Do=e}function tx(e){Do===e&&(Do=void 0)}function Zv(){return Do}var Cn=(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))(Cn||{});let oa=0;function Yn(e){oa=e}let Ff;function ex(e){Ff=e}let Jv;function nx(e){Jv=e}let Qv=()=>{};function ax(e){Qv=e??(()=>{})}let Wf="";function ix(e){Wf=e}function rx(e){const t=e.lastIndexOf("/");return e.substring(0,t)}function Ch(){return Wf||rx(window.location.href)}function ox(e){const t=e.map((n,a)=>({tabindex:sx(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 sx(e){let t=e;for(;t&&!t.classList.contains("bloom-translationGroup");)t=t.parentElement;return t&&t.getAttribute("tabindex")||"999"}const lx="bloom-highlightSegment",ty="ui-enableHighlight",Th="ui-disableHighlight",Ad="ui-suppressHighlight";let Pu=3;function ux(e){Pu=e}const Mu="audio-sentence",ey="bloom-imageDescription";let Ii=null,Vs=0;function ny(e){e!==Ii&&(Vs&&clearTimeout(Vs),Vs=setTimeout(()=>{Vs=0},3e3),Ii=e)}function ay(){return Ii}let Eh,Au,Ro="",Ca=[],ar=[];const Oo=new rr,nl=new rr,al=new rr,_f=new rr,Ko=new rr;let il=0,iy=!0;function cx(e){iy=e}let Nu=null;function ry(e,t){if(!e&&!Ii)return;const n=e??Ii;_u(Lh(n,t),n)}function _u(e,t){ny(t),Au=e;const n=or();n&&(e.length==0&&n.pause(),n.currentTime=0),++il,dx(e),Ca=ox(e).reverse();const a=Ca.length;if(a===0){nl&&nl?.raise(t),Yn(4),Oo&&(Eh=window.setTimeout(()=>{Yn(6),Oo?.raise(t)},Pu*1e3));return}const r=Ca[a-1];vy(),a>=2&&my(Ca[a-2]),hy(r,!0),Yn(4),uy()}const oy=/[ \u00a0\u200b]{3,}/,uu=new RegExp(oy,"g");function dx(e){e.forEach(t=>{Nh("span[id]:not(.bloom-linebreak)",t,!0).forEach(a=>{sy(a),a.innerText.match(oy)&&ly(a,a)})})}function sy(e){e.classList.remove(Th),e.classList.remove(ty),Array.from(e.children).forEach(t=>{sy(t)})}function ly(e,t){if(!(e.nodeType===Node.ELEMENT_NODE&&e.classList.contains(Th)))if(e.nodeType===Node.TEXT_NODE){fx(e,t);return}else Array.from(e.childNodes).forEach(a=>{ly(a,t)})}function fx(e,t){if(e.nodeType!==Node.TEXT_NODE)throw new Error("Invalid argument to fixMultiSpaceInTextNode: node must be a TextNode");if(!e.nodeValue)return;uu.lastIndex=0;const n=[];let a;for(;(a=uu.exec(e.nodeValue))!=null;)a.forEach(d=>{n.push({text:d,startIndex:uu.lastIndex-d.length,endIndex:uu.lastIndex})});const r=[];if(n.length===0)r.push(Nd(e.nodeValue));else{let d=0;for(let f=0;f<n.length;++f){const p=n[f],y=e.nodeValue.slice(d,p.startIndex);if(d=p.endIndex,y&&r.push(Nd(y)),r.push(document.createTextNode(p.text)),f===n.length-1){const k=e.nodeValue.slice(p.endIndex);k&&r.push(Nd(k))}}}const l=e;if(l.parentNode&&r&&r.length>0){for(let d=0;d<r.length;++d){const f=r[d];l.parentNode.insertBefore(f,l)}l.parentNode.removeChild(l),t.classList.add(Th)}}function Nd(e){const t=document.createElement("span");return t.classList.add(ty),t.appendChild(document.createTextNode(e)),t}function uy(){if(oa===4){const e=or();if(e){const t=ay().querySelector(`#${Ro}`);if(!t){Vu();return}ar=[];const n=t.getAttribute("data-audioRecordingEndTimes");if(n){const d=t.querySelectorAll(`span.${lx}`),f=n.split(" "),p=Math.min(f.length,d.length);for(let y=p-1;y>=0;--y){const k=Number(f[y]);isNaN(k)||ar.push([d.item(y),k])}}const a=t;a&&Ko&&Ko?.raise(cy(a)),Vf=!1;const r=e.play();++il,Nu=new Date().getTime(),Ph(il);const l=Ca.length-2;l>=0&&my(Ca[l]),dy(r)}}}function cy(e){return e.closest("."+ey)!==null}function dy(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"&&al&&al?.raise()})}function Ph(e,t=0){const n=ar.length;if(n<=0)return;const a=ar[n-1],r=a[0],l=a[1];py({newElement:r,shouldScrollToElement:!0,disableHighlightIfNoAudio:!1});let f=document.getElementById("bloom-audio-player").currentTime;f<=0&&(f=t);const p=Math.max(l-f,.1);setTimeout(()=>{fy(e)},p*1e3)}function fy(e){if(e!==il||oa===5)return;const t=ar.length;if(t<=0)return;const n=document.getElementById("bloom-audio-player");if(n.ended||n.error)return;const a=n.currentTime,l=ar[t-1][1];if(a&&a<l){const d=l-a;setTimeout(()=>{fy(e)},d*1e3);return}ar.pop(),Ph(e,l)}function Mh(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 hy(e,t,n){gx(e),py({newElement:e,shouldScrollToElement:!0,disableHighlightIfNoAudio:t,oldElement:n})}function py({newElement:e,shouldScrollToElement:t,disableHighlightIfNoAudio:n,oldElement:a}){try{hx(e)}catch(f){console.error(f)}if(a===e)return;Mh(a||e);const r=or(),l=r.error!==null;!l&&n&&(!r.paused&&!r.ended||(e.classList.add(Ad),cu&&r.removeEventListener("playing",cu),du&&r.removeEventListener("error",du),cu=()=>{e.classList.remove(Ad)},du=()=>{e.classList.remove("ui-audioCurrent"),e.classList.remove(Ad)},r.addEventListener("playing",cu),r.addEventListener("error",du))),l||e.classList.add("ui-audioCurrent");const d=e.closest(".bloom-translationGroup");if(d&&d.classList.contains(ey)){const f=d.closest(".bloom-imageContainer, .bloom-canvas");f&&f.classList.add("ui-audioCurrentImg")}}function hx(e){if(Jv?.()||Vs){const n=px(e);n&&(n.scrollTop=0);return}let t=e;if(window.getComputedStyle(e.parentElement).position!=="static"){const n=e;t=document.createElement("div"),t.style.position="absolute",t.style.top=n.offsetTop+"px";const a=n.getBoundingClientRect(),r=n.parentElement,l=r?.getBoundingClientRect(),d=l.width/r.offsetWidth,f=(a.left-l.left)/d;t.style.left=f+n.offsetWidth/2+"px",t.style.height=n.offsetHeight+"px",t.style.width="0",e.parentElement?.insertBefore(t,e)}t.scrollIntoView({behavior:"smooth",block:"nearest"}),t!==e&&t.parentElement?.removeChild(t)}function px(e){return e.classList.contains("bloom-editable")?e:e.closest(".bloom-editable")}function gx(e){const t=gy(e),n=t?t.id:e.id;vx(n)}function gy(e){const t=mx(e);return!t||t.length===0?null:t[0]}function mx(e){const t=[];if(e)if(e.classList.contains(Mu))t.push(e);else{const n=e.getElementsByClassName(Mu);for(let a=0;a<n.length;++a){const r=n.item(a);r&&t.push(r)}}return t}function vx(e){(!Ro||Ro!==e)&&(Ro=e,bx())}let Lu="",Bu="",cu=null,du=null;function yx(){let e=document.getElementById("bloom-audio-preload");return e||(e=document.createElement("audio"),e.id="bloom-audio-preload",document.body.appendChild(e)),e}function my(e){const t=gy(e)??e,n=t.id;if(Lu===n)return;const a=yy(n,t)+"?nocache="+new Date().getTime()+"&optional=true";Lu=n,Bu=a;const r=yx();r.src=a,r.load()}function vy(){Lu="",Bu=""}function bx(){const e=or();if(!e)return;e.currentTime>0&&!e.paused&&!e.ended&&Ah();const t=yy(Ro);Qv(t);let n;Lu===Ro&&Bu?(n=Bu,vy()):n=t+"?nocache="+new Date().getTime()+"&optional=true",e.setAttribute("src",n)}function wx(e,t){return t?.getAttribute("data-audio-src")||e+".mp3"}function yy(e,t){const n=t??Ii?.querySelector(`[id="${e}"]`)??document.getElementById(e);return Ch()+"/audio/"+wx(e,n)}function or(){return Cx("bloom-audio-player",t=>{t.addEventListener("ended",kx),t.addEventListener("error",Tx)})}function kx(){Vu()}function xx(){oa===4&&Vu(!1)}function Vu(e=!0){if(Ko&&Ko?.raise(!1),Ah(),Ca&&Ca.length>0){const t=Ca.pop(),n=Ca.length;if(n>0&&e){const a=Ca[n-1];hy(a,!0),uy()}else Sx(),Mh(t),or().pause()}}function Sx(){Ca=[],ar=[],Mh(),Oo?.raise(Ii),nl?.raise()}function Ah(){if(!Nu||!Ff)return;const t=(new Date().getTime()-Nu)/1e3;Ff(t)}function Cx(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}let Vf=!1;function Tx(){if(Vf){console.log("Already got error playing, not handling again");return}Vf=!0,console.log("Error playing, handling"),setTimeout(()=>{Vu()},100)}function Nh(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(r=>!cy(r))}function Ex(e,t){var n=Nh(".bloom-editable",e).filter(a=>window.getComputedStyle(a).display!=="none");return t&&(n=n.filter(a=>!t.contains(a))),n}function Px(e,t){return Ex(e||Ii,t)}function Lh(e,t){return[].concat.apply([],Px(e,t).map(n=>Nh(".audio-sentence",n,!0)))}function Mx(e){return!!Lh(e).length}function Ax(){if(oa!==4){if(Yn(4),Au.length&&or())if(Ca.length){dy(or().play()),Nu=new Date().getTime(),Ph(il);return}else{ry(null);return}Oo?.raise(Ii)}}function Nx(){oa!==5&&(Lx(),Yn(5))}function Lx(){const e=or();clearTimeout(Eh),Au&&Au.length&&e&&(e.currentTime>0&&!e.paused&&!e.ended&&Ah(),e.pause())}function tm(e){let t=0;return Lh(e).forEach(n=>{const a=n.getAttribute("data-duration");a&&(t+=parseFloat(a))}),t<Pu&&(t=Pu),t}function Bx(){clearTimeout(Eh),Bh()}let Lo=0,Bo;const Bs=new WeakMap;function Bh(){Lo++,Bo&&(Bo.pause(),Bo.currentTime=0,Bo=void 0)}function by(e){return e?e.name==="AbortError"?!0:(typeof e.message=="string"&&e.message||(typeof e.toString=="function"?e.toString():"")).includes("interrupted by a call to pause()"):!1}const ku=new WeakMap;function Gu(e){ku.get(e)?.()}function Gf(e,t=()=>!0,n=()=>xy(e)){if(!e.paused)return;Gu(e);const a=e.muted;let r,l=!1;const d=()=>{l||(l=!0,ku.get(e)===f&&ku.delete(e),window.clearTimeout(r),e.removeEventListener("playing",p),e.muted=a)},f=()=>{d(),e.removeAttribute("poster")};ku.set(e,f);const p=()=>{if(qo(e),!t()){d(),e.removeAttribute("poster");return}const k=()=>{l||(t()&&e.pause(),d(),e.removeAttribute("poster"))},E=e.requestVideoFrameCallback;E?E.call(e,()=>{k()}):setTimeout(()=>{k()},4)};e.addEventListener("playing",p,{once:!0}),r=window.setTimeout(()=>{t()&&!e.paused&&e.pause(),d(),e.removeAttribute("poster")},3e3),qo(e),e.muted=!0;const y=e.play();y&&y.catch&&y.catch(k=>{d(),k?.name==="NotAllowedError"&&(e.removeAttribute("poster"),n())})}function wy(e,t){const n=++Lo;Gs(e,t,n)}function ky(e,t){return e.networkState===HTMLMediaElement.NETWORK_NO_SOURCE&&e.readyState===HTMLMediaElement.HAVE_NOTHING}function Gs(e,t,n){if(n!==Lo)return;if(e.length===0){Bo=void 0,t();return}const a=e[0];if(Bo=a,ky(a))Bs.delete(a),zu(a),Gs(e.slice(1),t,n);else{Sy(a),qo(a),Yn(2),Gu(a),a.currentTime=0;let r=!1,l;const d=250,f=()=>{l!==void 0&&(window.clearTimeout(l),l=void 0)},p=()=>{const L=a.duration;if(!Number.isFinite(L)||L<=0)return;f();const K=Number.isFinite(a.playbackRate)&&a.playbackRate>0?a.playbackRate:1,J=Math.max(L*1e3/K+d,d);l=window.setTimeout(()=>{y()},J)},y=()=>{r||(r=!0,f(),a.removeEventListener("ended",k),a.removeEventListener("pause",E),a.removeEventListener("loadedmetadata",N),n===Lo&&Gs(e.slice(1),t,n))},k=()=>{y()},E=()=>{const L=a.duration;!Number.isFinite(L)||L<=0||a.currentTime>=L-.05&&y()},N=()=>{p()};a.addEventListener("ended",k,{once:!0}),a.addEventListener("pause",E),a.addEventListener("loadedmetadata",N),a.play().then(()=>{n===Lo&&(Bs.delete(a),qo(a),p())}).catch(L=>{if(n!==Lo)return;if(f(),a.removeEventListener("ended",k),a.removeEventListener("pause",E),a.removeEventListener("loadedmetadata",N),L?.name==="NotAllowedError"){console.debug("Video autoplay blocked until user interaction"),xy(a);return}const K=Bs.get(a)??0;if(by(L)&&K<2){Bs.set(a,K+1),window.setTimeout(()=>{Gs(e,t,n)},50);return}console.error("Video play failed",L),Bs.delete(a),zu(a),Gs(e.slice(1),t,n)})}}const zx="Sorry, this video cannot be played in this browser.";function zu(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=zx,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",a.style.pointerEvents="none",t.appendChild(a)}}function xy(e){(e.closest(".bloom-videoContainer")||e.parentElement)?.classList.add("autoplayBlocked")}function qo(e){(e.closest(".bloom-videoContainer")||e.parentElement)?.classList.remove("autoplayBlocked")}function Sy(e){const t=e.parentElement;if(t){const n=t.getElementsByClassName("video-error-message");for(;n.length>0;)t.removeChild(n[0])}}const Ix=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">
|
|
1
|
+
function On(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Uv(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function a(){var r=!1;try{r=this instanceof a}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}),n}var xd={exports:{}},De={};var Sd,Og;function kh(){if(Og)return Sd;Og=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function a(l){if(l==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(l)}function r(){try{if(!Object.assign)return!1;var l=new String("abc");if(l[5]="de",Object.getOwnPropertyNames(l)[0]==="5")return!1;for(var d={},f=0;f<10;f++)d["_"+String.fromCharCode(f)]=f;var p=Object.getOwnPropertyNames(d).map(function(k){return d[k]});if(p.join("")!=="0123456789")return!1;var y={};return"abcdefghijklmnopqrst".split("").forEach(function(k){y[k]=k}),Object.keys(Object.assign({},y)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Sd=r()?Object.assign:function(l,d){for(var f,p=a(l),y,k=1;k<arguments.length;k++){f=Object(arguments[k]);for(var E in f)t.call(f,E)&&(p[E]=f[E]);if(e){y=e(f);for(var N=0;N<y.length;N++)n.call(f,y[N])&&(p[y[N]]=f[y[N]])}}return p},Sd}var Kg;function Aw(){if(Kg)return De;Kg=1;var e=kh(),t=60103,n=60106;De.Fragment=60107,De.StrictMode=60108,De.Profiler=60114;var a=60109,r=60110,l=60112;De.Suspense=60113;var d=60115,f=60116;if(typeof Symbol=="function"&&Symbol.for){var p=Symbol.for;t=p("react.element"),n=p("react.portal"),De.Fragment=p("react.fragment"),De.StrictMode=p("react.strict_mode"),De.Profiler=p("react.profiler"),a=p("react.provider"),r=p("react.context"),l=p("react.forward_ref"),De.Suspense=p("react.suspense"),d=p("react.memo"),f=p("react.lazy")}var y=typeof Symbol=="function"&&Symbol.iterator;function k(x){return x===null||typeof x!="object"?null:(x=y&&x[y]||x["@@iterator"],typeof x=="function"?x:null)}function E(x){for(var lt="https://reactjs.org/docs/error-decoder.html?invariant="+x,bt=1;bt<arguments.length;bt++)lt+="&args[]="+encodeURIComponent(arguments[bt]);return"Minified React error #"+x+"; visit "+lt+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},I={};function L(x,lt,bt){this.props=x,this.context=lt,this.refs=I,this.updater=bt||N}L.prototype.isReactComponent={},L.prototype.setState=function(x,lt){if(typeof x!="object"&&typeof x!="function"&&x!=null)throw Error(E(85));this.updater.enqueueSetState(this,x,lt,"setState")},L.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function K(){}K.prototype=L.prototype;function J(x,lt,bt){this.props=x,this.context=lt,this.refs=I,this.updater=bt||N}var F=J.prototype=new K;F.constructor=J,e(F,L.prototype),F.isPureReactComponent=!0;var G={current:null},ot=Object.prototype.hasOwnProperty,dt={key:!0,ref:!0,__self:!0,__source:!0};function _(x,lt,bt){var St,O={},wt=null,xt=null;if(lt!=null)for(St in lt.ref!==void 0&&(xt=lt.ref),lt.key!==void 0&&(wt=""+lt.key),lt)ot.call(lt,St)&&!dt.hasOwnProperty(St)&&(O[St]=lt[St]);var Ot=arguments.length-2;if(Ot===1)O.children=bt;else if(1<Ot){for(var Mt=Array(Ot),Ht=0;Ht<Ot;Ht++)Mt[Ht]=arguments[Ht+2];O.children=Mt}if(x&&x.defaultProps)for(St in Ot=x.defaultProps,Ot)O[St]===void 0&&(O[St]=Ot[St]);return{$$typeof:t,type:x,key:wt,ref:xt,props:O,_owner:G.current}}function $(x,lt){return{$$typeof:t,type:x.type,key:lt,ref:x.ref,props:x.props,_owner:x._owner}}function v(x){return typeof x=="object"&&x!==null&&x.$$typeof===t}function mt(x){var lt={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(bt){return lt[bt]})}var ft=/\/+/g;function Lt(x,lt){return typeof x=="object"&&x!==null&&x.key!=null?mt(""+x.key):lt.toString(36)}function Nt(x,lt,bt,St,O){var wt=typeof x;(wt==="undefined"||wt==="boolean")&&(x=null);var xt=!1;if(x===null)xt=!0;else switch(wt){case"string":case"number":xt=!0;break;case"object":switch(x.$$typeof){case t:case n:xt=!0}}if(xt)return xt=x,O=O(xt),x=St===""?"."+Lt(xt,0):St,Array.isArray(O)?(bt="",x!=null&&(bt=x.replace(ft,"$&/")+"/"),Nt(O,lt,bt,"",function(Ht){return Ht})):O!=null&&(v(O)&&(O=$(O,bt+(!O.key||xt&&xt.key===O.key?"":(""+O.key).replace(ft,"$&/")+"/")+x)),lt.push(O)),1;if(xt=0,St=St===""?".":St+":",Array.isArray(x))for(var Ot=0;Ot<x.length;Ot++){wt=x[Ot];var Mt=St+Lt(wt,Ot);xt+=Nt(wt,lt,bt,Mt,O)}else if(Mt=k(x),typeof Mt=="function")for(x=Mt.call(x),Ot=0;!(wt=x.next()).done;)wt=wt.value,Mt=St+Lt(wt,Ot++),xt+=Nt(wt,lt,bt,Mt,O);else if(wt==="object")throw lt=""+x,Error(E(31,lt==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":lt));return xt}function At(x,lt,bt){if(x==null)return x;var St=[],O=0;return Nt(x,St,"","",function(wt){return lt.call(bt,wt,O++)}),St}function tt(x){if(x._status===-1){var lt=x._result;lt=lt(),x._status=0,x._result=lt,lt.then(function(bt){x._status===0&&(bt=bt.default,x._status=1,x._result=bt)},function(bt){x._status===0&&(x._status=2,x._result=bt)})}if(x._status===1)return x._result;throw x._result}var H={current:null};function s(){var x=H.current;if(x===null)throw Error(E(321));return x}var ht={ReactCurrentDispatcher:H,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:G,IsSomeRendererActing:{current:!1},assign:e};return De.Children={map:At,forEach:function(x,lt,bt){At(x,function(){lt.apply(this,arguments)},bt)},count:function(x){var lt=0;return At(x,function(){lt++}),lt},toArray:function(x){return At(x,function(lt){return lt})||[]},only:function(x){if(!v(x))throw Error(E(143));return x}},De.Component=L,De.PureComponent=J,De.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ht,De.cloneElement=function(x,lt,bt){if(x==null)throw Error(E(267,x));var St=e({},x.props),O=x.key,wt=x.ref,xt=x._owner;if(lt!=null){if(lt.ref!==void 0&&(wt=lt.ref,xt=G.current),lt.key!==void 0&&(O=""+lt.key),x.type&&x.type.defaultProps)var Ot=x.type.defaultProps;for(Mt in lt)ot.call(lt,Mt)&&!dt.hasOwnProperty(Mt)&&(St[Mt]=lt[Mt]===void 0&&Ot!==void 0?Ot[Mt]:lt[Mt])}var Mt=arguments.length-2;if(Mt===1)St.children=bt;else if(1<Mt){Ot=Array(Mt);for(var Ht=0;Ht<Mt;Ht++)Ot[Ht]=arguments[Ht+2];St.children=Ot}return{$$typeof:t,type:x.type,key:O,ref:wt,props:St,_owner:xt}},De.createContext=function(x,lt){return lt===void 0&&(lt=null),x={$$typeof:r,_calculateChangedBits:lt,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider={$$typeof:a,_context:x},x.Consumer=x},De.createElement=_,De.createFactory=function(x){var lt=_.bind(null,x);return lt.type=x,lt},De.createRef=function(){return{current:null}},De.forwardRef=function(x){return{$$typeof:l,render:x}},De.isValidElement=v,De.lazy=function(x){return{$$typeof:f,_payload:{_status:-1,_result:x},_init:tt}},De.memo=function(x,lt){return{$$typeof:d,type:x,compare:lt===void 0?null:lt}},De.useCallback=function(x,lt){return s().useCallback(x,lt)},De.useContext=function(x,lt){return s().useContext(x,lt)},De.useDebugValue=function(){},De.useEffect=function(x,lt){return s().useEffect(x,lt)},De.useImperativeHandle=function(x,lt,bt){return s().useImperativeHandle(x,lt,bt)},De.useLayoutEffect=function(x,lt){return s().useLayoutEffect(x,lt)},De.useMemo=function(x,lt){return s().useMemo(x,lt)},De.useReducer=function(x,lt,bt){return s().useReducer(x,lt,bt)},De.useRef=function(x){return s().useRef(x)},De.useState=function(x){return s().useState(x)},De.version="17.0.2",De}var qg;function sa(){return qg||(qg=1,xd.exports=Aw()),xd.exports}var R=sa();const Rt=On(R);var To={},di={};function $g(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function xh(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(function(n){typeof e[n]>"u"?e[n]=t[n]:$g(t[n])&&$g(e[n])&&Object.keys(t[n]).length>0&&xh(e[n],t[n])})}var Ua=typeof document<"u"?document:{},Yv={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:""}};xh(Ua,Yv);var Ya=typeof window<"u"?window:{},Nw={document:Yv,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{}}};xh(Ya,Nw);class We{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 jt(e,t){const n=[];let a=0;if(e&&!t&&e instanceof We)return e;if(e){if(typeof e=="string"){let r,l;const d=e.trim();if(d.indexOf("<")>=0&&d.indexOf(">")>=0){let f="div";for(d.indexOf("<li")===0&&(f="ul"),d.indexOf("<tr")===0&&(f="tbody"),(d.indexOf("<td")===0||d.indexOf("<th")===0)&&(f="tr"),d.indexOf("<tbody")===0&&(f="table"),d.indexOf("<option")===0&&(f="select"),l=Ua.createElement(f),l.innerHTML=d,a=0;a<l.childNodes.length;a+=1)n.push(l.childNodes[a])}else for(!t&&e[0]==="#"&&!e.match(/[ .<>:~]/)?r=[Ua.getElementById(e.trim().split("#")[1])]:r=(t||Ua).querySelectorAll(e.trim()),a=0;a<r.length;a+=1)r[a]&&n.push(r[a])}else if(e.nodeType||e===Ya||e===Ua)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 We(n)}jt.fn=We.prototype;jt.Class=We;jt.Dom7=We;function Sh(e){const t=[];for(let n=0;n<e.length;n+=1)t.indexOf(e[n])===-1&&t.push(e[n]);return t}function Lw(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 Bw(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 zw(e){return this[0]?this[0].classList.contains(e):!1}function Iw(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 Dw(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 Rw(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function jw(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 Ow(e){for(let t=0;t<this.length;t+=1){const n=this[t].style;n.webkitTransform=e,n.transform=e}return this}function Kw(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 qw(...e){let[t,n,a,r]=e;typeof e[1]=="function"&&([t,a,r]=e,n=void 0),r||(r=!1);function l(y){const k=y.target;if(!k)return;const E=y.target.dom7EventData||[];if(E.indexOf(y)<0&&E.unshift(y),jt(k).is(n))a.apply(k,E);else{const N=jt(k).parents();for(let I=0;I<N.length;I+=1)jt(N[I]).is(n)&&a.apply(N[I],E)}}function d(y){const k=y&&y.target?y.target.dom7EventData||[]:[];k.indexOf(y)<0&&k.unshift(y),a.apply(this,k)}const f=t.split(" ");let p;for(let y=0;y<this.length;y+=1){const k=this[y];if(n)for(p=0;p<f.length;p+=1){const E=f[p];k.dom7LiveListeners||(k.dom7LiveListeners={}),k.dom7LiveListeners[E]||(k.dom7LiveListeners[E]=[]),k.dom7LiveListeners[E].push({listener:a,proxyListener:l}),k.addEventListener(E,l,r)}else for(p=0;p<f.length;p+=1){const E=f[p];k.dom7Listeners||(k.dom7Listeners={}),k.dom7Listeners[E]||(k.dom7Listeners[E]=[]),k.dom7Listeners[E].push({listener:a,proxyListener:d}),k.addEventListener(E,d,r)}}return this}function $w(...e){let[t,n,a,r]=e;typeof e[1]=="function"&&([t,a,r]=e,n=void 0),r||(r=!1);const l=t.split(" ");for(let d=0;d<l.length;d+=1){const f=l[d];for(let p=0;p<this.length;p+=1){const y=this[p];let k;if(!n&&y.dom7Listeners?k=y.dom7Listeners[f]:n&&y.dom7LiveListeners&&(k=y.dom7LiveListeners[f]),k&&k.length)for(let E=k.length-1;E>=0;E-=1){const N=k[E];a&&N.listener===a||a&&N.listener&&N.listener.dom7proxy&&N.listener.dom7proxy===a?(y.removeEventListener(f,N.proxyListener,r),k.splice(E,1)):a||(y.removeEventListener(f,N.proxyListener,r),k.splice(E,1))}}}return this}function Hw(...e){const t=e[0].split(" "),n=e[1];for(let a=0;a<t.length;a+=1){const r=t[a];for(let l=0;l<this.length;l+=1){const d=this[l];let f;try{f=new Ya.CustomEvent(r,{detail:n,bubbles:!0,cancelable:!0})}catch{f=Ua.createEvent("Event"),f.initEvent(r,!0,!0),f.detail=n}d.dom7EventData=e.filter((p,y)=>y>0),d.dispatchEvent(f),d.dom7EventData=[],delete d.dom7EventData}}return this}function Fw(e){const t=["webkitTransitionEnd","transitionend"],n=this;let a;function r(l){if(l.target===this)for(e.call(this,l),a=0;a<t.length;a+=1)n.off(t[a],r)}if(e)for(a=0;a<t.length;a+=1)n.on(t[a],r);return this}function Ww(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 _w(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 Vw(){if(this.length>0){const e=this[0],t=e.getBoundingClientRect(),n=Ua.body,a=e.clientTop||n.clientTop||0,r=e.clientLeft||n.clientLeft||0,l=e===Ya?Ya.scrollY:e.scrollTop,d=e===Ya?Ya.scrollX:e.scrollLeft;return{top:t.top+l-a,left:t.left+d-r}}return null}function Gw(){return this[0]?Ya.getComputedStyle(this[0],null):{}}function Uw(e,t){let n;if(arguments.length===1)if(typeof e=="string"){if(this[0])return Ya.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 Yw(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 Xw(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 Zw(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 Jw(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=jt(e),a=0;a<n.length;a+=1)if(n[a]===t)return!0;return!1}else{if(e===Ua)return t===Ua;if(e===Ya)return t===Ya}if(e.nodeType||e instanceof We){for(n=e.nodeType?[e]:e,a=0;a<n.length;a+=1)if(n[a]===t)return!0;return!1}return!1}function Qw(){let e=this[0],t;if(e){for(t=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(t+=1);return t}}function tk(e){if(typeof e>"u")return this;const t=this.length;let n;return e>t-1?new We([]):e<0?(n=t+e,n<0?new We([]):new We([this[n]])):new We([this[e]])}function ek(...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 r=Ua.createElement("div");for(r.innerHTML=t;r.firstChild;)this[a].appendChild(r.firstChild)}else if(t instanceof We)for(let r=0;r<t.length;r+=1)this[a].appendChild(t[r]);else this[a].appendChild(t)}return this}function nk(e){let t,n;for(t=0;t<this.length;t+=1)if(typeof e=="string"){const a=Ua.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 We)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 ak(e){return this.length>0?e?this[0].nextElementSibling&&jt(this[0].nextElementSibling).is(e)?new We([this[0].nextElementSibling]):new We([]):this[0].nextElementSibling?new We([this[0].nextElementSibling]):new We([]):new We([])}function ik(e){const t=[];let n=this[0];if(!n)return new We([]);for(;n.nextElementSibling;){const a=n.nextElementSibling;e?jt(a).is(e)&&t.push(a):t.push(a),n=a}return new We(t)}function rk(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&jt(t.previousElementSibling).is(e)?new We([t.previousElementSibling]):new We([]):t.previousElementSibling?new We([t.previousElementSibling]):new We([])}return new We([])}function ok(e){const t=[];let n=this[0];if(!n)return new We([]);for(;n.previousElementSibling;){const a=n.previousElementSibling;e?jt(a).is(e)&&t.push(a):t.push(a),n=a}return new We(t)}function sk(e){const t=[];for(let n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?jt(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return jt(Sh(t))}function lk(e){const t=[];for(let n=0;n<this.length;n+=1){let a=this[n].parentNode;for(;a;)e?jt(a).is(e)&&t.push(a):t.push(a),a=a.parentNode}return jt(Sh(t))}function uk(e){let t=this;return typeof e>"u"?new We([]):(t.is(e)||(t=t.parents(e).eq(0)),t)}function ck(e){const t=[];for(let n=0;n<this.length;n+=1){const a=this[n].querySelectorAll(e);for(let r=0;r<a.length;r+=1)t.push(a[r])}return new We(t)}function dk(e){const t=[];for(let n=0;n<this.length;n+=1){const a=this[n].childNodes;for(let r=0;r<a.length;r+=1)e?a[r].nodeType===1&&jt(a[r]).is(e)&&t.push(a[r]):a[r].nodeType===1&&t.push(a[r])}return new We(Sh(t))}function fk(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function hk(...e){const t=this;let n,a;for(n=0;n<e.length;n+=1){const r=jt(e[n]);for(a=0;a<r.length;a+=1)t[t.length]=r[a],t.length+=1}return t}var Ee=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,Wt=typeof window>"u"?{document:Ee,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 Hg={addClass:Lw,removeClass:Bw,hasClass:zw,toggleClass:Iw,attr:Dw,removeAttr:Rw,data:jw,transform:Ow,transition:Kw,on:qw,off:$w,trigger:Hw,transitionEnd:Fw,outerWidth:Ww,outerHeight:_w,offset:Vw,css:Uw,each:Yw,html:Xw,text:Zw,is:Jw,index:Qw,eq:tk,append:ek,prepend:nk,next:ak,nextAll:ik,prev:rk,prevAll:ok,parent:sk,parents:lk,closest:uk,find:ck,children:dk,remove:fk,add:hk,styles:Gw};Object.keys(Hg).forEach(e=>{jt.fn[e]=jt.fn[e]||Hg[e]});const It={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,r;const l=Wt.getComputedStyle(e,null);return Wt.WebKitCSSMatrix?(a=l.transform||l.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(d=>d.replace(",",".")).join(", ")),r=new Wt.WebKitCSSMatrix(a==="none"?"":a)):(r=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=r.toString().split(",")),t==="x"&&(Wt.WebKitCSSMatrix?a=r.m41:n.length===16?a=parseFloat(n[12]):a=parseFloat(n[4])),t==="y"&&(Wt.WebKitCSSMatrix?a=r.m42:n.length===16?a=parseFloat(n[13]):a=parseFloat(n[5])),a||0},parseUrlQuery(e){const t={};let n=e||Wt.location.href,a,r,l,d;if(typeof n=="string"&&n.length)for(n=n.indexOf("?")>-1?n.replace(/\S*\?/,""):"",r=n.split("&").filter(f=>f!==""),d=r.length,a=0;a<d;a+=1)l=r[a].replace(/#\S+/g,"").split("="),t[decodeURIComponent(l[0])]=typeof l[1]>"u"?void 0:decodeURIComponent(l[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 r=Object.keys(Object(a));for(let l=0,d=r.length;l<d;l+=1){const f=r[l],p=Object.getOwnPropertyDescriptor(a,f);p!==void 0&&p.enumerable&&(It.isObject(t[f])&&It.isObject(a[f])?It.extend(t[f],a[f]):!It.isObject(t[f])&&It.isObject(a[f])?(t[f]={},It.extend(t[f],a[f])):t[f]=a[f])}}}return t}},ae=(function(){const t=Ee.createElement("div");return{touch:Wt.Modernizr&&Wt.Modernizr.touch===!0||(function(){return!!(Wt.navigator.maxTouchPoints>0||"ontouchstart"in Wt||Wt.DocumentTouch&&Ee instanceof Wt.DocumentTouch)})(),pointerEvents:!!(Wt.navigator.pointerEnabled||Wt.PointerEvent||"maxTouchPoints"in Wt.navigator&&Wt.navigator.maxTouchPoints>0),prefixedPointerEvents:!!Wt.navigator.msPointerEnabled,transition:(function(){const a=t.style;return"transition"in a||"webkitTransition"in a||"MozTransition"in a})(),transforms3d:Wt.Modernizr&&Wt.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,r="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" ");for(let l=0;l<r.length;l+=1)if(r[l]in a)return!0;return!1})(),observer:(function(){return"MutationObserver"in Wt||"WebkitMutationObserver"in Wt})(),passiveListener:(function(){let a=!1;try{const r=Object.defineProperty({},"passive",{get(){a=!0}});Wt.addEventListener("testPassiveListener",null,r)}catch{}return a})(),gestures:(function(){return"ongesturestart"in Wt})()}})(),yi=(function(){function t(){const n=Wt.navigator.userAgent.toLowerCase();return n.indexOf("safari")>=0&&n.indexOf("chrome")<0&&n.indexOf("android")<0}return{isIE:!!Wt.navigator.userAgent.match(/Trident/g)||!!Wt.navigator.userAgent.match(/MSIE/g),isEdge:!!Wt.navigator.userAgent.match(/Edge/g),isSafari:t(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(Wt.navigator.userAgent)}})();class Fg{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 r=this;if(typeof n!="function")return r;const l=a?"unshift":"push";return t.split(" ").forEach(d=>{r.eventsListeners[d]||(r.eventsListeners[d]=[]),r.eventsListeners[d][l](n)}),r}once(t,n,a){const r=this;if(typeof n!="function")return r;function l(...d){n.apply(r,d),r.off(t,l),l.f7proxy&&delete l.f7proxy}return l.f7proxy=n,r.on(t,l,a)}off(t,n){const a=this;return a.eventsListeners&&t.split(" ").forEach(r=>{typeof n>"u"?a.eventsListeners[r]=[]:a.eventsListeners[r]&&a.eventsListeners[r].length&&a.eventsListeners[r].forEach((l,d)=>{(l===n||l.f7proxy&&l.f7proxy===n)&&a.eventsListeners[r].splice(d,1)})}),a}emit(...t){const n=this;if(!n.eventsListeners)return n;let a,r,l;return typeof t[0]=="string"||Array.isArray(t[0])?(a=t[0],r=t.slice(1,t.length),l=n):(a=t[0].events,r=t[0].data,l=t[0].context||n),(Array.isArray(a)?a:a.split(" ")).forEach(f=>{if(n.eventsListeners&&n.eventsListeners[f]){const p=[];n.eventsListeners[f].forEach(y=>{p.push(y)}),p.forEach(y=>{y.apply(l,r)})}}),n}useModulesParams(t){const n=this;n.modules&&Object.keys(n.modules).forEach(a=>{const r=n.modules[a];r.params&&It.extend(t,r.params)})}useModules(t={}){const n=this;n.modules&&Object.keys(n.modules).forEach(a=>{const r=n.modules[a],l=t[a]||{};r.instance&&Object.keys(r.instance).forEach(d=>{const f=r.instance[d];typeof f=="function"?n[d]=f.bind(n):n[d]=f}),r.on&&n.on&&Object.keys(r.on).forEach(d=>{n.on(d,r.on[d])}),r.create&&r.create.bind(n)(l)})}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 r=t.name||`${Object.keys(a.prototype.modules).length}_${It.now()}`;return a.prototype.modules[r]=t,t.proto&&Object.keys(t.proto).forEach(l=>{a.prototype[l]=t.proto[l]}),t.static&&Object.keys(t.static).forEach(l=>{a[l]=t.static[l]}),t.install&&t.install.apply(a,n),a}static use(t,...n){const a=this;return Array.isArray(t)?(t.forEach(r=>a.installModule(r)),a):a.installModule(t,...n)}}function pk(){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),It.extend(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function gk(){const e=this,t=e.params,{$wrapperEl:n,size:a,rtlTranslate:r,wrongRTL:l}=e,d=e.virtual&&t.virtual.enabled,f=d?e.virtual.slides.length:e.slides.length,p=n.children(`.${e.params.slideClass}`),y=d?e.virtual.slides.length:p.length;let k=[];const E=[],N=[];let I=t.slidesOffsetBefore;typeof I=="function"&&(I=t.slidesOffsetBefore.call(e));let L=t.slidesOffsetAfter;typeof L=="function"&&(L=t.slidesOffsetAfter.call(e));const K=e.snapGrid.length,J=e.snapGrid.length;let F=t.spaceBetween,G=-I,ot=0,dt=0;if(typeof a>"u")return;typeof F=="string"&&F.indexOf("%")>=0&&(F=parseFloat(F.replace("%",""))/100*a),e.virtualSize=-F,r?p.css({marginLeft:"",marginTop:""}):p.css({marginRight:"",marginBottom:""});let _;t.slidesPerColumn>1&&(Math.floor(y/t.slidesPerColumn)===y/e.params.slidesPerColumn?_=y:_=Math.ceil(y/t.slidesPerColumn)*t.slidesPerColumn,t.slidesPerView!=="auto"&&t.slidesPerColumnFill==="row"&&(_=Math.max(_,t.slidesPerView*t.slidesPerColumn)));let $;const v=t.slidesPerColumn,mt=_/v,ft=Math.floor(y/t.slidesPerColumn);for(let Nt=0;Nt<y;Nt+=1){$=0;const At=p.eq(Nt);if(t.slidesPerColumn>1){let tt,H,s;if(t.slidesPerColumnFill==="column"||t.slidesPerColumnFill==="row"&&t.slidesPerGroup>1){if(t.slidesPerColumnFill==="column")H=Math.floor(Nt/v),s=Nt-H*v,(H>ft||H===ft&&s===v-1)&&(s+=1,s>=v&&(s=0,H+=1));else{const ht=Math.floor(Nt/t.slidesPerGroup);s=Math.floor(Nt/t.slidesPerView)-ht*t.slidesPerColumn,H=Nt-s*t.slidesPerView-ht*t.slidesPerView}tt=H+s*_/v,At.css({"-webkit-box-ordinal-group":tt,"-moz-box-ordinal-group":tt,"-ms-flex-order":tt,"-webkit-order":tt,order:tt})}else s=Math.floor(Nt/mt),H=Nt-s*mt;At.css(`margin-${e.isHorizontal()?"top":"left"}`,s!==0&&t.spaceBetween&&`${t.spaceBetween}px`).attr("data-swiper-column",H).attr("data-swiper-row",s)}if(At.css("display")!=="none"){if(t.slidesPerView==="auto"){const tt=Wt.getComputedStyle(At[0],null),H=At[0].style.transform,s=At[0].style.webkitTransform;if(H&&(At[0].style.transform="none"),s&&(At[0].style.webkitTransform="none"),t.roundLengths)$=e.isHorizontal()?At.outerWidth(!0):At.outerHeight(!0);else if(e.isHorizontal()){const ht=parseFloat(tt.getPropertyValue("width")),x=parseFloat(tt.getPropertyValue("padding-left")),lt=parseFloat(tt.getPropertyValue("padding-right")),bt=parseFloat(tt.getPropertyValue("margin-left")),St=parseFloat(tt.getPropertyValue("margin-right")),O=tt.getPropertyValue("box-sizing");O&&O==="border-box"&&!yi.isIE?$=ht+bt+St:$=ht+x+lt+bt+St}else{const ht=parseFloat(tt.getPropertyValue("height")),x=parseFloat(tt.getPropertyValue("padding-top")),lt=parseFloat(tt.getPropertyValue("padding-bottom")),bt=parseFloat(tt.getPropertyValue("margin-top")),St=parseFloat(tt.getPropertyValue("margin-bottom")),O=tt.getPropertyValue("box-sizing");O&&O==="border-box"&&!yi.isIE?$=ht+bt+St:$=ht+x+lt+bt+St}H&&(At[0].style.transform=H),s&&(At[0].style.webkitTransform=s),t.roundLengths&&($=Math.floor($))}else $=(a-(t.slidesPerView-1)*F)/t.slidesPerView,t.roundLengths&&($=Math.floor($)),p[Nt]&&(e.isHorizontal()?p[Nt].style.width=`${$}px`:p[Nt].style.height=`${$}px`);p[Nt]&&(p[Nt].swiperSlideSize=$),N.push($),t.centeredSlides?(G=G+$/2+ot/2+F,ot===0&&Nt!==0&&(G=G-a/2-F),Nt===0&&(G=G-a/2-F),Math.abs(G)<1/1e3&&(G=0),t.roundLengths&&(G=Math.floor(G)),dt%t.slidesPerGroup===0&&k.push(G),E.push(G)):(t.roundLengths&&(G=Math.floor(G)),dt%t.slidesPerGroup===0&&k.push(G),E.push(G),G=G+$+F),e.virtualSize+=$+F,ot=$,dt+=1}}e.virtualSize=Math.max(e.virtualSize,a)+L;let Lt;if(r&&l&&(t.effect==="slide"||t.effect==="coverflow")&&n.css({width:`${e.virtualSize+t.spaceBetween}px`}),(!ae.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=($+t.spaceBetween)*_,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)){Lt=[];for(let Nt=0;Nt<k.length;Nt+=1){let At=k[Nt];t.roundLengths&&(At=Math.floor(At)),k[Nt]<e.virtualSize+k[0]&&Lt.push(At)}k=Lt}if(!t.centeredSlides){Lt=[];for(let Nt=0;Nt<k.length;Nt+=1){let At=k[Nt];t.roundLengths&&(At=Math.floor(At)),k[Nt]<=e.virtualSize-a&&Lt.push(At)}k=Lt,Math.floor(e.virtualSize-a)-Math.floor(k[k.length-1])>1&&k.push(e.virtualSize-a)}if(k.length===0&&(k=[0]),t.spaceBetween!==0&&(e.isHorizontal()?r?p.css({marginLeft:`${F}px`}):p.css({marginRight:`${F}px`}):p.css({marginBottom:`${F}px`})),t.centerInsufficientSlides){let Nt=0;if(N.forEach(At=>{Nt+=At+(t.spaceBetween?t.spaceBetween:0)}),Nt-=t.spaceBetween,Nt<a){const At=(a-Nt)/2;k.forEach((tt,H)=>{k[H]=tt-At}),E.forEach((tt,H)=>{E[H]=tt+At})}}It.extend(e,{slides:p,snapGrid:k,slidesGrid:E,slidesSizesGrid:N}),y!==f&&e.emit("slidesLengthChange"),k.length!==K&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),E.length!==J&&e.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&e.updateSlidesOffset()}function mk(e){const t=this,n=[];let a=0,r;if(typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed),t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)for(r=0;r<Math.ceil(t.params.slidesPerView);r+=1){const l=t.activeIndex+r;if(l>t.slides.length)break;n.push(t.slides.eq(l)[0])}else n.push(t.slides.eq(t.activeIndex)[0]);for(r=0;r<n.length;r+=1)if(typeof n[r]<"u"){const l=n[r].offsetHeight;a=l>a?l:a}a&&t.$wrapperEl.css("height",`${a}px`)}function vk(){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 yk(e=this&&this.translate||0){const t=this,n=t.params,{slides:a,rtlTranslate:r}=t;if(a.length===0)return;typeof a[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let l=-e;r&&(l=e),a.removeClass(n.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let d=0;d<a.length;d+=1){const f=a[d],p=(l+(n.centeredSlides?t.minTranslate():0)-f.swiperSlideOffset)/(f.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility){const y=-(l-f.swiperSlideOffset),k=y+t.slidesSizesGrid[d];(y>=0&&y<t.size-1||k>1&&k<=t.size||y<=0&&k>=t.size)&&(t.visibleSlides.push(f),t.visibleSlidesIndexes.push(d),a.eq(d).addClass(n.slideVisibleClass))}f.progress=r?-p:p}t.visibleSlides=jt(t.visibleSlides)}function bk(e=this&&this.translate||0){const t=this,n=t.params,a=t.maxTranslate()-t.minTranslate();let{progress:r,isBeginning:l,isEnd:d}=t;const f=l,p=d;a===0?(r=0,l=!0,d=!0):(r=(e-t.minTranslate())/a,l=r<=0,d=r>=1),It.extend(t,{progress:r,isBeginning:l,isEnd:d}),(n.watchSlidesProgress||n.watchSlidesVisibility)&&t.updateSlidesProgress(e),l&&!f&&t.emit("reachBeginning toEdge"),d&&!p&&t.emit("reachEnd toEdge"),(f&&!l||p&&!d)&&t.emit("fromEdge"),t.emit("progress",r)}function wk(){const e=this,{slides:t,params:n,$wrapperEl:a,activeIndex:r,realIndex:l}=e,d=e.virtual&&n.virtual.enabled;t.removeClass(`${n.slideActiveClass} ${n.slideNextClass} ${n.slidePrevClass} ${n.slideDuplicateActiveClass} ${n.slideDuplicateNextClass} ${n.slideDuplicatePrevClass}`);let f;d?f=e.$wrapperEl.find(`.${n.slideClass}[data-swiper-slide-index="${r}"]`):f=t.eq(r),f.addClass(n.slideActiveClass),n.loop&&(f.hasClass(n.slideDuplicateClass)?a.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${l}"]`).addClass(n.slideDuplicateActiveClass):a.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${l}"]`).addClass(n.slideDuplicateActiveClass));let p=f.nextAll(`.${n.slideClass}`).eq(0).addClass(n.slideNextClass);n.loop&&p.length===0&&(p=t.eq(0),p.addClass(n.slideNextClass));let y=f.prevAll(`.${n.slideClass}`).eq(0).addClass(n.slidePrevClass);n.loop&&y.length===0&&(y=t.eq(-1),y.addClass(n.slidePrevClass)),n.loop&&(p.hasClass(n.slideDuplicateClass)?a.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${p.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass):a.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${p.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass),y.hasClass(n.slideDuplicateClass)?a.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${y.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass):a.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${y.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass))}function kk(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:a,snapGrid:r,params:l,activeIndex:d,realIndex:f,snapIndex:p}=t;let y=e,k;if(typeof y>"u"){for(let N=0;N<a.length;N+=1)typeof a[N+1]<"u"?n>=a[N]&&n<a[N+1]-(a[N+1]-a[N])/2?y=N:n>=a[N]&&n<a[N+1]&&(y=N+1):n>=a[N]&&(y=N);l.normalizeSlideIndex&&(y<0||typeof y>"u")&&(y=0)}if(r.indexOf(n)>=0?k=r.indexOf(n):k=Math.floor(y/l.slidesPerGroup),k>=r.length&&(k=r.length-1),y===d){k!==p&&(t.snapIndex=k,t.emit("snapIndexChange"));return}const E=parseInt(t.slides.eq(y).attr("data-swiper-slide-index")||y,10);It.extend(t,{snapIndex:k,realIndex:E,previousIndex:d,activeIndex:y}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),f!==E&&t.emit("realIndexChange"),(t.initialized||t.runCallbacksOnInit)&&t.emit("slideChange")}function xk(e){const t=this,n=t.params,a=jt(e.target).closest(`.${n.slideClass}`)[0];let r=!1;if(a)for(let l=0;l<t.slides.length;l+=1)t.slides[l]===a&&(r=!0);if(a&&r)t.clickedSlide=a,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(jt(a).attr("data-swiper-slide-index"),10):t.clickedIndex=jt(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 Sk={updateSize:pk,updateSlides:gk,updateAutoHeight:mk,updateSlidesOffset:vk,updateSlidesProgress:yk,updateProgress:bk,updateSlidesClasses:wk,updateActiveIndex:kk,updateClickedSlide:xk};function Ck(e=this.isHorizontal()?"x":"y"){const t=this,{params:n,rtlTranslate:a,translate:r,$wrapperEl:l}=t;if(n.virtualTranslate)return a?-r:r;let d=It.getTranslate(l[0],e);return a&&(d=-d),d||0}function Tk(e,t){const n=this,{rtlTranslate:a,params:r,$wrapperEl:l,progress:d}=n;let f=0,p=0;const y=0;n.isHorizontal()?f=a?-e:e:p=e,r.roundLengths&&(f=Math.floor(f),p=Math.floor(p)),r.virtualTranslate||(ae.transforms3d?l.transform(`translate3d(${f}px, ${p}px, ${y}px)`):l.transform(`translate(${f}px, ${p}px)`)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?f:p;let k;const E=n.maxTranslate()-n.minTranslate();E===0?k=0:k=(e-n.minTranslate())/E,k!==d&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function Ek(){return-this.snapGrid[0]}function Pk(){return-this.snapGrid[this.snapGrid.length-1]}var Mk={getTranslate:Ck,setTranslate:Tk,minTranslate:Ek,maxTranslate:Pk};function Ak(e,t){const n=this;n.$wrapperEl.transition(e),n.emit("setTransition",e,t)}function Nk(e=!0,t){const n=this,{activeIndex:a,params:r,previousIndex:l}=n;r.autoHeight&&n.updateAutoHeight();let d=t;if(d||(a>l?d="next":a<l?d="prev":d="reset"),n.emit("transitionStart"),e&&a!==l){if(d==="reset"){n.emit("slideResetTransitionStart");return}n.emit("slideChangeTransitionStart"),d==="next"?n.emit("slideNextTransitionStart"):n.emit("slidePrevTransitionStart")}}function Lk(e=!0,t){const n=this,{activeIndex:a,previousIndex:r}=n;n.animating=!1,n.setTransition(0);let l=t;if(l||(a>r?l="next":a<r?l="prev":l="reset"),n.emit("transitionEnd"),e&&a!==r){if(l==="reset"){n.emit("slideResetTransitionEnd");return}n.emit("slideChangeTransitionEnd"),l==="next"?n.emit("slideNextTransitionEnd"):n.emit("slidePrevTransitionEnd")}}var Bk={setTransition:Ak,transitionStart:Nk,transitionEnd:Lk};function zk(e=0,t=this.params.speed,n=!0,a){const r=this;let l=e;l<0&&(l=0);const{params:d,snapGrid:f,slidesGrid:p,previousIndex:y,activeIndex:k,rtlTranslate:E}=r;if(r.animating&&d.preventInteractionOnTransition)return!1;let N=Math.floor(l/d.slidesPerGroup);N>=f.length&&(N=f.length-1),(k||d.initialSlide||0)===(y||0)&&n&&r.emit("beforeSlideChangeStart");const I=-f[N];if(r.updateProgress(I),d.normalizeSlideIndex)for(let K=0;K<p.length;K+=1)-Math.floor(I*100)>=Math.floor(p[K]*100)&&(l=K);if(r.initialized&&l!==k&&(!r.allowSlideNext&&I<r.translate&&I<r.minTranslate()||!r.allowSlidePrev&&I>r.translate&&I>r.maxTranslate()&&(k||0)!==l))return!1;let L;return l>k?L="next":l<k?L="prev":L="reset",E&&-I===r.translate||!E&&I===r.translate?(r.updateActiveIndex(l),d.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),d.effect!=="slide"&&r.setTranslate(I),L!=="reset"&&(r.transitionStart(n,L),r.transitionEnd(n,L)),!1):(t===0||!ae.transition?(r.setTransition(0),r.setTranslate(I),r.updateActiveIndex(l),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,a),r.transitionStart(n,L),r.transitionEnd(n,L)):(r.setTransition(t),r.setTranslate(I),r.updateActiveIndex(l),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,a),r.transitionStart(n,L),r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(J){!r||r.destroyed||J.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(n,L))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd))),!0)}function Ik(e=0,t=this.params.speed,n=!0,a){const r=this;let l=e;return r.params.loop&&(l+=r.loopedSlides),r.slideTo(l,t,n,a)}function Dk(e=this.params.speed,t=!0,n){const a=this,{params:r,animating:l}=a;return r.loop?l?!1:(a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft,a.slideTo(a.activeIndex+r.slidesPerGroup,e,t,n)):a.slideTo(a.activeIndex+r.slidesPerGroup,e,t,n)}function Rk(e=this.params.speed,t=!0,n){const a=this,{params:r,animating:l,snapGrid:d,slidesGrid:f,rtlTranslate:p}=a;if(r.loop){if(l)return!1;a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft}const y=p?a.translate:-a.translate;function k(K){return K<0?-Math.floor(Math.abs(K)):Math.floor(K)}const E=k(y),N=d.map(K=>k(K));f.map(K=>k(K)),d[N.indexOf(E)];const I=d[N.indexOf(E)-1];let L;return typeof I<"u"&&(L=f.indexOf(I),L<0&&(L=a.activeIndex-1)),a.slideTo(L,e,t,n)}function jk(e=this.params.speed,t=!0,n){const a=this;return a.slideTo(a.activeIndex,e,t,n)}function Ok(e=this.params.speed,t=!0,n){const a=this;let r=a.activeIndex;const l=Math.floor(r/a.params.slidesPerGroup);if(l<a.snapGrid.length-1){const d=a.rtlTranslate?a.translate:-a.translate,f=a.snapGrid[l],p=a.snapGrid[l+1];d-f>(p-f)/2&&(r=a.params.slidesPerGroup)}return a.slideTo(r,e,t,n)}function Kk(){const e=this,{params:t,$wrapperEl:n}=e,a=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let r=e.clickedIndex,l;if(t.loop){if(e.animating)return;l=parseInt(jt(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?r<e.loopedSlides-a/2||r>e.slides.length-e.loopedSlides+a/2?(e.loopFix(),r=n.children(`.${t.slideClass}[data-swiper-slide-index="${l}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),It.nextTick(()=>{e.slideTo(r)})):e.slideTo(r):r>e.slides.length-a?(e.loopFix(),r=n.children(`.${t.slideClass}[data-swiper-slide-index="${l}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),It.nextTick(()=>{e.slideTo(r)})):e.slideTo(r)}else e.slideTo(r)}var qk={slideTo:zk,slideToLoop:Ik,slideNext:Dk,slidePrev:Rk,slideReset:jk,slideToClosest:Ok,slideToClickedSlide:Kk};function $k(){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 d=t.slidesPerGroup-a.length%t.slidesPerGroup;if(d!==t.slidesPerGroup){for(let f=0;f<d;f+=1){const p=jt(Ee.createElement("div")).addClass(`${t.slideClass} ${t.slideBlankClass}`);n.append(p)}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 r=[],l=[];a.each((d,f)=>{const p=jt(f);d<e.loopedSlides&&l.push(f),d<a.length&&d>=a.length-e.loopedSlides&&r.push(f),p.attr("data-swiper-slide-index",d)});for(let d=0;d<l.length;d+=1)n.append(jt(l[d].cloneNode(!0)).addClass(t.slideDuplicateClass));for(let d=r.length-1;d>=0;d-=1)n.prepend(jt(r[d].cloneNode(!0)).addClass(t.slideDuplicateClass))}function Hk(){const e=this,{params:t,activeIndex:n,slides:a,loopedSlides:r,allowSlidePrev:l,allowSlideNext:d,snapGrid:f,rtlTranslate:p}=e;let y;e.allowSlidePrev=!0,e.allowSlideNext=!0;const E=-f[n]-e.getTranslate();n<r?(y=a.length-r*3+n,y+=r,e.slideTo(y,0,!1,!0)&&E!==0&&e.setTranslate((p?-e.translate:e.translate)-E)):(t.slidesPerView==="auto"&&n>=r*2||n>=a.length-r)&&(y=-a.length+n+r,y+=r,e.slideTo(y,0,!1,!0)&&E!==0&&e.setTranslate((p?-e.translate:e.translate)-E)),e.allowSlidePrev=l,e.allowSlideNext=d}function Fk(){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 Wk={loopCreate:$k,loopFix:Hk,loopDestroy:Fk};function _k(e){const t=this;if(ae.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 Vk(){const e=this;ae.touch||e.params.watchOverflow&&e.isLocked||(e.el.style.cursor="")}var Gk={setGrabCursor:_k,unsetGrabCursor:Vk};function Uk(e){const t=this,{$wrapperEl:n,params:a}=t;if(a.loop&&t.loopDestroy(),typeof e=="object"&&"length"in e)for(let r=0;r<e.length;r+=1)e[r]&&n.append(e[r]);else n.append(e);a.loop&&t.loopCreate(),a.observer&&ae.observer||t.update()}function Yk(e){const t=this,{params:n,$wrapperEl:a,activeIndex:r}=t;n.loop&&t.loopDestroy();let l=r+1;if(typeof e=="object"&&"length"in e){for(let d=0;d<e.length;d+=1)e[d]&&a.prepend(e[d]);l=r+e.length}else a.prepend(e);n.loop&&t.loopCreate(),n.observer&&ae.observer||t.update(),t.slideTo(l,0,!1)}function Xk(e,t){const n=this,{$wrapperEl:a,params:r,activeIndex:l}=n;let d=l;r.loop&&(d-=n.loopedSlides,n.loopDestroy(),n.slides=a.children(`.${r.slideClass}`));const f=n.slides.length;if(e<=0){n.prependSlide(t);return}if(e>=f){n.appendSlide(t);return}let p=d>e?d+1:d;const y=[];for(let k=f-1;k>=e;k-=1){const E=n.slides.eq(k);E.remove(),y.unshift(E)}if(typeof t=="object"&&"length"in t){for(let k=0;k<t.length;k+=1)t[k]&&a.append(t[k]);p=d>e?d+t.length:d}else a.append(t);for(let k=0;k<y.length;k+=1)a.append(y[k]);r.loop&&n.loopCreate(),r.observer&&ae.observer||n.update(),r.loop?n.slideTo(p+n.loopedSlides,0,!1):n.slideTo(p,0,!1)}function Zk(e){const t=this,{params:n,$wrapperEl:a,activeIndex:r}=t;let l=r;n.loop&&(l-=t.loopedSlides,t.loopDestroy(),t.slides=a.children(`.${n.slideClass}`));let d=l,f;if(typeof e=="object"&&"length"in e){for(let p=0;p<e.length;p+=1)f=e[p],t.slides[f]&&t.slides.eq(f).remove(),f<d&&(d-=1);d=Math.max(d,0)}else f=e,t.slides[f]&&t.slides.eq(f).remove(),f<d&&(d-=1),d=Math.max(d,0);n.loop&&t.loopCreate(),n.observer&&ae.observer||t.update(),n.loop?t.slideTo(d+t.loopedSlides,0,!1):t.slideTo(d,0,!1)}function Jk(){const e=this,t=[];for(let n=0;n<e.slides.length;n+=1)t.push(n);e.removeSlide(t)}var Qk={appendSlide:Uk,prependSlide:Yk,addSlide:Xk,removeSlide:Zk,removeAllSlides:Jk};const Zn=(function(){const t=Wt.navigator.userAgent,n={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:Wt.cordova||Wt.phonegap,phonegap:Wt.cordova||Wt.phonegap},a=t.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),r=t.match(/(Android);?[\s\/]+([\d.]+)?/),l=t.match(/(iPad).*OS\s([\d_]+)/),d=t.match(/(iPod)(.*OS\s([\d_]+))?/),f=!l&&t.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(a&&(n.os="windows",n.osVersion=a[2],n.windows=!0),r&&!a&&(n.os="android",n.osVersion=r[2],n.android=!0,n.androidChrome=t.toLowerCase().indexOf("chrome")>=0),(l||f||d)&&(n.os="ios",n.ios=!0),f&&!d&&(n.osVersion=f[2].replace(/_/g,"."),n.iphone=!0),l&&(n.osVersion=l[2].replace(/_/g,"."),n.ipad=!0),d&&(n.osVersion=d[3]?d[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=(f||l||d)&&t.match(/.*AppleWebKit(?!.*Safari)/i),n.os&&n.os==="ios"){const p=n.osVersion.split("."),y=Ee.querySelector('meta[name="viewport"]');n.minimalUi=!n.webView&&(d||f)&&(p[0]*1===7?p[1]*1>=1:p[0]*1>7)&&y&&y.getAttribute("content").indexOf("minimal-ui")>=0}return n.pixelRatio=Wt.devicePixelRatio||1,n})();function t0(e){const t=this,n=t.touchEventsData,{params:a,touches:r}=t;if(t.animating&&a.preventInteractionOnTransition)return;let l=e;if(l.originalEvent&&(l=l.originalEvent),n.isTouchEvent=l.type==="touchstart",!n.isTouchEvent&&"which"in l&&l.which===3||!n.isTouchEvent&&"button"in l&&l.button>0||n.isTouched&&n.isMoved)return;if(a.noSwiping&&jt(l.target).closest(a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`)[0]){t.allowClick=!0;return}if(a.swipeHandler&&!jt(l).closest(a.swipeHandler)[0])return;r.currentX=l.type==="touchstart"?l.targetTouches[0].pageX:l.pageX,r.currentY=l.type==="touchstart"?l.targetTouches[0].pageY:l.pageY;const d=r.currentX,f=r.currentY,p=a.edgeSwipeDetection||a.iOSEdgeSwipeDetection,y=a.edgeSwipeThreshold||a.iOSEdgeSwipeThreshold;if(!(p&&(d<=y||d>=Wt.screen.width-y))){if(It.extend(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=d,r.startY=f,n.touchStartTime=It.now(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,a.threshold>0&&(n.allowThresholdMove=!1),l.type!=="touchstart"){let k=!0;jt(l.target).is(n.formElements)&&(k=!1),Ee.activeElement&&jt(Ee.activeElement).is(n.formElements)&&Ee.activeElement!==l.target&&Ee.activeElement.blur();const E=k&&t.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||E)&&l.preventDefault()}t.emit("touchStart",l)}}function e0(e){const t=this,n=t.touchEventsData,{params:a,touches:r,rtlTranslate:l}=t;let d=e;if(d.originalEvent&&(d=d.originalEvent),!n.isTouched){n.startMoving&&n.isScrolling&&t.emit("touchMoveOpposite",d);return}if(n.isTouchEvent&&d.type==="mousemove")return;const f=d.type==="touchmove"?d.targetTouches[0].pageX:d.pageX,p=d.type==="touchmove"?d.targetTouches[0].pageY:d.pageY;if(d.preventedByNestedSwiper){r.startX=f,r.startY=p;return}if(!t.allowTouchMove){t.allowClick=!1,n.isTouched&&(It.extend(r,{startX:f,startY:p,currentX:f,currentY:p}),n.touchStartTime=It.now());return}if(n.isTouchEvent&&a.touchReleaseOnEdges&&!a.loop){if(t.isVertical()){if(p<r.startY&&t.translate<=t.maxTranslate()||p>r.startY&&t.translate>=t.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(f<r.startX&&t.translate<=t.maxTranslate()||f>r.startX&&t.translate>=t.minTranslate())return}if(n.isTouchEvent&&Ee.activeElement&&d.target===Ee.activeElement&&jt(d.target).is(n.formElements)){n.isMoved=!0,t.allowClick=!1;return}if(n.allowTouchCallbacks&&t.emit("touchMove",d),d.targetTouches&&d.targetTouches.length>1)return;r.currentX=f,r.currentY=p;const y=r.currentX-r.startX,k=r.currentY-r.startY;if(t.params.threshold&&Math.sqrt(y**2+k**2)<t.params.threshold)return;if(typeof n.isScrolling>"u"){let L;t.isHorizontal()&&r.currentY===r.startY||t.isVertical()&&r.currentX===r.startX?n.isScrolling=!1:y*y+k*k>=25&&(L=Math.atan2(Math.abs(k),Math.abs(y))*180/Math.PI,n.isScrolling=t.isHorizontal()?L>a.touchAngle:90-L>a.touchAngle)}if(n.isScrolling&&t.emit("touchMoveOpposite",d),typeof n.startMoving>"u"&&(r.currentX!==r.startX||r.currentY!==r.startY)&&(n.startMoving=!0),n.isScrolling){n.isTouched=!1;return}if(!n.startMoving)return;t.allowClick=!1,d.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&d.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",d)),t.emit("sliderMove",d),n.isMoved=!0;let E=t.isHorizontal()?y:k;r.diff=E,E*=a.touchRatio,l&&(E=-E),t.swipeDirection=E>0?"prev":"next",n.currentTranslate=E+n.startTranslate;let N=!0,I=a.resistanceRatio;if(a.touchReleaseOnEdges&&(I=0),E>0&&n.currentTranslate>t.minTranslate()?(N=!1,a.resistance&&(n.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+n.startTranslate+E)**I)):E<0&&n.currentTranslate<t.maxTranslate()&&(N=!1,a.resistance&&(n.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-n.startTranslate-E)**I)),N&&(d.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(E)>a.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,n.currentTranslate=n.startTranslate,r.diff=t.isHorizontal()?r.currentX-r.startX:r.currentY-r.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:r[t.isHorizontal()?"startX":"startY"],time:n.touchStartTime}),n.velocities.push({position:r[t.isHorizontal()?"currentX":"currentY"],time:It.now()})),t.updateProgress(n.currentTranslate),t.setTranslate(n.currentTranslate))}function n0(e){const t=this,n=t.touchEventsData,{params:a,touches:r,rtlTranslate:l,$wrapperEl:d,slidesGrid:f,snapGrid:p}=t;let y=e;if(y.originalEvent&&(y=y.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",y),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 k=It.now(),E=k-n.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(y),t.emit("tap",y),E<300&&k-n.lastClickTime>300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),n.clickTimeout=It.nextTick(()=>{!t||t.destroyed||t.emit("click",y)},300)),E<300&&k-n.lastClickTime<300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),t.emit("doubleTap",y))),n.lastClickTime=It.now(),It.nextTick(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||r.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 N;if(a.followFinger?N=l?t.translate:-t.translate:N=-n.currentTranslate,a.freeMode){if(N<-t.minTranslate()){t.slideTo(t.activeIndex);return}if(N>-t.maxTranslate()){t.slides.length<p.length?t.slideTo(p.length-1):t.slideTo(t.slides.length-1);return}if(a.freeModeMomentum){if(n.velocities.length>1){const v=n.velocities.pop(),mt=n.velocities.pop(),ft=v.position-mt.position,Lt=v.time-mt.time;t.velocity=ft/Lt,t.velocity/=2,Math.abs(t.velocity)<a.freeModeMinimumVelocity&&(t.velocity=0),(Lt>150||It.now()-v.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=a.freeModeMomentumVelocityRatio,n.velocities.length=0;let J=1e3*a.freeModeMomentumRatio;const F=t.velocity*J;let G=t.translate+F;l&&(G=-G);let ot=!1,dt;const _=Math.abs(t.velocity)*20*a.freeModeMomentumBounceRatio;let $;if(G<t.maxTranslate())a.freeModeMomentumBounce?(G+t.maxTranslate()<-_&&(G=t.maxTranslate()-_),dt=t.maxTranslate(),ot=!0,n.allowMomentumBounce=!0):G=t.maxTranslate(),a.loop&&a.centeredSlides&&($=!0);else if(G>t.minTranslate())a.freeModeMomentumBounce?(G-t.minTranslate()>_&&(G=t.minTranslate()+_),dt=t.minTranslate(),ot=!0,n.allowMomentumBounce=!0):G=t.minTranslate(),a.loop&&a.centeredSlides&&($=!0);else if(a.freeModeSticky){let v;for(let mt=0;mt<p.length;mt+=1)if(p[mt]>-G){v=mt;break}Math.abs(p[v]-G)<Math.abs(p[v-1]-G)||t.swipeDirection==="next"?G=p[v]:G=p[v-1],G=-G}if($&&t.once("transitionEnd",()=>{t.loopFix()}),t.velocity!==0)l?J=Math.abs((-G-t.translate)/t.velocity):J=Math.abs((G-t.translate)/t.velocity);else if(a.freeModeSticky){t.slideToClosest();return}a.freeModeMomentumBounce&&ot?(t.updateProgress(dt),t.setTransition(J),t.setTranslate(G),t.transitionStart(!0,t.swipeDirection),t.animating=!0,d.transitionEnd(()=>{!t||t.destroyed||!n.allowMomentumBounce||(t.emit("momentumBounce"),t.setTransition(a.speed),t.setTranslate(dt),d.transitionEnd(()=>{!t||t.destroyed||t.transitionEnd()}))})):t.velocity?(t.updateProgress(G),t.setTransition(J),t.setTranslate(G),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,d.transitionEnd(()=>{!t||t.destroyed||t.transitionEnd()}))):t.updateProgress(G),t.updateActiveIndex(),t.updateSlidesClasses()}else if(a.freeModeSticky){t.slideToClosest();return}(!a.freeModeMomentum||E>=a.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses());return}let I=0,L=t.slidesSizesGrid[0];for(let J=0;J<f.length;J+=a.slidesPerGroup)typeof f[J+a.slidesPerGroup]<"u"?N>=f[J]&&N<f[J+a.slidesPerGroup]&&(I=J,L=f[J+a.slidesPerGroup]-f[J]):N>=f[J]&&(I=J,L=f[f.length-1]-f[f.length-2]);const K=(N-f[I])/L;if(E>a.longSwipesMs){if(!a.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(K>=a.longSwipesRatio?t.slideTo(I+a.slidesPerGroup):t.slideTo(I)),t.swipeDirection==="prev"&&(K>1-a.longSwipesRatio?t.slideTo(I+a.slidesPerGroup):t.slideTo(I))}else{if(!a.shortSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&t.slideTo(I+a.slidesPerGroup),t.swipeDirection==="prev"&&t.slideTo(I)}}function Xv(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:a,allowSlidePrev:r,snapGrid:l}=e;if(e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),t.freeMode){const d=Math.min(Math.max(e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(d),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=r,e.allowSlideNext=a,e.params.watchOverflow&&l!==e.snapGrid&&e.checkOverflow()}function a0(e){const t=this;t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function i0(){const e=this,{params:t,touchEvents:n,el:a,wrapperEl:r}=e;e.onTouchStart=t0.bind(e),e.onTouchMove=e0.bind(e),e.onTouchEnd=n0.bind(e),e.onClick=a0.bind(e);const l=t.touchEventsTarget==="container"?a:r,d=!!t.nested;{if(!ae.touch&&(ae.pointerEvents||ae.prefixedPointerEvents))l.addEventListener(n.start,e.onTouchStart,!1),Ee.addEventListener(n.move,e.onTouchMove,d),Ee.addEventListener(n.end,e.onTouchEnd,!1);else{if(ae.touch){const f=n.start==="touchstart"&&ae.passiveListener&&t.passiveListeners?{passive:!0,capture:!1}:!1;l.addEventListener(n.start,e.onTouchStart,f),l.addEventListener(n.move,e.onTouchMove,ae.passiveListener?{passive:!1,capture:d}:d),l.addEventListener(n.end,e.onTouchEnd,f)}(t.simulateTouch&&!Zn.ios&&!Zn.android||t.simulateTouch&&!ae.touch&&Zn.ios)&&(l.addEventListener("mousedown",e.onTouchStart,!1),Ee.addEventListener("mousemove",e.onTouchMove,d),Ee.addEventListener("mouseup",e.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&l.addEventListener("click",e.onClick,!0)}e.on(Zn.ios||Zn.android?"resize orientationchange observerUpdate":"resize observerUpdate",Xv,!0)}function r0(){const e=this,{params:t,touchEvents:n,el:a,wrapperEl:r}=e,l=t.touchEventsTarget==="container"?a:r,d=!!t.nested;{if(!ae.touch&&(ae.pointerEvents||ae.prefixedPointerEvents))l.removeEventListener(n.start,e.onTouchStart,!1),Ee.removeEventListener(n.move,e.onTouchMove,d),Ee.removeEventListener(n.end,e.onTouchEnd,!1);else{if(ae.touch){const f=n.start==="onTouchStart"&&ae.passiveListener&&t.passiveListeners?{passive:!0,capture:!1}:!1;l.removeEventListener(n.start,e.onTouchStart,f),l.removeEventListener(n.move,e.onTouchMove,d),l.removeEventListener(n.end,e.onTouchEnd,f)}(t.simulateTouch&&!Zn.ios&&!Zn.android||t.simulateTouch&&!ae.touch&&Zn.ios)&&(l.removeEventListener("mousedown",e.onTouchStart,!1),Ee.removeEventListener("mousemove",e.onTouchMove,d),Ee.removeEventListener("mouseup",e.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&l.removeEventListener("click",e.onClick,!0)}e.off(Zn.ios||Zn.android?"resize orientationchange observerUpdate":"resize observerUpdate",Xv)}var o0={attachEvents:i0,detachEvents:r0};function s0(){const e=this,{activeIndex:t,initialized:n,loopedSlides:a=0,params:r}=e,l=r.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const d=e.getBreakpoint(l);if(d&&e.currentBreakpoint!==d){const f=d in l?l[d]:void 0;f&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach(E=>{const N=f[E];typeof N>"u"||(E==="slidesPerView"&&(N==="AUTO"||N==="auto")?f[E]="auto":E==="slidesPerView"?f[E]=parseFloat(N):f[E]=parseInt(N,10))});const p=f||e.originalParams,y=p.direction&&p.direction!==r.direction,k=r.loop&&(p.slidesPerView!==r.slidesPerView||y);y&&n&&e.changeDirection(),It.extend(e.params,p),It.extend(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),e.currentBreakpoint=d,k&&n&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-a+e.loopedSlides,0,!1)),e.emit("breakpoint",p)}}function l0(e){const t=this;if(!e)return;let n=!1;const a=[];Object.keys(e).forEach(r=>{a.push(r)}),a.sort((r,l)=>parseInt(r,10)-parseInt(l,10));for(let r=0;r<a.length;r+=1){const l=a[r];t.params.breakpointsInverse?l<=Wt.innerWidth&&(n=l):l>=Wt.innerWidth&&!n&&(n=l)}return n||"max"}var u0={setBreakpoint:s0,getBreakpoint:l0};function c0(){const e=this,{classNames:t,params:n,rtl:a,$el:r}=e,l=[];l.push("initialized"),l.push(n.direction),n.freeMode&&l.push("free-mode"),ae.flexbox||l.push("no-flexbox"),n.autoHeight&&l.push("autoheight"),a&&l.push("rtl"),n.slidesPerColumn>1&&l.push("multirow"),Zn.android&&l.push("android"),Zn.ios&&l.push("ios"),(yi.isIE||yi.isEdge)&&(ae.pointerEvents||ae.prefixedPointerEvents)&&l.push(`wp8-${n.direction}`),l.forEach(d=>{t.push(n.containerModifierClass+d)}),r.addClass(t.join(" "))}function d0(){const e=this,{$el:t,classNames:n}=e;t.removeClass(n.join(" "))}var f0={addClasses:c0,removeClasses:d0};function h0(e,t,n,a,r,l){let d;function f(){l&&l()}(!e.complete||!r)&&t?(d=new Wt.Image,d.onload=f,d.onerror=f,a&&(d.sizes=a),n&&(d.srcset=n),t&&(d.src=t)):f()}function p0(){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 g0={loadImage:h0,preloadImages:p0};function m0(){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 v0={checkOverflow:m0},Wg={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 Cd={update:Sk,translate:Mk,transition:Bk,slide:qk,loop:Wk,grabCursor:Gk,manipulation:Qk,events:o0,breakpoints:u0,checkOverflow:v0,classes:f0,images:g0},Td={};let Ga=class bu extends Fg{constructor(...t){let n,a;t.length===1&&t[0].constructor&&t[0].constructor===Object?a=t[0]:[n,a]=t,a||(a={}),a=It.extend({},a),n&&!a.el&&(a.el=n),super(a),Object.keys(Cd).forEach(p=>{Object.keys(Cd[p]).forEach(y=>{bu.prototype[y]||(bu.prototype[y]=Cd[p][y])})});const r=this;typeof r.modules>"u"&&(r.modules={}),Object.keys(r.modules).forEach(p=>{const y=r.modules[p];if(y.params){const k=Object.keys(y.params)[0],E=y.params[k];if(typeof E!="object"||E===null||!(k in a&&"enabled"in E))return;a[k]===!0&&(a[k]={enabled:!0}),typeof a[k]=="object"&&!("enabled"in a[k])&&(a[k].enabled=!0),a[k]||(a[k]={enabled:!1})}});const l=It.extend({},Wg);r.useModulesParams(l),r.params=It.extend({},l,Td,a),r.originalParams=It.extend({},r.params),r.passedParams=It.extend({},a),r.$=jt;const d=jt(r.params.el);if(n=d[0],!n)return;if(d.length>1){const p=[];return d.each((y,k)=>{const E=It.extend({},a,{el:k});p.push(new bu(E))}),p}n.swiper=r,d.data("swiper",r);const f=d.children(`.${r.params.wrapperClass}`);return It.extend(r,{$el:d,el:n,$wrapperEl:f,wrapperEl:f[0],classNames:[],slides:jt(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return r.params.direction==="horizontal"},isVertical(){return r.params.direction==="vertical"},rtl:n.dir.toLowerCase()==="rtl"||d.css("direction")==="rtl",rtlTranslate:r.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||d.css("direction")==="rtl"),wrongRTL:f.css("display")==="-webkit-box",activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,touchEvents:(function(){const y=["touchstart","touchmove","touchend"];let k=["mousedown","mousemove","mouseup"];return ae.pointerEvents?k=["pointerdown","pointermove","pointerup"]:ae.prefixedPointerEvents&&(k=["MSPointerDown","MSPointerMove","MSPointerUp"]),r.touchEventsTouch={start:y[0],move:y[1],end:y[2]},r.touchEventsDesktop={start:k[0],move:k[1],end:k[2]},ae.touch||!r.params.simulateTouch?r.touchEventsTouch:r.touchEventsDesktop})(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video",lastClickTime:It.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.useModules(),r.params.init&&r.init(),r}slidesPerViewDynamic(){const t=this,{params:n,slides:a,slidesGrid:r,size:l,activeIndex:d}=t;let f=1;if(n.centeredSlides){let p=a[d].swiperSlideSize,y;for(let k=d+1;k<a.length;k+=1)a[k]&&!y&&(p+=a[k].swiperSlideSize,f+=1,p>l&&(y=!0));for(let k=d-1;k>=0;k-=1)a[k]&&!y&&(p+=a[k].swiperSlideSize,f+=1,p>l&&(y=!0))}else for(let p=d+1;p<a.length;p+=1)r[p]-r[d]<l&&(f+=1);return f}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 r(){const d=t.rtlTranslate?t.translate*-1:t.translate,f=Math.min(Math.max(d,t.maxTranslate()),t.minTranslate());t.setTranslate(f),t.updateActiveIndex(),t.updateSlidesClasses()}let l;t.params.freeMode?(r(),t.params.autoHeight&&t.updateAutoHeight()):((t.params.slidesPerView==="auto"||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?l=t.slideTo(t.slides.length-1,0,!1,!0):l=t.slideTo(t.activeIndex,0,!1,!0),l||r()),a.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n=!0){const a=this,r=a.params.direction;return t||(t=r==="horizontal"?"vertical":"horizontal"),t===r||t!=="horizontal"&&t!=="vertical"||(a.$el.removeClass(`${a.params.containerModifierClass}${r} wp8-${r}`).addClass(`${a.params.containerModifierClass}${t}`),(yi.isIE||yi.isEdge)&&(ae.pointerEvents||ae.prefixedPointerEvents)&&a.$el.addClass(`${a.params.containerModifierClass}wp8-${t}`),a.params.direction=t,a.slides.each((l,d)=>{t==="vertical"?d.style.width="":d.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:r,$el:l,$wrapperEl:d,slides:f}=a;return typeof a.params>"u"||a.destroyed||(a.emit("beforeDestroy"),a.initialized=!1,a.detachEvents(),r.loop&&a.loopDestroy(),n&&(a.removeClasses(),l.removeAttr("style"),d.removeAttr("style"),f&&f.length&&f.removeClass([r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.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(p=>{a.off(p)}),t!==!1&&(a.$el[0].swiper=null,a.$el.data("swiper",null),It.deleteProps(a)),a.destroyed=!0),null}static extendDefaults(t){It.extend(Td,t)}static get extendedDefaults(){return Td}static get defaults(){return Wg}static get Class(){return Fg}static get $(){return jt}};var y0={name:"device",proto:{device:Zn},static:{device:Zn}},b0={name:"support",proto:{support:ae},static:{support:ae}},w0={name:"browser",proto:{browser:yi},static:{browser:yi}},k0={name:"resize",create(){const e=this;It.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;Wt.addEventListener("resize",e.resize.resizeHandler),Wt.addEventListener("orientationchange",e.resize.orientationChangeHandler)},destroy(){const e=this;Wt.removeEventListener("resize",e.resize.resizeHandler),Wt.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}};const wu={func:Wt.MutationObserver||Wt.WebkitMutationObserver,attach(e,t={}){const n=this,a=wu.func,r=new a(l=>{if(l.length===1){n.emit("observerUpdate",l[0]);return}const d=function(){n.emit("observerUpdate",l[0])};Wt.requestAnimationFrame?Wt.requestAnimationFrame(d):Wt.setTimeout(d,0)});r.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(r)},init(){const e=this;if(!(!ae.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 x0={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create(){const e=this;It.extend(e,{observer:{init:wu.init.bind(e),attach:wu.attach.bind(e),destroy:wu.destroy.bind(e),observers:[]}})},on:{init(){this.observer.init()},destroy(){this.observer.destroy()}}};const Eo={update(e){const t=this,{slidesPerView:n,slidesPerGroup:a,centeredSlides:r}=t.params,{addSlidesBefore:l,addSlidesAfter:d}=t.params.virtual,{from:f,to:p,slides:y,slidesGrid:k,renderSlide:E,offset:N}=t.virtual;t.updateActiveIndex();const I=t.activeIndex||0;let L;t.rtlTranslate?L="right":L=t.isHorizontal()?"left":"top";let K,J;r?(K=Math.floor(n/2)+a+l,J=Math.floor(n/2)+a+d):(K=n+(a-1)+l,J=a+d);const F=Math.max((I||0)-J,0),G=Math.min((I||0)+K,y.length-1),ot=(t.slidesGrid[F]||0)-(t.slidesGrid[0]||0);It.extend(t.virtual,{from:F,to:G,offset:ot,slidesGrid:t.slidesGrid});function dt(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(f===F&&p===G&&!e){t.slidesGrid!==k&&ot!==N&&t.slides.css(L,`${ot}px`),t.updateProgress();return}if(t.params.virtual.renderExternal){t.params.virtual.renderExternal.call(t,{offset:ot,from:F,to:G,slides:(function(){const mt=[];for(let ft=F;ft<=G;ft+=1)mt.push(y[ft]);return mt})()}),dt();return}const _=[],$=[];if(e)t.$wrapperEl.find(`.${t.params.slideClass}`).remove();else for(let v=f;v<=p;v+=1)(v<F||v>G)&&t.$wrapperEl.find(`.${t.params.slideClass}[data-swiper-slide-index="${v}"]`).remove();for(let v=0;v<y.length;v+=1)v>=F&&v<=G&&(typeof p>"u"||e?$.push(v):(v>p&&$.push(v),v<f&&_.push(v)));$.forEach(v=>{t.$wrapperEl.append(E(y[v],v))}),_.sort((v,mt)=>mt-v).forEach(v=>{t.$wrapperEl.prepend(E(y[v],v))}),t.$wrapperEl.children(".swiper-slide").css(L,`${ot}px`),dt()},renderSlide(e,t){const n=this,a=n.params.virtual;if(a.cache&&n.virtual.cache[t])return n.virtual.cache[t];const r=a.renderSlide?jt(a.renderSlide.call(n,e,t)):jt(`<div class="${n.params.slideClass}" data-swiper-slide-index="${t}">${e}</div>`);return r.attr("data-swiper-slide-index")||r.attr("data-swiper-slide-index",t),a.cache&&(n.virtual.cache[t]=r),r},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,r=1;if(Array.isArray(e)){for(let l=0;l<e.length;l+=1)e[l]&&t.virtual.slides.unshift(e[l]);a=n+e.length,r=e.length}else t.virtual.slides.unshift(e);if(t.params.virtual.cache){const l=t.virtual.cache,d={};Object.keys(l).forEach(f=>{d[parseInt(f,10)+r]=l[f]}),t.virtual.cache=d}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 S0={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create(){const e=this;It.extend(e,{virtual:{update:Eo.update.bind(e),appendSlide:Eo.appendSlide.bind(e),prependSlide:Eo.prependSlide.bind(e),removeSlide:Eo.removeSlide.bind(e),removeAllSlides:Eo.removeAllSlides.bind(e),renderSlide:Eo.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};It.extend(e.params,t),It.extend(e.originalParams,t),e.params.initialSlide||e.virtual.update()},setTranslate(){const e=this;e.params.virtual.enabled&&e.virtual.update()}}};const Ed={handle(e){const t=this,{rtlTranslate:n}=t;let a=e;a.originalEvent&&(a=a.originalEvent);const r=a.keyCode||a.charCode;if(!t.allowSlideNext&&(t.isHorizontal()&&r===39||t.isVertical()&&r===40||r===34)||!t.allowSlidePrev&&(t.isHorizontal()&&r===37||t.isVertical()&&r===38||r===33))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey)&&!(Ee.activeElement&&Ee.activeElement.nodeName&&(Ee.activeElement.nodeName.toLowerCase()==="input"||Ee.activeElement.nodeName.toLowerCase()==="textarea"))){if(t.params.keyboard.onlyInViewport&&(r===33||r===34||r===37||r===39||r===38||r===40)){let l=!1;if(t.$el.parents(`.${t.params.slideClass}`).length>0&&t.$el.parents(`.${t.params.slideActiveClass}`).length===0)return;const d=Wt.innerWidth,f=Wt.innerHeight,p=t.$el.offset();n&&(p.left-=t.$el[0].scrollLeft);const y=[[p.left,p.top],[p.left+t.width,p.top],[p.left,p.top+t.height],[p.left+t.width,p.top+t.height]];for(let k=0;k<y.length;k+=1){const E=y[k];E[0]>=0&&E[0]<=d&&E[1]>=0&&E[1]<=f&&(l=!0)}if(!l)return}t.isHorizontal()?((r===33||r===34||r===37||r===39)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),((r===34||r===39)&&!n||(r===33||r===37)&&n)&&t.slideNext(),((r===33||r===37)&&!n||(r===34||r===39)&&n)&&t.slidePrev()):((r===33||r===34||r===38||r===40)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),(r===34||r===40)&&t.slideNext(),(r===33||r===38)&&t.slidePrev()),t.emit("keyPress",r)}},enable(){const e=this;e.keyboard.enabled||(jt(Ee).on("keydown",e.keyboard.handle),e.keyboard.enabled=!0)},disable(){const e=this;e.keyboard.enabled&&(jt(Ee).off("keydown",e.keyboard.handle),e.keyboard.enabled=!1)}};var C0={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create(){const e=this;It.extend(e,{keyboard:{enabled:!1,enable:Ed.enable.bind(e),disable:Ed.disable.bind(e),handle:Ed.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 T0(){const e="onwheel";let t=e in Ee;if(!t){const n=Ee.createElement("div");n.setAttribute(e,"return;"),t=typeof n[e]=="function"}return!t&&Ee.implementation&&Ee.implementation.hasFeature&&Ee.implementation.hasFeature("","")!==!0&&(t=Ee.implementation.hasFeature("Events.wheel","3.0")),t}const gi={lastScrollTime:It.now(),event:(function(){return Wt.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":T0()?"wheel":"mousewheel"})(),normalize(e){let r=0,l=0,d=0,f=0;return"detail"in e&&(l=e.detail),"wheelDelta"in e&&(l=-e.wheelDelta/120),"wheelDeltaY"in e&&(l=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(r=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(r=l,l=0),d=r*10,f=l*10,"deltaY"in e&&(f=e.deltaY),"deltaX"in e&&(d=e.deltaX),(d||f)&&e.deltaMode&&(e.deltaMode===1?(d*=40,f*=40):(d*=800,f*=800)),d&&!r&&(r=d<1?-1:1),f&&!l&&(l=f<1?-1:1),{spinX:r,spinY:l,pixelX:d,pixelY:f}},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 r=0;const l=n.rtlTranslate?-1:1,d=gi.normalize(t);if(a.forceToAxis)if(n.isHorizontal())if(Math.abs(d.pixelX)>Math.abs(d.pixelY))r=d.pixelX*l;else return!0;else if(Math.abs(d.pixelY)>Math.abs(d.pixelX))r=d.pixelY;else return!0;else r=Math.abs(d.pixelX)>Math.abs(d.pixelY)?-d.pixelX*l:-d.pixelY;if(r===0)return!0;if(a.invert&&(r=-r),n.params.freeMode){n.params.loop&&n.loopFix();let f=n.getTranslate()+r*a.sensitivity;const p=n.isBeginning,y=n.isEnd;if(f>=n.minTranslate()&&(f=n.minTranslate()),f<=n.maxTranslate()&&(f=n.maxTranslate()),n.setTransition(0),n.setTranslate(f),n.updateProgress(),n.updateActiveIndex(),n.updateSlidesClasses(),(!p&&n.isBeginning||!y&&n.isEnd)&&n.updateSlidesClasses(),n.params.freeModeSticky&&(clearTimeout(n.mousewheel.timeout),n.mousewheel.timeout=It.nextTick(()=>{n.slideToClosest()},300)),n.emit("scroll",t),n.params.autoplay&&n.params.autoplayDisableOnInteraction&&n.autoplay.stop(),f===n.minTranslate()||f===n.maxTranslate())return!0}else{if(It.now()-n.mousewheel.lastScrollTime>60){if(r<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 Wt.Date().getTime()}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},enable(){const e=this;if(!gi.event||e.mousewheel.enabled)return!1;let t=e.$el;return e.params.mousewheel.eventsTarged!=="container"&&(t=jt(e.params.mousewheel.eventsTarged)),t.on("mouseenter",e.mousewheel.handleMouseEnter),t.on("mouseleave",e.mousewheel.handleMouseLeave),t.on(gi.event,e.mousewheel.handle),e.mousewheel.enabled=!0,!0},disable(){const e=this;if(!gi.event||!e.mousewheel.enabled)return!1;let t=e.$el;return e.params.mousewheel.eventsTarged!=="container"&&(t=jt(e.params.mousewheel.eventsTarged)),t.off(gi.event,e.mousewheel.handle),e.mousewheel.enabled=!1,!0}};var E0={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create(){const e=this;It.extend(e,{mousewheel:{enabled:!1,enable:gi.enable.bind(e),disable:gi.disable.bind(e),handle:gi.handle.bind(e),handleMouseEnter:gi.handleMouseEnter.bind(e),handleMouseLeave:gi.handleMouseLeave.bind(e),lastScrollTime:It.now()}})},on:{init(){const e=this;e.params.mousewheel.enabled&&e.mousewheel.enable()},destroy(){const e=this;e.mousewheel.enabled&&e.mousewheel.disable()}}};const Ls={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=jt(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=jt(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),It.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 P0={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;It.extend(e,{navigation:{init:Ls.init.bind(e),update:Ls.update.bind(e),destroy:Ls.destroy.bind(e),onNextClick:Ls.onNextClick.bind(e),onPrevClick:Ls.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&&!jt(e.target).is(a)&&!jt(e.target).is(n)){let r;n?r=n.hasClass(t.params.navigation.hiddenClass):a&&(r=a.hasClass(t.params.navigation.hiddenClass)),r===!0?t.emit("navigationShow",t):t.emit("navigationHide",t),n&&n.toggleClass(t.params.navigation.hiddenClass),a&&a.toggleClass(t.params.navigation.hiddenClass)}}}};const ou={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,r=e.pagination.$el;let l;const d=e.params.loop?Math.ceil((a-e.loopedSlides*2)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(l=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup),l>a-1-e.loopedSlides*2&&(l-=a-e.loopedSlides*2),l>d-1&&(l-=d),l<0&&e.params.paginationType!=="bullets"&&(l=d+l)):typeof e.snapIndex<"u"?l=e.snapIndex:l=e.activeIndex||0,n.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const f=e.pagination.bullets;let p,y,k;if(n.dynamicBullets&&(e.pagination.bulletSize=f.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),r.css(e.isHorizontal()?"width":"height",`${e.pagination.bulletSize*(n.dynamicMainBullets+4)}px`),n.dynamicMainBullets>1&&e.previousIndex!==void 0&&(e.pagination.dynamicBulletIndex+=l-e.previousIndex,e.pagination.dynamicBulletIndex>n.dynamicMainBullets-1?e.pagination.dynamicBulletIndex=n.dynamicMainBullets-1:e.pagination.dynamicBulletIndex<0&&(e.pagination.dynamicBulletIndex=0)),p=l-e.pagination.dynamicBulletIndex,y=p+(Math.min(f.length,n.dynamicMainBullets)-1),k=(y+p)/2),f.removeClass(`${n.bulletActiveClass} ${n.bulletActiveClass}-next ${n.bulletActiveClass}-next-next ${n.bulletActiveClass}-prev ${n.bulletActiveClass}-prev-prev ${n.bulletActiveClass}-main`),r.length>1)f.each((E,N)=>{const I=jt(N),L=I.index();L===l&&I.addClass(n.bulletActiveClass),n.dynamicBullets&&(L>=p&&L<=y&&I.addClass(`${n.bulletActiveClass}-main`),L===p&&I.prev().addClass(`${n.bulletActiveClass}-prev`).prev().addClass(`${n.bulletActiveClass}-prev-prev`),L===y&&I.next().addClass(`${n.bulletActiveClass}-next`).next().addClass(`${n.bulletActiveClass}-next-next`))});else if(f.eq(l).addClass(n.bulletActiveClass),n.dynamicBullets){const N=f.eq(p),I=f.eq(y);for(let L=p;L<=y;L+=1)f.eq(L).addClass(`${n.bulletActiveClass}-main`);N.prev().addClass(`${n.bulletActiveClass}-prev`).prev().addClass(`${n.bulletActiveClass}-prev-prev`),I.next().addClass(`${n.bulletActiveClass}-next`).next().addClass(`${n.bulletActiveClass}-next-next`)}if(n.dynamicBullets){const E=Math.min(f.length,n.dynamicMainBullets+4),N=(e.pagination.bulletSize*E-e.pagination.bulletSize)/2-k*e.pagination.bulletSize,I=t?"right":"left";f.css(e.isHorizontal()?I:"top",`${N}px`)}}if(n.type==="fraction"&&(r.find(`.${n.currentClass}`).text(n.formatFractionCurrent(l+1)),r.find(`.${n.totalClass}`).text(n.formatFractionTotal(d))),n.type==="progressbar"){let f;n.progressbarOpposite?f=e.isHorizontal()?"vertical":"horizontal":f=e.isHorizontal()?"horizontal":"vertical";const p=(l+1)/d;let y=1,k=1;f==="horizontal"?y=p:k=p,r.find(`.${n.progressbarFillClass}`).transform(`translate3d(0,0,0) scaleX(${y}) scaleY(${k})`).transition(e.params.speed)}n.type==="custom"&&n.renderCustom?(r.html(n.renderCustom(e,l+1,d)),e.emit("paginationRender",e,r[0])):e.emit("paginationUpdate",e,r[0]),r[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 r="";if(t.type==="bullets"){const l=e.params.loop?Math.ceil((n-e.loopedSlides*2)/e.params.slidesPerGroup):e.snapGrid.length;for(let d=0;d<l;d+=1)t.renderBullet?r+=t.renderBullet.call(e,d,t.bulletClass):r+=`<${t.bulletElement} class="${t.bulletClass}"></${t.bulletElement}>`;a.html(r),e.pagination.bullets=a.find(`.${t.bulletClass}`)}t.type==="fraction"&&(t.renderFraction?r=t.renderFraction.call(e,t.currentClass,t.totalClass):r=`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`,a.html(r)),t.type==="progressbar"&&(t.renderProgressbar?r=t.renderProgressbar.call(e,t.progressbarFillClass):r=`<span class="${t.progressbarFillClass}"></span>`,a.html(r)),t.type!=="custom"&&e.emit("paginationRender",e.pagination.$el[0])},init(){const e=this,t=e.params.pagination;if(!t.el)return;let n=jt(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(r){r.preventDefault();let l=jt(this).index()*e.params.slidesPerGroup;e.params.loop&&(l+=e.loopedSlides),e.slideTo(l)}),It.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 M0={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;It.extend(e,{pagination:{init:ou.init.bind(e),render:ou.render.bind(e),update:ou.update.bind(e),destroy:ou.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&&!jt(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 Ra={setTranslate(){const e=this;if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t,rtlTranslate:n,progress:a}=e,{dragSize:r,trackSize:l,$dragEl:d,$el:f}=t,p=e.params.scrollbar;let y=r,k=(l-r)*a;n?(k=-k,k>0?(y=r-k,k=0):-k+r>l&&(y=l+k)):k<0?(y=r+k,k=0):k+r>l&&(y=l-k),e.isHorizontal()?(ae.transforms3d?d.transform(`translate3d(${k}px, 0, 0)`):d.transform(`translateX(${k}px)`),d[0].style.width=`${y}px`):(ae.transforms3d?d.transform(`translate3d(0px, ${k}px, 0)`):d.transform(`translateY(${k}px)`),d[0].style.height=`${y}px`),p.hide&&(clearTimeout(e.scrollbar.timeout),f[0].style.opacity=1,e.scrollbar.timeout=setTimeout(()=>{f[0].style.opacity=0,f.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 r=e.isHorizontal()?a[0].offsetWidth:a[0].offsetHeight,l=e.size/e.virtualSize,d=l*(r/e.size);let f;e.params.scrollbar.dragSize==="auto"?f=r*l:f=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?n[0].style.width=`${f}px`:n[0].style.height=`${f}px`,l>=1?a[0].style.display="none":a[0].style.display="",e.params.scrollbar.hide&&(a[0].style.opacity=0),It.extend(t,{trackSize:r,divider:l,moveDivider:d,dragSize:f}),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:r,dragSize:l,trackSize:d,dragStartPos:f}=n;let p;p=(n.getPointerPosition(e)-r.offset()[t.isHorizontal()?"left":"top"]-(f!==null?f:l/2))/(d-l),p=Math.max(Math.min(p,1),0),a&&(p=1-p);const y=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*p;t.updateProgress(y),t.setTranslate(y),t.updateActiveIndex(),t.updateSlidesClasses()},onDragStart(e){const t=this,n=t.params.scrollbar,{scrollbar:a,$wrapperEl:r}=t,{$el:l,$dragEl:d}=a;t.scrollbar.isTouched=!0,t.scrollbar.dragStartPos=e.target===d[0]||e.target===d?a.getPointerPosition(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),r.transition(100),d.transition(100),a.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),l.transition(0),n.hide&&l.css("opacity",1),t.emit("scrollbarDragStart",e)},onDragMove(e){const t=this,{scrollbar:n,$wrapperEl:a}=t,{$el:r,$dragEl:l}=n;t.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,n.setDragPosition(e),a.transition(0),r.transition(0),l.transition(0),t.emit("scrollbarDragMove",e))},onDragEnd(e){const t=this,n=t.params.scrollbar,{scrollbar:a}=t,{$el:r}=a;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,n.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=It.nextTick(()=>{r.css("opacity",0),r.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:r}=e,d=t.$el[0],f=ae.passiveListener&&r.passiveListeners?{passive:!1,capture:!1}:!1,p=ae.passiveListener&&r.passiveListeners?{passive:!0,capture:!1}:!1;ae.touch?(d.addEventListener(n.start,e.scrollbar.onDragStart,f),d.addEventListener(n.move,e.scrollbar.onDragMove,f),d.addEventListener(n.end,e.scrollbar.onDragEnd,p)):(d.addEventListener(a.start,e.scrollbar.onDragStart,f),Ee.addEventListener(a.move,e.scrollbar.onDragMove,f),Ee.addEventListener(a.end,e.scrollbar.onDragEnd,p))},disableDraggable(){const e=this;if(!e.params.scrollbar.el)return;const{scrollbar:t,touchEventsTouch:n,touchEventsDesktop:a,params:r}=e,d=t.$el[0],f=ae.passiveListener&&r.passiveListeners?{passive:!1,capture:!1}:!1,p=ae.passiveListener&&r.passiveListeners?{passive:!0,capture:!1}:!1;ae.touch?(d.removeEventListener(n.start,e.scrollbar.onDragStart,f),d.removeEventListener(n.move,e.scrollbar.onDragMove,f),d.removeEventListener(n.end,e.scrollbar.onDragEnd,p)):(d.removeEventListener(a.start,e.scrollbar.onDragStart,f),Ee.removeEventListener(a.move,e.scrollbar.onDragMove,f),Ee.removeEventListener(a.end,e.scrollbar.onDragEnd,p))},init(){const e=this;if(!e.params.scrollbar.el)return;const{scrollbar:t,$el:n}=e,a=e.params.scrollbar;let r=jt(a.el);e.params.uniqueNavElements&&typeof a.el=="string"&&r.length>1&&n.find(a.el).length===1&&(r=n.find(a.el));let l=r.find(`.${e.params.scrollbar.dragClass}`);l.length===0&&(l=jt(`<div class="${e.params.scrollbar.dragClass}"></div>`),r.append(l)),It.extend(t,{$el:r,el:r[0],$dragEl:l,dragEl:l[0]}),a.draggable&&t.enableDraggable()},destroy(){this.scrollbar.disableDraggable()}};var A0={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;It.extend(e,{scrollbar:{init:Ra.init.bind(e),destroy:Ra.destroy.bind(e),updateSize:Ra.updateSize.bind(e),setTranslate:Ra.setTranslate.bind(e),setTransition:Ra.setTransition.bind(e),enableDraggable:Ra.enableDraggable.bind(e),disableDraggable:Ra.disableDraggable.bind(e),setDragPosition:Ra.setDragPosition.bind(e),getPointerPosition:Ra.getPointerPosition.bind(e),onDragStart:Ra.onDragStart.bind(e),onDragMove:Ra.onDragMove.bind(e),onDragEnd:Ra.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 Pd={setTransform(e,t){const n=this,{rtl:a}=n,r=jt(e),l=a?-1:1,d=r.attr("data-swiper-parallax")||"0";let f=r.attr("data-swiper-parallax-x"),p=r.attr("data-swiper-parallax-y");const y=r.attr("data-swiper-parallax-scale"),k=r.attr("data-swiper-parallax-opacity");if(f||p?(f=f||"0",p=p||"0"):n.isHorizontal()?(f=d,p="0"):(p=d,f="0"),f.indexOf("%")>=0?f=`${parseInt(f,10)*t*l}%`:f=`${f*t*l}px`,p.indexOf("%")>=0?p=`${parseInt(p,10)*t}%`:p=`${p*t}px`,typeof k<"u"&&k!==null){const E=k-(k-1)*(1-Math.abs(t));r[0].style.opacity=E}if(typeof y>"u"||y===null)r.transform(`translate3d(${f}, ${p}, 0px)`);else{const E=y-(y-1)*(1-Math.abs(t));r.transform(`translate3d(${f}, ${p}, 0px) scale(${E})`)}},setTranslate(){const e=this,{$el:t,slides:n,progress:a,snapGrid:r}=e;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((l,d)=>{e.parallax.setTransform(d,a)}),n.each((l,d)=>{let f=d.progress;e.params.slidesPerGroup>1&&e.params.slidesPerView!=="auto"&&(f+=Math.ceil(l/2)-a*(r.length-1)),f=Math.min(Math.max(f,-1),1),jt(d).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((p,y)=>{e.parallax.setTransform(y,f)})})},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,r)=>{const l=jt(r);let d=parseInt(l.attr("data-swiper-parallax-duration"),10)||e;e===0&&(d=0),l.transition(d)})}};var N0={name:"parallax",params:{parallax:{enabled:!1}},create(){const e=this;It.extend(e,{parallax:{setTransform:Pd.setTransform.bind(e),setTranslate:Pd.setTranslate.bind(e),setTransition:Pd.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 Hf={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,r=e.targetTouches[1].pageY;return Math.sqrt((a-t)**2+(r-n)**2)},onGestureStart(e){const t=this,n=t.params.zoom,a=t.zoom,{gesture:r}=a;if(a.fakeGestureTouched=!1,a.fakeGestureMoved=!1,!ae.gestures){if(e.type!=="touchstart"||e.type==="touchstart"&&e.targetTouches.length<2)return;a.fakeGestureTouched=!0,r.scaleStart=Hf.getDistanceBetweenTouches(e)}if((!r.$slideEl||!r.$slideEl.length)&&(r.$slideEl=jt(e.target).closest(".swiper-slide"),r.$slideEl.length===0&&(r.$slideEl=t.slides.eq(t.activeIndex)),r.$imageEl=r.$slideEl.find("img, svg, canvas"),r.$imageWrapEl=r.$imageEl.parent(`.${n.containerClass}`),r.maxRatio=r.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,r.$imageWrapEl.length===0)){r.$imageEl=void 0;return}r.$imageEl.transition(0),t.zoom.isScaling=!0},onGestureChange(e){const t=this,n=t.params.zoom,a=t.zoom,{gesture:r}=a;if(!ae.gestures){if(e.type!=="touchmove"||e.type==="touchmove"&&e.targetTouches.length<2)return;a.fakeGestureMoved=!0,r.scaleMove=Hf.getDistanceBetweenTouches(e)}!r.$imageEl||r.$imageEl.length===0||(ae.gestures?a.scale=e.scale*a.currentScale:a.scale=r.scaleMove/r.scaleStart*a.currentScale,a.scale>r.maxRatio&&(a.scale=r.maxRatio-1+(a.scale-r.maxRatio+1)**.5),a.scale<n.minRatio&&(a.scale=n.minRatio+1-(n.minRatio-a.scale+1)**.5),r.$imageEl.transform(`translate3d(0,0,0) scale(${a.scale})`))},onGestureEnd(e){const t=this,n=t.params.zoom,a=t.zoom,{gesture:r}=a;if(!ae.gestures){if(!a.fakeGestureTouched||!a.fakeGestureMoved||e.type!=="touchend"||e.type==="touchend"&&e.changedTouches.length<2&&!Zn.android)return;a.fakeGestureTouched=!1,a.fakeGestureMoved=!1}!r.$imageEl||r.$imageEl.length===0||(a.scale=Math.max(Math.min(a.scale,r.maxRatio),n.minRatio),r.$imageEl.transition(t.params.speed).transform(`translate3d(0,0,0) scale(${a.scale})`),a.currentScale=a.scale,a.isScaling=!1,a.scale===1&&(r.$slideEl=void 0))},onTouchStart(e){const n=this.zoom,{gesture:a,image:r}=n;!a.$imageEl||a.$imageEl.length===0||r.isTouched||(Zn.android&&e.preventDefault(),r.isTouched=!0,r.touchesStart.x=e.type==="touchstart"?e.targetTouches[0].pageX:e.pageX,r.touchesStart.y=e.type==="touchstart"?e.targetTouches[0].pageY:e.pageY)},onTouchMove(e){const t=this,n=t.zoom,{gesture:a,image:r,velocity:l}=n;if(!a.$imageEl||a.$imageEl.length===0||(t.allowClick=!1,!r.isTouched||!a.$slideEl))return;r.isMoved||(r.width=a.$imageEl[0].offsetWidth,r.height=a.$imageEl[0].offsetHeight,r.startX=It.getTranslate(a.$imageWrapEl[0],"x")||0,r.startY=It.getTranslate(a.$imageWrapEl[0],"y")||0,a.slideWidth=a.$slideEl[0].offsetWidth,a.slideHeight=a.$slideEl[0].offsetHeight,a.$imageWrapEl.transition(0),t.rtl&&(r.startX=-r.startX,r.startY=-r.startY));const d=r.width*n.scale,f=r.height*n.scale;if(!(d<a.slideWidth&&f<a.slideHeight)){if(r.minX=Math.min(a.slideWidth/2-d/2,0),r.maxX=-r.minX,r.minY=Math.min(a.slideHeight/2-f/2,0),r.maxY=-r.minY,r.touchesCurrent.x=e.type==="touchmove"?e.targetTouches[0].pageX:e.pageX,r.touchesCurrent.y=e.type==="touchmove"?e.targetTouches[0].pageY:e.pageY,!r.isMoved&&!n.isScaling){if(t.isHorizontal()&&(Math.floor(r.minX)===Math.floor(r.startX)&&r.touchesCurrent.x<r.touchesStart.x||Math.floor(r.maxX)===Math.floor(r.startX)&&r.touchesCurrent.x>r.touchesStart.x)){r.isTouched=!1;return}if(!t.isHorizontal()&&(Math.floor(r.minY)===Math.floor(r.startY)&&r.touchesCurrent.y<r.touchesStart.y||Math.floor(r.maxY)===Math.floor(r.startY)&&r.touchesCurrent.y>r.touchesStart.y)){r.isTouched=!1;return}}e.preventDefault(),e.stopPropagation(),r.isMoved=!0,r.currentX=r.touchesCurrent.x-r.touchesStart.x+r.startX,r.currentY=r.touchesCurrent.y-r.touchesStart.y+r.startY,r.currentX<r.minX&&(r.currentX=r.minX+1-(r.minX-r.currentX+1)**.8),r.currentX>r.maxX&&(r.currentX=r.maxX-1+(r.currentX-r.maxX+1)**.8),r.currentY<r.minY&&(r.currentY=r.minY+1-(r.minY-r.currentY+1)**.8),r.currentY>r.maxY&&(r.currentY=r.maxY-1+(r.currentY-r.maxY+1)**.8),l.prevPositionX||(l.prevPositionX=r.touchesCurrent.x),l.prevPositionY||(l.prevPositionY=r.touchesCurrent.y),l.prevTime||(l.prevTime=Date.now()),l.x=(r.touchesCurrent.x-l.prevPositionX)/(Date.now()-l.prevTime)/2,l.y=(r.touchesCurrent.y-l.prevPositionY)/(Date.now()-l.prevTime)/2,Math.abs(r.touchesCurrent.x-l.prevPositionX)<2&&(l.x=0),Math.abs(r.touchesCurrent.y-l.prevPositionY)<2&&(l.y=0),l.prevPositionX=r.touchesCurrent.x,l.prevPositionY=r.touchesCurrent.y,l.prevTime=Date.now(),a.$imageWrapEl.transform(`translate3d(${r.currentX}px, ${r.currentY}px,0)`)}},onTouchEnd(){const t=this.zoom,{gesture:n,image:a,velocity:r}=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 l=300,d=300;const f=r.x*l,p=a.currentX+f,y=r.y*d,k=a.currentY+y;r.x!==0&&(l=Math.abs((p-a.currentX)/r.x)),r.y!==0&&(d=Math.abs((k-a.currentY)/r.y));const E=Math.max(l,d);a.currentX=p,a.currentY=k;const N=a.width*t.scale,I=a.height*t.scale;a.minX=Math.min(n.slideWidth/2-N/2,0),a.maxX=-a.minX,a.minY=Math.min(n.slideHeight/2-I/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(E).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:r,image:l}=n;if(r.$slideEl||(r.$slideEl=t.clickedSlide?jt(t.clickedSlide):t.slides.eq(t.activeIndex),r.$imageEl=r.$slideEl.find("img, svg, canvas"),r.$imageWrapEl=r.$imageEl.parent(`.${a.containerClass}`)),!r.$imageEl||r.$imageEl.length===0)return;r.$slideEl.addClass(`${a.zoomedSlideClass}`);let d,f,p,y,k,E,N,I,L,K,J,F,G,ot,dt,_,$,v;typeof l.touchesStart.x>"u"&&e?(d=e.type==="touchend"?e.changedTouches[0].pageX:e.pageX,f=e.type==="touchend"?e.changedTouches[0].pageY:e.pageY):(d=l.touchesStart.x,f=l.touchesStart.y),n.scale=r.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,n.currentScale=r.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,e?($=r.$slideEl[0].offsetWidth,v=r.$slideEl[0].offsetHeight,p=r.$slideEl.offset().left,y=r.$slideEl.offset().top,k=p+$/2-d,E=y+v/2-f,L=r.$imageEl[0].offsetWidth,K=r.$imageEl[0].offsetHeight,J=L*n.scale,F=K*n.scale,G=Math.min($/2-J/2,0),ot=Math.min(v/2-F/2,0),dt=-G,_=-ot,N=k*n.scale,I=E*n.scale,N<G&&(N=G),N>dt&&(N=dt),I<ot&&(I=ot),I>_&&(I=_)):(N=0,I=0),r.$imageWrapEl.transition(300).transform(`translate3d(${N}px, ${I}px,0)`),r.$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?jt(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"&&ae.passiveListener&&e.params.passiveListeners?{passive:!0,capture:!1}:!1;ae.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"&&ae.passiveListener&&e.params.passiveListeners?{passive:!0,capture:!1}:!1;ae.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 L0={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]=Hf[a].bind(e)}),It.extend(e,{zoom:t});let n=1;Object.defineProperty(e.zoom,"scale",{get(){return n},set(a){if(n!==a){const r=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,l=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",a,r,l)}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 _g={loadInSlide(e,t=!0){const n=this,a=n.params.lazy;if(typeof e>"u"||n.slides.length===0)return;const l=n.virtual&&n.params.virtual.enabled?n.$wrapperEl.children(`.${n.params.slideClass}[data-swiper-slide-index="${e}"]`):n.slides.eq(e);let d=l.find(`.${a.elementClass}:not(.${a.loadedClass}):not(.${a.loadingClass})`);l.hasClass(a.elementClass)&&!l.hasClass(a.loadedClass)&&!l.hasClass(a.loadingClass)&&(d=d.add(l[0])),d.length!==0&&d.each((f,p)=>{const y=jt(p);y.addClass(a.loadingClass);const k=y.attr("data-background"),E=y.attr("data-src"),N=y.attr("data-srcset"),I=y.attr("data-sizes");n.loadImage(y[0],E||k,N,I,!1,()=>{if(!(typeof n>"u"||n===null||!n||n&&!n.params||n.destroyed)){if(k?(y.css("background-image",`url("${k}")`),y.removeAttr("data-background")):(N&&(y.attr("srcset",N),y.removeAttr("data-srcset")),I&&(y.attr("sizes",I),y.removeAttr("data-sizes")),E&&(y.attr("src",E),y.removeAttr("data-src"))),y.addClass(a.loadedClass).removeClass(a.loadingClass),l.find(`.${a.preloaderClass}`).remove(),n.params.loop&&t){const L=l.attr("data-swiper-slide-index");if(l.hasClass(n.params.slideDuplicateClass)){const K=n.$wrapperEl.children(`[data-swiper-slide-index="${L}"]:not(.${n.params.slideDuplicateClass})`);n.lazy.loadInSlide(K.index(),!1)}else{const K=n.$wrapperEl.children(`.${n.params.slideDuplicateClass}[data-swiper-slide-index="${L}"]`);n.lazy.loadInSlide(K.index(),!1)}}n.emit("lazyImageReady",l[0],y[0])}}),n.emit("lazyImageLoad",l[0],y[0])})},load(){const e=this,{$wrapperEl:t,params:n,slides:a,activeIndex:r}=e,l=e.virtual&&n.virtual.enabled,d=n.lazy;let f=n.slidesPerView;f==="auto"&&(f=0);function p(k){if(l){if(t.children(`.${n.slideClass}[data-swiper-slide-index="${k}"]`).length)return!0}else if(a[k])return!0;return!1}function y(k){return l?jt(k).attr("data-swiper-slide-index"):jt(k).index()}if(e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children(`.${n.slideVisibleClass}`).each((k,E)=>{const N=l?jt(E).attr("data-swiper-slide-index"):jt(E).index();e.lazy.loadInSlide(N)});else if(f>1)for(let k=r;k<r+f;k+=1)p(k)&&e.lazy.loadInSlide(k);else e.lazy.loadInSlide(r);if(d.loadPrevNext)if(f>1||d.loadPrevNextAmount&&d.loadPrevNextAmount>1){const k=d.loadPrevNextAmount,E=f,N=Math.min(r+E+Math.max(k,E),a.length),I=Math.max(r-Math.max(E,k),0);for(let L=r+f;L<N;L+=1)p(L)&&e.lazy.loadInSlide(L);for(let L=I;L<r;L+=1)p(L)&&e.lazy.loadInSlide(L)}else{const k=t.children(`.${n.slideNextClass}`);k.length>0&&e.lazy.loadInSlide(y(k));const E=t.children(`.${n.slidePrevClass}`);E.length>0&&e.lazy.loadInSlide(y(E))}}};var B0={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;It.extend(e,{lazy:{initialImageLoaded:!1,load:_g.load.bind(e),loadInSlide:_g.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 Zs={LinearSpline:function(t,n){const a=(function(){let f,p,y;return(k,E)=>{for(p=-1,f=k.length;f-p>1;)y=f+p>>1,k[y]<=E?p=y:f=y;return f}})();this.x=t,this.y=n,this.lastIndex=t.length-1;let r,l;return this.interpolate=function(f){return f?(l=a(this.x,f),r=l-1,(f-this.x[r])*(this.y[l]-this.y[r])/(this.x[l]-this.x[r])+this.y[r]):0},this},getInterpolateFunction(e){const t=this;t.controller.spline||(t.controller.spline=t.params.loop?new Zs.LinearSpline(t.slidesGrid,e.slidesGrid):new Zs.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate(e,t){const n=this,a=n.controller.control;let r,l;function d(f){const p=n.rtlTranslate?-n.translate:n.translate;n.params.controller.by==="slide"&&(n.controller.getInterpolateFunction(f),l=-n.controller.spline.interpolate(-p)),(!l||n.params.controller.by==="container")&&(r=(f.maxTranslate()-f.minTranslate())/(n.maxTranslate()-n.minTranslate()),l=(p-n.minTranslate())*r+f.minTranslate()),n.params.controller.inverse&&(l=f.maxTranslate()-l),f.updateProgress(l),f.setTranslate(l,n),f.updateActiveIndex(),f.updateSlidesClasses()}if(Array.isArray(a))for(let f=0;f<a.length;f+=1)a[f]!==t&&a[f]instanceof Ga&&d(a[f]);else a instanceof Ga&&t!==a&&d(a)},setTransition(e,t){const n=this,a=n.controller.control;let r;function l(d){d.setTransition(e,n),e!==0&&(d.transitionStart(),d.params.autoHeight&&It.nextTick(()=>{d.updateAutoHeight()}),d.$wrapperEl.transitionEnd(()=>{a&&(d.params.loop&&n.params.controller.by==="slide"&&d.loopFix(),d.transitionEnd())}))}if(Array.isArray(a))for(r=0;r<a.length;r+=1)a[r]!==t&&a[r]instanceof Ga&&l(a[r]);else a instanceof Ga&&t!==a&&l(a)}};var z0={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create(){const e=this;It.extend(e,{controller:{control:e.params.controller.control,getInterpolateFunction:Zs.getInterpolateFunction.bind(e),setTranslate:Zs.setTranslate.bind(e),setTransition:Zs.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 Vg={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=jt(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 r=jt(a);e.a11y.makeElFocusable(r),e.a11y.addElRole(r,"button"),e.a11y.addElLabel(r,t.paginationBulletMessage.replace(/{{index}}/,r.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 I0={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;It.extend(e,{a11y:{liveRegion:jt(`<span class="${e.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)}}),Object.keys(Vg).forEach(t=>{e.a11y[t]=Vg[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 Li={init(){const e=this;if(!e.params.history)return;if(!Wt.history||!Wt.history.pushState){e.params.history.enabled=!1,e.params.hashNavigation.enabled=!0;return}const t=e.history;t.initialized=!0,t.paths=Li.getPathValues(),!(!t.paths.key&&!t.paths.value)&&(t.scrollToSlide(0,t.paths.value,e.params.runCallbacksOnInit),e.params.history.replaceState||Wt.addEventListener("popstate",e.history.setHistoryPopState))},destroy(){const e=this;e.params.history.replaceState||Wt.removeEventListener("popstate",e.history.setHistoryPopState)},setHistoryPopState(){const e=this;e.history.paths=Li.getPathValues(),e.history.scrollToSlide(e.params.speed,e.history.paths.value,!1)},getPathValues(){const e=Wt.location.pathname.slice(1).split("/").filter(r=>r!==""),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 r=Li.slugify(a.attr("data-history"));Wt.location.pathname.includes(e)||(r=`${e}/${r}`);const l=Wt.history.state;l&&l.value===r||(n.params.history.replaceState?Wt.history.replaceState({value:r},null,r):Wt.history.pushState({value:r},null,r))},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 r=0,l=a.slides.length;r<l;r+=1){const d=a.slides.eq(r);if(Li.slugify(d.attr("data-history"))===t&&!d.hasClass(a.params.slideDuplicateClass)){const p=d.index();a.slideTo(p,e,n)}}else a.slideTo(0,e,n)}};var D0={name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create(){const e=this;It.extend(e,{history:{init:Li.init.bind(e),setHistory:Li.setHistory.bind(e),setHistoryPopState:Li.setHistoryPopState.bind(e),scrollToSlide:Li.scrollToSlide.bind(e),destroy:Li.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 su={onHashCange(){const e=this,t=Ee.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&&Wt.history&&Wt.history.replaceState)Wt.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");Ee.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=Ee.location.hash.replace("#","");if(t)for(let a=0,r=e.slides.length;a<r;a+=1){const l=e.slides.eq(a);if((l.attr("data-hash")||l.attr("data-history"))===t&&!l.hasClass(e.params.slideDuplicateClass)){const f=l.index();e.slideTo(f,0,e.params.runCallbacksOnInit,!0)}}e.params.hashNavigation.watchState&&jt(Wt).on("hashchange",e.hashNavigation.onHashCange)},destroy(){const e=this;e.params.hashNavigation.watchState&&jt(Wt).off("hashchange",e.hashNavigation.onHashCange)}};var R0={name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create(){const e=this;It.extend(e,{hashNavigation:{initialized:!1,init:su.init.bind(e),destroy:su.destroy.bind(e),setHash:su.setHash.bind(e),onHashCange:su.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 lu={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=It.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 j0={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create(){const e=this;It.extend(e,{autoplay:{running:!1,paused:!1,run:lu.run.bind(e),start:lu.start.bind(e),stop:lu.stop.bind(e),pause:lu.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 Gg={setTranslate(){const e=this,{slides:t}=e;for(let n=0;n<t.length;n+=1){const a=e.slides.eq(n);let l=-a[0].swiperSlideOffset;e.params.virtualTranslate||(l-=e.translate);let d=0;e.isHorizontal()||(d=l,l=0);const f=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:f}).transform(`translate3d(${l}px, ${d}px, 0px)`)}},setTransition(e){const t=this,{slides:n,$wrapperEl:a}=t;if(n.transition(e),t.params.virtualTranslate&&e!==0){let r=!1;n.transitionEnd(()=>{if(r||!t||t.destroyed)return;r=!0,t.animating=!1;const l=["webkitTransitionEnd","transitionend"];for(let d=0;d<l.length;d+=1)a.trigger(l[d])})}}};var O0={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create(){const e=this;It.extend(e,{fadeEffect:{setTranslate:Gg.setTranslate.bind(e),setTransition:Gg.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};It.extend(e.params,t),It.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 Ug={setTranslate(){const e=this,{$el:t,$wrapperEl:n,slides:a,width:r,height:l,rtlTranslate:d,size:f}=e,p=e.params.cubeEffect,y=e.isHorizontal(),k=e.virtual&&e.params.virtual.enabled;let E=0,N;p.shadow&&(y?(N=n.find(".swiper-cube-shadow"),N.length===0&&(N=jt('<div class="swiper-cube-shadow"></div>'),n.append(N)),N.css({height:`${r}px`})):(N=t.find(".swiper-cube-shadow"),N.length===0&&(N=jt('<div class="swiper-cube-shadow"></div>'),t.append(N))));for(let L=0;L<a.length;L+=1){const K=a.eq(L);let J=L;k&&(J=parseInt(K.attr("data-swiper-slide-index"),10));let F=J*90,G=Math.floor(F/360);d&&(F=-F,G=Math.floor(-F/360));const ot=Math.max(Math.min(K[0].progress,1),-1);let dt=0,_=0,$=0;J%4===0?(dt=-G*4*f,$=0):(J-1)%4===0?(dt=0,$=-G*4*f):(J-2)%4===0?(dt=f+G*4*f,$=f):(J-3)%4===0&&(dt=-f,$=3*f+f*4*G),d&&(dt=-dt),y||(_=dt,dt=0);const v=`rotateX(${y?0:-F}deg) rotateY(${y?F:0}deg) translate3d(${dt}px, ${_}px, ${$}px)`;if(ot<=1&&ot>-1&&(E=J*90+ot*90,d&&(E=-J*90-ot*90)),K.transform(v),p.slideShadows){let mt=y?K.find(".swiper-slide-shadow-left"):K.find(".swiper-slide-shadow-top"),ft=y?K.find(".swiper-slide-shadow-right"):K.find(".swiper-slide-shadow-bottom");mt.length===0&&(mt=jt(`<div class="swiper-slide-shadow-${y?"left":"top"}"></div>`),K.append(mt)),ft.length===0&&(ft=jt(`<div class="swiper-slide-shadow-${y?"right":"bottom"}"></div>`),K.append(ft)),mt.length&&(mt[0].style.opacity=Math.max(-ot,0)),ft.length&&(ft[0].style.opacity=Math.max(ot,0))}}if(n.css({"-webkit-transform-origin":`50% 50% -${f/2}px`,"-moz-transform-origin":`50% 50% -${f/2}px`,"-ms-transform-origin":`50% 50% -${f/2}px`,"transform-origin":`50% 50% -${f/2}px`}),p.shadow)if(y)N.transform(`translate3d(0px, ${r/2+p.shadowOffset}px, ${-r/2}px) rotateX(90deg) rotateZ(0deg) scale(${p.shadowScale})`);else{const L=Math.abs(E)-Math.floor(Math.abs(E)/90)*90,K=1.5-(Math.sin(L*2*Math.PI/360)/2+Math.cos(L*2*Math.PI/360)/2),J=p.shadowScale,F=p.shadowScale/K,G=p.shadowOffset;N.transform(`scale3d(${J}, 1, ${F}) translate3d(0px, ${l/2+G}px, ${-l/2/F}px) rotateX(-90deg)`)}const I=yi.isSafari||yi.isUiWebView?-f/2:0;n.transform(`translate3d(0px,0,${I}px) rotateX(${e.isHorizontal()?0:E}deg) rotateY(${e.isHorizontal()?-E: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 K0={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create(){const e=this;It.extend(e,{cubeEffect:{setTranslate:Ug.setTranslate.bind(e),setTransition:Ug.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};It.extend(e.params,t),It.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 Yg={setTranslate(){const e=this,{slides:t,rtlTranslate:n}=e;for(let a=0;a<t.length;a+=1){const r=t.eq(a);let l=r[0].progress;e.params.flipEffect.limitRotation&&(l=Math.max(Math.min(r[0].progress,1),-1));const d=r[0].swiperSlideOffset;let p=-180*l,y=0,k=-d,E=0;if(e.isHorizontal()?n&&(p=-p):(E=k,k=0,y=-p,p=0),r[0].style.zIndex=-Math.abs(Math.round(l))+t.length,e.params.flipEffect.slideShadows){let N=e.isHorizontal()?r.find(".swiper-slide-shadow-left"):r.find(".swiper-slide-shadow-top"),I=e.isHorizontal()?r.find(".swiper-slide-shadow-right"):r.find(".swiper-slide-shadow-bottom");N.length===0&&(N=jt(`<div class="swiper-slide-shadow-${e.isHorizontal()?"left":"top"}"></div>`),r.append(N)),I.length===0&&(I=jt(`<div class="swiper-slide-shadow-${e.isHorizontal()?"right":"bottom"}"></div>`),r.append(I)),N.length&&(N[0].style.opacity=Math.max(-l,0)),I.length&&(I[0].style.opacity=Math.max(l,0))}r.transform(`translate3d(${k}px, ${E}px, 0px) rotateX(${y}deg) rotateY(${p}deg)`)}},setTransition(e){const t=this,{slides:n,activeIndex:a,$wrapperEl:r}=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 l=!1;n.eq(a).transitionEnd(function(){if(l||!t||t.destroyed)return;l=!0,t.animating=!1;const f=["webkitTransitionEnd","transitionend"];for(let p=0;p<f.length;p+=1)r.trigger(f[p])})}}};var q0={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create(){const e=this;It.extend(e,{flipEffect:{setTranslate:Yg.setTranslate.bind(e),setTransition:Yg.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};It.extend(e.params,t),It.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 Xg={setTranslate(){const e=this,{width:t,height:n,slides:a,$wrapperEl:r,slidesSizesGrid:l}=e,d=e.params.coverflowEffect,f=e.isHorizontal(),p=e.translate,y=f?-p+t/2:-p+n/2,k=f?d.rotate:-d.rotate,E=d.depth;for(let N=0,I=a.length;N<I;N+=1){const L=a.eq(N),K=l[N],J=L[0].swiperSlideOffset,F=(y-J-K/2)/K*d.modifier;let G=f?k*F:0,ot=f?0:k*F,dt=-E*Math.abs(F),_=f?0:d.stretch*F,$=f?d.stretch*F:0;Math.abs($)<.001&&($=0),Math.abs(_)<.001&&(_=0),Math.abs(dt)<.001&&(dt=0),Math.abs(G)<.001&&(G=0),Math.abs(ot)<.001&&(ot=0);const v=`translate3d(${$}px,${_}px,${dt}px) rotateX(${ot}deg) rotateY(${G}deg)`;if(L.transform(v),L[0].style.zIndex=-Math.abs(Math.round(F))+1,d.slideShadows){let mt=f?L.find(".swiper-slide-shadow-left"):L.find(".swiper-slide-shadow-top"),ft=f?L.find(".swiper-slide-shadow-right"):L.find(".swiper-slide-shadow-bottom");mt.length===0&&(mt=jt(`<div class="swiper-slide-shadow-${f?"left":"top"}"></div>`),L.append(mt)),ft.length===0&&(ft=jt(`<div class="swiper-slide-shadow-${f?"right":"bottom"}"></div>`),L.append(ft)),mt.length&&(mt[0].style.opacity=F>0?F:0),ft.length&&(ft[0].style.opacity=-F>0?-F:0)}}if(ae.pointerEvents||ae.prefixedPointerEvents){const N=r[0].style;N.perspectiveOrigin=`${y}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 $0={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create(){const e=this;It.extend(e,{coverflowEffect:{setTranslate:Xg.setTranslate.bind(e),setTransition:Xg.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 Md={init(){const e=this,{thumbs:t}=e.params,n=e.constructor;t.swiper instanceof n?(e.thumbs.swiper=t.swiper,It.extend(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),It.extend(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):It.isObject(t.swiper)&&(e.thumbs.swiper=new n(It.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&&jt(a).hasClass(e.params.thumbs.slideThumbActiveClass)||typeof n>"u"||n===null)return;let r;if(t.params.loop?r=parseInt(jt(t.clickedSlide).attr("data-swiper-slide-index"),10):r=n,e.params.loop){let l=e.activeIndex;e.slides.eq(l).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,l=e.activeIndex);const d=e.slides.eq(l).prevAll(`[data-swiper-slide-index="${r}"]`).eq(0).index(),f=e.slides.eq(l).nextAll(`[data-swiper-slide-index="${r}"]`).eq(0).index();typeof d>"u"?r=f:typeof f>"u"?r=d:f-l<l-d?r=f:r=d}e.slideTo(r)},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 d=n.activeIndex,f;if(n.params.loop){n.slides.eq(d).hasClass(n.params.slideDuplicateClass)&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,d=n.activeIndex);const p=n.slides.eq(d).prevAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index(),y=n.slides.eq(d).nextAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index();typeof p>"u"?f=y:typeof y>"u"?f=p:y-d===d-p?f=d:y-d<d-p?f=y:f=p}else f=t.realIndex;n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(f)<0&&(n.params.centeredSlides?f>d?f=f-Math.floor(a/2)+1:f=f+Math.floor(a/2)-1:f>d&&(f=f-a+1),n.slideTo(f,e?0:void 0))}let r=1;const l=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(r=t.params.slidesPerView),n.slides.removeClass(l),n.params.loop||n.params.virtual)for(let d=0;d<r;d+=1)n.$wrapperEl.children(`[data-swiper-slide-index="${t.realIndex+d}"]`).addClass(l);else for(let d=0;d<r;d+=1)n.slides.eq(t.realIndex+d).addClass(l)}};var H0={name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create(){const e=this;It.extend(e,{thumbs:{swiper:null,init:Md.init.bind(e),update:Md.update.bind(e),onThumbClick:Md.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 F0=[y0,b0,w0,k0,x0,S0,C0,E0,P0,M0,A0,N0,L0,B0,z0,I0,D0,R0,j0,O0,K0,q0,$0,H0];typeof Ga.use>"u"&&(Ga.use=Ga.Class.use,Ga.installModule=Ga.Class.installModule);Ga.use(F0);const W0=Object.freeze(Object.defineProperty({__proto__:null,default:Ga},Symbol.toStringTag,{value:"Module"})),_0=Uv(W0);var Rr={},Zg;function V0(){if(Zg)return Rr;Zg=1,Object.defineProperty(Rr,"__esModule",{value:!0});var e=sa();return Rr.classNames=function(t){return typeof t=="string"?t.split(".").join(" ").trim():t instanceof HTMLElement?t.className:""},Rr.validateChildren=function(t){var n=!0;return Array.isArray(t)?e.Children.forEach(t,function(a){e.isValidElement(a)||(n=!1)}):n=e.isValidElement(t),n},Rr.isReactElement=function(t){return e.isValidElement(t)&&(typeof t.type=="string"||typeof t.type=="function"||typeof t.type=="object")},Rr.isModuleAvailable=function(t,n){for(var a=!1,r=0;r<t.length;r++)if(t[r].name===n){a=!0;break}return a},Rr}var Jg;function G0(){if(Jg)return di;Jg=1;var e=di&&di.__assign||function(){return e=Object.assign||function(p){for(var y,k=1,E=arguments.length;k<E;k++){y=arguments[k];for(var N in y)Object.prototype.hasOwnProperty.call(y,N)&&(p[N]=y[N])}return p},e.apply(this,arguments)},t=di&&di.__importStar||function(p){if(p&&p.__esModule)return p;var y={};if(p!=null)for(var k in p)Object.hasOwnProperty.call(p,k)&&(y[k]=p[k]);return y.default=p,y},n=di&&di.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(di,"__esModule",{value:!0});var a=t(sa()),r=n(_0),l=n(kh()),d=V0(),f=function(p){var y=p.activeSlideKey,k=p.ContainerEl,E=p.children,N=p.containerClass,I=p.getSwiper,L=p.navigation,K=p.noSwiping,J=p.pagination,F=p.parallax,G=p.parallaxEl,ot=p.WrapperEl,dt=p.wrapperClass,_=p.rebuildOnUpdate,$=p.renderScrollbar,v=p.renderPagination,mt=p.renderPrevButton,ft=p.renderNextButton,Lt=p.renderParallax,Nt=p.rtl,At=p.scrollbar,tt=p.shouldSwiperUpdate,H=p.slideClass,s=p.loop,ht=a.createRef(),x=a.useRef(null);if(!E||!k||!ot)return null;if(!d.validateChildren(E))return console.warn("Children should be react element or an array of react element!!"),null;var lt=function(){if(!y)return null;var Mt=0,Ht=s?1:0;return a.Children.forEach(E,function(Qt){a.isValidElement(Qt)&&(Qt.key===y&&(Mt=Ht),Ht+=1)}),Mt},bt=function(Mt){typeof I=="function"&&I(Mt)},St=function(){x.current!==null&&(x.current.destroy(!0,!0),x.current=null,bt(x.current))},O=function(){ht.current&&x.current===null&&(x.current=new r.default(ht.current,l.default({},p)),bt(x.current))},wt=function(){St(),O()},xt=function(){x.current!==null&&(x.current.update(),bt(x.current))},Ot=function(Mt){if(!d.isReactElement(Mt))return null;var Ht=[H,Mt.props.className];return K&&Ht.push("swiper-no-swiping"),a.cloneElement(Mt,e({},Mt.props,{className:Ht.join(" ").trim()}))};return a.useEffect(function(){O();var Mt=lt();return x.current!==null&&Mt!==null&&x.current.slideTo(Mt),function(){return St()}},[]),a.useEffect(function(){if(x.current!==null){if(_)wt();else if(tt){xt();var Mt=x.current.slides.length;if(Mt<=x.current.activeIndex){var Ht=Math.max(Mt-1,0);x.current.slideTo(Ht)}}var Qt=lt();Qt!==null&&x.current.slideTo(Qt)}}),a.default.createElement(k,{className:N,dir:Nt&&"rtl",ref:ht},F&&G&&Lt&&Lt(p),a.default.createElement(ot,{className:dt},a.Children.map(E,Ot)),J&&J.el&&v&&v(p),At&&At.el&&$&&$(p),L&&L.nextEl&&ft&&ft(p),L&&L.prevEl&&mt&&mt(p))};return f.defaultProps={containerClass:"swiper-container",wrapperClass:"swiper-wrapper",slideClass:"swiper-slide",ContainerEl:"div",WrapperEl:"div",renderScrollbar:function(p){var y=p.scrollbar;return y?a.default.createElement("div",{className:d.classNames(y.el)}):null},renderPagination:function(p){var y=p.pagination;return y?a.default.createElement("div",{className:d.classNames(y.el)}):null},renderPrevButton:function(p){var y=p.navigation;return y?a.default.createElement("div",{className:d.classNames(y.prevEl)}):null},renderNextButton:function(p){var y=p.navigation;return y?a.default.createElement("div",{className:d.classNames(y.nextEl)}):null},renderParallax:function(p){var y=p.parallaxEl;return y?a.default.createElement("div",{className:d.classNames(y.el),"data-swiper-parallax":y.value}):null}},f.displayName="ReactIdSwiper",di.default=f,di}var Qg;function U0(){if(Qg)return To;Qg=1;var e=To&&To.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(To,"__esModule",{value:!0});var t=e(G0());return To.default=t.default,To}var Y0=U0();const X0=On(Y0);class rr{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 Z0{static getActualUrlFromCSSPropertyValue(t){const n=t.match(/.*url\((['"])(.*?)\1\).*/i);return n?n[2]:""}}const hi=class hi{constructor(){this.animationDuration=3e3,this.animatableCanvas=null,window.addEventListener("orientationchange",()=>window.setTimeout(()=>this.adjustAnimationWrapper(this.currentPage),200))}static pageHasAnimation(t){return!!hi.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(hi.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=hi.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,r=null;if(!a||!a.classList.contains("bloom-animationBackground")){a=document.createElement("div");for(let f=0;f<this.animatableCanvas.classList.length;f++)a.classList.add(this.animatableCanvas.classList[f]);a.classList.add("bloom-animationBackground");const l=this.animatableCanvas.cloneNode(!0),d=()=>{const f=this.animatableCanvas.style.backgroundImage;f?l.style.backgroundImage=f:requestAnimationFrame(d)};l.hasAttribute("data-imgsizebasedon")||requestAnimationFrame(d),r=document.createElement("div"),r.classList.add(hi.wrapperClassName),r.appendChild(l),r.style.visibility="hidden",a.appendChild(r),t.insertBefore(a,t.firstChild),this.applyCanvasAspectRatioToAnimationWrapper(t,r,l,n)}else r=a.firstElementChild,r.hasAttribute("data-aspectRatio")?(this.placeAnimationWrapper(r),this.createAndPlayAnimation(t,n)):this.applyCanvasAspectRatioToAnimationWrapper(t,r,r.firstElementChild,n)}createAndPlayAnimation(t,n){const a=hi.getAnimationCanvas(t);if(this.animationEngine&&this.animationEngine.endAnimation(),a){const r=a.getAttribute("data-initialrect"),l=a.getAttribute("data-finalrect");this.animationEngine=new J0(r,l,this.animationDuration,a),n?this.animationEngine.setCurrentAnimationFrame():this.animationEngine.startAnimation()}}applyCanvasAspectRatioToAnimationWrapper(t,n,a,r){if(t.hasAttribute("data-aspectRatio"))this.placeAnimationWrapper(n),this.createAndPlayAnimation(t,r);else if(a.hasAttribute("data-imgsizebasedon")){const l=a.getAttribute("data-imgsizebasedon").split(",").map(parseFloat);n.setAttribute("data-aspectRatio",(l[0]/l[1]).toString()),this.placeAnimationWrapper(n),this.createAndPlayAnimation(t,r)}else{const l=()=>{if(a.style.backgroundImage){const d=new Image;d.addEventListener("load",()=>{n.setAttribute("data-aspectRatio",(d.naturalWidth/d.naturalHeight).toString()),this.placeAnimationWrapper(n),this.createAndPlayAnimation(t,r)}),d.src=Z0.getActualUrlFromCSSPropertyValue(a.style.backgroundImage)}else requestAnimationFrame(l)};requestAnimationFrame(l)}}placeAnimationWrapper(t){const n=parseFloat(t.getAttribute("data-aspectRatio")),a=t.parentElement,r=a.clientWidth,l=a.clientHeight,d=r/l;if(n<d){const f=l*n;t.style.height="100%",t.style.width=`${f}px`,t.style.left=`${(r-f)/2}px`}else{const f=r/n;t.style.width="100%",t.style.height=`${f}px`,t.style.top=`${(l-f)/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),r=[t.clientWidth,t.clientHeight];n.style.width=`${a[0]}px`,n.style.height=`${a[1]}px`,n.style.scale=`${r[0]/a[0]}`,n.style.top=`${(r[1]-a[1])/2}px`,n.style.left=`${(r[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=hi.getAnimationCanvas(t);if(!n||n.children.length!==1)return null;const a=n.firstElementChild;return a.classList.contains(hi.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}};hi.wrapperClassName="bloom-ui-animationWrapper";let Eu=hi;class J0{constructor(t,n,a,r){this.duration=a*1e3,this.totalElapsedTime=0,this.lastFrameTime=Date.now(),this.paused=!0,this.canvasToAnimate=r;const l=t.split(" ").map(parseFloat),d=n.split(" ").map(parseFloat);l.length!=4||d.length!=4||Math.min(...d)<0||Math.min(...l)<0||l[0]+l[2]>1.01||l[1]+l[3]>1.01||d[0]+d[2]>1.01||d[1]+d[3]>1.01?(this.initialScale=1,this.finalScale=1,this.initialLeft=0,this.finalLeft=0,this.initialTop=0,this.finalTop=0):(l[0],d[0],l[1],d[1],this.initialScale=1/Math.min(l[2],l[3]),this.initialScale==1&&(this.initialScale=1.0001),this.finalScale=1/Math.min(d[2],d[3]),this.finalScale==1&&(this.finalScale=1.0001),this.initialLeft=this.initialScale*100*(.5-(.5*l[2]+l[0])),this.initialTop=this.initialScale*100*(.5-(.5*l[3]+l[1])),this.finalLeft=this.finalScale*100*(.5-(.5*d[2]+d[0])),this.finalTop=this.finalScale*100*(.5-(.5*d[3]+d[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,r=this.initialLeft+(this.finalLeft-this.initialLeft)*n,l=this.initialTop+(this.finalTop-this.initialTop)*n;return{scale:a,left:r,top:l}}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}}let Do;function Q0(e){Do&&Do!==e&&console.warn("bloom-player: registering a current player while another is still registered"),Do=e}function tx(e){Do===e&&(Do=void 0)}function Zv(){return Do}var Cn=(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))(Cn||{});let oa=0;function Yn(e){oa=e}let Ff;function ex(e){Ff=e}let Jv;function nx(e){Jv=e}let Qv=()=>{};function ax(e){Qv=e??(()=>{})}let Wf="";function ix(e){Wf=e}function rx(e){const t=e.lastIndexOf("/");return e.substring(0,t)}function Ch(){return Wf||rx(window.location.href)}function ox(e){const t=e.map((n,a)=>({tabindex:sx(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 sx(e){let t=e;for(;t&&!t.classList.contains("bloom-translationGroup");)t=t.parentElement;return t&&t.getAttribute("tabindex")||"999"}const lx="bloom-highlightSegment",ty="ui-enableHighlight",Th="ui-disableHighlight",Ad="ui-suppressHighlight";let Pu=3;function ux(e){Pu=e}const Mu="audio-sentence",ey="bloom-imageDescription";let Ii=null,Vs=0;function ny(e){e!==Ii&&(Vs&&clearTimeout(Vs),Vs=setTimeout(()=>{Vs=0},3e3),Ii=e)}function ay(){return Ii}let Eh,Au,Ro="",Sa=[],ar=[];const Oo=new rr,nl=new rr,al=new rr,_f=new rr,Ko=new rr;let il=0,iy=!0;function cx(e){iy=e}let Nu=null;function ry(e,t){if(!e&&!Ii)return;const n=e??Ii;_u(Lh(n,t),n)}function _u(e,t){ny(t),Au=e;const n=or();n&&(e.length==0&&n.pause(),n.currentTime=0),++il,dx(e),Sa=ox(e).reverse();const a=Sa.length;if(a===0){nl&&nl?.raise(t),Yn(4),Oo&&(Eh=window.setTimeout(()=>{Yn(6),Oo?.raise(t)},Pu*1e3));return}const r=Sa[a-1];vy(),a>=2&&my(Sa[a-2]),hy(r,!0),Yn(4),uy()}const oy=/[ \u00a0\u200b]{3,}/,uu=new RegExp(oy,"g");function dx(e){e.forEach(t=>{Nh("span[id]:not(.bloom-linebreak)",t,!0).forEach(a=>{sy(a),a.innerText.match(oy)&&ly(a,a)})})}function sy(e){e.classList.remove(Th),e.classList.remove(ty),Array.from(e.children).forEach(t=>{sy(t)})}function ly(e,t){if(!(e.nodeType===Node.ELEMENT_NODE&&e.classList.contains(Th)))if(e.nodeType===Node.TEXT_NODE){fx(e,t);return}else Array.from(e.childNodes).forEach(a=>{ly(a,t)})}function fx(e,t){if(e.nodeType!==Node.TEXT_NODE)throw new Error("Invalid argument to fixMultiSpaceInTextNode: node must be a TextNode");if(!e.nodeValue)return;uu.lastIndex=0;const n=[];let a;for(;(a=uu.exec(e.nodeValue))!=null;)a.forEach(d=>{n.push({text:d,startIndex:uu.lastIndex-d.length,endIndex:uu.lastIndex})});const r=[];if(n.length===0)r.push(Nd(e.nodeValue));else{let d=0;for(let f=0;f<n.length;++f){const p=n[f],y=e.nodeValue.slice(d,p.startIndex);if(d=p.endIndex,y&&r.push(Nd(y)),r.push(document.createTextNode(p.text)),f===n.length-1){const k=e.nodeValue.slice(p.endIndex);k&&r.push(Nd(k))}}}const l=e;if(l.parentNode&&r&&r.length>0){for(let d=0;d<r.length;++d){const f=r[d];l.parentNode.insertBefore(f,l)}l.parentNode.removeChild(l),t.classList.add(Th)}}function Nd(e){const t=document.createElement("span");return t.classList.add(ty),t.appendChild(document.createTextNode(e)),t}function uy(){if(oa===4){const e=or();if(e){const t=ay().querySelector(`#${Ro}`);if(!t){Vu();return}ar=[];const n=t.getAttribute("data-audioRecordingEndTimes");if(n){const d=t.querySelectorAll(`span.${lx}`),f=n.split(" "),p=Math.min(f.length,d.length);for(let y=p-1;y>=0;--y){const k=Number(f[y]);isNaN(k)||ar.push([d.item(y),k])}}const a=t;a&&Ko&&Ko?.raise(cy(a)),Vf=!1;const r=e.play();++il,Nu=new Date().getTime(),Ph(il);const l=Sa.length-2;l>=0&&my(Sa[l]),dy(r)}}}function cy(e){return e.closest("."+ey)!==null}function dy(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"&&al&&al?.raise()})}function Ph(e,t=0){const n=ar.length;if(n<=0)return;const a=ar[n-1],r=a[0],l=a[1];py({newElement:r,shouldScrollToElement:!0,disableHighlightIfNoAudio:!1});let f=document.getElementById("bloom-audio-player").currentTime;f<=0&&(f=t);const p=Math.max(l-f,.1);setTimeout(()=>{fy(e)},p*1e3)}function fy(e){if(e!==il||oa===5)return;const t=ar.length;if(t<=0)return;const n=document.getElementById("bloom-audio-player");if(n.ended||n.error)return;const a=n.currentTime,l=ar[t-1][1];if(a&&a<l){const d=l-a;setTimeout(()=>{fy(e)},d*1e3);return}ar.pop(),Ph(e,l)}function Mh(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 hy(e,t,n){gx(e),py({newElement:e,shouldScrollToElement:!0,disableHighlightIfNoAudio:t,oldElement:n})}function py({newElement:e,shouldScrollToElement:t,disableHighlightIfNoAudio:n,oldElement:a}){try{hx(e)}catch(f){console.error(f)}if(a===e)return;Mh(a||e);const r=or(),l=r.error!==null;!l&&n&&(!r.paused&&!r.ended||(e.classList.add(Ad),cu&&r.removeEventListener("playing",cu),du&&r.removeEventListener("error",du),cu=()=>{e.classList.remove(Ad)},du=()=>{e.classList.remove("ui-audioCurrent"),e.classList.remove(Ad)},r.addEventListener("playing",cu),r.addEventListener("error",du))),l||e.classList.add("ui-audioCurrent");const d=e.closest(".bloom-translationGroup");if(d&&d.classList.contains(ey)){const f=d.closest(".bloom-imageContainer, .bloom-canvas");f&&f.classList.add("ui-audioCurrentImg")}}function hx(e){if(Jv?.()||Vs){const n=px(e);n&&(n.scrollTop=0);return}let t=e;if(window.getComputedStyle(e.parentElement).position!=="static"){const n=e;t=document.createElement("div"),t.style.position="absolute",t.style.top=n.offsetTop+"px";const a=n.getBoundingClientRect(),r=n.parentElement,l=r?.getBoundingClientRect(),d=l.width/r.offsetWidth,f=(a.left-l.left)/d;t.style.left=f+n.offsetWidth/2+"px",t.style.height=n.offsetHeight+"px",t.style.width="0",e.parentElement?.insertBefore(t,e)}t.scrollIntoView({behavior:"smooth",block:"nearest"}),t!==e&&t.parentElement?.removeChild(t)}function px(e){return e.classList.contains("bloom-editable")?e:e.closest(".bloom-editable")}function gx(e){const t=gy(e),n=t?t.id:e.id;vx(n)}function gy(e){const t=mx(e);return!t||t.length===0?null:t[0]}function mx(e){const t=[];if(e)if(e.classList.contains(Mu))t.push(e);else{const n=e.getElementsByClassName(Mu);for(let a=0;a<n.length;++a){const r=n.item(a);r&&t.push(r)}}return t}function vx(e){(!Ro||Ro!==e)&&(Ro=e,bx())}let Lu="",Bu="",cu=null,du=null;function yx(){let e=document.getElementById("bloom-audio-preload");return e||(e=document.createElement("audio"),e.id="bloom-audio-preload",document.body.appendChild(e)),e}function my(e){const t=gy(e)??e,n=t.id;if(Lu===n)return;const a=yy(n,t)+"?nocache="+new Date().getTime()+"&optional=true";Lu=n,Bu=a;const r=yx();r.src=a,r.load()}function vy(){Lu="",Bu=""}function bx(){const e=or();if(!e)return;e.currentTime>0&&!e.paused&&!e.ended&&Ah();const t=yy(Ro);Qv(t);let n;Lu===Ro&&Bu?(n=Bu,vy()):n=t+"?nocache="+new Date().getTime()+"&optional=true",e.setAttribute("src",n)}function wx(e,t){return t?.getAttribute("data-audio-src")||e+".mp3"}function yy(e,t){const n=t??Ii?.querySelector(`[id="${e}"]`)??document.getElementById(e);return Ch()+"/audio/"+wx(e,n)}function or(){return Cx("bloom-audio-player",t=>{t.addEventListener("ended",kx),t.addEventListener("error",Tx)})}function kx(){Vu()}function xx(){oa===4&&Vu(!1)}function Vu(e=!0){if(Ko&&Ko?.raise(!1),Ah(),Sa&&Sa.length>0){const t=Sa.pop(),n=Sa.length;if(n>0&&e){const a=Sa[n-1];hy(a,!0),uy()}else Sx(),Mh(t),or().pause()}}function Sx(){Sa=[],ar=[],Mh(),Oo?.raise(Ii),nl?.raise()}function Ah(){if(!Nu||!Ff)return;const t=(new Date().getTime()-Nu)/1e3;Ff(t)}function Cx(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}let Vf=!1;function Tx(){if(Vf){console.log("Already got error playing, not handling again");return}Vf=!0,console.log("Error playing, handling"),setTimeout(()=>{Vu()},100)}function Nh(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(r=>!cy(r))}function Ex(e,t){var n=Nh(".bloom-editable",e).filter(a=>window.getComputedStyle(a).display!=="none");return t&&(n=n.filter(a=>!t.contains(a))),n}function Px(e,t){return Ex(e||Ii,t)}function Lh(e,t){return[].concat.apply([],Px(e,t).map(n=>Nh(".audio-sentence",n,!0)))}function Mx(e){return!!Lh(e).length}function Ax(){if(oa!==4){if(Yn(4),Au.length&&or())if(Sa.length){dy(or().play()),Nu=new Date().getTime(),Ph(il);return}else{ry(null);return}Oo?.raise(Ii)}}function Nx(){oa!==5&&(Lx(),Yn(5))}function Lx(){const e=or();clearTimeout(Eh),Au&&Au.length&&e&&(e.currentTime>0&&!e.paused&&!e.ended&&Ah(),e.pause())}function tm(e){let t=0;return Lh(e).forEach(n=>{const a=n.getAttribute("data-duration");a&&(t+=parseFloat(a))}),t<Pu&&(t=Pu),t}function Bx(){clearTimeout(Eh),Bh()}let Lo=0,Bo;const Bs=new WeakMap;function Bh(){Lo++,Bo&&(Bo.pause(),Bo.currentTime=0,Bo=void 0)}function by(e){return e?e.name==="AbortError"?!0:(typeof e.message=="string"&&e.message||(typeof e.toString=="function"?e.toString():"")).includes("interrupted by a call to pause()"):!1}const ku=new WeakMap;function Gu(e){ku.get(e)?.()}function Gf(e,t=()=>!0,n=()=>xy(e)){if(!e.paused)return;Gu(e);const a=e.muted;let r,l=!1;const d=()=>{l||(l=!0,ku.get(e)===f&&ku.delete(e),window.clearTimeout(r),e.removeEventListener("playing",p),e.muted=a)},f=()=>{d(),e.removeAttribute("poster")};ku.set(e,f);const p=()=>{if(qo(e),!t()){d(),e.removeAttribute("poster");return}const k=()=>{l||(t()&&e.pause(),d(),e.removeAttribute("poster"))},E=e.requestVideoFrameCallback;E?E.call(e,()=>{k()}):setTimeout(()=>{k()},4)};e.addEventListener("playing",p,{once:!0}),r=window.setTimeout(()=>{t()&&!e.paused&&e.pause(),d(),e.removeAttribute("poster")},3e3),qo(e),e.muted=!0;const y=e.play();y&&y.catch&&y.catch(k=>{d(),k?.name==="NotAllowedError"&&(e.removeAttribute("poster"),n())})}function wy(e,t){const n=++Lo;Gs(e,t,n)}function ky(e,t){return e.networkState===HTMLMediaElement.NETWORK_NO_SOURCE&&e.readyState===HTMLMediaElement.HAVE_NOTHING}function Gs(e,t,n){if(n!==Lo)return;if(e.length===0){Bo=void 0,t();return}const a=e[0];if(Bo=a,ky(a))Bs.delete(a),zu(a),Gs(e.slice(1),t,n);else{Sy(a),qo(a),Yn(2),Gu(a),a.currentTime=0;let r=!1,l;const d=250,f=()=>{l!==void 0&&(window.clearTimeout(l),l=void 0)},p=()=>{const L=a.duration;if(!Number.isFinite(L)||L<=0)return;f();const K=Number.isFinite(a.playbackRate)&&a.playbackRate>0?a.playbackRate:1,J=Math.max(L*1e3/K+d,d);l=window.setTimeout(()=>{y()},J)},y=()=>{r||(r=!0,f(),a.removeEventListener("ended",k),a.removeEventListener("pause",E),a.removeEventListener("loadedmetadata",N),n===Lo&&Gs(e.slice(1),t,n))},k=()=>{y()},E=()=>{const L=a.duration;!Number.isFinite(L)||L<=0||a.currentTime>=L-.05&&y()},N=()=>{p()};a.addEventListener("ended",k,{once:!0}),a.addEventListener("pause",E),a.addEventListener("loadedmetadata",N),a.play().then(()=>{n===Lo&&(Bs.delete(a),qo(a),p())}).catch(L=>{if(n!==Lo)return;if(f(),a.removeEventListener("ended",k),a.removeEventListener("pause",E),a.removeEventListener("loadedmetadata",N),L?.name==="NotAllowedError"){console.debug("Video autoplay blocked until user interaction"),xy(a);return}const K=Bs.get(a)??0;if(by(L)&&K<2){Bs.set(a,K+1),window.setTimeout(()=>{Gs(e,t,n)},50);return}console.error("Video play failed",L),Bs.delete(a),zu(a),Gs(e.slice(1),t,n)})}}const zx="Sorry, this video cannot be played in this browser.";function zu(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=zx,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",a.style.pointerEvents="none",t.appendChild(a)}}function xy(e){(e.closest(".bloom-videoContainer")||e.parentElement)?.classList.add("autoplayBlocked")}function qo(e){(e.closest(".bloom-videoContainer")||e.parentElement)?.classList.remove("autoplayBlocked")}function Sy(e){const t=e.parentElement;if(t){const n=t.getElementsByClassName("video-error-message");for(;n.length>0;)t.removeChild(n[0])}}const Ix=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">
|
|
2
2
|
<path d="M8 5v14l11-7z" fill="${e}"/>
|
|
3
3
|
</svg>`,t.firstChild},Dx=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">
|
|
4
4
|
<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}"/>
|
|
5
5
|
</svg>
|
|
6
|
-
`,t.firstChild},ia=class ia{constructor(){this.currentVideoStartTime=0,this.isPlayingSingleVideo=!1,this.transientPlayRetryCounts=new WeakMap,this.playAllVideoGeneration=0,this.hasStartedPlaybackOnCurrentPage=!1,this.handlePlayClick=t=>{if(t.stopPropagation(),t.preventDefault(),this.resumeAutoplayBlockedSequenceIfNeeded())return;const n=t.target?.closest(".bloom-videoContainer")?.getElementsByTagName("video")[0];n&&(this.fadePlayButton(n),n===this.currentVideoElement?this.play():this.replaySingleVideo(n))},this.handleVideoClick=t=>{t.currentTarget.paused?this.handlePlayClick(t):this.handlePauseClick(t)},this.handleReplayClick=t=>{t.stopPropagation(),t.preventDefault();const n=t.target?.closest(".bloom-videoContainer")?.getElementsByTagName("video")[0];n&&this.replaySingleVideo(n)},this.handlePauseClick=t=>{t.stopPropagation(),t.preventDefault(),this.pause()}}static pageHasVideo(t){return!!ia.getAllVideoElements(t).length}wrapVideoIcon(t,n,a){const r=document.createElement("div");return r.classList.add("videoControlContainer"),r.appendChild(n),r.classList.add(a),n.classList.add("videoControl"),t.parentElement?.appendChild(r),n}static setAllVideoPostersTo1x1TransparentPNG(t){const n=t.getElementsByTagName("video");for(let a=0;a<n.length;a++)n[a].setAttribute("poster",ia.onePixelTransparentPoster)}HandlePageBeforeVisible(t){if(this.currentPage=t,!ia.pageHasVideo(this.currentPage)){this.currentVideoElement=void 0;return}ia.getAllVideoElements(this.currentPage).forEach(n=>{n.removeAttribute("controls"),n.addEventListener("click",this.handleVideoClick),this.wrapVideoIcon(n,Ix("#ffffff"),"videoPlayIcon").addEventListener("click",this.handlePlayClick),this.wrapVideoIcon(n,Dx("#ffffff"),"videoReplayIcon").addEventListener("click",this.handleReplayClick),n.setAttribute("playsinline",""),n.setAttribute("webkit-playsinline",""),n.setAttribute("disablePictureInPicture",""),n.currentTime!==0&&(n.currentTime=0)})}HandlePageVisible(t,n){if(this.pauseCurrentVideo(),this.currentPage=t,this.hasStartedPlaybackOnCurrentPage=!1,this.clearDelayedAutoplayTimeout(),this.resetAutoplayBlockedState(),!ia.pageHasVideo(this.currentPage)){this.currentVideoElement=void 0;return}var a=this.currentPage.getElementsByClassName("videoControlContainer");a.length===0&&this.HandlePageBeforeVisible(this.currentPage),n()&&this.markAllVideosPaused();const r=this.getVideoElements();if(r.length===0){this.currentVideoElement=void 0,this.PageVideoComplete&&this.PageVideoComplete.raise({page:this.currentPage,videos:ia.getAllVideoElements(this.currentPage)});return}let l,d=!0;for(const f of r)l||(l=f),Gf(f,()=>d||n()||f!=l,()=>{f===l&&this.enterAutoplayBlockedMode(r)});l&&(this.delayedAutoplayTimeoutId=window.setTimeout(()=>{d=!1,this.delayedAutoplayTimeoutId=void 0,!n()&&!this.autoplayBlockedSequence&&!this.hasStartedPlaybackOnCurrentPage&&this.playAllVideo(r)},1e3))}clearDelayedAutoplayTimeout(){this.delayedAutoplayTimeoutId!==void 0&&(window.clearTimeout(this.delayedAutoplayTimeoutId),this.delayedAutoplayTimeoutId=void 0)}static getAllVideoElements(t){return Array.from(t.getElementsByClassName("bloom-videoContainer")).map(n=>n.getElementsByTagName("video")[0]).filter(n=>n!==void 0)}static getVideoElements(t){return ia.getAllVideoElements(t).filter(n=>ia.isElementVisible(n.closest(".bloom-videoContainer"))).filter(n=>n!==void 0)}static isElementVisible(t){let n=t;for(;n;){const a=window.getComputedStyle(n);if(a.display==="none"||a.visibility==="hidden")return!1;n=n.parentElement}return!0}getVideoElements(){return ia.getVideoElements(this.currentPage)}fadePlayButton(t){const n=this.getPlayIconContainer(t);if(!n)return;this.stopPlayButtonContainerFade(n),n.offsetWidth,n.classList.add("videoPlayIcon-flash");const a=window.setTimeout(()=>{this.stopPlayButtonContainerFade(n)},1e3);n.dataset.fadeTimeout=a.toString()}getPlayIconContainer(t){return t.closest(".bloom-videoContainer")?.querySelector(".videoControlContainer.videoPlayIcon")??null}stopPlayButtonContainerFade(t){const n=t.dataset.fadeTimeout;n&&(window.clearTimeout(Number(n)),delete t.dataset.fadeTimeout),t.classList.remove("videoPlayIcon-flash"),t.style.removeProperty("opacity")}stopPlayButtonFade(t){const n=this.getPlayIconContainer(t);n&&this.stopPlayButtonContainerFade(n)}play(){oa!==Cn.VideoPlaying&&(this.resumeAutoplayBlockedSequenceIfNeeded()||(Yn(Cn.VideoPlaying),this.isPlayingSingleVideo?this.playAllVideo([this.currentVideoElement]):this.resumePlayAllVideo()))}resumePlayAllVideo(){const t=this.getVideoElements();let n=t;if(this.currentVideoElement){const a=t.indexOf(this.currentVideoElement);n=t.slice(a)}this.playAllVideo(n)}pause(){oa!=Cn.VideoPaused&&(this.pauseCurrentVideo(),Yn(Cn.VideoPaused))}pauseCurrentVideo(){this.currentPage&&Array.from(this.currentPage.getElementsByClassName("playing")).forEach(a=>a.classList.remove("playing"));const t=this.currentVideoElement;if(!t)return;t.currentTime>0&&!t.paused&&!t.ended&&this.reportVideoPlayed(t.currentTime-this.currentVideoStartTime),t?.closest(".bloom-videoContainer")?.classList.add("paused"),this.stopPlayButtonFade(t),t.pause()}reportVideoPlayed(t){Zv()?.storeVideoAnalytics(t)}hidingPage(){this.clearDelayedAutoplayTimeout(),this.hasStartedPlaybackOnCurrentPage=!1,this.resetAutoplayBlockedState(),this.pauseCurrentVideo()}replaySingleVideo(t){t.currentTime=0,this.isPlayingSingleVideo=!0,this.playAllVideo([t])}markAllVideosPaused(){Array.from(this.currentPage.getElementsByClassName("bloom-videoContainer")).forEach(t=>{t.closest(".bloom-canvas-element[data-draggable-id]")||t.classList.add("paused");const n=t.getElementsByTagName("video")[0];n&&this.stopPlayButtonFade(n)})}setContainerClasses(t,n){const a=t.closest(".bloom-videoContainer");a&&(a.classList.remove(...ia.autoplayBlockedClassNames),n.forEach(r=>a.classList.add(r)))}clearAutoplayBlockedUi(){this.currentPage&&Array.from(this.currentPage.getElementsByClassName("bloom-videoContainer")).forEach(t=>{t.classList.remove(...ia.autoplayBlockedClassNames)})}resetAutoplayBlockedState(){this.clearAutoplayBlockedUi(),this.autoplayBlockedSequence=void 0}resumeAutoplayBlockedSequenceIfNeeded(){return this.autoplayBlockedSequence?.length?(this.resumeAfterAutoplayBlockedUserClick(),!0):!1}enterAutoplayBlockedMode(t){if(!t.length||this.autoplayBlockedSequence)return;this.clearDelayedAutoplayTimeout(),this.autoplayBlockedSequence=t;const n=t[0];this.currentVideoElement=n,this.isPlayingSingleVideo=!1,Yn(Cn.VideoPaused),al?.raise(),t.forEach((a,r)=>{r===0?this.setContainerClasses(a,["autoplayBlocked","autoplayBlockedPrimary","paused"]):(this.setContainerClasses(a,["autoplayBlockedSuppressed"]),a.closest(".bloom-videoContainer")?.classList.remove("paused"))})}resumeAfterAutoplayBlockedUserClick(){const t=this.autoplayBlockedSequence;if(!t||!t.length)return;this.autoplayBlockedSequence=void 0,this.clearDelayedAutoplayTimeout(),this.clearAutoplayBlockedUi(),_f?.raise();const n=t[0];t.forEach(a=>{a!==n&&Gf(a,()=>this.currentVideoElement!==a)}),this.isPlayingSingleVideo=!1,this.playAllVideo(t)}playAllVideo(t){this.playAllVideoWithGeneration(t,++this.playAllVideoGeneration)}playAllVideoWithGeneration(t,n){if(n!==this.playAllVideoGeneration)return;if(Array.from(this.currentPage.getElementsByClassName("playing")).forEach(d=>d.classList.remove("playing")),t.length===0){this.currentVideoElement=void 0,this.isPlayingSingleVideo=!1,this.PageVideoComplete&&this.PageVideoComplete.raise({page:this.currentPage,videos:this.getVideoElements()}),this.markAllVideosPaused();return}this.hasStartedPlaybackOnCurrentPage=!0,Array.from(this.currentPage.getElementsByClassName("paused")).forEach(d=>d.classList.remove("paused"));const a=t[0],r=a.closest(".bloom-page");if(this.currentPage!==r){this.currentVideoElement=void 0;return}if(a.closest(".bloom-canvas-element[data-draggable-id]")){this.playAllVideoWithGeneration(t.slice(1),n);return}this.currentVideoElement=a,ky(a)?(this.transientPlayRetryCounts.delete(a),zu(a),this.playAllVideoWithGeneration(t.slice(1),n)):(Sy(a),qo(a),Yn(Cn.VideoPlaying),Gu(a),this.currentVideoStartTime=a.currentTime||0,a.closest(".bloom-videoContainer")?.classList.add("playing"),a.play().then(()=>{this.transientPlayRetryCounts.delete(a),qo(a),a.addEventListener("ended",()=>{this.reportVideoPlayed(a.currentTime-this.currentVideoStartTime),a.currentTime=0,this.playAllVideoWithGeneration(t.slice(1),n)},{once:!0})}).catch(f=>{if(f?.name==="NotAllowedError"){console.debug("Video autoplay blocked until user interaction"),this.currentPage&&Array.from(this.currentPage.getElementsByClassName("playing")).forEach(y=>y.classList.remove("playing")),this.enterAutoplayBlockedMode(t);return}const p=this.transientPlayRetryCounts.get(a)??0;if(by(f)&&p<2){this.transientPlayRetryCounts.set(a,p+1);const y=n;window.setTimeout(()=>{y===this.playAllVideoGeneration&&this.playAllVideoWithGeneration(t,y)},50);return}console.error("Video play failed",f),this.transientPlayRetryCounts.delete(a),zu(a),this.playAllVideoWithGeneration(t.slice(1),n)}))}};ia.autoplayBlockedClassNames=["autoplayBlocked","autoplayBlockedPrimary","autoplayBlockedSuppressed"],ia.onePixelTransparentPoster="data:image/gif;base64,R0lGODlhAQABAAAAACwAAAAAAQABAAA=";let Js=ia;var fu={exports:{}},Ld,em;function Cy(){return em||(em=1,Ld=function(t,n){return function(){for(var r=new Array(arguments.length),l=0;l<r.length;l++)r[l]=arguments[l];return t.apply(n,r)}}),Ld}var Bd,nm;function Rx(){return nm||(nm=1,Bd=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}),Bd}var zd,am;function qa(){if(am)return zd;am=1;var e=Cy(),t=Rx(),n=Object.prototype.toString;function a($){return n.call($)==="[object Array]"}function r($){return n.call($)==="[object ArrayBuffer]"}function l($){return typeof FormData<"u"&&$ instanceof FormData}function d($){var v;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?v=ArrayBuffer.isView($):v=$&&$.buffer&&$.buffer instanceof ArrayBuffer,v}function f($){return typeof $=="string"}function p($){return typeof $=="number"}function y($){return typeof $>"u"}function k($){return $!==null&&typeof $=="object"}function E($){return n.call($)==="[object Date]"}function N($){return n.call($)==="[object File]"}function I($){return n.call($)==="[object Blob]"}function L($){return n.call($)==="[object Function]"}function K($){return k($)&&L($.pipe)}function J($){return typeof URLSearchParams<"u"&&$ instanceof URLSearchParams}function F($){return $.replace(/^\s*/,"").replace(/\s*$/,"")}function G(){return typeof navigator<"u"&&navigator.product==="ReactNative"?!1:typeof window<"u"&&typeof document<"u"}function ot($,v){if(!($===null||typeof $>"u"))if(typeof $!="object"&&($=[$]),a($))for(var mt=0,ft=$.length;mt<ft;mt++)v.call(null,$[mt],mt,$);else for(var Lt in $)Object.prototype.hasOwnProperty.call($,Lt)&&v.call(null,$[Lt],Lt,$)}function dt(){var $={};function v(Lt,Nt){typeof $[Nt]=="object"&&typeof Lt=="object"?$[Nt]=dt($[Nt],Lt):$[Nt]=Lt}for(var mt=0,ft=arguments.length;mt<ft;mt++)ot(arguments[mt],v);return $}function _($,v,mt){return ot(v,function(Lt,Nt){mt&&typeof Lt=="function"?$[Nt]=e(Lt,mt):$[Nt]=Lt}),$}return zd={isArray:a,isArrayBuffer:r,isBuffer:t,isFormData:l,isArrayBufferView:d,isString:f,isNumber:p,isObject:k,isUndefined:y,isDate:E,isFile:N,isBlob:I,isFunction:L,isStream:K,isURLSearchParams:J,isStandardBrowserEnv:G,forEach:ot,merge:dt,extend:_,trim:F},zd}var Id,im;function jx(){if(im)return Id;im=1;var e=qa();return Id=function(n,a){e.forEach(n,function(l,d){d!==a&&d.toUpperCase()===a.toUpperCase()&&(n[a]=l,delete n[d])})},Id}var Dd,rm;function Ox(){return rm||(rm=1,Dd=function(t,n,a,r,l){return t.config=n,a&&(t.code=a),t.request=r,t.response=l,t}),Dd}var Rd,om;function Ty(){if(om)return Rd;om=1;var e=Ox();return Rd=function(n,a,r,l,d){var f=new Error(n);return e(f,a,r,l,d)},Rd}var jd,sm;function Kx(){if(sm)return jd;sm=1;var e=Ty();return jd=function(n,a,r){var l=r.config.validateStatus;!r.status||!l||l(r.status)?n(r):a(e("Request failed with status code "+r.status,r.config,null,r.request,r))},jd}var Od,lm;function qx(){if(lm)return Od;lm=1;var e=qa();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 Od=function(a,r,l){if(!r)return a;var d;if(l)d=l(r);else if(e.isURLSearchParams(r))d=r.toString();else{var f=[];e.forEach(r,function(y,k){y===null||typeof y>"u"||(e.isArray(y)?k=k+"[]":y=[y],e.forEach(y,function(N){e.isDate(N)?N=N.toISOString():e.isObject(N)&&(N=JSON.stringify(N)),f.push(t(k)+"="+t(N))}))}),d=f.join("&")}return d&&(a+=(a.indexOf("?")===-1?"?":"&")+d),a},Od}var Kd,um;function $x(){if(um)return Kd;um=1;var e=qa(),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 Kd=function(a){var r={},l,d,f;return a&&e.forEach(a.split(`
|
|
7
|
-
`),function(y){if(f=y.indexOf(":"),l=e.trim(y.substr(0,f)).toLowerCase(),d=e.trim(y.substr(f+1)),l){if(r[l]&&t.indexOf(l)>=0)return;l==="set-cookie"?r[l]=(r[l]?r[l]:[]).concat([d]):r[l]=r[l]?r[l]+", "+d:d}}),r},Kd}var qd,cm;function Hx(){if(cm)return qd;cm=1;var e=qa();return qd=e.isStandardBrowserEnv()?(function(){var n=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a"),r;function l(d){var f=d;return n&&(a.setAttribute("href",f),f=a.href),a.setAttribute("href",f),{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 r=l(window.location.href),function(f){var p=e.isString(f)?l(f):f;return p.protocol===r.protocol&&p.host===r.host}})():(function(){return function(){return!0}})(),qd}var $d,dm;function Fx(){if(dm)return $d;dm=1;var e=qa();return $d=e.isStandardBrowserEnv()?(function(){return{write:function(a,r,l,d,f,p){var y=[];y.push(a+"="+encodeURIComponent(r)),e.isNumber(l)&&y.push("expires="+new Date(l).toGMTString()),e.isString(d)&&y.push("path="+d),e.isString(f)&&y.push("domain="+f),p===!0&&y.push("secure"),document.cookie=y.join("; ")},read:function(a){var r=document.cookie.match(new RegExp("(^|;\\s*)("+a+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(a){this.write(a,"",Date.now()-864e5)}}})():(function(){return{write:function(){},read:function(){return null},remove:function(){}}})(),$d}var Hd,fm;function hm(){if(fm)return Hd;fm=1;var e=qa(),t=Kx(),n=qx(),a=$x(),r=Hx(),l=Ty();return Hd=function(f){return new Promise(function(y,k){var E=f.data,N=f.headers;e.isFormData(E)&&delete N["Content-Type"];var I=new XMLHttpRequest;if(f.auth){var L=f.auth.username||"",K=f.auth.password||"";N.Authorization="Basic "+btoa(L+":"+K)}if(I.open(f.method.toUpperCase(),n(f.url,f.params,f.paramsSerializer),!0),I.timeout=f.timeout,I.onreadystatechange=function(){if(!(!I||I.readyState!==4)&&!(I.status===0&&!(I.responseURL&&I.responseURL.indexOf("file:")===0))){var ot="getAllResponseHeaders"in I?a(I.getAllResponseHeaders()):null,dt=!f.responseType||f.responseType==="text"?I.responseText:I.response,_={data:dt,status:I.status,statusText:I.statusText,headers:ot,config:f,request:I};t(y,k,_),I=null}},I.onerror=function(){k(l("Network Error",f,null,I)),I=null},I.ontimeout=function(){k(l("timeout of "+f.timeout+"ms exceeded",f,"ECONNABORTED",I)),I=null},e.isStandardBrowserEnv()){var J=Fx(),F=(f.withCredentials||r(f.url))&&f.xsrfCookieName?J.read(f.xsrfCookieName):void 0;F&&(N[f.xsrfHeaderName]=F)}if("setRequestHeader"in I&&e.forEach(N,function(ot,dt){typeof E>"u"&&dt.toLowerCase()==="content-type"?delete N[dt]:I.setRequestHeader(dt,ot)}),f.withCredentials&&(I.withCredentials=!0),f.responseType)try{I.responseType=f.responseType}catch(G){if(f.responseType!=="json")throw G}typeof f.onDownloadProgress=="function"&&I.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&I.upload&&I.upload.addEventListener("progress",f.onUploadProgress),f.cancelToken&&f.cancelToken.promise.then(function(ot){I&&(I.abort(),k(ot),I=null)}),E===void 0&&(E=null),I.send(E)})},Hd}var Fd,pm;function zh(){if(pm)return Fd;pm=1;var e=qa(),t=jx(),n={"Content-Type":"application/x-www-form-urlencoded"};function a(d,f){!e.isUndefined(d)&&e.isUndefined(d["Content-Type"])&&(d["Content-Type"]=f)}function r(){var d;return(typeof XMLHttpRequest<"u"||typeof process<"u")&&(d=hm()),d}var l={adapter:r(),transformRequest:[function(f,p){return t(p,"Content-Type"),e.isFormData(f)||e.isArrayBuffer(f)||e.isBuffer(f)||e.isStream(f)||e.isFile(f)||e.isBlob(f)?f:e.isArrayBufferView(f)?f.buffer:e.isURLSearchParams(f)?(a(p,"application/x-www-form-urlencoded;charset=utf-8"),f.toString()):e.isObject(f)?(a(p,"application/json;charset=utf-8"),JSON.stringify(f)):f}],transformResponse:[function(f){if(typeof f=="string")try{f=JSON.parse(f)}catch{}return f}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(f){return f>=200&&f<300}};return l.headers={common:{Accept:"application/json, text/plain, */*"}},e.forEach(["delete","get","head"],function(f){l.headers[f]={}}),e.forEach(["post","put","patch"],function(f){l.headers[f]=e.merge(n)}),Fd=l,Fd}var Wd,gm;function Wx(){if(gm)return Wd;gm=1;var e=qa();function t(){this.handlers=[]}return t.prototype.use=function(a,r){return this.handlers.push({fulfilled:a,rejected:r}),this.handlers.length-1},t.prototype.eject=function(a){this.handlers[a]&&(this.handlers[a]=null)},t.prototype.forEach=function(a){e.forEach(this.handlers,function(l){l!==null&&a(l)})},Wd=t,Wd}var _d,mm;function _x(){if(mm)return _d;mm=1;var e=qa();return _d=function(n,a,r){return e.forEach(r,function(d){n=d(n,a)}),n},_d}var Vd,vm;function Ey(){return vm||(vm=1,Vd=function(t){return!!(t&&t.__CANCEL__)}),Vd}var Gd,ym;function Vx(){return ym||(ym=1,Gd=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}),Gd}var Ud,bm;function Gx(){return bm||(bm=1,Ud=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t}),Ud}var Yd,wm;function Ux(){if(wm)return Yd;wm=1;var e=qa(),t=_x(),n=Ey(),a=zh(),r=Vx(),l=Gx();function d(f){f.cancelToken&&f.cancelToken.throwIfRequested()}return Yd=function(p){d(p),p.baseURL&&!r(p.url)&&(p.url=l(p.baseURL,p.url)),p.headers=p.headers||{},p.data=t(p.data,p.headers,p.transformRequest),p.headers=e.merge(p.headers.common||{},p.headers[p.method]||{},p.headers||{}),e.forEach(["delete","get","head","post","put","patch","common"],function(E){delete p.headers[E]});var y=p.adapter||a.adapter;return y(p).then(function(E){return d(p),E.data=t(E.data,E.headers,p.transformResponse),E},function(E){return n(E)||(d(p),E&&E.response&&(E.response.data=t(E.response.data,E.response.headers,p.transformResponse))),Promise.reject(E)})},Yd}var Xd,km;function Yx(){if(km)return Xd;km=1;var e=zh(),t=qa(),n=Wx(),a=Ux();function r(l){this.defaults=l,this.interceptors={request:new n,response:new n}}return r.prototype.request=function(d){typeof d=="string"&&(d=t.merge({url:arguments[0]},arguments[1])),d=t.merge(e,{method:"get"},this.defaults,d),d.method=d.method.toLowerCase();var f=[a,void 0],p=Promise.resolve(d);for(this.interceptors.request.forEach(function(k){f.unshift(k.fulfilled,k.rejected)}),this.interceptors.response.forEach(function(k){f.push(k.fulfilled,k.rejected)});f.length;)p=p.then(f.shift(),f.shift());return p},t.forEach(["delete","get","head","options"],function(d){r.prototype[d]=function(f,p){return this.request(t.merge(p||{},{method:d,url:f}))}}),t.forEach(["post","put","patch"],function(d){r.prototype[d]=function(f,p,y){return this.request(t.merge(y||{},{method:d,url:f,data:p}))}}),Xd=r,Xd}var Zd,xm;function Py(){if(xm)return Zd;xm=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,Zd=e,Zd}var Jd,Sm;function Xx(){if(Sm)return Jd;Sm=1;var e=Py();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var a;this.promise=new Promise(function(d){a=d});var r=this;n(function(d){r.reason||(r.reason=new e(d),a(r.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.source=function(){var a,r=new t(function(d){a=d});return{token:r,cancel:a}},Jd=t,Jd}var Qd,Cm;function Zx(){return Cm||(Cm=1,Qd=function(t){return function(a){return t.apply(null,a)}}),Qd}var Tm;function Jx(){if(Tm)return fu.exports;Tm=1;var e=qa(),t=Cy(),n=Yx(),a=zh();function r(d){var f=new n(d),p=t(n.prototype.request,f);return e.extend(p,n.prototype,f),e.extend(p,f),p}var l=r(a);return l.Axios=n,l.create=function(f){return r(e.merge(a,f))},l.Cancel=Py(),l.CancelToken=Xx(),l.isCancel=Ey(),l.all=function(f){return Promise.all(f)},l.spread=Zx(),fu.exports=l,fu.exports.default=l,fu.exports}var tf,Em;function Qx(){return Em||(Em=1,tf=Jx()),tf}var tS=Qx();const zi=On(tS);let vi=[];function My(e,t){const n=vi.length;return vi.push({src:e,volume:t,startTime:new Date().toISOString()}),n}function Pm(e){e>=0&&e<vi.length&&!vi[e].endTime&&(vi[e].endTime=new Date().toISOString())}function eS(){vi=[]}function nS(e){const t=vi.length;return vi.push({...vi[e],startTime:new Date().toISOString(),endTime:void 0}),t}function aS(){Ay("publish/av/soundLog",vi,"application/json; charset=utf-8")}function Uf(e,t){return Ay(e,t,"text/plain")}function Ay(e,t,n){return zi.post("/bloom/api/"+e,t,{headers:{"Content-Type":n}})}class iS{constructor(){this.pageIdToSelectionMap=new Map,this.musicLogIndex=-1}pageHasMusic(t){return this.pageIdToSelectionMap.has(this.getPageId(t))}HandlePageVisible(t){this.currentPage=t,this.currentPage&&(this.pageHasMusic(this.currentPage)?this.listen():this.pause())}hidingPage(){}listen(){this.setMusicSourceAndVolume(),oa===Cn.AudioPaused?this.getPlayer().pause():this.playerPlay()}play(){this.currentPage&&this.playerPlay()}pause(){this.currentPage&&(this.getPlayer().pause(),Pm(this.musicLogIndex))}processAllMusicForBook(t){this.pageIdToSelectionMap=new Map;let n=-1,a;for(let r=0;r<t.length;r++){const l=t[r],d=l.getAttribute("data-backgroundaudio");d!==null&&d!==""&&d!=="none"?(a={id:++n,src:d,volume:this.getMusicVolume(l)},this.pageIdToSelectionMap.set(this.getPageId(l),a)):d===null?a&&this.pageIdToSelectionMap.set(this.getPageId(l),a):a=void 0}}getPageId(t){return t.getAttribute("id")||""}getPlayer(){let t=document.querySelector("#music-player");return t||(t=document.createElement("audio"),t.setAttribute("id","music-player"),document.body.appendChild(t),t.addEventListener("ended",()=>this.playEnded())),t}setMusicSourceAndVolume(){const t=this.pageIdToSelectionMap.get(this.getPageId(this.currentPage));if(t===void 0){this.selectionPlaying=void 0;return}if(t===this.selectionPlaying)return;Pm(this.musicLogIndex),this.selectionPlaying=t;const n=t.src,a=t.volume,r=this.currentMusicUrl(n+"?nocache="+new Date().getTime()),l=this.getPlayer();l.setAttribute("src",n?r:""),a.length&&(l.volume=Number(a)),n&&(this.musicLogIndex=My(r,a.length?Number(a):1))}getMusicVolume(t){if(!t)return"";const n=t.getAttribute("data-backgroundaudiovolume");return n||""}currentMusicUrl(t){return this.urlPrefix+"/audio/"+t}playEnded(){this.getPlayer().currentTime=0,this.play(),this.musicLogIndex=nS(this.musicLogIndex)}playerPlay(){const t=this.getPlayer().play();t&&t.catch&&t.catch(n=>{console.log("could not play music: "+n),this.getPlayer().pause(),n.name==="NotAllowedError"&&this.PlayFailed&&this.PlayFailed.raise()})}}const rS={"Button.Back":{message:"رجوع",description:"tooltip for the button to go back to the main display"}},oS={"Audio.Pause":{message:"Fasilə etmək",description:"tooltip for the audio (or motion) pause button"},"Button.Back":{message:"Gəri",description:"tooltip for the button to go back to the main display"}},sS={"Quiz.CheckYourUnderstanding":{message:"আপনাদের বোধশক্তির পরীক্ষা করুন",description:"the heading on (some) quiz pages"},"Button.Back":{message:"পিছনে",description:"tooltip for the button to go back to the main display"}},lS={"Quiz.CheckYourUnderstanding":{message:"Compruebe su comprensión",description:"the heading on (some) quiz pages"},"Audio.Play":{message:"Reproducir",description:"tooltip for the button to play a motion book"},"Audio.ReadAloud":{message:"Leer en voz alta",description:"tooltip for the audio play button for talking books"},"Audio.Pause":{message:"Pausar",description:"tooltip for the audio (or motion) pause button"},"Button.Back":{message:"Regresar",description:"tooltip for the button to go back to the main display"},"Button.More":{message:"Más",description:"tooltip for the button to go show detail view of book"},"Button.FullScreen":{message:"Pantalla completa",description:"tooltip for the display on full screen button"},"Button.ExitFullScreen":{message:"Salir de pantalla completa",description:"tooltip for the exit full screen button"},"Button.ChooseLanguage":{message:"Elija el idioma",description:"tooltip for the language menu button"},"Button.Next":{message:"Página siguiente",description:"tooltip for the next page button"},"Button.Prev":{message:"Página previa",description:"tooltip for the previous page button"},"Button.ReadImageDescriptions":{message:"Leer las descripciones de las imágenes",description:"tooltip for the button to enable reading image descriptions"},"Button.IgnoreImageDescriptions":{message:"Ignorar las descripciones de las imágenes",description:"tooltip for the button to disable reading image descriptions"}},uS={"Quiz.CheckYourUnderstanding":{message:"Contrôlez Votre Compréhension",description:"the heading on (some) quiz pages"},"Audio.Play":{message:"Lecture",description:"tooltip for the button to play a motion book"},"Audio.ReadAloud":{message:"Lecture Livre Audio",description:"tooltip for the audio play button for talking books"},"Audio.Pause":{message:"Pause",description:"tooltip for the audio (or motion) pause button"},"Button.Back":{message:"Retour",description:"tooltip for the button to go back to the main display"},"Button.More":{message:"Plus d’infos",description:"tooltip for the button to go show detail view of book"},"Button.FullScreen":{message:"Plein Écran",description:"tooltip for the display on full screen button"},"Button.ExitFullScreen":{message:"Sortir du mode Plein Ecran",description:"tooltip for the exit full screen button"},"Button.ChooseLanguage":{message:"Choisir Langue",description:"tooltip for the language menu button"},"Button.Next":{message:"Page Suivante",description:"tooltip for the next page button"},"Button.Prev":{message:"Page Précédente",description:"tooltip for the previous page button"},"Button.ReadImageDescriptions":{message:"Lire la Description des Images",description:"tooltip for the button to enable reading image descriptions"},"Button.IgnoreImageDescriptions":{message:"Ignorer la Description des Images",description:"tooltip for the button to disable reading image descriptions"},"Version.Problem.Web":{message:"Ce livre utilise la fonctionnalité {feature}. Malheureusement, {hostname} n'est pas encore prêt à afficher ce livre. Veuillez revenir plus tard ou bien écrivez à issues@bloomlibrary.org si vous pensez que c'est une réponse inattendue.",description:"Please make sure that your translation contains {feature} and {hostname} as placeholders; they will be replaced with actual data. Do not translate those words."},"Version.Problem.NoHost":{message:"Ce livre utilise la fonctionnalité {feature} et nécessite une version plus récente du programme que vous utilisez pour le lire. Veuillez faire une mise à jour pour la dernière version.",description:"Please make sure that your translation contains {feature} as a placeholder; it will be replaced with actual data. Do not translate that word."},"Version.Problem.Host":{message:"Ce livre utilise la fonctionnalité {feature} et nécessite une version plus récente de {host} pour le lire. Veuillez faire une mise à jour pour la dernière version.",description:"Please make sure that your translation contains {feature} and {host} as placeholders; they will be replaced with actual data. Do not translate those words. Host is the name of the app that should be upgraded, e.g., Bloom Reader."}},cS={"Button.Back":{message:"Baya",description:"tooltip for the button to go back to the main display"}},dS={"Quiz.CheckYourUnderstanding":{message:"अपनी समझ की जांचें",description:"the heading on (some) quiz pages"},"Button.Back":{message:"पीछे जाएं",description:"tooltip for the button to go back to the main display"}},fS={"Button.Back":{message:"Kembali",description:"tooltip for the button to go back to the main display"}},hS={"Button.Back":{message:"War-dhelergh",description:"tooltip for the button to go back to the main display"}},pS={"Button.Back":{message:"ຄືນ",description:"tooltip for the button to go back to the main display"}},gS={"Quiz.CheckYourUnderstanding":{message:"Ka'yinxa qa in ex toj twi'ya",description:"the heading on (some) quiz pages"},"Audio.Play":{message:"B'inxa",description:"tooltip for the button to play a motion book"},"Audio.ReadAloud":{message:"Ok jawil u'jit kyuw",description:"tooltip for the audio play button for talking books"},"Audio.Pause":{message:"Maqonxa",description:"tooltip for the audio (or motion) pause button"},"Button.Back":{message:"Tanjtz ti'ja",description:"tooltip for the button to go back to the main display"},"Button.More":{message:"Txqantl",description:"tooltip for the button to go show detail view of book"}},mS={"Quiz.CheckYourUnderstanding":{message:"သင်မည်မျှနားလည်ကို စစ်ဆေးရန်",description:"the heading on (some) quiz pages"}},vS={"Button.Back":{message:"पछाडि",description:"tooltip for the button to go back to the main display"}},yS={"Quiz.CheckYourUnderstanding":{message:"خپله پوهه وګوره",description:"the heading on (some) quiz pages"},"Button.Back":{message:"شاته",description:"tooltip for the button to go back to the main display"}},bS={"Quiz.CheckYourUnderstanding":{message:"درک خود را بررسی کنید",description:"the heading on (some) quiz pages"},"Button.Back":{message:"عقب",description:"tooltip for the button to go back to the main display"}},wS={"Quiz.CheckYourUnderstanding":{message:"Verifique a sua compreensão",description:"the heading on (some) quiz pages"},"Audio.Play":{message:"Tocar",description:"tooltip for the button to play a motion book"},"Audio.ReadAloud":{message:"Ler em voz alta",description:"tooltip for the audio play button for talking books"},"Audio.Pause":{message:"Pausar",description:"tooltip for the audio (or motion) pause button"},"Button.Back":{message:"Voltar",description:"tooltip for the button to go back to the main display"},"Button.More":{message:"Mais",description:"tooltip for the button to go show detail view of book"},"Button.FullScreen":{message:"Tela Cheia (Ecrã inteiro)",description:"tooltip for the display on full screen button"},"Button.ExitFullScreen":{message:"Sair da tela cheia (ecrã inteiro)",description:"tooltip for the exit full screen button"},"Button.ChooseLanguage":{message:"Selecionar a língua",description:"tooltip for the language menu button"},"Button.Next":{message:"Próxima página",description:"tooltip for the next page button"},"Button.Prev":{message:"Página anterior",description:"tooltip for the previous page button"},"Button.ReadImageDescriptions":{message:"Ler descrições da imagem",description:"tooltip for the button to enable reading image descriptions"},"Button.IgnoreImageDescriptions":{message:"Ignorar Descrições da Imagem",description:"tooltip for the button to disable reading image descriptions"},"Version.Problem.Web":{message:"Este livro usa o recurso {feature}. Infelizmente, {hostname} ainda não está pronto para exibir este livro. Por favor, volte mais tarde ou escreva para issues@bloomlibrary.org se isto for inesperado.",description:"Please make sure that your translation contains {feature} and {hostname} as placeholders; they will be replaced with actual data. Do not translate those words."},"Version.Problem.NoHost":{message:"Este livro utiliza o recurso {feature} e requer uma versão mais recente do programa que você usa para lê-lo. Por favor, atualize para a versão mais recente.",description:"Please make sure that your translation contains {feature} as a placeholder; it will be replaced with actual data. Do not translate that word."},"Version.Problem.Host":{message:"Este livro utiliza o recurso {feature} e requer uma versão mais recente do {host} para ser lido. Atualize para a versão mais recente.",description:"Please make sure that your translation contains {feature} and {host} as placeholders; they will be replaced with actual data. Do not translate those words. Host is the name of the app that should be upgraded, e.g., Bloom Reader."}},kS={"Quiz.CheckYourUnderstanding":{message:"Chawila le aweta'mab'al",description:"the heading on (some) quiz pages"},"Button.Back":{message:"Utzalixik",description:"tooltip for the button to go back to the main display"}},xS={"Quiz.CheckYourUnderstanding":{message:"Проверьте ваше понимание",description:"the heading on (some) quiz pages"},"Button.Back":{message:"Назад",description:"tooltip for the button to go back to the main display"}},SS={"Quiz.CheckYourUnderstanding":{message:"Angalia Uelewa Wako",description:"the heading on (some) quiz pages"},"Audio.Play":{message:"Cheza",description:"tooltip for the button to play a motion book"},"Audio.ReadAloud":{message:"Soma kwa sauti",description:"tooltip for the audio play button for talking books"},"Audio.Pause":{message:"Sitisha",description:"tooltip for the audio (or motion) pause button"},"Button.Back":{message:"Nyuma",description:"tooltip for the button to go back to the main display"},"Button.More":{message:"Zaidi",description:"tooltip for the button to go show detail view of book"},"Button.FullScreen":{message:"Skrini kamili",description:"tooltip for the display on full screen button"},"Button.ExitFullScreen":{message:"Toka skrini kamili",description:"tooltip for the exit full screen button"},"Button.ChooseLanguage":{message:"Chagua lugha",description:"tooltip for the language menu button"},"Button.Next":{message:"Ukurasa unaofuata",description:"tooltip for the next page button"},"Button.Prev":{message:"Ukurasa uliopita",description:"tooltip for the previous page button"},"Button.ReadImageDescriptions":{message:"Soma Maelezo ya Picha",description:"tooltip for the button to enable reading image descriptions"},"Button.IgnoreImageDescriptions":{message:"Puuza Maelezo ya Picha",description:"tooltip for the button to disable reading image descriptions"}},CS={"Button.Back":{message:"பின்",description:"tooltip for the button to go back to the main display"}},TS={"Button.Back":{message:"తిరిగి",description:"tooltip for the button to go back to the main display"}},ES={"Button.Back":{message:"กลับ",description:"tooltip for the button to go back to the main display"}},PS={"Button.Back":{message:"Bumalik",description:"tooltip for the button to go back to the main display"}},MS={"Button.Back":{message:"Geri",description:"tooltip for the button to go back to the main display"}},AS={"Audio.Pause":{message:"Tạm dừng",description:"tooltip for the audio (or motion) pause button"},"Button.Back":{message:"Quay Lại",description:"tooltip for the button to go back to the main display"}},NS={"Quiz.CheckYourUnderstanding":{message:"检查理解",description:"the heading on (some) quiz pages"},"Button.Back":{message:"后退",description:"tooltip for the button to go back to the main display"}},LS={ar:rS,az:oS,bn:sS,es:lS,fr:uS,ha:cS,hi:dS,id:fS,kw:hS,lo:pS,mam:gS,my:mS,ne:vS,pbu:yS,prs:bS,pt:wS,quc:kS,ru:xS,sw:SS,ta:CS,te:TS,th:ES,tl:PS,tr:MS,vi:AS,zh:NS};class BS{constructor(){this.l10nDictionary=new Map,this.isSetup=!1}setUp(t){if(this.isSetup)return;this.isSetup=!0;const n=t||LS;Object.keys(n).forEach(a=>{const r=n[a];Object.keys(r).forEach(l=>{let d=this.l10nDictionary.get(l);d||(d=new Map,this.l10nDictionary.set(l,d)),d.set(a,r[l].message)})})}localizePages(t,n){const a=t.querySelectorAll(".bloom-page [data-i18n]");a&&Array.from(a).forEach(r=>{this.localizeElement(r,n)})}localizeElement(t,n){const a=t.dataset.i18n;if(!a)return;const[r,l]=this.getTranslationAndLanguage(a,n);r&&l&&(t.innerText=r,t.setAttribute("lang",l))}getTranslationAndLanguage(t,n){const a=this.l10nDictionary.get(t);if(!a||!n)return[void 0,void 0];for(let l=0;l<n.length;l++){const d=n[l],f=a.get(d);if(f)return[f,d]}const r=a.get("en");return r?[r,"en"]:[void 0,void 0]}getTranslation(t,n,a){const[r]=this.getTranslationAndLanguage(t,n);return r||a}getBloomUiLanguage(){const t=navigator.language;return this.removeRegionCode(t)}removeRegionCode(t){const n=t.indexOf("-");return n<0?t:t.substring(0,n)}}const wn=new BS;class zS{constructor(){this.data={}}getData(){return this.data}setData(t){this.data=t}}const Ih=new zS;function Oa(e,t){return IS(e,t)}function IS(e,t){return Dh(e,n=>n,t)}function Dh(e,t,n){const a=DS(window.location.search);return n!==void 0&&(a[e]===void 0||a[e]===null)?n:t(a[e])}function DS(e){return e.substring(1).replace(/\+/g," ").split("&").filter(Boolean).reduce((n,a)=>{const r=a.split("="),l=decodeURIComponent(r[0]||""),d=decodeURIComponent(r[1]||"");return n[l]=d,n},{})}function xa(e,t){return Dh(e,a=>a.toLowerCase()==="true",t)}function Mm(e,t){return Dh(e,Number.parseFloat,t)}var jo=(e=>(e[e.Dev=0]="Dev",e[e.Prod=1]="Prod",e[e.Test=2]="Test",e))(jo||{});(function(){var e=window.analytics=window.analytics||[];if(!e.initialize)if(e.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{e.invoked=!0,e.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],e.factory=function(a){return function(){var r=Array.prototype.slice.call(arguments);return r.unshift(a),e.push(r),e}};for(var t=0;t<e.methods.length;t++){var n=e.methods[t];e[n]=e.factory(n)}e.load=function(a,r){var l=document.createElement("script");l.type="text/javascript",l.async=!0,l.src=KS();var d=document.getElementsByTagName("script")[0];d.parentNode.insertBefore(l,d),e._loadOptions=r},e.SNIPPET_VERSION="4.1.0"}})();window.location.search.includes("independent=false")||(window.analytics.load(),window.onbeforeunload=RS);const Iu="bloom-player-read-duration",Am="bloom-player-book-url";function RS(){const e=Du.entries();let t=e.next();for(;!t.done;){const n=t.value[0],a=t.value[1];Rh(n,a),t=e.next()}return Du.clear(),localStorage.removeItem(Iu),null}function Rh(e,t){window.analytics.track(e,t)}const Du=new Map;let ef=!1;function jS(e,t){!ef&&t.lastNumberedPageRead&&(Rh(e,t),ef=!0,Du.delete(e),localStorage.removeItem(Iu)),!ef&&Du.set(e,t)}function OS(){return window.location.hostname==="dev.bloomlibrary.org"||window.location.search.includes("dev.bloomlibrary.org")?jo.Dev:window.location.hostname==="localhost"||window.location.search.includes("localhost")?jo.Test:jo.Prod}function KS(){switch(OS()){case jo.Prod:return"https://bloomlibrary.org/analytics.min.js";case jo.Dev:return"https://bloomlibrary.org/analytics.dev.min.js";default:return"https://bloomlibrary.org/analytics.test.min.js"}}function bi(e){const t=JSON.stringify(e);if(window.ParentProxy){window.ParentProxy.receiveMessage(t);return}const n=window.webkit?.messageHandlers?.receiveMessage?.postMessage;if(n){n(t);return}window.parent&&window.parent.postMessage(t,"*")}function qS(e,t){bi({messageType:"storePageData",key:e,value:t})}let rl={};function $S(e){rl=e}function Ny(e,t){xa("independent",!0)?Rh(e,{...rl,...t}):bi({messageType:"sendAnalytics",event:e,params:{...rl,...t}})}function HS(e){bi({messageType:"reportBookProperties",params:{...e}})}function FS(e){bi({messageType:"playbackComplete",params:{...e}})}function WS(e,t){xa("independent",!0)?jS(e,{...rl,...t}):(Oa("host","")!=="bloomlibrary"&&delete t.readDuration,bi({messageType:"updateBookProgressReport",event:e,params:{...rl,...t}}))}function _S(){bi({messageType:"backButtonClicked"})}function VS(){bi({messageType:"showNavBar"})}function GS(){bi({messageType:"hideNavBar"})}function US(e){bi({messageType:"logError",message:e})}let Yf=null;function YS(e){Yf=e}function XS(e){let t=null;try{t=JSON.parse(e)}catch(a){console.log("receiveMessage failed to parse json: "+e+" with error "+a.message);return}const n=t.messageType;n==="restorePageData"&&Ih.setData(t.pageData),n==="control"&&Yf&&Yf(t)}window.addEventListener("message",e=>{!e||!e.data||e.data.length===0||XS(e.data)});const ZS=`tag3 tag1 name autonym
|
|
6
|
+
`,t.firstChild},ia=class ia{constructor(){this.currentVideoStartTime=0,this.isPlayingSingleVideo=!1,this.transientPlayRetryCounts=new WeakMap,this.playAllVideoGeneration=0,this.hasStartedPlaybackOnCurrentPage=!1,this.handlePlayClick=t=>{if(t.stopPropagation(),t.preventDefault(),this.resumeAutoplayBlockedSequenceIfNeeded())return;const n=t.target?.closest(".bloom-videoContainer")?.getElementsByTagName("video")[0];n&&(this.fadePlayButton(n),n===this.currentVideoElement?this.play():this.replaySingleVideo(n))},this.handleVideoClick=t=>{t.currentTarget.paused?this.handlePlayClick(t):this.handlePauseClick(t)},this.handleReplayClick=t=>{t.stopPropagation(),t.preventDefault();const n=t.target?.closest(".bloom-videoContainer")?.getElementsByTagName("video")[0];n&&this.replaySingleVideo(n)},this.handlePauseClick=t=>{t.stopPropagation(),t.preventDefault(),this.pause()}}static pageHasVideo(t){return!!ia.getAllVideoElements(t).length}wrapVideoIcon(t,n,a){const r=document.createElement("div");return r.classList.add("videoControlContainer"),r.appendChild(n),r.classList.add(a),n.classList.add("videoControl"),t.parentElement?.appendChild(r),n}static setAllVideoPostersTo1x1TransparentPNG(t){const n=t.getElementsByTagName("video");for(let a=0;a<n.length;a++)n[a].setAttribute("poster",ia.onePixelTransparentPoster)}HandlePageBeforeVisible(t){if(this.currentPage=t,!ia.pageHasVideo(this.currentPage)){this.currentVideoElement=void 0;return}ia.getAllVideoElements(this.currentPage).forEach(n=>{n.removeAttribute("controls"),n.addEventListener("click",this.handleVideoClick),this.wrapVideoIcon(n,Ix("#ffffff"),"videoPlayIcon").addEventListener("click",this.handlePlayClick),this.wrapVideoIcon(n,Dx("#ffffff"),"videoReplayIcon").addEventListener("click",this.handleReplayClick),n.setAttribute("playsinline",""),n.setAttribute("webkit-playsinline",""),n.setAttribute("disablePictureInPicture",""),n.currentTime!==0&&(n.currentTime=0)})}HandlePageVisible(t,n){if(this.pauseCurrentVideo(),this.currentPage=t,this.hasStartedPlaybackOnCurrentPage=!1,this.clearDelayedAutoplayTimeout(),this.resetAutoplayBlockedState(),!ia.pageHasVideo(this.currentPage)){this.currentVideoElement=void 0;return}var a=this.currentPage.getElementsByClassName("videoControlContainer");a.length===0&&this.HandlePageBeforeVisible(this.currentPage),n()&&this.markAllVideosPaused();const r=this.getVideoElements();if(r.length===0){this.currentVideoElement=void 0,this.PageVideoComplete&&this.PageVideoComplete.raise({page:this.currentPage,videos:ia.getAllVideoElements(this.currentPage)});return}let l,d=!0;for(const f of r)l||(l=f),Gf(f,()=>d||n()||f!=l,()=>{f===l&&this.enterAutoplayBlockedMode(r)});l&&(this.delayedAutoplayTimeoutId=window.setTimeout(()=>{d=!1,this.delayedAutoplayTimeoutId=void 0,!n()&&!this.autoplayBlockedSequence&&!this.hasStartedPlaybackOnCurrentPage&&this.playAllVideo(r)},1e3))}clearDelayedAutoplayTimeout(){this.delayedAutoplayTimeoutId!==void 0&&(window.clearTimeout(this.delayedAutoplayTimeoutId),this.delayedAutoplayTimeoutId=void 0)}static getAllVideoElements(t){return Array.from(t.getElementsByClassName("bloom-videoContainer")).map(n=>n.getElementsByTagName("video")[0]).filter(n=>n!==void 0)}static getVideoElements(t){return ia.getAllVideoElements(t).filter(n=>ia.isElementVisible(n.closest(".bloom-videoContainer"))).filter(n=>n!==void 0)}static isElementVisible(t){let n=t;for(;n;){const a=window.getComputedStyle(n);if(a.display==="none"||a.visibility==="hidden")return!1;n=n.parentElement}return!0}getVideoElements(){return ia.getVideoElements(this.currentPage)}fadePlayButton(t){const n=this.getPlayIconContainer(t);if(!n)return;this.stopPlayButtonContainerFade(n),n.offsetWidth,n.classList.add("videoPlayIcon-flash");const a=window.setTimeout(()=>{this.stopPlayButtonContainerFade(n)},1e3);n.dataset.fadeTimeout=a.toString()}getPlayIconContainer(t){return t.closest(".bloom-videoContainer")?.querySelector(".videoControlContainer.videoPlayIcon")??null}stopPlayButtonContainerFade(t){const n=t.dataset.fadeTimeout;n&&(window.clearTimeout(Number(n)),delete t.dataset.fadeTimeout),t.classList.remove("videoPlayIcon-flash"),t.style.removeProperty("opacity")}stopPlayButtonFade(t){const n=this.getPlayIconContainer(t);n&&this.stopPlayButtonContainerFade(n)}play(){oa!==Cn.VideoPlaying&&(this.resumeAutoplayBlockedSequenceIfNeeded()||(Yn(Cn.VideoPlaying),this.isPlayingSingleVideo?this.playAllVideo([this.currentVideoElement]):this.resumePlayAllVideo()))}resumePlayAllVideo(){const t=this.getVideoElements();let n=t;if(this.currentVideoElement){const a=t.indexOf(this.currentVideoElement);n=t.slice(a)}this.playAllVideo(n)}pause(){oa!=Cn.VideoPaused&&(this.pauseCurrentVideo(),Yn(Cn.VideoPaused))}pauseCurrentVideo(){this.currentPage&&Array.from(this.currentPage.getElementsByClassName("playing")).forEach(a=>a.classList.remove("playing"));const t=this.currentVideoElement;if(!t)return;t.currentTime>0&&!t.paused&&!t.ended&&this.reportVideoPlayed(t.currentTime-this.currentVideoStartTime),t?.closest(".bloom-videoContainer")?.classList.add("paused"),this.stopPlayButtonFade(t),t.pause()}reportVideoPlayed(t){Zv()?.storeVideoAnalytics(t)}hidingPage(){this.clearDelayedAutoplayTimeout(),this.hasStartedPlaybackOnCurrentPage=!1,this.resetAutoplayBlockedState(),this.pauseCurrentVideo()}replaySingleVideo(t){t.currentTime=0,this.isPlayingSingleVideo=!0,this.playAllVideo([t])}markAllVideosPaused(){Array.from(this.currentPage.getElementsByClassName("bloom-videoContainer")).forEach(t=>{t.closest(".bloom-canvas-element[data-draggable-id]")||t.classList.add("paused");const n=t.getElementsByTagName("video")[0];n&&this.stopPlayButtonFade(n)})}setContainerClasses(t,n){const a=t.closest(".bloom-videoContainer");a&&(a.classList.remove(...ia.autoplayBlockedClassNames),n.forEach(r=>a.classList.add(r)))}clearAutoplayBlockedUi(){this.currentPage&&Array.from(this.currentPage.getElementsByClassName("bloom-videoContainer")).forEach(t=>{t.classList.remove(...ia.autoplayBlockedClassNames)})}resetAutoplayBlockedState(){this.clearAutoplayBlockedUi(),this.autoplayBlockedSequence=void 0}resumeAutoplayBlockedSequenceIfNeeded(){return this.autoplayBlockedSequence?.length?(this.resumeAfterAutoplayBlockedUserClick(),!0):!1}enterAutoplayBlockedMode(t){if(!t.length||this.autoplayBlockedSequence)return;this.clearDelayedAutoplayTimeout(),this.autoplayBlockedSequence=t;const n=t[0];this.currentVideoElement=n,this.isPlayingSingleVideo=!1,Yn(Cn.VideoPaused),al?.raise(),t.forEach((a,r)=>{r===0?this.setContainerClasses(a,["autoplayBlocked","autoplayBlockedPrimary","paused"]):(this.setContainerClasses(a,["autoplayBlockedSuppressed"]),a.closest(".bloom-videoContainer")?.classList.remove("paused"))})}resumeAfterAutoplayBlockedUserClick(){const t=this.autoplayBlockedSequence;if(!t||!t.length)return;this.autoplayBlockedSequence=void 0,this.clearDelayedAutoplayTimeout(),this.clearAutoplayBlockedUi(),_f?.raise();const n=t[0];t.forEach(a=>{a!==n&&Gf(a,()=>this.currentVideoElement!==a)}),this.isPlayingSingleVideo=!1,this.playAllVideo(t)}playAllVideo(t){this.playAllVideoWithGeneration(t,++this.playAllVideoGeneration)}playAllVideoWithGeneration(t,n){if(n!==this.playAllVideoGeneration)return;if(Array.from(this.currentPage.getElementsByClassName("playing")).forEach(d=>d.classList.remove("playing")),t.length===0){this.currentVideoElement=void 0,this.isPlayingSingleVideo=!1,this.PageVideoComplete&&this.PageVideoComplete.raise({page:this.currentPage,videos:this.getVideoElements()}),this.markAllVideosPaused();return}this.hasStartedPlaybackOnCurrentPage=!0,Array.from(this.currentPage.getElementsByClassName("paused")).forEach(d=>d.classList.remove("paused"));const a=t[0],r=a.closest(".bloom-page");if(this.currentPage!==r){this.currentVideoElement=void 0;return}if(a.closest(".bloom-canvas-element[data-draggable-id]")){this.playAllVideoWithGeneration(t.slice(1),n);return}this.currentVideoElement=a,ky(a)?(this.transientPlayRetryCounts.delete(a),zu(a),this.playAllVideoWithGeneration(t.slice(1),n)):(Sy(a),qo(a),Yn(Cn.VideoPlaying),Gu(a),this.currentVideoStartTime=a.currentTime||0,a.closest(".bloom-videoContainer")?.classList.add("playing"),a.play().then(()=>{this.transientPlayRetryCounts.delete(a),qo(a),a.addEventListener("ended",()=>{this.reportVideoPlayed(a.currentTime-this.currentVideoStartTime),a.currentTime=0,this.playAllVideoWithGeneration(t.slice(1),n)},{once:!0})}).catch(f=>{if(f?.name==="NotAllowedError"){console.debug("Video autoplay blocked until user interaction"),this.currentPage&&Array.from(this.currentPage.getElementsByClassName("playing")).forEach(y=>y.classList.remove("playing")),this.enterAutoplayBlockedMode(t);return}const p=this.transientPlayRetryCounts.get(a)??0;if(by(f)&&p<2){this.transientPlayRetryCounts.set(a,p+1);const y=n;window.setTimeout(()=>{y===this.playAllVideoGeneration&&this.playAllVideoWithGeneration(t,y)},50);return}console.error("Video play failed",f),this.transientPlayRetryCounts.delete(a),zu(a),this.playAllVideoWithGeneration(t.slice(1),n)}))}};ia.autoplayBlockedClassNames=["autoplayBlocked","autoplayBlockedPrimary","autoplayBlockedSuppressed"],ia.onePixelTransparentPoster="data:image/gif;base64,R0lGODlhAQABAAAAACwAAAAAAQABAAA=";let Js=ia;var fu={exports:{}},Ld,em;function Cy(){return em||(em=1,Ld=function(t,n){return function(){for(var r=new Array(arguments.length),l=0;l<r.length;l++)r[l]=arguments[l];return t.apply(n,r)}}),Ld}var Bd,nm;function Rx(){return nm||(nm=1,Bd=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}),Bd}var zd,am;function Ka(){if(am)return zd;am=1;var e=Cy(),t=Rx(),n=Object.prototype.toString;function a($){return n.call($)==="[object Array]"}function r($){return n.call($)==="[object ArrayBuffer]"}function l($){return typeof FormData<"u"&&$ instanceof FormData}function d($){var v;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?v=ArrayBuffer.isView($):v=$&&$.buffer&&$.buffer instanceof ArrayBuffer,v}function f($){return typeof $=="string"}function p($){return typeof $=="number"}function y($){return typeof $>"u"}function k($){return $!==null&&typeof $=="object"}function E($){return n.call($)==="[object Date]"}function N($){return n.call($)==="[object File]"}function I($){return n.call($)==="[object Blob]"}function L($){return n.call($)==="[object Function]"}function K($){return k($)&&L($.pipe)}function J($){return typeof URLSearchParams<"u"&&$ instanceof URLSearchParams}function F($){return $.replace(/^\s*/,"").replace(/\s*$/,"")}function G(){return typeof navigator<"u"&&navigator.product==="ReactNative"?!1:typeof window<"u"&&typeof document<"u"}function ot($,v){if(!($===null||typeof $>"u"))if(typeof $!="object"&&($=[$]),a($))for(var mt=0,ft=$.length;mt<ft;mt++)v.call(null,$[mt],mt,$);else for(var Lt in $)Object.prototype.hasOwnProperty.call($,Lt)&&v.call(null,$[Lt],Lt,$)}function dt(){var $={};function v(Lt,Nt){typeof $[Nt]=="object"&&typeof Lt=="object"?$[Nt]=dt($[Nt],Lt):$[Nt]=Lt}for(var mt=0,ft=arguments.length;mt<ft;mt++)ot(arguments[mt],v);return $}function _($,v,mt){return ot(v,function(Lt,Nt){mt&&typeof Lt=="function"?$[Nt]=e(Lt,mt):$[Nt]=Lt}),$}return zd={isArray:a,isArrayBuffer:r,isBuffer:t,isFormData:l,isArrayBufferView:d,isString:f,isNumber:p,isObject:k,isUndefined:y,isDate:E,isFile:N,isBlob:I,isFunction:L,isStream:K,isURLSearchParams:J,isStandardBrowserEnv:G,forEach:ot,merge:dt,extend:_,trim:F},zd}var Id,im;function jx(){if(im)return Id;im=1;var e=Ka();return Id=function(n,a){e.forEach(n,function(l,d){d!==a&&d.toUpperCase()===a.toUpperCase()&&(n[a]=l,delete n[d])})},Id}var Dd,rm;function Ox(){return rm||(rm=1,Dd=function(t,n,a,r,l){return t.config=n,a&&(t.code=a),t.request=r,t.response=l,t}),Dd}var Rd,om;function Ty(){if(om)return Rd;om=1;var e=Ox();return Rd=function(n,a,r,l,d){var f=new Error(n);return e(f,a,r,l,d)},Rd}var jd,sm;function Kx(){if(sm)return jd;sm=1;var e=Ty();return jd=function(n,a,r){var l=r.config.validateStatus;!r.status||!l||l(r.status)?n(r):a(e("Request failed with status code "+r.status,r.config,null,r.request,r))},jd}var Od,lm;function qx(){if(lm)return Od;lm=1;var e=Ka();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 Od=function(a,r,l){if(!r)return a;var d;if(l)d=l(r);else if(e.isURLSearchParams(r))d=r.toString();else{var f=[];e.forEach(r,function(y,k){y===null||typeof y>"u"||(e.isArray(y)?k=k+"[]":y=[y],e.forEach(y,function(N){e.isDate(N)?N=N.toISOString():e.isObject(N)&&(N=JSON.stringify(N)),f.push(t(k)+"="+t(N))}))}),d=f.join("&")}return d&&(a+=(a.indexOf("?")===-1?"?":"&")+d),a},Od}var Kd,um;function $x(){if(um)return Kd;um=1;var e=Ka(),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 Kd=function(a){var r={},l,d,f;return a&&e.forEach(a.split(`
|
|
7
|
+
`),function(y){if(f=y.indexOf(":"),l=e.trim(y.substr(0,f)).toLowerCase(),d=e.trim(y.substr(f+1)),l){if(r[l]&&t.indexOf(l)>=0)return;l==="set-cookie"?r[l]=(r[l]?r[l]:[]).concat([d]):r[l]=r[l]?r[l]+", "+d:d}}),r},Kd}var qd,cm;function Hx(){if(cm)return qd;cm=1;var e=Ka();return qd=e.isStandardBrowserEnv()?(function(){var n=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a"),r;function l(d){var f=d;return n&&(a.setAttribute("href",f),f=a.href),a.setAttribute("href",f),{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 r=l(window.location.href),function(f){var p=e.isString(f)?l(f):f;return p.protocol===r.protocol&&p.host===r.host}})():(function(){return function(){return!0}})(),qd}var $d,dm;function Fx(){if(dm)return $d;dm=1;var e=Ka();return $d=e.isStandardBrowserEnv()?(function(){return{write:function(a,r,l,d,f,p){var y=[];y.push(a+"="+encodeURIComponent(r)),e.isNumber(l)&&y.push("expires="+new Date(l).toGMTString()),e.isString(d)&&y.push("path="+d),e.isString(f)&&y.push("domain="+f),p===!0&&y.push("secure"),document.cookie=y.join("; ")},read:function(a){var r=document.cookie.match(new RegExp("(^|;\\s*)("+a+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(a){this.write(a,"",Date.now()-864e5)}}})():(function(){return{write:function(){},read:function(){return null},remove:function(){}}})(),$d}var Hd,fm;function hm(){if(fm)return Hd;fm=1;var e=Ka(),t=Kx(),n=qx(),a=$x(),r=Hx(),l=Ty();return Hd=function(f){return new Promise(function(y,k){var E=f.data,N=f.headers;e.isFormData(E)&&delete N["Content-Type"];var I=new XMLHttpRequest;if(f.auth){var L=f.auth.username||"",K=f.auth.password||"";N.Authorization="Basic "+btoa(L+":"+K)}if(I.open(f.method.toUpperCase(),n(f.url,f.params,f.paramsSerializer),!0),I.timeout=f.timeout,I.onreadystatechange=function(){if(!(!I||I.readyState!==4)&&!(I.status===0&&!(I.responseURL&&I.responseURL.indexOf("file:")===0))){var ot="getAllResponseHeaders"in I?a(I.getAllResponseHeaders()):null,dt=!f.responseType||f.responseType==="text"?I.responseText:I.response,_={data:dt,status:I.status,statusText:I.statusText,headers:ot,config:f,request:I};t(y,k,_),I=null}},I.onerror=function(){k(l("Network Error",f,null,I)),I=null},I.ontimeout=function(){k(l("timeout of "+f.timeout+"ms exceeded",f,"ECONNABORTED",I)),I=null},e.isStandardBrowserEnv()){var J=Fx(),F=(f.withCredentials||r(f.url))&&f.xsrfCookieName?J.read(f.xsrfCookieName):void 0;F&&(N[f.xsrfHeaderName]=F)}if("setRequestHeader"in I&&e.forEach(N,function(ot,dt){typeof E>"u"&&dt.toLowerCase()==="content-type"?delete N[dt]:I.setRequestHeader(dt,ot)}),f.withCredentials&&(I.withCredentials=!0),f.responseType)try{I.responseType=f.responseType}catch(G){if(f.responseType!=="json")throw G}typeof f.onDownloadProgress=="function"&&I.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&I.upload&&I.upload.addEventListener("progress",f.onUploadProgress),f.cancelToken&&f.cancelToken.promise.then(function(ot){I&&(I.abort(),k(ot),I=null)}),E===void 0&&(E=null),I.send(E)})},Hd}var Fd,pm;function zh(){if(pm)return Fd;pm=1;var e=Ka(),t=jx(),n={"Content-Type":"application/x-www-form-urlencoded"};function a(d,f){!e.isUndefined(d)&&e.isUndefined(d["Content-Type"])&&(d["Content-Type"]=f)}function r(){var d;return(typeof XMLHttpRequest<"u"||typeof process<"u")&&(d=hm()),d}var l={adapter:r(),transformRequest:[function(f,p){return t(p,"Content-Type"),e.isFormData(f)||e.isArrayBuffer(f)||e.isBuffer(f)||e.isStream(f)||e.isFile(f)||e.isBlob(f)?f:e.isArrayBufferView(f)?f.buffer:e.isURLSearchParams(f)?(a(p,"application/x-www-form-urlencoded;charset=utf-8"),f.toString()):e.isObject(f)?(a(p,"application/json;charset=utf-8"),JSON.stringify(f)):f}],transformResponse:[function(f){if(typeof f=="string")try{f=JSON.parse(f)}catch{}return f}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(f){return f>=200&&f<300}};return l.headers={common:{Accept:"application/json, text/plain, */*"}},e.forEach(["delete","get","head"],function(f){l.headers[f]={}}),e.forEach(["post","put","patch"],function(f){l.headers[f]=e.merge(n)}),Fd=l,Fd}var Wd,gm;function Wx(){if(gm)return Wd;gm=1;var e=Ka();function t(){this.handlers=[]}return t.prototype.use=function(a,r){return this.handlers.push({fulfilled:a,rejected:r}),this.handlers.length-1},t.prototype.eject=function(a){this.handlers[a]&&(this.handlers[a]=null)},t.prototype.forEach=function(a){e.forEach(this.handlers,function(l){l!==null&&a(l)})},Wd=t,Wd}var _d,mm;function _x(){if(mm)return _d;mm=1;var e=Ka();return _d=function(n,a,r){return e.forEach(r,function(d){n=d(n,a)}),n},_d}var Vd,vm;function Ey(){return vm||(vm=1,Vd=function(t){return!!(t&&t.__CANCEL__)}),Vd}var Gd,ym;function Vx(){return ym||(ym=1,Gd=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}),Gd}var Ud,bm;function Gx(){return bm||(bm=1,Ud=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t}),Ud}var Yd,wm;function Ux(){if(wm)return Yd;wm=1;var e=Ka(),t=_x(),n=Ey(),a=zh(),r=Vx(),l=Gx();function d(f){f.cancelToken&&f.cancelToken.throwIfRequested()}return Yd=function(p){d(p),p.baseURL&&!r(p.url)&&(p.url=l(p.baseURL,p.url)),p.headers=p.headers||{},p.data=t(p.data,p.headers,p.transformRequest),p.headers=e.merge(p.headers.common||{},p.headers[p.method]||{},p.headers||{}),e.forEach(["delete","get","head","post","put","patch","common"],function(E){delete p.headers[E]});var y=p.adapter||a.adapter;return y(p).then(function(E){return d(p),E.data=t(E.data,E.headers,p.transformResponse),E},function(E){return n(E)||(d(p),E&&E.response&&(E.response.data=t(E.response.data,E.response.headers,p.transformResponse))),Promise.reject(E)})},Yd}var Xd,km;function Yx(){if(km)return Xd;km=1;var e=zh(),t=Ka(),n=Wx(),a=Ux();function r(l){this.defaults=l,this.interceptors={request:new n,response:new n}}return r.prototype.request=function(d){typeof d=="string"&&(d=t.merge({url:arguments[0]},arguments[1])),d=t.merge(e,{method:"get"},this.defaults,d),d.method=d.method.toLowerCase();var f=[a,void 0],p=Promise.resolve(d);for(this.interceptors.request.forEach(function(k){f.unshift(k.fulfilled,k.rejected)}),this.interceptors.response.forEach(function(k){f.push(k.fulfilled,k.rejected)});f.length;)p=p.then(f.shift(),f.shift());return p},t.forEach(["delete","get","head","options"],function(d){r.prototype[d]=function(f,p){return this.request(t.merge(p||{},{method:d,url:f}))}}),t.forEach(["post","put","patch"],function(d){r.prototype[d]=function(f,p,y){return this.request(t.merge(y||{},{method:d,url:f,data:p}))}}),Xd=r,Xd}var Zd,xm;function Py(){if(xm)return Zd;xm=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,Zd=e,Zd}var Jd,Sm;function Xx(){if(Sm)return Jd;Sm=1;var e=Py();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var a;this.promise=new Promise(function(d){a=d});var r=this;n(function(d){r.reason||(r.reason=new e(d),a(r.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.source=function(){var a,r=new t(function(d){a=d});return{token:r,cancel:a}},Jd=t,Jd}var Qd,Cm;function Zx(){return Cm||(Cm=1,Qd=function(t){return function(a){return t.apply(null,a)}}),Qd}var Tm;function Jx(){if(Tm)return fu.exports;Tm=1;var e=Ka(),t=Cy(),n=Yx(),a=zh();function r(d){var f=new n(d),p=t(n.prototype.request,f);return e.extend(p,n.prototype,f),e.extend(p,f),p}var l=r(a);return l.Axios=n,l.create=function(f){return r(e.merge(a,f))},l.Cancel=Py(),l.CancelToken=Xx(),l.isCancel=Ey(),l.all=function(f){return Promise.all(f)},l.spread=Zx(),fu.exports=l,fu.exports.default=l,fu.exports}var tf,Em;function Qx(){return Em||(Em=1,tf=Jx()),tf}var tS=Qx();const zi=On(tS);let vi=[];function My(e,t){const n=vi.length;return vi.push({src:e,volume:t,startTime:new Date().toISOString()}),n}function Pm(e){e>=0&&e<vi.length&&!vi[e].endTime&&(vi[e].endTime=new Date().toISOString())}function eS(){vi=[]}function nS(e){const t=vi.length;return vi.push({...vi[e],startTime:new Date().toISOString(),endTime:void 0}),t}function aS(){Ay("publish/av/soundLog",vi,"application/json; charset=utf-8")}function Uf(e,t){return Ay(e,t,"text/plain")}function Ay(e,t,n){return zi.post("/bloom/api/"+e,t,{headers:{"Content-Type":n}})}class iS{constructor(){this.pageIdToSelectionMap=new Map,this.musicLogIndex=-1}pageHasMusic(t){return this.pageIdToSelectionMap.has(this.getPageId(t))}HandlePageVisible(t){this.currentPage=t,this.currentPage&&(this.pageHasMusic(this.currentPage)?this.listen():this.pause())}hidingPage(){}listen(){this.setMusicSourceAndVolume(),oa===Cn.AudioPaused?this.getPlayer().pause():this.playerPlay()}play(){this.currentPage&&this.playerPlay()}pause(){this.currentPage&&(this.getPlayer().pause(),Pm(this.musicLogIndex))}processAllMusicForBook(t){this.pageIdToSelectionMap=new Map;let n=-1,a;for(let r=0;r<t.length;r++){const l=t[r],d=l.getAttribute("data-backgroundaudio");d!==null&&d!==""&&d!=="none"?(a={id:++n,src:d,volume:this.getMusicVolume(l)},this.pageIdToSelectionMap.set(this.getPageId(l),a)):d===null?a&&this.pageIdToSelectionMap.set(this.getPageId(l),a):a=void 0}}getPageId(t){return t.getAttribute("id")||""}getPlayer(){let t=document.querySelector("#music-player");return t||(t=document.createElement("audio"),t.setAttribute("id","music-player"),document.body.appendChild(t),t.addEventListener("ended",()=>this.playEnded())),t}setMusicSourceAndVolume(){const t=this.pageIdToSelectionMap.get(this.getPageId(this.currentPage));if(t===void 0){this.selectionPlaying=void 0;return}if(t===this.selectionPlaying)return;Pm(this.musicLogIndex),this.selectionPlaying=t;const n=t.src,a=t.volume,r=this.currentMusicUrl(n+"?nocache="+new Date().getTime()),l=this.getPlayer();l.setAttribute("src",n?r:""),a.length&&(l.volume=Number(a)),n&&(this.musicLogIndex=My(r,a.length?Number(a):1))}getMusicVolume(t){if(!t)return"";const n=t.getAttribute("data-backgroundaudiovolume");return n||""}currentMusicUrl(t){return this.urlPrefix+"/audio/"+t}playEnded(){this.getPlayer().currentTime=0,this.play(),this.musicLogIndex=nS(this.musicLogIndex)}playerPlay(){const t=this.getPlayer().play();t&&t.catch&&t.catch(n=>{console.log("could not play music: "+n),this.getPlayer().pause(),n.name==="NotAllowedError"&&this.PlayFailed&&this.PlayFailed.raise()})}}const rS={"Button.Back":{message:"رجوع",description:"tooltip for the button to go back to the main display"}},oS={"Audio.Pause":{message:"Fasilə etmək",description:"tooltip for the audio (or motion) pause button"},"Button.Back":{message:"Gəri",description:"tooltip for the button to go back to the main display"}},sS={"Quiz.CheckYourUnderstanding":{message:"আপনাদের বোধশক্তির পরীক্ষা করুন",description:"the heading on (some) quiz pages"},"Button.Back":{message:"পিছনে",description:"tooltip for the button to go back to the main display"}},lS={"Quiz.CheckYourUnderstanding":{message:"Compruebe su comprensión",description:"the heading on (some) quiz pages"},"Audio.Play":{message:"Reproducir",description:"tooltip for the button to play a motion book"},"Audio.ReadAloud":{message:"Leer en voz alta",description:"tooltip for the audio play button for talking books"},"Audio.Pause":{message:"Pausar",description:"tooltip for the audio (or motion) pause button"},"Button.Back":{message:"Regresar",description:"tooltip for the button to go back to the main display"},"Button.More":{message:"Más",description:"tooltip for the button to go show detail view of book"},"Button.FullScreen":{message:"Pantalla completa",description:"tooltip for the display on full screen button"},"Button.ExitFullScreen":{message:"Salir de pantalla completa",description:"tooltip for the exit full screen button"},"Button.ChooseLanguage":{message:"Elija el idioma",description:"tooltip for the language menu button"},"Button.Next":{message:"Página siguiente",description:"tooltip for the next page button"},"Button.Prev":{message:"Página previa",description:"tooltip for the previous page button"},"Button.ReadImageDescriptions":{message:"Leer las descripciones de las imágenes",description:"tooltip for the button to enable reading image descriptions"},"Button.IgnoreImageDescriptions":{message:"Ignorar las descripciones de las imágenes",description:"tooltip for the button to disable reading image descriptions"}},uS={"Quiz.CheckYourUnderstanding":{message:"Contrôlez Votre Compréhension",description:"the heading on (some) quiz pages"},"Audio.Play":{message:"Lecture",description:"tooltip for the button to play a motion book"},"Audio.ReadAloud":{message:"Lecture Livre Audio",description:"tooltip for the audio play button for talking books"},"Audio.Pause":{message:"Pause",description:"tooltip for the audio (or motion) pause button"},"Button.Back":{message:"Retour",description:"tooltip for the button to go back to the main display"},"Button.More":{message:"Plus d’infos",description:"tooltip for the button to go show detail view of book"},"Button.FullScreen":{message:"Plein Écran",description:"tooltip for the display on full screen button"},"Button.ExitFullScreen":{message:"Sortir du mode Plein Ecran",description:"tooltip for the exit full screen button"},"Button.ChooseLanguage":{message:"Choisir Langue",description:"tooltip for the language menu button"},"Button.Next":{message:"Page Suivante",description:"tooltip for the next page button"},"Button.Prev":{message:"Page Précédente",description:"tooltip for the previous page button"},"Button.ReadImageDescriptions":{message:"Lire la Description des Images",description:"tooltip for the button to enable reading image descriptions"},"Button.IgnoreImageDescriptions":{message:"Ignorer la Description des Images",description:"tooltip for the button to disable reading image descriptions"},"Version.Problem.Web":{message:"Ce livre utilise la fonctionnalité {feature}. Malheureusement, {hostname} n'est pas encore prêt à afficher ce livre. Veuillez revenir plus tard ou bien écrivez à issues@bloomlibrary.org si vous pensez que c'est une réponse inattendue.",description:"Please make sure that your translation contains {feature} and {hostname} as placeholders; they will be replaced with actual data. Do not translate those words."},"Version.Problem.NoHost":{message:"Ce livre utilise la fonctionnalité {feature} et nécessite une version plus récente du programme que vous utilisez pour le lire. Veuillez faire une mise à jour pour la dernière version.",description:"Please make sure that your translation contains {feature} as a placeholder; it will be replaced with actual data. Do not translate that word."},"Version.Problem.Host":{message:"Ce livre utilise la fonctionnalité {feature} et nécessite une version plus récente de {host} pour le lire. Veuillez faire une mise à jour pour la dernière version.",description:"Please make sure that your translation contains {feature} and {host} as placeholders; they will be replaced with actual data. Do not translate those words. Host is the name of the app that should be upgraded, e.g., Bloom Reader."}},cS={"Button.Back":{message:"Baya",description:"tooltip for the button to go back to the main display"}},dS={"Quiz.CheckYourUnderstanding":{message:"अपनी समझ की जांचें",description:"the heading on (some) quiz pages"},"Button.Back":{message:"पीछे जाएं",description:"tooltip for the button to go back to the main display"}},fS={"Button.Back":{message:"Kembali",description:"tooltip for the button to go back to the main display"}},hS={"Button.Back":{message:"War-dhelergh",description:"tooltip for the button to go back to the main display"}},pS={"Button.Back":{message:"ຄືນ",description:"tooltip for the button to go back to the main display"}},gS={"Quiz.CheckYourUnderstanding":{message:"Ka'yinxa qa in ex toj twi'ya",description:"the heading on (some) quiz pages"},"Audio.Play":{message:"B'inxa",description:"tooltip for the button to play a motion book"},"Audio.ReadAloud":{message:"Ok jawil u'jit kyuw",description:"tooltip for the audio play button for talking books"},"Audio.Pause":{message:"Maqonxa",description:"tooltip for the audio (or motion) pause button"},"Button.Back":{message:"Tanjtz ti'ja",description:"tooltip for the button to go back to the main display"},"Button.More":{message:"Txqantl",description:"tooltip for the button to go show detail view of book"}},mS={"Quiz.CheckYourUnderstanding":{message:"သင်မည်မျှနားလည်ကို စစ်ဆေးရန်",description:"the heading on (some) quiz pages"}},vS={"Button.Back":{message:"पछाडि",description:"tooltip for the button to go back to the main display"}},yS={"Quiz.CheckYourUnderstanding":{message:"خپله پوهه وګوره",description:"the heading on (some) quiz pages"},"Button.Back":{message:"شاته",description:"tooltip for the button to go back to the main display"}},bS={"Quiz.CheckYourUnderstanding":{message:"درک خود را بررسی کنید",description:"the heading on (some) quiz pages"},"Button.Back":{message:"عقب",description:"tooltip for the button to go back to the main display"}},wS={"Quiz.CheckYourUnderstanding":{message:"Verifique a sua compreensão",description:"the heading on (some) quiz pages"},"Audio.Play":{message:"Tocar",description:"tooltip for the button to play a motion book"},"Audio.ReadAloud":{message:"Ler em voz alta",description:"tooltip for the audio play button for talking books"},"Audio.Pause":{message:"Pausar",description:"tooltip for the audio (or motion) pause button"},"Button.Back":{message:"Voltar",description:"tooltip for the button to go back to the main display"},"Button.More":{message:"Mais",description:"tooltip for the button to go show detail view of book"},"Button.FullScreen":{message:"Tela Cheia (Ecrã inteiro)",description:"tooltip for the display on full screen button"},"Button.ExitFullScreen":{message:"Sair da tela cheia (ecrã inteiro)",description:"tooltip for the exit full screen button"},"Button.ChooseLanguage":{message:"Selecionar a língua",description:"tooltip for the language menu button"},"Button.Next":{message:"Próxima página",description:"tooltip for the next page button"},"Button.Prev":{message:"Página anterior",description:"tooltip for the previous page button"},"Button.ReadImageDescriptions":{message:"Ler descrições da imagem",description:"tooltip for the button to enable reading image descriptions"},"Button.IgnoreImageDescriptions":{message:"Ignorar Descrições da Imagem",description:"tooltip for the button to disable reading image descriptions"},"Version.Problem.Web":{message:"Este livro usa o recurso {feature}. Infelizmente, {hostname} ainda não está pronto para exibir este livro. Por favor, volte mais tarde ou escreva para issues@bloomlibrary.org se isto for inesperado.",description:"Please make sure that your translation contains {feature} and {hostname} as placeholders; they will be replaced with actual data. Do not translate those words."},"Version.Problem.NoHost":{message:"Este livro utiliza o recurso {feature} e requer uma versão mais recente do programa que você usa para lê-lo. Por favor, atualize para a versão mais recente.",description:"Please make sure that your translation contains {feature} as a placeholder; it will be replaced with actual data. Do not translate that word."},"Version.Problem.Host":{message:"Este livro utiliza o recurso {feature} e requer uma versão mais recente do {host} para ser lido. Atualize para a versão mais recente.",description:"Please make sure that your translation contains {feature} and {host} as placeholders; they will be replaced with actual data. Do not translate those words. Host is the name of the app that should be upgraded, e.g., Bloom Reader."}},kS={"Quiz.CheckYourUnderstanding":{message:"Chawila le aweta'mab'al",description:"the heading on (some) quiz pages"},"Button.Back":{message:"Utzalixik",description:"tooltip for the button to go back to the main display"}},xS={"Quiz.CheckYourUnderstanding":{message:"Проверьте ваше понимание",description:"the heading on (some) quiz pages"},"Button.Back":{message:"Назад",description:"tooltip for the button to go back to the main display"}},SS={"Quiz.CheckYourUnderstanding":{message:"Angalia Uelewa Wako",description:"the heading on (some) quiz pages"},"Audio.Play":{message:"Cheza",description:"tooltip for the button to play a motion book"},"Audio.ReadAloud":{message:"Soma kwa sauti",description:"tooltip for the audio play button for talking books"},"Audio.Pause":{message:"Sitisha",description:"tooltip for the audio (or motion) pause button"},"Button.Back":{message:"Nyuma",description:"tooltip for the button to go back to the main display"},"Button.More":{message:"Zaidi",description:"tooltip for the button to go show detail view of book"},"Button.FullScreen":{message:"Skrini kamili",description:"tooltip for the display on full screen button"},"Button.ExitFullScreen":{message:"Toka skrini kamili",description:"tooltip for the exit full screen button"},"Button.ChooseLanguage":{message:"Chagua lugha",description:"tooltip for the language menu button"},"Button.Next":{message:"Ukurasa unaofuata",description:"tooltip for the next page button"},"Button.Prev":{message:"Ukurasa uliopita",description:"tooltip for the previous page button"},"Button.ReadImageDescriptions":{message:"Soma Maelezo ya Picha",description:"tooltip for the button to enable reading image descriptions"},"Button.IgnoreImageDescriptions":{message:"Puuza Maelezo ya Picha",description:"tooltip for the button to disable reading image descriptions"}},CS={"Button.Back":{message:"பின்",description:"tooltip for the button to go back to the main display"}},TS={"Button.Back":{message:"తిరిగి",description:"tooltip for the button to go back to the main display"}},ES={"Button.Back":{message:"กลับ",description:"tooltip for the button to go back to the main display"}},PS={"Button.Back":{message:"Bumalik",description:"tooltip for the button to go back to the main display"}},MS={"Button.Back":{message:"Geri",description:"tooltip for the button to go back to the main display"}},AS={"Audio.Pause":{message:"Tạm dừng",description:"tooltip for the audio (or motion) pause button"},"Button.Back":{message:"Quay Lại",description:"tooltip for the button to go back to the main display"}},NS={"Quiz.CheckYourUnderstanding":{message:"检查理解",description:"the heading on (some) quiz pages"},"Button.Back":{message:"后退",description:"tooltip for the button to go back to the main display"}},LS={ar:rS,az:oS,bn:sS,es:lS,fr:uS,ha:cS,hi:dS,id:fS,kw:hS,lo:pS,mam:gS,my:mS,ne:vS,pbu:yS,prs:bS,pt:wS,quc:kS,ru:xS,sw:SS,ta:CS,te:TS,th:ES,tl:PS,tr:MS,vi:AS,zh:NS};class BS{constructor(){this.l10nDictionary=new Map,this.isSetup=!1}setUp(t){if(this.isSetup)return;this.isSetup=!0;const n=t||LS;Object.keys(n).forEach(a=>{const r=n[a];Object.keys(r).forEach(l=>{let d=this.l10nDictionary.get(l);d||(d=new Map,this.l10nDictionary.set(l,d)),d.set(a,r[l].message)})})}localizePages(t,n){const a=t.querySelectorAll(".bloom-page [data-i18n]");a&&Array.from(a).forEach(r=>{this.localizeElement(r,n)})}localizeElement(t,n){const a=t.dataset.i18n;if(!a)return;const[r,l]=this.getTranslationAndLanguage(a,n);r&&l&&(t.innerText=r,t.setAttribute("lang",l))}getTranslationAndLanguage(t,n){const a=this.l10nDictionary.get(t);if(!a||!n)return[void 0,void 0];for(let l=0;l<n.length;l++){const d=n[l],f=a.get(d);if(f)return[f,d]}const r=a.get("en");return r?[r,"en"]:[void 0,void 0]}getTranslation(t,n,a){const[r]=this.getTranslationAndLanguage(t,n);return r||a}getBloomUiLanguage(){const t=navigator.language;return this.removeRegionCode(t)}removeRegionCode(t){const n=t.indexOf("-");return n<0?t:t.substring(0,n)}}const wn=new BS;class zS{constructor(){this.data={}}getData(){return this.data}setData(t){this.data=t}}const Ih=new zS;function ja(e,t){return IS(e,t)}function IS(e,t){return Dh(e,n=>n,t)}function Dh(e,t,n){const a=DS(window.location.search);return n!==void 0&&(a[e]===void 0||a[e]===null)?n:t(a[e])}function DS(e){return e.substring(1).replace(/\+/g," ").split("&").filter(Boolean).reduce((n,a)=>{const r=a.split("="),l=decodeURIComponent(r[0]||""),d=decodeURIComponent(r[1]||"");return n[l]=d,n},{})}function xa(e,t){return Dh(e,a=>a.toLowerCase()==="true",t)}function Mm(e,t){return Dh(e,Number.parseFloat,t)}var jo=(e=>(e[e.Dev=0]="Dev",e[e.Prod=1]="Prod",e[e.Test=2]="Test",e))(jo||{});(function(){var e=window.analytics=window.analytics||[];if(!e.initialize)if(e.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{e.invoked=!0,e.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],e.factory=function(a){return function(){var r=Array.prototype.slice.call(arguments);return r.unshift(a),e.push(r),e}};for(var t=0;t<e.methods.length;t++){var n=e.methods[t];e[n]=e.factory(n)}e.load=function(a,r){var l=document.createElement("script");l.type="text/javascript",l.async=!0,l.src=KS();var d=document.getElementsByTagName("script")[0];d.parentNode.insertBefore(l,d),e._loadOptions=r},e.SNIPPET_VERSION="4.1.0"}})();window.location.search.includes("independent=false")||(window.analytics.load(),window.onbeforeunload=RS);const Iu="bloom-player-read-duration",Am="bloom-player-book-url";function RS(){const e=Du.entries();let t=e.next();for(;!t.done;){const n=t.value[0],a=t.value[1];Rh(n,a),t=e.next()}return Du.clear(),localStorage.removeItem(Iu),null}function Rh(e,t){window.analytics.track(e,t)}const Du=new Map;let ef=!1;function jS(e,t){!ef&&t.lastNumberedPageRead&&(Rh(e,t),ef=!0,Du.delete(e),localStorage.removeItem(Iu)),!ef&&Du.set(e,t)}function OS(){return window.location.hostname==="dev.bloomlibrary.org"||window.location.search.includes("dev.bloomlibrary.org")?jo.Dev:window.location.hostname==="localhost"||window.location.search.includes("localhost")?jo.Test:jo.Prod}function KS(){switch(OS()){case jo.Prod:return"https://bloomlibrary.org/analytics.min.js";case jo.Dev:return"https://bloomlibrary.org/analytics.dev.min.js";default:return"https://bloomlibrary.org/analytics.test.min.js"}}function bi(e){const t=JSON.stringify(e);if(window.ParentProxy){window.ParentProxy.receiveMessage(t);return}const n=window.webkit?.messageHandlers?.receiveMessage?.postMessage;if(n){n(t);return}window.parent&&window.parent.postMessage(t,"*")}function qS(e,t){bi({messageType:"storePageData",key:e,value:t})}let rl={};function $S(e){rl=e}function Ny(e,t){xa("independent",!0)?Rh(e,{...rl,...t}):bi({messageType:"sendAnalytics",event:e,params:{...rl,...t}})}function HS(e){bi({messageType:"reportBookProperties",params:{...e}})}function FS(e){bi({messageType:"playbackComplete",params:{...e}})}function WS(e,t){xa("independent",!0)?jS(e,{...rl,...t}):(ja("host","")!=="bloomlibrary"&&delete t.readDuration,bi({messageType:"updateBookProgressReport",event:e,params:{...rl,...t}}))}function _S(){bi({messageType:"backButtonClicked"})}function VS(){bi({messageType:"showNavBar"})}function GS(){bi({messageType:"hideNavBar"})}function US(e){bi({messageType:"logError",message:e})}let Yf=null;function YS(e){Yf=e}function XS(e){let t=null;try{t=JSON.parse(e)}catch(a){console.log("receiveMessage failed to parse json: "+e+" with error "+a.message);return}const n=t.messageType;n==="restorePageData"&&Ih.setData(t.pageData),n==="control"&&Yf&&Yf(t)}window.addEventListener("message",e=>{!e||!e.data||e.data.length===0||XS(e.data)});const ZS=`tag3 tag1 name autonym
|
|
8
8
|
kap Bezhta
|
|
9
9
|
aar aa Afar Qafar
|
|
10
10
|
aaq Eastern Abnaki
|
|
@@ -7875,14 +7875,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7875
7875
|
`+Ht+i}var de=!1;function me(i,o){if(!i||de)return"";de=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(W){var g=W}Reflect.construct(i,[],o)}else{try{o.call()}catch(W){g=W}i.call(o.prototype)}else{try{throw Error()}catch(W){g=W}i()}}catch(W){if(W&&g&&typeof W.stack=="string"){for(var b=W.stack.split(`
|
|
7876
7876
|
`),C=g.stack.split(`
|
|
7877
7877
|
`),A=b.length-1,z=C.length-1;1<=A&&0<=z&&b[A]!==C[z];)z--;for(;1<=A&&0<=z;A--,z--)if(b[A]!==C[z]){if(A!==1||z!==1)do if(A--,z--,0>z||b[A]!==C[z])return`
|
|
7878
|
-
`+b[A].replace(" at new "," at ");while(1<=A&&0<=z);break}}}finally{de=!1,Error.prepareStackTrace=u}return(i=i?i.displayName||i.name:"")?Qt(i):""}function Pe(i){switch(i.tag){case 5:return Qt(i.type);case 16:return Qt("Lazy");case 13:return Qt("Suspense");case 19:return Qt("SuspenseList");case 0:case 2:case 15:return i=me(i.type,!1),i;case 11:return i=me(i.type.render,!1),i;case 22:return i=me(i.type._render,!1),i;case 1:return i=me(i.type,!0),i;default:return""}}function ln(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case mt:return"Fragment";case v:return"Portal";case Lt:return"Profiler";case ft:return"StrictMode";case H:return"Suspense";case s:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case At:return(i.displayName||"Context")+".Consumer";case Nt:return(i._context.displayName||"Context")+".Provider";case tt:var o=i.render;return o=o.displayName||o.name||"",i.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case ht:return ln(i.type);case lt:return ln(i._render);case x:o=i._payload,i=i._init;try{return ln(i(o))}catch{}}return null}function Oe(i){switch(typeof i){case"boolean":case"number":case"object":case"string":case"undefined":return i;default:return""}}function rn(i){var o=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Ve(i){var o=rn(i)?"checked":"value",u=Object.getOwnPropertyDescriptor(i.constructor.prototype,o),g=""+i[o];if(!i.hasOwnProperty(o)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var b=u.get,C=u.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return b.call(this)},set:function(A){g=""+A,C.call(this,A)}}),Object.defineProperty(i,o,{enumerable:u.enumerable}),{getValue:function(){return g},setValue:function(A){g=""+A},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function kn(i){i._valueTracker||(i._valueTracker=Ve(i))}function Ye(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var u=o.getValue(),g="";return i&&(g=rn(i)?i.checked?"true":"false":i.value),i=g,i!==u?(o.setValue(i),!0):!1}function yn(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function Je(i,o){var u=o.checked;return t({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:u??i._wrapperState.initialChecked})}function un(i,o){var u=o.defaultValue==null?"":o.defaultValue,g=o.checked!=null?o.checked:o.defaultChecked;u=Oe(o.value!=null?o.value:u),i._wrapperState={initialChecked:g,initialValue:u,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function M(i,o){o=o.checked,o!=null&&dt(i,"checked",o,!1)}function D(i,o){M(i,o);var u=Oe(o.value),g=o.type;if(u!=null)g==="number"?(u===0&&i.value===""||i.value!=u)&&(i.value=""+u):i.value!==""+u&&(i.value=""+u);else if(g==="submit"||g==="reset"){i.removeAttribute("value");return}o.hasOwnProperty("value")?it(i,o.type,u):o.hasOwnProperty("defaultValue")&&it(i,o.type,Oe(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(i.defaultChecked=!!o.defaultChecked)}function Y(i,o,u){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var g=o.type;if(!(g!=="submit"&&g!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+i._wrapperState.initialValue,u||o===i.value||(i.value=o),i.defaultValue=o}u=i.name,u!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,u!==""&&(i.name=u)}function it(i,o,u){(o!=="number"||yn(i.ownerDocument)!==i)&&(u==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+u&&(i.defaultValue=""+u))}function vt(i){var o="";return e.Children.forEach(i,function(u){u!=null&&(o+=u)}),o}function st(i,o){return i=t({children:void 0},o),(o=vt(o.children))&&(i.children=o),i}function Xt(i,o,u,g){if(i=i.options,o){o={};for(var b=0;b<u.length;b++)o["$"+u[b]]=!0;for(u=0;u<i.length;u++)b=o.hasOwnProperty("$"+i[u].value),i[u].selected!==b&&(i[u].selected=b),b&&g&&(i[u].defaultSelected=!0)}else{for(u=""+Oe(u),o=null,b=0;b<i.length;b++){if(i[b].value===u){i[b].selected=!0,g&&(i[b].defaultSelected=!0);return}o!==null||i[b].disabled||(o=i[b])}o!==null&&(o.selected=!0)}}function Me(i,o){if(o.dangerouslySetInnerHTML!=null)throw Error(a(91));return t({},o,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function Re(i,o){var u=o.value;if(u==null){if(u=o.children,o=o.defaultValue,u!=null){if(o!=null)throw Error(a(92));if(Array.isArray(u)){if(!(1>=u.length))throw Error(a(93));u=u[0]}o=u}o==null&&(o=""),u=o}i._wrapperState={initialValue:Oe(u)}}function ee(i,o){var u=Oe(o.value),g=Oe(o.defaultValue);u!=null&&(u=""+u,u!==i.value&&(i.value=u),o.defaultValue==null&&i.defaultValue!==u&&(i.defaultValue=u)),g!=null&&(i.defaultValue=""+g)}function Xe(i){var o=i.textContent;o===i._wrapperState.initialValue&&o!==""&&o!==null&&(i.value=o)}var Qe={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function Kn(i){switch(i){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ze(i,o){return i==null||i==="http://www.w3.org/1999/xhtml"?Kn(o):i==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var xn,Bn=(function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,u,g,b){MSApp.execUnsafeLocalFunction(function(){return i(o,u,g,b)})}:i})(function(i,o){if(i.namespaceURI!==Qe.svg||"innerHTML"in i)i.innerHTML=o;else{for(xn=xn||document.createElement("div"),xn.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=xn.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;o.firstChild;)i.appendChild(o.firstChild)}});function qn(i,o){if(o){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=o;return}}i.textContent=o}var Vt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Nn=["Webkit","ms","Moz","O"];Object.keys(Vt).forEach(function(i){Nn.forEach(function(o){o=o+i.charAt(0).toUpperCase()+i.substring(1),Vt[o]=Vt[i]})});function X(i,o,u){return o==null||typeof o=="boolean"||o===""?"":u||typeof o!="number"||o===0||Vt.hasOwnProperty(i)&&Vt[i]?(""+o).trim():o+"px"}function Ut(i,o){i=i.style;for(var u in o)if(o.hasOwnProperty(u)){var g=u.indexOf("--")===0,b=X(u,o[u],g);u==="float"&&(u="cssFloat"),g?i.setProperty(u,b):i[u]=b}}var ie=t({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $e(i,o){if(o){if(ie[i]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(a(137,i));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(a(60));if(!(typeof o.dangerouslySetInnerHTML=="object"&&"__html"in o.dangerouslySetInnerHTML))throw Error(a(61))}if(o.style!=null&&typeof o.style!="object")throw Error(a(62))}}function Ge(i,o){if(i.indexOf("-")===-1)return typeof o.is=="string";switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ue(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var ke=null,Pt=null,ne=null;function xe(i){if(i=us(i)){if(typeof ke!="function")throw Error(a(280));var o=i.stateNode;o&&(o=Pl(o),ke(i.stateNode,i.type,o))}}function ve(i){Pt?ne?ne.push(i):ne=[i]:Pt=i}function zt(){if(Pt){var i=Pt,o=ne;if(ne=Pt=null,xe(i),o)for(i=0;i<o.length;i++)xe(o[i])}}function Ft(i,o){return i(o)}function re(i,o,u,g,b){return i(o,u,g,b)}function Le(){}var Ae=Ft,cn=!1,je=!1;function $n(){(Pt!==null||ne!==null)&&(Le(),zt())}function Jn(i,o,u){if(je)return i(o,u);je=!0;try{return Ae(i,o,u)}finally{je=!1,$n()}}function la(i,o){var u=i.stateNode;if(u===null)return null;var g=Pl(u);if(g===null)return null;u=g[o];t:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(i=i.type,g=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!g;break t;default:i=!1}if(i)return null;if(u&&typeof u!="function")throw Error(a(231,o,typeof u));return u}var ua=!1;if(p)try{var Qn={};Object.defineProperty(Qn,"passive",{get:function(){ua=!0}}),window.addEventListener("test",Qn,Qn),window.removeEventListener("test",Qn,Qn)}catch{ua=!1}function ur(i,o,u,g,b,C,A,z,W){var ct=Array.prototype.slice.call(arguments,3);try{o.apply(u,ct)}catch($t){this.onError($t)}}var Sn=!1,dn=null,fn=!1,ca=null,zn={onError:function(i){Sn=!0,dn=i}};function wi(i,o,u,g,b,C,A,z,W){Sn=!1,dn=null,ur.apply(zn,arguments)}function $a(i,o,u,g,b,C,A,z,W){if(wi.apply(this,arguments),Sn){if(Sn){var ct=dn;Sn=!1,dn=null}else throw Error(a(198));fn||(fn=!0,ca=ct)}}function Tn(i){var o=i,u=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,(o.flags&1026)!==0&&(u=o.return),i=o.return;while(i)}return o.tag===3?u:null}function cr(i){if(i.tag===13){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function dr(i){if(Tn(i)!==i)throw Error(a(188))}function _r(i){var o=i.alternate;if(!o){if(o=Tn(i),o===null)throw Error(a(188));return o!==i?null:i}for(var u=i,g=o;;){var b=u.return;if(b===null)break;var C=b.alternate;if(C===null){if(g=b.return,g!==null){u=g;continue}break}if(b.child===C.child){for(C=b.child;C;){if(C===u)return dr(b),i;if(C===g)return dr(b),o;C=C.sibling}throw Error(a(188))}if(u.return!==g.return)u=b,g=C;else{for(var A=!1,z=b.child;z;){if(z===u){A=!0,u=b,g=C;break}if(z===g){A=!0,g=b,u=C;break}z=z.sibling}if(!A){for(z=C.child;z;){if(z===u){A=!0,u=C,g=b;break}if(z===g){A=!0,g=C,u=b;break}z=z.sibling}if(!A)throw Error(a(189))}}if(u.alternate!==g)throw Error(a(190))}if(u.tag!==3)throw Error(a(188));return u.stateNode.current===u?i:o}function Vr(i){if(i=_r(i),!i)return null;for(var o=i;;){if(o.tag===5||o.tag===6)return o;if(o.child)o.child.return=o,o=o.child;else{if(o===i)break;for(;!o.sibling;){if(!o.return||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}}return null}function Ri(i,o){for(var u=i.alternate;o!==null;){if(o===i||o===u)return!0;o=o.return}return!1}var ta,Ta,fr,_o,Gr=!1,da=[],Ha=null,hn=null,ea=null,ti=new Map,hr=new Map,pr=[],Ur="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Yr(i,o,u,g,b){return{blockedOn:i,domEventName:o,eventSystemFlags:u|16,nativeEvent:b,targetContainers:[g]}}function gr(i,o){switch(i){case"focusin":case"focusout":Ha=null;break;case"dragenter":case"dragleave":hn=null;break;case"mouseover":case"mouseout":ea=null;break;case"pointerover":case"pointerout":ti.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":hr.delete(o.pointerId)}}function ji(i,o,u,g,b,C){return i===null||i.nativeEvent!==C?(i=Yr(o,u,g,b,C),o!==null&&(o=us(o),o!==null&&Ta(o)),i):(i.eventSystemFlags|=g,o=i.targetContainers,b!==null&&o.indexOf(b)===-1&&o.push(b),i)}function sc(i,o,u,g,b){switch(o){case"focusin":return Ha=ji(Ha,i,o,u,g,b),!0;case"dragenter":return hn=ji(hn,i,o,u,g,b),!0;case"mouseover":return ea=ji(ea,i,o,u,g,b),!0;case"pointerover":var C=b.pointerId;return ti.set(C,ji(ti.get(C)||null,i,o,u,g,b)),!0;case"gotpointercapture":return C=b.pointerId,hr.set(C,ji(hr.get(C)||null,i,o,u,g,b)),!0}return!1}function lc(i){var o=Pr(i.target);if(o!==null){var u=Tn(o);if(u!==null){if(o=u.tag,o===13){if(o=cr(u),o!==null){i.blockedOn=o,_o(i.lanePriority,function(){n.unstable_runWithPriority(i.priority,function(){fr(u)})});return}}else if(o===3&&u.stateNode.hydrate){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Hn(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var u=Qo(i.domEventName,i.eventSystemFlags,o[0],i.nativeEvent);if(u!==null)return o=us(u),o!==null&&Ta(o),i.blockedOn=u,!1;o.shift()}return!0}function Vo(i,o,u){Hn(i)&&u.delete(o)}function mr(){for(Gr=!1;0<da.length;){var i=da[0];if(i.blockedOn!==null){i=us(i.blockedOn),i!==null&&ta(i);break}for(var o=i.targetContainers;0<o.length;){var u=Qo(i.domEventName,i.eventSystemFlags,o[0],i.nativeEvent);if(u!==null){i.blockedOn=u;break}o.shift()}i.blockedOn===null&&da.shift()}Ha!==null&&Hn(Ha)&&(Ha=null),hn!==null&&Hn(hn)&&(hn=null),ea!==null&&Hn(ea)&&(ea=null),ti.forEach(Vo),hr.forEach(Vo)}function vr(i,o){i.blockedOn===o&&(i.blockedOn=null,Gr||(Gr=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,mr)))}function pl(i){function o(b){return vr(b,i)}if(0<da.length){vr(da[0],i);for(var u=1;u<da.length;u++){var g=da[u];g.blockedOn===i&&(g.blockedOn=null)}}for(Ha!==null&&vr(Ha,i),hn!==null&&vr(hn,i),ea!==null&&vr(ea,i),ti.forEach(o),hr.forEach(o),u=0;u<pr.length;u++)g=pr[u],g.blockedOn===i&&(g.blockedOn=null);for(;0<pr.length&&(u=pr[0],u.blockedOn===null);)lc(u),u.blockedOn===null&&pr.shift()}function Ea(i,o){var u={};return u[i.toLowerCase()]=o.toLowerCase(),u["Webkit"+i]="webkit"+o,u["Moz"+i]="moz"+o,u}var fa={animationend:Ea("Animation","AnimationEnd"),animationiteration:Ea("Animation","AnimationIteration"),animationstart:Ea("Animation","AnimationStart"),transitionend:Ea("Transition","TransitionEnd")},yr={},gl={};p&&(gl=document.createElement("div").style,"AnimationEvent"in window||(delete fa.animationend.animation,delete fa.animationiteration.animation,delete fa.animationstart.animation),"TransitionEvent"in window||delete fa.transitionend.transition);function ei(i){if(yr[i])return yr[i];if(!fa[i])return i;var o=fa[i],u;for(u in o)if(o.hasOwnProperty(u)&&u in gl)return yr[i]=o[u];return i}var Go=ei("animationend"),Xr=ei("animationiteration"),Uo=ei("animationstart"),Yo=ei("transitionend"),ml=new Map,Zr=new Map,uc=["abort","abort",Go,"animationEnd",Xr,"animationIteration",Uo,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Yo,"transitionEnd","waiting","waiting"];function Xo(i,o){for(var u=0;u<i.length;u+=2){var g=i[u],b=i[u+1];b="on"+(b[0].toUpperCase()+b.slice(1)),Zr.set(g,o),ml.set(g,b),d(b,[g])}}var Zo=n.unstable_now;Zo();var _e=8;function Oi(i){if((1&i)!==0)return _e=15,1;if((2&i)!==0)return _e=14,2;if((4&i)!==0)return _e=13,4;var o=24&i;return o!==0?(_e=12,o):(i&32)!==0?(_e=11,32):(o=192&i,o!==0?(_e=10,o):(i&256)!==0?(_e=9,256):(o=3584&i,o!==0?(_e=8,o):(i&4096)!==0?(_e=7,4096):(o=4186112&i,o!==0?(_e=6,o):(o=62914560&i,o!==0?(_e=5,o):i&67108864?(_e=4,67108864):(i&134217728)!==0?(_e=3,134217728):(o=805306368&i,o!==0?(_e=2,o):(1073741824&i)!==0?(_e=1,1073741824):(_e=8,i))))))}function cc(i){switch(i){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function dc(i){switch(i){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,i))}}function br(i,o){var u=i.pendingLanes;if(u===0)return _e=0;var g=0,b=0,C=i.expiredLanes,A=i.suspendedLanes,z=i.pingedLanes;if(C!==0)g=C,b=_e=15;else if(C=u&134217727,C!==0){var W=C&~A;W!==0?(g=Oi(W),b=_e):(z&=C,z!==0&&(g=Oi(z),b=_e))}else C=u&~A,C!==0?(g=Oi(C),b=_e):z!==0&&(g=Oi(z),b=_e);if(g===0)return 0;if(g=31-Pa(g),g=u&((0>g?0:1<<g)<<1)-1,o!==0&&o!==g&&(o&A)===0){if(Oi(o),b<=_e)return o;_e=b}if(o=i.entangledLanes,o!==0)for(i=i.entanglements,o&=g;0<o;)u=31-Pa(o),b=1<<u,g|=i[u],o&=~b;return g}function vl(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function Jr(i,o){switch(i){case 15:return 1;case 14:return 2;case 12:return i=ki(24&~o),i===0?Jr(10,o):i;case 10:return i=ki(192&~o),i===0?Jr(8,o):i;case 8:return i=ki(3584&~o),i===0&&(i=ki(4186112&~o),i===0&&(i=512)),i;case 2:return o=ki(805306368&~o),o===0&&(o=268435456),o}throw Error(a(358,i))}function ki(i){return i&-i}function wr(i){for(var o=[],u=0;31>u;u++)o.push(i);return o}function kr(i,o,u){i.pendingLanes|=o;var g=o-1;i.suspendedLanes&=g,i.pingedLanes&=g,i=i.eventTimes,o=31-Pa(o),i[o]=u}var Pa=Math.clz32?Math.clz32:Jo,yl=Math.log,bl=Math.LN2;function Jo(i){return i===0?32:31-(yl(i)/bl|0)|0}var fc=n.unstable_UserBlockingPriority,hc=n.unstable_runWithPriority,Qr=!0;function xr(i,o,u,g){cn||Le();var b=Sr,C=cn;cn=!0;try{re(b,i,o,u,g)}finally{(cn=C)||$n()}}function wl(i,o,u,g){hc(fc,Sr.bind(null,i,o,u,g))}function Sr(i,o,u,g){if(Qr){var b;if((b=(o&4)===0)&&0<da.length&&-1<Ur.indexOf(i))i=Yr(null,i,o,u,g),da.push(i);else{var C=Qo(i,o,u,g);if(C===null)b&&gr(i,g);else{if(b){if(-1<Ur.indexOf(i)){i=Yr(C,i,o,u,g),da.push(i);return}if(sc(C,i,o,u,g))return;gr(i,g)}hp(i,o,g,null,u)}}}}function Qo(i,o,u,g){var b=Ue(g);if(b=Pr(b),b!==null){var C=Tn(b);if(C===null)b=null;else{var A=C.tag;if(A===13){if(b=cr(C),b!==null)return b;b=null}else if(A===3){if(C.stateNode.hydrate)return C.tag===3?C.stateNode.containerInfo:null;b=null}else C!==b&&(b=null)}}return hp(i,o,g,b,u),null}var ni=null,ts=null,c=null;function h(){if(c)return c;var i,o=ts,u=o.length,g,b="value"in ni?ni.value:ni.textContent,C=b.length;for(i=0;i<u&&o[i]===b[i];i++);var A=u-i;for(g=1;g<=A&&o[u-g]===b[C-g];g++);return c=b.slice(i,1<g?1-g:void 0)}function m(i){var o=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&o===13&&(i=13)):i=o,i===10&&(i=13),32<=i||i===13?i:0}function w(){return!0}function T(){return!1}function S(i){function o(u,g,b,C,A){this._reactName=u,this._targetInst=b,this.type=g,this.nativeEvent=C,this.target=A,this.currentTarget=null;for(var z in i)i.hasOwnProperty(z)&&(u=i[z],this[z]=u?u(C):C[z]);return this.isDefaultPrevented=(C.defaultPrevented!=null?C.defaultPrevented:C.returnValue===!1)?w:T,this.isPropagationStopped=T,this}return t(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=w)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=w)},persist:function(){},isPersistent:w}),o}var P={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},q=S(P),j=t({},P,{view:0,detail:0}),Z=S(j),ut,pt,at,Tt=t({},j,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ha,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==at&&(at&&i.type==="mousemove"?(ut=i.screenX-at.screenX,pt=i.screenY-at.screenY):pt=ut=0,at=i),ut)},movementY:function(i){return"movementY"in i?i.movementY:pt}}),oe=S(Tt),Ne=t({},Tt,{dataTransfer:0}),ye=S(Ne),En=t({},j,{relatedTarget:0}),pn=S(En),Ma=t({},P,{animationName:0,elapsedTime:0,pseudoElement:0}),Aa=S(Ma),Ce=t({},P,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),xi=S(Ce),Be=t({},P,{data:0}),tn=S(Be),Cr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},es={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Na={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tr(i){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(i):(i=Na[i])?!!o[i]:!1}function ha(){return Tr}var ai=t({},j,{key:function(i){if(i.key){var o=Cr[i.key]||i.key;if(o!=="Unidentified")return o}return i.type==="keypress"?(i=m(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?es[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ha,charCode:function(i){return i.type==="keypress"?m(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?m(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),ii=S(ai),pa=t({},Tt,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),to=S(pa),Fa=t({},j,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ha}),Wa=S(Fa),pc=t({},P,{propertyName:0,elapsedTime:0,pseudoElement:0}),gc=S(pc),mc=t({},Tt,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),qe=S(mc),eo=[9,13,27,32],na=p&&"CompositionEvent"in window,La=null;p&&"documentMode"in document&&(La=document.documentMode);var vc=p&&"TextEvent"in window&&!La,kl=p&&(!na||La&&8<La&&11>=La),ns=" ",ri=!1;function no(i,o){switch(i){case"keyup":return eo.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _a(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Si=!1;function Er(i,o){switch(i){case"compositionend":return _a(o);case"keypress":return o.which!==32?null:(ri=!0,ns);case"textInput":return i=o.data,i===ns&&ri?null:i;default:return null}}function ao(i,o){if(Si)return i==="compositionend"||!na&&no(i,o)?(i=h(),c=ts=ni=null,Si=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return kl&&o.locale!=="ko"?null:o.data;default:return null}}var io={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ro(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o==="input"?!!io[i.type]:o==="textarea"}function xl(i,o,u,g){ve(g),o=Sl(o,"onChange"),0<o.length&&(u=new q("onChange","change",null,u,g),i.push({event:u,listeners:o}))}var oi=null,Ci=null;function as(i){lp(i,0)}function oo(i){var o=co(i);if(Ye(o))return i}function is(i,o){if(i==="change")return o}var rs=!1;if(p){var B;if(p){var V="oninput"in document;if(!V){var nt=document.createElement("div");nt.setAttribute("oninput","return;"),V=typeof nt.oninput=="function"}B=V}else B=!1;rs=B&&(!document.documentMode||9<document.documentMode)}function rt(){oi&&(oi.detachEvent("onpropertychange",gt),Ci=oi=null)}function gt(i){if(i.propertyName==="value"&&oo(Ci)){var o=[];if(xl(o,Ci,i,Ue(i)),i=as,cn)i(o);else{cn=!0;try{Ft(i,o)}finally{cn=!1,$n()}}}}function Bt(i,o,u){i==="focusin"?(rt(),oi=o,Ci=u,oi.attachEvent("onpropertychange",gt)):i==="focusout"&&rt()}function Kt(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return oo(Ci)}function Yt(i,o){if(i==="click")return oo(o)}function qt(i,o){if(i==="input"||i==="change")return oo(o)}function Se(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}var Zt=typeof Object.is=="function"?Object.is:Se,le=Object.prototype.hasOwnProperty;function ge(i,o){if(Zt(i,o))return!0;if(typeof i!="object"||i===null||typeof o!="object"||o===null)return!1;var u=Object.keys(i),g=Object.keys(o);if(u.length!==g.length)return!1;for(g=0;g<u.length;g++)if(!le.call(o,u[g])||!Zt(i[u[g]],o[u[g]]))return!1;return!0}function te(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Fe(i,o){var u=te(i);i=0;for(var g;u;){if(u.nodeType===3){if(g=i+u.textContent.length,i<=o&&g>=o)return{node:u,offset:o-i};i=g}t:{for(;u;){if(u.nextSibling){u=u.nextSibling;break t}u=u.parentNode}u=void 0}u=te(u)}}function In(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?In(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function Pn(){for(var i=window,o=yn();o instanceof i.HTMLIFrameElement;){try{var u=typeof o.contentWindow.location.href=="string"}catch{u=!1}if(u)i=o.contentWindow;else break;o=yn(i.document)}return o}function Fn(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}var Ba=p&&"documentMode"in document&&11>=document.documentMode,ba=null,Mn=null,os=null,yc=!1;function rp(i,o,u){var g=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;yc||ba==null||ba!==yn(g)||(g=ba,"selectionStart"in g&&Fn(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),os&&ge(os,g)||(os=g,g=Sl(Mn,"onSelect"),0<g.length&&(o=new q("onSelect","select",null,o,u),i.push({event:o,listeners:g}),o.target=ba)))}Xo("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Xo("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Xo(uc,2);for(var op="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),bc=0;bc<op.length;bc++)Zr.set(op[bc],0);f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),d("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),d("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),d("onBeforeInput",["compositionend","keypress","textInput","paste"]),d("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ss="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Wb=new Set("cancel close invalid load scroll toggle".split(" ").concat(ss));function sp(i,o,u){var g=i.type||"unknown-event";i.currentTarget=u,$a(g,o,void 0,i),i.currentTarget=null}function lp(i,o){o=(o&4)!==0;for(var u=0;u<i.length;u++){var g=i[u],b=g.event;g=g.listeners;t:{var C=void 0;if(o)for(var A=g.length-1;0<=A;A--){var z=g[A],W=z.instance,ct=z.currentTarget;if(z=z.listener,W!==C&&b.isPropagationStopped())break t;sp(b,z,ct),C=W}else for(A=0;A<g.length;A++){if(z=g[A],W=z.instance,ct=z.currentTarget,z=z.listener,W!==C&&b.isPropagationStopped())break t;sp(b,z,ct),C=W}}}if(fn)throw i=ca,fn=!1,ca=null,i}function en(i,o){var u=bp(o),g=i+"__bubble";u.has(g)||(fp(o,i,2,!1),u.add(g))}var up="_reactListening"+Math.random().toString(36).slice(2);function cp(i){i[up]||(i[up]=!0,r.forEach(function(o){Wb.has(o)||dp(o,!1,i,null),dp(o,!0,i,null)}))}function dp(i,o,u,g){var b=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,C=u;i==="selectionchange"&&u.nodeType!==9&&(C=u.ownerDocument);var A=bp(C),z=i+"__"+(o?"capture":"bubble");A.has(z)||(o&&(b|=4),fp(C,i,b,o),A.add(z))}function fp(i,o,u,g){var b=Zr.get(o);switch(b===void 0?2:b){case 0:b=xr;break;case 1:b=wl;break;default:b=Sr}u=b.bind(null,o,u,i),b=void 0,!ua||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(b=!0),g?b!==void 0?i.addEventListener(o,u,{capture:!0,passive:b}):i.addEventListener(o,u,!0):b!==void 0?i.addEventListener(o,u,{passive:b}):i.addEventListener(o,u,!1)}function hp(i,o,u,g,b){var C=g;if((o&1)===0&&(o&2)===0&&g!==null)t:for(;;){if(g===null)return;var A=g.tag;if(A===3||A===4){var z=g.stateNode.containerInfo;if(z===b||z.nodeType===8&&z.parentNode===b)break;if(A===4)for(A=g.return;A!==null;){var W=A.tag;if((W===3||W===4)&&(W=A.stateNode.containerInfo,W===b||W.nodeType===8&&W.parentNode===b))return;A=A.return}for(;z!==null;){if(A=Pr(z),A===null)return;if(W=A.tag,W===5||W===6){g=C=A;continue t}z=z.parentNode}}g=g.return}Jn(function(){var ct=C,$t=Ue(u),fe=[];t:{var Et=ml.get(i);if(Et!==void 0){var Jt=q,ce=i;switch(i){case"keypress":if(m(u)===0)break t;case"keydown":case"keyup":Jt=ii;break;case"focusin":ce="focus",Jt=pn;break;case"focusout":ce="blur",Jt=pn;break;case"beforeblur":case"afterblur":Jt=pn;break;case"click":if(u.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Jt=oe;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Jt=ye;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Jt=Wa;break;case Go:case Xr:case Uo:Jt=Aa;break;case Yo:Jt=gc;break;case"scroll":Jt=Z;break;case"wheel":Jt=qe;break;case"copy":case"cut":case"paste":Jt=xi;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Jt=to}var se=(o&4)!==0,et=!se&&i==="scroll",U=se?Et!==null?Et+"Capture":null:Et;se=[];for(var Q=ct,kt;Q!==null;){kt=Q;var Ct=kt.stateNode;if(kt.tag===5&&Ct!==null&&(kt=Ct,U!==null&&(Ct=la(Q,U),Ct!=null&&se.push(ls(Q,Ct,kt)))),et)break;Q=Q.return}0<se.length&&(Et=new Jt(Et,ce,null,u,$t),fe.push({event:Et,listeners:se}))}}if((o&7)===0){t:{if(Et=i==="mouseover"||i==="pointerover",Jt=i==="mouseout"||i==="pointerout",Et&&(o&16)===0&&(ce=u.relatedTarget||u.fromElement)&&(Pr(ce)||ce[uo]))break t;if((Jt||Et)&&(Et=$t.window===$t?$t:(Et=$t.ownerDocument)?Et.defaultView||Et.parentWindow:window,Jt?(ce=u.relatedTarget||u.toElement,Jt=ct,ce=ce?Pr(ce):null,ce!==null&&(et=Tn(ce),ce!==et||ce.tag!==5&&ce.tag!==6)&&(ce=null)):(Jt=null,ce=ct),Jt!==ce)){if(se=oe,Ct="onMouseLeave",U="onMouseEnter",Q="mouse",(i==="pointerout"||i==="pointerover")&&(se=to,Ct="onPointerLeave",U="onPointerEnter",Q="pointer"),et=Jt==null?Et:co(Jt),kt=ce==null?Et:co(ce),Et=new se(Ct,Q+"leave",Jt,u,$t),Et.target=et,Et.relatedTarget=kt,Ct=null,Pr($t)===ct&&(se=new se(U,Q+"enter",ce,u,$t),se.target=kt,se.relatedTarget=et,Ct=se),et=Ct,Jt&&ce)e:{for(se=Jt,U=ce,Q=0,kt=se;kt;kt=so(kt))Q++;for(kt=0,Ct=U;Ct;Ct=so(Ct))kt++;for(;0<Q-kt;)se=so(se),Q--;for(;0<kt-Q;)U=so(U),kt--;for(;Q--;){if(se===U||U!==null&&se===U.alternate)break e;se=so(se),U=so(U)}se=null}else se=null;Jt!==null&&pp(fe,Et,Jt,se,!1),ce!==null&&et!==null&&pp(fe,et,ce,se,!0)}}t:{if(Et=ct?co(ct):window,Jt=Et.nodeName&&Et.nodeName.toLowerCase(),Jt==="select"||Jt==="input"&&Et.type==="file")var he=is;else if(ro(Et))if(rs)he=qt;else{he=Kt;var Gt=Bt}else(Jt=Et.nodeName)&&Jt.toLowerCase()==="input"&&(Et.type==="checkbox"||Et.type==="radio")&&(he=Yt);if(he&&(he=he(i,ct))){xl(fe,he,u,$t);break t}Gt&&Gt(i,Et,ct),i==="focusout"&&(Gt=Et._wrapperState)&&Gt.controlled&&Et.type==="number"&&it(Et,"number",Et.value)}switch(Gt=ct?co(ct):window,i){case"focusin":(ro(Gt)||Gt.contentEditable==="true")&&(ba=Gt,Mn=ct,os=null);break;case"focusout":os=Mn=ba=null;break;case"mousedown":yc=!0;break;case"contextmenu":case"mouseup":case"dragend":yc=!1,rp(fe,u,$t);break;case"selectionchange":if(Ba)break;case"keydown":case"keyup":rp(fe,u,$t)}var pe;if(na)t:{switch(i){case"compositionstart":var Te="onCompositionStart";break t;case"compositionend":Te="onCompositionEnd";break t;case"compositionupdate":Te="onCompositionUpdate";break t}Te=void 0}else Si?no(i,u)&&(Te="onCompositionEnd"):i==="keydown"&&u.keyCode===229&&(Te="onCompositionStart");Te&&(kl&&u.locale!=="ko"&&(Si||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&Si&&(pe=h()):(ni=$t,ts="value"in ni?ni.value:ni.textContent,Si=!0)),Gt=Sl(ct,Te),0<Gt.length&&(Te=new tn(Te,i,null,u,$t),fe.push({event:Te,listeners:Gt}),pe?Te.data=pe:(pe=_a(u),pe!==null&&(Te.data=pe)))),(pe=vc?Er(i,u):ao(i,u))&&(ct=Sl(ct,"onBeforeInput"),0<ct.length&&($t=new tn("onBeforeInput","beforeinput",null,u,$t),fe.push({event:$t,listeners:ct}),$t.data=pe))}lp(fe,o)})}function ls(i,o,u){return{instance:i,listener:o,currentTarget:u}}function Sl(i,o){for(var u=o+"Capture",g=[];i!==null;){var b=i,C=b.stateNode;b.tag===5&&C!==null&&(b=C,C=la(i,u),C!=null&&g.unshift(ls(i,C,b)),C=la(i,o),C!=null&&g.push(ls(i,C,b))),i=i.return}return g}function so(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function pp(i,o,u,g,b){for(var C=o._reactName,A=[];u!==null&&u!==g;){var z=u,W=z.alternate,ct=z.stateNode;if(W!==null&&W===g)break;z.tag===5&&ct!==null&&(z=ct,b?(W=la(u,C),W!=null&&A.unshift(ls(u,W,z))):b||(W=la(u,C),W!=null&&A.push(ls(u,W,z)))),u=u.return}A.length!==0&&i.push({event:o,listeners:A})}function Cl(){}var wc=null,kc=null;function gp(i,o){switch(i){case"button":case"input":case"select":case"textarea":return!!o.autoFocus}return!1}function xc(i,o){return i==="textarea"||i==="option"||i==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var mp=typeof setTimeout=="function"?setTimeout:void 0,_b=typeof clearTimeout=="function"?clearTimeout:void 0;function Sc(i){i.nodeType===1?i.textContent="":i.nodeType===9&&(i=i.body,i!=null&&(i.textContent=""))}function lo(i){for(;i!=null;i=i.nextSibling){var o=i.nodeType;if(o===1||o===3)break}return i}function vp(i){i=i.previousSibling;for(var o=0;i;){if(i.nodeType===8){var u=i.data;if(u==="$"||u==="$!"||u==="$?"){if(o===0)return i;o--}else u==="/$"&&o++}i=i.previousSibling}return null}var Cc=0;function Vb(i){return{$$typeof:bt,toString:i,valueOf:i}}var Tl=Math.random().toString(36).slice(2),Ki="__reactFiber$"+Tl,El="__reactProps$"+Tl,uo="__reactContainer$"+Tl,yp="__reactEvents$"+Tl;function Pr(i){var o=i[Ki];if(o)return o;for(var u=i.parentNode;u;){if(o=u[uo]||u[Ki]){if(u=o.alternate,o.child!==null||u!==null&&u.child!==null)for(i=vp(i);i!==null;){if(u=i[Ki])return u;i=vp(i)}return o}i=u,u=i.parentNode}return null}function us(i){return i=i[Ki]||i[uo],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function co(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(a(33))}function Pl(i){return i[El]||null}function bp(i){var o=i[yp];return o===void 0&&(o=i[yp]=new Set),o}var Tc=[],fo=-1;function qi(i){return{current:i}}function nn(i){0>fo||(i.current=Tc[fo],Tc[fo]=null,fo--)}function mn(i,o){fo++,Tc[fo]=i.current,i.current=o}var $i={},Wn=qi($i),ga=qi(!1),Mr=$i;function ho(i,o){var u=i.type.contextTypes;if(!u)return $i;var g=i.stateNode;if(g&&g.__reactInternalMemoizedUnmaskedChildContext===o)return g.__reactInternalMemoizedMaskedChildContext;var b={},C;for(C in u)b[C]=o[C];return g&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=o,i.__reactInternalMemoizedMaskedChildContext=b),b}function ma(i){return i=i.childContextTypes,i!=null}function Ml(){nn(ga),nn(Wn)}function wp(i,o,u){if(Wn.current!==$i)throw Error(a(168));mn(Wn,o),mn(ga,u)}function kp(i,o,u){var g=i.stateNode;if(i=o.childContextTypes,typeof g.getChildContext!="function")return u;g=g.getChildContext();for(var b in g)if(!(b in i))throw Error(a(108,ln(o)||"Unknown",b));return t({},u,g)}function Al(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||$i,Mr=Wn.current,mn(Wn,i),mn(ga,ga.current),!0}function xp(i,o,u){var g=i.stateNode;if(!g)throw Error(a(169));u?(i=kp(i,o,Mr),g.__reactInternalMemoizedMergedChildContext=i,nn(ga),nn(Wn),mn(Wn,i)):nn(ga),mn(ga,u)}var Ec=null,Ar=null,Gb=n.unstable_runWithPriority,Pc=n.unstable_scheduleCallback,Mc=n.unstable_cancelCallback,Ub=n.unstable_shouldYield,Sp=n.unstable_requestPaint,Ac=n.unstable_now,Yb=n.unstable_getCurrentPriorityLevel,Nl=n.unstable_ImmediatePriority,Cp=n.unstable_UserBlockingPriority,Tp=n.unstable_NormalPriority,Ep=n.unstable_LowPriority,Pp=n.unstable_IdlePriority,Nc={},Xb=Sp!==void 0?Sp:function(){},Ti=null,Ll=null,Lc=!1,Mp=Ac(),_n=1e4>Mp?Ac:function(){return Ac()-Mp};function po(){switch(Yb()){case Nl:return 99;case Cp:return 98;case Tp:return 97;case Ep:return 96;case Pp:return 95;default:throw Error(a(332))}}function Ap(i){switch(i){case 99:return Nl;case 98:return Cp;case 97:return Tp;case 96:return Ep;case 95:return Pp;default:throw Error(a(332))}}function Nr(i,o){return i=Ap(i),Gb(i,o)}function cs(i,o,u){return i=Ap(i),Pc(i,o,u)}function si(){if(Ll!==null){var i=Ll;Ll=null,Mc(i)}Np()}function Np(){if(!Lc&&Ti!==null){Lc=!0;var i=0;try{var o=Ti;Nr(99,function(){for(;i<o.length;i++){var u=o[i];do u=u(!0);while(u!==null)}}),Ti=null}catch(u){throw Ti!==null&&(Ti=Ti.slice(i+1)),Pc(Nl,si),u}finally{Lc=!1}}}var Zb=_.ReactCurrentBatchConfig;function Va(i,o){if(i&&i.defaultProps){o=t({},o),i=i.defaultProps;for(var u in i)o[u]===void 0&&(o[u]=i[u]);return o}return o}var Bl=qi(null),zl=null,go=null,Il=null;function Bc(){Il=go=zl=null}function zc(i){var o=Bl.current;nn(Bl),i.type._context._currentValue=o}function Lp(i,o){for(;i!==null;){var u=i.alternate;if((i.childLanes&o)===o){if(u===null||(u.childLanes&o)===o)break;u.childLanes|=o}else i.childLanes|=o,u!==null&&(u.childLanes|=o);i=i.return}}function mo(i,o){zl=i,Il=go=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&o)!==0&&(Ga=!0),i.firstContext=null)}function za(i,o){if(Il!==i&&o!==!1&&o!==0)if((typeof o!="number"||o===1073741823)&&(Il=i,o=1073741823),o={context:i,observedBits:o,next:null},go===null){if(zl===null)throw Error(a(308));go=o,zl.dependencies={lanes:0,firstContext:o,responders:null}}else go=go.next=o;return i._currentValue}var Hi=!1;function Ic(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function Bp(i,o){i=i.updateQueue,o.updateQueue===i&&(o.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Fi(i,o){return{eventTime:i,lane:o,tag:0,payload:null,callback:null,next:null}}function Wi(i,o){if(i=i.updateQueue,i!==null){i=i.shared;var u=i.pending;u===null?o.next=o:(o.next=u.next,u.next=o),i.pending=o}}function zp(i,o){var u=i.updateQueue,g=i.alternate;if(g!==null&&(g=g.updateQueue,u===g)){var b=null,C=null;if(u=u.firstBaseUpdate,u!==null){do{var A={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};C===null?b=C=A:C=C.next=A,u=u.next}while(u!==null);C===null?b=C=o:C=C.next=o}else b=C=o;u={baseState:g.baseState,firstBaseUpdate:b,lastBaseUpdate:C,shared:g.shared,effects:g.effects},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=o:i.next=o,u.lastBaseUpdate=o}function ds(i,o,u,g){var b=i.updateQueue;Hi=!1;var C=b.firstBaseUpdate,A=b.lastBaseUpdate,z=b.shared.pending;if(z!==null){b.shared.pending=null;var W=z,ct=W.next;W.next=null,A===null?C=ct:A.next=ct,A=W;var $t=i.alternate;if($t!==null){$t=$t.updateQueue;var fe=$t.lastBaseUpdate;fe!==A&&(fe===null?$t.firstBaseUpdate=ct:fe.next=ct,$t.lastBaseUpdate=W)}}if(C!==null){fe=b.baseState,A=0,$t=ct=W=null;do{z=C.lane;var Et=C.eventTime;if((g&z)===z){$t!==null&&($t=$t.next={eventTime:Et,lane:0,tag:C.tag,payload:C.payload,callback:C.callback,next:null});t:{var Jt=i,ce=C;switch(z=o,Et=u,ce.tag){case 1:if(Jt=ce.payload,typeof Jt=="function"){fe=Jt.call(Et,fe,z);break t}fe=Jt;break t;case 3:Jt.flags=Jt.flags&-4097|64;case 0:if(Jt=ce.payload,z=typeof Jt=="function"?Jt.call(Et,fe,z):Jt,z==null)break t;fe=t({},fe,z);break t;case 2:Hi=!0}}C.callback!==null&&(i.flags|=32,z=b.effects,z===null?b.effects=[C]:z.push(C))}else Et={eventTime:Et,lane:z,tag:C.tag,payload:C.payload,callback:C.callback,next:null},$t===null?(ct=$t=Et,W=fe):$t=$t.next=Et,A|=z;if(C=C.next,C===null){if(z=b.shared.pending,z===null)break;C=z.next,z.next=null,b.lastBaseUpdate=z,b.shared.pending=null}}while(!0);$t===null&&(W=fe),b.baseState=W,b.firstBaseUpdate=ct,b.lastBaseUpdate=$t,Ss|=A,i.lanes=A,i.memoizedState=fe}}function Ip(i,o,u){if(i=o.effects,o.effects=null,i!==null)for(o=0;o<i.length;o++){var g=i[o],b=g.callback;if(b!==null){if(g.callback=null,g=u,typeof b!="function")throw Error(a(191,b));b.call(g)}}}var Dp=new e.Component().refs;function Dl(i,o,u,g){o=i.memoizedState,u=u(g,o),u=u==null?o:t({},o,u),i.memoizedState=u,i.lanes===0&&(i.updateQueue.baseState=u)}var Rl={isMounted:function(i){return(i=i._reactInternals)?Tn(i)===i:!1},enqueueSetState:function(i,o,u){i=i._reactInternals;var g=wa(),b=Gi(i),C=Fi(g,b);C.payload=o,u!=null&&(C.callback=u),Wi(i,C),Ui(i,b,g)},enqueueReplaceState:function(i,o,u){i=i._reactInternals;var g=wa(),b=Gi(i),C=Fi(g,b);C.tag=1,C.payload=o,u!=null&&(C.callback=u),Wi(i,C),Ui(i,b,g)},enqueueForceUpdate:function(i,o){i=i._reactInternals;var u=wa(),g=Gi(i),b=Fi(u,g);b.tag=2,o!=null&&(b.callback=o),Wi(i,b),Ui(i,g,u)}};function Rp(i,o,u,g,b,C,A){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(g,C,A):o.prototype&&o.prototype.isPureReactComponent?!ge(u,g)||!ge(b,C):!0}function jp(i,o,u){var g=!1,b=$i,C=o.contextType;return typeof C=="object"&&C!==null?C=za(C):(b=ma(o)?Mr:Wn.current,g=o.contextTypes,C=(g=g!=null)?ho(i,b):$i),o=new o(u,C),i.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Rl,i.stateNode=o,o._reactInternals=i,g&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=b,i.__reactInternalMemoizedMaskedChildContext=C),o}function Op(i,o,u,g){i=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(u,g),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(u,g),o.state!==i&&Rl.enqueueReplaceState(o,o.state,null)}function Dc(i,o,u,g){var b=i.stateNode;b.props=u,b.state=i.memoizedState,b.refs=Dp,Ic(i);var C=o.contextType;typeof C=="object"&&C!==null?b.context=za(C):(C=ma(o)?Mr:Wn.current,b.context=ho(i,C)),ds(i,u,b,g),b.state=i.memoizedState,C=o.getDerivedStateFromProps,typeof C=="function"&&(Dl(i,o,C,u),b.state=i.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(o=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),o!==b.state&&Rl.enqueueReplaceState(b,b.state,null),ds(i,u,b,g),b.state=i.memoizedState),typeof b.componentDidMount=="function"&&(i.flags|=4)}var jl=Array.isArray;function fs(i,o,u){if(i=u.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(u._owner){if(u=u._owner,u){if(u.tag!==1)throw Error(a(309));var g=u.stateNode}if(!g)throw Error(a(147,i));var b=""+i;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===b?o.ref:(o=function(C){var A=g.refs;A===Dp&&(A=g.refs={}),C===null?delete A[b]:A[b]=C},o._stringRef=b,o)}if(typeof i!="string")throw Error(a(284));if(!u._owner)throw Error(a(290,i))}return i}function Ol(i,o){if(i.type!=="textarea")throw Error(a(31,Object.prototype.toString.call(o)==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":o))}function Kp(i){function o(et,U){if(i){var Q=et.lastEffect;Q!==null?(Q.nextEffect=U,et.lastEffect=U):et.firstEffect=et.lastEffect=U,U.nextEffect=null,U.flags=8}}function u(et,U){if(!i)return null;for(;U!==null;)o(et,U),U=U.sibling;return null}function g(et,U){for(et=new Map;U!==null;)U.key!==null?et.set(U.key,U):et.set(U.index,U),U=U.sibling;return et}function b(et,U){return et=Zi(et,U),et.index=0,et.sibling=null,et}function C(et,U,Q){return et.index=Q,i?(Q=et.alternate,Q!==null?(Q=Q.index,Q<U?(et.flags=2,U):Q):(et.flags=2,U)):U}function A(et){return i&&et.alternate===null&&(et.flags=2),et}function z(et,U,Q,kt){return U===null||U.tag!==6?(U=vd(Q,et.mode,kt),U.return=et,U):(U=b(U,Q),U.return=et,U)}function W(et,U,Q,kt){return U!==null&&U.elementType===Q.type?(kt=b(U,Q.props),kt.ref=fs(et,U,Q),kt.return=et,kt):(kt=nu(Q.type,Q.key,Q.props,null,et.mode,kt),kt.ref=fs(et,U,Q),kt.return=et,kt)}function ct(et,U,Q,kt){return U===null||U.tag!==4||U.stateNode.containerInfo!==Q.containerInfo||U.stateNode.implementation!==Q.implementation?(U=yd(Q,et.mode,kt),U.return=et,U):(U=b(U,Q.children||[]),U.return=et,U)}function $t(et,U,Q,kt,Ct){return U===null||U.tag!==7?(U=Co(Q,et.mode,kt,Ct),U.return=et,U):(U=b(U,Q),U.return=et,U)}function fe(et,U,Q){if(typeof U=="string"||typeof U=="number")return U=vd(""+U,et.mode,Q),U.return=et,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case $:return Q=nu(U.type,U.key,U.props,null,et.mode,Q),Q.ref=fs(et,null,U),Q.return=et,Q;case v:return U=yd(U,et.mode,Q),U.return=et,U}if(jl(U)||Mt(U))return U=Co(U,et.mode,Q,null),U.return=et,U;Ol(et,U)}return null}function Et(et,U,Q,kt){var Ct=U!==null?U.key:null;if(typeof Q=="string"||typeof Q=="number")return Ct!==null?null:z(et,U,""+Q,kt);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case $:return Q.key===Ct?Q.type===mt?$t(et,U,Q.props.children,kt,Ct):W(et,U,Q,kt):null;case v:return Q.key===Ct?ct(et,U,Q,kt):null}if(jl(Q)||Mt(Q))return Ct!==null?null:$t(et,U,Q,kt,null);Ol(et,Q)}return null}function Jt(et,U,Q,kt,Ct){if(typeof kt=="string"||typeof kt=="number")return et=et.get(Q)||null,z(U,et,""+kt,Ct);if(typeof kt=="object"&&kt!==null){switch(kt.$$typeof){case $:return et=et.get(kt.key===null?Q:kt.key)||null,kt.type===mt?$t(U,et,kt.props.children,Ct,kt.key):W(U,et,kt,Ct);case v:return et=et.get(kt.key===null?Q:kt.key)||null,ct(U,et,kt,Ct)}if(jl(kt)||Mt(kt))return et=et.get(Q)||null,$t(U,et,kt,Ct,null);Ol(U,kt)}return null}function ce(et,U,Q,kt){for(var Ct=null,he=null,Gt=U,pe=U=0,Te=null;Gt!==null&&pe<Q.length;pe++){Gt.index>pe?(Te=Gt,Gt=null):Te=Gt.sibling;var be=Et(et,Gt,Q[pe],kt);if(be===null){Gt===null&&(Gt=Te);break}i&&Gt&&be.alternate===null&&o(et,Gt),U=C(be,U,pe),he===null?Ct=be:he.sibling=be,he=be,Gt=Te}if(pe===Q.length)return u(et,Gt),Ct;if(Gt===null){for(;pe<Q.length;pe++)Gt=fe(et,Q[pe],kt),Gt!==null&&(U=C(Gt,U,pe),he===null?Ct=Gt:he.sibling=Gt,he=Gt);return Ct}for(Gt=g(et,Gt);pe<Q.length;pe++)Te=Jt(Gt,et,pe,Q[pe],kt),Te!==null&&(i&&Te.alternate!==null&&Gt.delete(Te.key===null?pe:Te.key),U=C(Te,U,pe),he===null?Ct=Te:he.sibling=Te,he=Te);return i&&Gt.forEach(function(Ji){return o(et,Ji)}),Ct}function se(et,U,Q,kt){var Ct=Mt(Q);if(typeof Ct!="function")throw Error(a(150));if(Q=Ct.call(Q),Q==null)throw Error(a(151));for(var he=Ct=null,Gt=U,pe=U=0,Te=null,be=Q.next();Gt!==null&&!be.done;pe++,be=Q.next()){Gt.index>pe?(Te=Gt,Gt=null):Te=Gt.sibling;var Ji=Et(et,Gt,be.value,kt);if(Ji===null){Gt===null&&(Gt=Te);break}i&&Gt&&Ji.alternate===null&&o(et,Gt),U=C(Ji,U,pe),he===null?Ct=Ji:he.sibling=Ji,he=Ji,Gt=Te}if(be.done)return u(et,Gt),Ct;if(Gt===null){for(;!be.done;pe++,be=Q.next())be=fe(et,be.value,kt),be!==null&&(U=C(be,U,pe),he===null?Ct=be:he.sibling=be,he=be);return Ct}for(Gt=g(et,Gt);!be.done;pe++,be=Q.next())be=Jt(Gt,et,pe,be.value,kt),be!==null&&(i&&be.alternate!==null&&Gt.delete(be.key===null?pe:be.key),U=C(be,U,pe),he===null?Ct=be:he.sibling=be,he=be);return i&&Gt.forEach(function(Mw){return o(et,Mw)}),Ct}return function(et,U,Q,kt){var Ct=typeof Q=="object"&&Q!==null&&Q.type===mt&&Q.key===null;Ct&&(Q=Q.props.children);var he=typeof Q=="object"&&Q!==null;if(he)switch(Q.$$typeof){case $:t:{for(he=Q.key,Ct=U;Ct!==null;){if(Ct.key===he){switch(Ct.tag){case 7:if(Q.type===mt){u(et,Ct.sibling),U=b(Ct,Q.props.children),U.return=et,et=U;break t}break;default:if(Ct.elementType===Q.type){u(et,Ct.sibling),U=b(Ct,Q.props),U.ref=fs(et,Ct,Q),U.return=et,et=U;break t}}u(et,Ct);break}else o(et,Ct);Ct=Ct.sibling}Q.type===mt?(U=Co(Q.props.children,et.mode,kt,Q.key),U.return=et,et=U):(kt=nu(Q.type,Q.key,Q.props,null,et.mode,kt),kt.ref=fs(et,U,Q),kt.return=et,et=kt)}return A(et);case v:t:{for(Ct=Q.key;U!==null;){if(U.key===Ct)if(U.tag===4&&U.stateNode.containerInfo===Q.containerInfo&&U.stateNode.implementation===Q.implementation){u(et,U.sibling),U=b(U,Q.children||[]),U.return=et,et=U;break t}else{u(et,U);break}else o(et,U);U=U.sibling}U=yd(Q,et.mode,kt),U.return=et,et=U}return A(et)}if(typeof Q=="string"||typeof Q=="number")return Q=""+Q,U!==null&&U.tag===6?(u(et,U.sibling),U=b(U,Q),U.return=et,et=U):(u(et,U),U=vd(Q,et.mode,kt),U.return=et,et=U),A(et);if(jl(Q))return ce(et,U,Q,kt);if(Mt(Q))return se(et,U,Q,kt);if(he&&Ol(et,Q),typeof Q>"u"&&!Ct)switch(et.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,ln(et.type)||"Component"))}return u(et,U)}}var Kl=Kp(!0),qp=Kp(!1),hs={},li=qi(hs),ps=qi(hs),gs=qi(hs);function Lr(i){if(i===hs)throw Error(a(174));return i}function Rc(i,o){switch(mn(gs,o),mn(ps,i),mn(li,hs),i=o.nodeType,i){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:Ze(null,"");break;default:i=i===8?o.parentNode:o,o=i.namespaceURI||null,i=i.tagName,o=Ze(o,i)}nn(li),mn(li,o)}function vo(){nn(li),nn(ps),nn(gs)}function $p(i){Lr(gs.current);var o=Lr(li.current),u=Ze(o,i.type);o!==u&&(mn(ps,i),mn(li,u))}function jc(i){ps.current===i&&(nn(li),nn(ps))}var vn=qi(0);function ql(i){for(var o=i;o!==null;){if(o.tag===13){var u=o.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||u.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&64)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Ei=null,_i=null,ui=!1;function Hp(i,o){var u=Ra(5,null,null,0);u.elementType="DELETED",u.type="DELETED",u.stateNode=o,u.return=i,u.flags=8,i.lastEffect!==null?(i.lastEffect.nextEffect=u,i.lastEffect=u):i.firstEffect=i.lastEffect=u}function Fp(i,o){switch(i.tag){case 5:var u=i.type;return o=o.nodeType!==1||u.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(i.stateNode=o,!0):!1;case 6:return o=i.pendingProps===""||o.nodeType!==3?null:o,o!==null?(i.stateNode=o,!0):!1;case 13:return!1;default:return!1}}function Oc(i){if(ui){var o=_i;if(o){var u=o;if(!Fp(i,o)){if(o=lo(u.nextSibling),!o||!Fp(i,o)){i.flags=i.flags&-1025|2,ui=!1,Ei=i;return}Hp(Ei,u)}Ei=i,_i=lo(o.firstChild)}else i.flags=i.flags&-1025|2,ui=!1,Ei=i}}function Wp(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;Ei=i}function $l(i){if(i!==Ei)return!1;if(!ui)return Wp(i),ui=!0,!1;var o=i.type;if(i.tag!==5||o!=="head"&&o!=="body"&&!xc(o,i.memoizedProps))for(o=_i;o;)Hp(i,o),o=lo(o.nextSibling);if(Wp(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(a(317));t:{for(i=i.nextSibling,o=0;i;){if(i.nodeType===8){var u=i.data;if(u==="/$"){if(o===0){_i=lo(i.nextSibling);break t}o--}else u!=="$"&&u!=="$!"&&u!=="$?"||o++}i=i.nextSibling}_i=null}}else _i=Ei?lo(i.stateNode.nextSibling):null;return!0}function Kc(){_i=Ei=null,ui=!1}var yo=[];function qc(){for(var i=0;i<yo.length;i++)yo[i]._workInProgressVersionPrimary=null;yo.length=0}var ms=_.ReactCurrentDispatcher,Ia=_.ReactCurrentBatchConfig,vs=0,bn=null,Vn=null,Dn=null,Hl=!1,ys=!1;function va(){throw Error(a(321))}function $c(i,o){if(o===null)return!1;for(var u=0;u<o.length&&u<i.length;u++)if(!Zt(i[u],o[u]))return!1;return!0}function Hc(i,o,u,g,b,C){if(vs=C,bn=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,ms.current=i===null||i.memoizedState===null?Qb:tw,i=u(g,b),ys){C=0;do{if(ys=!1,!(25>C))throw Error(a(301));C+=1,Dn=Vn=null,o.updateQueue=null,ms.current=ew,i=u(g,b)}while(ys)}if(ms.current=Vl,o=Vn!==null&&Vn.next!==null,vs=0,Dn=Vn=bn=null,Hl=!1,o)throw Error(a(300));return i}function Br(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dn===null?bn.memoizedState=Dn=i:Dn=Dn.next=i,Dn}function zr(){if(Vn===null){var i=bn.alternate;i=i!==null?i.memoizedState:null}else i=Vn.next;var o=Dn===null?bn.memoizedState:Dn.next;if(o!==null)Dn=o,Vn=i;else{if(i===null)throw Error(a(310));Vn=i,i={memoizedState:Vn.memoizedState,baseState:Vn.baseState,baseQueue:Vn.baseQueue,queue:Vn.queue,next:null},Dn===null?bn.memoizedState=Dn=i:Dn=Dn.next=i}return Dn}function ci(i,o){return typeof o=="function"?o(i):o}function bs(i){var o=zr(),u=o.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=i;var g=Vn,b=g.baseQueue,C=u.pending;if(C!==null){if(b!==null){var A=b.next;b.next=C.next,C.next=A}g.baseQueue=b=C,u.pending=null}if(b!==null){b=b.next,g=g.baseState;var z=A=C=null,W=b;do{var ct=W.lane;if((vs&ct)===ct)z!==null&&(z=z.next={lane:0,action:W.action,eagerReducer:W.eagerReducer,eagerState:W.eagerState,next:null}),g=W.eagerReducer===i?W.eagerState:i(g,W.action);else{var $t={lane:ct,action:W.action,eagerReducer:W.eagerReducer,eagerState:W.eagerState,next:null};z===null?(A=z=$t,C=g):z=z.next=$t,bn.lanes|=ct,Ss|=ct}W=W.next}while(W!==null&&W!==b);z===null?C=g:z.next=A,Zt(g,o.memoizedState)||(Ga=!0),o.memoizedState=g,o.baseState=C,o.baseQueue=z,u.lastRenderedState=g}return[o.memoizedState,u.dispatch]}function ws(i){var o=zr(),u=o.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=i;var g=u.dispatch,b=u.pending,C=o.memoizedState;if(b!==null){u.pending=null;var A=b=b.next;do C=i(C,A.action),A=A.next;while(A!==b);Zt(C,o.memoizedState)||(Ga=!0),o.memoizedState=C,o.baseQueue===null&&(o.baseState=C),u.lastRenderedState=C}return[C,g]}function _p(i,o,u){var g=o._getVersion;g=g(o._source);var b=o._workInProgressVersionPrimary;if(b!==null?i=b===g:(i=i.mutableReadLanes,(i=(vs&i)===i)&&(o._workInProgressVersionPrimary=g,yo.push(o))),i)return u(o._source);throw yo.push(o),Error(a(350))}function Vp(i,o,u,g){var b=aa;if(b===null)throw Error(a(349));var C=o._getVersion,A=C(o._source),z=ms.current,W=z.useState(function(){return _p(b,o,u)}),ct=W[1],$t=W[0];W=Dn;var fe=i.memoizedState,Et=fe.refs,Jt=Et.getSnapshot,ce=fe.source;fe=fe.subscribe;var se=bn;return i.memoizedState={refs:Et,source:o,subscribe:g},z.useEffect(function(){Et.getSnapshot=u,Et.setSnapshot=ct;var et=C(o._source);if(!Zt(A,et)){et=u(o._source),Zt($t,et)||(ct(et),et=Gi(se),b.mutableReadLanes|=et&b.pendingLanes),et=b.mutableReadLanes,b.entangledLanes|=et;for(var U=b.entanglements,Q=et;0<Q;){var kt=31-Pa(Q),Ct=1<<kt;U[kt]|=et,Q&=~Ct}}},[u,o,g]),z.useEffect(function(){return g(o._source,function(){var et=Et.getSnapshot,U=Et.setSnapshot;try{U(et(o._source));var Q=Gi(se);b.mutableReadLanes|=Q&b.pendingLanes}catch(kt){U(function(){throw kt})}})},[o,g]),Zt(Jt,u)&&Zt(ce,o)&&Zt(fe,g)||(i={pending:null,dispatch:null,lastRenderedReducer:ci,lastRenderedState:$t},i.dispatch=ct=Vc.bind(null,bn,i),W.queue=i,W.baseQueue=null,$t=_p(b,o,u),W.memoizedState=W.baseState=$t),$t}function Gp(i,o,u){var g=zr();return Vp(g,i,o,u)}function ks(i){var o=Br();return typeof i=="function"&&(i=i()),o.memoizedState=o.baseState=i,i=o.queue={pending:null,dispatch:null,lastRenderedReducer:ci,lastRenderedState:i},i=i.dispatch=Vc.bind(null,bn,i),[o.memoizedState,i]}function Fl(i,o,u,g){return i={tag:i,create:o,destroy:u,deps:g,next:null},o=bn.updateQueue,o===null?(o={lastEffect:null},bn.updateQueue=o,o.lastEffect=i.next=i):(u=o.lastEffect,u===null?o.lastEffect=i.next=i:(g=u.next,u.next=i,i.next=g,o.lastEffect=i)),i}function Up(i){var o=Br();return i={current:i},o.memoizedState=i}function Wl(){return zr().memoizedState}function Fc(i,o,u,g){var b=Br();bn.flags|=i,b.memoizedState=Fl(1|o,u,void 0,g===void 0?null:g)}function Wc(i,o,u,g){var b=zr();g=g===void 0?null:g;var C=void 0;if(Vn!==null){var A=Vn.memoizedState;if(C=A.destroy,g!==null&&$c(g,A.deps)){Fl(o,u,C,g);return}}bn.flags|=i,b.memoizedState=Fl(1|o,u,C,g)}function Yp(i,o){return Fc(516,4,i,o)}function _l(i,o){return Wc(516,4,i,o)}function Xp(i,o){return Wc(4,2,i,o)}function Zp(i,o){if(typeof o=="function")return i=i(),o(i),function(){o(null)};if(o!=null)return i=i(),o.current=i,function(){o.current=null}}function Jp(i,o,u){return u=u!=null?u.concat([i]):null,Wc(4,2,Zp.bind(null,o,i),u)}function _c(){}function Qp(i,o){var u=zr();o=o===void 0?null:o;var g=u.memoizedState;return g!==null&&o!==null&&$c(o,g[1])?g[0]:(u.memoizedState=[i,o],i)}function tg(i,o){var u=zr();o=o===void 0?null:o;var g=u.memoizedState;return g!==null&&o!==null&&$c(o,g[1])?g[0]:(i=i(),u.memoizedState=[i,o],i)}function Jb(i,o){var u=po();Nr(98>u?98:u,function(){i(!0)}),Nr(97<u?97:u,function(){var g=Ia.transition;Ia.transition=1;try{i(!1),o()}finally{Ia.transition=g}})}function Vc(i,o,u){var g=wa(),b=Gi(i),C={lane:b,action:u,eagerReducer:null,eagerState:null,next:null},A=o.pending;if(A===null?C.next=C:(C.next=A.next,A.next=C),o.pending=C,A=i.alternate,i===bn||A!==null&&A===bn)ys=Hl=!0;else{if(i.lanes===0&&(A===null||A.lanes===0)&&(A=o.lastRenderedReducer,A!==null))try{var z=o.lastRenderedState,W=A(z,u);if(C.eagerReducer=A,C.eagerState=W,Zt(W,z))return}catch{}Ui(i,b,g)}}var Vl={readContext:za,useCallback:va,useContext:va,useEffect:va,useImperativeHandle:va,useLayoutEffect:va,useMemo:va,useReducer:va,useRef:va,useState:va,useDebugValue:va,useDeferredValue:va,useTransition:va,useMutableSource:va,useOpaqueIdentifier:va,unstable_isNewReconciler:!1},Qb={readContext:za,useCallback:function(i,o){return Br().memoizedState=[i,o===void 0?null:o],i},useContext:za,useEffect:Yp,useImperativeHandle:function(i,o,u){return u=u!=null?u.concat([i]):null,Fc(4,2,Zp.bind(null,o,i),u)},useLayoutEffect:function(i,o){return Fc(4,2,i,o)},useMemo:function(i,o){var u=Br();return o=o===void 0?null:o,i=i(),u.memoizedState=[i,o],i},useReducer:function(i,o,u){var g=Br();return o=u!==void 0?u(o):o,g.memoizedState=g.baseState=o,i=g.queue={pending:null,dispatch:null,lastRenderedReducer:i,lastRenderedState:o},i=i.dispatch=Vc.bind(null,bn,i),[g.memoizedState,i]},useRef:Up,useState:ks,useDebugValue:_c,useDeferredValue:function(i){var o=ks(i),u=o[0],g=o[1];return Yp(function(){var b=Ia.transition;Ia.transition=1;try{g(i)}finally{Ia.transition=b}},[i]),u},useTransition:function(){var i=ks(!1),o=i[0];return i=Jb.bind(null,i[1]),Up(i),[i,o]},useMutableSource:function(i,o,u){var g=Br();return g.memoizedState={refs:{getSnapshot:o,setSnapshot:null},source:i,subscribe:u},Vp(g,i,o,u)},useOpaqueIdentifier:function(){if(ui){var i=!1,o=Vb(function(){throw i||(i=!0,u("r:"+(Cc++).toString(36))),Error(a(355))}),u=ks(o)[1];return(bn.mode&2)===0&&(bn.flags|=516,Fl(5,function(){u("r:"+(Cc++).toString(36))},void 0,null)),o}return o="r:"+(Cc++).toString(36),ks(o),o},unstable_isNewReconciler:!1},tw={readContext:za,useCallback:Qp,useContext:za,useEffect:_l,useImperativeHandle:Jp,useLayoutEffect:Xp,useMemo:tg,useReducer:bs,useRef:Wl,useState:function(){return bs(ci)},useDebugValue:_c,useDeferredValue:function(i){var o=bs(ci),u=o[0],g=o[1];return _l(function(){var b=Ia.transition;Ia.transition=1;try{g(i)}finally{Ia.transition=b}},[i]),u},useTransition:function(){var i=bs(ci)[0];return[Wl().current,i]},useMutableSource:Gp,useOpaqueIdentifier:function(){return bs(ci)[0]},unstable_isNewReconciler:!1},ew={readContext:za,useCallback:Qp,useContext:za,useEffect:_l,useImperativeHandle:Jp,useLayoutEffect:Xp,useMemo:tg,useReducer:ws,useRef:Wl,useState:function(){return ws(ci)},useDebugValue:_c,useDeferredValue:function(i){var o=ws(ci),u=o[0],g=o[1];return _l(function(){var b=Ia.transition;Ia.transition=1;try{g(i)}finally{Ia.transition=b}},[i]),u},useTransition:function(){var i=ws(ci)[0];return[Wl().current,i]},useMutableSource:Gp,useOpaqueIdentifier:function(){return ws(ci)[0]},unstable_isNewReconciler:!1},nw=_.ReactCurrentOwner,Ga=!1;function ya(i,o,u,g){o.child=i===null?qp(o,null,u,g):Kl(o,i.child,u,g)}function eg(i,o,u,g,b){u=u.render;var C=o.ref;return mo(o,b),g=Hc(i,o,u,g,C,b),i!==null&&!Ga?(o.updateQueue=i.updateQueue,o.flags&=-517,i.lanes&=~b,Pi(i,o,b)):(o.flags|=1,ya(i,o,g,b),o.child)}function ng(i,o,u,g,b,C){if(i===null){var A=u.type;return typeof A=="function"&&!gd(A)&&A.defaultProps===void 0&&u.compare===null&&u.defaultProps===void 0?(o.tag=15,o.type=A,ag(i,o,A,g,b,C)):(i=nu(u.type,null,g,o,o.mode,C),i.ref=o.ref,i.return=o,o.child=i)}return A=i.child,(b&C)===0&&(b=A.memoizedProps,u=u.compare,u=u!==null?u:ge,u(b,g)&&i.ref===o.ref)?Pi(i,o,C):(o.flags|=1,i=Zi(A,g),i.ref=o.ref,i.return=o,o.child=i)}function ag(i,o,u,g,b,C){if(i!==null&&ge(i.memoizedProps,g)&&i.ref===o.ref)if(Ga=!1,(C&b)!==0)(i.flags&16384)!==0&&(Ga=!0);else return o.lanes=i.lanes,Pi(i,o,C);return Uc(i,o,u,g,C)}function Gc(i,o,u){var g=o.pendingProps,b=g.children,C=i!==null?i.memoizedState:null;if(g.mode==="hidden"||g.mode==="unstable-defer-without-hiding")if((o.mode&4)===0)o.memoizedState={baseLanes:0},eu(o,u);else if((u&1073741824)!==0)o.memoizedState={baseLanes:0},eu(o,C!==null?C.baseLanes:u);else return i=C!==null?C.baseLanes|u:u,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:i},eu(o,i),null;else C!==null?(g=C.baseLanes|u,o.memoizedState=null):g=u,eu(o,g);return ya(i,o,b,u),o.child}function ig(i,o){var u=o.ref;(i===null&&u!==null||i!==null&&i.ref!==u)&&(o.flags|=128)}function Uc(i,o,u,g,b){var C=ma(u)?Mr:Wn.current;return C=ho(o,C),mo(o,b),u=Hc(i,o,u,g,C,b),i!==null&&!Ga?(o.updateQueue=i.updateQueue,o.flags&=-517,i.lanes&=~b,Pi(i,o,b)):(o.flags|=1,ya(i,o,u,b),o.child)}function rg(i,o,u,g,b){if(ma(u)){var C=!0;Al(o)}else C=!1;if(mo(o,b),o.stateNode===null)i!==null&&(i.alternate=null,o.alternate=null,o.flags|=2),jp(o,u,g),Dc(o,u,g,b),g=!0;else if(i===null){var A=o.stateNode,z=o.memoizedProps;A.props=z;var W=A.context,ct=u.contextType;typeof ct=="object"&&ct!==null?ct=za(ct):(ct=ma(u)?Mr:Wn.current,ct=ho(o,ct));var $t=u.getDerivedStateFromProps,fe=typeof $t=="function"||typeof A.getSnapshotBeforeUpdate=="function";fe||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(z!==g||W!==ct)&&Op(o,A,g,ct),Hi=!1;var Et=o.memoizedState;A.state=Et,ds(o,g,A,b),W=o.memoizedState,z!==g||Et!==W||ga.current||Hi?(typeof $t=="function"&&(Dl(o,u,$t,g),W=o.memoizedState),(z=Hi||Rp(o,u,z,g,Et,W,ct))?(fe||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount()),typeof A.componentDidMount=="function"&&(o.flags|=4)):(typeof A.componentDidMount=="function"&&(o.flags|=4),o.memoizedProps=g,o.memoizedState=W),A.props=g,A.state=W,A.context=ct,g=z):(typeof A.componentDidMount=="function"&&(o.flags|=4),g=!1)}else{A=o.stateNode,Bp(i,o),z=o.memoizedProps,ct=o.type===o.elementType?z:Va(o.type,z),A.props=ct,fe=o.pendingProps,Et=A.context,W=u.contextType,typeof W=="object"&&W!==null?W=za(W):(W=ma(u)?Mr:Wn.current,W=ho(o,W));var Jt=u.getDerivedStateFromProps;($t=typeof Jt=="function"||typeof A.getSnapshotBeforeUpdate=="function")||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(z!==fe||Et!==W)&&Op(o,A,g,W),Hi=!1,Et=o.memoizedState,A.state=Et,ds(o,g,A,b);var ce=o.memoizedState;z!==fe||Et!==ce||ga.current||Hi?(typeof Jt=="function"&&(Dl(o,u,Jt,g),ce=o.memoizedState),(ct=Hi||Rp(o,u,ct,g,Et,ce,W))?($t||typeof A.UNSAFE_componentWillUpdate!="function"&&typeof A.componentWillUpdate!="function"||(typeof A.componentWillUpdate=="function"&&A.componentWillUpdate(g,ce,W),typeof A.UNSAFE_componentWillUpdate=="function"&&A.UNSAFE_componentWillUpdate(g,ce,W)),typeof A.componentDidUpdate=="function"&&(o.flags|=4),typeof A.getSnapshotBeforeUpdate=="function"&&(o.flags|=256)):(typeof A.componentDidUpdate!="function"||z===i.memoizedProps&&Et===i.memoizedState||(o.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||z===i.memoizedProps&&Et===i.memoizedState||(o.flags|=256),o.memoizedProps=g,o.memoizedState=ce),A.props=g,A.state=ce,A.context=W,g=ct):(typeof A.componentDidUpdate!="function"||z===i.memoizedProps&&Et===i.memoizedState||(o.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||z===i.memoizedProps&&Et===i.memoizedState||(o.flags|=256),g=!1)}return Yc(i,o,u,g,C,b)}function Yc(i,o,u,g,b,C){ig(i,o);var A=(o.flags&64)!==0;if(!g&&!A)return b&&xp(o,u,!1),Pi(i,o,C);g=o.stateNode,nw.current=o;var z=A&&typeof u.getDerivedStateFromError!="function"?null:g.render();return o.flags|=1,i!==null&&A?(o.child=Kl(o,i.child,null,C),o.child=Kl(o,null,z,C)):ya(i,o,z,C),o.memoizedState=g.state,b&&xp(o,u,!0),o.child}function og(i){var o=i.stateNode;o.pendingContext?wp(i,o.pendingContext,o.pendingContext!==o.context):o.context&&wp(i,o.context,!1),Rc(i,o.containerInfo)}var Gl={dehydrated:null,retryLane:0};function sg(i,o,u){var g=o.pendingProps,b=vn.current,C=!1,A;return(A=(o.flags&64)!==0)||(A=i!==null&&i.memoizedState===null?!1:(b&2)!==0),A?(C=!0,o.flags&=-65):i!==null&&i.memoizedState===null||g.fallback===void 0||g.unstable_avoidThisFallback===!0||(b|=1),mn(vn,b&1),i===null?(g.fallback!==void 0&&Oc(o),i=g.children,b=g.fallback,C?(i=lg(o,i,b,u),o.child.memoizedState={baseLanes:u},o.memoizedState=Gl,i):typeof g.unstable_expectedLoadTime=="number"?(i=lg(o,i,b,u),o.child.memoizedState={baseLanes:u},o.memoizedState=Gl,o.lanes=33554432,i):(u=md({mode:"visible",children:i},o.mode,u,null),u.return=o,o.child=u)):i.memoizedState!==null?C?(g=cg(i,o,g.children,g.fallback,u),C=o.child,b=i.child.memoizedState,C.memoizedState=b===null?{baseLanes:u}:{baseLanes:b.baseLanes|u},C.childLanes=i.childLanes&~u,o.memoizedState=Gl,g):(u=ug(i,o,g.children,u),o.memoizedState=null,u):C?(g=cg(i,o,g.children,g.fallback,u),C=o.child,b=i.child.memoizedState,C.memoizedState=b===null?{baseLanes:u}:{baseLanes:b.baseLanes|u},C.childLanes=i.childLanes&~u,o.memoizedState=Gl,g):(u=ug(i,o,g.children,u),o.memoizedState=null,u)}function lg(i,o,u,g){var b=i.mode,C=i.child;return o={mode:"hidden",children:o},(b&2)===0&&C!==null?(C.childLanes=0,C.pendingProps=o):C=md(o,b,0,null),u=Co(u,b,g,null),C.return=i,u.return=i,C.sibling=u,i.child=C,u}function ug(i,o,u,g){var b=i.child;return i=b.sibling,u=Zi(b,{mode:"visible",children:u}),(o.mode&2)===0&&(u.lanes=g),u.return=o,u.sibling=null,i!==null&&(i.nextEffect=null,i.flags=8,o.firstEffect=o.lastEffect=i),o.child=u}function cg(i,o,u,g,b){var C=o.mode,A=i.child;i=A.sibling;var z={mode:"hidden",children:u};return(C&2)===0&&o.child!==A?(u=o.child,u.childLanes=0,u.pendingProps=z,A=u.lastEffect,A!==null?(o.firstEffect=u.firstEffect,o.lastEffect=A,A.nextEffect=null):o.firstEffect=o.lastEffect=null):u=Zi(A,z),i!==null?g=Zi(i,g):(g=Co(g,C,b,null),g.flags|=2),g.return=o,u.return=o,u.sibling=g,o.child=u,g}function dg(i,o){i.lanes|=o;var u=i.alternate;u!==null&&(u.lanes|=o),Lp(i.return,o)}function Xc(i,o,u,g,b,C){var A=i.memoizedState;A===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:g,tail:u,tailMode:b,lastEffect:C}:(A.isBackwards=o,A.rendering=null,A.renderingStartTime=0,A.last=g,A.tail=u,A.tailMode=b,A.lastEffect=C)}function fg(i,o,u){var g=o.pendingProps,b=g.revealOrder,C=g.tail;if(ya(i,o,g.children,u),g=vn.current,(g&2)!==0)g=g&1|2,o.flags|=64;else{if(i!==null&&(i.flags&64)!==0)t:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&dg(i,u);else if(i.tag===19)dg(i,u);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break t;for(;i.sibling===null;){if(i.return===null||i.return===o)break t;i=i.return}i.sibling.return=i.return,i=i.sibling}g&=1}if(mn(vn,g),(o.mode&2)===0)o.memoizedState=null;else switch(b){case"forwards":for(u=o.child,b=null;u!==null;)i=u.alternate,i!==null&&ql(i)===null&&(b=u),u=u.sibling;u=b,u===null?(b=o.child,o.child=null):(b=u.sibling,u.sibling=null),Xc(o,!1,b,u,C,o.lastEffect);break;case"backwards":for(u=null,b=o.child,o.child=null;b!==null;){if(i=b.alternate,i!==null&&ql(i)===null){o.child=b;break}i=b.sibling,b.sibling=u,u=b,b=i}Xc(o,!0,u,null,C,o.lastEffect);break;case"together":Xc(o,!1,null,null,void 0,o.lastEffect);break;default:o.memoizedState=null}return o.child}function Pi(i,o,u){if(i!==null&&(o.dependencies=i.dependencies),Ss|=o.lanes,(u&o.childLanes)!==0){if(i!==null&&o.child!==i.child)throw Error(a(153));if(o.child!==null){for(i=o.child,u=Zi(i,i.pendingProps),o.child=u,u.return=o;i.sibling!==null;)i=i.sibling,u=u.sibling=Zi(i,i.pendingProps),u.return=o;u.sibling=null}return o.child}return null}var hg,Zc,pg,gg;hg=function(i,o){for(var u=o.child;u!==null;){if(u.tag===5||u.tag===6)i.appendChild(u.stateNode);else if(u.tag!==4&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===o)break;for(;u.sibling===null;){if(u.return===null||u.return===o)return;u=u.return}u.sibling.return=u.return,u=u.sibling}},Zc=function(){},pg=function(i,o,u,g){var b=i.memoizedProps;if(b!==g){i=o.stateNode,Lr(li.current);var C=null;switch(u){case"input":b=Je(i,b),g=Je(i,g),C=[];break;case"option":b=st(i,b),g=st(i,g),C=[];break;case"select":b=t({},b,{value:void 0}),g=t({},g,{value:void 0}),C=[];break;case"textarea":b=Me(i,b),g=Me(i,g),C=[];break;default:typeof b.onClick!="function"&&typeof g.onClick=="function"&&(i.onclick=Cl)}$e(u,g);var A;u=null;for(ct in b)if(!g.hasOwnProperty(ct)&&b.hasOwnProperty(ct)&&b[ct]!=null)if(ct==="style"){var z=b[ct];for(A in z)z.hasOwnProperty(A)&&(u||(u={}),u[A]="")}else ct!=="dangerouslySetInnerHTML"&&ct!=="children"&&ct!=="suppressContentEditableWarning"&&ct!=="suppressHydrationWarning"&&ct!=="autoFocus"&&(l.hasOwnProperty(ct)?C||(C=[]):(C=C||[]).push(ct,null));for(ct in g){var W=g[ct];if(z=b?.[ct],g.hasOwnProperty(ct)&&W!==z&&(W!=null||z!=null))if(ct==="style")if(z){for(A in z)!z.hasOwnProperty(A)||W&&W.hasOwnProperty(A)||(u||(u={}),u[A]="");for(A in W)W.hasOwnProperty(A)&&z[A]!==W[A]&&(u||(u={}),u[A]=W[A])}else u||(C||(C=[]),C.push(ct,u)),u=W;else ct==="dangerouslySetInnerHTML"?(W=W?W.__html:void 0,z=z?z.__html:void 0,W!=null&&z!==W&&(C=C||[]).push(ct,W)):ct==="children"?typeof W!="string"&&typeof W!="number"||(C=C||[]).push(ct,""+W):ct!=="suppressContentEditableWarning"&&ct!=="suppressHydrationWarning"&&(l.hasOwnProperty(ct)?(W!=null&&ct==="onScroll"&&en("scroll",i),C||z===W||(C=[])):typeof W=="object"&&W!==null&&W.$$typeof===bt?W.toString():(C=C||[]).push(ct,W))}u&&(C=C||[]).push("style",u);var ct=C;(o.updateQueue=ct)&&(o.flags|=4)}},gg=function(i,o,u,g){u!==g&&(o.flags|=4)};function xs(i,o){if(!ui)switch(i.tailMode){case"hidden":o=i.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var g=null;u!==null;)u.alternate!==null&&(g=u),u=u.sibling;g===null?o||i.tail===null?i.tail=null:i.tail.sibling=null:g.sibling=null}}function aw(i,o,u){var g=o.pendingProps;switch(o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return ma(o.type)&&Ml(),null;case 3:return vo(),nn(ga),nn(Wn),qc(),g=o.stateNode,g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(i===null||i.child===null)&&($l(o)?o.flags|=4:g.hydrate||(o.flags|=256)),Zc(o),null;case 5:jc(o);var b=Lr(gs.current);if(u=o.type,i!==null&&o.stateNode!=null)pg(i,o,u,g,b),i.ref!==o.ref&&(o.flags|=128);else{if(!g){if(o.stateNode===null)throw Error(a(166));return null}if(i=Lr(li.current),$l(o)){g=o.stateNode,u=o.type;var C=o.memoizedProps;switch(g[Ki]=o,g[El]=C,u){case"dialog":en("cancel",g),en("close",g);break;case"iframe":case"object":case"embed":en("load",g);break;case"video":case"audio":for(i=0;i<ss.length;i++)en(ss[i],g);break;case"source":en("error",g);break;case"img":case"image":case"link":en("error",g),en("load",g);break;case"details":en("toggle",g);break;case"input":un(g,C),en("invalid",g);break;case"select":g._wrapperState={wasMultiple:!!C.multiple},en("invalid",g);break;case"textarea":Re(g,C),en("invalid",g)}$e(u,C),i=null;for(var A in C)C.hasOwnProperty(A)&&(b=C[A],A==="children"?typeof b=="string"?g.textContent!==b&&(i=["children",b]):typeof b=="number"&&g.textContent!==""+b&&(i=["children",""+b]):l.hasOwnProperty(A)&&b!=null&&A==="onScroll"&&en("scroll",g));switch(u){case"input":kn(g),Y(g,C,!0);break;case"textarea":kn(g),Xe(g);break;case"select":case"option":break;default:typeof C.onClick=="function"&&(g.onclick=Cl)}g=i,o.updateQueue=g,g!==null&&(o.flags|=4)}else{switch(A=b.nodeType===9?b:b.ownerDocument,i===Qe.html&&(i=Kn(u)),i===Qe.html?u==="script"?(i=A.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof g.is=="string"?i=A.createElement(u,{is:g.is}):(i=A.createElement(u),u==="select"&&(A=i,g.multiple?A.multiple=!0:g.size&&(A.size=g.size))):i=A.createElementNS(i,u),i[Ki]=o,i[El]=g,hg(i,o,!1,!1),o.stateNode=i,A=Ge(u,g),u){case"dialog":en("cancel",i),en("close",i),b=g;break;case"iframe":case"object":case"embed":en("load",i),b=g;break;case"video":case"audio":for(b=0;b<ss.length;b++)en(ss[b],i);b=g;break;case"source":en("error",i),b=g;break;case"img":case"image":case"link":en("error",i),en("load",i),b=g;break;case"details":en("toggle",i),b=g;break;case"input":un(i,g),b=Je(i,g),en("invalid",i);break;case"option":b=st(i,g);break;case"select":i._wrapperState={wasMultiple:!!g.multiple},b=t({},g,{value:void 0}),en("invalid",i);break;case"textarea":Re(i,g),b=Me(i,g),en("invalid",i);break;default:b=g}$e(u,b);var z=b;for(C in z)if(z.hasOwnProperty(C)){var W=z[C];C==="style"?Ut(i,W):C==="dangerouslySetInnerHTML"?(W=W?W.__html:void 0,W!=null&&Bn(i,W)):C==="children"?typeof W=="string"?(u!=="textarea"||W!=="")&&qn(i,W):typeof W=="number"&&qn(i,""+W):C!=="suppressContentEditableWarning"&&C!=="suppressHydrationWarning"&&C!=="autoFocus"&&(l.hasOwnProperty(C)?W!=null&&C==="onScroll"&&en("scroll",i):W!=null&&dt(i,C,W,A))}switch(u){case"input":kn(i),Y(i,g,!1);break;case"textarea":kn(i),Xe(i);break;case"option":g.value!=null&&i.setAttribute("value",""+Oe(g.value));break;case"select":i.multiple=!!g.multiple,C=g.value,C!=null?Xt(i,!!g.multiple,C,!1):g.defaultValue!=null&&Xt(i,!!g.multiple,g.defaultValue,!0);break;default:typeof b.onClick=="function"&&(i.onclick=Cl)}gp(u,g)&&(o.flags|=4)}o.ref!==null&&(o.flags|=128)}return null;case 6:if(i&&o.stateNode!=null)gg(i,o,i.memoizedProps,g);else{if(typeof g!="string"&&o.stateNode===null)throw Error(a(166));u=Lr(gs.current),Lr(li.current),$l(o)?(g=o.stateNode,u=o.memoizedProps,g[Ki]=o,g.nodeValue!==u&&(o.flags|=4)):(g=(u.nodeType===9?u:u.ownerDocument).createTextNode(g),g[Ki]=o,o.stateNode=g)}return null;case 13:return nn(vn),g=o.memoizedState,(o.flags&64)!==0?(o.lanes=u,o):(g=g!==null,u=!1,i===null?o.memoizedProps.fallback!==void 0&&$l(o):u=i.memoizedState!==null,g&&!u&&(o.mode&2)!==0&&(i===null&&o.memoizedProps.unstable_avoidThisFallback!==!0||(vn.current&1)!==0?Rn===0&&(Rn=3):((Rn===0||Rn===3)&&(Rn=4),aa===null||(Ss&134217727)===0&&(wo&134217727)===0||xo(aa,Gn))),(g||u)&&(o.flags|=4),null);case 4:return vo(),Zc(o),i===null&&cp(o.stateNode.containerInfo),null;case 10:return zc(o),null;case 17:return ma(o.type)&&Ml(),null;case 19:if(nn(vn),g=o.memoizedState,g===null)return null;if(C=(o.flags&64)!==0,A=g.rendering,A===null)if(C)xs(g,!1);else{if(Rn!==0||i!==null&&(i.flags&64)!==0)for(i=o.child;i!==null;){if(A=ql(i),A!==null){for(o.flags|=64,xs(g,!1),C=A.updateQueue,C!==null&&(o.updateQueue=C,o.flags|=4),g.lastEffect===null&&(o.firstEffect=null),o.lastEffect=g.lastEffect,g=u,u=o.child;u!==null;)C=u,i=g,C.flags&=2,C.nextEffect=null,C.firstEffect=null,C.lastEffect=null,A=C.alternate,A===null?(C.childLanes=0,C.lanes=i,C.child=null,C.memoizedProps=null,C.memoizedState=null,C.updateQueue=null,C.dependencies=null,C.stateNode=null):(C.childLanes=A.childLanes,C.lanes=A.lanes,C.child=A.child,C.memoizedProps=A.memoizedProps,C.memoizedState=A.memoizedState,C.updateQueue=A.updateQueue,C.type=A.type,i=A.dependencies,C.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),u=u.sibling;return mn(vn,vn.current&1|2),o.child}i=i.sibling}g.tail!==null&&_n()>ld&&(o.flags|=64,C=!0,xs(g,!1),o.lanes=33554432)}else{if(!C)if(i=ql(A),i!==null){if(o.flags|=64,C=!0,u=i.updateQueue,u!==null&&(o.updateQueue=u,o.flags|=4),xs(g,!0),g.tail===null&&g.tailMode==="hidden"&&!A.alternate&&!ui)return o=o.lastEffect=g.lastEffect,o!==null&&(o.nextEffect=null),null}else 2*_n()-g.renderingStartTime>ld&&u!==1073741824&&(o.flags|=64,C=!0,xs(g,!1),o.lanes=33554432);g.isBackwards?(A.sibling=o.child,o.child=A):(u=g.last,u!==null?u.sibling=A:o.child=A,g.last=A)}return g.tail!==null?(u=g.tail,g.rendering=u,g.tail=u.sibling,g.lastEffect=o.lastEffect,g.renderingStartTime=_n(),u.sibling=null,o=vn.current,mn(vn,C?o&1|2:o&1),u):null;case 23:case 24:return pd(),i!==null&&i.memoizedState!==null!=(o.memoizedState!==null)&&g.mode!=="unstable-defer-without-hiding"&&(o.flags|=4),null}throw Error(a(156,o.tag))}function iw(i){switch(i.tag){case 1:ma(i.type)&&Ml();var o=i.flags;return o&4096?(i.flags=o&-4097|64,i):null;case 3:if(vo(),nn(ga),nn(Wn),qc(),o=i.flags,(o&64)!==0)throw Error(a(285));return i.flags=o&-4097|64,i;case 5:return jc(i),null;case 13:return nn(vn),o=i.flags,o&4096?(i.flags=o&-4097|64,i):null;case 19:return nn(vn),null;case 4:return vo(),null;case 10:return zc(i),null;case 23:case 24:return pd(),null;default:return null}}function Jc(i,o){try{var u="",g=o;do u+=Pe(g),g=g.return;while(g);var b=u}catch(C){b=`
|
|
7878
|
+
`+b[A].replace(" at new "," at ");while(1<=A&&0<=z);break}}}finally{de=!1,Error.prepareStackTrace=u}return(i=i?i.displayName||i.name:"")?Qt(i):""}function Pe(i){switch(i.tag){case 5:return Qt(i.type);case 16:return Qt("Lazy");case 13:return Qt("Suspense");case 19:return Qt("SuspenseList");case 0:case 2:case 15:return i=me(i.type,!1),i;case 11:return i=me(i.type.render,!1),i;case 22:return i=me(i.type._render,!1),i;case 1:return i=me(i.type,!0),i;default:return""}}function ln(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case mt:return"Fragment";case v:return"Portal";case Lt:return"Profiler";case ft:return"StrictMode";case H:return"Suspense";case s:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case At:return(i.displayName||"Context")+".Consumer";case Nt:return(i._context.displayName||"Context")+".Provider";case tt:var o=i.render;return o=o.displayName||o.name||"",i.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case ht:return ln(i.type);case lt:return ln(i._render);case x:o=i._payload,i=i._init;try{return ln(i(o))}catch{}}return null}function Oe(i){switch(typeof i){case"boolean":case"number":case"object":case"string":case"undefined":return i;default:return""}}function rn(i){var o=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Ve(i){var o=rn(i)?"checked":"value",u=Object.getOwnPropertyDescriptor(i.constructor.prototype,o),g=""+i[o];if(!i.hasOwnProperty(o)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var b=u.get,C=u.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return b.call(this)},set:function(A){g=""+A,C.call(this,A)}}),Object.defineProperty(i,o,{enumerable:u.enumerable}),{getValue:function(){return g},setValue:function(A){g=""+A},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function kn(i){i._valueTracker||(i._valueTracker=Ve(i))}function Ye(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var u=o.getValue(),g="";return i&&(g=rn(i)?i.checked?"true":"false":i.value),i=g,i!==u?(o.setValue(i),!0):!1}function yn(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function Je(i,o){var u=o.checked;return t({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:u??i._wrapperState.initialChecked})}function un(i,o){var u=o.defaultValue==null?"":o.defaultValue,g=o.checked!=null?o.checked:o.defaultChecked;u=Oe(o.value!=null?o.value:u),i._wrapperState={initialChecked:g,initialValue:u,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function M(i,o){o=o.checked,o!=null&&dt(i,"checked",o,!1)}function D(i,o){M(i,o);var u=Oe(o.value),g=o.type;if(u!=null)g==="number"?(u===0&&i.value===""||i.value!=u)&&(i.value=""+u):i.value!==""+u&&(i.value=""+u);else if(g==="submit"||g==="reset"){i.removeAttribute("value");return}o.hasOwnProperty("value")?it(i,o.type,u):o.hasOwnProperty("defaultValue")&&it(i,o.type,Oe(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(i.defaultChecked=!!o.defaultChecked)}function Y(i,o,u){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var g=o.type;if(!(g!=="submit"&&g!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+i._wrapperState.initialValue,u||o===i.value||(i.value=o),i.defaultValue=o}u=i.name,u!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,u!==""&&(i.name=u)}function it(i,o,u){(o!=="number"||yn(i.ownerDocument)!==i)&&(u==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+u&&(i.defaultValue=""+u))}function vt(i){var o="";return e.Children.forEach(i,function(u){u!=null&&(o+=u)}),o}function st(i,o){return i=t({children:void 0},o),(o=vt(o.children))&&(i.children=o),i}function Xt(i,o,u,g){if(i=i.options,o){o={};for(var b=0;b<u.length;b++)o["$"+u[b]]=!0;for(u=0;u<i.length;u++)b=o.hasOwnProperty("$"+i[u].value),i[u].selected!==b&&(i[u].selected=b),b&&g&&(i[u].defaultSelected=!0)}else{for(u=""+Oe(u),o=null,b=0;b<i.length;b++){if(i[b].value===u){i[b].selected=!0,g&&(i[b].defaultSelected=!0);return}o!==null||i[b].disabled||(o=i[b])}o!==null&&(o.selected=!0)}}function Me(i,o){if(o.dangerouslySetInnerHTML!=null)throw Error(a(91));return t({},o,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function Re(i,o){var u=o.value;if(u==null){if(u=o.children,o=o.defaultValue,u!=null){if(o!=null)throw Error(a(92));if(Array.isArray(u)){if(!(1>=u.length))throw Error(a(93));u=u[0]}o=u}o==null&&(o=""),u=o}i._wrapperState={initialValue:Oe(u)}}function ee(i,o){var u=Oe(o.value),g=Oe(o.defaultValue);u!=null&&(u=""+u,u!==i.value&&(i.value=u),o.defaultValue==null&&i.defaultValue!==u&&(i.defaultValue=u)),g!=null&&(i.defaultValue=""+g)}function Xe(i){var o=i.textContent;o===i._wrapperState.initialValue&&o!==""&&o!==null&&(i.value=o)}var Qe={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function Kn(i){switch(i){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ze(i,o){return i==null||i==="http://www.w3.org/1999/xhtml"?Kn(o):i==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var xn,Bn=(function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,u,g,b){MSApp.execUnsafeLocalFunction(function(){return i(o,u,g,b)})}:i})(function(i,o){if(i.namespaceURI!==Qe.svg||"innerHTML"in i)i.innerHTML=o;else{for(xn=xn||document.createElement("div"),xn.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=xn.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;o.firstChild;)i.appendChild(o.firstChild)}});function qn(i,o){if(o){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=o;return}}i.textContent=o}var Vt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Nn=["Webkit","ms","Moz","O"];Object.keys(Vt).forEach(function(i){Nn.forEach(function(o){o=o+i.charAt(0).toUpperCase()+i.substring(1),Vt[o]=Vt[i]})});function X(i,o,u){return o==null||typeof o=="boolean"||o===""?"":u||typeof o!="number"||o===0||Vt.hasOwnProperty(i)&&Vt[i]?(""+o).trim():o+"px"}function Ut(i,o){i=i.style;for(var u in o)if(o.hasOwnProperty(u)){var g=u.indexOf("--")===0,b=X(u,o[u],g);u==="float"&&(u="cssFloat"),g?i.setProperty(u,b):i[u]=b}}var ie=t({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $e(i,o){if(o){if(ie[i]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(a(137,i));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(a(60));if(!(typeof o.dangerouslySetInnerHTML=="object"&&"__html"in o.dangerouslySetInnerHTML))throw Error(a(61))}if(o.style!=null&&typeof o.style!="object")throw Error(a(62))}}function Ge(i,o){if(i.indexOf("-")===-1)return typeof o.is=="string";switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ue(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var ke=null,Pt=null,ne=null;function xe(i){if(i=us(i)){if(typeof ke!="function")throw Error(a(280));var o=i.stateNode;o&&(o=Pl(o),ke(i.stateNode,i.type,o))}}function ve(i){Pt?ne?ne.push(i):ne=[i]:Pt=i}function zt(){if(Pt){var i=Pt,o=ne;if(ne=Pt=null,xe(i),o)for(i=0;i<o.length;i++)xe(o[i])}}function Ft(i,o){return i(o)}function re(i,o,u,g,b){return i(o,u,g,b)}function Le(){}var Ae=Ft,cn=!1,je=!1;function $n(){(Pt!==null||ne!==null)&&(Le(),zt())}function Jn(i,o,u){if(je)return i(o,u);je=!0;try{return Ae(i,o,u)}finally{je=!1,$n()}}function la(i,o){var u=i.stateNode;if(u===null)return null;var g=Pl(u);if(g===null)return null;u=g[o];t:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(i=i.type,g=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!g;break t;default:i=!1}if(i)return null;if(u&&typeof u!="function")throw Error(a(231,o,typeof u));return u}var ua=!1;if(p)try{var Qn={};Object.defineProperty(Qn,"passive",{get:function(){ua=!0}}),window.addEventListener("test",Qn,Qn),window.removeEventListener("test",Qn,Qn)}catch{ua=!1}function ur(i,o,u,g,b,C,A,z,W){var ct=Array.prototype.slice.call(arguments,3);try{o.apply(u,ct)}catch($t){this.onError($t)}}var Sn=!1,dn=null,fn=!1,ca=null,zn={onError:function(i){Sn=!0,dn=i}};function wi(i,o,u,g,b,C,A,z,W){Sn=!1,dn=null,ur.apply(zn,arguments)}function qa(i,o,u,g,b,C,A,z,W){if(wi.apply(this,arguments),Sn){if(Sn){var ct=dn;Sn=!1,dn=null}else throw Error(a(198));fn||(fn=!0,ca=ct)}}function Tn(i){var o=i,u=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,(o.flags&1026)!==0&&(u=o.return),i=o.return;while(i)}return o.tag===3?u:null}function cr(i){if(i.tag===13){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function dr(i){if(Tn(i)!==i)throw Error(a(188))}function _r(i){var o=i.alternate;if(!o){if(o=Tn(i),o===null)throw Error(a(188));return o!==i?null:i}for(var u=i,g=o;;){var b=u.return;if(b===null)break;var C=b.alternate;if(C===null){if(g=b.return,g!==null){u=g;continue}break}if(b.child===C.child){for(C=b.child;C;){if(C===u)return dr(b),i;if(C===g)return dr(b),o;C=C.sibling}throw Error(a(188))}if(u.return!==g.return)u=b,g=C;else{for(var A=!1,z=b.child;z;){if(z===u){A=!0,u=b,g=C;break}if(z===g){A=!0,g=b,u=C;break}z=z.sibling}if(!A){for(z=C.child;z;){if(z===u){A=!0,u=C,g=b;break}if(z===g){A=!0,g=C,u=b;break}z=z.sibling}if(!A)throw Error(a(189))}}if(u.alternate!==g)throw Error(a(190))}if(u.tag!==3)throw Error(a(188));return u.stateNode.current===u?i:o}function Vr(i){if(i=_r(i),!i)return null;for(var o=i;;){if(o.tag===5||o.tag===6)return o;if(o.child)o.child.return=o,o=o.child;else{if(o===i)break;for(;!o.sibling;){if(!o.return||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}}return null}function Ri(i,o){for(var u=i.alternate;o!==null;){if(o===i||o===u)return!0;o=o.return}return!1}var ta,Ca,fr,_o,Gr=!1,da=[],$a=null,hn=null,ea=null,Qa=new Map,hr=new Map,pr=[],Ur="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Yr(i,o,u,g,b){return{blockedOn:i,domEventName:o,eventSystemFlags:u|16,nativeEvent:b,targetContainers:[g]}}function gr(i,o){switch(i){case"focusin":case"focusout":$a=null;break;case"dragenter":case"dragleave":hn=null;break;case"mouseover":case"mouseout":ea=null;break;case"pointerover":case"pointerout":Qa.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":hr.delete(o.pointerId)}}function ji(i,o,u,g,b,C){return i===null||i.nativeEvent!==C?(i=Yr(o,u,g,b,C),o!==null&&(o=us(o),o!==null&&Ca(o)),i):(i.eventSystemFlags|=g,o=i.targetContainers,b!==null&&o.indexOf(b)===-1&&o.push(b),i)}function sc(i,o,u,g,b){switch(o){case"focusin":return $a=ji($a,i,o,u,g,b),!0;case"dragenter":return hn=ji(hn,i,o,u,g,b),!0;case"mouseover":return ea=ji(ea,i,o,u,g,b),!0;case"pointerover":var C=b.pointerId;return Qa.set(C,ji(Qa.get(C)||null,i,o,u,g,b)),!0;case"gotpointercapture":return C=b.pointerId,hr.set(C,ji(hr.get(C)||null,i,o,u,g,b)),!0}return!1}function lc(i){var o=Pr(i.target);if(o!==null){var u=Tn(o);if(u!==null){if(o=u.tag,o===13){if(o=cr(u),o!==null){i.blockedOn=o,_o(i.lanePriority,function(){n.unstable_runWithPriority(i.priority,function(){fr(u)})});return}}else if(o===3&&u.stateNode.hydrate){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Hn(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var u=Qo(i.domEventName,i.eventSystemFlags,o[0],i.nativeEvent);if(u!==null)return o=us(u),o!==null&&Ca(o),i.blockedOn=u,!1;o.shift()}return!0}function Vo(i,o,u){Hn(i)&&u.delete(o)}function mr(){for(Gr=!1;0<da.length;){var i=da[0];if(i.blockedOn!==null){i=us(i.blockedOn),i!==null&&ta(i);break}for(var o=i.targetContainers;0<o.length;){var u=Qo(i.domEventName,i.eventSystemFlags,o[0],i.nativeEvent);if(u!==null){i.blockedOn=u;break}o.shift()}i.blockedOn===null&&da.shift()}$a!==null&&Hn($a)&&($a=null),hn!==null&&Hn(hn)&&(hn=null),ea!==null&&Hn(ea)&&(ea=null),Qa.forEach(Vo),hr.forEach(Vo)}function vr(i,o){i.blockedOn===o&&(i.blockedOn=null,Gr||(Gr=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,mr)))}function pl(i){function o(b){return vr(b,i)}if(0<da.length){vr(da[0],i);for(var u=1;u<da.length;u++){var g=da[u];g.blockedOn===i&&(g.blockedOn=null)}}for($a!==null&&vr($a,i),hn!==null&&vr(hn,i),ea!==null&&vr(ea,i),Qa.forEach(o),hr.forEach(o),u=0;u<pr.length;u++)g=pr[u],g.blockedOn===i&&(g.blockedOn=null);for(;0<pr.length&&(u=pr[0],u.blockedOn===null);)lc(u),u.blockedOn===null&&pr.shift()}function Ta(i,o){var u={};return u[i.toLowerCase()]=o.toLowerCase(),u["Webkit"+i]="webkit"+o,u["Moz"+i]="moz"+o,u}var fa={animationend:Ta("Animation","AnimationEnd"),animationiteration:Ta("Animation","AnimationIteration"),animationstart:Ta("Animation","AnimationStart"),transitionend:Ta("Transition","TransitionEnd")},yr={},gl={};p&&(gl=document.createElement("div").style,"AnimationEvent"in window||(delete fa.animationend.animation,delete fa.animationiteration.animation,delete fa.animationstart.animation),"TransitionEvent"in window||delete fa.transitionend.transition);function ti(i){if(yr[i])return yr[i];if(!fa[i])return i;var o=fa[i],u;for(u in o)if(o.hasOwnProperty(u)&&u in gl)return yr[i]=o[u];return i}var Go=ti("animationend"),Xr=ti("animationiteration"),Uo=ti("animationstart"),Yo=ti("transitionend"),ml=new Map,Zr=new Map,uc=["abort","abort",Go,"animationEnd",Xr,"animationIteration",Uo,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Yo,"transitionEnd","waiting","waiting"];function Xo(i,o){for(var u=0;u<i.length;u+=2){var g=i[u],b=i[u+1];b="on"+(b[0].toUpperCase()+b.slice(1)),Zr.set(g,o),ml.set(g,b),d(b,[g])}}var Zo=n.unstable_now;Zo();var _e=8;function Oi(i){if((1&i)!==0)return _e=15,1;if((2&i)!==0)return _e=14,2;if((4&i)!==0)return _e=13,4;var o=24&i;return o!==0?(_e=12,o):(i&32)!==0?(_e=11,32):(o=192&i,o!==0?(_e=10,o):(i&256)!==0?(_e=9,256):(o=3584&i,o!==0?(_e=8,o):(i&4096)!==0?(_e=7,4096):(o=4186112&i,o!==0?(_e=6,o):(o=62914560&i,o!==0?(_e=5,o):i&67108864?(_e=4,67108864):(i&134217728)!==0?(_e=3,134217728):(o=805306368&i,o!==0?(_e=2,o):(1073741824&i)!==0?(_e=1,1073741824):(_e=8,i))))))}function cc(i){switch(i){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function dc(i){switch(i){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,i))}}function br(i,o){var u=i.pendingLanes;if(u===0)return _e=0;var g=0,b=0,C=i.expiredLanes,A=i.suspendedLanes,z=i.pingedLanes;if(C!==0)g=C,b=_e=15;else if(C=u&134217727,C!==0){var W=C&~A;W!==0?(g=Oi(W),b=_e):(z&=C,z!==0&&(g=Oi(z),b=_e))}else C=u&~A,C!==0?(g=Oi(C),b=_e):z!==0&&(g=Oi(z),b=_e);if(g===0)return 0;if(g=31-Ea(g),g=u&((0>g?0:1<<g)<<1)-1,o!==0&&o!==g&&(o&A)===0){if(Oi(o),b<=_e)return o;_e=b}if(o=i.entangledLanes,o!==0)for(i=i.entanglements,o&=g;0<o;)u=31-Ea(o),b=1<<u,g|=i[u],o&=~b;return g}function vl(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function Jr(i,o){switch(i){case 15:return 1;case 14:return 2;case 12:return i=ki(24&~o),i===0?Jr(10,o):i;case 10:return i=ki(192&~o),i===0?Jr(8,o):i;case 8:return i=ki(3584&~o),i===0&&(i=ki(4186112&~o),i===0&&(i=512)),i;case 2:return o=ki(805306368&~o),o===0&&(o=268435456),o}throw Error(a(358,i))}function ki(i){return i&-i}function wr(i){for(var o=[],u=0;31>u;u++)o.push(i);return o}function kr(i,o,u){i.pendingLanes|=o;var g=o-1;i.suspendedLanes&=g,i.pingedLanes&=g,i=i.eventTimes,o=31-Ea(o),i[o]=u}var Ea=Math.clz32?Math.clz32:Jo,yl=Math.log,bl=Math.LN2;function Jo(i){return i===0?32:31-(yl(i)/bl|0)|0}var fc=n.unstable_UserBlockingPriority,hc=n.unstable_runWithPriority,Qr=!0;function xr(i,o,u,g){cn||Le();var b=Sr,C=cn;cn=!0;try{re(b,i,o,u,g)}finally{(cn=C)||$n()}}function wl(i,o,u,g){hc(fc,Sr.bind(null,i,o,u,g))}function Sr(i,o,u,g){if(Qr){var b;if((b=(o&4)===0)&&0<da.length&&-1<Ur.indexOf(i))i=Yr(null,i,o,u,g),da.push(i);else{var C=Qo(i,o,u,g);if(C===null)b&&gr(i,g);else{if(b){if(-1<Ur.indexOf(i)){i=Yr(C,i,o,u,g),da.push(i);return}if(sc(C,i,o,u,g))return;gr(i,g)}hp(i,o,g,null,u)}}}}function Qo(i,o,u,g){var b=Ue(g);if(b=Pr(b),b!==null){var C=Tn(b);if(C===null)b=null;else{var A=C.tag;if(A===13){if(b=cr(C),b!==null)return b;b=null}else if(A===3){if(C.stateNode.hydrate)return C.tag===3?C.stateNode.containerInfo:null;b=null}else C!==b&&(b=null)}}return hp(i,o,g,b,u),null}var ei=null,ts=null,c=null;function h(){if(c)return c;var i,o=ts,u=o.length,g,b="value"in ei?ei.value:ei.textContent,C=b.length;for(i=0;i<u&&o[i]===b[i];i++);var A=u-i;for(g=1;g<=A&&o[u-g]===b[C-g];g++);return c=b.slice(i,1<g?1-g:void 0)}function m(i){var o=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&o===13&&(i=13)):i=o,i===10&&(i=13),32<=i||i===13?i:0}function w(){return!0}function T(){return!1}function S(i){function o(u,g,b,C,A){this._reactName=u,this._targetInst=b,this.type=g,this.nativeEvent=C,this.target=A,this.currentTarget=null;for(var z in i)i.hasOwnProperty(z)&&(u=i[z],this[z]=u?u(C):C[z]);return this.isDefaultPrevented=(C.defaultPrevented!=null?C.defaultPrevented:C.returnValue===!1)?w:T,this.isPropagationStopped=T,this}return t(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=w)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=w)},persist:function(){},isPersistent:w}),o}var P={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},q=S(P),j=t({},P,{view:0,detail:0}),Z=S(j),ut,pt,at,Tt=t({},j,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ha,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==at&&(at&&i.type==="mousemove"?(ut=i.screenX-at.screenX,pt=i.screenY-at.screenY):pt=ut=0,at=i),ut)},movementY:function(i){return"movementY"in i?i.movementY:pt}}),oe=S(Tt),Ne=t({},Tt,{dataTransfer:0}),ye=S(Ne),En=t({},j,{relatedTarget:0}),pn=S(En),Pa=t({},P,{animationName:0,elapsedTime:0,pseudoElement:0}),Ma=S(Pa),Ce=t({},P,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),xi=S(Ce),Be=t({},P,{data:0}),tn=S(Be),Cr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},es={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Aa={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tr(i){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(i):(i=Aa[i])?!!o[i]:!1}function ha(){return Tr}var ni=t({},j,{key:function(i){if(i.key){var o=Cr[i.key]||i.key;if(o!=="Unidentified")return o}return i.type==="keypress"?(i=m(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?es[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ha,charCode:function(i){return i.type==="keypress"?m(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?m(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),ai=S(ni),pa=t({},Tt,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),to=S(pa),Ha=t({},j,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ha}),Fa=S(Ha),pc=t({},P,{propertyName:0,elapsedTime:0,pseudoElement:0}),gc=S(pc),mc=t({},Tt,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),qe=S(mc),eo=[9,13,27,32],na=p&&"CompositionEvent"in window,Na=null;p&&"documentMode"in document&&(Na=document.documentMode);var vc=p&&"TextEvent"in window&&!Na,kl=p&&(!na||Na&&8<Na&&11>=Na),ns=" ",ii=!1;function no(i,o){switch(i){case"keyup":return eo.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wa(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Si=!1;function Er(i,o){switch(i){case"compositionend":return Wa(o);case"keypress":return o.which!==32?null:(ii=!0,ns);case"textInput":return i=o.data,i===ns&&ii?null:i;default:return null}}function ao(i,o){if(Si)return i==="compositionend"||!na&&no(i,o)?(i=h(),c=ts=ei=null,Si=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return kl&&o.locale!=="ko"?null:o.data;default:return null}}var io={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ro(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o==="input"?!!io[i.type]:o==="textarea"}function xl(i,o,u,g){ve(g),o=Sl(o,"onChange"),0<o.length&&(u=new q("onChange","change",null,u,g),i.push({event:u,listeners:o}))}var ri=null,Ci=null;function as(i){lp(i,0)}function oo(i){var o=co(i);if(Ye(o))return i}function is(i,o){if(i==="change")return o}var rs=!1;if(p){var B;if(p){var V="oninput"in document;if(!V){var nt=document.createElement("div");nt.setAttribute("oninput","return;"),V=typeof nt.oninput=="function"}B=V}else B=!1;rs=B&&(!document.documentMode||9<document.documentMode)}function rt(){ri&&(ri.detachEvent("onpropertychange",gt),Ci=ri=null)}function gt(i){if(i.propertyName==="value"&&oo(Ci)){var o=[];if(xl(o,Ci,i,Ue(i)),i=as,cn)i(o);else{cn=!0;try{Ft(i,o)}finally{cn=!1,$n()}}}}function Bt(i,o,u){i==="focusin"?(rt(),ri=o,Ci=u,ri.attachEvent("onpropertychange",gt)):i==="focusout"&&rt()}function Kt(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return oo(Ci)}function Yt(i,o){if(i==="click")return oo(o)}function qt(i,o){if(i==="input"||i==="change")return oo(o)}function Se(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}var Zt=typeof Object.is=="function"?Object.is:Se,le=Object.prototype.hasOwnProperty;function ge(i,o){if(Zt(i,o))return!0;if(typeof i!="object"||i===null||typeof o!="object"||o===null)return!1;var u=Object.keys(i),g=Object.keys(o);if(u.length!==g.length)return!1;for(g=0;g<u.length;g++)if(!le.call(o,u[g])||!Zt(i[u[g]],o[u[g]]))return!1;return!0}function te(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Fe(i,o){var u=te(i);i=0;for(var g;u;){if(u.nodeType===3){if(g=i+u.textContent.length,i<=o&&g>=o)return{node:u,offset:o-i};i=g}t:{for(;u;){if(u.nextSibling){u=u.nextSibling;break t}u=u.parentNode}u=void 0}u=te(u)}}function In(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?In(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function Pn(){for(var i=window,o=yn();o instanceof i.HTMLIFrameElement;){try{var u=typeof o.contentWindow.location.href=="string"}catch{u=!1}if(u)i=o.contentWindow;else break;o=yn(i.document)}return o}function Fn(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}var La=p&&"documentMode"in document&&11>=document.documentMode,ba=null,Mn=null,os=null,yc=!1;function rp(i,o,u){var g=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;yc||ba==null||ba!==yn(g)||(g=ba,"selectionStart"in g&&Fn(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),os&&ge(os,g)||(os=g,g=Sl(Mn,"onSelect"),0<g.length&&(o=new q("onSelect","select",null,o,u),i.push({event:o,listeners:g}),o.target=ba)))}Xo("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Xo("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Xo(uc,2);for(var op="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),bc=0;bc<op.length;bc++)Zr.set(op[bc],0);f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),d("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),d("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),d("onBeforeInput",["compositionend","keypress","textInput","paste"]),d("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ss="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Wb=new Set("cancel close invalid load scroll toggle".split(" ").concat(ss));function sp(i,o,u){var g=i.type||"unknown-event";i.currentTarget=u,qa(g,o,void 0,i),i.currentTarget=null}function lp(i,o){o=(o&4)!==0;for(var u=0;u<i.length;u++){var g=i[u],b=g.event;g=g.listeners;t:{var C=void 0;if(o)for(var A=g.length-1;0<=A;A--){var z=g[A],W=z.instance,ct=z.currentTarget;if(z=z.listener,W!==C&&b.isPropagationStopped())break t;sp(b,z,ct),C=W}else for(A=0;A<g.length;A++){if(z=g[A],W=z.instance,ct=z.currentTarget,z=z.listener,W!==C&&b.isPropagationStopped())break t;sp(b,z,ct),C=W}}}if(fn)throw i=ca,fn=!1,ca=null,i}function en(i,o){var u=bp(o),g=i+"__bubble";u.has(g)||(fp(o,i,2,!1),u.add(g))}var up="_reactListening"+Math.random().toString(36).slice(2);function cp(i){i[up]||(i[up]=!0,r.forEach(function(o){Wb.has(o)||dp(o,!1,i,null),dp(o,!0,i,null)}))}function dp(i,o,u,g){var b=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,C=u;i==="selectionchange"&&u.nodeType!==9&&(C=u.ownerDocument);var A=bp(C),z=i+"__"+(o?"capture":"bubble");A.has(z)||(o&&(b|=4),fp(C,i,b,o),A.add(z))}function fp(i,o,u,g){var b=Zr.get(o);switch(b===void 0?2:b){case 0:b=xr;break;case 1:b=wl;break;default:b=Sr}u=b.bind(null,o,u,i),b=void 0,!ua||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(b=!0),g?b!==void 0?i.addEventListener(o,u,{capture:!0,passive:b}):i.addEventListener(o,u,!0):b!==void 0?i.addEventListener(o,u,{passive:b}):i.addEventListener(o,u,!1)}function hp(i,o,u,g,b){var C=g;if((o&1)===0&&(o&2)===0&&g!==null)t:for(;;){if(g===null)return;var A=g.tag;if(A===3||A===4){var z=g.stateNode.containerInfo;if(z===b||z.nodeType===8&&z.parentNode===b)break;if(A===4)for(A=g.return;A!==null;){var W=A.tag;if((W===3||W===4)&&(W=A.stateNode.containerInfo,W===b||W.nodeType===8&&W.parentNode===b))return;A=A.return}for(;z!==null;){if(A=Pr(z),A===null)return;if(W=A.tag,W===5||W===6){g=C=A;continue t}z=z.parentNode}}g=g.return}Jn(function(){var ct=C,$t=Ue(u),fe=[];t:{var Et=ml.get(i);if(Et!==void 0){var Jt=q,ce=i;switch(i){case"keypress":if(m(u)===0)break t;case"keydown":case"keyup":Jt=ai;break;case"focusin":ce="focus",Jt=pn;break;case"focusout":ce="blur",Jt=pn;break;case"beforeblur":case"afterblur":Jt=pn;break;case"click":if(u.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Jt=oe;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Jt=ye;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Jt=Fa;break;case Go:case Xr:case Uo:Jt=Ma;break;case Yo:Jt=gc;break;case"scroll":Jt=Z;break;case"wheel":Jt=qe;break;case"copy":case"cut":case"paste":Jt=xi;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Jt=to}var se=(o&4)!==0,et=!se&&i==="scroll",U=se?Et!==null?Et+"Capture":null:Et;se=[];for(var Q=ct,kt;Q!==null;){kt=Q;var Ct=kt.stateNode;if(kt.tag===5&&Ct!==null&&(kt=Ct,U!==null&&(Ct=la(Q,U),Ct!=null&&se.push(ls(Q,Ct,kt)))),et)break;Q=Q.return}0<se.length&&(Et=new Jt(Et,ce,null,u,$t),fe.push({event:Et,listeners:se}))}}if((o&7)===0){t:{if(Et=i==="mouseover"||i==="pointerover",Jt=i==="mouseout"||i==="pointerout",Et&&(o&16)===0&&(ce=u.relatedTarget||u.fromElement)&&(Pr(ce)||ce[uo]))break t;if((Jt||Et)&&(Et=$t.window===$t?$t:(Et=$t.ownerDocument)?Et.defaultView||Et.parentWindow:window,Jt?(ce=u.relatedTarget||u.toElement,Jt=ct,ce=ce?Pr(ce):null,ce!==null&&(et=Tn(ce),ce!==et||ce.tag!==5&&ce.tag!==6)&&(ce=null)):(Jt=null,ce=ct),Jt!==ce)){if(se=oe,Ct="onMouseLeave",U="onMouseEnter",Q="mouse",(i==="pointerout"||i==="pointerover")&&(se=to,Ct="onPointerLeave",U="onPointerEnter",Q="pointer"),et=Jt==null?Et:co(Jt),kt=ce==null?Et:co(ce),Et=new se(Ct,Q+"leave",Jt,u,$t),Et.target=et,Et.relatedTarget=kt,Ct=null,Pr($t)===ct&&(se=new se(U,Q+"enter",ce,u,$t),se.target=kt,se.relatedTarget=et,Ct=se),et=Ct,Jt&&ce)e:{for(se=Jt,U=ce,Q=0,kt=se;kt;kt=so(kt))Q++;for(kt=0,Ct=U;Ct;Ct=so(Ct))kt++;for(;0<Q-kt;)se=so(se),Q--;for(;0<kt-Q;)U=so(U),kt--;for(;Q--;){if(se===U||U!==null&&se===U.alternate)break e;se=so(se),U=so(U)}se=null}else se=null;Jt!==null&&pp(fe,Et,Jt,se,!1),ce!==null&&et!==null&&pp(fe,et,ce,se,!0)}}t:{if(Et=ct?co(ct):window,Jt=Et.nodeName&&Et.nodeName.toLowerCase(),Jt==="select"||Jt==="input"&&Et.type==="file")var he=is;else if(ro(Et))if(rs)he=qt;else{he=Kt;var Gt=Bt}else(Jt=Et.nodeName)&&Jt.toLowerCase()==="input"&&(Et.type==="checkbox"||Et.type==="radio")&&(he=Yt);if(he&&(he=he(i,ct))){xl(fe,he,u,$t);break t}Gt&&Gt(i,Et,ct),i==="focusout"&&(Gt=Et._wrapperState)&&Gt.controlled&&Et.type==="number"&&it(Et,"number",Et.value)}switch(Gt=ct?co(ct):window,i){case"focusin":(ro(Gt)||Gt.contentEditable==="true")&&(ba=Gt,Mn=ct,os=null);break;case"focusout":os=Mn=ba=null;break;case"mousedown":yc=!0;break;case"contextmenu":case"mouseup":case"dragend":yc=!1,rp(fe,u,$t);break;case"selectionchange":if(La)break;case"keydown":case"keyup":rp(fe,u,$t)}var pe;if(na)t:{switch(i){case"compositionstart":var Te="onCompositionStart";break t;case"compositionend":Te="onCompositionEnd";break t;case"compositionupdate":Te="onCompositionUpdate";break t}Te=void 0}else Si?no(i,u)&&(Te="onCompositionEnd"):i==="keydown"&&u.keyCode===229&&(Te="onCompositionStart");Te&&(kl&&u.locale!=="ko"&&(Si||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&Si&&(pe=h()):(ei=$t,ts="value"in ei?ei.value:ei.textContent,Si=!0)),Gt=Sl(ct,Te),0<Gt.length&&(Te=new tn(Te,i,null,u,$t),fe.push({event:Te,listeners:Gt}),pe?Te.data=pe:(pe=Wa(u),pe!==null&&(Te.data=pe)))),(pe=vc?Er(i,u):ao(i,u))&&(ct=Sl(ct,"onBeforeInput"),0<ct.length&&($t=new tn("onBeforeInput","beforeinput",null,u,$t),fe.push({event:$t,listeners:ct}),$t.data=pe))}lp(fe,o)})}function ls(i,o,u){return{instance:i,listener:o,currentTarget:u}}function Sl(i,o){for(var u=o+"Capture",g=[];i!==null;){var b=i,C=b.stateNode;b.tag===5&&C!==null&&(b=C,C=la(i,u),C!=null&&g.unshift(ls(i,C,b)),C=la(i,o),C!=null&&g.push(ls(i,C,b))),i=i.return}return g}function so(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function pp(i,o,u,g,b){for(var C=o._reactName,A=[];u!==null&&u!==g;){var z=u,W=z.alternate,ct=z.stateNode;if(W!==null&&W===g)break;z.tag===5&&ct!==null&&(z=ct,b?(W=la(u,C),W!=null&&A.unshift(ls(u,W,z))):b||(W=la(u,C),W!=null&&A.push(ls(u,W,z)))),u=u.return}A.length!==0&&i.push({event:o,listeners:A})}function Cl(){}var wc=null,kc=null;function gp(i,o){switch(i){case"button":case"input":case"select":case"textarea":return!!o.autoFocus}return!1}function xc(i,o){return i==="textarea"||i==="option"||i==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var mp=typeof setTimeout=="function"?setTimeout:void 0,_b=typeof clearTimeout=="function"?clearTimeout:void 0;function Sc(i){i.nodeType===1?i.textContent="":i.nodeType===9&&(i=i.body,i!=null&&(i.textContent=""))}function lo(i){for(;i!=null;i=i.nextSibling){var o=i.nodeType;if(o===1||o===3)break}return i}function vp(i){i=i.previousSibling;for(var o=0;i;){if(i.nodeType===8){var u=i.data;if(u==="$"||u==="$!"||u==="$?"){if(o===0)return i;o--}else u==="/$"&&o++}i=i.previousSibling}return null}var Cc=0;function Vb(i){return{$$typeof:bt,toString:i,valueOf:i}}var Tl=Math.random().toString(36).slice(2),Ki="__reactFiber$"+Tl,El="__reactProps$"+Tl,uo="__reactContainer$"+Tl,yp="__reactEvents$"+Tl;function Pr(i){var o=i[Ki];if(o)return o;for(var u=i.parentNode;u;){if(o=u[uo]||u[Ki]){if(u=o.alternate,o.child!==null||u!==null&&u.child!==null)for(i=vp(i);i!==null;){if(u=i[Ki])return u;i=vp(i)}return o}i=u,u=i.parentNode}return null}function us(i){return i=i[Ki]||i[uo],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function co(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(a(33))}function Pl(i){return i[El]||null}function bp(i){var o=i[yp];return o===void 0&&(o=i[yp]=new Set),o}var Tc=[],fo=-1;function qi(i){return{current:i}}function nn(i){0>fo||(i.current=Tc[fo],Tc[fo]=null,fo--)}function mn(i,o){fo++,Tc[fo]=i.current,i.current=o}var $i={},Wn=qi($i),ga=qi(!1),Mr=$i;function ho(i,o){var u=i.type.contextTypes;if(!u)return $i;var g=i.stateNode;if(g&&g.__reactInternalMemoizedUnmaskedChildContext===o)return g.__reactInternalMemoizedMaskedChildContext;var b={},C;for(C in u)b[C]=o[C];return g&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=o,i.__reactInternalMemoizedMaskedChildContext=b),b}function ma(i){return i=i.childContextTypes,i!=null}function Ml(){nn(ga),nn(Wn)}function wp(i,o,u){if(Wn.current!==$i)throw Error(a(168));mn(Wn,o),mn(ga,u)}function kp(i,o,u){var g=i.stateNode;if(i=o.childContextTypes,typeof g.getChildContext!="function")return u;g=g.getChildContext();for(var b in g)if(!(b in i))throw Error(a(108,ln(o)||"Unknown",b));return t({},u,g)}function Al(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||$i,Mr=Wn.current,mn(Wn,i),mn(ga,ga.current),!0}function xp(i,o,u){var g=i.stateNode;if(!g)throw Error(a(169));u?(i=kp(i,o,Mr),g.__reactInternalMemoizedMergedChildContext=i,nn(ga),nn(Wn),mn(Wn,i)):nn(ga),mn(ga,u)}var Ec=null,Ar=null,Gb=n.unstable_runWithPriority,Pc=n.unstable_scheduleCallback,Mc=n.unstable_cancelCallback,Ub=n.unstable_shouldYield,Sp=n.unstable_requestPaint,Ac=n.unstable_now,Yb=n.unstable_getCurrentPriorityLevel,Nl=n.unstable_ImmediatePriority,Cp=n.unstable_UserBlockingPriority,Tp=n.unstable_NormalPriority,Ep=n.unstable_LowPriority,Pp=n.unstable_IdlePriority,Nc={},Xb=Sp!==void 0?Sp:function(){},Ti=null,Ll=null,Lc=!1,Mp=Ac(),_n=1e4>Mp?Ac:function(){return Ac()-Mp};function po(){switch(Yb()){case Nl:return 99;case Cp:return 98;case Tp:return 97;case Ep:return 96;case Pp:return 95;default:throw Error(a(332))}}function Ap(i){switch(i){case 99:return Nl;case 98:return Cp;case 97:return Tp;case 96:return Ep;case 95:return Pp;default:throw Error(a(332))}}function Nr(i,o){return i=Ap(i),Gb(i,o)}function cs(i,o,u){return i=Ap(i),Pc(i,o,u)}function oi(){if(Ll!==null){var i=Ll;Ll=null,Mc(i)}Np()}function Np(){if(!Lc&&Ti!==null){Lc=!0;var i=0;try{var o=Ti;Nr(99,function(){for(;i<o.length;i++){var u=o[i];do u=u(!0);while(u!==null)}}),Ti=null}catch(u){throw Ti!==null&&(Ti=Ti.slice(i+1)),Pc(Nl,oi),u}finally{Lc=!1}}}var Zb=_.ReactCurrentBatchConfig;function _a(i,o){if(i&&i.defaultProps){o=t({},o),i=i.defaultProps;for(var u in i)o[u]===void 0&&(o[u]=i[u]);return o}return o}var Bl=qi(null),zl=null,go=null,Il=null;function Bc(){Il=go=zl=null}function zc(i){var o=Bl.current;nn(Bl),i.type._context._currentValue=o}function Lp(i,o){for(;i!==null;){var u=i.alternate;if((i.childLanes&o)===o){if(u===null||(u.childLanes&o)===o)break;u.childLanes|=o}else i.childLanes|=o,u!==null&&(u.childLanes|=o);i=i.return}}function mo(i,o){zl=i,Il=go=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&o)!==0&&(Va=!0),i.firstContext=null)}function Ba(i,o){if(Il!==i&&o!==!1&&o!==0)if((typeof o!="number"||o===1073741823)&&(Il=i,o=1073741823),o={context:i,observedBits:o,next:null},go===null){if(zl===null)throw Error(a(308));go=o,zl.dependencies={lanes:0,firstContext:o,responders:null}}else go=go.next=o;return i._currentValue}var Hi=!1;function Ic(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function Bp(i,o){i=i.updateQueue,o.updateQueue===i&&(o.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Fi(i,o){return{eventTime:i,lane:o,tag:0,payload:null,callback:null,next:null}}function Wi(i,o){if(i=i.updateQueue,i!==null){i=i.shared;var u=i.pending;u===null?o.next=o:(o.next=u.next,u.next=o),i.pending=o}}function zp(i,o){var u=i.updateQueue,g=i.alternate;if(g!==null&&(g=g.updateQueue,u===g)){var b=null,C=null;if(u=u.firstBaseUpdate,u!==null){do{var A={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};C===null?b=C=A:C=C.next=A,u=u.next}while(u!==null);C===null?b=C=o:C=C.next=o}else b=C=o;u={baseState:g.baseState,firstBaseUpdate:b,lastBaseUpdate:C,shared:g.shared,effects:g.effects},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=o:i.next=o,u.lastBaseUpdate=o}function ds(i,o,u,g){var b=i.updateQueue;Hi=!1;var C=b.firstBaseUpdate,A=b.lastBaseUpdate,z=b.shared.pending;if(z!==null){b.shared.pending=null;var W=z,ct=W.next;W.next=null,A===null?C=ct:A.next=ct,A=W;var $t=i.alternate;if($t!==null){$t=$t.updateQueue;var fe=$t.lastBaseUpdate;fe!==A&&(fe===null?$t.firstBaseUpdate=ct:fe.next=ct,$t.lastBaseUpdate=W)}}if(C!==null){fe=b.baseState,A=0,$t=ct=W=null;do{z=C.lane;var Et=C.eventTime;if((g&z)===z){$t!==null&&($t=$t.next={eventTime:Et,lane:0,tag:C.tag,payload:C.payload,callback:C.callback,next:null});t:{var Jt=i,ce=C;switch(z=o,Et=u,ce.tag){case 1:if(Jt=ce.payload,typeof Jt=="function"){fe=Jt.call(Et,fe,z);break t}fe=Jt;break t;case 3:Jt.flags=Jt.flags&-4097|64;case 0:if(Jt=ce.payload,z=typeof Jt=="function"?Jt.call(Et,fe,z):Jt,z==null)break t;fe=t({},fe,z);break t;case 2:Hi=!0}}C.callback!==null&&(i.flags|=32,z=b.effects,z===null?b.effects=[C]:z.push(C))}else Et={eventTime:Et,lane:z,tag:C.tag,payload:C.payload,callback:C.callback,next:null},$t===null?(ct=$t=Et,W=fe):$t=$t.next=Et,A|=z;if(C=C.next,C===null){if(z=b.shared.pending,z===null)break;C=z.next,z.next=null,b.lastBaseUpdate=z,b.shared.pending=null}}while(!0);$t===null&&(W=fe),b.baseState=W,b.firstBaseUpdate=ct,b.lastBaseUpdate=$t,Ss|=A,i.lanes=A,i.memoizedState=fe}}function Ip(i,o,u){if(i=o.effects,o.effects=null,i!==null)for(o=0;o<i.length;o++){var g=i[o],b=g.callback;if(b!==null){if(g.callback=null,g=u,typeof b!="function")throw Error(a(191,b));b.call(g)}}}var Dp=new e.Component().refs;function Dl(i,o,u,g){o=i.memoizedState,u=u(g,o),u=u==null?o:t({},o,u),i.memoizedState=u,i.lanes===0&&(i.updateQueue.baseState=u)}var Rl={isMounted:function(i){return(i=i._reactInternals)?Tn(i)===i:!1},enqueueSetState:function(i,o,u){i=i._reactInternals;var g=wa(),b=Gi(i),C=Fi(g,b);C.payload=o,u!=null&&(C.callback=u),Wi(i,C),Ui(i,b,g)},enqueueReplaceState:function(i,o,u){i=i._reactInternals;var g=wa(),b=Gi(i),C=Fi(g,b);C.tag=1,C.payload=o,u!=null&&(C.callback=u),Wi(i,C),Ui(i,b,g)},enqueueForceUpdate:function(i,o){i=i._reactInternals;var u=wa(),g=Gi(i),b=Fi(u,g);b.tag=2,o!=null&&(b.callback=o),Wi(i,b),Ui(i,g,u)}};function Rp(i,o,u,g,b,C,A){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(g,C,A):o.prototype&&o.prototype.isPureReactComponent?!ge(u,g)||!ge(b,C):!0}function jp(i,o,u){var g=!1,b=$i,C=o.contextType;return typeof C=="object"&&C!==null?C=Ba(C):(b=ma(o)?Mr:Wn.current,g=o.contextTypes,C=(g=g!=null)?ho(i,b):$i),o=new o(u,C),i.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Rl,i.stateNode=o,o._reactInternals=i,g&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=b,i.__reactInternalMemoizedMaskedChildContext=C),o}function Op(i,o,u,g){i=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(u,g),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(u,g),o.state!==i&&Rl.enqueueReplaceState(o,o.state,null)}function Dc(i,o,u,g){var b=i.stateNode;b.props=u,b.state=i.memoizedState,b.refs=Dp,Ic(i);var C=o.contextType;typeof C=="object"&&C!==null?b.context=Ba(C):(C=ma(o)?Mr:Wn.current,b.context=ho(i,C)),ds(i,u,b,g),b.state=i.memoizedState,C=o.getDerivedStateFromProps,typeof C=="function"&&(Dl(i,o,C,u),b.state=i.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(o=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),o!==b.state&&Rl.enqueueReplaceState(b,b.state,null),ds(i,u,b,g),b.state=i.memoizedState),typeof b.componentDidMount=="function"&&(i.flags|=4)}var jl=Array.isArray;function fs(i,o,u){if(i=u.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(u._owner){if(u=u._owner,u){if(u.tag!==1)throw Error(a(309));var g=u.stateNode}if(!g)throw Error(a(147,i));var b=""+i;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===b?o.ref:(o=function(C){var A=g.refs;A===Dp&&(A=g.refs={}),C===null?delete A[b]:A[b]=C},o._stringRef=b,o)}if(typeof i!="string")throw Error(a(284));if(!u._owner)throw Error(a(290,i))}return i}function Ol(i,o){if(i.type!=="textarea")throw Error(a(31,Object.prototype.toString.call(o)==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":o))}function Kp(i){function o(et,U){if(i){var Q=et.lastEffect;Q!==null?(Q.nextEffect=U,et.lastEffect=U):et.firstEffect=et.lastEffect=U,U.nextEffect=null,U.flags=8}}function u(et,U){if(!i)return null;for(;U!==null;)o(et,U),U=U.sibling;return null}function g(et,U){for(et=new Map;U!==null;)U.key!==null?et.set(U.key,U):et.set(U.index,U),U=U.sibling;return et}function b(et,U){return et=Zi(et,U),et.index=0,et.sibling=null,et}function C(et,U,Q){return et.index=Q,i?(Q=et.alternate,Q!==null?(Q=Q.index,Q<U?(et.flags=2,U):Q):(et.flags=2,U)):U}function A(et){return i&&et.alternate===null&&(et.flags=2),et}function z(et,U,Q,kt){return U===null||U.tag!==6?(U=vd(Q,et.mode,kt),U.return=et,U):(U=b(U,Q),U.return=et,U)}function W(et,U,Q,kt){return U!==null&&U.elementType===Q.type?(kt=b(U,Q.props),kt.ref=fs(et,U,Q),kt.return=et,kt):(kt=nu(Q.type,Q.key,Q.props,null,et.mode,kt),kt.ref=fs(et,U,Q),kt.return=et,kt)}function ct(et,U,Q,kt){return U===null||U.tag!==4||U.stateNode.containerInfo!==Q.containerInfo||U.stateNode.implementation!==Q.implementation?(U=yd(Q,et.mode,kt),U.return=et,U):(U=b(U,Q.children||[]),U.return=et,U)}function $t(et,U,Q,kt,Ct){return U===null||U.tag!==7?(U=Co(Q,et.mode,kt,Ct),U.return=et,U):(U=b(U,Q),U.return=et,U)}function fe(et,U,Q){if(typeof U=="string"||typeof U=="number")return U=vd(""+U,et.mode,Q),U.return=et,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case $:return Q=nu(U.type,U.key,U.props,null,et.mode,Q),Q.ref=fs(et,null,U),Q.return=et,Q;case v:return U=yd(U,et.mode,Q),U.return=et,U}if(jl(U)||Mt(U))return U=Co(U,et.mode,Q,null),U.return=et,U;Ol(et,U)}return null}function Et(et,U,Q,kt){var Ct=U!==null?U.key:null;if(typeof Q=="string"||typeof Q=="number")return Ct!==null?null:z(et,U,""+Q,kt);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case $:return Q.key===Ct?Q.type===mt?$t(et,U,Q.props.children,kt,Ct):W(et,U,Q,kt):null;case v:return Q.key===Ct?ct(et,U,Q,kt):null}if(jl(Q)||Mt(Q))return Ct!==null?null:$t(et,U,Q,kt,null);Ol(et,Q)}return null}function Jt(et,U,Q,kt,Ct){if(typeof kt=="string"||typeof kt=="number")return et=et.get(Q)||null,z(U,et,""+kt,Ct);if(typeof kt=="object"&&kt!==null){switch(kt.$$typeof){case $:return et=et.get(kt.key===null?Q:kt.key)||null,kt.type===mt?$t(U,et,kt.props.children,Ct,kt.key):W(U,et,kt,Ct);case v:return et=et.get(kt.key===null?Q:kt.key)||null,ct(U,et,kt,Ct)}if(jl(kt)||Mt(kt))return et=et.get(Q)||null,$t(U,et,kt,Ct,null);Ol(U,kt)}return null}function ce(et,U,Q,kt){for(var Ct=null,he=null,Gt=U,pe=U=0,Te=null;Gt!==null&&pe<Q.length;pe++){Gt.index>pe?(Te=Gt,Gt=null):Te=Gt.sibling;var be=Et(et,Gt,Q[pe],kt);if(be===null){Gt===null&&(Gt=Te);break}i&&Gt&&be.alternate===null&&o(et,Gt),U=C(be,U,pe),he===null?Ct=be:he.sibling=be,he=be,Gt=Te}if(pe===Q.length)return u(et,Gt),Ct;if(Gt===null){for(;pe<Q.length;pe++)Gt=fe(et,Q[pe],kt),Gt!==null&&(U=C(Gt,U,pe),he===null?Ct=Gt:he.sibling=Gt,he=Gt);return Ct}for(Gt=g(et,Gt);pe<Q.length;pe++)Te=Jt(Gt,et,pe,Q[pe],kt),Te!==null&&(i&&Te.alternate!==null&&Gt.delete(Te.key===null?pe:Te.key),U=C(Te,U,pe),he===null?Ct=Te:he.sibling=Te,he=Te);return i&&Gt.forEach(function(Ji){return o(et,Ji)}),Ct}function se(et,U,Q,kt){var Ct=Mt(Q);if(typeof Ct!="function")throw Error(a(150));if(Q=Ct.call(Q),Q==null)throw Error(a(151));for(var he=Ct=null,Gt=U,pe=U=0,Te=null,be=Q.next();Gt!==null&&!be.done;pe++,be=Q.next()){Gt.index>pe?(Te=Gt,Gt=null):Te=Gt.sibling;var Ji=Et(et,Gt,be.value,kt);if(Ji===null){Gt===null&&(Gt=Te);break}i&&Gt&&Ji.alternate===null&&o(et,Gt),U=C(Ji,U,pe),he===null?Ct=Ji:he.sibling=Ji,he=Ji,Gt=Te}if(be.done)return u(et,Gt),Ct;if(Gt===null){for(;!be.done;pe++,be=Q.next())be=fe(et,be.value,kt),be!==null&&(U=C(be,U,pe),he===null?Ct=be:he.sibling=be,he=be);return Ct}for(Gt=g(et,Gt);!be.done;pe++,be=Q.next())be=Jt(Gt,et,pe,be.value,kt),be!==null&&(i&&be.alternate!==null&&Gt.delete(be.key===null?pe:be.key),U=C(be,U,pe),he===null?Ct=be:he.sibling=be,he=be);return i&&Gt.forEach(function(Mw){return o(et,Mw)}),Ct}return function(et,U,Q,kt){var Ct=typeof Q=="object"&&Q!==null&&Q.type===mt&&Q.key===null;Ct&&(Q=Q.props.children);var he=typeof Q=="object"&&Q!==null;if(he)switch(Q.$$typeof){case $:t:{for(he=Q.key,Ct=U;Ct!==null;){if(Ct.key===he){switch(Ct.tag){case 7:if(Q.type===mt){u(et,Ct.sibling),U=b(Ct,Q.props.children),U.return=et,et=U;break t}break;default:if(Ct.elementType===Q.type){u(et,Ct.sibling),U=b(Ct,Q.props),U.ref=fs(et,Ct,Q),U.return=et,et=U;break t}}u(et,Ct);break}else o(et,Ct);Ct=Ct.sibling}Q.type===mt?(U=Co(Q.props.children,et.mode,kt,Q.key),U.return=et,et=U):(kt=nu(Q.type,Q.key,Q.props,null,et.mode,kt),kt.ref=fs(et,U,Q),kt.return=et,et=kt)}return A(et);case v:t:{for(Ct=Q.key;U!==null;){if(U.key===Ct)if(U.tag===4&&U.stateNode.containerInfo===Q.containerInfo&&U.stateNode.implementation===Q.implementation){u(et,U.sibling),U=b(U,Q.children||[]),U.return=et,et=U;break t}else{u(et,U);break}else o(et,U);U=U.sibling}U=yd(Q,et.mode,kt),U.return=et,et=U}return A(et)}if(typeof Q=="string"||typeof Q=="number")return Q=""+Q,U!==null&&U.tag===6?(u(et,U.sibling),U=b(U,Q),U.return=et,et=U):(u(et,U),U=vd(Q,et.mode,kt),U.return=et,et=U),A(et);if(jl(Q))return ce(et,U,Q,kt);if(Mt(Q))return se(et,U,Q,kt);if(he&&Ol(et,Q),typeof Q>"u"&&!Ct)switch(et.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,ln(et.type)||"Component"))}return u(et,U)}}var Kl=Kp(!0),qp=Kp(!1),hs={},si=qi(hs),ps=qi(hs),gs=qi(hs);function Lr(i){if(i===hs)throw Error(a(174));return i}function Rc(i,o){switch(mn(gs,o),mn(ps,i),mn(si,hs),i=o.nodeType,i){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:Ze(null,"");break;default:i=i===8?o.parentNode:o,o=i.namespaceURI||null,i=i.tagName,o=Ze(o,i)}nn(si),mn(si,o)}function vo(){nn(si),nn(ps),nn(gs)}function $p(i){Lr(gs.current);var o=Lr(si.current),u=Ze(o,i.type);o!==u&&(mn(ps,i),mn(si,u))}function jc(i){ps.current===i&&(nn(si),nn(ps))}var vn=qi(0);function ql(i){for(var o=i;o!==null;){if(o.tag===13){var u=o.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||u.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&64)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Ei=null,_i=null,li=!1;function Hp(i,o){var u=Da(5,null,null,0);u.elementType="DELETED",u.type="DELETED",u.stateNode=o,u.return=i,u.flags=8,i.lastEffect!==null?(i.lastEffect.nextEffect=u,i.lastEffect=u):i.firstEffect=i.lastEffect=u}function Fp(i,o){switch(i.tag){case 5:var u=i.type;return o=o.nodeType!==1||u.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(i.stateNode=o,!0):!1;case 6:return o=i.pendingProps===""||o.nodeType!==3?null:o,o!==null?(i.stateNode=o,!0):!1;case 13:return!1;default:return!1}}function Oc(i){if(li){var o=_i;if(o){var u=o;if(!Fp(i,o)){if(o=lo(u.nextSibling),!o||!Fp(i,o)){i.flags=i.flags&-1025|2,li=!1,Ei=i;return}Hp(Ei,u)}Ei=i,_i=lo(o.firstChild)}else i.flags=i.flags&-1025|2,li=!1,Ei=i}}function Wp(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;Ei=i}function $l(i){if(i!==Ei)return!1;if(!li)return Wp(i),li=!0,!1;var o=i.type;if(i.tag!==5||o!=="head"&&o!=="body"&&!xc(o,i.memoizedProps))for(o=_i;o;)Hp(i,o),o=lo(o.nextSibling);if(Wp(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(a(317));t:{for(i=i.nextSibling,o=0;i;){if(i.nodeType===8){var u=i.data;if(u==="/$"){if(o===0){_i=lo(i.nextSibling);break t}o--}else u!=="$"&&u!=="$!"&&u!=="$?"||o++}i=i.nextSibling}_i=null}}else _i=Ei?lo(i.stateNode.nextSibling):null;return!0}function Kc(){_i=Ei=null,li=!1}var yo=[];function qc(){for(var i=0;i<yo.length;i++)yo[i]._workInProgressVersionPrimary=null;yo.length=0}var ms=_.ReactCurrentDispatcher,za=_.ReactCurrentBatchConfig,vs=0,bn=null,Vn=null,Dn=null,Hl=!1,ys=!1;function va(){throw Error(a(321))}function $c(i,o){if(o===null)return!1;for(var u=0;u<o.length&&u<i.length;u++)if(!Zt(i[u],o[u]))return!1;return!0}function Hc(i,o,u,g,b,C){if(vs=C,bn=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,ms.current=i===null||i.memoizedState===null?Qb:tw,i=u(g,b),ys){C=0;do{if(ys=!1,!(25>C))throw Error(a(301));C+=1,Dn=Vn=null,o.updateQueue=null,ms.current=ew,i=u(g,b)}while(ys)}if(ms.current=Vl,o=Vn!==null&&Vn.next!==null,vs=0,Dn=Vn=bn=null,Hl=!1,o)throw Error(a(300));return i}function Br(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dn===null?bn.memoizedState=Dn=i:Dn=Dn.next=i,Dn}function zr(){if(Vn===null){var i=bn.alternate;i=i!==null?i.memoizedState:null}else i=Vn.next;var o=Dn===null?bn.memoizedState:Dn.next;if(o!==null)Dn=o,Vn=i;else{if(i===null)throw Error(a(310));Vn=i,i={memoizedState:Vn.memoizedState,baseState:Vn.baseState,baseQueue:Vn.baseQueue,queue:Vn.queue,next:null},Dn===null?bn.memoizedState=Dn=i:Dn=Dn.next=i}return Dn}function ui(i,o){return typeof o=="function"?o(i):o}function bs(i){var o=zr(),u=o.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=i;var g=Vn,b=g.baseQueue,C=u.pending;if(C!==null){if(b!==null){var A=b.next;b.next=C.next,C.next=A}g.baseQueue=b=C,u.pending=null}if(b!==null){b=b.next,g=g.baseState;var z=A=C=null,W=b;do{var ct=W.lane;if((vs&ct)===ct)z!==null&&(z=z.next={lane:0,action:W.action,eagerReducer:W.eagerReducer,eagerState:W.eagerState,next:null}),g=W.eagerReducer===i?W.eagerState:i(g,W.action);else{var $t={lane:ct,action:W.action,eagerReducer:W.eagerReducer,eagerState:W.eagerState,next:null};z===null?(A=z=$t,C=g):z=z.next=$t,bn.lanes|=ct,Ss|=ct}W=W.next}while(W!==null&&W!==b);z===null?C=g:z.next=A,Zt(g,o.memoizedState)||(Va=!0),o.memoizedState=g,o.baseState=C,o.baseQueue=z,u.lastRenderedState=g}return[o.memoizedState,u.dispatch]}function ws(i){var o=zr(),u=o.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=i;var g=u.dispatch,b=u.pending,C=o.memoizedState;if(b!==null){u.pending=null;var A=b=b.next;do C=i(C,A.action),A=A.next;while(A!==b);Zt(C,o.memoizedState)||(Va=!0),o.memoizedState=C,o.baseQueue===null&&(o.baseState=C),u.lastRenderedState=C}return[C,g]}function _p(i,o,u){var g=o._getVersion;g=g(o._source);var b=o._workInProgressVersionPrimary;if(b!==null?i=b===g:(i=i.mutableReadLanes,(i=(vs&i)===i)&&(o._workInProgressVersionPrimary=g,yo.push(o))),i)return u(o._source);throw yo.push(o),Error(a(350))}function Vp(i,o,u,g){var b=aa;if(b===null)throw Error(a(349));var C=o._getVersion,A=C(o._source),z=ms.current,W=z.useState(function(){return _p(b,o,u)}),ct=W[1],$t=W[0];W=Dn;var fe=i.memoizedState,Et=fe.refs,Jt=Et.getSnapshot,ce=fe.source;fe=fe.subscribe;var se=bn;return i.memoizedState={refs:Et,source:o,subscribe:g},z.useEffect(function(){Et.getSnapshot=u,Et.setSnapshot=ct;var et=C(o._source);if(!Zt(A,et)){et=u(o._source),Zt($t,et)||(ct(et),et=Gi(se),b.mutableReadLanes|=et&b.pendingLanes),et=b.mutableReadLanes,b.entangledLanes|=et;for(var U=b.entanglements,Q=et;0<Q;){var kt=31-Ea(Q),Ct=1<<kt;U[kt]|=et,Q&=~Ct}}},[u,o,g]),z.useEffect(function(){return g(o._source,function(){var et=Et.getSnapshot,U=Et.setSnapshot;try{U(et(o._source));var Q=Gi(se);b.mutableReadLanes|=Q&b.pendingLanes}catch(kt){U(function(){throw kt})}})},[o,g]),Zt(Jt,u)&&Zt(ce,o)&&Zt(fe,g)||(i={pending:null,dispatch:null,lastRenderedReducer:ui,lastRenderedState:$t},i.dispatch=ct=Vc.bind(null,bn,i),W.queue=i,W.baseQueue=null,$t=_p(b,o,u),W.memoizedState=W.baseState=$t),$t}function Gp(i,o,u){var g=zr();return Vp(g,i,o,u)}function ks(i){var o=Br();return typeof i=="function"&&(i=i()),o.memoizedState=o.baseState=i,i=o.queue={pending:null,dispatch:null,lastRenderedReducer:ui,lastRenderedState:i},i=i.dispatch=Vc.bind(null,bn,i),[o.memoizedState,i]}function Fl(i,o,u,g){return i={tag:i,create:o,destroy:u,deps:g,next:null},o=bn.updateQueue,o===null?(o={lastEffect:null},bn.updateQueue=o,o.lastEffect=i.next=i):(u=o.lastEffect,u===null?o.lastEffect=i.next=i:(g=u.next,u.next=i,i.next=g,o.lastEffect=i)),i}function Up(i){var o=Br();return i={current:i},o.memoizedState=i}function Wl(){return zr().memoizedState}function Fc(i,o,u,g){var b=Br();bn.flags|=i,b.memoizedState=Fl(1|o,u,void 0,g===void 0?null:g)}function Wc(i,o,u,g){var b=zr();g=g===void 0?null:g;var C=void 0;if(Vn!==null){var A=Vn.memoizedState;if(C=A.destroy,g!==null&&$c(g,A.deps)){Fl(o,u,C,g);return}}bn.flags|=i,b.memoizedState=Fl(1|o,u,C,g)}function Yp(i,o){return Fc(516,4,i,o)}function _l(i,o){return Wc(516,4,i,o)}function Xp(i,o){return Wc(4,2,i,o)}function Zp(i,o){if(typeof o=="function")return i=i(),o(i),function(){o(null)};if(o!=null)return i=i(),o.current=i,function(){o.current=null}}function Jp(i,o,u){return u=u!=null?u.concat([i]):null,Wc(4,2,Zp.bind(null,o,i),u)}function _c(){}function Qp(i,o){var u=zr();o=o===void 0?null:o;var g=u.memoizedState;return g!==null&&o!==null&&$c(o,g[1])?g[0]:(u.memoizedState=[i,o],i)}function tg(i,o){var u=zr();o=o===void 0?null:o;var g=u.memoizedState;return g!==null&&o!==null&&$c(o,g[1])?g[0]:(i=i(),u.memoizedState=[i,o],i)}function Jb(i,o){var u=po();Nr(98>u?98:u,function(){i(!0)}),Nr(97<u?97:u,function(){var g=za.transition;za.transition=1;try{i(!1),o()}finally{za.transition=g}})}function Vc(i,o,u){var g=wa(),b=Gi(i),C={lane:b,action:u,eagerReducer:null,eagerState:null,next:null},A=o.pending;if(A===null?C.next=C:(C.next=A.next,A.next=C),o.pending=C,A=i.alternate,i===bn||A!==null&&A===bn)ys=Hl=!0;else{if(i.lanes===0&&(A===null||A.lanes===0)&&(A=o.lastRenderedReducer,A!==null))try{var z=o.lastRenderedState,W=A(z,u);if(C.eagerReducer=A,C.eagerState=W,Zt(W,z))return}catch{}Ui(i,b,g)}}var Vl={readContext:Ba,useCallback:va,useContext:va,useEffect:va,useImperativeHandle:va,useLayoutEffect:va,useMemo:va,useReducer:va,useRef:va,useState:va,useDebugValue:va,useDeferredValue:va,useTransition:va,useMutableSource:va,useOpaqueIdentifier:va,unstable_isNewReconciler:!1},Qb={readContext:Ba,useCallback:function(i,o){return Br().memoizedState=[i,o===void 0?null:o],i},useContext:Ba,useEffect:Yp,useImperativeHandle:function(i,o,u){return u=u!=null?u.concat([i]):null,Fc(4,2,Zp.bind(null,o,i),u)},useLayoutEffect:function(i,o){return Fc(4,2,i,o)},useMemo:function(i,o){var u=Br();return o=o===void 0?null:o,i=i(),u.memoizedState=[i,o],i},useReducer:function(i,o,u){var g=Br();return o=u!==void 0?u(o):o,g.memoizedState=g.baseState=o,i=g.queue={pending:null,dispatch:null,lastRenderedReducer:i,lastRenderedState:o},i=i.dispatch=Vc.bind(null,bn,i),[g.memoizedState,i]},useRef:Up,useState:ks,useDebugValue:_c,useDeferredValue:function(i){var o=ks(i),u=o[0],g=o[1];return Yp(function(){var b=za.transition;za.transition=1;try{g(i)}finally{za.transition=b}},[i]),u},useTransition:function(){var i=ks(!1),o=i[0];return i=Jb.bind(null,i[1]),Up(i),[i,o]},useMutableSource:function(i,o,u){var g=Br();return g.memoizedState={refs:{getSnapshot:o,setSnapshot:null},source:i,subscribe:u},Vp(g,i,o,u)},useOpaqueIdentifier:function(){if(li){var i=!1,o=Vb(function(){throw i||(i=!0,u("r:"+(Cc++).toString(36))),Error(a(355))}),u=ks(o)[1];return(bn.mode&2)===0&&(bn.flags|=516,Fl(5,function(){u("r:"+(Cc++).toString(36))},void 0,null)),o}return o="r:"+(Cc++).toString(36),ks(o),o},unstable_isNewReconciler:!1},tw={readContext:Ba,useCallback:Qp,useContext:Ba,useEffect:_l,useImperativeHandle:Jp,useLayoutEffect:Xp,useMemo:tg,useReducer:bs,useRef:Wl,useState:function(){return bs(ui)},useDebugValue:_c,useDeferredValue:function(i){var o=bs(ui),u=o[0],g=o[1];return _l(function(){var b=za.transition;za.transition=1;try{g(i)}finally{za.transition=b}},[i]),u},useTransition:function(){var i=bs(ui)[0];return[Wl().current,i]},useMutableSource:Gp,useOpaqueIdentifier:function(){return bs(ui)[0]},unstable_isNewReconciler:!1},ew={readContext:Ba,useCallback:Qp,useContext:Ba,useEffect:_l,useImperativeHandle:Jp,useLayoutEffect:Xp,useMemo:tg,useReducer:ws,useRef:Wl,useState:function(){return ws(ui)},useDebugValue:_c,useDeferredValue:function(i){var o=ws(ui),u=o[0],g=o[1];return _l(function(){var b=za.transition;za.transition=1;try{g(i)}finally{za.transition=b}},[i]),u},useTransition:function(){var i=ws(ui)[0];return[Wl().current,i]},useMutableSource:Gp,useOpaqueIdentifier:function(){return ws(ui)[0]},unstable_isNewReconciler:!1},nw=_.ReactCurrentOwner,Va=!1;function ya(i,o,u,g){o.child=i===null?qp(o,null,u,g):Kl(o,i.child,u,g)}function eg(i,o,u,g,b){u=u.render;var C=o.ref;return mo(o,b),g=Hc(i,o,u,g,C,b),i!==null&&!Va?(o.updateQueue=i.updateQueue,o.flags&=-517,i.lanes&=~b,Pi(i,o,b)):(o.flags|=1,ya(i,o,g,b),o.child)}function ng(i,o,u,g,b,C){if(i===null){var A=u.type;return typeof A=="function"&&!gd(A)&&A.defaultProps===void 0&&u.compare===null&&u.defaultProps===void 0?(o.tag=15,o.type=A,ag(i,o,A,g,b,C)):(i=nu(u.type,null,g,o,o.mode,C),i.ref=o.ref,i.return=o,o.child=i)}return A=i.child,(b&C)===0&&(b=A.memoizedProps,u=u.compare,u=u!==null?u:ge,u(b,g)&&i.ref===o.ref)?Pi(i,o,C):(o.flags|=1,i=Zi(A,g),i.ref=o.ref,i.return=o,o.child=i)}function ag(i,o,u,g,b,C){if(i!==null&&ge(i.memoizedProps,g)&&i.ref===o.ref)if(Va=!1,(C&b)!==0)(i.flags&16384)!==0&&(Va=!0);else return o.lanes=i.lanes,Pi(i,o,C);return Uc(i,o,u,g,C)}function Gc(i,o,u){var g=o.pendingProps,b=g.children,C=i!==null?i.memoizedState:null;if(g.mode==="hidden"||g.mode==="unstable-defer-without-hiding")if((o.mode&4)===0)o.memoizedState={baseLanes:0},eu(o,u);else if((u&1073741824)!==0)o.memoizedState={baseLanes:0},eu(o,C!==null?C.baseLanes:u);else return i=C!==null?C.baseLanes|u:u,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:i},eu(o,i),null;else C!==null?(g=C.baseLanes|u,o.memoizedState=null):g=u,eu(o,g);return ya(i,o,b,u),o.child}function ig(i,o){var u=o.ref;(i===null&&u!==null||i!==null&&i.ref!==u)&&(o.flags|=128)}function Uc(i,o,u,g,b){var C=ma(u)?Mr:Wn.current;return C=ho(o,C),mo(o,b),u=Hc(i,o,u,g,C,b),i!==null&&!Va?(o.updateQueue=i.updateQueue,o.flags&=-517,i.lanes&=~b,Pi(i,o,b)):(o.flags|=1,ya(i,o,u,b),o.child)}function rg(i,o,u,g,b){if(ma(u)){var C=!0;Al(o)}else C=!1;if(mo(o,b),o.stateNode===null)i!==null&&(i.alternate=null,o.alternate=null,o.flags|=2),jp(o,u,g),Dc(o,u,g,b),g=!0;else if(i===null){var A=o.stateNode,z=o.memoizedProps;A.props=z;var W=A.context,ct=u.contextType;typeof ct=="object"&&ct!==null?ct=Ba(ct):(ct=ma(u)?Mr:Wn.current,ct=ho(o,ct));var $t=u.getDerivedStateFromProps,fe=typeof $t=="function"||typeof A.getSnapshotBeforeUpdate=="function";fe||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(z!==g||W!==ct)&&Op(o,A,g,ct),Hi=!1;var Et=o.memoizedState;A.state=Et,ds(o,g,A,b),W=o.memoizedState,z!==g||Et!==W||ga.current||Hi?(typeof $t=="function"&&(Dl(o,u,$t,g),W=o.memoizedState),(z=Hi||Rp(o,u,z,g,Et,W,ct))?(fe||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount()),typeof A.componentDidMount=="function"&&(o.flags|=4)):(typeof A.componentDidMount=="function"&&(o.flags|=4),o.memoizedProps=g,o.memoizedState=W),A.props=g,A.state=W,A.context=ct,g=z):(typeof A.componentDidMount=="function"&&(o.flags|=4),g=!1)}else{A=o.stateNode,Bp(i,o),z=o.memoizedProps,ct=o.type===o.elementType?z:_a(o.type,z),A.props=ct,fe=o.pendingProps,Et=A.context,W=u.contextType,typeof W=="object"&&W!==null?W=Ba(W):(W=ma(u)?Mr:Wn.current,W=ho(o,W));var Jt=u.getDerivedStateFromProps;($t=typeof Jt=="function"||typeof A.getSnapshotBeforeUpdate=="function")||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(z!==fe||Et!==W)&&Op(o,A,g,W),Hi=!1,Et=o.memoizedState,A.state=Et,ds(o,g,A,b);var ce=o.memoizedState;z!==fe||Et!==ce||ga.current||Hi?(typeof Jt=="function"&&(Dl(o,u,Jt,g),ce=o.memoizedState),(ct=Hi||Rp(o,u,ct,g,Et,ce,W))?($t||typeof A.UNSAFE_componentWillUpdate!="function"&&typeof A.componentWillUpdate!="function"||(typeof A.componentWillUpdate=="function"&&A.componentWillUpdate(g,ce,W),typeof A.UNSAFE_componentWillUpdate=="function"&&A.UNSAFE_componentWillUpdate(g,ce,W)),typeof A.componentDidUpdate=="function"&&(o.flags|=4),typeof A.getSnapshotBeforeUpdate=="function"&&(o.flags|=256)):(typeof A.componentDidUpdate!="function"||z===i.memoizedProps&&Et===i.memoizedState||(o.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||z===i.memoizedProps&&Et===i.memoizedState||(o.flags|=256),o.memoizedProps=g,o.memoizedState=ce),A.props=g,A.state=ce,A.context=W,g=ct):(typeof A.componentDidUpdate!="function"||z===i.memoizedProps&&Et===i.memoizedState||(o.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||z===i.memoizedProps&&Et===i.memoizedState||(o.flags|=256),g=!1)}return Yc(i,o,u,g,C,b)}function Yc(i,o,u,g,b,C){ig(i,o);var A=(o.flags&64)!==0;if(!g&&!A)return b&&xp(o,u,!1),Pi(i,o,C);g=o.stateNode,nw.current=o;var z=A&&typeof u.getDerivedStateFromError!="function"?null:g.render();return o.flags|=1,i!==null&&A?(o.child=Kl(o,i.child,null,C),o.child=Kl(o,null,z,C)):ya(i,o,z,C),o.memoizedState=g.state,b&&xp(o,u,!0),o.child}function og(i){var o=i.stateNode;o.pendingContext?wp(i,o.pendingContext,o.pendingContext!==o.context):o.context&&wp(i,o.context,!1),Rc(i,o.containerInfo)}var Gl={dehydrated:null,retryLane:0};function sg(i,o,u){var g=o.pendingProps,b=vn.current,C=!1,A;return(A=(o.flags&64)!==0)||(A=i!==null&&i.memoizedState===null?!1:(b&2)!==0),A?(C=!0,o.flags&=-65):i!==null&&i.memoizedState===null||g.fallback===void 0||g.unstable_avoidThisFallback===!0||(b|=1),mn(vn,b&1),i===null?(g.fallback!==void 0&&Oc(o),i=g.children,b=g.fallback,C?(i=lg(o,i,b,u),o.child.memoizedState={baseLanes:u},o.memoizedState=Gl,i):typeof g.unstable_expectedLoadTime=="number"?(i=lg(o,i,b,u),o.child.memoizedState={baseLanes:u},o.memoizedState=Gl,o.lanes=33554432,i):(u=md({mode:"visible",children:i},o.mode,u,null),u.return=o,o.child=u)):i.memoizedState!==null?C?(g=cg(i,o,g.children,g.fallback,u),C=o.child,b=i.child.memoizedState,C.memoizedState=b===null?{baseLanes:u}:{baseLanes:b.baseLanes|u},C.childLanes=i.childLanes&~u,o.memoizedState=Gl,g):(u=ug(i,o,g.children,u),o.memoizedState=null,u):C?(g=cg(i,o,g.children,g.fallback,u),C=o.child,b=i.child.memoizedState,C.memoizedState=b===null?{baseLanes:u}:{baseLanes:b.baseLanes|u},C.childLanes=i.childLanes&~u,o.memoizedState=Gl,g):(u=ug(i,o,g.children,u),o.memoizedState=null,u)}function lg(i,o,u,g){var b=i.mode,C=i.child;return o={mode:"hidden",children:o},(b&2)===0&&C!==null?(C.childLanes=0,C.pendingProps=o):C=md(o,b,0,null),u=Co(u,b,g,null),C.return=i,u.return=i,C.sibling=u,i.child=C,u}function ug(i,o,u,g){var b=i.child;return i=b.sibling,u=Zi(b,{mode:"visible",children:u}),(o.mode&2)===0&&(u.lanes=g),u.return=o,u.sibling=null,i!==null&&(i.nextEffect=null,i.flags=8,o.firstEffect=o.lastEffect=i),o.child=u}function cg(i,o,u,g,b){var C=o.mode,A=i.child;i=A.sibling;var z={mode:"hidden",children:u};return(C&2)===0&&o.child!==A?(u=o.child,u.childLanes=0,u.pendingProps=z,A=u.lastEffect,A!==null?(o.firstEffect=u.firstEffect,o.lastEffect=A,A.nextEffect=null):o.firstEffect=o.lastEffect=null):u=Zi(A,z),i!==null?g=Zi(i,g):(g=Co(g,C,b,null),g.flags|=2),g.return=o,u.return=o,u.sibling=g,o.child=u,g}function dg(i,o){i.lanes|=o;var u=i.alternate;u!==null&&(u.lanes|=o),Lp(i.return,o)}function Xc(i,o,u,g,b,C){var A=i.memoizedState;A===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:g,tail:u,tailMode:b,lastEffect:C}:(A.isBackwards=o,A.rendering=null,A.renderingStartTime=0,A.last=g,A.tail=u,A.tailMode=b,A.lastEffect=C)}function fg(i,o,u){var g=o.pendingProps,b=g.revealOrder,C=g.tail;if(ya(i,o,g.children,u),g=vn.current,(g&2)!==0)g=g&1|2,o.flags|=64;else{if(i!==null&&(i.flags&64)!==0)t:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&dg(i,u);else if(i.tag===19)dg(i,u);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break t;for(;i.sibling===null;){if(i.return===null||i.return===o)break t;i=i.return}i.sibling.return=i.return,i=i.sibling}g&=1}if(mn(vn,g),(o.mode&2)===0)o.memoizedState=null;else switch(b){case"forwards":for(u=o.child,b=null;u!==null;)i=u.alternate,i!==null&&ql(i)===null&&(b=u),u=u.sibling;u=b,u===null?(b=o.child,o.child=null):(b=u.sibling,u.sibling=null),Xc(o,!1,b,u,C,o.lastEffect);break;case"backwards":for(u=null,b=o.child,o.child=null;b!==null;){if(i=b.alternate,i!==null&&ql(i)===null){o.child=b;break}i=b.sibling,b.sibling=u,u=b,b=i}Xc(o,!0,u,null,C,o.lastEffect);break;case"together":Xc(o,!1,null,null,void 0,o.lastEffect);break;default:o.memoizedState=null}return o.child}function Pi(i,o,u){if(i!==null&&(o.dependencies=i.dependencies),Ss|=o.lanes,(u&o.childLanes)!==0){if(i!==null&&o.child!==i.child)throw Error(a(153));if(o.child!==null){for(i=o.child,u=Zi(i,i.pendingProps),o.child=u,u.return=o;i.sibling!==null;)i=i.sibling,u=u.sibling=Zi(i,i.pendingProps),u.return=o;u.sibling=null}return o.child}return null}var hg,Zc,pg,gg;hg=function(i,o){for(var u=o.child;u!==null;){if(u.tag===5||u.tag===6)i.appendChild(u.stateNode);else if(u.tag!==4&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===o)break;for(;u.sibling===null;){if(u.return===null||u.return===o)return;u=u.return}u.sibling.return=u.return,u=u.sibling}},Zc=function(){},pg=function(i,o,u,g){var b=i.memoizedProps;if(b!==g){i=o.stateNode,Lr(si.current);var C=null;switch(u){case"input":b=Je(i,b),g=Je(i,g),C=[];break;case"option":b=st(i,b),g=st(i,g),C=[];break;case"select":b=t({},b,{value:void 0}),g=t({},g,{value:void 0}),C=[];break;case"textarea":b=Me(i,b),g=Me(i,g),C=[];break;default:typeof b.onClick!="function"&&typeof g.onClick=="function"&&(i.onclick=Cl)}$e(u,g);var A;u=null;for(ct in b)if(!g.hasOwnProperty(ct)&&b.hasOwnProperty(ct)&&b[ct]!=null)if(ct==="style"){var z=b[ct];for(A in z)z.hasOwnProperty(A)&&(u||(u={}),u[A]="")}else ct!=="dangerouslySetInnerHTML"&&ct!=="children"&&ct!=="suppressContentEditableWarning"&&ct!=="suppressHydrationWarning"&&ct!=="autoFocus"&&(l.hasOwnProperty(ct)?C||(C=[]):(C=C||[]).push(ct,null));for(ct in g){var W=g[ct];if(z=b?.[ct],g.hasOwnProperty(ct)&&W!==z&&(W!=null||z!=null))if(ct==="style")if(z){for(A in z)!z.hasOwnProperty(A)||W&&W.hasOwnProperty(A)||(u||(u={}),u[A]="");for(A in W)W.hasOwnProperty(A)&&z[A]!==W[A]&&(u||(u={}),u[A]=W[A])}else u||(C||(C=[]),C.push(ct,u)),u=W;else ct==="dangerouslySetInnerHTML"?(W=W?W.__html:void 0,z=z?z.__html:void 0,W!=null&&z!==W&&(C=C||[]).push(ct,W)):ct==="children"?typeof W!="string"&&typeof W!="number"||(C=C||[]).push(ct,""+W):ct!=="suppressContentEditableWarning"&&ct!=="suppressHydrationWarning"&&(l.hasOwnProperty(ct)?(W!=null&&ct==="onScroll"&&en("scroll",i),C||z===W||(C=[])):typeof W=="object"&&W!==null&&W.$$typeof===bt?W.toString():(C=C||[]).push(ct,W))}u&&(C=C||[]).push("style",u);var ct=C;(o.updateQueue=ct)&&(o.flags|=4)}},gg=function(i,o,u,g){u!==g&&(o.flags|=4)};function xs(i,o){if(!li)switch(i.tailMode){case"hidden":o=i.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var g=null;u!==null;)u.alternate!==null&&(g=u),u=u.sibling;g===null?o||i.tail===null?i.tail=null:i.tail.sibling=null:g.sibling=null}}function aw(i,o,u){var g=o.pendingProps;switch(o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return ma(o.type)&&Ml(),null;case 3:return vo(),nn(ga),nn(Wn),qc(),g=o.stateNode,g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(i===null||i.child===null)&&($l(o)?o.flags|=4:g.hydrate||(o.flags|=256)),Zc(o),null;case 5:jc(o);var b=Lr(gs.current);if(u=o.type,i!==null&&o.stateNode!=null)pg(i,o,u,g,b),i.ref!==o.ref&&(o.flags|=128);else{if(!g){if(o.stateNode===null)throw Error(a(166));return null}if(i=Lr(si.current),$l(o)){g=o.stateNode,u=o.type;var C=o.memoizedProps;switch(g[Ki]=o,g[El]=C,u){case"dialog":en("cancel",g),en("close",g);break;case"iframe":case"object":case"embed":en("load",g);break;case"video":case"audio":for(i=0;i<ss.length;i++)en(ss[i],g);break;case"source":en("error",g);break;case"img":case"image":case"link":en("error",g),en("load",g);break;case"details":en("toggle",g);break;case"input":un(g,C),en("invalid",g);break;case"select":g._wrapperState={wasMultiple:!!C.multiple},en("invalid",g);break;case"textarea":Re(g,C),en("invalid",g)}$e(u,C),i=null;for(var A in C)C.hasOwnProperty(A)&&(b=C[A],A==="children"?typeof b=="string"?g.textContent!==b&&(i=["children",b]):typeof b=="number"&&g.textContent!==""+b&&(i=["children",""+b]):l.hasOwnProperty(A)&&b!=null&&A==="onScroll"&&en("scroll",g));switch(u){case"input":kn(g),Y(g,C,!0);break;case"textarea":kn(g),Xe(g);break;case"select":case"option":break;default:typeof C.onClick=="function"&&(g.onclick=Cl)}g=i,o.updateQueue=g,g!==null&&(o.flags|=4)}else{switch(A=b.nodeType===9?b:b.ownerDocument,i===Qe.html&&(i=Kn(u)),i===Qe.html?u==="script"?(i=A.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof g.is=="string"?i=A.createElement(u,{is:g.is}):(i=A.createElement(u),u==="select"&&(A=i,g.multiple?A.multiple=!0:g.size&&(A.size=g.size))):i=A.createElementNS(i,u),i[Ki]=o,i[El]=g,hg(i,o,!1,!1),o.stateNode=i,A=Ge(u,g),u){case"dialog":en("cancel",i),en("close",i),b=g;break;case"iframe":case"object":case"embed":en("load",i),b=g;break;case"video":case"audio":for(b=0;b<ss.length;b++)en(ss[b],i);b=g;break;case"source":en("error",i),b=g;break;case"img":case"image":case"link":en("error",i),en("load",i),b=g;break;case"details":en("toggle",i),b=g;break;case"input":un(i,g),b=Je(i,g),en("invalid",i);break;case"option":b=st(i,g);break;case"select":i._wrapperState={wasMultiple:!!g.multiple},b=t({},g,{value:void 0}),en("invalid",i);break;case"textarea":Re(i,g),b=Me(i,g),en("invalid",i);break;default:b=g}$e(u,b);var z=b;for(C in z)if(z.hasOwnProperty(C)){var W=z[C];C==="style"?Ut(i,W):C==="dangerouslySetInnerHTML"?(W=W?W.__html:void 0,W!=null&&Bn(i,W)):C==="children"?typeof W=="string"?(u!=="textarea"||W!=="")&&qn(i,W):typeof W=="number"&&qn(i,""+W):C!=="suppressContentEditableWarning"&&C!=="suppressHydrationWarning"&&C!=="autoFocus"&&(l.hasOwnProperty(C)?W!=null&&C==="onScroll"&&en("scroll",i):W!=null&&dt(i,C,W,A))}switch(u){case"input":kn(i),Y(i,g,!1);break;case"textarea":kn(i),Xe(i);break;case"option":g.value!=null&&i.setAttribute("value",""+Oe(g.value));break;case"select":i.multiple=!!g.multiple,C=g.value,C!=null?Xt(i,!!g.multiple,C,!1):g.defaultValue!=null&&Xt(i,!!g.multiple,g.defaultValue,!0);break;default:typeof b.onClick=="function"&&(i.onclick=Cl)}gp(u,g)&&(o.flags|=4)}o.ref!==null&&(o.flags|=128)}return null;case 6:if(i&&o.stateNode!=null)gg(i,o,i.memoizedProps,g);else{if(typeof g!="string"&&o.stateNode===null)throw Error(a(166));u=Lr(gs.current),Lr(si.current),$l(o)?(g=o.stateNode,u=o.memoizedProps,g[Ki]=o,g.nodeValue!==u&&(o.flags|=4)):(g=(u.nodeType===9?u:u.ownerDocument).createTextNode(g),g[Ki]=o,o.stateNode=g)}return null;case 13:return nn(vn),g=o.memoizedState,(o.flags&64)!==0?(o.lanes=u,o):(g=g!==null,u=!1,i===null?o.memoizedProps.fallback!==void 0&&$l(o):u=i.memoizedState!==null,g&&!u&&(o.mode&2)!==0&&(i===null&&o.memoizedProps.unstable_avoidThisFallback!==!0||(vn.current&1)!==0?Rn===0&&(Rn=3):((Rn===0||Rn===3)&&(Rn=4),aa===null||(Ss&134217727)===0&&(wo&134217727)===0||xo(aa,Gn))),(g||u)&&(o.flags|=4),null);case 4:return vo(),Zc(o),i===null&&cp(o.stateNode.containerInfo),null;case 10:return zc(o),null;case 17:return ma(o.type)&&Ml(),null;case 19:if(nn(vn),g=o.memoizedState,g===null)return null;if(C=(o.flags&64)!==0,A=g.rendering,A===null)if(C)xs(g,!1);else{if(Rn!==0||i!==null&&(i.flags&64)!==0)for(i=o.child;i!==null;){if(A=ql(i),A!==null){for(o.flags|=64,xs(g,!1),C=A.updateQueue,C!==null&&(o.updateQueue=C,o.flags|=4),g.lastEffect===null&&(o.firstEffect=null),o.lastEffect=g.lastEffect,g=u,u=o.child;u!==null;)C=u,i=g,C.flags&=2,C.nextEffect=null,C.firstEffect=null,C.lastEffect=null,A=C.alternate,A===null?(C.childLanes=0,C.lanes=i,C.child=null,C.memoizedProps=null,C.memoizedState=null,C.updateQueue=null,C.dependencies=null,C.stateNode=null):(C.childLanes=A.childLanes,C.lanes=A.lanes,C.child=A.child,C.memoizedProps=A.memoizedProps,C.memoizedState=A.memoizedState,C.updateQueue=A.updateQueue,C.type=A.type,i=A.dependencies,C.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),u=u.sibling;return mn(vn,vn.current&1|2),o.child}i=i.sibling}g.tail!==null&&_n()>ld&&(o.flags|=64,C=!0,xs(g,!1),o.lanes=33554432)}else{if(!C)if(i=ql(A),i!==null){if(o.flags|=64,C=!0,u=i.updateQueue,u!==null&&(o.updateQueue=u,o.flags|=4),xs(g,!0),g.tail===null&&g.tailMode==="hidden"&&!A.alternate&&!li)return o=o.lastEffect=g.lastEffect,o!==null&&(o.nextEffect=null),null}else 2*_n()-g.renderingStartTime>ld&&u!==1073741824&&(o.flags|=64,C=!0,xs(g,!1),o.lanes=33554432);g.isBackwards?(A.sibling=o.child,o.child=A):(u=g.last,u!==null?u.sibling=A:o.child=A,g.last=A)}return g.tail!==null?(u=g.tail,g.rendering=u,g.tail=u.sibling,g.lastEffect=o.lastEffect,g.renderingStartTime=_n(),u.sibling=null,o=vn.current,mn(vn,C?o&1|2:o&1),u):null;case 23:case 24:return pd(),i!==null&&i.memoizedState!==null!=(o.memoizedState!==null)&&g.mode!=="unstable-defer-without-hiding"&&(o.flags|=4),null}throw Error(a(156,o.tag))}function iw(i){switch(i.tag){case 1:ma(i.type)&&Ml();var o=i.flags;return o&4096?(i.flags=o&-4097|64,i):null;case 3:if(vo(),nn(ga),nn(Wn),qc(),o=i.flags,(o&64)!==0)throw Error(a(285));return i.flags=o&-4097|64,i;case 5:return jc(i),null;case 13:return nn(vn),o=i.flags,o&4096?(i.flags=o&-4097|64,i):null;case 19:return nn(vn),null;case 4:return vo(),null;case 10:return zc(i),null;case 23:case 24:return pd(),null;default:return null}}function Jc(i,o){try{var u="",g=o;do u+=Pe(g),g=g.return;while(g);var b=u}catch(C){b=`
|
|
7879
7879
|
Error generating stack: `+C.message+`
|
|
7880
|
-
`+C.stack}return{value:i,source:o,stack:b}}function Qc(i,o){try{console.error(o.value)}catch(u){setTimeout(function(){throw u})}}var rw=typeof WeakMap=="function"?WeakMap:Map;function mg(i,o,u){u=Fi(-1,u),u.tag=3,u.payload={element:null};var g=o.value;return u.callback=function(){Xl||(Xl=!0,ud=g),Qc(i,o)},u}function vg(i,o,u){u=Fi(-1,u),u.tag=3;var g=i.type.getDerivedStateFromError;if(typeof g=="function"){var b=o.value;u.payload=function(){return Qc(i,o),g(b)}}var C=i.stateNode;return C!==null&&typeof C.componentDidCatch=="function"&&(u.callback=function(){typeof g!="function"&&(di===null?di=new Set([this]):di.add(this),Qc(i,o));var A=o.stack;this.componentDidCatch(o.value,{componentStack:A!==null?A:""})}),u}var ow=typeof WeakSet=="function"?WeakSet:Set;function yg(i){var o=i.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(u){Xi(i,u)}else o.current=null}function sw(i,o){switch(o.tag){case 0:case 11:case 15:case 22:return;case 1:if(o.flags&256&&i!==null){var u=i.memoizedProps,g=i.memoizedState;i=o.stateNode,o=i.getSnapshotBeforeUpdate(o.elementType===o.type?u:Va(o.type,u),g),i.__reactInternalSnapshotBeforeUpdate=o}return;case 3:o.flags&256&&Sc(o.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(a(163))}function lw(i,o,u){switch(u.tag){case 0:case 11:case 15:case 22:if(o=u.updateQueue,o=o!==null?o.lastEffect:null,o!==null){i=o=o.next;do{if((i.tag&3)===3){var g=i.create;i.destroy=g()}i=i.next}while(i!==o)}if(o=u.updateQueue,o=o!==null?o.lastEffect:null,o!==null){i=o=o.next;do{var b=i;g=b.next,b=b.tag,(b&4)!==0&&(b&1)!==0&&(zg(u,i),mw(u,i)),i=g}while(i!==o)}return;case 1:i=u.stateNode,u.flags&4&&(o===null?i.componentDidMount():(g=u.elementType===u.type?o.memoizedProps:Va(u.type,o.memoizedProps),i.componentDidUpdate(g,o.memoizedState,i.__reactInternalSnapshotBeforeUpdate))),o=u.updateQueue,o!==null&&Ip(u,o,i);return;case 3:if(o=u.updateQueue,o!==null){if(i=null,u.child!==null)switch(u.child.tag){case 5:i=u.child.stateNode;break;case 1:i=u.child.stateNode}Ip(u,o,i)}return;case 5:i=u.stateNode,o===null&&u.flags&4&&gp(u.type,u.memoizedProps)&&i.focus();return;case 6:return;case 4:return;case 12:return;case 13:u.memoizedState===null&&(u=u.alternate,u!==null&&(u=u.memoizedState,u!==null&&(u=u.dehydrated,u!==null&&pl(u))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(a(163))}function bg(i,o){for(var u=i;;){if(u.tag===5){var g=u.stateNode;if(o)g=g.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{g=u.stateNode;var b=u.memoizedProps.style;b=b!=null&&b.hasOwnProperty("display")?b.display:null,g.style.display=X("display",b)}}else if(u.tag===6)u.stateNode.nodeValue=o?"":u.memoizedProps;else if((u.tag!==23&&u.tag!==24||u.memoizedState===null||u===i)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===i)break;for(;u.sibling===null;){if(u.return===null||u.return===i)return;u=u.return}u.sibling.return=u.return,u=u.sibling}}function wg(i,o){if(Ar&&typeof Ar.onCommitFiberUnmount=="function")try{Ar.onCommitFiberUnmount(Ec,o)}catch{}switch(o.tag){case 0:case 11:case 14:case 15:case 22:if(i=o.updateQueue,i!==null&&(i=i.lastEffect,i!==null)){var u=i=i.next;do{var g=u,b=g.destroy;if(g=g.tag,b!==void 0)if((g&4)!==0)zg(o,u);else{g=o;try{b()}catch(C){Xi(g,C)}}u=u.next}while(u!==i)}break;case 1:if(yg(o),i=o.stateNode,typeof i.componentWillUnmount=="function")try{i.props=o.memoizedProps,i.state=o.memoizedState,i.componentWillUnmount()}catch(C){Xi(o,C)}break;case 5:yg(o);break;case 4:Cg(i,o)}}function kg(i){i.alternate=null,i.child=null,i.dependencies=null,i.firstEffect=null,i.lastEffect=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.return=null,i.updateQueue=null}function xg(i){return i.tag===5||i.tag===3||i.tag===4}function Sg(i){t:{for(var o=i.return;o!==null;){if(xg(o))break t;o=o.return}throw Error(a(160))}var u=o;switch(o=u.stateNode,u.tag){case 5:var g=!1;break;case 3:o=o.containerInfo,g=!0;break;case 4:o=o.containerInfo,g=!0;break;default:throw Error(a(161))}u.flags&16&&(qn(o,""),u.flags&=-17);t:e:for(u=i;;){for(;u.sibling===null;){if(u.return===null||xg(u.return)){u=null;break t}u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2)){u=u.stateNode;break t}}g?td(i,u,o):ed(i,u,o)}function td(i,o,u){var g=i.tag,b=g===5||g===6;if(b)i=b?i.stateNode:i.stateNode.instance,o?u.nodeType===8?u.parentNode.insertBefore(i,o):u.insertBefore(i,o):(u.nodeType===8?(o=u.parentNode,o.insertBefore(i,u)):(o=u,o.appendChild(i)),u=u._reactRootContainer,u!=null||o.onclick!==null||(o.onclick=Cl));else if(g!==4&&(i=i.child,i!==null))for(td(i,o,u),i=i.sibling;i!==null;)td(i,o,u),i=i.sibling}function ed(i,o,u){var g=i.tag,b=g===5||g===6;if(b)i=b?i.stateNode:i.stateNode.instance,o?u.insertBefore(i,o):u.appendChild(i);else if(g!==4&&(i=i.child,i!==null))for(ed(i,o,u),i=i.sibling;i!==null;)ed(i,o,u),i=i.sibling}function Cg(i,o){for(var u=o,g=!1,b,C;;){if(!g){g=u.return;t:for(;;){if(g===null)throw Error(a(160));switch(b=g.stateNode,g.tag){case 5:C=!1;break t;case 3:b=b.containerInfo,C=!0;break t;case 4:b=b.containerInfo,C=!0;break t}g=g.return}g=!0}if(u.tag===5||u.tag===6){t:for(var A=i,z=u,W=z;;)if(wg(A,W),W.child!==null&&W.tag!==4)W.child.return=W,W=W.child;else{if(W===z)break t;for(;W.sibling===null;){if(W.return===null||W.return===z)break t;W=W.return}W.sibling.return=W.return,W=W.sibling}C?(A=b,z=u.stateNode,A.nodeType===8?A.parentNode.removeChild(z):A.removeChild(z)):b.removeChild(u.stateNode)}else if(u.tag===4){if(u.child!==null){b=u.stateNode.containerInfo,C=!0,u.child.return=u,u=u.child;continue}}else if(wg(i,u),u.child!==null){u.child.return=u,u=u.child;continue}if(u===o)break;for(;u.sibling===null;){if(u.return===null||u.return===o)return;u=u.return,u.tag===4&&(g=!1)}u.sibling.return=u.return,u=u.sibling}}function nd(i,o){switch(o.tag){case 0:case 11:case 14:case 15:case 22:var u=o.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var g=u=u.next;do(g.tag&3)===3&&(i=g.destroy,g.destroy=void 0,i!==void 0&&i()),g=g.next;while(g!==u)}return;case 1:return;case 5:if(u=o.stateNode,u!=null){g=o.memoizedProps;var b=i!==null?i.memoizedProps:g;i=o.type;var C=o.updateQueue;if(o.updateQueue=null,C!==null){for(u[El]=g,i==="input"&&g.type==="radio"&&g.name!=null&&M(u,g),Ge(i,b),o=Ge(i,g),b=0;b<C.length;b+=2){var A=C[b],z=C[b+1];A==="style"?Ut(u,z):A==="dangerouslySetInnerHTML"?Bn(u,z):A==="children"?qn(u,z):dt(u,A,z,o)}switch(i){case"input":D(u,g);break;case"textarea":ee(u,g);break;case"select":i=u._wrapperState.wasMultiple,u._wrapperState.wasMultiple=!!g.multiple,C=g.value,C!=null?Xt(u,!!g.multiple,C,!1):i!==!!g.multiple&&(g.defaultValue!=null?Xt(u,!!g.multiple,g.defaultValue,!0):Xt(u,!!g.multiple,g.multiple?[]:"",!1))}}}return;case 6:if(o.stateNode===null)throw Error(a(162));o.stateNode.nodeValue=o.memoizedProps;return;case 3:u=o.stateNode,u.hydrate&&(u.hydrate=!1,pl(u.containerInfo));return;case 12:return;case 13:o.memoizedState!==null&&(sd=_n(),bg(o.child,!0)),Tg(o);return;case 19:Tg(o);return;case 17:return;case 23:case 24:bg(o,o.memoizedState!==null);return}throw Error(a(163))}function Tg(i){var o=i.updateQueue;if(o!==null){i.updateQueue=null;var u=i.stateNode;u===null&&(u=i.stateNode=new ow),o.forEach(function(g){var b=bw.bind(null,i,g);u.has(g)||(u.add(g),g.then(b,b))})}}function uw(i,o){return i!==null&&(i=i.memoizedState,i===null||i.dehydrated!==null)?(o=o.memoizedState,o!==null&&o.dehydrated===null):!1}var cw=Math.ceil,Ul=_.ReactCurrentDispatcher,ad=_.ReactCurrentOwner,ue=0,aa=null,An=null,Gn=0,Ir=0,id=qi(0),Rn=0,Yl=null,bo=0,Ss=0,wo=0,rd=0,od=null,sd=0,ld=1/0;function ko(){ld=_n()+500}var _t=null,Xl=!1,ud=null,di=null,Vi=!1,Cs=null,Ts=90,cd=[],dd=[],Mi=null,Es=0,fd=null,Zl=-1,Ai=0,Jl=0,Ps=null,Ql=!1;function wa(){return(ue&48)!==0?_n():Zl!==-1?Zl:Zl=_n()}function Gi(i){if(i=i.mode,(i&2)===0)return 1;if((i&4)===0)return po()===99?1:2;if(Ai===0&&(Ai=bo),Zb.transition!==0){Jl!==0&&(Jl=od!==null?od.pendingLanes:0),i=Ai;var o=4186112&~Jl;return o&=-o,o===0&&(i=4186112&~i,o=i&-i,o===0&&(o=8192)),o}return i=po(),(ue&4)!==0&&i===98?i=Jr(12,Ai):(i=cc(i),i=Jr(i,Ai)),i}function Ui(i,o,u){if(50<Es)throw Es=0,fd=null,Error(a(185));if(i=tu(i,o),i===null)return null;kr(i,o,u),i===aa&&(wo|=o,Rn===4&&xo(i,Gn));var g=po();o===1?(ue&8)!==0&&(ue&48)===0?hd(i):(Da(i,u),ue===0&&(ko(),si())):((ue&4)===0||g!==98&&g!==99||(Mi===null?Mi=new Set([i]):Mi.add(i)),Da(i,u)),od=i}function tu(i,o){i.lanes|=o;var u=i.alternate;for(u!==null&&(u.lanes|=o),u=i,i=i.return;i!==null;)i.childLanes|=o,u=i.alternate,u!==null&&(u.childLanes|=o),u=i,i=i.return;return u.tag===3?u.stateNode:null}function Da(i,o){for(var u=i.callbackNode,g=i.suspendedLanes,b=i.pingedLanes,C=i.expirationTimes,A=i.pendingLanes;0<A;){var z=31-Pa(A),W=1<<z,ct=C[z];if(ct===-1){if((W&g)===0||(W&b)!==0){ct=o,Oi(W);var $t=_e;C[z]=10<=$t?ct+250:6<=$t?ct+5e3:-1}}else ct<=o&&(i.expiredLanes|=W);A&=~W}if(g=br(i,i===aa?Gn:0),o=_e,g===0)u!==null&&(u!==Nc&&Mc(u),i.callbackNode=null,i.callbackPriority=0);else{if(u!==null){if(i.callbackPriority===o)return;u!==Nc&&Mc(u)}o===15?(u=hd.bind(null,i),Ti===null?(Ti=[u],Ll=Pc(Nl,Np)):Ti.push(u),u=Nc):o===14?u=cs(99,hd.bind(null,i)):(u=dc(o),u=cs(u,Eg.bind(null,i))),i.callbackPriority=o,i.callbackNode=u}}function Eg(i){if(Zl=-1,Jl=Ai=0,(ue&48)!==0)throw Error(a(327));var o=i.callbackNode;if(Yi()&&i.callbackNode!==o)return null;var u=br(i,i===aa?Gn:0);if(u===0)return null;var g=u,b=ue;ue|=16;var C=Ng();(aa!==i||Gn!==g)&&(ko(),So(i,g));do try{hw();break}catch(z){Ag(i,z)}while(!0);if(Bc(),Ul.current=C,ue=b,An!==null?g=0:(aa=null,Gn=0,g=Rn),(bo&wo)!==0)So(i,0);else if(g!==0){if(g===2&&(ue|=64,i.hydrate&&(i.hydrate=!1,Sc(i.containerInfo)),u=vl(i),u!==0&&(g=Ms(i,u))),g===1)throw o=Yl,So(i,0),xo(i,u),Da(i,_n()),o;switch(i.finishedWork=i.current.alternate,i.finishedLanes=u,g){case 0:case 1:throw Error(a(345));case 2:Dr(i);break;case 3:if(xo(i,u),(u&62914560)===u&&(g=sd+500-_n(),10<g)){if(br(i,0)!==0)break;if(b=i.suspendedLanes,(b&u)!==u){wa(),i.pingedLanes|=i.suspendedLanes&b;break}i.timeoutHandle=mp(Dr.bind(null,i),g);break}Dr(i);break;case 4:if(xo(i,u),(u&4186112)===u)break;for(g=i.eventTimes,b=-1;0<u;){var A=31-Pa(u);C=1<<A,A=g[A],A>b&&(b=A),u&=~C}if(u=b,u=_n()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*cw(u/1960))-u,10<u){i.timeoutHandle=mp(Dr.bind(null,i),u);break}Dr(i);break;case 5:Dr(i);break;default:throw Error(a(329))}}return Da(i,_n()),i.callbackNode===o?Eg.bind(null,i):null}function xo(i,o){for(o&=~rd,o&=~wo,i.suspendedLanes|=o,i.pingedLanes&=~o,i=i.expirationTimes;0<o;){var u=31-Pa(o),g=1<<u;i[u]=-1,o&=~g}}function hd(i){if((ue&48)!==0)throw Error(a(327));if(Yi(),i===aa&&(i.expiredLanes&Gn)!==0){var o=Gn,u=Ms(i,o);(bo&wo)!==0&&(o=br(i,o),u=Ms(i,o))}else o=br(i,0),u=Ms(i,o);if(i.tag!==0&&u===2&&(ue|=64,i.hydrate&&(i.hydrate=!1,Sc(i.containerInfo)),o=vl(i),o!==0&&(u=Ms(i,o))),u===1)throw u=Yl,So(i,0),xo(i,o),Da(i,_n()),u;return i.finishedWork=i.current.alternate,i.finishedLanes=o,Dr(i),Da(i,_n()),null}function dw(){if(Mi!==null){var i=Mi;Mi=null,i.forEach(function(o){o.expiredLanes|=24&o.pendingLanes,Da(o,_n())})}si()}function Pg(i,o){var u=ue;ue|=1;try{return i(o)}finally{ue=u,ue===0&&(ko(),si())}}function Mg(i,o){var u=ue;ue&=-2,ue|=8;try{return i(o)}finally{ue=u,ue===0&&(ko(),si())}}function eu(i,o){mn(id,Ir),Ir|=o,bo|=o}function pd(){Ir=id.current,nn(id)}function So(i,o){i.finishedWork=null,i.finishedLanes=0;var u=i.timeoutHandle;if(u!==-1&&(i.timeoutHandle=-1,_b(u)),An!==null)for(u=An.return;u!==null;){var g=u;switch(g.tag){case 1:g=g.type.childContextTypes,g!=null&&Ml();break;case 3:vo(),nn(ga),nn(Wn),qc();break;case 5:jc(g);break;case 4:vo();break;case 13:nn(vn);break;case 19:nn(vn);break;case 10:zc(g);break;case 23:case 24:pd()}u=u.return}aa=i,An=Zi(i.current,null),Gn=Ir=bo=o,Rn=0,Yl=null,rd=wo=Ss=0}function Ag(i,o){do{var u=An;try{if(Bc(),ms.current=Vl,Hl){for(var g=bn.memoizedState;g!==null;){var b=g.queue;b!==null&&(b.pending=null),g=g.next}Hl=!1}if(vs=0,Dn=Vn=bn=null,ys=!1,ad.current=null,u===null||u.return===null){Rn=1,Yl=o,An=null;break}t:{var C=i,A=u.return,z=u,W=o;if(o=Gn,z.flags|=2048,z.firstEffect=z.lastEffect=null,W!==null&&typeof W=="object"&&typeof W.then=="function"){var ct=W;if((z.mode&2)===0){var $t=z.alternate;$t?(z.updateQueue=$t.updateQueue,z.memoizedState=$t.memoizedState,z.lanes=$t.lanes):(z.updateQueue=null,z.memoizedState=null)}var fe=(vn.current&1)!==0,Et=A;do{var Jt;if(Jt=Et.tag===13){var ce=Et.memoizedState;if(ce!==null)Jt=ce.dehydrated!==null;else{var se=Et.memoizedProps;Jt=se.fallback===void 0?!1:se.unstable_avoidThisFallback!==!0?!0:!fe}}if(Jt){var et=Et.updateQueue;if(et===null){var U=new Set;U.add(ct),Et.updateQueue=U}else et.add(ct);if((Et.mode&2)===0){if(Et.flags|=64,z.flags|=16384,z.flags&=-2981,z.tag===1)if(z.alternate===null)z.tag=17;else{var Q=Fi(-1,1);Q.tag=2,Wi(z,Q)}z.lanes|=1;break t}W=void 0,z=o;var kt=C.pingCache;if(kt===null?(kt=C.pingCache=new rw,W=new Set,kt.set(ct,W)):(W=kt.get(ct),W===void 0&&(W=new Set,kt.set(ct,W))),!W.has(z)){W.add(z);var Ct=yw.bind(null,C,ct,z);ct.then(Ct,Ct)}Et.flags|=4096,Et.lanes=o;break t}Et=Et.return}while(Et!==null);W=Error((ln(z.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
|
7880
|
+
`+C.stack}return{value:i,source:o,stack:b}}function Qc(i,o){try{console.error(o.value)}catch(u){setTimeout(function(){throw u})}}var rw=typeof WeakMap=="function"?WeakMap:Map;function mg(i,o,u){u=Fi(-1,u),u.tag=3,u.payload={element:null};var g=o.value;return u.callback=function(){Xl||(Xl=!0,ud=g),Qc(i,o)},u}function vg(i,o,u){u=Fi(-1,u),u.tag=3;var g=i.type.getDerivedStateFromError;if(typeof g=="function"){var b=o.value;u.payload=function(){return Qc(i,o),g(b)}}var C=i.stateNode;return C!==null&&typeof C.componentDidCatch=="function"&&(u.callback=function(){typeof g!="function"&&(ci===null?ci=new Set([this]):ci.add(this),Qc(i,o));var A=o.stack;this.componentDidCatch(o.value,{componentStack:A!==null?A:""})}),u}var ow=typeof WeakSet=="function"?WeakSet:Set;function yg(i){var o=i.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(u){Xi(i,u)}else o.current=null}function sw(i,o){switch(o.tag){case 0:case 11:case 15:case 22:return;case 1:if(o.flags&256&&i!==null){var u=i.memoizedProps,g=i.memoizedState;i=o.stateNode,o=i.getSnapshotBeforeUpdate(o.elementType===o.type?u:_a(o.type,u),g),i.__reactInternalSnapshotBeforeUpdate=o}return;case 3:o.flags&256&&Sc(o.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(a(163))}function lw(i,o,u){switch(u.tag){case 0:case 11:case 15:case 22:if(o=u.updateQueue,o=o!==null?o.lastEffect:null,o!==null){i=o=o.next;do{if((i.tag&3)===3){var g=i.create;i.destroy=g()}i=i.next}while(i!==o)}if(o=u.updateQueue,o=o!==null?o.lastEffect:null,o!==null){i=o=o.next;do{var b=i;g=b.next,b=b.tag,(b&4)!==0&&(b&1)!==0&&(zg(u,i),mw(u,i)),i=g}while(i!==o)}return;case 1:i=u.stateNode,u.flags&4&&(o===null?i.componentDidMount():(g=u.elementType===u.type?o.memoizedProps:_a(u.type,o.memoizedProps),i.componentDidUpdate(g,o.memoizedState,i.__reactInternalSnapshotBeforeUpdate))),o=u.updateQueue,o!==null&&Ip(u,o,i);return;case 3:if(o=u.updateQueue,o!==null){if(i=null,u.child!==null)switch(u.child.tag){case 5:i=u.child.stateNode;break;case 1:i=u.child.stateNode}Ip(u,o,i)}return;case 5:i=u.stateNode,o===null&&u.flags&4&&gp(u.type,u.memoizedProps)&&i.focus();return;case 6:return;case 4:return;case 12:return;case 13:u.memoizedState===null&&(u=u.alternate,u!==null&&(u=u.memoizedState,u!==null&&(u=u.dehydrated,u!==null&&pl(u))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(a(163))}function bg(i,o){for(var u=i;;){if(u.tag===5){var g=u.stateNode;if(o)g=g.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{g=u.stateNode;var b=u.memoizedProps.style;b=b!=null&&b.hasOwnProperty("display")?b.display:null,g.style.display=X("display",b)}}else if(u.tag===6)u.stateNode.nodeValue=o?"":u.memoizedProps;else if((u.tag!==23&&u.tag!==24||u.memoizedState===null||u===i)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===i)break;for(;u.sibling===null;){if(u.return===null||u.return===i)return;u=u.return}u.sibling.return=u.return,u=u.sibling}}function wg(i,o){if(Ar&&typeof Ar.onCommitFiberUnmount=="function")try{Ar.onCommitFiberUnmount(Ec,o)}catch{}switch(o.tag){case 0:case 11:case 14:case 15:case 22:if(i=o.updateQueue,i!==null&&(i=i.lastEffect,i!==null)){var u=i=i.next;do{var g=u,b=g.destroy;if(g=g.tag,b!==void 0)if((g&4)!==0)zg(o,u);else{g=o;try{b()}catch(C){Xi(g,C)}}u=u.next}while(u!==i)}break;case 1:if(yg(o),i=o.stateNode,typeof i.componentWillUnmount=="function")try{i.props=o.memoizedProps,i.state=o.memoizedState,i.componentWillUnmount()}catch(C){Xi(o,C)}break;case 5:yg(o);break;case 4:Cg(i,o)}}function kg(i){i.alternate=null,i.child=null,i.dependencies=null,i.firstEffect=null,i.lastEffect=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.return=null,i.updateQueue=null}function xg(i){return i.tag===5||i.tag===3||i.tag===4}function Sg(i){t:{for(var o=i.return;o!==null;){if(xg(o))break t;o=o.return}throw Error(a(160))}var u=o;switch(o=u.stateNode,u.tag){case 5:var g=!1;break;case 3:o=o.containerInfo,g=!0;break;case 4:o=o.containerInfo,g=!0;break;default:throw Error(a(161))}u.flags&16&&(qn(o,""),u.flags&=-17);t:e:for(u=i;;){for(;u.sibling===null;){if(u.return===null||xg(u.return)){u=null;break t}u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2)){u=u.stateNode;break t}}g?td(i,u,o):ed(i,u,o)}function td(i,o,u){var g=i.tag,b=g===5||g===6;if(b)i=b?i.stateNode:i.stateNode.instance,o?u.nodeType===8?u.parentNode.insertBefore(i,o):u.insertBefore(i,o):(u.nodeType===8?(o=u.parentNode,o.insertBefore(i,u)):(o=u,o.appendChild(i)),u=u._reactRootContainer,u!=null||o.onclick!==null||(o.onclick=Cl));else if(g!==4&&(i=i.child,i!==null))for(td(i,o,u),i=i.sibling;i!==null;)td(i,o,u),i=i.sibling}function ed(i,o,u){var g=i.tag,b=g===5||g===6;if(b)i=b?i.stateNode:i.stateNode.instance,o?u.insertBefore(i,o):u.appendChild(i);else if(g!==4&&(i=i.child,i!==null))for(ed(i,o,u),i=i.sibling;i!==null;)ed(i,o,u),i=i.sibling}function Cg(i,o){for(var u=o,g=!1,b,C;;){if(!g){g=u.return;t:for(;;){if(g===null)throw Error(a(160));switch(b=g.stateNode,g.tag){case 5:C=!1;break t;case 3:b=b.containerInfo,C=!0;break t;case 4:b=b.containerInfo,C=!0;break t}g=g.return}g=!0}if(u.tag===5||u.tag===6){t:for(var A=i,z=u,W=z;;)if(wg(A,W),W.child!==null&&W.tag!==4)W.child.return=W,W=W.child;else{if(W===z)break t;for(;W.sibling===null;){if(W.return===null||W.return===z)break t;W=W.return}W.sibling.return=W.return,W=W.sibling}C?(A=b,z=u.stateNode,A.nodeType===8?A.parentNode.removeChild(z):A.removeChild(z)):b.removeChild(u.stateNode)}else if(u.tag===4){if(u.child!==null){b=u.stateNode.containerInfo,C=!0,u.child.return=u,u=u.child;continue}}else if(wg(i,u),u.child!==null){u.child.return=u,u=u.child;continue}if(u===o)break;for(;u.sibling===null;){if(u.return===null||u.return===o)return;u=u.return,u.tag===4&&(g=!1)}u.sibling.return=u.return,u=u.sibling}}function nd(i,o){switch(o.tag){case 0:case 11:case 14:case 15:case 22:var u=o.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var g=u=u.next;do(g.tag&3)===3&&(i=g.destroy,g.destroy=void 0,i!==void 0&&i()),g=g.next;while(g!==u)}return;case 1:return;case 5:if(u=o.stateNode,u!=null){g=o.memoizedProps;var b=i!==null?i.memoizedProps:g;i=o.type;var C=o.updateQueue;if(o.updateQueue=null,C!==null){for(u[El]=g,i==="input"&&g.type==="radio"&&g.name!=null&&M(u,g),Ge(i,b),o=Ge(i,g),b=0;b<C.length;b+=2){var A=C[b],z=C[b+1];A==="style"?Ut(u,z):A==="dangerouslySetInnerHTML"?Bn(u,z):A==="children"?qn(u,z):dt(u,A,z,o)}switch(i){case"input":D(u,g);break;case"textarea":ee(u,g);break;case"select":i=u._wrapperState.wasMultiple,u._wrapperState.wasMultiple=!!g.multiple,C=g.value,C!=null?Xt(u,!!g.multiple,C,!1):i!==!!g.multiple&&(g.defaultValue!=null?Xt(u,!!g.multiple,g.defaultValue,!0):Xt(u,!!g.multiple,g.multiple?[]:"",!1))}}}return;case 6:if(o.stateNode===null)throw Error(a(162));o.stateNode.nodeValue=o.memoizedProps;return;case 3:u=o.stateNode,u.hydrate&&(u.hydrate=!1,pl(u.containerInfo));return;case 12:return;case 13:o.memoizedState!==null&&(sd=_n(),bg(o.child,!0)),Tg(o);return;case 19:Tg(o);return;case 17:return;case 23:case 24:bg(o,o.memoizedState!==null);return}throw Error(a(163))}function Tg(i){var o=i.updateQueue;if(o!==null){i.updateQueue=null;var u=i.stateNode;u===null&&(u=i.stateNode=new ow),o.forEach(function(g){var b=bw.bind(null,i,g);u.has(g)||(u.add(g),g.then(b,b))})}}function uw(i,o){return i!==null&&(i=i.memoizedState,i===null||i.dehydrated!==null)?(o=o.memoizedState,o!==null&&o.dehydrated===null):!1}var cw=Math.ceil,Ul=_.ReactCurrentDispatcher,ad=_.ReactCurrentOwner,ue=0,aa=null,An=null,Gn=0,Ir=0,id=qi(0),Rn=0,Yl=null,bo=0,Ss=0,wo=0,rd=0,od=null,sd=0,ld=1/0;function ko(){ld=_n()+500}var _t=null,Xl=!1,ud=null,ci=null,Vi=!1,Cs=null,Ts=90,cd=[],dd=[],Mi=null,Es=0,fd=null,Zl=-1,Ai=0,Jl=0,Ps=null,Ql=!1;function wa(){return(ue&48)!==0?_n():Zl!==-1?Zl:Zl=_n()}function Gi(i){if(i=i.mode,(i&2)===0)return 1;if((i&4)===0)return po()===99?1:2;if(Ai===0&&(Ai=bo),Zb.transition!==0){Jl!==0&&(Jl=od!==null?od.pendingLanes:0),i=Ai;var o=4186112&~Jl;return o&=-o,o===0&&(i=4186112&~i,o=i&-i,o===0&&(o=8192)),o}return i=po(),(ue&4)!==0&&i===98?i=Jr(12,Ai):(i=cc(i),i=Jr(i,Ai)),i}function Ui(i,o,u){if(50<Es)throw Es=0,fd=null,Error(a(185));if(i=tu(i,o),i===null)return null;kr(i,o,u),i===aa&&(wo|=o,Rn===4&&xo(i,Gn));var g=po();o===1?(ue&8)!==0&&(ue&48)===0?hd(i):(Ia(i,u),ue===0&&(ko(),oi())):((ue&4)===0||g!==98&&g!==99||(Mi===null?Mi=new Set([i]):Mi.add(i)),Ia(i,u)),od=i}function tu(i,o){i.lanes|=o;var u=i.alternate;for(u!==null&&(u.lanes|=o),u=i,i=i.return;i!==null;)i.childLanes|=o,u=i.alternate,u!==null&&(u.childLanes|=o),u=i,i=i.return;return u.tag===3?u.stateNode:null}function Ia(i,o){for(var u=i.callbackNode,g=i.suspendedLanes,b=i.pingedLanes,C=i.expirationTimes,A=i.pendingLanes;0<A;){var z=31-Ea(A),W=1<<z,ct=C[z];if(ct===-1){if((W&g)===0||(W&b)!==0){ct=o,Oi(W);var $t=_e;C[z]=10<=$t?ct+250:6<=$t?ct+5e3:-1}}else ct<=o&&(i.expiredLanes|=W);A&=~W}if(g=br(i,i===aa?Gn:0),o=_e,g===0)u!==null&&(u!==Nc&&Mc(u),i.callbackNode=null,i.callbackPriority=0);else{if(u!==null){if(i.callbackPriority===o)return;u!==Nc&&Mc(u)}o===15?(u=hd.bind(null,i),Ti===null?(Ti=[u],Ll=Pc(Nl,Np)):Ti.push(u),u=Nc):o===14?u=cs(99,hd.bind(null,i)):(u=dc(o),u=cs(u,Eg.bind(null,i))),i.callbackPriority=o,i.callbackNode=u}}function Eg(i){if(Zl=-1,Jl=Ai=0,(ue&48)!==0)throw Error(a(327));var o=i.callbackNode;if(Yi()&&i.callbackNode!==o)return null;var u=br(i,i===aa?Gn:0);if(u===0)return null;var g=u,b=ue;ue|=16;var C=Ng();(aa!==i||Gn!==g)&&(ko(),So(i,g));do try{hw();break}catch(z){Ag(i,z)}while(!0);if(Bc(),Ul.current=C,ue=b,An!==null?g=0:(aa=null,Gn=0,g=Rn),(bo&wo)!==0)So(i,0);else if(g!==0){if(g===2&&(ue|=64,i.hydrate&&(i.hydrate=!1,Sc(i.containerInfo)),u=vl(i),u!==0&&(g=Ms(i,u))),g===1)throw o=Yl,So(i,0),xo(i,u),Ia(i,_n()),o;switch(i.finishedWork=i.current.alternate,i.finishedLanes=u,g){case 0:case 1:throw Error(a(345));case 2:Dr(i);break;case 3:if(xo(i,u),(u&62914560)===u&&(g=sd+500-_n(),10<g)){if(br(i,0)!==0)break;if(b=i.suspendedLanes,(b&u)!==u){wa(),i.pingedLanes|=i.suspendedLanes&b;break}i.timeoutHandle=mp(Dr.bind(null,i),g);break}Dr(i);break;case 4:if(xo(i,u),(u&4186112)===u)break;for(g=i.eventTimes,b=-1;0<u;){var A=31-Ea(u);C=1<<A,A=g[A],A>b&&(b=A),u&=~C}if(u=b,u=_n()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*cw(u/1960))-u,10<u){i.timeoutHandle=mp(Dr.bind(null,i),u);break}Dr(i);break;case 5:Dr(i);break;default:throw Error(a(329))}}return Ia(i,_n()),i.callbackNode===o?Eg.bind(null,i):null}function xo(i,o){for(o&=~rd,o&=~wo,i.suspendedLanes|=o,i.pingedLanes&=~o,i=i.expirationTimes;0<o;){var u=31-Ea(o),g=1<<u;i[u]=-1,o&=~g}}function hd(i){if((ue&48)!==0)throw Error(a(327));if(Yi(),i===aa&&(i.expiredLanes&Gn)!==0){var o=Gn,u=Ms(i,o);(bo&wo)!==0&&(o=br(i,o),u=Ms(i,o))}else o=br(i,0),u=Ms(i,o);if(i.tag!==0&&u===2&&(ue|=64,i.hydrate&&(i.hydrate=!1,Sc(i.containerInfo)),o=vl(i),o!==0&&(u=Ms(i,o))),u===1)throw u=Yl,So(i,0),xo(i,o),Ia(i,_n()),u;return i.finishedWork=i.current.alternate,i.finishedLanes=o,Dr(i),Ia(i,_n()),null}function dw(){if(Mi!==null){var i=Mi;Mi=null,i.forEach(function(o){o.expiredLanes|=24&o.pendingLanes,Ia(o,_n())})}oi()}function Pg(i,o){var u=ue;ue|=1;try{return i(o)}finally{ue=u,ue===0&&(ko(),oi())}}function Mg(i,o){var u=ue;ue&=-2,ue|=8;try{return i(o)}finally{ue=u,ue===0&&(ko(),oi())}}function eu(i,o){mn(id,Ir),Ir|=o,bo|=o}function pd(){Ir=id.current,nn(id)}function So(i,o){i.finishedWork=null,i.finishedLanes=0;var u=i.timeoutHandle;if(u!==-1&&(i.timeoutHandle=-1,_b(u)),An!==null)for(u=An.return;u!==null;){var g=u;switch(g.tag){case 1:g=g.type.childContextTypes,g!=null&&Ml();break;case 3:vo(),nn(ga),nn(Wn),qc();break;case 5:jc(g);break;case 4:vo();break;case 13:nn(vn);break;case 19:nn(vn);break;case 10:zc(g);break;case 23:case 24:pd()}u=u.return}aa=i,An=Zi(i.current,null),Gn=Ir=bo=o,Rn=0,Yl=null,rd=wo=Ss=0}function Ag(i,o){do{var u=An;try{if(Bc(),ms.current=Vl,Hl){for(var g=bn.memoizedState;g!==null;){var b=g.queue;b!==null&&(b.pending=null),g=g.next}Hl=!1}if(vs=0,Dn=Vn=bn=null,ys=!1,ad.current=null,u===null||u.return===null){Rn=1,Yl=o,An=null;break}t:{var C=i,A=u.return,z=u,W=o;if(o=Gn,z.flags|=2048,z.firstEffect=z.lastEffect=null,W!==null&&typeof W=="object"&&typeof W.then=="function"){var ct=W;if((z.mode&2)===0){var $t=z.alternate;$t?(z.updateQueue=$t.updateQueue,z.memoizedState=$t.memoizedState,z.lanes=$t.lanes):(z.updateQueue=null,z.memoizedState=null)}var fe=(vn.current&1)!==0,Et=A;do{var Jt;if(Jt=Et.tag===13){var ce=Et.memoizedState;if(ce!==null)Jt=ce.dehydrated!==null;else{var se=Et.memoizedProps;Jt=se.fallback===void 0?!1:se.unstable_avoidThisFallback!==!0?!0:!fe}}if(Jt){var et=Et.updateQueue;if(et===null){var U=new Set;U.add(ct),Et.updateQueue=U}else et.add(ct);if((Et.mode&2)===0){if(Et.flags|=64,z.flags|=16384,z.flags&=-2981,z.tag===1)if(z.alternate===null)z.tag=17;else{var Q=Fi(-1,1);Q.tag=2,Wi(z,Q)}z.lanes|=1;break t}W=void 0,z=o;var kt=C.pingCache;if(kt===null?(kt=C.pingCache=new rw,W=new Set,kt.set(ct,W)):(W=kt.get(ct),W===void 0&&(W=new Set,kt.set(ct,W))),!W.has(z)){W.add(z);var Ct=yw.bind(null,C,ct,z);ct.then(Ct,Ct)}Et.flags|=4096,Et.lanes=o;break t}Et=Et.return}while(Et!==null);W=Error((ln(z.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
|
7881
7881
|
|
|
7882
|
-
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Rn!==5&&(Rn=2),W=Jc(W,z),Et=A;do{switch(Et.tag){case 3:C=W,Et.flags|=4096,o&=-o,Et.lanes|=o;var he=mg(Et,C,o);zp(Et,he);break t;case 1:C=W;var Gt=Et.type,pe=Et.stateNode;if((Et.flags&64)===0&&(typeof Gt.getDerivedStateFromError=="function"||pe!==null&&typeof pe.componentDidCatch=="function"&&(di===null||!di.has(pe)))){Et.flags|=4096,o&=-o,Et.lanes|=o;var Te=vg(Et,C,o);zp(Et,Te);break t}}Et=Et.return}while(Et!==null)}Bg(u)}catch(be){o=be,An===u&&u!==null&&(An=u=u.return);continue}break}while(!0)}function Ng(){var i=Ul.current;return Ul.current=Vl,i===null?Vl:i}function Ms(i,o){var u=ue;ue|=16;var g=Ng();aa===i&&Gn===o||So(i,o);do try{fw();break}catch(b){Ag(i,b)}while(!0);if(Bc(),ue=u,Ul.current=g,An!==null)throw Error(a(261));return aa=null,Gn=0,Rn}function fw(){for(;An!==null;)Lg(An)}function hw(){for(;An!==null&&!Ub();)Lg(An)}function Lg(i){var o=Dg(i.alternate,i,Ir);i.memoizedProps=i.pendingProps,o===null?Bg(i):An=o,ad.current=null}function Bg(i){var o=i;do{var u=o.alternate;if(i=o.return,(o.flags&2048)===0){if(u=aw(u,o,Ir),u!==null){An=u;return}if(u=o,u.tag!==24&&u.tag!==23||u.memoizedState===null||(Ir&1073741824)!==0||(u.mode&4)===0){for(var g=0,b=u.child;b!==null;)g|=b.lanes|b.childLanes,b=b.sibling;u.childLanes=g}i!==null&&(i.flags&2048)===0&&(i.firstEffect===null&&(i.firstEffect=o.firstEffect),o.lastEffect!==null&&(i.lastEffect!==null&&(i.lastEffect.nextEffect=o.firstEffect),i.lastEffect=o.lastEffect),1<o.flags&&(i.lastEffect!==null?i.lastEffect.nextEffect=o:i.firstEffect=o,i.lastEffect=o))}else{if(u=iw(o),u!==null){u.flags&=2047,An=u;return}i!==null&&(i.firstEffect=i.lastEffect=null,i.flags|=2048)}if(o=o.sibling,o!==null){An=o;return}An=o=i}while(o!==null);Rn===0&&(Rn=5)}function Dr(i){var o=po();return Nr(99,pw.bind(null,i,o)),null}function pw(i,o){do Yi();while(Cs!==null);if((ue&48)!==0)throw Error(a(327));var u=i.finishedWork;if(u===null)return null;if(i.finishedWork=null,i.finishedLanes=0,u===i.current)throw Error(a(177));i.callbackNode=null;var g=u.lanes|u.childLanes,b=g,C=i.pendingLanes&~b;i.pendingLanes=b,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=b,i.mutableReadLanes&=b,i.entangledLanes&=b,b=i.entanglements;for(var A=i.eventTimes,z=i.expirationTimes;0<C;){var W=31-Pa(C),ct=1<<W;b[W]=0,A[W]=-1,z[W]=-1,C&=~ct}if(Mi!==null&&(g&24)===0&&Mi.has(i)&&Mi.delete(i),i===aa&&(An=aa=null,Gn=0),1<u.flags?u.lastEffect!==null?(u.lastEffect.nextEffect=u,g=u.firstEffect):g=u:g=u.firstEffect,g!==null){if(b=ue,ue|=32,ad.current=null,wc=Qr,A=Pn(),Fn(A)){if("selectionStart"in A)z={start:A.selectionStart,end:A.selectionEnd};else t:if(z=(z=A.ownerDocument)&&z.defaultView||window,(ct=z.getSelection&&z.getSelection())&&ct.rangeCount!==0){z=ct.anchorNode,C=ct.anchorOffset,W=ct.focusNode,ct=ct.focusOffset;try{z.nodeType,W.nodeType}catch{z=null;break t}var $t=0,fe=-1,Et=-1,Jt=0,ce=0,se=A,et=null;e:for(;;){for(var U;se!==z||C!==0&&se.nodeType!==3||(fe=$t+C),se!==W||ct!==0&&se.nodeType!==3||(Et=$t+ct),se.nodeType===3&&($t+=se.nodeValue.length),(U=se.firstChild)!==null;)et=se,se=U;for(;;){if(se===A)break e;if(et===z&&++Jt===C&&(fe=$t),et===W&&++ce===ct&&(Et=$t),(U=se.nextSibling)!==null)break;se=et,et=se.parentNode}se=U}z=fe===-1||Et===-1?null:{start:fe,end:Et}}else z=null;z=z||{start:0,end:0}}else z=null;kc={focusedElem:A,selectionRange:z},Qr=!1,Ps=null,Ql=!1,_t=g;do try{gw()}catch(be){if(_t===null)throw Error(a(330));Xi(_t,be),_t=_t.nextEffect}while(_t!==null);Ps=null,_t=g;do try{for(A=i;_t!==null;){var Q=_t.flags;if(Q&16&&qn(_t.stateNode,""),Q&128){var kt=_t.alternate;if(kt!==null){var Ct=kt.ref;Ct!==null&&(typeof Ct=="function"?Ct(null):Ct.current=null)}}switch(Q&1038){case 2:Sg(_t),_t.flags&=-3;break;case 6:Sg(_t),_t.flags&=-3,nd(_t.alternate,_t);break;case 1024:_t.flags&=-1025;break;case 1028:_t.flags&=-1025,nd(_t.alternate,_t);break;case 4:nd(_t.alternate,_t);break;case 8:z=_t,Cg(A,z);var he=z.alternate;kg(z),he!==null&&kg(he)}_t=_t.nextEffect}}catch(be){if(_t===null)throw Error(a(330));Xi(_t,be),_t=_t.nextEffect}while(_t!==null);if(Ct=kc,kt=Pn(),Q=Ct.focusedElem,A=Ct.selectionRange,kt!==Q&&Q&&Q.ownerDocument&&In(Q.ownerDocument.documentElement,Q)){for(A!==null&&Fn(Q)&&(kt=A.start,Ct=A.end,Ct===void 0&&(Ct=kt),"selectionStart"in Q?(Q.selectionStart=kt,Q.selectionEnd=Math.min(Ct,Q.value.length)):(Ct=(kt=Q.ownerDocument||document)&&kt.defaultView||window,Ct.getSelection&&(Ct=Ct.getSelection(),z=Q.textContent.length,he=Math.min(A.start,z),A=A.end===void 0?he:Math.min(A.end,z),!Ct.extend&&he>A&&(z=A,A=he,he=z),z=Fe(Q,he),C=Fe(Q,A),z&&C&&(Ct.rangeCount!==1||Ct.anchorNode!==z.node||Ct.anchorOffset!==z.offset||Ct.focusNode!==C.node||Ct.focusOffset!==C.offset)&&(kt=kt.createRange(),kt.setStart(z.node,z.offset),Ct.removeAllRanges(),he>A?(Ct.addRange(kt),Ct.extend(C.node,C.offset)):(kt.setEnd(C.node,C.offset),Ct.addRange(kt)))))),kt=[],Ct=Q;Ct=Ct.parentNode;)Ct.nodeType===1&&kt.push({element:Ct,left:Ct.scrollLeft,top:Ct.scrollTop});for(typeof Q.focus=="function"&&Q.focus(),Q=0;Q<kt.length;Q++)Ct=kt[Q],Ct.element.scrollLeft=Ct.left,Ct.element.scrollTop=Ct.top}Qr=!!wc,kc=wc=null,i.current=u,_t=g;do try{for(Q=i;_t!==null;){var Gt=_t.flags;if(Gt&36&&lw(Q,_t.alternate,_t),Gt&128){kt=void 0;var pe=_t.ref;if(pe!==null){var Te=_t.stateNode;_t.tag,kt=Te,typeof pe=="function"?pe(kt):pe.current=kt}}_t=_t.nextEffect}}catch(be){if(_t===null)throw Error(a(330));Xi(_t,be),_t=_t.nextEffect}while(_t!==null);_t=null,Xb(),ue=b}else i.current=u;if(Vi)Vi=!1,Cs=i,Ts=o;else for(_t=g;_t!==null;)o=_t.nextEffect,_t.nextEffect=null,_t.flags&8&&(Gt=_t,Gt.sibling=null,Gt.stateNode=null),_t=o;if(g=i.pendingLanes,g===0&&(di=null),g===1?i===fd?Es++:(Es=0,fd=i):Es=0,u=u.stateNode,Ar&&typeof Ar.onCommitFiberRoot=="function")try{Ar.onCommitFiberRoot(Ec,u,void 0,(u.current.flags&64)===64)}catch{}if(Da(i,_n()),Xl)throw Xl=!1,i=ud,ud=null,i;return(ue&8)!==0||si(),null}function gw(){for(;_t!==null;){var i=_t.alternate;Ql||Ps===null||((_t.flags&8)!==0?Ri(_t,Ps)&&(Ql=!0):_t.tag===13&&uw(i,_t)&&Ri(_t,Ps)&&(Ql=!0));var o=_t.flags;(o&256)!==0&&sw(i,_t),(o&512)===0||Vi||(Vi=!0,cs(97,function(){return Yi(),null})),_t=_t.nextEffect}}function Yi(){if(Ts!==90){var i=97<Ts?97:Ts;return Ts=90,Nr(i,vw)}return!1}function mw(i,o){cd.push(o,i),Vi||(Vi=!0,cs(97,function(){return Yi(),null}))}function zg(i,o){dd.push(o,i),Vi||(Vi=!0,cs(97,function(){return Yi(),null}))}function vw(){if(Cs===null)return!1;var i=Cs;if(Cs=null,(ue&48)!==0)throw Error(a(331));var o=ue;ue|=32;var u=dd;dd=[];for(var g=0;g<u.length;g+=2){var b=u[g],C=u[g+1],A=b.destroy;if(b.destroy=void 0,typeof A=="function")try{A()}catch(W){if(C===null)throw Error(a(330));Xi(C,W)}}for(u=cd,cd=[],g=0;g<u.length;g+=2){b=u[g],C=u[g+1];try{var z=b.create;b.destroy=z()}catch(W){if(C===null)throw Error(a(330));Xi(C,W)}}for(z=i.current.firstEffect;z!==null;)i=z.nextEffect,z.nextEffect=null,z.flags&8&&(z.sibling=null,z.stateNode=null),z=i;return ue=o,si(),!0}function Ig(i,o,u){o=Jc(u,o),o=mg(i,o,1),Wi(i,o),o=wa(),i=tu(i,1),i!==null&&(kr(i,1,o),Da(i,o))}function Xi(i,o){if(i.tag===3)Ig(i,i,o);else for(var u=i.return;u!==null;){if(u.tag===3){Ig(u,i,o);break}else if(u.tag===1){var g=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(di===null||!di.has(g))){i=Jc(o,i);var b=vg(u,i,1);if(Wi(u,b),b=wa(),u=tu(u,1),u!==null)kr(u,1,b),Da(u,b);else if(typeof g.componentDidCatch=="function"&&(di===null||!di.has(g)))try{g.componentDidCatch(o,i)}catch{}break}}u=u.return}}function yw(i,o,u){var g=i.pingCache;g!==null&&g.delete(o),o=wa(),i.pingedLanes|=i.suspendedLanes&u,aa===i&&(Gn&u)===u&&(Rn===4||Rn===3&&(Gn&62914560)===Gn&&500>_n()-sd?So(i,0):rd|=u),Da(i,o)}function bw(i,o){var u=i.stateNode;u!==null&&u.delete(o),o=0,o===0&&(o=i.mode,(o&2)===0?o=1:(o&4)===0?o=po()===99?1:2:(Ai===0&&(Ai=bo),o=ki(62914560&~Ai),o===0&&(o=4194304))),u=wa(),i=tu(i,o),i!==null&&(kr(i,o,u),Da(i,u))}var Dg;Dg=function(i,o,u){var g=o.lanes;if(i!==null)if(i.memoizedProps!==o.pendingProps||ga.current)Ga=!0;else if((u&g)!==0)Ga=(i.flags&16384)!==0;else{switch(Ga=!1,o.tag){case 3:og(o),Kc();break;case 5:$p(o);break;case 1:ma(o.type)&&Al(o);break;case 4:Rc(o,o.stateNode.containerInfo);break;case 10:g=o.memoizedProps.value;var b=o.type._context;mn(Bl,b._currentValue),b._currentValue=g;break;case 13:if(o.memoizedState!==null)return(u&o.child.childLanes)!==0?sg(i,o,u):(mn(vn,vn.current&1),o=Pi(i,o,u),o!==null?o.sibling:null);mn(vn,vn.current&1);break;case 19:if(g=(u&o.childLanes)!==0,(i.flags&64)!==0){if(g)return fg(i,o,u);o.flags|=64}if(b=o.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),mn(vn,vn.current),g)break;return null;case 23:case 24:return o.lanes=0,Gc(i,o,u)}return Pi(i,o,u)}else Ga=!1;switch(o.lanes=0,o.tag){case 2:if(g=o.type,i!==null&&(i.alternate=null,o.alternate=null,o.flags|=2),i=o.pendingProps,b=ho(o,Wn.current),mo(o,u),b=Hc(null,o,g,i,b,u),o.flags|=1,typeof b=="object"&&b!==null&&typeof b.render=="function"&&b.$$typeof===void 0){if(o.tag=1,o.memoizedState=null,o.updateQueue=null,ma(g)){var C=!0;Al(o)}else C=!1;o.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,Ic(o);var A=g.getDerivedStateFromProps;typeof A=="function"&&Dl(o,g,A,i),b.updater=Rl,o.stateNode=b,b._reactInternals=o,Dc(o,g,i,u),o=Yc(null,o,g,!0,C,u)}else o.tag=0,ya(null,o,b,u),o=o.child;return o;case 16:b=o.elementType;t:{switch(i!==null&&(i.alternate=null,o.alternate=null,o.flags|=2),i=o.pendingProps,C=b._init,b=C(b._payload),o.type=b,C=o.tag=kw(b),i=Va(b,i),C){case 0:o=Uc(null,o,b,i,u);break t;case 1:o=rg(null,o,b,i,u);break t;case 11:o=eg(null,o,b,i,u);break t;case 14:o=ng(null,o,b,Va(b.type,i),g,u);break t}throw Error(a(306,b,""))}return o;case 0:return g=o.type,b=o.pendingProps,b=o.elementType===g?b:Va(g,b),Uc(i,o,g,b,u);case 1:return g=o.type,b=o.pendingProps,b=o.elementType===g?b:Va(g,b),rg(i,o,g,b,u);case 3:if(og(o),g=o.updateQueue,i===null||g===null)throw Error(a(282));if(g=o.pendingProps,b=o.memoizedState,b=b!==null?b.element:null,Bp(i,o),ds(o,g,null,u),g=o.memoizedState.element,g===b)Kc(),o=Pi(i,o,u);else{if(b=o.stateNode,(C=b.hydrate)&&(_i=lo(o.stateNode.containerInfo.firstChild),Ei=o,C=ui=!0),C){if(i=b.mutableSourceEagerHydrationData,i!=null)for(b=0;b<i.length;b+=2)C=i[b],C._workInProgressVersionPrimary=i[b+1],yo.push(C);for(u=qp(o,null,g,u),o.child=u;u;)u.flags=u.flags&-3|1024,u=u.sibling}else ya(i,o,g,u),Kc();o=o.child}return o;case 5:return $p(o),i===null&&Oc(o),g=o.type,b=o.pendingProps,C=i!==null?i.memoizedProps:null,A=b.children,xc(g,b)?A=null:C!==null&&xc(g,C)&&(o.flags|=16),ig(i,o),ya(i,o,A,u),o.child;case 6:return i===null&&Oc(o),null;case 13:return sg(i,o,u);case 4:return Rc(o,o.stateNode.containerInfo),g=o.pendingProps,i===null?o.child=Kl(o,null,g,u):ya(i,o,g,u),o.child;case 11:return g=o.type,b=o.pendingProps,b=o.elementType===g?b:Va(g,b),eg(i,o,g,b,u);case 7:return ya(i,o,o.pendingProps,u),o.child;case 8:return ya(i,o,o.pendingProps.children,u),o.child;case 12:return ya(i,o,o.pendingProps.children,u),o.child;case 10:t:{g=o.type._context,b=o.pendingProps,A=o.memoizedProps,C=b.value;var z=o.type._context;if(mn(Bl,z._currentValue),z._currentValue=C,A!==null)if(z=A.value,C=Zt(z,C)?0:(typeof g._calculateChangedBits=="function"?g._calculateChangedBits(z,C):1073741823)|0,C===0){if(A.children===b.children&&!ga.current){o=Pi(i,o,u);break t}}else for(z=o.child,z!==null&&(z.return=o);z!==null;){var W=z.dependencies;if(W!==null){A=z.child;for(var ct=W.firstContext;ct!==null;){if(ct.context===g&&(ct.observedBits&C)!==0){z.tag===1&&(ct=Fi(-1,u&-u),ct.tag=2,Wi(z,ct)),z.lanes|=u,ct=z.alternate,ct!==null&&(ct.lanes|=u),Lp(z.return,u),W.lanes|=u;break}ct=ct.next}}else A=z.tag===10&&z.type===o.type?null:z.child;if(A!==null)A.return=z;else for(A=z;A!==null;){if(A===o){A=null;break}if(z=A.sibling,z!==null){z.return=A.return,A=z;break}A=A.return}z=A}ya(i,o,b.children,u),o=o.child}return o;case 9:return b=o.type,C=o.pendingProps,g=C.children,mo(o,u),b=za(b,C.unstable_observedBits),g=g(b),o.flags|=1,ya(i,o,g,u),o.child;case 14:return b=o.type,C=Va(b,o.pendingProps),C=Va(b.type,C),ng(i,o,b,C,g,u);case 15:return ag(i,o,o.type,o.pendingProps,g,u);case 17:return g=o.type,b=o.pendingProps,b=o.elementType===g?b:Va(g,b),i!==null&&(i.alternate=null,o.alternate=null,o.flags|=2),o.tag=1,ma(g)?(i=!0,Al(o)):i=!1,mo(o,u),jp(o,g,b),Dc(o,g,b,u),Yc(null,o,g,!0,i,u);case 19:return fg(i,o,u);case 23:return Gc(i,o,u);case 24:return Gc(i,o,u)}throw Error(a(156,o.tag))};function ww(i,o,u,g){this.tag=i,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Ra(i,o,u,g){return new ww(i,o,u,g)}function gd(i){return i=i.prototype,!(!i||!i.isReactComponent)}function kw(i){if(typeof i=="function")return gd(i)?1:0;if(i!=null){if(i=i.$$typeof,i===tt)return 11;if(i===ht)return 14}return 2}function Zi(i,o){var u=i.alternate;return u===null?(u=Ra(i.tag,o,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u.alternate=i,i.alternate=u):(u.pendingProps=o,u.type=i.type,u.flags=0,u.nextEffect=null,u.firstEffect=null,u.lastEffect=null),u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,o=i.dependencies,u.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u}function nu(i,o,u,g,b,C){var A=2;if(g=i,typeof i=="function")gd(i)&&(A=1);else if(typeof i=="string")A=5;else t:switch(i){case mt:return Co(u.children,b,C,o);case St:A=8,b|=16;break;case ft:A=8,b|=1;break;case Lt:return i=Ra(12,u,o,b|8),i.elementType=Lt,i.type=Lt,i.lanes=C,i;case H:return i=Ra(13,u,o,b),i.type=H,i.elementType=H,i.lanes=C,i;case s:return i=Ra(19,u,o,b),i.elementType=s,i.lanes=C,i;case O:return md(u,b,C,o);case wt:return i=Ra(24,u,o,b),i.elementType=wt,i.lanes=C,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case Nt:A=10;break t;case At:A=9;break t;case tt:A=11;break t;case ht:A=14;break t;case x:A=16,g=null;break t;case lt:A=22;break t}throw Error(a(130,i==null?i:typeof i,""))}return o=Ra(A,u,o,b),o.elementType=i,o.type=g,o.lanes=C,o}function Co(i,o,u,g){return i=Ra(7,i,g,o),i.lanes=u,i}function md(i,o,u,g){return i=Ra(23,i,g,o),i.elementType=O,i.lanes=u,i}function vd(i,o,u){return i=Ra(6,i,null,o),i.lanes=u,i}function yd(i,o,u){return o=Ra(4,i.children!==null?i.children:[],i.key,o),o.lanes=u,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}function xw(i,o,u){this.tag=o,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=u,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=wr(0),this.expirationTimes=wr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wr(0),this.mutableSourceEagerHydrationData=null}function Sw(i,o,u){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:v,key:g==null?null:""+g,children:i,containerInfo:o,implementation:u}}function au(i,o,u,g){var b=o.current,C=wa(),A=Gi(b);t:if(u){u=u._reactInternals;e:{if(Tn(u)!==u||u.tag!==1)throw Error(a(170));var z=u;do{switch(z.tag){case 3:z=z.stateNode.context;break e;case 1:if(ma(z.type)){z=z.stateNode.__reactInternalMemoizedMergedChildContext;break e}}z=z.return}while(z!==null);throw Error(a(171))}if(u.tag===1){var W=u.type;if(ma(W)){u=kp(u,W,z);break t}}u=z}else u=$i;return o.context===null?o.context=u:o.pendingContext=u,o=Fi(C,A),o.payload={element:i},g=g===void 0?null:g,g!==null&&(o.callback=g),Wi(b,o),Ui(b,A,C),A}function bd(i){return i=i.current,i.child?(i.child.tag===5,i.child.stateNode):null}function Rg(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<o?u:o}}function wd(i,o){Rg(i,o),(i=i.alternate)&&Rg(i,o)}function Cw(){return null}function kd(i,o,u){var g=u!=null&&u.hydrationOptions!=null&&u.hydrationOptions.mutableSources||null;if(u=new xw(i,o,u!=null&&u.hydrate===!0),o=Ra(3,null,null,o===2?7:o===1?3:0),u.current=o,o.stateNode=u,Ic(o),i[uo]=u.current,cp(i.nodeType===8?i.parentNode:i),g)for(i=0;i<g.length;i++){o=g[i];var b=o._getVersion;b=b(o._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[o,b]:u.mutableSourceEagerHydrationData.push(o,b)}this._internalRoot=u}kd.prototype.render=function(i){au(i,this._internalRoot,null,null)},kd.prototype.unmount=function(){var i=this._internalRoot,o=i.containerInfo;au(null,i,null,function(){o[uo]=null})};function As(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function Tw(i,o){if(o||(o=i?i.nodeType===9?i.documentElement:i.firstChild:null,o=!(!o||o.nodeType!==1||!o.hasAttribute("data-reactroot"))),!o)for(var u;u=i.lastChild;)i.removeChild(u);return new kd(i,0,o?{hydrate:!0}:void 0)}function iu(i,o,u,g,b){var C=u._reactRootContainer;if(C){var A=C._internalRoot;if(typeof b=="function"){var z=b;b=function(){var ct=bd(A);z.call(ct)}}au(o,A,i,b)}else{if(C=u._reactRootContainer=Tw(u,g),A=C._internalRoot,typeof b=="function"){var W=b;b=function(){var ct=bd(A);W.call(ct)}}Mg(function(){au(o,A,i,b)})}return bd(A)}ta=function(i){if(i.tag===13){var o=wa();Ui(i,4,o),wd(i,4)}},Ta=function(i){if(i.tag===13){var o=wa();Ui(i,67108864,o),wd(i,67108864)}},fr=function(i){if(i.tag===13){var o=wa(),u=Gi(i);Ui(i,u,o),wd(i,u)}},_o=function(i,o){return o()},ke=function(i,o,u){switch(o){case"input":if(D(i,u),o=u.name,u.type==="radio"&&o!=null){for(u=i;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<u.length;o++){var g=u[o];if(g!==i&&g.form===i.form){var b=Pl(g);if(!b)throw Error(a(90));Ye(g),D(g,b)}}}break;case"textarea":ee(i,u);break;case"select":o=u.value,o!=null&&Xt(i,!!u.multiple,o,!1)}},Ft=Pg,re=function(i,o,u,g,b){var C=ue;ue|=4;try{return Nr(98,i.bind(null,o,u,g,b))}finally{ue=C,ue===0&&(ko(),si())}},Le=function(){(ue&49)===0&&(dw(),Yi())},Ae=function(i,o){var u=ue;ue|=2;try{return i(o)}finally{ue=u,ue===0&&(ko(),si())}};function jg(i,o){var u=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!As(o))throw Error(a(200));return Sw(i,o,null,u)}var Ew={Events:[us,co,Pl,ve,zt,Yi,{current:!1}]},Ns={findFiberByHostInstance:Pr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},Pw={bundleType:Ns.bundleType,version:Ns.version,rendererPackageName:Ns.rendererPackageName,rendererConfig:Ns.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=Vr(i),i===null?null:i.stateNode},findFiberByHostInstance:Ns.findFiberByHostInstance||Cw,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{Ec=ru.inject(Pw),Ar=ru}catch{}}return ka.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ew,ka.createPortal=jg,ka.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var o=i._reactInternals;if(o===void 0)throw typeof i.render=="function"?Error(a(188)):Error(a(268,Object.keys(i)));return i=Vr(o),i=i===null?null:i.stateNode,i},ka.flushSync=function(i,o){var u=ue;if((u&48)!==0)return i(o);ue|=1;try{if(i)return Nr(99,i.bind(null,o))}finally{ue=u,si()}},ka.hydrate=function(i,o,u){if(!As(o))throw Error(a(200));return iu(null,i,o,!0,u)},ka.render=function(i,o,u){if(!As(o))throw Error(a(200));return iu(null,i,o,!1,u)},ka.unmountComponentAtNode=function(i){if(!As(i))throw Error(a(40));return i._reactRootContainer?(Mg(function(){iu(null,null,i,!1,function(){i._reactRootContainer=null,i[uo]=null})}),!0):!1},ka.unstable_batchedUpdates=Pg,ka.unstable_createPortal=function(i,o){return jg(i,o,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},ka.unstable_renderSubtreeIntoContainer=function(i,o,u,g){if(!As(u))throw Error(a(200));if(i==null||i._reactInternals===void 0)throw Error(a(38));return iu(i,o,u,!1,g)},ka.version="17.0.2",ka}var av;function AE(){if(av)return Sf.exports;av=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Sf.exports=ME(),Sf.exports}var lr=AE();const pu=On(lr);function ul(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Ka(e,t){return R.useMemo(function(){return e==null&&t==null?null:function(n){ul(e,n),ul(t,n)}},[e,t])}var NE=typeof window<"u"?R.useLayoutEffect:R.useEffect;function jn(e){var t=R.useRef(e);return NE(function(){t.current=e}),R.useCallback(function(){return t.current.apply(void 0,arguments)},[])}function LE(e,t){return function(){return null}}var tc=!0,lh=!1,iv=null,BE={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function zE(e){var t=e.type,n=e.tagName;return!!(n==="INPUT"&&BE[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function IE(e){e.metaKey||e.altKey||e.ctrlKey||(tc=!0)}function Ef(){tc=!1}function DE(){this.visibilityState==="hidden"&&lh&&(tc=!0)}function RE(e){e.addEventListener("keydown",IE,!0),e.addEventListener("mousedown",Ef,!0),e.addEventListener("pointerdown",Ef,!0),e.addEventListener("touchstart",Ef,!0),e.addEventListener("visibilitychange",DE,!0)}function jE(e){var t=e.target;try{return t.matches(":focus-visible")}catch{}return tc||zE(t)}function OE(){lh=!0,window.clearTimeout(iv),iv=window.setTimeout(function(){lh=!1},100)}function Wh(){var e=R.useCallback(function(t){var n=lr.findDOMNode(t);n!=null&&RE(n.ownerDocument)},[]);return{isFocusVisible:jE,onBlurVisible:OE,ref:e}}const rv={disabled:!1},qu=Rt.createContext(null);var KE=function(t){return t.scrollTop},Xs="unmounted",jr="exited",Or="entering",No="entered",uh="exiting",Di=(function(e){Yu(t,e);function t(a,r){var l;l=e.call(this,a,r)||this;var d=r,f=d&&!d.isMounting?a.enter:a.appear,p;return l.appearStatus=null,a.in?f?(p=jr,l.appearStatus=Or):p=No:a.unmountOnExit||a.mountOnEnter?p=Xs:p=jr,l.state={status:p},l.nextCallback=null,l}t.getDerivedStateFromProps=function(r,l){var d=r.in;return d&&l.status===Xs?{status:jr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var l=null;if(r!==this.props){var d=this.state.status;this.props.in?d!==Or&&d!==No&&(l=Or):(d===Or||d===No)&&(l=uh)}this.updateStatus(!1,l)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,l,d,f;return l=d=f=r,r!=null&&typeof r!="number"&&(l=r.exit,d=r.enter,f=r.appear!==void 0?r.appear:d),{exit:l,enter:d,appear:f}},n.updateStatus=function(r,l){if(r===void 0&&(r=!1),l!==null)if(this.cancelNextCallback(),l===Or){if(this.props.unmountOnExit||this.props.mountOnEnter){var d=this.props.nodeRef?this.props.nodeRef.current:pu.findDOMNode(this);d&&KE(d)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===jr&&this.setState({status:Xs})},n.performEnter=function(r){var l=this,d=this.props.enter,f=this.context?this.context.isMounting:r,p=this.props.nodeRef?[f]:[pu.findDOMNode(this),f],y=p[0],k=p[1],E=this.getTimeouts(),N=f?E.appear:E.enter;if(!r&&!d||rv.disabled){this.safeSetState({status:No},function(){l.props.onEntered(y)});return}this.props.onEnter(y,k),this.safeSetState({status:Or},function(){l.props.onEntering(y,k),l.onTransitionEnd(N,function(){l.safeSetState({status:No},function(){l.props.onEntered(y,k)})})})},n.performExit=function(){var r=this,l=this.props.exit,d=this.getTimeouts(),f=this.props.nodeRef?void 0:pu.findDOMNode(this);if(!l||rv.disabled){this.safeSetState({status:jr},function(){r.props.onExited(f)});return}this.props.onExit(f),this.safeSetState({status:uh},function(){r.props.onExiting(f),r.onTransitionEnd(d.exit,function(){r.safeSetState({status:jr},function(){r.props.onExited(f)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,l){l=this.setNextCallback(l),this.setState(r,l)},n.setNextCallback=function(r){var l=this,d=!0;return this.nextCallback=function(f){d&&(d=!1,l.nextCallback=null,r(f))},this.nextCallback.cancel=function(){d=!1},this.nextCallback},n.onTransitionEnd=function(r,l){this.setNextCallback(l);var d=this.props.nodeRef?this.props.nodeRef.current:pu.findDOMNode(this),f=r==null&&!this.props.addEndListener;if(!d||f){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var p=this.props.nodeRef?[this.nextCallback]:[d,this.nextCallback],y=p[0],k=p[1];this.props.addEndListener(y,k)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===Xs)return null;var l=this.props,d=l.children;l.in,l.mountOnEnter,l.unmountOnExit,l.appear,l.enter,l.exit,l.timeout,l.addEndListener,l.onEnter,l.onEntering,l.onEntered,l.onExit,l.onExiting,l.onExited,l.nodeRef;var f=Uu(l,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Rt.createElement(qu.Provider,{value:null},typeof d=="function"?d(r,f):Rt.cloneElement(Rt.Children.only(d),f))},t})(Rt.Component);Di.contextType=qu;Di.propTypes={};function Ao(){}Di.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ao,onEntering:Ao,onEntered:Ao,onExit:Ao,onExiting:Ao,onExited:Ao};Di.UNMOUNTED=Xs;Di.EXITED=jr;Di.ENTERING=Or;Di.ENTERED=No;Di.EXITING=uh;function _h(e,t){var n=function(l){return t&&R.isValidElement(l)?t(l):l},a=Object.create(null);return e&&R.Children.map(e,function(r){return r}).forEach(function(r){a[r.key]=n(r)}),a}function qE(e,t){e=e||{},t=t||{};function n(k){return k in t?t[k]:e[k]}var a=Object.create(null),r=[];for(var l in e)l in t?r.length&&(a[l]=r,r=[]):r.push(l);var d,f={};for(var p in t){if(a[p])for(d=0;d<a[p].length;d++){var y=a[p][d];f[a[p][d]]=n(y)}f[p]=n(p)}for(d=0;d<r.length;d++)f[r[d]]=n(r[d]);return f}function $r(e,t,n){return n[t]!=null?n[t]:e.props[t]}function $E(e,t){return _h(e.children,function(n){return R.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:$r(n,"appear",e),enter:$r(n,"enter",e),exit:$r(n,"exit",e)})})}function HE(e,t,n){var a=_h(e.children),r=qE(t,a);return Object.keys(r).forEach(function(l){var d=r[l];if(R.isValidElement(d)){var f=l in t,p=l in a,y=t[l],k=R.isValidElement(y)&&!y.props.in;p&&(!f||k)?r[l]=R.cloneElement(d,{onExited:n.bind(null,d),in:!0,exit:$r(d,"exit",e),enter:$r(d,"enter",e)}):!p&&f&&!k?r[l]=R.cloneElement(d,{in:!1}):p&&f&&R.isValidElement(y)&&(r[l]=R.cloneElement(d,{onExited:n.bind(null,d),in:y.props.in,exit:$r(d,"exit",e),enter:$r(d,"enter",e)}))}}),r}var FE=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},WE={component:"div",childFactory:function(t){return t}},Vh=(function(e){Yu(t,e);function t(a,r){var l;l=e.call(this,a,r)||this;var d=l.handleExited.bind(Zf(l));return l.state={contextValue:{isMounting:!0},handleExited:d,firstRender:!0},l}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,l){var d=l.children,f=l.handleExited,p=l.firstRender;return{children:p?$E(r,f):HE(r,d,f),firstRender:!1}},n.handleExited=function(r,l){var d=_h(this.props.children);r.key in d||(r.props.onExited&&r.props.onExited(l),this.mounted&&this.setState(function(f){var p=Dt({},f.children);return delete p[r.key],{children:p}}))},n.render=function(){var r=this.props,l=r.component,d=r.childFactory,f=Uu(r,["component","childFactory"]),p=this.state.contextValue,y=FE(this.state.children).map(d);return delete f.appear,delete f.enter,delete f.exit,l===null?Rt.createElement(qu.Provider,{value:p},y):Rt.createElement(qu.Provider,{value:p},Rt.createElement(l,f,y))},t})(Rt.Component);Vh.propTypes={};Vh.defaultProps=WE;var _E=typeof window>"u"?R.useEffect:R.useLayoutEffect;function VE(e){var t=e.classes,n=e.pulsate,a=n===void 0?!1:n,r=e.rippleX,l=e.rippleY,d=e.rippleSize,f=e.in,p=e.onExited,y=p===void 0?function(){}:p,k=e.timeout,E=R.useState(!1),N=E[0],I=E[1],L=Ie(t.ripple,t.rippleVisible,a&&t.ripplePulsate),K={width:d,height:d,top:-(d/2)+l,left:-(d/2)+r},J=Ie(t.child,N&&t.childLeaving,a&&t.childPulsate),F=jn(y);return _E(function(){if(!f){I(!0);var G=setTimeout(F,k);return function(){clearTimeout(G)}}},[F,f,k]),R.createElement("span",{className:L,style:K},R.createElement("span",{className:J}))}var ch=550,GE=80,UE=function(t){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(ch,"ms ").concat(t.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(t.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(ch,"ms ").concat(t.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(t.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}},YE=R.forwardRef(function(t,n){var a=t.center,r=a===void 0?!1:a,l=t.classes,d=t.className,f=Ke(t,["center","classes","className"]),p=R.useState([]),y=p[0],k=p[1],E=R.useRef(0),N=R.useRef(null);R.useEffect(function(){N.current&&(N.current(),N.current=null)},[y]);var I=R.useRef(!1),L=R.useRef(null),K=R.useRef(null),J=R.useRef(null);R.useEffect(function(){return function(){clearTimeout(L.current)}},[]);var F=R.useCallback(function(_){var $=_.pulsate,v=_.rippleX,mt=_.rippleY,ft=_.rippleSize,Lt=_.cb;k(function(Nt){return[].concat(Zu(Nt),[R.createElement(VE,{key:E.current,classes:l,timeout:ch,pulsate:$,rippleX:v,rippleY:mt,rippleSize:ft})])}),E.current+=1,N.current=Lt},[l]),G=R.useCallback(function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=arguments.length>2?arguments[2]:void 0,mt=$.pulsate,ft=mt===void 0?!1:mt,Lt=$.center,Nt=Lt===void 0?r||$.pulsate:Lt,At=$.fakeElement,tt=At===void 0?!1:At;if(_.type==="mousedown"&&I.current){I.current=!1;return}_.type==="touchstart"&&(I.current=!0);var H=tt?null:J.current,s=H?H.getBoundingClientRect():{width:0,height:0,left:0,top:0},ht,x,lt;if(Nt||_.clientX===0&&_.clientY===0||!_.clientX&&!_.touches)ht=Math.round(s.width/2),x=Math.round(s.height/2);else{var bt=_.touches?_.touches[0]:_,St=bt.clientX,O=bt.clientY;ht=Math.round(St-s.left),x=Math.round(O-s.top)}if(Nt)lt=Math.sqrt((2*Math.pow(s.width,2)+Math.pow(s.height,2))/3),lt%2===0&&(lt+=1);else{var wt=Math.max(Math.abs((H?H.clientWidth:0)-ht),ht)*2+2,xt=Math.max(Math.abs((H?H.clientHeight:0)-x),x)*2+2;lt=Math.sqrt(Math.pow(wt,2)+Math.pow(xt,2))}_.touches?K.current===null&&(K.current=function(){F({pulsate:ft,rippleX:ht,rippleY:x,rippleSize:lt,cb:v})},L.current=setTimeout(function(){K.current&&(K.current(),K.current=null)},GE)):F({pulsate:ft,rippleX:ht,rippleY:x,rippleSize:lt,cb:v})},[r,F]),ot=R.useCallback(function(){G({},{pulsate:!0})},[G]),dt=R.useCallback(function(_,$){if(clearTimeout(L.current),_.type==="touchend"&&K.current){_.persist(),K.current(),K.current=null,L.current=setTimeout(function(){dt(_,$)});return}K.current=null,k(function(v){return v.length>0?v.slice(1):v}),N.current=$},[]);return R.useImperativeHandle(n,function(){return{pulsate:ot,start:G,stop:dt}},[ot,G,dt]),R.createElement("span",Dt({className:Ie(l.root,d),ref:J},f),R.createElement(Vh,{component:null,exit:!0},y))});const XE=gn(UE,{flip:!1,name:"MuiTouchRipple"})(R.memo(YE));var ZE={root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},JE=R.forwardRef(function(t,n){var a=t.action,r=t.buttonRef,l=t.centerRipple,d=l===void 0?!1:l,f=t.children,p=t.classes,y=t.className,k=t.component,E=k===void 0?"button":k,N=t.disabled,I=N===void 0?!1:N,L=t.disableRipple,K=L===void 0?!1:L,J=t.disableTouchRipple,F=J===void 0?!1:J,G=t.focusRipple,ot=G===void 0?!1:G,dt=t.focusVisibleClassName,_=t.onBlur,$=t.onClick,v=t.onFocus,mt=t.onFocusVisible,ft=t.onKeyDown,Lt=t.onKeyUp,Nt=t.onMouseDown,At=t.onMouseLeave,tt=t.onMouseUp,H=t.onTouchEnd,s=t.onTouchMove,ht=t.onTouchStart,x=t.onDragLeave,lt=t.tabIndex,bt=lt===void 0?0:lt,St=t.TouchRippleProps,O=t.type,wt=O===void 0?"button":O,xt=Ke(t,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),Ot=R.useRef(null);function Mt(){return lr.findDOMNode(Ot.current)}var Ht=R.useRef(null),Qt=R.useState(!1),de=Qt[0],me=Qt[1];I&&de&&me(!1);var Pe=Wh(),ln=Pe.isFocusVisible,Oe=Pe.onBlurVisible,rn=Pe.ref;R.useImperativeHandle(a,function(){return{focusVisible:function(){me(!0),Ot.current.focus()}}},[]),R.useEffect(function(){de&&ot&&!K&&Ht.current.pulsate()},[K,ot,de]);function Ve(Vt,Nn){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:F;return jn(function(Ut){Nn&&Nn(Ut);var ie=X;return!ie&&Ht.current&&Ht.current[Vt](Ut),!0})}var kn=Ve("start",Nt),Ye=Ve("stop",x),yn=Ve("stop",tt),Je=Ve("stop",function(Vt){de&&Vt.preventDefault(),At&&At(Vt)}),un=Ve("start",ht),M=Ve("stop",H),D=Ve("stop",s),Y=Ve("stop",function(Vt){de&&(Oe(Vt),me(!1)),_&&_(Vt)},!1),it=jn(function(Vt){Ot.current||(Ot.current=Vt.currentTarget),ln(Vt)&&(me(!0),mt&&mt(Vt)),v&&v(Vt)}),vt=function(){var Nn=Mt();return E&&E!=="button"&&!(Nn.tagName==="A"&&Nn.href)},st=R.useRef(!1),Xt=jn(function(Vt){ot&&!st.current&&de&&Ht.current&&Vt.key===" "&&(st.current=!0,Vt.persist(),Ht.current.stop(Vt,function(){Ht.current.start(Vt)})),Vt.target===Vt.currentTarget&&vt()&&Vt.key===" "&&Vt.preventDefault(),ft&&ft(Vt),Vt.target===Vt.currentTarget&&vt()&&Vt.key==="Enter"&&!I&&(Vt.preventDefault(),$&&$(Vt))}),Me=jn(function(Vt){ot&&Vt.key===" "&&Ht.current&&de&&!Vt.defaultPrevented&&(st.current=!1,Vt.persist(),Ht.current.stop(Vt,function(){Ht.current.pulsate(Vt)})),Lt&&Lt(Vt),$&&Vt.target===Vt.currentTarget&&vt()&&Vt.key===" "&&!Vt.defaultPrevented&&$(Vt)}),Re=E;Re==="button"&&xt.href&&(Re="a");var ee={};Re==="button"?(ee.type=wt,ee.disabled=I):((Re!=="a"||!xt.href)&&(ee.role="button"),ee["aria-disabled"]=I);var Xe=Ka(r,n),Qe=Ka(rn,Ot),Kn=Ka(Xe,Qe),Ze=R.useState(!1),xn=Ze[0],Bn=Ze[1];R.useEffect(function(){Bn(!0)},[]);var qn=xn&&!K&&!I;return R.createElement(Re,Dt({className:Ie(p.root,y,de&&[p.focusVisible,dt],I&&p.disabled),onBlur:Y,onClick:$,onFocus:it,onKeyDown:Xt,onKeyUp:Me,onMouseDown:kn,onMouseLeave:Je,onMouseUp:yn,onDragLeave:Ye,onTouchEnd:M,onTouchMove:D,onTouchStart:un,ref:Kn,tabIndex:I?-1:bt},ee,xt),f,qn?R.createElement(XE,Dt({ref:Ht,center:d},St)):null)});const ab=gn(ZE,{name:"MuiButtonBase"})(JE);function sn(e){if(typeof e!="string")throw new Error(Ru(7));return e.charAt(0).toUpperCase()+e.slice(1)}var QE=function(t){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:t.palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{backgroundColor:Un(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:t.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:t.palette.primary.main,"&:hover":{backgroundColor:Un(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:t.palette.secondary.main,"&:hover":{backgroundColor:Un(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:t.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}},t1=R.forwardRef(function(t,n){var a=t.edge,r=a===void 0?!1:a,l=t.children,d=t.classes,f=t.className,p=t.color,y=p===void 0?"default":p,k=t.disabled,E=k===void 0?!1:k,N=t.disableFocusRipple,I=N===void 0?!1:N,L=t.size,K=L===void 0?"medium":L,J=Ke(t,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return R.createElement(ab,Dt({className:Ie(d.root,f,y!=="default"&&d["color".concat(sn(y))],E&&d.disabled,K==="small"&&d["size".concat(sn(K))],{start:d.edgeStart,end:d.edgeEnd}[r]),centerRipple:!0,focusRipple:!I,disabled:E,ref:n},J),R.createElement("span",{className:d.label},l))});const pi=gn(QE,{name:"MuiIconButton"})(t1);var Is={},Pf={exports:{}},ov;function Za(){return ov||(ov=1,(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Pf)),Pf.exports}var Mf={exports:{}},Af={exports:{}},sv;function e1(){return sv||(sv=1,(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Af)),Af.exports}var lv;function Ja(){return lv||(lv=1,(function(e){var t=e1().default;function n(a,r){if(typeof WeakMap=="function")var l=new WeakMap,d=new WeakMap;return(e.exports=n=function(p,y){if(!y&&p&&p.__esModule)return p;var k,E,N={__proto__:null,default:p};if(p===null||t(p)!="object"&&typeof p!="function")return N;if(k=y?d:l){if(k.has(p))return k.get(p);k.set(p,N)}for(var I in p)I!=="default"&&{}.hasOwnProperty.call(p,I)&&((E=(k=Object.defineProperty)&&Object.getOwnPropertyDescriptor(p,I))&&(E.get||E.set)?k(N,I,E):N[I]=p[I]);return N},e.exports.__esModule=!0,e.exports.default=e.exports)(a,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Mf)),Mf.exports}var Nf={};function $u(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(a,r){return r==null?a:function(){for(var d=arguments.length,f=new Array(d),p=0;p<d;p++)f[p]=arguments[p];a.apply(this,f),r.apply(this,f)}},function(){})}var n1=function(t){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:t.typography.pxToRem(24),transition:t.transitions.create("fill",{duration:t.transitions.duration.shorter})},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},colorAction:{color:t.palette.action.active},colorError:{color:t.palette.error.main},colorDisabled:{color:t.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:t.typography.pxToRem(20)},fontSizeLarge:{fontSize:t.typography.pxToRem(35)}}},ib=R.forwardRef(function(t,n){var a=t.children,r=t.classes,l=t.className,d=t.color,f=d===void 0?"inherit":d,p=t.component,y=p===void 0?"svg":p,k=t.fontSize,E=k===void 0?"medium":k,N=t.htmlColor,I=t.titleAccess,L=t.viewBox,K=L===void 0?"0 0 24 24":L,J=Ke(t,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return R.createElement(y,Dt({className:Ie(r.root,l,f!=="inherit"&&r["color".concat(sn(f))],E!=="default"&&E!=="medium"&&r["fontSize".concat(sn(E))]),focusable:"false",viewBox:K,color:N,"aria-hidden":I?void 0:!0,role:I?"img":void 0,ref:n},J),a,I?R.createElement("title",null,I):null)});ib.muiName="SvgIcon";const dh=gn(n1,{name:"MuiSvgIcon"})(ib);function Gh(e,t){var n=function(r,l){return Rt.createElement(dh,Dt({ref:l},r),e)};return n.muiName=dh.muiName,Rt.memo(Rt.forwardRef(n))}function a1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:166,n;function a(){for(var r=arguments.length,l=new Array(r),d=0;d<r;d++)l[d]=arguments[d];var f=this,p=function(){e.apply(f,l)};clearTimeout(n),n=setTimeout(p,t)}return a.clear=function(){clearTimeout(n)},a}function xu(e,t){return R.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function mi(e){return e&&e.ownerDocument||document}function rb(e){var t=mi(e);return t.defaultView||window}function i1(e){return function(){return null}}function r1(e,t,n,a,r){return null}function ec(e){var t=e.controlled,n=e.default;e.name,e.state;var a=R.useRef(t!==void 0),r=a.current,l=R.useState(n),d=l[0],f=l[1],p=r?t:d,y=R.useCallback(function(k){r||f(k)},[]);return[p,y]}function ob(e){var t=R.useState(e),n=t[0],a=t[1],r=e||n;return R.useEffect(function(){n==null&&a("mui-".concat(Math.round(Math.random()*1e5)))},[n]),r}const o1=Object.freeze(Object.defineProperty({__proto__:null,capitalize:sn,createChainedFunction:$u,createSvgIcon:Gh,debounce:a1,deprecatedPropType:LE,isMuiElement:xu,ownerDocument:mi,ownerWindow:rb,requirePropFactory:i1,setRef:ul,unstable_useId:ob,unsupportedProp:r1,useControlled:ec,useEventCallback:jn,useForkRef:Ka,useIsFocusVisible:Wh},Symbol.toStringTag,{value:"Module"})),s1=Uv(o1);var uv;function Qa(){return uv||(uv=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=s1})(Nf)),Nf}var cv;function l1(){if(cv)return Is;cv=1;var e=Za(),t=Ja();Object.defineProperty(Is,"__esModule",{value:!0}),Is.default=void 0;var n=t(sa()),a=e(Qa()),r=(0,a.default)(n.createElement("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76z"}),"ArrowBackIosRounded");return Is.default=r,Is}var u1=l1();const dv=On(u1);var Ds={},fv;function c1(){if(fv)return Ds;fv=1;var e=Za(),t=Ja();Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.default=void 0;var n=t(sa()),a=e(Qa()),r=(0,a.default)(n.createElement("path",{d:"M7.38 21.01c.49.49 1.28.49 1.77 0l8.31-8.31c.39-.39.39-1.02 0-1.41L9.15 2.98c-.49-.49-1.28-.49-1.77 0s-.49 1.28 0 1.77L14.62 12l-7.25 7.25c-.48.48-.48 1.28.01 1.76z"}),"ArrowForwardIosRounded");return Ds.default=r,Ds}var d1=c1();const hv=On(d1);var Rs={},pv;function f1(){if(pv)return Rs;pv=1;var e=Za(),t=Ja();Object.defineProperty(Rs,"__esModule",{value:!0}),Rs.default=void 0;var n=t(sa()),a=e(Qa()),r=(0,a.default)(n.createElement(n.Fragment,null,n.createElement("circle",{cx:"15.5",cy:"9.5",r:"1.5"}),n.createElement("circle",{cx:"8.5",cy:"9.5",r:"1.5"}),n.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 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm0-6c-2.33 0-4.32 1.45-5.12 3.5h1.67c.69-1.19 1.97-2 3.45-2s2.75.81 3.45 2h1.67c-.8-2.05-2.79-3.5-5.12-3.5z"})),"SentimentVeryDissatisfied");return Rs.default=r,Rs}var h1=f1();const p1=On(h1);function g1({modulePath:e=".",importFunctionName:t="__import__"}={}){try{self[t]=new Function("u","return import(u)")}catch{const a=new URL(e,location),r=l=>{URL.revokeObjectURL(l.src),l.remove()};self[t]=l=>new Promise((d,f)=>{const p=new URL(l,a);if(self[t].moduleMap[p])return d(self[t].moduleMap[p]);const y=new Blob([`import * as m from '${p}';`,`${t}.moduleMap['${p}']=m;`],{type:"text/javascript"}),k=Object.assign(document.createElement("script"),{type:"module",src:URL.createObjectURL(y),onerror(){f(new Error(`Failed to import: ${l}`)),r(k)},onload(){d(self[t].moduleMap[p]),r(k)}});document.head.appendChild(k)}),self[t].moduleMap={}}}var m1=Object.freeze({initialize:g1});m1.initialize({importFunctionName:"polyfill_import"});function v1(e){return e.indexOf("/")!==0&&(e="/"+e),polyfill_import(e)}function y1(e,t,n,a,r){if(!Zv()?.getCurrentPage()){alert("null currentPage in reportScoreForCurrentPage()");return}if(a||alert("bloom-player page-api: analyticsCategory is missing."),Su(e,a))return;sb(e,a,JSON.stringify({possiblePoints:t,actualPoints:n,analyticsCategory:a}));let l=0,d=0;if(r&&r.length>0)for(let p=0;p<r.length;p++){const y=Su(r[p],a);if(!y)return;const k=JSON.parse(y);l+=k.possiblePoints,d+=k.actualPoints}else{const p=Su(e,a),y=JSON.parse(p);l+=y.possiblePoints,d+=y.actualPoints}const f={possiblePoints:l,actualPoints:d,percentRight:d*100/l};Ny(a,f)}function sb(e,t,n){const a=lb(e,t);Ih.getData()[a]=n,qS(a,n)}function Su(e,t){return Ih.getData()[lb(e,t)]}function lb(e,t){return"p"+e.toString()+"."+t}const cl=".bloom-textOverPicture, .bloom-canvas-element";let fh=[],Hu=new Map,Sa,ub,Fu=new Map;const b1=e=>{Fu=new Map,e.querySelectorAll("[data-draggable-id]").forEach(t=>{Fu.set(t.getAttribute("data-draggable-id"),{x:t.style.left,y:t.style.top})})},Uh=e=>{e.querySelectorAll("[data-draggable-id]").forEach(t=>{const n=Fu.get(t.getAttribute("data-draggable-id"));n&&(t.style.left=n.x,t.style.top=n.y,t.classList.remove("bloom-draggedToTarget"))})};function w1(e){if(e.getAttribute("data-activity")!=="drag-letter-to-target")return;const t=Array.from(e.querySelectorAll("[data-draggable-id]"));t.shift(),t.forEach(n=>{const a=!!n.getElementsByClassName("bloom-visibility-code-on")[0]?.innerText.trim();n.classList.toggle("bloom-unused-in-lang",!a);const r=ep(n);r&&r.classList.toggle("bloom-unused-in-lang",!a)})}function Yh(e){return e.closest("#page-scaling-container")!==null}function k1(e,t){Sa=e,w1(e),ub=t,Nb(e.getAttribute("data-show-answers-in-targets")==="true"||e.getAttribute("data-show-target-as-shadow")==="true",e),b1(e),Array.from(e.getElementsByClassName("bloom-change-page-button")).forEach(N=>N.addEventListener("click",pb)),Array.from(document.getElementsByClassName("bloom-canvas")).forEach(N=>{N.title=""}),Array.from(document.getElementsByClassName("bloom-imageContainer")).forEach(N=>{N.title=""}),Array.from(e.getElementsByTagName("img")).forEach(N=>{N.setAttribute("draggable","false")}),fh=[],Hu=new Map;const a=Array.from(e.querySelectorAll("[data-draggable-id]")),r=[];a.forEach(N=>{const I=N.getAttribute("data-draggable-id"),L=e.querySelector(`[data-target-of="${I}"]`);if(L){const K=L.offsetLeft,J=L.offsetTop;fh.push({x:K,y:J,width:L.offsetWidth,height:L.offsetHeight}),r.push(L)}Hu.set(N,{x:N.offsetLeft,y:N.offsetTop}),N.style.touchAction="none",N.addEventListener("pointerdown",vb,{capture:!0})}),Array.from(e.getElementsByTagName("video")).forEach(N=>{N.closest(cl)?.hasAttribute("data-draggable-id")&&(N.classList.add("bloom-ui-no-controls"),N.addEventListener("pointerdown",cb),Gf(N))});const d=a.concat(r);Array.from(e.getElementsByClassName("bloom-visibility-code-on")).filter(N=>{var I=N.closest(cl);return I?d.indexOf(I)<0:!0}).forEach(N=>{N.addEventListener("pointerdown",db)});const p=Array.from(e.getElementsByClassName("check-button")),y=Array.from(e.getElementsByClassName("try-again-button")),k=Array.from(e.getElementsByClassName("show-correct-button"));p.forEach(N=>{N.addEventListener("click",wb)}),y.forEach(N=>{N.addEventListener("click",kb)}),k.forEach(N=>{N.addEventListener("click",mb)}),Array.from(e.querySelectorAll("[data-sound]")).forEach(N=>{N.addEventListener("click",Xh)}),x1(e),Sb(e)}const x1=e=>{Array.from(e.getElementsByClassName("drag-item-order-sentence")).forEach(t=>{const n=t.getElementsByClassName("bloom-content1 bloom-visibility-code-on")[0],a=n?.textContent?.trim();if(!a)return;const r=a.split(" "),l=P1(r),d=e.ownerDocument.createElement("div");d.classList.add("drag-item-random-sentence"),d.setAttribute("data-answer",a),hb(e,l,d,n,!0),d.style.left=t.style.left,d.style.top=t.style.top,d.style.width=t.style.width,t.parentElement?.insertBefore(d,t)})},cb=e=>{const t=e.currentTarget;Gu(t),t.play()};function S1(e){e===Sa&&Bh(),Uh(e),e===Sa&&Fu.clear(),Array.from(e.getElementsByClassName("bloom-change-page-button")).forEach(p=>p.removeEventListener("click",pb)),Array.from(e.getElementsByClassName("bloom-visibility-code-on")).forEach(p=>{p.removeEventListener("pointerdown",db)}),e.querySelectorAll("[data-draggable-id]").forEach(p=>{p.removeEventListener("pointerdown",vb,{capture:!0})}),Array.from(e.getElementsByTagName("img")).forEach(p=>{p.removeAttribute("draggable")}),Array.from(e.getElementsByTagName("video")).forEach(p=>{p.removeEventListener("pointerdown",cb),p.classList.remove("bloom-ui-no-controls")});const a=Array.from(e.getElementsByClassName("check-button")),r=Array.from(e.getElementsByClassName("try-again-button")),l=Array.from(e.getElementsByClassName("show-correct-button"));a.forEach(p=>{p.removeEventListener("click",wb)}),l.forEach(p=>{p.removeEventListener("click",mb)}),r.forEach(p=>{p.removeEventListener("click",kb)}),Array.from(e.querySelectorAll("[data-sound]")).forEach(p=>{p.removeEventListener("click",Xh)}),Array.from(e.getElementsByClassName("drag-item-random-sentence")).forEach(p=>{p.parentElement?.removeChild(p)}),xb(e);const f=e.closest(".swiper-slide")!==null;Nb(!f,e)}const Xh=e=>{const t=e.currentTarget,n=t.getAttribute("data-sound");n&&Cb(t,n),e.preventDefault(),e.stopPropagation()},db=e=>{const t=e.currentTarget;fb(t)},fb=e=>{const t=C1(e);_u(t,e.closest(".bloom-page"))};function C1(e){const t=nc(e);return Zh(t)}function hb(e,t,n,a,r){const l=Array.from(a?.classList)?.find(f=>f.endsWith("-style"))??"Normal-style",d=a?.getAttribute("lang");t.forEach(f=>{const p=e.ownerDocument.createElement("div");p.classList.add("drag-item-order-word"),p.textContent=f,n.appendChild(p),p.classList.add(l),d&&p.setAttribute("lang",d),r&&p.addEventListener("pointerdown",L1)})}function pb(e){const t=e.currentTarget.classList.contains("bloom-next-page");ub?.(t)}function T1(e,t){const n=l=>{const d=l.closest(cl);return!(!d||d.classList.contains("draggable-text")||d.hasAttribute("data-draggable-id")||d.classList.contains("drag-item-order-sentence")||d.classList.contains("bloom-wordChoice")||d.classList.contains("drag-item-correct")||d.classList.contains("drag-item-wrong"))},a=nc(e).filter(n),r=Zh(a);_u(r,e)}let gb=(e,t)=>{};function E1(e){gb=e}function Zh(e){const t=[];return e.forEach(n=>{n.classList.contains(Mu)&&t.push(n),t.push(...Array.from(n.getElementsByClassName(Mu)))}),t}function nc(e){const t=Array.from(e.getElementsByClassName("bloom-editable")).filter(n=>window.getComputedStyle(n).display!=="none");return e.classList.contains("bloom-editable")&&window.getComputedStyle(e).display!=="none"&&t.push(e),t}function P1(e,t){t||(t=(f,p)=>f===p);let n=!0;for(let f=1;f<e.length;++f)if(!t(e[0],e[f])){n=!1;break}if(n)return e;const a=e.slice();let r=0,l=a,d=0;for(;d++<10;){let f=e.length,p;for(;f!==0;)p=Math.floor(Math.random()*f),f--,[e[f],e[p]]=[e[p],e[f]];let y=0;for(let k=0;k<e.length;++k)t(e[k],a[k])||++y;if(y===e.length)return e;y>r&&(r=y,l=e.slice())}for(let f=0;f<e.length;++f)e[f]=l[f];return e}const mb=e=>{if(!Sa)return;Uh(Sa),Sa.querySelectorAll("[data-draggable-id]").forEach(n=>{const a=n.getAttribute("data-draggable-id"),r=Sa?.querySelector(`[data-target-of="${a}"]`);if(!r)return;let l=n.offsetWidth;if(!l){const y=n.style.width.replace("px","");l=Number.parseInt(y,10)}let d=n.offsetHeight;if(!d){const y=n.style.height.replace("px","");d=Number.parseInt(y,10)}const f=r.offsetLeft+(r.offsetWidth-l)/2,p=r.offsetTop+(r.offsetHeight-d)/2;n.style.left=f+"px",n.style.top=p+"px"}),Array.from(Sa.getElementsByClassName("drag-item-random-sentence")).forEach(n=>{const a=n.getAttribute("data-answer")?.split(" ")??[],r=n.children[0];n.innerHTML="",hb(Sa,a,n,r,!1)}),Fr(Sa,"drag-activity-wrong",!1),Fr(Sa,"drag-activity-solution",!0);const t=[];Sa.querySelectorAll("[data-draggable-id]").forEach(n=>{const a=n.getAttribute("data-draggable-id");Sa?.querySelector(`[data-target-of="${a}"]`)&&t.push(...Array.from(n.getElementsByTagName("video")))}),t.length>0&&wy(t,()=>{})};let ac=0,ic=0,Ln,hh=!1;const rc=e=>e.getBoundingClientRect().width/e.offsetWidth,vb=e=>{if(e.button!==0||e.ctrlKey)return;e.preventDefault();const t=e.currentTarget;Ln=t;const n=t.closest(".bloom-page"),a=rc(n);ac=e.clientX/a-t.offsetLeft,ic=e.clientY/a-t.offsetTop,t.setPointerCapture(e.pointerId),t.addEventListener("pointerup",bb),t.addEventListener("pointermove",yb),fb(t),t.classList.add("bloom-ui-dragging"),Ln.classList.remove("bloom-draggedToTarget")},yb=e=>{const t=Ln.closest(".bloom-page"),n=rc(t);e.preventDefault();let a=e.clientX/n-ac,r=e.clientY/n-ic,l=Number.MAX_VALUE;hh=!1;let d=a,f=r;for(const p of fh){const y=(p.width-Ln.offsetWidth)/2,k=(p.height-Ln.offsetHeight)/2,E=p.x+y-a,N=p.y+k-r,I=Math.sqrt(E*E+N*N);I<l&&(l=I,d=p.x+y,f=p.y+k)}l<50&&(a=d,r=f,hh=!0),Ln.style.top=r+"px",Ln.style.left=a+"px"},bb=e=>{if(hh)Ln.classList.add("bloom-draggedToTarget");else{const a=Hu.get(Ln);Ln.style.top=a?.y+"px",Ln.style.left=a?.x+"px",Ln.classList.remove("bloom-draggedToTarget")}Ln.classList.remove("bloom-ui-dragging"),Ln.removeEventListener("pointerup",bb),Ln.removeEventListener("pointermove",yb);const t=Ln.closest(".bloom-page");Array.from(t.querySelectorAll("[data-draggable-id]")).forEach(a=>{if(a!==Ln&&ph(a,Ln)){const r=Hu.get(a);r&&(a.style.left=r.x+"px",a.style.top=r.y+"px",a.classList.remove("bloom-draggedToTarget"))}})},gv=e=>{const t=nc(e);return Array.from(t).map(n=>n.textContent).join(" ")},ph=(e,t)=>{const n=e.offsetLeft,a=e.offsetTop,r=t.offsetLeft+(t.offsetWidth-e.offsetWidth)/2,l=t.offsetTop+(t.offsetHeight-e.offsetHeight)/2;return Math.abs(r-n)<.6&&Math.abs(l-a)<.6},wb=e=>{const n=e.currentTarget.closest(".bloom-page"),a=N1(n)&&B1(n);return A1(n,a),gb(1,a?1:0),a},kb=e=>{const n=e.currentTarget.closest(".bloom-page");Fr(n,"drag-activity-correct",!1),Fr(n,"drag-activity-wrong",!1),Fr(n,"drag-activity-solution",!1),Uh(n),Bh()},Fr=(e,t,n)=>{n?e.parentElement?.classList.add(t):e.parentElement?.classList.remove(t)};let ra,ze,Jh,Qh;function M1(e,t){Jh=e,Qh=t}const tp="data-preload-sound";function xb(e){e.querySelectorAll(`audio[${tp}]`).forEach(t=>{t.src="",t.remove()})}function Sb(e){const t=(n,a)=>{const r=n!==null;if(n===null)n=a??null;else if(n==="none")return;if(!n)return;const l=(r?Ch()+"/audio/":"")+n;if(Array.from(e.querySelectorAll(`audio[${tp}]`)).find(p=>p.dataset.preloadSound===l))return;const f=document.createElement("audio");f.dataset.preloadSound=l,f.style.visibility="hidden",Yh(e)&&f.classList.add("bloom-ui"),f.src=l,f.load(),e.append(f)};t(e.getAttribute("data-correct-sound"),Jh),t(e.getAttribute("data-wrong-sound"),Qh)}function gh(e,t,n){let a=e.getAttribute(t?"data-correct-sound":"data-wrong-sound");const r=a!==null;a===null?a=t?Jh:Qh:a==="none"&&(a=void 0),a?Cb(e,a,r,n):n?.()}function A1(e,t){Fr(e,"drag-activity-correct",t),Fr(e,"drag-activity-wrong",!t),gh(e,t,()=>{if(!e.parentElement?.classList.contains(t?"drag-activity-correct":"drag-activity-wrong"))return;const a=Array.from(e.getElementsByClassName(t?"drag-item-correct":"drag-item-wrong")),r=[],l=[];a.forEach(f=>{r.push(...nc(f)),l.push(...Array.from(f.getElementsByTagName("video")))});const d=Zh(r);wy(l,()=>_u(d,e))})}function Cb(e,t,n=!0,a){const r=(n?Ch()+"/audio/":"")+t,l=Array.from(e.querySelectorAll(`audio[${tp}]`)).find(k=>k.dataset.preloadSound===r);let d;l?(delete l.dataset.preloadSound,l.currentTime=0,d=l):(d=new Audio(r),Yh(e)&&d.classList.add("bloom-ui"),d.style.visibility="hidden",e.append(d));let f=!1;const p=()=>{f||(f=!0,a?.())};d.play()?.catch(()=>{p()}),d.addEventListener("ended",()=>{e.removeChild(d),p()},{once:!0}),d.addEventListener("error",()=>{d.parentElement===e&&e.removeChild(d),p()},{once:!0})}function N1(e){let t=!0;const n=Array.from(e.querySelectorAll("[data-draggable-id]"));return n.forEach(a=>{const r=a.getAttribute("data-draggable-id"),l=e.querySelector(`[data-target-of="${r}"]`);if(l&&!ph(a,l)){if(!Array.from(a.children).some(f=>f.classList.contains("bloom-translationGroup"))){t=!1;return}const d=gv(a);n.some(f=>f===a||gv(f)!==d?!1:ph(f,l))||(t=!1)}}),t}let Xn,mh=0;const Tb=5;function L1(e){if(e.button!==0||e.ctrlKey)return;ze=e.currentTarget,mh=ze.offsetWidth;const t=ze.closest(".bloom-page"),n=rc(t);ac=e.clientX/n-ze.offsetLeft,ic=e.clientY/n-ze.offsetTop,ra=ze.ownerDocument.createElement("div"),ze.classList.forEach(a=>ra.classList.add(a)),ra.textContent=ze.textContent,ra.style.position="absolute",ra.style.left=ze.offsetLeft+"px",ra.style.top=ze.offsetTop+"px",ra.setAttribute("lang",ze.getAttribute("lang")),Xn=Ab(ze),Xn.style.width=mh+Tb+"px",ze.parentElement?.insertBefore(Xn,ze),ze.style.display="none",ze.setPointerCapture(e.pointerId),ze.addEventListener("pointerup",Mb),ze.addEventListener("pointermove",Pb),ze.addEventListener("touchstart",Eb),ze.parentElement?.appendChild(ra)}const Eb=e=>{e.preventDefault()};let mv;const Pb=e=>{const t=ra.closest(".bloom-page"),n=rc(t);e.preventDefault();const a=e.clientX/n-ac,r=e.clientY/n-ic;if(ra.style.top=r+"px",ra.style.left=a+"px",Cu)return;const l=ze.parentElement,d=Array.from(l.children).find(f=>{const p=f.getBoundingClientRect();return f!==ze&&f!==Xn&&f!==ra&&e.clientX>p.left&&e.clientX<p.right&&e.clientY>p.top&&e.clientY<p.bottom});if(d&&d!==mv){const f=Array.from(l.children);f.indexOf(d)>f.indexOf(Xn)?Lf(()=>{l.insertBefore(Xn,d.nextSibling)}):Lf(()=>{l.insertBefore(Xn,d)})}else{const f=Array.from(ze.parentElement.getElementsByClassName("drag-item-order-word")).filter(k=>k!==ze&&k!==Xn&&k!==ra),y=f[f.length-1].getBoundingClientRect();(e.clientY>y.bottom||e.clientX>y.right&&e.clientY>y.top)&&Lf(()=>{l.appendChild(Xn)})}mv=d},Mb=e=>{e.preventDefault(),ze.style.visibility="visible",ze.removeEventListener("pointerup",Mb),ze.removeEventListener("pointermove",Pb),ze.releasePointerCapture(e.pointerId),ze.removeEventListener("touchstart",Eb),ra.parentElement?.removeChild(ra),ze.parentElement?.insertBefore(ze,Xn),ze.parentElement?.removeChild(Xn),Xn=void 0,ze.style.display=""};function Ab(e){const t=e.cloneNode(!0);return t.style.overflowX="hidden",t.style.marginRight="0",t.style.paddingLeft="0",t.style.paddingRight="0",t.style.display="",t.style.visibility="hidden",t}let Cu=!1;function Lf(e){Cu=!0;const t=200,n=ze.parentElement,a=Ab(ze);n.insertBefore(a,Xn),e();const r=Date.now(),l=()=>{const d=Date.now()-r,f=Math.min(d/t,1),p=mh+Tb;if(!Xn){n.removeChild(a),Cu=!1;return}Xn.style.width=p*f+"px",a.style.width=p*(1-f)+"px",f<1?requestAnimationFrame(l):(n.removeChild(a),Xn.style.width=p+"px",Cu=!1)};requestAnimationFrame(l)}function B1(e){const t=e.getElementsByClassName("drag-item-random-sentence");for(let n=0;n<t.length;n++){const a=t[n],r=a.getAttribute("data-answer").split(" "),l=Array.from(a.children);for(let d=0;d<l.length;d++)if(l[d].textContent!==r[d])return!1}return!0}const Nb=(e,t)=>{const n=t.querySelectorAll(":scope [data-draggable-id]");e?n.forEach(a=>{z1(a)}):n.forEach(a=>{I1(a)})};function z1(e){const t=ep(e);if(!t)return;let n=t.ownerDocument.createElement("div");n.innerHTML=e.innerHTML,Array.from(n.getElementsByClassName("bloom-ui")).forEach(r=>{r.remove()}),Array.from(n.getElementsByClassName("imageOverlayButton")).forEach(r=>{r.remove()}),Array.from(n.getElementsByClassName("imageButton")).forEach(r=>{r.remove()}),Array.from(n.querySelectorAll("[id]")).forEach(r=>{r.removeAttribute("id")}),Array.from(n.getElementsByClassName("hoverUp")).forEach(r=>{r.classList.remove("hoverUp")}),Array.from(n.querySelectorAll("[contenteditable]")).forEach(r=>{r.removeAttribute("contenteditable")}),Array.from(n.getElementsByClassName("ui-audioCurrent")).forEach(r=>{r.classList.remove("ui-audioCurrent")}),Array.from(n.querySelectorAll("[tabindex]")).forEach(r=>{r.removeAttribute("tabindex")}),n.querySelectorAll(".bloom-selected").forEach(r=>{r.classList.remove("bloom-selected")});let a=n.getElementsByClassName("bloom-canvas")[0];if(a||(a=n.getElementsByClassName("bloom-imageContainer")[0]),a){const r=n;n=t.ownerDocument.createElement("div"),n.appendChild(r),r.classList.add("bloom-targetWrapper"),a.style.width=e.style.width,a.style.height=e.style.height;let l=a.getAttribute("data-background");l&&!a.style.backgroundImage&&(l.startsWith("url(")||(l="url("+l+")"),a.style.backgroundImage=l,a.removeAttribute("data-background"))}t.innerHTML!==n.innerHTML&&(t.innerHTML=n.innerHTML)}const ep=e=>{const t=e.getAttribute("data-draggable-id");if(t)return e.closest(".bloom-page").querySelector(`[data-target-of="${t}"]`)};function I1(e){const t=ep(e);t&&(t.innerHTML="")}var Tu={exports:{}};var D1=Tu.exports,vv;function Lb(){return vv||(vv=1,(function(e){(function(t,n){e.exports=t.document?n(t,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return n(a)}})(typeof window<"u"?window:D1,function(t,n){var a=[],r=Object.getPrototypeOf,l=a.slice,d=a.flat?function(c){return a.flat.call(c)}:function(c){return a.concat.apply([],c)},f=a.push,p=a.indexOf,y={},k=y.toString,E=y.hasOwnProperty,N=E.toString,I=N.call(Object),L={},K=function(h){return typeof h=="function"&&typeof h.nodeType!="number"&&typeof h.item!="function"},J=function(h){return h!=null&&h===h.window},F=t.document,G={type:!0,src:!0,nonce:!0,noModule:!0};function ot(c,h,m){m=m||F;var w,T,S=m.createElement("script");if(S.text=c,h)for(w in G)T=h[w]||h.getAttribute&&h.getAttribute(w),T&&S.setAttribute(w,T);m.head.appendChild(S).parentNode.removeChild(S)}function dt(c){return c==null?c+"":typeof c=="object"||typeof c=="function"?y[k.call(c)]||"object":typeof c}var _="3.7.1",$=/HTML$/i,v=function(c,h){return new v.fn.init(c,h)};v.fn=v.prototype={jquery:_,constructor:v,length:0,toArray:function(){return l.call(this)},get:function(c){return c==null?l.call(this):c<0?this[c+this.length]:this[c]},pushStack:function(c){var h=v.merge(this.constructor(),c);return h.prevObject=this,h},each:function(c){return v.each(this,c)},map:function(c){return this.pushStack(v.map(this,function(h,m){return c.call(h,m,h)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(v.grep(this,function(c,h){return(h+1)%2}))},odd:function(){return this.pushStack(v.grep(this,function(c,h){return h%2}))},eq:function(c){var h=this.length,m=+c+(c<0?h:0);return this.pushStack(m>=0&&m<h?[this[m]]:[])},end:function(){return this.prevObject||this.constructor()},push:f,sort:a.sort,splice:a.splice},v.extend=v.fn.extend=function(){var c,h,m,w,T,S,P=arguments[0]||{},q=1,j=arguments.length,Z=!1;for(typeof P=="boolean"&&(Z=P,P=arguments[q]||{},q++),typeof P!="object"&&!K(P)&&(P={}),q===j&&(P=this,q--);q<j;q++)if((c=arguments[q])!=null)for(h in c)w=c[h],!(h==="__proto__"||P===w)&&(Z&&w&&(v.isPlainObject(w)||(T=Array.isArray(w)))?(m=P[h],T&&!Array.isArray(m)?S=[]:!T&&!v.isPlainObject(m)?S={}:S=m,T=!1,P[h]=v.extend(Z,S,w)):w!==void 0&&(P[h]=w));return P},v.extend({expando:"jQuery"+(_+Math.random()).replace(/\D/g,""),isReady:!0,error:function(c){throw new Error(c)},noop:function(){},isPlainObject:function(c){var h,m;return!c||k.call(c)!=="[object Object]"?!1:(h=r(c),h?(m=E.call(h,"constructor")&&h.constructor,typeof m=="function"&&N.call(m)===I):!0)},isEmptyObject:function(c){var h;for(h in c)return!1;return!0},globalEval:function(c,h,m){ot(c,{nonce:h&&h.nonce},m)},each:function(c,h){var m,w=0;if(mt(c))for(m=c.length;w<m&&h.call(c[w],w,c[w])!==!1;w++);else for(w in c)if(h.call(c[w],w,c[w])===!1)break;return c},text:function(c){var h,m="",w=0,T=c.nodeType;if(!T)for(;h=c[w++];)m+=v.text(h);return T===1||T===11?c.textContent:T===9?c.documentElement.textContent:T===3||T===4?c.nodeValue:m},makeArray:function(c,h){var m=h||[];return c!=null&&(mt(Object(c))?v.merge(m,typeof c=="string"?[c]:c):f.call(m,c)),m},inArray:function(c,h,m){return h==null?-1:p.call(h,c,m)},isXMLDoc:function(c){var h=c&&c.namespaceURI,m=c&&(c.ownerDocument||c).documentElement;return!$.test(h||m&&m.nodeName||"HTML")},merge:function(c,h){for(var m=+h.length,w=0,T=c.length;w<m;w++)c[T++]=h[w];return c.length=T,c},grep:function(c,h,m){for(var w,T=[],S=0,P=c.length,q=!m;S<P;S++)w=!h(c[S],S),w!==q&&T.push(c[S]);return T},map:function(c,h,m){var w,T,S=0,P=[];if(mt(c))for(w=c.length;S<w;S++)T=h(c[S],S,m),T!=null&&P.push(T);else for(S in c)T=h(c[S],S,m),T!=null&&P.push(T);return d(P)},guid:1,support:L}),typeof Symbol=="function"&&(v.fn[Symbol.iterator]=a[Symbol.iterator]),v.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(c,h){y["[object "+h+"]"]=h.toLowerCase()});function mt(c){var h=!!c&&"length"in c&&c.length,m=dt(c);return K(c)||J(c)?!1:m==="array"||h===0||typeof h=="number"&&h>0&&h-1 in c}function ft(c,h){return c.nodeName&&c.nodeName.toLowerCase()===h.toLowerCase()}var Lt=a.pop,Nt=a.sort,At=a.splice,tt="[\\x20\\t\\r\\n\\f]",H=new RegExp("^"+tt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+tt+"+$","g");v.contains=function(c,h){var m=h&&h.parentNode;return c===m||!!(m&&m.nodeType===1&&(c.contains?c.contains(m):c.compareDocumentPosition&&c.compareDocumentPosition(m)&16))};var s=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function ht(c,h){return h?c==="\0"?"�":c.slice(0,-1)+"\\"+c.charCodeAt(c.length-1).toString(16)+" ":"\\"+c}v.escapeSelector=function(c){return(c+"").replace(s,ht)};var x=F,lt=f;(function(){var c,h,m,w,T,S=lt,P,q,j,Z,ut,pt=v.expando,at=0,Tt=0,oe=eo(),Ne=eo(),ye=eo(),En=eo(),pn=function(B,V){return B===V&&(T=!0),0},Ma="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Aa="(?:\\\\[\\da-fA-F]{1,6}"+tt+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Ce="\\["+tt+"*("+Aa+")(?:"+tt+"*([*^$|!~]?=)"+tt+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Aa+"))|)"+tt+"*\\]",xi=":("+Aa+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Ce+")*)|.*)\\)|)",Be=new RegExp(tt+"+","g"),tn=new RegExp("^"+tt+"*,"+tt+"*"),Cr=new RegExp("^"+tt+"*([>+~]|"+tt+")"+tt+"*"),es=new RegExp(tt+"|>"),Na=new RegExp(xi),Tr=new RegExp("^"+Aa+"$"),ha={ID:new RegExp("^#("+Aa+")"),CLASS:new RegExp("^\\.("+Aa+")"),TAG:new RegExp("^("+Aa+"|[*])"),ATTR:new RegExp("^"+Ce),PSEUDO:new RegExp("^"+xi),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+tt+"*(even|odd|(([+-]|)(\\d*)n|)"+tt+"*(?:([+-]|)"+tt+"*(\\d+)|))"+tt+"*\\)|)","i"),bool:new RegExp("^(?:"+Ma+")$","i"),needsContext:new RegExp("^"+tt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+tt+"*((?:-\\d)?\\d*)"+tt+"*\\)|)(?=[^-]|$)","i")},ai=/^(?:input|select|textarea|button)$/i,ii=/^h\d$/i,pa=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,to=/[+~]/,Fa=new RegExp("\\\\[\\da-fA-F]{1,6}"+tt+"?|\\\\([^\\r\\n\\f])","g"),Wa=function(B,V){var nt="0x"+B.slice(1)-65536;return V||(nt<0?String.fromCharCode(nt+65536):String.fromCharCode(nt>>10|55296,nt&1023|56320))},pc=function(){_a()},gc=io(function(B){return B.disabled===!0&&ft(B,"fieldset")},{dir:"parentNode",next:"legend"});function mc(){try{return P.activeElement}catch{}}try{S.apply(a=l.call(x.childNodes),x.childNodes),a[x.childNodes.length].nodeType}catch{S={apply:function(V,nt){lt.apply(V,l.call(nt))},call:function(V){lt.apply(V,l.call(arguments,1))}}}function qe(B,V,nt,rt){var gt,Bt,Kt,Yt,qt,Se,Zt,le=V&&V.ownerDocument,ge=V?V.nodeType:9;if(nt=nt||[],typeof B!="string"||!B||ge!==1&&ge!==9&&ge!==11)return nt;if(!rt&&(_a(V),V=V||P,j)){if(ge!==11&&(qt=pa.exec(B)))if(gt=qt[1]){if(ge===9)if(Kt=V.getElementById(gt)){if(Kt.id===gt)return S.call(nt,Kt),nt}else return nt;else if(le&&(Kt=le.getElementById(gt))&&qe.contains(V,Kt)&&Kt.id===gt)return S.call(nt,Kt),nt}else{if(qt[2])return S.apply(nt,V.getElementsByTagName(B)),nt;if((gt=qt[3])&&V.getElementsByClassName)return S.apply(nt,V.getElementsByClassName(gt)),nt}if(!En[B+" "]&&(!Z||!Z.test(B))){if(Zt=B,le=V,ge===1&&(es.test(B)||Cr.test(B))){for(le=to.test(B)&&no(V.parentNode)||V,(le!=V||!L.scope)&&((Yt=V.getAttribute("id"))?Yt=v.escapeSelector(Yt):V.setAttribute("id",Yt=pt)),Se=Er(B),Bt=Se.length;Bt--;)Se[Bt]=(Yt?"#"+Yt:":scope")+" "+ao(Se[Bt]);Zt=Se.join(",")}try{return S.apply(nt,le.querySelectorAll(Zt)),nt}catch{En(B,!0)}finally{Yt===pt&&V.removeAttribute("id")}}}return rs(B.replace(H,"$1"),V,nt,rt)}function eo(){var B=[];function V(nt,rt){return B.push(nt+" ")>h.cacheLength&&delete V[B.shift()],V[nt+" "]=rt}return V}function na(B){return B[pt]=!0,B}function La(B){var V=P.createElement("fieldset");try{return!!B(V)}catch{return!1}finally{V.parentNode&&V.parentNode.removeChild(V),V=null}}function vc(B){return function(V){return ft(V,"input")&&V.type===B}}function kl(B){return function(V){return(ft(V,"input")||ft(V,"button"))&&V.type===B}}function ns(B){return function(V){return"form"in V?V.parentNode&&V.disabled===!1?"label"in V?"label"in V.parentNode?V.parentNode.disabled===B:V.disabled===B:V.isDisabled===B||V.isDisabled!==!B&&gc(V)===B:V.disabled===B:"label"in V?V.disabled===B:!1}}function ri(B){return na(function(V){return V=+V,na(function(nt,rt){for(var gt,Bt=B([],nt.length,V),Kt=Bt.length;Kt--;)nt[gt=Bt[Kt]]&&(nt[gt]=!(rt[gt]=nt[gt]))})})}function no(B){return B&&typeof B.getElementsByTagName<"u"&&B}function _a(B){var V,nt=B?B.ownerDocument||B:x;return nt==P||nt.nodeType!==9||!nt.documentElement||(P=nt,q=P.documentElement,j=!v.isXMLDoc(P),ut=q.matches||q.webkitMatchesSelector||q.msMatchesSelector,q.msMatchesSelector&&x!=P&&(V=P.defaultView)&&V.top!==V&&V.addEventListener("unload",pc),L.getById=La(function(rt){return q.appendChild(rt).id=v.expando,!P.getElementsByName||!P.getElementsByName(v.expando).length}),L.disconnectedMatch=La(function(rt){return ut.call(rt,"*")}),L.scope=La(function(){return P.querySelectorAll(":scope")}),L.cssHas=La(function(){try{return P.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),L.getById?(h.filter.ID=function(rt){var gt=rt.replace(Fa,Wa);return function(Bt){return Bt.getAttribute("id")===gt}},h.find.ID=function(rt,gt){if(typeof gt.getElementById<"u"&&j){var Bt=gt.getElementById(rt);return Bt?[Bt]:[]}}):(h.filter.ID=function(rt){var gt=rt.replace(Fa,Wa);return function(Bt){var Kt=typeof Bt.getAttributeNode<"u"&&Bt.getAttributeNode("id");return Kt&&Kt.value===gt}},h.find.ID=function(rt,gt){if(typeof gt.getElementById<"u"&&j){var Bt,Kt,Yt,qt=gt.getElementById(rt);if(qt){if(Bt=qt.getAttributeNode("id"),Bt&&Bt.value===rt)return[qt];for(Yt=gt.getElementsByName(rt),Kt=0;qt=Yt[Kt++];)if(Bt=qt.getAttributeNode("id"),Bt&&Bt.value===rt)return[qt]}return[]}}),h.find.TAG=function(rt,gt){return typeof gt.getElementsByTagName<"u"?gt.getElementsByTagName(rt):gt.querySelectorAll(rt)},h.find.CLASS=function(rt,gt){if(typeof gt.getElementsByClassName<"u"&&j)return gt.getElementsByClassName(rt)},Z=[],La(function(rt){var gt;q.appendChild(rt).innerHTML="<a id='"+pt+"' href='' disabled='disabled'></a><select id='"+pt+"-\r\\' disabled='disabled'><option selected=''></option></select>",rt.querySelectorAll("[selected]").length||Z.push("\\["+tt+"*(?:value|"+Ma+")"),rt.querySelectorAll("[id~="+pt+"-]").length||Z.push("~="),rt.querySelectorAll("a#"+pt+"+*").length||Z.push(".#.+[+~]"),rt.querySelectorAll(":checked").length||Z.push(":checked"),gt=P.createElement("input"),gt.setAttribute("type","hidden"),rt.appendChild(gt).setAttribute("name","D"),q.appendChild(rt).disabled=!0,rt.querySelectorAll(":disabled").length!==2&&Z.push(":enabled",":disabled"),gt=P.createElement("input"),gt.setAttribute("name",""),rt.appendChild(gt),rt.querySelectorAll("[name='']").length||Z.push("\\["+tt+"*name"+tt+"*="+tt+`*(?:''|"")`)}),L.cssHas||Z.push(":has"),Z=Z.length&&new RegExp(Z.join("|")),pn=function(rt,gt){if(rt===gt)return T=!0,0;var Bt=!rt.compareDocumentPosition-!gt.compareDocumentPosition;return Bt||(Bt=(rt.ownerDocument||rt)==(gt.ownerDocument||gt)?rt.compareDocumentPosition(gt):1,Bt&1||!L.sortDetached&>.compareDocumentPosition(rt)===Bt?rt===P||rt.ownerDocument==x&&qe.contains(x,rt)?-1:gt===P||gt.ownerDocument==x&&qe.contains(x,gt)?1:w?p.call(w,rt)-p.call(w,gt):0:Bt&4?-1:1)}),P}qe.matches=function(B,V){return qe(B,null,null,V)},qe.matchesSelector=function(B,V){if(_a(B),j&&!En[V+" "]&&(!Z||!Z.test(V)))try{var nt=ut.call(B,V);if(nt||L.disconnectedMatch||B.document&&B.document.nodeType!==11)return nt}catch{En(V,!0)}return qe(V,P,null,[B]).length>0},qe.contains=function(B,V){return(B.ownerDocument||B)!=P&&_a(B),v.contains(B,V)},qe.attr=function(B,V){(B.ownerDocument||B)!=P&&_a(B);var nt=h.attrHandle[V.toLowerCase()],rt=nt&&E.call(h.attrHandle,V.toLowerCase())?nt(B,V,!j):void 0;return rt!==void 0?rt:B.getAttribute(V)},qe.error=function(B){throw new Error("Syntax error, unrecognized expression: "+B)},v.uniqueSort=function(B){var V,nt=[],rt=0,gt=0;if(T=!L.sortStable,w=!L.sortStable&&l.call(B,0),Nt.call(B,pn),T){for(;V=B[gt++];)V===B[gt]&&(rt=nt.push(gt));for(;rt--;)At.call(B,nt[rt],1)}return w=null,B},v.fn.uniqueSort=function(){return this.pushStack(v.uniqueSort(l.apply(this)))},h=v.expr={cacheLength:50,createPseudo:na,match:ha,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(B){return B[1]=B[1].replace(Fa,Wa),B[3]=(B[3]||B[4]||B[5]||"").replace(Fa,Wa),B[2]==="~="&&(B[3]=" "+B[3]+" "),B.slice(0,4)},CHILD:function(B){return B[1]=B[1].toLowerCase(),B[1].slice(0,3)==="nth"?(B[3]||qe.error(B[0]),B[4]=+(B[4]?B[5]+(B[6]||1):2*(B[3]==="even"||B[3]==="odd")),B[5]=+(B[7]+B[8]||B[3]==="odd")):B[3]&&qe.error(B[0]),B},PSEUDO:function(B){var V,nt=!B[6]&&B[2];return ha.CHILD.test(B[0])?null:(B[3]?B[2]=B[4]||B[5]||"":nt&&Na.test(nt)&&(V=Er(nt,!0))&&(V=nt.indexOf(")",nt.length-V)-nt.length)&&(B[0]=B[0].slice(0,V),B[2]=nt.slice(0,V)),B.slice(0,3))}},filter:{TAG:function(B){var V=B.replace(Fa,Wa).toLowerCase();return B==="*"?function(){return!0}:function(nt){return ft(nt,V)}},CLASS:function(B){var V=oe[B+" "];return V||(V=new RegExp("(^|"+tt+")"+B+"("+tt+"|$)"))&&oe(B,function(nt){return V.test(typeof nt.className=="string"&&nt.className||typeof nt.getAttribute<"u"&&nt.getAttribute("class")||"")})},ATTR:function(B,V,nt){return function(rt){var gt=qe.attr(rt,B);return gt==null?V==="!=":V?(gt+="",V==="="?gt===nt:V==="!="?gt!==nt:V==="^="?nt&>.indexOf(nt)===0:V==="*="?nt&>.indexOf(nt)>-1:V==="$="?nt&>.slice(-nt.length)===nt:V==="~="?(" "+gt.replace(Be," ")+" ").indexOf(nt)>-1:V==="|="?gt===nt||gt.slice(0,nt.length+1)===nt+"-":!1):!0}},CHILD:function(B,V,nt,rt,gt){var Bt=B.slice(0,3)!=="nth",Kt=B.slice(-4)!=="last",Yt=V==="of-type";return rt===1&>===0?function(qt){return!!qt.parentNode}:function(qt,Se,Zt){var le,ge,te,Fe,In,Pn=Bt!==Kt?"nextSibling":"previousSibling",Fn=qt.parentNode,Ba=Yt&&qt.nodeName.toLowerCase(),ba=!Zt&&!Yt,Mn=!1;if(Fn){if(Bt){for(;Pn;){for(te=qt;te=te[Pn];)if(Yt?ft(te,Ba):te.nodeType===1)return!1;In=Pn=B==="only"&&!In&&"nextSibling"}return!0}if(In=[Kt?Fn.firstChild:Fn.lastChild],Kt&&ba){for(ge=Fn[pt]||(Fn[pt]={}),le=ge[B]||[],Fe=le[0]===at&&le[1],Mn=Fe&&le[2],te=Fe&&Fn.childNodes[Fe];te=++Fe&&te&&te[Pn]||(Mn=Fe=0)||In.pop();)if(te.nodeType===1&&++Mn&&te===qt){ge[B]=[at,Fe,Mn];break}}else if(ba&&(ge=qt[pt]||(qt[pt]={}),le=ge[B]||[],Fe=le[0]===at&&le[1],Mn=Fe),Mn===!1)for(;(te=++Fe&&te&&te[Pn]||(Mn=Fe=0)||In.pop())&&!((Yt?ft(te,Ba):te.nodeType===1)&&++Mn&&(ba&&(ge=te[pt]||(te[pt]={}),ge[B]=[at,Mn]),te===qt)););return Mn-=gt,Mn===rt||Mn%rt===0&&Mn/rt>=0}}},PSEUDO:function(B,V){var nt,rt=h.pseudos[B]||h.setFilters[B.toLowerCase()]||qe.error("unsupported pseudo: "+B);return rt[pt]?rt(V):rt.length>1?(nt=[B,B,"",V],h.setFilters.hasOwnProperty(B.toLowerCase())?na(function(gt,Bt){for(var Kt,Yt=rt(gt,V),qt=Yt.length;qt--;)Kt=p.call(gt,Yt[qt]),gt[Kt]=!(Bt[Kt]=Yt[qt])}):function(gt){return rt(gt,0,nt)}):rt}},pseudos:{not:na(function(B){var V=[],nt=[],rt=is(B.replace(H,"$1"));return rt[pt]?na(function(gt,Bt,Kt,Yt){for(var qt,Se=rt(gt,null,Yt,[]),Zt=gt.length;Zt--;)(qt=Se[Zt])&&(gt[Zt]=!(Bt[Zt]=qt))}):function(gt,Bt,Kt){return V[0]=gt,rt(V,null,Kt,nt),V[0]=null,!nt.pop()}}),has:na(function(B){return function(V){return qe(B,V).length>0}}),contains:na(function(B){return B=B.replace(Fa,Wa),function(V){return(V.textContent||v.text(V)).indexOf(B)>-1}}),lang:na(function(B){return Tr.test(B||"")||qe.error("unsupported lang: "+B),B=B.replace(Fa,Wa).toLowerCase(),function(V){var nt;do if(nt=j?V.lang:V.getAttribute("xml:lang")||V.getAttribute("lang"))return nt=nt.toLowerCase(),nt===B||nt.indexOf(B+"-")===0;while((V=V.parentNode)&&V.nodeType===1);return!1}}),target:function(B){var V=t.location&&t.location.hash;return V&&V.slice(1)===B.id},root:function(B){return B===q},focus:function(B){return B===mc()&&P.hasFocus()&&!!(B.type||B.href||~B.tabIndex)},enabled:ns(!1),disabled:ns(!0),checked:function(B){return ft(B,"input")&&!!B.checked||ft(B,"option")&&!!B.selected},selected:function(B){return B.parentNode&&B.parentNode.selectedIndex,B.selected===!0},empty:function(B){for(B=B.firstChild;B;B=B.nextSibling)if(B.nodeType<6)return!1;return!0},parent:function(B){return!h.pseudos.empty(B)},header:function(B){return ii.test(B.nodeName)},input:function(B){return ai.test(B.nodeName)},button:function(B){return ft(B,"input")&&B.type==="button"||ft(B,"button")},text:function(B){var V;return ft(B,"input")&&B.type==="text"&&((V=B.getAttribute("type"))==null||V.toLowerCase()==="text")},first:ri(function(){return[0]}),last:ri(function(B,V){return[V-1]}),eq:ri(function(B,V,nt){return[nt<0?nt+V:nt]}),even:ri(function(B,V){for(var nt=0;nt<V;nt+=2)B.push(nt);return B}),odd:ri(function(B,V){for(var nt=1;nt<V;nt+=2)B.push(nt);return B}),lt:ri(function(B,V,nt){var rt;for(nt<0?rt=nt+V:nt>V?rt=V:rt=nt;--rt>=0;)B.push(rt);return B}),gt:ri(function(B,V,nt){for(var rt=nt<0?nt+V:nt;++rt<V;)B.push(rt);return B})}},h.pseudos.nth=h.pseudos.eq;for(c in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})h.pseudos[c]=vc(c);for(c in{submit:!0,reset:!0})h.pseudos[c]=kl(c);function Si(){}Si.prototype=h.filters=h.pseudos,h.setFilters=new Si;function Er(B,V){var nt,rt,gt,Bt,Kt,Yt,qt,Se=Ne[B+" "];if(Se)return V?0:Se.slice(0);for(Kt=B,Yt=[],qt=h.preFilter;Kt;){(!nt||(rt=tn.exec(Kt)))&&(rt&&(Kt=Kt.slice(rt[0].length)||Kt),Yt.push(gt=[])),nt=!1,(rt=Cr.exec(Kt))&&(nt=rt.shift(),gt.push({value:nt,type:rt[0].replace(H," ")}),Kt=Kt.slice(nt.length));for(Bt in h.filter)(rt=ha[Bt].exec(Kt))&&(!qt[Bt]||(rt=qt[Bt](rt)))&&(nt=rt.shift(),gt.push({value:nt,type:Bt,matches:rt}),Kt=Kt.slice(nt.length));if(!nt)break}return V?Kt.length:Kt?qe.error(B):Ne(B,Yt).slice(0)}function ao(B){for(var V=0,nt=B.length,rt="";V<nt;V++)rt+=B[V].value;return rt}function io(B,V,nt){var rt=V.dir,gt=V.next,Bt=gt||rt,Kt=nt&&Bt==="parentNode",Yt=Tt++;return V.first?function(qt,Se,Zt){for(;qt=qt[rt];)if(qt.nodeType===1||Kt)return B(qt,Se,Zt);return!1}:function(qt,Se,Zt){var le,ge,te=[at,Yt];if(Zt){for(;qt=qt[rt];)if((qt.nodeType===1||Kt)&&B(qt,Se,Zt))return!0}else for(;qt=qt[rt];)if(qt.nodeType===1||Kt)if(ge=qt[pt]||(qt[pt]={}),gt&&ft(qt,gt))qt=qt[rt]||qt;else{if((le=ge[Bt])&&le[0]===at&&le[1]===Yt)return te[2]=le[2];if(ge[Bt]=te,te[2]=B(qt,Se,Zt))return!0}return!1}}function ro(B){return B.length>1?function(V,nt,rt){for(var gt=B.length;gt--;)if(!B[gt](V,nt,rt))return!1;return!0}:B[0]}function xl(B,V,nt){for(var rt=0,gt=V.length;rt<gt;rt++)qe(B,V[rt],nt);return nt}function oi(B,V,nt,rt,gt){for(var Bt,Kt=[],Yt=0,qt=B.length,Se=V!=null;Yt<qt;Yt++)(Bt=B[Yt])&&(!nt||nt(Bt,rt,gt))&&(Kt.push(Bt),Se&&V.push(Yt));return Kt}function Ci(B,V,nt,rt,gt,Bt){return rt&&!rt[pt]&&(rt=Ci(rt)),gt&&!gt[pt]&&(gt=Ci(gt,Bt)),na(function(Kt,Yt,qt,Se){var Zt,le,ge,te,Fe=[],In=[],Pn=Yt.length,Fn=Kt||xl(V||"*",qt.nodeType?[qt]:qt,[]),Ba=B&&(Kt||!V)?oi(Fn,Fe,B,qt,Se):Fn;if(nt?(te=gt||(Kt?B:Pn||rt)?[]:Yt,nt(Ba,te,qt,Se)):te=Ba,rt)for(Zt=oi(te,In),rt(Zt,[],qt,Se),le=Zt.length;le--;)(ge=Zt[le])&&(te[In[le]]=!(Ba[In[le]]=ge));if(Kt){if(gt||B){if(gt){for(Zt=[],le=te.length;le--;)(ge=te[le])&&Zt.push(Ba[le]=ge);gt(null,te=[],Zt,Se)}for(le=te.length;le--;)(ge=te[le])&&(Zt=gt?p.call(Kt,ge):Fe[le])>-1&&(Kt[Zt]=!(Yt[Zt]=ge))}}else te=oi(te===Yt?te.splice(Pn,te.length):te),gt?gt(null,Yt,te,Se):S.apply(Yt,te)})}function as(B){for(var V,nt,rt,gt=B.length,Bt=h.relative[B[0].type],Kt=Bt||h.relative[" "],Yt=Bt?1:0,qt=io(function(le){return le===V},Kt,!0),Se=io(function(le){return p.call(V,le)>-1},Kt,!0),Zt=[function(le,ge,te){var Fe=!Bt&&(te||ge!=m)||((V=ge).nodeType?qt(le,ge,te):Se(le,ge,te));return V=null,Fe}];Yt<gt;Yt++)if(nt=h.relative[B[Yt].type])Zt=[io(ro(Zt),nt)];else{if(nt=h.filter[B[Yt].type].apply(null,B[Yt].matches),nt[pt]){for(rt=++Yt;rt<gt&&!h.relative[B[rt].type];rt++);return Ci(Yt>1&&ro(Zt),Yt>1&&ao(B.slice(0,Yt-1).concat({value:B[Yt-2].type===" "?"*":""})).replace(H,"$1"),nt,Yt<rt&&as(B.slice(Yt,rt)),rt<gt&&as(B=B.slice(rt)),rt<gt&&ao(B))}Zt.push(nt)}return ro(Zt)}function oo(B,V){var nt=V.length>0,rt=B.length>0,gt=function(Bt,Kt,Yt,qt,Se){var Zt,le,ge,te=0,Fe="0",In=Bt&&[],Pn=[],Fn=m,Ba=Bt||rt&&h.find.TAG("*",Se),ba=at+=Fn==null?1:Math.random()||.1,Mn=Ba.length;for(Se&&(m=Kt==P||Kt||Se);Fe!==Mn&&(Zt=Ba[Fe])!=null;Fe++){if(rt&&Zt){for(le=0,!Kt&&Zt.ownerDocument!=P&&(_a(Zt),Yt=!j);ge=B[le++];)if(ge(Zt,Kt||P,Yt)){S.call(qt,Zt);break}Se&&(at=ba)}nt&&((Zt=!ge&&Zt)&&te--,Bt&&In.push(Zt))}if(te+=Fe,nt&&Fe!==te){for(le=0;ge=V[le++];)ge(In,Pn,Kt,Yt);if(Bt){if(te>0)for(;Fe--;)In[Fe]||Pn[Fe]||(Pn[Fe]=Lt.call(qt));Pn=oi(Pn)}S.apply(qt,Pn),Se&&!Bt&&Pn.length>0&&te+V.length>1&&v.uniqueSort(qt)}return Se&&(at=ba,m=Fn),In};return nt?na(gt):gt}function is(B,V){var nt,rt=[],gt=[],Bt=ye[B+" "];if(!Bt){for(V||(V=Er(B)),nt=V.length;nt--;)Bt=as(V[nt]),Bt[pt]?rt.push(Bt):gt.push(Bt);Bt=ye(B,oo(gt,rt)),Bt.selector=B}return Bt}function rs(B,V,nt,rt){var gt,Bt,Kt,Yt,qt,Se=typeof B=="function"&&B,Zt=!rt&&Er(B=Se.selector||B);if(nt=nt||[],Zt.length===1){if(Bt=Zt[0]=Zt[0].slice(0),Bt.length>2&&(Kt=Bt[0]).type==="ID"&&V.nodeType===9&&j&&h.relative[Bt[1].type]){if(V=(h.find.ID(Kt.matches[0].replace(Fa,Wa),V)||[])[0],V)Se&&(V=V.parentNode);else return nt;B=B.slice(Bt.shift().value.length)}for(gt=ha.needsContext.test(B)?0:Bt.length;gt--&&(Kt=Bt[gt],!h.relative[Yt=Kt.type]);)if((qt=h.find[Yt])&&(rt=qt(Kt.matches[0].replace(Fa,Wa),to.test(Bt[0].type)&&no(V.parentNode)||V))){if(Bt.splice(gt,1),B=rt.length&&ao(Bt),!B)return S.apply(nt,rt),nt;break}}return(Se||is(B,Zt))(rt,V,!j,nt,!V||to.test(B)&&no(V.parentNode)||V),nt}L.sortStable=pt.split("").sort(pn).join("")===pt,_a(),L.sortDetached=La(function(B){return B.compareDocumentPosition(P.createElement("fieldset"))&1}),v.find=qe,v.expr[":"]=v.expr.pseudos,v.unique=v.uniqueSort,qe.compile=is,qe.select=rs,qe.setDocument=_a,qe.tokenize=Er,qe.escape=v.escapeSelector,qe.getText=v.text,qe.isXML=v.isXMLDoc,qe.selectors=v.expr,qe.support=v.support,qe.uniqueSort=v.uniqueSort})();var bt=function(c,h,m){for(var w=[],T=m!==void 0;(c=c[h])&&c.nodeType!==9;)if(c.nodeType===1){if(T&&v(c).is(m))break;w.push(c)}return w},St=function(c,h){for(var m=[];c;c=c.nextSibling)c.nodeType===1&&c!==h&&m.push(c);return m},O=v.expr.match.needsContext,wt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function xt(c,h,m){return K(h)?v.grep(c,function(w,T){return!!h.call(w,T,w)!==m}):h.nodeType?v.grep(c,function(w){return w===h!==m}):typeof h!="string"?v.grep(c,function(w){return p.call(h,w)>-1!==m}):v.filter(h,c,m)}v.filter=function(c,h,m){var w=h[0];return m&&(c=":not("+c+")"),h.length===1&&w.nodeType===1?v.find.matchesSelector(w,c)?[w]:[]:v.find.matches(c,v.grep(h,function(T){return T.nodeType===1}))},v.fn.extend({find:function(c){var h,m,w=this.length,T=this;if(typeof c!="string")return this.pushStack(v(c).filter(function(){for(h=0;h<w;h++)if(v.contains(T[h],this))return!0}));for(m=this.pushStack([]),h=0;h<w;h++)v.find(c,T[h],m);return w>1?v.uniqueSort(m):m},filter:function(c){return this.pushStack(xt(this,c||[],!1))},not:function(c){return this.pushStack(xt(this,c||[],!0))},is:function(c){return!!xt(this,typeof c=="string"&&O.test(c)?v(c):c||[],!1).length}});var Ot,Mt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ht=v.fn.init=function(c,h,m){var w,T;if(!c)return this;if(m=m||Ot,typeof c=="string")if(c[0]==="<"&&c[c.length-1]===">"&&c.length>=3?w=[null,c,null]:w=Mt.exec(c),w&&(w[1]||!h))if(w[1]){if(h=h instanceof v?h[0]:h,v.merge(this,v.parseHTML(w[1],h&&h.nodeType?h.ownerDocument||h:F,!0)),wt.test(w[1])&&v.isPlainObject(h))for(w in h)K(this[w])?this[w](h[w]):this.attr(w,h[w]);return this}else return T=F.getElementById(w[2]),T&&(this[0]=T,this.length=1),this;else return!h||h.jquery?(h||m).find(c):this.constructor(h).find(c);else{if(c.nodeType)return this[0]=c,this.length=1,this;if(K(c))return m.ready!==void 0?m.ready(c):c(v)}return v.makeArray(c,this)};Ht.prototype=v.fn,Ot=v(F);var Qt=/^(?:parents|prev(?:Until|All))/,de={children:!0,contents:!0,next:!0,prev:!0};v.fn.extend({has:function(c){var h=v(c,this),m=h.length;return this.filter(function(){for(var w=0;w<m;w++)if(v.contains(this,h[w]))return!0})},closest:function(c,h){var m,w=0,T=this.length,S=[],P=typeof c!="string"&&v(c);if(!O.test(c)){for(;w<T;w++)for(m=this[w];m&&m!==h;m=m.parentNode)if(m.nodeType<11&&(P?P.index(m)>-1:m.nodeType===1&&v.find.matchesSelector(m,c))){S.push(m);break}}return this.pushStack(S.length>1?v.uniqueSort(S):S)},index:function(c){return c?typeof c=="string"?p.call(v(c),this[0]):p.call(this,c.jquery?c[0]:c):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(c,h){return this.pushStack(v.uniqueSort(v.merge(this.get(),v(c,h))))},addBack:function(c){return this.add(c==null?this.prevObject:this.prevObject.filter(c))}});function me(c,h){for(;(c=c[h])&&c.nodeType!==1;);return c}v.each({parent:function(c){var h=c.parentNode;return h&&h.nodeType!==11?h:null},parents:function(c){return bt(c,"parentNode")},parentsUntil:function(c,h,m){return bt(c,"parentNode",m)},next:function(c){return me(c,"nextSibling")},prev:function(c){return me(c,"previousSibling")},nextAll:function(c){return bt(c,"nextSibling")},prevAll:function(c){return bt(c,"previousSibling")},nextUntil:function(c,h,m){return bt(c,"nextSibling",m)},prevUntil:function(c,h,m){return bt(c,"previousSibling",m)},siblings:function(c){return St((c.parentNode||{}).firstChild,c)},children:function(c){return St(c.firstChild)},contents:function(c){return c.contentDocument!=null&&r(c.contentDocument)?c.contentDocument:(ft(c,"template")&&(c=c.content||c),v.merge([],c.childNodes))}},function(c,h){v.fn[c]=function(m,w){var T=v.map(this,h,m);return c.slice(-5)!=="Until"&&(w=m),w&&typeof w=="string"&&(T=v.filter(w,T)),this.length>1&&(de[c]||v.uniqueSort(T),Qt.test(c)&&T.reverse()),this.pushStack(T)}});var Pe=/[^\x20\t\r\n\f]+/g;function ln(c){var h={};return v.each(c.match(Pe)||[],function(m,w){h[w]=!0}),h}v.Callbacks=function(c){c=typeof c=="string"?ln(c):v.extend({},c);var h,m,w,T,S=[],P=[],q=-1,j=function(){for(T=T||c.once,w=h=!0;P.length;q=-1)for(m=P.shift();++q<S.length;)S[q].apply(m[0],m[1])===!1&&c.stopOnFalse&&(q=S.length,m=!1);c.memory||(m=!1),h=!1,T&&(m?S=[]:S="")},Z={add:function(){return S&&(m&&!h&&(q=S.length-1,P.push(m)),(function ut(pt){v.each(pt,function(at,Tt){K(Tt)?(!c.unique||!Z.has(Tt))&&S.push(Tt):Tt&&Tt.length&&dt(Tt)!=="string"&&ut(Tt)})})(arguments),m&&!h&&j()),this},remove:function(){return v.each(arguments,function(ut,pt){for(var at;(at=v.inArray(pt,S,at))>-1;)S.splice(at,1),at<=q&&q--}),this},has:function(ut){return ut?v.inArray(ut,S)>-1:S.length>0},empty:function(){return S&&(S=[]),this},disable:function(){return T=P=[],S=m="",this},disabled:function(){return!S},lock:function(){return T=P=[],!m&&!h&&(S=m=""),this},locked:function(){return!!T},fireWith:function(ut,pt){return T||(pt=pt||[],pt=[ut,pt.slice?pt.slice():pt],P.push(pt),h||j()),this},fire:function(){return Z.fireWith(this,arguments),this},fired:function(){return!!w}};return Z};function Oe(c){return c}function rn(c){throw c}function Ve(c,h,m,w){var T;try{c&&K(T=c.promise)?T.call(c).done(h).fail(m):c&&K(T=c.then)?T.call(c,h,m):h.apply(void 0,[c].slice(w))}catch(S){m.apply(void 0,[S])}}v.extend({Deferred:function(c){var h=[["notify","progress",v.Callbacks("memory"),v.Callbacks("memory"),2],["resolve","done",v.Callbacks("once memory"),v.Callbacks("once memory"),0,"resolved"],["reject","fail",v.Callbacks("once memory"),v.Callbacks("once memory"),1,"rejected"]],m="pending",w={state:function(){return m},always:function(){return T.done(arguments).fail(arguments),this},catch:function(S){return w.then(null,S)},pipe:function(){var S=arguments;return v.Deferred(function(P){v.each(h,function(q,j){var Z=K(S[j[4]])&&S[j[4]];T[j[1]](function(){var ut=Z&&Z.apply(this,arguments);ut&&K(ut.promise)?ut.promise().progress(P.notify).done(P.resolve).fail(P.reject):P[j[0]+"With"](this,Z?[ut]:arguments)})}),S=null}).promise()},then:function(S,P,q){var j=0;function Z(ut,pt,at,Tt){return function(){var oe=this,Ne=arguments,ye=function(){var pn,Ma;if(!(ut<j)){if(pn=at.apply(oe,Ne),pn===pt.promise())throw new TypeError("Thenable self-resolution");Ma=pn&&(typeof pn=="object"||typeof pn=="function")&&pn.then,K(Ma)?Tt?Ma.call(pn,Z(j,pt,Oe,Tt),Z(j,pt,rn,Tt)):(j++,Ma.call(pn,Z(j,pt,Oe,Tt),Z(j,pt,rn,Tt),Z(j,pt,Oe,pt.notifyWith))):(at!==Oe&&(oe=void 0,Ne=[pn]),(Tt||pt.resolveWith)(oe,Ne))}},En=Tt?ye:function(){try{ye()}catch(pn){v.Deferred.exceptionHook&&v.Deferred.exceptionHook(pn,En.error),ut+1>=j&&(at!==rn&&(oe=void 0,Ne=[pn]),pt.rejectWith(oe,Ne))}};ut?En():(v.Deferred.getErrorHook?En.error=v.Deferred.getErrorHook():v.Deferred.getStackHook&&(En.error=v.Deferred.getStackHook()),t.setTimeout(En))}}return v.Deferred(function(ut){h[0][3].add(Z(0,ut,K(q)?q:Oe,ut.notifyWith)),h[1][3].add(Z(0,ut,K(S)?S:Oe)),h[2][3].add(Z(0,ut,K(P)?P:rn))}).promise()},promise:function(S){return S!=null?v.extend(S,w):w}},T={};return v.each(h,function(S,P){var q=P[2],j=P[5];w[P[1]]=q.add,j&&q.add(function(){m=j},h[3-S][2].disable,h[3-S][3].disable,h[0][2].lock,h[0][3].lock),q.add(P[3].fire),T[P[0]]=function(){return T[P[0]+"With"](this===T?void 0:this,arguments),this},T[P[0]+"With"]=q.fireWith}),w.promise(T),c&&c.call(T,T),T},when:function(c){var h=arguments.length,m=h,w=Array(m),T=l.call(arguments),S=v.Deferred(),P=function(q){return function(j){w[q]=this,T[q]=arguments.length>1?l.call(arguments):j,--h||S.resolveWith(w,T)}};if(h<=1&&(Ve(c,S.done(P(m)).resolve,S.reject,!h),S.state()==="pending"||K(T[m]&&T[m].then)))return S.then();for(;m--;)Ve(T[m],P(m),S.reject);return S.promise()}});var kn=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;v.Deferred.exceptionHook=function(c,h){t.console&&t.console.warn&&c&&kn.test(c.name)&&t.console.warn("jQuery.Deferred exception: "+c.message,c.stack,h)},v.readyException=function(c){t.setTimeout(function(){throw c})};var Ye=v.Deferred();v.fn.ready=function(c){return Ye.then(c).catch(function(h){v.readyException(h)}),this},v.extend({isReady:!1,readyWait:1,ready:function(c){(c===!0?--v.readyWait:v.isReady)||(v.isReady=!0,!(c!==!0&&--v.readyWait>0)&&Ye.resolveWith(F,[v]))}}),v.ready.then=Ye.then;function yn(){F.removeEventListener("DOMContentLoaded",yn),t.removeEventListener("load",yn),v.ready()}F.readyState==="complete"||F.readyState!=="loading"&&!F.documentElement.doScroll?t.setTimeout(v.ready):(F.addEventListener("DOMContentLoaded",yn),t.addEventListener("load",yn));var Je=function(c,h,m,w,T,S,P){var q=0,j=c.length,Z=m==null;if(dt(m)==="object"){T=!0;for(q in m)Je(c,h,q,m[q],!0,S,P)}else if(w!==void 0&&(T=!0,K(w)||(P=!0),Z&&(P?(h.call(c,w),h=null):(Z=h,h=function(ut,pt,at){return Z.call(v(ut),at)})),h))for(;q<j;q++)h(c[q],m,P?w:w.call(c[q],q,h(c[q],m)));return T?c:Z?h.call(c):j?h(c[0],m):S},un=/^-ms-/,M=/-([a-z])/g;function D(c,h){return h.toUpperCase()}function Y(c){return c.replace(un,"ms-").replace(M,D)}var it=function(c){return c.nodeType===1||c.nodeType===9||!+c.nodeType};function vt(){this.expando=v.expando+vt.uid++}vt.uid=1,vt.prototype={cache:function(c){var h=c[this.expando];return h||(h={},it(c)&&(c.nodeType?c[this.expando]=h:Object.defineProperty(c,this.expando,{value:h,configurable:!0}))),h},set:function(c,h,m){var w,T=this.cache(c);if(typeof h=="string")T[Y(h)]=m;else for(w in h)T[Y(w)]=h[w];return T},get:function(c,h){return h===void 0?this.cache(c):c[this.expando]&&c[this.expando][Y(h)]},access:function(c,h,m){return h===void 0||h&&typeof h=="string"&&m===void 0?this.get(c,h):(this.set(c,h,m),m!==void 0?m:h)},remove:function(c,h){var m,w=c[this.expando];if(w!==void 0){if(h!==void 0)for(Array.isArray(h)?h=h.map(Y):(h=Y(h),h=h in w?[h]:h.match(Pe)||[]),m=h.length;m--;)delete w[h[m]];(h===void 0||v.isEmptyObject(w))&&(c.nodeType?c[this.expando]=void 0:delete c[this.expando])}},hasData:function(c){var h=c[this.expando];return h!==void 0&&!v.isEmptyObject(h)}};var st=new vt,Xt=new vt,Me=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Re=/[A-Z]/g;function ee(c){return c==="true"?!0:c==="false"?!1:c==="null"?null:c===+c+""?+c:Me.test(c)?JSON.parse(c):c}function Xe(c,h,m){var w;if(m===void 0&&c.nodeType===1)if(w="data-"+h.replace(Re,"-$&").toLowerCase(),m=c.getAttribute(w),typeof m=="string"){try{m=ee(m)}catch{}Xt.set(c,h,m)}else m=void 0;return m}v.extend({hasData:function(c){return Xt.hasData(c)||st.hasData(c)},data:function(c,h,m){return Xt.access(c,h,m)},removeData:function(c,h){Xt.remove(c,h)},_data:function(c,h,m){return st.access(c,h,m)},_removeData:function(c,h){st.remove(c,h)}}),v.fn.extend({data:function(c,h){var m,w,T,S=this[0],P=S&&S.attributes;if(c===void 0){if(this.length&&(T=Xt.get(S),S.nodeType===1&&!st.get(S,"hasDataAttrs"))){for(m=P.length;m--;)P[m]&&(w=P[m].name,w.indexOf("data-")===0&&(w=Y(w.slice(5)),Xe(S,w,T[w])));st.set(S,"hasDataAttrs",!0)}return T}return typeof c=="object"?this.each(function(){Xt.set(this,c)}):Je(this,function(q){var j;if(S&&q===void 0)return j=Xt.get(S,c),j!==void 0||(j=Xe(S,c),j!==void 0)?j:void 0;this.each(function(){Xt.set(this,c,q)})},null,h,arguments.length>1,null,!0)},removeData:function(c){return this.each(function(){Xt.remove(this,c)})}}),v.extend({queue:function(c,h,m){var w;if(c)return h=(h||"fx")+"queue",w=st.get(c,h),m&&(!w||Array.isArray(m)?w=st.access(c,h,v.makeArray(m)):w.push(m)),w||[]},dequeue:function(c,h){h=h||"fx";var m=v.queue(c,h),w=m.length,T=m.shift(),S=v._queueHooks(c,h),P=function(){v.dequeue(c,h)};T==="inprogress"&&(T=m.shift(),w--),T&&(h==="fx"&&m.unshift("inprogress"),delete S.stop,T.call(c,P,S)),!w&&S&&S.empty.fire()},_queueHooks:function(c,h){var m=h+"queueHooks";return st.get(c,m)||st.access(c,m,{empty:v.Callbacks("once memory").add(function(){st.remove(c,[h+"queue",m])})})}}),v.fn.extend({queue:function(c,h){var m=2;return typeof c!="string"&&(h=c,c="fx",m--),arguments.length<m?v.queue(this[0],c):h===void 0?this:this.each(function(){var w=v.queue(this,c,h);v._queueHooks(this,c),c==="fx"&&w[0]!=="inprogress"&&v.dequeue(this,c)})},dequeue:function(c){return this.each(function(){v.dequeue(this,c)})},clearQueue:function(c){return this.queue(c||"fx",[])},promise:function(c,h){var m,w=1,T=v.Deferred(),S=this,P=this.length,q=function(){--w||T.resolveWith(S,[S])};for(typeof c!="string"&&(h=c,c=void 0),c=c||"fx";P--;)m=st.get(S[P],c+"queueHooks"),m&&m.empty&&(w++,m.empty.add(q));return q(),T.promise(h)}});var Qe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Kn=new RegExp("^(?:([+-])=|)("+Qe+")([a-z%]*)$","i"),Ze=["Top","Right","Bottom","Left"],xn=F.documentElement,Bn=function(c){return v.contains(c.ownerDocument,c)},qn={composed:!0};xn.getRootNode&&(Bn=function(c){return v.contains(c.ownerDocument,c)||c.getRootNode(qn)===c.ownerDocument});var Vt=function(c,h){return c=h||c,c.style.display==="none"||c.style.display===""&&Bn(c)&&v.css(c,"display")==="none"};function Nn(c,h,m,w){var T,S,P=20,q=w?function(){return w.cur()}:function(){return v.css(c,h,"")},j=q(),Z=m&&m[3]||(v.cssNumber[h]?"":"px"),ut=c.nodeType&&(v.cssNumber[h]||Z!=="px"&&+j)&&Kn.exec(v.css(c,h));if(ut&&ut[3]!==Z){for(j=j/2,Z=Z||ut[3],ut=+j||1;P--;)v.style(c,h,ut+Z),(1-S)*(1-(S=q()/j||.5))<=0&&(P=0),ut=ut/S;ut=ut*2,v.style(c,h,ut+Z),m=m||[]}return m&&(ut=+ut||+j||0,T=m[1]?ut+(m[1]+1)*m[2]:+m[2],w&&(w.unit=Z,w.start=ut,w.end=T)),T}var X={};function Ut(c){var h,m=c.ownerDocument,w=c.nodeName,T=X[w];return T||(h=m.body.appendChild(m.createElement(w)),T=v.css(h,"display"),h.parentNode.removeChild(h),T==="none"&&(T="block"),X[w]=T,T)}function ie(c,h){for(var m,w,T=[],S=0,P=c.length;S<P;S++)w=c[S],w.style&&(m=w.style.display,h?(m==="none"&&(T[S]=st.get(w,"display")||null,T[S]||(w.style.display="")),w.style.display===""&&Vt(w)&&(T[S]=Ut(w))):m!=="none"&&(T[S]="none",st.set(w,"display",m)));for(S=0;S<P;S++)T[S]!=null&&(c[S].style.display=T[S]);return c}v.fn.extend({show:function(){return ie(this,!0)},hide:function(){return ie(this)},toggle:function(c){return typeof c=="boolean"?c?this.show():this.hide():this.each(function(){Vt(this)?v(this).show():v(this).hide()})}});var $e=/^(?:checkbox|radio)$/i,Ge=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ue=/^$|^module$|\/(?:java|ecma)script/i;(function(){var c=F.createDocumentFragment(),h=c.appendChild(F.createElement("div")),m=F.createElement("input");m.setAttribute("type","radio"),m.setAttribute("checked","checked"),m.setAttribute("name","t"),h.appendChild(m),L.checkClone=h.cloneNode(!0).cloneNode(!0).lastChild.checked,h.innerHTML="<textarea>x</textarea>",L.noCloneChecked=!!h.cloneNode(!0).lastChild.defaultValue,h.innerHTML="<option></option>",L.option=!!h.lastChild})();var ke={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ke.tbody=ke.tfoot=ke.colgroup=ke.caption=ke.thead,ke.th=ke.td,L.option||(ke.optgroup=ke.option=[1,"<select multiple='multiple'>","</select>"]);function Pt(c,h){var m;return typeof c.getElementsByTagName<"u"?m=c.getElementsByTagName(h||"*"):typeof c.querySelectorAll<"u"?m=c.querySelectorAll(h||"*"):m=[],h===void 0||h&&ft(c,h)?v.merge([c],m):m}function ne(c,h){for(var m=0,w=c.length;m<w;m++)st.set(c[m],"globalEval",!h||st.get(h[m],"globalEval"))}var xe=/<|&#?\w+;/;function ve(c,h,m,w,T){for(var S,P,q,j,Z,ut,pt=h.createDocumentFragment(),at=[],Tt=0,oe=c.length;Tt<oe;Tt++)if(S=c[Tt],S||S===0)if(dt(S)==="object")v.merge(at,S.nodeType?[S]:S);else if(!xe.test(S))at.push(h.createTextNode(S));else{for(P=P||pt.appendChild(h.createElement("div")),q=(Ge.exec(S)||["",""])[1].toLowerCase(),j=ke[q]||ke._default,P.innerHTML=j[1]+v.htmlPrefilter(S)+j[2],ut=j[0];ut--;)P=P.lastChild;v.merge(at,P.childNodes),P=pt.firstChild,P.textContent=""}for(pt.textContent="",Tt=0;S=at[Tt++];){if(w&&v.inArray(S,w)>-1){T&&T.push(S);continue}if(Z=Bn(S),P=Pt(pt.appendChild(S),"script"),Z&&ne(P),m)for(ut=0;S=P[ut++];)Ue.test(S.type||"")&&m.push(S)}return pt}var zt=/^([^.]*)(?:\.(.+)|)/;function Ft(){return!0}function re(){return!1}function Le(c,h,m,w,T,S){var P,q;if(typeof h=="object"){typeof m!="string"&&(w=w||m,m=void 0);for(q in h)Le(c,q,m,w,h[q],S);return c}if(w==null&&T==null?(T=m,w=m=void 0):T==null&&(typeof m=="string"?(T=w,w=void 0):(T=w,w=m,m=void 0)),T===!1)T=re;else if(!T)return c;return S===1&&(P=T,T=function(j){return v().off(j),P.apply(this,arguments)},T.guid=P.guid||(P.guid=v.guid++)),c.each(function(){v.event.add(this,h,T,w,m)})}v.event={global:{},add:function(c,h,m,w,T){var S,P,q,j,Z,ut,pt,at,Tt,oe,Ne,ye=st.get(c);if(it(c))for(m.handler&&(S=m,m=S.handler,T=S.selector),T&&v.find.matchesSelector(xn,T),m.guid||(m.guid=v.guid++),(j=ye.events)||(j=ye.events=Object.create(null)),(P=ye.handle)||(P=ye.handle=function(En){return typeof v<"u"&&v.event.triggered!==En.type?v.event.dispatch.apply(c,arguments):void 0}),h=(h||"").match(Pe)||[""],Z=h.length;Z--;)q=zt.exec(h[Z])||[],Tt=Ne=q[1],oe=(q[2]||"").split(".").sort(),Tt&&(pt=v.event.special[Tt]||{},Tt=(T?pt.delegateType:pt.bindType)||Tt,pt=v.event.special[Tt]||{},ut=v.extend({type:Tt,origType:Ne,data:w,handler:m,guid:m.guid,selector:T,needsContext:T&&v.expr.match.needsContext.test(T),namespace:oe.join(".")},S),(at=j[Tt])||(at=j[Tt]=[],at.delegateCount=0,(!pt.setup||pt.setup.call(c,w,oe,P)===!1)&&c.addEventListener&&c.addEventListener(Tt,P)),pt.add&&(pt.add.call(c,ut),ut.handler.guid||(ut.handler.guid=m.guid)),T?at.splice(at.delegateCount++,0,ut):at.push(ut),v.event.global[Tt]=!0)},remove:function(c,h,m,w,T){var S,P,q,j,Z,ut,pt,at,Tt,oe,Ne,ye=st.hasData(c)&&st.get(c);if(!(!ye||!(j=ye.events))){for(h=(h||"").match(Pe)||[""],Z=h.length;Z--;){if(q=zt.exec(h[Z])||[],Tt=Ne=q[1],oe=(q[2]||"").split(".").sort(),!Tt){for(Tt in j)v.event.remove(c,Tt+h[Z],m,w,!0);continue}for(pt=v.event.special[Tt]||{},Tt=(w?pt.delegateType:pt.bindType)||Tt,at=j[Tt]||[],q=q[2]&&new RegExp("(^|\\.)"+oe.join("\\.(?:.*\\.|)")+"(\\.|$)"),P=S=at.length;S--;)ut=at[S],(T||Ne===ut.origType)&&(!m||m.guid===ut.guid)&&(!q||q.test(ut.namespace))&&(!w||w===ut.selector||w==="**"&&ut.selector)&&(at.splice(S,1),ut.selector&&at.delegateCount--,pt.remove&&pt.remove.call(c,ut));P&&!at.length&&((!pt.teardown||pt.teardown.call(c,oe,ye.handle)===!1)&&v.removeEvent(c,Tt,ye.handle),delete j[Tt])}v.isEmptyObject(j)&&st.remove(c,"handle events")}},dispatch:function(c){var h,m,w,T,S,P,q=new Array(arguments.length),j=v.event.fix(c),Z=(st.get(this,"events")||Object.create(null))[j.type]||[],ut=v.event.special[j.type]||{};for(q[0]=j,h=1;h<arguments.length;h++)q[h]=arguments[h];if(j.delegateTarget=this,!(ut.preDispatch&&ut.preDispatch.call(this,j)===!1)){for(P=v.event.handlers.call(this,j,Z),h=0;(T=P[h++])&&!j.isPropagationStopped();)for(j.currentTarget=T.elem,m=0;(S=T.handlers[m++])&&!j.isImmediatePropagationStopped();)(!j.rnamespace||S.namespace===!1||j.rnamespace.test(S.namespace))&&(j.handleObj=S,j.data=S.data,w=((v.event.special[S.origType]||{}).handle||S.handler).apply(T.elem,q),w!==void 0&&(j.result=w)===!1&&(j.preventDefault(),j.stopPropagation()));return ut.postDispatch&&ut.postDispatch.call(this,j),j.result}},handlers:function(c,h){var m,w,T,S,P,q=[],j=h.delegateCount,Z=c.target;if(j&&Z.nodeType&&!(c.type==="click"&&c.button>=1)){for(;Z!==this;Z=Z.parentNode||this)if(Z.nodeType===1&&!(c.type==="click"&&Z.disabled===!0)){for(S=[],P={},m=0;m<j;m++)w=h[m],T=w.selector+" ",P[T]===void 0&&(P[T]=w.needsContext?v(T,this).index(Z)>-1:v.find(T,this,null,[Z]).length),P[T]&&S.push(w);S.length&&q.push({elem:Z,handlers:S})}}return Z=this,j<h.length&&q.push({elem:Z,handlers:h.slice(j)}),q},addProp:function(c,h){Object.defineProperty(v.Event.prototype,c,{enumerable:!0,configurable:!0,get:K(h)?function(){if(this.originalEvent)return h(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[c]},set:function(m){Object.defineProperty(this,c,{enumerable:!0,configurable:!0,writable:!0,value:m})}})},fix:function(c){return c[v.expando]?c:new v.Event(c)},special:{load:{noBubble:!0},click:{setup:function(c){var h=this||c;return $e.test(h.type)&&h.click&&ft(h,"input")&&Ae(h,"click",!0),!1},trigger:function(c){var h=this||c;return $e.test(h.type)&&h.click&&ft(h,"input")&&Ae(h,"click"),!0},_default:function(c){var h=c.target;return $e.test(h.type)&&h.click&&ft(h,"input")&&st.get(h,"click")||ft(h,"a")}},beforeunload:{postDispatch:function(c){c.result!==void 0&&c.originalEvent&&(c.originalEvent.returnValue=c.result)}}}};function Ae(c,h,m){if(!m){st.get(c,h)===void 0&&v.event.add(c,h,Ft);return}st.set(c,h,!1),v.event.add(c,h,{namespace:!1,handler:function(w){var T,S=st.get(this,h);if(w.isTrigger&1&&this[h]){if(S)(v.event.special[h]||{}).delegateType&&w.stopPropagation();else if(S=l.call(arguments),st.set(this,h,S),this[h](),T=st.get(this,h),st.set(this,h,!1),S!==T)return w.stopImmediatePropagation(),w.preventDefault(),T}else S&&(st.set(this,h,v.event.trigger(S[0],S.slice(1),this)),w.stopPropagation(),w.isImmediatePropagationStopped=Ft)}})}v.removeEvent=function(c,h,m){c.removeEventListener&&c.removeEventListener(h,m)},v.Event=function(c,h){if(!(this instanceof v.Event))return new v.Event(c,h);c&&c.type?(this.originalEvent=c,this.type=c.type,this.isDefaultPrevented=c.defaultPrevented||c.defaultPrevented===void 0&&c.returnValue===!1?Ft:re,this.target=c.target&&c.target.nodeType===3?c.target.parentNode:c.target,this.currentTarget=c.currentTarget,this.relatedTarget=c.relatedTarget):this.type=c,h&&v.extend(this,h),this.timeStamp=c&&c.timeStamp||Date.now(),this[v.expando]=!0},v.Event.prototype={constructor:v.Event,isDefaultPrevented:re,isPropagationStopped:re,isImmediatePropagationStopped:re,isSimulated:!1,preventDefault:function(){var c=this.originalEvent;this.isDefaultPrevented=Ft,c&&!this.isSimulated&&c.preventDefault()},stopPropagation:function(){var c=this.originalEvent;this.isPropagationStopped=Ft,c&&!this.isSimulated&&c.stopPropagation()},stopImmediatePropagation:function(){var c=this.originalEvent;this.isImmediatePropagationStopped=Ft,c&&!this.isSimulated&&c.stopImmediatePropagation(),this.stopPropagation()}},v.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},v.event.addProp),v.each({focus:"focusin",blur:"focusout"},function(c,h){function m(w){if(F.documentMode){var T=st.get(this,"handle"),S=v.event.fix(w);S.type=w.type==="focusin"?"focus":"blur",S.isSimulated=!0,T(w),S.target===S.currentTarget&&T(S)}else v.event.simulate(h,w.target,v.event.fix(w))}v.event.special[c]={setup:function(){var w;if(Ae(this,c,!0),F.documentMode)w=st.get(this,h),w||this.addEventListener(h,m),st.set(this,h,(w||0)+1);else return!1},trigger:function(){return Ae(this,c),!0},teardown:function(){var w;if(F.documentMode)w=st.get(this,h)-1,w?st.set(this,h,w):(this.removeEventListener(h,m),st.remove(this,h));else return!1},_default:function(w){return st.get(w.target,c)},delegateType:h},v.event.special[h]={setup:function(){var w=this.ownerDocument||this.document||this,T=F.documentMode?this:w,S=st.get(T,h);S||(F.documentMode?this.addEventListener(h,m):w.addEventListener(c,m,!0)),st.set(T,h,(S||0)+1)},teardown:function(){var w=this.ownerDocument||this.document||this,T=F.documentMode?this:w,S=st.get(T,h)-1;S?st.set(T,h,S):(F.documentMode?this.removeEventListener(h,m):w.removeEventListener(c,m,!0),st.remove(T,h))}}}),v.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(c,h){v.event.special[c]={delegateType:h,bindType:h,handle:function(m){var w,T=this,S=m.relatedTarget,P=m.handleObj;return(!S||S!==T&&!v.contains(T,S))&&(m.type=P.origType,w=P.handler.apply(this,arguments),m.type=h),w}}}),v.fn.extend({on:function(c,h,m,w){return Le(this,c,h,m,w)},one:function(c,h,m,w){return Le(this,c,h,m,w,1)},off:function(c,h,m){var w,T;if(c&&c.preventDefault&&c.handleObj)return w=c.handleObj,v(c.delegateTarget).off(w.namespace?w.origType+"."+w.namespace:w.origType,w.selector,w.handler),this;if(typeof c=="object"){for(T in c)this.off(T,h,c[T]);return this}return(h===!1||typeof h=="function")&&(m=h,h=void 0),m===!1&&(m=re),this.each(function(){v.event.remove(this,c,m,h)})}});var cn=/<script|<style|<link/i,je=/checked\s*(?:[^=]|=\s*.checked.)/i,$n=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Jn(c,h){return ft(c,"table")&&ft(h.nodeType!==11?h:h.firstChild,"tr")&&v(c).children("tbody")[0]||c}function la(c){return c.type=(c.getAttribute("type")!==null)+"/"+c.type,c}function ua(c){return(c.type||"").slice(0,5)==="true/"?c.type=c.type.slice(5):c.removeAttribute("type"),c}function Qn(c,h){var m,w,T,S,P,q,j;if(h.nodeType===1){if(st.hasData(c)&&(S=st.get(c),j=S.events,j)){st.remove(h,"handle events");for(T in j)for(m=0,w=j[T].length;m<w;m++)v.event.add(h,T,j[T][m])}Xt.hasData(c)&&(P=Xt.access(c),q=v.extend({},P),Xt.set(h,q))}}function ur(c,h){var m=h.nodeName.toLowerCase();m==="input"&&$e.test(c.type)?h.checked=c.checked:(m==="input"||m==="textarea")&&(h.defaultValue=c.defaultValue)}function Sn(c,h,m,w){h=d(h);var T,S,P,q,j,Z,ut=0,pt=c.length,at=pt-1,Tt=h[0],oe=K(Tt);if(oe||pt>1&&typeof Tt=="string"&&!L.checkClone&&je.test(Tt))return c.each(function(Ne){var ye=c.eq(Ne);oe&&(h[0]=Tt.call(this,Ne,ye.html())),Sn(ye,h,m,w)});if(pt&&(T=ve(h,c[0].ownerDocument,!1,c,w),S=T.firstChild,T.childNodes.length===1&&(T=S),S||w)){for(P=v.map(Pt(T,"script"),la),q=P.length;ut<pt;ut++)j=T,ut!==at&&(j=v.clone(j,!0,!0),q&&v.merge(P,Pt(j,"script"))),m.call(c[ut],j,ut);if(q)for(Z=P[P.length-1].ownerDocument,v.map(P,ua),ut=0;ut<q;ut++)j=P[ut],Ue.test(j.type||"")&&!st.access(j,"globalEval")&&v.contains(Z,j)&&(j.src&&(j.type||"").toLowerCase()!=="module"?v._evalUrl&&!j.noModule&&v._evalUrl(j.src,{nonce:j.nonce||j.getAttribute("nonce")},Z):ot(j.textContent.replace($n,""),j,Z))}return c}function dn(c,h,m){for(var w,T=h?v.filter(h,c):c,S=0;(w=T[S])!=null;S++)!m&&w.nodeType===1&&v.cleanData(Pt(w)),w.parentNode&&(m&&Bn(w)&&ne(Pt(w,"script")),w.parentNode.removeChild(w));return c}v.extend({htmlPrefilter:function(c){return c},clone:function(c,h,m){var w,T,S,P,q=c.cloneNode(!0),j=Bn(c);if(!L.noCloneChecked&&(c.nodeType===1||c.nodeType===11)&&!v.isXMLDoc(c))for(P=Pt(q),S=Pt(c),w=0,T=S.length;w<T;w++)ur(S[w],P[w]);if(h)if(m)for(S=S||Pt(c),P=P||Pt(q),w=0,T=S.length;w<T;w++)Qn(S[w],P[w]);else Qn(c,q);return P=Pt(q,"script"),P.length>0&&ne(P,!j&&Pt(c,"script")),q},cleanData:function(c){for(var h,m,w,T=v.event.special,S=0;(m=c[S])!==void 0;S++)if(it(m)){if(h=m[st.expando]){if(h.events)for(w in h.events)T[w]?v.event.remove(m,w):v.removeEvent(m,w,h.handle);m[st.expando]=void 0}m[Xt.expando]&&(m[Xt.expando]=void 0)}}}),v.fn.extend({detach:function(c){return dn(this,c,!0)},remove:function(c){return dn(this,c)},text:function(c){return Je(this,function(h){return h===void 0?v.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=h)})},null,c,arguments.length)},append:function(){return Sn(this,arguments,function(c){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var h=Jn(this,c);h.appendChild(c)}})},prepend:function(){return Sn(this,arguments,function(c){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var h=Jn(this,c);h.insertBefore(c,h.firstChild)}})},before:function(){return Sn(this,arguments,function(c){this.parentNode&&this.parentNode.insertBefore(c,this)})},after:function(){return Sn(this,arguments,function(c){this.parentNode&&this.parentNode.insertBefore(c,this.nextSibling)})},empty:function(){for(var c,h=0;(c=this[h])!=null;h++)c.nodeType===1&&(v.cleanData(Pt(c,!1)),c.textContent="");return this},clone:function(c,h){return c=c??!1,h=h??c,this.map(function(){return v.clone(this,c,h)})},html:function(c){return Je(this,function(h){var m=this[0]||{},w=0,T=this.length;if(h===void 0&&m.nodeType===1)return m.innerHTML;if(typeof h=="string"&&!cn.test(h)&&!ke[(Ge.exec(h)||["",""])[1].toLowerCase()]){h=v.htmlPrefilter(h);try{for(;w<T;w++)m=this[w]||{},m.nodeType===1&&(v.cleanData(Pt(m,!1)),m.innerHTML=h);m=0}catch{}}m&&this.empty().append(h)},null,c,arguments.length)},replaceWith:function(){var c=[];return Sn(this,arguments,function(h){var m=this.parentNode;v.inArray(this,c)<0&&(v.cleanData(Pt(this)),m&&m.replaceChild(h,this))},c)}}),v.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(c,h){v.fn[c]=function(m){for(var w,T=[],S=v(m),P=S.length-1,q=0;q<=P;q++)w=q===P?this:this.clone(!0),v(S[q])[h](w),f.apply(T,w.get());return this.pushStack(T)}});var fn=new RegExp("^("+Qe+")(?!px)[a-z%]+$","i"),ca=/^--/,zn=function(c){var h=c.ownerDocument.defaultView;return(!h||!h.opener)&&(h=t),h.getComputedStyle(c)},wi=function(c,h,m){var w,T,S={};for(T in h)S[T]=c.style[T],c.style[T]=h[T];w=m.call(c);for(T in h)c.style[T]=S[T];return w},$a=new RegExp(Ze.join("|"),"i");(function(){function c(){if(Z){j.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Z.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",xn.appendChild(j).appendChild(Z);var ut=t.getComputedStyle(Z);m=ut.top!=="1%",q=h(ut.marginLeft)===12,Z.style.right="60%",S=h(ut.right)===36,w=h(ut.width)===36,Z.style.position="absolute",T=h(Z.offsetWidth/3)===12,xn.removeChild(j),Z=null}}function h(ut){return Math.round(parseFloat(ut))}var m,w,T,S,P,q,j=F.createElement("div"),Z=F.createElement("div");Z.style&&(Z.style.backgroundClip="content-box",Z.cloneNode(!0).style.backgroundClip="",L.clearCloneStyle=Z.style.backgroundClip==="content-box",v.extend(L,{boxSizingReliable:function(){return c(),w},pixelBoxStyles:function(){return c(),S},pixelPosition:function(){return c(),m},reliableMarginLeft:function(){return c(),q},scrollboxSize:function(){return c(),T},reliableTrDimensions:function(){var ut,pt,at,Tt;return P==null&&(ut=F.createElement("table"),pt=F.createElement("tr"),at=F.createElement("div"),ut.style.cssText="position:absolute;left:-11111px;border-collapse:separate",pt.style.cssText="box-sizing:content-box;border:1px solid",pt.style.height="1px",at.style.height="9px",at.style.display="block",xn.appendChild(ut).appendChild(pt).appendChild(at),Tt=t.getComputedStyle(pt),P=parseInt(Tt.height,10)+parseInt(Tt.borderTopWidth,10)+parseInt(Tt.borderBottomWidth,10)===pt.offsetHeight,xn.removeChild(ut)),P}}))})();function Tn(c,h,m){var w,T,S,P,q=ca.test(h),j=c.style;return m=m||zn(c),m&&(P=m.getPropertyValue(h)||m[h],q&&P&&(P=P.replace(H,"$1")||void 0),P===""&&!Bn(c)&&(P=v.style(c,h)),!L.pixelBoxStyles()&&fn.test(P)&&$a.test(h)&&(w=j.width,T=j.minWidth,S=j.maxWidth,j.minWidth=j.maxWidth=j.width=P,P=m.width,j.width=w,j.minWidth=T,j.maxWidth=S)),P!==void 0?P+"":P}function cr(c,h){return{get:function(){if(c()){delete this.get;return}return(this.get=h).apply(this,arguments)}}}var dr=["Webkit","Moz","ms"],_r=F.createElement("div").style,Vr={};function Ri(c){for(var h=c[0].toUpperCase()+c.slice(1),m=dr.length;m--;)if(c=dr[m]+h,c in _r)return c}function ta(c){var h=v.cssProps[c]||Vr[c];return h||(c in _r?c:Vr[c]=Ri(c)||c)}var Ta=/^(none|table(?!-c[ea]).+)/,fr={position:"absolute",visibility:"hidden",display:"block"},_o={letterSpacing:"0",fontWeight:"400"};function Gr(c,h,m){var w=Kn.exec(h);return w?Math.max(0,w[2]-(m||0))+(w[3]||"px"):h}function da(c,h,m,w,T,S){var P=h==="width"?1:0,q=0,j=0,Z=0;if(m===(w?"border":"content"))return 0;for(;P<4;P+=2)m==="margin"&&(Z+=v.css(c,m+Ze[P],!0,T)),w?(m==="content"&&(j-=v.css(c,"padding"+Ze[P],!0,T)),m!=="margin"&&(j-=v.css(c,"border"+Ze[P]+"Width",!0,T))):(j+=v.css(c,"padding"+Ze[P],!0,T),m!=="padding"?j+=v.css(c,"border"+Ze[P]+"Width",!0,T):q+=v.css(c,"border"+Ze[P]+"Width",!0,T));return!w&&S>=0&&(j+=Math.max(0,Math.ceil(c["offset"+h[0].toUpperCase()+h.slice(1)]-S-j-q-.5))||0),j+Z}function Ha(c,h,m){var w=zn(c),T=!L.boxSizingReliable()||m,S=T&&v.css(c,"boxSizing",!1,w)==="border-box",P=S,q=Tn(c,h,w),j="offset"+h[0].toUpperCase()+h.slice(1);if(fn.test(q)){if(!m)return q;q="auto"}return(!L.boxSizingReliable()&&S||!L.reliableTrDimensions()&&ft(c,"tr")||q==="auto"||!parseFloat(q)&&v.css(c,"display",!1,w)==="inline")&&c.getClientRects().length&&(S=v.css(c,"boxSizing",!1,w)==="border-box",P=j in c,P&&(q=c[j])),q=parseFloat(q)||0,q+da(c,h,m||(S?"border":"content"),P,w,q)+"px"}v.extend({cssHooks:{opacity:{get:function(c,h){if(h){var m=Tn(c,"opacity");return m===""?"1":m}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(c,h,m,w){if(!(!c||c.nodeType===3||c.nodeType===8||!c.style)){var T,S,P,q=Y(h),j=ca.test(h),Z=c.style;if(j||(h=ta(q)),P=v.cssHooks[h]||v.cssHooks[q],m!==void 0){if(S=typeof m,S==="string"&&(T=Kn.exec(m))&&T[1]&&(m=Nn(c,h,T),S="number"),m==null||m!==m)return;S==="number"&&!j&&(m+=T&&T[3]||(v.cssNumber[q]?"":"px")),!L.clearCloneStyle&&m===""&&h.indexOf("background")===0&&(Z[h]="inherit"),(!P||!("set"in P)||(m=P.set(c,m,w))!==void 0)&&(j?Z.setProperty(h,m):Z[h]=m)}else return P&&"get"in P&&(T=P.get(c,!1,w))!==void 0?T:Z[h]}},css:function(c,h,m,w){var T,S,P,q=Y(h),j=ca.test(h);return j||(h=ta(q)),P=v.cssHooks[h]||v.cssHooks[q],P&&"get"in P&&(T=P.get(c,!0,m)),T===void 0&&(T=Tn(c,h,w)),T==="normal"&&h in _o&&(T=_o[h]),m===""||m?(S=parseFloat(T),m===!0||isFinite(S)?S||0:T):T}}),v.each(["height","width"],function(c,h){v.cssHooks[h]={get:function(m,w,T){if(w)return Ta.test(v.css(m,"display"))&&(!m.getClientRects().length||!m.getBoundingClientRect().width)?wi(m,fr,function(){return Ha(m,h,T)}):Ha(m,h,T)},set:function(m,w,T){var S,P=zn(m),q=!L.scrollboxSize()&&P.position==="absolute",j=q||T,Z=j&&v.css(m,"boxSizing",!1,P)==="border-box",ut=T?da(m,h,T,Z,P):0;return Z&&q&&(ut-=Math.ceil(m["offset"+h[0].toUpperCase()+h.slice(1)]-parseFloat(P[h])-da(m,h,"border",!1,P)-.5)),ut&&(S=Kn.exec(w))&&(S[3]||"px")!=="px"&&(m.style[h]=w,w=v.css(m,h)),Gr(m,w,ut)}}}),v.cssHooks.marginLeft=cr(L.reliableMarginLeft,function(c,h){if(h)return(parseFloat(Tn(c,"marginLeft"))||c.getBoundingClientRect().left-wi(c,{marginLeft:0},function(){return c.getBoundingClientRect().left}))+"px"}),v.each({margin:"",padding:"",border:"Width"},function(c,h){v.cssHooks[c+h]={expand:function(m){for(var w=0,T={},S=typeof m=="string"?m.split(" "):[m];w<4;w++)T[c+Ze[w]+h]=S[w]||S[w-2]||S[0];return T}},c!=="margin"&&(v.cssHooks[c+h].set=Gr)}),v.fn.extend({css:function(c,h){return Je(this,function(m,w,T){var S,P,q={},j=0;if(Array.isArray(w)){for(S=zn(m),P=w.length;j<P;j++)q[w[j]]=v.css(m,w[j],!1,S);return q}return T!==void 0?v.style(m,w,T):v.css(m,w)},c,h,arguments.length>1)}});function hn(c,h,m,w,T){return new hn.prototype.init(c,h,m,w,T)}v.Tween=hn,hn.prototype={constructor:hn,init:function(c,h,m,w,T,S){this.elem=c,this.prop=m,this.easing=T||v.easing._default,this.options=h,this.start=this.now=this.cur(),this.end=w,this.unit=S||(v.cssNumber[m]?"":"px")},cur:function(){var c=hn.propHooks[this.prop];return c&&c.get?c.get(this):hn.propHooks._default.get(this)},run:function(c){var h,m=hn.propHooks[this.prop];return this.options.duration?this.pos=h=v.easing[this.easing](c,this.options.duration*c,0,1,this.options.duration):this.pos=h=c,this.now=(this.end-this.start)*h+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),m&&m.set?m.set(this):hn.propHooks._default.set(this),this}},hn.prototype.init.prototype=hn.prototype,hn.propHooks={_default:{get:function(c){var h;return c.elem.nodeType!==1||c.elem[c.prop]!=null&&c.elem.style[c.prop]==null?c.elem[c.prop]:(h=v.css(c.elem,c.prop,""),!h||h==="auto"?0:h)},set:function(c){v.fx.step[c.prop]?v.fx.step[c.prop](c):c.elem.nodeType===1&&(v.cssHooks[c.prop]||c.elem.style[ta(c.prop)]!=null)?v.style(c.elem,c.prop,c.now+c.unit):c.elem[c.prop]=c.now}}},hn.propHooks.scrollTop=hn.propHooks.scrollLeft={set:function(c){c.elem.nodeType&&c.elem.parentNode&&(c.elem[c.prop]=c.now)}},v.easing={linear:function(c){return c},swing:function(c){return .5-Math.cos(c*Math.PI)/2},_default:"swing"},v.fx=hn.prototype.init,v.fx.step={};var ea,ti,hr=/^(?:toggle|show|hide)$/,pr=/queueHooks$/;function Ur(){ti&&(F.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(Ur):t.setTimeout(Ur,v.fx.interval),v.fx.tick())}function Yr(){return t.setTimeout(function(){ea=void 0}),ea=Date.now()}function gr(c,h){var m,w=0,T={height:c};for(h=h?1:0;w<4;w+=2-h)m=Ze[w],T["margin"+m]=T["padding"+m]=c;return h&&(T.opacity=T.width=c),T}function ji(c,h,m){for(var w,T=(Hn.tweeners[h]||[]).concat(Hn.tweeners["*"]),S=0,P=T.length;S<P;S++)if(w=T[S].call(m,h,c))return w}function sc(c,h,m){var w,T,S,P,q,j,Z,ut,pt="width"in h||"height"in h,at=this,Tt={},oe=c.style,Ne=c.nodeType&&Vt(c),ye=st.get(c,"fxshow");m.queue||(P=v._queueHooks(c,"fx"),P.unqueued==null&&(P.unqueued=0,q=P.empty.fire,P.empty.fire=function(){P.unqueued||q()}),P.unqueued++,at.always(function(){at.always(function(){P.unqueued--,v.queue(c,"fx").length||P.empty.fire()})}));for(w in h)if(T=h[w],hr.test(T)){if(delete h[w],S=S||T==="toggle",T===(Ne?"hide":"show"))if(T==="show"&&ye&&ye[w]!==void 0)Ne=!0;else continue;Tt[w]=ye&&ye[w]||v.style(c,w)}if(j=!v.isEmptyObject(h),!(!j&&v.isEmptyObject(Tt))){pt&&c.nodeType===1&&(m.overflow=[oe.overflow,oe.overflowX,oe.overflowY],Z=ye&&ye.display,Z==null&&(Z=st.get(c,"display")),ut=v.css(c,"display"),ut==="none"&&(Z?ut=Z:(ie([c],!0),Z=c.style.display||Z,ut=v.css(c,"display"),ie([c]))),(ut==="inline"||ut==="inline-block"&&Z!=null)&&v.css(c,"float")==="none"&&(j||(at.done(function(){oe.display=Z}),Z==null&&(ut=oe.display,Z=ut==="none"?"":ut)),oe.display="inline-block")),m.overflow&&(oe.overflow="hidden",at.always(function(){oe.overflow=m.overflow[0],oe.overflowX=m.overflow[1],oe.overflowY=m.overflow[2]})),j=!1;for(w in Tt)j||(ye?"hidden"in ye&&(Ne=ye.hidden):ye=st.access(c,"fxshow",{display:Z}),S&&(ye.hidden=!Ne),Ne&&ie([c],!0),at.done(function(){Ne||ie([c]),st.remove(c,"fxshow");for(w in Tt)v.style(c,w,Tt[w])})),j=ji(Ne?ye[w]:0,w,at),w in ye||(ye[w]=j.start,Ne&&(j.end=j.start,j.start=0))}}function lc(c,h){var m,w,T,S,P;for(m in c)if(w=Y(m),T=h[w],S=c[m],Array.isArray(S)&&(T=S[1],S=c[m]=S[0]),m!==w&&(c[w]=S,delete c[m]),P=v.cssHooks[w],P&&"expand"in P){S=P.expand(S),delete c[w];for(m in S)m in c||(c[m]=S[m],h[m]=T)}else h[w]=T}function Hn(c,h,m){var w,T,S=0,P=Hn.prefilters.length,q=v.Deferred().always(function(){delete j.elem}),j=function(){if(T)return!1;for(var pt=ea||Yr(),at=Math.max(0,Z.startTime+Z.duration-pt),Tt=at/Z.duration||0,oe=1-Tt,Ne=0,ye=Z.tweens.length;Ne<ye;Ne++)Z.tweens[Ne].run(oe);return q.notifyWith(c,[Z,oe,at]),oe<1&&ye?at:(ye||q.notifyWith(c,[Z,1,0]),q.resolveWith(c,[Z]),!1)},Z=q.promise({elem:c,props:v.extend({},h),opts:v.extend(!0,{specialEasing:{},easing:v.easing._default},m),originalProperties:h,originalOptions:m,startTime:ea||Yr(),duration:m.duration,tweens:[],createTween:function(pt,at){var Tt=v.Tween(c,Z.opts,pt,at,Z.opts.specialEasing[pt]||Z.opts.easing);return Z.tweens.push(Tt),Tt},stop:function(pt){var at=0,Tt=pt?Z.tweens.length:0;if(T)return this;for(T=!0;at<Tt;at++)Z.tweens[at].run(1);return pt?(q.notifyWith(c,[Z,1,0]),q.resolveWith(c,[Z,pt])):q.rejectWith(c,[Z,pt]),this}}),ut=Z.props;for(lc(ut,Z.opts.specialEasing);S<P;S++)if(w=Hn.prefilters[S].call(Z,c,ut,Z.opts),w)return K(w.stop)&&(v._queueHooks(Z.elem,Z.opts.queue).stop=w.stop.bind(w)),w;return v.map(ut,ji,Z),K(Z.opts.start)&&Z.opts.start.call(c,Z),Z.progress(Z.opts.progress).done(Z.opts.done,Z.opts.complete).fail(Z.opts.fail).always(Z.opts.always),v.fx.timer(v.extend(j,{elem:c,anim:Z,queue:Z.opts.queue})),Z}v.Animation=v.extend(Hn,{tweeners:{"*":[function(c,h){var m=this.createTween(c,h);return Nn(m.elem,c,Kn.exec(h),m),m}]},tweener:function(c,h){K(c)?(h=c,c=["*"]):c=c.match(Pe);for(var m,w=0,T=c.length;w<T;w++)m=c[w],Hn.tweeners[m]=Hn.tweeners[m]||[],Hn.tweeners[m].unshift(h)},prefilters:[sc],prefilter:function(c,h){h?Hn.prefilters.unshift(c):Hn.prefilters.push(c)}}),v.speed=function(c,h,m){var w=c&&typeof c=="object"?v.extend({},c):{complete:m||!m&&h||K(c)&&c,duration:c,easing:m&&h||h&&!K(h)&&h};return v.fx.off?w.duration=0:typeof w.duration!="number"&&(w.duration in v.fx.speeds?w.duration=v.fx.speeds[w.duration]:w.duration=v.fx.speeds._default),(w.queue==null||w.queue===!0)&&(w.queue="fx"),w.old=w.complete,w.complete=function(){K(w.old)&&w.old.call(this),w.queue&&v.dequeue(this,w.queue)},w},v.fn.extend({fadeTo:function(c,h,m,w){return this.filter(Vt).css("opacity",0).show().end().animate({opacity:h},c,m,w)},animate:function(c,h,m,w){var T=v.isEmptyObject(c),S=v.speed(h,m,w),P=function(){var q=Hn(this,v.extend({},c),S);(T||st.get(this,"finish"))&&q.stop(!0)};return P.finish=P,T||S.queue===!1?this.each(P):this.queue(S.queue,P)},stop:function(c,h,m){var w=function(T){var S=T.stop;delete T.stop,S(m)};return typeof c!="string"&&(m=h,h=c,c=void 0),h&&this.queue(c||"fx",[]),this.each(function(){var T=!0,S=c!=null&&c+"queueHooks",P=v.timers,q=st.get(this);if(S)q[S]&&q[S].stop&&w(q[S]);else for(S in q)q[S]&&q[S].stop&&pr.test(S)&&w(q[S]);for(S=P.length;S--;)P[S].elem===this&&(c==null||P[S].queue===c)&&(P[S].anim.stop(m),T=!1,P.splice(S,1));(T||!m)&&v.dequeue(this,c)})},finish:function(c){return c!==!1&&(c=c||"fx"),this.each(function(){var h,m=st.get(this),w=m[c+"queue"],T=m[c+"queueHooks"],S=v.timers,P=w?w.length:0;for(m.finish=!0,v.queue(this,c,[]),T&&T.stop&&T.stop.call(this,!0),h=S.length;h--;)S[h].elem===this&&S[h].queue===c&&(S[h].anim.stop(!0),S.splice(h,1));for(h=0;h<P;h++)w[h]&&w[h].finish&&w[h].finish.call(this);delete m.finish})}}),v.each(["toggle","show","hide"],function(c,h){var m=v.fn[h];v.fn[h]=function(w,T,S){return w==null||typeof w=="boolean"?m.apply(this,arguments):this.animate(gr(h,!0),w,T,S)}}),v.each({slideDown:gr("show"),slideUp:gr("hide"),slideToggle:gr("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(c,h){v.fn[c]=function(m,w,T){return this.animate(h,m,w,T)}}),v.timers=[],v.fx.tick=function(){var c,h=0,m=v.timers;for(ea=Date.now();h<m.length;h++)c=m[h],!c()&&m[h]===c&&m.splice(h--,1);m.length||v.fx.stop(),ea=void 0},v.fx.timer=function(c){v.timers.push(c),v.fx.start()},v.fx.interval=13,v.fx.start=function(){ti||(ti=!0,Ur())},v.fx.stop=function(){ti=null},v.fx.speeds={slow:600,fast:200,_default:400},v.fn.delay=function(c,h){return c=v.fx&&v.fx.speeds[c]||c,h=h||"fx",this.queue(h,function(m,w){var T=t.setTimeout(m,c);w.stop=function(){t.clearTimeout(T)}})},(function(){var c=F.createElement("input"),h=F.createElement("select"),m=h.appendChild(F.createElement("option"));c.type="checkbox",L.checkOn=c.value!=="",L.optSelected=m.selected,c=F.createElement("input"),c.value="t",c.type="radio",L.radioValue=c.value==="t"})();var Vo,mr=v.expr.attrHandle;v.fn.extend({attr:function(c,h){return Je(this,v.attr,c,h,arguments.length>1)},removeAttr:function(c){return this.each(function(){v.removeAttr(this,c)})}}),v.extend({attr:function(c,h,m){var w,T,S=c.nodeType;if(!(S===3||S===8||S===2)){if(typeof c.getAttribute>"u")return v.prop(c,h,m);if((S!==1||!v.isXMLDoc(c))&&(T=v.attrHooks[h.toLowerCase()]||(v.expr.match.bool.test(h)?Vo:void 0)),m!==void 0){if(m===null){v.removeAttr(c,h);return}return T&&"set"in T&&(w=T.set(c,m,h))!==void 0?w:(c.setAttribute(h,m+""),m)}return T&&"get"in T&&(w=T.get(c,h))!==null?w:(w=v.find.attr(c,h),w??void 0)}},attrHooks:{type:{set:function(c,h){if(!L.radioValue&&h==="radio"&&ft(c,"input")){var m=c.value;return c.setAttribute("type",h),m&&(c.value=m),h}}}},removeAttr:function(c,h){var m,w=0,T=h&&h.match(Pe);if(T&&c.nodeType===1)for(;m=T[w++];)c.removeAttribute(m)}}),Vo={set:function(c,h,m){return h===!1?v.removeAttr(c,m):c.setAttribute(m,m),m}},v.each(v.expr.match.bool.source.match(/\w+/g),function(c,h){var m=mr[h]||v.find.attr;mr[h]=function(w,T,S){var P,q,j=T.toLowerCase();return S||(q=mr[j],mr[j]=P,P=m(w,T,S)!=null?j:null,mr[j]=q),P}});var vr=/^(?:input|select|textarea|button)$/i,pl=/^(?:a|area)$/i;v.fn.extend({prop:function(c,h){return Je(this,v.prop,c,h,arguments.length>1)},removeProp:function(c){return this.each(function(){delete this[v.propFix[c]||c]})}}),v.extend({prop:function(c,h,m){var w,T,S=c.nodeType;if(!(S===3||S===8||S===2))return(S!==1||!v.isXMLDoc(c))&&(h=v.propFix[h]||h,T=v.propHooks[h]),m!==void 0?T&&"set"in T&&(w=T.set(c,m,h))!==void 0?w:c[h]=m:T&&"get"in T&&(w=T.get(c,h))!==null?w:c[h]},propHooks:{tabIndex:{get:function(c){var h=v.find.attr(c,"tabindex");return h?parseInt(h,10):vr.test(c.nodeName)||pl.test(c.nodeName)&&c.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),L.optSelected||(v.propHooks.selected={get:function(c){var h=c.parentNode;return h&&h.parentNode&&h.parentNode.selectedIndex,null},set:function(c){var h=c.parentNode;h&&(h.selectedIndex,h.parentNode&&h.parentNode.selectedIndex)}}),v.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){v.propFix[this.toLowerCase()]=this});function Ea(c){var h=c.match(Pe)||[];return h.join(" ")}function fa(c){return c.getAttribute&&c.getAttribute("class")||""}function yr(c){return Array.isArray(c)?c:typeof c=="string"?c.match(Pe)||[]:[]}v.fn.extend({addClass:function(c){var h,m,w,T,S,P;return K(c)?this.each(function(q){v(this).addClass(c.call(this,q,fa(this)))}):(h=yr(c),h.length?this.each(function(){if(w=fa(this),m=this.nodeType===1&&" "+Ea(w)+" ",m){for(S=0;S<h.length;S++)T=h[S],m.indexOf(" "+T+" ")<0&&(m+=T+" ");P=Ea(m),w!==P&&this.setAttribute("class",P)}}):this)},removeClass:function(c){var h,m,w,T,S,P;return K(c)?this.each(function(q){v(this).removeClass(c.call(this,q,fa(this)))}):arguments.length?(h=yr(c),h.length?this.each(function(){if(w=fa(this),m=this.nodeType===1&&" "+Ea(w)+" ",m){for(S=0;S<h.length;S++)for(T=h[S];m.indexOf(" "+T+" ")>-1;)m=m.replace(" "+T+" "," ");P=Ea(m),w!==P&&this.setAttribute("class",P)}}):this):this.attr("class","")},toggleClass:function(c,h){var m,w,T,S,P=typeof c,q=P==="string"||Array.isArray(c);return K(c)?this.each(function(j){v(this).toggleClass(c.call(this,j,fa(this),h),h)}):typeof h=="boolean"&&q?h?this.addClass(c):this.removeClass(c):(m=yr(c),this.each(function(){if(q)for(S=v(this),T=0;T<m.length;T++)w=m[T],S.hasClass(w)?S.removeClass(w):S.addClass(w);else(c===void 0||P==="boolean")&&(w=fa(this),w&&st.set(this,"__className__",w),this.setAttribute&&this.setAttribute("class",w||c===!1?"":st.get(this,"__className__")||""))}))},hasClass:function(c){var h,m,w=0;for(h=" "+c+" ";m=this[w++];)if(m.nodeType===1&&(" "+Ea(fa(m))+" ").indexOf(h)>-1)return!0;return!1}});var gl=/\r/g;v.fn.extend({val:function(c){var h,m,w,T=this[0];return arguments.length?(w=K(c),this.each(function(S){var P;this.nodeType===1&&(w?P=c.call(this,S,v(this).val()):P=c,P==null?P="":typeof P=="number"?P+="":Array.isArray(P)&&(P=v.map(P,function(q){return q==null?"":q+""})),h=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()],(!h||!("set"in h)||h.set(this,P,"value")===void 0)&&(this.value=P))})):T?(h=v.valHooks[T.type]||v.valHooks[T.nodeName.toLowerCase()],h&&"get"in h&&(m=h.get(T,"value"))!==void 0?m:(m=T.value,typeof m=="string"?m.replace(gl,""):m??"")):void 0}}),v.extend({valHooks:{option:{get:function(c){var h=v.find.attr(c,"value");return h??Ea(v.text(c))}},select:{get:function(c){var h,m,w,T=c.options,S=c.selectedIndex,P=c.type==="select-one",q=P?null:[],j=P?S+1:T.length;for(S<0?w=j:w=P?S:0;w<j;w++)if(m=T[w],(m.selected||w===S)&&!m.disabled&&(!m.parentNode.disabled||!ft(m.parentNode,"optgroup"))){if(h=v(m).val(),P)return h;q.push(h)}return q},set:function(c,h){for(var m,w,T=c.options,S=v.makeArray(h),P=T.length;P--;)w=T[P],(w.selected=v.inArray(v.valHooks.option.get(w),S)>-1)&&(m=!0);return m||(c.selectedIndex=-1),S}}}}),v.each(["radio","checkbox"],function(){v.valHooks[this]={set:function(c,h){if(Array.isArray(h))return c.checked=v.inArray(v(c).val(),h)>-1}},L.checkOn||(v.valHooks[this].get=function(c){return c.getAttribute("value")===null?"on":c.value})});var ei=t.location,Go={guid:Date.now()},Xr=/\?/;v.parseXML=function(c){var h,m;if(!c||typeof c!="string")return null;try{h=new t.DOMParser().parseFromString(c,"text/xml")}catch{}return m=h&&h.getElementsByTagName("parsererror")[0],(!h||m)&&v.error("Invalid XML: "+(m?v.map(m.childNodes,function(w){return w.textContent}).join(`
|
|
7882
|
+
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Rn!==5&&(Rn=2),W=Jc(W,z),Et=A;do{switch(Et.tag){case 3:C=W,Et.flags|=4096,o&=-o,Et.lanes|=o;var he=mg(Et,C,o);zp(Et,he);break t;case 1:C=W;var Gt=Et.type,pe=Et.stateNode;if((Et.flags&64)===0&&(typeof Gt.getDerivedStateFromError=="function"||pe!==null&&typeof pe.componentDidCatch=="function"&&(ci===null||!ci.has(pe)))){Et.flags|=4096,o&=-o,Et.lanes|=o;var Te=vg(Et,C,o);zp(Et,Te);break t}}Et=Et.return}while(Et!==null)}Bg(u)}catch(be){o=be,An===u&&u!==null&&(An=u=u.return);continue}break}while(!0)}function Ng(){var i=Ul.current;return Ul.current=Vl,i===null?Vl:i}function Ms(i,o){var u=ue;ue|=16;var g=Ng();aa===i&&Gn===o||So(i,o);do try{fw();break}catch(b){Ag(i,b)}while(!0);if(Bc(),ue=u,Ul.current=g,An!==null)throw Error(a(261));return aa=null,Gn=0,Rn}function fw(){for(;An!==null;)Lg(An)}function hw(){for(;An!==null&&!Ub();)Lg(An)}function Lg(i){var o=Dg(i.alternate,i,Ir);i.memoizedProps=i.pendingProps,o===null?Bg(i):An=o,ad.current=null}function Bg(i){var o=i;do{var u=o.alternate;if(i=o.return,(o.flags&2048)===0){if(u=aw(u,o,Ir),u!==null){An=u;return}if(u=o,u.tag!==24&&u.tag!==23||u.memoizedState===null||(Ir&1073741824)!==0||(u.mode&4)===0){for(var g=0,b=u.child;b!==null;)g|=b.lanes|b.childLanes,b=b.sibling;u.childLanes=g}i!==null&&(i.flags&2048)===0&&(i.firstEffect===null&&(i.firstEffect=o.firstEffect),o.lastEffect!==null&&(i.lastEffect!==null&&(i.lastEffect.nextEffect=o.firstEffect),i.lastEffect=o.lastEffect),1<o.flags&&(i.lastEffect!==null?i.lastEffect.nextEffect=o:i.firstEffect=o,i.lastEffect=o))}else{if(u=iw(o),u!==null){u.flags&=2047,An=u;return}i!==null&&(i.firstEffect=i.lastEffect=null,i.flags|=2048)}if(o=o.sibling,o!==null){An=o;return}An=o=i}while(o!==null);Rn===0&&(Rn=5)}function Dr(i){var o=po();return Nr(99,pw.bind(null,i,o)),null}function pw(i,o){do Yi();while(Cs!==null);if((ue&48)!==0)throw Error(a(327));var u=i.finishedWork;if(u===null)return null;if(i.finishedWork=null,i.finishedLanes=0,u===i.current)throw Error(a(177));i.callbackNode=null;var g=u.lanes|u.childLanes,b=g,C=i.pendingLanes&~b;i.pendingLanes=b,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=b,i.mutableReadLanes&=b,i.entangledLanes&=b,b=i.entanglements;for(var A=i.eventTimes,z=i.expirationTimes;0<C;){var W=31-Ea(C),ct=1<<W;b[W]=0,A[W]=-1,z[W]=-1,C&=~ct}if(Mi!==null&&(g&24)===0&&Mi.has(i)&&Mi.delete(i),i===aa&&(An=aa=null,Gn=0),1<u.flags?u.lastEffect!==null?(u.lastEffect.nextEffect=u,g=u.firstEffect):g=u:g=u.firstEffect,g!==null){if(b=ue,ue|=32,ad.current=null,wc=Qr,A=Pn(),Fn(A)){if("selectionStart"in A)z={start:A.selectionStart,end:A.selectionEnd};else t:if(z=(z=A.ownerDocument)&&z.defaultView||window,(ct=z.getSelection&&z.getSelection())&&ct.rangeCount!==0){z=ct.anchorNode,C=ct.anchorOffset,W=ct.focusNode,ct=ct.focusOffset;try{z.nodeType,W.nodeType}catch{z=null;break t}var $t=0,fe=-1,Et=-1,Jt=0,ce=0,se=A,et=null;e:for(;;){for(var U;se!==z||C!==0&&se.nodeType!==3||(fe=$t+C),se!==W||ct!==0&&se.nodeType!==3||(Et=$t+ct),se.nodeType===3&&($t+=se.nodeValue.length),(U=se.firstChild)!==null;)et=se,se=U;for(;;){if(se===A)break e;if(et===z&&++Jt===C&&(fe=$t),et===W&&++ce===ct&&(Et=$t),(U=se.nextSibling)!==null)break;se=et,et=se.parentNode}se=U}z=fe===-1||Et===-1?null:{start:fe,end:Et}}else z=null;z=z||{start:0,end:0}}else z=null;kc={focusedElem:A,selectionRange:z},Qr=!1,Ps=null,Ql=!1,_t=g;do try{gw()}catch(be){if(_t===null)throw Error(a(330));Xi(_t,be),_t=_t.nextEffect}while(_t!==null);Ps=null,_t=g;do try{for(A=i;_t!==null;){var Q=_t.flags;if(Q&16&&qn(_t.stateNode,""),Q&128){var kt=_t.alternate;if(kt!==null){var Ct=kt.ref;Ct!==null&&(typeof Ct=="function"?Ct(null):Ct.current=null)}}switch(Q&1038){case 2:Sg(_t),_t.flags&=-3;break;case 6:Sg(_t),_t.flags&=-3,nd(_t.alternate,_t);break;case 1024:_t.flags&=-1025;break;case 1028:_t.flags&=-1025,nd(_t.alternate,_t);break;case 4:nd(_t.alternate,_t);break;case 8:z=_t,Cg(A,z);var he=z.alternate;kg(z),he!==null&&kg(he)}_t=_t.nextEffect}}catch(be){if(_t===null)throw Error(a(330));Xi(_t,be),_t=_t.nextEffect}while(_t!==null);if(Ct=kc,kt=Pn(),Q=Ct.focusedElem,A=Ct.selectionRange,kt!==Q&&Q&&Q.ownerDocument&&In(Q.ownerDocument.documentElement,Q)){for(A!==null&&Fn(Q)&&(kt=A.start,Ct=A.end,Ct===void 0&&(Ct=kt),"selectionStart"in Q?(Q.selectionStart=kt,Q.selectionEnd=Math.min(Ct,Q.value.length)):(Ct=(kt=Q.ownerDocument||document)&&kt.defaultView||window,Ct.getSelection&&(Ct=Ct.getSelection(),z=Q.textContent.length,he=Math.min(A.start,z),A=A.end===void 0?he:Math.min(A.end,z),!Ct.extend&&he>A&&(z=A,A=he,he=z),z=Fe(Q,he),C=Fe(Q,A),z&&C&&(Ct.rangeCount!==1||Ct.anchorNode!==z.node||Ct.anchorOffset!==z.offset||Ct.focusNode!==C.node||Ct.focusOffset!==C.offset)&&(kt=kt.createRange(),kt.setStart(z.node,z.offset),Ct.removeAllRanges(),he>A?(Ct.addRange(kt),Ct.extend(C.node,C.offset)):(kt.setEnd(C.node,C.offset),Ct.addRange(kt)))))),kt=[],Ct=Q;Ct=Ct.parentNode;)Ct.nodeType===1&&kt.push({element:Ct,left:Ct.scrollLeft,top:Ct.scrollTop});for(typeof Q.focus=="function"&&Q.focus(),Q=0;Q<kt.length;Q++)Ct=kt[Q],Ct.element.scrollLeft=Ct.left,Ct.element.scrollTop=Ct.top}Qr=!!wc,kc=wc=null,i.current=u,_t=g;do try{for(Q=i;_t!==null;){var Gt=_t.flags;if(Gt&36&&lw(Q,_t.alternate,_t),Gt&128){kt=void 0;var pe=_t.ref;if(pe!==null){var Te=_t.stateNode;_t.tag,kt=Te,typeof pe=="function"?pe(kt):pe.current=kt}}_t=_t.nextEffect}}catch(be){if(_t===null)throw Error(a(330));Xi(_t,be),_t=_t.nextEffect}while(_t!==null);_t=null,Xb(),ue=b}else i.current=u;if(Vi)Vi=!1,Cs=i,Ts=o;else for(_t=g;_t!==null;)o=_t.nextEffect,_t.nextEffect=null,_t.flags&8&&(Gt=_t,Gt.sibling=null,Gt.stateNode=null),_t=o;if(g=i.pendingLanes,g===0&&(ci=null),g===1?i===fd?Es++:(Es=0,fd=i):Es=0,u=u.stateNode,Ar&&typeof Ar.onCommitFiberRoot=="function")try{Ar.onCommitFiberRoot(Ec,u,void 0,(u.current.flags&64)===64)}catch{}if(Ia(i,_n()),Xl)throw Xl=!1,i=ud,ud=null,i;return(ue&8)!==0||oi(),null}function gw(){for(;_t!==null;){var i=_t.alternate;Ql||Ps===null||((_t.flags&8)!==0?Ri(_t,Ps)&&(Ql=!0):_t.tag===13&&uw(i,_t)&&Ri(_t,Ps)&&(Ql=!0));var o=_t.flags;(o&256)!==0&&sw(i,_t),(o&512)===0||Vi||(Vi=!0,cs(97,function(){return Yi(),null})),_t=_t.nextEffect}}function Yi(){if(Ts!==90){var i=97<Ts?97:Ts;return Ts=90,Nr(i,vw)}return!1}function mw(i,o){cd.push(o,i),Vi||(Vi=!0,cs(97,function(){return Yi(),null}))}function zg(i,o){dd.push(o,i),Vi||(Vi=!0,cs(97,function(){return Yi(),null}))}function vw(){if(Cs===null)return!1;var i=Cs;if(Cs=null,(ue&48)!==0)throw Error(a(331));var o=ue;ue|=32;var u=dd;dd=[];for(var g=0;g<u.length;g+=2){var b=u[g],C=u[g+1],A=b.destroy;if(b.destroy=void 0,typeof A=="function")try{A()}catch(W){if(C===null)throw Error(a(330));Xi(C,W)}}for(u=cd,cd=[],g=0;g<u.length;g+=2){b=u[g],C=u[g+1];try{var z=b.create;b.destroy=z()}catch(W){if(C===null)throw Error(a(330));Xi(C,W)}}for(z=i.current.firstEffect;z!==null;)i=z.nextEffect,z.nextEffect=null,z.flags&8&&(z.sibling=null,z.stateNode=null),z=i;return ue=o,oi(),!0}function Ig(i,o,u){o=Jc(u,o),o=mg(i,o,1),Wi(i,o),o=wa(),i=tu(i,1),i!==null&&(kr(i,1,o),Ia(i,o))}function Xi(i,o){if(i.tag===3)Ig(i,i,o);else for(var u=i.return;u!==null;){if(u.tag===3){Ig(u,i,o);break}else if(u.tag===1){var g=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(ci===null||!ci.has(g))){i=Jc(o,i);var b=vg(u,i,1);if(Wi(u,b),b=wa(),u=tu(u,1),u!==null)kr(u,1,b),Ia(u,b);else if(typeof g.componentDidCatch=="function"&&(ci===null||!ci.has(g)))try{g.componentDidCatch(o,i)}catch{}break}}u=u.return}}function yw(i,o,u){var g=i.pingCache;g!==null&&g.delete(o),o=wa(),i.pingedLanes|=i.suspendedLanes&u,aa===i&&(Gn&u)===u&&(Rn===4||Rn===3&&(Gn&62914560)===Gn&&500>_n()-sd?So(i,0):rd|=u),Ia(i,o)}function bw(i,o){var u=i.stateNode;u!==null&&u.delete(o),o=0,o===0&&(o=i.mode,(o&2)===0?o=1:(o&4)===0?o=po()===99?1:2:(Ai===0&&(Ai=bo),o=ki(62914560&~Ai),o===0&&(o=4194304))),u=wa(),i=tu(i,o),i!==null&&(kr(i,o,u),Ia(i,u))}var Dg;Dg=function(i,o,u){var g=o.lanes;if(i!==null)if(i.memoizedProps!==o.pendingProps||ga.current)Va=!0;else if((u&g)!==0)Va=(i.flags&16384)!==0;else{switch(Va=!1,o.tag){case 3:og(o),Kc();break;case 5:$p(o);break;case 1:ma(o.type)&&Al(o);break;case 4:Rc(o,o.stateNode.containerInfo);break;case 10:g=o.memoizedProps.value;var b=o.type._context;mn(Bl,b._currentValue),b._currentValue=g;break;case 13:if(o.memoizedState!==null)return(u&o.child.childLanes)!==0?sg(i,o,u):(mn(vn,vn.current&1),o=Pi(i,o,u),o!==null?o.sibling:null);mn(vn,vn.current&1);break;case 19:if(g=(u&o.childLanes)!==0,(i.flags&64)!==0){if(g)return fg(i,o,u);o.flags|=64}if(b=o.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),mn(vn,vn.current),g)break;return null;case 23:case 24:return o.lanes=0,Gc(i,o,u)}return Pi(i,o,u)}else Va=!1;switch(o.lanes=0,o.tag){case 2:if(g=o.type,i!==null&&(i.alternate=null,o.alternate=null,o.flags|=2),i=o.pendingProps,b=ho(o,Wn.current),mo(o,u),b=Hc(null,o,g,i,b,u),o.flags|=1,typeof b=="object"&&b!==null&&typeof b.render=="function"&&b.$$typeof===void 0){if(o.tag=1,o.memoizedState=null,o.updateQueue=null,ma(g)){var C=!0;Al(o)}else C=!1;o.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,Ic(o);var A=g.getDerivedStateFromProps;typeof A=="function"&&Dl(o,g,A,i),b.updater=Rl,o.stateNode=b,b._reactInternals=o,Dc(o,g,i,u),o=Yc(null,o,g,!0,C,u)}else o.tag=0,ya(null,o,b,u),o=o.child;return o;case 16:b=o.elementType;t:{switch(i!==null&&(i.alternate=null,o.alternate=null,o.flags|=2),i=o.pendingProps,C=b._init,b=C(b._payload),o.type=b,C=o.tag=kw(b),i=_a(b,i),C){case 0:o=Uc(null,o,b,i,u);break t;case 1:o=rg(null,o,b,i,u);break t;case 11:o=eg(null,o,b,i,u);break t;case 14:o=ng(null,o,b,_a(b.type,i),g,u);break t}throw Error(a(306,b,""))}return o;case 0:return g=o.type,b=o.pendingProps,b=o.elementType===g?b:_a(g,b),Uc(i,o,g,b,u);case 1:return g=o.type,b=o.pendingProps,b=o.elementType===g?b:_a(g,b),rg(i,o,g,b,u);case 3:if(og(o),g=o.updateQueue,i===null||g===null)throw Error(a(282));if(g=o.pendingProps,b=o.memoizedState,b=b!==null?b.element:null,Bp(i,o),ds(o,g,null,u),g=o.memoizedState.element,g===b)Kc(),o=Pi(i,o,u);else{if(b=o.stateNode,(C=b.hydrate)&&(_i=lo(o.stateNode.containerInfo.firstChild),Ei=o,C=li=!0),C){if(i=b.mutableSourceEagerHydrationData,i!=null)for(b=0;b<i.length;b+=2)C=i[b],C._workInProgressVersionPrimary=i[b+1],yo.push(C);for(u=qp(o,null,g,u),o.child=u;u;)u.flags=u.flags&-3|1024,u=u.sibling}else ya(i,o,g,u),Kc();o=o.child}return o;case 5:return $p(o),i===null&&Oc(o),g=o.type,b=o.pendingProps,C=i!==null?i.memoizedProps:null,A=b.children,xc(g,b)?A=null:C!==null&&xc(g,C)&&(o.flags|=16),ig(i,o),ya(i,o,A,u),o.child;case 6:return i===null&&Oc(o),null;case 13:return sg(i,o,u);case 4:return Rc(o,o.stateNode.containerInfo),g=o.pendingProps,i===null?o.child=Kl(o,null,g,u):ya(i,o,g,u),o.child;case 11:return g=o.type,b=o.pendingProps,b=o.elementType===g?b:_a(g,b),eg(i,o,g,b,u);case 7:return ya(i,o,o.pendingProps,u),o.child;case 8:return ya(i,o,o.pendingProps.children,u),o.child;case 12:return ya(i,o,o.pendingProps.children,u),o.child;case 10:t:{g=o.type._context,b=o.pendingProps,A=o.memoizedProps,C=b.value;var z=o.type._context;if(mn(Bl,z._currentValue),z._currentValue=C,A!==null)if(z=A.value,C=Zt(z,C)?0:(typeof g._calculateChangedBits=="function"?g._calculateChangedBits(z,C):1073741823)|0,C===0){if(A.children===b.children&&!ga.current){o=Pi(i,o,u);break t}}else for(z=o.child,z!==null&&(z.return=o);z!==null;){var W=z.dependencies;if(W!==null){A=z.child;for(var ct=W.firstContext;ct!==null;){if(ct.context===g&&(ct.observedBits&C)!==0){z.tag===1&&(ct=Fi(-1,u&-u),ct.tag=2,Wi(z,ct)),z.lanes|=u,ct=z.alternate,ct!==null&&(ct.lanes|=u),Lp(z.return,u),W.lanes|=u;break}ct=ct.next}}else A=z.tag===10&&z.type===o.type?null:z.child;if(A!==null)A.return=z;else for(A=z;A!==null;){if(A===o){A=null;break}if(z=A.sibling,z!==null){z.return=A.return,A=z;break}A=A.return}z=A}ya(i,o,b.children,u),o=o.child}return o;case 9:return b=o.type,C=o.pendingProps,g=C.children,mo(o,u),b=Ba(b,C.unstable_observedBits),g=g(b),o.flags|=1,ya(i,o,g,u),o.child;case 14:return b=o.type,C=_a(b,o.pendingProps),C=_a(b.type,C),ng(i,o,b,C,g,u);case 15:return ag(i,o,o.type,o.pendingProps,g,u);case 17:return g=o.type,b=o.pendingProps,b=o.elementType===g?b:_a(g,b),i!==null&&(i.alternate=null,o.alternate=null,o.flags|=2),o.tag=1,ma(g)?(i=!0,Al(o)):i=!1,mo(o,u),jp(o,g,b),Dc(o,g,b,u),Yc(null,o,g,!0,i,u);case 19:return fg(i,o,u);case 23:return Gc(i,o,u);case 24:return Gc(i,o,u)}throw Error(a(156,o.tag))};function ww(i,o,u,g){this.tag=i,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Da(i,o,u,g){return new ww(i,o,u,g)}function gd(i){return i=i.prototype,!(!i||!i.isReactComponent)}function kw(i){if(typeof i=="function")return gd(i)?1:0;if(i!=null){if(i=i.$$typeof,i===tt)return 11;if(i===ht)return 14}return 2}function Zi(i,o){var u=i.alternate;return u===null?(u=Da(i.tag,o,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u.alternate=i,i.alternate=u):(u.pendingProps=o,u.type=i.type,u.flags=0,u.nextEffect=null,u.firstEffect=null,u.lastEffect=null),u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,o=i.dependencies,u.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u}function nu(i,o,u,g,b,C){var A=2;if(g=i,typeof i=="function")gd(i)&&(A=1);else if(typeof i=="string")A=5;else t:switch(i){case mt:return Co(u.children,b,C,o);case St:A=8,b|=16;break;case ft:A=8,b|=1;break;case Lt:return i=Da(12,u,o,b|8),i.elementType=Lt,i.type=Lt,i.lanes=C,i;case H:return i=Da(13,u,o,b),i.type=H,i.elementType=H,i.lanes=C,i;case s:return i=Da(19,u,o,b),i.elementType=s,i.lanes=C,i;case O:return md(u,b,C,o);case wt:return i=Da(24,u,o,b),i.elementType=wt,i.lanes=C,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case Nt:A=10;break t;case At:A=9;break t;case tt:A=11;break t;case ht:A=14;break t;case x:A=16,g=null;break t;case lt:A=22;break t}throw Error(a(130,i==null?i:typeof i,""))}return o=Da(A,u,o,b),o.elementType=i,o.type=g,o.lanes=C,o}function Co(i,o,u,g){return i=Da(7,i,g,o),i.lanes=u,i}function md(i,o,u,g){return i=Da(23,i,g,o),i.elementType=O,i.lanes=u,i}function vd(i,o,u){return i=Da(6,i,null,o),i.lanes=u,i}function yd(i,o,u){return o=Da(4,i.children!==null?i.children:[],i.key,o),o.lanes=u,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}function xw(i,o,u){this.tag=o,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=u,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=wr(0),this.expirationTimes=wr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wr(0),this.mutableSourceEagerHydrationData=null}function Sw(i,o,u){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:v,key:g==null?null:""+g,children:i,containerInfo:o,implementation:u}}function au(i,o,u,g){var b=o.current,C=wa(),A=Gi(b);t:if(u){u=u._reactInternals;e:{if(Tn(u)!==u||u.tag!==1)throw Error(a(170));var z=u;do{switch(z.tag){case 3:z=z.stateNode.context;break e;case 1:if(ma(z.type)){z=z.stateNode.__reactInternalMemoizedMergedChildContext;break e}}z=z.return}while(z!==null);throw Error(a(171))}if(u.tag===1){var W=u.type;if(ma(W)){u=kp(u,W,z);break t}}u=z}else u=$i;return o.context===null?o.context=u:o.pendingContext=u,o=Fi(C,A),o.payload={element:i},g=g===void 0?null:g,g!==null&&(o.callback=g),Wi(b,o),Ui(b,A,C),A}function bd(i){return i=i.current,i.child?(i.child.tag===5,i.child.stateNode):null}function Rg(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<o?u:o}}function wd(i,o){Rg(i,o),(i=i.alternate)&&Rg(i,o)}function Cw(){return null}function kd(i,o,u){var g=u!=null&&u.hydrationOptions!=null&&u.hydrationOptions.mutableSources||null;if(u=new xw(i,o,u!=null&&u.hydrate===!0),o=Da(3,null,null,o===2?7:o===1?3:0),u.current=o,o.stateNode=u,Ic(o),i[uo]=u.current,cp(i.nodeType===8?i.parentNode:i),g)for(i=0;i<g.length;i++){o=g[i];var b=o._getVersion;b=b(o._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[o,b]:u.mutableSourceEagerHydrationData.push(o,b)}this._internalRoot=u}kd.prototype.render=function(i){au(i,this._internalRoot,null,null)},kd.prototype.unmount=function(){var i=this._internalRoot,o=i.containerInfo;au(null,i,null,function(){o[uo]=null})};function As(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function Tw(i,o){if(o||(o=i?i.nodeType===9?i.documentElement:i.firstChild:null,o=!(!o||o.nodeType!==1||!o.hasAttribute("data-reactroot"))),!o)for(var u;u=i.lastChild;)i.removeChild(u);return new kd(i,0,o?{hydrate:!0}:void 0)}function iu(i,o,u,g,b){var C=u._reactRootContainer;if(C){var A=C._internalRoot;if(typeof b=="function"){var z=b;b=function(){var ct=bd(A);z.call(ct)}}au(o,A,i,b)}else{if(C=u._reactRootContainer=Tw(u,g),A=C._internalRoot,typeof b=="function"){var W=b;b=function(){var ct=bd(A);W.call(ct)}}Mg(function(){au(o,A,i,b)})}return bd(A)}ta=function(i){if(i.tag===13){var o=wa();Ui(i,4,o),wd(i,4)}},Ca=function(i){if(i.tag===13){var o=wa();Ui(i,67108864,o),wd(i,67108864)}},fr=function(i){if(i.tag===13){var o=wa(),u=Gi(i);Ui(i,u,o),wd(i,u)}},_o=function(i,o){return o()},ke=function(i,o,u){switch(o){case"input":if(D(i,u),o=u.name,u.type==="radio"&&o!=null){for(u=i;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<u.length;o++){var g=u[o];if(g!==i&&g.form===i.form){var b=Pl(g);if(!b)throw Error(a(90));Ye(g),D(g,b)}}}break;case"textarea":ee(i,u);break;case"select":o=u.value,o!=null&&Xt(i,!!u.multiple,o,!1)}},Ft=Pg,re=function(i,o,u,g,b){var C=ue;ue|=4;try{return Nr(98,i.bind(null,o,u,g,b))}finally{ue=C,ue===0&&(ko(),oi())}},Le=function(){(ue&49)===0&&(dw(),Yi())},Ae=function(i,o){var u=ue;ue|=2;try{return i(o)}finally{ue=u,ue===0&&(ko(),oi())}};function jg(i,o){var u=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!As(o))throw Error(a(200));return Sw(i,o,null,u)}var Ew={Events:[us,co,Pl,ve,zt,Yi,{current:!1}]},Ns={findFiberByHostInstance:Pr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},Pw={bundleType:Ns.bundleType,version:Ns.version,rendererPackageName:Ns.rendererPackageName,rendererConfig:Ns.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=Vr(i),i===null?null:i.stateNode},findFiberByHostInstance:Ns.findFiberByHostInstance||Cw,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{Ec=ru.inject(Pw),Ar=ru}catch{}}return ka.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ew,ka.createPortal=jg,ka.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var o=i._reactInternals;if(o===void 0)throw typeof i.render=="function"?Error(a(188)):Error(a(268,Object.keys(i)));return i=Vr(o),i=i===null?null:i.stateNode,i},ka.flushSync=function(i,o){var u=ue;if((u&48)!==0)return i(o);ue|=1;try{if(i)return Nr(99,i.bind(null,o))}finally{ue=u,oi()}},ka.hydrate=function(i,o,u){if(!As(o))throw Error(a(200));return iu(null,i,o,!0,u)},ka.render=function(i,o,u){if(!As(o))throw Error(a(200));return iu(null,i,o,!1,u)},ka.unmountComponentAtNode=function(i){if(!As(i))throw Error(a(40));return i._reactRootContainer?(Mg(function(){iu(null,null,i,!1,function(){i._reactRootContainer=null,i[uo]=null})}),!0):!1},ka.unstable_batchedUpdates=Pg,ka.unstable_createPortal=function(i,o){return jg(i,o,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},ka.unstable_renderSubtreeIntoContainer=function(i,o,u,g){if(!As(u))throw Error(a(200));if(i==null||i._reactInternals===void 0)throw Error(a(38));return iu(i,o,u,!1,g)},ka.version="17.0.2",ka}var av;function AE(){if(av)return Sf.exports;av=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Sf.exports=ME(),Sf.exports}var lr=AE();const pu=On(lr);function ul(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Oa(e,t){return R.useMemo(function(){return e==null&&t==null?null:function(n){ul(e,n),ul(t,n)}},[e,t])}var NE=typeof window<"u"?R.useLayoutEffect:R.useEffect;function jn(e){var t=R.useRef(e);return NE(function(){t.current=e}),R.useCallback(function(){return t.current.apply(void 0,arguments)},[])}function LE(e,t){return function(){return null}}var tc=!0,lh=!1,iv=null,BE={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function zE(e){var t=e.type,n=e.tagName;return!!(n==="INPUT"&&BE[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function IE(e){e.metaKey||e.altKey||e.ctrlKey||(tc=!0)}function Ef(){tc=!1}function DE(){this.visibilityState==="hidden"&&lh&&(tc=!0)}function RE(e){e.addEventListener("keydown",IE,!0),e.addEventListener("mousedown",Ef,!0),e.addEventListener("pointerdown",Ef,!0),e.addEventListener("touchstart",Ef,!0),e.addEventListener("visibilitychange",DE,!0)}function jE(e){var t=e.target;try{return t.matches(":focus-visible")}catch{}return tc||zE(t)}function OE(){lh=!0,window.clearTimeout(iv),iv=window.setTimeout(function(){lh=!1},100)}function Wh(){var e=R.useCallback(function(t){var n=lr.findDOMNode(t);n!=null&&RE(n.ownerDocument)},[]);return{isFocusVisible:jE,onBlurVisible:OE,ref:e}}const rv={disabled:!1},qu=Rt.createContext(null);var KE=function(t){return t.scrollTop},Xs="unmounted",jr="exited",Or="entering",No="entered",uh="exiting",Di=(function(e){Yu(t,e);function t(a,r){var l;l=e.call(this,a,r)||this;var d=r,f=d&&!d.isMounting?a.enter:a.appear,p;return l.appearStatus=null,a.in?f?(p=jr,l.appearStatus=Or):p=No:a.unmountOnExit||a.mountOnEnter?p=Xs:p=jr,l.state={status:p},l.nextCallback=null,l}t.getDerivedStateFromProps=function(r,l){var d=r.in;return d&&l.status===Xs?{status:jr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var l=null;if(r!==this.props){var d=this.state.status;this.props.in?d!==Or&&d!==No&&(l=Or):(d===Or||d===No)&&(l=uh)}this.updateStatus(!1,l)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,l,d,f;return l=d=f=r,r!=null&&typeof r!="number"&&(l=r.exit,d=r.enter,f=r.appear!==void 0?r.appear:d),{exit:l,enter:d,appear:f}},n.updateStatus=function(r,l){if(r===void 0&&(r=!1),l!==null)if(this.cancelNextCallback(),l===Or){if(this.props.unmountOnExit||this.props.mountOnEnter){var d=this.props.nodeRef?this.props.nodeRef.current:pu.findDOMNode(this);d&&KE(d)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===jr&&this.setState({status:Xs})},n.performEnter=function(r){var l=this,d=this.props.enter,f=this.context?this.context.isMounting:r,p=this.props.nodeRef?[f]:[pu.findDOMNode(this),f],y=p[0],k=p[1],E=this.getTimeouts(),N=f?E.appear:E.enter;if(!r&&!d||rv.disabled){this.safeSetState({status:No},function(){l.props.onEntered(y)});return}this.props.onEnter(y,k),this.safeSetState({status:Or},function(){l.props.onEntering(y,k),l.onTransitionEnd(N,function(){l.safeSetState({status:No},function(){l.props.onEntered(y,k)})})})},n.performExit=function(){var r=this,l=this.props.exit,d=this.getTimeouts(),f=this.props.nodeRef?void 0:pu.findDOMNode(this);if(!l||rv.disabled){this.safeSetState({status:jr},function(){r.props.onExited(f)});return}this.props.onExit(f),this.safeSetState({status:uh},function(){r.props.onExiting(f),r.onTransitionEnd(d.exit,function(){r.safeSetState({status:jr},function(){r.props.onExited(f)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,l){l=this.setNextCallback(l),this.setState(r,l)},n.setNextCallback=function(r){var l=this,d=!0;return this.nextCallback=function(f){d&&(d=!1,l.nextCallback=null,r(f))},this.nextCallback.cancel=function(){d=!1},this.nextCallback},n.onTransitionEnd=function(r,l){this.setNextCallback(l);var d=this.props.nodeRef?this.props.nodeRef.current:pu.findDOMNode(this),f=r==null&&!this.props.addEndListener;if(!d||f){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var p=this.props.nodeRef?[this.nextCallback]:[d,this.nextCallback],y=p[0],k=p[1];this.props.addEndListener(y,k)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===Xs)return null;var l=this.props,d=l.children;l.in,l.mountOnEnter,l.unmountOnExit,l.appear,l.enter,l.exit,l.timeout,l.addEndListener,l.onEnter,l.onEntering,l.onEntered,l.onExit,l.onExiting,l.onExited,l.nodeRef;var f=Uu(l,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Rt.createElement(qu.Provider,{value:null},typeof d=="function"?d(r,f):Rt.cloneElement(Rt.Children.only(d),f))},t})(Rt.Component);Di.contextType=qu;Di.propTypes={};function Ao(){}Di.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ao,onEntering:Ao,onEntered:Ao,onExit:Ao,onExiting:Ao,onExited:Ao};Di.UNMOUNTED=Xs;Di.EXITED=jr;Di.ENTERING=Or;Di.ENTERED=No;Di.EXITING=uh;function _h(e,t){var n=function(l){return t&&R.isValidElement(l)?t(l):l},a=Object.create(null);return e&&R.Children.map(e,function(r){return r}).forEach(function(r){a[r.key]=n(r)}),a}function qE(e,t){e=e||{},t=t||{};function n(k){return k in t?t[k]:e[k]}var a=Object.create(null),r=[];for(var l in e)l in t?r.length&&(a[l]=r,r=[]):r.push(l);var d,f={};for(var p in t){if(a[p])for(d=0;d<a[p].length;d++){var y=a[p][d];f[a[p][d]]=n(y)}f[p]=n(p)}for(d=0;d<r.length;d++)f[r[d]]=n(r[d]);return f}function $r(e,t,n){return n[t]!=null?n[t]:e.props[t]}function $E(e,t){return _h(e.children,function(n){return R.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:$r(n,"appear",e),enter:$r(n,"enter",e),exit:$r(n,"exit",e)})})}function HE(e,t,n){var a=_h(e.children),r=qE(t,a);return Object.keys(r).forEach(function(l){var d=r[l];if(R.isValidElement(d)){var f=l in t,p=l in a,y=t[l],k=R.isValidElement(y)&&!y.props.in;p&&(!f||k)?r[l]=R.cloneElement(d,{onExited:n.bind(null,d),in:!0,exit:$r(d,"exit",e),enter:$r(d,"enter",e)}):!p&&f&&!k?r[l]=R.cloneElement(d,{in:!1}):p&&f&&R.isValidElement(y)&&(r[l]=R.cloneElement(d,{onExited:n.bind(null,d),in:y.props.in,exit:$r(d,"exit",e),enter:$r(d,"enter",e)}))}}),r}var FE=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},WE={component:"div",childFactory:function(t){return t}},Vh=(function(e){Yu(t,e);function t(a,r){var l;l=e.call(this,a,r)||this;var d=l.handleExited.bind(Zf(l));return l.state={contextValue:{isMounting:!0},handleExited:d,firstRender:!0},l}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,l){var d=l.children,f=l.handleExited,p=l.firstRender;return{children:p?$E(r,f):HE(r,d,f),firstRender:!1}},n.handleExited=function(r,l){var d=_h(this.props.children);r.key in d||(r.props.onExited&&r.props.onExited(l),this.mounted&&this.setState(function(f){var p=Dt({},f.children);return delete p[r.key],{children:p}}))},n.render=function(){var r=this.props,l=r.component,d=r.childFactory,f=Uu(r,["component","childFactory"]),p=this.state.contextValue,y=FE(this.state.children).map(d);return delete f.appear,delete f.enter,delete f.exit,l===null?Rt.createElement(qu.Provider,{value:p},y):Rt.createElement(qu.Provider,{value:p},Rt.createElement(l,f,y))},t})(Rt.Component);Vh.propTypes={};Vh.defaultProps=WE;var _E=typeof window>"u"?R.useEffect:R.useLayoutEffect;function VE(e){var t=e.classes,n=e.pulsate,a=n===void 0?!1:n,r=e.rippleX,l=e.rippleY,d=e.rippleSize,f=e.in,p=e.onExited,y=p===void 0?function(){}:p,k=e.timeout,E=R.useState(!1),N=E[0],I=E[1],L=Ie(t.ripple,t.rippleVisible,a&&t.ripplePulsate),K={width:d,height:d,top:-(d/2)+l,left:-(d/2)+r},J=Ie(t.child,N&&t.childLeaving,a&&t.childPulsate),F=jn(y);return _E(function(){if(!f){I(!0);var G=setTimeout(F,k);return function(){clearTimeout(G)}}},[F,f,k]),R.createElement("span",{className:L,style:K},R.createElement("span",{className:J}))}var ch=550,GE=80,UE=function(t){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(ch,"ms ").concat(t.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(t.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(ch,"ms ").concat(t.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(t.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}},YE=R.forwardRef(function(t,n){var a=t.center,r=a===void 0?!1:a,l=t.classes,d=t.className,f=Ke(t,["center","classes","className"]),p=R.useState([]),y=p[0],k=p[1],E=R.useRef(0),N=R.useRef(null);R.useEffect(function(){N.current&&(N.current(),N.current=null)},[y]);var I=R.useRef(!1),L=R.useRef(null),K=R.useRef(null),J=R.useRef(null);R.useEffect(function(){return function(){clearTimeout(L.current)}},[]);var F=R.useCallback(function(_){var $=_.pulsate,v=_.rippleX,mt=_.rippleY,ft=_.rippleSize,Lt=_.cb;k(function(Nt){return[].concat(Zu(Nt),[R.createElement(VE,{key:E.current,classes:l,timeout:ch,pulsate:$,rippleX:v,rippleY:mt,rippleSize:ft})])}),E.current+=1,N.current=Lt},[l]),G=R.useCallback(function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=arguments.length>2?arguments[2]:void 0,mt=$.pulsate,ft=mt===void 0?!1:mt,Lt=$.center,Nt=Lt===void 0?r||$.pulsate:Lt,At=$.fakeElement,tt=At===void 0?!1:At;if(_.type==="mousedown"&&I.current){I.current=!1;return}_.type==="touchstart"&&(I.current=!0);var H=tt?null:J.current,s=H?H.getBoundingClientRect():{width:0,height:0,left:0,top:0},ht,x,lt;if(Nt||_.clientX===0&&_.clientY===0||!_.clientX&&!_.touches)ht=Math.round(s.width/2),x=Math.round(s.height/2);else{var bt=_.touches?_.touches[0]:_,St=bt.clientX,O=bt.clientY;ht=Math.round(St-s.left),x=Math.round(O-s.top)}if(Nt)lt=Math.sqrt((2*Math.pow(s.width,2)+Math.pow(s.height,2))/3),lt%2===0&&(lt+=1);else{var wt=Math.max(Math.abs((H?H.clientWidth:0)-ht),ht)*2+2,xt=Math.max(Math.abs((H?H.clientHeight:0)-x),x)*2+2;lt=Math.sqrt(Math.pow(wt,2)+Math.pow(xt,2))}_.touches?K.current===null&&(K.current=function(){F({pulsate:ft,rippleX:ht,rippleY:x,rippleSize:lt,cb:v})},L.current=setTimeout(function(){K.current&&(K.current(),K.current=null)},GE)):F({pulsate:ft,rippleX:ht,rippleY:x,rippleSize:lt,cb:v})},[r,F]),ot=R.useCallback(function(){G({},{pulsate:!0})},[G]),dt=R.useCallback(function(_,$){if(clearTimeout(L.current),_.type==="touchend"&&K.current){_.persist(),K.current(),K.current=null,L.current=setTimeout(function(){dt(_,$)});return}K.current=null,k(function(v){return v.length>0?v.slice(1):v}),N.current=$},[]);return R.useImperativeHandle(n,function(){return{pulsate:ot,start:G,stop:dt}},[ot,G,dt]),R.createElement("span",Dt({className:Ie(l.root,d),ref:J},f),R.createElement(Vh,{component:null,exit:!0},y))});const XE=gn(UE,{flip:!1,name:"MuiTouchRipple"})(R.memo(YE));var ZE={root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},JE=R.forwardRef(function(t,n){var a=t.action,r=t.buttonRef,l=t.centerRipple,d=l===void 0?!1:l,f=t.children,p=t.classes,y=t.className,k=t.component,E=k===void 0?"button":k,N=t.disabled,I=N===void 0?!1:N,L=t.disableRipple,K=L===void 0?!1:L,J=t.disableTouchRipple,F=J===void 0?!1:J,G=t.focusRipple,ot=G===void 0?!1:G,dt=t.focusVisibleClassName,_=t.onBlur,$=t.onClick,v=t.onFocus,mt=t.onFocusVisible,ft=t.onKeyDown,Lt=t.onKeyUp,Nt=t.onMouseDown,At=t.onMouseLeave,tt=t.onMouseUp,H=t.onTouchEnd,s=t.onTouchMove,ht=t.onTouchStart,x=t.onDragLeave,lt=t.tabIndex,bt=lt===void 0?0:lt,St=t.TouchRippleProps,O=t.type,wt=O===void 0?"button":O,xt=Ke(t,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),Ot=R.useRef(null);function Mt(){return lr.findDOMNode(Ot.current)}var Ht=R.useRef(null),Qt=R.useState(!1),de=Qt[0],me=Qt[1];I&&de&&me(!1);var Pe=Wh(),ln=Pe.isFocusVisible,Oe=Pe.onBlurVisible,rn=Pe.ref;R.useImperativeHandle(a,function(){return{focusVisible:function(){me(!0),Ot.current.focus()}}},[]),R.useEffect(function(){de&&ot&&!K&&Ht.current.pulsate()},[K,ot,de]);function Ve(Vt,Nn){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:F;return jn(function(Ut){Nn&&Nn(Ut);var ie=X;return!ie&&Ht.current&&Ht.current[Vt](Ut),!0})}var kn=Ve("start",Nt),Ye=Ve("stop",x),yn=Ve("stop",tt),Je=Ve("stop",function(Vt){de&&Vt.preventDefault(),At&&At(Vt)}),un=Ve("start",ht),M=Ve("stop",H),D=Ve("stop",s),Y=Ve("stop",function(Vt){de&&(Oe(Vt),me(!1)),_&&_(Vt)},!1),it=jn(function(Vt){Ot.current||(Ot.current=Vt.currentTarget),ln(Vt)&&(me(!0),mt&&mt(Vt)),v&&v(Vt)}),vt=function(){var Nn=Mt();return E&&E!=="button"&&!(Nn.tagName==="A"&&Nn.href)},st=R.useRef(!1),Xt=jn(function(Vt){ot&&!st.current&&de&&Ht.current&&Vt.key===" "&&(st.current=!0,Vt.persist(),Ht.current.stop(Vt,function(){Ht.current.start(Vt)})),Vt.target===Vt.currentTarget&&vt()&&Vt.key===" "&&Vt.preventDefault(),ft&&ft(Vt),Vt.target===Vt.currentTarget&&vt()&&Vt.key==="Enter"&&!I&&(Vt.preventDefault(),$&&$(Vt))}),Me=jn(function(Vt){ot&&Vt.key===" "&&Ht.current&&de&&!Vt.defaultPrevented&&(st.current=!1,Vt.persist(),Ht.current.stop(Vt,function(){Ht.current.pulsate(Vt)})),Lt&&Lt(Vt),$&&Vt.target===Vt.currentTarget&&vt()&&Vt.key===" "&&!Vt.defaultPrevented&&$(Vt)}),Re=E;Re==="button"&&xt.href&&(Re="a");var ee={};Re==="button"?(ee.type=wt,ee.disabled=I):((Re!=="a"||!xt.href)&&(ee.role="button"),ee["aria-disabled"]=I);var Xe=Oa(r,n),Qe=Oa(rn,Ot),Kn=Oa(Xe,Qe),Ze=R.useState(!1),xn=Ze[0],Bn=Ze[1];R.useEffect(function(){Bn(!0)},[]);var qn=xn&&!K&&!I;return R.createElement(Re,Dt({className:Ie(p.root,y,de&&[p.focusVisible,dt],I&&p.disabled),onBlur:Y,onClick:$,onFocus:it,onKeyDown:Xt,onKeyUp:Me,onMouseDown:kn,onMouseLeave:Je,onMouseUp:yn,onDragLeave:Ye,onTouchEnd:M,onTouchMove:D,onTouchStart:un,ref:Kn,tabIndex:I?-1:bt},ee,xt),f,qn?R.createElement(XE,Dt({ref:Ht,center:d},St)):null)});const ab=gn(ZE,{name:"MuiButtonBase"})(JE);function sn(e){if(typeof e!="string")throw new Error(Ru(7));return e.charAt(0).toUpperCase()+e.slice(1)}var QE=function(t){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:t.palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{backgroundColor:Un(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:t.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:t.palette.primary.main,"&:hover":{backgroundColor:Un(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:t.palette.secondary.main,"&:hover":{backgroundColor:Un(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:t.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}},t1=R.forwardRef(function(t,n){var a=t.edge,r=a===void 0?!1:a,l=t.children,d=t.classes,f=t.className,p=t.color,y=p===void 0?"default":p,k=t.disabled,E=k===void 0?!1:k,N=t.disableFocusRipple,I=N===void 0?!1:N,L=t.size,K=L===void 0?"medium":L,J=Ke(t,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return R.createElement(ab,Dt({className:Ie(d.root,f,y!=="default"&&d["color".concat(sn(y))],E&&d.disabled,K==="small"&&d["size".concat(sn(K))],{start:d.edgeStart,end:d.edgeEnd}[r]),centerRipple:!0,focusRipple:!I,disabled:E,ref:n},J),R.createElement("span",{className:d.label},l))});const pi=gn(QE,{name:"MuiIconButton"})(t1);var Is={},Pf={exports:{}},ov;function Xa(){return ov||(ov=1,(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Pf)),Pf.exports}var Mf={exports:{}},Af={exports:{}},sv;function e1(){return sv||(sv=1,(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Af)),Af.exports}var lv;function Za(){return lv||(lv=1,(function(e){var t=e1().default;function n(a,r){if(typeof WeakMap=="function")var l=new WeakMap,d=new WeakMap;return(e.exports=n=function(p,y){if(!y&&p&&p.__esModule)return p;var k,E,N={__proto__:null,default:p};if(p===null||t(p)!="object"&&typeof p!="function")return N;if(k=y?d:l){if(k.has(p))return k.get(p);k.set(p,N)}for(var I in p)I!=="default"&&{}.hasOwnProperty.call(p,I)&&((E=(k=Object.defineProperty)&&Object.getOwnPropertyDescriptor(p,I))&&(E.get||E.set)?k(N,I,E):N[I]=p[I]);return N},e.exports.__esModule=!0,e.exports.default=e.exports)(a,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Mf)),Mf.exports}var Nf={};function $u(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(a,r){return r==null?a:function(){for(var d=arguments.length,f=new Array(d),p=0;p<d;p++)f[p]=arguments[p];a.apply(this,f),r.apply(this,f)}},function(){})}var n1=function(t){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:t.typography.pxToRem(24),transition:t.transitions.create("fill",{duration:t.transitions.duration.shorter})},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},colorAction:{color:t.palette.action.active},colorError:{color:t.palette.error.main},colorDisabled:{color:t.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:t.typography.pxToRem(20)},fontSizeLarge:{fontSize:t.typography.pxToRem(35)}}},ib=R.forwardRef(function(t,n){var a=t.children,r=t.classes,l=t.className,d=t.color,f=d===void 0?"inherit":d,p=t.component,y=p===void 0?"svg":p,k=t.fontSize,E=k===void 0?"medium":k,N=t.htmlColor,I=t.titleAccess,L=t.viewBox,K=L===void 0?"0 0 24 24":L,J=Ke(t,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return R.createElement(y,Dt({className:Ie(r.root,l,f!=="inherit"&&r["color".concat(sn(f))],E!=="default"&&E!=="medium"&&r["fontSize".concat(sn(E))]),focusable:"false",viewBox:K,color:N,"aria-hidden":I?void 0:!0,role:I?"img":void 0,ref:n},J),a,I?R.createElement("title",null,I):null)});ib.muiName="SvgIcon";const dh=gn(n1,{name:"MuiSvgIcon"})(ib);function Gh(e,t){var n=function(r,l){return Rt.createElement(dh,Dt({ref:l},r),e)};return n.muiName=dh.muiName,Rt.memo(Rt.forwardRef(n))}function a1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:166,n;function a(){for(var r=arguments.length,l=new Array(r),d=0;d<r;d++)l[d]=arguments[d];var f=this,p=function(){e.apply(f,l)};clearTimeout(n),n=setTimeout(p,t)}return a.clear=function(){clearTimeout(n)},a}function xu(e,t){return R.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function mi(e){return e&&e.ownerDocument||document}function rb(e){var t=mi(e);return t.defaultView||window}function i1(e){return function(){return null}}function r1(e,t,n,a,r){return null}function ec(e){var t=e.controlled,n=e.default;e.name,e.state;var a=R.useRef(t!==void 0),r=a.current,l=R.useState(n),d=l[0],f=l[1],p=r?t:d,y=R.useCallback(function(k){r||f(k)},[]);return[p,y]}function ob(e){var t=R.useState(e),n=t[0],a=t[1],r=e||n;return R.useEffect(function(){n==null&&a("mui-".concat(Math.round(Math.random()*1e5)))},[n]),r}const o1=Object.freeze(Object.defineProperty({__proto__:null,capitalize:sn,createChainedFunction:$u,createSvgIcon:Gh,debounce:a1,deprecatedPropType:LE,isMuiElement:xu,ownerDocument:mi,ownerWindow:rb,requirePropFactory:i1,setRef:ul,unstable_useId:ob,unsupportedProp:r1,useControlled:ec,useEventCallback:jn,useForkRef:Oa,useIsFocusVisible:Wh},Symbol.toStringTag,{value:"Module"})),s1=Uv(o1);var uv;function Ja(){return uv||(uv=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=s1})(Nf)),Nf}var cv;function l1(){if(cv)return Is;cv=1;var e=Xa(),t=Za();Object.defineProperty(Is,"__esModule",{value:!0}),Is.default=void 0;var n=t(sa()),a=e(Ja()),r=(0,a.default)(n.createElement("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76z"}),"ArrowBackIosRounded");return Is.default=r,Is}var u1=l1();const dv=On(u1);var Ds={},fv;function c1(){if(fv)return Ds;fv=1;var e=Xa(),t=Za();Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.default=void 0;var n=t(sa()),a=e(Ja()),r=(0,a.default)(n.createElement("path",{d:"M7.38 21.01c.49.49 1.28.49 1.77 0l8.31-8.31c.39-.39.39-1.02 0-1.41L9.15 2.98c-.49-.49-1.28-.49-1.77 0s-.49 1.28 0 1.77L14.62 12l-7.25 7.25c-.48.48-.48 1.28.01 1.76z"}),"ArrowForwardIosRounded");return Ds.default=r,Ds}var d1=c1();const hv=On(d1);var Rs={},pv;function f1(){if(pv)return Rs;pv=1;var e=Xa(),t=Za();Object.defineProperty(Rs,"__esModule",{value:!0}),Rs.default=void 0;var n=t(sa()),a=e(Ja()),r=(0,a.default)(n.createElement(n.Fragment,null,n.createElement("circle",{cx:"15.5",cy:"9.5",r:"1.5"}),n.createElement("circle",{cx:"8.5",cy:"9.5",r:"1.5"}),n.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 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm0-6c-2.33 0-4.32 1.45-5.12 3.5h1.67c.69-1.19 1.97-2 3.45-2s2.75.81 3.45 2h1.67c-.8-2.05-2.79-3.5-5.12-3.5z"})),"SentimentVeryDissatisfied");return Rs.default=r,Rs}var h1=f1();const p1=On(h1);function g1({modulePath:e=".",importFunctionName:t="__import__"}={}){try{self[t]=new Function("u","return import(u)")}catch{const a=new URL(e,location),r=l=>{URL.revokeObjectURL(l.src),l.remove()};self[t]=l=>new Promise((d,f)=>{const p=new URL(l,a);if(self[t].moduleMap[p])return d(self[t].moduleMap[p]);const y=new Blob([`import * as m from '${p}';`,`${t}.moduleMap['${p}']=m;`],{type:"text/javascript"}),k=Object.assign(document.createElement("script"),{type:"module",src:URL.createObjectURL(y),onerror(){f(new Error(`Failed to import: ${l}`)),r(k)},onload(){d(self[t].moduleMap[p]),r(k)}});document.head.appendChild(k)}),self[t].moduleMap={}}}var m1=Object.freeze({initialize:g1});m1.initialize({importFunctionName:"polyfill_import"});function v1(e){return e.indexOf("/")!==0&&(e="/"+e),polyfill_import(e)}function y1(e,t,n,a,r){if(!Zv()?.getCurrentPage()){alert("null currentPage in reportScoreForCurrentPage()");return}if(a||alert("bloom-player page-api: analyticsCategory is missing."),Su(e,a))return;sb(e,a,JSON.stringify({possiblePoints:t,actualPoints:n,analyticsCategory:a}));let l=0,d=0;if(r&&r.length>0)for(let p=0;p<r.length;p++){const y=Su(r[p],a);if(!y)return;const k=JSON.parse(y);l+=k.possiblePoints,d+=k.actualPoints}else{const p=Su(e,a),y=JSON.parse(p);l+=y.possiblePoints,d+=y.actualPoints}const f={possiblePoints:l,actualPoints:d,percentRight:d*100/l};Ny(a,f)}function sb(e,t,n){const a=lb(e,t);Ih.getData()[a]=n,qS(a,n)}function Su(e,t){return Ih.getData()[lb(e,t)]}function lb(e,t){return"p"+e.toString()+"."+t}const cl=".bloom-textOverPicture, .bloom-canvas-element";let fh=[],Hu=new Map,fi,ub,Fu=[];const b1=e=>{Fu=[],e.querySelectorAll("[data-draggable-id]").forEach(t=>{Fu.push({x:t.style.left,y:t.style.top,elt:t})})},Uh=()=>{Fu.forEach(e=>{e.elt.style.left=e.x,e.elt.style.top=e.y,e.elt.classList.remove("bloom-draggedToTarget")})};function w1(e){if(e.getAttribute("data-activity")!=="drag-letter-to-target")return;const t=Array.from(e.querySelectorAll("[data-draggable-id]"));t.shift(),t.forEach(n=>{const a=!!n.getElementsByClassName("bloom-visibility-code-on")[0]?.innerText.trim();n.classList.toggle("bloom-unused-in-lang",!a);const r=ep(n);r&&r.classList.toggle("bloom-unused-in-lang",!a)})}function Yh(e){return e.closest("#page-scaling-container")!==null}function k1(e,t){fi=e,w1(e),ub=t,Nb(e.getAttribute("data-show-answers-in-targets")==="true"||e.getAttribute("data-show-target-as-shadow")==="true",e),b1(e),Array.from(e.getElementsByClassName("bloom-change-page-button")).forEach(N=>N.addEventListener("click",pb)),Array.from(document.getElementsByClassName("bloom-canvas")).forEach(N=>{N.title=""}),Array.from(document.getElementsByClassName("bloom-imageContainer")).forEach(N=>{N.title=""}),Array.from(e.getElementsByTagName("img")).forEach(N=>{N.setAttribute("draggable","false")}),fh=[],Hu=new Map;const a=Array.from(e.querySelectorAll("[data-draggable-id]")),r=[];a.forEach(N=>{const I=N.getAttribute("data-draggable-id"),L=e.querySelector(`[data-target-of="${I}"]`);if(L){const K=L.offsetLeft,J=L.offsetTop;fh.push({x:K,y:J,width:L.offsetWidth,height:L.offsetHeight}),r.push(L)}Hu.set(N,{x:N.offsetLeft,y:N.offsetTop}),N.style.touchAction="none",N.addEventListener("pointerdown",vb,{capture:!0})}),Array.from(e.getElementsByTagName("video")).forEach(N=>{N.closest(cl)?.hasAttribute("data-draggable-id")&&(N.classList.add("bloom-ui-no-controls"),N.addEventListener("pointerdown",cb),Gf(N))});const d=a.concat(r);Array.from(e.getElementsByClassName("bloom-visibility-code-on")).filter(N=>{var I=N.closest(cl);return I?d.indexOf(I)<0:!0}).forEach(N=>{N.addEventListener("pointerdown",db)});const p=Array.from(e.getElementsByClassName("check-button")),y=Array.from(e.getElementsByClassName("try-again-button")),k=Array.from(e.getElementsByClassName("show-correct-button"));p.forEach(N=>{N.addEventListener("click",wb)}),y.forEach(N=>{N.addEventListener("click",kb)}),k.forEach(N=>{N.addEventListener("click",mb)}),Array.from(e.querySelectorAll("[data-sound]")).forEach(N=>{N.addEventListener("click",Xh)}),x1(e),Sb(e)}const x1=e=>{Array.from(e.getElementsByClassName("drag-item-order-sentence")).forEach(t=>{const n=t.getElementsByClassName("bloom-content1 bloom-visibility-code-on")[0],a=n?.textContent?.trim();if(!a)return;const r=a.split(" "),l=P1(r),d=e.ownerDocument.createElement("div");d.classList.add("drag-item-random-sentence"),d.setAttribute("data-answer",a),hb(e,l,d,n,!0),d.style.left=t.style.left,d.style.top=t.style.top,d.style.width=t.style.width,t.parentElement?.insertBefore(d,t)})},cb=e=>{const t=e.currentTarget;Gu(t),t.play()};function S1(e){Bh(),Uh(),Fu=[],Array.from(e.getElementsByClassName("bloom-change-page-button")).forEach(p=>p.removeEventListener("click",pb)),Array.from(e.getElementsByClassName("bloom-visibility-code-on")).forEach(p=>{p.removeEventListener("pointerdown",db)}),e.querySelectorAll("[data-draggable-id]").forEach(p=>{p.removeEventListener("pointerdown",vb,{capture:!0})}),Array.from(e.getElementsByTagName("img")).forEach(p=>{p.removeAttribute("draggable")}),Array.from(e.getElementsByTagName("video")).forEach(p=>{p.removeEventListener("pointerdown",cb),p.classList.remove("bloom-ui-no-controls")});const a=Array.from(e.getElementsByClassName("check-button")),r=Array.from(e.getElementsByClassName("try-again-button")),l=Array.from(e.getElementsByClassName("show-correct-button"));a.forEach(p=>{p.removeEventListener("click",wb)}),l.forEach(p=>{p.removeEventListener("click",mb)}),r.forEach(p=>{p.removeEventListener("click",kb)}),Array.from(e.querySelectorAll("[data-sound]")).forEach(p=>{p.removeEventListener("click",Xh)}),Array.from(e.getElementsByClassName("drag-item-random-sentence")).forEach(p=>{p.parentElement?.removeChild(p)}),xb(e);const f=e.closest(".swiper-slide")!==null;Nb(!f,e)}const Xh=e=>{const t=e.currentTarget,n=t.getAttribute("data-sound");n&&Cb(t,n),e.preventDefault(),e.stopPropagation()},db=e=>{const t=e.currentTarget;fb(t)},fb=e=>{const t=C1(e);_u(t,e.closest(".bloom-page"))};function C1(e){const t=nc(e);return Zh(t)}function hb(e,t,n,a,r){const l=Array.from(a?.classList)?.find(f=>f.endsWith("-style"))??"Normal-style",d=a?.getAttribute("lang");t.forEach(f=>{const p=e.ownerDocument.createElement("div");p.classList.add("drag-item-order-word"),p.textContent=f,n.appendChild(p),p.classList.add(l),d&&p.setAttribute("lang",d),r&&p.addEventListener("pointerdown",L1)})}function pb(e){const t=e.currentTarget.classList.contains("bloom-next-page");ub?.(t)}function T1(e,t){const n=l=>{const d=l.closest(cl);return!(!d||d.classList.contains("draggable-text")||d.hasAttribute("data-draggable-id")||d.classList.contains("drag-item-order-sentence")||d.classList.contains("bloom-wordChoice")||d.classList.contains("drag-item-correct")||d.classList.contains("drag-item-wrong"))},a=nc(e).filter(n),r=Zh(a);_u(r,e)}let gb=(e,t)=>{};function E1(e){gb=e}function Zh(e){const t=[];return e.forEach(n=>{n.classList.contains(Mu)&&t.push(n),t.push(...Array.from(n.getElementsByClassName(Mu)))}),t}function nc(e){const t=Array.from(e.getElementsByClassName("bloom-editable")).filter(n=>window.getComputedStyle(n).display!=="none");return e.classList.contains("bloom-editable")&&window.getComputedStyle(e).display!=="none"&&t.push(e),t}function P1(e,t){t||(t=(f,p)=>f===p);let n=!0;for(let f=1;f<e.length;++f)if(!t(e[0],e[f])){n=!1;break}if(n)return e;const a=e.slice();let r=0,l=a,d=0;for(;d++<10;){let f=e.length,p;for(;f!==0;)p=Math.floor(Math.random()*f),f--,[e[f],e[p]]=[e[p],e[f]];let y=0;for(let k=0;k<e.length;++k)t(e[k],a[k])||++y;if(y===e.length)return e;y>r&&(r=y,l=e.slice())}for(let f=0;f<e.length;++f)e[f]=l[f];return e}const mb=e=>{if(!fi)return;Uh(),fi.querySelectorAll("[data-draggable-id]").forEach(n=>{const a=n.getAttribute("data-draggable-id"),r=fi?.querySelector(`[data-target-of="${a}"]`);if(!r)return;let l=n.offsetWidth;if(!l){const y=n.style.width.replace("px","");l=Number.parseInt(y,10)}let d=n.offsetHeight;if(!d){const y=n.style.height.replace("px","");d=Number.parseInt(y,10)}const f=r.offsetLeft+(r.offsetWidth-l)/2,p=r.offsetTop+(r.offsetHeight-d)/2;n.style.left=f+"px",n.style.top=p+"px"}),Array.from(fi.getElementsByClassName("drag-item-random-sentence")).forEach(n=>{const a=n.getAttribute("data-answer")?.split(" ")??[],r=n.children[0];n.innerHTML="",hb(fi,a,n,r,!1)}),Fr(fi,"drag-activity-wrong",!1),Fr(fi,"drag-activity-solution",!0);const t=[];fi.querySelectorAll("[data-draggable-id]").forEach(n=>{const a=n.getAttribute("data-draggable-id");fi?.querySelector(`[data-target-of="${a}"]`)&&t.push(...Array.from(n.getElementsByTagName("video")))}),t.length>0&&wy(t,()=>{})};let ac=0,ic=0,Ln,hh=!1;const rc=e=>e.getBoundingClientRect().width/e.offsetWidth,vb=e=>{if(e.button!==0||e.ctrlKey)return;e.preventDefault();const t=e.currentTarget;Ln=t;const n=t.closest(".bloom-page"),a=rc(n);ac=e.clientX/a-t.offsetLeft,ic=e.clientY/a-t.offsetTop,t.setPointerCapture(e.pointerId),t.addEventListener("pointerup",bb),t.addEventListener("pointermove",yb),fb(t),t.classList.add("bloom-ui-dragging"),Ln.classList.remove("bloom-draggedToTarget")},yb=e=>{const t=Ln.closest(".bloom-page"),n=rc(t);e.preventDefault();let a=e.clientX/n-ac,r=e.clientY/n-ic,l=Number.MAX_VALUE;hh=!1;let d=a,f=r;for(const p of fh){const y=(p.width-Ln.offsetWidth)/2,k=(p.height-Ln.offsetHeight)/2,E=p.x+y-a,N=p.y+k-r,I=Math.sqrt(E*E+N*N);I<l&&(l=I,d=p.x+y,f=p.y+k)}l<50&&(a=d,r=f,hh=!0),Ln.style.top=r+"px",Ln.style.left=a+"px"},bb=e=>{if(hh)Ln.classList.add("bloom-draggedToTarget");else{const a=Hu.get(Ln);Ln.style.top=a?.y+"px",Ln.style.left=a?.x+"px",Ln.classList.remove("bloom-draggedToTarget")}Ln.classList.remove("bloom-ui-dragging"),Ln.removeEventListener("pointerup",bb),Ln.removeEventListener("pointermove",yb);const t=Ln.closest(".bloom-page");Array.from(t.querySelectorAll("[data-draggable-id]")).forEach(a=>{if(a!==Ln&&ph(a,Ln)){const r=Hu.get(a);r&&(a.style.left=r.x+"px",a.style.top=r.y+"px",a.classList.remove("bloom-draggedToTarget"))}})},gv=e=>{const t=nc(e);return Array.from(t).map(n=>n.textContent).join(" ")},ph=(e,t)=>{const n=e.offsetLeft,a=e.offsetTop,r=t.offsetLeft+(t.offsetWidth-e.offsetWidth)/2,l=t.offsetTop+(t.offsetHeight-e.offsetHeight)/2;return Math.abs(r-n)<.6&&Math.abs(l-a)<.6},wb=e=>{const n=e.currentTarget.closest(".bloom-page"),a=N1(n)&&B1(n);return A1(n,a),gb(1,a?1:0),a},kb=e=>{const n=e.currentTarget.closest(".bloom-page");Fr(n,"drag-activity-correct",!1),Fr(n,"drag-activity-wrong",!1),Fr(n,"drag-activity-solution",!1),Uh(),Bh()},Fr=(e,t,n)=>{n?e.parentElement?.classList.add(t):e.parentElement?.classList.remove(t)};let ra,ze,Jh,Qh;function M1(e,t){Jh=e,Qh=t}const tp="data-preload-sound";function xb(e){e.querySelectorAll(`audio[${tp}]`).forEach(t=>{t.src="",t.remove()})}function Sb(e){const t=(n,a)=>{const r=n!==null;if(n===null)n=a??null;else if(n==="none")return;if(!n)return;const l=(r?Ch()+"/audio/":"")+n;if(Array.from(e.querySelectorAll(`audio[${tp}]`)).find(p=>p.dataset.preloadSound===l))return;const f=document.createElement("audio");f.dataset.preloadSound=l,f.style.visibility="hidden",Yh(e)&&f.classList.add("bloom-ui"),f.src=l,f.load(),e.append(f)};t(e.getAttribute("data-correct-sound"),Jh),t(e.getAttribute("data-wrong-sound"),Qh)}function gh(e,t,n){let a=e.getAttribute(t?"data-correct-sound":"data-wrong-sound");const r=a!==null;a===null?a=t?Jh:Qh:a==="none"&&(a=void 0),a?Cb(e,a,r,n):n?.()}function A1(e,t){Fr(e,"drag-activity-correct",t),Fr(e,"drag-activity-wrong",!t),gh(e,t,()=>{if(!e.parentElement?.classList.contains(t?"drag-activity-correct":"drag-activity-wrong"))return;const a=Array.from(e.getElementsByClassName(t?"drag-item-correct":"drag-item-wrong")),r=[],l=[];a.forEach(f=>{r.push(...nc(f)),l.push(...Array.from(f.getElementsByTagName("video")))});const d=Zh(r);wy(l,()=>_u(d,e))})}function Cb(e,t,n=!0,a){const r=(n?Ch()+"/audio/":"")+t,l=Array.from(e.querySelectorAll(`audio[${tp}]`)).find(k=>k.dataset.preloadSound===r);let d;l?(delete l.dataset.preloadSound,l.currentTime=0,d=l):(d=new Audio(r),Yh(e)&&d.classList.add("bloom-ui"),d.style.visibility="hidden",e.append(d));let f=!1;const p=()=>{f||(f=!0,a?.())};d.play()?.catch(()=>{p()}),d.addEventListener("ended",()=>{e.removeChild(d),p()},{once:!0}),d.addEventListener("error",()=>{d.parentElement===e&&e.removeChild(d),p()},{once:!0})}function N1(e){let t=!0;const n=Array.from(e.querySelectorAll("[data-draggable-id]"));return n.forEach(a=>{const r=a.getAttribute("data-draggable-id"),l=e.querySelector(`[data-target-of="${r}"]`);if(l&&!ph(a,l)){if(!Array.from(a.children).some(f=>f.classList.contains("bloom-translationGroup"))){t=!1;return}const d=gv(a);n.some(f=>f===a||gv(f)!==d?!1:ph(f,l))||(t=!1)}}),t}let Xn,mh=0;const Tb=5;function L1(e){if(e.button!==0||e.ctrlKey)return;ze=e.currentTarget,mh=ze.offsetWidth;const t=ze.closest(".bloom-page"),n=rc(t);ac=e.clientX/n-ze.offsetLeft,ic=e.clientY/n-ze.offsetTop,ra=ze.ownerDocument.createElement("div"),ze.classList.forEach(a=>ra.classList.add(a)),ra.textContent=ze.textContent,ra.style.position="absolute",ra.style.left=ze.offsetLeft+"px",ra.style.top=ze.offsetTop+"px",ra.setAttribute("lang",ze.getAttribute("lang")),Xn=Ab(ze),Xn.style.width=mh+Tb+"px",ze.parentElement?.insertBefore(Xn,ze),ze.style.display="none",ze.setPointerCapture(e.pointerId),ze.addEventListener("pointerup",Mb),ze.addEventListener("pointermove",Pb),ze.addEventListener("touchstart",Eb),ze.parentElement?.appendChild(ra)}const Eb=e=>{e.preventDefault()};let mv;const Pb=e=>{const t=ra.closest(".bloom-page"),n=rc(t);e.preventDefault();const a=e.clientX/n-ac,r=e.clientY/n-ic;if(ra.style.top=r+"px",ra.style.left=a+"px",Cu)return;const l=ze.parentElement,d=Array.from(l.children).find(f=>{const p=f.getBoundingClientRect();return f!==ze&&f!==Xn&&f!==ra&&e.clientX>p.left&&e.clientX<p.right&&e.clientY>p.top&&e.clientY<p.bottom});if(d&&d!==mv){const f=Array.from(l.children);f.indexOf(d)>f.indexOf(Xn)?Lf(()=>{l.insertBefore(Xn,d.nextSibling)}):Lf(()=>{l.insertBefore(Xn,d)})}else{const f=Array.from(ze.parentElement.getElementsByClassName("drag-item-order-word")).filter(k=>k!==ze&&k!==Xn&&k!==ra),y=f[f.length-1].getBoundingClientRect();(e.clientY>y.bottom||e.clientX>y.right&&e.clientY>y.top)&&Lf(()=>{l.appendChild(Xn)})}mv=d},Mb=e=>{e.preventDefault(),ze.style.visibility="visible",ze.removeEventListener("pointerup",Mb),ze.removeEventListener("pointermove",Pb),ze.releasePointerCapture(e.pointerId),ze.removeEventListener("touchstart",Eb),ra.parentElement?.removeChild(ra),ze.parentElement?.insertBefore(ze,Xn),ze.parentElement?.removeChild(Xn),Xn=void 0,ze.style.display=""};function Ab(e){const t=e.cloneNode(!0);return t.style.overflowX="hidden",t.style.marginRight="0",t.style.paddingLeft="0",t.style.paddingRight="0",t.style.display="",t.style.visibility="hidden",t}let Cu=!1;function Lf(e){Cu=!0;const t=200,n=ze.parentElement,a=Ab(ze);n.insertBefore(a,Xn),e();const r=Date.now(),l=()=>{const d=Date.now()-r,f=Math.min(d/t,1),p=mh+Tb;if(!Xn){n.removeChild(a),Cu=!1;return}Xn.style.width=p*f+"px",a.style.width=p*(1-f)+"px",f<1?requestAnimationFrame(l):(n.removeChild(a),Xn.style.width=p+"px",Cu=!1)};requestAnimationFrame(l)}function B1(e){const t=e.getElementsByClassName("drag-item-random-sentence");for(let n=0;n<t.length;n++){const a=t[n],r=a.getAttribute("data-answer").split(" "),l=Array.from(a.children);for(let d=0;d<l.length;d++)if(l[d].textContent!==r[d])return!1}return!0}const Nb=(e,t)=>{const n=t.querySelectorAll(":scope [data-draggable-id]");e?n.forEach(a=>{z1(a)}):n.forEach(a=>{I1(a)})};function z1(e){const t=ep(e);if(!t)return;let n=t.ownerDocument.createElement("div");n.innerHTML=e.innerHTML,Array.from(n.getElementsByClassName("bloom-ui")).forEach(r=>{r.remove()}),Array.from(n.getElementsByClassName("imageOverlayButton")).forEach(r=>{r.remove()}),Array.from(n.getElementsByClassName("imageButton")).forEach(r=>{r.remove()}),Array.from(n.querySelectorAll("[id]")).forEach(r=>{r.removeAttribute("id")}),Array.from(n.getElementsByClassName("hoverUp")).forEach(r=>{r.classList.remove("hoverUp")}),Array.from(n.querySelectorAll("[contenteditable]")).forEach(r=>{r.removeAttribute("contenteditable")}),Array.from(n.getElementsByClassName("ui-audioCurrent")).forEach(r=>{r.classList.remove("ui-audioCurrent")}),Array.from(n.querySelectorAll("[tabindex]")).forEach(r=>{r.removeAttribute("tabindex")}),n.querySelectorAll(".bloom-selected").forEach(r=>{r.classList.remove("bloom-selected")});let a=n.getElementsByClassName("bloom-canvas")[0];if(a||(a=n.getElementsByClassName("bloom-imageContainer")[0]),a){const r=n;n=t.ownerDocument.createElement("div"),n.appendChild(r),r.classList.add("bloom-targetWrapper"),a.style.width=e.style.width,a.style.height=e.style.height;let l=a.getAttribute("data-background");l&&!a.style.backgroundImage&&(l.startsWith("url(")||(l="url("+l+")"),a.style.backgroundImage=l,a.removeAttribute("data-background"))}t.innerHTML!==n.innerHTML&&(t.innerHTML=n.innerHTML)}const ep=e=>{const t=e.getAttribute("data-draggable-id");if(t)return e.closest(".bloom-page").querySelector(`[data-target-of="${t}"]`)};function I1(e){const t=ep(e);t&&(t.innerHTML="")}var Tu={exports:{}};var D1=Tu.exports,vv;function Lb(){return vv||(vv=1,(function(e){(function(t,n){e.exports=t.document?n(t,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return n(a)}})(typeof window<"u"?window:D1,function(t,n){var a=[],r=Object.getPrototypeOf,l=a.slice,d=a.flat?function(c){return a.flat.call(c)}:function(c){return a.concat.apply([],c)},f=a.push,p=a.indexOf,y={},k=y.toString,E=y.hasOwnProperty,N=E.toString,I=N.call(Object),L={},K=function(h){return typeof h=="function"&&typeof h.nodeType!="number"&&typeof h.item!="function"},J=function(h){return h!=null&&h===h.window},F=t.document,G={type:!0,src:!0,nonce:!0,noModule:!0};function ot(c,h,m){m=m||F;var w,T,S=m.createElement("script");if(S.text=c,h)for(w in G)T=h[w]||h.getAttribute&&h.getAttribute(w),T&&S.setAttribute(w,T);m.head.appendChild(S).parentNode.removeChild(S)}function dt(c){return c==null?c+"":typeof c=="object"||typeof c=="function"?y[k.call(c)]||"object":typeof c}var _="3.7.1",$=/HTML$/i,v=function(c,h){return new v.fn.init(c,h)};v.fn=v.prototype={jquery:_,constructor:v,length:0,toArray:function(){return l.call(this)},get:function(c){return c==null?l.call(this):c<0?this[c+this.length]:this[c]},pushStack:function(c){var h=v.merge(this.constructor(),c);return h.prevObject=this,h},each:function(c){return v.each(this,c)},map:function(c){return this.pushStack(v.map(this,function(h,m){return c.call(h,m,h)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(v.grep(this,function(c,h){return(h+1)%2}))},odd:function(){return this.pushStack(v.grep(this,function(c,h){return h%2}))},eq:function(c){var h=this.length,m=+c+(c<0?h:0);return this.pushStack(m>=0&&m<h?[this[m]]:[])},end:function(){return this.prevObject||this.constructor()},push:f,sort:a.sort,splice:a.splice},v.extend=v.fn.extend=function(){var c,h,m,w,T,S,P=arguments[0]||{},q=1,j=arguments.length,Z=!1;for(typeof P=="boolean"&&(Z=P,P=arguments[q]||{},q++),typeof P!="object"&&!K(P)&&(P={}),q===j&&(P=this,q--);q<j;q++)if((c=arguments[q])!=null)for(h in c)w=c[h],!(h==="__proto__"||P===w)&&(Z&&w&&(v.isPlainObject(w)||(T=Array.isArray(w)))?(m=P[h],T&&!Array.isArray(m)?S=[]:!T&&!v.isPlainObject(m)?S={}:S=m,T=!1,P[h]=v.extend(Z,S,w)):w!==void 0&&(P[h]=w));return P},v.extend({expando:"jQuery"+(_+Math.random()).replace(/\D/g,""),isReady:!0,error:function(c){throw new Error(c)},noop:function(){},isPlainObject:function(c){var h,m;return!c||k.call(c)!=="[object Object]"?!1:(h=r(c),h?(m=E.call(h,"constructor")&&h.constructor,typeof m=="function"&&N.call(m)===I):!0)},isEmptyObject:function(c){var h;for(h in c)return!1;return!0},globalEval:function(c,h,m){ot(c,{nonce:h&&h.nonce},m)},each:function(c,h){var m,w=0;if(mt(c))for(m=c.length;w<m&&h.call(c[w],w,c[w])!==!1;w++);else for(w in c)if(h.call(c[w],w,c[w])===!1)break;return c},text:function(c){var h,m="",w=0,T=c.nodeType;if(!T)for(;h=c[w++];)m+=v.text(h);return T===1||T===11?c.textContent:T===9?c.documentElement.textContent:T===3||T===4?c.nodeValue:m},makeArray:function(c,h){var m=h||[];return c!=null&&(mt(Object(c))?v.merge(m,typeof c=="string"?[c]:c):f.call(m,c)),m},inArray:function(c,h,m){return h==null?-1:p.call(h,c,m)},isXMLDoc:function(c){var h=c&&c.namespaceURI,m=c&&(c.ownerDocument||c).documentElement;return!$.test(h||m&&m.nodeName||"HTML")},merge:function(c,h){for(var m=+h.length,w=0,T=c.length;w<m;w++)c[T++]=h[w];return c.length=T,c},grep:function(c,h,m){for(var w,T=[],S=0,P=c.length,q=!m;S<P;S++)w=!h(c[S],S),w!==q&&T.push(c[S]);return T},map:function(c,h,m){var w,T,S=0,P=[];if(mt(c))for(w=c.length;S<w;S++)T=h(c[S],S,m),T!=null&&P.push(T);else for(S in c)T=h(c[S],S,m),T!=null&&P.push(T);return d(P)},guid:1,support:L}),typeof Symbol=="function"&&(v.fn[Symbol.iterator]=a[Symbol.iterator]),v.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(c,h){y["[object "+h+"]"]=h.toLowerCase()});function mt(c){var h=!!c&&"length"in c&&c.length,m=dt(c);return K(c)||J(c)?!1:m==="array"||h===0||typeof h=="number"&&h>0&&h-1 in c}function ft(c,h){return c.nodeName&&c.nodeName.toLowerCase()===h.toLowerCase()}var Lt=a.pop,Nt=a.sort,At=a.splice,tt="[\\x20\\t\\r\\n\\f]",H=new RegExp("^"+tt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+tt+"+$","g");v.contains=function(c,h){var m=h&&h.parentNode;return c===m||!!(m&&m.nodeType===1&&(c.contains?c.contains(m):c.compareDocumentPosition&&c.compareDocumentPosition(m)&16))};var s=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function ht(c,h){return h?c==="\0"?"�":c.slice(0,-1)+"\\"+c.charCodeAt(c.length-1).toString(16)+" ":"\\"+c}v.escapeSelector=function(c){return(c+"").replace(s,ht)};var x=F,lt=f;(function(){var c,h,m,w,T,S=lt,P,q,j,Z,ut,pt=v.expando,at=0,Tt=0,oe=eo(),Ne=eo(),ye=eo(),En=eo(),pn=function(B,V){return B===V&&(T=!0),0},Pa="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Ma="(?:\\\\[\\da-fA-F]{1,6}"+tt+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Ce="\\["+tt+"*("+Ma+")(?:"+tt+"*([*^$|!~]?=)"+tt+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Ma+"))|)"+tt+"*\\]",xi=":("+Ma+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Ce+")*)|.*)\\)|)",Be=new RegExp(tt+"+","g"),tn=new RegExp("^"+tt+"*,"+tt+"*"),Cr=new RegExp("^"+tt+"*([>+~]|"+tt+")"+tt+"*"),es=new RegExp(tt+"|>"),Aa=new RegExp(xi),Tr=new RegExp("^"+Ma+"$"),ha={ID:new RegExp("^#("+Ma+")"),CLASS:new RegExp("^\\.("+Ma+")"),TAG:new RegExp("^("+Ma+"|[*])"),ATTR:new RegExp("^"+Ce),PSEUDO:new RegExp("^"+xi),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+tt+"*(even|odd|(([+-]|)(\\d*)n|)"+tt+"*(?:([+-]|)"+tt+"*(\\d+)|))"+tt+"*\\)|)","i"),bool:new RegExp("^(?:"+Pa+")$","i"),needsContext:new RegExp("^"+tt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+tt+"*((?:-\\d)?\\d*)"+tt+"*\\)|)(?=[^-]|$)","i")},ni=/^(?:input|select|textarea|button)$/i,ai=/^h\d$/i,pa=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,to=/[+~]/,Ha=new RegExp("\\\\[\\da-fA-F]{1,6}"+tt+"?|\\\\([^\\r\\n\\f])","g"),Fa=function(B,V){var nt="0x"+B.slice(1)-65536;return V||(nt<0?String.fromCharCode(nt+65536):String.fromCharCode(nt>>10|55296,nt&1023|56320))},pc=function(){Wa()},gc=io(function(B){return B.disabled===!0&&ft(B,"fieldset")},{dir:"parentNode",next:"legend"});function mc(){try{return P.activeElement}catch{}}try{S.apply(a=l.call(x.childNodes),x.childNodes),a[x.childNodes.length].nodeType}catch{S={apply:function(V,nt){lt.apply(V,l.call(nt))},call:function(V){lt.apply(V,l.call(arguments,1))}}}function qe(B,V,nt,rt){var gt,Bt,Kt,Yt,qt,Se,Zt,le=V&&V.ownerDocument,ge=V?V.nodeType:9;if(nt=nt||[],typeof B!="string"||!B||ge!==1&&ge!==9&&ge!==11)return nt;if(!rt&&(Wa(V),V=V||P,j)){if(ge!==11&&(qt=pa.exec(B)))if(gt=qt[1]){if(ge===9)if(Kt=V.getElementById(gt)){if(Kt.id===gt)return S.call(nt,Kt),nt}else return nt;else if(le&&(Kt=le.getElementById(gt))&&qe.contains(V,Kt)&&Kt.id===gt)return S.call(nt,Kt),nt}else{if(qt[2])return S.apply(nt,V.getElementsByTagName(B)),nt;if((gt=qt[3])&&V.getElementsByClassName)return S.apply(nt,V.getElementsByClassName(gt)),nt}if(!En[B+" "]&&(!Z||!Z.test(B))){if(Zt=B,le=V,ge===1&&(es.test(B)||Cr.test(B))){for(le=to.test(B)&&no(V.parentNode)||V,(le!=V||!L.scope)&&((Yt=V.getAttribute("id"))?Yt=v.escapeSelector(Yt):V.setAttribute("id",Yt=pt)),Se=Er(B),Bt=Se.length;Bt--;)Se[Bt]=(Yt?"#"+Yt:":scope")+" "+ao(Se[Bt]);Zt=Se.join(",")}try{return S.apply(nt,le.querySelectorAll(Zt)),nt}catch{En(B,!0)}finally{Yt===pt&&V.removeAttribute("id")}}}return rs(B.replace(H,"$1"),V,nt,rt)}function eo(){var B=[];function V(nt,rt){return B.push(nt+" ")>h.cacheLength&&delete V[B.shift()],V[nt+" "]=rt}return V}function na(B){return B[pt]=!0,B}function Na(B){var V=P.createElement("fieldset");try{return!!B(V)}catch{return!1}finally{V.parentNode&&V.parentNode.removeChild(V),V=null}}function vc(B){return function(V){return ft(V,"input")&&V.type===B}}function kl(B){return function(V){return(ft(V,"input")||ft(V,"button"))&&V.type===B}}function ns(B){return function(V){return"form"in V?V.parentNode&&V.disabled===!1?"label"in V?"label"in V.parentNode?V.parentNode.disabled===B:V.disabled===B:V.isDisabled===B||V.isDisabled!==!B&&gc(V)===B:V.disabled===B:"label"in V?V.disabled===B:!1}}function ii(B){return na(function(V){return V=+V,na(function(nt,rt){for(var gt,Bt=B([],nt.length,V),Kt=Bt.length;Kt--;)nt[gt=Bt[Kt]]&&(nt[gt]=!(rt[gt]=nt[gt]))})})}function no(B){return B&&typeof B.getElementsByTagName<"u"&&B}function Wa(B){var V,nt=B?B.ownerDocument||B:x;return nt==P||nt.nodeType!==9||!nt.documentElement||(P=nt,q=P.documentElement,j=!v.isXMLDoc(P),ut=q.matches||q.webkitMatchesSelector||q.msMatchesSelector,q.msMatchesSelector&&x!=P&&(V=P.defaultView)&&V.top!==V&&V.addEventListener("unload",pc),L.getById=Na(function(rt){return q.appendChild(rt).id=v.expando,!P.getElementsByName||!P.getElementsByName(v.expando).length}),L.disconnectedMatch=Na(function(rt){return ut.call(rt,"*")}),L.scope=Na(function(){return P.querySelectorAll(":scope")}),L.cssHas=Na(function(){try{return P.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),L.getById?(h.filter.ID=function(rt){var gt=rt.replace(Ha,Fa);return function(Bt){return Bt.getAttribute("id")===gt}},h.find.ID=function(rt,gt){if(typeof gt.getElementById<"u"&&j){var Bt=gt.getElementById(rt);return Bt?[Bt]:[]}}):(h.filter.ID=function(rt){var gt=rt.replace(Ha,Fa);return function(Bt){var Kt=typeof Bt.getAttributeNode<"u"&&Bt.getAttributeNode("id");return Kt&&Kt.value===gt}},h.find.ID=function(rt,gt){if(typeof gt.getElementById<"u"&&j){var Bt,Kt,Yt,qt=gt.getElementById(rt);if(qt){if(Bt=qt.getAttributeNode("id"),Bt&&Bt.value===rt)return[qt];for(Yt=gt.getElementsByName(rt),Kt=0;qt=Yt[Kt++];)if(Bt=qt.getAttributeNode("id"),Bt&&Bt.value===rt)return[qt]}return[]}}),h.find.TAG=function(rt,gt){return typeof gt.getElementsByTagName<"u"?gt.getElementsByTagName(rt):gt.querySelectorAll(rt)},h.find.CLASS=function(rt,gt){if(typeof gt.getElementsByClassName<"u"&&j)return gt.getElementsByClassName(rt)},Z=[],Na(function(rt){var gt;q.appendChild(rt).innerHTML="<a id='"+pt+"' href='' disabled='disabled'></a><select id='"+pt+"-\r\\' disabled='disabled'><option selected=''></option></select>",rt.querySelectorAll("[selected]").length||Z.push("\\["+tt+"*(?:value|"+Pa+")"),rt.querySelectorAll("[id~="+pt+"-]").length||Z.push("~="),rt.querySelectorAll("a#"+pt+"+*").length||Z.push(".#.+[+~]"),rt.querySelectorAll(":checked").length||Z.push(":checked"),gt=P.createElement("input"),gt.setAttribute("type","hidden"),rt.appendChild(gt).setAttribute("name","D"),q.appendChild(rt).disabled=!0,rt.querySelectorAll(":disabled").length!==2&&Z.push(":enabled",":disabled"),gt=P.createElement("input"),gt.setAttribute("name",""),rt.appendChild(gt),rt.querySelectorAll("[name='']").length||Z.push("\\["+tt+"*name"+tt+"*="+tt+`*(?:''|"")`)}),L.cssHas||Z.push(":has"),Z=Z.length&&new RegExp(Z.join("|")),pn=function(rt,gt){if(rt===gt)return T=!0,0;var Bt=!rt.compareDocumentPosition-!gt.compareDocumentPosition;return Bt||(Bt=(rt.ownerDocument||rt)==(gt.ownerDocument||gt)?rt.compareDocumentPosition(gt):1,Bt&1||!L.sortDetached&>.compareDocumentPosition(rt)===Bt?rt===P||rt.ownerDocument==x&&qe.contains(x,rt)?-1:gt===P||gt.ownerDocument==x&&qe.contains(x,gt)?1:w?p.call(w,rt)-p.call(w,gt):0:Bt&4?-1:1)}),P}qe.matches=function(B,V){return qe(B,null,null,V)},qe.matchesSelector=function(B,V){if(Wa(B),j&&!En[V+" "]&&(!Z||!Z.test(V)))try{var nt=ut.call(B,V);if(nt||L.disconnectedMatch||B.document&&B.document.nodeType!==11)return nt}catch{En(V,!0)}return qe(V,P,null,[B]).length>0},qe.contains=function(B,V){return(B.ownerDocument||B)!=P&&Wa(B),v.contains(B,V)},qe.attr=function(B,V){(B.ownerDocument||B)!=P&&Wa(B);var nt=h.attrHandle[V.toLowerCase()],rt=nt&&E.call(h.attrHandle,V.toLowerCase())?nt(B,V,!j):void 0;return rt!==void 0?rt:B.getAttribute(V)},qe.error=function(B){throw new Error("Syntax error, unrecognized expression: "+B)},v.uniqueSort=function(B){var V,nt=[],rt=0,gt=0;if(T=!L.sortStable,w=!L.sortStable&&l.call(B,0),Nt.call(B,pn),T){for(;V=B[gt++];)V===B[gt]&&(rt=nt.push(gt));for(;rt--;)At.call(B,nt[rt],1)}return w=null,B},v.fn.uniqueSort=function(){return this.pushStack(v.uniqueSort(l.apply(this)))},h=v.expr={cacheLength:50,createPseudo:na,match:ha,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(B){return B[1]=B[1].replace(Ha,Fa),B[3]=(B[3]||B[4]||B[5]||"").replace(Ha,Fa),B[2]==="~="&&(B[3]=" "+B[3]+" "),B.slice(0,4)},CHILD:function(B){return B[1]=B[1].toLowerCase(),B[1].slice(0,3)==="nth"?(B[3]||qe.error(B[0]),B[4]=+(B[4]?B[5]+(B[6]||1):2*(B[3]==="even"||B[3]==="odd")),B[5]=+(B[7]+B[8]||B[3]==="odd")):B[3]&&qe.error(B[0]),B},PSEUDO:function(B){var V,nt=!B[6]&&B[2];return ha.CHILD.test(B[0])?null:(B[3]?B[2]=B[4]||B[5]||"":nt&&Aa.test(nt)&&(V=Er(nt,!0))&&(V=nt.indexOf(")",nt.length-V)-nt.length)&&(B[0]=B[0].slice(0,V),B[2]=nt.slice(0,V)),B.slice(0,3))}},filter:{TAG:function(B){var V=B.replace(Ha,Fa).toLowerCase();return B==="*"?function(){return!0}:function(nt){return ft(nt,V)}},CLASS:function(B){var V=oe[B+" "];return V||(V=new RegExp("(^|"+tt+")"+B+"("+tt+"|$)"))&&oe(B,function(nt){return V.test(typeof nt.className=="string"&&nt.className||typeof nt.getAttribute<"u"&&nt.getAttribute("class")||"")})},ATTR:function(B,V,nt){return function(rt){var gt=qe.attr(rt,B);return gt==null?V==="!=":V?(gt+="",V==="="?gt===nt:V==="!="?gt!==nt:V==="^="?nt&>.indexOf(nt)===0:V==="*="?nt&>.indexOf(nt)>-1:V==="$="?nt&>.slice(-nt.length)===nt:V==="~="?(" "+gt.replace(Be," ")+" ").indexOf(nt)>-1:V==="|="?gt===nt||gt.slice(0,nt.length+1)===nt+"-":!1):!0}},CHILD:function(B,V,nt,rt,gt){var Bt=B.slice(0,3)!=="nth",Kt=B.slice(-4)!=="last",Yt=V==="of-type";return rt===1&>===0?function(qt){return!!qt.parentNode}:function(qt,Se,Zt){var le,ge,te,Fe,In,Pn=Bt!==Kt?"nextSibling":"previousSibling",Fn=qt.parentNode,La=Yt&&qt.nodeName.toLowerCase(),ba=!Zt&&!Yt,Mn=!1;if(Fn){if(Bt){for(;Pn;){for(te=qt;te=te[Pn];)if(Yt?ft(te,La):te.nodeType===1)return!1;In=Pn=B==="only"&&!In&&"nextSibling"}return!0}if(In=[Kt?Fn.firstChild:Fn.lastChild],Kt&&ba){for(ge=Fn[pt]||(Fn[pt]={}),le=ge[B]||[],Fe=le[0]===at&&le[1],Mn=Fe&&le[2],te=Fe&&Fn.childNodes[Fe];te=++Fe&&te&&te[Pn]||(Mn=Fe=0)||In.pop();)if(te.nodeType===1&&++Mn&&te===qt){ge[B]=[at,Fe,Mn];break}}else if(ba&&(ge=qt[pt]||(qt[pt]={}),le=ge[B]||[],Fe=le[0]===at&&le[1],Mn=Fe),Mn===!1)for(;(te=++Fe&&te&&te[Pn]||(Mn=Fe=0)||In.pop())&&!((Yt?ft(te,La):te.nodeType===1)&&++Mn&&(ba&&(ge=te[pt]||(te[pt]={}),ge[B]=[at,Mn]),te===qt)););return Mn-=gt,Mn===rt||Mn%rt===0&&Mn/rt>=0}}},PSEUDO:function(B,V){var nt,rt=h.pseudos[B]||h.setFilters[B.toLowerCase()]||qe.error("unsupported pseudo: "+B);return rt[pt]?rt(V):rt.length>1?(nt=[B,B,"",V],h.setFilters.hasOwnProperty(B.toLowerCase())?na(function(gt,Bt){for(var Kt,Yt=rt(gt,V),qt=Yt.length;qt--;)Kt=p.call(gt,Yt[qt]),gt[Kt]=!(Bt[Kt]=Yt[qt])}):function(gt){return rt(gt,0,nt)}):rt}},pseudos:{not:na(function(B){var V=[],nt=[],rt=is(B.replace(H,"$1"));return rt[pt]?na(function(gt,Bt,Kt,Yt){for(var qt,Se=rt(gt,null,Yt,[]),Zt=gt.length;Zt--;)(qt=Se[Zt])&&(gt[Zt]=!(Bt[Zt]=qt))}):function(gt,Bt,Kt){return V[0]=gt,rt(V,null,Kt,nt),V[0]=null,!nt.pop()}}),has:na(function(B){return function(V){return qe(B,V).length>0}}),contains:na(function(B){return B=B.replace(Ha,Fa),function(V){return(V.textContent||v.text(V)).indexOf(B)>-1}}),lang:na(function(B){return Tr.test(B||"")||qe.error("unsupported lang: "+B),B=B.replace(Ha,Fa).toLowerCase(),function(V){var nt;do if(nt=j?V.lang:V.getAttribute("xml:lang")||V.getAttribute("lang"))return nt=nt.toLowerCase(),nt===B||nt.indexOf(B+"-")===0;while((V=V.parentNode)&&V.nodeType===1);return!1}}),target:function(B){var V=t.location&&t.location.hash;return V&&V.slice(1)===B.id},root:function(B){return B===q},focus:function(B){return B===mc()&&P.hasFocus()&&!!(B.type||B.href||~B.tabIndex)},enabled:ns(!1),disabled:ns(!0),checked:function(B){return ft(B,"input")&&!!B.checked||ft(B,"option")&&!!B.selected},selected:function(B){return B.parentNode&&B.parentNode.selectedIndex,B.selected===!0},empty:function(B){for(B=B.firstChild;B;B=B.nextSibling)if(B.nodeType<6)return!1;return!0},parent:function(B){return!h.pseudos.empty(B)},header:function(B){return ai.test(B.nodeName)},input:function(B){return ni.test(B.nodeName)},button:function(B){return ft(B,"input")&&B.type==="button"||ft(B,"button")},text:function(B){var V;return ft(B,"input")&&B.type==="text"&&((V=B.getAttribute("type"))==null||V.toLowerCase()==="text")},first:ii(function(){return[0]}),last:ii(function(B,V){return[V-1]}),eq:ii(function(B,V,nt){return[nt<0?nt+V:nt]}),even:ii(function(B,V){for(var nt=0;nt<V;nt+=2)B.push(nt);return B}),odd:ii(function(B,V){for(var nt=1;nt<V;nt+=2)B.push(nt);return B}),lt:ii(function(B,V,nt){var rt;for(nt<0?rt=nt+V:nt>V?rt=V:rt=nt;--rt>=0;)B.push(rt);return B}),gt:ii(function(B,V,nt){for(var rt=nt<0?nt+V:nt;++rt<V;)B.push(rt);return B})}},h.pseudos.nth=h.pseudos.eq;for(c in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})h.pseudos[c]=vc(c);for(c in{submit:!0,reset:!0})h.pseudos[c]=kl(c);function Si(){}Si.prototype=h.filters=h.pseudos,h.setFilters=new Si;function Er(B,V){var nt,rt,gt,Bt,Kt,Yt,qt,Se=Ne[B+" "];if(Se)return V?0:Se.slice(0);for(Kt=B,Yt=[],qt=h.preFilter;Kt;){(!nt||(rt=tn.exec(Kt)))&&(rt&&(Kt=Kt.slice(rt[0].length)||Kt),Yt.push(gt=[])),nt=!1,(rt=Cr.exec(Kt))&&(nt=rt.shift(),gt.push({value:nt,type:rt[0].replace(H," ")}),Kt=Kt.slice(nt.length));for(Bt in h.filter)(rt=ha[Bt].exec(Kt))&&(!qt[Bt]||(rt=qt[Bt](rt)))&&(nt=rt.shift(),gt.push({value:nt,type:Bt,matches:rt}),Kt=Kt.slice(nt.length));if(!nt)break}return V?Kt.length:Kt?qe.error(B):Ne(B,Yt).slice(0)}function ao(B){for(var V=0,nt=B.length,rt="";V<nt;V++)rt+=B[V].value;return rt}function io(B,V,nt){var rt=V.dir,gt=V.next,Bt=gt||rt,Kt=nt&&Bt==="parentNode",Yt=Tt++;return V.first?function(qt,Se,Zt){for(;qt=qt[rt];)if(qt.nodeType===1||Kt)return B(qt,Se,Zt);return!1}:function(qt,Se,Zt){var le,ge,te=[at,Yt];if(Zt){for(;qt=qt[rt];)if((qt.nodeType===1||Kt)&&B(qt,Se,Zt))return!0}else for(;qt=qt[rt];)if(qt.nodeType===1||Kt)if(ge=qt[pt]||(qt[pt]={}),gt&&ft(qt,gt))qt=qt[rt]||qt;else{if((le=ge[Bt])&&le[0]===at&&le[1]===Yt)return te[2]=le[2];if(ge[Bt]=te,te[2]=B(qt,Se,Zt))return!0}return!1}}function ro(B){return B.length>1?function(V,nt,rt){for(var gt=B.length;gt--;)if(!B[gt](V,nt,rt))return!1;return!0}:B[0]}function xl(B,V,nt){for(var rt=0,gt=V.length;rt<gt;rt++)qe(B,V[rt],nt);return nt}function ri(B,V,nt,rt,gt){for(var Bt,Kt=[],Yt=0,qt=B.length,Se=V!=null;Yt<qt;Yt++)(Bt=B[Yt])&&(!nt||nt(Bt,rt,gt))&&(Kt.push(Bt),Se&&V.push(Yt));return Kt}function Ci(B,V,nt,rt,gt,Bt){return rt&&!rt[pt]&&(rt=Ci(rt)),gt&&!gt[pt]&&(gt=Ci(gt,Bt)),na(function(Kt,Yt,qt,Se){var Zt,le,ge,te,Fe=[],In=[],Pn=Yt.length,Fn=Kt||xl(V||"*",qt.nodeType?[qt]:qt,[]),La=B&&(Kt||!V)?ri(Fn,Fe,B,qt,Se):Fn;if(nt?(te=gt||(Kt?B:Pn||rt)?[]:Yt,nt(La,te,qt,Se)):te=La,rt)for(Zt=ri(te,In),rt(Zt,[],qt,Se),le=Zt.length;le--;)(ge=Zt[le])&&(te[In[le]]=!(La[In[le]]=ge));if(Kt){if(gt||B){if(gt){for(Zt=[],le=te.length;le--;)(ge=te[le])&&Zt.push(La[le]=ge);gt(null,te=[],Zt,Se)}for(le=te.length;le--;)(ge=te[le])&&(Zt=gt?p.call(Kt,ge):Fe[le])>-1&&(Kt[Zt]=!(Yt[Zt]=ge))}}else te=ri(te===Yt?te.splice(Pn,te.length):te),gt?gt(null,Yt,te,Se):S.apply(Yt,te)})}function as(B){for(var V,nt,rt,gt=B.length,Bt=h.relative[B[0].type],Kt=Bt||h.relative[" "],Yt=Bt?1:0,qt=io(function(le){return le===V},Kt,!0),Se=io(function(le){return p.call(V,le)>-1},Kt,!0),Zt=[function(le,ge,te){var Fe=!Bt&&(te||ge!=m)||((V=ge).nodeType?qt(le,ge,te):Se(le,ge,te));return V=null,Fe}];Yt<gt;Yt++)if(nt=h.relative[B[Yt].type])Zt=[io(ro(Zt),nt)];else{if(nt=h.filter[B[Yt].type].apply(null,B[Yt].matches),nt[pt]){for(rt=++Yt;rt<gt&&!h.relative[B[rt].type];rt++);return Ci(Yt>1&&ro(Zt),Yt>1&&ao(B.slice(0,Yt-1).concat({value:B[Yt-2].type===" "?"*":""})).replace(H,"$1"),nt,Yt<rt&&as(B.slice(Yt,rt)),rt<gt&&as(B=B.slice(rt)),rt<gt&&ao(B))}Zt.push(nt)}return ro(Zt)}function oo(B,V){var nt=V.length>0,rt=B.length>0,gt=function(Bt,Kt,Yt,qt,Se){var Zt,le,ge,te=0,Fe="0",In=Bt&&[],Pn=[],Fn=m,La=Bt||rt&&h.find.TAG("*",Se),ba=at+=Fn==null?1:Math.random()||.1,Mn=La.length;for(Se&&(m=Kt==P||Kt||Se);Fe!==Mn&&(Zt=La[Fe])!=null;Fe++){if(rt&&Zt){for(le=0,!Kt&&Zt.ownerDocument!=P&&(Wa(Zt),Yt=!j);ge=B[le++];)if(ge(Zt,Kt||P,Yt)){S.call(qt,Zt);break}Se&&(at=ba)}nt&&((Zt=!ge&&Zt)&&te--,Bt&&In.push(Zt))}if(te+=Fe,nt&&Fe!==te){for(le=0;ge=V[le++];)ge(In,Pn,Kt,Yt);if(Bt){if(te>0)for(;Fe--;)In[Fe]||Pn[Fe]||(Pn[Fe]=Lt.call(qt));Pn=ri(Pn)}S.apply(qt,Pn),Se&&!Bt&&Pn.length>0&&te+V.length>1&&v.uniqueSort(qt)}return Se&&(at=ba,m=Fn),In};return nt?na(gt):gt}function is(B,V){var nt,rt=[],gt=[],Bt=ye[B+" "];if(!Bt){for(V||(V=Er(B)),nt=V.length;nt--;)Bt=as(V[nt]),Bt[pt]?rt.push(Bt):gt.push(Bt);Bt=ye(B,oo(gt,rt)),Bt.selector=B}return Bt}function rs(B,V,nt,rt){var gt,Bt,Kt,Yt,qt,Se=typeof B=="function"&&B,Zt=!rt&&Er(B=Se.selector||B);if(nt=nt||[],Zt.length===1){if(Bt=Zt[0]=Zt[0].slice(0),Bt.length>2&&(Kt=Bt[0]).type==="ID"&&V.nodeType===9&&j&&h.relative[Bt[1].type]){if(V=(h.find.ID(Kt.matches[0].replace(Ha,Fa),V)||[])[0],V)Se&&(V=V.parentNode);else return nt;B=B.slice(Bt.shift().value.length)}for(gt=ha.needsContext.test(B)?0:Bt.length;gt--&&(Kt=Bt[gt],!h.relative[Yt=Kt.type]);)if((qt=h.find[Yt])&&(rt=qt(Kt.matches[0].replace(Ha,Fa),to.test(Bt[0].type)&&no(V.parentNode)||V))){if(Bt.splice(gt,1),B=rt.length&&ao(Bt),!B)return S.apply(nt,rt),nt;break}}return(Se||is(B,Zt))(rt,V,!j,nt,!V||to.test(B)&&no(V.parentNode)||V),nt}L.sortStable=pt.split("").sort(pn).join("")===pt,Wa(),L.sortDetached=Na(function(B){return B.compareDocumentPosition(P.createElement("fieldset"))&1}),v.find=qe,v.expr[":"]=v.expr.pseudos,v.unique=v.uniqueSort,qe.compile=is,qe.select=rs,qe.setDocument=Wa,qe.tokenize=Er,qe.escape=v.escapeSelector,qe.getText=v.text,qe.isXML=v.isXMLDoc,qe.selectors=v.expr,qe.support=v.support,qe.uniqueSort=v.uniqueSort})();var bt=function(c,h,m){for(var w=[],T=m!==void 0;(c=c[h])&&c.nodeType!==9;)if(c.nodeType===1){if(T&&v(c).is(m))break;w.push(c)}return w},St=function(c,h){for(var m=[];c;c=c.nextSibling)c.nodeType===1&&c!==h&&m.push(c);return m},O=v.expr.match.needsContext,wt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function xt(c,h,m){return K(h)?v.grep(c,function(w,T){return!!h.call(w,T,w)!==m}):h.nodeType?v.grep(c,function(w){return w===h!==m}):typeof h!="string"?v.grep(c,function(w){return p.call(h,w)>-1!==m}):v.filter(h,c,m)}v.filter=function(c,h,m){var w=h[0];return m&&(c=":not("+c+")"),h.length===1&&w.nodeType===1?v.find.matchesSelector(w,c)?[w]:[]:v.find.matches(c,v.grep(h,function(T){return T.nodeType===1}))},v.fn.extend({find:function(c){var h,m,w=this.length,T=this;if(typeof c!="string")return this.pushStack(v(c).filter(function(){for(h=0;h<w;h++)if(v.contains(T[h],this))return!0}));for(m=this.pushStack([]),h=0;h<w;h++)v.find(c,T[h],m);return w>1?v.uniqueSort(m):m},filter:function(c){return this.pushStack(xt(this,c||[],!1))},not:function(c){return this.pushStack(xt(this,c||[],!0))},is:function(c){return!!xt(this,typeof c=="string"&&O.test(c)?v(c):c||[],!1).length}});var Ot,Mt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ht=v.fn.init=function(c,h,m){var w,T;if(!c)return this;if(m=m||Ot,typeof c=="string")if(c[0]==="<"&&c[c.length-1]===">"&&c.length>=3?w=[null,c,null]:w=Mt.exec(c),w&&(w[1]||!h))if(w[1]){if(h=h instanceof v?h[0]:h,v.merge(this,v.parseHTML(w[1],h&&h.nodeType?h.ownerDocument||h:F,!0)),wt.test(w[1])&&v.isPlainObject(h))for(w in h)K(this[w])?this[w](h[w]):this.attr(w,h[w]);return this}else return T=F.getElementById(w[2]),T&&(this[0]=T,this.length=1),this;else return!h||h.jquery?(h||m).find(c):this.constructor(h).find(c);else{if(c.nodeType)return this[0]=c,this.length=1,this;if(K(c))return m.ready!==void 0?m.ready(c):c(v)}return v.makeArray(c,this)};Ht.prototype=v.fn,Ot=v(F);var Qt=/^(?:parents|prev(?:Until|All))/,de={children:!0,contents:!0,next:!0,prev:!0};v.fn.extend({has:function(c){var h=v(c,this),m=h.length;return this.filter(function(){for(var w=0;w<m;w++)if(v.contains(this,h[w]))return!0})},closest:function(c,h){var m,w=0,T=this.length,S=[],P=typeof c!="string"&&v(c);if(!O.test(c)){for(;w<T;w++)for(m=this[w];m&&m!==h;m=m.parentNode)if(m.nodeType<11&&(P?P.index(m)>-1:m.nodeType===1&&v.find.matchesSelector(m,c))){S.push(m);break}}return this.pushStack(S.length>1?v.uniqueSort(S):S)},index:function(c){return c?typeof c=="string"?p.call(v(c),this[0]):p.call(this,c.jquery?c[0]:c):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(c,h){return this.pushStack(v.uniqueSort(v.merge(this.get(),v(c,h))))},addBack:function(c){return this.add(c==null?this.prevObject:this.prevObject.filter(c))}});function me(c,h){for(;(c=c[h])&&c.nodeType!==1;);return c}v.each({parent:function(c){var h=c.parentNode;return h&&h.nodeType!==11?h:null},parents:function(c){return bt(c,"parentNode")},parentsUntil:function(c,h,m){return bt(c,"parentNode",m)},next:function(c){return me(c,"nextSibling")},prev:function(c){return me(c,"previousSibling")},nextAll:function(c){return bt(c,"nextSibling")},prevAll:function(c){return bt(c,"previousSibling")},nextUntil:function(c,h,m){return bt(c,"nextSibling",m)},prevUntil:function(c,h,m){return bt(c,"previousSibling",m)},siblings:function(c){return St((c.parentNode||{}).firstChild,c)},children:function(c){return St(c.firstChild)},contents:function(c){return c.contentDocument!=null&&r(c.contentDocument)?c.contentDocument:(ft(c,"template")&&(c=c.content||c),v.merge([],c.childNodes))}},function(c,h){v.fn[c]=function(m,w){var T=v.map(this,h,m);return c.slice(-5)!=="Until"&&(w=m),w&&typeof w=="string"&&(T=v.filter(w,T)),this.length>1&&(de[c]||v.uniqueSort(T),Qt.test(c)&&T.reverse()),this.pushStack(T)}});var Pe=/[^\x20\t\r\n\f]+/g;function ln(c){var h={};return v.each(c.match(Pe)||[],function(m,w){h[w]=!0}),h}v.Callbacks=function(c){c=typeof c=="string"?ln(c):v.extend({},c);var h,m,w,T,S=[],P=[],q=-1,j=function(){for(T=T||c.once,w=h=!0;P.length;q=-1)for(m=P.shift();++q<S.length;)S[q].apply(m[0],m[1])===!1&&c.stopOnFalse&&(q=S.length,m=!1);c.memory||(m=!1),h=!1,T&&(m?S=[]:S="")},Z={add:function(){return S&&(m&&!h&&(q=S.length-1,P.push(m)),(function ut(pt){v.each(pt,function(at,Tt){K(Tt)?(!c.unique||!Z.has(Tt))&&S.push(Tt):Tt&&Tt.length&&dt(Tt)!=="string"&&ut(Tt)})})(arguments),m&&!h&&j()),this},remove:function(){return v.each(arguments,function(ut,pt){for(var at;(at=v.inArray(pt,S,at))>-1;)S.splice(at,1),at<=q&&q--}),this},has:function(ut){return ut?v.inArray(ut,S)>-1:S.length>0},empty:function(){return S&&(S=[]),this},disable:function(){return T=P=[],S=m="",this},disabled:function(){return!S},lock:function(){return T=P=[],!m&&!h&&(S=m=""),this},locked:function(){return!!T},fireWith:function(ut,pt){return T||(pt=pt||[],pt=[ut,pt.slice?pt.slice():pt],P.push(pt),h||j()),this},fire:function(){return Z.fireWith(this,arguments),this},fired:function(){return!!w}};return Z};function Oe(c){return c}function rn(c){throw c}function Ve(c,h,m,w){var T;try{c&&K(T=c.promise)?T.call(c).done(h).fail(m):c&&K(T=c.then)?T.call(c,h,m):h.apply(void 0,[c].slice(w))}catch(S){m.apply(void 0,[S])}}v.extend({Deferred:function(c){var h=[["notify","progress",v.Callbacks("memory"),v.Callbacks("memory"),2],["resolve","done",v.Callbacks("once memory"),v.Callbacks("once memory"),0,"resolved"],["reject","fail",v.Callbacks("once memory"),v.Callbacks("once memory"),1,"rejected"]],m="pending",w={state:function(){return m},always:function(){return T.done(arguments).fail(arguments),this},catch:function(S){return w.then(null,S)},pipe:function(){var S=arguments;return v.Deferred(function(P){v.each(h,function(q,j){var Z=K(S[j[4]])&&S[j[4]];T[j[1]](function(){var ut=Z&&Z.apply(this,arguments);ut&&K(ut.promise)?ut.promise().progress(P.notify).done(P.resolve).fail(P.reject):P[j[0]+"With"](this,Z?[ut]:arguments)})}),S=null}).promise()},then:function(S,P,q){var j=0;function Z(ut,pt,at,Tt){return function(){var oe=this,Ne=arguments,ye=function(){var pn,Pa;if(!(ut<j)){if(pn=at.apply(oe,Ne),pn===pt.promise())throw new TypeError("Thenable self-resolution");Pa=pn&&(typeof pn=="object"||typeof pn=="function")&&pn.then,K(Pa)?Tt?Pa.call(pn,Z(j,pt,Oe,Tt),Z(j,pt,rn,Tt)):(j++,Pa.call(pn,Z(j,pt,Oe,Tt),Z(j,pt,rn,Tt),Z(j,pt,Oe,pt.notifyWith))):(at!==Oe&&(oe=void 0,Ne=[pn]),(Tt||pt.resolveWith)(oe,Ne))}},En=Tt?ye:function(){try{ye()}catch(pn){v.Deferred.exceptionHook&&v.Deferred.exceptionHook(pn,En.error),ut+1>=j&&(at!==rn&&(oe=void 0,Ne=[pn]),pt.rejectWith(oe,Ne))}};ut?En():(v.Deferred.getErrorHook?En.error=v.Deferred.getErrorHook():v.Deferred.getStackHook&&(En.error=v.Deferred.getStackHook()),t.setTimeout(En))}}return v.Deferred(function(ut){h[0][3].add(Z(0,ut,K(q)?q:Oe,ut.notifyWith)),h[1][3].add(Z(0,ut,K(S)?S:Oe)),h[2][3].add(Z(0,ut,K(P)?P:rn))}).promise()},promise:function(S){return S!=null?v.extend(S,w):w}},T={};return v.each(h,function(S,P){var q=P[2],j=P[5];w[P[1]]=q.add,j&&q.add(function(){m=j},h[3-S][2].disable,h[3-S][3].disable,h[0][2].lock,h[0][3].lock),q.add(P[3].fire),T[P[0]]=function(){return T[P[0]+"With"](this===T?void 0:this,arguments),this},T[P[0]+"With"]=q.fireWith}),w.promise(T),c&&c.call(T,T),T},when:function(c){var h=arguments.length,m=h,w=Array(m),T=l.call(arguments),S=v.Deferred(),P=function(q){return function(j){w[q]=this,T[q]=arguments.length>1?l.call(arguments):j,--h||S.resolveWith(w,T)}};if(h<=1&&(Ve(c,S.done(P(m)).resolve,S.reject,!h),S.state()==="pending"||K(T[m]&&T[m].then)))return S.then();for(;m--;)Ve(T[m],P(m),S.reject);return S.promise()}});var kn=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;v.Deferred.exceptionHook=function(c,h){t.console&&t.console.warn&&c&&kn.test(c.name)&&t.console.warn("jQuery.Deferred exception: "+c.message,c.stack,h)},v.readyException=function(c){t.setTimeout(function(){throw c})};var Ye=v.Deferred();v.fn.ready=function(c){return Ye.then(c).catch(function(h){v.readyException(h)}),this},v.extend({isReady:!1,readyWait:1,ready:function(c){(c===!0?--v.readyWait:v.isReady)||(v.isReady=!0,!(c!==!0&&--v.readyWait>0)&&Ye.resolveWith(F,[v]))}}),v.ready.then=Ye.then;function yn(){F.removeEventListener("DOMContentLoaded",yn),t.removeEventListener("load",yn),v.ready()}F.readyState==="complete"||F.readyState!=="loading"&&!F.documentElement.doScroll?t.setTimeout(v.ready):(F.addEventListener("DOMContentLoaded",yn),t.addEventListener("load",yn));var Je=function(c,h,m,w,T,S,P){var q=0,j=c.length,Z=m==null;if(dt(m)==="object"){T=!0;for(q in m)Je(c,h,q,m[q],!0,S,P)}else if(w!==void 0&&(T=!0,K(w)||(P=!0),Z&&(P?(h.call(c,w),h=null):(Z=h,h=function(ut,pt,at){return Z.call(v(ut),at)})),h))for(;q<j;q++)h(c[q],m,P?w:w.call(c[q],q,h(c[q],m)));return T?c:Z?h.call(c):j?h(c[0],m):S},un=/^-ms-/,M=/-([a-z])/g;function D(c,h){return h.toUpperCase()}function Y(c){return c.replace(un,"ms-").replace(M,D)}var it=function(c){return c.nodeType===1||c.nodeType===9||!+c.nodeType};function vt(){this.expando=v.expando+vt.uid++}vt.uid=1,vt.prototype={cache:function(c){var h=c[this.expando];return h||(h={},it(c)&&(c.nodeType?c[this.expando]=h:Object.defineProperty(c,this.expando,{value:h,configurable:!0}))),h},set:function(c,h,m){var w,T=this.cache(c);if(typeof h=="string")T[Y(h)]=m;else for(w in h)T[Y(w)]=h[w];return T},get:function(c,h){return h===void 0?this.cache(c):c[this.expando]&&c[this.expando][Y(h)]},access:function(c,h,m){return h===void 0||h&&typeof h=="string"&&m===void 0?this.get(c,h):(this.set(c,h,m),m!==void 0?m:h)},remove:function(c,h){var m,w=c[this.expando];if(w!==void 0){if(h!==void 0)for(Array.isArray(h)?h=h.map(Y):(h=Y(h),h=h in w?[h]:h.match(Pe)||[]),m=h.length;m--;)delete w[h[m]];(h===void 0||v.isEmptyObject(w))&&(c.nodeType?c[this.expando]=void 0:delete c[this.expando])}},hasData:function(c){var h=c[this.expando];return h!==void 0&&!v.isEmptyObject(h)}};var st=new vt,Xt=new vt,Me=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Re=/[A-Z]/g;function ee(c){return c==="true"?!0:c==="false"?!1:c==="null"?null:c===+c+""?+c:Me.test(c)?JSON.parse(c):c}function Xe(c,h,m){var w;if(m===void 0&&c.nodeType===1)if(w="data-"+h.replace(Re,"-$&").toLowerCase(),m=c.getAttribute(w),typeof m=="string"){try{m=ee(m)}catch{}Xt.set(c,h,m)}else m=void 0;return m}v.extend({hasData:function(c){return Xt.hasData(c)||st.hasData(c)},data:function(c,h,m){return Xt.access(c,h,m)},removeData:function(c,h){Xt.remove(c,h)},_data:function(c,h,m){return st.access(c,h,m)},_removeData:function(c,h){st.remove(c,h)}}),v.fn.extend({data:function(c,h){var m,w,T,S=this[0],P=S&&S.attributes;if(c===void 0){if(this.length&&(T=Xt.get(S),S.nodeType===1&&!st.get(S,"hasDataAttrs"))){for(m=P.length;m--;)P[m]&&(w=P[m].name,w.indexOf("data-")===0&&(w=Y(w.slice(5)),Xe(S,w,T[w])));st.set(S,"hasDataAttrs",!0)}return T}return typeof c=="object"?this.each(function(){Xt.set(this,c)}):Je(this,function(q){var j;if(S&&q===void 0)return j=Xt.get(S,c),j!==void 0||(j=Xe(S,c),j!==void 0)?j:void 0;this.each(function(){Xt.set(this,c,q)})},null,h,arguments.length>1,null,!0)},removeData:function(c){return this.each(function(){Xt.remove(this,c)})}}),v.extend({queue:function(c,h,m){var w;if(c)return h=(h||"fx")+"queue",w=st.get(c,h),m&&(!w||Array.isArray(m)?w=st.access(c,h,v.makeArray(m)):w.push(m)),w||[]},dequeue:function(c,h){h=h||"fx";var m=v.queue(c,h),w=m.length,T=m.shift(),S=v._queueHooks(c,h),P=function(){v.dequeue(c,h)};T==="inprogress"&&(T=m.shift(),w--),T&&(h==="fx"&&m.unshift("inprogress"),delete S.stop,T.call(c,P,S)),!w&&S&&S.empty.fire()},_queueHooks:function(c,h){var m=h+"queueHooks";return st.get(c,m)||st.access(c,m,{empty:v.Callbacks("once memory").add(function(){st.remove(c,[h+"queue",m])})})}}),v.fn.extend({queue:function(c,h){var m=2;return typeof c!="string"&&(h=c,c="fx",m--),arguments.length<m?v.queue(this[0],c):h===void 0?this:this.each(function(){var w=v.queue(this,c,h);v._queueHooks(this,c),c==="fx"&&w[0]!=="inprogress"&&v.dequeue(this,c)})},dequeue:function(c){return this.each(function(){v.dequeue(this,c)})},clearQueue:function(c){return this.queue(c||"fx",[])},promise:function(c,h){var m,w=1,T=v.Deferred(),S=this,P=this.length,q=function(){--w||T.resolveWith(S,[S])};for(typeof c!="string"&&(h=c,c=void 0),c=c||"fx";P--;)m=st.get(S[P],c+"queueHooks"),m&&m.empty&&(w++,m.empty.add(q));return q(),T.promise(h)}});var Qe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Kn=new RegExp("^(?:([+-])=|)("+Qe+")([a-z%]*)$","i"),Ze=["Top","Right","Bottom","Left"],xn=F.documentElement,Bn=function(c){return v.contains(c.ownerDocument,c)},qn={composed:!0};xn.getRootNode&&(Bn=function(c){return v.contains(c.ownerDocument,c)||c.getRootNode(qn)===c.ownerDocument});var Vt=function(c,h){return c=h||c,c.style.display==="none"||c.style.display===""&&Bn(c)&&v.css(c,"display")==="none"};function Nn(c,h,m,w){var T,S,P=20,q=w?function(){return w.cur()}:function(){return v.css(c,h,"")},j=q(),Z=m&&m[3]||(v.cssNumber[h]?"":"px"),ut=c.nodeType&&(v.cssNumber[h]||Z!=="px"&&+j)&&Kn.exec(v.css(c,h));if(ut&&ut[3]!==Z){for(j=j/2,Z=Z||ut[3],ut=+j||1;P--;)v.style(c,h,ut+Z),(1-S)*(1-(S=q()/j||.5))<=0&&(P=0),ut=ut/S;ut=ut*2,v.style(c,h,ut+Z),m=m||[]}return m&&(ut=+ut||+j||0,T=m[1]?ut+(m[1]+1)*m[2]:+m[2],w&&(w.unit=Z,w.start=ut,w.end=T)),T}var X={};function Ut(c){var h,m=c.ownerDocument,w=c.nodeName,T=X[w];return T||(h=m.body.appendChild(m.createElement(w)),T=v.css(h,"display"),h.parentNode.removeChild(h),T==="none"&&(T="block"),X[w]=T,T)}function ie(c,h){for(var m,w,T=[],S=0,P=c.length;S<P;S++)w=c[S],w.style&&(m=w.style.display,h?(m==="none"&&(T[S]=st.get(w,"display")||null,T[S]||(w.style.display="")),w.style.display===""&&Vt(w)&&(T[S]=Ut(w))):m!=="none"&&(T[S]="none",st.set(w,"display",m)));for(S=0;S<P;S++)T[S]!=null&&(c[S].style.display=T[S]);return c}v.fn.extend({show:function(){return ie(this,!0)},hide:function(){return ie(this)},toggle:function(c){return typeof c=="boolean"?c?this.show():this.hide():this.each(function(){Vt(this)?v(this).show():v(this).hide()})}});var $e=/^(?:checkbox|radio)$/i,Ge=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ue=/^$|^module$|\/(?:java|ecma)script/i;(function(){var c=F.createDocumentFragment(),h=c.appendChild(F.createElement("div")),m=F.createElement("input");m.setAttribute("type","radio"),m.setAttribute("checked","checked"),m.setAttribute("name","t"),h.appendChild(m),L.checkClone=h.cloneNode(!0).cloneNode(!0).lastChild.checked,h.innerHTML="<textarea>x</textarea>",L.noCloneChecked=!!h.cloneNode(!0).lastChild.defaultValue,h.innerHTML="<option></option>",L.option=!!h.lastChild})();var ke={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ke.tbody=ke.tfoot=ke.colgroup=ke.caption=ke.thead,ke.th=ke.td,L.option||(ke.optgroup=ke.option=[1,"<select multiple='multiple'>","</select>"]);function Pt(c,h){var m;return typeof c.getElementsByTagName<"u"?m=c.getElementsByTagName(h||"*"):typeof c.querySelectorAll<"u"?m=c.querySelectorAll(h||"*"):m=[],h===void 0||h&&ft(c,h)?v.merge([c],m):m}function ne(c,h){for(var m=0,w=c.length;m<w;m++)st.set(c[m],"globalEval",!h||st.get(h[m],"globalEval"))}var xe=/<|&#?\w+;/;function ve(c,h,m,w,T){for(var S,P,q,j,Z,ut,pt=h.createDocumentFragment(),at=[],Tt=0,oe=c.length;Tt<oe;Tt++)if(S=c[Tt],S||S===0)if(dt(S)==="object")v.merge(at,S.nodeType?[S]:S);else if(!xe.test(S))at.push(h.createTextNode(S));else{for(P=P||pt.appendChild(h.createElement("div")),q=(Ge.exec(S)||["",""])[1].toLowerCase(),j=ke[q]||ke._default,P.innerHTML=j[1]+v.htmlPrefilter(S)+j[2],ut=j[0];ut--;)P=P.lastChild;v.merge(at,P.childNodes),P=pt.firstChild,P.textContent=""}for(pt.textContent="",Tt=0;S=at[Tt++];){if(w&&v.inArray(S,w)>-1){T&&T.push(S);continue}if(Z=Bn(S),P=Pt(pt.appendChild(S),"script"),Z&&ne(P),m)for(ut=0;S=P[ut++];)Ue.test(S.type||"")&&m.push(S)}return pt}var zt=/^([^.]*)(?:\.(.+)|)/;function Ft(){return!0}function re(){return!1}function Le(c,h,m,w,T,S){var P,q;if(typeof h=="object"){typeof m!="string"&&(w=w||m,m=void 0);for(q in h)Le(c,q,m,w,h[q],S);return c}if(w==null&&T==null?(T=m,w=m=void 0):T==null&&(typeof m=="string"?(T=w,w=void 0):(T=w,w=m,m=void 0)),T===!1)T=re;else if(!T)return c;return S===1&&(P=T,T=function(j){return v().off(j),P.apply(this,arguments)},T.guid=P.guid||(P.guid=v.guid++)),c.each(function(){v.event.add(this,h,T,w,m)})}v.event={global:{},add:function(c,h,m,w,T){var S,P,q,j,Z,ut,pt,at,Tt,oe,Ne,ye=st.get(c);if(it(c))for(m.handler&&(S=m,m=S.handler,T=S.selector),T&&v.find.matchesSelector(xn,T),m.guid||(m.guid=v.guid++),(j=ye.events)||(j=ye.events=Object.create(null)),(P=ye.handle)||(P=ye.handle=function(En){return typeof v<"u"&&v.event.triggered!==En.type?v.event.dispatch.apply(c,arguments):void 0}),h=(h||"").match(Pe)||[""],Z=h.length;Z--;)q=zt.exec(h[Z])||[],Tt=Ne=q[1],oe=(q[2]||"").split(".").sort(),Tt&&(pt=v.event.special[Tt]||{},Tt=(T?pt.delegateType:pt.bindType)||Tt,pt=v.event.special[Tt]||{},ut=v.extend({type:Tt,origType:Ne,data:w,handler:m,guid:m.guid,selector:T,needsContext:T&&v.expr.match.needsContext.test(T),namespace:oe.join(".")},S),(at=j[Tt])||(at=j[Tt]=[],at.delegateCount=0,(!pt.setup||pt.setup.call(c,w,oe,P)===!1)&&c.addEventListener&&c.addEventListener(Tt,P)),pt.add&&(pt.add.call(c,ut),ut.handler.guid||(ut.handler.guid=m.guid)),T?at.splice(at.delegateCount++,0,ut):at.push(ut),v.event.global[Tt]=!0)},remove:function(c,h,m,w,T){var S,P,q,j,Z,ut,pt,at,Tt,oe,Ne,ye=st.hasData(c)&&st.get(c);if(!(!ye||!(j=ye.events))){for(h=(h||"").match(Pe)||[""],Z=h.length;Z--;){if(q=zt.exec(h[Z])||[],Tt=Ne=q[1],oe=(q[2]||"").split(".").sort(),!Tt){for(Tt in j)v.event.remove(c,Tt+h[Z],m,w,!0);continue}for(pt=v.event.special[Tt]||{},Tt=(w?pt.delegateType:pt.bindType)||Tt,at=j[Tt]||[],q=q[2]&&new RegExp("(^|\\.)"+oe.join("\\.(?:.*\\.|)")+"(\\.|$)"),P=S=at.length;S--;)ut=at[S],(T||Ne===ut.origType)&&(!m||m.guid===ut.guid)&&(!q||q.test(ut.namespace))&&(!w||w===ut.selector||w==="**"&&ut.selector)&&(at.splice(S,1),ut.selector&&at.delegateCount--,pt.remove&&pt.remove.call(c,ut));P&&!at.length&&((!pt.teardown||pt.teardown.call(c,oe,ye.handle)===!1)&&v.removeEvent(c,Tt,ye.handle),delete j[Tt])}v.isEmptyObject(j)&&st.remove(c,"handle events")}},dispatch:function(c){var h,m,w,T,S,P,q=new Array(arguments.length),j=v.event.fix(c),Z=(st.get(this,"events")||Object.create(null))[j.type]||[],ut=v.event.special[j.type]||{};for(q[0]=j,h=1;h<arguments.length;h++)q[h]=arguments[h];if(j.delegateTarget=this,!(ut.preDispatch&&ut.preDispatch.call(this,j)===!1)){for(P=v.event.handlers.call(this,j,Z),h=0;(T=P[h++])&&!j.isPropagationStopped();)for(j.currentTarget=T.elem,m=0;(S=T.handlers[m++])&&!j.isImmediatePropagationStopped();)(!j.rnamespace||S.namespace===!1||j.rnamespace.test(S.namespace))&&(j.handleObj=S,j.data=S.data,w=((v.event.special[S.origType]||{}).handle||S.handler).apply(T.elem,q),w!==void 0&&(j.result=w)===!1&&(j.preventDefault(),j.stopPropagation()));return ut.postDispatch&&ut.postDispatch.call(this,j),j.result}},handlers:function(c,h){var m,w,T,S,P,q=[],j=h.delegateCount,Z=c.target;if(j&&Z.nodeType&&!(c.type==="click"&&c.button>=1)){for(;Z!==this;Z=Z.parentNode||this)if(Z.nodeType===1&&!(c.type==="click"&&Z.disabled===!0)){for(S=[],P={},m=0;m<j;m++)w=h[m],T=w.selector+" ",P[T]===void 0&&(P[T]=w.needsContext?v(T,this).index(Z)>-1:v.find(T,this,null,[Z]).length),P[T]&&S.push(w);S.length&&q.push({elem:Z,handlers:S})}}return Z=this,j<h.length&&q.push({elem:Z,handlers:h.slice(j)}),q},addProp:function(c,h){Object.defineProperty(v.Event.prototype,c,{enumerable:!0,configurable:!0,get:K(h)?function(){if(this.originalEvent)return h(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[c]},set:function(m){Object.defineProperty(this,c,{enumerable:!0,configurable:!0,writable:!0,value:m})}})},fix:function(c){return c[v.expando]?c:new v.Event(c)},special:{load:{noBubble:!0},click:{setup:function(c){var h=this||c;return $e.test(h.type)&&h.click&&ft(h,"input")&&Ae(h,"click",!0),!1},trigger:function(c){var h=this||c;return $e.test(h.type)&&h.click&&ft(h,"input")&&Ae(h,"click"),!0},_default:function(c){var h=c.target;return $e.test(h.type)&&h.click&&ft(h,"input")&&st.get(h,"click")||ft(h,"a")}},beforeunload:{postDispatch:function(c){c.result!==void 0&&c.originalEvent&&(c.originalEvent.returnValue=c.result)}}}};function Ae(c,h,m){if(!m){st.get(c,h)===void 0&&v.event.add(c,h,Ft);return}st.set(c,h,!1),v.event.add(c,h,{namespace:!1,handler:function(w){var T,S=st.get(this,h);if(w.isTrigger&1&&this[h]){if(S)(v.event.special[h]||{}).delegateType&&w.stopPropagation();else if(S=l.call(arguments),st.set(this,h,S),this[h](),T=st.get(this,h),st.set(this,h,!1),S!==T)return w.stopImmediatePropagation(),w.preventDefault(),T}else S&&(st.set(this,h,v.event.trigger(S[0],S.slice(1),this)),w.stopPropagation(),w.isImmediatePropagationStopped=Ft)}})}v.removeEvent=function(c,h,m){c.removeEventListener&&c.removeEventListener(h,m)},v.Event=function(c,h){if(!(this instanceof v.Event))return new v.Event(c,h);c&&c.type?(this.originalEvent=c,this.type=c.type,this.isDefaultPrevented=c.defaultPrevented||c.defaultPrevented===void 0&&c.returnValue===!1?Ft:re,this.target=c.target&&c.target.nodeType===3?c.target.parentNode:c.target,this.currentTarget=c.currentTarget,this.relatedTarget=c.relatedTarget):this.type=c,h&&v.extend(this,h),this.timeStamp=c&&c.timeStamp||Date.now(),this[v.expando]=!0},v.Event.prototype={constructor:v.Event,isDefaultPrevented:re,isPropagationStopped:re,isImmediatePropagationStopped:re,isSimulated:!1,preventDefault:function(){var c=this.originalEvent;this.isDefaultPrevented=Ft,c&&!this.isSimulated&&c.preventDefault()},stopPropagation:function(){var c=this.originalEvent;this.isPropagationStopped=Ft,c&&!this.isSimulated&&c.stopPropagation()},stopImmediatePropagation:function(){var c=this.originalEvent;this.isImmediatePropagationStopped=Ft,c&&!this.isSimulated&&c.stopImmediatePropagation(),this.stopPropagation()}},v.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},v.event.addProp),v.each({focus:"focusin",blur:"focusout"},function(c,h){function m(w){if(F.documentMode){var T=st.get(this,"handle"),S=v.event.fix(w);S.type=w.type==="focusin"?"focus":"blur",S.isSimulated=!0,T(w),S.target===S.currentTarget&&T(S)}else v.event.simulate(h,w.target,v.event.fix(w))}v.event.special[c]={setup:function(){var w;if(Ae(this,c,!0),F.documentMode)w=st.get(this,h),w||this.addEventListener(h,m),st.set(this,h,(w||0)+1);else return!1},trigger:function(){return Ae(this,c),!0},teardown:function(){var w;if(F.documentMode)w=st.get(this,h)-1,w?st.set(this,h,w):(this.removeEventListener(h,m),st.remove(this,h));else return!1},_default:function(w){return st.get(w.target,c)},delegateType:h},v.event.special[h]={setup:function(){var w=this.ownerDocument||this.document||this,T=F.documentMode?this:w,S=st.get(T,h);S||(F.documentMode?this.addEventListener(h,m):w.addEventListener(c,m,!0)),st.set(T,h,(S||0)+1)},teardown:function(){var w=this.ownerDocument||this.document||this,T=F.documentMode?this:w,S=st.get(T,h)-1;S?st.set(T,h,S):(F.documentMode?this.removeEventListener(h,m):w.removeEventListener(c,m,!0),st.remove(T,h))}}}),v.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(c,h){v.event.special[c]={delegateType:h,bindType:h,handle:function(m){var w,T=this,S=m.relatedTarget,P=m.handleObj;return(!S||S!==T&&!v.contains(T,S))&&(m.type=P.origType,w=P.handler.apply(this,arguments),m.type=h),w}}}),v.fn.extend({on:function(c,h,m,w){return Le(this,c,h,m,w)},one:function(c,h,m,w){return Le(this,c,h,m,w,1)},off:function(c,h,m){var w,T;if(c&&c.preventDefault&&c.handleObj)return w=c.handleObj,v(c.delegateTarget).off(w.namespace?w.origType+"."+w.namespace:w.origType,w.selector,w.handler),this;if(typeof c=="object"){for(T in c)this.off(T,h,c[T]);return this}return(h===!1||typeof h=="function")&&(m=h,h=void 0),m===!1&&(m=re),this.each(function(){v.event.remove(this,c,m,h)})}});var cn=/<script|<style|<link/i,je=/checked\s*(?:[^=]|=\s*.checked.)/i,$n=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Jn(c,h){return ft(c,"table")&&ft(h.nodeType!==11?h:h.firstChild,"tr")&&v(c).children("tbody")[0]||c}function la(c){return c.type=(c.getAttribute("type")!==null)+"/"+c.type,c}function ua(c){return(c.type||"").slice(0,5)==="true/"?c.type=c.type.slice(5):c.removeAttribute("type"),c}function Qn(c,h){var m,w,T,S,P,q,j;if(h.nodeType===1){if(st.hasData(c)&&(S=st.get(c),j=S.events,j)){st.remove(h,"handle events");for(T in j)for(m=0,w=j[T].length;m<w;m++)v.event.add(h,T,j[T][m])}Xt.hasData(c)&&(P=Xt.access(c),q=v.extend({},P),Xt.set(h,q))}}function ur(c,h){var m=h.nodeName.toLowerCase();m==="input"&&$e.test(c.type)?h.checked=c.checked:(m==="input"||m==="textarea")&&(h.defaultValue=c.defaultValue)}function Sn(c,h,m,w){h=d(h);var T,S,P,q,j,Z,ut=0,pt=c.length,at=pt-1,Tt=h[0],oe=K(Tt);if(oe||pt>1&&typeof Tt=="string"&&!L.checkClone&&je.test(Tt))return c.each(function(Ne){var ye=c.eq(Ne);oe&&(h[0]=Tt.call(this,Ne,ye.html())),Sn(ye,h,m,w)});if(pt&&(T=ve(h,c[0].ownerDocument,!1,c,w),S=T.firstChild,T.childNodes.length===1&&(T=S),S||w)){for(P=v.map(Pt(T,"script"),la),q=P.length;ut<pt;ut++)j=T,ut!==at&&(j=v.clone(j,!0,!0),q&&v.merge(P,Pt(j,"script"))),m.call(c[ut],j,ut);if(q)for(Z=P[P.length-1].ownerDocument,v.map(P,ua),ut=0;ut<q;ut++)j=P[ut],Ue.test(j.type||"")&&!st.access(j,"globalEval")&&v.contains(Z,j)&&(j.src&&(j.type||"").toLowerCase()!=="module"?v._evalUrl&&!j.noModule&&v._evalUrl(j.src,{nonce:j.nonce||j.getAttribute("nonce")},Z):ot(j.textContent.replace($n,""),j,Z))}return c}function dn(c,h,m){for(var w,T=h?v.filter(h,c):c,S=0;(w=T[S])!=null;S++)!m&&w.nodeType===1&&v.cleanData(Pt(w)),w.parentNode&&(m&&Bn(w)&&ne(Pt(w,"script")),w.parentNode.removeChild(w));return c}v.extend({htmlPrefilter:function(c){return c},clone:function(c,h,m){var w,T,S,P,q=c.cloneNode(!0),j=Bn(c);if(!L.noCloneChecked&&(c.nodeType===1||c.nodeType===11)&&!v.isXMLDoc(c))for(P=Pt(q),S=Pt(c),w=0,T=S.length;w<T;w++)ur(S[w],P[w]);if(h)if(m)for(S=S||Pt(c),P=P||Pt(q),w=0,T=S.length;w<T;w++)Qn(S[w],P[w]);else Qn(c,q);return P=Pt(q,"script"),P.length>0&&ne(P,!j&&Pt(c,"script")),q},cleanData:function(c){for(var h,m,w,T=v.event.special,S=0;(m=c[S])!==void 0;S++)if(it(m)){if(h=m[st.expando]){if(h.events)for(w in h.events)T[w]?v.event.remove(m,w):v.removeEvent(m,w,h.handle);m[st.expando]=void 0}m[Xt.expando]&&(m[Xt.expando]=void 0)}}}),v.fn.extend({detach:function(c){return dn(this,c,!0)},remove:function(c){return dn(this,c)},text:function(c){return Je(this,function(h){return h===void 0?v.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=h)})},null,c,arguments.length)},append:function(){return Sn(this,arguments,function(c){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var h=Jn(this,c);h.appendChild(c)}})},prepend:function(){return Sn(this,arguments,function(c){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var h=Jn(this,c);h.insertBefore(c,h.firstChild)}})},before:function(){return Sn(this,arguments,function(c){this.parentNode&&this.parentNode.insertBefore(c,this)})},after:function(){return Sn(this,arguments,function(c){this.parentNode&&this.parentNode.insertBefore(c,this.nextSibling)})},empty:function(){for(var c,h=0;(c=this[h])!=null;h++)c.nodeType===1&&(v.cleanData(Pt(c,!1)),c.textContent="");return this},clone:function(c,h){return c=c??!1,h=h??c,this.map(function(){return v.clone(this,c,h)})},html:function(c){return Je(this,function(h){var m=this[0]||{},w=0,T=this.length;if(h===void 0&&m.nodeType===1)return m.innerHTML;if(typeof h=="string"&&!cn.test(h)&&!ke[(Ge.exec(h)||["",""])[1].toLowerCase()]){h=v.htmlPrefilter(h);try{for(;w<T;w++)m=this[w]||{},m.nodeType===1&&(v.cleanData(Pt(m,!1)),m.innerHTML=h);m=0}catch{}}m&&this.empty().append(h)},null,c,arguments.length)},replaceWith:function(){var c=[];return Sn(this,arguments,function(h){var m=this.parentNode;v.inArray(this,c)<0&&(v.cleanData(Pt(this)),m&&m.replaceChild(h,this))},c)}}),v.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(c,h){v.fn[c]=function(m){for(var w,T=[],S=v(m),P=S.length-1,q=0;q<=P;q++)w=q===P?this:this.clone(!0),v(S[q])[h](w),f.apply(T,w.get());return this.pushStack(T)}});var fn=new RegExp("^("+Qe+")(?!px)[a-z%]+$","i"),ca=/^--/,zn=function(c){var h=c.ownerDocument.defaultView;return(!h||!h.opener)&&(h=t),h.getComputedStyle(c)},wi=function(c,h,m){var w,T,S={};for(T in h)S[T]=c.style[T],c.style[T]=h[T];w=m.call(c);for(T in h)c.style[T]=S[T];return w},qa=new RegExp(Ze.join("|"),"i");(function(){function c(){if(Z){j.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Z.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",xn.appendChild(j).appendChild(Z);var ut=t.getComputedStyle(Z);m=ut.top!=="1%",q=h(ut.marginLeft)===12,Z.style.right="60%",S=h(ut.right)===36,w=h(ut.width)===36,Z.style.position="absolute",T=h(Z.offsetWidth/3)===12,xn.removeChild(j),Z=null}}function h(ut){return Math.round(parseFloat(ut))}var m,w,T,S,P,q,j=F.createElement("div"),Z=F.createElement("div");Z.style&&(Z.style.backgroundClip="content-box",Z.cloneNode(!0).style.backgroundClip="",L.clearCloneStyle=Z.style.backgroundClip==="content-box",v.extend(L,{boxSizingReliable:function(){return c(),w},pixelBoxStyles:function(){return c(),S},pixelPosition:function(){return c(),m},reliableMarginLeft:function(){return c(),q},scrollboxSize:function(){return c(),T},reliableTrDimensions:function(){var ut,pt,at,Tt;return P==null&&(ut=F.createElement("table"),pt=F.createElement("tr"),at=F.createElement("div"),ut.style.cssText="position:absolute;left:-11111px;border-collapse:separate",pt.style.cssText="box-sizing:content-box;border:1px solid",pt.style.height="1px",at.style.height="9px",at.style.display="block",xn.appendChild(ut).appendChild(pt).appendChild(at),Tt=t.getComputedStyle(pt),P=parseInt(Tt.height,10)+parseInt(Tt.borderTopWidth,10)+parseInt(Tt.borderBottomWidth,10)===pt.offsetHeight,xn.removeChild(ut)),P}}))})();function Tn(c,h,m){var w,T,S,P,q=ca.test(h),j=c.style;return m=m||zn(c),m&&(P=m.getPropertyValue(h)||m[h],q&&P&&(P=P.replace(H,"$1")||void 0),P===""&&!Bn(c)&&(P=v.style(c,h)),!L.pixelBoxStyles()&&fn.test(P)&&qa.test(h)&&(w=j.width,T=j.minWidth,S=j.maxWidth,j.minWidth=j.maxWidth=j.width=P,P=m.width,j.width=w,j.minWidth=T,j.maxWidth=S)),P!==void 0?P+"":P}function cr(c,h){return{get:function(){if(c()){delete this.get;return}return(this.get=h).apply(this,arguments)}}}var dr=["Webkit","Moz","ms"],_r=F.createElement("div").style,Vr={};function Ri(c){for(var h=c[0].toUpperCase()+c.slice(1),m=dr.length;m--;)if(c=dr[m]+h,c in _r)return c}function ta(c){var h=v.cssProps[c]||Vr[c];return h||(c in _r?c:Vr[c]=Ri(c)||c)}var Ca=/^(none|table(?!-c[ea]).+)/,fr={position:"absolute",visibility:"hidden",display:"block"},_o={letterSpacing:"0",fontWeight:"400"};function Gr(c,h,m){var w=Kn.exec(h);return w?Math.max(0,w[2]-(m||0))+(w[3]||"px"):h}function da(c,h,m,w,T,S){var P=h==="width"?1:0,q=0,j=0,Z=0;if(m===(w?"border":"content"))return 0;for(;P<4;P+=2)m==="margin"&&(Z+=v.css(c,m+Ze[P],!0,T)),w?(m==="content"&&(j-=v.css(c,"padding"+Ze[P],!0,T)),m!=="margin"&&(j-=v.css(c,"border"+Ze[P]+"Width",!0,T))):(j+=v.css(c,"padding"+Ze[P],!0,T),m!=="padding"?j+=v.css(c,"border"+Ze[P]+"Width",!0,T):q+=v.css(c,"border"+Ze[P]+"Width",!0,T));return!w&&S>=0&&(j+=Math.max(0,Math.ceil(c["offset"+h[0].toUpperCase()+h.slice(1)]-S-j-q-.5))||0),j+Z}function $a(c,h,m){var w=zn(c),T=!L.boxSizingReliable()||m,S=T&&v.css(c,"boxSizing",!1,w)==="border-box",P=S,q=Tn(c,h,w),j="offset"+h[0].toUpperCase()+h.slice(1);if(fn.test(q)){if(!m)return q;q="auto"}return(!L.boxSizingReliable()&&S||!L.reliableTrDimensions()&&ft(c,"tr")||q==="auto"||!parseFloat(q)&&v.css(c,"display",!1,w)==="inline")&&c.getClientRects().length&&(S=v.css(c,"boxSizing",!1,w)==="border-box",P=j in c,P&&(q=c[j])),q=parseFloat(q)||0,q+da(c,h,m||(S?"border":"content"),P,w,q)+"px"}v.extend({cssHooks:{opacity:{get:function(c,h){if(h){var m=Tn(c,"opacity");return m===""?"1":m}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(c,h,m,w){if(!(!c||c.nodeType===3||c.nodeType===8||!c.style)){var T,S,P,q=Y(h),j=ca.test(h),Z=c.style;if(j||(h=ta(q)),P=v.cssHooks[h]||v.cssHooks[q],m!==void 0){if(S=typeof m,S==="string"&&(T=Kn.exec(m))&&T[1]&&(m=Nn(c,h,T),S="number"),m==null||m!==m)return;S==="number"&&!j&&(m+=T&&T[3]||(v.cssNumber[q]?"":"px")),!L.clearCloneStyle&&m===""&&h.indexOf("background")===0&&(Z[h]="inherit"),(!P||!("set"in P)||(m=P.set(c,m,w))!==void 0)&&(j?Z.setProperty(h,m):Z[h]=m)}else return P&&"get"in P&&(T=P.get(c,!1,w))!==void 0?T:Z[h]}},css:function(c,h,m,w){var T,S,P,q=Y(h),j=ca.test(h);return j||(h=ta(q)),P=v.cssHooks[h]||v.cssHooks[q],P&&"get"in P&&(T=P.get(c,!0,m)),T===void 0&&(T=Tn(c,h,w)),T==="normal"&&h in _o&&(T=_o[h]),m===""||m?(S=parseFloat(T),m===!0||isFinite(S)?S||0:T):T}}),v.each(["height","width"],function(c,h){v.cssHooks[h]={get:function(m,w,T){if(w)return Ca.test(v.css(m,"display"))&&(!m.getClientRects().length||!m.getBoundingClientRect().width)?wi(m,fr,function(){return $a(m,h,T)}):$a(m,h,T)},set:function(m,w,T){var S,P=zn(m),q=!L.scrollboxSize()&&P.position==="absolute",j=q||T,Z=j&&v.css(m,"boxSizing",!1,P)==="border-box",ut=T?da(m,h,T,Z,P):0;return Z&&q&&(ut-=Math.ceil(m["offset"+h[0].toUpperCase()+h.slice(1)]-parseFloat(P[h])-da(m,h,"border",!1,P)-.5)),ut&&(S=Kn.exec(w))&&(S[3]||"px")!=="px"&&(m.style[h]=w,w=v.css(m,h)),Gr(m,w,ut)}}}),v.cssHooks.marginLeft=cr(L.reliableMarginLeft,function(c,h){if(h)return(parseFloat(Tn(c,"marginLeft"))||c.getBoundingClientRect().left-wi(c,{marginLeft:0},function(){return c.getBoundingClientRect().left}))+"px"}),v.each({margin:"",padding:"",border:"Width"},function(c,h){v.cssHooks[c+h]={expand:function(m){for(var w=0,T={},S=typeof m=="string"?m.split(" "):[m];w<4;w++)T[c+Ze[w]+h]=S[w]||S[w-2]||S[0];return T}},c!=="margin"&&(v.cssHooks[c+h].set=Gr)}),v.fn.extend({css:function(c,h){return Je(this,function(m,w,T){var S,P,q={},j=0;if(Array.isArray(w)){for(S=zn(m),P=w.length;j<P;j++)q[w[j]]=v.css(m,w[j],!1,S);return q}return T!==void 0?v.style(m,w,T):v.css(m,w)},c,h,arguments.length>1)}});function hn(c,h,m,w,T){return new hn.prototype.init(c,h,m,w,T)}v.Tween=hn,hn.prototype={constructor:hn,init:function(c,h,m,w,T,S){this.elem=c,this.prop=m,this.easing=T||v.easing._default,this.options=h,this.start=this.now=this.cur(),this.end=w,this.unit=S||(v.cssNumber[m]?"":"px")},cur:function(){var c=hn.propHooks[this.prop];return c&&c.get?c.get(this):hn.propHooks._default.get(this)},run:function(c){var h,m=hn.propHooks[this.prop];return this.options.duration?this.pos=h=v.easing[this.easing](c,this.options.duration*c,0,1,this.options.duration):this.pos=h=c,this.now=(this.end-this.start)*h+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),m&&m.set?m.set(this):hn.propHooks._default.set(this),this}},hn.prototype.init.prototype=hn.prototype,hn.propHooks={_default:{get:function(c){var h;return c.elem.nodeType!==1||c.elem[c.prop]!=null&&c.elem.style[c.prop]==null?c.elem[c.prop]:(h=v.css(c.elem,c.prop,""),!h||h==="auto"?0:h)},set:function(c){v.fx.step[c.prop]?v.fx.step[c.prop](c):c.elem.nodeType===1&&(v.cssHooks[c.prop]||c.elem.style[ta(c.prop)]!=null)?v.style(c.elem,c.prop,c.now+c.unit):c.elem[c.prop]=c.now}}},hn.propHooks.scrollTop=hn.propHooks.scrollLeft={set:function(c){c.elem.nodeType&&c.elem.parentNode&&(c.elem[c.prop]=c.now)}},v.easing={linear:function(c){return c},swing:function(c){return .5-Math.cos(c*Math.PI)/2},_default:"swing"},v.fx=hn.prototype.init,v.fx.step={};var ea,Qa,hr=/^(?:toggle|show|hide)$/,pr=/queueHooks$/;function Ur(){Qa&&(F.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(Ur):t.setTimeout(Ur,v.fx.interval),v.fx.tick())}function Yr(){return t.setTimeout(function(){ea=void 0}),ea=Date.now()}function gr(c,h){var m,w=0,T={height:c};for(h=h?1:0;w<4;w+=2-h)m=Ze[w],T["margin"+m]=T["padding"+m]=c;return h&&(T.opacity=T.width=c),T}function ji(c,h,m){for(var w,T=(Hn.tweeners[h]||[]).concat(Hn.tweeners["*"]),S=0,P=T.length;S<P;S++)if(w=T[S].call(m,h,c))return w}function sc(c,h,m){var w,T,S,P,q,j,Z,ut,pt="width"in h||"height"in h,at=this,Tt={},oe=c.style,Ne=c.nodeType&&Vt(c),ye=st.get(c,"fxshow");m.queue||(P=v._queueHooks(c,"fx"),P.unqueued==null&&(P.unqueued=0,q=P.empty.fire,P.empty.fire=function(){P.unqueued||q()}),P.unqueued++,at.always(function(){at.always(function(){P.unqueued--,v.queue(c,"fx").length||P.empty.fire()})}));for(w in h)if(T=h[w],hr.test(T)){if(delete h[w],S=S||T==="toggle",T===(Ne?"hide":"show"))if(T==="show"&&ye&&ye[w]!==void 0)Ne=!0;else continue;Tt[w]=ye&&ye[w]||v.style(c,w)}if(j=!v.isEmptyObject(h),!(!j&&v.isEmptyObject(Tt))){pt&&c.nodeType===1&&(m.overflow=[oe.overflow,oe.overflowX,oe.overflowY],Z=ye&&ye.display,Z==null&&(Z=st.get(c,"display")),ut=v.css(c,"display"),ut==="none"&&(Z?ut=Z:(ie([c],!0),Z=c.style.display||Z,ut=v.css(c,"display"),ie([c]))),(ut==="inline"||ut==="inline-block"&&Z!=null)&&v.css(c,"float")==="none"&&(j||(at.done(function(){oe.display=Z}),Z==null&&(ut=oe.display,Z=ut==="none"?"":ut)),oe.display="inline-block")),m.overflow&&(oe.overflow="hidden",at.always(function(){oe.overflow=m.overflow[0],oe.overflowX=m.overflow[1],oe.overflowY=m.overflow[2]})),j=!1;for(w in Tt)j||(ye?"hidden"in ye&&(Ne=ye.hidden):ye=st.access(c,"fxshow",{display:Z}),S&&(ye.hidden=!Ne),Ne&&ie([c],!0),at.done(function(){Ne||ie([c]),st.remove(c,"fxshow");for(w in Tt)v.style(c,w,Tt[w])})),j=ji(Ne?ye[w]:0,w,at),w in ye||(ye[w]=j.start,Ne&&(j.end=j.start,j.start=0))}}function lc(c,h){var m,w,T,S,P;for(m in c)if(w=Y(m),T=h[w],S=c[m],Array.isArray(S)&&(T=S[1],S=c[m]=S[0]),m!==w&&(c[w]=S,delete c[m]),P=v.cssHooks[w],P&&"expand"in P){S=P.expand(S),delete c[w];for(m in S)m in c||(c[m]=S[m],h[m]=T)}else h[w]=T}function Hn(c,h,m){var w,T,S=0,P=Hn.prefilters.length,q=v.Deferred().always(function(){delete j.elem}),j=function(){if(T)return!1;for(var pt=ea||Yr(),at=Math.max(0,Z.startTime+Z.duration-pt),Tt=at/Z.duration||0,oe=1-Tt,Ne=0,ye=Z.tweens.length;Ne<ye;Ne++)Z.tweens[Ne].run(oe);return q.notifyWith(c,[Z,oe,at]),oe<1&&ye?at:(ye||q.notifyWith(c,[Z,1,0]),q.resolveWith(c,[Z]),!1)},Z=q.promise({elem:c,props:v.extend({},h),opts:v.extend(!0,{specialEasing:{},easing:v.easing._default},m),originalProperties:h,originalOptions:m,startTime:ea||Yr(),duration:m.duration,tweens:[],createTween:function(pt,at){var Tt=v.Tween(c,Z.opts,pt,at,Z.opts.specialEasing[pt]||Z.opts.easing);return Z.tweens.push(Tt),Tt},stop:function(pt){var at=0,Tt=pt?Z.tweens.length:0;if(T)return this;for(T=!0;at<Tt;at++)Z.tweens[at].run(1);return pt?(q.notifyWith(c,[Z,1,0]),q.resolveWith(c,[Z,pt])):q.rejectWith(c,[Z,pt]),this}}),ut=Z.props;for(lc(ut,Z.opts.specialEasing);S<P;S++)if(w=Hn.prefilters[S].call(Z,c,ut,Z.opts),w)return K(w.stop)&&(v._queueHooks(Z.elem,Z.opts.queue).stop=w.stop.bind(w)),w;return v.map(ut,ji,Z),K(Z.opts.start)&&Z.opts.start.call(c,Z),Z.progress(Z.opts.progress).done(Z.opts.done,Z.opts.complete).fail(Z.opts.fail).always(Z.opts.always),v.fx.timer(v.extend(j,{elem:c,anim:Z,queue:Z.opts.queue})),Z}v.Animation=v.extend(Hn,{tweeners:{"*":[function(c,h){var m=this.createTween(c,h);return Nn(m.elem,c,Kn.exec(h),m),m}]},tweener:function(c,h){K(c)?(h=c,c=["*"]):c=c.match(Pe);for(var m,w=0,T=c.length;w<T;w++)m=c[w],Hn.tweeners[m]=Hn.tweeners[m]||[],Hn.tweeners[m].unshift(h)},prefilters:[sc],prefilter:function(c,h){h?Hn.prefilters.unshift(c):Hn.prefilters.push(c)}}),v.speed=function(c,h,m){var w=c&&typeof c=="object"?v.extend({},c):{complete:m||!m&&h||K(c)&&c,duration:c,easing:m&&h||h&&!K(h)&&h};return v.fx.off?w.duration=0:typeof w.duration!="number"&&(w.duration in v.fx.speeds?w.duration=v.fx.speeds[w.duration]:w.duration=v.fx.speeds._default),(w.queue==null||w.queue===!0)&&(w.queue="fx"),w.old=w.complete,w.complete=function(){K(w.old)&&w.old.call(this),w.queue&&v.dequeue(this,w.queue)},w},v.fn.extend({fadeTo:function(c,h,m,w){return this.filter(Vt).css("opacity",0).show().end().animate({opacity:h},c,m,w)},animate:function(c,h,m,w){var T=v.isEmptyObject(c),S=v.speed(h,m,w),P=function(){var q=Hn(this,v.extend({},c),S);(T||st.get(this,"finish"))&&q.stop(!0)};return P.finish=P,T||S.queue===!1?this.each(P):this.queue(S.queue,P)},stop:function(c,h,m){var w=function(T){var S=T.stop;delete T.stop,S(m)};return typeof c!="string"&&(m=h,h=c,c=void 0),h&&this.queue(c||"fx",[]),this.each(function(){var T=!0,S=c!=null&&c+"queueHooks",P=v.timers,q=st.get(this);if(S)q[S]&&q[S].stop&&w(q[S]);else for(S in q)q[S]&&q[S].stop&&pr.test(S)&&w(q[S]);for(S=P.length;S--;)P[S].elem===this&&(c==null||P[S].queue===c)&&(P[S].anim.stop(m),T=!1,P.splice(S,1));(T||!m)&&v.dequeue(this,c)})},finish:function(c){return c!==!1&&(c=c||"fx"),this.each(function(){var h,m=st.get(this),w=m[c+"queue"],T=m[c+"queueHooks"],S=v.timers,P=w?w.length:0;for(m.finish=!0,v.queue(this,c,[]),T&&T.stop&&T.stop.call(this,!0),h=S.length;h--;)S[h].elem===this&&S[h].queue===c&&(S[h].anim.stop(!0),S.splice(h,1));for(h=0;h<P;h++)w[h]&&w[h].finish&&w[h].finish.call(this);delete m.finish})}}),v.each(["toggle","show","hide"],function(c,h){var m=v.fn[h];v.fn[h]=function(w,T,S){return w==null||typeof w=="boolean"?m.apply(this,arguments):this.animate(gr(h,!0),w,T,S)}}),v.each({slideDown:gr("show"),slideUp:gr("hide"),slideToggle:gr("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(c,h){v.fn[c]=function(m,w,T){return this.animate(h,m,w,T)}}),v.timers=[],v.fx.tick=function(){var c,h=0,m=v.timers;for(ea=Date.now();h<m.length;h++)c=m[h],!c()&&m[h]===c&&m.splice(h--,1);m.length||v.fx.stop(),ea=void 0},v.fx.timer=function(c){v.timers.push(c),v.fx.start()},v.fx.interval=13,v.fx.start=function(){Qa||(Qa=!0,Ur())},v.fx.stop=function(){Qa=null},v.fx.speeds={slow:600,fast:200,_default:400},v.fn.delay=function(c,h){return c=v.fx&&v.fx.speeds[c]||c,h=h||"fx",this.queue(h,function(m,w){var T=t.setTimeout(m,c);w.stop=function(){t.clearTimeout(T)}})},(function(){var c=F.createElement("input"),h=F.createElement("select"),m=h.appendChild(F.createElement("option"));c.type="checkbox",L.checkOn=c.value!=="",L.optSelected=m.selected,c=F.createElement("input"),c.value="t",c.type="radio",L.radioValue=c.value==="t"})();var Vo,mr=v.expr.attrHandle;v.fn.extend({attr:function(c,h){return Je(this,v.attr,c,h,arguments.length>1)},removeAttr:function(c){return this.each(function(){v.removeAttr(this,c)})}}),v.extend({attr:function(c,h,m){var w,T,S=c.nodeType;if(!(S===3||S===8||S===2)){if(typeof c.getAttribute>"u")return v.prop(c,h,m);if((S!==1||!v.isXMLDoc(c))&&(T=v.attrHooks[h.toLowerCase()]||(v.expr.match.bool.test(h)?Vo:void 0)),m!==void 0){if(m===null){v.removeAttr(c,h);return}return T&&"set"in T&&(w=T.set(c,m,h))!==void 0?w:(c.setAttribute(h,m+""),m)}return T&&"get"in T&&(w=T.get(c,h))!==null?w:(w=v.find.attr(c,h),w??void 0)}},attrHooks:{type:{set:function(c,h){if(!L.radioValue&&h==="radio"&&ft(c,"input")){var m=c.value;return c.setAttribute("type",h),m&&(c.value=m),h}}}},removeAttr:function(c,h){var m,w=0,T=h&&h.match(Pe);if(T&&c.nodeType===1)for(;m=T[w++];)c.removeAttribute(m)}}),Vo={set:function(c,h,m){return h===!1?v.removeAttr(c,m):c.setAttribute(m,m),m}},v.each(v.expr.match.bool.source.match(/\w+/g),function(c,h){var m=mr[h]||v.find.attr;mr[h]=function(w,T,S){var P,q,j=T.toLowerCase();return S||(q=mr[j],mr[j]=P,P=m(w,T,S)!=null?j:null,mr[j]=q),P}});var vr=/^(?:input|select|textarea|button)$/i,pl=/^(?:a|area)$/i;v.fn.extend({prop:function(c,h){return Je(this,v.prop,c,h,arguments.length>1)},removeProp:function(c){return this.each(function(){delete this[v.propFix[c]||c]})}}),v.extend({prop:function(c,h,m){var w,T,S=c.nodeType;if(!(S===3||S===8||S===2))return(S!==1||!v.isXMLDoc(c))&&(h=v.propFix[h]||h,T=v.propHooks[h]),m!==void 0?T&&"set"in T&&(w=T.set(c,m,h))!==void 0?w:c[h]=m:T&&"get"in T&&(w=T.get(c,h))!==null?w:c[h]},propHooks:{tabIndex:{get:function(c){var h=v.find.attr(c,"tabindex");return h?parseInt(h,10):vr.test(c.nodeName)||pl.test(c.nodeName)&&c.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),L.optSelected||(v.propHooks.selected={get:function(c){var h=c.parentNode;return h&&h.parentNode&&h.parentNode.selectedIndex,null},set:function(c){var h=c.parentNode;h&&(h.selectedIndex,h.parentNode&&h.parentNode.selectedIndex)}}),v.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){v.propFix[this.toLowerCase()]=this});function Ta(c){var h=c.match(Pe)||[];return h.join(" ")}function fa(c){return c.getAttribute&&c.getAttribute("class")||""}function yr(c){return Array.isArray(c)?c:typeof c=="string"?c.match(Pe)||[]:[]}v.fn.extend({addClass:function(c){var h,m,w,T,S,P;return K(c)?this.each(function(q){v(this).addClass(c.call(this,q,fa(this)))}):(h=yr(c),h.length?this.each(function(){if(w=fa(this),m=this.nodeType===1&&" "+Ta(w)+" ",m){for(S=0;S<h.length;S++)T=h[S],m.indexOf(" "+T+" ")<0&&(m+=T+" ");P=Ta(m),w!==P&&this.setAttribute("class",P)}}):this)},removeClass:function(c){var h,m,w,T,S,P;return K(c)?this.each(function(q){v(this).removeClass(c.call(this,q,fa(this)))}):arguments.length?(h=yr(c),h.length?this.each(function(){if(w=fa(this),m=this.nodeType===1&&" "+Ta(w)+" ",m){for(S=0;S<h.length;S++)for(T=h[S];m.indexOf(" "+T+" ")>-1;)m=m.replace(" "+T+" "," ");P=Ta(m),w!==P&&this.setAttribute("class",P)}}):this):this.attr("class","")},toggleClass:function(c,h){var m,w,T,S,P=typeof c,q=P==="string"||Array.isArray(c);return K(c)?this.each(function(j){v(this).toggleClass(c.call(this,j,fa(this),h),h)}):typeof h=="boolean"&&q?h?this.addClass(c):this.removeClass(c):(m=yr(c),this.each(function(){if(q)for(S=v(this),T=0;T<m.length;T++)w=m[T],S.hasClass(w)?S.removeClass(w):S.addClass(w);else(c===void 0||P==="boolean")&&(w=fa(this),w&&st.set(this,"__className__",w),this.setAttribute&&this.setAttribute("class",w||c===!1?"":st.get(this,"__className__")||""))}))},hasClass:function(c){var h,m,w=0;for(h=" "+c+" ";m=this[w++];)if(m.nodeType===1&&(" "+Ta(fa(m))+" ").indexOf(h)>-1)return!0;return!1}});var gl=/\r/g;v.fn.extend({val:function(c){var h,m,w,T=this[0];return arguments.length?(w=K(c),this.each(function(S){var P;this.nodeType===1&&(w?P=c.call(this,S,v(this).val()):P=c,P==null?P="":typeof P=="number"?P+="":Array.isArray(P)&&(P=v.map(P,function(q){return q==null?"":q+""})),h=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()],(!h||!("set"in h)||h.set(this,P,"value")===void 0)&&(this.value=P))})):T?(h=v.valHooks[T.type]||v.valHooks[T.nodeName.toLowerCase()],h&&"get"in h&&(m=h.get(T,"value"))!==void 0?m:(m=T.value,typeof m=="string"?m.replace(gl,""):m??"")):void 0}}),v.extend({valHooks:{option:{get:function(c){var h=v.find.attr(c,"value");return h??Ta(v.text(c))}},select:{get:function(c){var h,m,w,T=c.options,S=c.selectedIndex,P=c.type==="select-one",q=P?null:[],j=P?S+1:T.length;for(S<0?w=j:w=P?S:0;w<j;w++)if(m=T[w],(m.selected||w===S)&&!m.disabled&&(!m.parentNode.disabled||!ft(m.parentNode,"optgroup"))){if(h=v(m).val(),P)return h;q.push(h)}return q},set:function(c,h){for(var m,w,T=c.options,S=v.makeArray(h),P=T.length;P--;)w=T[P],(w.selected=v.inArray(v.valHooks.option.get(w),S)>-1)&&(m=!0);return m||(c.selectedIndex=-1),S}}}}),v.each(["radio","checkbox"],function(){v.valHooks[this]={set:function(c,h){if(Array.isArray(h))return c.checked=v.inArray(v(c).val(),h)>-1}},L.checkOn||(v.valHooks[this].get=function(c){return c.getAttribute("value")===null?"on":c.value})});var ti=t.location,Go={guid:Date.now()},Xr=/\?/;v.parseXML=function(c){var h,m;if(!c||typeof c!="string")return null;try{h=new t.DOMParser().parseFromString(c,"text/xml")}catch{}return m=h&&h.getElementsByTagName("parsererror")[0],(!h||m)&&v.error("Invalid XML: "+(m?v.map(m.childNodes,function(w){return w.textContent}).join(`
|
|
7883
7883
|
`):c)),h};var Uo=/^(?:focusinfocus|focusoutblur)$/,Yo=function(c){c.stopPropagation()};v.extend(v.event,{trigger:function(c,h,m,w){var T,S,P,q,j,Z,ut,pt,at=[m||F],Tt=E.call(c,"type")?c.type:c,oe=E.call(c,"namespace")?c.namespace.split("."):[];if(S=pt=P=m=m||F,!(m.nodeType===3||m.nodeType===8)&&!Uo.test(Tt+v.event.triggered)&&(Tt.indexOf(".")>-1&&(oe=Tt.split("."),Tt=oe.shift(),oe.sort()),j=Tt.indexOf(":")<0&&"on"+Tt,c=c[v.expando]?c:new v.Event(Tt,typeof c=="object"&&c),c.isTrigger=w?2:3,c.namespace=oe.join("."),c.rnamespace=c.namespace?new RegExp("(^|\\.)"+oe.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,c.result=void 0,c.target||(c.target=m),h=h==null?[c]:v.makeArray(h,[c]),ut=v.event.special[Tt]||{},!(!w&&ut.trigger&&ut.trigger.apply(m,h)===!1))){if(!w&&!ut.noBubble&&!J(m)){for(q=ut.delegateType||Tt,Uo.test(q+Tt)||(S=S.parentNode);S;S=S.parentNode)at.push(S),P=S;P===(m.ownerDocument||F)&&at.push(P.defaultView||P.parentWindow||t)}for(T=0;(S=at[T++])&&!c.isPropagationStopped();)pt=S,c.type=T>1?q:ut.bindType||Tt,Z=(st.get(S,"events")||Object.create(null))[c.type]&&st.get(S,"handle"),Z&&Z.apply(S,h),Z=j&&S[j],Z&&Z.apply&&it(S)&&(c.result=Z.apply(S,h),c.result===!1&&c.preventDefault());return c.type=Tt,!w&&!c.isDefaultPrevented()&&(!ut._default||ut._default.apply(at.pop(),h)===!1)&&it(m)&&j&&K(m[Tt])&&!J(m)&&(P=m[j],P&&(m[j]=null),v.event.triggered=Tt,c.isPropagationStopped()&&pt.addEventListener(Tt,Yo),m[Tt](),c.isPropagationStopped()&&pt.removeEventListener(Tt,Yo),v.event.triggered=void 0,P&&(m[j]=P)),c.result}},simulate:function(c,h,m){var w=v.extend(new v.Event,m,{type:c,isSimulated:!0});v.event.trigger(w,null,h)}}),v.fn.extend({trigger:function(c,h){return this.each(function(){v.event.trigger(c,h,this)})},triggerHandler:function(c,h){var m=this[0];if(m)return v.event.trigger(c,h,m,!0)}});var ml=/\[\]$/,Zr=/\r?\n/g,uc=/^(?:submit|button|image|reset|file)$/i,Xo=/^(?:input|select|textarea|keygen)/i;function Zo(c,h,m,w){var T;if(Array.isArray(h))v.each(h,function(S,P){m||ml.test(c)?w(c,P):Zo(c+"["+(typeof P=="object"&&P!=null?S:"")+"]",P,m,w)});else if(!m&&dt(h)==="object")for(T in h)Zo(c+"["+T+"]",h[T],m,w);else w(c,h)}v.param=function(c,h){var m,w=[],T=function(S,P){var q=K(P)?P():P;w[w.length]=encodeURIComponent(S)+"="+encodeURIComponent(q??"")};if(c==null)return"";if(Array.isArray(c)||c.jquery&&!v.isPlainObject(c))v.each(c,function(){T(this.name,this.value)});else for(m in c)Zo(m,c[m],h,T);return w.join("&")},v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var c=v.prop(this,"elements");return c?v.makeArray(c):this}).filter(function(){var c=this.type;return this.name&&!v(this).is(":disabled")&&Xo.test(this.nodeName)&&!uc.test(c)&&(this.checked||!$e.test(c))}).map(function(c,h){var m=v(this).val();return m==null?null:Array.isArray(m)?v.map(m,function(w){return{name:h.name,value:w.replace(Zr,`\r
|
|
7884
7884
|
`)}}):{name:h.name,value:m.replace(Zr,`\r
|
|
7885
|
-
`)}}).get()}});var _e=/%20/g,Oi=/#.*$/,cc=/([?&])_=[^&]*/,dc=/^(.*?):[ \t]*([^\r\n]*)$/mg,br=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,vl=/^(?:GET|HEAD)$/,Jr=/^\/\//,ki={},wr={},kr="*/".concat("*"),Pa=F.createElement("a");Pa.href=ei.href;function yl(c){return function(h,m){typeof h!="string"&&(m=h,h="*");var w,T=0,S=h.toLowerCase().match(Pe)||[];if(K(m))for(;w=S[T++];)w[0]==="+"?(w=w.slice(1)||"*",(c[w]=c[w]||[]).unshift(m)):(c[w]=c[w]||[]).push(m)}}function bl(c,h,m,w){var T={},S=c===wr;function P(q){var j;return T[q]=!0,v.each(c[q]||[],function(Z,ut){var pt=ut(h,m,w);if(typeof pt=="string"&&!S&&!T[pt])return h.dataTypes.unshift(pt),P(pt),!1;if(S)return!(j=pt)}),j}return P(h.dataTypes[0])||!T["*"]&&P("*")}function Jo(c,h){var m,w,T=v.ajaxSettings.flatOptions||{};for(m in h)h[m]!==void 0&&((T[m]?c:w||(w={}))[m]=h[m]);return w&&v.extend(!0,c,w),c}function fc(c,h,m){for(var w,T,S,P,q=c.contents,j=c.dataTypes;j[0]==="*";)j.shift(),w===void 0&&(w=c.mimeType||h.getResponseHeader("Content-Type"));if(w){for(T in q)if(q[T]&&q[T].test(w)){j.unshift(T);break}}if(j[0]in m)S=j[0];else{for(T in m){if(!j[0]||c.converters[T+" "+j[0]]){S=T;break}P||(P=T)}S=S||P}if(S)return S!==j[0]&&j.unshift(S),m[S]}function hc(c,h,m,w){var T,S,P,q,j,Z={},ut=c.dataTypes.slice();if(ut[1])for(P in c.converters)Z[P.toLowerCase()]=c.converters[P];for(S=ut.shift();S;)if(c.responseFields[S]&&(m[c.responseFields[S]]=h),!j&&w&&c.dataFilter&&(h=c.dataFilter(h,c.dataType)),j=S,S=ut.shift(),S){if(S==="*")S=j;else if(j!=="*"&&j!==S){if(P=Z[j+" "+S]||Z["* "+S],!P){for(T in Z)if(q=T.split(" "),q[1]===S&&(P=Z[j+" "+q[0]]||Z["* "+q[0]],P)){P===!0?P=Z[T]:Z[T]!==!0&&(S=q[0],ut.unshift(q[1]));break}}if(P!==!0)if(P&&c.throws)h=P(h);else try{h=P(h)}catch(pt){return{state:"parsererror",error:P?pt:"No conversion from "+j+" to "+S}}}}return{state:"success",data:h}}v.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ei.href,type:"GET",isLocal:br.test(ei.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":kr,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":v.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(c,h){return h?Jo(Jo(c,v.ajaxSettings),h):Jo(v.ajaxSettings,c)},ajaxPrefilter:yl(ki),ajaxTransport:yl(wr),ajax:function(c,h){typeof c=="object"&&(h=c,c=void 0),h=h||{};var m,w,T,S,P,q,j,Z,ut,pt,at=v.ajaxSetup({},h),Tt=at.context||at,oe=at.context&&(Tt.nodeType||Tt.jquery)?v(Tt):v.event,Ne=v.Deferred(),ye=v.Callbacks("once memory"),En=at.statusCode||{},pn={},Ma={},Aa="canceled",Ce={readyState:0,getResponseHeader:function(Be){var tn;if(j){if(!S)for(S={};tn=dc.exec(T);)S[tn[1].toLowerCase()+" "]=(S[tn[1].toLowerCase()+" "]||[]).concat(tn[2]);tn=S[Be.toLowerCase()+" "]}return tn==null?null:tn.join(", ")},getAllResponseHeaders:function(){return j?T:null},setRequestHeader:function(Be,tn){return j==null&&(Be=Ma[Be.toLowerCase()]=Ma[Be.toLowerCase()]||Be,pn[Be]=tn),this},overrideMimeType:function(Be){return j==null&&(at.mimeType=Be),this},statusCode:function(Be){var tn;if(Be)if(j)Ce.always(Be[Ce.status]);else for(tn in Be)En[tn]=[En[tn],Be[tn]];return this},abort:function(Be){var tn=Be||Aa;return m&&m.abort(tn),xi(0,tn),this}};if(Ne.promise(Ce),at.url=((c||at.url||ei.href)+"").replace(Jr,ei.protocol+"//"),at.type=h.method||h.type||at.method||at.type,at.dataTypes=(at.dataType||"*").toLowerCase().match(Pe)||[""],at.crossDomain==null){q=F.createElement("a");try{q.href=at.url,q.href=q.href,at.crossDomain=Pa.protocol+"//"+Pa.host!=q.protocol+"//"+q.host}catch{at.crossDomain=!0}}if(at.data&&at.processData&&typeof at.data!="string"&&(at.data=v.param(at.data,at.traditional)),bl(ki,at,h,Ce),j)return Ce;Z=v.event&&at.global,Z&&v.active++===0&&v.event.trigger("ajaxStart"),at.type=at.type.toUpperCase(),at.hasContent=!vl.test(at.type),w=at.url.replace(Oi,""),at.hasContent?at.data&&at.processData&&(at.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(at.data=at.data.replace(_e,"+")):(pt=at.url.slice(w.length),at.data&&(at.processData||typeof at.data=="string")&&(w+=(Xr.test(w)?"&":"?")+at.data,delete at.data),at.cache===!1&&(w=w.replace(cc,"$1"),pt=(Xr.test(w)?"&":"?")+"_="+Go.guid+++pt),at.url=w+pt),at.ifModified&&(v.lastModified[w]&&Ce.setRequestHeader("If-Modified-Since",v.lastModified[w]),v.etag[w]&&Ce.setRequestHeader("If-None-Match",v.etag[w])),(at.data&&at.hasContent&&at.contentType!==!1||h.contentType)&&Ce.setRequestHeader("Content-Type",at.contentType),Ce.setRequestHeader("Accept",at.dataTypes[0]&&at.accepts[at.dataTypes[0]]?at.accepts[at.dataTypes[0]]+(at.dataTypes[0]!=="*"?", "+kr+"; q=0.01":""):at.accepts["*"]);for(ut in at.headers)Ce.setRequestHeader(ut,at.headers[ut]);if(at.beforeSend&&(at.beforeSend.call(Tt,Ce,at)===!1||j))return Ce.abort();if(Aa="abort",ye.add(at.complete),Ce.done(at.success),Ce.fail(at.error),m=bl(wr,at,h,Ce),!m)xi(-1,"No Transport");else{if(Ce.readyState=1,Z&&oe.trigger("ajaxSend",[Ce,at]),j)return Ce;at.async&&at.timeout>0&&(P=t.setTimeout(function(){Ce.abort("timeout")},at.timeout));try{j=!1,m.send(pn,xi)}catch(Be){if(j)throw Be;xi(-1,Be)}}function xi(Be,tn,Cr,es){var Na,Tr,ha,ai,ii,pa=tn;j||(j=!0,P&&t.clearTimeout(P),m=void 0,T=es||"",Ce.readyState=Be>0?4:0,Na=Be>=200&&Be<300||Be===304,Cr&&(ai=fc(at,Ce,Cr)),!Na&&v.inArray("script",at.dataTypes)>-1&&v.inArray("json",at.dataTypes)<0&&(at.converters["text script"]=function(){}),ai=hc(at,ai,Ce,Na),Na?(at.ifModified&&(ii=Ce.getResponseHeader("Last-Modified"),ii&&(v.lastModified[w]=ii),ii=Ce.getResponseHeader("etag"),ii&&(v.etag[w]=ii)),Be===204||at.type==="HEAD"?pa="nocontent":Be===304?pa="notmodified":(pa=ai.state,Tr=ai.data,ha=ai.error,Na=!ha)):(ha=pa,(Be||!pa)&&(pa="error",Be<0&&(Be=0))),Ce.status=Be,Ce.statusText=(tn||pa)+"",Na?Ne.resolveWith(Tt,[Tr,pa,Ce]):Ne.rejectWith(Tt,[Ce,pa,ha]),Ce.statusCode(En),En=void 0,Z&&oe.trigger(Na?"ajaxSuccess":"ajaxError",[Ce,at,Na?Tr:ha]),ye.fireWith(Tt,[Ce,pa]),Z&&(oe.trigger("ajaxComplete",[Ce,at]),--v.active||v.event.trigger("ajaxStop")))}return Ce},getJSON:function(c,h,m){return v.get(c,h,m,"json")},getScript:function(c,h){return v.get(c,void 0,h,"script")}}),v.each(["get","post"],function(c,h){v[h]=function(m,w,T,S){return K(w)&&(S=S||T,T=w,w=void 0),v.ajax(v.extend({url:m,type:h,dataType:S,data:w,success:T},v.isPlainObject(m)&&m))}}),v.ajaxPrefilter(function(c){var h;for(h in c.headers)h.toLowerCase()==="content-type"&&(c.contentType=c.headers[h]||"")}),v._evalUrl=function(c,h,m){return v.ajax({url:c,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(w){v.globalEval(w,h,m)}})},v.fn.extend({wrapAll:function(c){var h;return this[0]&&(K(c)&&(c=c.call(this[0])),h=v(c,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&h.insertBefore(this[0]),h.map(function(){for(var m=this;m.firstElementChild;)m=m.firstElementChild;return m}).append(this)),this},wrapInner:function(c){return K(c)?this.each(function(h){v(this).wrapInner(c.call(this,h))}):this.each(function(){var h=v(this),m=h.contents();m.length?m.wrapAll(c):h.append(c)})},wrap:function(c){var h=K(c);return this.each(function(m){v(this).wrapAll(h?c.call(this,m):c)})},unwrap:function(c){return this.parent(c).not("body").each(function(){v(this).replaceWith(this.childNodes)}),this}}),v.expr.pseudos.hidden=function(c){return!v.expr.pseudos.visible(c)},v.expr.pseudos.visible=function(c){return!!(c.offsetWidth||c.offsetHeight||c.getClientRects().length)},v.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var Qr={0:200,1223:204},xr=v.ajaxSettings.xhr();L.cors=!!xr&&"withCredentials"in xr,L.ajax=xr=!!xr,v.ajaxTransport(function(c){var h,m;if(L.cors||xr&&!c.crossDomain)return{send:function(w,T){var S,P=c.xhr();if(P.open(c.type,c.url,c.async,c.username,c.password),c.xhrFields)for(S in c.xhrFields)P[S]=c.xhrFields[S];c.mimeType&&P.overrideMimeType&&P.overrideMimeType(c.mimeType),!c.crossDomain&&!w["X-Requested-With"]&&(w["X-Requested-With"]="XMLHttpRequest");for(S in w)P.setRequestHeader(S,w[S]);h=function(q){return function(){h&&(h=m=P.onload=P.onerror=P.onabort=P.ontimeout=P.onreadystatechange=null,q==="abort"?P.abort():q==="error"?typeof P.status!="number"?T(0,"error"):T(P.status,P.statusText):T(Qr[P.status]||P.status,P.statusText,(P.responseType||"text")!=="text"||typeof P.responseText!="string"?{binary:P.response}:{text:P.responseText},P.getAllResponseHeaders()))}},P.onload=h(),m=P.onerror=P.ontimeout=h("error"),P.onabort!==void 0?P.onabort=m:P.onreadystatechange=function(){P.readyState===4&&t.setTimeout(function(){h&&m()})},h=h("abort");try{P.send(c.hasContent&&c.data||null)}catch(q){if(h)throw q}},abort:function(){h&&h()}}}),v.ajaxPrefilter(function(c){c.crossDomain&&(c.contents.script=!1)}),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(c){return v.globalEval(c),c}}}),v.ajaxPrefilter("script",function(c){c.cache===void 0&&(c.cache=!1),c.crossDomain&&(c.type="GET")}),v.ajaxTransport("script",function(c){if(c.crossDomain||c.scriptAttrs){var h,m;return{send:function(w,T){h=v("<script>").attr(c.scriptAttrs||{}).prop({charset:c.scriptCharset,src:c.url}).on("load error",m=function(S){h.remove(),m=null,S&&T(S.type==="error"?404:200,S.type)}),F.head.appendChild(h[0])},abort:function(){m&&m()}}}});var wl=[],Sr=/(=)\?(?=&|$)|\?\?/;v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var c=wl.pop()||v.expando+"_"+Go.guid++;return this[c]=!0,c}}),v.ajaxPrefilter("json jsonp",function(c,h,m){var w,T,S,P=c.jsonp!==!1&&(Sr.test(c.url)?"url":typeof c.data=="string"&&(c.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&Sr.test(c.data)&&"data");if(P||c.dataTypes[0]==="jsonp")return w=c.jsonpCallback=K(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,P?c[P]=c[P].replace(Sr,"$1"+w):c.jsonp!==!1&&(c.url+=(Xr.test(c.url)?"&":"?")+c.jsonp+"="+w),c.converters["script json"]=function(){return S||v.error(w+" was not called"),S[0]},c.dataTypes[0]="json",T=t[w],t[w]=function(){S=arguments},m.always(function(){T===void 0?v(t).removeProp(w):t[w]=T,c[w]&&(c.jsonpCallback=h.jsonpCallback,wl.push(w)),S&&K(T)&&T(S[0]),S=T=void 0}),"script"}),L.createHTMLDocument=(function(){var c=F.implementation.createHTMLDocument("").body;return c.innerHTML="<form></form><form></form>",c.childNodes.length===2})(),v.parseHTML=function(c,h,m){if(typeof c!="string")return[];typeof h=="boolean"&&(m=h,h=!1);var w,T,S;return h||(L.createHTMLDocument?(h=F.implementation.createHTMLDocument(""),w=h.createElement("base"),w.href=F.location.href,h.head.appendChild(w)):h=F),T=wt.exec(c),S=!m&&[],T?[h.createElement(T[1])]:(T=ve([c],h,S),S&&S.length&&v(S).remove(),v.merge([],T.childNodes))},v.fn.load=function(c,h,m){var w,T,S,P=this,q=c.indexOf(" ");return q>-1&&(w=Ea(c.slice(q)),c=c.slice(0,q)),K(h)?(m=h,h=void 0):h&&typeof h=="object"&&(T="POST"),P.length>0&&v.ajax({url:c,type:T||"GET",dataType:"html",data:h}).done(function(j){S=arguments,P.html(w?v("<div>").append(v.parseHTML(j)).find(w):j)}).always(m&&function(j,Z){P.each(function(){m.apply(this,S||[j.responseText,Z,j])})}),this},v.expr.pseudos.animated=function(c){return v.grep(v.timers,function(h){return c===h.elem}).length},v.offset={setOffset:function(c,h,m){var w,T,S,P,q,j,Z,ut=v.css(c,"position"),pt=v(c),at={};ut==="static"&&(c.style.position="relative"),q=pt.offset(),S=v.css(c,"top"),j=v.css(c,"left"),Z=(ut==="absolute"||ut==="fixed")&&(S+j).indexOf("auto")>-1,Z?(w=pt.position(),P=w.top,T=w.left):(P=parseFloat(S)||0,T=parseFloat(j)||0),K(h)&&(h=h.call(c,m,v.extend({},q))),h.top!=null&&(at.top=h.top-q.top+P),h.left!=null&&(at.left=h.left-q.left+T),"using"in h?h.using.call(c,at):pt.css(at)}},v.fn.extend({offset:function(c){if(arguments.length)return c===void 0?this:this.each(function(T){v.offset.setOffset(this,c,T)});var h,m,w=this[0];if(w)return w.getClientRects().length?(h=w.getBoundingClientRect(),m=w.ownerDocument.defaultView,{top:h.top+m.pageYOffset,left:h.left+m.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var c,h,m,w=this[0],T={top:0,left:0};if(v.css(w,"position")==="fixed")h=w.getBoundingClientRect();else{for(h=this.offset(),m=w.ownerDocument,c=w.offsetParent||m.documentElement;c&&(c===m.body||c===m.documentElement)&&v.css(c,"position")==="static";)c=c.parentNode;c&&c!==w&&c.nodeType===1&&(T=v(c).offset(),T.top+=v.css(c,"borderTopWidth",!0),T.left+=v.css(c,"borderLeftWidth",!0))}return{top:h.top-T.top-v.css(w,"marginTop",!0),left:h.left-T.left-v.css(w,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent;c&&v.css(c,"position")==="static";)c=c.offsetParent;return c||xn})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(c,h){var m=h==="pageYOffset";v.fn[c]=function(w){return Je(this,function(T,S,P){var q;if(J(T)?q=T:T.nodeType===9&&(q=T.defaultView),P===void 0)return q?q[h]:T[S];q?q.scrollTo(m?q.pageXOffset:P,m?P:q.pageYOffset):T[S]=P},c,w,arguments.length)}}),v.each(["top","left"],function(c,h){v.cssHooks[h]=cr(L.pixelPosition,function(m,w){if(w)return w=Tn(m,h),fn.test(w)?v(m).position()[h]+"px":w})}),v.each({Height:"height",Width:"width"},function(c,h){v.each({padding:"inner"+c,content:h,"":"outer"+c},function(m,w){v.fn[w]=function(T,S){var P=arguments.length&&(m||typeof T!="boolean"),q=m||(T===!0||S===!0?"margin":"border");return Je(this,function(j,Z,ut){var pt;return J(j)?w.indexOf("outer")===0?j["inner"+c]:j.document.documentElement["client"+c]:j.nodeType===9?(pt=j.documentElement,Math.max(j.body["scroll"+c],pt["scroll"+c],j.body["offset"+c],pt["offset"+c],pt["client"+c])):ut===void 0?v.css(j,Z,q):v.style(j,Z,ut,q)},h,P?T:void 0,P)}})}),v.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(c,h){v.fn[h]=function(m){return this.on(h,m)}}),v.fn.extend({bind:function(c,h,m){return this.on(c,null,h,m)},unbind:function(c,h){return this.off(c,null,h)},delegate:function(c,h,m,w){return this.on(h,c,m,w)},undelegate:function(c,h,m){return arguments.length===1?this.off(c,"**"):this.off(h,c||"**",m)},hover:function(c,h){return this.on("mouseenter",c).on("mouseleave",h||c)}}),v.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(c,h){v.fn[h]=function(m,w){return arguments.length>0?this.on(h,null,m,w):this.trigger(h)}});var Qo=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;v.proxy=function(c,h){var m,w,T;if(typeof h=="string"&&(m=c[h],h=c,c=m),!!K(c))return w=l.call(arguments,2),T=function(){return c.apply(h||this,w.concat(l.call(arguments)))},T.guid=c.guid=c.guid||v.guid++,T},v.holdReady=function(c){c?v.readyWait++:v.ready(!0)},v.isArray=Array.isArray,v.parseJSON=JSON.parse,v.nodeName=ft,v.isFunction=K,v.isWindow=J,v.camelCase=Y,v.type=dt,v.now=Date.now,v.isNumeric=function(c){var h=v.type(c);return(h==="number"||h==="string")&&!isNaN(c-parseFloat(c))},v.trim=function(c){return c==null?"":(c+"").replace(Qo,"$1")};var ni=t.jQuery,ts=t.$;return v.noConflict=function(c){return t.$===v&&(t.$=ts),c&&t.jQuery===v&&(t.jQuery=ni),v},typeof n>"u"&&(t.jQuery=t.$=v),v})})(Tu)),Tu.exports}var R1=Lb();const dl=On(R1);var Bf={exports:{}},yv;function j1(){return yv||(yv=1,(function(e,t){(function(n){e.exports=n(Lb())})(function(n){var a=!1,r=!1,l=0,d=2e3,f=0,p=n,y=document,k=window,E=p(k),N=[];function I(){var tt=y.currentScript||(function(){var s=y.getElementsByTagName("script");return s.length?s[s.length-1]:!1})(),H=tt?tt.src.split("?")[0]:"";return H.split("/").length>0?H.split("/").slice(0,-1).join("/")+"/":""}var L=k.requestAnimationFrame||k.webkitRequestAnimationFrame||k.mozRequestAnimationFrame||!1,K=k.cancelAnimationFrame||k.webkitCancelAnimationFrame||k.mozCancelAnimationFrame||!1;if(L)k.cancelAnimationFrame||(K=function(tt){});else{var J=0;L=function(tt,H){var s=new Date().getTime(),ht=Math.max(0,16-(s-J)),x=k.setTimeout(function(){tt(s+ht)},ht);return J=s+ht,x},K=function(tt){k.clearTimeout(tt)}}var F=k.MutationObserver||k.WebKitMutationObserver||!1,G=Date.now||function(){return new Date().getTime()},ot={zindex:"auto",cursoropacitymin:0,cursoropacitymax:1,cursorcolor:"#424242",cursorwidth:"6px",cursorborder:"1px solid #fff",cursorborderradius:"5px",scrollspeed:40,mousescrollstep:27,touchbehavior:!1,emulatetouch:!1,hwacceleration:!0,usetransition:!0,boxzoom:!1,dblclickzoom:!0,gesturezoom:!0,grabcursorenabled:!0,autohidemode:!0,background:"",iframeautoresize:!0,cursorminheight:32,preservenativescrolling:!0,railoffset:!1,railhoffset:!1,bouncescroll:!0,spacebarenabled:!0,railpadding:{top:0,right:0,left:0,bottom:0},disableoutline:!0,horizrailenabled:!0,railalign:"right",railvalign:"bottom",enabletranslate3d:!0,enablemousewheel:!0,enablekeyboard:!0,smoothscroll:!0,sensitiverail:!0,enablemouselockapi:!0,cursorfixedheight:!1,directionlockdeadzone:6,hidecursordelay:400,nativeparentscrolling:!0,enablescrollonselection:!0,overflowx:!0,overflowy:!0,cursordragspeed:.3,rtlmode:"auto",cursordragontouch:!1,oneaxismousemode:"auto",scriptpath:I(),preventmultitouchscrolling:!0,disablemutationobserver:!1,enableobserver:!0,scrollbarid:!1},dt=!1,_=function(){if(dt)return dt;var tt=y.createElement("DIV"),H=tt.style,s=navigator.userAgent,ht=navigator.platform,x={};x.haspointerlock="pointerLockElement"in y||"webkitPointerLockElement"in y||"mozPointerLockElement"in y,x.isopera="opera"in k,x.isopera12=x.isopera&&"getUserMedia"in navigator,x.isoperamini=Object.prototype.toString.call(k.operamini)==="[object OperaMini]",x.isie="all"in y&&"attachEvent"in tt&&!x.isopera,x.isieold=x.isie&&!("msInterpolationMode"in H),x.isie7=x.isie&&!x.isieold&&(!("documentMode"in y)||y.documentMode===7),x.isie8=x.isie&&"documentMode"in y&&y.documentMode===8,x.isie9=x.isie&&"performance"in k&&y.documentMode===9,x.isie10=x.isie&&"performance"in k&&y.documentMode===10,x.isie11="msRequestFullscreen"in tt&&y.documentMode>=11,x.ismsedge="msCredentials"in k,x.ismozilla="MozAppearance"in H,x.iswebkit=!x.ismsedge&&"WebkitAppearance"in H,x.ischrome=x.iswebkit&&"chrome"in k,x.ischrome38=x.ischrome&&"touchAction"in H,x.ischrome22=!x.ischrome38&&x.ischrome&&x.haspointerlock,x.ischrome26=!x.ischrome38&&x.ischrome&&"transition"in H,x.cantouch="ontouchstart"in y.documentElement||"ontouchstart"in k,x.hasw3ctouch=(k.PointerEvent||!1)&&(navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),x.hasmstouch=!x.hasw3ctouch&&(k.MSPointerEvent||!1),x.ismac=/^mac$/i.test(ht),x.isios=x.cantouch&&/iphone|ipad|ipod/i.test(ht),x.isios4=x.isios&&!("seal"in Object),x.isios7=x.isios&&"webkitHidden"in y,x.isios8=x.isios&&"hidden"in y,x.isios10=x.isios&&k.Proxy,x.isandroid=/android/i.test(s),x.haseventlistener="addEventListener"in tt,x.trstyle=!1,x.hastransform=!1,x.hastranslate3d=!1,x.transitionstyle=!1,x.hastransition=!1,x.transitionend=!1,x.trstyle="transform",x.hastransform="transform"in H||(function(){for(var bt=["msTransform","webkitTransform","MozTransform","OTransform"],St=0,O=bt.length;St<O;St++)if(H[bt[St]]!==void 0){x.trstyle=bt[St];break}x.hastransform=!!x.trstyle})(),x.hastransform&&(H[x.trstyle]="translate3d(1px,2px,3px)",x.hastranslate3d=/translate3d/.test(H[x.trstyle])),x.transitionstyle="transition",x.prefixstyle="",x.transitionend="transitionend",x.hastransition="transition"in H||(function(){x.transitionend=!1;for(var bt=["webkitTransition","msTransition","MozTransition","OTransition","OTransition","KhtmlTransition"],St=["-webkit-","-ms-","-moz-","-o-","-o","-khtml-"],O=["webkitTransitionEnd","msTransitionEnd","transitionend","otransitionend","oTransitionEnd","KhtmlTransitionEnd"],wt=0,xt=bt.length;wt<xt;wt++)if(bt[wt]in H){x.transitionstyle=bt[wt],x.prefixstyle=St[wt],x.transitionend=O[wt];break}x.ischrome26&&(x.prefixstyle=St[1]),x.hastransition=x.transitionstyle})();function lt(){var bt=["grab","-webkit-grab","-moz-grab"];(x.ischrome&&!x.ischrome38||x.isie)&&(bt=[]);for(var St=0,O=bt.length;St<O;St++){var wt=bt[St];if(H.cursor=wt,H.cursor==wt)return wt}return"url(https://cdnjs.cloudflare.com/ajax/libs/slider-pro/1.3.0/css/images/openhand.cur),n-resize"}return x.cursorgrabvalue=lt(),x.hasmousecapture="setCapture"in tt,x.hasMutationObserver=F!==!1,tt=null,dt=x,x},$=function(tt,H){var s=this;this.version="3.7.6",this.name="nicescroll",this.me=H;var ht=p("body"),x=this.opt={doc:ht,win:!1};if(p.extend(x,ot),x.snapbackspeed=80,tt)for(var lt in x)tt[lt]!==void 0&&(x[lt]=tt[lt]);if(x.disablemutationobserver&&(F=!1),this.doc=x.doc,this.iddoc=this.doc&&this.doc[0]&&this.doc[0].id||"",this.ispage=/^BODY|HTML/.test(x.win?x.win[0].nodeName:this.doc[0].nodeName),this.haswrapper=x.win!==!1,this.win=x.win||(this.ispage?E:this.doc),this.docscroll=this.ispage&&!this.haswrapper?E:this.win,this.body=ht,this.viewport=!1,this.isfixed=!1,this.iframe=!1,this.isiframe=this.doc[0].nodeName=="IFRAME"&&this.win[0].nodeName=="IFRAME",this.istextarea=this.win[0].nodeName=="TEXTAREA",this.forcescreen=!1,this.canshowonmouseevent=x.autohidemode!="scroll",this.onmousedown=!1,this.onmouseup=!1,this.onmousemove=!1,this.onmousewheel=!1,this.onkeypress=!1,this.ongesturezoom=!1,this.onclick=!1,this.onscrollstart=!1,this.onscrollend=!1,this.onscrollcancel=!1,this.onzoomin=!1,this.onzoomout=!1,this.view=!1,this.page=!1,this.scroll={x:0,y:0},this.scrollratio={x:0,y:0},this.cursorheight=20,this.scrollvaluemax=0,x.rtlmode=="auto"){var bt=this.win[0]==k?this.body:this.win,St=bt.css("writing-mode")||bt.css("-webkit-writing-mode")||bt.css("-ms-writing-mode")||bt.css("-moz-writing-mode");St=="horizontal-tb"||St=="lr-tb"||St===""?(this.isrtlmode=bt.css("direction")=="rtl",this.isvertical=!1):(this.isrtlmode=St=="vertical-rl"||St=="tb"||St=="tb-rl"||St=="rl-tb",this.isvertical=St=="vertical-rl"||St=="tb"||St=="tb-rl")}else this.isrtlmode=x.rtlmode===!0,this.isvertical=!1;if(this.scrollrunning=!1,this.scrollmom=!1,this.observer=!1,this.observerremover=!1,this.observerbody=!1,x.scrollbarid!==!1)this.id=x.scrollbarid;else do this.id="ascrail"+d++;while(y.getElementById(this.id));this.rail=!1,this.cursor=!1,this.cursorfreezed=!1,this.selectiondrag=!1,this.zoom=!1,this.zoomactive=!1,this.hasfocus=!1,this.hasmousefocus=!1,this.railslocked=!1,this.locked=!1,this.hidden=!1,this.cursoractive=!0,this.wheelprevented=!1,this.overflowx=x.overflowx,this.overflowy=x.overflowy,this.nativescrollingarea=!1,this.checkarea=0,this.events=[],this.saved={},this.delaylist={},this.synclist={},this.lastdeltax=0,this.lastdeltay=0,this.detected=_();var O=p.extend({},this.detected);this.canhwscroll=O.hastransform&&x.hwacceleration,this.ishwscroll=this.canhwscroll&&s.haswrapper,this.isrtlmode?this.isvertical?this.hasreversehr=!(O.iswebkit||O.isie||O.isie11):this.hasreversehr=!(O.iswebkit||O.isie&&!O.isie10&&!O.isie11):this.hasreversehr=!1,this.istouchcapable=!1,!O.cantouch&&(O.hasw3ctouch||O.hasmstouch)?this.istouchcapable=!0:O.cantouch&&!O.isios&&!O.isandroid&&(O.iswebkit||O.ismozilla)&&(this.istouchcapable=!0),x.enablemouselockapi||(O.hasmousecapture=!1,O.haspointerlock=!1),this.debounced=function(M,D,Y){if(s){var it=s.delaylist[M]||!1;it||(s.delaylist[M]={h:L(function(){s.delaylist[M].fn.call(s),s.delaylist[M]=!1},Y)},D.call(s)),s.delaylist[M].fn=D}},this.synched=function(M,D){s.synclist[M]?s.synclist[M]=D:(s.synclist[M]=D,L(function(){s&&(s.synclist[M]&&s.synclist[M].call(s),s.synclist[M]=null)}))},this.unsynched=function(M){s.synclist[M]&&(s.synclist[M]=!1)},this.css=function(M,D){for(var Y in D)s.saved.css.push([M,Y,M.css(Y)]),M.css(Y,D[Y])},this.scrollTop=function(M){return M===void 0?s.getScrollTop():s.setScrollTop(M)},this.scrollLeft=function(M){return M===void 0?s.getScrollLeft():s.setScrollLeft(M)};var wt=function(M,D,Y,it,vt,st,Xt){this.st=M,this.ed=D,this.spd=Y,this.p1=it||0,this.p2=vt||1,this.p3=st||0,this.p4=Xt||1,this.ts=G(),this.df=D-M};wt.prototype={B2:function(M){return 3*(1-M)*(1-M)*M},B3:function(M){return 3*(1-M)*M*M},B4:function(M){return M*M*M},getPos:function(){return(G()-this.ts)/this.spd},getNow:function(){var M=(G()-this.ts)/this.spd,D=this.B2(M)+this.B3(M)+this.B4(M);return M>=1?this.ed:this.st+this.df*D|0},update:function(M,D){return this.st=this.getNow(),this.ed=M,this.spd=D,this.ts=G(),this.df=this.ed-this.st,this}};function xt(){var M=s.doc.css(O.trstyle);return M&&M.substr(0,6)=="matrix"?M.replace(/^.*\((.*)\)$/g,"$1").replace(/px/g,"").split(/, +/):!1}if(this.ishwscroll){this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"},O.hastranslate3d&&O.isios&&this.doc.css("-webkit-backface-visibility","hidden"),this.getScrollTop=function(M){if(!M){var D=xt();if(D)return D.length==16?-D[13]:-D[5];if(s.timerscroll&&s.timerscroll.bz)return s.timerscroll.bz.getNow()}return s.doc.translate.y},this.getScrollLeft=function(M){if(!M){var D=xt();if(D)return D.length==16?-D[12]:-D[4];if(s.timerscroll&&s.timerscroll.bh)return s.timerscroll.bh.getNow()}return s.doc.translate.x},this.notifyScrollEvent=function(M){var D=y.createEvent("UIEvents");D.initUIEvent("scroll",!1,!1,k,1),D.niceevent=!0,M.dispatchEvent(D)};var Ot=this.isrtlmode?1:-1;O.hastranslate3d&&x.enabletranslate3d?(this.setScrollTop=function(M,D){s.doc.translate.y=M,s.doc.translate.ty=M*-1+"px",s.doc.css(O.trstyle,"translate3d("+s.doc.translate.tx+","+s.doc.translate.ty+",0)"),D||s.notifyScrollEvent(s.win[0])},this.setScrollLeft=function(M,D){s.doc.translate.x=M,s.doc.translate.tx=M*Ot+"px",s.doc.css(O.trstyle,"translate3d("+s.doc.translate.tx+","+s.doc.translate.ty+",0)"),D||s.notifyScrollEvent(s.win[0])}):(this.setScrollTop=function(M,D){s.doc.translate.y=M,s.doc.translate.ty=M*-1+"px",s.doc.css(O.trstyle,"translate("+s.doc.translate.tx+","+s.doc.translate.ty+")"),D||s.notifyScrollEvent(s.win[0])},this.setScrollLeft=function(M,D){s.doc.translate.x=M,s.doc.translate.tx=M*Ot+"px",s.doc.css(O.trstyle,"translate("+s.doc.translate.tx+","+s.doc.translate.ty+")"),D||s.notifyScrollEvent(s.win[0])})}else this.getScrollTop=function(){return s.docscroll.scrollTop()},this.setScrollTop=function(M){s.docscroll.scrollTop(M)},this.getScrollLeft=function(){var M;return s.hasreversehr?s.detected.ismozilla?M=s.page.maxw-Math.abs(s.docscroll.scrollLeft()):M=s.page.maxw-s.docscroll.scrollLeft():M=s.docscroll.scrollLeft(),M},this.setScrollLeft=function(M){return setTimeout(function(){if(s)return s.hasreversehr&&(s.detected.ismozilla?M=-(s.page.maxw-M):M=s.page.maxw-M),s.docscroll.scrollLeft(M)},1)};this.getTarget=function(M){return M?M.target?M.target:M.srcElement?M.srcElement:!1:!1},this.hasParent=function(M,D){if(!M)return!1;for(var Y=M.target||M.srcElement||M||!1;Y&&Y.id!=D;)Y=Y.parentNode||!1;return Y!==!1};function Mt(){var M=s.win;if("zIndex"in M)return M.zIndex();for(;M.length>0;){if(M[0].nodeType==9)return!1;var D=M.css("zIndex");if(!isNaN(D)&&D!==0)return parseInt(D);M=M.parent()}return!1}var Ht={thin:1,medium:3,thick:5};function Qt(M,D,Y){var it=M.css(D),vt=parseFloat(it);if(isNaN(vt)){vt=Ht[it]||0;var st=vt==3?Y?s.win.outerHeight()-s.win.innerHeight():s.win.outerWidth()-s.win.innerWidth():1;return s.isie8&&vt&&(vt+=1),st?vt:0}return vt}this.getDocumentScrollOffset=function(){return{top:k.pageYOffset||y.documentElement.scrollTop,left:k.pageXOffset||y.documentElement.scrollLeft}},this.getOffset=function(){if(s.isfixed){var M=s.win.offset(),D=s.getDocumentScrollOffset();return M.top-=D.top,M.left-=D.left,M}var Y=s.win.offset();if(!s.viewport)return Y;var it=s.viewport.offset();return{top:Y.top-it.top,left:Y.left-it.left}},this.updateScrollBar=function(M){var D,Y;if(s.ishwscroll)s.rail.css({height:s.win.innerHeight()-(x.railpadding.top+x.railpadding.bottom)}),s.railh&&s.railh.css({width:s.win.innerWidth()-(x.railpadding.left+x.railpadding.right)});else{var it=s.getOffset();if(D={top:it.top,left:it.left-(x.railpadding.left+x.railpadding.right)},D.top+=Qt(s.win,"border-top-width",!0),D.left+=s.rail.align?s.win.outerWidth()-Qt(s.win,"border-right-width")-s.rail.width:Qt(s.win,"border-left-width"),Y=x.railoffset,Y&&(Y.top&&(D.top+=Y.top),Y.left&&(D.left+=Y.left)),s.railslocked||s.rail.css({top:D.top,left:D.left,height:(M?M.h:s.win.innerHeight())-(x.railpadding.top+x.railpadding.bottom)}),s.zoom&&s.zoom.css({top:D.top+1,left:s.rail.align==1?D.left-20:D.left+s.rail.width+4}),s.railh&&!s.railslocked){D={top:it.top,left:it.left},Y=x.railhoffset,Y&&(Y.top&&(D.top+=Y.top),Y.left&&(D.left+=Y.left));var vt=s.railh.align?D.top+Qt(s.win,"border-top-width",!0)+s.win.innerHeight()-s.railh.height:D.top+Qt(s.win,"border-top-width",!0),st=D.left+Qt(s.win,"border-left-width");s.railh.css({top:vt-(x.railpadding.top+x.railpadding.bottom),left:st,width:s.railh.width})}}},this.doRailClick=function(M,D,Y){var it,vt,st,Xt;s.railslocked||(s.cancelEvent(M),"pageY"in M||(M.pageX=M.clientX+y.documentElement.scrollLeft,M.pageY=M.clientY+y.documentElement.scrollTop),D?(it=Y?s.doScrollLeft:s.doScrollTop,st=Y?(M.pageX-s.railh.offset().left-s.cursorwidth/2)*s.scrollratio.x:(M.pageY-s.rail.offset().top-s.cursorheight/2)*s.scrollratio.y,s.unsynched("relativexy"),it(st|0)):(it=Y?s.doScrollLeftBy:s.doScrollBy,st=Y?s.scroll.x:s.scroll.y,Xt=Y?M.pageX-s.railh.offset().left:M.pageY-s.rail.offset().top,vt=Y?s.view.w:s.view.h,it(st>=Xt?vt:-vt)))},s.newscrolly=s.newscrollx=0,s.hasanimationframe="requestAnimationFrame"in k,s.hascancelanimationframe="cancelAnimationFrame"in k,s.hasborderbox=!1,this.init=function(){if(s.saved.css=[],O.isoperamini||O.isandroid&&!("hidden"in y))return!0;x.emulatetouch=x.emulatetouch||x.touchbehavior,s.hasborderbox=k.getComputedStyle&&k.getComputedStyle(y.body)["box-sizing"]==="border-box";var M={"overflow-y":"hidden"};if((O.isie11||O.isie10)&&(M["-ms-overflow-style"]="none"),s.ishwscroll&&(this.doc.css(O.transitionstyle,O.prefixstyle+"transform 0ms ease-out"),O.transitionend&&s.bind(s.doc,O.transitionend,s.onScrollTransitionEnd,!1)),s.zindex="auto",!s.ispage&&x.zindex=="auto"?s.zindex=Mt()||"auto":s.zindex=x.zindex,!s.ispage&&s.zindex!="auto"&&s.zindex>f&&(f=s.zindex),s.isie&&s.zindex===0&&x.zindex=="auto"&&(s.zindex="auto"),!s.ispage||!O.isieold){var D=s.docscroll;s.ispage&&(D=s.haswrapper?s.win:s.doc),s.css(D,M),s.ispage&&(O.isie11||O.isie)&&s.css(p("html"),M),O.isios&&!s.ispage&&!s.haswrapper&&s.css(ht,{"-webkit-overflow-scrolling":"touch"});var Y=p(y.createElement("div"));Y.css({position:"relative",top:0,float:"right",width:x.cursorwidth,height:0,"background-color":x.cursorcolor,border:x.cursorborder,"background-clip":"padding-box","-webkit-border-radius":x.cursorborderradius,"-moz-border-radius":x.cursorborderradius,"border-radius":x.cursorborderradius}),Y.addClass("nicescroll-cursors"),s.cursor=Y;var it=p(y.createElement("div"));it.attr("id",s.id),it.addClass("nicescroll-rails nicescroll-rails-vr");var vt,st,Xt=["left","right","top","bottom"];for(var Me in Xt)st=Xt[Me],vt=x.railpadding[st]||0,vt&&it.css("padding-"+st,vt+"px");it.append(Y),it.width=Math.max(parseFloat(x.cursorwidth),Y.outerWidth()),it.css({width:it.width+"px",zIndex:s.zindex,background:x.background,cursor:"default"}),it.visibility=!0,it.scrollable=!0,it.align=x.railalign=="left"?0:1,s.rail=it,s.rail.drag=!1;var Re=!1;x.boxzoom&&!s.ispage&&!O.isieold&&(Re=y.createElement("div"),s.bind(Re,"click",s.doZoom),s.bind(Re,"mouseenter",function(){s.zoom.css("opacity",x.cursoropacitymax)}),s.bind(Re,"mouseleave",function(){s.zoom.css("opacity",x.cursoropacitymin)}),s.zoom=p(Re),s.zoom.css({cursor:"pointer",zIndex:s.zindex,backgroundImage:"url("+x.scriptpath+"zoomico.png)",height:18,width:18,backgroundPosition:"0 0"}),x.dblclickzoom&&s.bind(s.win,"dblclick",s.doZoom),O.cantouch&&x.gesturezoom&&(s.ongesturezoom=function(X){return X.scale>1.5&&s.doZoomIn(X),X.scale<.8&&s.doZoomOut(X),s.cancelEvent(X)},s.bind(s.win,"gestureend",s.ongesturezoom))),s.railh=!1;var ee;if(x.horizrailenabled&&(s.css(D,{overflowX:"hidden"}),Y=p(y.createElement("div")),Y.css({position:"absolute",top:0,height:x.cursorwidth,width:0,backgroundColor:x.cursorcolor,border:x.cursorborder,backgroundClip:"padding-box","-webkit-border-radius":x.cursorborderradius,"-moz-border-radius":x.cursorborderradius,"border-radius":x.cursorborderradius}),O.isieold&&Y.css("overflow","hidden"),Y.addClass("nicescroll-cursors"),s.cursorh=Y,ee=p(y.createElement("div")),ee.attr("id",s.id+"-hr"),ee.addClass("nicescroll-rails nicescroll-rails-hr"),ee.height=Math.max(parseFloat(x.cursorwidth),Y.outerHeight()),ee.css({height:ee.height+"px",zIndex:s.zindex,background:x.background}),ee.append(Y),ee.visibility=!0,ee.scrollable=!0,ee.align=x.railvalign=="top"?0:1,s.railh=ee,s.railh.drag=!1),s.ispage)it.css({position:"fixed",top:0,height:"100%"}),it.css(it.align?{right:0}:{left:0}),s.body.append(it),s.railh&&(ee.css({position:"fixed",left:0,width:"100%"}),ee.css(ee.align?{bottom:0}:{top:0}),s.body.append(ee));else{if(s.ishwscroll){s.win.css("position")=="static"&&s.css(s.win,{position:"relative"});var Xe=s.win[0].nodeName=="HTML"?s.body:s.win;p(Xe).scrollTop(0).scrollLeft(0),s.zoom&&(s.zoom.css({position:"absolute",top:1,right:0,"margin-right":it.width+4}),Xe.append(s.zoom)),it.css({position:"absolute",top:0}),it.css(it.align?{right:0}:{left:0}),Xe.append(it),ee&&(ee.css({position:"absolute",left:0,bottom:0}),ee.css(ee.align?{bottom:0}:{top:0}),Xe.append(ee))}else{s.isfixed=s.win.css("position")=="fixed";var Qe=s.isfixed?"fixed":"absolute";s.isfixed||(s.viewport=s.getViewport(s.win[0])),s.viewport&&(s.body=s.viewport,/fixed|absolute/.test(s.viewport.css("position"))||s.css(s.viewport,{position:"relative"})),it.css({position:Qe}),s.zoom&&s.zoom.css({position:Qe}),s.updateScrollBar(),s.body.append(it),s.zoom&&s.body.append(s.zoom),s.railh&&(ee.css({position:Qe}),s.body.append(ee))}O.isios&&s.css(s.win,{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),x.disableoutline&&(O.isie&&s.win.attr("hideFocus","true"),O.iswebkit&&s.win.css("outline","none"))}if(x.autohidemode===!1?(s.autohidedom=!1,s.rail.css({opacity:x.cursoropacitymax}),s.railh&&s.railh.css({opacity:x.cursoropacitymax})):x.autohidemode===!0||x.autohidemode==="leave"?(s.autohidedom=p().add(s.rail),O.isie8&&(s.autohidedom=s.autohidedom.add(s.cursor)),s.railh&&(s.autohidedom=s.autohidedom.add(s.railh)),s.railh&&O.isie8&&(s.autohidedom=s.autohidedom.add(s.cursorh))):x.autohidemode=="scroll"?(s.autohidedom=p().add(s.rail),s.railh&&(s.autohidedom=s.autohidedom.add(s.railh))):x.autohidemode=="cursor"?(s.autohidedom=p().add(s.cursor),s.railh&&(s.autohidedom=s.autohidedom.add(s.cursorh))):x.autohidemode=="hidden"&&(s.autohidedom=!1,s.hide(),s.railslocked=!1),O.cantouch||s.istouchcapable||x.emulatetouch||O.hasmstouch){s.scrollmom=new v(s),s.ontouchstart=function(X){if(s.locked||X.pointerType&&(X.pointerType==="mouse"||X.pointerType===X.MSPOINTER_TYPE_MOUSE))return!1;if(s.hasmoving=!1,s.scrollmom.timer&&(s.triggerScrollEnd(),s.scrollmom.stop()),!s.railslocked){var Ut=s.getTarget(X);if(Ut){var ie=/INPUT/i.test(Ut.nodeName)&&/range/i.test(Ut.type);if(ie)return s.stopPropagation(X)}var $e=X.type==="mousedown";if(!("clientX"in X)&&"changedTouches"in X&&(X.clientX=X.changedTouches[0].clientX,X.clientY=X.changedTouches[0].clientY),s.forcescreen){var Ge=X;X={original:X.original?X.original:X},X.clientX=Ge.screenX,X.clientY=Ge.screenY}if(s.rail.drag={x:X.clientX,y:X.clientY,sx:s.scroll.x,sy:s.scroll.y,st:s.getScrollTop(),sl:s.getScrollLeft(),pt:2,dl:!1,tg:Ut},s.ispage||!x.directionlockdeadzone)s.rail.drag.dl="f";else{var Ue={w:E.width(),h:E.height()},ke=s.getContentSize(),Pt=ke.h-Ue.h,ne=ke.w-Ue.w;s.rail.scrollable&&!s.railh.scrollable?s.rail.drag.ck=Pt>0?"v":!1:!s.rail.scrollable&&s.railh.scrollable?s.rail.drag.ck=ne>0?"h":!1:s.rail.drag.ck=!1}if(x.emulatetouch&&s.isiframe&&O.isie){var xe=s.win.position();s.rail.drag.x+=xe.left,s.rail.drag.y+=xe.top}if(s.hasmoving=!1,s.lastmouseup=!1,s.scrollmom.reset(X.clientX,X.clientY),Ut&&$e){var ve=/INPUT|SELECT|BUTTON|TEXTAREA/i.test(Ut.nodeName);if(!ve)return O.hasmousecapture&&Ut.setCapture(),x.emulatetouch?(Ut.onclick&&!Ut._onclick&&(Ut._onclick=Ut.onclick,Ut.onclick=function(zt){if(s.hasmoving)return!1;Ut._onclick.call(this,zt)}),s.cancelEvent(X)):s.stopPropagation(X);/SUBMIT|CANCEL|BUTTON/i.test(p(Ut).attr("type"))&&(s.preventclick={tg:Ut,click:!1})}}},s.ontouchend=function(X){if(!s.rail.drag)return!0;if(s.rail.drag.pt==2){if(X.pointerType&&(X.pointerType==="mouse"||X.pointerType===X.MSPOINTER_TYPE_MOUSE))return!1;s.rail.drag=!1;var Ut=X.type==="mouseup";if(s.hasmoving&&(s.scrollmom.doMomentum(),s.lastmouseup=!0,s.hideCursor(),O.hasmousecapture&&y.releaseCapture(),Ut))return s.cancelEvent(X)}else if(s.rail.drag.pt==1)return s.onmouseup(X)};var Kn=x.emulatetouch&&s.isiframe&&!O.hasmousecapture,Ze=x.directionlockdeadzone*.3|0;s.ontouchmove=function(X,Ut){if(!s.rail.drag||X.targetTouches&&x.preventmultitouchscrolling&&X.targetTouches.length>1||X.pointerType&&(X.pointerType==="mouse"||X.pointerType===X.MSPOINTER_TYPE_MOUSE))return!0;if(s.rail.drag.pt==2){"changedTouches"in X&&(X.clientX=X.changedTouches[0].clientX,X.clientY=X.changedTouches[0].clientY);var ie,$e;if($e=ie=0,Kn&&!Ut){var Ge=s.win.position();$e=-Ge.left,ie=-Ge.top}var Ue=X.clientY+ie,ke=Ue-s.rail.drag.y,Pt=X.clientX+$e,ne=Pt-s.rail.drag.x,xe=s.rail.drag.st-ke;if(s.ishwscroll&&x.bouncescroll)xe<0?xe=Math.round(xe/2):xe>s.page.maxh&&(xe=s.page.maxh+Math.round((xe-s.page.maxh)/2));else if(xe<0?(xe=0,Ue=0):xe>s.page.maxh&&(xe=s.page.maxh,Ue=0),Ue===0&&!s.hasmoving)return s.ispage||(s.rail.drag=!1),!0;var ve=s.getScrollLeft();if(s.railh&&s.railh.scrollable&&(ve=s.isrtlmode?ne-s.rail.drag.sl:s.rail.drag.sl-ne,s.ishwscroll&&x.bouncescroll?ve<0?ve=Math.round(ve/2):ve>s.page.maxw&&(ve=s.page.maxw+Math.round((ve-s.page.maxw)/2)):(ve<0&&(ve=0,Pt=0),ve>s.page.maxw&&(ve=s.page.maxw,Pt=0))),!s.hasmoving){if(s.rail.drag.y===X.clientY&&s.rail.drag.x===X.clientX)return s.cancelEvent(X);var zt=Math.abs(ke),Ft=Math.abs(ne),re=x.directionlockdeadzone;if(s.rail.drag.ck?s.rail.drag.ck=="v"?Ft>re&&zt<=Ze?s.rail.drag=!1:zt>re&&(s.rail.drag.dl="v"):s.rail.drag.ck=="h"&&(zt>re&&Ft<=Ze?s.rail.drag=!1:Ft>re&&(s.rail.drag.dl="h")):zt>re&&Ft>re?s.rail.drag.dl="f":zt>re?s.rail.drag.dl=Ft>Ze?"f":"v":Ft>re&&(s.rail.drag.dl=zt>Ze?"f":"h"),!s.rail.drag.dl)return s.cancelEvent(X);s.triggerScrollStart(X.clientX,X.clientY,0,0,0),s.hasmoving=!0}return s.preventclick&&!s.preventclick.click&&(s.preventclick.click=s.preventclick.tg.onclick||!1,s.preventclick.tg.onclick=s.onpreventclick),s.rail.drag.dl&&(s.rail.drag.dl=="v"?ve=s.rail.drag.sl:s.rail.drag.dl=="h"&&(xe=s.rail.drag.st)),s.synched("touchmove",function(){s.rail.drag&&s.rail.drag.pt==2&&(s.prepareTransition&&s.resetTransition(),s.rail.scrollable&&s.setScrollTop(xe),s.scrollmom.update(Pt,Ue),s.railh&&s.railh.scrollable?(s.setScrollLeft(ve),s.showCursor(xe,ve)):s.showCursor(xe),O.isie10&&y.selection.clear())}),s.cancelEvent(X)}else if(s.rail.drag.pt==1)return s.onmousemove(X)},s.ontouchstartCursor=function(X,Ut){if(!(s.rail.drag&&s.rail.drag.pt!=3)){if(s.locked)return s.cancelEvent(X);s.cancelScroll(),s.rail.drag={x:X.touches[0].clientX,y:X.touches[0].clientY,sx:s.scroll.x,sy:s.scroll.y,pt:3,hr:!!Ut};var ie=s.getTarget(X);return!s.ispage&&O.hasmousecapture&&ie.setCapture(),s.isiframe&&!O.hasmousecapture&&(s.saved.csspointerevents=s.doc.css("pointer-events"),s.css(s.doc,{"pointer-events":"none"})),s.cancelEvent(X)}},s.ontouchendCursor=function(X){if(s.rail.drag)return O.hasmousecapture&&y.releaseCapture(),s.isiframe&&!O.hasmousecapture&&s.doc.css("pointer-events",s.saved.csspointerevents),s.rail.drag.pt!=3?void 0:(s.rail.drag=!1,s.cancelEvent(X))},s.ontouchmoveCursor=function(X){if(s.rail.drag){if(s.rail.drag.pt!=3)return;if(s.cursorfreezed=!0,s.rail.drag.hr){s.scroll.x=s.rail.drag.sx+(X.touches[0].clientX-s.rail.drag.x),s.scroll.x<0&&(s.scroll.x=0);var Ut=s.scrollvaluemaxw;s.scroll.x>Ut&&(s.scroll.x=Ut)}else{s.scroll.y=s.rail.drag.sy+(X.touches[0].clientY-s.rail.drag.y),s.scroll.y<0&&(s.scroll.y=0);var ie=s.scrollvaluemax;s.scroll.y>ie&&(s.scroll.y=ie)}return s.synched("touchmove",function(){s.rail.drag&&s.rail.drag.pt==3&&(s.showCursor(),s.rail.drag.hr?s.doScrollLeft(Math.round(s.scroll.x*s.scrollratio.x),x.cursordragspeed):s.doScrollTop(Math.round(s.scroll.y*s.scrollratio.y),x.cursordragspeed))}),s.cancelEvent(X)}}}if(s.onmousedown=function(X,Ut){if(!(s.rail.drag&&s.rail.drag.pt!=1)){if(s.railslocked)return s.cancelEvent(X);s.cancelScroll(),s.rail.drag={x:X.clientX,y:X.clientY,sx:s.scroll.x,sy:s.scroll.y,pt:1,hr:Ut||!1};var ie=s.getTarget(X);return O.hasmousecapture&&ie.setCapture(),s.isiframe&&!O.hasmousecapture&&(s.saved.csspointerevents=s.doc.css("pointer-events"),s.css(s.doc,{"pointer-events":"none"})),s.hasmoving=!1,s.cancelEvent(X)}},s.onmouseup=function(X){if(s.rail.drag)return s.rail.drag.pt!=1?!0:(O.hasmousecapture&&y.releaseCapture(),s.isiframe&&!O.hasmousecapture&&s.doc.css("pointer-events",s.saved.csspointerevents),s.rail.drag=!1,s.cursorfreezed=!1,s.hasmoving&&s.triggerScrollEnd(),s.cancelEvent(X))},s.onmousemove=function(X){if(s.rail.drag){if(s.rail.drag.pt!==1)return;if(O.ischrome&&X.which===0)return s.onmouseup(X);if(s.cursorfreezed=!0,s.hasmoving||s.triggerScrollStart(X.clientX,X.clientY,0,0,0),s.hasmoving=!0,s.rail.drag.hr){s.scroll.x=s.rail.drag.sx+(X.clientX-s.rail.drag.x),s.scroll.x<0&&(s.scroll.x=0);var Ut=s.scrollvaluemaxw;s.scroll.x>Ut&&(s.scroll.x=Ut)}else{s.scroll.y=s.rail.drag.sy+(X.clientY-s.rail.drag.y),s.scroll.y<0&&(s.scroll.y=0);var ie=s.scrollvaluemax;s.scroll.y>ie&&(s.scroll.y=ie)}return s.synched("mousemove",function(){s.cursorfreezed&&(s.showCursor(),s.rail.drag.hr?s.scrollLeft(Math.round(s.scroll.x*s.scrollratio.x)):s.scrollTop(Math.round(s.scroll.y*s.scrollratio.y)))}),s.cancelEvent(X)}else s.checkarea=0},O.cantouch||x.emulatetouch)s.onpreventclick=function(X){if(s.preventclick)return s.preventclick.tg.onclick=s.preventclick.click,s.preventclick=!1,s.cancelEvent(X)},s.onclick=O.isios?!1:function(X){return s.lastmouseup?(s.lastmouseup=!1,s.cancelEvent(X)):!0},x.grabcursorenabled&&O.cursorgrabvalue&&(s.css(s.ispage?s.doc:s.win,{cursor:O.cursorgrabvalue}),s.css(s.rail,{cursor:O.cursorgrabvalue}));else{var xn=function(X){if(s.selectiondrag){if(X){var Ut=s.win.outerHeight(),ie=X.pageY-s.selectiondrag.top;ie>0&&ie<Ut&&(ie=0),ie>=Ut&&(ie-=Ut),s.selectiondrag.df=ie}if(s.selectiondrag.df!==0){var $e=-(s.selectiondrag.df*2/6)|0;s.doScrollBy($e),s.debounced("doselectionscroll",function(){xn()},50)}}};"getSelection"in y?s.hasTextSelected=function(){return y.getSelection().rangeCount>0}:"selection"in y?s.hasTextSelected=function(){return y.selection.type!="None"}:s.hasTextSelected=function(){return!1},s.onselectionstart=function(X){s.ispage||(s.selectiondrag=s.win.offset())},s.onselectionend=function(X){s.selectiondrag=!1},s.onselectiondrag=function(X){s.selectiondrag&&s.hasTextSelected()&&s.debounced("selectionscroll",function(){xn(X)},250)}}if(O.hasw3ctouch?(s.css(s.ispage?p("html"):s.win,{"touch-action":"none"}),s.css(s.rail,{"touch-action":"none"}),s.css(s.cursor,{"touch-action":"none"}),s.bind(s.win,"pointerdown",s.ontouchstart),s.bind(y,"pointerup",s.ontouchend),s.delegate(y,"pointermove",s.ontouchmove)):O.hasmstouch?(s.css(s.ispage?p("html"):s.win,{"-ms-touch-action":"none"}),s.css(s.rail,{"-ms-touch-action":"none"}),s.css(s.cursor,{"-ms-touch-action":"none"}),s.bind(s.win,"MSPointerDown",s.ontouchstart),s.bind(y,"MSPointerUp",s.ontouchend),s.delegate(y,"MSPointerMove",s.ontouchmove),s.bind(s.cursor,"MSGestureHold",function(X){X.preventDefault()}),s.bind(s.cursor,"contextmenu",function(X){X.preventDefault()})):O.cantouch&&(s.bind(s.win,"touchstart",s.ontouchstart,!1,!0),s.bind(y,"touchend",s.ontouchend,!1,!0),s.bind(y,"touchcancel",s.ontouchend,!1,!0),s.delegate(y,"touchmove",s.ontouchmove,!1,!0)),x.emulatetouch&&(s.bind(s.win,"mousedown",s.ontouchstart,!1,!0),s.bind(y,"mouseup",s.ontouchend,!1,!0),s.bind(y,"mousemove",s.ontouchmove,!1,!0)),(x.cursordragontouch||!O.cantouch&&!x.emulatetouch)&&(s.rail.css({cursor:"default"}),s.railh&&s.railh.css({cursor:"default"}),s.jqbind(s.rail,"mouseenter",function(){if(!s.ispage&&!s.win.is(":visible"))return!1;s.canshowonmouseevent&&s.showCursor(),s.rail.active=!0}),s.jqbind(s.rail,"mouseleave",function(){s.rail.active=!1,s.rail.drag||s.hideCursor()}),x.sensitiverail&&(s.bind(s.rail,"click",function(X){s.doRailClick(X,!1,!1)}),s.bind(s.rail,"dblclick",function(X){s.doRailClick(X,!0,!1)}),s.bind(s.cursor,"click",function(X){s.cancelEvent(X)}),s.bind(s.cursor,"dblclick",function(X){s.cancelEvent(X)})),s.railh&&(s.jqbind(s.railh,"mouseenter",function(){if(!s.ispage&&!s.win.is(":visible"))return!1;s.canshowonmouseevent&&s.showCursor(),s.rail.active=!0}),s.jqbind(s.railh,"mouseleave",function(){s.rail.active=!1,s.rail.drag||s.hideCursor()}),x.sensitiverail&&(s.bind(s.railh,"click",function(X){s.doRailClick(X,!1,!0)}),s.bind(s.railh,"dblclick",function(X){s.doRailClick(X,!0,!0)}),s.bind(s.cursorh,"click",function(X){s.cancelEvent(X)}),s.bind(s.cursorh,"dblclick",function(X){s.cancelEvent(X)})))),x.cursordragontouch&&(this.istouchcapable||O.cantouch)&&(s.bind(s.cursor,"touchstart",s.ontouchstartCursor),s.bind(s.cursor,"touchmove",s.ontouchmoveCursor),s.bind(s.cursor,"touchend",s.ontouchendCursor),s.cursorh&&s.bind(s.cursorh,"touchstart",function(X){s.ontouchstartCursor(X,!0)}),s.cursorh&&s.bind(s.cursorh,"touchmove",s.ontouchmoveCursor),s.cursorh&&s.bind(s.cursorh,"touchend",s.ontouchendCursor)),!x.emulatetouch&&!O.isandroid&&!O.isios?(s.bind(O.hasmousecapture?s.win:y,"mouseup",s.onmouseup),s.bind(y,"mousemove",s.onmousemove),s.onclick&&s.bind(y,"click",s.onclick),s.bind(s.cursor,"mousedown",s.onmousedown),s.bind(s.cursor,"mouseup",s.onmouseup),s.railh&&(s.bind(s.cursorh,"mousedown",function(X){s.onmousedown(X,!0)}),s.bind(s.cursorh,"mouseup",s.onmouseup)),!s.ispage&&x.enablescrollonselection&&(s.bind(s.win[0],"mousedown",s.onselectionstart),s.bind(y,"mouseup",s.onselectionend),s.bind(s.cursor,"mouseup",s.onselectionend),s.cursorh&&s.bind(s.cursorh,"mouseup",s.onselectionend),s.bind(y,"mousemove",s.onselectiondrag)),s.zoom&&(s.jqbind(s.zoom,"mouseenter",function(){s.canshowonmouseevent&&s.showCursor(),s.rail.active=!0}),s.jqbind(s.zoom,"mouseleave",function(){s.rail.active=!1,s.rail.drag||s.hideCursor()}))):(s.bind(O.hasmousecapture?s.win:y,"mouseup",s.ontouchend),s.onclick&&s.bind(y,"click",s.onclick),x.cursordragontouch?(s.bind(s.cursor,"mousedown",s.onmousedown),s.bind(s.cursor,"mouseup",s.onmouseup),s.cursorh&&s.bind(s.cursorh,"mousedown",function(X){s.onmousedown(X,!0)}),s.cursorh&&s.bind(s.cursorh,"mouseup",s.onmouseup)):(s.bind(s.rail,"mousedown",function(X){X.preventDefault()}),s.railh&&s.bind(s.railh,"mousedown",function(X){X.preventDefault()}))),x.enablemousewheel&&(s.isiframe||s.mousewheel(O.isie&&s.ispage?y:s.win,s.onmousewheel),s.mousewheel(s.rail,s.onmousewheel),s.railh&&s.mousewheel(s.railh,s.onmousewheelhr)),!s.ispage&&!O.cantouch&&!/HTML|^BODY/.test(s.win[0].nodeName)&&(s.win.attr("tabindex")||s.win.attr({tabindex:++l}),s.bind(s.win,"focus",function(X){a=s.getTarget(X).id||s.getTarget(X)||!1,s.hasfocus=!0,s.canshowonmouseevent&&s.noticeCursor()}),s.bind(s.win,"blur",function(X){a=!1,s.hasfocus=!1}),s.bind(s.win,"mouseenter",function(X){r=s.getTarget(X).id||s.getTarget(X)||!1,s.hasmousefocus=!0,s.canshowonmouseevent&&s.noticeCursor()}),s.bind(s.win,"mouseleave",function(X){r=!1,s.hasmousefocus=!1,s.rail.drag||s.hideCursor()})),s.onkeypress=function(X){if(s.railslocked&&s.page.maxh===0)return!0;X=X||k.event;var Ut=s.getTarget(X);if(Ut&&/INPUT|TEXTAREA|SELECT|OPTION/.test(Ut.nodeName)){var ie=Ut.getAttribute("type")||Ut.type||!1;if(!ie||!/submit|button|cancel/i.tp)return!0}if(p(Ut).attr("contenteditable"))return!0;if(s.hasfocus||s.hasmousefocus&&!a||s.ispage&&!a&&!r){var $e=X.keyCode;if(s.railslocked&&$e!=27)return s.cancelEvent(X);var Ge=X.ctrlKey||!1,Ue=X.shiftKey||!1,ke=!1;switch($e){case 38:case 63233:s.doScrollBy(72),ke=!0;break;case 40:case 63235:s.doScrollBy(-72),ke=!0;break;case 37:case 63232:s.railh&&(Ge?s.doScrollLeft(0):s.doScrollLeftBy(72),ke=!0);break;case 39:case 63234:s.railh&&(Ge?s.doScrollLeft(s.page.maxw):s.doScrollLeftBy(-72),ke=!0);break;case 33:case 63276:s.doScrollBy(s.view.h),ke=!0;break;case 34:case 63277:s.doScrollBy(-s.view.h),ke=!0;break;case 36:case 63273:s.railh&&Ge?s.doScrollPos(0,0):s.doScrollTo(0),ke=!0;break;case 35:case 63275:s.railh&&Ge?s.doScrollPos(s.page.maxw,s.page.maxh):s.doScrollTo(s.page.maxh),ke=!0;break;case 32:x.spacebarenabled&&(Ue?s.doScrollBy(s.view.h):s.doScrollBy(-s.view.h),ke=!0);break;case 27:s.zoomactive&&(s.doZoom(),ke=!0);break}if(ke)return s.cancelEvent(X)}},x.enablekeyboard&&s.bind(y,O.isopera&&!O.isopera12?"keypress":"keydown",s.onkeypress),s.bind(y,"keydown",function(X){var Ut=X.ctrlKey||!1;Ut&&(s.wheelprevented=!0)}),s.bind(y,"keyup",function(X){var Ut=X.ctrlKey||!1;Ut||(s.wheelprevented=!1)}),s.bind(k,"blur",function(X){s.wheelprevented=!1}),s.bind(k,"resize",s.onscreenresize),s.bind(k,"orientationchange",s.onscreenresize),s.bind(k,"load",s.lazyResize),O.ischrome&&!s.ispage&&!s.haswrapper){var Bn=s.win.attr("style"),qn=parseFloat(s.win.css("width"))+1;s.win.css("width",qn),s.synched("chromefix",function(){s.win.attr("style",Bn)})}if(s.onAttributeChange=function(X){s.lazyResize(s.isieold?250:30)},x.enableobserver&&(!s.isie11&&F!==!1&&(s.observerbody=new F(function(X){if(X.forEach(function(Ut){if(Ut.type=="attributes")return ht.hasClass("modal-open")&&ht.hasClass("modal-dialog")&&!p.contains(p(".modal-dialog")[0],s.doc[0])?s.hide():s.show()}),s.me.clientWidth!=s.page.width||s.me.clientHeight!=s.page.height)return s.lazyResize(30)}),s.observerbody.observe(y.body,{childList:!0,subtree:!0,characterData:!1,attributes:!0,attributeFilter:["class"]})),!s.ispage&&!s.haswrapper)){var Vt=s.win[0];F!==!1?(s.observer=new F(function(X){X.forEach(s.onAttributeChange)}),s.observer.observe(Vt,{childList:!0,characterData:!1,attributes:!0,subtree:!1}),s.observerremover=new F(function(X){X.forEach(function(Ut){if(Ut.removedNodes.length>0){for(var ie in Ut.removedNodes)if(s&&Ut.removedNodes[ie]===Vt)return s.remove()}})}),s.observerremover.observe(Vt.parentNode,{childList:!0,characterData:!1,attributes:!1,subtree:!1})):(s.bind(Vt,O.isie&&!O.isie9?"propertychange":"DOMAttrModified",s.onAttributeChange),O.isie9&&Vt.attachEvent("onpropertychange",s.onAttributeChange),s.bind(Vt,"DOMNodeRemoved",function(X){X.target===Vt&&s.remove()}))}!s.ispage&&x.boxzoom&&s.bind(k,"resize",s.resizeZoom),s.istextarea&&(s.bind(s.win,"keydown",s.lazyResize),s.bind(s.win,"mouseup",s.lazyResize)),s.lazyResize(30)}if(this.doc[0].nodeName=="IFRAME"){var Nn=function(){s.iframexd=!1;var X;try{X="contentDocument"in this?this.contentDocument:this.contentWindow._doc;var Ut=X.domain}catch{s.iframexd=!0,X=!1}if(s.iframexd)return"console"in k&&console.log("NiceScroll error: policy restriced iframe"),!0;if(s.forcescreen=!0,s.isiframe&&(s.iframe={doc:p(X),html:s.doc.contents().find("html")[0],body:s.doc.contents().find("body")[0]},s.getContentSize=function(){return{w:Math.max(s.iframe.html.scrollWidth,s.iframe.body.scrollWidth),h:Math.max(s.iframe.html.scrollHeight,s.iframe.body.scrollHeight)}},s.docscroll=p(s.iframe.body)),!O.isios&&x.iframeautoresize&&!s.isiframe){s.win.scrollTop(0),s.doc.height("");var ie=Math.max(X.getElementsByTagName("html")[0].scrollHeight,X.body.scrollHeight);s.doc.height(ie)}s.lazyResize(30),s.css(p(s.iframe.body),M),O.isios&&s.haswrapper&&s.css(p(X.body),{"-webkit-transform":"translate3d(0,0,0)"}),"contentWindow"in this?s.bind(this.contentWindow,"scroll",s.onscroll):s.bind(X,"scroll",s.onscroll),x.enablemousewheel&&s.mousewheel(X,s.onmousewheel),x.enablekeyboard&&s.bind(X,O.isopera?"keypress":"keydown",s.onkeypress),O.cantouch?(s.bind(X,"touchstart",s.ontouchstart),s.bind(X,"touchmove",s.ontouchmove)):x.emulatetouch&&(s.bind(X,"mousedown",s.ontouchstart),s.bind(X,"mousemove",function($e){return s.ontouchmove($e,!0)}),x.grabcursorenabled&&O.cursorgrabvalue&&s.css(p(X.body),{cursor:O.cursorgrabvalue})),s.bind(X,"mouseup",s.ontouchend),s.zoom&&(x.dblclickzoom&&s.bind(X,"dblclick",s.doZoom),s.ongesturezoom&&s.bind(X,"gestureend",s.ongesturezoom))};this.doc[0].readyState&&this.doc[0].readyState==="complete"&&setTimeout(function(){Nn.call(s.doc[0],!1)},500),s.bind(this.doc,"load",Nn)}},this.showCursor=function(M,D){if(s.cursortimeout&&(clearTimeout(s.cursortimeout),s.cursortimeout=0),!!s.rail){if(s.autohidedom&&(s.autohidedom.stop().css({opacity:x.cursoropacitymax}),s.cursoractive=!0),(!s.rail.drag||s.rail.drag.pt!=1)&&(M!==void 0&&M!==!1&&(s.scroll.y=M/s.scrollratio.y|0),D!==void 0&&(s.scroll.x=D/s.scrollratio.x|0)),s.cursor.css({height:s.cursorheight,top:s.scroll.y}),s.cursorh){var Y=s.hasreversehr?s.scrollvaluemaxw-s.scroll.x:s.scroll.x;s.cursorh.css({width:s.cursorwidth,left:!s.rail.align&&s.rail.visibility?Y+s.rail.width:Y}),s.cursoractive=!0}s.zoom&&s.zoom.stop().css({opacity:x.cursoropacitymax})}},this.hideCursor=function(M){s.cursortimeout||s.rail&&s.autohidedom&&(s.hasmousefocus&&x.autohidemode==="leave"||(s.cursortimeout=setTimeout(function(){(!s.rail.active||!s.showonmouseevent)&&(s.autohidedom.stop().animate({opacity:x.cursoropacitymin}),s.zoom&&s.zoom.stop().animate({opacity:x.cursoropacitymin}),s.cursoractive=!1),s.cursortimeout=0},M||x.hidecursordelay)))},this.noticeCursor=function(M,D,Y){s.showCursor(D,Y),s.rail.active||s.hideCursor(M)},this.getContentSize=s.ispage?function(){return{w:Math.max(y.body.scrollWidth,y.documentElement.scrollWidth),h:Math.max(y.body.scrollHeight,y.documentElement.scrollHeight)}}:s.haswrapper?function(){return{w:s.doc[0].offsetWidth,h:s.doc[0].offsetHeight}}:function(){return{w:s.docscroll[0].scrollWidth,h:s.docscroll[0].scrollHeight}},this.onResize=function(M,D){if(!s||!s.win)return!1;var Y=s.page.maxh,it=s.page.maxw,vt=s.view.h,st=s.view.w;if(s.view={w:s.ispage?s.win.width():s.win[0].clientWidth,h:s.ispage?s.win.height():s.win[0].clientHeight},s.page=D||s.getContentSize(),s.page.maxh=Math.max(0,s.page.h-s.view.h),s.page.maxw=Math.max(0,s.page.w-s.view.w),s.page.maxh==Y&&s.page.maxw==it&&s.view.w==st&&s.view.h==vt){if(s.ispage)return s;var Xt=s.win.offset();if(s.lastposition){var Me=s.lastposition;if(Me.top==Xt.top&&Me.left==Xt.left)return s}s.lastposition=Xt}if(s.page.maxh===0?(s.hideRail(),s.scrollvaluemax=0,s.scroll.y=0,s.scrollratio.y=0,s.cursorheight=0,s.setScrollTop(0),s.rail&&(s.rail.scrollable=!1)):(s.page.maxh-=x.railpadding.top+x.railpadding.bottom,s.rail.scrollable=!0),s.page.maxw===0?(s.hideRailHr(),s.scrollvaluemaxw=0,s.scroll.x=0,s.scrollratio.x=0,s.cursorwidth=0,s.setScrollLeft(0),s.railh&&(s.railh.scrollable=!1)):(s.page.maxw-=x.railpadding.left+x.railpadding.right,s.railh&&(s.railh.scrollable=x.horizrailenabled)),s.railslocked=s.locked||s.page.maxh===0&&s.page.maxw===0,s.railslocked)return s.ispage||s.updateScrollBar(s.view),!1;s.hidden||(s.rail.visibility||s.showRail(),s.railh&&!s.railh.visibility&&s.showRailHr()),s.istextarea&&s.win.css("resize")&&s.win.css("resize")!="none"&&(s.view.h-=20),s.cursorheight=Math.min(s.view.h,Math.round(s.view.h*(s.view.h/s.page.h))),s.cursorheight=x.cursorfixedheight?x.cursorfixedheight:Math.max(x.cursorminheight,s.cursorheight),s.cursorwidth=Math.min(s.view.w,Math.round(s.view.w*(s.view.w/s.page.w))),s.cursorwidth=x.cursorfixedheight?x.cursorfixedheight:Math.max(x.cursorminheight,s.cursorwidth),s.scrollvaluemax=s.view.h-s.cursorheight-(x.railpadding.top+x.railpadding.bottom),s.hasborderbox||(s.scrollvaluemax-=s.cursor[0].offsetHeight-s.cursor[0].clientHeight),s.railh&&(s.railh.width=s.page.maxh>0?s.view.w-s.rail.width:s.view.w,s.scrollvaluemaxw=s.railh.width-s.cursorwidth-(x.railpadding.left+x.railpadding.right)),s.ispage||s.updateScrollBar(s.view),s.scrollratio={x:s.page.maxw/s.scrollvaluemaxw,y:s.page.maxh/s.scrollvaluemax};var Re=s.getScrollTop();return Re>s.page.maxh?s.doScrollTop(s.page.maxh):(s.scroll.y=s.getScrollTop()/s.scrollratio.y|0,s.scroll.x=s.getScrollLeft()/s.scrollratio.x|0,s.cursoractive&&s.noticeCursor()),s.scroll.y&&s.getScrollTop()===0&&s.doScrollTo(s.scroll.y*s.scrollratio.y|0),s},this.resize=s.onResize;var de=0;this.onscreenresize=function(M){clearTimeout(de);var D=!s.ispage&&!s.haswrapper;D&&s.hideRails(),de=setTimeout(function(){s&&(D&&s.showRails(),s.resize()),de=0},120)},this.lazyResize=function(M){return clearTimeout(de),M=isNaN(M)?240:M,de=setTimeout(function(){s&&s.resize(),de=0},M),s};function me(M,D,Y,it){s._bind(M,D,function(vt){vt=vt||k.event;var st={original:vt,target:vt.target||vt.srcElement,type:"wheel",deltaMode:vt.type=="MozMousePixelScroll"?0:1,deltaX:0,deltaZ:0,preventDefault:function(){return vt.preventDefault?vt.preventDefault():vt.returnValue=!1,!1},stopImmediatePropagation:function(){vt.stopImmediatePropagation?vt.stopImmediatePropagation():vt.cancelBubble=!0}};return D=="mousewheel"?(vt.wheelDeltaX&&(st.deltaX=-1/40*vt.wheelDeltaX),vt.wheelDeltaY&&(st.deltaY=-1/40*vt.wheelDeltaY),!st.deltaY&&!st.deltaX&&(st.deltaY=-1/40*vt.wheelDelta)):st.deltaY=vt.detail,Y.call(M,st)},it)}this.jqbind=function(M,D,Y){s.events.push({e:M,n:D,f:Y,q:!0}),p(M).on(D,Y)},this.mousewheel=function(M,D,Y){var it="jquery"in M?M[0]:M;if("onwheel"in y.createElement("div"))s._bind(it,"wheel",D,Y||!1);else{var vt=y.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll";me(it,vt,D,Y||!1),vt=="DOMMouseScroll"&&me(it,"MozMousePixelScroll",D,Y||!1)}};var Pe=!1;if(O.haseventlistener){try{var ln=Object.defineProperty({},"passive",{get:function(){Pe=!0}});k.addEventListener("test",null,ln)}catch{}this.stopPropagation=function(M){return M&&(M=M.original?M.original:M,M.stopPropagation()),!1},this.cancelEvent=function(M){return M.cancelable&&M.preventDefault(),M.stopImmediatePropagation(),M.preventManipulation&&M.preventManipulation(),!1}}else Event.prototype.preventDefault=function(){this.returnValue=!1},Event.prototype.stopPropagation=function(){this.cancelBubble=!0},k.constructor.prototype.addEventListener=y.constructor.prototype.addEventListener=Element.prototype.addEventListener=function(M,D,Y){this.attachEvent("on"+M,D)},k.constructor.prototype.removeEventListener=y.constructor.prototype.removeEventListener=Element.prototype.removeEventListener=function(M,D,Y){this.detachEvent("on"+M,D)},this.cancelEvent=function(M){return M=M||k.event,M&&(M.cancelBubble=!0,M.cancel=!0,M.returnValue=!1),!1},this.stopPropagation=function(M){return M=M||k.event,M&&(M.cancelBubble=!0),!1};this.delegate=function(M,D,Y,it,vt){var st=N[D]||!1;st||(st={a:[],l:[],f:function(Xt){for(var Me=st.l,Re=Me.length-1,ee=!1,Xe=Re;Xe>=0;Xe--)if(ee=Me[Xe].call(Xt.target,Xt),ee===!1)return!1;return ee}},s.bind(M,D,st.f,it,vt),N[D]=st),s.ispage?(st.a=[s.id].concat(st.a),st.l=[Y].concat(st.l)):(st.a.push(s.id),st.l.push(Y))},this.undelegate=function(M,D,Y,it,vt){var st=N[D]||!1;if(st&&st.l)for(var Xt=0,Me=st.l.length;Xt<Me;Xt++)st.a[Xt]===s.id&&(st.a.splice(Xt),st.l.splice(Xt),st.a.length===0&&(s._unbind(M,D,st.l.f),N[D]=null))},this.bind=function(M,D,Y,it,vt){var st="jquery"in M?M[0]:M;s._bind(st,D,Y,it||!1,vt||!1)},this._bind=function(M,D,Y,it,vt){s.events.push({e:M,n:D,f:Y,b:it,q:!1}),Pe&&vt?M.addEventListener(D,Y,{passive:!1,capture:it}):M.addEventListener(D,Y,it||!1)},this._unbind=function(M,D,Y,it){N[D]?s.undelegate(M,D,Y,it):M.removeEventListener(D,Y,it)},this.unbindAll=function(){for(var M=0;M<s.events.length;M++){var D=s.events[M];D.q?D.e.unbind(D.n,D.f):s._unbind(D.e,D.n,D.f,D.b)}},this.showRails=function(){return s.showRail().showRailHr()},this.showRail=function(){return s.page.maxh!==0&&(s.ispage||s.win.css("display")!="none")&&(s.rail.visibility=!0,s.rail.css("display","block")),s},this.showRailHr=function(){return s.railh&&s.page.maxw!==0&&(s.ispage||s.win.css("display")!="none")&&(s.railh.visibility=!0,s.railh.css("display","block")),s},this.hideRails=function(){return s.hideRail().hideRailHr()},this.hideRail=function(){return s.rail.visibility=!1,s.rail.css("display","none"),s},this.hideRailHr=function(){return s.railh&&(s.railh.visibility=!1,s.railh.css("display","none")),s},this.show=function(){return s.hidden=!1,s.railslocked=!1,s.showRails()},this.hide=function(){return s.hidden=!0,s.railslocked=!0,s.hideRails()},this.toggle=function(){return s.hidden?s.show():s.hide()},this.remove=function(){s.stop(),s.cursortimeout&&clearTimeout(s.cursortimeout);for(var M in s.delaylist)s.delaylist[M]&&K(s.delaylist[M].h);s.doZoomOut(),s.unbindAll(),O.isie9&&s.win[0].detachEvent("onpropertychange",s.onAttributeChange),s.observer!==!1&&s.observer.disconnect(),s.observerremover!==!1&&s.observerremover.disconnect(),s.observerbody!==!1&&s.observerbody.disconnect(),s.events=null,s.cursor&&s.cursor.remove(),s.cursorh&&s.cursorh.remove(),s.rail&&s.rail.remove(),s.railh&&s.railh.remove(),s.zoom&&s.zoom.remove();for(var D=0;D<s.saved.css.length;D++){var Y=s.saved.css[D];Y[0].css(Y[1],Y[2]===void 0?"":Y[2])}s.saved=!1,s.me.data("__nicescroll","");var it=p.nicescroll;it.each(function(st){if(this&&this.id===s.id){delete it[st];for(var Xt=++st;Xt<it.length;Xt++,st++)it[st]=it[Xt];it.length--,it.length&&delete it[it.length]}});for(var vt in s)s[vt]=null,delete s[vt];s=null},this.scrollstart=function(M){return this.onscrollstart=M,s},this.scrollend=function(M){return this.onscrollend=M,s},this.scrollcancel=function(M){return this.onscrollcancel=M,s},this.zoomin=function(M){return this.onzoomin=M,s},this.zoomout=function(M){return this.onzoomout=M,s},this.isScrollable=function(M){var D=M.target?M.target:M;if(D.nodeName=="OPTION")return!0;for(;D&&D.nodeType==1&&D!==this.me[0]&&!/^BODY|HTML/.test(D.nodeName);){var Y=p(D),it=Y.css("overflowY")||Y.css("overflowX")||Y.css("overflow")||"";if(/scroll|auto/.test(it))return D.clientHeight!=D.scrollHeight;D=D.parentNode?D.parentNode:!1}return!1},this.getViewport=function(M){for(var D=M&&M.parentNode?M.parentNode:!1;D&&D.nodeType==1&&!/^BODY|HTML/.test(D.nodeName);){var Y=p(D);if(/fixed|absolute/.test(Y.css("position")))return Y;var it=Y.css("overflowY")||Y.css("overflowX")||Y.css("overflow")||"";if(/scroll|auto/.test(it)&&D.clientHeight!=D.scrollHeight||Y.getNiceScroll().length>0)return Y;D=D.parentNode?D.parentNode:!1}return!1},this.triggerScrollStart=function(M,D,Y,it,vt){if(s.onscrollstart){var st={type:"scrollstart",current:{x:M,y:D},request:{x:Y,y:it},end:{x:s.newscrollx,y:s.newscrolly},speed:vt};s.onscrollstart.call(s,st)}},this.triggerScrollEnd=function(){if(s.onscrollend){var M=s.getScrollLeft(),D=s.getScrollTop(),Y={type:"scrollend",current:{x:M,y:D},end:{x:M,y:D}};s.onscrollend.call(s,Y)}};var Oe=0,rn=0,Ve=0,kn=1;function Ye(M,D,Y,it){s.scrollrunning||(s.newscrolly=s.getScrollTop(),s.newscrollx=s.getScrollLeft(),Ve=G());var vt=G()-Ve;if(Ve=G(),vt>350?kn=1:kn+=(2-kn)/10,M=M*kn|0,D=D*kn|0,M){if(it){if(M<0){if(s.getScrollLeft()>=s.page.maxw)return!0}else if(s.getScrollLeft()<=0)return!0}var st=M>0?1:-1;rn!==st&&(s.scrollmom&&s.scrollmom.stop(),s.newscrollx=s.getScrollLeft(),rn=st),s.lastdeltax-=M}if(D){var Xt=(function(){var ee=s.getScrollTop();if(D<0){if(ee>=s.page.maxh)return!0}else if(ee<=0)return!0})();if(Xt){if(x.nativeparentscrolling&&Y&&!s.ispage&&!s.zoomactive)return!0;var Me=s.view.h>>1;s.newscrolly<-Me?(s.newscrolly=-Me,D=-1):s.newscrolly>s.page.maxh+Me?(s.newscrolly=s.page.maxh+Me,D=1):D=0}var Re=D>0?1:-1;Oe!==Re&&(s.scrollmom&&s.scrollmom.stop(),s.newscrolly=s.getScrollTop(),Oe=Re),s.lastdeltay-=D}(D||M)&&s.synched("relativexy",function(){var ee=s.lastdeltay+s.newscrolly;s.lastdeltay=0;var Xe=s.lastdeltax+s.newscrollx;s.lastdeltax=0,s.rail.drag||s.doScrollPos(Xe,ee)})}var yn=!1;function Je(M,D,Y){var it,vt;if(!Y&&yn)return!0;if(M.deltaMode===0?(it=-(M.deltaX*(x.mousescrollstep/54))|0,vt=-(M.deltaY*(x.mousescrollstep/54))|0):M.deltaMode===1&&(it=-(M.deltaX*x.mousescrollstep*50/80)|0,vt=-(M.deltaY*x.mousescrollstep*50/80)|0),D&&x.oneaxismousemode&&it===0&&vt&&(it=vt,vt=0,Y)){var st=it<0?s.getScrollLeft()>=s.page.maxw:s.getScrollLeft()<=0;st&&(vt=it,it=0)}s.isrtlmode&&(it=-it);var Xt=Ye(it,vt,Y,!0);if(Xt)Y&&(yn=!0);else return yn=!1,M.stopImmediatePropagation(),M.preventDefault()}if(this.onmousewheel=function(M){if(s.wheelprevented||s.locked)return!1;if(s.railslocked)return s.debounced("checkunlock",s.resize,250),!1;if(s.rail.drag)return s.cancelEvent(M);if(x.oneaxismousemode==="auto"&&M.deltaX!==0&&(x.oneaxismousemode=!1),x.oneaxismousemode&&M.deltaX===0&&!s.rail.scrollable)return s.railh&&s.railh.scrollable?s.onmousewheelhr(M):!0;var D=G(),Y=!1;if(x.preservenativescrolling&&s.checkarea+600<D&&(s.nativescrollingarea=s.isScrollable(M),Y=!0),s.checkarea=D,s.nativescrollingarea)return!0;var it=Je(M,!1,Y);return it&&(s.checkarea=0),it},this.onmousewheelhr=function(M){if(!s.wheelprevented){if(s.railslocked||!s.railh.scrollable)return!0;if(s.rail.drag)return s.cancelEvent(M);var D=G(),Y=!1;return x.preservenativescrolling&&s.checkarea+600<D&&(s.nativescrollingarea=s.isScrollable(M),Y=!0),s.checkarea=D,s.nativescrollingarea?!0:s.railslocked?s.cancelEvent(M):Je(M,!0,Y)}},this.stop=function(){return s.cancelScroll(),s.scrollmon&&s.scrollmon.stop(),s.cursorfreezed=!1,s.scroll.y=Math.round(s.getScrollTop()*(1/s.scrollratio.y)),s.noticeCursor(),s},this.getTransitionSpeed=function(M){return 80+M/72*x.scrollspeed|0},!x.smoothscroll)this.doScrollLeft=function(M,D){var Y=s.getScrollTop();s.doScrollPos(M,Y,D)},this.doScrollTop=function(M,D){var Y=s.getScrollLeft();s.doScrollPos(Y,M,D)},this.doScrollPos=function(M,D,Y){var it=M>s.page.maxw?s.page.maxw:M;it<0&&(it=0);var vt=D>s.page.maxh?s.page.maxh:D;vt<0&&(vt=0),s.synched("scroll",function(){s.setScrollTop(vt),s.setScrollLeft(it)})},this.cancelScroll=function(){};else if(s.ishwscroll&&O.hastransition&&x.usetransition&&x.smoothscroll){var un="";this.resetTransition=function(){un="",s.doc.css(O.prefixstyle+"transition-duration","0ms")},this.prepareTransition=function(M,D){var Y=D?M:s.getTransitionSpeed(M),it=Y+"ms";return un!==it&&(un=it,s.doc.css(O.prefixstyle+"transition-duration",it)),Y},this.doScrollLeft=function(M,D){var Y=s.scrollrunning?s.newscrolly:s.getScrollTop();s.doScrollPos(M,Y,D)},this.doScrollTop=function(M,D){var Y=s.scrollrunning?s.newscrollx:s.getScrollLeft();s.doScrollPos(Y,M,D)},this.cursorupdate={running:!1,start:function(){var M=this;if(!M.running){M.running=!0;var D=function(){M.running&&L(D),s.showCursor(s.getScrollTop(),s.getScrollLeft()),s.notifyScrollEvent(s.win[0])};L(D)}},stop:function(){this.running=!1}},this.doScrollPos=function(M,D,Y){var it=s.getScrollTop(),vt=s.getScrollLeft();if(((s.newscrolly-it)*(D-it)<0||(s.newscrollx-vt)*(M-vt)<0)&&s.cancelScroll(),x.bouncescroll?(D<0?D=D/2|0:D>s.page.maxh&&(D=s.page.maxh+(D-s.page.maxh)/2|0),M<0?M=M/2|0:M>s.page.maxw&&(M=s.page.maxw+(M-s.page.maxw)/2|0)):(D<0?D=0:D>s.page.maxh&&(D=s.page.maxh),M<0?M=0:M>s.page.maxw&&(M=s.page.maxw)),s.scrollrunning&&M==s.newscrollx&&D==s.newscrolly)return!1;s.newscrolly=D,s.newscrollx=M;var st=s.getScrollTop(),Xt=s.getScrollLeft(),Me={};Me.x=M-Xt,Me.y=D-st;var Re=Math.sqrt(Me.x*Me.x+Me.y*Me.y)|0,ee=s.prepareTransition(Re);s.scrollrunning||(s.scrollrunning=!0,s.triggerScrollStart(Xt,st,M,D,ee),s.cursorupdate.start()),s.scrollendtrapped=!0,O.transitionend||(s.scrollendtrapped&&clearTimeout(s.scrollendtrapped),s.scrollendtrapped=setTimeout(s.onScrollTransitionEnd,ee)),s.setScrollTop(s.newscrolly),s.setScrollLeft(s.newscrollx)},this.cancelScroll=function(){if(!s.scrollendtrapped)return!0;var M=s.getScrollTop(),D=s.getScrollLeft();return s.scrollrunning=!1,O.transitionend||clearTimeout(O.transitionend),s.scrollendtrapped=!1,s.resetTransition(),s.setScrollTop(M),s.railh&&s.setScrollLeft(D),s.timerscroll&&s.timerscroll.tm&&clearInterval(s.timerscroll.tm),s.timerscroll=!1,s.cursorfreezed=!1,s.cursorupdate.stop(),s.showCursor(M,D),s},this.onScrollTransitionEnd=function(){if(s.scrollendtrapped){var M=s.getScrollTop(),D=s.getScrollLeft();if(M<0?M=0:M>s.page.maxh&&(M=s.page.maxh),D<0?D=0:D>s.page.maxw&&(D=s.page.maxw),M!=s.newscrolly||D!=s.newscrollx)return s.doScrollPos(D,M,x.snapbackspeed);s.scrollrunning&&s.triggerScrollEnd(),s.scrollrunning=!1,s.scrollendtrapped=!1,s.resetTransition(),s.timerscroll=!1,s.setScrollTop(M),s.railh&&s.setScrollLeft(D),s.cursorupdate.stop(),s.noticeCursor(!1,M,D),s.cursorfreezed=!1}}}else this.doScrollLeft=function(M,D){var Y=s.scrollrunning?s.newscrolly:s.getScrollTop();s.doScrollPos(M,Y,D)},this.doScrollTop=function(M,D){var Y=s.scrollrunning?s.newscrollx:s.getScrollLeft();s.doScrollPos(Y,M,D)},this.doScrollPos=function(M,D,Y){var it=s.getScrollTop(),vt=s.getScrollLeft();((s.newscrolly-it)*(D-it)<0||(s.newscrollx-vt)*(M-vt)<0)&&s.cancelScroll();var st=!1;if((!s.bouncescroll||!s.rail.visibility)&&(D<0?(D=0,st=!0):D>s.page.maxh&&(D=s.page.maxh,st=!0)),(!s.bouncescroll||!s.railh.visibility)&&(M<0?(M=0,st=!0):M>s.page.maxw&&(M=s.page.maxw,st=!0)),s.scrollrunning&&s.newscrolly===D&&s.newscrollx===M)return!0;s.newscrolly=D,s.newscrollx=M,s.dst={},s.dst.x=M-vt,s.dst.y=D-it,s.dst.px=vt,s.dst.py=it;var Xt=Math.sqrt(s.dst.x*s.dst.x+s.dst.y*s.dst.y)|0,Me=s.getTransitionSpeed(Xt);s.bzscroll={};var Re=st?1:.58;s.bzscroll.x=new wt(vt,s.newscrollx,Me,0,0,Re,1),s.bzscroll.y=new wt(it,s.newscrolly,Me,0,0,Re,1),G();var ee=function(){if(s.scrollrunning){var Xe=s.bzscroll.y.getPos();s.setScrollLeft(s.bzscroll.x.getNow()),s.setScrollTop(s.bzscroll.y.getNow()),Xe<=1?s.timer=L(ee):(s.scrollrunning=!1,s.timer=0,s.triggerScrollEnd())}};s.scrollrunning||(s.triggerScrollStart(vt,it,M,D,Me),s.scrollrunning=!0,s.timer=L(ee))},this.cancelScroll=function(){return s.timer&&K(s.timer),s.timer=0,s.bzscroll=!1,s.scrollrunning=!1,s};this.doScrollBy=function(M,D){Ye(0,M)},this.doScrollLeftBy=function(M,D){Ye(M,0)},this.doScrollTo=function(M,D){var Y=D?Math.round(M*s.scrollratio.y):M;Y<0?Y=0:Y>s.page.maxh&&(Y=s.page.maxh),s.cursorfreezed=!1,s.doScrollTop(M)},this.checkContentSize=function(){var M=s.getContentSize();(M.h!=s.page.h||M.w!=s.page.w)&&s.resize(!1,M)},s.onscroll=function(M){s.rail.drag||s.cursorfreezed||s.synched("scroll",function(){s.scroll.y=Math.round(s.getScrollTop()/s.scrollratio.y),s.railh&&(s.scroll.x=Math.round(s.getScrollLeft()/s.scrollratio.x)),s.noticeCursor()})},s.bind(s.docscroll,"scroll",s.onscroll),this.doZoomIn=function(M){if(!s.zoomactive){s.zoomactive=!0,s.zoomrestore={style:{}};var D=["position","top","left","zIndex","backgroundColor","marginTop","marginBottom","marginLeft","marginRight"],Y=s.win[0].style;for(var it in D){var vt=D[it];s.zoomrestore.style[vt]=Y[vt]!==void 0?Y[vt]:""}s.zoomrestore.style.width=s.win.css("width"),s.zoomrestore.style.height=s.win.css("height"),s.zoomrestore.padding={w:s.win.outerWidth()-s.win.width(),h:s.win.outerHeight()-s.win.height()},O.isios4&&(s.zoomrestore.scrollTop=E.scrollTop(),E.scrollTop(0)),s.win.css({position:O.isios4?"absolute":"fixed",top:0,left:0,zIndex:f+100,margin:0});var st=s.win.css("backgroundColor");return(st===""||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(st))&&s.win.css("backgroundColor","#fff"),s.rail.css({zIndex:f+101}),s.zoom.css({zIndex:f+102}),s.zoom.css("backgroundPosition","0 -18px"),s.resizeZoom(),s.onzoomin&&s.onzoomin.call(s),s.cancelEvent(M)}},this.doZoomOut=function(M){if(s.zoomactive)return s.zoomactive=!1,s.win.css("margin",""),s.win.css(s.zoomrestore.style),O.isios4&&E.scrollTop(s.zoomrestore.scrollTop),s.rail.css({"z-index":s.zindex}),s.zoom.css({"z-index":s.zindex}),s.zoomrestore=!1,s.zoom.css("backgroundPosition","0 0"),s.onResize(),s.onzoomout&&s.onzoomout.call(s),s.cancelEvent(M)},this.doZoom=function(M){return s.zoomactive?s.doZoomOut(M):s.doZoomIn(M)},this.resizeZoom=function(){if(s.zoomactive){var M=s.getScrollTop();s.win.css({width:E.width()-s.zoomrestore.padding.w+"px",height:E.height()-s.zoomrestore.padding.h+"px"}),s.onResize(),s.setScrollTop(Math.min(s.page.maxh,M))}},this.init(),p.nicescroll.push(this)},v=function(tt){var H=this;this.nc=tt,this.lastx=0,this.lasty=0,this.speedx=0,this.speedy=0,this.lasttime=0,this.steptime=0,this.snapx=!1,this.snapy=!1,this.demulx=0,this.demuly=0,this.lastscrollx=-1,this.lastscrolly=-1,this.chkx=0,this.chky=0,this.timer=0,this.reset=function(s,ht){H.stop(),H.steptime=0,H.lasttime=G(),H.speedx=0,H.speedy=0,H.lastx=s,H.lasty=ht,H.lastscrollx=-1,H.lastscrolly=-1},this.update=function(s,ht){var x=G();H.steptime=x-H.lasttime,H.lasttime=x;var lt=ht-H.lasty,bt=s-H.lastx,St=H.nc.getScrollTop(),O=H.nc.getScrollLeft(),wt=St+lt,xt=O+bt;H.snapx=xt<0||xt>H.nc.page.maxw,H.snapy=wt<0||wt>H.nc.page.maxh,H.speedx=bt,H.speedy=lt,H.lastx=s,H.lasty=ht},this.stop=function(){H.nc.unsynched("domomentum2d"),H.timer&&clearTimeout(H.timer),H.timer=0,H.lastscrollx=-1,H.lastscrolly=-1},this.doSnapy=function(s,ht){var x=!1;ht<0?(ht=0,x=!0):ht>H.nc.page.maxh&&(ht=H.nc.page.maxh,x=!0),s<0?(s=0,x=!0):s>H.nc.page.maxw&&(s=H.nc.page.maxw,x=!0),x?H.nc.doScrollPos(s,ht,H.nc.opt.snapbackspeed):H.nc.triggerScrollEnd()},this.doMomentum=function(s){var ht=G(),x=s?ht+s:H.lasttime,lt=H.nc.getScrollLeft(),bt=H.nc.getScrollTop(),St=H.nc.page.maxh,O=H.nc.page.maxw;H.speedx=O>0?Math.min(60,H.speedx):0,H.speedy=St>0?Math.min(60,H.speedy):0;var wt=x&&ht-x<=60;(bt<0||bt>St||lt<0||lt>O)&&(wt=!1);var xt=H.speedy&&wt?H.speedy:!1,Ot=H.speedx&&wt?H.speedx:!1;if(xt||Ot){var Mt=Math.max(16,H.steptime);if(Mt>50){var Ht=Mt/50;H.speedx*=Ht,H.speedy*=Ht,Mt=50}H.demulxy=0,H.lastscrollx=H.nc.getScrollLeft(),H.chkx=H.lastscrollx,H.lastscrolly=H.nc.getScrollTop(),H.chky=H.lastscrolly;var Qt=H.lastscrollx,de=H.lastscrolly,me=function(){var Pe=G()-ht>600?.04:.02;H.speedx&&(Qt=Math.floor(H.lastscrollx-H.speedx*(1-H.demulxy)),H.lastscrollx=Qt,(Qt<0||Qt>O)&&(Pe=.1)),H.speedy&&(de=Math.floor(H.lastscrolly-H.speedy*(1-H.demulxy)),H.lastscrolly=de,(de<0||de>St)&&(Pe=.1)),H.demulxy=Math.min(1,H.demulxy+Pe),H.nc.synched("domomentum2d",function(){H.speedx&&(H.nc.getScrollLeft(),H.chkx=Qt,H.nc.setScrollLeft(Qt)),H.speedy&&(H.nc.getScrollTop(),H.chky=de,H.nc.setScrollTop(de)),H.timer||(H.nc.hideCursor(),H.doSnapy(Qt,de))}),H.demulxy<1?H.timer=setTimeout(me,Mt):(H.stop(),H.nc.hideCursor(),H.doSnapy(Qt,de))};me()}else H.doSnapy(H.nc.getScrollLeft(),H.nc.getScrollTop())}},mt=n.fn.scrollTop;n.cssHooks.pageYOffset={get:function(tt,H,s){var ht=p.data(tt,"__nicescroll")||!1;return ht&&ht.ishwscroll?ht.getScrollTop():mt.call(tt)},set:function(tt,H){var s=p.data(tt,"__nicescroll")||!1;return s&&s.ishwscroll?s.setScrollTop(parseInt(H)):mt.call(tt,H),this}},n.fn.scrollTop=function(tt){if(tt===void 0){var H=this[0]&&p.data(this[0],"__nicescroll")||!1;return H&&H.ishwscroll?H.getScrollTop():mt.call(this)}else return this.each(function(){var s=p.data(this,"__nicescroll")||!1;s&&s.ishwscroll?s.setScrollTop(parseInt(tt)):mt.call(p(this),tt)})};var ft=n.fn.scrollLeft;p.cssHooks.pageXOffset={get:function(tt,H,s){var ht=p.data(tt,"__nicescroll")||!1;return ht&&ht.ishwscroll?ht.getScrollLeft():ft.call(tt)},set:function(tt,H){var s=p.data(tt,"__nicescroll")||!1;return s&&s.ishwscroll?s.setScrollLeft(parseInt(H)):ft.call(tt,H),this}},n.fn.scrollLeft=function(tt){if(tt===void 0){var H=this[0]&&p.data(this[0],"__nicescroll")||!1;return H&&H.ishwscroll?H.getScrollLeft():ft.call(this)}else return this.each(function(){var s=p.data(this,"__nicescroll")||!1;s&&s.ishwscroll?s.setScrollLeft(parseInt(tt)):ft.call(p(this),tt)})};var Lt=function(tt){var H=this;if(this.length=0,this.name="nicescrollarray",this.each=function(x){return p.each(H,x),H},this.push=function(x){H[H.length]=x,H.length++},this.eq=function(x){return H[x]},tt)for(var s=0;s<tt.length;s++){var ht=p.data(tt[s],"__nicescroll")||!1;ht&&(this[this.length]=ht,this.length++)}return this};function Nt(tt,H,s){for(var ht=0,x=H.length;ht<x;ht++)s(tt,H[ht])}Nt(Lt.prototype,["show","hide","toggle","onResize","resize","remove","stop","doScrollPos"],function(tt,H){tt[H]=function(){var s=arguments;return this.each(function(){this[H].apply(this,s)})}}),n.fn.getNiceScroll=function(tt){return tt===void 0?new Lt(this):this[tt]&&p.data(this[tt],"__nicescroll")||!1};var At=n.expr.pseudos||n.expr[":"];At.nicescroll=function(tt){return p.data(tt,"__nicescroll")!==void 0},p.fn.niceScroll=function(tt,H){H===void 0&&typeof tt=="object"&&!("jquery"in tt)&&(H=tt,tt=!1);var s=new Lt;return this.each(function(){var ht=p(this),x=p.extend({},H);if(tt){var lt=p(tt);x.doc=lt.length>1?p(tt,ht):lt,x.win=ht}var bt=!("doc"in x);!bt&&!("win"in x)&&(x.win=ht);var St=ht.data("__nicescroll")||!1;St||(x.doc=x.doc||ht,St=new $(x,ht),ht.data("__nicescroll",St)),s.push(St)}),s.length===1?s[0]:s},k.NiceScroll={getjQuery:function(){return n}},p.nicescroll||(p.nicescroll=new Lt,p.nicescroll.options=ot)})})(Bf)),Bf.exports}j1();const np=".bloom-translationGroup:not(.bloom-imageDescription) .bloom-editable.bloom-visibility-code-on, .scrollable";function O1(e,t){if(e.classList.contains("cover"))return;const n=Yh(e);if("IntersectionObserver"in window){let a=[],r=0,l=0;dl(e).find(np).each((d,f)=>{const p=f.firstElementChild,y=f.lastElementChild;if(!p||!y)return;let k=1;const E=document.querySelector("style#scale-style-sheet");if(E){const J=E.innerHTML.match(/transform:[a-z0-9, ()]* scale\((\d+(\.\d+)?)\)/);J&&(k=parseFloat(J[1]))}else{const J=f.closest("#page-scaling-container");if(J){const F=J.style.transform;F&&F.startsWith("scale(")&&(k=parseFloat(F.substring(6,F.length-1)))}}const{topAdjust:N,leftAdjust:I,thumbWidth:L}=Bb(k,f),K=new IntersectionObserver((J,F)=>{J.forEach(G=>{if(l++,F.unobserve(G.target),!G.target.parentElement)return;const ot=!!G.target.closest(cl);let dt=G.intersectionRatio<.999;if(dt&&ot){let _=.6;(G.target!=G.target.parentElement?.firstElementChild||G.target!=G.target.parentElement.lastElementChild)&&(_/=2);const $=(1-G.intersectionRatio)*G.target.clientHeight,v=window.getComputedStyle(G.target).lineHeight,mt=parseFloat(v.substring(0,v.length-2));dt=$>mt*_}if(dt&&a.indexOf(G.target.parentElement)<0){a.push(G.target.parentElement);const _=G.target.parentElement.parentElement;_.classList.contains("bloom-vertical-align-center")&&(_.classList.remove("bloom-vertical-align-center"),n&&_.classList.add("bloom-vertical-align-center-removed")),_.classList.contains("bloom-vertical-align-bottom")&&(_.classList.remove("bloom-vertical-align-bottom"),n&&_.classList.add("bloom-vertical-align-bottom-removed")),ot&&G.target.parentElement.classList.add("scrolling-bubble")}l===r&&(dl(a).niceScroll({autohidemode:!1,railoffset:{top:-N,left:-I},cursorwidth:L,cursorcolor:"#000000",cursoropacitymax:.1,cursorborderradius:L}),q1(e,t),a=[])})},{root:f});r++,K.observe(p),p!==y&&(r++,K.observe(y))})}}function K1(e){for(var t=e&&e.parentNode?e.parentNode:null;t&&t.nodeType===Node.ELEMENT_NODE&&!/^BODY|HTML/.test(t.nodeName);){const n=window.getComputedStyle(t),a=n.getPropertyValue("position");if(/fixed|absolute/.test(a))return t;const r=n.getPropertyValue("overflow-y")||n.getPropertyValue("overflow-x")||n.getPropertyValue("overflow")||"";if(/scroll|auto/.test(r)&&t.clientHeight!=t.scrollHeight||dl(t).getNiceScroll().length>0)return t;t=t.parentNode?t.parentNode:null}return null}function Bb(e,t){let n=0,a=0,r="12px";if(e!==1){const l=t.parentElement;if(!l||!l.classList.contains("bloom-translationGroup"))return{topAdjust:n,leftAdjust:a,thumbWidth:r};if(K1(t)){const f=window.getComputedStyle(l),p=f.getPropertyValue("padding-top")||"0",y=f.getPropertyValue("padding-left")||"0";n=parseFloat(p)*(e-1),a=parseFloat(y)*(e-1)}else{const f=l.parentElement;if(!f)return{topAdjust:n,leftAdjust:a,thumbWidth:r};r=`${12*e}px`;const p=f?.offsetTop,y=f.offsetLeft+f.offsetWidth;n=-(p*(e-1)),a=-(y*(e-1))}}return{topAdjust:n,leftAdjust:a,thumbWidth:r}}function q1(e,t){if(e.removeEventListener("pointerdown",bv),e.addEventListener("pointerdown",bv),!!t)for(const n of["pointermove","pointerup"])e.ownerDocument.body.addEventListener(n,t,{capture:!0})}function $1(e,t){e.querySelectorAll(np).forEach(n=>{const a=dl(n).getNiceScroll();if(a&&a.length>0){let{topAdjust:r,leftAdjust:l,thumbWidth:d}=Bb(t,n);a[0].opt.railoffset.top=-r,a[0].opt.railoffset.left=-l,a[0].opt.cursorwidth=d,a[0].resize()}})}function bv(e){e.target instanceof HTMLDivElement&&e.target.classList.contains("nicescroll-cursors")&&(e.target.setPointerCapture(e.pointerId),e.pointerType==="mouse"&&e.stopPropagation())}const H1="/right_answer-XEe3HakR.mp3",F1="/wrong_answer-BhCi5k6f.mp3";class W1{constructor(t,n,a,r){this.listeners=new Array,this.pageIndex=t,this.pageElement=n,this.analyticsCategory=a,this.pagesToGroupForAnalytics=r,M1(this.fixViteSoundPath(H1),this.fixViteSoundPath(F1)),Sb(this.pageElement)}reportScore(t,n){console.log(`ActivityContext.reportScoreForCurrentPage(<page>, ${t}, ${n},${this.analyticsCategory})`),y1(this.pageIndex,t,n,this.analyticsCategory,this.pagesToGroupForAnalytics)}getSessionPageData(t){return Su(this.pageIndex,t)}storeSessionPageData(t,n){console.log(`ActivityContext.storePageData(<page>, '${t}', '${n}')`),sb(this.pageIndex,t,n)}playCorrect(t){gh(this.pageElement,!0)}playWrong(t){gh(this.pageElement,!1)}fixViteSoundPath(t){return t.startsWith("/")&&(t=t.substring(1)),t}getPagePlayer(){let t=document.getElementById("activity-sound-player");return t&&!t.play&&(t.remove(),t=null),t||(t=document.createElement("audio"),t.setAttribute("id","activity-sound-player"),document.body.appendChild(t)),t}playSound(t){const n=this.getPagePlayer();n.setAttribute("src",t),n.play()}addActivityStylesForPage(t){if(!this.pageElement.querySelector("[data-activity-stylesheet]")){const n=this.pageElement.ownerDocument.createElement("style");n.setAttribute("data-activity-stylesheet",""),n.setAttribute("scoped","true"),n.innerText=t,this.pageElement.parentNode.insertBefore(n,this.pageElement)}}addEventListener(t,n,a,r){this.listeners.push({name:t,target:n,listener:a}),n.addEventListener(t,a,r)}stop(){this.listeners.forEach(t=>t.target.removeEventListener(t.name,t.listener)),xb(this.pageElement)}sendMessageToPlayer(t){const a=JSON.stringify({messageType:"control",controlAction:t});window.postMessage(a,"*")}navigateToNextPage(){this.sendMessageToPlayer("navigate-to-next-page")}navigateToPreviousPage(){this.sendMessageToPlayer("navigate-to-previous-page")}}class _1{constructor(t){console.log("iframe activity constructed")}initializePageHtml(t){}showingPage(){console.log("iframe activity showingPage")}stop(){console.log("iframe activity stop")}}function V1(){return{dragging:!0,clicking:!0,typing:!0}}const G1={default:_1,activityRequirements:V1};class U1{constructor(t){this.pageElement=t,this.onCorrectClick=n=>{n.currentTarget.classList.add("chosen-correct"),this.activityContext.playCorrect(n),this.activityContext.reportScore(1,1)},this.onWrongClick=n=>{n.currentTarget.classList.add("chosen-wrong"),this.activityContext.playWrong(n),this.activityContext.reportScore(1,0)}}showingPage(t){this.activityContext=t,this.prepareToDisplayActivityEachTime(t)}initializePageHtml(t){t.pageElement.querySelectorAll(".chosen-correct, .chosen-wrong").forEach(n=>{n.classList.remove("chosen-correct"),n.classList.remove("chosen-wrong")}),t.pageElement.querySelectorAll(".player-button").forEach(n=>{this.replaceWithButton(n)}),t.pageElement.querySelectorAll(".player-shuffle-buttons").forEach(n=>{this.shuffleChildren(n)})}shuffleChildren(t){Array.from(t.childNodes).map(n=>({node:n,randomValue:Math.random()})).sort((n,a)=>n.randomValue-a.randomValue).forEach(({node:n})=>t.appendChild(n))}replaceWithButton(t){let n=t.ownerDocument.createElement("button");for(const a of Array.prototype.slice.call(t.attributes))n.setAttribute(a.name,a.value);return n.innerHTML=t.innerHTML,t.replaceWith(n),n}prepareToDisplayActivityEachTime(t){t.pageElement.querySelectorAll(".player-button").forEach(n=>{const a=n.getAttribute("data-activityRole")==="correct-answer";t.addEventListener("click",n,a?this.onCorrectClick:this.onWrongClick)})}stop(){}}function Y1(){return{dragging:!0,clicking:!0,typing:!1}}const X1={default:U1,activityRequirements:Y1},Z1='.simple-comprehension-quiz{--pure-material-primary-rgb: 214, 86, 73;--pure-material-onprimary-rgb: 255, 255, 255;--pure-material-onsurface-rgb: 0, 0, 0}.simple-comprehension-quiz .bloom-translationGroup{margin-bottom:10px;flex-grow:1}.simple-comprehension-quiz .QuizHeader-style{font-size:20pt;text-align:center;color:#fff;background-color:#d65649}.simple-comprehension-quiz .checkbox-and-textbox-choice{display:flex;z-index:0;width:fit-content}.simple-comprehension-quiz .checkbox-and-textbox-choice *{width:fit-content}.simple-comprehension-quiz .checkbox-and-textbox-choice input{z-index:11;left:-10px;top:-8px;display:block;margin:0 -10px 0 0;border-radius:50%;width:40px;height:40px;opacity:0}.simple-comprehension-quiz .checkbox-and-textbox-choice .placeToPutVariableCircle{z-index:-1;position:absolute;left:-10px;top:-8px;display:block;margin:0;border-radius:50%;width:40px;height:40px;background-color:rgba(var(--pure-material-onsurface-rgb),.6);box-shadow:none;outline:none;opacity:1;transform:scale(0)}.simple-comprehension-quiz .checkbox-and-textbox-choice>input+div:before{content:"";display:block;position:absolute;box-sizing:border-box;left:-30px;top:3px;border:solid 2px;border-color:rgba(var(--pure-material-onsurface-rgb),.6);border-radius:2px;width:18px;height:18px}.simple-comprehension-quiz .checkbox-and-textbox-choice>input+div:after{content:"";display:block;position:absolute;top:3px;left:-30px;width:10px;height:5px;border:solid 2px transparent;border-right:none;border-top:none;transform:translate(3px,4px) rotate(-45deg)}.simple-comprehension-quiz .checkbox-and-textbox-choice>input:checked~.placeToPutVariableCircle{background-color:rgb(var(--pure-material-primary-rgb))}.simple-comprehension-quiz .checkbox-and-textbox-choice>input:checked+div:before{border-color:rgb(var(--pure-material-primary-rgb));background-color:rgb(var(--pure-material-primary-rgb))}.simple-comprehension-quiz .checkbox-and-textbox-choice>input:checked+div:after{border-color:rgb(var(--pure-material-onprimary-rgb))}.simple-comprehension-quiz .checkbox-and-textbox-choice input:active~.placeToPutVariableCircle{opacity:.5;transform:scale(1);transition:opacity .3s,transform .2s}.quiz #formatButton{left:unset;right:0}.bloom-editable.QuizHeader-style[contentEditable=true][data-languageTipContent]:not([data-languageTipContent=""]):after,.bloom-editable.QuizAnswer-style[contentEditable=true][data-languageTipContent]:not([data-languageTipContent=""]):after,.bloom-editable.QuizQuestion-style[contentEditable=true][data-languageTipContent]:not([data-languageTipContent=""]):after{margin-right:24px}.bloom-editable.QuizAnswer-style:not(.cke_focus)[contentEditable=true][data-languageTipContent]:not([data-languageTipContent=""]):after,.bloom-editable.QuizQuestion-style:not(.cke_focus)[contentEditable=true][data-languageTipContent]:not([data-languageTipContent=""]):after{content:""}body.editMode .simple-comprehension-quiz .checkbox-and-textbox-choice.empty{opacity:.5;display:flex}.simple-comprehension-quiz .checkbox-and-textbox-choice.empty{display:none}.simple-comprehension-quiz .checkbox-and-textbox-choice.wasSelectedAtOnePoint:not(.correct-answer){opacity:.5}',zf="wasSelectedAtOnePoint";class J1{constructor(t){}initializePageHtml(t){}showingPage(t){this.activityContext=t,t.addActivityStylesForPage(Z1),this.markEmptyChoices();const n=this.activityContext.pageElement.getElementsByClassName("checkbox-and-textbox-choice");Array.from(n).forEach((a,r)=>{const l=this.getCheckBox(a);if(this.activityContext.addEventListener("click",a,f=>this.handleReadModeClick(f),{capture:!0}),r===0)for(const f of["mousedown","mousemove","pointerdown","pointermove","touchstart","touchmove"])this.activityContext.addEventListener(f,a.ownerDocument.body,p=>this.handleInputMouseEvent(p),{capture:!0});const d=this.getStorageKeyForChoice(a);t.getSessionPageData(d)===zf?this.choiceWasClicked(a):l.checked=!1})}markEmptyChoices(){const t=this.activityContext.pageElement.getElementsByClassName("checkbox-and-textbox-choice");for(let n=0;n<t.length;n++)this.hasVisibleContent(t[n])?t[n].classList.remove("empty"):t[n].classList.add("empty")}hasVisibleContent(t){const n=t.getElementsByClassName("bloom-editable");return Array.from(n).some(a=>a.classList.contains("bloom-visibility-code-on")&&(a.textContent||"").trim()!=="")}handleInputMouseEvent(t){t.target.closest(".checkbox-and-textbox-choice")&&t.stopPropagation()}handleReadModeClick(t){t.stopPropagation(),t.preventDefault();const n=t.currentTarget;this.choiceWasClicked(n);const a=n.classList.contains("correct-answer");a?this.activityContext.playCorrect(t):this.activityContext.playWrong(t);const r=this.getStorageKeyForChoice(n);this.activityContext.storeSessionPageData(r,zf),this.activityContext.reportScore(1,a?1:0)}choiceWasClicked(t){t.classList.add(zf);const n=this.getCheckBox(t);if(n){const a=t.classList.contains("correct-answer");n.checked=a,window.setTimeout(()=>n.checked=a,0)}}getCheckBox(t){return t.firstElementChild}stop(){}getStorageKeyForChoice(t){return"cbstate_"+Array.from(this.activityContext.pageElement.getElementsByClassName("checkbox-and-textbox-choice")).indexOf(t)}}const Q1="simple-checkbox-quiz";function tP(){return{dragging:!1,clicking:!0,typing:!1}}const If={default:J1,activityRequirements:tP,dataActivityID:Q1};class eP{constructor(t){this.pageElement=t}showingPage(t){this.activityContext=t,this.prepareToDisplayActivityEachTime(t)}doInitialSoundAndAnimation(t){T1(t.pageElement)}initializePageHtml(t){}prepareToDisplayActivityEachTime(t){this.activityContext=t,t.pageElement.parentElement?.classList.add("drag-activity-play"),E1(this.activityContext.reportScore.bind(this.activityContext)),k1(t.pageElement,n=>{n?t.navigateToNextPage():t.navigateToPreviousPage()})}stop(){this.activityContext&&(S1(this.activityContext.pageElement),this.activityContext.pageElement.parentElement?.classList.remove("drag-activity-play","drag-activity-start","drag-activity-correct","drag-activity-wrong","drag-activity-solution"))}}function nP(){return{dragging:!0,clicking:!0,typing:!1,soundManagement:!0}}const js={default:eP,activityRequirements:nP};class aP{constructor(){this.builtInActivities={},this.bookActivityGroupings={},this.loadedActivityScripts={},this.builtInActivities.iframe=G1,this.builtInActivities["simple-dom-choice"]=X1,this.builtInActivities[If.dataActivityID]=If,this.builtInActivities["drag-to-destination"]=js,this.builtInActivities["drag-letter-to-target"]=js,this.builtInActivities["drag-image-to-target"]=js,this.builtInActivities["drag-sort-sentence"]=js,this.builtInActivities["word-chooser-slider"]=js}getActivityAbsorbsDragging(){return!!this.currentActivity&&!!this.currentActivity.requirements.dragging}getActivityAbsorbsClicking(){return!!this.currentActivity&&!!this.currentActivity.requirements.clicking}getActivityAbsorbsTyping(){return!!this.currentActivity&&!!this.currentActivity.requirements.typing}getActivityManagesSound(){return!!this.currentActivity&&!!this.currentActivity.requirements.soundManagement}getActivityIdOfPage(t){let n=t.getAttribute("data-activity")||"";return n===""&&this.hasLegacyQuizScriptTag(t)&&(n=If.dataActivityID),n}getAnalyticsCategoryOfPage(t){const n=t.getAttribute("data-analyticscategories")||t.getAttribute("data-analyticsCategories")||"";return n==="drag-activity"?"drag-game":n}initializePageHtml(t,n,a){const r=this.getActivityIdOfPage(n);r&&(this.loadedActivityScripts[r]||this.prepareActivityType(t,r),this.prepareActivityInstance(a,n))}prepareActivityType(t,n){this.builtInActivities[n]?this.loadedActivityScripts[n]={name:n,module:this.builtInActivities[n],runningObject:void 0,context:void 0,requirements:this.builtInActivities[n].activityRequirements()}:v1(t+"/"+n+".js").then(a=>{this.loadedActivityScripts[n]||(this.loadedActivityScripts[n]={name:n,module:a,runningObject:void 0,context:void 0,requirements:a.activityRequirements()})})}prepareActivityInstance(t,n){const a=this.getActivityOfPage(n);if(a&&!n.hasAttribute("data-activity-state")){n.classList.add("bloom-activityPlayback");const r=new a.module.default(n),l=this.getActivityContext(t,n);r.initializePageHtml(l),l.pageElement.setAttribute("data-activity-state","prepared")}}doInitialSoundAndAnimation(){this.currentActivity&&this.currentActivity.runningObject&&this.currentActivity.runningObject.doInitialSoundAndAnimation?.(this.currentActivity.context)}showingPage(t,n){if(this.previousPageElement===n)return;this.previousPageElement=n,this.currentActivity&&this.currentActivity.module&&(this.currentActivity.runningObject.stop(),this.currentActivity.runningObject=void 0,this.currentActivity.context.stop(),this.currentActivity.context=void 0),this.currentActivity=void 0;const a=this.getActivityOfPage(n);return a&&(this.currentActivity=a,a.runningObject=new a.module.default(n),a.context=this.getActivityContext(t,n),a.runningObject.showingPage(a.context)),!!a}getActivityOfPage(t){const n=this.getActivityIdOfPage(t);if(n){const a=this.loadedActivityScripts[n];return console.assert(a,`Trying to start activity "${n}" but it wasn't previously loaded.`),a}}getActivityContext(t,n){const a=this.getAnalyticsCategoryOfPage(n);return new W1(t,n,a,this.bookActivityGroupings[a])}hasLegacyQuizScriptTag(t){const n=t.getElementsByTagName("script");for(let a=0;a<n.length;a++){const r=n[a].getAttribute("src");if(r&&r.endsWith("simpleComprehensionQuiz.js"))return!0}return!1}collectActivityContextForBook(t){for(let n=0;n<t.length;n++){const a=t[n],r=this.getAnalyticsCategoryOfPage(a);if(r==="")continue;const l=this.bookActivityGroupings[r];l?l.push(n):this.bookActivityGroupings[r]=[n]}}}class iP{static convert(t,n){if(!t)return[];let a=t;typeof t=="string"&&(a=JSON.parse(t));const r=[];for(let l=0;l<a.length;l++){if(a[l].onlyForBloomReader1)continue;const d=a[l].questions,f=a[l].lang;for(let p=0;p<d.length;p++){const y=d[p],k=document.createElement("div");r.push(k),k.classList.add("bloom-page"),k.classList.add("simple-comprehension-quiz"),k.classList.add("bloom-interactive-page"),k.classList.add("numberedPage"),k.classList.add(n),k.setAttribute("data-analyticsCategories","comprehension");const E=this.appendElementWithClass("div","marginBox",k),N=this.appendElementWithClass("div","quiz",E),I=wn.getTranslation("Quiz.CheckYourUnderstanding",[f],"Check Your Understanding");this.appendTranslationGroup(N,I,"QuizHeader-style",f,"Quiz.CheckYourUnderstanding"),this.appendTranslationGroup(N,y.question,"QuizQuestion-style",f);const L=y.answers;for(let J=0;J<L.length;J++){const F=L[J],G=F.text,ot=this.appendElementWithClass("div","checkbox-and-textbox-choice",N),dt=this.appendElementWithClass("input","styled-check-box",ot);dt.setAttribute("name","Correct"),dt.setAttribute("type","checkbox");const _=this.appendElementWithClass("div","bloom-translationGroup",ot);this.appendElementWithClass("div","placeToPutVariableCircle",ot);const $=this.appendElementWithClass("div","bloom-editable",_);$.classList.add("bloom-content1"),$.classList.add("bloom-visibility-code-on"),$.classList.add("QuizAnswer-style"),$.setAttribute("lang",f);const v=this.appendElementWithClass("p","",$);v.textContent=G,F.correct&&ot.classList.add("correct-answer")}this.appendElementWithClass("script","",N).setAttribute("src","simpleComprehensionQuiz.js")}}return r}static appendTranslationGroup(t,n,a,r,l){const d=this.appendElementWithClass("div","bloom-translationGroup",t),f=this.appendElementWithClass("div","bloom-editable",d);f.classList.add("bloom-content1"),f.classList.add("bloom-visibility-code-on"),f.classList.add(a),f.setAttribute("lang",r),l&&f.setAttribute("data-i18n","Quiz.CheckYourUnderstanding");const p=this.appendElementWithClass("p","",f);p.textContent=n}static appendElementWithClass(t,n,a){const r=document.createElement(t);return n&&r.classList.add(n),a.appendChild(r),r}}class rP{constructor(t){this.needQuizCss=!1,this.locationOfDistFolder=t}getPromiseForAnyQuizCss(){return this.needQuizCss?zi.get(this.getFolderForSupportFiles()+"/Special.css"):null}generateQuizPagesFromLegacyJSON(t,n,a,r){const l=t+"/questions.json";zi.get(l).then(d=>{const f=iP.convert(d.data,a),p=n.getElementsByClassName("bloom-backMatter")[0];for(let y=0;y<f.length;y++)this.needQuizCss=!0,p.parentElement.insertBefore(f[y],p);r()}).catch(()=>r())}getFolderForSupportFiles(){const t=window.location.protocol+"//"+window.location.host+window.location.pathname,n=t.lastIndexOf("/"),a=window.STORYBOOK_ENV!==void 0?"/legacyQuizHandling":this.locationOfDistFolder;return t.substring(0,n)+a}}function zb(){var e=hl()||nb;return e}var oP=function(t){return t.scrollTop};function wv(e,t){var n=e.timeout,a=e.style,r=a===void 0?{}:a;return{duration:r.transitionDuration||typeof n=="number"?n:n[t.mode]||0,delay:r.transitionDelay}}var sP=function(t){var n={};return t.shadows.forEach(function(a,r){n["elevation".concat(r)]={boxShadow:a}}),Dt({root:{backgroundColor:t.palette.background.paper,color:t.palette.text.primary,transition:t.transitions.create("box-shadow")},rounded:{borderRadius:t.shape.borderRadius},outlined:{border:"1px solid ".concat(t.palette.divider)}},n)},lP=R.forwardRef(function(t,n){var a=t.classes,r=t.className,l=t.component,d=l===void 0?"div":l,f=t.square,p=f===void 0?!1:f,y=t.elevation,k=y===void 0?1:y,E=t.variant,N=E===void 0?"elevation":E,I=Ke(t,["classes","className","component","square","elevation","variant"]);return R.createElement(d,Dt({className:Ie(a.root,r,N==="outlined"?a.outlined:a["elevation".concat(k)],!p&&a.rounded),ref:n},I))});const Ib=gn(sP,{name:"MuiPaper"})(lP);var uP=function(t){var n=t.palette.type==="light"?t.palette.grey[100]:t.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:t.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0,"@media print":{position:"absolute"}},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static"},positionRelative:{position:"relative"},colorDefault:{backgroundColor:n,color:t.palette.getContrastText(n)},colorPrimary:{backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText},colorSecondary:{backgroundColor:t.palette.secondary.main,color:t.palette.secondary.contrastText},colorInherit:{color:"inherit"},colorTransparent:{backgroundColor:"transparent",color:"inherit"}}},cP=R.forwardRef(function(t,n){var a=t.classes,r=t.className,l=t.color,d=l===void 0?"primary":l,f=t.position,p=f===void 0?"fixed":f,y=Ke(t,["classes","className","color","position"]);return R.createElement(Ib,Dt({square:!0,component:"header",elevation:4,className:Ie(a.root,a["position".concat(sn(p))],a["color".concat(sn(d))],r,p==="fixed"&&"mui-fixed"),ref:n},y))});const dP=gn(uP,{name:"MuiAppBar"})(cP);var fP={entering:{opacity:1},entered:{opacity:1}},hP={enter:Fo.enteringScreen,exit:Fo.leavingScreen},Db=R.forwardRef(function(t,n){var a=t.children,r=t.disableStrictModeCompat,l=r===void 0?!1:r,d=t.in,f=t.onEnter,p=t.onEntered,y=t.onEntering,k=t.onExit,E=t.onExited,N=t.onExiting,I=t.style,L=t.TransitionComponent,K=L===void 0?Di:L,J=t.timeout,F=J===void 0?hP:J,G=Ke(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),ot=zb(),dt=ot.unstable_strictMode&&!l,_=R.useRef(null),$=Ka(a.ref,n),v=Ka(dt?_:void 0,$),mt=function(ht){return function(x,lt){if(ht){var bt=dt?[_.current,x]:[x,lt],St=Qu(bt,2),O=St[0],wt=St[1];wt===void 0?ht(O):ht(O,wt)}}},ft=mt(y),Lt=mt(function(s,ht){oP(s);var x=wv({style:I,timeout:F},{mode:"enter"});s.style.webkitTransition=ot.transitions.create("opacity",x),s.style.transition=ot.transitions.create("opacity",x),f&&f(s,ht)}),Nt=mt(p),At=mt(N),tt=mt(function(s){var ht=wv({style:I,timeout:F},{mode:"exit"});s.style.webkitTransition=ot.transitions.create("opacity",ht),s.style.transition=ot.transitions.create("opacity",ht),k&&k(s)}),H=mt(E);return R.createElement(K,Dt({appear:!0,in:d,nodeRef:dt?_:void 0,onEnter:Lt,onEntered:Nt,onEntering:ft,onExit:tt,onExited:H,onExiting:At,timeout:F},G),function(s,ht){return R.cloneElement(a,Dt({style:Dt({opacity:0,visibility:s==="exited"&&!d?"hidden":void 0},fP[s],I,a.props.style),ref:v},ht))})}),pP={root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},gP=R.forwardRef(function(t,n){var a=t.children,r=t.classes,l=t.className,d=t.invisible,f=d===void 0?!1:d,p=t.open,y=t.transitionDuration,k=t.TransitionComponent,E=k===void 0?Db:k,N=Ke(t,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return R.createElement(E,Dt({in:p,timeout:y},N),R.createElement("div",{className:Ie(r.root,l,f&&r.invisible),"aria-hidden":!0,ref:n},a))});const mP=gn(pP,{name:"MuiBackdrop"})(gP);var vP=function(t){return{root:{margin:0},body2:t.typography.body2,body1:t.typography.body1,caption:t.typography.caption,button:t.typography.button,h1:t.typography.h1,h2:t.typography.h2,h3:t.typography.h3,h4:t.typography.h4,h5:t.typography.h5,h6:t.typography.h6,subtitle1:t.typography.subtitle1,subtitle2:t.typography.subtitle2,overline:t.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},colorTextPrimary:{color:t.palette.text.primary},colorTextSecondary:{color:t.palette.text.secondary},colorError:{color:t.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}},kv={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},yP=R.forwardRef(function(t,n){var a=t.align,r=a===void 0?"inherit":a,l=t.classes,d=t.className,f=t.color,p=f===void 0?"initial":f,y=t.component,k=t.display,E=k===void 0?"initial":k,N=t.gutterBottom,I=N===void 0?!1:N,L=t.noWrap,K=L===void 0?!1:L,J=t.paragraph,F=J===void 0?!1:J,G=t.variant,ot=G===void 0?"body1":G,dt=t.variantMapping,_=dt===void 0?kv:dt,$=Ke(t,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),v=y||(F?"p":_[ot]||kv[ot])||"span";return R.createElement(v,Dt({className:Ie(l.root,d,ot!=="inherit"&&l[ot],p!=="initial"&&l["color".concat(sn(p))],K&&l.noWrap,I&&l.gutterBottom,F&&l.paragraph,r!=="inherit"&&l["align".concat(sn(r))],E!=="initial"&&l["display".concat(sn(E))]),ref:n},$))});const Rb=gn(vP,{name:"MuiTypography"})(yP);var bP=function(t){return{root:Dt({},t.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:t.shape.borderRadius,color:t.palette.text.primary,transition:t.transitions.create(["background-color","box-shadow","border"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Un(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:t.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:t.palette.primary.main,"&:hover":{backgroundColor:Un(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:t.palette.secondary.main,"&:hover":{backgroundColor:Un(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat(t.palette.type==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(t.palette.action.disabledBackground)}},outlinedPrimary:{color:t.palette.primary.main,border:"1px solid ".concat(Un(t.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(t.palette.primary.main),backgroundColor:Un(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:t.palette.secondary.main,border:"1px solid ".concat(Un(t.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(t.palette.secondary.main),backgroundColor:Un(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(t.palette.action.disabled)}},contained:{color:t.palette.getContrastText(t.palette.grey[300]),backgroundColor:t.palette.grey[300],boxShadow:t.shadows[2],"&:hover":{backgroundColor:t.palette.grey.A100,boxShadow:t.shadows[4],"@media (hover: none)":{boxShadow:t.shadows[2],backgroundColor:t.palette.grey[300]},"&$disabled":{backgroundColor:t.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:t.shadows[6]},"&:active":{boxShadow:t.shadows[8]},"&$disabled":{color:t.palette.action.disabled,boxShadow:t.shadows[0],backgroundColor:t.palette.action.disabledBackground}},containedPrimary:{color:t.palette.primary.contrastText,backgroundColor:t.palette.primary.main,"&:hover":{backgroundColor:t.palette.primary.dark,"@media (hover: none)":{backgroundColor:t.palette.primary.main}}},containedSecondary:{color:t.palette.secondary.contrastText,backgroundColor:t.palette.secondary.main,"&:hover":{backgroundColor:t.palette.secondary.dark,"@media (hover: none)":{backgroundColor:t.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}},wP=R.forwardRef(function(t,n){var a=t.children,r=t.classes,l=t.className,d=t.color,f=d===void 0?"default":d,p=t.component,y=p===void 0?"button":p,k=t.disabled,E=k===void 0?!1:k,N=t.disableElevation,I=N===void 0?!1:N,L=t.disableFocusRipple,K=L===void 0?!1:L,J=t.endIcon,F=t.focusVisibleClassName,G=t.fullWidth,ot=G===void 0?!1:G,dt=t.size,_=dt===void 0?"medium":dt,$=t.startIcon,v=t.type,mt=v===void 0?"button":v,ft=t.variant,Lt=ft===void 0?"text":ft,Nt=Ke(t,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),At=$&&R.createElement("span",{className:Ie(r.startIcon,r["iconSize".concat(sn(_))])},$),tt=J&&R.createElement("span",{className:Ie(r.endIcon,r["iconSize".concat(sn(_))])},J);return R.createElement(ab,Dt({className:Ie(r.root,r[Lt],l,f==="inherit"?r.colorInherit:f!=="default"&&r["".concat(Lt).concat(sn(f))],_!=="medium"&&[r["".concat(Lt,"Size").concat(sn(_))],r["size".concat(sn(_))]],I&&r.disableElevation,E&&r.disabled,ot&&r.fullWidth),component:y,disabled:E,focusRipple:!K,focusVisibleClassName:Ie(r.focusVisible,F),ref:n,type:mt},Nt),R.createElement("span",{className:r.label},At,a,tt))});const kP=gn(bP,{name:"MuiButton"})(wP);var jb=R.createContext();function Ob(){return R.useContext(jb)}var xP={root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},SP=R.forwardRef(function(t,n){var a=t.autoFocus,r=t.checked,l=t.checkedIcon,d=t.classes,f=t.className,p=t.defaultChecked,y=t.disabled,k=t.icon,E=t.id,N=t.inputProps,I=t.inputRef,L=t.name,K=t.onBlur,J=t.onChange,F=t.onFocus,G=t.readOnly,ot=t.required,dt=t.tabIndex,_=t.type,$=t.value,v=Ke(t,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),mt=ec({controlled:r,default:!!p,name:"SwitchBase",state:"checked"}),ft=Qu(mt,2),Lt=ft[0],Nt=ft[1],At=Ob(),tt=function(bt){F&&F(bt),At&&At.onFocus&&At.onFocus(bt)},H=function(bt){K&&K(bt),At&&At.onBlur&&At.onBlur(bt)},s=function(bt){var St=bt.target.checked;Nt(St),J&&J(bt,St)},ht=y;At&&typeof ht>"u"&&(ht=At.disabled);var x=_==="checkbox"||_==="radio";return R.createElement(pi,Dt({component:"span",className:Ie(d.root,f,Lt&&d.checked,ht&&d.disabled),disabled:ht,tabIndex:null,role:void 0,onFocus:tt,onBlur:H,ref:n},v),R.createElement("input",Dt({autoFocus:a,checked:r,defaultChecked:p,className:d.input,disabled:ht,id:x&&E,name:L,onChange:s,readOnly:G,ref:I,required:ot,tabIndex:dt,type:_,value:$},N)),Lt?l:k)});const CP=gn(xP,{name:"PrivateSwitchBase"})(SP);var tr=44,TP=function(t){return{root:{display:"inline-block"},static:{transition:t.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:t.transitions.create("transform")},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:t.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:t.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}},EP=R.forwardRef(function(t,n){var a=t.classes,r=t.className,l=t.color,d=l===void 0?"primary":l,f=t.disableShrink,p=f===void 0?!1:f,y=t.size,k=y===void 0?40:y,E=t.style,N=t.thickness,I=N===void 0?3.6:N,L=t.value,K=L===void 0?0:L,J=t.variant,F=J===void 0?"indeterminate":J,G=Ke(t,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),ot={},dt={},_={};if(F==="determinate"||F==="static"){var $=2*Math.PI*((tr-I)/2);ot.strokeDasharray=$.toFixed(3),_["aria-valuenow"]=Math.round(K),ot.strokeDashoffset="".concat(((100-K)/100*$).toFixed(3),"px"),dt.transform="rotate(-90deg)"}return R.createElement("div",Dt({className:Ie(a.root,r,d!=="inherit"&&a["color".concat(sn(d))],{determinate:a.determinate,indeterminate:a.indeterminate,static:a.static}[F]),style:Dt({width:k,height:k},dt,E),ref:n,role:"progressbar"},_,G),R.createElement("svg",{className:a.svg,viewBox:"".concat(tr/2," ").concat(tr/2," ").concat(tr," ").concat(tr)},R.createElement("circle",{className:Ie(a.circle,p&&a.circleDisableShrink,{determinate:a.circleDeterminate,indeterminate:a.circleIndeterminate,static:a.circleStatic}[F]),style:ot,cx:tr,cy:tr,r:(tr-I)/2,fill:"none",strokeWidth:I})))});const PP=gn(TP,{name:"MuiCircularProgress",flip:!1})(EP);function MP(e){return e=typeof e=="function"?e():e,lr.findDOMNode(e)}var Df=typeof window<"u"?R.useLayoutEffect:R.useEffect,AP=R.forwardRef(function(t,n){var a=t.children,r=t.container,l=t.disablePortal,d=l===void 0?!1:l,f=t.onRendered,p=R.useState(null),y=p[0],k=p[1],E=Ka(R.isValidElement(a)?a.ref:null,n);return Df(function(){d||k(MP(r)||document.body)},[r,d]),Df(function(){if(y&&!d)return ul(n,y),function(){ul(n,null)}},[n,y,d]),Df(function(){f&&(y||d)&&f()},[f,y,d]),d?R.isValidElement(a)?R.cloneElement(a,{ref:E}):a:y&&lr.createPortal(a,y)});function NP(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function LP(e){var t=mi(e);return t.body===e?rb(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function el(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function xv(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function Sv(e,t,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],r=arguments.length>4?arguments[4]:void 0,l=[t,n].concat(Zu(a)),d=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,function(f){f.nodeType===1&&l.indexOf(f)===-1&&d.indexOf(f.tagName)===-1&&el(f,r)})}function Rf(e,t){var n=-1;return e.some(function(a,r){return t(a)?(n=r,!0):!1}),n}function BP(e,t){var n=[],a=[],r=e.container,l;if(!t.disableScrollLock){if(LP(r)){var d=NP();n.push({value:r.style.paddingRight,key:"padding-right",el:r}),r.style["padding-right"]="".concat(xv(r)+d,"px"),l=mi(r).querySelectorAll(".mui-fixed"),[].forEach.call(l,function(k){a.push(k.style.paddingRight),k.style.paddingRight="".concat(xv(k)+d,"px")})}var f=r.parentElement,p=f.nodeName==="HTML"&&window.getComputedStyle(f)["overflow-y"]==="scroll"?f:r;n.push({value:p.style.overflow,key:"overflow",el:p}),p.style.overflow="hidden"}var y=function(){l&&[].forEach.call(l,function(E,N){a[N]?E.style.paddingRight=a[N]:E.style.removeProperty("padding-right")}),n.forEach(function(E){var N=E.value,I=E.el,L=E.key;N?I.style.setProperty(L,N):I.style.removeProperty(L)})};return y}function zP(e){var t=[];return[].forEach.call(e.children,function(n){n.getAttribute&&n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}var IP=(function(){function e(){QT(this,e),this.modals=[],this.containers=[]}return jh(e,[{key:"add",value:function(n,a){var r=this.modals.indexOf(n);if(r!==-1)return r;r=this.modals.length,this.modals.push(n),n.modalRef&&el(n.modalRef,!1);var l=zP(a);Sv(a,n.mountNode,n.modalRef,l,!0);var d=Rf(this.containers,function(f){return f.container===a});return d!==-1?(this.containers[d].modals.push(n),r):(this.containers.push({modals:[n],container:a,restore:null,hiddenSiblingNodes:l}),r)}},{key:"mount",value:function(n,a){var r=Rf(this.containers,function(d){return d.modals.indexOf(n)!==-1}),l=this.containers[r];l.restore||(l.restore=BP(l,a))}},{key:"remove",value:function(n){var a=this.modals.indexOf(n);if(a===-1)return a;var r=Rf(this.containers,function(f){return f.modals.indexOf(n)!==-1}),l=this.containers[r];if(l.modals.splice(l.modals.indexOf(n),1),this.modals.splice(a,1),l.modals.length===0)l.restore&&l.restore(),n.modalRef&&el(n.modalRef,!0),Sv(l.container,n.mountNode,n.modalRef,l.hiddenSiblingNodes,!1),this.containers.splice(r,1);else{var d=l.modals[l.modals.length-1];d.modalRef&&el(d.modalRef,!1)}return a}},{key:"isTopModal",value:function(n){return this.modals.length>0&&this.modals[this.modals.length-1]===n}}]),e})();function DP(e){var t=e.children,n=e.disableAutoFocus,a=n===void 0?!1:n,r=e.disableEnforceFocus,l=r===void 0?!1:r,d=e.disableRestoreFocus,f=d===void 0?!1:d,p=e.getDoc,y=e.isEnabled,k=e.open,E=R.useRef(),N=R.useRef(null),I=R.useRef(null),L=R.useRef(),K=R.useRef(null),J=R.useCallback(function(ot){K.current=lr.findDOMNode(ot)},[]),F=Ka(t.ref,J),G=R.useRef();return R.useEffect(function(){G.current=k},[k]),!G.current&&k&&typeof window<"u"&&(L.current=p().activeElement),R.useEffect(function(){if(k){var ot=mi(K.current);!a&&K.current&&!K.current.contains(ot.activeElement)&&(K.current.hasAttribute("tabIndex")||K.current.setAttribute("tabIndex",-1),K.current.focus());var dt=function(){var mt=K.current;if(mt!==null){if(!ot.hasFocus()||l||!y()||E.current){E.current=!1;return}K.current&&!K.current.contains(ot.activeElement)&&K.current.focus()}},_=function(mt){l||!y()||mt.keyCode!==9||ot.activeElement===K.current&&(E.current=!0,mt.shiftKey?I.current.focus():N.current.focus())};ot.addEventListener("focus",dt,!0),ot.addEventListener("keydown",_,!0);var $=setInterval(function(){dt()},50);return function(){clearInterval($),ot.removeEventListener("focus",dt,!0),ot.removeEventListener("keydown",_,!0),f||(L.current&&L.current.focus&&L.current.focus(),L.current=null)}}},[a,l,f,y,k]),R.createElement(R.Fragment,null,R.createElement("div",{tabIndex:0,ref:N,"data-test":"sentinelStart"}),R.cloneElement(t,{ref:F}),R.createElement("div",{tabIndex:0,ref:I,"data-test":"sentinelEnd"}))}var Cv={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},RP=R.forwardRef(function(t,n){var a=t.invisible,r=a===void 0?!1:a,l=t.open,d=Ke(t,["invisible","open"]);return l?R.createElement("div",Dt({"aria-hidden":!0,ref:n},d,{style:Dt({},Cv.root,r?Cv.invisible:{},d.style)})):null});function jP(e){return e=typeof e=="function"?e():e,lr.findDOMNode(e)}function OP(e){return e.children?e.children.props.hasOwnProperty("in"):!1}var KP=new IP,qP=function(t){return{root:{position:"fixed",zIndex:t.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}},$P=R.forwardRef(function(t,n){var a=hl(),r=Iy({name:"MuiModal",props:Dt({},t),theme:a}),l=r.BackdropComponent,d=l===void 0?RP:l,f=r.BackdropProps,p=r.children,y=r.closeAfterTransition,k=y===void 0?!1:y,E=r.container,N=r.disableAutoFocus,I=N===void 0?!1:N,L=r.disableBackdropClick,K=L===void 0?!1:L,J=r.disableEnforceFocus,F=J===void 0?!1:J,G=r.disableEscapeKeyDown,ot=G===void 0?!1:G,dt=r.disablePortal,_=dt===void 0?!1:dt,$=r.disableRestoreFocus,v=$===void 0?!1:$,mt=r.disableScrollLock,ft=mt===void 0?!1:mt,Lt=r.hideBackdrop,Nt=Lt===void 0?!1:Lt,At=r.keepMounted,tt=At===void 0?!1:At,H=r.manager,s=H===void 0?KP:H,ht=r.onBackdropClick,x=r.onClose,lt=r.onEscapeKeyDown,bt=r.onRendered,St=r.open,O=Ke(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),wt=R.useState(!0),xt=wt[0],Ot=wt[1],Mt=R.useRef({}),Ht=R.useRef(null),Qt=R.useRef(null),de=Ka(Qt,n),me=OP(r),Pe=function(){return mi(Ht.current)},ln=function(){return Mt.current.modalRef=Qt.current,Mt.current.mountNode=Ht.current,Mt.current},Oe=function(){s.mount(ln(),{disableScrollLock:ft}),Qt.current.scrollTop=0},rn=jn(function(){var it=jP(E)||Pe().body;s.add(ln(),it),Qt.current&&Oe()}),Ve=R.useCallback(function(){return s.isTopModal(ln())},[s]),kn=jn(function(it){Ht.current=it,it&&(bt&&bt(),St&&Ve()?Oe():el(Qt.current,!0))}),Ye=R.useCallback(function(){s.remove(ln())},[s]);if(R.useEffect(function(){return function(){Ye()}},[Ye]),R.useEffect(function(){St?rn():(!me||!k)&&Ye()},[St,Ye,me,k,rn]),!tt&&!St&&(!me||xt))return null;var yn=function(){Ot(!1)},Je=function(){Ot(!0),k&&Ye()},un=function(vt){vt.target===vt.currentTarget&&(ht&&ht(vt),!K&&x&&x(vt,"backdropClick"))},M=function(vt){vt.key!=="Escape"||!Ve()||(lt&<(vt),ot||(vt.stopPropagation(),x&&x(vt,"escapeKeyDown")))},D=qP(a||{zIndex:eb}),Y={};return p.props.tabIndex===void 0&&(Y.tabIndex=p.props.tabIndex||"-1"),me&&(Y.onEnter=$u(yn,p.props.onEnter),Y.onExited=$u(Je,p.props.onExited)),R.createElement(AP,{ref:kn,container:E,disablePortal:_},R.createElement("div",Dt({ref:de,onKeyDown:M,role:"presentation"},O,{style:Dt({},D.root,!St&&xt?D.hidden:{},O.style)}),Nt?null:R.createElement(d,Dt({open:St,onClick:un},f)),R.createElement(DP,{disableEnforceFocus:F,disableAutoFocus:I,disableRestoreFocus:v,getDoc:Pe,isEnabled:Ve,open:St},R.cloneElement(p,Y))))}),HP=function(t){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(t.breakpoints.values.xs,444),"&$paperScrollBody":Bi({},t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:t.breakpoints.values.sm,"&$paperScrollBody":Bi({},t.breakpoints.down(t.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:t.breakpoints.values.md,"&$paperScrollBody":Bi({},t.breakpoints.down(t.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:t.breakpoints.values.lg,"&$paperScrollBody":Bi({},t.breakpoints.down(t.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:t.breakpoints.values.xl,"&$paperScrollBody":Bi({},t.breakpoints.down(t.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}},FP={enter:Fo.enteringScreen,exit:Fo.leavingScreen},WP=R.forwardRef(function(t,n){var a=t.BackdropProps,r=t.children,l=t.classes,d=t.className,f=t.disableBackdropClick,p=f===void 0?!1:f,y=t.disableEscapeKeyDown,k=y===void 0?!1:y,E=t.fullScreen,N=E===void 0?!1:E,I=t.fullWidth,L=I===void 0?!1:I,K=t.maxWidth,J=K===void 0?"sm":K,F=t.onBackdropClick,G=t.onClose,ot=t.onEnter,dt=t.onEntered,_=t.onEntering,$=t.onEscapeKeyDown,v=t.onExit,mt=t.onExited,ft=t.onExiting,Lt=t.open,Nt=t.PaperComponent,At=Nt===void 0?Ib:Nt,tt=t.PaperProps,H=tt===void 0?{}:tt,s=t.scroll,ht=s===void 0?"paper":s,x=t.TransitionComponent,lt=x===void 0?Db:x,bt=t.transitionDuration,St=bt===void 0?FP:bt,O=t.TransitionProps,wt=t["aria-describedby"],xt=t["aria-labelledby"],Ot=Ke(t,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),Mt=R.useRef(),Ht=function(me){Mt.current=me.target},Qt=function(me){me.target===me.currentTarget&&me.target===Mt.current&&(Mt.current=null,F&&F(me),!p&&G&&G(me,"backdropClick"))};return R.createElement($P,Dt({className:Ie(l.root,d),BackdropComponent:mP,BackdropProps:Dt({transitionDuration:St},a),closeAfterTransition:!0},p?{disableBackdropClick:p}:{},{disableEscapeKeyDown:k,onEscapeKeyDown:$,onClose:G,open:Lt,ref:n},Ot),R.createElement(lt,Dt({appear:!0,in:Lt,timeout:St,onEnter:ot,onEntering:_,onEntered:dt,onExit:v,onExiting:ft,onExited:mt,role:"none presentation"},O),R.createElement("div",{className:Ie(l.container,l["scroll".concat(sn(ht))]),onMouseUp:Qt,onMouseDown:Ht},R.createElement(At,Dt({elevation:24,role:"dialog","aria-describedby":wt,"aria-labelledby":xt},H,{className:Ie(l.paper,l["paperScroll".concat(sn(ht))],l["paperWidth".concat(sn(String(J)))],H.className,N&&l.paperFullScreen,L&&l.paperFullWidth)}),r))))});const _P=gn(HP,{name:"MuiDialog"})(WP);var VP={root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},GP=R.forwardRef(function(t,n){var a=t.disableSpacing,r=a===void 0?!1:a,l=t.classes,d=t.className,f=Ke(t,["disableSpacing","classes","className"]);return R.createElement("div",Dt({className:Ie(l.root,d,!r&&l.spacing),ref:n},f))});const UP=gn(VP,{name:"MuiDialogActions"})(GP);var YP={root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},XP=R.forwardRef(function(t,n){var a=t.children,r=t.classes,l=t.className,d=t.disableTypography,f=d===void 0?!1:d,p=Ke(t,["children","classes","className","disableTypography"]);return R.createElement("div",Dt({className:Ie(r.root,l),ref:n},p),f?a:R.createElement(Rb,{component:"h2",variant:"h6"},a))});const ZP=gn(YP,{name:"MuiDialogTitle"})(XP);function Tv(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function JP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return e&&(Tv(e.value)&&e.value!==""||t&&Tv(e.defaultValue)&&e.defaultValue!=="")}function QP(e){return e.startAdornment}var tM={root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},eM=R.forwardRef(function(t,n){var a=t.children,r=t.classes,l=t.className,d=t.color,f=d===void 0?"primary":d,p=t.component,y=p===void 0?"div":p,k=t.disabled,E=k===void 0?!1:k,N=t.error,I=N===void 0?!1:N,L=t.fullWidth,K=L===void 0?!1:L,J=t.focused,F=t.hiddenLabel,G=F===void 0?!1:F,ot=t.margin,dt=ot===void 0?"none":ot,_=t.required,$=_===void 0?!1:_,v=t.size,mt=t.variant,ft=mt===void 0?"standard":mt,Lt=Ke(t,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),Nt=R.useState(function(){var Mt=!1;return a&&R.Children.forEach(a,function(Ht){if(xu(Ht,["Input","Select"])){var Qt=xu(Ht,["Select"])?Ht.props.input:Ht;Qt&&QP(Qt.props)&&(Mt=!0)}}),Mt}),At=Nt[0],tt=Nt[1],H=R.useState(function(){var Mt=!1;return a&&R.Children.forEach(a,function(Ht){xu(Ht,["Input","Select"])&&JP(Ht.props,!0)&&(Mt=!0)}),Mt}),s=H[0],ht=H[1],x=R.useState(!1),lt=x[0],bt=x[1],St=J!==void 0?J:lt;E&&St&&bt(!1);var O,wt=R.useCallback(function(){ht(!0)},[]),xt=R.useCallback(function(){ht(!1)},[]),Ot={adornedStart:At,setAdornedStart:tt,color:f,disabled:E,error:I,filled:s,focused:St,fullWidth:K,hiddenLabel:G,margin:(v==="small"?"dense":void 0)||dt,onBlur:function(){bt(!1)},onEmpty:xt,onFilled:wt,onFocus:function(){bt(!0)},registerEffect:O,required:$,variant:ft};return R.createElement(jb.Provider,{value:Ot},R.createElement(y,Dt({className:Ie(r.root,l,dt!=="none"&&r["margin".concat(sn(dt))],K&&r.fullWidth),ref:n},Lt),a))});const nM=gn(tM,{name:"MuiFormControl"})(eM);var aM=function(t){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:t.palette.text.disabled}}}},iM=R.forwardRef(function(t,n){t.checked;var a=t.classes,r=t.className,l=t.control,d=t.disabled;t.inputRef;var f=t.label,p=t.labelPlacement,y=p===void 0?"end":p;t.name,t.onChange,t.value;var k=Ke(t,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"]),E=Ob(),N=d;typeof N>"u"&&typeof l.props.disabled<"u"&&(N=l.props.disabled),typeof N>"u"&&E&&(N=E.disabled);var I={disabled:N};return["checked","name","onChange","value","inputRef"].forEach(function(L){typeof l.props[L]>"u"&&typeof t[L]<"u"&&(I[L]=t[L])}),R.createElement("label",Dt({className:Ie(a.root,r,y!=="end"&&a["labelPlacement".concat(sn(y))],N&&a.disabled),ref:n},k),R.cloneElement(l,I),R.createElement(Rb,{component:"span",className:Ie(a.label,N&&a.disabled)},f))});const rM=gn(aM,{name:"MuiFormControlLabel"})(iM);var oM={root:{display:"flex",flexDirection:"column",flexWrap:"wrap"},row:{flexDirection:"row"}},sM=R.forwardRef(function(t,n){var a=t.classes,r=t.className,l=t.row,d=l===void 0?!1:l,f=Ke(t,["classes","className","row"]);return R.createElement("div",Dt({className:Ie(a.root,r,d&&a.row),ref:n},f))});const lM=gn(oM,{name:"MuiFormGroup"})(sM),uM=Gh(R.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),cM=Gh(R.createElement("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}));var dM=function(t){return{root:{position:"relative",display:"flex","&$checked $layer":{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}},layer:{left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest})},checked:{}}};function fM(e){var t=e.checked,n=e.classes,a=e.fontSize;return R.createElement("div",{className:Ie(n.root,t&&n.checked)},R.createElement(uM,{fontSize:a}),R.createElement(cM,{fontSize:a,className:n.layer}))}const Kb=gn(dM,{name:"PrivateRadioButtonIcon"})(fM);var qb=R.createContext();function hM(){return R.useContext(qb)}var pM=function(t){return{root:{color:t.palette.text.secondary},checked:{},disabled:{},colorPrimary:{"&$checked":{color:t.palette.primary.main,"&:hover":{backgroundColor:Un(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:t.palette.action.disabled}},colorSecondary:{"&$checked":{color:t.palette.secondary.main,"&:hover":{backgroundColor:Un(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:t.palette.action.disabled}}}},gM=R.createElement(Kb,{checked:!0}),mM=R.createElement(Kb,null),vM=R.forwardRef(function(t,n){var a=t.checked,r=t.classes,l=t.color,d=l===void 0?"secondary":l,f=t.name,p=t.onChange,y=t.size,k=y===void 0?"medium":y,E=Ke(t,["checked","classes","color","name","onChange","size"]),N=hM(),I=a,L=$u(p,N&&N.onChange),K=f;return N&&(typeof I>"u"&&(I=N.value===t.value),typeof K>"u"&&(K=N.name)),R.createElement(CP,Dt({color:d,type:"radio",icon:R.cloneElement(mM,{fontSize:k==="small"?"small":"medium"}),checkedIcon:R.cloneElement(gM,{fontSize:k==="small"?"small":"medium"}),classes:{root:Ie(r.root,r["color".concat(sn(d))]),checked:r.checked,disabled:r.disabled},name:K,checked:I,onChange:L,ref:n},E))});const yM=gn(pM,{name:"MuiRadio"})(vM);var bM=R.forwardRef(function(t,n){var a=t.actions,r=t.children,l=t.name,d=t.value,f=t.onChange,p=Ke(t,["actions","children","name","value","onChange"]),y=R.useRef(null),k=ec({controlled:d,default:t.defaultValue,name:"RadioGroup"}),E=Qu(k,2),N=E[0],I=E[1];R.useImperativeHandle(a,function(){return{focus:function(){var G=y.current.querySelector("input:not(:disabled):checked");G||(G=y.current.querySelector("input:not(:disabled)")),G&&G.focus()}}},[]);var L=Ka(n,y),K=function(G){I(G.target.value),f&&f(G,G.target.value)},J=ob(l);return R.createElement(qb.Provider,{value:{name:J,onChange:K,value:N}},R.createElement(lM,Dt({role:"radiogroup",ref:L},p),r))}),wM=function(t){return{thumb:{"&$open":{"& $offset":{transform:"scale(1) translateY(-10px)"}}},open:{},offset:Dt({zIndex:1},t.typography.body2,{fontSize:t.typography.pxToRem(12),lineHeight:1.2,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),top:-34,transformOrigin:"bottom center",transform:"scale(0)",position:"absolute"}),circle:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:"currentColor",transform:"rotate(-45deg)"},label:{color:t.palette.primary.contrastText,transform:"rotate(45deg)"}}};function kM(e){var t=e.children,n=e.classes,a=e.className,r=e.open,l=e.value,d=e.valueLabelDisplay;return d==="off"?t:R.cloneElement(t,{className:Ie(t.props.className,(r||d==="on")&&n.open,n.thumb)},R.createElement("span",{className:Ie(n.offset,a)},R.createElement("span",{className:n.circle},R.createElement("span",{className:n.label},l))))}const xM=gn(wM,{name:"PrivateValueLabel"})(kM);function jf(e,t){return e-t}function Of(e,t,n){return Math.min(Math.max(t,e),n)}function Ev(e,t){var n=e.reduce(function(r,l,d){var f=Math.abs(t-l);return r===null||f<r.distance||f===r.distance?{distance:f,index:d}:r},null),a=n.index;return a}function gu(e,t){if(t.current!==void 0&&e.changedTouches){for(var n=0;n<e.changedTouches.length;n+=1){var a=e.changedTouches[n];if(a.identifier===t.current)return{x:a.clientX,y:a.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function mu(e,t,n){return(e-t)*100/(n-t)}function SM(e,t,n){return(n-t)*e+t}function CM(e){if(Math.abs(e)<1){var t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}var a=e.toString().split(".")[1];return a?a.length:0}function Pv(e,t,n){var a=Math.round((e-n)/t)*t+n;return Number(a.toFixed(CM(t)))}function Mv(e){var t=e.values,n=e.source,a=e.newValue,r=e.index;if(t[r]===a)return n;var l=t.slice();return l[r]=a,l}function vu(e){var t=e.sliderRef,n=e.activeIndex,a=e.setActive;(!t.current.contains(document.activeElement)||Number(document.activeElement.getAttribute("data-index"))!==n)&&t.current.querySelector('[role="slider"][data-index="'.concat(n,'"]')).focus(),a&&a(n)}var yu={horizontal:{offset:function(t){return{left:"".concat(t,"%")}},leap:function(t){return{width:"".concat(t,"%")}}},"horizontal-reverse":{offset:function(t){return{right:"".concat(t,"%")}},leap:function(t){return{width:"".concat(t,"%")}}},vertical:{offset:function(t){return{bottom:"".concat(t,"%")}},leap:function(t){return{height:"".concat(t,"%")}}}},Av=function(t){return t},TM=function(t){return{root:{height:2,width:"100%",boxSizing:"content-box",padding:"13px 0",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:t.palette.primary.main,WebkitTapHighlightColor:"transparent","&$disabled":{pointerEvents:"none",cursor:"default",color:t.palette.grey[400]},"&$vertical":{width:2,height:"100%",padding:"0 13px"},"@media (pointer: coarse)":{padding:"20px 0","&$vertical":{padding:"0 20px"}},"@media print":{colorAdjust:"exact"}},colorPrimary:{},colorSecondary:{color:t.palette.secondary.main},marked:{marginBottom:20,"&$vertical":{marginBottom:"auto",marginRight:20}},vertical:{},disabled:{},rail:{display:"block",position:"absolute",width:"100%",height:2,borderRadius:1,backgroundColor:"currentColor",opacity:.38,"$vertical &":{height:"100%",width:2}},track:{display:"block",position:"absolute",height:2,borderRadius:1,backgroundColor:"currentColor","$vertical &":{width:2}},trackFalse:{"& $track":{display:"none"}},trackInverted:{"& $track":{backgroundColor:t.palette.type==="light"?Qy(t.palette.primary.main,.62):Jy(t.palette.primary.main,.5)},"& $rail":{opacity:1}},thumb:{position:"absolute",width:12,height:12,marginLeft:-6,marginTop:-5,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow"],{duration:t.transitions.duration.shortest}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",left:-15,top:-15,right:-15,bottom:-15},"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(Un(t.palette.primary.main,.16)),"@media (hover: none)":{boxShadow:"none"}},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(Un(t.palette.primary.main,.16))},"&$disabled":{width:8,height:8,marginLeft:-4,marginTop:-3,"&:hover":{boxShadow:"none"}},"$vertical &":{marginLeft:-5,marginBottom:-6},"$vertical &$disabled":{marginLeft:-3,marginBottom:-4}},thumbColorPrimary:{},thumbColorSecondary:{"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(Un(t.palette.secondary.main,.16))},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(Un(t.palette.secondary.main,.16))}},active:{},focusVisible:{},valueLabel:{left:"calc(-50% - 4px)"},mark:{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},markActive:{backgroundColor:t.palette.background.paper,opacity:.8},markLabel:Dt({},t.typography.body2,{color:t.palette.text.secondary,position:"absolute",top:26,transform:"translateX(-50%)",whiteSpace:"nowrap","$vertical &":{top:"auto",left:26,transform:"translateY(50%)"},"@media (pointer: coarse)":{top:40,"$vertical &":{left:31}}}),markLabelActive:{color:t.palette.text.primary}}},EM=R.forwardRef(function(t,n){var a=t["aria-label"],r=t["aria-labelledby"],l=t["aria-valuetext"],d=t.classes,f=t.className,p=t.color,y=p===void 0?"primary":p,k=t.component,E=k===void 0?"span":k,N=t.defaultValue,I=t.disabled,L=I===void 0?!1:I,K=t.getAriaLabel,J=t.getAriaValueText,F=t.marks,G=F===void 0?!1:F,ot=t.max,dt=ot===void 0?100:ot,_=t.min,$=_===void 0?0:_,v=t.name,mt=t.onChange,ft=t.onChangeCommitted,Lt=t.onMouseDown,Nt=t.orientation,At=Nt===void 0?"horizontal":Nt,tt=t.scale,H=tt===void 0?Av:tt,s=t.step,ht=s===void 0?1:s,x=t.ThumbComponent,lt=x===void 0?"span":x,bt=t.track,St=bt===void 0?"normal":bt,O=t.value,wt=t.ValueLabelComponent,xt=wt===void 0?xM:wt,Ot=t.valueLabelDisplay,Mt=Ot===void 0?"off":Ot,Ht=t.valueLabelFormat,Qt=Ht===void 0?Av:Ht,de=Ke(t,["aria-label","aria-labelledby","aria-valuetext","classes","className","color","component","defaultValue","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","scale","step","ThumbComponent","track","value","ValueLabelComponent","valueLabelDisplay","valueLabelFormat"]),me=zb(),Pe=R.useRef(),ln=R.useState(-1),Oe=ln[0],rn=ln[1],Ve=R.useState(-1),kn=Ve[0],Ye=Ve[1],yn=ec({controlled:O,default:N,name:"Slider"}),Je=Qu(yn,2),un=Je[0],M=Je[1],D=Array.isArray(un),Y=D?un.slice().sort(jf):[un];Y=Y.map(function(zt){return Of(zt,$,dt)});var it=G===!0&&ht!==null?Zu(Array(Math.floor((dt-$)/ht)+1)).map(function(zt,Ft){return{value:$+ht*Ft}}):G||[],vt=Wh(),st=vt.isFocusVisible,Xt=vt.onBlurVisible,Me=vt.ref,Re=R.useState(-1),ee=Re[0],Xe=Re[1],Qe=R.useRef(),Kn=Ka(Me,Qe),Ze=Ka(n,Kn),xn=jn(function(zt){var Ft=Number(zt.currentTarget.getAttribute("data-index"));st(zt)&&Xe(Ft),Ye(Ft)}),Bn=jn(function(){ee!==-1&&(Xe(-1),Xt()),Ye(-1)}),qn=jn(function(zt){var Ft=Number(zt.currentTarget.getAttribute("data-index"));Ye(Ft)}),Vt=jn(function(){Ye(-1)}),Nn=me.direction==="rtl",X=jn(function(zt){var Ft=Number(zt.currentTarget.getAttribute("data-index")),re=Y[Ft],Le=(dt-$)/10,Ae=it.map(function(ua){return ua.value}),cn=Ae.indexOf(re),je,$n=Nn?"ArrowLeft":"ArrowRight",Jn=Nn?"ArrowRight":"ArrowLeft";switch(zt.key){case"Home":je=$;break;case"End":je=dt;break;case"PageUp":ht&&(je=re+Le);break;case"PageDown":ht&&(je=re-Le);break;case $n:case"ArrowUp":ht?je=re+ht:je=Ae[cn+1]||Ae[Ae.length-1];break;case Jn:case"ArrowDown":ht?je=re-ht:je=Ae[cn-1]||Ae[0];break;default:return}if(zt.preventDefault(),ht&&(je=Pv(je,ht,$)),je=Of(je,$,dt),D){var la=je;je=Mv({values:Y,source:un,newValue:je,index:Ft}).sort(jf),vu({sliderRef:Qe,activeIndex:je.indexOf(la)})}M(je),Xe(Ft),mt&&mt(zt,je),ft&&ft(zt,je)}),Ut=R.useRef(),ie=At;Nn&&At!=="vertical"&&(ie+="-reverse");var $e=function(Ft){var re=Ft.finger,Le=Ft.move,Ae=Le===void 0?!1:Le,cn=Ft.values,je=Ft.source,$n=Qe.current,Jn=$n.getBoundingClientRect(),la=Jn.width,ua=Jn.height,Qn=Jn.bottom,ur=Jn.left,Sn;ie.indexOf("vertical")===0?Sn=(Qn-re.y)/ua:Sn=(re.x-ur)/la,ie.indexOf("-reverse")!==-1&&(Sn=1-Sn);var dn;if(dn=SM(Sn,$,dt),ht)dn=Pv(dn,ht,$);else{var fn=it.map(function($a){return $a.value}),ca=Ev(fn,dn);dn=fn[ca]}dn=Of(dn,$,dt);var zn=0;if(D){Ae?zn=Ut.current:zn=Ev(cn,dn);var wi=dn;dn=Mv({values:cn,source:je,newValue:dn,index:zn}).sort(jf),zn=dn.indexOf(wi),Ut.current=zn}return{newValue:dn,activeIndex:zn}},Ge=jn(function(zt){var Ft=gu(zt,Pe);if(Ft){var re=$e({finger:Ft,move:!0,values:Y,source:un}),Le=re.newValue,Ae=re.activeIndex;vu({sliderRef:Qe,activeIndex:Ae,setActive:rn}),M(Le),mt&&mt(zt,Le)}}),Ue=jn(function(zt){var Ft=gu(zt,Pe);if(Ft){var re=$e({finger:Ft,values:Y,source:un}),Le=re.newValue;rn(-1),zt.type==="touchend"&&Ye(-1),ft&&ft(zt,Le),Pe.current=void 0;var Ae=mi(Qe.current);Ae.removeEventListener("mousemove",Ge),Ae.removeEventListener("mouseup",Ue),Ae.removeEventListener("touchmove",Ge),Ae.removeEventListener("touchend",Ue)}}),ke=jn(function(zt){zt.preventDefault();var Ft=zt.changedTouches[0];Ft!=null&&(Pe.current=Ft.identifier);var re=gu(zt,Pe),Le=$e({finger:re,values:Y,source:un}),Ae=Le.newValue,cn=Le.activeIndex;vu({sliderRef:Qe,activeIndex:cn,setActive:rn}),M(Ae),mt&&mt(zt,Ae);var je=mi(Qe.current);je.addEventListener("touchmove",Ge),je.addEventListener("touchend",Ue)});R.useEffect(function(){var zt=Qe.current;zt.addEventListener("touchstart",ke);var Ft=mi(zt);return function(){zt.removeEventListener("touchstart",ke),Ft.removeEventListener("mousemove",Ge),Ft.removeEventListener("mouseup",Ue),Ft.removeEventListener("touchmove",Ge),Ft.removeEventListener("touchend",Ue)}},[Ue,Ge,ke]);var Pt=jn(function(zt){Lt&&Lt(zt),zt.preventDefault();var Ft=gu(zt,Pe),re=$e({finger:Ft,values:Y,source:un}),Le=re.newValue,Ae=re.activeIndex;vu({sliderRef:Qe,activeIndex:Ae,setActive:rn}),M(Le),mt&&mt(zt,Le);var cn=mi(Qe.current);cn.addEventListener("mousemove",Ge),cn.addEventListener("mouseup",Ue)}),ne=mu(D?Y[0]:$,$,dt),xe=mu(Y[Y.length-1],$,dt)-ne,ve=Dt({},yu[ie].offset(ne),yu[ie].leap(xe));return R.createElement(E,Dt({ref:Ze,className:Ie(d.root,d["color".concat(sn(y))],f,L&&d.disabled,it.length>0&&it.some(function(zt){return zt.label})&&d.marked,St===!1&&d.trackFalse,At==="vertical"&&d.vertical,St==="inverted"&&d.trackInverted),onMouseDown:Pt},de),R.createElement("span",{className:d.rail}),R.createElement("span",{className:d.track,style:ve}),R.createElement("input",{value:Y.join(","),name:v,type:"hidden"}),it.map(function(zt,Ft){var re=mu(zt.value,$,dt),Le=yu[ie].offset(re),Ae;return St===!1?Ae=Y.indexOf(zt.value)!==-1:Ae=St==="normal"&&(D?zt.value>=Y[0]&&zt.value<=Y[Y.length-1]:zt.value<=Y[0])||St==="inverted"&&(D?zt.value<=Y[0]||zt.value>=Y[Y.length-1]:zt.value>=Y[0]),R.createElement(R.Fragment,{key:zt.value},R.createElement("span",{style:Le,"data-index":Ft,className:Ie(d.mark,Ae&&d.markActive)}),zt.label!=null?R.createElement("span",{"aria-hidden":!0,"data-index":Ft,style:Le,className:Ie(d.markLabel,Ae&&d.markLabelActive)},zt.label):null)}),Y.map(function(zt,Ft){var re=mu(zt,$,dt),Le=yu[ie].offset(re);return R.createElement(xt,{key:Ft,valueLabelFormat:Qt,valueLabelDisplay:Mt,className:d.valueLabel,value:typeof Qt=="function"?Qt(H(zt),Ft):Qt,index:Ft,open:kn===Ft||Oe===Ft||Mt==="on",disabled:L},R.createElement(lt,{className:Ie(d.thumb,d["thumbColor".concat(sn(y))],Oe===Ft&&d.active,L&&d.disabled,ee===Ft&&d.focusVisible),tabIndex:L?null:0,role:"slider",style:Le,"data-index":Ft,"aria-label":K?K(Ft):a,"aria-labelledby":r,"aria-orientation":At,"aria-valuemax":H(dt),"aria-valuemin":H($),"aria-valuenow":H(zt),"aria-valuetext":J?J(H(zt),Ft):l,onKeyDown:X,onFocus:xn,onBlur:Bn,onMouseOver:qn,onMouseLeave:Vt}))}))});const PM=gn(TM,{name:"MuiSlider"})(EM);var MM=function(t){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:Bi({paddingLeft:t.spacing(2),paddingRight:t.spacing(2)},t.breakpoints.up("sm"),{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}),regular:t.mixins.toolbar,dense:{minHeight:48}}},AM=R.forwardRef(function(t,n){var a=t.classes,r=t.className,l=t.component,d=l===void 0?"div":l,f=t.disableGutters,p=f===void 0?!1:f,y=t.variant,k=y===void 0?"regular":y,E=Ke(t,["classes","className","component","disableGutters","variant"]);return R.createElement(d,Dt({className:Ie(a.root,a[k],r,!p&&a.gutters),ref:n},E))});const NM=gn(MM,{name:"MuiToolbar"})(AM);class Nv{static getBookLanguage1(t){const n=t.querySelector("#bloomDataDiv");if(!n)return;const a=n.querySelector("div[data-book='contentLanguage1']").innerHTML.trim();if(a)return a}static getNationalLanguagesFromCssStyles(t){let n,a;const r=/\[lang=['"](.+)['"]\]/gm;let l=0,d=r.exec(t);for(;d!=null;){if(l++,l===2)n=d[1];else if(l===3){a=d[1];break}d=r.exec(t)}return[n,a]}}const Ni=class Ni{constructor(){this.totalNumberedPages=0,this.questionCount=0,this.brandingProjectName="",this.bookInstanceId="",this.bookTitle="",this.originalTitle="",this.copyrightHolder="",this.originalCopyrightHolder="",this.sessionId=this.generateUUID(),this.creator=Ni.DEFAULT_CREATOR,this.publisher="",this.originalPublisher="",this.features="",this.bookshelves=""}static getCreator(t){const n=t.getElementsByTagName("meta");if(n.length===0)return Ni.DEFAULT_CREATOR;const a=n.namedItem("bloom-digital-creator");return a===null?Ni.DEFAULT_CREATOR:a.content}static getCopyrightInfo(t,n){const a=/^Copyright © \d\d\d\d, /;return this.getDataDivValue(t,n).replace(a,"")}static getDataDivValue(t,n){const a=t.ownerDocument.evaluate(".//div[@data-book='"+n+"']",t,null,XPathResult.ANY_UNORDERED_NODE_TYPE,null).singleNodeValue;return!a||!a.textContent?"":a.textContent.trim()}hasFeature(t){return this.features.indexOf(t)>-1}getAmbientAnalyticsProps(){const t={bookInstanceId:this.bookInstanceId,totalNumberedPages:this.totalNumberedPages,questionCount:this.questionCount,contentLang:this.bookLanguage1,features:this.features,sessionId:this.sessionId,title:this.bookTitle,originalTitle:this.originalTitle,creator:this.creator,brandingProjectName:this.brandingProjectName,originalCopyrightHolder:this.originalCopyrightHolder,copyrightHolder:this.copyrightHolder,publisher:this.publisher,originalPublisher:this.originalPublisher,bookshelves:this.bookshelves},n=Oa("host",null);return n!=null?t.host=n:window.location.hostname==="localhost"&&(t.host="testing"),t}getPreferredTranslationLanguages(){return[this.bookLanguage1,this.bookLanguage2,this.bookLanguage3].filter(t=>!!t)}setSomeBookInfoFromHead(t){this.creator=Ni.getCreator(t)}setSomeBookInfoFromBody(t){this.bookLanguage1=Nv.getBookLanguage1(t),this.canRotate=t.hasAttribute("data-bfcanrotate"),this.autoAdvance=t.hasAttribute("data-bfautoadvance"),this.playAnimations=t.hasAttribute("data-bfplayanimations"),this.copyrightHolder=Ni.getCopyrightInfo(t,"copyright"),this.originalCopyrightHolder=Ni.getCopyrightInfo(t,"originalCopyright")}setSomeBookInfoFromMetadata(t,n){this.bookInstanceId=t.bookInstanceId,this.brandingProjectName=t.brandingProjectName,this.bookTitle=t.title,this.originalTitle=t.originalTitle,this.publisher=t.publisher,this.originalPublisher=t.originalPublisher,this.bookshelves=this.getBookshelves(t.tags,t.bookshelves);const a=t.bloomdVersion?t.bloomdVersion:0;this.features=a>0?t.features:this.guessFeatures(n)}getBookshelves(t,n){const a=Array.from(n??[]);return t&&t.forEach(r=>{if(r.startsWith("bookshelf:")){const l=r.substring(10).trim();a.includes(l)||a.push(l)}}),a.join(",")}setLanguage2And3(t){[this.bookLanguage2,this.bookLanguage3]=Nv.getNationalLanguagesFromCssStyles(t)}guessFeatures(t){const n=[],a=t.ownerDocument.evaluate(".//video/source[@src]",t,null,XPathResult.ANY_UNORDERED_NODE_TYPE,null).singleNodeValue!=null,r=(t.getAttribute("data-bffullscreenpicture")||"").indexOf("landscape;bloomReader")>=0,l=t.ownerDocument.evaluate(".//div[contains(@class, 'bloom-page') and not(@data-xmatter-page)]//div[contains(@class, 'bloom-imageDescription')]",t,null,XPathResult.ANY_UNORDERED_NODE_TYPE,null).singleNodeValue!=null,d=t.ownerDocument.evaluate(".//*[contains(@class, 'audio-sentence')]",t,null,XPathResult.ANY_UNORDERED_NODE_TYPE,null).singleNodeValue!=null;return l&&n.push("blind"),a&&n.push("signLanguage"),d&&n.push("talkingBook"),r&&n.push("motion"),n.join(",")}generateUUID(){let t=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{const a=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(n==="x"?a:a&3|8).toString(16)})}};Ni.DEFAULT_CREATOR="bloom";let vh=Ni;class LM{constructor(){this.lastNumberedPageWasRead=!1,this.beginReadTime=Date.now(),this.totalAudioDuration=0,this.totalVideoDuration=0,this.reportedAudioOnCurrentPage=!1,this.reportedVideoOnCurrentPage=!1,this.pagesShown=new Set,this.audioPagesShown=new Set,this.videoPagesShown=new Set}getProgressReportPropertiesForAnalytics(){return{audioPages:this.audioPagesShown.size,nonAudioPages:this.pagesShown.size-this.audioPagesShown.size,videoPages:this.videoPagesShown.size,audioDuration:this.totalAudioDuration,videoDuration:this.totalVideoDuration,lastNumberedPageRead:this.lastNumberedPageWasRead,readDuration:Math.floor((Date.now()-this.beginReadTime)/1e3)}}pageShown(t){this.pagesShown.add(t)}audioPageShown(t){this.audioPagesShown.add(t)}videoPageShown(t){this.videoPagesShown.add(t)}clearPagesShown(){this.pagesShown.clear(),this.audioPagesShown.clear(),this.videoPagesShown.clear()}}async function BM(e,t,n,a){IM();const r=e.ownerDocument.evaluate(".//link[@href and @type='text/css']",e,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null),l=[];for(let f=0;f<r.snapshotLength;f++){const y=r.snapshotItem(f).getAttribute("href"),k=t+"/"+y;k.endsWith("/fonts.css")?zM(k):(l.push(zi.get(k)),k.endsWith("/appearance.css")&&(n.hasAppearanceSystem=!0))}const d=a();d&&l.push(d);try{const f=await zi.all(l.map(k=>k.catch(()=>{})));let p="";const y=e.ownerDocument.evaluate(".//style[@type='text/css']",e,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(let k=0;k<y.snapshotLength;k++){const E=y.snapshotItem(k);p+=E.innerText}return f.forEach(k=>{k&&k.data&&(console.log("Loaded stylesheet: "+JSON.stringify(k.config)),p+=k.data,(k.config.url.endsWith("/defaultLangStyles.css")||k.config.url.endsWith("/settingsCollectionStyles.css"))&&n.setLanguage2And3(k.data))}),p=p.replace(/:root/g,".bloomPlayer-page"),p}catch(f){throw f}}function zM(e){zi.get(e).then(t=>{let n=document.getElementById("fontCssStyleSheet");n||(n=document.createElement("style"),document.head.appendChild(n),n.setAttribute("id","fontCssStyleSheet"));const a=e.substring(0,e.length-10);n.innerText=t.data.replace(/src:url\(['"]?(.*\.[^\)'"]*)['"]?\)/g,"src:url('"+a+"/$1')")})}function IM(){let e=document.getElementById("andikaCssStyleSheet");e||(e=document.createElement("style"),document.head.appendChild(e),e.setAttribute("id","andikaCssStyleSheet")),e.innerText=`
|
|
7885
|
+
`)}}).get()}});var _e=/%20/g,Oi=/#.*$/,cc=/([?&])_=[^&]*/,dc=/^(.*?):[ \t]*([^\r\n]*)$/mg,br=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,vl=/^(?:GET|HEAD)$/,Jr=/^\/\//,ki={},wr={},kr="*/".concat("*"),Ea=F.createElement("a");Ea.href=ti.href;function yl(c){return function(h,m){typeof h!="string"&&(m=h,h="*");var w,T=0,S=h.toLowerCase().match(Pe)||[];if(K(m))for(;w=S[T++];)w[0]==="+"?(w=w.slice(1)||"*",(c[w]=c[w]||[]).unshift(m)):(c[w]=c[w]||[]).push(m)}}function bl(c,h,m,w){var T={},S=c===wr;function P(q){var j;return T[q]=!0,v.each(c[q]||[],function(Z,ut){var pt=ut(h,m,w);if(typeof pt=="string"&&!S&&!T[pt])return h.dataTypes.unshift(pt),P(pt),!1;if(S)return!(j=pt)}),j}return P(h.dataTypes[0])||!T["*"]&&P("*")}function Jo(c,h){var m,w,T=v.ajaxSettings.flatOptions||{};for(m in h)h[m]!==void 0&&((T[m]?c:w||(w={}))[m]=h[m]);return w&&v.extend(!0,c,w),c}function fc(c,h,m){for(var w,T,S,P,q=c.contents,j=c.dataTypes;j[0]==="*";)j.shift(),w===void 0&&(w=c.mimeType||h.getResponseHeader("Content-Type"));if(w){for(T in q)if(q[T]&&q[T].test(w)){j.unshift(T);break}}if(j[0]in m)S=j[0];else{for(T in m){if(!j[0]||c.converters[T+" "+j[0]]){S=T;break}P||(P=T)}S=S||P}if(S)return S!==j[0]&&j.unshift(S),m[S]}function hc(c,h,m,w){var T,S,P,q,j,Z={},ut=c.dataTypes.slice();if(ut[1])for(P in c.converters)Z[P.toLowerCase()]=c.converters[P];for(S=ut.shift();S;)if(c.responseFields[S]&&(m[c.responseFields[S]]=h),!j&&w&&c.dataFilter&&(h=c.dataFilter(h,c.dataType)),j=S,S=ut.shift(),S){if(S==="*")S=j;else if(j!=="*"&&j!==S){if(P=Z[j+" "+S]||Z["* "+S],!P){for(T in Z)if(q=T.split(" "),q[1]===S&&(P=Z[j+" "+q[0]]||Z["* "+q[0]],P)){P===!0?P=Z[T]:Z[T]!==!0&&(S=q[0],ut.unshift(q[1]));break}}if(P!==!0)if(P&&c.throws)h=P(h);else try{h=P(h)}catch(pt){return{state:"parsererror",error:P?pt:"No conversion from "+j+" to "+S}}}}return{state:"success",data:h}}v.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ti.href,type:"GET",isLocal:br.test(ti.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":kr,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":v.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(c,h){return h?Jo(Jo(c,v.ajaxSettings),h):Jo(v.ajaxSettings,c)},ajaxPrefilter:yl(ki),ajaxTransport:yl(wr),ajax:function(c,h){typeof c=="object"&&(h=c,c=void 0),h=h||{};var m,w,T,S,P,q,j,Z,ut,pt,at=v.ajaxSetup({},h),Tt=at.context||at,oe=at.context&&(Tt.nodeType||Tt.jquery)?v(Tt):v.event,Ne=v.Deferred(),ye=v.Callbacks("once memory"),En=at.statusCode||{},pn={},Pa={},Ma="canceled",Ce={readyState:0,getResponseHeader:function(Be){var tn;if(j){if(!S)for(S={};tn=dc.exec(T);)S[tn[1].toLowerCase()+" "]=(S[tn[1].toLowerCase()+" "]||[]).concat(tn[2]);tn=S[Be.toLowerCase()+" "]}return tn==null?null:tn.join(", ")},getAllResponseHeaders:function(){return j?T:null},setRequestHeader:function(Be,tn){return j==null&&(Be=Pa[Be.toLowerCase()]=Pa[Be.toLowerCase()]||Be,pn[Be]=tn),this},overrideMimeType:function(Be){return j==null&&(at.mimeType=Be),this},statusCode:function(Be){var tn;if(Be)if(j)Ce.always(Be[Ce.status]);else for(tn in Be)En[tn]=[En[tn],Be[tn]];return this},abort:function(Be){var tn=Be||Ma;return m&&m.abort(tn),xi(0,tn),this}};if(Ne.promise(Ce),at.url=((c||at.url||ti.href)+"").replace(Jr,ti.protocol+"//"),at.type=h.method||h.type||at.method||at.type,at.dataTypes=(at.dataType||"*").toLowerCase().match(Pe)||[""],at.crossDomain==null){q=F.createElement("a");try{q.href=at.url,q.href=q.href,at.crossDomain=Ea.protocol+"//"+Ea.host!=q.protocol+"//"+q.host}catch{at.crossDomain=!0}}if(at.data&&at.processData&&typeof at.data!="string"&&(at.data=v.param(at.data,at.traditional)),bl(ki,at,h,Ce),j)return Ce;Z=v.event&&at.global,Z&&v.active++===0&&v.event.trigger("ajaxStart"),at.type=at.type.toUpperCase(),at.hasContent=!vl.test(at.type),w=at.url.replace(Oi,""),at.hasContent?at.data&&at.processData&&(at.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(at.data=at.data.replace(_e,"+")):(pt=at.url.slice(w.length),at.data&&(at.processData||typeof at.data=="string")&&(w+=(Xr.test(w)?"&":"?")+at.data,delete at.data),at.cache===!1&&(w=w.replace(cc,"$1"),pt=(Xr.test(w)?"&":"?")+"_="+Go.guid+++pt),at.url=w+pt),at.ifModified&&(v.lastModified[w]&&Ce.setRequestHeader("If-Modified-Since",v.lastModified[w]),v.etag[w]&&Ce.setRequestHeader("If-None-Match",v.etag[w])),(at.data&&at.hasContent&&at.contentType!==!1||h.contentType)&&Ce.setRequestHeader("Content-Type",at.contentType),Ce.setRequestHeader("Accept",at.dataTypes[0]&&at.accepts[at.dataTypes[0]]?at.accepts[at.dataTypes[0]]+(at.dataTypes[0]!=="*"?", "+kr+"; q=0.01":""):at.accepts["*"]);for(ut in at.headers)Ce.setRequestHeader(ut,at.headers[ut]);if(at.beforeSend&&(at.beforeSend.call(Tt,Ce,at)===!1||j))return Ce.abort();if(Ma="abort",ye.add(at.complete),Ce.done(at.success),Ce.fail(at.error),m=bl(wr,at,h,Ce),!m)xi(-1,"No Transport");else{if(Ce.readyState=1,Z&&oe.trigger("ajaxSend",[Ce,at]),j)return Ce;at.async&&at.timeout>0&&(P=t.setTimeout(function(){Ce.abort("timeout")},at.timeout));try{j=!1,m.send(pn,xi)}catch(Be){if(j)throw Be;xi(-1,Be)}}function xi(Be,tn,Cr,es){var Aa,Tr,ha,ni,ai,pa=tn;j||(j=!0,P&&t.clearTimeout(P),m=void 0,T=es||"",Ce.readyState=Be>0?4:0,Aa=Be>=200&&Be<300||Be===304,Cr&&(ni=fc(at,Ce,Cr)),!Aa&&v.inArray("script",at.dataTypes)>-1&&v.inArray("json",at.dataTypes)<0&&(at.converters["text script"]=function(){}),ni=hc(at,ni,Ce,Aa),Aa?(at.ifModified&&(ai=Ce.getResponseHeader("Last-Modified"),ai&&(v.lastModified[w]=ai),ai=Ce.getResponseHeader("etag"),ai&&(v.etag[w]=ai)),Be===204||at.type==="HEAD"?pa="nocontent":Be===304?pa="notmodified":(pa=ni.state,Tr=ni.data,ha=ni.error,Aa=!ha)):(ha=pa,(Be||!pa)&&(pa="error",Be<0&&(Be=0))),Ce.status=Be,Ce.statusText=(tn||pa)+"",Aa?Ne.resolveWith(Tt,[Tr,pa,Ce]):Ne.rejectWith(Tt,[Ce,pa,ha]),Ce.statusCode(En),En=void 0,Z&&oe.trigger(Aa?"ajaxSuccess":"ajaxError",[Ce,at,Aa?Tr:ha]),ye.fireWith(Tt,[Ce,pa]),Z&&(oe.trigger("ajaxComplete",[Ce,at]),--v.active||v.event.trigger("ajaxStop")))}return Ce},getJSON:function(c,h,m){return v.get(c,h,m,"json")},getScript:function(c,h){return v.get(c,void 0,h,"script")}}),v.each(["get","post"],function(c,h){v[h]=function(m,w,T,S){return K(w)&&(S=S||T,T=w,w=void 0),v.ajax(v.extend({url:m,type:h,dataType:S,data:w,success:T},v.isPlainObject(m)&&m))}}),v.ajaxPrefilter(function(c){var h;for(h in c.headers)h.toLowerCase()==="content-type"&&(c.contentType=c.headers[h]||"")}),v._evalUrl=function(c,h,m){return v.ajax({url:c,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(w){v.globalEval(w,h,m)}})},v.fn.extend({wrapAll:function(c){var h;return this[0]&&(K(c)&&(c=c.call(this[0])),h=v(c,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&h.insertBefore(this[0]),h.map(function(){for(var m=this;m.firstElementChild;)m=m.firstElementChild;return m}).append(this)),this},wrapInner:function(c){return K(c)?this.each(function(h){v(this).wrapInner(c.call(this,h))}):this.each(function(){var h=v(this),m=h.contents();m.length?m.wrapAll(c):h.append(c)})},wrap:function(c){var h=K(c);return this.each(function(m){v(this).wrapAll(h?c.call(this,m):c)})},unwrap:function(c){return this.parent(c).not("body").each(function(){v(this).replaceWith(this.childNodes)}),this}}),v.expr.pseudos.hidden=function(c){return!v.expr.pseudos.visible(c)},v.expr.pseudos.visible=function(c){return!!(c.offsetWidth||c.offsetHeight||c.getClientRects().length)},v.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var Qr={0:200,1223:204},xr=v.ajaxSettings.xhr();L.cors=!!xr&&"withCredentials"in xr,L.ajax=xr=!!xr,v.ajaxTransport(function(c){var h,m;if(L.cors||xr&&!c.crossDomain)return{send:function(w,T){var S,P=c.xhr();if(P.open(c.type,c.url,c.async,c.username,c.password),c.xhrFields)for(S in c.xhrFields)P[S]=c.xhrFields[S];c.mimeType&&P.overrideMimeType&&P.overrideMimeType(c.mimeType),!c.crossDomain&&!w["X-Requested-With"]&&(w["X-Requested-With"]="XMLHttpRequest");for(S in w)P.setRequestHeader(S,w[S]);h=function(q){return function(){h&&(h=m=P.onload=P.onerror=P.onabort=P.ontimeout=P.onreadystatechange=null,q==="abort"?P.abort():q==="error"?typeof P.status!="number"?T(0,"error"):T(P.status,P.statusText):T(Qr[P.status]||P.status,P.statusText,(P.responseType||"text")!=="text"||typeof P.responseText!="string"?{binary:P.response}:{text:P.responseText},P.getAllResponseHeaders()))}},P.onload=h(),m=P.onerror=P.ontimeout=h("error"),P.onabort!==void 0?P.onabort=m:P.onreadystatechange=function(){P.readyState===4&&t.setTimeout(function(){h&&m()})},h=h("abort");try{P.send(c.hasContent&&c.data||null)}catch(q){if(h)throw q}},abort:function(){h&&h()}}}),v.ajaxPrefilter(function(c){c.crossDomain&&(c.contents.script=!1)}),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(c){return v.globalEval(c),c}}}),v.ajaxPrefilter("script",function(c){c.cache===void 0&&(c.cache=!1),c.crossDomain&&(c.type="GET")}),v.ajaxTransport("script",function(c){if(c.crossDomain||c.scriptAttrs){var h,m;return{send:function(w,T){h=v("<script>").attr(c.scriptAttrs||{}).prop({charset:c.scriptCharset,src:c.url}).on("load error",m=function(S){h.remove(),m=null,S&&T(S.type==="error"?404:200,S.type)}),F.head.appendChild(h[0])},abort:function(){m&&m()}}}});var wl=[],Sr=/(=)\?(?=&|$)|\?\?/;v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var c=wl.pop()||v.expando+"_"+Go.guid++;return this[c]=!0,c}}),v.ajaxPrefilter("json jsonp",function(c,h,m){var w,T,S,P=c.jsonp!==!1&&(Sr.test(c.url)?"url":typeof c.data=="string"&&(c.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&Sr.test(c.data)&&"data");if(P||c.dataTypes[0]==="jsonp")return w=c.jsonpCallback=K(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,P?c[P]=c[P].replace(Sr,"$1"+w):c.jsonp!==!1&&(c.url+=(Xr.test(c.url)?"&":"?")+c.jsonp+"="+w),c.converters["script json"]=function(){return S||v.error(w+" was not called"),S[0]},c.dataTypes[0]="json",T=t[w],t[w]=function(){S=arguments},m.always(function(){T===void 0?v(t).removeProp(w):t[w]=T,c[w]&&(c.jsonpCallback=h.jsonpCallback,wl.push(w)),S&&K(T)&&T(S[0]),S=T=void 0}),"script"}),L.createHTMLDocument=(function(){var c=F.implementation.createHTMLDocument("").body;return c.innerHTML="<form></form><form></form>",c.childNodes.length===2})(),v.parseHTML=function(c,h,m){if(typeof c!="string")return[];typeof h=="boolean"&&(m=h,h=!1);var w,T,S;return h||(L.createHTMLDocument?(h=F.implementation.createHTMLDocument(""),w=h.createElement("base"),w.href=F.location.href,h.head.appendChild(w)):h=F),T=wt.exec(c),S=!m&&[],T?[h.createElement(T[1])]:(T=ve([c],h,S),S&&S.length&&v(S).remove(),v.merge([],T.childNodes))},v.fn.load=function(c,h,m){var w,T,S,P=this,q=c.indexOf(" ");return q>-1&&(w=Ta(c.slice(q)),c=c.slice(0,q)),K(h)?(m=h,h=void 0):h&&typeof h=="object"&&(T="POST"),P.length>0&&v.ajax({url:c,type:T||"GET",dataType:"html",data:h}).done(function(j){S=arguments,P.html(w?v("<div>").append(v.parseHTML(j)).find(w):j)}).always(m&&function(j,Z){P.each(function(){m.apply(this,S||[j.responseText,Z,j])})}),this},v.expr.pseudos.animated=function(c){return v.grep(v.timers,function(h){return c===h.elem}).length},v.offset={setOffset:function(c,h,m){var w,T,S,P,q,j,Z,ut=v.css(c,"position"),pt=v(c),at={};ut==="static"&&(c.style.position="relative"),q=pt.offset(),S=v.css(c,"top"),j=v.css(c,"left"),Z=(ut==="absolute"||ut==="fixed")&&(S+j).indexOf("auto")>-1,Z?(w=pt.position(),P=w.top,T=w.left):(P=parseFloat(S)||0,T=parseFloat(j)||0),K(h)&&(h=h.call(c,m,v.extend({},q))),h.top!=null&&(at.top=h.top-q.top+P),h.left!=null&&(at.left=h.left-q.left+T),"using"in h?h.using.call(c,at):pt.css(at)}},v.fn.extend({offset:function(c){if(arguments.length)return c===void 0?this:this.each(function(T){v.offset.setOffset(this,c,T)});var h,m,w=this[0];if(w)return w.getClientRects().length?(h=w.getBoundingClientRect(),m=w.ownerDocument.defaultView,{top:h.top+m.pageYOffset,left:h.left+m.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var c,h,m,w=this[0],T={top:0,left:0};if(v.css(w,"position")==="fixed")h=w.getBoundingClientRect();else{for(h=this.offset(),m=w.ownerDocument,c=w.offsetParent||m.documentElement;c&&(c===m.body||c===m.documentElement)&&v.css(c,"position")==="static";)c=c.parentNode;c&&c!==w&&c.nodeType===1&&(T=v(c).offset(),T.top+=v.css(c,"borderTopWidth",!0),T.left+=v.css(c,"borderLeftWidth",!0))}return{top:h.top-T.top-v.css(w,"marginTop",!0),left:h.left-T.left-v.css(w,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent;c&&v.css(c,"position")==="static";)c=c.offsetParent;return c||xn})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(c,h){var m=h==="pageYOffset";v.fn[c]=function(w){return Je(this,function(T,S,P){var q;if(J(T)?q=T:T.nodeType===9&&(q=T.defaultView),P===void 0)return q?q[h]:T[S];q?q.scrollTo(m?q.pageXOffset:P,m?P:q.pageYOffset):T[S]=P},c,w,arguments.length)}}),v.each(["top","left"],function(c,h){v.cssHooks[h]=cr(L.pixelPosition,function(m,w){if(w)return w=Tn(m,h),fn.test(w)?v(m).position()[h]+"px":w})}),v.each({Height:"height",Width:"width"},function(c,h){v.each({padding:"inner"+c,content:h,"":"outer"+c},function(m,w){v.fn[w]=function(T,S){var P=arguments.length&&(m||typeof T!="boolean"),q=m||(T===!0||S===!0?"margin":"border");return Je(this,function(j,Z,ut){var pt;return J(j)?w.indexOf("outer")===0?j["inner"+c]:j.document.documentElement["client"+c]:j.nodeType===9?(pt=j.documentElement,Math.max(j.body["scroll"+c],pt["scroll"+c],j.body["offset"+c],pt["offset"+c],pt["client"+c])):ut===void 0?v.css(j,Z,q):v.style(j,Z,ut,q)},h,P?T:void 0,P)}})}),v.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(c,h){v.fn[h]=function(m){return this.on(h,m)}}),v.fn.extend({bind:function(c,h,m){return this.on(c,null,h,m)},unbind:function(c,h){return this.off(c,null,h)},delegate:function(c,h,m,w){return this.on(h,c,m,w)},undelegate:function(c,h,m){return arguments.length===1?this.off(c,"**"):this.off(h,c||"**",m)},hover:function(c,h){return this.on("mouseenter",c).on("mouseleave",h||c)}}),v.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(c,h){v.fn[h]=function(m,w){return arguments.length>0?this.on(h,null,m,w):this.trigger(h)}});var Qo=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;v.proxy=function(c,h){var m,w,T;if(typeof h=="string"&&(m=c[h],h=c,c=m),!!K(c))return w=l.call(arguments,2),T=function(){return c.apply(h||this,w.concat(l.call(arguments)))},T.guid=c.guid=c.guid||v.guid++,T},v.holdReady=function(c){c?v.readyWait++:v.ready(!0)},v.isArray=Array.isArray,v.parseJSON=JSON.parse,v.nodeName=ft,v.isFunction=K,v.isWindow=J,v.camelCase=Y,v.type=dt,v.now=Date.now,v.isNumeric=function(c){var h=v.type(c);return(h==="number"||h==="string")&&!isNaN(c-parseFloat(c))},v.trim=function(c){return c==null?"":(c+"").replace(Qo,"$1")};var ei=t.jQuery,ts=t.$;return v.noConflict=function(c){return t.$===v&&(t.$=ts),c&&t.jQuery===v&&(t.jQuery=ei),v},typeof n>"u"&&(t.jQuery=t.$=v),v})})(Tu)),Tu.exports}var R1=Lb();const dl=On(R1);var Bf={exports:{}},yv;function j1(){return yv||(yv=1,(function(e,t){(function(n){e.exports=n(Lb())})(function(n){var a=!1,r=!1,l=0,d=2e3,f=0,p=n,y=document,k=window,E=p(k),N=[];function I(){var tt=y.currentScript||(function(){var s=y.getElementsByTagName("script");return s.length?s[s.length-1]:!1})(),H=tt?tt.src.split("?")[0]:"";return H.split("/").length>0?H.split("/").slice(0,-1).join("/")+"/":""}var L=k.requestAnimationFrame||k.webkitRequestAnimationFrame||k.mozRequestAnimationFrame||!1,K=k.cancelAnimationFrame||k.webkitCancelAnimationFrame||k.mozCancelAnimationFrame||!1;if(L)k.cancelAnimationFrame||(K=function(tt){});else{var J=0;L=function(tt,H){var s=new Date().getTime(),ht=Math.max(0,16-(s-J)),x=k.setTimeout(function(){tt(s+ht)},ht);return J=s+ht,x},K=function(tt){k.clearTimeout(tt)}}var F=k.MutationObserver||k.WebKitMutationObserver||!1,G=Date.now||function(){return new Date().getTime()},ot={zindex:"auto",cursoropacitymin:0,cursoropacitymax:1,cursorcolor:"#424242",cursorwidth:"6px",cursorborder:"1px solid #fff",cursorborderradius:"5px",scrollspeed:40,mousescrollstep:27,touchbehavior:!1,emulatetouch:!1,hwacceleration:!0,usetransition:!0,boxzoom:!1,dblclickzoom:!0,gesturezoom:!0,grabcursorenabled:!0,autohidemode:!0,background:"",iframeautoresize:!0,cursorminheight:32,preservenativescrolling:!0,railoffset:!1,railhoffset:!1,bouncescroll:!0,spacebarenabled:!0,railpadding:{top:0,right:0,left:0,bottom:0},disableoutline:!0,horizrailenabled:!0,railalign:"right",railvalign:"bottom",enabletranslate3d:!0,enablemousewheel:!0,enablekeyboard:!0,smoothscroll:!0,sensitiverail:!0,enablemouselockapi:!0,cursorfixedheight:!1,directionlockdeadzone:6,hidecursordelay:400,nativeparentscrolling:!0,enablescrollonselection:!0,overflowx:!0,overflowy:!0,cursordragspeed:.3,rtlmode:"auto",cursordragontouch:!1,oneaxismousemode:"auto",scriptpath:I(),preventmultitouchscrolling:!0,disablemutationobserver:!1,enableobserver:!0,scrollbarid:!1},dt=!1,_=function(){if(dt)return dt;var tt=y.createElement("DIV"),H=tt.style,s=navigator.userAgent,ht=navigator.platform,x={};x.haspointerlock="pointerLockElement"in y||"webkitPointerLockElement"in y||"mozPointerLockElement"in y,x.isopera="opera"in k,x.isopera12=x.isopera&&"getUserMedia"in navigator,x.isoperamini=Object.prototype.toString.call(k.operamini)==="[object OperaMini]",x.isie="all"in y&&"attachEvent"in tt&&!x.isopera,x.isieold=x.isie&&!("msInterpolationMode"in H),x.isie7=x.isie&&!x.isieold&&(!("documentMode"in y)||y.documentMode===7),x.isie8=x.isie&&"documentMode"in y&&y.documentMode===8,x.isie9=x.isie&&"performance"in k&&y.documentMode===9,x.isie10=x.isie&&"performance"in k&&y.documentMode===10,x.isie11="msRequestFullscreen"in tt&&y.documentMode>=11,x.ismsedge="msCredentials"in k,x.ismozilla="MozAppearance"in H,x.iswebkit=!x.ismsedge&&"WebkitAppearance"in H,x.ischrome=x.iswebkit&&"chrome"in k,x.ischrome38=x.ischrome&&"touchAction"in H,x.ischrome22=!x.ischrome38&&x.ischrome&&x.haspointerlock,x.ischrome26=!x.ischrome38&&x.ischrome&&"transition"in H,x.cantouch="ontouchstart"in y.documentElement||"ontouchstart"in k,x.hasw3ctouch=(k.PointerEvent||!1)&&(navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),x.hasmstouch=!x.hasw3ctouch&&(k.MSPointerEvent||!1),x.ismac=/^mac$/i.test(ht),x.isios=x.cantouch&&/iphone|ipad|ipod/i.test(ht),x.isios4=x.isios&&!("seal"in Object),x.isios7=x.isios&&"webkitHidden"in y,x.isios8=x.isios&&"hidden"in y,x.isios10=x.isios&&k.Proxy,x.isandroid=/android/i.test(s),x.haseventlistener="addEventListener"in tt,x.trstyle=!1,x.hastransform=!1,x.hastranslate3d=!1,x.transitionstyle=!1,x.hastransition=!1,x.transitionend=!1,x.trstyle="transform",x.hastransform="transform"in H||(function(){for(var bt=["msTransform","webkitTransform","MozTransform","OTransform"],St=0,O=bt.length;St<O;St++)if(H[bt[St]]!==void 0){x.trstyle=bt[St];break}x.hastransform=!!x.trstyle})(),x.hastransform&&(H[x.trstyle]="translate3d(1px,2px,3px)",x.hastranslate3d=/translate3d/.test(H[x.trstyle])),x.transitionstyle="transition",x.prefixstyle="",x.transitionend="transitionend",x.hastransition="transition"in H||(function(){x.transitionend=!1;for(var bt=["webkitTransition","msTransition","MozTransition","OTransition","OTransition","KhtmlTransition"],St=["-webkit-","-ms-","-moz-","-o-","-o","-khtml-"],O=["webkitTransitionEnd","msTransitionEnd","transitionend","otransitionend","oTransitionEnd","KhtmlTransitionEnd"],wt=0,xt=bt.length;wt<xt;wt++)if(bt[wt]in H){x.transitionstyle=bt[wt],x.prefixstyle=St[wt],x.transitionend=O[wt];break}x.ischrome26&&(x.prefixstyle=St[1]),x.hastransition=x.transitionstyle})();function lt(){var bt=["grab","-webkit-grab","-moz-grab"];(x.ischrome&&!x.ischrome38||x.isie)&&(bt=[]);for(var St=0,O=bt.length;St<O;St++){var wt=bt[St];if(H.cursor=wt,H.cursor==wt)return wt}return"url(https://cdnjs.cloudflare.com/ajax/libs/slider-pro/1.3.0/css/images/openhand.cur),n-resize"}return x.cursorgrabvalue=lt(),x.hasmousecapture="setCapture"in tt,x.hasMutationObserver=F!==!1,tt=null,dt=x,x},$=function(tt,H){var s=this;this.version="3.7.6",this.name="nicescroll",this.me=H;var ht=p("body"),x=this.opt={doc:ht,win:!1};if(p.extend(x,ot),x.snapbackspeed=80,tt)for(var lt in x)tt[lt]!==void 0&&(x[lt]=tt[lt]);if(x.disablemutationobserver&&(F=!1),this.doc=x.doc,this.iddoc=this.doc&&this.doc[0]&&this.doc[0].id||"",this.ispage=/^BODY|HTML/.test(x.win?x.win[0].nodeName:this.doc[0].nodeName),this.haswrapper=x.win!==!1,this.win=x.win||(this.ispage?E:this.doc),this.docscroll=this.ispage&&!this.haswrapper?E:this.win,this.body=ht,this.viewport=!1,this.isfixed=!1,this.iframe=!1,this.isiframe=this.doc[0].nodeName=="IFRAME"&&this.win[0].nodeName=="IFRAME",this.istextarea=this.win[0].nodeName=="TEXTAREA",this.forcescreen=!1,this.canshowonmouseevent=x.autohidemode!="scroll",this.onmousedown=!1,this.onmouseup=!1,this.onmousemove=!1,this.onmousewheel=!1,this.onkeypress=!1,this.ongesturezoom=!1,this.onclick=!1,this.onscrollstart=!1,this.onscrollend=!1,this.onscrollcancel=!1,this.onzoomin=!1,this.onzoomout=!1,this.view=!1,this.page=!1,this.scroll={x:0,y:0},this.scrollratio={x:0,y:0},this.cursorheight=20,this.scrollvaluemax=0,x.rtlmode=="auto"){var bt=this.win[0]==k?this.body:this.win,St=bt.css("writing-mode")||bt.css("-webkit-writing-mode")||bt.css("-ms-writing-mode")||bt.css("-moz-writing-mode");St=="horizontal-tb"||St=="lr-tb"||St===""?(this.isrtlmode=bt.css("direction")=="rtl",this.isvertical=!1):(this.isrtlmode=St=="vertical-rl"||St=="tb"||St=="tb-rl"||St=="rl-tb",this.isvertical=St=="vertical-rl"||St=="tb"||St=="tb-rl")}else this.isrtlmode=x.rtlmode===!0,this.isvertical=!1;if(this.scrollrunning=!1,this.scrollmom=!1,this.observer=!1,this.observerremover=!1,this.observerbody=!1,x.scrollbarid!==!1)this.id=x.scrollbarid;else do this.id="ascrail"+d++;while(y.getElementById(this.id));this.rail=!1,this.cursor=!1,this.cursorfreezed=!1,this.selectiondrag=!1,this.zoom=!1,this.zoomactive=!1,this.hasfocus=!1,this.hasmousefocus=!1,this.railslocked=!1,this.locked=!1,this.hidden=!1,this.cursoractive=!0,this.wheelprevented=!1,this.overflowx=x.overflowx,this.overflowy=x.overflowy,this.nativescrollingarea=!1,this.checkarea=0,this.events=[],this.saved={},this.delaylist={},this.synclist={},this.lastdeltax=0,this.lastdeltay=0,this.detected=_();var O=p.extend({},this.detected);this.canhwscroll=O.hastransform&&x.hwacceleration,this.ishwscroll=this.canhwscroll&&s.haswrapper,this.isrtlmode?this.isvertical?this.hasreversehr=!(O.iswebkit||O.isie||O.isie11):this.hasreversehr=!(O.iswebkit||O.isie&&!O.isie10&&!O.isie11):this.hasreversehr=!1,this.istouchcapable=!1,!O.cantouch&&(O.hasw3ctouch||O.hasmstouch)?this.istouchcapable=!0:O.cantouch&&!O.isios&&!O.isandroid&&(O.iswebkit||O.ismozilla)&&(this.istouchcapable=!0),x.enablemouselockapi||(O.hasmousecapture=!1,O.haspointerlock=!1),this.debounced=function(M,D,Y){if(s){var it=s.delaylist[M]||!1;it||(s.delaylist[M]={h:L(function(){s.delaylist[M].fn.call(s),s.delaylist[M]=!1},Y)},D.call(s)),s.delaylist[M].fn=D}},this.synched=function(M,D){s.synclist[M]?s.synclist[M]=D:(s.synclist[M]=D,L(function(){s&&(s.synclist[M]&&s.synclist[M].call(s),s.synclist[M]=null)}))},this.unsynched=function(M){s.synclist[M]&&(s.synclist[M]=!1)},this.css=function(M,D){for(var Y in D)s.saved.css.push([M,Y,M.css(Y)]),M.css(Y,D[Y])},this.scrollTop=function(M){return M===void 0?s.getScrollTop():s.setScrollTop(M)},this.scrollLeft=function(M){return M===void 0?s.getScrollLeft():s.setScrollLeft(M)};var wt=function(M,D,Y,it,vt,st,Xt){this.st=M,this.ed=D,this.spd=Y,this.p1=it||0,this.p2=vt||1,this.p3=st||0,this.p4=Xt||1,this.ts=G(),this.df=D-M};wt.prototype={B2:function(M){return 3*(1-M)*(1-M)*M},B3:function(M){return 3*(1-M)*M*M},B4:function(M){return M*M*M},getPos:function(){return(G()-this.ts)/this.spd},getNow:function(){var M=(G()-this.ts)/this.spd,D=this.B2(M)+this.B3(M)+this.B4(M);return M>=1?this.ed:this.st+this.df*D|0},update:function(M,D){return this.st=this.getNow(),this.ed=M,this.spd=D,this.ts=G(),this.df=this.ed-this.st,this}};function xt(){var M=s.doc.css(O.trstyle);return M&&M.substr(0,6)=="matrix"?M.replace(/^.*\((.*)\)$/g,"$1").replace(/px/g,"").split(/, +/):!1}if(this.ishwscroll){this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"},O.hastranslate3d&&O.isios&&this.doc.css("-webkit-backface-visibility","hidden"),this.getScrollTop=function(M){if(!M){var D=xt();if(D)return D.length==16?-D[13]:-D[5];if(s.timerscroll&&s.timerscroll.bz)return s.timerscroll.bz.getNow()}return s.doc.translate.y},this.getScrollLeft=function(M){if(!M){var D=xt();if(D)return D.length==16?-D[12]:-D[4];if(s.timerscroll&&s.timerscroll.bh)return s.timerscroll.bh.getNow()}return s.doc.translate.x},this.notifyScrollEvent=function(M){var D=y.createEvent("UIEvents");D.initUIEvent("scroll",!1,!1,k,1),D.niceevent=!0,M.dispatchEvent(D)};var Ot=this.isrtlmode?1:-1;O.hastranslate3d&&x.enabletranslate3d?(this.setScrollTop=function(M,D){s.doc.translate.y=M,s.doc.translate.ty=M*-1+"px",s.doc.css(O.trstyle,"translate3d("+s.doc.translate.tx+","+s.doc.translate.ty+",0)"),D||s.notifyScrollEvent(s.win[0])},this.setScrollLeft=function(M,D){s.doc.translate.x=M,s.doc.translate.tx=M*Ot+"px",s.doc.css(O.trstyle,"translate3d("+s.doc.translate.tx+","+s.doc.translate.ty+",0)"),D||s.notifyScrollEvent(s.win[0])}):(this.setScrollTop=function(M,D){s.doc.translate.y=M,s.doc.translate.ty=M*-1+"px",s.doc.css(O.trstyle,"translate("+s.doc.translate.tx+","+s.doc.translate.ty+")"),D||s.notifyScrollEvent(s.win[0])},this.setScrollLeft=function(M,D){s.doc.translate.x=M,s.doc.translate.tx=M*Ot+"px",s.doc.css(O.trstyle,"translate("+s.doc.translate.tx+","+s.doc.translate.ty+")"),D||s.notifyScrollEvent(s.win[0])})}else this.getScrollTop=function(){return s.docscroll.scrollTop()},this.setScrollTop=function(M){s.docscroll.scrollTop(M)},this.getScrollLeft=function(){var M;return s.hasreversehr?s.detected.ismozilla?M=s.page.maxw-Math.abs(s.docscroll.scrollLeft()):M=s.page.maxw-s.docscroll.scrollLeft():M=s.docscroll.scrollLeft(),M},this.setScrollLeft=function(M){return setTimeout(function(){if(s)return s.hasreversehr&&(s.detected.ismozilla?M=-(s.page.maxw-M):M=s.page.maxw-M),s.docscroll.scrollLeft(M)},1)};this.getTarget=function(M){return M?M.target?M.target:M.srcElement?M.srcElement:!1:!1},this.hasParent=function(M,D){if(!M)return!1;for(var Y=M.target||M.srcElement||M||!1;Y&&Y.id!=D;)Y=Y.parentNode||!1;return Y!==!1};function Mt(){var M=s.win;if("zIndex"in M)return M.zIndex();for(;M.length>0;){if(M[0].nodeType==9)return!1;var D=M.css("zIndex");if(!isNaN(D)&&D!==0)return parseInt(D);M=M.parent()}return!1}var Ht={thin:1,medium:3,thick:5};function Qt(M,D,Y){var it=M.css(D),vt=parseFloat(it);if(isNaN(vt)){vt=Ht[it]||0;var st=vt==3?Y?s.win.outerHeight()-s.win.innerHeight():s.win.outerWidth()-s.win.innerWidth():1;return s.isie8&&vt&&(vt+=1),st?vt:0}return vt}this.getDocumentScrollOffset=function(){return{top:k.pageYOffset||y.documentElement.scrollTop,left:k.pageXOffset||y.documentElement.scrollLeft}},this.getOffset=function(){if(s.isfixed){var M=s.win.offset(),D=s.getDocumentScrollOffset();return M.top-=D.top,M.left-=D.left,M}var Y=s.win.offset();if(!s.viewport)return Y;var it=s.viewport.offset();return{top:Y.top-it.top,left:Y.left-it.left}},this.updateScrollBar=function(M){var D,Y;if(s.ishwscroll)s.rail.css({height:s.win.innerHeight()-(x.railpadding.top+x.railpadding.bottom)}),s.railh&&s.railh.css({width:s.win.innerWidth()-(x.railpadding.left+x.railpadding.right)});else{var it=s.getOffset();if(D={top:it.top,left:it.left-(x.railpadding.left+x.railpadding.right)},D.top+=Qt(s.win,"border-top-width",!0),D.left+=s.rail.align?s.win.outerWidth()-Qt(s.win,"border-right-width")-s.rail.width:Qt(s.win,"border-left-width"),Y=x.railoffset,Y&&(Y.top&&(D.top+=Y.top),Y.left&&(D.left+=Y.left)),s.railslocked||s.rail.css({top:D.top,left:D.left,height:(M?M.h:s.win.innerHeight())-(x.railpadding.top+x.railpadding.bottom)}),s.zoom&&s.zoom.css({top:D.top+1,left:s.rail.align==1?D.left-20:D.left+s.rail.width+4}),s.railh&&!s.railslocked){D={top:it.top,left:it.left},Y=x.railhoffset,Y&&(Y.top&&(D.top+=Y.top),Y.left&&(D.left+=Y.left));var vt=s.railh.align?D.top+Qt(s.win,"border-top-width",!0)+s.win.innerHeight()-s.railh.height:D.top+Qt(s.win,"border-top-width",!0),st=D.left+Qt(s.win,"border-left-width");s.railh.css({top:vt-(x.railpadding.top+x.railpadding.bottom),left:st,width:s.railh.width})}}},this.doRailClick=function(M,D,Y){var it,vt,st,Xt;s.railslocked||(s.cancelEvent(M),"pageY"in M||(M.pageX=M.clientX+y.documentElement.scrollLeft,M.pageY=M.clientY+y.documentElement.scrollTop),D?(it=Y?s.doScrollLeft:s.doScrollTop,st=Y?(M.pageX-s.railh.offset().left-s.cursorwidth/2)*s.scrollratio.x:(M.pageY-s.rail.offset().top-s.cursorheight/2)*s.scrollratio.y,s.unsynched("relativexy"),it(st|0)):(it=Y?s.doScrollLeftBy:s.doScrollBy,st=Y?s.scroll.x:s.scroll.y,Xt=Y?M.pageX-s.railh.offset().left:M.pageY-s.rail.offset().top,vt=Y?s.view.w:s.view.h,it(st>=Xt?vt:-vt)))},s.newscrolly=s.newscrollx=0,s.hasanimationframe="requestAnimationFrame"in k,s.hascancelanimationframe="cancelAnimationFrame"in k,s.hasborderbox=!1,this.init=function(){if(s.saved.css=[],O.isoperamini||O.isandroid&&!("hidden"in y))return!0;x.emulatetouch=x.emulatetouch||x.touchbehavior,s.hasborderbox=k.getComputedStyle&&k.getComputedStyle(y.body)["box-sizing"]==="border-box";var M={"overflow-y":"hidden"};if((O.isie11||O.isie10)&&(M["-ms-overflow-style"]="none"),s.ishwscroll&&(this.doc.css(O.transitionstyle,O.prefixstyle+"transform 0ms ease-out"),O.transitionend&&s.bind(s.doc,O.transitionend,s.onScrollTransitionEnd,!1)),s.zindex="auto",!s.ispage&&x.zindex=="auto"?s.zindex=Mt()||"auto":s.zindex=x.zindex,!s.ispage&&s.zindex!="auto"&&s.zindex>f&&(f=s.zindex),s.isie&&s.zindex===0&&x.zindex=="auto"&&(s.zindex="auto"),!s.ispage||!O.isieold){var D=s.docscroll;s.ispage&&(D=s.haswrapper?s.win:s.doc),s.css(D,M),s.ispage&&(O.isie11||O.isie)&&s.css(p("html"),M),O.isios&&!s.ispage&&!s.haswrapper&&s.css(ht,{"-webkit-overflow-scrolling":"touch"});var Y=p(y.createElement("div"));Y.css({position:"relative",top:0,float:"right",width:x.cursorwidth,height:0,"background-color":x.cursorcolor,border:x.cursorborder,"background-clip":"padding-box","-webkit-border-radius":x.cursorborderradius,"-moz-border-radius":x.cursorborderradius,"border-radius":x.cursorborderradius}),Y.addClass("nicescroll-cursors"),s.cursor=Y;var it=p(y.createElement("div"));it.attr("id",s.id),it.addClass("nicescroll-rails nicescroll-rails-vr");var vt,st,Xt=["left","right","top","bottom"];for(var Me in Xt)st=Xt[Me],vt=x.railpadding[st]||0,vt&&it.css("padding-"+st,vt+"px");it.append(Y),it.width=Math.max(parseFloat(x.cursorwidth),Y.outerWidth()),it.css({width:it.width+"px",zIndex:s.zindex,background:x.background,cursor:"default"}),it.visibility=!0,it.scrollable=!0,it.align=x.railalign=="left"?0:1,s.rail=it,s.rail.drag=!1;var Re=!1;x.boxzoom&&!s.ispage&&!O.isieold&&(Re=y.createElement("div"),s.bind(Re,"click",s.doZoom),s.bind(Re,"mouseenter",function(){s.zoom.css("opacity",x.cursoropacitymax)}),s.bind(Re,"mouseleave",function(){s.zoom.css("opacity",x.cursoropacitymin)}),s.zoom=p(Re),s.zoom.css({cursor:"pointer",zIndex:s.zindex,backgroundImage:"url("+x.scriptpath+"zoomico.png)",height:18,width:18,backgroundPosition:"0 0"}),x.dblclickzoom&&s.bind(s.win,"dblclick",s.doZoom),O.cantouch&&x.gesturezoom&&(s.ongesturezoom=function(X){return X.scale>1.5&&s.doZoomIn(X),X.scale<.8&&s.doZoomOut(X),s.cancelEvent(X)},s.bind(s.win,"gestureend",s.ongesturezoom))),s.railh=!1;var ee;if(x.horizrailenabled&&(s.css(D,{overflowX:"hidden"}),Y=p(y.createElement("div")),Y.css({position:"absolute",top:0,height:x.cursorwidth,width:0,backgroundColor:x.cursorcolor,border:x.cursorborder,backgroundClip:"padding-box","-webkit-border-radius":x.cursorborderradius,"-moz-border-radius":x.cursorborderradius,"border-radius":x.cursorborderradius}),O.isieold&&Y.css("overflow","hidden"),Y.addClass("nicescroll-cursors"),s.cursorh=Y,ee=p(y.createElement("div")),ee.attr("id",s.id+"-hr"),ee.addClass("nicescroll-rails nicescroll-rails-hr"),ee.height=Math.max(parseFloat(x.cursorwidth),Y.outerHeight()),ee.css({height:ee.height+"px",zIndex:s.zindex,background:x.background}),ee.append(Y),ee.visibility=!0,ee.scrollable=!0,ee.align=x.railvalign=="top"?0:1,s.railh=ee,s.railh.drag=!1),s.ispage)it.css({position:"fixed",top:0,height:"100%"}),it.css(it.align?{right:0}:{left:0}),s.body.append(it),s.railh&&(ee.css({position:"fixed",left:0,width:"100%"}),ee.css(ee.align?{bottom:0}:{top:0}),s.body.append(ee));else{if(s.ishwscroll){s.win.css("position")=="static"&&s.css(s.win,{position:"relative"});var Xe=s.win[0].nodeName=="HTML"?s.body:s.win;p(Xe).scrollTop(0).scrollLeft(0),s.zoom&&(s.zoom.css({position:"absolute",top:1,right:0,"margin-right":it.width+4}),Xe.append(s.zoom)),it.css({position:"absolute",top:0}),it.css(it.align?{right:0}:{left:0}),Xe.append(it),ee&&(ee.css({position:"absolute",left:0,bottom:0}),ee.css(ee.align?{bottom:0}:{top:0}),Xe.append(ee))}else{s.isfixed=s.win.css("position")=="fixed";var Qe=s.isfixed?"fixed":"absolute";s.isfixed||(s.viewport=s.getViewport(s.win[0])),s.viewport&&(s.body=s.viewport,/fixed|absolute/.test(s.viewport.css("position"))||s.css(s.viewport,{position:"relative"})),it.css({position:Qe}),s.zoom&&s.zoom.css({position:Qe}),s.updateScrollBar(),s.body.append(it),s.zoom&&s.body.append(s.zoom),s.railh&&(ee.css({position:Qe}),s.body.append(ee))}O.isios&&s.css(s.win,{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),x.disableoutline&&(O.isie&&s.win.attr("hideFocus","true"),O.iswebkit&&s.win.css("outline","none"))}if(x.autohidemode===!1?(s.autohidedom=!1,s.rail.css({opacity:x.cursoropacitymax}),s.railh&&s.railh.css({opacity:x.cursoropacitymax})):x.autohidemode===!0||x.autohidemode==="leave"?(s.autohidedom=p().add(s.rail),O.isie8&&(s.autohidedom=s.autohidedom.add(s.cursor)),s.railh&&(s.autohidedom=s.autohidedom.add(s.railh)),s.railh&&O.isie8&&(s.autohidedom=s.autohidedom.add(s.cursorh))):x.autohidemode=="scroll"?(s.autohidedom=p().add(s.rail),s.railh&&(s.autohidedom=s.autohidedom.add(s.railh))):x.autohidemode=="cursor"?(s.autohidedom=p().add(s.cursor),s.railh&&(s.autohidedom=s.autohidedom.add(s.cursorh))):x.autohidemode=="hidden"&&(s.autohidedom=!1,s.hide(),s.railslocked=!1),O.cantouch||s.istouchcapable||x.emulatetouch||O.hasmstouch){s.scrollmom=new v(s),s.ontouchstart=function(X){if(s.locked||X.pointerType&&(X.pointerType==="mouse"||X.pointerType===X.MSPOINTER_TYPE_MOUSE))return!1;if(s.hasmoving=!1,s.scrollmom.timer&&(s.triggerScrollEnd(),s.scrollmom.stop()),!s.railslocked){var Ut=s.getTarget(X);if(Ut){var ie=/INPUT/i.test(Ut.nodeName)&&/range/i.test(Ut.type);if(ie)return s.stopPropagation(X)}var $e=X.type==="mousedown";if(!("clientX"in X)&&"changedTouches"in X&&(X.clientX=X.changedTouches[0].clientX,X.clientY=X.changedTouches[0].clientY),s.forcescreen){var Ge=X;X={original:X.original?X.original:X},X.clientX=Ge.screenX,X.clientY=Ge.screenY}if(s.rail.drag={x:X.clientX,y:X.clientY,sx:s.scroll.x,sy:s.scroll.y,st:s.getScrollTop(),sl:s.getScrollLeft(),pt:2,dl:!1,tg:Ut},s.ispage||!x.directionlockdeadzone)s.rail.drag.dl="f";else{var Ue={w:E.width(),h:E.height()},ke=s.getContentSize(),Pt=ke.h-Ue.h,ne=ke.w-Ue.w;s.rail.scrollable&&!s.railh.scrollable?s.rail.drag.ck=Pt>0?"v":!1:!s.rail.scrollable&&s.railh.scrollable?s.rail.drag.ck=ne>0?"h":!1:s.rail.drag.ck=!1}if(x.emulatetouch&&s.isiframe&&O.isie){var xe=s.win.position();s.rail.drag.x+=xe.left,s.rail.drag.y+=xe.top}if(s.hasmoving=!1,s.lastmouseup=!1,s.scrollmom.reset(X.clientX,X.clientY),Ut&&$e){var ve=/INPUT|SELECT|BUTTON|TEXTAREA/i.test(Ut.nodeName);if(!ve)return O.hasmousecapture&&Ut.setCapture(),x.emulatetouch?(Ut.onclick&&!Ut._onclick&&(Ut._onclick=Ut.onclick,Ut.onclick=function(zt){if(s.hasmoving)return!1;Ut._onclick.call(this,zt)}),s.cancelEvent(X)):s.stopPropagation(X);/SUBMIT|CANCEL|BUTTON/i.test(p(Ut).attr("type"))&&(s.preventclick={tg:Ut,click:!1})}}},s.ontouchend=function(X){if(!s.rail.drag)return!0;if(s.rail.drag.pt==2){if(X.pointerType&&(X.pointerType==="mouse"||X.pointerType===X.MSPOINTER_TYPE_MOUSE))return!1;s.rail.drag=!1;var Ut=X.type==="mouseup";if(s.hasmoving&&(s.scrollmom.doMomentum(),s.lastmouseup=!0,s.hideCursor(),O.hasmousecapture&&y.releaseCapture(),Ut))return s.cancelEvent(X)}else if(s.rail.drag.pt==1)return s.onmouseup(X)};var Kn=x.emulatetouch&&s.isiframe&&!O.hasmousecapture,Ze=x.directionlockdeadzone*.3|0;s.ontouchmove=function(X,Ut){if(!s.rail.drag||X.targetTouches&&x.preventmultitouchscrolling&&X.targetTouches.length>1||X.pointerType&&(X.pointerType==="mouse"||X.pointerType===X.MSPOINTER_TYPE_MOUSE))return!0;if(s.rail.drag.pt==2){"changedTouches"in X&&(X.clientX=X.changedTouches[0].clientX,X.clientY=X.changedTouches[0].clientY);var ie,$e;if($e=ie=0,Kn&&!Ut){var Ge=s.win.position();$e=-Ge.left,ie=-Ge.top}var Ue=X.clientY+ie,ke=Ue-s.rail.drag.y,Pt=X.clientX+$e,ne=Pt-s.rail.drag.x,xe=s.rail.drag.st-ke;if(s.ishwscroll&&x.bouncescroll)xe<0?xe=Math.round(xe/2):xe>s.page.maxh&&(xe=s.page.maxh+Math.round((xe-s.page.maxh)/2));else if(xe<0?(xe=0,Ue=0):xe>s.page.maxh&&(xe=s.page.maxh,Ue=0),Ue===0&&!s.hasmoving)return s.ispage||(s.rail.drag=!1),!0;var ve=s.getScrollLeft();if(s.railh&&s.railh.scrollable&&(ve=s.isrtlmode?ne-s.rail.drag.sl:s.rail.drag.sl-ne,s.ishwscroll&&x.bouncescroll?ve<0?ve=Math.round(ve/2):ve>s.page.maxw&&(ve=s.page.maxw+Math.round((ve-s.page.maxw)/2)):(ve<0&&(ve=0,Pt=0),ve>s.page.maxw&&(ve=s.page.maxw,Pt=0))),!s.hasmoving){if(s.rail.drag.y===X.clientY&&s.rail.drag.x===X.clientX)return s.cancelEvent(X);var zt=Math.abs(ke),Ft=Math.abs(ne),re=x.directionlockdeadzone;if(s.rail.drag.ck?s.rail.drag.ck=="v"?Ft>re&&zt<=Ze?s.rail.drag=!1:zt>re&&(s.rail.drag.dl="v"):s.rail.drag.ck=="h"&&(zt>re&&Ft<=Ze?s.rail.drag=!1:Ft>re&&(s.rail.drag.dl="h")):zt>re&&Ft>re?s.rail.drag.dl="f":zt>re?s.rail.drag.dl=Ft>Ze?"f":"v":Ft>re&&(s.rail.drag.dl=zt>Ze?"f":"h"),!s.rail.drag.dl)return s.cancelEvent(X);s.triggerScrollStart(X.clientX,X.clientY,0,0,0),s.hasmoving=!0}return s.preventclick&&!s.preventclick.click&&(s.preventclick.click=s.preventclick.tg.onclick||!1,s.preventclick.tg.onclick=s.onpreventclick),s.rail.drag.dl&&(s.rail.drag.dl=="v"?ve=s.rail.drag.sl:s.rail.drag.dl=="h"&&(xe=s.rail.drag.st)),s.synched("touchmove",function(){s.rail.drag&&s.rail.drag.pt==2&&(s.prepareTransition&&s.resetTransition(),s.rail.scrollable&&s.setScrollTop(xe),s.scrollmom.update(Pt,Ue),s.railh&&s.railh.scrollable?(s.setScrollLeft(ve),s.showCursor(xe,ve)):s.showCursor(xe),O.isie10&&y.selection.clear())}),s.cancelEvent(X)}else if(s.rail.drag.pt==1)return s.onmousemove(X)},s.ontouchstartCursor=function(X,Ut){if(!(s.rail.drag&&s.rail.drag.pt!=3)){if(s.locked)return s.cancelEvent(X);s.cancelScroll(),s.rail.drag={x:X.touches[0].clientX,y:X.touches[0].clientY,sx:s.scroll.x,sy:s.scroll.y,pt:3,hr:!!Ut};var ie=s.getTarget(X);return!s.ispage&&O.hasmousecapture&&ie.setCapture(),s.isiframe&&!O.hasmousecapture&&(s.saved.csspointerevents=s.doc.css("pointer-events"),s.css(s.doc,{"pointer-events":"none"})),s.cancelEvent(X)}},s.ontouchendCursor=function(X){if(s.rail.drag)return O.hasmousecapture&&y.releaseCapture(),s.isiframe&&!O.hasmousecapture&&s.doc.css("pointer-events",s.saved.csspointerevents),s.rail.drag.pt!=3?void 0:(s.rail.drag=!1,s.cancelEvent(X))},s.ontouchmoveCursor=function(X){if(s.rail.drag){if(s.rail.drag.pt!=3)return;if(s.cursorfreezed=!0,s.rail.drag.hr){s.scroll.x=s.rail.drag.sx+(X.touches[0].clientX-s.rail.drag.x),s.scroll.x<0&&(s.scroll.x=0);var Ut=s.scrollvaluemaxw;s.scroll.x>Ut&&(s.scroll.x=Ut)}else{s.scroll.y=s.rail.drag.sy+(X.touches[0].clientY-s.rail.drag.y),s.scroll.y<0&&(s.scroll.y=0);var ie=s.scrollvaluemax;s.scroll.y>ie&&(s.scroll.y=ie)}return s.synched("touchmove",function(){s.rail.drag&&s.rail.drag.pt==3&&(s.showCursor(),s.rail.drag.hr?s.doScrollLeft(Math.round(s.scroll.x*s.scrollratio.x),x.cursordragspeed):s.doScrollTop(Math.round(s.scroll.y*s.scrollratio.y),x.cursordragspeed))}),s.cancelEvent(X)}}}if(s.onmousedown=function(X,Ut){if(!(s.rail.drag&&s.rail.drag.pt!=1)){if(s.railslocked)return s.cancelEvent(X);s.cancelScroll(),s.rail.drag={x:X.clientX,y:X.clientY,sx:s.scroll.x,sy:s.scroll.y,pt:1,hr:Ut||!1};var ie=s.getTarget(X);return O.hasmousecapture&&ie.setCapture(),s.isiframe&&!O.hasmousecapture&&(s.saved.csspointerevents=s.doc.css("pointer-events"),s.css(s.doc,{"pointer-events":"none"})),s.hasmoving=!1,s.cancelEvent(X)}},s.onmouseup=function(X){if(s.rail.drag)return s.rail.drag.pt!=1?!0:(O.hasmousecapture&&y.releaseCapture(),s.isiframe&&!O.hasmousecapture&&s.doc.css("pointer-events",s.saved.csspointerevents),s.rail.drag=!1,s.cursorfreezed=!1,s.hasmoving&&s.triggerScrollEnd(),s.cancelEvent(X))},s.onmousemove=function(X){if(s.rail.drag){if(s.rail.drag.pt!==1)return;if(O.ischrome&&X.which===0)return s.onmouseup(X);if(s.cursorfreezed=!0,s.hasmoving||s.triggerScrollStart(X.clientX,X.clientY,0,0,0),s.hasmoving=!0,s.rail.drag.hr){s.scroll.x=s.rail.drag.sx+(X.clientX-s.rail.drag.x),s.scroll.x<0&&(s.scroll.x=0);var Ut=s.scrollvaluemaxw;s.scroll.x>Ut&&(s.scroll.x=Ut)}else{s.scroll.y=s.rail.drag.sy+(X.clientY-s.rail.drag.y),s.scroll.y<0&&(s.scroll.y=0);var ie=s.scrollvaluemax;s.scroll.y>ie&&(s.scroll.y=ie)}return s.synched("mousemove",function(){s.cursorfreezed&&(s.showCursor(),s.rail.drag.hr?s.scrollLeft(Math.round(s.scroll.x*s.scrollratio.x)):s.scrollTop(Math.round(s.scroll.y*s.scrollratio.y)))}),s.cancelEvent(X)}else s.checkarea=0},O.cantouch||x.emulatetouch)s.onpreventclick=function(X){if(s.preventclick)return s.preventclick.tg.onclick=s.preventclick.click,s.preventclick=!1,s.cancelEvent(X)},s.onclick=O.isios?!1:function(X){return s.lastmouseup?(s.lastmouseup=!1,s.cancelEvent(X)):!0},x.grabcursorenabled&&O.cursorgrabvalue&&(s.css(s.ispage?s.doc:s.win,{cursor:O.cursorgrabvalue}),s.css(s.rail,{cursor:O.cursorgrabvalue}));else{var xn=function(X){if(s.selectiondrag){if(X){var Ut=s.win.outerHeight(),ie=X.pageY-s.selectiondrag.top;ie>0&&ie<Ut&&(ie=0),ie>=Ut&&(ie-=Ut),s.selectiondrag.df=ie}if(s.selectiondrag.df!==0){var $e=-(s.selectiondrag.df*2/6)|0;s.doScrollBy($e),s.debounced("doselectionscroll",function(){xn()},50)}}};"getSelection"in y?s.hasTextSelected=function(){return y.getSelection().rangeCount>0}:"selection"in y?s.hasTextSelected=function(){return y.selection.type!="None"}:s.hasTextSelected=function(){return!1},s.onselectionstart=function(X){s.ispage||(s.selectiondrag=s.win.offset())},s.onselectionend=function(X){s.selectiondrag=!1},s.onselectiondrag=function(X){s.selectiondrag&&s.hasTextSelected()&&s.debounced("selectionscroll",function(){xn(X)},250)}}if(O.hasw3ctouch?(s.css(s.ispage?p("html"):s.win,{"touch-action":"none"}),s.css(s.rail,{"touch-action":"none"}),s.css(s.cursor,{"touch-action":"none"}),s.bind(s.win,"pointerdown",s.ontouchstart),s.bind(y,"pointerup",s.ontouchend),s.delegate(y,"pointermove",s.ontouchmove)):O.hasmstouch?(s.css(s.ispage?p("html"):s.win,{"-ms-touch-action":"none"}),s.css(s.rail,{"-ms-touch-action":"none"}),s.css(s.cursor,{"-ms-touch-action":"none"}),s.bind(s.win,"MSPointerDown",s.ontouchstart),s.bind(y,"MSPointerUp",s.ontouchend),s.delegate(y,"MSPointerMove",s.ontouchmove),s.bind(s.cursor,"MSGestureHold",function(X){X.preventDefault()}),s.bind(s.cursor,"contextmenu",function(X){X.preventDefault()})):O.cantouch&&(s.bind(s.win,"touchstart",s.ontouchstart,!1,!0),s.bind(y,"touchend",s.ontouchend,!1,!0),s.bind(y,"touchcancel",s.ontouchend,!1,!0),s.delegate(y,"touchmove",s.ontouchmove,!1,!0)),x.emulatetouch&&(s.bind(s.win,"mousedown",s.ontouchstart,!1,!0),s.bind(y,"mouseup",s.ontouchend,!1,!0),s.bind(y,"mousemove",s.ontouchmove,!1,!0)),(x.cursordragontouch||!O.cantouch&&!x.emulatetouch)&&(s.rail.css({cursor:"default"}),s.railh&&s.railh.css({cursor:"default"}),s.jqbind(s.rail,"mouseenter",function(){if(!s.ispage&&!s.win.is(":visible"))return!1;s.canshowonmouseevent&&s.showCursor(),s.rail.active=!0}),s.jqbind(s.rail,"mouseleave",function(){s.rail.active=!1,s.rail.drag||s.hideCursor()}),x.sensitiverail&&(s.bind(s.rail,"click",function(X){s.doRailClick(X,!1,!1)}),s.bind(s.rail,"dblclick",function(X){s.doRailClick(X,!0,!1)}),s.bind(s.cursor,"click",function(X){s.cancelEvent(X)}),s.bind(s.cursor,"dblclick",function(X){s.cancelEvent(X)})),s.railh&&(s.jqbind(s.railh,"mouseenter",function(){if(!s.ispage&&!s.win.is(":visible"))return!1;s.canshowonmouseevent&&s.showCursor(),s.rail.active=!0}),s.jqbind(s.railh,"mouseleave",function(){s.rail.active=!1,s.rail.drag||s.hideCursor()}),x.sensitiverail&&(s.bind(s.railh,"click",function(X){s.doRailClick(X,!1,!0)}),s.bind(s.railh,"dblclick",function(X){s.doRailClick(X,!0,!0)}),s.bind(s.cursorh,"click",function(X){s.cancelEvent(X)}),s.bind(s.cursorh,"dblclick",function(X){s.cancelEvent(X)})))),x.cursordragontouch&&(this.istouchcapable||O.cantouch)&&(s.bind(s.cursor,"touchstart",s.ontouchstartCursor),s.bind(s.cursor,"touchmove",s.ontouchmoveCursor),s.bind(s.cursor,"touchend",s.ontouchendCursor),s.cursorh&&s.bind(s.cursorh,"touchstart",function(X){s.ontouchstartCursor(X,!0)}),s.cursorh&&s.bind(s.cursorh,"touchmove",s.ontouchmoveCursor),s.cursorh&&s.bind(s.cursorh,"touchend",s.ontouchendCursor)),!x.emulatetouch&&!O.isandroid&&!O.isios?(s.bind(O.hasmousecapture?s.win:y,"mouseup",s.onmouseup),s.bind(y,"mousemove",s.onmousemove),s.onclick&&s.bind(y,"click",s.onclick),s.bind(s.cursor,"mousedown",s.onmousedown),s.bind(s.cursor,"mouseup",s.onmouseup),s.railh&&(s.bind(s.cursorh,"mousedown",function(X){s.onmousedown(X,!0)}),s.bind(s.cursorh,"mouseup",s.onmouseup)),!s.ispage&&x.enablescrollonselection&&(s.bind(s.win[0],"mousedown",s.onselectionstart),s.bind(y,"mouseup",s.onselectionend),s.bind(s.cursor,"mouseup",s.onselectionend),s.cursorh&&s.bind(s.cursorh,"mouseup",s.onselectionend),s.bind(y,"mousemove",s.onselectiondrag)),s.zoom&&(s.jqbind(s.zoom,"mouseenter",function(){s.canshowonmouseevent&&s.showCursor(),s.rail.active=!0}),s.jqbind(s.zoom,"mouseleave",function(){s.rail.active=!1,s.rail.drag||s.hideCursor()}))):(s.bind(O.hasmousecapture?s.win:y,"mouseup",s.ontouchend),s.onclick&&s.bind(y,"click",s.onclick),x.cursordragontouch?(s.bind(s.cursor,"mousedown",s.onmousedown),s.bind(s.cursor,"mouseup",s.onmouseup),s.cursorh&&s.bind(s.cursorh,"mousedown",function(X){s.onmousedown(X,!0)}),s.cursorh&&s.bind(s.cursorh,"mouseup",s.onmouseup)):(s.bind(s.rail,"mousedown",function(X){X.preventDefault()}),s.railh&&s.bind(s.railh,"mousedown",function(X){X.preventDefault()}))),x.enablemousewheel&&(s.isiframe||s.mousewheel(O.isie&&s.ispage?y:s.win,s.onmousewheel),s.mousewheel(s.rail,s.onmousewheel),s.railh&&s.mousewheel(s.railh,s.onmousewheelhr)),!s.ispage&&!O.cantouch&&!/HTML|^BODY/.test(s.win[0].nodeName)&&(s.win.attr("tabindex")||s.win.attr({tabindex:++l}),s.bind(s.win,"focus",function(X){a=s.getTarget(X).id||s.getTarget(X)||!1,s.hasfocus=!0,s.canshowonmouseevent&&s.noticeCursor()}),s.bind(s.win,"blur",function(X){a=!1,s.hasfocus=!1}),s.bind(s.win,"mouseenter",function(X){r=s.getTarget(X).id||s.getTarget(X)||!1,s.hasmousefocus=!0,s.canshowonmouseevent&&s.noticeCursor()}),s.bind(s.win,"mouseleave",function(X){r=!1,s.hasmousefocus=!1,s.rail.drag||s.hideCursor()})),s.onkeypress=function(X){if(s.railslocked&&s.page.maxh===0)return!0;X=X||k.event;var Ut=s.getTarget(X);if(Ut&&/INPUT|TEXTAREA|SELECT|OPTION/.test(Ut.nodeName)){var ie=Ut.getAttribute("type")||Ut.type||!1;if(!ie||!/submit|button|cancel/i.tp)return!0}if(p(Ut).attr("contenteditable"))return!0;if(s.hasfocus||s.hasmousefocus&&!a||s.ispage&&!a&&!r){var $e=X.keyCode;if(s.railslocked&&$e!=27)return s.cancelEvent(X);var Ge=X.ctrlKey||!1,Ue=X.shiftKey||!1,ke=!1;switch($e){case 38:case 63233:s.doScrollBy(72),ke=!0;break;case 40:case 63235:s.doScrollBy(-72),ke=!0;break;case 37:case 63232:s.railh&&(Ge?s.doScrollLeft(0):s.doScrollLeftBy(72),ke=!0);break;case 39:case 63234:s.railh&&(Ge?s.doScrollLeft(s.page.maxw):s.doScrollLeftBy(-72),ke=!0);break;case 33:case 63276:s.doScrollBy(s.view.h),ke=!0;break;case 34:case 63277:s.doScrollBy(-s.view.h),ke=!0;break;case 36:case 63273:s.railh&&Ge?s.doScrollPos(0,0):s.doScrollTo(0),ke=!0;break;case 35:case 63275:s.railh&&Ge?s.doScrollPos(s.page.maxw,s.page.maxh):s.doScrollTo(s.page.maxh),ke=!0;break;case 32:x.spacebarenabled&&(Ue?s.doScrollBy(s.view.h):s.doScrollBy(-s.view.h),ke=!0);break;case 27:s.zoomactive&&(s.doZoom(),ke=!0);break}if(ke)return s.cancelEvent(X)}},x.enablekeyboard&&s.bind(y,O.isopera&&!O.isopera12?"keypress":"keydown",s.onkeypress),s.bind(y,"keydown",function(X){var Ut=X.ctrlKey||!1;Ut&&(s.wheelprevented=!0)}),s.bind(y,"keyup",function(X){var Ut=X.ctrlKey||!1;Ut||(s.wheelprevented=!1)}),s.bind(k,"blur",function(X){s.wheelprevented=!1}),s.bind(k,"resize",s.onscreenresize),s.bind(k,"orientationchange",s.onscreenresize),s.bind(k,"load",s.lazyResize),O.ischrome&&!s.ispage&&!s.haswrapper){var Bn=s.win.attr("style"),qn=parseFloat(s.win.css("width"))+1;s.win.css("width",qn),s.synched("chromefix",function(){s.win.attr("style",Bn)})}if(s.onAttributeChange=function(X){s.lazyResize(s.isieold?250:30)},x.enableobserver&&(!s.isie11&&F!==!1&&(s.observerbody=new F(function(X){if(X.forEach(function(Ut){if(Ut.type=="attributes")return ht.hasClass("modal-open")&&ht.hasClass("modal-dialog")&&!p.contains(p(".modal-dialog")[0],s.doc[0])?s.hide():s.show()}),s.me.clientWidth!=s.page.width||s.me.clientHeight!=s.page.height)return s.lazyResize(30)}),s.observerbody.observe(y.body,{childList:!0,subtree:!0,characterData:!1,attributes:!0,attributeFilter:["class"]})),!s.ispage&&!s.haswrapper)){var Vt=s.win[0];F!==!1?(s.observer=new F(function(X){X.forEach(s.onAttributeChange)}),s.observer.observe(Vt,{childList:!0,characterData:!1,attributes:!0,subtree:!1}),s.observerremover=new F(function(X){X.forEach(function(Ut){if(Ut.removedNodes.length>0){for(var ie in Ut.removedNodes)if(s&&Ut.removedNodes[ie]===Vt)return s.remove()}})}),s.observerremover.observe(Vt.parentNode,{childList:!0,characterData:!1,attributes:!1,subtree:!1})):(s.bind(Vt,O.isie&&!O.isie9?"propertychange":"DOMAttrModified",s.onAttributeChange),O.isie9&&Vt.attachEvent("onpropertychange",s.onAttributeChange),s.bind(Vt,"DOMNodeRemoved",function(X){X.target===Vt&&s.remove()}))}!s.ispage&&x.boxzoom&&s.bind(k,"resize",s.resizeZoom),s.istextarea&&(s.bind(s.win,"keydown",s.lazyResize),s.bind(s.win,"mouseup",s.lazyResize)),s.lazyResize(30)}if(this.doc[0].nodeName=="IFRAME"){var Nn=function(){s.iframexd=!1;var X;try{X="contentDocument"in this?this.contentDocument:this.contentWindow._doc;var Ut=X.domain}catch{s.iframexd=!0,X=!1}if(s.iframexd)return"console"in k&&console.log("NiceScroll error: policy restriced iframe"),!0;if(s.forcescreen=!0,s.isiframe&&(s.iframe={doc:p(X),html:s.doc.contents().find("html")[0],body:s.doc.contents().find("body")[0]},s.getContentSize=function(){return{w:Math.max(s.iframe.html.scrollWidth,s.iframe.body.scrollWidth),h:Math.max(s.iframe.html.scrollHeight,s.iframe.body.scrollHeight)}},s.docscroll=p(s.iframe.body)),!O.isios&&x.iframeautoresize&&!s.isiframe){s.win.scrollTop(0),s.doc.height("");var ie=Math.max(X.getElementsByTagName("html")[0].scrollHeight,X.body.scrollHeight);s.doc.height(ie)}s.lazyResize(30),s.css(p(s.iframe.body),M),O.isios&&s.haswrapper&&s.css(p(X.body),{"-webkit-transform":"translate3d(0,0,0)"}),"contentWindow"in this?s.bind(this.contentWindow,"scroll",s.onscroll):s.bind(X,"scroll",s.onscroll),x.enablemousewheel&&s.mousewheel(X,s.onmousewheel),x.enablekeyboard&&s.bind(X,O.isopera?"keypress":"keydown",s.onkeypress),O.cantouch?(s.bind(X,"touchstart",s.ontouchstart),s.bind(X,"touchmove",s.ontouchmove)):x.emulatetouch&&(s.bind(X,"mousedown",s.ontouchstart),s.bind(X,"mousemove",function($e){return s.ontouchmove($e,!0)}),x.grabcursorenabled&&O.cursorgrabvalue&&s.css(p(X.body),{cursor:O.cursorgrabvalue})),s.bind(X,"mouseup",s.ontouchend),s.zoom&&(x.dblclickzoom&&s.bind(X,"dblclick",s.doZoom),s.ongesturezoom&&s.bind(X,"gestureend",s.ongesturezoom))};this.doc[0].readyState&&this.doc[0].readyState==="complete"&&setTimeout(function(){Nn.call(s.doc[0],!1)},500),s.bind(this.doc,"load",Nn)}},this.showCursor=function(M,D){if(s.cursortimeout&&(clearTimeout(s.cursortimeout),s.cursortimeout=0),!!s.rail){if(s.autohidedom&&(s.autohidedom.stop().css({opacity:x.cursoropacitymax}),s.cursoractive=!0),(!s.rail.drag||s.rail.drag.pt!=1)&&(M!==void 0&&M!==!1&&(s.scroll.y=M/s.scrollratio.y|0),D!==void 0&&(s.scroll.x=D/s.scrollratio.x|0)),s.cursor.css({height:s.cursorheight,top:s.scroll.y}),s.cursorh){var Y=s.hasreversehr?s.scrollvaluemaxw-s.scroll.x:s.scroll.x;s.cursorh.css({width:s.cursorwidth,left:!s.rail.align&&s.rail.visibility?Y+s.rail.width:Y}),s.cursoractive=!0}s.zoom&&s.zoom.stop().css({opacity:x.cursoropacitymax})}},this.hideCursor=function(M){s.cursortimeout||s.rail&&s.autohidedom&&(s.hasmousefocus&&x.autohidemode==="leave"||(s.cursortimeout=setTimeout(function(){(!s.rail.active||!s.showonmouseevent)&&(s.autohidedom.stop().animate({opacity:x.cursoropacitymin}),s.zoom&&s.zoom.stop().animate({opacity:x.cursoropacitymin}),s.cursoractive=!1),s.cursortimeout=0},M||x.hidecursordelay)))},this.noticeCursor=function(M,D,Y){s.showCursor(D,Y),s.rail.active||s.hideCursor(M)},this.getContentSize=s.ispage?function(){return{w:Math.max(y.body.scrollWidth,y.documentElement.scrollWidth),h:Math.max(y.body.scrollHeight,y.documentElement.scrollHeight)}}:s.haswrapper?function(){return{w:s.doc[0].offsetWidth,h:s.doc[0].offsetHeight}}:function(){return{w:s.docscroll[0].scrollWidth,h:s.docscroll[0].scrollHeight}},this.onResize=function(M,D){if(!s||!s.win)return!1;var Y=s.page.maxh,it=s.page.maxw,vt=s.view.h,st=s.view.w;if(s.view={w:s.ispage?s.win.width():s.win[0].clientWidth,h:s.ispage?s.win.height():s.win[0].clientHeight},s.page=D||s.getContentSize(),s.page.maxh=Math.max(0,s.page.h-s.view.h),s.page.maxw=Math.max(0,s.page.w-s.view.w),s.page.maxh==Y&&s.page.maxw==it&&s.view.w==st&&s.view.h==vt){if(s.ispage)return s;var Xt=s.win.offset();if(s.lastposition){var Me=s.lastposition;if(Me.top==Xt.top&&Me.left==Xt.left)return s}s.lastposition=Xt}if(s.page.maxh===0?(s.hideRail(),s.scrollvaluemax=0,s.scroll.y=0,s.scrollratio.y=0,s.cursorheight=0,s.setScrollTop(0),s.rail&&(s.rail.scrollable=!1)):(s.page.maxh-=x.railpadding.top+x.railpadding.bottom,s.rail.scrollable=!0),s.page.maxw===0?(s.hideRailHr(),s.scrollvaluemaxw=0,s.scroll.x=0,s.scrollratio.x=0,s.cursorwidth=0,s.setScrollLeft(0),s.railh&&(s.railh.scrollable=!1)):(s.page.maxw-=x.railpadding.left+x.railpadding.right,s.railh&&(s.railh.scrollable=x.horizrailenabled)),s.railslocked=s.locked||s.page.maxh===0&&s.page.maxw===0,s.railslocked)return s.ispage||s.updateScrollBar(s.view),!1;s.hidden||(s.rail.visibility||s.showRail(),s.railh&&!s.railh.visibility&&s.showRailHr()),s.istextarea&&s.win.css("resize")&&s.win.css("resize")!="none"&&(s.view.h-=20),s.cursorheight=Math.min(s.view.h,Math.round(s.view.h*(s.view.h/s.page.h))),s.cursorheight=x.cursorfixedheight?x.cursorfixedheight:Math.max(x.cursorminheight,s.cursorheight),s.cursorwidth=Math.min(s.view.w,Math.round(s.view.w*(s.view.w/s.page.w))),s.cursorwidth=x.cursorfixedheight?x.cursorfixedheight:Math.max(x.cursorminheight,s.cursorwidth),s.scrollvaluemax=s.view.h-s.cursorheight-(x.railpadding.top+x.railpadding.bottom),s.hasborderbox||(s.scrollvaluemax-=s.cursor[0].offsetHeight-s.cursor[0].clientHeight),s.railh&&(s.railh.width=s.page.maxh>0?s.view.w-s.rail.width:s.view.w,s.scrollvaluemaxw=s.railh.width-s.cursorwidth-(x.railpadding.left+x.railpadding.right)),s.ispage||s.updateScrollBar(s.view),s.scrollratio={x:s.page.maxw/s.scrollvaluemaxw,y:s.page.maxh/s.scrollvaluemax};var Re=s.getScrollTop();return Re>s.page.maxh?s.doScrollTop(s.page.maxh):(s.scroll.y=s.getScrollTop()/s.scrollratio.y|0,s.scroll.x=s.getScrollLeft()/s.scrollratio.x|0,s.cursoractive&&s.noticeCursor()),s.scroll.y&&s.getScrollTop()===0&&s.doScrollTo(s.scroll.y*s.scrollratio.y|0),s},this.resize=s.onResize;var de=0;this.onscreenresize=function(M){clearTimeout(de);var D=!s.ispage&&!s.haswrapper;D&&s.hideRails(),de=setTimeout(function(){s&&(D&&s.showRails(),s.resize()),de=0},120)},this.lazyResize=function(M){return clearTimeout(de),M=isNaN(M)?240:M,de=setTimeout(function(){s&&s.resize(),de=0},M),s};function me(M,D,Y,it){s._bind(M,D,function(vt){vt=vt||k.event;var st={original:vt,target:vt.target||vt.srcElement,type:"wheel",deltaMode:vt.type=="MozMousePixelScroll"?0:1,deltaX:0,deltaZ:0,preventDefault:function(){return vt.preventDefault?vt.preventDefault():vt.returnValue=!1,!1},stopImmediatePropagation:function(){vt.stopImmediatePropagation?vt.stopImmediatePropagation():vt.cancelBubble=!0}};return D=="mousewheel"?(vt.wheelDeltaX&&(st.deltaX=-1/40*vt.wheelDeltaX),vt.wheelDeltaY&&(st.deltaY=-1/40*vt.wheelDeltaY),!st.deltaY&&!st.deltaX&&(st.deltaY=-1/40*vt.wheelDelta)):st.deltaY=vt.detail,Y.call(M,st)},it)}this.jqbind=function(M,D,Y){s.events.push({e:M,n:D,f:Y,q:!0}),p(M).on(D,Y)},this.mousewheel=function(M,D,Y){var it="jquery"in M?M[0]:M;if("onwheel"in y.createElement("div"))s._bind(it,"wheel",D,Y||!1);else{var vt=y.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll";me(it,vt,D,Y||!1),vt=="DOMMouseScroll"&&me(it,"MozMousePixelScroll",D,Y||!1)}};var Pe=!1;if(O.haseventlistener){try{var ln=Object.defineProperty({},"passive",{get:function(){Pe=!0}});k.addEventListener("test",null,ln)}catch{}this.stopPropagation=function(M){return M&&(M=M.original?M.original:M,M.stopPropagation()),!1},this.cancelEvent=function(M){return M.cancelable&&M.preventDefault(),M.stopImmediatePropagation(),M.preventManipulation&&M.preventManipulation(),!1}}else Event.prototype.preventDefault=function(){this.returnValue=!1},Event.prototype.stopPropagation=function(){this.cancelBubble=!0},k.constructor.prototype.addEventListener=y.constructor.prototype.addEventListener=Element.prototype.addEventListener=function(M,D,Y){this.attachEvent("on"+M,D)},k.constructor.prototype.removeEventListener=y.constructor.prototype.removeEventListener=Element.prototype.removeEventListener=function(M,D,Y){this.detachEvent("on"+M,D)},this.cancelEvent=function(M){return M=M||k.event,M&&(M.cancelBubble=!0,M.cancel=!0,M.returnValue=!1),!1},this.stopPropagation=function(M){return M=M||k.event,M&&(M.cancelBubble=!0),!1};this.delegate=function(M,D,Y,it,vt){var st=N[D]||!1;st||(st={a:[],l:[],f:function(Xt){for(var Me=st.l,Re=Me.length-1,ee=!1,Xe=Re;Xe>=0;Xe--)if(ee=Me[Xe].call(Xt.target,Xt),ee===!1)return!1;return ee}},s.bind(M,D,st.f,it,vt),N[D]=st),s.ispage?(st.a=[s.id].concat(st.a),st.l=[Y].concat(st.l)):(st.a.push(s.id),st.l.push(Y))},this.undelegate=function(M,D,Y,it,vt){var st=N[D]||!1;if(st&&st.l)for(var Xt=0,Me=st.l.length;Xt<Me;Xt++)st.a[Xt]===s.id&&(st.a.splice(Xt),st.l.splice(Xt),st.a.length===0&&(s._unbind(M,D,st.l.f),N[D]=null))},this.bind=function(M,D,Y,it,vt){var st="jquery"in M?M[0]:M;s._bind(st,D,Y,it||!1,vt||!1)},this._bind=function(M,D,Y,it,vt){s.events.push({e:M,n:D,f:Y,b:it,q:!1}),Pe&&vt?M.addEventListener(D,Y,{passive:!1,capture:it}):M.addEventListener(D,Y,it||!1)},this._unbind=function(M,D,Y,it){N[D]?s.undelegate(M,D,Y,it):M.removeEventListener(D,Y,it)},this.unbindAll=function(){for(var M=0;M<s.events.length;M++){var D=s.events[M];D.q?D.e.unbind(D.n,D.f):s._unbind(D.e,D.n,D.f,D.b)}},this.showRails=function(){return s.showRail().showRailHr()},this.showRail=function(){return s.page.maxh!==0&&(s.ispage||s.win.css("display")!="none")&&(s.rail.visibility=!0,s.rail.css("display","block")),s},this.showRailHr=function(){return s.railh&&s.page.maxw!==0&&(s.ispage||s.win.css("display")!="none")&&(s.railh.visibility=!0,s.railh.css("display","block")),s},this.hideRails=function(){return s.hideRail().hideRailHr()},this.hideRail=function(){return s.rail.visibility=!1,s.rail.css("display","none"),s},this.hideRailHr=function(){return s.railh&&(s.railh.visibility=!1,s.railh.css("display","none")),s},this.show=function(){return s.hidden=!1,s.railslocked=!1,s.showRails()},this.hide=function(){return s.hidden=!0,s.railslocked=!0,s.hideRails()},this.toggle=function(){return s.hidden?s.show():s.hide()},this.remove=function(){s.stop(),s.cursortimeout&&clearTimeout(s.cursortimeout);for(var M in s.delaylist)s.delaylist[M]&&K(s.delaylist[M].h);s.doZoomOut(),s.unbindAll(),O.isie9&&s.win[0].detachEvent("onpropertychange",s.onAttributeChange),s.observer!==!1&&s.observer.disconnect(),s.observerremover!==!1&&s.observerremover.disconnect(),s.observerbody!==!1&&s.observerbody.disconnect(),s.events=null,s.cursor&&s.cursor.remove(),s.cursorh&&s.cursorh.remove(),s.rail&&s.rail.remove(),s.railh&&s.railh.remove(),s.zoom&&s.zoom.remove();for(var D=0;D<s.saved.css.length;D++){var Y=s.saved.css[D];Y[0].css(Y[1],Y[2]===void 0?"":Y[2])}s.saved=!1,s.me.data("__nicescroll","");var it=p.nicescroll;it.each(function(st){if(this&&this.id===s.id){delete it[st];for(var Xt=++st;Xt<it.length;Xt++,st++)it[st]=it[Xt];it.length--,it.length&&delete it[it.length]}});for(var vt in s)s[vt]=null,delete s[vt];s=null},this.scrollstart=function(M){return this.onscrollstart=M,s},this.scrollend=function(M){return this.onscrollend=M,s},this.scrollcancel=function(M){return this.onscrollcancel=M,s},this.zoomin=function(M){return this.onzoomin=M,s},this.zoomout=function(M){return this.onzoomout=M,s},this.isScrollable=function(M){var D=M.target?M.target:M;if(D.nodeName=="OPTION")return!0;for(;D&&D.nodeType==1&&D!==this.me[0]&&!/^BODY|HTML/.test(D.nodeName);){var Y=p(D),it=Y.css("overflowY")||Y.css("overflowX")||Y.css("overflow")||"";if(/scroll|auto/.test(it))return D.clientHeight!=D.scrollHeight;D=D.parentNode?D.parentNode:!1}return!1},this.getViewport=function(M){for(var D=M&&M.parentNode?M.parentNode:!1;D&&D.nodeType==1&&!/^BODY|HTML/.test(D.nodeName);){var Y=p(D);if(/fixed|absolute/.test(Y.css("position")))return Y;var it=Y.css("overflowY")||Y.css("overflowX")||Y.css("overflow")||"";if(/scroll|auto/.test(it)&&D.clientHeight!=D.scrollHeight||Y.getNiceScroll().length>0)return Y;D=D.parentNode?D.parentNode:!1}return!1},this.triggerScrollStart=function(M,D,Y,it,vt){if(s.onscrollstart){var st={type:"scrollstart",current:{x:M,y:D},request:{x:Y,y:it},end:{x:s.newscrollx,y:s.newscrolly},speed:vt};s.onscrollstart.call(s,st)}},this.triggerScrollEnd=function(){if(s.onscrollend){var M=s.getScrollLeft(),D=s.getScrollTop(),Y={type:"scrollend",current:{x:M,y:D},end:{x:M,y:D}};s.onscrollend.call(s,Y)}};var Oe=0,rn=0,Ve=0,kn=1;function Ye(M,D,Y,it){s.scrollrunning||(s.newscrolly=s.getScrollTop(),s.newscrollx=s.getScrollLeft(),Ve=G());var vt=G()-Ve;if(Ve=G(),vt>350?kn=1:kn+=(2-kn)/10,M=M*kn|0,D=D*kn|0,M){if(it){if(M<0){if(s.getScrollLeft()>=s.page.maxw)return!0}else if(s.getScrollLeft()<=0)return!0}var st=M>0?1:-1;rn!==st&&(s.scrollmom&&s.scrollmom.stop(),s.newscrollx=s.getScrollLeft(),rn=st),s.lastdeltax-=M}if(D){var Xt=(function(){var ee=s.getScrollTop();if(D<0){if(ee>=s.page.maxh)return!0}else if(ee<=0)return!0})();if(Xt){if(x.nativeparentscrolling&&Y&&!s.ispage&&!s.zoomactive)return!0;var Me=s.view.h>>1;s.newscrolly<-Me?(s.newscrolly=-Me,D=-1):s.newscrolly>s.page.maxh+Me?(s.newscrolly=s.page.maxh+Me,D=1):D=0}var Re=D>0?1:-1;Oe!==Re&&(s.scrollmom&&s.scrollmom.stop(),s.newscrolly=s.getScrollTop(),Oe=Re),s.lastdeltay-=D}(D||M)&&s.synched("relativexy",function(){var ee=s.lastdeltay+s.newscrolly;s.lastdeltay=0;var Xe=s.lastdeltax+s.newscrollx;s.lastdeltax=0,s.rail.drag||s.doScrollPos(Xe,ee)})}var yn=!1;function Je(M,D,Y){var it,vt;if(!Y&&yn)return!0;if(M.deltaMode===0?(it=-(M.deltaX*(x.mousescrollstep/54))|0,vt=-(M.deltaY*(x.mousescrollstep/54))|0):M.deltaMode===1&&(it=-(M.deltaX*x.mousescrollstep*50/80)|0,vt=-(M.deltaY*x.mousescrollstep*50/80)|0),D&&x.oneaxismousemode&&it===0&&vt&&(it=vt,vt=0,Y)){var st=it<0?s.getScrollLeft()>=s.page.maxw:s.getScrollLeft()<=0;st&&(vt=it,it=0)}s.isrtlmode&&(it=-it);var Xt=Ye(it,vt,Y,!0);if(Xt)Y&&(yn=!0);else return yn=!1,M.stopImmediatePropagation(),M.preventDefault()}if(this.onmousewheel=function(M){if(s.wheelprevented||s.locked)return!1;if(s.railslocked)return s.debounced("checkunlock",s.resize,250),!1;if(s.rail.drag)return s.cancelEvent(M);if(x.oneaxismousemode==="auto"&&M.deltaX!==0&&(x.oneaxismousemode=!1),x.oneaxismousemode&&M.deltaX===0&&!s.rail.scrollable)return s.railh&&s.railh.scrollable?s.onmousewheelhr(M):!0;var D=G(),Y=!1;if(x.preservenativescrolling&&s.checkarea+600<D&&(s.nativescrollingarea=s.isScrollable(M),Y=!0),s.checkarea=D,s.nativescrollingarea)return!0;var it=Je(M,!1,Y);return it&&(s.checkarea=0),it},this.onmousewheelhr=function(M){if(!s.wheelprevented){if(s.railslocked||!s.railh.scrollable)return!0;if(s.rail.drag)return s.cancelEvent(M);var D=G(),Y=!1;return x.preservenativescrolling&&s.checkarea+600<D&&(s.nativescrollingarea=s.isScrollable(M),Y=!0),s.checkarea=D,s.nativescrollingarea?!0:s.railslocked?s.cancelEvent(M):Je(M,!0,Y)}},this.stop=function(){return s.cancelScroll(),s.scrollmon&&s.scrollmon.stop(),s.cursorfreezed=!1,s.scroll.y=Math.round(s.getScrollTop()*(1/s.scrollratio.y)),s.noticeCursor(),s},this.getTransitionSpeed=function(M){return 80+M/72*x.scrollspeed|0},!x.smoothscroll)this.doScrollLeft=function(M,D){var Y=s.getScrollTop();s.doScrollPos(M,Y,D)},this.doScrollTop=function(M,D){var Y=s.getScrollLeft();s.doScrollPos(Y,M,D)},this.doScrollPos=function(M,D,Y){var it=M>s.page.maxw?s.page.maxw:M;it<0&&(it=0);var vt=D>s.page.maxh?s.page.maxh:D;vt<0&&(vt=0),s.synched("scroll",function(){s.setScrollTop(vt),s.setScrollLeft(it)})},this.cancelScroll=function(){};else if(s.ishwscroll&&O.hastransition&&x.usetransition&&x.smoothscroll){var un="";this.resetTransition=function(){un="",s.doc.css(O.prefixstyle+"transition-duration","0ms")},this.prepareTransition=function(M,D){var Y=D?M:s.getTransitionSpeed(M),it=Y+"ms";return un!==it&&(un=it,s.doc.css(O.prefixstyle+"transition-duration",it)),Y},this.doScrollLeft=function(M,D){var Y=s.scrollrunning?s.newscrolly:s.getScrollTop();s.doScrollPos(M,Y,D)},this.doScrollTop=function(M,D){var Y=s.scrollrunning?s.newscrollx:s.getScrollLeft();s.doScrollPos(Y,M,D)},this.cursorupdate={running:!1,start:function(){var M=this;if(!M.running){M.running=!0;var D=function(){M.running&&L(D),s.showCursor(s.getScrollTop(),s.getScrollLeft()),s.notifyScrollEvent(s.win[0])};L(D)}},stop:function(){this.running=!1}},this.doScrollPos=function(M,D,Y){var it=s.getScrollTop(),vt=s.getScrollLeft();if(((s.newscrolly-it)*(D-it)<0||(s.newscrollx-vt)*(M-vt)<0)&&s.cancelScroll(),x.bouncescroll?(D<0?D=D/2|0:D>s.page.maxh&&(D=s.page.maxh+(D-s.page.maxh)/2|0),M<0?M=M/2|0:M>s.page.maxw&&(M=s.page.maxw+(M-s.page.maxw)/2|0)):(D<0?D=0:D>s.page.maxh&&(D=s.page.maxh),M<0?M=0:M>s.page.maxw&&(M=s.page.maxw)),s.scrollrunning&&M==s.newscrollx&&D==s.newscrolly)return!1;s.newscrolly=D,s.newscrollx=M;var st=s.getScrollTop(),Xt=s.getScrollLeft(),Me={};Me.x=M-Xt,Me.y=D-st;var Re=Math.sqrt(Me.x*Me.x+Me.y*Me.y)|0,ee=s.prepareTransition(Re);s.scrollrunning||(s.scrollrunning=!0,s.triggerScrollStart(Xt,st,M,D,ee),s.cursorupdate.start()),s.scrollendtrapped=!0,O.transitionend||(s.scrollendtrapped&&clearTimeout(s.scrollendtrapped),s.scrollendtrapped=setTimeout(s.onScrollTransitionEnd,ee)),s.setScrollTop(s.newscrolly),s.setScrollLeft(s.newscrollx)},this.cancelScroll=function(){if(!s.scrollendtrapped)return!0;var M=s.getScrollTop(),D=s.getScrollLeft();return s.scrollrunning=!1,O.transitionend||clearTimeout(O.transitionend),s.scrollendtrapped=!1,s.resetTransition(),s.setScrollTop(M),s.railh&&s.setScrollLeft(D),s.timerscroll&&s.timerscroll.tm&&clearInterval(s.timerscroll.tm),s.timerscroll=!1,s.cursorfreezed=!1,s.cursorupdate.stop(),s.showCursor(M,D),s},this.onScrollTransitionEnd=function(){if(s.scrollendtrapped){var M=s.getScrollTop(),D=s.getScrollLeft();if(M<0?M=0:M>s.page.maxh&&(M=s.page.maxh),D<0?D=0:D>s.page.maxw&&(D=s.page.maxw),M!=s.newscrolly||D!=s.newscrollx)return s.doScrollPos(D,M,x.snapbackspeed);s.scrollrunning&&s.triggerScrollEnd(),s.scrollrunning=!1,s.scrollendtrapped=!1,s.resetTransition(),s.timerscroll=!1,s.setScrollTop(M),s.railh&&s.setScrollLeft(D),s.cursorupdate.stop(),s.noticeCursor(!1,M,D),s.cursorfreezed=!1}}}else this.doScrollLeft=function(M,D){var Y=s.scrollrunning?s.newscrolly:s.getScrollTop();s.doScrollPos(M,Y,D)},this.doScrollTop=function(M,D){var Y=s.scrollrunning?s.newscrollx:s.getScrollLeft();s.doScrollPos(Y,M,D)},this.doScrollPos=function(M,D,Y){var it=s.getScrollTop(),vt=s.getScrollLeft();((s.newscrolly-it)*(D-it)<0||(s.newscrollx-vt)*(M-vt)<0)&&s.cancelScroll();var st=!1;if((!s.bouncescroll||!s.rail.visibility)&&(D<0?(D=0,st=!0):D>s.page.maxh&&(D=s.page.maxh,st=!0)),(!s.bouncescroll||!s.railh.visibility)&&(M<0?(M=0,st=!0):M>s.page.maxw&&(M=s.page.maxw,st=!0)),s.scrollrunning&&s.newscrolly===D&&s.newscrollx===M)return!0;s.newscrolly=D,s.newscrollx=M,s.dst={},s.dst.x=M-vt,s.dst.y=D-it,s.dst.px=vt,s.dst.py=it;var Xt=Math.sqrt(s.dst.x*s.dst.x+s.dst.y*s.dst.y)|0,Me=s.getTransitionSpeed(Xt);s.bzscroll={};var Re=st?1:.58;s.bzscroll.x=new wt(vt,s.newscrollx,Me,0,0,Re,1),s.bzscroll.y=new wt(it,s.newscrolly,Me,0,0,Re,1),G();var ee=function(){if(s.scrollrunning){var Xe=s.bzscroll.y.getPos();s.setScrollLeft(s.bzscroll.x.getNow()),s.setScrollTop(s.bzscroll.y.getNow()),Xe<=1?s.timer=L(ee):(s.scrollrunning=!1,s.timer=0,s.triggerScrollEnd())}};s.scrollrunning||(s.triggerScrollStart(vt,it,M,D,Me),s.scrollrunning=!0,s.timer=L(ee))},this.cancelScroll=function(){return s.timer&&K(s.timer),s.timer=0,s.bzscroll=!1,s.scrollrunning=!1,s};this.doScrollBy=function(M,D){Ye(0,M)},this.doScrollLeftBy=function(M,D){Ye(M,0)},this.doScrollTo=function(M,D){var Y=D?Math.round(M*s.scrollratio.y):M;Y<0?Y=0:Y>s.page.maxh&&(Y=s.page.maxh),s.cursorfreezed=!1,s.doScrollTop(M)},this.checkContentSize=function(){var M=s.getContentSize();(M.h!=s.page.h||M.w!=s.page.w)&&s.resize(!1,M)},s.onscroll=function(M){s.rail.drag||s.cursorfreezed||s.synched("scroll",function(){s.scroll.y=Math.round(s.getScrollTop()/s.scrollratio.y),s.railh&&(s.scroll.x=Math.round(s.getScrollLeft()/s.scrollratio.x)),s.noticeCursor()})},s.bind(s.docscroll,"scroll",s.onscroll),this.doZoomIn=function(M){if(!s.zoomactive){s.zoomactive=!0,s.zoomrestore={style:{}};var D=["position","top","left","zIndex","backgroundColor","marginTop","marginBottom","marginLeft","marginRight"],Y=s.win[0].style;for(var it in D){var vt=D[it];s.zoomrestore.style[vt]=Y[vt]!==void 0?Y[vt]:""}s.zoomrestore.style.width=s.win.css("width"),s.zoomrestore.style.height=s.win.css("height"),s.zoomrestore.padding={w:s.win.outerWidth()-s.win.width(),h:s.win.outerHeight()-s.win.height()},O.isios4&&(s.zoomrestore.scrollTop=E.scrollTop(),E.scrollTop(0)),s.win.css({position:O.isios4?"absolute":"fixed",top:0,left:0,zIndex:f+100,margin:0});var st=s.win.css("backgroundColor");return(st===""||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(st))&&s.win.css("backgroundColor","#fff"),s.rail.css({zIndex:f+101}),s.zoom.css({zIndex:f+102}),s.zoom.css("backgroundPosition","0 -18px"),s.resizeZoom(),s.onzoomin&&s.onzoomin.call(s),s.cancelEvent(M)}},this.doZoomOut=function(M){if(s.zoomactive)return s.zoomactive=!1,s.win.css("margin",""),s.win.css(s.zoomrestore.style),O.isios4&&E.scrollTop(s.zoomrestore.scrollTop),s.rail.css({"z-index":s.zindex}),s.zoom.css({"z-index":s.zindex}),s.zoomrestore=!1,s.zoom.css("backgroundPosition","0 0"),s.onResize(),s.onzoomout&&s.onzoomout.call(s),s.cancelEvent(M)},this.doZoom=function(M){return s.zoomactive?s.doZoomOut(M):s.doZoomIn(M)},this.resizeZoom=function(){if(s.zoomactive){var M=s.getScrollTop();s.win.css({width:E.width()-s.zoomrestore.padding.w+"px",height:E.height()-s.zoomrestore.padding.h+"px"}),s.onResize(),s.setScrollTop(Math.min(s.page.maxh,M))}},this.init(),p.nicescroll.push(this)},v=function(tt){var H=this;this.nc=tt,this.lastx=0,this.lasty=0,this.speedx=0,this.speedy=0,this.lasttime=0,this.steptime=0,this.snapx=!1,this.snapy=!1,this.demulx=0,this.demuly=0,this.lastscrollx=-1,this.lastscrolly=-1,this.chkx=0,this.chky=0,this.timer=0,this.reset=function(s,ht){H.stop(),H.steptime=0,H.lasttime=G(),H.speedx=0,H.speedy=0,H.lastx=s,H.lasty=ht,H.lastscrollx=-1,H.lastscrolly=-1},this.update=function(s,ht){var x=G();H.steptime=x-H.lasttime,H.lasttime=x;var lt=ht-H.lasty,bt=s-H.lastx,St=H.nc.getScrollTop(),O=H.nc.getScrollLeft(),wt=St+lt,xt=O+bt;H.snapx=xt<0||xt>H.nc.page.maxw,H.snapy=wt<0||wt>H.nc.page.maxh,H.speedx=bt,H.speedy=lt,H.lastx=s,H.lasty=ht},this.stop=function(){H.nc.unsynched("domomentum2d"),H.timer&&clearTimeout(H.timer),H.timer=0,H.lastscrollx=-1,H.lastscrolly=-1},this.doSnapy=function(s,ht){var x=!1;ht<0?(ht=0,x=!0):ht>H.nc.page.maxh&&(ht=H.nc.page.maxh,x=!0),s<0?(s=0,x=!0):s>H.nc.page.maxw&&(s=H.nc.page.maxw,x=!0),x?H.nc.doScrollPos(s,ht,H.nc.opt.snapbackspeed):H.nc.triggerScrollEnd()},this.doMomentum=function(s){var ht=G(),x=s?ht+s:H.lasttime,lt=H.nc.getScrollLeft(),bt=H.nc.getScrollTop(),St=H.nc.page.maxh,O=H.nc.page.maxw;H.speedx=O>0?Math.min(60,H.speedx):0,H.speedy=St>0?Math.min(60,H.speedy):0;var wt=x&&ht-x<=60;(bt<0||bt>St||lt<0||lt>O)&&(wt=!1);var xt=H.speedy&&wt?H.speedy:!1,Ot=H.speedx&&wt?H.speedx:!1;if(xt||Ot){var Mt=Math.max(16,H.steptime);if(Mt>50){var Ht=Mt/50;H.speedx*=Ht,H.speedy*=Ht,Mt=50}H.demulxy=0,H.lastscrollx=H.nc.getScrollLeft(),H.chkx=H.lastscrollx,H.lastscrolly=H.nc.getScrollTop(),H.chky=H.lastscrolly;var Qt=H.lastscrollx,de=H.lastscrolly,me=function(){var Pe=G()-ht>600?.04:.02;H.speedx&&(Qt=Math.floor(H.lastscrollx-H.speedx*(1-H.demulxy)),H.lastscrollx=Qt,(Qt<0||Qt>O)&&(Pe=.1)),H.speedy&&(de=Math.floor(H.lastscrolly-H.speedy*(1-H.demulxy)),H.lastscrolly=de,(de<0||de>St)&&(Pe=.1)),H.demulxy=Math.min(1,H.demulxy+Pe),H.nc.synched("domomentum2d",function(){H.speedx&&(H.nc.getScrollLeft(),H.chkx=Qt,H.nc.setScrollLeft(Qt)),H.speedy&&(H.nc.getScrollTop(),H.chky=de,H.nc.setScrollTop(de)),H.timer||(H.nc.hideCursor(),H.doSnapy(Qt,de))}),H.demulxy<1?H.timer=setTimeout(me,Mt):(H.stop(),H.nc.hideCursor(),H.doSnapy(Qt,de))};me()}else H.doSnapy(H.nc.getScrollLeft(),H.nc.getScrollTop())}},mt=n.fn.scrollTop;n.cssHooks.pageYOffset={get:function(tt,H,s){var ht=p.data(tt,"__nicescroll")||!1;return ht&&ht.ishwscroll?ht.getScrollTop():mt.call(tt)},set:function(tt,H){var s=p.data(tt,"__nicescroll")||!1;return s&&s.ishwscroll?s.setScrollTop(parseInt(H)):mt.call(tt,H),this}},n.fn.scrollTop=function(tt){if(tt===void 0){var H=this[0]&&p.data(this[0],"__nicescroll")||!1;return H&&H.ishwscroll?H.getScrollTop():mt.call(this)}else return this.each(function(){var s=p.data(this,"__nicescroll")||!1;s&&s.ishwscroll?s.setScrollTop(parseInt(tt)):mt.call(p(this),tt)})};var ft=n.fn.scrollLeft;p.cssHooks.pageXOffset={get:function(tt,H,s){var ht=p.data(tt,"__nicescroll")||!1;return ht&&ht.ishwscroll?ht.getScrollLeft():ft.call(tt)},set:function(tt,H){var s=p.data(tt,"__nicescroll")||!1;return s&&s.ishwscroll?s.setScrollLeft(parseInt(H)):ft.call(tt,H),this}},n.fn.scrollLeft=function(tt){if(tt===void 0){var H=this[0]&&p.data(this[0],"__nicescroll")||!1;return H&&H.ishwscroll?H.getScrollLeft():ft.call(this)}else return this.each(function(){var s=p.data(this,"__nicescroll")||!1;s&&s.ishwscroll?s.setScrollLeft(parseInt(tt)):ft.call(p(this),tt)})};var Lt=function(tt){var H=this;if(this.length=0,this.name="nicescrollarray",this.each=function(x){return p.each(H,x),H},this.push=function(x){H[H.length]=x,H.length++},this.eq=function(x){return H[x]},tt)for(var s=0;s<tt.length;s++){var ht=p.data(tt[s],"__nicescroll")||!1;ht&&(this[this.length]=ht,this.length++)}return this};function Nt(tt,H,s){for(var ht=0,x=H.length;ht<x;ht++)s(tt,H[ht])}Nt(Lt.prototype,["show","hide","toggle","onResize","resize","remove","stop","doScrollPos"],function(tt,H){tt[H]=function(){var s=arguments;return this.each(function(){this[H].apply(this,s)})}}),n.fn.getNiceScroll=function(tt){return tt===void 0?new Lt(this):this[tt]&&p.data(this[tt],"__nicescroll")||!1};var At=n.expr.pseudos||n.expr[":"];At.nicescroll=function(tt){return p.data(tt,"__nicescroll")!==void 0},p.fn.niceScroll=function(tt,H){H===void 0&&typeof tt=="object"&&!("jquery"in tt)&&(H=tt,tt=!1);var s=new Lt;return this.each(function(){var ht=p(this),x=p.extend({},H);if(tt){var lt=p(tt);x.doc=lt.length>1?p(tt,ht):lt,x.win=ht}var bt=!("doc"in x);!bt&&!("win"in x)&&(x.win=ht);var St=ht.data("__nicescroll")||!1;St||(x.doc=x.doc||ht,St=new $(x,ht),ht.data("__nicescroll",St)),s.push(St)}),s.length===1?s[0]:s},k.NiceScroll={getjQuery:function(){return n}},p.nicescroll||(p.nicescroll=new Lt,p.nicescroll.options=ot)})})(Bf)),Bf.exports}j1();const np=".bloom-translationGroup:not(.bloom-imageDescription) .bloom-editable.bloom-visibility-code-on, .scrollable";function O1(e,t){if(e.classList.contains("cover"))return;const n=Yh(e);if("IntersectionObserver"in window){let a=[],r=0,l=0;dl(e).find(np).each((d,f)=>{const p=f.firstElementChild,y=f.lastElementChild;if(!p||!y)return;let k=1;const E=document.querySelector("style#scale-style-sheet");if(E){const J=E.innerHTML.match(/transform:[a-z0-9, ()]* scale\((\d+(\.\d+)?)\)/);J&&(k=parseFloat(J[1]))}else{const J=f.closest("#page-scaling-container");if(J){const F=J.style.transform;F&&F.startsWith("scale(")&&(k=parseFloat(F.substring(6,F.length-1)))}}const{topAdjust:N,leftAdjust:I,thumbWidth:L}=Bb(k,f),K=new IntersectionObserver((J,F)=>{J.forEach(G=>{if(l++,F.unobserve(G.target),!G.target.parentElement)return;const ot=!!G.target.closest(cl);let dt=G.intersectionRatio<.999;if(dt&&ot){let _=.6;(G.target!=G.target.parentElement?.firstElementChild||G.target!=G.target.parentElement.lastElementChild)&&(_/=2);const $=(1-G.intersectionRatio)*G.target.clientHeight,v=window.getComputedStyle(G.target).lineHeight,mt=parseFloat(v.substring(0,v.length-2));dt=$>mt*_}if(dt&&a.indexOf(G.target.parentElement)<0){a.push(G.target.parentElement);const _=G.target.parentElement.parentElement;_.classList.contains("bloom-vertical-align-center")&&(_.classList.remove("bloom-vertical-align-center"),n&&_.classList.add("bloom-vertical-align-center-removed")),_.classList.contains("bloom-vertical-align-bottom")&&(_.classList.remove("bloom-vertical-align-bottom"),n&&_.classList.add("bloom-vertical-align-bottom-removed")),ot&&G.target.parentElement.classList.add("scrolling-bubble")}l===r&&(dl(a).niceScroll({autohidemode:!1,railoffset:{top:-N,left:-I},cursorwidth:L,cursorcolor:"#000000",cursoropacitymax:.1,cursorborderradius:L}),q1(e,t),a=[])})},{root:f});r++,K.observe(p),p!==y&&(r++,K.observe(y))})}}function K1(e){for(var t=e&&e.parentNode?e.parentNode:null;t&&t.nodeType===Node.ELEMENT_NODE&&!/^BODY|HTML/.test(t.nodeName);){const n=window.getComputedStyle(t),a=n.getPropertyValue("position");if(/fixed|absolute/.test(a))return t;const r=n.getPropertyValue("overflow-y")||n.getPropertyValue("overflow-x")||n.getPropertyValue("overflow")||"";if(/scroll|auto/.test(r)&&t.clientHeight!=t.scrollHeight||dl(t).getNiceScroll().length>0)return t;t=t.parentNode?t.parentNode:null}return null}function Bb(e,t){let n=0,a=0,r="12px";if(e!==1){const l=t.parentElement;if(!l||!l.classList.contains("bloom-translationGroup"))return{topAdjust:n,leftAdjust:a,thumbWidth:r};if(K1(t)){const f=window.getComputedStyle(l),p=f.getPropertyValue("padding-top")||"0",y=f.getPropertyValue("padding-left")||"0";n=parseFloat(p)*(e-1),a=parseFloat(y)*(e-1)}else{const f=l.parentElement;if(!f)return{topAdjust:n,leftAdjust:a,thumbWidth:r};r=`${12*e}px`;const p=f?.offsetTop,y=f.offsetLeft+f.offsetWidth;n=-(p*(e-1)),a=-(y*(e-1))}}return{topAdjust:n,leftAdjust:a,thumbWidth:r}}function q1(e,t){if(e.removeEventListener("pointerdown",bv),e.addEventListener("pointerdown",bv),!!t)for(const n of["pointermove","pointerup"])e.ownerDocument.body.addEventListener(n,t,{capture:!0})}function $1(e,t){e.querySelectorAll(np).forEach(n=>{const a=dl(n).getNiceScroll();if(a&&a.length>0){let{topAdjust:r,leftAdjust:l,thumbWidth:d}=Bb(t,n);a[0].opt.railoffset.top=-r,a[0].opt.railoffset.left=-l,a[0].opt.cursorwidth=d,a[0].resize()}})}function bv(e){e.target instanceof HTMLDivElement&&e.target.classList.contains("nicescroll-cursors")&&(e.target.setPointerCapture(e.pointerId),e.pointerType==="mouse"&&e.stopPropagation())}const H1="/right_answer-XEe3HakR.mp3",F1="/wrong_answer-BhCi5k6f.mp3";class W1{constructor(t,n,a,r){this.listeners=new Array,this.pageIndex=t,this.pageElement=n,this.analyticsCategory=a,this.pagesToGroupForAnalytics=r,M1(this.fixViteSoundPath(H1),this.fixViteSoundPath(F1)),Sb(this.pageElement)}reportScore(t,n){console.log(`ActivityContext.reportScoreForCurrentPage(<page>, ${t}, ${n},${this.analyticsCategory})`),y1(this.pageIndex,t,n,this.analyticsCategory,this.pagesToGroupForAnalytics)}getSessionPageData(t){return Su(this.pageIndex,t)}storeSessionPageData(t,n){console.log(`ActivityContext.storePageData(<page>, '${t}', '${n}')`),sb(this.pageIndex,t,n)}playCorrect(t){gh(this.pageElement,!0)}playWrong(t){gh(this.pageElement,!1)}fixViteSoundPath(t){return t.startsWith("/")&&(t=t.substring(1)),t}getPagePlayer(){let t=document.getElementById("activity-sound-player");return t&&!t.play&&(t.remove(),t=null),t||(t=document.createElement("audio"),t.setAttribute("id","activity-sound-player"),document.body.appendChild(t)),t}playSound(t){const n=this.getPagePlayer();n.setAttribute("src",t),n.play()}addActivityStylesForPage(t){if(!this.pageElement.querySelector("[data-activity-stylesheet]")){const n=this.pageElement.ownerDocument.createElement("style");n.setAttribute("data-activity-stylesheet",""),n.setAttribute("scoped","true"),n.innerText=t,this.pageElement.parentNode.insertBefore(n,this.pageElement)}}addEventListener(t,n,a,r){this.listeners.push({name:t,target:n,listener:a}),n.addEventListener(t,a,r)}stop(){this.listeners.forEach(t=>t.target.removeEventListener(t.name,t.listener)),xb(this.pageElement)}sendMessageToPlayer(t){const a=JSON.stringify({messageType:"control",controlAction:t});window.postMessage(a,"*")}navigateToNextPage(){this.sendMessageToPlayer("navigate-to-next-page")}navigateToPreviousPage(){this.sendMessageToPlayer("navigate-to-previous-page")}}class _1{constructor(t){console.log("iframe activity constructed")}initializePageHtml(t){}showingPage(){console.log("iframe activity showingPage")}stop(){console.log("iframe activity stop")}}function V1(){return{dragging:!0,clicking:!0,typing:!0}}const G1={default:_1,activityRequirements:V1};class U1{constructor(t){this.pageElement=t,this.onCorrectClick=n=>{n.currentTarget.classList.add("chosen-correct"),this.activityContext.playCorrect(n),this.activityContext.reportScore(1,1)},this.onWrongClick=n=>{n.currentTarget.classList.add("chosen-wrong"),this.activityContext.playWrong(n),this.activityContext.reportScore(1,0)}}showingPage(t){this.activityContext=t,this.prepareToDisplayActivityEachTime(t)}initializePageHtml(t){t.pageElement.querySelectorAll(".chosen-correct, .chosen-wrong").forEach(n=>{n.classList.remove("chosen-correct"),n.classList.remove("chosen-wrong")}),t.pageElement.querySelectorAll(".player-button").forEach(n=>{this.replaceWithButton(n)}),t.pageElement.querySelectorAll(".player-shuffle-buttons").forEach(n=>{this.shuffleChildren(n)})}shuffleChildren(t){Array.from(t.childNodes).map(n=>({node:n,randomValue:Math.random()})).sort((n,a)=>n.randomValue-a.randomValue).forEach(({node:n})=>t.appendChild(n))}replaceWithButton(t){let n=t.ownerDocument.createElement("button");for(const a of Array.prototype.slice.call(t.attributes))n.setAttribute(a.name,a.value);return n.innerHTML=t.innerHTML,t.replaceWith(n),n}prepareToDisplayActivityEachTime(t){t.pageElement.querySelectorAll(".player-button").forEach(n=>{const a=n.getAttribute("data-activityRole")==="correct-answer";t.addEventListener("click",n,a?this.onCorrectClick:this.onWrongClick)})}stop(){}}function Y1(){return{dragging:!0,clicking:!0,typing:!1}}const X1={default:U1,activityRequirements:Y1},Z1='.simple-comprehension-quiz{--pure-material-primary-rgb: 214, 86, 73;--pure-material-onprimary-rgb: 255, 255, 255;--pure-material-onsurface-rgb: 0, 0, 0}.simple-comprehension-quiz .bloom-translationGroup{margin-bottom:10px;flex-grow:1}.simple-comprehension-quiz .QuizHeader-style{font-size:20pt;text-align:center;color:#fff;background-color:#d65649}.simple-comprehension-quiz .checkbox-and-textbox-choice{display:flex;z-index:0;width:fit-content}.simple-comprehension-quiz .checkbox-and-textbox-choice *{width:fit-content}.simple-comprehension-quiz .checkbox-and-textbox-choice input{z-index:11;left:-10px;top:-8px;display:block;margin:0 -10px 0 0;border-radius:50%;width:40px;height:40px;opacity:0}.simple-comprehension-quiz .checkbox-and-textbox-choice .placeToPutVariableCircle{z-index:-1;position:absolute;left:-10px;top:-8px;display:block;margin:0;border-radius:50%;width:40px;height:40px;background-color:rgba(var(--pure-material-onsurface-rgb),.6);box-shadow:none;outline:none;opacity:1;transform:scale(0)}.simple-comprehension-quiz .checkbox-and-textbox-choice>input+div:before{content:"";display:block;position:absolute;box-sizing:border-box;left:-30px;top:3px;border:solid 2px;border-color:rgba(var(--pure-material-onsurface-rgb),.6);border-radius:2px;width:18px;height:18px}.simple-comprehension-quiz .checkbox-and-textbox-choice>input+div:after{content:"";display:block;position:absolute;top:3px;left:-30px;width:10px;height:5px;border:solid 2px transparent;border-right:none;border-top:none;transform:translate(3px,4px) rotate(-45deg)}.simple-comprehension-quiz .checkbox-and-textbox-choice>input:checked~.placeToPutVariableCircle{background-color:rgb(var(--pure-material-primary-rgb))}.simple-comprehension-quiz .checkbox-and-textbox-choice>input:checked+div:before{border-color:rgb(var(--pure-material-primary-rgb));background-color:rgb(var(--pure-material-primary-rgb))}.simple-comprehension-quiz .checkbox-and-textbox-choice>input:checked+div:after{border-color:rgb(var(--pure-material-onprimary-rgb))}.simple-comprehension-quiz .checkbox-and-textbox-choice input:active~.placeToPutVariableCircle{opacity:.5;transform:scale(1);transition:opacity .3s,transform .2s}.quiz #formatButton{left:unset;right:0}.bloom-editable.QuizHeader-style[contentEditable=true][data-languageTipContent]:not([data-languageTipContent=""]):after,.bloom-editable.QuizAnswer-style[contentEditable=true][data-languageTipContent]:not([data-languageTipContent=""]):after,.bloom-editable.QuizQuestion-style[contentEditable=true][data-languageTipContent]:not([data-languageTipContent=""]):after{margin-right:24px}.bloom-editable.QuizAnswer-style:not(.cke_focus)[contentEditable=true][data-languageTipContent]:not([data-languageTipContent=""]):after,.bloom-editable.QuizQuestion-style:not(.cke_focus)[contentEditable=true][data-languageTipContent]:not([data-languageTipContent=""]):after{content:""}body.editMode .simple-comprehension-quiz .checkbox-and-textbox-choice.empty{opacity:.5;display:flex}.simple-comprehension-quiz .checkbox-and-textbox-choice.empty{display:none}.simple-comprehension-quiz .checkbox-and-textbox-choice.wasSelectedAtOnePoint:not(.correct-answer){opacity:.5}',zf="wasSelectedAtOnePoint";class J1{constructor(t){}initializePageHtml(t){}showingPage(t){this.activityContext=t,t.addActivityStylesForPage(Z1),this.markEmptyChoices();const n=this.activityContext.pageElement.getElementsByClassName("checkbox-and-textbox-choice");Array.from(n).forEach((a,r)=>{const l=this.getCheckBox(a);if(this.activityContext.addEventListener("click",a,f=>this.handleReadModeClick(f),{capture:!0}),r===0)for(const f of["mousedown","mousemove","pointerdown","pointermove","touchstart","touchmove"])this.activityContext.addEventListener(f,a.ownerDocument.body,p=>this.handleInputMouseEvent(p),{capture:!0});const d=this.getStorageKeyForChoice(a);t.getSessionPageData(d)===zf?this.choiceWasClicked(a):l.checked=!1})}markEmptyChoices(){const t=this.activityContext.pageElement.getElementsByClassName("checkbox-and-textbox-choice");for(let n=0;n<t.length;n++)this.hasVisibleContent(t[n])?t[n].classList.remove("empty"):t[n].classList.add("empty")}hasVisibleContent(t){const n=t.getElementsByClassName("bloom-editable");return Array.from(n).some(a=>a.classList.contains("bloom-visibility-code-on")&&(a.textContent||"").trim()!=="")}handleInputMouseEvent(t){t.target.closest(".checkbox-and-textbox-choice")&&t.stopPropagation()}handleReadModeClick(t){t.stopPropagation(),t.preventDefault();const n=t.currentTarget;this.choiceWasClicked(n);const a=n.classList.contains("correct-answer");a?this.activityContext.playCorrect(t):this.activityContext.playWrong(t);const r=this.getStorageKeyForChoice(n);this.activityContext.storeSessionPageData(r,zf),this.activityContext.reportScore(1,a?1:0)}choiceWasClicked(t){t.classList.add(zf);const n=this.getCheckBox(t);if(n){const a=t.classList.contains("correct-answer");n.checked=a,window.setTimeout(()=>n.checked=a,0)}}getCheckBox(t){return t.firstElementChild}stop(){}getStorageKeyForChoice(t){return"cbstate_"+Array.from(this.activityContext.pageElement.getElementsByClassName("checkbox-and-textbox-choice")).indexOf(t)}}const Q1="simple-checkbox-quiz";function tP(){return{dragging:!1,clicking:!0,typing:!1}}const If={default:J1,activityRequirements:tP,dataActivityID:Q1};class eP{constructor(t){this.pageElement=t}showingPage(t){this.activityContext=t,this.prepareToDisplayActivityEachTime(t)}doInitialSoundAndAnimation(t){T1(t.pageElement)}initializePageHtml(t){}prepareToDisplayActivityEachTime(t){this.activityContext=t,t.pageElement.parentElement?.classList.add("drag-activity-play"),E1(this.activityContext.reportScore.bind(this.activityContext)),k1(t.pageElement,n=>{n?t.navigateToNextPage():t.navigateToPreviousPage()})}stop(){this.activityContext&&(S1(this.activityContext.pageElement),this.activityContext.pageElement.parentElement?.classList.remove("drag-activity-play","drag-activity-start","drag-activity-correct","drag-activity-wrong","drag-activity-solution"))}}function nP(){return{dragging:!0,clicking:!0,typing:!1,soundManagement:!0}}const js={default:eP,activityRequirements:nP};class aP{constructor(){this.builtInActivities={},this.bookActivityGroupings={},this.loadedActivityScripts={},this.builtInActivities.iframe=G1,this.builtInActivities["simple-dom-choice"]=X1,this.builtInActivities[If.dataActivityID]=If,this.builtInActivities["drag-to-destination"]=js,this.builtInActivities["drag-letter-to-target"]=js,this.builtInActivities["drag-image-to-target"]=js,this.builtInActivities["drag-sort-sentence"]=js,this.builtInActivities["word-chooser-slider"]=js}getActivityAbsorbsDragging(){return!!this.currentActivity&&!!this.currentActivity.requirements.dragging}getActivityAbsorbsClicking(){return!!this.currentActivity&&!!this.currentActivity.requirements.clicking}getActivityAbsorbsTyping(){return!!this.currentActivity&&!!this.currentActivity.requirements.typing}getActivityManagesSound(){return!!this.currentActivity&&!!this.currentActivity.requirements.soundManagement}getActivityIdOfPage(t){let n=t.getAttribute("data-activity")||"";return n===""&&this.hasLegacyQuizScriptTag(t)&&(n=If.dataActivityID),n}getAnalyticsCategoryOfPage(t){const n=t.getAttribute("data-analyticscategories")||t.getAttribute("data-analyticsCategories")||"";return n==="drag-activity"?"drag-game":n}initializePageHtml(t,n,a){const r=this.getActivityIdOfPage(n);r&&(this.loadedActivityScripts[r]||this.prepareActivityType(t,r),this.prepareActivityInstance(a,n))}prepareActivityType(t,n){this.builtInActivities[n]?this.loadedActivityScripts[n]={name:n,module:this.builtInActivities[n],runningObject:void 0,context:void 0,requirements:this.builtInActivities[n].activityRequirements()}:v1(t+"/"+n+".js").then(a=>{this.loadedActivityScripts[n]||(this.loadedActivityScripts[n]={name:n,module:a,runningObject:void 0,context:void 0,requirements:a.activityRequirements()})})}prepareActivityInstance(t,n){const a=this.getActivityOfPage(n);if(a&&!n.hasAttribute("data-activity-state")){n.classList.add("bloom-activityPlayback");const r=new a.module.default(n),l=this.getActivityContext(t,n);r.initializePageHtml(l),l.pageElement.setAttribute("data-activity-state","prepared")}}doInitialSoundAndAnimation(){this.currentActivity&&this.currentActivity.runningObject&&this.currentActivity.runningObject.doInitialSoundAndAnimation?.(this.currentActivity.context)}showingPage(t,n){if(this.previousPageElement===n)return;this.previousPageElement=n,this.currentActivity&&this.currentActivity.module&&(this.currentActivity.runningObject.stop(),this.currentActivity.runningObject=void 0,this.currentActivity.context.stop(),this.currentActivity.context=void 0),this.currentActivity=void 0;const a=this.getActivityOfPage(n);return a&&(this.currentActivity=a,a.runningObject=new a.module.default(n),a.context=this.getActivityContext(t,n),a.runningObject.showingPage(a.context)),!!a}getActivityOfPage(t){const n=this.getActivityIdOfPage(t);if(n){const a=this.loadedActivityScripts[n];return console.assert(a,`Trying to start activity "${n}" but it wasn't previously loaded.`),a}}getActivityContext(t,n){const a=this.getAnalyticsCategoryOfPage(n);return new W1(t,n,a,this.bookActivityGroupings[a])}hasLegacyQuizScriptTag(t){const n=t.getElementsByTagName("script");for(let a=0;a<n.length;a++){const r=n[a].getAttribute("src");if(r&&r.endsWith("simpleComprehensionQuiz.js"))return!0}return!1}collectActivityContextForBook(t){for(let n=0;n<t.length;n++){const a=t[n],r=this.getAnalyticsCategoryOfPage(a);if(r==="")continue;const l=this.bookActivityGroupings[r];l?l.push(n):this.bookActivityGroupings[r]=[n]}}}class iP{static convert(t,n){if(!t)return[];let a=t;typeof t=="string"&&(a=JSON.parse(t));const r=[];for(let l=0;l<a.length;l++){if(a[l].onlyForBloomReader1)continue;const d=a[l].questions,f=a[l].lang;for(let p=0;p<d.length;p++){const y=d[p],k=document.createElement("div");r.push(k),k.classList.add("bloom-page"),k.classList.add("simple-comprehension-quiz"),k.classList.add("bloom-interactive-page"),k.classList.add("numberedPage"),k.classList.add(n),k.setAttribute("data-analyticsCategories","comprehension");const E=this.appendElementWithClass("div","marginBox",k),N=this.appendElementWithClass("div","quiz",E),I=wn.getTranslation("Quiz.CheckYourUnderstanding",[f],"Check Your Understanding");this.appendTranslationGroup(N,I,"QuizHeader-style",f,"Quiz.CheckYourUnderstanding"),this.appendTranslationGroup(N,y.question,"QuizQuestion-style",f);const L=y.answers;for(let J=0;J<L.length;J++){const F=L[J],G=F.text,ot=this.appendElementWithClass("div","checkbox-and-textbox-choice",N),dt=this.appendElementWithClass("input","styled-check-box",ot);dt.setAttribute("name","Correct"),dt.setAttribute("type","checkbox");const _=this.appendElementWithClass("div","bloom-translationGroup",ot);this.appendElementWithClass("div","placeToPutVariableCircle",ot);const $=this.appendElementWithClass("div","bloom-editable",_);$.classList.add("bloom-content1"),$.classList.add("bloom-visibility-code-on"),$.classList.add("QuizAnswer-style"),$.setAttribute("lang",f);const v=this.appendElementWithClass("p","",$);v.textContent=G,F.correct&&ot.classList.add("correct-answer")}this.appendElementWithClass("script","",N).setAttribute("src","simpleComprehensionQuiz.js")}}return r}static appendTranslationGroup(t,n,a,r,l){const d=this.appendElementWithClass("div","bloom-translationGroup",t),f=this.appendElementWithClass("div","bloom-editable",d);f.classList.add("bloom-content1"),f.classList.add("bloom-visibility-code-on"),f.classList.add(a),f.setAttribute("lang",r),l&&f.setAttribute("data-i18n","Quiz.CheckYourUnderstanding");const p=this.appendElementWithClass("p","",f);p.textContent=n}static appendElementWithClass(t,n,a){const r=document.createElement(t);return n&&r.classList.add(n),a.appendChild(r),r}}class rP{constructor(t){this.needQuizCss=!1,this.locationOfDistFolder=t}getPromiseForAnyQuizCss(){return this.needQuizCss?zi.get(this.getFolderForSupportFiles()+"/Special.css"):null}generateQuizPagesFromLegacyJSON(t,n,a,r){const l=t+"/questions.json";zi.get(l).then(d=>{const f=iP.convert(d.data,a),p=n.getElementsByClassName("bloom-backMatter")[0];for(let y=0;y<f.length;y++)this.needQuizCss=!0,p.parentElement.insertBefore(f[y],p);r()}).catch(()=>r())}getFolderForSupportFiles(){const t=window.location.protocol+"//"+window.location.host+window.location.pathname,n=t.lastIndexOf("/"),a=window.STORYBOOK_ENV!==void 0?"/legacyQuizHandling":this.locationOfDistFolder;return t.substring(0,n)+a}}function zb(){var e=hl()||nb;return e}var oP=function(t){return t.scrollTop};function wv(e,t){var n=e.timeout,a=e.style,r=a===void 0?{}:a;return{duration:r.transitionDuration||typeof n=="number"?n:n[t.mode]||0,delay:r.transitionDelay}}var sP=function(t){var n={};return t.shadows.forEach(function(a,r){n["elevation".concat(r)]={boxShadow:a}}),Dt({root:{backgroundColor:t.palette.background.paper,color:t.palette.text.primary,transition:t.transitions.create("box-shadow")},rounded:{borderRadius:t.shape.borderRadius},outlined:{border:"1px solid ".concat(t.palette.divider)}},n)},lP=R.forwardRef(function(t,n){var a=t.classes,r=t.className,l=t.component,d=l===void 0?"div":l,f=t.square,p=f===void 0?!1:f,y=t.elevation,k=y===void 0?1:y,E=t.variant,N=E===void 0?"elevation":E,I=Ke(t,["classes","className","component","square","elevation","variant"]);return R.createElement(d,Dt({className:Ie(a.root,r,N==="outlined"?a.outlined:a["elevation".concat(k)],!p&&a.rounded),ref:n},I))});const Ib=gn(sP,{name:"MuiPaper"})(lP);var uP=function(t){var n=t.palette.type==="light"?t.palette.grey[100]:t.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:t.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0,"@media print":{position:"absolute"}},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static"},positionRelative:{position:"relative"},colorDefault:{backgroundColor:n,color:t.palette.getContrastText(n)},colorPrimary:{backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText},colorSecondary:{backgroundColor:t.palette.secondary.main,color:t.palette.secondary.contrastText},colorInherit:{color:"inherit"},colorTransparent:{backgroundColor:"transparent",color:"inherit"}}},cP=R.forwardRef(function(t,n){var a=t.classes,r=t.className,l=t.color,d=l===void 0?"primary":l,f=t.position,p=f===void 0?"fixed":f,y=Ke(t,["classes","className","color","position"]);return R.createElement(Ib,Dt({square:!0,component:"header",elevation:4,className:Ie(a.root,a["position".concat(sn(p))],a["color".concat(sn(d))],r,p==="fixed"&&"mui-fixed"),ref:n},y))});const dP=gn(uP,{name:"MuiAppBar"})(cP);var fP={entering:{opacity:1},entered:{opacity:1}},hP={enter:Fo.enteringScreen,exit:Fo.leavingScreen},Db=R.forwardRef(function(t,n){var a=t.children,r=t.disableStrictModeCompat,l=r===void 0?!1:r,d=t.in,f=t.onEnter,p=t.onEntered,y=t.onEntering,k=t.onExit,E=t.onExited,N=t.onExiting,I=t.style,L=t.TransitionComponent,K=L===void 0?Di:L,J=t.timeout,F=J===void 0?hP:J,G=Ke(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),ot=zb(),dt=ot.unstable_strictMode&&!l,_=R.useRef(null),$=Oa(a.ref,n),v=Oa(dt?_:void 0,$),mt=function(ht){return function(x,lt){if(ht){var bt=dt?[_.current,x]:[x,lt],St=Qu(bt,2),O=St[0],wt=St[1];wt===void 0?ht(O):ht(O,wt)}}},ft=mt(y),Lt=mt(function(s,ht){oP(s);var x=wv({style:I,timeout:F},{mode:"enter"});s.style.webkitTransition=ot.transitions.create("opacity",x),s.style.transition=ot.transitions.create("opacity",x),f&&f(s,ht)}),Nt=mt(p),At=mt(N),tt=mt(function(s){var ht=wv({style:I,timeout:F},{mode:"exit"});s.style.webkitTransition=ot.transitions.create("opacity",ht),s.style.transition=ot.transitions.create("opacity",ht),k&&k(s)}),H=mt(E);return R.createElement(K,Dt({appear:!0,in:d,nodeRef:dt?_:void 0,onEnter:Lt,onEntered:Nt,onEntering:ft,onExit:tt,onExited:H,onExiting:At,timeout:F},G),function(s,ht){return R.cloneElement(a,Dt({style:Dt({opacity:0,visibility:s==="exited"&&!d?"hidden":void 0},fP[s],I,a.props.style),ref:v},ht))})}),pP={root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},gP=R.forwardRef(function(t,n){var a=t.children,r=t.classes,l=t.className,d=t.invisible,f=d===void 0?!1:d,p=t.open,y=t.transitionDuration,k=t.TransitionComponent,E=k===void 0?Db:k,N=Ke(t,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return R.createElement(E,Dt({in:p,timeout:y},N),R.createElement("div",{className:Ie(r.root,l,f&&r.invisible),"aria-hidden":!0,ref:n},a))});const mP=gn(pP,{name:"MuiBackdrop"})(gP);var vP=function(t){return{root:{margin:0},body2:t.typography.body2,body1:t.typography.body1,caption:t.typography.caption,button:t.typography.button,h1:t.typography.h1,h2:t.typography.h2,h3:t.typography.h3,h4:t.typography.h4,h5:t.typography.h5,h6:t.typography.h6,subtitle1:t.typography.subtitle1,subtitle2:t.typography.subtitle2,overline:t.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},colorTextPrimary:{color:t.palette.text.primary},colorTextSecondary:{color:t.palette.text.secondary},colorError:{color:t.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}},kv={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},yP=R.forwardRef(function(t,n){var a=t.align,r=a===void 0?"inherit":a,l=t.classes,d=t.className,f=t.color,p=f===void 0?"initial":f,y=t.component,k=t.display,E=k===void 0?"initial":k,N=t.gutterBottom,I=N===void 0?!1:N,L=t.noWrap,K=L===void 0?!1:L,J=t.paragraph,F=J===void 0?!1:J,G=t.variant,ot=G===void 0?"body1":G,dt=t.variantMapping,_=dt===void 0?kv:dt,$=Ke(t,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),v=y||(F?"p":_[ot]||kv[ot])||"span";return R.createElement(v,Dt({className:Ie(l.root,d,ot!=="inherit"&&l[ot],p!=="initial"&&l["color".concat(sn(p))],K&&l.noWrap,I&&l.gutterBottom,F&&l.paragraph,r!=="inherit"&&l["align".concat(sn(r))],E!=="initial"&&l["display".concat(sn(E))]),ref:n},$))});const Rb=gn(vP,{name:"MuiTypography"})(yP);var bP=function(t){return{root:Dt({},t.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:t.shape.borderRadius,color:t.palette.text.primary,transition:t.transitions.create(["background-color","box-shadow","border"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Un(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:t.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:t.palette.primary.main,"&:hover":{backgroundColor:Un(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:t.palette.secondary.main,"&:hover":{backgroundColor:Un(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat(t.palette.type==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(t.palette.action.disabledBackground)}},outlinedPrimary:{color:t.palette.primary.main,border:"1px solid ".concat(Un(t.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(t.palette.primary.main),backgroundColor:Un(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:t.palette.secondary.main,border:"1px solid ".concat(Un(t.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(t.palette.secondary.main),backgroundColor:Un(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(t.palette.action.disabled)}},contained:{color:t.palette.getContrastText(t.palette.grey[300]),backgroundColor:t.palette.grey[300],boxShadow:t.shadows[2],"&:hover":{backgroundColor:t.palette.grey.A100,boxShadow:t.shadows[4],"@media (hover: none)":{boxShadow:t.shadows[2],backgroundColor:t.palette.grey[300]},"&$disabled":{backgroundColor:t.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:t.shadows[6]},"&:active":{boxShadow:t.shadows[8]},"&$disabled":{color:t.palette.action.disabled,boxShadow:t.shadows[0],backgroundColor:t.palette.action.disabledBackground}},containedPrimary:{color:t.palette.primary.contrastText,backgroundColor:t.palette.primary.main,"&:hover":{backgroundColor:t.palette.primary.dark,"@media (hover: none)":{backgroundColor:t.palette.primary.main}}},containedSecondary:{color:t.palette.secondary.contrastText,backgroundColor:t.palette.secondary.main,"&:hover":{backgroundColor:t.palette.secondary.dark,"@media (hover: none)":{backgroundColor:t.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}},wP=R.forwardRef(function(t,n){var a=t.children,r=t.classes,l=t.className,d=t.color,f=d===void 0?"default":d,p=t.component,y=p===void 0?"button":p,k=t.disabled,E=k===void 0?!1:k,N=t.disableElevation,I=N===void 0?!1:N,L=t.disableFocusRipple,K=L===void 0?!1:L,J=t.endIcon,F=t.focusVisibleClassName,G=t.fullWidth,ot=G===void 0?!1:G,dt=t.size,_=dt===void 0?"medium":dt,$=t.startIcon,v=t.type,mt=v===void 0?"button":v,ft=t.variant,Lt=ft===void 0?"text":ft,Nt=Ke(t,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),At=$&&R.createElement("span",{className:Ie(r.startIcon,r["iconSize".concat(sn(_))])},$),tt=J&&R.createElement("span",{className:Ie(r.endIcon,r["iconSize".concat(sn(_))])},J);return R.createElement(ab,Dt({className:Ie(r.root,r[Lt],l,f==="inherit"?r.colorInherit:f!=="default"&&r["".concat(Lt).concat(sn(f))],_!=="medium"&&[r["".concat(Lt,"Size").concat(sn(_))],r["size".concat(sn(_))]],I&&r.disableElevation,E&&r.disabled,ot&&r.fullWidth),component:y,disabled:E,focusRipple:!K,focusVisibleClassName:Ie(r.focusVisible,F),ref:n,type:mt},Nt),R.createElement("span",{className:r.label},At,a,tt))});const kP=gn(bP,{name:"MuiButton"})(wP);var jb=R.createContext();function Ob(){return R.useContext(jb)}var xP={root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},SP=R.forwardRef(function(t,n){var a=t.autoFocus,r=t.checked,l=t.checkedIcon,d=t.classes,f=t.className,p=t.defaultChecked,y=t.disabled,k=t.icon,E=t.id,N=t.inputProps,I=t.inputRef,L=t.name,K=t.onBlur,J=t.onChange,F=t.onFocus,G=t.readOnly,ot=t.required,dt=t.tabIndex,_=t.type,$=t.value,v=Ke(t,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),mt=ec({controlled:r,default:!!p,name:"SwitchBase",state:"checked"}),ft=Qu(mt,2),Lt=ft[0],Nt=ft[1],At=Ob(),tt=function(bt){F&&F(bt),At&&At.onFocus&&At.onFocus(bt)},H=function(bt){K&&K(bt),At&&At.onBlur&&At.onBlur(bt)},s=function(bt){var St=bt.target.checked;Nt(St),J&&J(bt,St)},ht=y;At&&typeof ht>"u"&&(ht=At.disabled);var x=_==="checkbox"||_==="radio";return R.createElement(pi,Dt({component:"span",className:Ie(d.root,f,Lt&&d.checked,ht&&d.disabled),disabled:ht,tabIndex:null,role:void 0,onFocus:tt,onBlur:H,ref:n},v),R.createElement("input",Dt({autoFocus:a,checked:r,defaultChecked:p,className:d.input,disabled:ht,id:x&&E,name:L,onChange:s,readOnly:G,ref:I,required:ot,tabIndex:dt,type:_,value:$},N)),Lt?l:k)});const CP=gn(xP,{name:"PrivateSwitchBase"})(SP);var tr=44,TP=function(t){return{root:{display:"inline-block"},static:{transition:t.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:t.transitions.create("transform")},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:t.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:t.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}},EP=R.forwardRef(function(t,n){var a=t.classes,r=t.className,l=t.color,d=l===void 0?"primary":l,f=t.disableShrink,p=f===void 0?!1:f,y=t.size,k=y===void 0?40:y,E=t.style,N=t.thickness,I=N===void 0?3.6:N,L=t.value,K=L===void 0?0:L,J=t.variant,F=J===void 0?"indeterminate":J,G=Ke(t,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),ot={},dt={},_={};if(F==="determinate"||F==="static"){var $=2*Math.PI*((tr-I)/2);ot.strokeDasharray=$.toFixed(3),_["aria-valuenow"]=Math.round(K),ot.strokeDashoffset="".concat(((100-K)/100*$).toFixed(3),"px"),dt.transform="rotate(-90deg)"}return R.createElement("div",Dt({className:Ie(a.root,r,d!=="inherit"&&a["color".concat(sn(d))],{determinate:a.determinate,indeterminate:a.indeterminate,static:a.static}[F]),style:Dt({width:k,height:k},dt,E),ref:n,role:"progressbar"},_,G),R.createElement("svg",{className:a.svg,viewBox:"".concat(tr/2," ").concat(tr/2," ").concat(tr," ").concat(tr)},R.createElement("circle",{className:Ie(a.circle,p&&a.circleDisableShrink,{determinate:a.circleDeterminate,indeterminate:a.circleIndeterminate,static:a.circleStatic}[F]),style:ot,cx:tr,cy:tr,r:(tr-I)/2,fill:"none",strokeWidth:I})))});const PP=gn(TP,{name:"MuiCircularProgress",flip:!1})(EP);function MP(e){return e=typeof e=="function"?e():e,lr.findDOMNode(e)}var Df=typeof window<"u"?R.useLayoutEffect:R.useEffect,AP=R.forwardRef(function(t,n){var a=t.children,r=t.container,l=t.disablePortal,d=l===void 0?!1:l,f=t.onRendered,p=R.useState(null),y=p[0],k=p[1],E=Oa(R.isValidElement(a)?a.ref:null,n);return Df(function(){d||k(MP(r)||document.body)},[r,d]),Df(function(){if(y&&!d)return ul(n,y),function(){ul(n,null)}},[n,y,d]),Df(function(){f&&(y||d)&&f()},[f,y,d]),d?R.isValidElement(a)?R.cloneElement(a,{ref:E}):a:y&&lr.createPortal(a,y)});function NP(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function LP(e){var t=mi(e);return t.body===e?rb(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function el(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function xv(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function Sv(e,t,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],r=arguments.length>4?arguments[4]:void 0,l=[t,n].concat(Zu(a)),d=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,function(f){f.nodeType===1&&l.indexOf(f)===-1&&d.indexOf(f.tagName)===-1&&el(f,r)})}function Rf(e,t){var n=-1;return e.some(function(a,r){return t(a)?(n=r,!0):!1}),n}function BP(e,t){var n=[],a=[],r=e.container,l;if(!t.disableScrollLock){if(LP(r)){var d=NP();n.push({value:r.style.paddingRight,key:"padding-right",el:r}),r.style["padding-right"]="".concat(xv(r)+d,"px"),l=mi(r).querySelectorAll(".mui-fixed"),[].forEach.call(l,function(k){a.push(k.style.paddingRight),k.style.paddingRight="".concat(xv(k)+d,"px")})}var f=r.parentElement,p=f.nodeName==="HTML"&&window.getComputedStyle(f)["overflow-y"]==="scroll"?f:r;n.push({value:p.style.overflow,key:"overflow",el:p}),p.style.overflow="hidden"}var y=function(){l&&[].forEach.call(l,function(E,N){a[N]?E.style.paddingRight=a[N]:E.style.removeProperty("padding-right")}),n.forEach(function(E){var N=E.value,I=E.el,L=E.key;N?I.style.setProperty(L,N):I.style.removeProperty(L)})};return y}function zP(e){var t=[];return[].forEach.call(e.children,function(n){n.getAttribute&&n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}var IP=(function(){function e(){QT(this,e),this.modals=[],this.containers=[]}return jh(e,[{key:"add",value:function(n,a){var r=this.modals.indexOf(n);if(r!==-1)return r;r=this.modals.length,this.modals.push(n),n.modalRef&&el(n.modalRef,!1);var l=zP(a);Sv(a,n.mountNode,n.modalRef,l,!0);var d=Rf(this.containers,function(f){return f.container===a});return d!==-1?(this.containers[d].modals.push(n),r):(this.containers.push({modals:[n],container:a,restore:null,hiddenSiblingNodes:l}),r)}},{key:"mount",value:function(n,a){var r=Rf(this.containers,function(d){return d.modals.indexOf(n)!==-1}),l=this.containers[r];l.restore||(l.restore=BP(l,a))}},{key:"remove",value:function(n){var a=this.modals.indexOf(n);if(a===-1)return a;var r=Rf(this.containers,function(f){return f.modals.indexOf(n)!==-1}),l=this.containers[r];if(l.modals.splice(l.modals.indexOf(n),1),this.modals.splice(a,1),l.modals.length===0)l.restore&&l.restore(),n.modalRef&&el(n.modalRef,!0),Sv(l.container,n.mountNode,n.modalRef,l.hiddenSiblingNodes,!1),this.containers.splice(r,1);else{var d=l.modals[l.modals.length-1];d.modalRef&&el(d.modalRef,!1)}return a}},{key:"isTopModal",value:function(n){return this.modals.length>0&&this.modals[this.modals.length-1]===n}}]),e})();function DP(e){var t=e.children,n=e.disableAutoFocus,a=n===void 0?!1:n,r=e.disableEnforceFocus,l=r===void 0?!1:r,d=e.disableRestoreFocus,f=d===void 0?!1:d,p=e.getDoc,y=e.isEnabled,k=e.open,E=R.useRef(),N=R.useRef(null),I=R.useRef(null),L=R.useRef(),K=R.useRef(null),J=R.useCallback(function(ot){K.current=lr.findDOMNode(ot)},[]),F=Oa(t.ref,J),G=R.useRef();return R.useEffect(function(){G.current=k},[k]),!G.current&&k&&typeof window<"u"&&(L.current=p().activeElement),R.useEffect(function(){if(k){var ot=mi(K.current);!a&&K.current&&!K.current.contains(ot.activeElement)&&(K.current.hasAttribute("tabIndex")||K.current.setAttribute("tabIndex",-1),K.current.focus());var dt=function(){var mt=K.current;if(mt!==null){if(!ot.hasFocus()||l||!y()||E.current){E.current=!1;return}K.current&&!K.current.contains(ot.activeElement)&&K.current.focus()}},_=function(mt){l||!y()||mt.keyCode!==9||ot.activeElement===K.current&&(E.current=!0,mt.shiftKey?I.current.focus():N.current.focus())};ot.addEventListener("focus",dt,!0),ot.addEventListener("keydown",_,!0);var $=setInterval(function(){dt()},50);return function(){clearInterval($),ot.removeEventListener("focus",dt,!0),ot.removeEventListener("keydown",_,!0),f||(L.current&&L.current.focus&&L.current.focus(),L.current=null)}}},[a,l,f,y,k]),R.createElement(R.Fragment,null,R.createElement("div",{tabIndex:0,ref:N,"data-test":"sentinelStart"}),R.cloneElement(t,{ref:F}),R.createElement("div",{tabIndex:0,ref:I,"data-test":"sentinelEnd"}))}var Cv={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},RP=R.forwardRef(function(t,n){var a=t.invisible,r=a===void 0?!1:a,l=t.open,d=Ke(t,["invisible","open"]);return l?R.createElement("div",Dt({"aria-hidden":!0,ref:n},d,{style:Dt({},Cv.root,r?Cv.invisible:{},d.style)})):null});function jP(e){return e=typeof e=="function"?e():e,lr.findDOMNode(e)}function OP(e){return e.children?e.children.props.hasOwnProperty("in"):!1}var KP=new IP,qP=function(t){return{root:{position:"fixed",zIndex:t.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}},$P=R.forwardRef(function(t,n){var a=hl(),r=Iy({name:"MuiModal",props:Dt({},t),theme:a}),l=r.BackdropComponent,d=l===void 0?RP:l,f=r.BackdropProps,p=r.children,y=r.closeAfterTransition,k=y===void 0?!1:y,E=r.container,N=r.disableAutoFocus,I=N===void 0?!1:N,L=r.disableBackdropClick,K=L===void 0?!1:L,J=r.disableEnforceFocus,F=J===void 0?!1:J,G=r.disableEscapeKeyDown,ot=G===void 0?!1:G,dt=r.disablePortal,_=dt===void 0?!1:dt,$=r.disableRestoreFocus,v=$===void 0?!1:$,mt=r.disableScrollLock,ft=mt===void 0?!1:mt,Lt=r.hideBackdrop,Nt=Lt===void 0?!1:Lt,At=r.keepMounted,tt=At===void 0?!1:At,H=r.manager,s=H===void 0?KP:H,ht=r.onBackdropClick,x=r.onClose,lt=r.onEscapeKeyDown,bt=r.onRendered,St=r.open,O=Ke(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),wt=R.useState(!0),xt=wt[0],Ot=wt[1],Mt=R.useRef({}),Ht=R.useRef(null),Qt=R.useRef(null),de=Oa(Qt,n),me=OP(r),Pe=function(){return mi(Ht.current)},ln=function(){return Mt.current.modalRef=Qt.current,Mt.current.mountNode=Ht.current,Mt.current},Oe=function(){s.mount(ln(),{disableScrollLock:ft}),Qt.current.scrollTop=0},rn=jn(function(){var it=jP(E)||Pe().body;s.add(ln(),it),Qt.current&&Oe()}),Ve=R.useCallback(function(){return s.isTopModal(ln())},[s]),kn=jn(function(it){Ht.current=it,it&&(bt&&bt(),St&&Ve()?Oe():el(Qt.current,!0))}),Ye=R.useCallback(function(){s.remove(ln())},[s]);if(R.useEffect(function(){return function(){Ye()}},[Ye]),R.useEffect(function(){St?rn():(!me||!k)&&Ye()},[St,Ye,me,k,rn]),!tt&&!St&&(!me||xt))return null;var yn=function(){Ot(!1)},Je=function(){Ot(!0),k&&Ye()},un=function(vt){vt.target===vt.currentTarget&&(ht&&ht(vt),!K&&x&&x(vt,"backdropClick"))},M=function(vt){vt.key!=="Escape"||!Ve()||(lt&<(vt),ot||(vt.stopPropagation(),x&&x(vt,"escapeKeyDown")))},D=qP(a||{zIndex:eb}),Y={};return p.props.tabIndex===void 0&&(Y.tabIndex=p.props.tabIndex||"-1"),me&&(Y.onEnter=$u(yn,p.props.onEnter),Y.onExited=$u(Je,p.props.onExited)),R.createElement(AP,{ref:kn,container:E,disablePortal:_},R.createElement("div",Dt({ref:de,onKeyDown:M,role:"presentation"},O,{style:Dt({},D.root,!St&&xt?D.hidden:{},O.style)}),Nt?null:R.createElement(d,Dt({open:St,onClick:un},f)),R.createElement(DP,{disableEnforceFocus:F,disableAutoFocus:I,disableRestoreFocus:v,getDoc:Pe,isEnabled:Ve,open:St},R.cloneElement(p,Y))))}),HP=function(t){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(t.breakpoints.values.xs,444),"&$paperScrollBody":Bi({},t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:t.breakpoints.values.sm,"&$paperScrollBody":Bi({},t.breakpoints.down(t.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:t.breakpoints.values.md,"&$paperScrollBody":Bi({},t.breakpoints.down(t.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:t.breakpoints.values.lg,"&$paperScrollBody":Bi({},t.breakpoints.down(t.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:t.breakpoints.values.xl,"&$paperScrollBody":Bi({},t.breakpoints.down(t.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}},FP={enter:Fo.enteringScreen,exit:Fo.leavingScreen},WP=R.forwardRef(function(t,n){var a=t.BackdropProps,r=t.children,l=t.classes,d=t.className,f=t.disableBackdropClick,p=f===void 0?!1:f,y=t.disableEscapeKeyDown,k=y===void 0?!1:y,E=t.fullScreen,N=E===void 0?!1:E,I=t.fullWidth,L=I===void 0?!1:I,K=t.maxWidth,J=K===void 0?"sm":K,F=t.onBackdropClick,G=t.onClose,ot=t.onEnter,dt=t.onEntered,_=t.onEntering,$=t.onEscapeKeyDown,v=t.onExit,mt=t.onExited,ft=t.onExiting,Lt=t.open,Nt=t.PaperComponent,At=Nt===void 0?Ib:Nt,tt=t.PaperProps,H=tt===void 0?{}:tt,s=t.scroll,ht=s===void 0?"paper":s,x=t.TransitionComponent,lt=x===void 0?Db:x,bt=t.transitionDuration,St=bt===void 0?FP:bt,O=t.TransitionProps,wt=t["aria-describedby"],xt=t["aria-labelledby"],Ot=Ke(t,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),Mt=R.useRef(),Ht=function(me){Mt.current=me.target},Qt=function(me){me.target===me.currentTarget&&me.target===Mt.current&&(Mt.current=null,F&&F(me),!p&&G&&G(me,"backdropClick"))};return R.createElement($P,Dt({className:Ie(l.root,d),BackdropComponent:mP,BackdropProps:Dt({transitionDuration:St},a),closeAfterTransition:!0},p?{disableBackdropClick:p}:{},{disableEscapeKeyDown:k,onEscapeKeyDown:$,onClose:G,open:Lt,ref:n},Ot),R.createElement(lt,Dt({appear:!0,in:Lt,timeout:St,onEnter:ot,onEntering:_,onEntered:dt,onExit:v,onExiting:ft,onExited:mt,role:"none presentation"},O),R.createElement("div",{className:Ie(l.container,l["scroll".concat(sn(ht))]),onMouseUp:Qt,onMouseDown:Ht},R.createElement(At,Dt({elevation:24,role:"dialog","aria-describedby":wt,"aria-labelledby":xt},H,{className:Ie(l.paper,l["paperScroll".concat(sn(ht))],l["paperWidth".concat(sn(String(J)))],H.className,N&&l.paperFullScreen,L&&l.paperFullWidth)}),r))))});const _P=gn(HP,{name:"MuiDialog"})(WP);var VP={root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},GP=R.forwardRef(function(t,n){var a=t.disableSpacing,r=a===void 0?!1:a,l=t.classes,d=t.className,f=Ke(t,["disableSpacing","classes","className"]);return R.createElement("div",Dt({className:Ie(l.root,d,!r&&l.spacing),ref:n},f))});const UP=gn(VP,{name:"MuiDialogActions"})(GP);var YP={root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},XP=R.forwardRef(function(t,n){var a=t.children,r=t.classes,l=t.className,d=t.disableTypography,f=d===void 0?!1:d,p=Ke(t,["children","classes","className","disableTypography"]);return R.createElement("div",Dt({className:Ie(r.root,l),ref:n},p),f?a:R.createElement(Rb,{component:"h2",variant:"h6"},a))});const ZP=gn(YP,{name:"MuiDialogTitle"})(XP);function Tv(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function JP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return e&&(Tv(e.value)&&e.value!==""||t&&Tv(e.defaultValue)&&e.defaultValue!=="")}function QP(e){return e.startAdornment}var tM={root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},eM=R.forwardRef(function(t,n){var a=t.children,r=t.classes,l=t.className,d=t.color,f=d===void 0?"primary":d,p=t.component,y=p===void 0?"div":p,k=t.disabled,E=k===void 0?!1:k,N=t.error,I=N===void 0?!1:N,L=t.fullWidth,K=L===void 0?!1:L,J=t.focused,F=t.hiddenLabel,G=F===void 0?!1:F,ot=t.margin,dt=ot===void 0?"none":ot,_=t.required,$=_===void 0?!1:_,v=t.size,mt=t.variant,ft=mt===void 0?"standard":mt,Lt=Ke(t,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),Nt=R.useState(function(){var Mt=!1;return a&&R.Children.forEach(a,function(Ht){if(xu(Ht,["Input","Select"])){var Qt=xu(Ht,["Select"])?Ht.props.input:Ht;Qt&&QP(Qt.props)&&(Mt=!0)}}),Mt}),At=Nt[0],tt=Nt[1],H=R.useState(function(){var Mt=!1;return a&&R.Children.forEach(a,function(Ht){xu(Ht,["Input","Select"])&&JP(Ht.props,!0)&&(Mt=!0)}),Mt}),s=H[0],ht=H[1],x=R.useState(!1),lt=x[0],bt=x[1],St=J!==void 0?J:lt;E&&St&&bt(!1);var O,wt=R.useCallback(function(){ht(!0)},[]),xt=R.useCallback(function(){ht(!1)},[]),Ot={adornedStart:At,setAdornedStart:tt,color:f,disabled:E,error:I,filled:s,focused:St,fullWidth:K,hiddenLabel:G,margin:(v==="small"?"dense":void 0)||dt,onBlur:function(){bt(!1)},onEmpty:xt,onFilled:wt,onFocus:function(){bt(!0)},registerEffect:O,required:$,variant:ft};return R.createElement(jb.Provider,{value:Ot},R.createElement(y,Dt({className:Ie(r.root,l,dt!=="none"&&r["margin".concat(sn(dt))],K&&r.fullWidth),ref:n},Lt),a))});const nM=gn(tM,{name:"MuiFormControl"})(eM);var aM=function(t){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:t.palette.text.disabled}}}},iM=R.forwardRef(function(t,n){t.checked;var a=t.classes,r=t.className,l=t.control,d=t.disabled;t.inputRef;var f=t.label,p=t.labelPlacement,y=p===void 0?"end":p;t.name,t.onChange,t.value;var k=Ke(t,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"]),E=Ob(),N=d;typeof N>"u"&&typeof l.props.disabled<"u"&&(N=l.props.disabled),typeof N>"u"&&E&&(N=E.disabled);var I={disabled:N};return["checked","name","onChange","value","inputRef"].forEach(function(L){typeof l.props[L]>"u"&&typeof t[L]<"u"&&(I[L]=t[L])}),R.createElement("label",Dt({className:Ie(a.root,r,y!=="end"&&a["labelPlacement".concat(sn(y))],N&&a.disabled),ref:n},k),R.cloneElement(l,I),R.createElement(Rb,{component:"span",className:Ie(a.label,N&&a.disabled)},f))});const rM=gn(aM,{name:"MuiFormControlLabel"})(iM);var oM={root:{display:"flex",flexDirection:"column",flexWrap:"wrap"},row:{flexDirection:"row"}},sM=R.forwardRef(function(t,n){var a=t.classes,r=t.className,l=t.row,d=l===void 0?!1:l,f=Ke(t,["classes","className","row"]);return R.createElement("div",Dt({className:Ie(a.root,r,d&&a.row),ref:n},f))});const lM=gn(oM,{name:"MuiFormGroup"})(sM),uM=Gh(R.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),cM=Gh(R.createElement("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}));var dM=function(t){return{root:{position:"relative",display:"flex","&$checked $layer":{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}},layer:{left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest})},checked:{}}};function fM(e){var t=e.checked,n=e.classes,a=e.fontSize;return R.createElement("div",{className:Ie(n.root,t&&n.checked)},R.createElement(uM,{fontSize:a}),R.createElement(cM,{fontSize:a,className:n.layer}))}const Kb=gn(dM,{name:"PrivateRadioButtonIcon"})(fM);var qb=R.createContext();function hM(){return R.useContext(qb)}var pM=function(t){return{root:{color:t.palette.text.secondary},checked:{},disabled:{},colorPrimary:{"&$checked":{color:t.palette.primary.main,"&:hover":{backgroundColor:Un(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:t.palette.action.disabled}},colorSecondary:{"&$checked":{color:t.palette.secondary.main,"&:hover":{backgroundColor:Un(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:t.palette.action.disabled}}}},gM=R.createElement(Kb,{checked:!0}),mM=R.createElement(Kb,null),vM=R.forwardRef(function(t,n){var a=t.checked,r=t.classes,l=t.color,d=l===void 0?"secondary":l,f=t.name,p=t.onChange,y=t.size,k=y===void 0?"medium":y,E=Ke(t,["checked","classes","color","name","onChange","size"]),N=hM(),I=a,L=$u(p,N&&N.onChange),K=f;return N&&(typeof I>"u"&&(I=N.value===t.value),typeof K>"u"&&(K=N.name)),R.createElement(CP,Dt({color:d,type:"radio",icon:R.cloneElement(mM,{fontSize:k==="small"?"small":"medium"}),checkedIcon:R.cloneElement(gM,{fontSize:k==="small"?"small":"medium"}),classes:{root:Ie(r.root,r["color".concat(sn(d))]),checked:r.checked,disabled:r.disabled},name:K,checked:I,onChange:L,ref:n},E))});const yM=gn(pM,{name:"MuiRadio"})(vM);var bM=R.forwardRef(function(t,n){var a=t.actions,r=t.children,l=t.name,d=t.value,f=t.onChange,p=Ke(t,["actions","children","name","value","onChange"]),y=R.useRef(null),k=ec({controlled:d,default:t.defaultValue,name:"RadioGroup"}),E=Qu(k,2),N=E[0],I=E[1];R.useImperativeHandle(a,function(){return{focus:function(){var G=y.current.querySelector("input:not(:disabled):checked");G||(G=y.current.querySelector("input:not(:disabled)")),G&&G.focus()}}},[]);var L=Oa(n,y),K=function(G){I(G.target.value),f&&f(G,G.target.value)},J=ob(l);return R.createElement(qb.Provider,{value:{name:J,onChange:K,value:N}},R.createElement(lM,Dt({role:"radiogroup",ref:L},p),r))}),wM=function(t){return{thumb:{"&$open":{"& $offset":{transform:"scale(1) translateY(-10px)"}}},open:{},offset:Dt({zIndex:1},t.typography.body2,{fontSize:t.typography.pxToRem(12),lineHeight:1.2,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),top:-34,transformOrigin:"bottom center",transform:"scale(0)",position:"absolute"}),circle:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:"currentColor",transform:"rotate(-45deg)"},label:{color:t.palette.primary.contrastText,transform:"rotate(45deg)"}}};function kM(e){var t=e.children,n=e.classes,a=e.className,r=e.open,l=e.value,d=e.valueLabelDisplay;return d==="off"?t:R.cloneElement(t,{className:Ie(t.props.className,(r||d==="on")&&n.open,n.thumb)},R.createElement("span",{className:Ie(n.offset,a)},R.createElement("span",{className:n.circle},R.createElement("span",{className:n.label},l))))}const xM=gn(wM,{name:"PrivateValueLabel"})(kM);function jf(e,t){return e-t}function Of(e,t,n){return Math.min(Math.max(t,e),n)}function Ev(e,t){var n=e.reduce(function(r,l,d){var f=Math.abs(t-l);return r===null||f<r.distance||f===r.distance?{distance:f,index:d}:r},null),a=n.index;return a}function gu(e,t){if(t.current!==void 0&&e.changedTouches){for(var n=0;n<e.changedTouches.length;n+=1){var a=e.changedTouches[n];if(a.identifier===t.current)return{x:a.clientX,y:a.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function mu(e,t,n){return(e-t)*100/(n-t)}function SM(e,t,n){return(n-t)*e+t}function CM(e){if(Math.abs(e)<1){var t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}var a=e.toString().split(".")[1];return a?a.length:0}function Pv(e,t,n){var a=Math.round((e-n)/t)*t+n;return Number(a.toFixed(CM(t)))}function Mv(e){var t=e.values,n=e.source,a=e.newValue,r=e.index;if(t[r]===a)return n;var l=t.slice();return l[r]=a,l}function vu(e){var t=e.sliderRef,n=e.activeIndex,a=e.setActive;(!t.current.contains(document.activeElement)||Number(document.activeElement.getAttribute("data-index"))!==n)&&t.current.querySelector('[role="slider"][data-index="'.concat(n,'"]')).focus(),a&&a(n)}var yu={horizontal:{offset:function(t){return{left:"".concat(t,"%")}},leap:function(t){return{width:"".concat(t,"%")}}},"horizontal-reverse":{offset:function(t){return{right:"".concat(t,"%")}},leap:function(t){return{width:"".concat(t,"%")}}},vertical:{offset:function(t){return{bottom:"".concat(t,"%")}},leap:function(t){return{height:"".concat(t,"%")}}}},Av=function(t){return t},TM=function(t){return{root:{height:2,width:"100%",boxSizing:"content-box",padding:"13px 0",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:t.palette.primary.main,WebkitTapHighlightColor:"transparent","&$disabled":{pointerEvents:"none",cursor:"default",color:t.palette.grey[400]},"&$vertical":{width:2,height:"100%",padding:"0 13px"},"@media (pointer: coarse)":{padding:"20px 0","&$vertical":{padding:"0 20px"}},"@media print":{colorAdjust:"exact"}},colorPrimary:{},colorSecondary:{color:t.palette.secondary.main},marked:{marginBottom:20,"&$vertical":{marginBottom:"auto",marginRight:20}},vertical:{},disabled:{},rail:{display:"block",position:"absolute",width:"100%",height:2,borderRadius:1,backgroundColor:"currentColor",opacity:.38,"$vertical &":{height:"100%",width:2}},track:{display:"block",position:"absolute",height:2,borderRadius:1,backgroundColor:"currentColor","$vertical &":{width:2}},trackFalse:{"& $track":{display:"none"}},trackInverted:{"& $track":{backgroundColor:t.palette.type==="light"?Qy(t.palette.primary.main,.62):Jy(t.palette.primary.main,.5)},"& $rail":{opacity:1}},thumb:{position:"absolute",width:12,height:12,marginLeft:-6,marginTop:-5,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow"],{duration:t.transitions.duration.shortest}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",left:-15,top:-15,right:-15,bottom:-15},"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(Un(t.palette.primary.main,.16)),"@media (hover: none)":{boxShadow:"none"}},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(Un(t.palette.primary.main,.16))},"&$disabled":{width:8,height:8,marginLeft:-4,marginTop:-3,"&:hover":{boxShadow:"none"}},"$vertical &":{marginLeft:-5,marginBottom:-6},"$vertical &$disabled":{marginLeft:-3,marginBottom:-4}},thumbColorPrimary:{},thumbColorSecondary:{"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(Un(t.palette.secondary.main,.16))},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(Un(t.palette.secondary.main,.16))}},active:{},focusVisible:{},valueLabel:{left:"calc(-50% - 4px)"},mark:{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},markActive:{backgroundColor:t.palette.background.paper,opacity:.8},markLabel:Dt({},t.typography.body2,{color:t.palette.text.secondary,position:"absolute",top:26,transform:"translateX(-50%)",whiteSpace:"nowrap","$vertical &":{top:"auto",left:26,transform:"translateY(50%)"},"@media (pointer: coarse)":{top:40,"$vertical &":{left:31}}}),markLabelActive:{color:t.palette.text.primary}}},EM=R.forwardRef(function(t,n){var a=t["aria-label"],r=t["aria-labelledby"],l=t["aria-valuetext"],d=t.classes,f=t.className,p=t.color,y=p===void 0?"primary":p,k=t.component,E=k===void 0?"span":k,N=t.defaultValue,I=t.disabled,L=I===void 0?!1:I,K=t.getAriaLabel,J=t.getAriaValueText,F=t.marks,G=F===void 0?!1:F,ot=t.max,dt=ot===void 0?100:ot,_=t.min,$=_===void 0?0:_,v=t.name,mt=t.onChange,ft=t.onChangeCommitted,Lt=t.onMouseDown,Nt=t.orientation,At=Nt===void 0?"horizontal":Nt,tt=t.scale,H=tt===void 0?Av:tt,s=t.step,ht=s===void 0?1:s,x=t.ThumbComponent,lt=x===void 0?"span":x,bt=t.track,St=bt===void 0?"normal":bt,O=t.value,wt=t.ValueLabelComponent,xt=wt===void 0?xM:wt,Ot=t.valueLabelDisplay,Mt=Ot===void 0?"off":Ot,Ht=t.valueLabelFormat,Qt=Ht===void 0?Av:Ht,de=Ke(t,["aria-label","aria-labelledby","aria-valuetext","classes","className","color","component","defaultValue","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","scale","step","ThumbComponent","track","value","ValueLabelComponent","valueLabelDisplay","valueLabelFormat"]),me=zb(),Pe=R.useRef(),ln=R.useState(-1),Oe=ln[0],rn=ln[1],Ve=R.useState(-1),kn=Ve[0],Ye=Ve[1],yn=ec({controlled:O,default:N,name:"Slider"}),Je=Qu(yn,2),un=Je[0],M=Je[1],D=Array.isArray(un),Y=D?un.slice().sort(jf):[un];Y=Y.map(function(zt){return Of(zt,$,dt)});var it=G===!0&&ht!==null?Zu(Array(Math.floor((dt-$)/ht)+1)).map(function(zt,Ft){return{value:$+ht*Ft}}):G||[],vt=Wh(),st=vt.isFocusVisible,Xt=vt.onBlurVisible,Me=vt.ref,Re=R.useState(-1),ee=Re[0],Xe=Re[1],Qe=R.useRef(),Kn=Oa(Me,Qe),Ze=Oa(n,Kn),xn=jn(function(zt){var Ft=Number(zt.currentTarget.getAttribute("data-index"));st(zt)&&Xe(Ft),Ye(Ft)}),Bn=jn(function(){ee!==-1&&(Xe(-1),Xt()),Ye(-1)}),qn=jn(function(zt){var Ft=Number(zt.currentTarget.getAttribute("data-index"));Ye(Ft)}),Vt=jn(function(){Ye(-1)}),Nn=me.direction==="rtl",X=jn(function(zt){var Ft=Number(zt.currentTarget.getAttribute("data-index")),re=Y[Ft],Le=(dt-$)/10,Ae=it.map(function(ua){return ua.value}),cn=Ae.indexOf(re),je,$n=Nn?"ArrowLeft":"ArrowRight",Jn=Nn?"ArrowRight":"ArrowLeft";switch(zt.key){case"Home":je=$;break;case"End":je=dt;break;case"PageUp":ht&&(je=re+Le);break;case"PageDown":ht&&(je=re-Le);break;case $n:case"ArrowUp":ht?je=re+ht:je=Ae[cn+1]||Ae[Ae.length-1];break;case Jn:case"ArrowDown":ht?je=re-ht:je=Ae[cn-1]||Ae[0];break;default:return}if(zt.preventDefault(),ht&&(je=Pv(je,ht,$)),je=Of(je,$,dt),D){var la=je;je=Mv({values:Y,source:un,newValue:je,index:Ft}).sort(jf),vu({sliderRef:Qe,activeIndex:je.indexOf(la)})}M(je),Xe(Ft),mt&&mt(zt,je),ft&&ft(zt,je)}),Ut=R.useRef(),ie=At;Nn&&At!=="vertical"&&(ie+="-reverse");var $e=function(Ft){var re=Ft.finger,Le=Ft.move,Ae=Le===void 0?!1:Le,cn=Ft.values,je=Ft.source,$n=Qe.current,Jn=$n.getBoundingClientRect(),la=Jn.width,ua=Jn.height,Qn=Jn.bottom,ur=Jn.left,Sn;ie.indexOf("vertical")===0?Sn=(Qn-re.y)/ua:Sn=(re.x-ur)/la,ie.indexOf("-reverse")!==-1&&(Sn=1-Sn);var dn;if(dn=SM(Sn,$,dt),ht)dn=Pv(dn,ht,$);else{var fn=it.map(function(qa){return qa.value}),ca=Ev(fn,dn);dn=fn[ca]}dn=Of(dn,$,dt);var zn=0;if(D){Ae?zn=Ut.current:zn=Ev(cn,dn);var wi=dn;dn=Mv({values:cn,source:je,newValue:dn,index:zn}).sort(jf),zn=dn.indexOf(wi),Ut.current=zn}return{newValue:dn,activeIndex:zn}},Ge=jn(function(zt){var Ft=gu(zt,Pe);if(Ft){var re=$e({finger:Ft,move:!0,values:Y,source:un}),Le=re.newValue,Ae=re.activeIndex;vu({sliderRef:Qe,activeIndex:Ae,setActive:rn}),M(Le),mt&&mt(zt,Le)}}),Ue=jn(function(zt){var Ft=gu(zt,Pe);if(Ft){var re=$e({finger:Ft,values:Y,source:un}),Le=re.newValue;rn(-1),zt.type==="touchend"&&Ye(-1),ft&&ft(zt,Le),Pe.current=void 0;var Ae=mi(Qe.current);Ae.removeEventListener("mousemove",Ge),Ae.removeEventListener("mouseup",Ue),Ae.removeEventListener("touchmove",Ge),Ae.removeEventListener("touchend",Ue)}}),ke=jn(function(zt){zt.preventDefault();var Ft=zt.changedTouches[0];Ft!=null&&(Pe.current=Ft.identifier);var re=gu(zt,Pe),Le=$e({finger:re,values:Y,source:un}),Ae=Le.newValue,cn=Le.activeIndex;vu({sliderRef:Qe,activeIndex:cn,setActive:rn}),M(Ae),mt&&mt(zt,Ae);var je=mi(Qe.current);je.addEventListener("touchmove",Ge),je.addEventListener("touchend",Ue)});R.useEffect(function(){var zt=Qe.current;zt.addEventListener("touchstart",ke);var Ft=mi(zt);return function(){zt.removeEventListener("touchstart",ke),Ft.removeEventListener("mousemove",Ge),Ft.removeEventListener("mouseup",Ue),Ft.removeEventListener("touchmove",Ge),Ft.removeEventListener("touchend",Ue)}},[Ue,Ge,ke]);var Pt=jn(function(zt){Lt&&Lt(zt),zt.preventDefault();var Ft=gu(zt,Pe),re=$e({finger:Ft,values:Y,source:un}),Le=re.newValue,Ae=re.activeIndex;vu({sliderRef:Qe,activeIndex:Ae,setActive:rn}),M(Le),mt&&mt(zt,Le);var cn=mi(Qe.current);cn.addEventListener("mousemove",Ge),cn.addEventListener("mouseup",Ue)}),ne=mu(D?Y[0]:$,$,dt),xe=mu(Y[Y.length-1],$,dt)-ne,ve=Dt({},yu[ie].offset(ne),yu[ie].leap(xe));return R.createElement(E,Dt({ref:Ze,className:Ie(d.root,d["color".concat(sn(y))],f,L&&d.disabled,it.length>0&&it.some(function(zt){return zt.label})&&d.marked,St===!1&&d.trackFalse,At==="vertical"&&d.vertical,St==="inverted"&&d.trackInverted),onMouseDown:Pt},de),R.createElement("span",{className:d.rail}),R.createElement("span",{className:d.track,style:ve}),R.createElement("input",{value:Y.join(","),name:v,type:"hidden"}),it.map(function(zt,Ft){var re=mu(zt.value,$,dt),Le=yu[ie].offset(re),Ae;return St===!1?Ae=Y.indexOf(zt.value)!==-1:Ae=St==="normal"&&(D?zt.value>=Y[0]&&zt.value<=Y[Y.length-1]:zt.value<=Y[0])||St==="inverted"&&(D?zt.value<=Y[0]||zt.value>=Y[Y.length-1]:zt.value>=Y[0]),R.createElement(R.Fragment,{key:zt.value},R.createElement("span",{style:Le,"data-index":Ft,className:Ie(d.mark,Ae&&d.markActive)}),zt.label!=null?R.createElement("span",{"aria-hidden":!0,"data-index":Ft,style:Le,className:Ie(d.markLabel,Ae&&d.markLabelActive)},zt.label):null)}),Y.map(function(zt,Ft){var re=mu(zt,$,dt),Le=yu[ie].offset(re);return R.createElement(xt,{key:Ft,valueLabelFormat:Qt,valueLabelDisplay:Mt,className:d.valueLabel,value:typeof Qt=="function"?Qt(H(zt),Ft):Qt,index:Ft,open:kn===Ft||Oe===Ft||Mt==="on",disabled:L},R.createElement(lt,{className:Ie(d.thumb,d["thumbColor".concat(sn(y))],Oe===Ft&&d.active,L&&d.disabled,ee===Ft&&d.focusVisible),tabIndex:L?null:0,role:"slider",style:Le,"data-index":Ft,"aria-label":K?K(Ft):a,"aria-labelledby":r,"aria-orientation":At,"aria-valuemax":H(dt),"aria-valuemin":H($),"aria-valuenow":H(zt),"aria-valuetext":J?J(H(zt),Ft):l,onKeyDown:X,onFocus:xn,onBlur:Bn,onMouseOver:qn,onMouseLeave:Vt}))}))});const PM=gn(TM,{name:"MuiSlider"})(EM);var MM=function(t){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:Bi({paddingLeft:t.spacing(2),paddingRight:t.spacing(2)},t.breakpoints.up("sm"),{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}),regular:t.mixins.toolbar,dense:{minHeight:48}}},AM=R.forwardRef(function(t,n){var a=t.classes,r=t.className,l=t.component,d=l===void 0?"div":l,f=t.disableGutters,p=f===void 0?!1:f,y=t.variant,k=y===void 0?"regular":y,E=Ke(t,["classes","className","component","disableGutters","variant"]);return R.createElement(d,Dt({className:Ie(a.root,a[k],r,!p&&a.gutters),ref:n},E))});const NM=gn(MM,{name:"MuiToolbar"})(AM);class Nv{static getBookLanguage1(t){const n=t.querySelector("#bloomDataDiv");if(!n)return;const a=n.querySelector("div[data-book='contentLanguage1']").innerHTML.trim();if(a)return a}static getNationalLanguagesFromCssStyles(t){let n,a;const r=/\[lang=['"](.+)['"]\]/gm;let l=0,d=r.exec(t);for(;d!=null;){if(l++,l===2)n=d[1];else if(l===3){a=d[1];break}d=r.exec(t)}return[n,a]}}const Ni=class Ni{constructor(){this.totalNumberedPages=0,this.questionCount=0,this.brandingProjectName="",this.bookInstanceId="",this.bookTitle="",this.originalTitle="",this.copyrightHolder="",this.originalCopyrightHolder="",this.sessionId=this.generateUUID(),this.creator=Ni.DEFAULT_CREATOR,this.publisher="",this.originalPublisher="",this.features="",this.bookshelves=""}static getCreator(t){const n=t.getElementsByTagName("meta");if(n.length===0)return Ni.DEFAULT_CREATOR;const a=n.namedItem("bloom-digital-creator");return a===null?Ni.DEFAULT_CREATOR:a.content}static getCopyrightInfo(t,n){const a=/^Copyright © \d\d\d\d, /;return this.getDataDivValue(t,n).replace(a,"")}static getDataDivValue(t,n){const a=t.ownerDocument.evaluate(".//div[@data-book='"+n+"']",t,null,XPathResult.ANY_UNORDERED_NODE_TYPE,null).singleNodeValue;return!a||!a.textContent?"":a.textContent.trim()}hasFeature(t){return this.features.indexOf(t)>-1}getAmbientAnalyticsProps(){const t={bookInstanceId:this.bookInstanceId,totalNumberedPages:this.totalNumberedPages,questionCount:this.questionCount,contentLang:this.bookLanguage1,features:this.features,sessionId:this.sessionId,title:this.bookTitle,originalTitle:this.originalTitle,creator:this.creator,brandingProjectName:this.brandingProjectName,originalCopyrightHolder:this.originalCopyrightHolder,copyrightHolder:this.copyrightHolder,publisher:this.publisher,originalPublisher:this.originalPublisher,bookshelves:this.bookshelves},n=ja("host",null);return n!=null?t.host=n:window.location.hostname==="localhost"&&(t.host="testing"),t}getPreferredTranslationLanguages(){return[this.bookLanguage1,this.bookLanguage2,this.bookLanguage3].filter(t=>!!t)}setSomeBookInfoFromHead(t){this.creator=Ni.getCreator(t)}setSomeBookInfoFromBody(t){this.bookLanguage1=Nv.getBookLanguage1(t),this.canRotate=t.hasAttribute("data-bfcanrotate"),this.autoAdvance=t.hasAttribute("data-bfautoadvance"),this.playAnimations=t.hasAttribute("data-bfplayanimations"),this.copyrightHolder=Ni.getCopyrightInfo(t,"copyright"),this.originalCopyrightHolder=Ni.getCopyrightInfo(t,"originalCopyright")}setSomeBookInfoFromMetadata(t,n){this.bookInstanceId=t.bookInstanceId,this.brandingProjectName=t.brandingProjectName,this.bookTitle=t.title,this.originalTitle=t.originalTitle,this.publisher=t.publisher,this.originalPublisher=t.originalPublisher,this.bookshelves=this.getBookshelves(t.tags,t.bookshelves);const a=t.bloomdVersion?t.bloomdVersion:0;this.features=a>0?t.features:this.guessFeatures(n)}getBookshelves(t,n){const a=Array.from(n??[]);return t&&t.forEach(r=>{if(r.startsWith("bookshelf:")){const l=r.substring(10).trim();a.includes(l)||a.push(l)}}),a.join(",")}setLanguage2And3(t){[this.bookLanguage2,this.bookLanguage3]=Nv.getNationalLanguagesFromCssStyles(t)}guessFeatures(t){const n=[],a=t.ownerDocument.evaluate(".//video/source[@src]",t,null,XPathResult.ANY_UNORDERED_NODE_TYPE,null).singleNodeValue!=null,r=(t.getAttribute("data-bffullscreenpicture")||"").indexOf("landscape;bloomReader")>=0,l=t.ownerDocument.evaluate(".//div[contains(@class, 'bloom-page') and not(@data-xmatter-page)]//div[contains(@class, 'bloom-imageDescription')]",t,null,XPathResult.ANY_UNORDERED_NODE_TYPE,null).singleNodeValue!=null,d=t.ownerDocument.evaluate(".//*[contains(@class, 'audio-sentence')]",t,null,XPathResult.ANY_UNORDERED_NODE_TYPE,null).singleNodeValue!=null;return l&&n.push("blind"),a&&n.push("signLanguage"),d&&n.push("talkingBook"),r&&n.push("motion"),n.join(",")}generateUUID(){let t=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{const a=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(n==="x"?a:a&3|8).toString(16)})}};Ni.DEFAULT_CREATOR="bloom";let vh=Ni;class LM{constructor(){this.lastNumberedPageWasRead=!1,this.beginReadTime=Date.now(),this.totalAudioDuration=0,this.totalVideoDuration=0,this.reportedAudioOnCurrentPage=!1,this.reportedVideoOnCurrentPage=!1,this.pagesShown=new Set,this.audioPagesShown=new Set,this.videoPagesShown=new Set}getProgressReportPropertiesForAnalytics(){return{audioPages:this.audioPagesShown.size,nonAudioPages:this.pagesShown.size-this.audioPagesShown.size,videoPages:this.videoPagesShown.size,audioDuration:this.totalAudioDuration,videoDuration:this.totalVideoDuration,lastNumberedPageRead:this.lastNumberedPageWasRead,readDuration:Math.floor((Date.now()-this.beginReadTime)/1e3)}}pageShown(t){this.pagesShown.add(t)}audioPageShown(t){this.audioPagesShown.add(t)}videoPageShown(t){this.videoPagesShown.add(t)}clearPagesShown(){this.pagesShown.clear(),this.audioPagesShown.clear(),this.videoPagesShown.clear()}}async function BM(e,t,n,a){IM();const r=e.ownerDocument.evaluate(".//link[@href and @type='text/css']",e,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null),l=[];for(let f=0;f<r.snapshotLength;f++){const y=r.snapshotItem(f).getAttribute("href"),k=t+"/"+y;k.endsWith("/fonts.css")?zM(k):(l.push(zi.get(k)),k.endsWith("/appearance.css")&&(n.hasAppearanceSystem=!0))}const d=a();d&&l.push(d);try{const f=await zi.all(l.map(k=>k.catch(()=>{})));let p="";const y=e.ownerDocument.evaluate(".//style[@type='text/css']",e,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(let k=0;k<y.snapshotLength;k++){const E=y.snapshotItem(k);p+=E.innerText}return f.forEach(k=>{k&&k.data&&(console.log("Loaded stylesheet: "+JSON.stringify(k.config)),p+=k.data,(k.config.url.endsWith("/defaultLangStyles.css")||k.config.url.endsWith("/settingsCollectionStyles.css"))&&n.setLanguage2And3(k.data))}),p=p.replace(/:root/g,".bloomPlayer-page"),p}catch(f){throw f}}function zM(e){zi.get(e).then(t=>{let n=document.getElementById("fontCssStyleSheet");n||(n=document.createElement("style"),document.head.appendChild(n),n.setAttribute("id","fontCssStyleSheet"));const a=e.substring(0,e.length-10);n.innerText=t.data.replace(/src:url\(['"]?(.*\.[^\)'"]*)['"]?\)/g,"src:url('"+a+"/$1')")})}function IM(){let e=document.getElementById("andikaCssStyleSheet");e||(e=document.createElement("style"),document.head.appendChild(e),e.setAttribute("id","andikaCssStyleSheet")),e.innerText=`
|
|
7886
7886
|
@font-face {
|
|
7887
7887
|
font-family: "Andika New Basic";
|
|
7888
7888
|
font-weight: normal;
|
|
@@ -7979,7 +7979,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
7979
7979
|
display:none !important;
|
|
7980
7980
|
}
|
|
7981
7981
|
`.replace(`
|
|
7982
|
-
`,"").replace("\r","")}function DM(e){const t=e.lastIndexOf("/"),n=e.lastIndexOf("%2f");let a;t>n?a=e.substring(t+1,e.length):a=e.substring(n+3,e.length);const r=a.endsWith(".htm"),l=r?e:e+"/"+a+".htm",d=r?e.substring(0,Math.max(t,n)):e;return{urlOfBookHtmlFile:l,urlPrefix:d}}function Wu(e,t){return t+"/"+e}async function RM(e,t){const n=zi.get(Wu(".distribution",t)).then(k=>k,k=>({data:""})),a=zi.get(e),r=zi.get(Wu("meta.json",t)),[l,d,f]=await Promise.all([a,r,n]);return{bookHtmlElement:new DOMParser().parseFromString(l?.data,"text/html").documentElement,metaDataObject:d?.data,distributionSource:f.data}}function jM(e){const t={};for(let n=0;n<e.attributes.length;n++)t[e.attributes.item(n).nodeName]=e.attributes.item(n).nodeValue;return t}function OM(e,t){const n=e.ownerDocument.evaluate(".//*[@src]",e,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(let l=0;l<n.snapshotLength;l++){const d=n.snapshotItem(l);if(!d)continue;const f=d.getAttribute("src"),p=Wu(f,t);d.setAttribute("src",p)}const a=e.ownerDocument.evaluate(".//*[@style]",e,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null),r=new RegExp(/background-image:url\(['"](.*)['"]\)/);for(let l=0;l<a.snapshotLength;l++){const d=a.snapshotItem(l);if(!d)continue;const f=d.getAttribute("style")||"",p=r.exec(f);if(!p)continue;const y=Wu(p[1],t),k=f.replace(r,"");d.setAttribute("style",k),d.setAttribute("data-background",y),d.classList.add("swiper-lazy")}}function ap(e){const n=(e.getAttribute("class")||"").match(/\b\S*?(Portrait|Landscape)\b/);return n&&n.length?n[0]:""}function KM(e,t,n,a,r){let l=!1;const d=ap(e);if(d){l=t?n:d.endsWith("Landscape");let f="";a?f=l?r.replace("Portrait","Landscape"):r.replace("Landscape","Portrait"):f=l?"Device16x9Landscape":"Device16x9Portrait",d!==f&&(e.classList.remove(d),e.classList.add(f))}return l}function qM(e,t){e.querySelectorAll(".coverBottomBookTopic, .coverBottomLangName").forEach(n=>{t||n.classList.contains("bloom-content1")?n.classList.remove("do-not-display"):n.classList.add("do-not-display")})}function $M(e){const t=e.getElementsByClassName("bloom-canvas");if(t&&t.length>0)return Array.from(t);const n=e.getElementsByClassName("bloom-imageContainer");return Array.from(n).filter(a=>a.parentElement.closest(".bloom-imageContainer")===null)}function HM(e,t){if(!(!t||!e))try{const n=t;$M(e).forEach(a=>{Array.from(a.querySelectorAll(cl)).forEach(l=>{const d=Array.from(l.getElementsByClassName("bloom-editable")).find(f=>f.getAttribute("lang")===n);if(d){const f=d.getAttribute("data-bubble-alternate");if(f){const p=JSON.parse(f.replace(/`/g,'"'));l.setAttribute("style",p.style)}}});const r=Array.from(a.getElementsByClassName("comical-alternate")).find(l=>l.getAttribute("data-lang")===n);if(r){const l=a.getElementsByClassName("comical-generated")[0];l&&(l.classList.remove("comical-generated"),l.classList.add("comical-alternate"),l.style.display="none"),r.classList.remove("comical-alternate"),r.classList.add("comical-generated"),r.style.removeProperty("display")}})}catch(n){console.error(n)}}function FM(e,t){return e.localeCompare(t,"en-US",{sensitivity:"accent"})===0}function WM(e,t,n,a){if(!t||!e)return;const r=n[0]===t||!t,l=t,d=e.ownerDocument.evaluate(".//div[contains(@class, 'bloom-translationGroup')]",e,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null),f="bloom-visibility-code-on";for(let p=0;p<d.snapshotLength;p++){const y=d.snapshotItem(p),k=y.getAttribute("data-default-languages"),E=k?k.split(/,| /):[],N=E==null||E.length===0||!E[0]||E.includes("V")||E.includes("L1")||FM(E[0],"auto"),I=y.childNodes;for(let L=0;L<I.length;L++){const K=I.item(L);!K||!K.classList||!K.classList.contains("bloom-editable")||(a&&K.setAttribute("data-original-class",K.getAttribute("class")||""),r?K.setAttribute("class",K.getAttribute("data-original-class")||""):N&&(K.getAttribute("lang")===l?(K.classList.add(f),Array.from(K.classList).forEach(F=>{F.startsWith("bloom-content")&&K.classList.remove(F)}),K.classList.add("bloom-content1"),K.classList.add("bloom-contentFirst")):K.classList.remove(f)))}}}const oc=[];function _M(){return oc.length>0}function VM(e){const t=oc.pop();if(t)return{bookUrl:e===t.bookId?void 0:yh(t.bookId),pageId:t.pageId}}function GM(e,t,n){const a=e.target.closest("[href], [data-href]");if(!a)return;e.preventDefault(),e.stopPropagation();const r=(a.getAttribute("href")||a.getAttribute("data-href"))??void 0;if(!r)return;if(r.startsWith("http://")||r.startsWith("https://")){window.open(r,"_blank","noreferrer");return}let l,d;if(r==="back"){const p=oc.pop();return p?{bookUrl:t===p.bookId?void 0:yh(p.bookId),pageId:p.pageId}:void 0}else if(r.startsWith("/book/")){const p=UM(r);l=p.bookId,d=p.pageId,p.bookId===t&&(l=void 0)}else r.startsWith("#")&&(d=r.substring(1));const f=n();if(l)return Lv(t,f),{bookUrl:yh(l),pageId:d};if(d)return Lv(t,f),{pageId:d}}function Lv(e,t,n){oc.push({bookId:e,pageId:t})}function yh(e){return`/book/${e}/index.htm`}function UM(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 YM="2.22.0-alpha.1",XM={version:YM},nr="#d65649",ZM="#2e2e2e",JM="#febf00",$b=ll({palette:{primary:{main:ZM,contrastText:nr},secondary:{main:nr}}});function Hb(){var e=XM.version;return e}const QM=({getBookInstanceId:e})=>{const[t,n]=R.useState(!1),a=Hb(),r=new Date("2026-10-22T16:45:42.552Z").toLocaleDateString();if(R.useEffect(()=>{const d=p=>{p.key==="Control"&&n(!0)},f=p=>{p.key==="Control"&&n(!1)};return window.addEventListener("keydown",d),window.addEventListener("keyup",f),()=>{window.removeEventListener("keydown",d),window.removeEventListener("keyup",f)}},[]),!t)return null;const l=e?.();return Rt.createElement("div",{className:"diagnostic-info-control",style:{color:nr,fontFamily:"sans-serif",padding:"5px",zIndex:1e3,lineHeight:"1.5"}},Rt.createElement("div",null,"Bloom Player v",a," (built ",r,")"),Rt.createElement("div",null,"Book ID: ",l??""))},tA=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,Bv=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(tA);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},zv=e=>e==="*"||e==="x"||e==="X",Iv=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},eA=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],nA=(e,t)=>{if(zv(e)||zv(t))return 0;const[n,a]=eA(Iv(e),Iv(t));return n>a?1:n<a?-1:0},Dv=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const a=nA(e[n]||"0",t[n]||"0");if(a!==0)return a}return 0},Rv=(e,t)=>{const n=Bv(e),a=Bv(t),r=n.pop(),l=a.pop(),d=Dv(n,a);return d!==0?d:r&&l?Dv(r.split("."),l.split(".")):r||l?r?-1:1:0},bh=new rr;class ip extends R.Component{constructor(t,n){super(t,n),this.activityManager=new aP,this.initialPages=["loading..."],this.initialStyleRules="",this.originalPageClass="Device16x9Portrait",this.bookInfo=new vh,this.bookInteraction=new LM,this.mustUseOriginalPageSize=!1,this.indicesOfPagesWhereWeShouldPreserveDOMState={},this.startingUpSwiper=!0,this.pendingTimeouts=new Set,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.currentPage=null,this.currentPageHidesNavigationButtons=!1,this.handleWindowFocusEvent=()=>this.handleWindowFocus(),this.handleWindowBlurEvent=()=>this.handleWindowBlur(),this.handlePointerDownCapture=r=>{(r.target.closest("[href], [data-href]")||r.target.closest(".bloom-videoContainer")&&!r.target.closest("[data-draggable-id]"))&&(r.stopPropagation(),r.preventDefault())},this.handleDragStartCapture=r=>{this.activityManager.getActivityAbsorbsDragging()||r.preventDefault()},this.handleDocumentLevelKeyDown=r=>{r.key==="Home"&&(this.goToFirstPage(),r.preventDefault()),r.key==="End"&&(this.goToLastPage(),r.preventDefault())},this.distributionSource="",this.finishUpCalled=!1,this.hasImageDescriptions=!1,this.handlePageVideoComplete=r=>{r.page===this.currentPage&&this.playAudioAndAnimation(r.page)},this.handlePlayFailed=()=>{this.setState({inPauseForced:!0}),this.props.setForcedPausedCallback&&this.props.setForcedPausedCallback(!0)},this.handlePlayUnblocked=()=>{this.state.inPauseForced&&this.props.setForcedPausedCallback&&this.props.setForcedPausedCallback(!1),this.setState({inPauseForced:!1})},this.handlePlayCompleted=()=>{Yn(Cn.MediaFinished),this.props.imageDescriptionCallback(!1)},this.handleToggleImageDescription=r=>{this.props.imageDescriptionCallback(r)},this.handlePageNarrationComplete=r=>{if(r&&(Yn(Cn.MediaFinished),this.shouldAutoPlay())){const l=this.props.autoplayCount??0,d=this.state.startPageIndex??0,f=this.swiperInstance.slides.length-1;let p=this.props.autoplayCount?Math.min(d+l-1,f):f;this.swiperInstance.activeIndex>=p?(this.music.pause(),this.props.shouldReportSoundLog&&aS(),eS(),FS({})):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,this.legacyQuestionHandler=new rP(t.locationOfDistFolder)}setPlayerTimeout(t,n){const a=window.setTimeout(()=>{this.pendingTimeouts.delete(a),t()},n);this.pendingTimeouts.add(a)}componentDidMount(){wn.setUp(),Q0(this),window.addEventListener("focus",this.handleWindowFocusEvent),window.addEventListener("blur",this.handleWindowBlurEvent),document.addEventListener("keydown",this.handleDocumentLevelKeyDown),document.addEventListener("pointerdown",this.handlePointerDownCapture,{capture:!0}),document.addEventListener("dragstart",this.handleDragStartCapture,{capture:!0}),this.componentDidUpdate(this.props,this.state)}CanGoBack(){return _M()}HandleBackButtonClickedIfHavePlayerHistory(){const t=this.getBookIdFromBookUrlForHistory(this.state.bookUrl)||this.bookInfo.bookInstanceId,n=VM(t);return n?(this.navigate(n.bookUrl,n.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)}}getBookIdFromBookUrlForHistory(t){if(t)try{const a=new URL(t,window.location.href).pathname.match(/^\/book\/([^/]+)\/index\.htm$/i);return a?a[1]:void 0}catch{return}}handleWindowFocus(){const t=localStorage.getItem(Iu),n=localStorage.getItem(Am);t&&n==this.sourceUrl&&(this.bookInteraction.beginReadTime=Date.now()-parseInt(t,10))}handleWindowBlur(){const t=Date.now()-this.bookInteraction.beginReadTime;localStorage.setItem(Iu,t.toString()),localStorage.setItem(Am,this.sourceUrl)}getRequiredVersionMessage(t){const n=t.querySelector('meta[name="FeatureRequirement"]')?.getAttribute("content");if(!n)return"";const a=/BloomPlayerMinVersion":"(.*?)".*?"FeatureId":"(.*?)"/g;let r,l=null,d=null;for(;(r=a.exec(n))!==null;){const p=r[1];(!l||Rv(p,l)>0)&&(l=p,d=r[2])}if(!l||!d)return"";const f=Hb();if(Rv(f,l)>=0)return"";if(window.location.hostname.toLowerCase().indexOf("bloomlibrary.org")>=0)return wn.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}",d).replace("{hostname}",window.location.hostname);{let p=Oa("host","");switch(p){case"bloomreader":p="Bloom Reader";break;case"bloompubviewer":p="BloomPUB Viewer";break;case"readerapp":p="";break}return p?wn.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}",d).replace("{host}",p):wn.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}",d)}}componentDidUpdate(t,n){try{if(!this.props.url||this.state.loadFailed&&n.bookUrl===this.state.bookUrl)return;this.initializeMedia();const a=this.preprocessUrl();if(a&&a!=="/working"&&a!==this.sourceUrl){this.finishUpCalled=!1,this.setState({isLoading:!0,loadFailed:!1}),this.metaDataObject=void 0,this.htmlElement=void 0,this.sourceUrl=a;const{urlOfBookHtmlFile:r,urlPrefix:l}=DM(this.sourceUrl);this.urlPrefix=l,this.music.urlPrefix=l,ix(l),RM(r,l).then(d=>{const{bookHtmlElement:f}=d;this.metaDataObject=d.metaDataObject,this.distributionSource=d.distributionSource;const p=this.getRequiredVersionMessage(f.ownerDocument);this.setState({requiredVersion:p});const y=f.getElementsByTagName("body")[0];this.mustUseOriginalPageSize=this.computeMustUseOriginalPageSize(y),this.bookInfo.setSomeBookInfoFromBody(y),this.localizeOnce(),this.props.shouldReportSoundLog&&(this.videoList=this.getVideoList(f.ownerDocument)),this.animation.PlayAnimations=this.bookInfo.playAnimations,this.setState({importedBodyAttributes:jM(y)}),this.makeNonEditable(y),this.htmlElement=f;const k=f.getElementsByClassName("bloom-page")[0];this.originalPageClass="Device16x9Portrait",k&&(this.originalPageClass=ap(k)),this.legacyQuestionHandler.generateQuizPagesFromLegacyJSON(this.urlPrefix,y,this.originalPageClass,()=>{this.finishUp()})}).catch(d=>this.HandleLoadingError(d))}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 l=0;l<r.length;l++){const d=r[l];this.applyPageSizeClass(d)}}!this.state.isLoading&&(n.isLoading||t.activeLanguageCode!==this.props.activeLanguageCode)&&(WM(this.htmlElement,this.props.activeLanguageCode,this.bookInfo.getPreferredTranslationLanguages(),n.isLoading),HM(this.htmlElement,this.props.activeLanguageCode),this.finishUpCalled&&this.finishUp(!1)),this.state.currentSwiperIndex!=n.currentSwiperIndex&&this.rootDiv?.querySelectorAll(np).forEach(r=>{const l=dl(r).getNiceScroll();l&&l.length>0&&l.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(a){this.setState({isLoading:!1,loadFailed:!0,loadErrorHtml:a.message})}}HandleLoadingError(t){let a=`<p>There was a problem displaying this book: ${t.message}<p>`;const r=!!t.config?.url&&new URL(t.config.url,window.location.href).pathname.startsWith("/book/");r?a="<p>We could not find that book.</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'>${aA(t.config.url)}</p>`)),this.setState({isLoading:!1,loadFailed:!0,loadErrorHtml:a}),r&&bh.raise()}async finishUp(t=!0){if(this.finishUpCalled=!0,!this.htmlElement)return;Js.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 r=this.bookInfo.getPreferredTranslationLanguages(),l=r[0]===this.props.activeLanguageCode||!this.props.activeLanguageCode,d={},f=y=>y.classList.contains("bloom-interactive-page")||y.classList.contains("simple-comprehension-quiz")||y.getAttribute("data-activity")=="iframe"||y.getElementsByClassName("questions").length>0;d.length=0,d.cover=0;for(let y=0;y<n.length;y++){const k=n[y],E=k.getAttribute("id");E&&(d[E]=y);const N=this.applyPageSizeClass(k);k.setAttribute("data-index",y.toString(10)),y===0&&this.props.reportBookProperties&&this.props.reportBookProperties({landscape:N,canRotate:this.bookInfo.canRotate,preferredLanguages:r,pageNumbers:Array.from(n).map(L=>L.getAttribute("data-page-number")??""),isRtl:this.metaDataObject.isRtl,internalUrl:this.state.bookUrl}),t&&(OM(k,this.urlPrefix),k.classList.contains("numberedPage")&&(this.indexOflastNumberedPage=y,this.bookInfo.totalNumberedPages++),(k.getAttribute("data-analyticscategories")||k.getAttribute("data-analyticsCategories"))==="comprehension"&&this.bookInfo.questionCount++),qM(k,l);const I=f(k);I&&this.activityManager.initializePageHtml(this.urlPrefix,k,a.length),(!this.props.skipActivities||!I)&&a.push(k.outerHTML)}if(t){const y=this.htmlElement.getElementsByTagName("head")[0];this.bookInfo.setSomeBookInfoFromHead(y);const k=this.htmlElement.getElementsByTagName("body")[0];if(this.metaDataObject&&(this.bookInfo.setSomeBookInfoFromMetadata(this.metaDataObject,k),this.reportBookOpened(k)),this.props.controlsCallback){const E=ol.createLangDataArrayFromDomAndMetadata(k,this.metaDataObject);this.hasImageDescriptions=iA(k),this.props.controlsCallback(E,this.hasImageDescriptions,N=>{this.swiperInstance?.slideTo(N)})}}if(t){var p;try{p=await BM(this.htmlElement,this.urlPrefix,this.bookInfo,()=>this.legacyQuestionHandler.getPromiseForAnyQuizCss())}catch(y){this.HandleLoadingError(y),p=""}if(this.startingUpSwiper=!0,this.state.startPageId){if(d[this.state.startPageId]===void 0)throw new Error(`Page ID ${this.state.startPageId} not found in the current pageIdToIndexMap`);this.setState({startPageIndex:d[this.state.startPageId]})}this.setState({pages:a,pageIdToIndexMap:d,styleRules:p,isLoading:!1,currentSwiperIndex:this.state.startPageIndex??0})}else this.setState({pages:a,isLoading:!1});this.props.pageStylesAreNowInstalled(),t?this.setPlayerTimeout(()=>{this.setState({isFinishUpForNewBookComplete:!0});const y=this.startingUpSwiper;this.startingUpSwiper=!1;var k=this.state.startPageIndex??0;this.setIndex(k),this.showingPage(k),y&&this.swiperInstance&&this.addScrollbarsToPageWhenReady(this.swiperInstance.activeIndex);const E=document.getElementsByClassName("swiper-button-next")[0];document.getElementsByClassName("swiper-button-prev")[0]?.setAttribute("tabindex","4"),E?.setAttribute("tabindex","5"),this.shouldFocusNextButtonForNewBook()&&E?.focus()},500):this.currentPage&&this.setPlayerTimeout(()=>{this.setIndex(this.currentPageIndex),this.showingPage(this.currentPageIndex)},200)}shouldFocusNextButtonForNewBook(){return window.self===window.top||document.referrer.startsWith("http://localhost:")?!0:document.referrer.includes("bloomlibrary.org/player/")}localizeOnce(){!this.isPagesLocalized&&this.state.pages!==this.initialPages&&this.state.styleRules!==this.initialStyleRules&&(wn.localizePages(document.body,this.bookInfo.getPreferredTranslationLanguages()),this.isPagesLocalized=!0)}initializeMedia(){this.video||(this.video=new Js,this.video.PageVideoComplete=new rr,this.video.PageVideoComplete.subscribe(this.handlePageVideoComplete)),this.animation||(this.animation=new Eu),Oo.subscribe(this.handlePageNarrationComplete),al.subscribe(this.handlePlayFailed),_f.subscribe(this.handlePlayUnblocked),nl.subscribe(this.handlePlayCompleted),ex(this.storeAudioAnalytics.bind(this)),Ko.subscribe(this.handleToggleImageDescription.bind(this)),nx(()=>this.swiperInstance?.animating),ax(t=>My(t,1)),this.music||(this.music=new iS,this.music.PlayFailed=new rr,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():this.currentPage!==ay()||oa===Cn.MediaFinished?this.resetForNewPageAndPlay(this.currentPage):oa===Cn.VideoPaused?this.video.play():(Ax(),this.animation.resumeAnimation(),this.music.play())}computeMustUseOriginalPageSize(t){return this.props.useOriginalPageSize||t.querySelector(".bloom-canvas-element")?!0:!!t.querySelector(".bloom-textOverPicture")}componentWillUnmount(){this.pauseAllMultimedia(),window.removeEventListener("focus",this.handleWindowFocusEvent),window.removeEventListener("blur",this.handleWindowBlurEvent),document.removeEventListener("keydown",this.handleDocumentLevelKeyDown),document.removeEventListener("pointerdown",this.handlePointerDownCapture,{capture:!0}),document.removeEventListener("dragstart",this.handleDragStartCapture,{capture:!0}),this.unsubscribeAllEvents(),this.pendingTimeouts.forEach(t=>window.clearTimeout(t)),this.pendingTimeouts.clear(),tx(this)}unsubscribeAllEvents(){this.video.PageVideoComplete.unsubscribe(this.handlePageVideoComplete),Oo.unsubscribe(this.handlePageNarrationComplete),al.unsubscribe(this.handlePlayFailed),_f.unsubscribe(this.handlePlayUnblocked),nl.unsubscribe(this.handlePlayCompleted),Ko.unsubscribe(this.handleToggleImageDescription)}pauseAllMultimedia(){oa===Cn.VideoPlaying?this.video.pause():oa===Cn.AudioPlaying&&(Nx(),this.animation.PauseAnimation()),this.music.pause()}reportBookOpened(t){const n=this.bookInfo.getAmbientAnalyticsProps();this.distributionSource&&(n.distributionSource=this.distributionSource),$S(n),Ny("BookOrShelf opened",{})}sendUpdateOfBookProgressReportToExternalContext(){const t=this.bookInteraction.getProgressReportPropertiesForAnalytics();WS("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")}applyPageSizeClass(t){return KM(t,this.bookInfo.canRotate,this.props.landscape,this.mustUseOriginalPageSize,this.originalPageClass)}goToFirstPage(){this.swiperInstance.slideTo(0)}goToLastPage(){this.swiperInstance.slideTo(99999)}getRootDiv(){return this.rootDiv}slideNext(){this.swiperInstance&&this.swiperInstance.slideNext()}slidePrevious(){this.swiperInstance&&this.swiperInstance.slidePrev()}getBookInstanceId(){return this.bookInfo.bookInstanceId}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(){const t=this.activityManager.getActivityAbsorbsDragging();if(this.state.isLoading)return R.createElement(PP,{className:"loadingSpinner",color:"secondary"});if(this.state.loadFailed)return R.createElement(R.Fragment,null,R.createElement(p1,{className:"loadFailedIcon",color:"secondary"}),R.createElement("div",{className:"loadErrorMessage",dangerouslySetInnerHTML:{__html:this.state.loadErrorHtml}}));if(this.state.requiredVersion)return R.createElement("div",{className:"requiredVersionMessage"},this.state.requiredVersion);cx(this.props.shouldReadImageDescriptions&&this.hasImageDescriptions);const n={getSwiper:r=>{this.swiperInstance=r,this.metaDataObject?.isRtl&&this.swiperInstance&&(this.swiperInstance.el?.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=this.state.startPageIndex?.toString());let a="bloomPlayer";return this.currentPageHidesNavigationButtons?a+=" hideNextPrevButtons extraScalingForChrome85Bug":(this.props.outsideButtonPageClass&&(a+=" "+this.props.outsideButtonPageClass),t&&(a+=" showNavigationButtonsEvenOnTouchDevices")),R.createElement("div",{"aria-label":"Player Content",className:a+(this.props.extraClassNames?" "+this.props.extraClassNames:""),ref:r=>this.rootDiv=r},R.createElement(X0,{key:this.shouldAutoPlay()?"fade":"slide",...n,effect:this.shouldAutoPlay()?"fade":"slide"},this.state.pages.map((r,l)=>{const f=Math.abs(l-this.state.currentSwiperIndex)<2||this.indicesOfPagesWhereWeShouldPreserveDOMState[l];return R.createElement("div",{key:l,className:"page-preview-slide",onClick:p=>this.handlePageClick(p)},f?R.createElement(R.Fragment,null,R.createElement("style",{scoped:!0},this.state.styleRules),R.createElement("div",{...this.state.importedBodyAttributes,className:`bloomPlayer-page ${this.bookInfo.hasAppearanceSystem?"appearance-system":""} ${this.state.importedBodyAttributes.class??""}`,dangerouslySetInnerHTML:{__html:r}})):"")})),R.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})}},R.createElement(pi,{className:"nav-button",disableRipple:!0},this.metaDataObject.isRtl?R.createElement(hv,{titleAccess:wn.getTranslation("Button.Prev",this.props.preferredUiLanguages,"Previous Page")}):R.createElement(dv,{titleAccess:wn.getTranslation("Button.Prev",this.props.preferredUiLanguages,"Previous Page")}))),R.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})}},R.createElement(pi,{className:"nav-button",disableRipple:!0},this.metaDataObject.isRtl?R.createElement(dv,{titleAccess:wn.getTranslation("Button.Next",this.props.preferredUiLanguages,"Next Page")}):R.createElement(hv,{titleAccess:wn.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.applyPageSizeClass(n),this.animation.HandlePageBeforeVisible(n),this.video.hidingPage(),this.video.HandlePageBeforeVisible(n),Bx(),this.music.hidingPage(),oa===Cn.AudioPaused||oa===Cn.VideoPaused?Yn(Cn.NewPageMediaPaused):(this.skipAutoPlay=!0,xx(),this.skipAutoPlay=!1,Yn(Cn.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")}getCurrentPage(){return this.currentPage}isXmatterPage(){const t=this.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){this.swiperInstance&&this.setPlayerTimeout(()=>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),this.setPlayerTimeout(()=>{this.currentPage=n,this.currentPageIndex=t,this.currentPageHasVideo=Js.pageHasVideo(n),this.applyPageSizeClass(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,tm(n),this.props.paused)),this.isXmatterPage()||(this.bookInteraction.pageShown(t),t===this.indexOflastNumberedPage&&(this.bookInteraction.lastNumberedPageWasRead=!0)),this.props.reportPageProperties&&this.props.reportPageProperties({hasAudio:Mx(n),hasMusic:this.music.pageHasMusic(n),hasVideo:this.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(l=>{l.addEventListener("click",Xh)})},0)}addScrollbarsToPageWhenReady(t){if(this.state.isLoading||this.startingUpSwiper)return;const n=this.getPageAtSwiperIndex(t);if(!n){this.swiperInstance&&this.setPlayerTimeout(()=>this.addScrollbarsToPageWhenReady(t),50);return}O1(n,ip.handlePointerMoveEvent)}static handlePointerMoveEvent(t){t.pointerType==="mouse"&&t.target?.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(this.currentPageIndex)),this.sendUpdateOfBookProgressReportToExternalContext()))}storeVideoAnalytics(t){t<.001||(this.bookInteraction.totalVideoDuration+=t,!this.bookInteraction.reportedVideoOnCurrentPage&&!this.isXmatterPage()&&(this.bookInteraction.reportedVideoOnCurrentPage=!0,this.bookInteraction.videoPageShown(this.currentPageIndex)),this.sendUpdateOfBookProgressReportToExternalContext())}resetForNewPageAndPlay(t){if(this.props.paused){this.video.HandlePageVisible(t,()=>this.props.paused);return}if(ny(t),this.currentPageHasVideo){const n=()=>{this.video.HandlePageVisible(t,()=>this.props.paused),this.music.pause()};if(Yn(Cn.VideoPlaying),!this.sentBloomNotification&&(this.sentBloomNotification=!0,this.props.shouldReportSoundLog)){Uf("/publish/av/startRecording",this.videoList).then(n);return}n()}else this.playAudioAndAnimation(t)}playAudioAndAnimation(t){if(this.activityManager.getActivityManagesSound()){this.activityManager.doInitialSoundAndAnimation();return}if(Yn(Cn.AudioPlaying),!t)return;const n=tm(t);this.animation.HandlePageDurationAvailable(t,n,this.props.paused);const a=()=>{Eu.pageHasAnimation(t)&&this.animation.HandlePageBeforeVisible(t),this.animation.HandlePageVisible(t,this.props.paused),ry(t,this.animation.animatableCanvas),this.music.HandlePageVisible(t)};if(!this.sentBloomNotification&&(this.sentBloomNotification=!0,this.props.shouldReportSoundLog)){Uf("/publish/av/startRecording",this.videoList).then(a);return}a()}getVideoList(t){let n="";for(const l of Array.from(t.getElementsByTagName("video"))){var a=l,r=a.getElementsByTagName("source")[0].getAttribute("src");n&&(n+="|"),n+=r}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=GM(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 aA(e){return e.replace("%23","#").replace(/[\u00A0-\u9999<>\&]/gim,t=>"&#"+t.charCodeAt(0)+";")}function iA(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 Os={},jv;function rA(){if(jv)return Os;jv=1;var e=Za(),t=Ja();Object.defineProperty(Os,"__esModule",{value:!0}),Os.default=void 0;var n=t(sa()),a=e(Qa()),r=(0,a.default)(n.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack");return Os.default=r,Os}var oA=rA();const sA=On(oA);var Ks={},Ov;function lA(){if(Ov)return Ks;Ov=1;var e=Za(),t=Ja();Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.default=void 0;var n=t(sa()),a=e(Qa()),r=(0,a.default)(n.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");return Ks.default=r,Ks}var uA=lA();const cA=On(uA);var qs={},Kv;function dA(){if(Kv)return qs;Kv=1;var e=Za(),t=Ja();Object.defineProperty(qs,"__esModule",{value:!0}),qs.default=void 0;var n=t(sa()),a=e(Qa()),r=(0,a.default)(n.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");return qs.default=r,qs}var fA=dA();const Fb=On(fA);var $s={},qv;function hA(){if(qv)return $s;qv=1;var e=Za(),t=Ja();Object.defineProperty($s,"__esModule",{value:!0}),$s.default=void 0;var n=t(sa()),a=e(Qa()),r=(0,a.default)(n.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");return $s.default=r,$s}var pA=hA();const gA=On(pA);var Hs={},$v;function mA(){if($v)return Hs;$v=1;var e=Za(),t=Ja();Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.default=void 0;var n=t(sa()),a=e(Qa()),r=(0,a.default)(n.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");return Hs.default=r,Hs}var vA=mA();const yA=On(vA);var Fs={},Hv;function bA(){if(Hv)return Fs;Hv=1;var e=Za(),t=Ja();Object.defineProperty(Fs,"__esModule",{value:!0}),Fs.default=void 0;var n=t(sa()),a=e(Qa()),r=(0,a.default)(n.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}),"Fullscreen");return Fs.default=r,Fs}var wA=bA();const kA=On(wA);var Ws={},Fv;function xA(){if(Fv)return Ws;Fv=1;var e=Za(),t=Ja();Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.default=void 0;var n=t(sa()),a=e(Qa()),r=(0,a.default)(n.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}),"FullscreenExit");return Ws.default=r,Ws}var SA=xA();const CA=On(SA);function TA(e){return Rt.createElement(dh,{...e,width:"21",height:"20",viewBox:"0 0 21 20"},Rt.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 _s={},Wv;function EA(){if(Wv)return _s;Wv=1;var e=Za(),t=Ja();Object.defineProperty(_s,"__esModule",{value:!0}),_s.default=void 0;var n=t(sa()),a=e(Qa()),r=(0,a.default)(n.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");return _s.default=r,_s}var PA=EA();const MA=On(PA),AA=e=>{const[t,n]=R.useState((e.languages.filter(d=>d.IsSelected)[0]||e.languages[0]).Code),a=d=>{const f=d.target.value;n(f),e.onClose(f)},r=()=>{e.onClose("")},l=()=>{const d=e.languages.map(f=>Rt.createElement("div",{className:"chooserItem",key:f.Code},Rt.createElement(rM,{value:f.Code,control:Rt.createElement(yM,null),label:f.Name,checked:f.Code===t}),Rt.createElement("span",{className:"spacer"}),Rt.createElement(MA,{className:"icon",visibility:f.HasAudio?"inherit":"hidden"})));return Rt.createElement("div",{className:"radioGroupDiv"},d)};return Rt.createElement(_P,{className:"languageMenu",onClose:r,"aria-labelledby":"language-menu-title",open:!0,scroll:"paper"},Rt.createElement(ZP,{id:"language-menu-title"},"Languages in this book:"),Rt.createElement(nM,{component:"fieldset"},Rt.createElement(bM,{className:"radioGroup","aria-label":"languages",name:"languages",value:t,onChange:a},l())),Rt.createElement(UP,null,Rt.createElement(kP,{onClick:r,color:"secondary"},"Close")))};var Kr=(e=>(e[e.showArrow=0]="showArrow",e[e.showEllipsis=1]="showEllipsis",e[e.showNothing=2]="showNothing",e))(Kr||{});const NA=e=>{const[t,n]=R.useState(!1),a="button"+(e.bookLanguages.length<2?" disabled":""),r=L=>{n(!1),L!==""&&(e.onLanguageChanged(L),d({lang:L}))},l=()=>{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(L){console.error("RequestFullScreen failed: ",L)}},d=L=>{if(!e.videoPreviewMode)return;const K={lang:e.activeLanguageCode,imageDescriptions:e.readImageDescriptions,...L};Uf("publish/av/videoSettings",encodeURIComponent(JSON.stringify(K)))},f=wn.getTranslation("Audio.Pause",e.preferredLanguages,"Pause"),p=e.paused?Rt.createElement(Fb,{titleAccess:e.playLabel}):Rt.createElement(gA,{titleAccess:f}),y=wn.getTranslation("Button.ReadImageDescriptions",e.preferredLanguages,"Read Image Descriptions"),k=wn.getTranslation("Button.IgnoreImageDescriptions",e.preferredLanguages,"Ignore Image Descriptions"),E=ll({palette:{primary:{main:JM},secondary:{main:$b.palette.secondary.main}}}),N=Rt.createElement(Ou,{theme:E},Rt.createElement(TA,{"aria-label":e.readImageDescriptions?"Read image descriptions":"Ignore image descriptions",titleAccess:e.readImageDescriptions?k:y,opacity:e.readImageDescriptions?1:.38,color:e.nowReadingImageDescription?"primary":"secondary"})),I=e.extraButtons?e.extraButtons.map(L=>Rt.createElement(pi,{key:L.id,color:"secondary",title:L.description,onClick:()=>bi({messageType:L.id})},Rt.createElement("img",{style:{maxHeight:"24px",maxWidth:"24px"},src:L.iconUrl}))):void 0;return Rt.createElement(dP,{color:"primary",className:`control-bar ${e.visible?", visible":""}`,id:"control-bar",elevation:0,position:"relative"},Rt.createElement(NM,null,!e.videoPreviewMode&&Rt.createElement(pi,{color:"secondary",onClick:()=>{e.backClicked&&e.backClicked()},"data-testid":"history-back-button",disabled:e.getBackButtonState()===2},e.getBackButtonState()===0?Rt.createElement(sA,{"aria-label":"Go Back",titleAccess:wn.getTranslation("Button.Back",e.preferredLanguages,"Back")}):e.getBackButtonState()===1&&Rt.createElement(cA,{"aria-label":"More Menu",titleAccess:wn.getTranslation("Button.More",e.preferredLanguages,"More")})),Rt.createElement("div",{className:"filler"}),e.bookHasImageDescriptions&&Rt.createElement(pi,{onClick:()=>{e.onReadImageDescriptionToggled(),d({imageDescriptions:!e.readImageDescriptions})}},N),e.bookLanguages.length>1&&Rt.createElement(pi,{className:a,"aria-label":"Choose Language",color:"secondary",onClick:()=>{n(!0)}},Rt.createElement(yA,{titleAccess:wn.getTranslation("Button.ChooseLanguage",e.preferredLanguages,"Choose Language")})),t&&Rt.createElement(AA,{languages:e.bookLanguages,onClose:r}),!e.videoPreviewMode&&Rt.createElement(pi,{color:"secondary","aria-label":"PlayPause",onClick:()=>{e.pausedChanged&&e.pausedChanged(!e.paused)}},e.showPlayPause?p:null),I,document.fullscreenEnabled&&e.canShowFullScreen&&!e.videoPreviewMode&&Rt.createElement(pi,{color:"secondary",onClick:()=>l()},document.fullscreenElement==null?Rt.createElement(kA,{"aria-label":"Full Screen",titleAccess:wn.getTranslation("Button.FullScreen",e.preferredLanguages,"Full Screen")}):Rt.createElement(CA,{"aria-label":"Exit Full Screen",titleAccess:wn.getTranslation("Button.ExitFullScreen",e.preferredLanguages,"Exit Full Screen")}))))};function Kf(e,t){return Math.round(e/t)*t}function LA(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 qf=!1,wh=e=>{};function BA(e){wh&&wh(e)}let _v=0,Vv=0;function Gv(){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 r=document.documentElement.clientWidth,l=document.documentElement.clientHeight;return e&&n.insertBefore(t,a),{width:r,height:l}}const zA=e=>{const[t,n]=R.useState(e.autoplay),a=e.centerVertically===void 0?!0:e.centerVertically;YS(Pt=>{Pt.pause?(qf=!_,$(!0)):Pt.resume&&qf?$(!1):Pt.play?($(!1),Pt.autoplay&&n(Pt.autoplay)):Pt.reset?(k(e.startPage??0),Oe.current&&Oe.current(e.startPage??0)):Pt.controlAction&&st(Pt.controlAction)});const[r,l]=R.useState(!1),[d,f]=R.useState(e.initiallyShowAppBar),[,p]=R.useState(0);R.useEffect(()=>{const Pt=()=>{f(!0),p(ne=>ne+1)};return bh.subscribe(Pt),()=>{bh.unsubscribe(Pt)}},[]);const[y,k]=R.useState(e.startPage??0),[E,N]=R.useState([""]),[I,L]=R.useState(!1),[K,J]=R.useState(!1),[F,G]=R.useState(""),[ot,dt]=R.useState("Device16x9Portrait");R.useEffect(()=>{f(e.initiallyShowAppBar)},[e.initiallyShowAppBar]),R.useEffect(()=>{d?VS():GS()},[d]),R.useEffect(()=>{$(e.paused)},[e.paused]);const[_,$]=R.useState(e.paused),[v,mt]=R.useState(!1),ft=wn.getBloomUiLanguage(),Lt=ft==="en"?[ft]:[ft,"en"],[Nt,At]=R.useState(Lt);R.useEffect(()=>{_||(qf=!1)},[_]);const[tt,H]=R.useState(!1),[s,ht]=R.useState(!1),[x,lt]=R.useState(!1),[bt,St]=R.useState(!1),[O,wt]=R.useState(!1),[xt,Ot]=R.useState(0),[Mt,Ht]=R.useState(9/16),Qt=[],[de,me]=R.useState(Qt),[Pe,ln]=R.useState(""),Oe=R.useRef(),[rn,Ve]=R.useState(!0),[kn,Ye]=R.useState(!1),[yn,Je]=R.useState(!1),[un,M]=R.useState(0),D=()=>{M(Pt=>Pt+1)},[Y,it]=R.useState("");R.useEffect(()=>{Xt()},[O,un,tt,e.useOriginalPageSize]),R.useEffect(()=>()=>{const Pt=document.getElementById("scale-style-sheet");Pt&&Pt.parentNode.removeChild(Pt)},[]);const vt=R.useRef(),st=Pt=>{switch(Pt){case"navigate-to-next-page":vt&&vt.current&&vt.current.slideNext();break;case"navigate-to-previous-page":vt&&vt.current&&vt.current.slidePrevious();break;default:console.log("'handleControlMessage' received an unknown message.");return}},Xt=()=>{const Pt=document.getElementsByClassName("swiper-slide-active")[0];let ne=null;if(Pt&&(ne=Pt.getElementsByClassName("bloom-page")[0]),!ne||!O){window.setTimeout(D,100);return}let xe=document.getElementById("scale-style-sheet");xe||(xe=document.createElement("style"),xe.setAttribute("type","text/css"),xe.setAttribute("id","scale-style-sheet"),document.head.appendChild(xe));let ve=xt,zt=Mt;const Ft=ap(ne);(e.url!==F||Ft!==ot)&&(G(e.url),dt(Ft),window.onresize=()=>{const{width:ta,height:Ta}=Gv();(Ta!==Vv||ta!==_v)&&D()},ve=Math.max(ne.offsetHeight,ne.offsetWidth),zt=Math.min(ne.offsetHeight,ne.offsetWidth)/ve,Ht(zt),Ot(ve));const{width:re,height:Le}=Gv();_v=re,Vv=Le;const Ae=re>Le;if(Ae!==tt){H(Ae);return}let cn=0,je=0;const $n=window.getComputedStyle(document.body);$n&&$n.marginTop&&(cn=parseInt($n.marginTop,10)),$n&&$n.marginBottom&&(je=parseInt($n.marginBottom,10));const Jn=ne.getAttribute("class").indexOf("Landscape")>=0,la=Jn?ve*zt:ve,ua=Jn?ve:ve*zt;let Qn=cn+je;if(d){const ta=document.getElementById("control-bar");ta&&(Qn+=ta.offsetHeight);const Ta=document.getElementById("pageNumberControl");Ta&&(Qn+=Ta.offsetHeight)}const ur=Le-Qn,Sn=Me({pageWidth:ua,pageHeight:la,desiredPageHeight:ur}),dn=Re(ua);let fn=Math.min(Sn,dn);const ca=la*fn;let zn=ca*zt/fn;Jn&&(zn=ca/zt/fn);const wi=re/fn-zn;let $a="",Tn=Math.max((re-ua*fn)/2,0);e.roundMarginToNearestK&&(Tn=Kf(Tn,e.roundMarginToNearestK));const cr=Tn,dr=fn,_r=30;if(wi>100*2)$a="largeOutsideButtons";else if(wi>_r*2)$a="smallOutsideButtons";else if(re>407&&navigator.userAgent.includes("Chrome")&&!e.hideSwiperButtons){const Ta=new RegExp(" Chrome/([0-9]+).").exec(navigator.userAgent),fr=parseInt(Ta[1]);fr&&fr<90&&(fn*=.9,Tn=Math.max((re-ua*fn)/2,0),$a="smallOutsideButtons extraScalingForChrome85Bug")}$a!==Y&&it($a);let Ri="";if(a){const ta=(Le-ca-Qn)/2;ta>0&&(Ri=`translate(0, ${ta.toFixed(0)}px) `)}xe.innerText=`.bloomPlayer {
|
|
7982
|
+
`,"").replace("\r","")}function DM(e){const t=e.lastIndexOf("/"),n=e.lastIndexOf("%2f");let a;t>n?a=e.substring(t+1,e.length):a=e.substring(n+3,e.length);const r=a.endsWith(".htm"),l=r?e:e+"/"+a+".htm",d=r?e.substring(0,Math.max(t,n)):e;return{urlOfBookHtmlFile:l,urlPrefix:d}}function Wu(e,t){return t+"/"+e}async function RM(e,t){const n=zi.get(Wu(".distribution",t)).then(k=>k,k=>({data:""})),a=zi.get(e),r=zi.get(Wu("meta.json",t)),[l,d,f]=await Promise.all([a,r,n]);return{bookHtmlElement:new DOMParser().parseFromString(l?.data,"text/html").documentElement,metaDataObject:d?.data,distributionSource:f.data}}function jM(e){const t={};for(let n=0;n<e.attributes.length;n++)t[e.attributes.item(n).nodeName]=e.attributes.item(n).nodeValue;return t}function OM(e,t){const n=e.ownerDocument.evaluate(".//*[@src]",e,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(let l=0;l<n.snapshotLength;l++){const d=n.snapshotItem(l);if(!d)continue;const f=d.getAttribute("src"),p=Wu(f,t);d.setAttribute("src",p)}const a=e.ownerDocument.evaluate(".//*[@style]",e,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null),r=new RegExp(/background-image:url\(['"](.*)['"]\)/);for(let l=0;l<a.snapshotLength;l++){const d=a.snapshotItem(l);if(!d)continue;const f=d.getAttribute("style")||"",p=r.exec(f);if(!p)continue;const y=Wu(p[1],t),k=f.replace(r,"");d.setAttribute("style",k),d.setAttribute("data-background",y),d.classList.add("swiper-lazy")}}function ap(e){const n=(e.getAttribute("class")||"").match(/\b\S*?(Portrait|Landscape)\b/);return n&&n.length?n[0]:""}function KM(e,t,n,a,r){let l=!1;const d=ap(e);if(d){l=t?n:d.endsWith("Landscape");let f="";a?f=l?r.replace("Portrait","Landscape"):r.replace("Landscape","Portrait"):f=l?"Device16x9Landscape":"Device16x9Portrait",d!==f&&(e.classList.remove(d),e.classList.add(f))}return l}function qM(e,t){e.querySelectorAll(".coverBottomBookTopic, .coverBottomLangName").forEach(n=>{t||n.classList.contains("bloom-content1")?n.classList.remove("do-not-display"):n.classList.add("do-not-display")})}function $M(e){const t=e.getElementsByClassName("bloom-canvas");if(t&&t.length>0)return Array.from(t);const n=e.getElementsByClassName("bloom-imageContainer");return Array.from(n).filter(a=>a.parentElement.closest(".bloom-imageContainer")===null)}function HM(e,t){if(!(!t||!e))try{const n=t;$M(e).forEach(a=>{Array.from(a.querySelectorAll(cl)).forEach(l=>{const d=Array.from(l.getElementsByClassName("bloom-editable")).find(f=>f.getAttribute("lang")===n);if(d){const f=d.getAttribute("data-bubble-alternate");if(f){const p=JSON.parse(f.replace(/`/g,'"'));l.setAttribute("style",p.style)}}});const r=Array.from(a.getElementsByClassName("comical-alternate")).find(l=>l.getAttribute("data-lang")===n);if(r){const l=a.getElementsByClassName("comical-generated")[0];l&&(l.classList.remove("comical-generated"),l.classList.add("comical-alternate"),l.style.display="none"),r.classList.remove("comical-alternate"),r.classList.add("comical-generated"),r.style.removeProperty("display")}})}catch(n){console.error(n)}}function FM(e,t){return e.localeCompare(t,"en-US",{sensitivity:"accent"})===0}function WM(e,t,n,a){if(!t||!e)return;const r=n[0]===t||!t,l=t,d=e.ownerDocument.evaluate(".//div[contains(@class, 'bloom-translationGroup')]",e,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null),f="bloom-visibility-code-on";for(let p=0;p<d.snapshotLength;p++){const y=d.snapshotItem(p),k=y.getAttribute("data-default-languages"),E=k?k.split(/,| /):[],N=E==null||E.length===0||!E[0]||E.includes("V")||E.includes("L1")||FM(E[0],"auto"),I=y.childNodes;for(let L=0;L<I.length;L++){const K=I.item(L);!K||!K.classList||!K.classList.contains("bloom-editable")||(a&&K.setAttribute("data-original-class",K.getAttribute("class")||""),r?K.setAttribute("class",K.getAttribute("data-original-class")||""):N&&(K.getAttribute("lang")===l?(K.classList.add(f),Array.from(K.classList).forEach(F=>{F.startsWith("bloom-content")&&K.classList.remove(F)}),K.classList.add("bloom-content1"),K.classList.add("bloom-contentFirst")):K.classList.remove(f)))}}}const oc=[];function _M(){return oc.length>0}function VM(e){const t=oc.pop();if(t)return{bookUrl:e===t.bookId?void 0:yh(t.bookId),pageId:t.pageId}}function GM(e,t,n){const a=e.target.closest("[href], [data-href]");if(!a)return;e.preventDefault(),e.stopPropagation();const r=(a.getAttribute("href")||a.getAttribute("data-href"))??void 0;if(!r)return;if(r.startsWith("http://")||r.startsWith("https://")){window.open(r,"_blank","noreferrer");return}let l,d;if(r==="back"){const p=oc.pop();return p?{bookUrl:t===p.bookId?void 0:yh(p.bookId),pageId:p.pageId}:void 0}else if(r.startsWith("/book/")){const p=UM(r);l=p.bookId,d=p.pageId,p.bookId===t&&(l=void 0)}else r.startsWith("#")&&(d=r.substring(1));const f=n();if(l)return Lv(t,f),{bookUrl:yh(l),pageId:d};if(d)return Lv(t,f),{pageId:d}}function Lv(e,t,n){oc.push({bookId:e,pageId:t})}function yh(e){return`/book/${e}/index.htm`}function UM(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 YM="2.22.0",XM={version:YM},nr="#d65649",ZM="#2e2e2e",JM="#febf00",$b=ll({palette:{primary:{main:ZM,contrastText:nr},secondary:{main:nr}}});function Hb(){var e=XM.version;return e}const QM=({getBookInstanceId:e})=>{const[t,n]=R.useState(!1),a=Hb(),r=new Date("2026-10-22T17:51:41.146Z").toLocaleDateString();if(R.useEffect(()=>{const d=p=>{p.key==="Control"&&n(!0)},f=p=>{p.key==="Control"&&n(!1)};return window.addEventListener("keydown",d),window.addEventListener("keyup",f),()=>{window.removeEventListener("keydown",d),window.removeEventListener("keyup",f)}},[]),!t)return null;const l=e?.();return Rt.createElement("div",{className:"diagnostic-info-control",style:{color:nr,fontFamily:"sans-serif",padding:"5px",zIndex:1e3,lineHeight:"1.5"}},Rt.createElement("div",null,"Bloom Player v",a," (built ",r,")"),Rt.createElement("div",null,"Book ID: ",l??""))},tA=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,Bv=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(tA);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},zv=e=>e==="*"||e==="x"||e==="X",Iv=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},eA=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],nA=(e,t)=>{if(zv(e)||zv(t))return 0;const[n,a]=eA(Iv(e),Iv(t));return n>a?1:n<a?-1:0},Dv=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const a=nA(e[n]||"0",t[n]||"0");if(a!==0)return a}return 0},Rv=(e,t)=>{const n=Bv(e),a=Bv(t),r=n.pop(),l=a.pop(),d=Dv(n,a);return d!==0?d:r&&l?Dv(r.split("."),l.split(".")):r||l?r?-1:1:0},bh=new rr;class ip extends R.Component{constructor(t,n){super(t,n),this.activityManager=new aP,this.initialPages=["loading..."],this.initialStyleRules="",this.originalPageClass="Device16x9Portrait",this.bookInfo=new vh,this.bookInteraction=new LM,this.mustUseOriginalPageSize=!1,this.indicesOfPagesWhereWeShouldPreserveDOMState={},this.startingUpSwiper=!0,this.pendingTimeouts=new Set,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.currentPage=null,this.currentPageHidesNavigationButtons=!1,this.handleWindowFocusEvent=()=>this.handleWindowFocus(),this.handleWindowBlurEvent=()=>this.handleWindowBlur(),this.handlePointerDownCapture=r=>{(r.target.closest("[href], [data-href]")||r.target.closest(".bloom-videoContainer")&&!r.target.closest("[data-draggable-id]"))&&(r.stopPropagation(),r.preventDefault())},this.handleDragStartCapture=r=>{this.activityManager.getActivityAbsorbsDragging()||r.preventDefault()},this.handleDocumentLevelKeyDown=r=>{r.key==="Home"&&(this.goToFirstPage(),r.preventDefault()),r.key==="End"&&(this.goToLastPage(),r.preventDefault())},this.distributionSource="",this.finishUpCalled=!1,this.hasImageDescriptions=!1,this.handlePageVideoComplete=r=>{r.page===this.currentPage&&this.playAudioAndAnimation(r.page)},this.handlePlayFailed=()=>{this.setState({inPauseForced:!0}),this.props.setForcedPausedCallback&&this.props.setForcedPausedCallback(!0)},this.handlePlayUnblocked=()=>{this.state.inPauseForced&&this.props.setForcedPausedCallback&&this.props.setForcedPausedCallback(!1),this.setState({inPauseForced:!1})},this.handlePlayCompleted=()=>{Yn(Cn.MediaFinished),this.props.imageDescriptionCallback(!1)},this.handleToggleImageDescription=r=>{this.props.imageDescriptionCallback(r)},this.handlePageNarrationComplete=r=>{if(r&&(Yn(Cn.MediaFinished),this.shouldAutoPlay())){const l=this.props.autoplayCount??0,d=this.state.startPageIndex??0,f=this.swiperInstance.slides.length-1;let p=this.props.autoplayCount?Math.min(d+l-1,f):f;this.swiperInstance.activeIndex>=p?(this.music.pause(),this.props.shouldReportSoundLog&&aS(),eS(),FS({})):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,this.legacyQuestionHandler=new rP(t.locationOfDistFolder)}setPlayerTimeout(t,n){const a=window.setTimeout(()=>{this.pendingTimeouts.delete(a),t()},n);this.pendingTimeouts.add(a)}componentDidMount(){wn.setUp(),Q0(this),window.addEventListener("focus",this.handleWindowFocusEvent),window.addEventListener("blur",this.handleWindowBlurEvent),document.addEventListener("keydown",this.handleDocumentLevelKeyDown),document.addEventListener("pointerdown",this.handlePointerDownCapture,{capture:!0}),document.addEventListener("dragstart",this.handleDragStartCapture,{capture:!0}),this.componentDidUpdate(this.props,this.state)}CanGoBack(){return _M()}HandleBackButtonClickedIfHavePlayerHistory(){const t=this.getBookIdFromBookUrlForHistory(this.state.bookUrl)||this.bookInfo.bookInstanceId,n=VM(t);return n?(this.navigate(n.bookUrl,n.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)}}getBookIdFromBookUrlForHistory(t){if(t)try{const a=new URL(t,window.location.href).pathname.match(/^\/book\/([^/]+)\/index\.htm$/i);return a?a[1]:void 0}catch{return}}handleWindowFocus(){const t=localStorage.getItem(Iu),n=localStorage.getItem(Am);t&&n==this.sourceUrl&&(this.bookInteraction.beginReadTime=Date.now()-parseInt(t,10))}handleWindowBlur(){const t=Date.now()-this.bookInteraction.beginReadTime;localStorage.setItem(Iu,t.toString()),localStorage.setItem(Am,this.sourceUrl)}getRequiredVersionMessage(t){const n=t.querySelector('meta[name="FeatureRequirement"]')?.getAttribute("content");if(!n)return"";const a=/BloomPlayerMinVersion":"(.*?)".*?"FeatureId":"(.*?)"/g;let r,l=null,d=null;for(;(r=a.exec(n))!==null;){const p=r[1];(!l||Rv(p,l)>0)&&(l=p,d=r[2])}if(!l||!d)return"";const f=Hb();if(Rv(f,l)>=0)return"";if(window.location.hostname.toLowerCase().indexOf("bloomlibrary.org")>=0)return wn.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}",d).replace("{hostname}",window.location.hostname);{let p=ja("host","");switch(p){case"bloomreader":p="Bloom Reader";break;case"bloompubviewer":p="BloomPUB Viewer";break;case"readerapp":p="";break}return p?wn.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}",d).replace("{host}",p):wn.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}",d)}}componentDidUpdate(t,n){try{if(!this.props.url||this.state.loadFailed&&n.bookUrl===this.state.bookUrl)return;this.initializeMedia();const a=this.preprocessUrl();if(a&&a!=="/working"&&a!==this.sourceUrl){this.finishUpCalled=!1,this.setState({isLoading:!0,loadFailed:!1}),this.metaDataObject=void 0,this.htmlElement=void 0,this.sourceUrl=a;const{urlOfBookHtmlFile:r,urlPrefix:l}=DM(this.sourceUrl);this.urlPrefix=l,this.music.urlPrefix=l,ix(l),RM(r,l).then(d=>{const{bookHtmlElement:f}=d;this.metaDataObject=d.metaDataObject,this.distributionSource=d.distributionSource;const p=this.getRequiredVersionMessage(f.ownerDocument);this.setState({requiredVersion:p});const y=f.getElementsByTagName("body")[0];this.mustUseOriginalPageSize=this.computeMustUseOriginalPageSize(y),this.bookInfo.setSomeBookInfoFromBody(y),this.localizeOnce(),this.props.shouldReportSoundLog&&(this.videoList=this.getVideoList(f.ownerDocument)),this.animation.PlayAnimations=this.bookInfo.playAnimations,this.setState({importedBodyAttributes:jM(y)}),this.makeNonEditable(y),this.htmlElement=f;const k=f.getElementsByClassName("bloom-page")[0];this.originalPageClass="Device16x9Portrait",k&&(this.originalPageClass=ap(k)),this.legacyQuestionHandler.generateQuizPagesFromLegacyJSON(this.urlPrefix,y,this.originalPageClass,()=>{this.finishUp()})}).catch(d=>this.HandleLoadingError(d))}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 l=0;l<r.length;l++){const d=r[l];this.applyPageSizeClass(d)}}!this.state.isLoading&&(n.isLoading||t.activeLanguageCode!==this.props.activeLanguageCode)&&(WM(this.htmlElement,this.props.activeLanguageCode,this.bookInfo.getPreferredTranslationLanguages(),n.isLoading),HM(this.htmlElement,this.props.activeLanguageCode),this.finishUpCalled&&this.finishUp(!1)),this.state.currentSwiperIndex!=n.currentSwiperIndex&&this.rootDiv?.querySelectorAll(np).forEach(r=>{const l=dl(r).getNiceScroll();l&&l.length>0&&l.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(a){this.setState({isLoading:!1,loadFailed:!0,loadErrorHtml:a.message})}}HandleLoadingError(t){let a=`<p>There was a problem displaying this book: ${t.message}<p>`;const r=!!t.config?.url&&new URL(t.config.url,window.location.href).pathname.startsWith("/book/");r?a="<p>We could not find that book.</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'>${aA(t.config.url)}</p>`)),this.setState({isLoading:!1,loadFailed:!0,loadErrorHtml:a}),r&&bh.raise()}async finishUp(t=!0){if(this.finishUpCalled=!0,!this.htmlElement)return;Js.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 r=this.bookInfo.getPreferredTranslationLanguages(),l=r[0]===this.props.activeLanguageCode||!this.props.activeLanguageCode,d={},f=y=>y.classList.contains("bloom-interactive-page")||y.classList.contains("simple-comprehension-quiz")||y.getAttribute("data-activity")=="iframe"||y.getElementsByClassName("questions").length>0;d.length=0,d.cover=0;for(let y=0;y<n.length;y++){const k=n[y],E=k.getAttribute("id");E&&(d[E]=y);const N=this.applyPageSizeClass(k);k.setAttribute("data-index",y.toString(10)),y===0&&this.props.reportBookProperties&&this.props.reportBookProperties({landscape:N,canRotate:this.bookInfo.canRotate,preferredLanguages:r,pageNumbers:Array.from(n).map(L=>L.getAttribute("data-page-number")??""),isRtl:this.metaDataObject.isRtl,internalUrl:this.state.bookUrl}),t&&(OM(k,this.urlPrefix),k.classList.contains("numberedPage")&&(this.indexOflastNumberedPage=y,this.bookInfo.totalNumberedPages++),(k.getAttribute("data-analyticscategories")||k.getAttribute("data-analyticsCategories"))==="comprehension"&&this.bookInfo.questionCount++),qM(k,l);const I=f(k);I&&this.activityManager.initializePageHtml(this.urlPrefix,k,a.length),(!this.props.skipActivities||!I)&&a.push(k.outerHTML)}if(t){const y=this.htmlElement.getElementsByTagName("head")[0];this.bookInfo.setSomeBookInfoFromHead(y);const k=this.htmlElement.getElementsByTagName("body")[0];if(this.metaDataObject&&(this.bookInfo.setSomeBookInfoFromMetadata(this.metaDataObject,k),this.reportBookOpened(k)),this.props.controlsCallback){const E=ol.createLangDataArrayFromDomAndMetadata(k,this.metaDataObject);this.hasImageDescriptions=iA(k),this.props.controlsCallback(E,this.hasImageDescriptions,N=>{this.swiperInstance?.slideTo(N)})}}if(t){var p;try{p=await BM(this.htmlElement,this.urlPrefix,this.bookInfo,()=>this.legacyQuestionHandler.getPromiseForAnyQuizCss())}catch(y){this.HandleLoadingError(y),p=""}if(this.startingUpSwiper=!0,this.state.startPageId){if(d[this.state.startPageId]===void 0)throw new Error(`Page ID ${this.state.startPageId} not found in the current pageIdToIndexMap`);this.setState({startPageIndex:d[this.state.startPageId]})}this.setState({pages:a,pageIdToIndexMap:d,styleRules:p,isLoading:!1,currentSwiperIndex:this.state.startPageIndex??0})}else this.setState({pages:a,isLoading:!1});this.props.pageStylesAreNowInstalled(),t?this.setPlayerTimeout(()=>{this.setState({isFinishUpForNewBookComplete:!0});const y=this.startingUpSwiper;this.startingUpSwiper=!1;var k=this.state.startPageIndex??0;this.setIndex(k),this.showingPage(k),y&&this.swiperInstance&&this.addScrollbarsToPageWhenReady(this.swiperInstance.activeIndex);const E=document.getElementsByClassName("swiper-button-next")[0];document.getElementsByClassName("swiper-button-prev")[0]?.setAttribute("tabindex","4"),E?.setAttribute("tabindex","5"),this.shouldFocusNextButtonForNewBook()&&E?.focus()},500):this.currentPage&&this.setPlayerTimeout(()=>{this.setIndex(this.currentPageIndex),this.showingPage(this.currentPageIndex)},200)}shouldFocusNextButtonForNewBook(){return window.self===window.top||document.referrer.startsWith("http://localhost:")?!0:document.referrer.includes("bloomlibrary.org/player/")}localizeOnce(){!this.isPagesLocalized&&this.state.pages!==this.initialPages&&this.state.styleRules!==this.initialStyleRules&&(wn.localizePages(document.body,this.bookInfo.getPreferredTranslationLanguages()),this.isPagesLocalized=!0)}initializeMedia(){this.video||(this.video=new Js,this.video.PageVideoComplete=new rr,this.video.PageVideoComplete.subscribe(this.handlePageVideoComplete)),this.animation||(this.animation=new Eu),Oo.subscribe(this.handlePageNarrationComplete),al.subscribe(this.handlePlayFailed),_f.subscribe(this.handlePlayUnblocked),nl.subscribe(this.handlePlayCompleted),ex(this.storeAudioAnalytics.bind(this)),Ko.subscribe(this.handleToggleImageDescription.bind(this)),nx(()=>this.swiperInstance?.animating),ax(t=>My(t,1)),this.music||(this.music=new iS,this.music.PlayFailed=new rr,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():this.currentPage!==ay()||oa===Cn.MediaFinished?this.resetForNewPageAndPlay(this.currentPage):oa===Cn.VideoPaused?this.video.play():(Ax(),this.animation.resumeAnimation(),this.music.play())}computeMustUseOriginalPageSize(t){return this.props.useOriginalPageSize||t.querySelector(".bloom-canvas-element")?!0:!!t.querySelector(".bloom-textOverPicture")}componentWillUnmount(){this.pauseAllMultimedia(),window.removeEventListener("focus",this.handleWindowFocusEvent),window.removeEventListener("blur",this.handleWindowBlurEvent),document.removeEventListener("keydown",this.handleDocumentLevelKeyDown),document.removeEventListener("pointerdown",this.handlePointerDownCapture,{capture:!0}),document.removeEventListener("dragstart",this.handleDragStartCapture,{capture:!0}),this.unsubscribeAllEvents(),this.pendingTimeouts.forEach(t=>window.clearTimeout(t)),this.pendingTimeouts.clear(),tx(this)}unsubscribeAllEvents(){this.video.PageVideoComplete.unsubscribe(this.handlePageVideoComplete),Oo.unsubscribe(this.handlePageNarrationComplete),al.unsubscribe(this.handlePlayFailed),_f.unsubscribe(this.handlePlayUnblocked),nl.unsubscribe(this.handlePlayCompleted),Ko.unsubscribe(this.handleToggleImageDescription)}pauseAllMultimedia(){oa===Cn.VideoPlaying?this.video.pause():oa===Cn.AudioPlaying&&(Nx(),this.animation.PauseAnimation()),this.music.pause()}reportBookOpened(t){const n=this.bookInfo.getAmbientAnalyticsProps();this.distributionSource&&(n.distributionSource=this.distributionSource),$S(n),Ny("BookOrShelf opened",{})}sendUpdateOfBookProgressReportToExternalContext(){const t=this.bookInteraction.getProgressReportPropertiesForAnalytics();WS("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")}applyPageSizeClass(t){return KM(t,this.bookInfo.canRotate,this.props.landscape,this.mustUseOriginalPageSize,this.originalPageClass)}goToFirstPage(){this.swiperInstance.slideTo(0)}goToLastPage(){this.swiperInstance.slideTo(99999)}getRootDiv(){return this.rootDiv}slideNext(){this.swiperInstance&&this.swiperInstance.slideNext()}slidePrevious(){this.swiperInstance&&this.swiperInstance.slidePrev()}getBookInstanceId(){return this.bookInfo.bookInstanceId}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(){const t=this.activityManager.getActivityAbsorbsDragging();if(this.state.isLoading)return R.createElement(PP,{className:"loadingSpinner",color:"secondary"});if(this.state.loadFailed)return R.createElement(R.Fragment,null,R.createElement(p1,{className:"loadFailedIcon",color:"secondary"}),R.createElement("div",{className:"loadErrorMessage",dangerouslySetInnerHTML:{__html:this.state.loadErrorHtml}}));if(this.state.requiredVersion)return R.createElement("div",{className:"requiredVersionMessage"},this.state.requiredVersion);cx(this.props.shouldReadImageDescriptions&&this.hasImageDescriptions);const n={getSwiper:r=>{this.swiperInstance=r,this.metaDataObject?.isRtl&&this.swiperInstance&&(this.swiperInstance.el?.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=this.state.startPageIndex?.toString());let a="bloomPlayer";return this.currentPageHidesNavigationButtons?a+=" hideNextPrevButtons extraScalingForChrome85Bug":(this.props.outsideButtonPageClass&&(a+=" "+this.props.outsideButtonPageClass),t&&(a+=" showNavigationButtonsEvenOnTouchDevices")),R.createElement("div",{"aria-label":"Player Content",className:a+(this.props.extraClassNames?" "+this.props.extraClassNames:""),ref:r=>this.rootDiv=r},R.createElement(X0,{key:this.shouldAutoPlay()?"fade":"slide",...n,effect:this.shouldAutoPlay()?"fade":"slide"},this.state.pages.map((r,l)=>{const f=Math.abs(l-this.state.currentSwiperIndex)<2||this.indicesOfPagesWhereWeShouldPreserveDOMState[l];return R.createElement("div",{key:l,className:"page-preview-slide",onClick:p=>this.handlePageClick(p)},f?R.createElement(R.Fragment,null,R.createElement("style",{scoped:!0},this.state.styleRules),R.createElement("div",{...this.state.importedBodyAttributes,className:`bloomPlayer-page ${this.bookInfo.hasAppearanceSystem?"appearance-system":""} ${this.state.importedBodyAttributes.class??""}`,dangerouslySetInnerHTML:{__html:r}})):"")})),R.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})}},R.createElement(pi,{className:"nav-button",disableRipple:!0},this.metaDataObject.isRtl?R.createElement(hv,{titleAccess:wn.getTranslation("Button.Prev",this.props.preferredUiLanguages,"Previous Page")}):R.createElement(dv,{titleAccess:wn.getTranslation("Button.Prev",this.props.preferredUiLanguages,"Previous Page")}))),R.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})}},R.createElement(pi,{className:"nav-button",disableRipple:!0},this.metaDataObject.isRtl?R.createElement(dv,{titleAccess:wn.getTranslation("Button.Next",this.props.preferredUiLanguages,"Next Page")}):R.createElement(hv,{titleAccess:wn.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.applyPageSizeClass(n),this.animation.HandlePageBeforeVisible(n),this.video.hidingPage(),this.video.HandlePageBeforeVisible(n),Bx(),this.music.hidingPage(),oa===Cn.AudioPaused||oa===Cn.VideoPaused?Yn(Cn.NewPageMediaPaused):(this.skipAutoPlay=!0,xx(),this.skipAutoPlay=!1,Yn(Cn.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")}getCurrentPage(){return this.currentPage}isXmatterPage(){const t=this.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){this.swiperInstance&&this.setPlayerTimeout(()=>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),this.setPlayerTimeout(()=>{this.currentPage=n,this.currentPageIndex=t,this.currentPageHasVideo=Js.pageHasVideo(n),this.applyPageSizeClass(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,tm(n),this.props.paused)),this.isXmatterPage()||(this.bookInteraction.pageShown(t),t===this.indexOflastNumberedPage&&(this.bookInteraction.lastNumberedPageWasRead=!0)),this.props.reportPageProperties&&this.props.reportPageProperties({hasAudio:Mx(n),hasMusic:this.music.pageHasMusic(n),hasVideo:this.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(l=>{l.addEventListener("click",Xh)})},0)}addScrollbarsToPageWhenReady(t){if(this.state.isLoading||this.startingUpSwiper)return;const n=this.getPageAtSwiperIndex(t);if(!n){this.swiperInstance&&this.setPlayerTimeout(()=>this.addScrollbarsToPageWhenReady(t),50);return}O1(n,ip.handlePointerMoveEvent)}static handlePointerMoveEvent(t){t.pointerType==="mouse"&&t.target?.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(this.currentPageIndex)),this.sendUpdateOfBookProgressReportToExternalContext()))}storeVideoAnalytics(t){t<.001||(this.bookInteraction.totalVideoDuration+=t,!this.bookInteraction.reportedVideoOnCurrentPage&&!this.isXmatterPage()&&(this.bookInteraction.reportedVideoOnCurrentPage=!0,this.bookInteraction.videoPageShown(this.currentPageIndex)),this.sendUpdateOfBookProgressReportToExternalContext())}resetForNewPageAndPlay(t){if(this.props.paused){this.video.HandlePageVisible(t,()=>this.props.paused);return}if(ny(t),this.currentPageHasVideo){const n=()=>{this.video.HandlePageVisible(t,()=>this.props.paused),this.music.pause()};if(Yn(Cn.VideoPlaying),!this.sentBloomNotification&&(this.sentBloomNotification=!0,this.props.shouldReportSoundLog)){Uf("/publish/av/startRecording",this.videoList).then(n);return}n()}else this.playAudioAndAnimation(t)}playAudioAndAnimation(t){if(this.activityManager.getActivityManagesSound()){this.activityManager.doInitialSoundAndAnimation();return}if(Yn(Cn.AudioPlaying),!t)return;const n=tm(t);this.animation.HandlePageDurationAvailable(t,n,this.props.paused);const a=()=>{Eu.pageHasAnimation(t)&&this.animation.HandlePageBeforeVisible(t),this.animation.HandlePageVisible(t,this.props.paused),ry(t,this.animation.animatableCanvas),this.music.HandlePageVisible(t)};if(!this.sentBloomNotification&&(this.sentBloomNotification=!0,this.props.shouldReportSoundLog)){Uf("/publish/av/startRecording",this.videoList).then(a);return}a()}getVideoList(t){let n="";for(const l of Array.from(t.getElementsByTagName("video"))){var a=l,r=a.getElementsByTagName("source")[0].getAttribute("src");n&&(n+="|"),n+=r}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=GM(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 aA(e){return e.replace("%23","#").replace(/[\u00A0-\u9999<>\&]/gim,t=>"&#"+t.charCodeAt(0)+";")}function iA(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 Os={},jv;function rA(){if(jv)return Os;jv=1;var e=Xa(),t=Za();Object.defineProperty(Os,"__esModule",{value:!0}),Os.default=void 0;var n=t(sa()),a=e(Ja()),r=(0,a.default)(n.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack");return Os.default=r,Os}var oA=rA();const sA=On(oA);var Ks={},Ov;function lA(){if(Ov)return Ks;Ov=1;var e=Xa(),t=Za();Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.default=void 0;var n=t(sa()),a=e(Ja()),r=(0,a.default)(n.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");return Ks.default=r,Ks}var uA=lA();const cA=On(uA);var qs={},Kv;function dA(){if(Kv)return qs;Kv=1;var e=Xa(),t=Za();Object.defineProperty(qs,"__esModule",{value:!0}),qs.default=void 0;var n=t(sa()),a=e(Ja()),r=(0,a.default)(n.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");return qs.default=r,qs}var fA=dA();const Fb=On(fA);var $s={},qv;function hA(){if(qv)return $s;qv=1;var e=Xa(),t=Za();Object.defineProperty($s,"__esModule",{value:!0}),$s.default=void 0;var n=t(sa()),a=e(Ja()),r=(0,a.default)(n.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");return $s.default=r,$s}var pA=hA();const gA=On(pA);var Hs={},$v;function mA(){if($v)return Hs;$v=1;var e=Xa(),t=Za();Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.default=void 0;var n=t(sa()),a=e(Ja()),r=(0,a.default)(n.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");return Hs.default=r,Hs}var vA=mA();const yA=On(vA);var Fs={},Hv;function bA(){if(Hv)return Fs;Hv=1;var e=Xa(),t=Za();Object.defineProperty(Fs,"__esModule",{value:!0}),Fs.default=void 0;var n=t(sa()),a=e(Ja()),r=(0,a.default)(n.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}),"Fullscreen");return Fs.default=r,Fs}var wA=bA();const kA=On(wA);var Ws={},Fv;function xA(){if(Fv)return Ws;Fv=1;var e=Xa(),t=Za();Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.default=void 0;var n=t(sa()),a=e(Ja()),r=(0,a.default)(n.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}),"FullscreenExit");return Ws.default=r,Ws}var SA=xA();const CA=On(SA);function TA(e){return Rt.createElement(dh,{...e,width:"21",height:"20",viewBox:"0 0 21 20"},Rt.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 _s={},Wv;function EA(){if(Wv)return _s;Wv=1;var e=Xa(),t=Za();Object.defineProperty(_s,"__esModule",{value:!0}),_s.default=void 0;var n=t(sa()),a=e(Ja()),r=(0,a.default)(n.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");return _s.default=r,_s}var PA=EA();const MA=On(PA),AA=e=>{const[t,n]=R.useState((e.languages.filter(d=>d.IsSelected)[0]||e.languages[0]).Code),a=d=>{const f=d.target.value;n(f),e.onClose(f)},r=()=>{e.onClose("")},l=()=>{const d=e.languages.map(f=>Rt.createElement("div",{className:"chooserItem",key:f.Code},Rt.createElement(rM,{value:f.Code,control:Rt.createElement(yM,null),label:f.Name,checked:f.Code===t}),Rt.createElement("span",{className:"spacer"}),Rt.createElement(MA,{className:"icon",visibility:f.HasAudio?"inherit":"hidden"})));return Rt.createElement("div",{className:"radioGroupDiv"},d)};return Rt.createElement(_P,{className:"languageMenu",onClose:r,"aria-labelledby":"language-menu-title",open:!0,scroll:"paper"},Rt.createElement(ZP,{id:"language-menu-title"},"Languages in this book:"),Rt.createElement(nM,{component:"fieldset"},Rt.createElement(bM,{className:"radioGroup","aria-label":"languages",name:"languages",value:t,onChange:a},l())),Rt.createElement(UP,null,Rt.createElement(kP,{onClick:r,color:"secondary"},"Close")))};var Kr=(e=>(e[e.showArrow=0]="showArrow",e[e.showEllipsis=1]="showEllipsis",e[e.showNothing=2]="showNothing",e))(Kr||{});const NA=e=>{const[t,n]=R.useState(!1),a="button"+(e.bookLanguages.length<2?" disabled":""),r=L=>{n(!1),L!==""&&(e.onLanguageChanged(L),d({lang:L}))},l=()=>{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(L){console.error("RequestFullScreen failed: ",L)}},d=L=>{if(!e.videoPreviewMode)return;const K={lang:e.activeLanguageCode,imageDescriptions:e.readImageDescriptions,...L};Uf("publish/av/videoSettings",encodeURIComponent(JSON.stringify(K)))},f=wn.getTranslation("Audio.Pause",e.preferredLanguages,"Pause"),p=e.paused?Rt.createElement(Fb,{titleAccess:e.playLabel}):Rt.createElement(gA,{titleAccess:f}),y=wn.getTranslation("Button.ReadImageDescriptions",e.preferredLanguages,"Read Image Descriptions"),k=wn.getTranslation("Button.IgnoreImageDescriptions",e.preferredLanguages,"Ignore Image Descriptions"),E=ll({palette:{primary:{main:JM},secondary:{main:$b.palette.secondary.main}}}),N=Rt.createElement(Ou,{theme:E},Rt.createElement(TA,{"aria-label":e.readImageDescriptions?"Read image descriptions":"Ignore image descriptions",titleAccess:e.readImageDescriptions?k:y,opacity:e.readImageDescriptions?1:.38,color:e.nowReadingImageDescription?"primary":"secondary"})),I=e.extraButtons?e.extraButtons.map(L=>Rt.createElement(pi,{key:L.id,color:"secondary",title:L.description,onClick:()=>bi({messageType:L.id})},Rt.createElement("img",{style:{maxHeight:"24px",maxWidth:"24px"},src:L.iconUrl}))):void 0;return Rt.createElement(dP,{color:"primary",className:`control-bar ${e.visible?", visible":""}`,id:"control-bar",elevation:0,position:"relative"},Rt.createElement(NM,null,!e.videoPreviewMode&&Rt.createElement(pi,{color:"secondary",onClick:()=>{e.backClicked&&e.backClicked()},"data-testid":"history-back-button",disabled:e.getBackButtonState()===2},e.getBackButtonState()===0?Rt.createElement(sA,{"aria-label":"Go Back",titleAccess:wn.getTranslation("Button.Back",e.preferredLanguages,"Back")}):e.getBackButtonState()===1&&Rt.createElement(cA,{"aria-label":"More Menu",titleAccess:wn.getTranslation("Button.More",e.preferredLanguages,"More")})),Rt.createElement("div",{className:"filler"}),e.bookHasImageDescriptions&&Rt.createElement(pi,{onClick:()=>{e.onReadImageDescriptionToggled(),d({imageDescriptions:!e.readImageDescriptions})}},N),e.bookLanguages.length>1&&Rt.createElement(pi,{className:a,"aria-label":"Choose Language",color:"secondary",onClick:()=>{n(!0)}},Rt.createElement(yA,{titleAccess:wn.getTranslation("Button.ChooseLanguage",e.preferredLanguages,"Choose Language")})),t&&Rt.createElement(AA,{languages:e.bookLanguages,onClose:r}),!e.videoPreviewMode&&Rt.createElement(pi,{color:"secondary","aria-label":"PlayPause",onClick:()=>{e.pausedChanged&&e.pausedChanged(!e.paused)}},e.showPlayPause?p:null),I,document.fullscreenEnabled&&e.canShowFullScreen&&!e.videoPreviewMode&&Rt.createElement(pi,{color:"secondary",onClick:()=>l()},document.fullscreenElement==null?Rt.createElement(kA,{"aria-label":"Full Screen",titleAccess:wn.getTranslation("Button.FullScreen",e.preferredLanguages,"Full Screen")}):Rt.createElement(CA,{"aria-label":"Exit Full Screen",titleAccess:wn.getTranslation("Button.ExitFullScreen",e.preferredLanguages,"Exit Full Screen")}))))};function Kf(e,t){return Math.round(e/t)*t}function LA(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 qf=!1,wh=e=>{};function BA(e){wh&&wh(e)}let _v=0,Vv=0;function Gv(){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 r=document.documentElement.clientWidth,l=document.documentElement.clientHeight;return e&&n.insertBefore(t,a),{width:r,height:l}}const zA=e=>{const[t,n]=R.useState(e.autoplay),a=e.centerVertically===void 0?!0:e.centerVertically;YS(Pt=>{Pt.pause?(qf=!_,$(!0)):Pt.resume&&qf?$(!1):Pt.play?($(!1),Pt.autoplay&&n(Pt.autoplay)):Pt.reset?(k(e.startPage??0),Oe.current&&Oe.current(e.startPage??0)):Pt.controlAction&&st(Pt.controlAction)});const[r,l]=R.useState(!1),[d,f]=R.useState(e.initiallyShowAppBar),[,p]=R.useState(0);R.useEffect(()=>{const Pt=()=>{f(!0),p(ne=>ne+1)};return bh.subscribe(Pt),()=>{bh.unsubscribe(Pt)}},[]);const[y,k]=R.useState(e.startPage??0),[E,N]=R.useState([""]),[I,L]=R.useState(!1),[K,J]=R.useState(!1),[F,G]=R.useState(""),[ot,dt]=R.useState("Device16x9Portrait");R.useEffect(()=>{f(e.initiallyShowAppBar)},[e.initiallyShowAppBar]),R.useEffect(()=>{d?VS():GS()},[d]),R.useEffect(()=>{$(e.paused)},[e.paused]);const[_,$]=R.useState(e.paused),[v,mt]=R.useState(!1),ft=wn.getBloomUiLanguage(),Lt=ft==="en"?[ft]:[ft,"en"],[Nt,At]=R.useState(Lt);R.useEffect(()=>{_||(qf=!1)},[_]);const[tt,H]=R.useState(!1),[s,ht]=R.useState(!1),[x,lt]=R.useState(!1),[bt,St]=R.useState(!1),[O,wt]=R.useState(!1),[xt,Ot]=R.useState(0),[Mt,Ht]=R.useState(9/16),Qt=[],[de,me]=R.useState(Qt),[Pe,ln]=R.useState(""),Oe=R.useRef(),[rn,Ve]=R.useState(!0),[kn,Ye]=R.useState(!1),[yn,Je]=R.useState(!1),[un,M]=R.useState(0),D=()=>{M(Pt=>Pt+1)},[Y,it]=R.useState("");R.useEffect(()=>{Xt()},[O,un,tt,e.useOriginalPageSize]),R.useEffect(()=>()=>{const Pt=document.getElementById("scale-style-sheet");Pt&&Pt.parentNode.removeChild(Pt)},[]);const vt=R.useRef(),st=Pt=>{switch(Pt){case"navigate-to-next-page":vt&&vt.current&&vt.current.slideNext();break;case"navigate-to-previous-page":vt&&vt.current&&vt.current.slidePrevious();break;default:console.log("'handleControlMessage' received an unknown message.");return}},Xt=()=>{const Pt=document.getElementsByClassName("swiper-slide-active")[0];let ne=null;if(Pt&&(ne=Pt.getElementsByClassName("bloom-page")[0]),!ne||!O){window.setTimeout(D,100);return}let xe=document.getElementById("scale-style-sheet");xe||(xe=document.createElement("style"),xe.setAttribute("type","text/css"),xe.setAttribute("id","scale-style-sheet"),document.head.appendChild(xe));let ve=xt,zt=Mt;const Ft=ap(ne);(e.url!==F||Ft!==ot)&&(G(e.url),dt(Ft),window.onresize=()=>{const{width:ta,height:Ca}=Gv();(Ca!==Vv||ta!==_v)&&D()},ve=Math.max(ne.offsetHeight,ne.offsetWidth),zt=Math.min(ne.offsetHeight,ne.offsetWidth)/ve,Ht(zt),Ot(ve));const{width:re,height:Le}=Gv();_v=re,Vv=Le;const Ae=re>Le;if(Ae!==tt){H(Ae);return}let cn=0,je=0;const $n=window.getComputedStyle(document.body);$n&&$n.marginTop&&(cn=parseInt($n.marginTop,10)),$n&&$n.marginBottom&&(je=parseInt($n.marginBottom,10));const Jn=ne.getAttribute("class").indexOf("Landscape")>=0,la=Jn?ve*zt:ve,ua=Jn?ve:ve*zt;let Qn=cn+je;if(d){const ta=document.getElementById("control-bar");ta&&(Qn+=ta.offsetHeight);const Ca=document.getElementById("pageNumberControl");Ca&&(Qn+=Ca.offsetHeight)}const ur=Le-Qn,Sn=Me({pageWidth:ua,pageHeight:la,desiredPageHeight:ur}),dn=Re(ua);let fn=Math.min(Sn,dn);const ca=la*fn;let zn=ca*zt/fn;Jn&&(zn=ca/zt/fn);const wi=re/fn-zn;let qa="",Tn=Math.max((re-ua*fn)/2,0);e.roundMarginToNearestK&&(Tn=Kf(Tn,e.roundMarginToNearestK));const cr=Tn,dr=fn,_r=30;if(wi>100*2)qa="largeOutsideButtons";else if(wi>_r*2)qa="smallOutsideButtons";else if(re>407&&navigator.userAgent.includes("Chrome")&&!e.hideSwiperButtons){const Ca=new RegExp(" Chrome/([0-9]+).").exec(navigator.userAgent),fr=parseInt(Ca[1]);fr&&fr<90&&(fn*=.9,Tn=Math.max((re-ua*fn)/2,0),qa="smallOutsideButtons extraScalingForChrome85Bug")}qa!==Y&&it(qa);let Ri="";if(a){const ta=(Le-ca-Qn)/2;ta>0&&(Ri=`translate(0, ${ta.toFixed(0)}px) `)}xe.innerText=`.bloomPlayer {
|
|
7983
7983
|
width: ${zn}px;
|
|
7984
7984
|
transform-origin: left top 0;
|
|
7985
7985
|
transform: ${Ri}scale(${fn});
|
|
@@ -7991,5 +7991,5 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
7991
7991
|
transform: ${Ri}scale(${dr});
|
|
7992
7992
|
}
|
|
7993
7993
|
}
|
|
7994
|
-
.bloomPlayer-page {height: ${ca/fn}px; overflow: hidden;}`,$1(ne,fn),r||l(!0)},Me=Pt=>{const{pageWidth:ne,pageHeight:xe,desiredPageHeight:ve}=Pt,zt=ve/xe;if(!e.roundPageWidthToNearestK)return zt;const Ft=ne*zt;return Kf(Ft,e.roundPageWidthToNearestK)/ne},Re=Pt=>{let ne=document.body.offsetWidth;return e.roundPageWidthToNearestK&&(ne=Kf(ne,e.roundPageWidthToNearestK)),ne/Pt};R.useEffect(()=>{v&&!_&&mt(!1);const Pt=document.getElementById("root");Pt&&(wh=ne=>{(ne.key===" "||ne.key==="ArrowRight"&&v)&&(ne.preventDefault(),ne.stopImmediatePropagation(),$(!_),mt(!1))},Pt.addEventListener("keydown",BA,{capture:!0}))});const ee=Pt=>{Pe!==Pt&&(ol.selectNewLanguageCode(de,Pt),ln(Pt))},Xe=(Pt,ne,xe)=>{Oe.current=xe;let ve;if(e.videoSettings){const zt=JSON.parse(e.videoSettings);ve=zt.lang,Ve(zt.imageDescriptions??!1)}e.initialLanguageCode&&(ve=e.initialLanguageCode),ve&&Pt.map(zt=>zt.Code).includes(ve)?ol.selectNewLanguageCode(Pt,ve):ve=Pt.length>0?Pt[0].Code:"",ln(ve),me(Pt),Ye(ne),e.videoPreviewMode&&!d&&f(!0)},Qe=wn.getTranslation("Audio.Play",Nt,"Play"),Kn=wn.getTranslation("Audio.ReadAloud",Nt,"Read Aloud"),Ze=s?Kn:Qe,{allowToggleAppBar:xn,showBackButton:Bn,backButtonIcon:qn,initiallyShowAppBar:Vt,locationOfDistFolder:Nn,hideFullScreenButton:X,...Ut}=e,ie=ll({palette:{primary:{main:"#000",contrastText:"#FFF"},secondary:{main:"#FFF"}}}),$e=Pt=>{Je(Pt)},Ge=gn({root:{color:nr,height:2,padding:"15px 0"},active:{},valueLabel:{left:"calc(50% - 16px)",top:-31,"& *":{background:nr,color:"white"}},track:{height:4,opacity:.5},rail:{height:2,opacity:.5,backgroundColor:nr},mark:{backgroundColor:"transparent"},markActive:{backgroundColor:"transparent"},markLabel:{top:20,fontSize:"0.6rem",color:nr},markLabelActive:{top:20,fontSize:"0.6rem",color:nr}})(PM),Ue=ll({direction:"rtl"}),ke=Rt.createElement(Ge,{valueLabelDisplay:"on",min:1,max:E.length,step:1,disabled:K,defaultValue:y+1,onChangeCommitted:(Pt,ne)=>{const xe=ne;xe-1!=y&&(k(xe-1),Oe.current&&Oe.current(xe-1))},valueLabelFormat:(Pt,ne)=>E[Pt-1],marks:[{value:E.length,label:E.length.toString()}]});return Rt.createElement("div",{className:"reactRoot"},v&&Rt.createElement(Rt.Fragment,null,Rt.createElement("div",{className:"bigButtonOverlay"},Rt.createElement(Ou,{theme:ie},Rt.createElement(pi,{className:"bigPlayButton",color:"secondary",onClick:()=>{mt(!1),$(!1)}},Rt.createElement(Fb,{titleAccess:Ze,preserveAspectRatio:"xMidYMid meet"})))),Rt.createElement("div",{className:"behindBigButtonOverlay"})),Rt.createElement(NA,{getBackButtonState:()=>vt.current?.CanGoBack()?Kr.showArrow:Bn?qn==="arrow"?Kr.showArrow:qn==="ellipsis"?Kr.showEllipsis:window===window.top?Kr.showArrow:Kr.showEllipsis:Kr.showNothing,visible:d,paused:_,pausedChanged:Pt=>$(Pt),playLabel:Ze,preferredLanguages:Nt,backClicked:()=>{vt.current?.HandleBackButtonClickedIfHavePlayerHistory()||_S()},showPlayPause:s||x||bt,bookLanguages:de,activeLanguageCode:Pe,onLanguageChanged:ee,canShowFullScreen:!e.hideFullScreenButton,extraButtons:e.extraButtons,bookHasImageDescriptions:kn,readImageDescriptions:rn,onReadImageDescriptionToggled:()=>Ve(!rn),nowReadingImageDescription:yn,videoPreviewMode:e.videoPreviewMode}),Rt.createElement(QM,{getBookInstanceId:()=>vt.current?.getBookInstanceId()??""}),Rt.createElement(ip,{ref:vt,url:e.url,landscape:tt,paused:_,preferredUiLanguages:Nt,pageStylesAreNowInstalled:()=>{wt(!0)},locationOfDistFolder:e.locationOfDistFolder,reportBookProperties:Pt=>{const ne={landscape:Pt.landscape,canRotate:Pt.canRotate};HS(ne),At([ft].concat(Pt.preferredLanguages)),N(Pt.pageNumbers),L(Pt.isRtl),Pt.internalUrl!=$f&&($f&&D(),$f=Pt.internalUrl)},controlsCallback:Xe,setForcedPausedCallback:Pt=>{Pt?($(Pt),mt(!0)):mt(!1)},reportPageProperties:Pt=>{ht(Pt.hasAudio),lt(Pt.hasMusic),St(Pt.hasVideo)},onContentClick:Pt=>{e.allowToggleAppBar&&(f(!d),window.setTimeout(D,300+50))},activeLanguageCode:Pe,useOriginalPageSize:e.useOriginalPageSize,hideSwiperButtons:e.hideSwiperButtons,autoplay:t,skipActivities:e.skipActivities,outsideButtonPageClass:Y,extraClassNames:r?"":"hidePlayer",shouldReadImageDescriptions:rn,imageDescriptionCallback:$e,pageChanged:Pt=>{Pt!=y&&k(Pt)},hidingNavigationButtonsCallback:Pt=>{Pt!=K&&J(Pt)},shouldReportSoundLog:e.shouldReportSoundLog,startPageIndex:e.startPage,autoplayCount:e.autoplayCount}),d&&!e.videoPreviewMode&&Rt.createElement("div",{id:"pageNumberControl",className:"MuiToolbar-gutters"},I?Rt.createElement(Ou,{theme:Ue},ke):ke))};function IA(){const e=
|
|
7995
|
-
//# sourceMappingURL=bloomPlayer.
|
|
7994
|
+
.bloomPlayer-page {height: ${ca/fn}px; overflow: hidden;}`,$1(ne,fn),r||l(!0)},Me=Pt=>{const{pageWidth:ne,pageHeight:xe,desiredPageHeight:ve}=Pt,zt=ve/xe;if(!e.roundPageWidthToNearestK)return zt;const Ft=ne*zt;return Kf(Ft,e.roundPageWidthToNearestK)/ne},Re=Pt=>{let ne=document.body.offsetWidth;return e.roundPageWidthToNearestK&&(ne=Kf(ne,e.roundPageWidthToNearestK)),ne/Pt};R.useEffect(()=>{v&&!_&&mt(!1);const Pt=document.getElementById("root");Pt&&(wh=ne=>{(ne.key===" "||ne.key==="ArrowRight"&&v)&&(ne.preventDefault(),ne.stopImmediatePropagation(),$(!_),mt(!1))},Pt.addEventListener("keydown",BA,{capture:!0}))});const ee=Pt=>{Pe!==Pt&&(ol.selectNewLanguageCode(de,Pt),ln(Pt))},Xe=(Pt,ne,xe)=>{Oe.current=xe;let ve;if(e.videoSettings){const zt=JSON.parse(e.videoSettings);ve=zt.lang,Ve(zt.imageDescriptions??!1)}e.initialLanguageCode&&(ve=e.initialLanguageCode),ve&&Pt.map(zt=>zt.Code).includes(ve)?ol.selectNewLanguageCode(Pt,ve):ve=Pt.length>0?Pt[0].Code:"",ln(ve),me(Pt),Ye(ne),e.videoPreviewMode&&!d&&f(!0)},Qe=wn.getTranslation("Audio.Play",Nt,"Play"),Kn=wn.getTranslation("Audio.ReadAloud",Nt,"Read Aloud"),Ze=s?Kn:Qe,{allowToggleAppBar:xn,showBackButton:Bn,backButtonIcon:qn,initiallyShowAppBar:Vt,locationOfDistFolder:Nn,hideFullScreenButton:X,...Ut}=e,ie=ll({palette:{primary:{main:"#000",contrastText:"#FFF"},secondary:{main:"#FFF"}}}),$e=Pt=>{Je(Pt)},Ge=gn({root:{color:nr,height:2,padding:"15px 0"},active:{},valueLabel:{left:"calc(50% - 16px)",top:-31,"& *":{background:nr,color:"white"}},track:{height:4,opacity:.5},rail:{height:2,opacity:.5,backgroundColor:nr},mark:{backgroundColor:"transparent"},markActive:{backgroundColor:"transparent"},markLabel:{top:20,fontSize:"0.6rem",color:nr},markLabelActive:{top:20,fontSize:"0.6rem",color:nr}})(PM),Ue=ll({direction:"rtl"}),ke=Rt.createElement(Ge,{valueLabelDisplay:"on",min:1,max:E.length,step:1,disabled:K,defaultValue:y+1,onChangeCommitted:(Pt,ne)=>{const xe=ne;xe-1!=y&&(k(xe-1),Oe.current&&Oe.current(xe-1))},valueLabelFormat:(Pt,ne)=>E[Pt-1],marks:[{value:E.length,label:E.length.toString()}]});return Rt.createElement("div",{className:"reactRoot"},v&&Rt.createElement(Rt.Fragment,null,Rt.createElement("div",{className:"bigButtonOverlay"},Rt.createElement(Ou,{theme:ie},Rt.createElement(pi,{className:"bigPlayButton",color:"secondary",onClick:()=>{mt(!1),$(!1)}},Rt.createElement(Fb,{titleAccess:Ze,preserveAspectRatio:"xMidYMid meet"})))),Rt.createElement("div",{className:"behindBigButtonOverlay"})),Rt.createElement(NA,{getBackButtonState:()=>vt.current?.CanGoBack()?Kr.showArrow:Bn?qn==="arrow"?Kr.showArrow:qn==="ellipsis"?Kr.showEllipsis:window===window.top?Kr.showArrow:Kr.showEllipsis:Kr.showNothing,visible:d,paused:_,pausedChanged:Pt=>$(Pt),playLabel:Ze,preferredLanguages:Nt,backClicked:()=>{vt.current?.HandleBackButtonClickedIfHavePlayerHistory()||_S()},showPlayPause:s||x||bt,bookLanguages:de,activeLanguageCode:Pe,onLanguageChanged:ee,canShowFullScreen:!e.hideFullScreenButton,extraButtons:e.extraButtons,bookHasImageDescriptions:kn,readImageDescriptions:rn,onReadImageDescriptionToggled:()=>Ve(!rn),nowReadingImageDescription:yn,videoPreviewMode:e.videoPreviewMode}),Rt.createElement(QM,{getBookInstanceId:()=>vt.current?.getBookInstanceId()??""}),Rt.createElement(ip,{ref:vt,url:e.url,landscape:tt,paused:_,preferredUiLanguages:Nt,pageStylesAreNowInstalled:()=>{wt(!0)},locationOfDistFolder:e.locationOfDistFolder,reportBookProperties:Pt=>{const ne={landscape:Pt.landscape,canRotate:Pt.canRotate};HS(ne),At([ft].concat(Pt.preferredLanguages)),N(Pt.pageNumbers),L(Pt.isRtl),Pt.internalUrl!=$f&&($f&&D(),$f=Pt.internalUrl)},controlsCallback:Xe,setForcedPausedCallback:Pt=>{Pt?($(Pt),mt(!0)):mt(!1)},reportPageProperties:Pt=>{ht(Pt.hasAudio),lt(Pt.hasMusic),St(Pt.hasVideo)},onContentClick:Pt=>{e.allowToggleAppBar&&(f(!d),window.setTimeout(D,300+50))},activeLanguageCode:Pe,useOriginalPageSize:e.useOriginalPageSize,hideSwiperButtons:e.hideSwiperButtons,autoplay:t,skipActivities:e.skipActivities,outsideButtonPageClass:Y,extraClassNames:r?"":"hidePlayer",shouldReadImageDescriptions:rn,imageDescriptionCallback:$e,pageChanged:Pt=>{Pt!=y&&k(Pt)},hidingNavigationButtonsCallback:Pt=>{Pt!=K&&J(Pt)},shouldReportSoundLog:e.shouldReportSoundLog,startPageIndex:e.startPage,autoplayCount:e.autoplayCount}),d&&!e.videoPreviewMode&&Rt.createElement("div",{id:"pageNumberControl",className:"MuiToolbar-gutters"},I?Rt.createElement(Ou,{theme:Ue},ke):ke))};function IA(){const e=ja("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)),US("error decoding extraButtons param "+e+": "+n),[]}}function DA(){const e=ja("backButtonIcon");return e==="arrow"||e==="ellipsis"?e:void 0}function RA(){ux(parseFloat(ja("defaultDuration","3.0")));const e=ja("autoplay","motion"),t=ja("start-page"),n=LA(t),a=n?parseInt(n):void 0,r=ja("autoplay-count"),l=t?parseInt(r):void 0,d=xa("paused",!1);lr.render(Rt.createElement(Ou,{theme:$b},Rt.createElement(zA,{url:ja("url"),allowToggleAppBar:xa("allowToggleAppBar",!1),showBackButton:xa("showBackButton",!1),backButtonIcon:DA(),initiallyShowAppBar:xa("initiallyShowAppBar",!0),centerVertically:xa("centerVertically",!0),initialLanguageCode:ja("lang"),videoSettings:ja("videoSettings"),paused:d,locationOfDistFolder:"",useOriginalPageSize:xa("useOriginalPageSize",!1),hideFullScreenButton:xa("hideFullScreenButton",!1),autoplay:e,skipActivities:xa("skipActivities",!1),videoPreviewMode:xa("videoPreviewMode",!1),hideSwiperButtons:xa("hideNavButtons",!1),extraButtons:IA(),shouldReportSoundLog:xa("reportSoundLog",!1),startPage:a,autoplayCount:l,roundPageWidthToNearestK:Mm("roundPageWidthToNearestK"),roundMarginToNearestK:Mm("roundMarginToNearestK")})),document.getElementById("root"))}let $f="";RA();
|
|
7995
|
+
//# sourceMappingURL=bloomPlayer.aSwt1opT.js.map
|