iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://www.hull.ac.uk/_jWMR6Q_b6fc1dc3-ed0b-44c4-8ae5-ddf86161373e/static/_index-B480k62V.js
var du=t=>{throw TypeError(t)};var Rs=(t,e,r)=>e.has(t)||du("Cannot "+r);var $=(t,e,r)=>(Rs(t,e,"read from private field"),r?r.call(t):e.get(t)),me=(t,e,r)=>e.has(t)?du("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),oe=(t,e,r,n)=>(Rs(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),fe=(t,e,r)=>(Rs(t,e,"access private method"),r);import{a as I,g as Do,c as W,j as w,d as Ef,E as sg,r as Cf,e as Bt}from"./index-Cf5smBgf.js";import{S as ag,q as fu,t as Qe,v as Pa,r as Si,b as og,w as Aa,x as pu,y as lg,g as ug,z as cg,A as hu,n as Pf,u as dg,k as fg}from"./cjs-v3n-_9h9.js";var Me,J,kn,Ee,Gt,wr,Ct,Ke,In,xr,Sr,Yt,Xt,Pt,Tr,ee,Kr,Ma,ka,Ia,Oa,La,_a,ja,Af,Tf,pg=(Tf=class extends ag{constructor(e,r){super();me(this,ee);me(this,Me);me(this,J);me(this,kn);me(this,Ee);me(this,Gt);me(this,wr);me(this,Ct);me(this,Ke);me(this,In);me(this,xr);me(this,Sr);me(this,Yt);me(this,Xt);me(this,Pt);me(this,Tr,new Set);this.options=r,oe(this,Me,e),oe(this,Ke,null),oe(this,Ct,fu()),this.options.experimental_prefetchInRender||$(this,Ct).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&($(this,J).addObserver(this),mu($(this,J),this.options)?fe(this,ee,Kr).call(this):this.updateResult(),fe(this,ee,Oa).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Na($(this,J),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Na($(this,J),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,fe(this,ee,La).call(this),fe(this,ee,_a).call(this),$(this,J).removeObserver(this)}setOptions(e,r){const n=this.options,i=$(this,J);if(this.options=$(this,Me).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Qe(this.options.enabled,$(this,J))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");fe(this,ee,ja).call(this),$(this,J).setOptions(this.options),n._defaulted&&!Pa(this.options,n)&&$(this,Me).getQueryCache().notify({type:"observerOptionsUpdated",query:$(this,J),observer:this});const s=this.hasListeners();s&&gu($(this,J),i,this.options,n)&&fe(this,ee,Kr).call(this),this.updateResult(r),s&&($(this,J)!==i||Qe(this.options.enabled,$(this,J))!==Qe(n.enabled,$(this,J))||Si(this.options.staleTime,$(this,J))!==Si(n.staleTime,$(this,J)))&&fe(this,ee,Ma).call(this);const a=fe(this,ee,ka).call(this);s&&($(this,J)!==i||Qe(this.options.enabled,$(this,J))!==Qe(n.enabled,$(this,J))||a!==$(this,Pt))&&fe(this,ee,Ia).call(this,a)}getOptimisticResult(e){const r=$(this,Me).getQueryCache().build($(this,Me),e),n=this.createResult(r,e);return mg(this,n)&&(oe(this,Ee,n),oe(this,wr,this.options),oe(this,Gt,$(this,J).state)),n}getCurrentResult(){return $(this,Ee)}trackResult(e,r){const n={};return Object.keys(e).forEach(i=>{Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),r==null||r(i),e[i])})}),n}trackProp(e){$(this,Tr).add(e)}getCurrentQuery(){return $(this,J)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const r=$(this,Me).defaultQueryOptions(e),n=$(this,Me).getQueryCache().build($(this,Me),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(e){return fe(this,ee,Kr).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),$(this,Ee)))}createResult(e,r){var E;const n=$(this,J),i=this.options,s=$(this,Ee),a=$(this,Gt),o=$(this,wr),u=e!==n?e.state:$(this,kn),{state:d}=e;let f={...d},c=!1,p;if(r._optimisticResults){const T=this.hasListeners(),_=!T&&mu(e,r),P=T&&gu(e,n,r,i);(_||P)&&(f={...f,...cg(d.data,e.options)}),r._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:m,errorUpdatedAt:h,status:g}=f;if(r.select&&f.data!==void 0)if(s&&f.data===(a==null?void 0:a.data)&&r.select===$(this,In))p=$(this,xr);else try{oe(this,In,r.select),p=r.select(f.data),p=hu(s==null?void 0:s.data,p,r),oe(this,xr,p),oe(this,Ke,null)}catch(T){oe(this,Ke,T)}else p=f.data;if(r.placeholderData!==void 0&&p===void 0&&g==="pending"){let T;if(s!=null&&s.isPlaceholderData&&r.placeholderData===(o==null?void 0:o.placeholderData))T=s.data;else if(T=typeof r.placeholderData=="function"?r.placeholderData((E=$(this,Sr))==null?void 0:E.state.data,$(this,Sr)):r.placeholderData,r.select&&T!==void 0)try{T=r.select(T),oe(this,Ke,null)}catch(_){oe(this,Ke,_)}T!==void 0&&(g="success",p=hu(s==null?void 0:s.data,T,r),c=!0)}$(this,Ke)&&(m=$(this,Ke),p=$(this,xr),h=Date.now(),g="error");const b=f.fetchStatus==="fetching",y=g==="pending",v=g==="error",x=y&&b,A=p!==void 0,M={status:g,fetchStatus:f.fetchStatus,isPending:y,isSuccess:g==="success",isError:v,isInitialLoading:x,isLoading:x,data:p,dataUpdatedAt:f.dataUpdatedAt,error:m,errorUpdatedAt:h,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:b,isRefetching:b&&!y,isLoadingError:v&&!A,isPaused:f.fetchStatus==="paused",isPlaceholderData:c,isRefetchError:v&&A,isStale:Fo(e,r),refetch:this.refetch,promise:$(this,Ct)};if(this.options.experimental_prefetchInRender){const T=O=>{M.status==="error"?O.reject(M.error):M.data!==void 0&&O.resolve(M.data)},_=()=>{const O=oe(this,Ct,M.promise=fu());T(O)},P=$(this,Ct);switch(P.status){case"pending":e.queryHash===n.queryHash&&T(P);break;case"fulfilled":(M.status==="error"||M.data!==P.value)&&_();break;case"rejected":(M.status!=="error"||M.error!==P.reason)&&_();break}}return M}updateResult(e){const r=$(this,Ee),n=this.createResult($(this,J),this.options);if(oe(this,Gt,$(this,J).state),oe(this,wr,this.options),$(this,Gt).data!==void 0&&oe(this,Sr,$(this,J)),Pa(n,r))return;oe(this,Ee,n);const i={},s=()=>{if(!r)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!$(this,Tr).size)return!0;const l=new Set(o??$(this,Tr));return this.options.throwOnError&&l.add("error"),Object.keys($(this,Ee)).some(u=>{const d=u;return $(this,Ee)[d]!==r[d]&&l.has(d)})};(e==null?void 0:e.listeners)!==!1&&s()&&(i.listeners=!0),fe(this,ee,Af).call(this,{...i,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&fe(this,ee,Oa).call(this)}},Me=new WeakMap,J=new WeakMap,kn=new WeakMap,Ee=new WeakMap,Gt=new WeakMap,wr=new WeakMap,Ct=new WeakMap,Ke=new WeakMap,In=new WeakMap,xr=new WeakMap,Sr=new WeakMap,Yt=new WeakMap,Xt=new WeakMap,Pt=new WeakMap,Tr=new WeakMap,ee=new WeakSet,Kr=function(e){fe(this,ee,ja).call(this);let r=$(this,J).fetch(this.options,e);return e!=null&&e.throwOnError||(r=r.catch(og)),r},Ma=function(){fe(this,ee,La).call(this);const e=Si(this.options.staleTime,$(this,J));if(Aa||$(this,Ee).isStale||!pu(e))return;const n=lg($(this,Ee).dataUpdatedAt,e)+1;oe(this,Yt,setTimeout(()=>{$(this,Ee).isStale||this.updateResult()},n))},ka=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval($(this,J)):this.options.refetchInterval)??!1},Ia=function(e){fe(this,ee,_a).call(this),oe(this,Pt,e),!(Aa||Qe(this.options.enabled,$(this,J))===!1||!pu($(this,Pt))||$(this,Pt)===0)&&oe(this,Xt,setInterval(()=>{(this.options.refetchIntervalInBackground||ug.isFocused())&&fe(this,ee,Kr).call(this)},$(this,Pt)))},Oa=function(){fe(this,ee,Ma).call(this),fe(this,ee,Ia).call(this,fe(this,ee,ka).call(this))},La=function(){$(this,Yt)&&(clearTimeout($(this,Yt)),oe(this,Yt,void 0))},_a=function(){$(this,Xt)&&(clearInterval($(this,Xt)),oe(this,Xt,void 0))},ja=function(){const e=$(this,Me).getQueryCache().build($(this,Me),this.options);if(e===$(this,J))return;const r=$(this,J);oe(this,J,e),oe(this,kn,e.state),this.hasListeners()&&(r==null||r.removeObserver(this),e.addObserver(this))},Af=function(e){Pf.batch(()=>{e.listeners&&this.listeners.forEach(r=>{r($(this,Ee))}),$(this,Me).getQueryCache().notify({query:$(this,J),type:"observerResultsUpdated"})})},Tf);function hg(t,e){return Qe(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function mu(t,e){return hg(t,e)||t.state.data!==void 0&&Na(t,e,e.refetchOnMount)}function Na(t,e,r){if(Qe(e.enabled,t)!==!1){const n=typeof r=="function"?r(t):r;return n==="always"||n!==!1&&Fo(t,e)}return!1}function gu(t,e,r,n){return(t!==e||Qe(n.enabled,t)===!1)&&(!r.suspense||t.state.status!=="error")&&Fo(t,r)}function Fo(t,e){return Qe(e.enabled,t)!==!1&&t.isStaleByTime(Si(e.staleTime,t))}function mg(t,e){return!Pa(t.getCurrentResult(),e)}var Mf=I.createContext(!1),gg=()=>I.useContext(Mf);Mf.Provider;function bg(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var yg=I.createContext(bg()),vg=()=>I.useContext(yg);function wg(t,e){return typeof t=="function"?t(...e):!!t}function xg(){}var Sg=(t,e)=>{(t.suspense||t.throwOnError)&&(e.isReset()||(t.retryOnMount=!1))},Tg=t=>{I.useEffect(()=>{t.clearReset()},[t])},Eg=({result:t,errorResetBoundary:e,throwOnError:r,query:n})=>t.isError&&!e.isReset()&&!t.isFetching&&n&&wg(r,[t.error,n]),Cg=t=>{t.suspense&&(t.staleTime===void 0&&(t.staleTime=1e3),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3)))},Pg=(t,e)=>t.isLoading&&t.isFetching&&!e,Ag=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,bu=(t,e,r)=>e.fetchOptimistic(t).catch(()=>{r.clearReset()});function Mg(t,e,r){var d,f,c,p,m;const n=dg(r),i=gg(),s=vg(),a=n.defaultQueryOptions(t);(f=(d=n.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||f.call(d,a),a._optimisticResults=i?"isRestoring":"optimistic",Cg(a),Sg(a,s),Tg(s);const o=!n.getQueryCache().get(a.queryHash),[l]=I.useState(()=>new e(n,a)),u=l.getOptimisticResult(a);if(I.useSyncExternalStore(I.useCallback(h=>{const g=i?()=>{}:l.subscribe(Pf.batchCalls(h));return l.updateResult(),g},[l,i]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),I.useEffect(()=>{l.setOptions(a,{listeners:!1})},[a,l]),Ag(a,u))throw bu(a,l,s);if(Eg({result:u,errorResetBoundary:s,throwOnError:a.throwOnError,query:n.getQueryCache().get(a.queryHash)}))throw u.error;if((p=(c=n.getDefaultOptions().queries)==null?void 0:c._experimental_afterQuery)==null||p.call(c,a,u),a.experimental_prefetchInRender&&!Aa&&Pg(u,i)){const h=o?bu(a,l,s):(m=n.getQueryCache().get(a.queryHash))==null?void 0:m.promise;h==null||h.catch(xg).finally(()=>{l.hasListeners()||l.updateResult()})}return a.notifyOnChangeProps?u:l.trackResult(u)}function rt(t,e){return Mg(t,pg,e)}function kg(){return()=>{}}function Ig(){return I.useSyncExternalStore(kg,()=>!0,()=>!1)}function kf({children:t,fallback:e=null}){return Ig()?I.createElement(I.Fragment,null,t()):I.createElement(I.Fragment,null,e)}var _r={},it={};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var Ra=function(t,e){return Ra=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Ra(t,e)};function Og(t,e){Ra(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Da=function(){return Da=Object.assign||function(e){for(var r,n=1,i=arguments.length;n=0;o--)(a=t[o])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}function jg(t,e){return function(r,n){e(r,n,t)}}function Ng(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function Rg(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return new(r||(r=Promise))(function(s,a){function o(d){try{u(n.next(d))}catch(f){a(f)}}function l(d){try{u(n.throw(d))}catch(f){a(f)}}function u(d){d.done?s(d.value):i(d.value).then(o,l)}u((n=n.apply(t,e||[])).next())})}function Dg(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(u){return function(d){return l([u,d])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function If(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,s=[],a;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(o){a={error:o}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return s}function zg(){for(var t=[],e=0;e1||o(c,p)})})}function o(c,p){try{l(n[c](p))}catch(m){f(s[0][3],m)}}function l(c){c.value instanceof cn?Promise.resolve(c.value.v).then(u,d):f(s[0][2],c)}function u(c){o("next",c)}function d(c){o("throw",c)}function f(c,p){c(p),s.shift(),s.length&&o(s[0][0],s[0][1])}}function $g(t){var e,r;return e={},n("next"),n("throw",function(i){throw i}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(i,s){e[i]=t[i]?function(a){return(r=!r)?{value:cn(t[i](a)),done:i==="return"}:s?s(a):a}:s}}function Hg(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof Fa=="function"?Fa(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(a){return new Promise(function(o,l){a=t[s](a),i(o,l,a.done,a.value)})}}function i(s,a,o,l){Promise.resolve(l).then(function(u){s({value:u,done:o})},a)}}function Ug(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function Wg(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function Gg(t){return t&&t.__esModule?t:{default:t}}function Yg(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function Xg(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r}const Kg=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return Da},__asyncDelegator:$g,__asyncGenerator:qg,__asyncValues:Hg,__await:cn,__awaiter:Rg,__classPrivateFieldGet:Yg,__classPrivateFieldSet:Xg,__createBinding:Fg,__decorate:_g,__exportStar:Bg,__extends:Og,__generator:Dg,__importDefault:Gg,__importStar:Wg,__makeTemplateObject:Ug,__metadata:Ng,__param:jg,__read:If,__rest:Lg,__spread:zg,__spreadArrays:Vg,__values:Fa},Symbol.toStringTag,{value:"Module"})),rr=Do(Kg);var Ds={},Hn={},ze={},Fs,yu;function Qg(){return yu||(yu=1,Fs=!1),Fs}var vu;function Bo(){if(vu)return ze;vu=1,Object.defineProperty(ze,"__esModule",{value:!0});var t=Qg();function e(o,l){return!!o&&typeof o[l]<"u"}ze.hasProp=e;function r(o,l){l===void 0&&(l=!1);var u=Object.keys(o).filter(function(f){return f&&o[f]!==null&&o[f]!==""&&(Array.isArray(o[f])?o[f].length>0:!0)});l||u.sort();var d=u.map(function(f){return encodeURIComponent(f)+"="+encodeURIComponent(o[f])});return d.length>0?"?"+d.join("&"):""}ze.toQuery=r;function n(o){return typeof o=="string"||o instanceof String}ze.isString=n;function i(){return typeof window<"u"}ze.isBrowser=i;function s(){var o;return o=window&&window.document&&window.document.documentMode?window.document.documentMode:null,!!o&&o<=11}ze.isIE=s;function a(){return t}return ze.isNodejs=a,ze.defaultMapperForLanguage=function(o,l,u){return!o&&u?u.language:o},ze.defaultMapperForPublishedVersionStatus=function(o,l,u){return o==="published"?null:o},ze.defaultMapperForLatestVersionStatus=function(o,l,u){return o==="latest"?null:o},ze}var wu;function Zg(){if(wu)return Hn;wu=1,Object.defineProperty(Hn,"__esModule",{value:!0});var t=Bo(),e=function(){function r(n,i){this.paramsProvider=n,this.fetchFn=i}return r.prototype.request=function(n,i){i===void 0&&(i={});var s=this.paramsProvider.getParams(),a=!s.rootUrl||s.rootUrl==="/";if(!t.isBrowser()&&a)throw new Error("You cannot specify a relative root url if not in a browser context.");i.method=i.method||(i.body?"POST":"GET"),a||(i.mode="cors"),i.headers=i.headers||{};var o=i.headers;if(!o.accessToken&&s.accessToken&&(o.accessToken=s.accessToken),s.clientType==="none"&&!o.accessToken)throw new Error('If the property clientType is set to "'+s.clientType+'" then the property accessToken must be provided.');if(s.clientType==="client_credentials"&&!s.clientDetails)throw new Error('If the property client type is set to "'+s.clientType+'" then the property clientDetails must be set to a ClientCredentialsGrant value.');if(s.defaultHeaders){var l=Object.keys(s.defaultHeaders);l.forEach(function(d){!o[d]&&s.defaultHeaders[d]&&(o[d]=s.defaultHeaders[d])})}var u=a?""+n:""+s.rootUrl+n;return this.fetchFn(u,i).then(function(d){var f=null;s.responseHandler&&(s.responseHandler["*"]&&(f=s.responseHandler["*"]),s.responseHandler[d.status]&&(f=s.responseHandler[d.status]));var c={status:d.status,statusText:d.statusText,url:d.url,data:null};return d.text().then(function(p){return p&&p.length&&p.length>0?JSON.parse(p):{}}).then(function(p){return c.data=p,d.ok?(f&&f(d,c),p):f?f(d,c):Promise.reject(c)},function(p){return c.data=p,f?f(d,c):Promise.reject(c)})}).then(function(d){return d})},r}();return Hn.HttpClient=e,Hn}var Un={},xu;function Jg(){if(xu)return Un;xu=1,Object.defineProperty(Un,"__esModule",{value:!0});var t=rr,e=Bo(),r=function(){function n(i,s){this.url=i,this.query=s,this.paramMatcher=/(:\b\D\w*)/g,this.options={},this.mappers={}}return n.create=function(i,s){return s===void 0&&(s=null),new n(i,s)},n.prototype.addOptions=function(i,s){return s===void 0&&(s=null),e.isString(i)&&s?this.options[s]=i:this.options=t.__assign({},this.options,i),this},n.prototype.setParams=function(i){return this.clientParams=i,this},n.prototype.addMappers=function(i){var s=this;return i&&Object.keys(i).forEach(function(a){s.mappers[a]=i[a]}),this},n.prototype.toUrl=function(){var i=this,s={},a=typeof this.url=="function"?this.url(this.options,this.clientParams):this.url,o=a.match(this.paramMatcher);o&&o.forEach(function(f){var c=f.substring(1),p=null;e.hasProp(i.options,c)&&i.options[c]!==null?p=i.options[c]:e.hasProp(i.clientParams,c)&&i.clientParams[c]!==null&&(p=i.clientParams[c]);var m=null;i.mappers[f]&&(m=i.mappers[f](p,i.options,i.clientParams)),s[f]=m!==null?m:p});var l={};this.query&&(l=t.__assign({},this.query),Object.keys(this.query).forEach(function(f){var c=l[f];e.hasProp(i.options,f)&&i.options[f]!==null?c=i.options[f]:e.hasProp(i.clientParams,f)&&i.clientParams[f]!==null&&(c=i.clientParams[f]),l[f]=i.mappers[f]?i.mappers[f](c,i.options,i.clientParams):c}));var u=Object.keys(s).reduce(function(f,c){return f.replace(c,s[c])},a),d=e.toQuery(l);return""+u+d},n}();return Un.UrlBuilder=r,Un}var Su;function eb(){return Su||(Su=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=rr;e.__exportStar(Zg(),t),e.__exportStar(Jg(),t)}(Ds)),Ds}var Bs={},Vr={},Tu;function tb(){if(Tu)return Vr;Tu=1,Object.defineProperty(Vr,"__esModule",{value:!0});var t=rr,e=function(n){t.__extends(i,n);function i(s){var a=this.constructor,o=n.call(this,s)||this;return o.name="ContensisApplicationError",Object.setPrototypeOf(o,a.prototype),o}return i}(Error);Vr.ContensisApplicationError=e;var r=function(n){t.__extends(i,n);function i(s){var a=this.constructor,o=n.call(this,s)||this;return o.name="ContensisAuthenticationError",Object.setPrototypeOf(o,a.prototype),o}return i}(Error);return Vr.ContensisAuthenticationError=r,Vr}var zs={},Wn={},Eu;function rb(){return Eu||(Eu=1,Object.defineProperty(Wn,"__esModule",{value:!0}),Wn.ExpressionValueTypeEnum={Single:"single",Array:"array",Unknown:"unknown"}),Wn}var Gn={},Cu;function Of(){return Cu||(Cu=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.FreeTextSearchOperatorTypeEnum={And:"and",Or:"or"}),Gn}var Yn={},zt={},Pu;function rs(){if(Pu)return zt;Pu=1,Object.defineProperty(zt,"__esModule",{value:!0});var t=rr,e=_f(),r=Of(),n=function(){function M(E,T,_,P){T===void 0&&(T=[]),this.fieldName=E,this.values=T,this.operatorName=_,this.valueType=P,this._weight=0}return M.prototype.addValue=function(E){return this.values[this.values.length]=E,this},M.prototype.weight=function(E){return this._weight=E,this},M.prototype.toJSON=function(){var E={};return this.fieldName&&(E.field=this.fieldName),this.valueType===e.ExpressionValueTypeEnum.Single?E[this.operatorName]=this.values[0]:this.valueType===e.ExpressionValueTypeEnum.Array?E[this.operatorName]=this.values:this.values&&this.values.length===1?E[this.operatorName]=this.values[0]:E[this.operatorName]=this.values,this._weight&&this._weight>1&&(E.weight=this._weight),E},M}();zt.ExpressionBase=n;var i=function(M){t.__extends(E,M);function E(T,_,P){return T===void 0&&(T=[]),M.call(this,null,T,_,e.ExpressionValueTypeEnum.Array)||this}return E.prototype.getItem=function(T){return this.values[T]},E.prototype.setItem=function(T,_){return this.values[T]=_,this},E.prototype.add=function(T){return this.values[this.values.length]=T,this},E.prototype.addRange=function(T){return Array.prototype.push.apply(this.values,T),this},E.prototype.indexOf=function(T){return this.values.indexOf(T)},E.prototype.insert=function(T,_){return this.values.splice(T,0,_),this},E.prototype.remove=function(T){var _=this.indexOf(T);return _>=0?(this.removeAt(_),!0):!1},E.prototype.removeAt=function(T){return this.values.splice(T,1),this},E.prototype.clear=function(){return this.values.length=0,this},E.prototype.contains=function(T){return this.indexOf(T)>=0},E.prototype.count=function(){return this.values.length},E}(n);zt.LogicalExpression=i;var s=function(M){t.__extends(E,M);function E(T){return M.call(this,T,e.OperatorTypeEnum.And,e.ExpressionValueTypeEnum.Array)||this}return E}(i),a=function(M){t.__extends(E,M);function E(T,_,P){return M.call(this,T,[_,P],e.OperatorTypeEnum.Between,e.ExpressionValueTypeEnum.Array)||this}return E}(n),o=function(M){t.__extends(E,M);function E(T,_){return M.call(this,T,[_],e.OperatorTypeEnum.Contains,e.ExpressionValueTypeEnum.Single)||this}return E}(n),l=function(M){t.__extends(E,M);function E(T,_){return M.call(this,T,[_],e.OperatorTypeEnum.DistanceWithin,e.ExpressionValueTypeEnum.Single)||this}return E}(n),u=function(M){t.__extends(E,M);function E(T,_){return M.call(this,T,[_],e.OperatorTypeEnum.EndsWith,e.ExpressionValueTypeEnum.Single)||this}return E}(n),d=function(M){t.__extends(E,M);function E(T,_){return M.call(this,T,[_],e.OperatorTypeEnum.EqualTo,e.ExpressionValueTypeEnum.Single)||this}return E}(n),f=function(M){t.__extends(E,M);function E(T,_){return M.call(this,T,[_],e.OperatorTypeEnum.Exists,e.ExpressionValueTypeEnum.Single)||this}return E}(n),c=function(M){t.__extends(E,M);function E(T,_){return M.call(this,T,[_],e.OperatorTypeEnum.FreeText,e.ExpressionValueTypeEnum.Single)||this}return E}(n),p=function(M){t.__extends(E,M);function E(T,_){return M.call(this,T,[_],e.OperatorTypeEnum.GreaterThan,e.ExpressionValueTypeEnum.Single)||this}return E}(n),m=function(M){t.__extends(E,M);function E(T,_){return M.call(this,T,[_],e.OperatorTypeEnum.GreaterThanOrEqualTo,e.ExpressionValueTypeEnum.Single)||this}return E}(n),h=function(M){t.__extends(E,M);function E(T,_){return M.call(this,T,_,e.OperatorTypeEnum.In,e.ExpressionValueTypeEnum.Array)||this}return E}(n),g=function(M){t.__extends(E,M);function E(T,_){return M.call(this,T,[_],e.OperatorTypeEnum.LessThan,e.ExpressionValueTypeEnum.Single)||this}return E}(n),b=function(M){t.__extends(E,M);function E(T,_){return M.call(this,T,[_],e.OperatorTypeEnum.LessThanOrEqualTo,e.ExpressionValueTypeEnum.Single)||this}return E}(n),y=function(M){t.__extends(E,M);function E(T){return M.call(this,[T],e.OperatorTypeEnum.Not,e.ExpressionValueTypeEnum.Single)||this}return E}(i),v=function(M){t.__extends(E,M);function E(T){return M.call(this,T,e.OperatorTypeEnum.Or,e.ExpressionValueTypeEnum.Array)||this}return E}(i),x=function(M){t.__extends(E,M);function E(T,_){return M.call(this,T,[_],e.OperatorTypeEnum.StartsWith,e.ExpressionValueTypeEnum.Single)||this}return E}(n),A=function(M){t.__extends(E,M);function E(T){return T===void 0&&(T=[]),M.call(this,T,e.OperatorTypeEnum.Where,e.ExpressionValueTypeEnum.Array)||this}return E.prototype.toJSON=function(){var T=M.prototype.toJSON.call(this);return T[e.OperatorTypeEnum.Where]},E}(i);zt.WhereExpression=A;var R=function(){function M(){}return M.prototype.and=function(){for(var E=[],T=0;T0&&(i.orderBy=s),i.where=this.where,i.includeArchived=this.includeArchived,i.includeDeleted=this.includeDeleted,i},n}();return Yn.ManagementQuery=r,Yn}var Qn={},Ou;function sb(){if(Ou)return Qn;Ou=1,Object.defineProperty(Qn,"__esModule",{value:!0});var t=function(){function e(r){this.zenql="",this.pageIndex=0,this.pageSize=20,this.includeArchived=!1,this.includeDeleted=!1,this.zenql=r}return e.prototype.toJSON=function(){var r={};return r.pageIndex=this.pageIndex,r.pageSize=this.pageSize,r.zenql=this.zenql,r.includeArchived=this.includeArchived,r.includeDeleted=this.includeDeleted,r},e}();return Qn.ManagementZenqlQuery=t,Qn}var Zn={},Lu;function ab(){return Lu||(Lu=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.OperatorTypeEnum={And:"and",Between:"between",Contains:"contains",EndsWith:"endsWith",EqualTo:"equalTo",Exists:"exists",FreeText:"freeText",GreaterThan:"greaterThan",GreaterThanOrEqualTo:"greaterThanOrEqualTo",In:"in",LessThan:"lessThan",LessThanOrEqualTo:"lessThanOrEqualTo",Not:"not",Or:"or",StartsWith:"startsWith",Where:"where",DistanceWithin:"distanceWithin"}),Zn}var Jn={},_u;function ob(){if(_u)return Jn;_u=1,Object.defineProperty(Jn,"__esModule",{value:!0});var t=rs(),e=zo(),r=function(){function n(){for(var i=[],s=0;s0&&(i.orderBy=s),i.where=this.where,this.fields&&this.fields.length>0&&(i.fields=this.fields),this.fieldLinkDepths&&Object.keys(this.fieldLinkDepths).length>0&&(i.fieldLinkDepths=this.fieldLinkDepths),i},n}();return Jn.Query=r,Jn}var ei={},ju;function lb(){if(ju)return ei;ju=1,Object.defineProperty(ei,"__esModule",{value:!0});var t=function(){function e(r){this.zenql="",this.pageIndex=0,this.pageSize=20,this.fieldLinkDepths={},this.fields=[],this.zenql=r}return e.prototype.toJSON=function(){var r={};return r.pageIndex=this.pageIndex,r.pageSize=this.pageSize,r.zenql=this.zenql,this.fields&&this.fields.length>0&&(r.fields=this.fields),this.fieldLinkDepths&&Object.keys(this.fieldLinkDepths).length>0&&(r.fieldLinkDepths=this.fieldLinkDepths),r},e}();return ei.ZenqlQuery=t,ei}var Nu;function ub(){return Nu||(Nu=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=rr;e.__exportStar(rb(),t),e.__exportStar(Of(),t),e.__exportStar(ib(),t),e.__exportStar(sb(),t),e.__exportStar(rs(),t),e.__exportStar(ab(),t),e.__exportStar(ob(),t),e.__exportStar(zo(),t),e.__exportStar(lb(),t)}(zs)),zs}var Ru;function _f(){return Ru||(Ru=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=rr;e.__exportStar(tb(),t),e.__exportStar(ub(),t)}(Bs)),Bs}(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=rr;e.__exportStar(eb(),t),e.__exportStar(_f(),t),e.__exportStar(Bo(),t)})(it);var Vo={},qo={};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var Ba=function(t,e){return Ba=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Ba(t,e)};function cb(t,e){Ba(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var za=function(){return za=Object.assign||function(e){for(var r,n=1,i=arguments.length;n=0;o--)(a=t[o])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}function pb(t,e){return function(r,n){e(r,n,t)}}function hb(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function mb(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return new(r||(r=Promise))(function(s,a){function o(d){try{u(n.next(d))}catch(f){a(f)}}function l(d){try{u(n.throw(d))}catch(f){a(f)}}function u(d){d.done?s(d.value):i(d.value).then(o,l)}u((n=n.apply(t,e||[])).next())})}function gb(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(u){return function(d){return l([u,d])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function jf(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,s=[],a;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(o){a={error:o}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return s}function vb(){for(var t=[],e=0;e1||o(c,p)})})}function o(c,p){try{l(n[c](p))}catch(m){f(s[0][3],m)}}function l(c){c.value instanceof dn?Promise.resolve(c.value.v).then(u,d):f(s[0][2],c)}function u(c){o("next",c)}function d(c){o("throw",c)}function f(c,p){c(p),s.shift(),s.length&&o(s[0][0],s[0][1])}}function Sb(t){var e,r;return e={},n("next"),n("throw",function(i){throw i}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(i,s){e[i]=t[i]?function(a){return(r=!r)?{value:dn(t[i](a)),done:i==="return"}:s?s(a):a}:s}}function Tb(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof Va=="function"?Va(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(a){return new Promise(function(o,l){a=t[s](a),i(o,l,a.done,a.value)})}}function i(s,a,o,l){Promise.resolve(l).then(function(u){s({value:u,done:o})},a)}}function Eb(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function Cb(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function Pb(t){return t&&t.__esModule?t:{default:t}}function Ab(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function Mb(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r}const kb=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return za},__asyncDelegator:Sb,__asyncGenerator:xb,__asyncValues:Tb,__await:dn,__awaiter:mb,__classPrivateFieldGet:Ab,__classPrivateFieldSet:Mb,__createBinding:bb,__decorate:fb,__exportStar:yb,__extends:cb,__generator:gb,__importDefault:Pb,__importStar:Cb,__makeTemplateObject:Eb,__metadata:hb,__param:pb,__read:jf,__rest:db,__spread:vb,__spreadArrays:wb,__values:Va},Symbol.toStringTag,{value:"Module"})),Ib=Do(kb);var $o={},Ho={},Uo={};Object.defineProperty(Uo,"__esModule",{value:!0});const ti=it;class Ob{constructor(e,r){this.sys=e,this.versionStatus=r,this.promise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.expression=ti.Op.and(ti.Op.equalTo("sys.id",e.id),ti.Op.equalTo("sys.language",e.language),ti.Op.equalTo("sys.versionStatus",this.versionStatus))}is(e){return!!(e&&e.id&&e.language&&e.id===this.sys.id&&e.language===this.sys.language)}}Uo.DeferredEntry=Ob;var Wo={};Object.defineProperty(Wo,"__esModule",{value:!0});function qa(t){return t&&t.sys&&t.sys.id?Object.keys(t).length===1:!1}function Du(t){return t&&t.asset?Object.keys(t).length<=2&&qa(t.asset):!1}function Lb(t){return Array.isArray(t)&&t.length>0?Nf(t[0]):!1}function Nf(t){return t&&t.type&&t.value?Object.keys(t).length===2:!1}class Go{constructor(e,r,n){this.entry=e,this.paths=r,this.getEntry=n}resolve(){let r=(this.paths||Object.keys(this.entry)).map(n=>{let i=n.split("."),s=i.shift(),a=null,o=this.entry[s];if(o&&(a=this.resolveField(o),!a&&Lb(o))){let l=i.length>0?i.shift():null;a=this.resolveComposerField(o,l)}return a=a?a.then(l=>(this.entry[s]=l.value,l)):Promise.resolve(null),a.then(l=>this.next(l,i.join(".")))});return Promise.all(r).then(n=>this.entry)}next(e,r){if(!r||!e||!e.entries||e.entries.length<=0)return Promise.resolve(e);let n=e.entries.map(i=>new Go(i,[r],(a,o)=>this.getEntry(a,o)).resolve());return Promise.all(n)}resolveField(e){if(qa(e))return this.resolveEntry(e);if(Du(e))return this.resolveImage(e);if(Array.isArray(e)){let r=!1,n=e.map(i=>qa(i)?(r=!0,this.resolveEntry(i)):Du(i)?(r=!0,this.resolveImage(i)):Promise.resolve({entries:[],value:i}));if(r)return Promise.all(n).then(i=>{let s=[],a=[];for(let o of i)s.push(o.value),a=a.concat(o.entries);return{entries:a,value:s}})}return null}resolveComposerField(e,r){if(Array.isArray(e)){let n=!1,i=e.map(s=>{if(Nf(s)&&(!r||r===s.type)){let a=this.resolveField(s.value);if(a)return n=!0,a.then(o=>(s.value=o,s))}return Promise.resolve({entries:[],value:s})});if(n)return Promise.all(i).then(s=>{let a=[],o=[];for(let l of s)a.push(l.value),o=o.concat(l.entries);return{entries:o,value:a}})}return null}async resolveEntry(e){if(e&&e.sys&&e.sys.id){let r=e.sys.language||this.entry.sys.language,n=await this.getEntry(e.sys.id,r);return{entries:[n],value:n}}return Promise.resolve({entries:[],value:e})}resolveImage(e){if(e&&e.asset&&e.asset.sys&&e.asset.sys.id){let r=e.asset.sys.language||this.entry.sys.language;return this.getEntry(e.asset.sys.id,r).then(n=>(e.asset=n,{entries:[n],value:e}))}return Promise.resolve({entries:[],value:e})}}Wo.EntryResolver=Go;Object.defineProperty(Ho,"__esModule",{value:!0});const Fu=it,_b=Uo,jb=Wo;class Nb{constructor(e,r,n,i){this.entries=e,this.paths=r,this.versionStatus=n,this.search=i,this.deferredEntries=[]}resolve(){this.deferredEntries=[];let e=this.entries.map(r=>new jb.EntryResolver(r,this.paths,(i,s)=>this.getEntry(i,s)).resolve());return this.nestedSearch().then(r=>Promise.all(e).then(n=>this.entries))}getEntry(e,r){let n=new _b.DeferredEntry({id:e,language:r},this.versionStatus);return this.deferredEntries.push(n),n.promise}nestedSearch(){let e=this.deferredEntries.map(n=>n.expression),r=new Fu.Query(Fu.Op.or(...e));return r.pageIndex=0,r.pageSize=e.length,this.search(r).then(n=>{let i=this.deferredEntries;this.deferredEntries=[];let s=[];for(let a of n.items){let o=i.filter(l=>l.is(a.sys));for(let l of o)l.resolve(a),s.push(l.promise)}if(s.length===0){for(let a of i)a.resolve(null);return Promise.resolve(n)}return Promise.all(s).then(()=>Promise.resolve(n))}).then(n=>this.deferredEntries.length>0?this.nestedSearch():n)}}Ho.ListResolver=Nb;Object.defineProperty($o,"__esModule",{value:!0});const Rb=Ho;class Db{constructor(e,r,n,i){this.entryOrList=e,this.paths=r,this.versionStatus=n,this.search=i}resolve(){let e=this.getEntries(),r=Promise.resolve([]);return e.length>0&&(r=new Rb.ListResolver(e,this.paths,this.versionStatus,this.search).resolve()),r.then(()=>this.entryOrList)}getEntries(){let e=this.entryOrList;return e?Array.isArray(e)?e:e.items&&Array.isArray(e.items)?e.items:[e]:[]}}$o.LinkResolver=Db;Object.defineProperty(qo,"__esModule",{value:!0});const Bu=Ib,Fb=$o,qe=it,Rf="/api/delivery/projects/:projectId/entries";let Bb=(t,e)=>t.contentTypeId?"/api/delivery/projects/:projectId/contentTypes/:contentTypeId/entries":Rf,Df={language:qe.defaultMapperForLanguage,versionStatus:qe.defaultMapperForPublishedVersionStatus,fields:t=>t&&t.length>0?t:null,linkDepth:t=>t&&t>0?t:null,fieldLinkDepths:t=>Object.keys(t||{}).length>0?JSON.stringify(t):null},zb=Object.assign({},Df,{order:t=>t&&t.length>0?t:null,pageIndex:(t,e,r)=>e&&e.pageOptions&&e.pageOptions.pageIndex||r.pageIndex,pageSize:(t,e,r)=>e&&e.pageOptions&&e.pageOptions.pageSize||r.pageSize}),Vs={linkDepth:t=>t&&t>0?t:null,fieldLinkDepths:t=>Object.keys(t||{}).length>0?JSON.stringify(t):null};class Vb{constructor(e,r){this.httpClient=e,this.contensisClient=r}get(e){let r=qe.UrlBuilder.create("/api/delivery/projects/:projectId/entries/:id",{language:null,versionStatus:null,linkDepth:null,fieldLinkDepths:null,fields:null}).addOptions(e,"id").setParams(this.contensisClient.getParams()).addMappers(Df).toUrl();return this.contensisClient.ensureIsAuthorized().then(()=>this.httpClient.request(r,{headers:this.contensisClient.getHeaders()}))}list(e){let r=qe.UrlBuilder.create(Bb,{language:null,versionStatus:null,linkDepth:null,order:null,fieldLinkDepths:null,fields:null,pageIndex:null,pageSize:null}).addOptions(e,"contentTypeId").setParams(this.contensisClient.getParams()).addMappers(zb).toUrl();return this.contensisClient.ensureIsAuthorized().then(()=>this.httpClient.request(r,{headers:this.contensisClient.getHeaders()}))}search(e,r=0){if(!e)return new Promise(v=>{v(null)});let n=e instanceof qe.Query?e:null;if(n!==null||e.where||e.orderBy)return this.searchUsingQuery(n||e,r);let i=e instanceof qe.ZenqlQuery?e:null;if(i===null)if(typeof e=="string")i=new qe.ZenqlQuery(e);else throw new Error("A valid query needs to be specified.");let s=this.contensisClient.getParams(),a=s.pageSize||25,o=s.pageIndex||0,l=[],u={};a=i.pageSize||a,o=i.pageIndex||o,l=i.fields||l,u=i.fieldLinkDepths||u;let{accessToken:d,projectId:f,language:c,responseHandler:p,rootUrl:m,versionStatus:h}=s,g=Bu.__rest(s,["accessToken","projectId","language","responseHandler","rootUrl","versionStatus"]),b=Object.assign({},g,{fieldLinkDepths:u,linkDepth:r,pageSize:a,pageIndex:o,zenql:i.zenql});l&&l.length>0&&(b.fields=l);let y=qe.UrlBuilder.create(Rf,Object.assign({},b)).setParams(Object.assign({},b,{projectId:f})).addMappers(Vs).toUrl();return this.contensisClient.ensureIsAuthorized().then(()=>this.httpClient.request(y,{method:"GET",headers:this.contensisClient.getHeaders("application/json; charset=utf-8")}))}resolve(e,r=null){let n=this.contensisClient.getParams();return new Fb.LinkResolver(e,r,n.versionStatus,s=>this.search(s)).resolve()}searchUsingQuery(e,r=0){if(!e)return new Promise(v=>{v(null)});let n=e,i=this.contensisClient.getParams(),s=i.pageSize||25,a=i.pageIndex||0,o=[],l={};s=n.pageSize||s,a=n.pageIndex||a,o=n.fields||o,l=n.fieldLinkDepths||l;let u=n.orderBy&&(n.orderBy._items||n.orderBy),{accessToken:d,projectId:f,language:c,responseHandler:p,rootUrl:m,versionStatus:h}=i,g=Bu.__rest(i,["accessToken","projectId","language","responseHandler","rootUrl","versionStatus"]),b=Object.assign({},g,{fieldLinkDepths:l,linkDepth:r,pageSize:s,pageIndex:a,where:JSON.stringify(n.where)});o&&o.length>0&&(b.fields=o),n.orderBy&&(!Array.isArray(n.orderBy)||n.orderBy.length>0)&&(b.orderBy=JSON.stringify(u));let y=qe.UrlBuilder.create("/api/delivery/projects/:projectId/entries/search",Object.assign({},b)).setParams(Object.assign({},b,{projectId:f})).addMappers(Vs).toUrl();return y.length>8e3||qe.isBrowser()&&qe.isIE()&&y.length>2083?this.searchUsingPost(e,r):this.contensisClient.ensureIsAuthorized().then(()=>this.httpClient.request(y,{method:"GET",headers:this.contensisClient.getHeaders("application/json; charset=utf-8")}))}searchUsingPost(e,r=0){if(!e)return new Promise(s=>{s(null)});let n=this.contensisClient.getParams();e.pageSize=e.pageSize||n.pageSize,e.pageIndex=e.pageIndex||0;let i=qe.UrlBuilder.create("/api/delivery/projects/:projectId/entries/search",{linkDepth:r,fieldLinkDepths:e.fieldLinkDepths}).setParams(this.contensisClient.getParams()).addMappers(Vs).toUrl();return this.contensisClient.ensureIsAuthorized().then(()=>{const s=Object.assign(Object.create(Object.getPrototypeOf(e)),e);return delete s.fieldLinkDepths,this.httpClient.request(i,{method:"POST",headers:this.contensisClient.getHeaders("application/json; charset=utf-8"),body:JSON.stringify(s)})})}}qo.EntryOperations=Vb;var Yo={};Object.defineProperty(Yo,"__esModule",{value:!0});const qb=it;class $b{constructor(e,r){this.httpClient=e,this.contensisClient=r}get(e){let r=qb.UrlBuilder.create("/api/delivery/projects/:projectId/contentTypes/:contentTypeId").addOptions(e,"contentTypeId").setParams(this.contensisClient.getParams()).toUrl();return this.contensisClient.ensureIsAuthorized().then(()=>this.httpClient.request(r,{headers:this.contensisClient.getHeaders()}))}}Yo.ContentTypeOperations=$b;var Xo={};Object.defineProperty(Xo,"__esModule",{value:!0});const Hb=it;class Ub{constructor(e,r){this.httpClient=e,this.contensisClient=r}get(){let e=Hb.UrlBuilder.create("/api/delivery/projects/:projectId").setParams(this.contensisClient.getParams()).toUrl();return this.contensisClient.ensureIsAuthorized().then(()=>this.httpClient.request(e,{headers:this.contensisClient.getHeaders()}))}}Xo.ProjectOperations=Ub;var Ko={};Object.defineProperty(Ko,"__esModule",{value:!0});const zu=it;let Vu={order:t=>t==="defined"?t:null};class Wb{constructor(e,r){this.httpClient=e,this.contensisClient=r}getNodeByKey(e){let r=zu.UrlBuilder.create("/api/delivery/projects/:projectId/taxonomy/nodes/:key",{order:null,childDepth:null,language:null}).addOptions(e,"key").setParams(this.contensisClient.getParams()).addMappers(Vu).toUrl();return this.contensisClient.ensureIsAuthorized().then(()=>this.httpClient.request(r,{headers:this.contensisClient.getHeaders()}))}getNodeByPath(e){let r=zu.UrlBuilder.create("/api/delivery/projects/:projectId/taxonomy/nodes",{order:null,childDepth:null,language:null,path:null}).addOptions(e,"path").setParams(this.contensisClient.getParams()).addMappers(Vu).toUrl();return this.contensisClient.ensureIsAuthorized().then(()=>this.httpClient.request(r,{headers:this.contensisClient.getHeaders()}))}resolveChildren(e){let r=e,n=null,i={childDepth:1};if(r.node?(n=r.node,i={childDepth:r.childDepth||1,order:r.order,language:r.language}):r.key?e.path?n=e:(n=r.key,i={childDepth:r.childDepth||1,order:r.order,language:r.language}):n=e,typeof n=="string")return this.getNodeByKey(Object.assign({},i,{key:n}));if(n.hasChildren){if(n.children&&n.children.length>0)return Promise.resolve(Object.assign({},n))}else return Promise.resolve(Object.assign({},n,{children:[]}));return this.getNodeByKey(Object.assign({},i,{key:n.key}))}}Ko.TaxonomyOperations=Wb;var Qo={};Object.defineProperty(Qo,"__esModule",{value:!0});class Gb{constructor(e,r){for(this.currentConfig=e,this.previousConfig=r,this.rootUrl=null,this.accessToken=null,this.clientType=null,this.clientDetails=null,this.defaultHeaders=null,this.projectId=null,this.language=null,this.versionStatus="published",this.pageSize=25,this.responseHandler=null,this.fetchFn=null,this.rootUrl=this.getValue(n=>n.rootUrl),this.accessToken=this.getValue(n=>n.accessToken),this.clientType=this.getValue(n=>n.clientType),this.clientDetails=this.getValue(n=>n.clientDetails),this.defaultHeaders=this.getValue(n=>n.defaultHeaders),this.projectId=this.getValue(n=>n.projectId),this.language=this.getValue(n=>n.language),this.versionStatus=this.getValue(n=>n.versionStatus),this.pageSize=this.getValue(n=>n.pageSize),this.responseHandler=this.getValue(n=>n.responseHandler),this.fetchFn=this.getValue(n=>n.fetchFn);this.rootUrl&&this.rootUrl.substr(this.rootUrl.length-1,1)==="/";)this.rootUrl=this.rootUrl.substr(0,this.rootUrl.length-1)}toParams(){return{rootUrl:this.rootUrl,accessToken:this.accessToken,clientType:this.clientType,clientDetails:this.clientDetails,defaultHeaders:this.defaultHeaders,language:this.language,versionStatus:this.versionStatus,projectId:this.projectId,pageIndex:0,pageSize:this.pageSize,responseHandler:this.responseHandler}}getValue(e){let r=null;return this.currentConfig&&(r=e(this.currentConfig)),this.previousConfig&&!r&&(r=e(this.previousConfig)),r||e(this)}}Qo.ClientConfig=Gb;var Zo={};Object.defineProperty(Zo,"__esModule",{value:!0});const we=it;let fn={language:we.defaultMapperForLanguage,versionStatus:we.defaultMapperForPublishedVersionStatus,entryFields:t=>t&&t.length>0?t:null,entryLinkDepth:t=>t&&t>0?t:null,entryFieldLinkDepths:t=>Object.keys(t||{}).length>0?JSON.stringify(t):null},ji=Object.assign({},fn,{depth:t=>t&&t>0?t:null}),Yb=Object.assign({},ji,{allowPartialMatch:t=>t?!0:null}),Xb=Object.assign({},fn,{entryId:t=>t||null}),Kb=Object.assign({},ji,{startLevel:t=>t&&t>0?t:null}),Qb=Object.assign({},fn,{startLevel:t=>t&&t>0?t:null});class Zb{constructor(e,r){if(this.httpClient=e,this.contensisClient=r,!this.httpClient||!this.contensisClient)throw new Error("The class was not initialised correctly.")}getRoot(e){let r=we.UrlBuilder.create("/api/delivery/projects/:projectId/nodes/root",{language:null,depth:null,versionStatus:null,entryFields:null,entryLinkDepth:null,entryFieldLinkDepths:null}).addOptions(e).setParams(this.contensisClient.getParams()).addMappers(ji).toUrl();return this.contensisClient.ensureIsAuthorized().then(()=>this.httpClient.request(r,{headers:this.contensisClient.getHeaders()}))}get(e){const r="A valid node id or path needs to be specified.";if(we.isString(e)&&!e||typeof e=="object"&&(e===null||!e.id&&!e.path))throw new Error(r);let n=we.isString(e)&&e.startsWith("/")||!!e&&!!e.path,i=n?"/api/delivery/projects/:projectId/nodes:path":"/api/delivery/projects/:projectId/nodes/:id",s=we.UrlBuilder.create(i,{language:null,depth:null,versionStatus:null,entryFields:null,entryLinkDepth:null,entryFieldLinkDepths:null,allowPartialMatch:null}).addOptions(e,n?"path":"id").setParams(this.contensisClient.getParams()).addMappers(Yb).toUrl();return this.contensisClient.ensureIsAuthorized().then(()=>this.httpClient.request(s,{headers:this.contensisClient.getHeaders()}))}getByEntry(e){const r="A valid entry id needs to be specified.";if(we.isString(e)&&!e)throw new Error(r);if(typeof e=="object"){if(e===null)throw new Error(r);if(!e.entryId&&(!e.entry||!e.entry.sys||!e.entry.sys.id)&&(!e.sys||!e.sys.id))throw new Error(r)}let n=null;we.isString(e)?n=e:typeof e=="object"&&(e.sys&&(n=e.sys.id),e.entry&&e.entry.sys&&(n=e.entry.sys.id));let i=we.UrlBuilder.create("/api/delivery/projects/:projectId/nodes/",{entryId:null,language:null,versionStatus:null,entryFields:null,entryLinkDepth:null,entryFieldLinkDepths:null}).addOptions(n,"entryId").addOptions(e).setParams(this.contensisClient.getParams()).addMappers(Xb).toUrl();return this.contensisClient.ensureIsAuthorized().then(()=>this.httpClient.request(i,{headers:this.contensisClient.getHeaders()}))}getChildren(e){this.validateNodeId(e);let r=this.getNodeIdFromOptions(e),n=we.UrlBuilder.create("/api/delivery/projects/:projectId/nodes/:id/children",{language:null,versionStatus:null,entryFields:null,entryLinkDepth:null,entryFieldLinkDepths:null}).addOptions(r,"id").addOptions(e).setParams(this.contensisClient.getParams()).addMappers(fn).toUrl();return this.contensisClient.ensureIsAuthorized().then(()=>this.httpClient.request(n,{headers:this.contensisClient.getHeaders()}))}getParent(e){this.validateNodeId(e);let r=this.getNodeIdFromOptions(e),n=we.UrlBuilder.create("/api/delivery/projects/:projectId/nodes/:id/parent",{language:null,depth:null,versionStatus:null,entryFields:null,entryLinkDepth:null,entryFieldLinkDepths:null}).addOptions(r,"id").addOptions(e).setParams(this.contensisClient.getParams()).addMappers(ji).toUrl();return this.contensisClient.ensureIsAuthorized().then(()=>this.httpClient.request(n,{headers:this.contensisClient.getHeaders()}))}getAncestorAtLevel(e){this.validateNodeId(e);let r=this.getNodeIdFromOptions(e),n=we.UrlBuilder.create("/api/delivery/projects/:projectId/nodes/:id/ancestors",{language:null,startLevel:null,depth:null,versionStatus:null,entryFields:null,entryLinkDepth:null,entryFieldLinkDepths:null}).addOptions(r,"id").addOptions(e).setParams(this.contensisClient.getParams()).addMappers(Kb).toUrl();return this.contensisClient.ensureIsAuthorized().then(()=>this.httpClient.request(n,{headers:this.contensisClient.getHeaders()}))}getAncestors(e){this.validateNodeId(e);let r=this.getNodeIdFromOptions(e),n=we.UrlBuilder.create("/api/delivery/projects/:projectId/nodes/:id/ancestors",{language:null,startLevel:null,versionStatus:null,entryFields:null,entryLinkDepth:null,entryFieldLinkDepths:null}).addOptions(r,"id").addOptions(e).setParams(this.contensisClient.getParams()).addMappers(Qb).toUrl();return this.contensisClient.ensureIsAuthorized().then(()=>this.httpClient.request(n,{headers:this.contensisClient.getHeaders()}))}getSiblings(e){this.validateNodeId(e);let r=this.getNodeIdFromOptions(e),n=we.UrlBuilder.create("/api/delivery/projects/:projectId/nodes/:id/siblings",{language:null,versionStatus:null,entryFields:null,entryLinkDepth:null,entryFieldLinkDepths:null}).addOptions(r,"id").addOptions(e).setParams(this.contensisClient.getParams()).addMappers(fn).toUrl();return this.contensisClient.ensureIsAuthorized().then(()=>this.httpClient.request(n,{headers:this.contensisClient.getHeaders()}))}validateNodeId(e){const r="A valid node id needs to be specified.";if(we.isString(e)&&!e)throw new Error(r);if(typeof e=="object"){if(e===null)throw new Error(r);if(!e.id&&(!e.node||!e.node.id))throw new Error(r)}}getNodeIdFromOptions(e){let r=null;return we.isString(e)?r=e:typeof e=="object"&&(e.id?r=e.id:e.node&&(r=e.node.id)),r}}Zo.NodeOperations=Zb;var ns={};Object.defineProperty(ns,"__esModule",{value:!0});const Ff=["Security_Administrator","ContentType_Read","ContentType_Write","ContentType_Delete","Entry_Read","Entry_Write","Entry_Delete","Project_Read","Project_Write","Project_Delete","Workflow_Administrator"],Jb="offline_access",ey="openid";function ty(){return[ey,Jb,...Ff].join(" ")}ns.getAllScopes=ty;function ry(){return Ff.join(" ")}ns.getResourcesScopes=ry;var $a={exports:{}};(function(t,e){var r=typeof self<"u"?self:W,n=function(){function s(){this.fetch=!1,this.DOMException=r.DOMException}return s.prototype=r,new s}();(function(s){(function(a){var o={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function l(C){return C&&DataView.prototype.isPrototypeOf(C)}if(o.arrayBuffer)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(C){return C&&u.indexOf(Object.prototype.toString.call(C))>-1};function f(C){if(typeof C!="string"&&(C=String(C)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(C))throw new TypeError("Invalid character in header field name");return C.toLowerCase()}function c(C){return typeof C!="string"&&(C=String(C)),C}function p(C){var S={next:function(){var N=C.shift();return{done:N===void 0,value:N}}};return o.iterable&&(S[Symbol.iterator]=function(){return S}),S}function m(C){this.map={},C instanceof m?C.forEach(function(S,N){this.append(N,S)},this):Array.isArray(C)?C.forEach(function(S){this.append(S[0],S[1])},this):C&&Object.getOwnPropertyNames(C).forEach(function(S){this.append(S,C[S])},this)}m.prototype.append=function(C,S){C=f(C),S=c(S);var N=this.map[C];this.map[C]=N?N+", "+S:S},m.prototype.delete=function(C){delete this.map[f(C)]},m.prototype.get=function(C){return C=f(C),this.has(C)?this.map[C]:null},m.prototype.has=function(C){return this.map.hasOwnProperty(f(C))},m.prototype.set=function(C,S){this.map[f(C)]=c(S)},m.prototype.forEach=function(C,S){for(var N in this.map)this.map.hasOwnProperty(N)&&C.call(S,this.map[N],N,this)},m.prototype.keys=function(){var C=[];return this.forEach(function(S,N){C.push(N)}),p(C)},m.prototype.values=function(){var C=[];return this.forEach(function(S){C.push(S)}),p(C)},m.prototype.entries=function(){var C=[];return this.forEach(function(S,N){C.push([N,S])}),p(C)},o.iterable&&(m.prototype[Symbol.iterator]=m.prototype.entries);function h(C){if(C.bodyUsed)return Promise.reject(new TypeError("Already read"));C.bodyUsed=!0}function g(C){return new Promise(function(S,N){C.onload=function(){S(C.result)},C.onerror=function(){N(C.error)}})}function b(C){var S=new FileReader,N=g(S);return S.readAsArrayBuffer(C),N}function y(C){var S=new FileReader,N=g(S);return S.readAsText(C),N}function v(C){for(var S=new Uint8Array(C),N=new Array(S.length),k=0;k-1?S:C}function E(C,S){S=S||{};var N=S.body;if(C instanceof E){if(C.bodyUsed)throw new TypeError("Already read");this.url=C.url,this.credentials=C.credentials,S.headers||(this.headers=new m(C.headers)),this.method=C.method,this.mode=C.mode,this.signal=C.signal,!N&&C._bodyInit!=null&&(N=C._bodyInit,C.bodyUsed=!0)}else this.url=String(C);if(this.credentials=S.credentials||this.credentials||"same-origin",(S.headers||!this.headers)&&(this.headers=new m(S.headers)),this.method=M(S.method||this.method||"GET"),this.mode=S.mode||this.mode||null,this.signal=S.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&N)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(N)}E.prototype.clone=function(){return new E(this,{body:this._bodyInit})};function T(C){var S=new FormData;return C.trim().split("&").forEach(function(N){if(N){var k=N.split("="),j=k.shift().replace(/\+/g," "),B=k.join("=").replace(/\+/g," ");S.append(decodeURIComponent(j),decodeURIComponent(B))}}),S}function _(C){var S=new m,N=C.replace(/\r?\n[\t ]+/g," ");return N.split(/\r?\n/).forEach(function(k){var j=k.split(":"),B=j.shift().trim();if(B){var q=j.join(":").trim();S.append(B,q)}}),S}A.call(E.prototype);function P(C,S){S||(S={}),this.type="default",this.status=S.status===void 0?200:S.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in S?S.statusText:"OK",this.headers=new m(S.headers),this.url=S.url||"",this._initBody(C)}A.call(P.prototype),P.prototype.clone=function(){return new P(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},P.error=function(){var C=new P(null,{status:0,statusText:""});return C.type="error",C};var O=[301,302,303,307,308];P.redirect=function(C,S){if(O.indexOf(S)===-1)throw new RangeError("Invalid status code");return new P(null,{status:S,headers:{location:C}})},a.DOMException=s.DOMException;try{new a.DOMException}catch{a.DOMException=function(S,N){this.message=S,this.name=N;var k=Error(S);this.stack=k.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function L(C,S){return new Promise(function(N,k){var j=new E(C,S);if(j.signal&&j.signal.aborted)return k(new a.DOMException("Aborted","AbortError"));var B=new XMLHttpRequest;function q(){B.abort()}B.onload=function(){var F={status:B.status,statusText:B.statusText,headers:_(B.getAllResponseHeaders()||"")};F.url="responseURL"in B?B.responseURL:F.headers.get("X-Request-URL");var z="response"in B?B.response:B.responseText;N(new P(z,F))},B.onerror=function(){k(new TypeError("Network request failed"))},B.ontimeout=function(){k(new TypeError("Network request failed"))},B.onabort=function(){k(new a.DOMException("Aborted","AbortError"))},B.open(j.method,j.url,!0),j.credentials==="include"?B.withCredentials=!0:j.credentials==="omit"&&(B.withCredentials=!1),"responseType"in B&&o.blob&&(B.responseType="blob"),j.headers.forEach(function(F,z){B.setRequestHeader(z,F)}),j.signal&&(j.signal.addEventListener("abort",q),B.onreadystatechange=function(){B.readyState===4&&j.signal.removeEventListener("abort",q)}),B.send(typeof j._bodyInit>"u"?null:j._bodyInit)})}return L.polyfill=!0,s.fetch||(s.fetch=L,s.Headers=m,s.Request=E,s.Response=P),a.Headers=m,a.Request=E,a.Response=P,a.fetch=L,Object.defineProperty(a,"__esModule",{value:!0}),a})({})})(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var i=n;e=i.fetch,e.default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e})($a,$a.exports);var ny=$a.exports;Object.defineProperty(Vo,"__esModule",{value:!0});const iy=qo,sy=Yo,ay=Xo,oy=Ko,qu=Qo,ly=Zo,ri=it,$u=ns,uy=ny,Hu="x-contensis-classic-token";let Bf=class Qr{constructor(e=null){this.clientConfig=null,this.clientConfig=new qu.ClientConfig(e,Qr.defaultClientConfig),this.fetchFn=this.clientConfig.fetchFn?this.clientConfig.fetchFn:uy.default,this.httpClient=new ri.HttpClient(this,this.fetchFn),this.entries=new iy.EntryOperations(this.httpClient,this),this.project=new ay.ProjectOperations(this.httpClient,this),this.contentTypes=new sy.ContentTypeOperations(this.httpClient,this),this.nodes=new ly.NodeOperations(this.httpClient,this),this.taxonomy=new oy.TaxonomyOperations(this.httpClient,this)}static create(e=null){return new Qr(e)}static configure(e){Qr.defaultClientConfig=new qu.ClientConfig(e,Qr.defaultClientConfig)}getParams(){return this.clientConfig.toParams()}getHeaders(e="application/json"){let r={Accept:"application/json"};return e&&(r["Content-Type"]=e),this.clientConfig.accessToken||(r.Authorization=`Bearer ${this.bearerToken}`),r}isBearerTokenExpired(){return!(this.bearerToken&&this.bearerTokenExpiryDate&&new Date(new Date().getTime()+6e4)this.bearerToken).catch(e=>{throw e instanceof ri.ContensisAuthenticationError?e:new ri.ContensisApplicationError(e.message)}):Promise.resolve(this.bearerToken)}authenticate(){const e=this.getAuthenticatePayload(),r=Object.keys(e).map(i=>encodeURIComponent(i)+"="+encodeURIComponent(e[i])).join("&");let n=this.clientConfig.rootUrl?this.clientConfig.rootUrl:"";return this.fetchFn(`${n}/authenticate/connect/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:r}).then(async i=>{let s=await i.json();return{response:i,responseData:s}}).then(i=>{let{response:s,responseData:a}=i;if(!s.ok)throw new ri.ContensisAuthenticationError(a.error?a.error:JSON.stringify(a));this.bearerToken=a.access_token;const o=a.expires_in,l=new Date;this.bearerTokenExpiryDate=new Date(l.getTime()+o*1e3),a.refresh_token?(this.refreshToken=a.refresh_token,this.refreshTokenExpiryDate=new Date(l.getTime()+15*24*3600*1e3)):(this.refreshToken=null,this.refreshTokenExpiryDate=null),s.headers&&s.headers.has(Hu)?this.contensisClassicToken=s.headers.get(Hu):this.contensisClassicToken=null})}getAuthenticatePayload(){let e={scope:this.clientConfig.clientType==="client_credentials"?$u.getResourcesScopes():$u.getAllScopes()};if(this.clientConfig.clientType!=="none"&&(e.grant_type=this.clientConfig.clientType),this.clientConfig.clientType==="client_credentials"){let r=this.clientConfig.clientDetails;e.client_id=r.clientId,e.client_secret=r.clientSecret}else if(this.clientConfig.clientType==="contensis_classic"){let r=this.clientConfig.clientDetails;e.username=r.username,e.password=r.password}else if(this.clientConfig.clientType==="contensis_classic_refresh_token"){let r=this.clientConfig.clientDetails;e.refresh_token=r.refreshToken}return e}};Bf.defaultClientConfig=null;Vo.Client=Bf;Object.defineProperty(_r,"__esModule",{value:!0});var is=it,D=_r.Op=is.Op,jr=_r.OrderBy=is.OrderBy,Pe=_r.Query=is.Query;_r.ZenqlQuery=is.ZenqlQuery;var cy=Vo,zf=_r.Client=cy.Client;const dy=()=>{if(typeof window<"u"){const t=window.location.hostname;return fy(t)}return null},fy=t=>t.startsWith("localhost")?"latest":t.endsWith("contensis.cloud")?t.indexOf("preview.")>-1?"latest":"published":t.endsWith("cloud.contensis.com")&&t.indexOf("preview-")>-1?"latest":"published",py={rootUrl:"https://cms-uni-hull.cloud.contensis.com",accessToken:"rRdGBGOsFIIWzFDeXMz9Zf6gpSq8sidf5b2yeys4pqfDbQO7",projectId:"website",versionStatus:dy()},Nt=zf.create(py),hy=async t=>{try{return(await Nt.nodes.get({path:t,entryFields:"*"})).entry}catch(e){console.log(e)}};function my(t){const e=t.fill||"currentColor",r=t.secondaryfill||e,n=t.title||"play to pause",i=".nc-int-play-to-pause{--transition-duration:0.4s}.nc-int-play-to-pause *{transition:transform var(--transition-duration) cubic-bezier(.77,0,.18,1),opacity var(--transition-duration)}.nc-int-play-to-pause :nth-child(1){transition-delay:.1s}.nc-int-play-to-pause :nth-child(2),.nc-int-play-to-pause :nth-child(3){transform-origin:50% 50%;transform:translateY(-32px)}.nc-int-play-to-pause :nth-child(3){transition-delay:.1s}.nc-int-play-to-pause.nc-int-icon-state-b :nth-child(1){transform:translateY(32px);transition-delay:0s}.nc-int-play-to-pause.nc-int-icon-state-b :nth-child(2),.nc-int-play-to-pause.nc-int-icon-state-b :nth-child(3){transform:translateY(0);opacity:1}.nc-int-play-to-pause.nc-int-icon-state-b :nth-child(2){transition-delay:.1s}.nc-int-play-to-pause.nc-int-icon-state-b :nth-child(3){transition-delay:0s}";function s(a){const o=a.currentTarget.querySelector(".js-nc-int-icon");o&&(o.classList.toggle("nc-int-icon-state-b"),a.currentTarget.dispatchEvent(new Event("ncstatechanged")))}return w.jsxs("svg",{onClick:s,height:"32",width:"32",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:n}),w.jsxs("g",{fill:r,stroke:r,strokeLinecap:"square",strokeLinejoin:"miter",strokeMiterlimit:"10",strokeWidth:"2",children:[w.jsxs("g",{className:"js-nc-int-icon nc-int-play-to-pause nc-int-icon-state-b",children:[w.jsx("polygon",{fill:"none",points:"5 29 27 16 5 3 5 29",stroke:e}),w.jsx("rect",{height:"26",width:"7",fill:"none",stroke:e,x:"5",y:"3"}),w.jsx("rect",{height:"26",width:"7",fill:"none",x:"20",y:"3"})]}),w.jsx("style",{children:i})]})]})}function gy(t){if(typeof Proxy>"u")return t;const e=new Map,r=(...n)=>t(...n);return new Proxy(r,{get:(n,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}function pn(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Ha=t=>Array.isArray(t);function Vf(t,e){if(!Array.isArray(e))return!1;const r=e.length;if(r!==t.length)return!1;for(let n=0;n{e[0][n]=r.get(),e[1][n]=r.getVelocity()}),e}function Jo(t,e,r,n){if(typeof e=="function"){const[i,s]=Uu(n);e=e(r!==void 0?r:t.custom,i,s)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,s]=Uu(n);e=e(r!==void 0?r:t.custom,i,s)}return e}function ss(t,e,r){const n=t.getProps();return Jo(n,e,r!==void 0?r:n.custom,t)}const el=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tl=["initial",...el],On=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Rt=new Set(On),ft=t=>t*1e3,pt=t=>t/1e3,by={type:"spring",stiffness:500,damping:25,restSpeed:10},yy=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),vy={type:"keyframes",duration:.8},wy={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},xy=(t,{keyframes:e})=>e.length>2?vy:Rt.has(t)?t.startsWith("scale")?yy(e[1]):by:wy;function rl(t,e){return t?t[e]||t.default||t:void 0}const Sy={skipAnimations:!1,useManualTiming:!1},Ty=t=>t!==null;function as(t,{repeat:e,repeatType:r="loop"},n){const i=t.filter(Ty),s=e&&r!=="loop"&&e%2===1?0:i.length-1;return!s||n===void 0?i[s]:n}const Te=t=>t;function Ey(t){let e=new Set,r=new Set,n=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function o(u){s.has(u)&&(l.schedule(u),t()),u(a)}const l={schedule:(u,d=!1,f=!1)=>{const p=f&&n?e:r;return d&&s.add(u),p.has(u)||p.add(u),u},cancel:u=>{r.delete(u),s.delete(u)},process:u=>{if(a=u,n){i=!0;return}n=!0,[e,r]=[r,e],r.clear(),e.forEach(o),n=!1,i&&(i=!1,l.process(u))}};return l}const ni=["read","resolveKeyframes","update","preRender","render","postRender"],Cy=40;function qf(t,e){let r=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>r=!0,a=ni.reduce((b,y)=>(b[y]=Ey(s),b),{}),{read:o,resolveKeyframes:l,update:u,preRender:d,render:f,postRender:c}=a,p=()=>{const b=performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(b-i.timestamp,Cy),1),i.timestamp=b,i.isProcessing=!0,o.process(i),l.process(i),u.process(i),d.process(i),f.process(i),c.process(i),i.isProcessing=!1,r&&e&&(n=!1,t(p))},m=()=>{r=!0,n=!0,i.isProcessing||t(p)};return{schedule:ni.reduce((b,y)=>{const v=a[y];return b[y]=(x,A=!1,R=!1)=>(r||m(),v.schedule(x,A,R)),b},{}),cancel:b=>{for(let y=0;y(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,Py=1e-7,Ay=12;function My(t,e,r,n,i){let s,a,o=0;do a=e+(r-e)/2,s=$f(a,n,i)-t,s>0?r=a:e=a;while(Math.abs(s)>Py&&++oMy(s,0,1,t,r);return s=>s===0||s===1?s:$f(i(s),e,n)}const Hf=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Uf=t=>e=>1-t(1-e),Wf=Ln(.33,1.53,.69,.99),nl=Uf(Wf),Gf=Hf(nl),Yf=t=>(t*=2)<1?.5*nl(t):.5*(2-Math.pow(2,-10*(t-1))),il=t=>1-Math.sin(Math.acos(t)),Xf=Uf(il),Kf=Hf(il),Qf=t=>/^0[^.\s]+$/u.test(t);function ky(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Qf(t):!0}let Ua=Te;const Zf=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Jf=t=>e=>typeof e=="string"&&e.startsWith(t),ep=Jf("--"),Iy=Jf("var(--"),sl=t=>Iy(t)?Oy.test(t.split("/*")[0].trim()):!1,Oy=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ly=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function _y(t){const e=Ly.exec(t);if(!e)return[,];const[,r,n,i]=e;return[`--${r??n}`,i]}function tp(t,e,r=1){const[n,i]=_y(t);if(!n)return;const s=window.getComputedStyle(e).getPropertyValue(n);if(s){const a=s.trim();return Zf(a)?parseFloat(a):a}return sl(i)?tp(i,e,r+1):i}const It=(t,e,r)=>r>e?e:rtypeof t=="number",parse:parseFloat,transform:t=>t},mn={...Nr,transform:t=>It(0,1,t)},ii={...Nr,default:1},_n=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),St=_n("deg"),Je=_n("%"),G=_n("px"),jy=_n("vh"),Ny=_n("vw"),Wu={...Je,parse:t=>Je.parse(t)/100,transform:t=>Je.transform(t*100)},Ry=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Gu=t=>t===Nr||t===G,Yu=(t,e)=>parseFloat(t.split(", ")[e]),Xu=(t,e)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/u);if(i)return Yu(i[1],e);{const s=n.match(/^matrix\((.+)\)$/u);return s?Yu(s[1],t):0}},Dy=new Set(["x","y","z"]),Fy=On.filter(t=>!Dy.has(t));function By(t){const e=[];return Fy.forEach(r=>{const n=t.getValue(r);n!==void 0&&(e.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),e}const Er={width:({x:t},{paddingLeft:e="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),height:({y:t},{paddingTop:e="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Xu(4,13),y:Xu(5,14)};Er.translateX=Er.x;Er.translateY=Er.y;const rp=t=>e=>e.test(t),zy={test:t=>t==="auto",parse:t=>t},np=[Nr,G,Je,St,Ny,jy,zy],Ku=t=>np.find(rp(t)),Kt=new Set;let Wa=!1,Ga=!1;function ip(){if(Ga){const t=Array.from(Kt).filter(n=>n.needsMeasurement),e=new Set(t.map(n=>n.element)),r=new Map;e.forEach(n=>{const i=By(n);i.length&&(r.set(n,i),n.render())}),t.forEach(n=>n.measureInitialState()),e.forEach(n=>{n.render();const i=r.get(n);i&&i.forEach(([s,a])=>{var o;(o=n.getValue(s))===null||o===void 0||o.set(a)})}),t.forEach(n=>n.measureEndState()),t.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Ga=!1,Wa=!1,Kt.forEach(t=>t.complete()),Kt.clear()}function sp(){Kt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Ga=!0)})}function Vy(){sp(),ip()}class al{constructor(e,r,n,i,s,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=r,this.name=n,this.motionValue=i,this.element=s,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Kt.add(this),Wa||(Wa=!0,ie.read(sp),ie.resolveKeyframes(ip))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:r,element:n,motionValue:i}=this;for(let s=0;sMath.round(t*1e5)/1e5,ol=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function qy(t){return t==null}const $y=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ll=(t,e)=>r=>!!(typeof r=="string"&&$y.test(r)&&r.startsWith(t)||e&&!qy(r)&&Object.prototype.hasOwnProperty.call(r,e)),ap=(t,e,r)=>n=>{if(typeof n!="string")return n;const[i,s,a,o]=n.match(ol);return{[t]:parseFloat(i),[e]:parseFloat(s),[r]:parseFloat(a),alpha:o!==void 0?parseFloat(o):1}},Hy=t=>It(0,255,t),$s={...Nr,transform:t=>Math.round(Hy(t))},Wt={test:ll("rgb","red"),parse:ap("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+$s.transform(t)+", "+$s.transform(e)+", "+$s.transform(r)+", "+nn(mn.transform(n))+")"};function Uy(t){let e="",r="",n="",i="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),n=t.substring(3,4),i=t.substring(4,5),e+=e,r+=r,n+=n,i+=i),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const Ya={test:ll("#"),parse:Uy,transform:Wt.transform},fr={test:ll("hsl","hue"),parse:ap("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+Je.transform(nn(e))+", "+Je.transform(nn(r))+", "+nn(mn.transform(n))+")"},xe={test:t=>Wt.test(t)||Ya.test(t)||fr.test(t),parse:t=>Wt.test(t)?Wt.parse(t):fr.test(t)?fr.parse(t):Ya.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Wt.transform(t):fr.transform(t)},Wy=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Gy(t){var e,r;return isNaN(t)&&typeof t=="string"&&(((e=t.match(ol))===null||e===void 0?void 0:e.length)||0)+(((r=t.match(Wy))===null||r===void 0?void 0:r.length)||0)>0}const op="number",lp="color",Yy="var",Xy="var(",Qu="${}",Ky=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function gn(t){const e=t.toString(),r=[],n={color:[],number:[],var:[]},i=[];let s=0;const o=e.replace(Ky,l=>(xe.test(l)?(n.color.push(s),i.push(lp),r.push(xe.parse(l))):l.startsWith(Xy)?(n.var.push(s),i.push(Yy),r.push(l)):(n.number.push(s),i.push(op),r.push(parseFloat(l))),++s,Qu)).split(Qu);return{values:r,split:o,indexes:n,types:i}}function up(t){return gn(t).values}function cp(t){const{split:e,types:r}=gn(t),n=e.length;return i=>{let s="";for(let a=0;atypeof t=="number"?0:t;function Zy(t){const e=up(t);return cp(t)(e.map(Qy))}const Ot={test:Gy,parse:up,createTransformer:cp,getAnimatableNone:Zy},Jy=new Set(["brightness","contrast","saturate","opacity"]);function ev(t){const[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=r.match(ol)||[];if(!n)return t;const i=r.replace(n,"");let s=Jy.has(e)?1:0;return n!==r&&(s*=100),e+"("+s+i+")"}const tv=/\b([a-z-]*)\(.*?\)/gu,Xa={...Ot,getAnimatableNone:t=>{const e=t.match(tv);return e?e.map(ev).join(" "):t}},rv={borderWidth:G,borderTopWidth:G,borderRightWidth:G,borderBottomWidth:G,borderLeftWidth:G,borderRadius:G,radius:G,borderTopLeftRadius:G,borderTopRightRadius:G,borderBottomRightRadius:G,borderBottomLeftRadius:G,width:G,maxWidth:G,height:G,maxHeight:G,top:G,right:G,bottom:G,left:G,padding:G,paddingTop:G,paddingRight:G,paddingBottom:G,paddingLeft:G,margin:G,marginTop:G,marginRight:G,marginBottom:G,marginLeft:G,backgroundPositionX:G,backgroundPositionY:G},nv={rotate:St,rotateX:St,rotateY:St,rotateZ:St,scale:ii,scaleX:ii,scaleY:ii,scaleZ:ii,skew:St,skewX:St,skewY:St,distance:G,translateX:G,translateY:G,translateZ:G,x:G,y:G,z:G,perspective:G,transformPerspective:G,opacity:mn,originX:Wu,originY:Wu,originZ:G},Zu={...Nr,transform:Math.round},ul={...rv,...nv,zIndex:Zu,size:G,fillOpacity:mn,strokeOpacity:mn,numOctaves:Zu},iv={...ul,color:xe,backgroundColor:xe,outlineColor:xe,fill:xe,stroke:xe,borderColor:xe,borderTopColor:xe,borderRightColor:xe,borderBottomColor:xe,borderLeftColor:xe,filter:Xa,WebkitFilter:Xa},cl=t=>iv[t];function dp(t,e){let r=cl(t);return r!==Xa&&(r=Ot),r.getAnimatableNone?r.getAnimatableNone(e):void 0}const sv=new Set(["auto","none","0"]);function av(t,e,r){let n=0,i;for(;n{r.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function dl(t){return typeof t=="function"}let Ti;function ov(){Ti=void 0}const et={now:()=>(Ti===void 0&&et.set(ge.isProcessing||Sy.useManualTiming?ge.timestamp:performance.now()),Ti),set:t=>{Ti=t,queueMicrotask(ov)}},Ju=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ot.test(t)||t==="0")&&!t.startsWith("url("));function lv(t){const e=t[0];if(t.length===1)return!0;for(let r=0;rcv?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Vy(),this._resolved}onKeyframesResolved(e,r){this.resolvedAt=et.now(),this.hasAttemptedResolve=!0;const{name:n,type:i,velocity:s,delay:a,onComplete:o,onUpdate:l,isGenerator:u}=this.options;if(!u&&!uv(e,n,i,s))if(a)this.options.duration=0;else{l==null||l(as(e,this.options,r)),o==null||o(),this.resolveFinishedPromise();return}const d=this.initPlayback(e,r);d!==!1&&(this._resolved={keyframes:e,finalKeyframe:r,...d},this.onPostResolved())}onPostResolved(){}then(e,r){return this.currentFinishedPromise.then(e,r)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function hp(t,e){return e?t*(1e3/e):0}const dv=5;function mp(t,e,r){const n=Math.max(e-dv,0);return hp(r-t(n),e-n)}const Hs=.001,fv=.01,pv=10,hv=.05,mv=1;function gv({duration:t=800,bounce:e=.25,velocity:r=0,mass:n=1}){let i,s,a=1-e;a=It(hv,mv,a),t=It(fv,pv,pt(t)),a<1?(i=u=>{const d=u*a,f=d*t,c=d-r,p=Ka(u,a),m=Math.exp(-f);return Hs-c/p*m},s=u=>{const f=u*a*t,c=f*r+r,p=Math.pow(a,2)*Math.pow(u,2)*t,m=Math.exp(-f),h=Ka(Math.pow(u,2),a);return(-i(u)+Hs>0?-1:1)*((c-p)*m)/h}):(i=u=>{const d=Math.exp(-u*t),f=(u-r)*t+1;return-Hs+d*f},s=u=>{const d=Math.exp(-u*t),f=(r-u)*(t*t);return d*f});const o=5/t,l=yv(i,s,o);if(t=ft(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const u=Math.pow(l,2)*n;return{stiffness:u,damping:a*2*Math.sqrt(n*u),duration:t}}}const bv=12;function yv(t,e,r){let n=r;for(let i=1;it[r]!==void 0)}function xv(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!ec(t,wv)&&ec(t,vv)){const r=gv(t);e={...e,...r,mass:1},e.isResolvedFromDuration=!0}return e}function gp({keyframes:t,restDelta:e,restSpeed:r,...n}){const i=t[0],s=t[t.length-1],a={done:!1,value:i},{stiffness:o,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:c}=xv({...n,velocity:-pt(n.velocity||0)}),p=f||0,m=l/(2*Math.sqrt(o*u)),h=s-i,g=pt(Math.sqrt(o/u)),b=Math.abs(h)<5;r||(r=b?.01:2),e||(e=b?.005:.5);let y;if(m<1){const v=Ka(g,m);y=x=>{const A=Math.exp(-m*g*x);return s-A*((p+m*g*h)/v*Math.sin(v*x)+h*Math.cos(v*x))}}else if(m===1)y=v=>s-Math.exp(-g*v)*(h+(p+g*h)*v);else{const v=g*Math.sqrt(m*m-1);y=x=>{const A=Math.exp(-m*g*x),R=Math.min(v*x,300);return s-A*((p+m*g*h)*Math.sinh(R)+v*h*Math.cosh(R))/v}}return{calculatedDuration:c&&d||null,next:v=>{const x=y(v);if(c)a.done=v>=d;else{let A=0;m<1&&(A=v===0?ft(p):mp(y,v,x));const R=Math.abs(A)<=r,M=Math.abs(s-x)<=e;a.done=R&&M}return a.value=a.done?s:x,a}}}function tc({keyframes:t,velocity:e=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:d}){const f=t[0],c={done:!1,value:f},p=E=>o!==void 0&&El,m=E=>o===void 0?l:l===void 0||Math.abs(o-E)-h*Math.exp(-E/n),v=E=>b+y(E),x=E=>{const T=y(E),_=v(E);c.done=Math.abs(T)<=u,c.value=c.done?b:_};let A,R;const M=E=>{p(c.value)&&(A=E,R=gp({keyframes:[c.value,m(c.value)],velocity:mp(v,E,c.value),damping:i,stiffness:s,restDelta:u,restSpeed:d}))};return M(0),{calculatedDuration:null,next:E=>{let T=!1;return!R&&A===void 0&&(T=!0,x(E),M(E)),A!==void 0&&E>=A?R.next(E-A):(!T&&x(E),c)}}}const Sv=Ln(.42,0,1,1),Tv=Ln(0,0,.58,1),bp=Ln(.42,0,.58,1),Ev=t=>Array.isArray(t)&&typeof t[0]!="number",fl=t=>Array.isArray(t)&&typeof t[0]=="number",rc={linear:Te,easeIn:Sv,easeInOut:bp,easeOut:Tv,circIn:il,circInOut:Kf,circOut:Xf,backIn:nl,backInOut:Gf,backOut:Wf,anticipate:Yf},nc=t=>{if(fl(t)){Ua(t.length===4);const[e,r,n,i]=t;return Ln(e,r,n,i)}else if(typeof t=="string")return Ua(rc[t]!==void 0),rc[t];return t},Cv=(t,e)=>r=>e(t(r)),ht=(...t)=>t.reduce(Cv),Cr=(t,e,r)=>{const n=e-t;return n===0?1:(r-t)/n},ue=(t,e,r)=>t+(e-t)*r;function Us(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function Pv({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,e/=100,r/=100;let i=0,s=0,a=0;if(!e)i=s=a=r;else{const o=r<.5?r*(1+e):r+e-r*e,l=2*r-o;i=Us(l,o,t+1/3),s=Us(l,o,t),a=Us(l,o,t-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:n}}function Ni(t,e){return r=>r>0?e:t}const Ws=(t,e,r)=>{const n=t*t,i=r*(e*e-n)+n;return i<0?0:Math.sqrt(i)},Av=[Ya,Wt,fr],Mv=t=>Av.find(e=>e.test(t));function ic(t){const e=Mv(t);if(!e)return!1;let r=e.parse(t);return e===fr&&(r=Pv(r)),r}const sc=(t,e)=>{const r=ic(t),n=ic(e);if(!r||!n)return Ni(t,e);const i={...r};return s=>(i.red=Ws(r.red,n.red,s),i.green=Ws(r.green,n.green,s),i.blue=Ws(r.blue,n.blue,s),i.alpha=ue(r.alpha,n.alpha,s),Wt.transform(i))},Qa=new Set(["none","hidden"]);function kv(t,e){return Qa.has(t)?r=>r<=0?t:e:r=>r>=1?e:t}function Iv(t,e){return r=>ue(t,e,r)}function pl(t){return typeof t=="number"?Iv:typeof t=="string"?sl(t)?Ni:xe.test(t)?sc:_v:Array.isArray(t)?yp:typeof t=="object"?xe.test(t)?sc:Ov:Ni}function yp(t,e){const r=[...t],n=r.length,i=t.map((s,a)=>pl(s)(s,e[a]));return s=>{for(let a=0;a{for(const s in n)r[s]=n[s](i);return r}}function Lv(t,e){var r;const n=[],i={color:0,var:0,number:0};for(let s=0;s{const r=Ot.createTransformer(e),n=gn(t),i=gn(e);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?Qa.has(t)&&!i.values.length||Qa.has(e)&&!n.values.length?kv(t,e):ht(yp(Lv(n,i),i.values),r):Ni(t,e)};function vp(t,e,r){return typeof t=="number"&&typeof e=="number"&&typeof r=="number"?ue(t,e,r):pl(t)(t,e)}function jv(t,e,r){const n=[],i=r||vp,s=t.length-1;for(let a=0;ae[0];if(s===2&&t[0]===t[1])return()=>e[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=jv(e,n,i),o=a.length,l=u=>{let d=0;if(o>1)for(;dl(It(t[0],t[s-1],u)):l}function Rv(t,e){const r=t[t.length-1];for(let n=1;n<=e;n++){const i=Cr(0,e,n);t.push(ue(r,1,i))}}function Dv(t){const e=[0];return Rv(e,t.length-1),e}function Fv(t,e){return t.map(r=>r*e)}function Bv(t,e){return t.map(()=>e||bp).splice(0,t.length-1)}function Ri({duration:t=300,keyframes:e,times:r,ease:n="easeInOut"}){const i=Ev(n)?n.map(nc):nc(n),s={done:!1,value:e[0]},a=Fv(r&&r.length===e.length?r:Dv(e),t),o=Nv(a,e,{ease:Array.isArray(i)?i:Bv(e,i)});return{calculatedDuration:t,next:l=>(s.value=o(l),s.done=l>=t,s)}}const ac=2e4;function zv(t){let e=0;const r=50;let n=t.next(e);for(;!n.done&&e=ac?1/0:e}const Vv=t=>{const e=({timestamp:r})=>t(r);return{start:()=>ie.update(e,!0),stop:()=>kt(e),now:()=>ge.isProcessing?ge.timestamp:et.now()}},qv={decay:tc,inertia:tc,tween:Ri,keyframes:Ri,spring:gp},$v=t=>t/100;class hl extends pp{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:r,motionValue:n,element:i,keyframes:s}=this.options,a=(i==null?void 0:i.KeyframeResolver)||al,o=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new a(s,o,r,n,i),this.resolver.scheduleResolve()}initPlayback(e){const{type:r="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:s,velocity:a=0}=this.options,o=dl(r)?r:qv[r]||Ri;let l,u;o!==Ri&&typeof e[0]!="number"&&(l=ht($v,vp(e[0],e[1])),e=[0,100]);const d=o({...this.options,keyframes:e});s==="mirror"&&(u=o({...this.options,keyframes:[...e].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=zv(d));const{calculatedDuration:f}=d,c=f+i,p=c*(n+1)-i;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:c,totalDuration:p}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,r=!1){const{resolved:n}=this;if(!n){const{keyframes:E}=this.options;return{done:!0,value:E[E.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:a,mapPercentToKeyframes:o,keyframes:l,calculatedDuration:u,totalDuration:d,resolvedDuration:f}=n;if(this.startTime===null)return s.next(0);const{delay:c,repeat:p,repeatType:m,repeatDelay:h,onUpdate:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-d/this.speed,this.startTime)),r?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const b=this.currentTime-c*(this.speed>=0?1:-1),y=this.speed>=0?b<0:b>d;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let v=this.currentTime,x=s;if(p){const E=Math.min(this.currentTime,d)/f;let T=Math.floor(E),_=E%1;!_&&E>=1&&(_=1),_===1&&T--,T=Math.min(T,p+1),!!(T%2)&&(m==="reverse"?(_=1-_,h&&(_-=h/f)):m==="mirror"&&(x=a)),v=It(0,1,_)*f}const A=y?{done:!1,value:l[0]}:x.next(v);o&&(A.value=o(A.value));let{done:R}=A;!y&&u!==null&&(R=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return M&&i!==void 0&&(A.value=as(l,this.options,i)),g&&g(A.value),M&&this.finish(),A}get duration(){const{resolved:e}=this;return e?pt(e.calculatedDuration):0}get time(){return pt(this.currentTime)}set time(e){e=ft(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const r=this.playbackSpeed!==e;this.playbackSpeed=e,r&&(this.time=pt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Vv,onPlay:r,startTime:n}=this.options;this.driver||(this.driver=e(s=>this.tick(s))),r&&r();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=n??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const wp=new Set(["opacity","clipPath","filter","transform"]),Hv=10,Uv=(t,e)=>{let r="";const n=Math.max(Math.round(e/Hv),2);for(let i=0;i(e===void 0&&(e=t()),e)}const Wv={linearEasing:void 0};function Gv(t,e){const r=ml(t);return()=>{var n;return(n=Wv[e])!==null&&n!==void 0?n:r()}}const Di=Gv(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function xp(t){return!!(typeof t=="function"&&Di()||!t||typeof t=="string"&&(t in Za||Di())||fl(t)||Array.isArray(t)&&t.every(xp))}const Zr=([t,e,r,n])=>`cubic-bezier(${t}, ${e}, ${r}, ${n})`,Za={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Zr([0,.65,.55,1]),circOut:Zr([.55,0,1,.45]),backIn:Zr([.31,.01,.66,-.59]),backOut:Zr([.33,1.53,.69,.99])};function Sp(t,e){if(t)return typeof t=="function"&&Di()?Uv(t,e):fl(t)?Zr(t):Array.isArray(t)?t.map(r=>Sp(r,e)||Za.easeOut):Za[t]}function Yv(t,e,r,{delay:n=0,duration:i=300,repeat:s=0,repeatType:a="loop",ease:o,times:l}={}){const u={[e]:r};l&&(u.offset=l);const d=Sp(o,i);return Array.isArray(d)&&(u.easing=d),t.animate(u,{delay:n,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"})}function oc(t,e){t.timeline=e,t.onfinish=null}const Xv=ml(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Fi=10,Kv=2e4;function Qv(t){return dl(t.type)||t.type==="spring"||!xp(t.ease)}function Zv(t,e){const r=new hl({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let n={done:!1,value:t[0]};const i=[];let s=0;for(;!n.done&&sthis.onKeyframesResolved(a,o),r,n,i),this.resolver.scheduleResolve()}initPlayback(e,r){var n;let{duration:i=300,times:s,ease:a,type:o,motionValue:l,name:u,startTime:d}=this.options;if(!(!((n=l.owner)===null||n===void 0)&&n.current))return!1;if(typeof a=="string"&&Di()&&Jv(a)&&(a=Tp[a]),Qv(this.options)){const{onComplete:c,onUpdate:p,motionValue:m,element:h,...g}=this.options,b=Zv(e,g);e=b.keyframes,e.length===1&&(e[1]=e[0]),i=b.duration,s=b.times,a=b.ease,o="keyframes"}const f=Yv(l.owner.current,u,e,{...this.options,duration:i,times:s,ease:a});return f.startTime=d??this.calcStartTime(),this.pendingTimeline?(oc(f,this.pendingTimeline),this.pendingTimeline=void 0):f.onfinish=()=>{const{onComplete:c}=this.options;l.set(as(e,this.options,r)),c&&c(),this.cancel(),this.resolveFinishedPromise()},{animation:f,duration:i,times:s,type:o,ease:a,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:r}=e;return pt(r)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:r}=e;return pt(r.currentTime||0)}set time(e){const{resolved:r}=this;if(!r)return;const{animation:n}=r;n.currentTime=ft(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:r}=e;return r.playbackRate}set speed(e){const{resolved:r}=this;if(!r)return;const{animation:n}=r;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:r}=e;return r.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:r}=e;return r.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:r}=this;if(!r)return Te;const{animation:n}=r;oc(n,e)}return Te}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:r}=e;r.playState==="finished"&&this.updateFinishedPromise(),r.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:r}=e;r.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:r,keyframes:n,duration:i,type:s,ease:a,times:o}=e;if(r.playState==="idle"||r.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:f,element:c,...p}=this.options,m=new hl({...p,keyframes:n,duration:i,type:s,ease:a,times:o,isGenerator:!0}),h=ft(this.time);u.setWithVelocity(m.sample(h-Fi).value,m.sample(h).value,Fi)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:r,name:n,repeatDelay:i,repeatType:s,damping:a,type:o}=e;return Xv()&&n&&wp.has(n)&&r&&r.owner&&r.owner.current instanceof HTMLElement&&!r.owner.getProps().onUpdate&&!i&&s!=="mirror"&&a!==0&&o!=="inertia"}}const e1=ml(()=>window.ScrollTimeline!==void 0);class t1{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,r){return Promise.all(this.animations).then(e).catch(r)}getAll(e){return this.animations[0][e]}setAll(e,r){for(let n=0;ne1()&&i.attachTimeline?i.attachTimeline(e):r(i));return()=>{n.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let r=0;rr[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function r1({when:t,delay:e,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:u,...d}){return!!Object.keys(d).length}const gl=(t,e,r,n={},i,s)=>a=>{const o=rl(n,t)||{},l=o.delay||n.delay||0;let{elapsed:u=0}=n;u=u-ft(l);let d={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:e.getVelocity(),...o,delay:-u,onUpdate:c=>{e.set(c),o.onUpdate&&o.onUpdate(c)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:t,motionValue:e,element:s?void 0:i};r1(o)||(d={...d,...xy(t,d)}),d.duration&&(d.duration=ft(d.duration)),d.repeatDelay&&(d.repeatDelay=ft(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!s&&e.get()!==void 0){const c=as(d.keyframes,o);if(c!==void 0)return ie.update(()=>{d.onUpdate(c),d.onComplete()}),new t1([])}return!s&&lc.supports(d)?new lc(d):new hl(d)},n1=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),i1=t=>Ha(t)?t[t.length-1]||0:t;function bl(t,e){t.indexOf(e)===-1&&t.push(e)}function yl(t,e){const r=t.indexOf(e);r>-1&&t.splice(r,1)}class vl{constructor(){this.subscriptions=[]}add(e){return bl(this.subscriptions,e),()=>yl(this.subscriptions,e)}notify(e,r,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,r,n);else for(let s=0;s!isNaN(parseFloat(t));class a1{constructor(e,r={}){this.version="11.11.9",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,i=!0)=>{const s=et.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=r.owner}setCurrent(e){this.current=e,this.updatedAt=et.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=s1(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new vl);const n=this.events[e].add(r);return e==="change"?()=>{n(),ie.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,r){this.passiveEffect=e,this.stopPassiveEffect=r}set(e,r=!0){!r||!this.passiveEffect?this.updateAndNotify(e,r):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,r=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=et.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>uc)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,uc);return hp(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=e(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function bn(t,e){return new a1(t,e)}function o1(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,bn(r))}function l1(t,e){const r=ss(t,e);let{transitionEnd:n={},transition:i={},...s}=r||{};s={...s,...n};for(const a in s){const o=i1(s[a]);o1(t,a,o)}}const os=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),u1="framerAppearId",Ep="data-"+os(u1);function Cp(t){return t.props[Ep]}const Se=t=>!!(t&&t.getVelocity);function c1(t){return!!(Se(t)&&t.add)}function Ja(t,e){if(!t.applyWillChange)return;const r=t.getValue("willChange");if(c1(r))return r.add(e)}function d1({protectedKeys:t,needsAnimating:e},r){const n=t.hasOwnProperty(r)&&e[r]!==!0;return e[r]=!1,n}function Pp(t,e,{delay:r=0,transitionOverride:n,type:i}={}){var s;let{transition:a=t.getDefaultTransition(),transitionEnd:o,...l}=e;n&&(a=n);const u=[],d=i&&t.animationState&&t.animationState.getState()[i];for(const f in l){const c=t.getValue(f,(s=t.latestValues[f])!==null&&s!==void 0?s:null),p=l[f];if(p===void 0||d&&d1(d,f))continue;const m={delay:r,...rl(a||{},f)};let h=!1;if(window.MotionHandoffAnimation){const b=Cp(t);if(b){const y=window.MotionHandoffAnimation(b,f,ie);y!==null&&(m.startTime=y,h=!0)}}Ja(t,f),c.start(gl(f,c,p,t.shouldReduceMotion&&Rt.has(f)?{type:!1}:m,t,h));const g=c.animation;g&&u.push(g)}return o&&Promise.all(u).then(()=>{ie.update(()=>{o&&l1(t,o)})}),u}function eo(t,e,r={}){var n;const i=ss(t,e,r.type==="exit"?(n=t.presenceContext)===null||n===void 0?void 0:n.custom:void 0);let{transition:s=t.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(s=r.transitionOverride);const a=i?()=>Promise.all(Pp(t,i,r)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:c}=s;return f1(t,e,d+u,f,c,r)}:()=>Promise.resolve(),{when:l}=s;if(l){const[u,d]=l==="beforeChildren"?[a,o]:[o,a];return u().then(()=>d())}else return Promise.all([a(),o(r.delay)])}function f1(t,e,r=0,n=0,i=1,s){const a=[],o=(t.variantChildren.size-1)*n,l=i===1?(u=0)=>u*n:(u=0)=>o-u*n;return Array.from(t.variantChildren).sort(p1).forEach((u,d)=>{u.notify("AnimationStart",e),a.push(eo(u,e,{...s,delay:r+l(d)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(a)}function p1(t,e){return t.sortNodePosition(e)}function h1(t,e,r={}){t.notify("AnimationStart",e);let n;if(Array.isArray(e)){const i=e.map(s=>eo(t,s,r));n=Promise.all(i)}else if(typeof e=="string")n=eo(t,e,r);else{const i=typeof e=="function"?ss(t,e,r.custom):e;n=Promise.all(Pp(t,i,r))}return n.then(()=>{t.notify("AnimationComplete",e)})}const m1=tl.length;function Ap(t){if(!t)return;if(!t.isControllingVariants){const r=t.parent?Ap(t.parent)||{}:{};return t.props.initial!==void 0&&(r.initial=t.props.initial),r}const e={};for(let r=0;rPromise.all(e.map(({animation:r,options:n})=>h1(t,r,n)))}function v1(t){let e=y1(t),r=cc(),n=!0;const i=l=>(u,d)=>{var f;const c=ss(t,d,l==="exit"?(f=t.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(c){const{transition:p,transitionEnd:m,...h}=c;u={...u,...h,...m}}return u};function s(l){e=l(t)}function a(l){const{props:u}=t,d=Ap(t.parent)||{},f=[],c=new Set;let p={},m=1/0;for(let g=0;gm&&x,T=!1;const _=Array.isArray(v)?v:[v];let P=_.reduce(i(b),{});A===!1&&(P={});const{prevResolvedValues:O={}}=y,L={...O,...P},C=k=>{E=!0,c.has(k)&&(T=!0,c.delete(k)),y.needsAnimating[k]=!0;const j=t.getValue(k);j&&(j.liveStyle=!1)};for(const k in L){const j=P[k],B=O[k];if(p.hasOwnProperty(k))continue;let q=!1;Ha(j)&&Ha(B)?q=!Vf(j,B):q=j!==B,q?j!=null?C(k):c.add(k):j!==void 0&&c.has(k)?C(k):y.protectedKeys[k]=!0}y.prevProp=v,y.prevResolvedValues=P,y.isActive&&(p={...p,...P}),n&&t.blockInitialAnimation&&(E=!1),E&&(!(R&&M)||T)&&f.push(..._.map(k=>({animation:k,options:{type:b}})))}if(c.size){const g={};c.forEach(b=>{const y=t.getBaseTarget(b),v=t.getValue(b);v&&(v.liveStyle=!0),g[b]=y??null}),f.push({animation:g})}let h=!!f.length;return n&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(h=!1),n=!1,h?e(f):Promise.resolve()}function o(l,u){var d;if(r[l].isActive===u)return Promise.resolve();(d=t.variantChildren)===null||d===void 0||d.forEach(c=>{var p;return(p=c.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),r[l].isActive=u;const f=a(l);for(const c in r)r[c].protectedKeys={};return f}return{animateChanges:a,setActive:o,setAnimateFunction:s,getState:()=>r,reset:()=>{r=cc(),n=!0}}}function w1(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Vf(e,t):!1}function Vt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function cc(){return{animate:Vt(!0),whileInView:Vt(),whileHover:Vt(),whileTap:Vt(),whileDrag:Vt(),whileFocus:Vt(),exit:Vt()}}class Dt{constructor(e){this.isMounted=!1,this.node=e}update(){}}class x1 extends Dt{constructor(e){super(e),e.animationState||(e.animationState=v1(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();pn(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:r}=this.node.prevProps||{};e!==r&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let S1=0;class T1 extends Dt{constructor(){super(...arguments),this.id=S1++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const i=this.node.animationState.setActive("exit",!e);r&&!e&&i.then(()=>r(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const E1={animation:{Feature:x1},exit:{Feature:T1}},Mp=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function ls(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}const C1=t=>e=>Mp(e)&&t(e,ls(e));function dt(t,e,r,n={passive:!0}){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r)}function mt(t,e,r,n){return dt(t,e,C1(r),n)}const dc=(t,e)=>Math.abs(t-e);function P1(t,e){const r=dc(t.x,e.x),n=dc(t.y,e.y);return Math.sqrt(r**2+n**2)}class kp{constructor(e,r,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Ys(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,p=P1(f.offset,{x:0,y:0})>=3;if(!c&&!p)return;const{point:m}=f,{timestamp:h}=ge;this.history.push({...m,timestamp:h});const{onStart:g,onMove:b}=this.handlers;c||(g&&g(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,f)},this.handlePointerMove=(f,c)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Gs(c,this.transformPagePoint),ie.update(this.updatePoint,!0)},this.handlePointerUp=(f,c)=>{this.end();const{onEnd:p,onSessionEnd:m,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=Ys(f.type==="pointercancel"?this.lastMoveEventInfo:Gs(c,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,g),m&&m(f,g)},!Mp(e))return;this.dragSnapToOrigin=s,this.handlers=r,this.transformPagePoint=n,this.contextWindow=i||window;const a=ls(e),o=Gs(a,this.transformPagePoint),{point:l}=o,{timestamp:u}=ge;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=r;d&&d(e,Ys(o,this.history)),this.removeListeners=ht(mt(this.contextWindow,"pointermove",this.handlePointerMove),mt(this.contextWindow,"pointerup",this.handlePointerUp),mt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),kt(this.updatePoint)}}function Gs(t,e){return e?{point:e(t.point)}:t}function fc(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Ys({point:t},e){return{point:t,delta:fc(t,Ip(e)),offset:fc(t,A1(e)),velocity:M1(e,.1)}}function A1(t){return t[0]}function Ip(t){return t[t.length-1]}function M1(t,e){if(t.length<2)return{x:0,y:0};let r=t.length-1,n=null;const i=Ip(t);for(;r>=0&&(n=t[r],!(i.timestamp-n.timestamp>ft(e)));)r--;if(!n)return{x:0,y:0};const s=pt(i.timestamp-n.timestamp);if(s===0)return{x:0,y:0};const a={x:(i.x-n.x)/s,y:(i.y-n.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Op(t){let e=null;return()=>{const r=()=>{e=null};return e===null?(e=t,r):!1}}const pc=Op("dragHorizontal"),hc=Op("dragVertical");function Lp(t){let e=!1;if(t==="y")e=hc();else if(t==="x")e=pc();else{const r=pc(),n=hc();r&&n?e=()=>{r(),n()}:(r&&r(),n&&n())}return e}function _p(){const t=Lp(!0);return t?(t(),!1):!0}function pr(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}const jp=1e-4,k1=1-jp,I1=1+jp,Np=.01,O1=0-Np,L1=0+Np;function Fe(t){return t.max-t.min}function _1(t,e,r){return Math.abs(t-e)<=r}function mc(t,e,r,n=.5){t.origin=n,t.originPoint=ue(e.min,e.max,t.origin),t.scale=Fe(r)/Fe(e),t.translate=ue(r.min,r.max,t.origin)-t.originPoint,(t.scale>=k1&&t.scale<=I1||isNaN(t.scale))&&(t.scale=1),(t.translate>=O1&&t.translate<=L1||isNaN(t.translate))&&(t.translate=0)}function sn(t,e,r,n){mc(t.x,e.x,r.x,n?n.originX:void 0),mc(t.y,e.y,r.y,n?n.originY:void 0)}function gc(t,e,r){t.min=r.min+e.min,t.max=t.min+Fe(e)}function j1(t,e,r){gc(t.x,e.x,r.x),gc(t.y,e.y,r.y)}function bc(t,e,r){t.min=e.min-r.min,t.max=t.min+Fe(e)}function an(t,e,r){bc(t.x,e.x,r.x),bc(t.y,e.y,r.y)}function N1(t,{min:e,max:r},n){return e!==void 0&&tr&&(t=n?ue(r,t,n.max):Math.min(t,r)),t}function yc(t,e,r){return{min:e!==void 0?t.min+e:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function R1(t,{top:e,left:r,bottom:n,right:i}){return{x:yc(t.x,r,i),y:yc(t.y,e,n)}}function vc(t,e){let r=e.min-t.min,n=e.max-t.max;return e.max-e.minn?r=Cr(e.min,e.max-n,t.min):n>i&&(r=Cr(t.min,t.max-i,e.min)),It(0,1,r)}function B1(t,e){const r={};return e.min!==void 0&&(r.min=e.min-t.min),e.max!==void 0&&(r.max=e.max-t.min),r}const to=.35;function z1(t=to){return t===!1?t=0:t===!0&&(t=to),{x:wc(t,"left","right"),y:wc(t,"top","bottom")}}function wc(t,e,r){return{min:xc(t,e),max:xc(t,r)}}function xc(t,e){return typeof t=="number"?t:t[e]||0}const Sc=()=>({translate:0,scale:1,origin:0,originPoint:0}),hr=()=>({x:Sc(),y:Sc()}),Tc=()=>({min:0,max:0}),de=()=>({x:Tc(),y:Tc()});function $e(t){return[t("x"),t("y")]}function Rp({top:t,left:e,right:r,bottom:n}){return{x:{min:e,max:r},y:{min:t,max:n}}}function V1({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function q1(t,e){if(!e)return t;const r=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function Xs(t){return t===void 0||t===1}function ro({scale:t,scaleX:e,scaleY:r}){return!Xs(t)||!Xs(e)||!Xs(r)}function qt(t){return ro(t)||Dp(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Dp(t){return Ec(t.x)||Ec(t.y)}function Ec(t){return t&&t!=="0%"}function Bi(t,e,r){const n=t-r,i=e*n;return r+i}function Cc(t,e,r,n,i){return i!==void 0&&(t=Bi(t,i,n)),Bi(t,r,n)+e}function no(t,e=0,r=1,n,i){t.min=Cc(t.min,e,r,n,i),t.max=Cc(t.max,e,r,n,i)}function Fp(t,{x:e,y:r}){no(t.x,e.translate,e.scale,e.originPoint),no(t.y,r.translate,r.scale,r.originPoint)}const Pc=.999999999999,Ac=1.0000000000001;function $1(t,e,r,n=!1){const i=r.length;if(!i)return;e.x=e.y=1;let s,a;for(let o=0;oPc&&(e.x=1),e.yPc&&(e.y=1)}function mr(t,e){t.min=t.min+e,t.max=t.max+e}function Mc(t,e,r,n,i=.5){const s=ue(t.min,t.max,i);no(t,e,r,s,n)}function gr(t,e){Mc(t.x,e.x,e.scaleX,e.scale,e.originX),Mc(t.y,e.y,e.scaleY,e.scale,e.originY)}function Bp(t,e){return Rp(q1(t.getBoundingClientRect(),e))}function H1(t,e,r){const n=Bp(t,r),{scroll:i}=e;return i&&(mr(n.x,i.offset.x),mr(n.y,i.offset.y)),n}const zp=({current:t})=>t?t.ownerDocument.defaultView:null,U1=new WeakMap;class W1{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=de(),this.visualElement=e}start(e,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(ls(d,"page").point)},s=(d,f)=>{const{drag:c,dragPropagation:p,onDragStart:m}=this.getProps();if(c&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Lp(c),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$e(g=>{let b=this.getAxisMotionValue(g).get()||0;if(Je.test(b)){const{projection:y}=this.visualElement;if(y&&y.layout){const v=y.layout.layoutBox[g];v&&(b=Fe(v)*(parseFloat(b)/100))}}this.originPoint[g]=b}),m&&ie.postRender(()=>m(d,f)),Ja(this.visualElement,"transform");const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},a=(d,f)=>{const{dragPropagation:c,dragDirectionLock:p,onDirectionLock:m,onDrag:h}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:g}=f;if(p&&this.currentDirection===null){this.currentDirection=G1(g),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,g),this.updateAxis("y",f.point,g),this.visualElement.render(),h&&h(d,f)},o=(d,f)=>this.stop(d,f),l=()=>$e(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new kp(e,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:zp(this.visualElement)})}stop(e,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&ie.postRender(()=>s(e,r))}cancel(){this.isDragging=!1;const{projection:e,animationState:r}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(e,r,n){const{drag:i}=this.getProps();if(!n||!si(e,i,this.currentDirection))return;const s=this.getAxisMotionValue(e);let a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=N1(a,this.constraints[e],this.elastic[e])),s.set(a)}resolveConstraints(){var e;const{dragConstraints:r,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,s=this.constraints;r&&pr(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&i?this.constraints=R1(i.layoutBox,r):this.constraints=!1,this.elastic=z1(n),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&$e(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=B1(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!pr(e))return!1;const n=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=H1(n,i.root,this.visualElement.getTransformPagePoint());let a=D1(i.layout.layoutBox,s);if(r){const o=r(V1(a));this.hasMutatedConstraints=!!o,o&&(a=Rp(o))}return a}startAnimation(e){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},u=$e(d=>{if(!si(d,r,this.currentDirection))return;let f=l&&l[d]||{};a&&(f={min:0,max:0});const c=i?200:1e6,p=i?40:1e7,m={type:"inertia",velocity:n?e[d]:0,bounceStiffness:c,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(d,m)});return Promise.all(u).then(o)}startAxisValueAnimation(e,r){const n=this.getAxisMotionValue(e);return Ja(this.visualElement,e),n.start(gl(e,n,0,r,this.visualElement,!1))}stopAnimation(){$e(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){$e(e=>{var r;return(r=this.getAxisMotionValue(e).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(e){var r;return(r=this.getAxisMotionValue(e).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(e){const r=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),i=n[r];return i||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){$e(r=>{const{drag:n}=this.getProps();if(!si(r,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(r);if(i&&i.layout){const{min:a,max:o}=i.layout.layoutBox[r];s.set(e[r]-ue(a,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!pr(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};$e(a=>{const o=this.getAxisMotionValue(a);if(o&&this.constraints!==!1){const l=o.get();i[a]=F1({min:l,max:l},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),$e(a=>{if(!si(a,e,null))return;const o=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];o.set(ue(l,u,i[a]))})}addListeners(){if(!this.visualElement.current)return;U1.set(this.visualElement,this);const e=this.visualElement.current,r=mt(e,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();pr(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ie.read(n);const a=dt(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&($e(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())});return()=>{a(),r(),s(),o&&o()}}getProps(){const e=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:a=to,dragMomentum:o=!0}=e;return{...e,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:a,dragMomentum:o}}}function si(t,e,r){return(e===!0||e===t)&&(r===null||r===t)}function G1(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}class Y1 extends Dt{constructor(e){super(e),this.removeGroupControls=Te,this.removeListeners=Te,this.controls=new W1(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Te}unmount(){this.removeGroupControls(),this.removeListeners()}}const kc=t=>(e,r)=>{t&&ie.postRender(()=>t(e,r))};class X1 extends Dt{constructor(){super(...arguments),this.removePointerDownListener=Te}onPointerDown(e){this.session=new kp(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zp(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:kc(e),onStart:kc(r),onMove:n,onEnd:(s,a)=>{delete this.session,i&&ie.postRender(()=>i(s,a))}}}mount(){this.removePointerDownListener=mt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const wl=I.createContext(null);function K1(){const t=I.useContext(wl);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:r,register:n}=t,i=I.useId();I.useEffect(()=>n(i),[]);const s=I.useCallback(()=>r&&r(i),[i,r]);return!e&&r?[!1,s]:[!0]}const Vp=I.createContext({}),qp=I.createContext({}),Ei={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ic(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const qr={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(G.test(t))t=parseFloat(t);else return t;const r=Ic(t,e.target.x),n=Ic(t,e.target.y);return`${r}% ${n}%`}},Q1={correct:(t,{treeScale:e,projectionDelta:r})=>{const n=t,i=Ot.parse(t);if(i.length>5)return n;const s=Ot.createTransformer(t),a=typeof i[0]!="number"?1:0,o=r.x.scale*e.x,l=r.y.scale*e.y;i[0+a]/=o,i[1+a]/=l;const u=ue(o,l,.5);return typeof i[2+a]=="number"&&(i[2+a]/=u),typeof i[3+a]=="number"&&(i[3+a]/=u),s(i)}},zi={};function Z1(t){Object.assign(zi,t)}const{schedule:xl,cancel:Q8}=qf(queueMicrotask,!1);class J1 extends I.Component{componentDidMount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=e;Z1(ew),s&&(r.group&&r.group.add(s),n&&n.register&&i&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Ei.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:r,visualElement:n,drag:i,isPresent:s}=this.props,a=n.projection;return a&&(a.isPresent=s,i||e.layoutDependency!==r||r===void 0?a.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?a.promote():a.relegate()||ie.postRender(()=>{const o=a.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),xl.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function $p(t){const[e,r]=K1(),n=I.useContext(Vp);return w.jsx(J1,{...t,layoutGroup:n,switchLayoutGroup:I.useContext(qp),isPresent:e,safeToRemove:r})}const ew={borderRadius:{...qr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:qr,borderTopRightRadius:qr,borderBottomLeftRadius:qr,borderBottomRightRadius:qr,boxShadow:Q1},Hp=["TopLeft","TopRight","BottomLeft","BottomRight"],tw=Hp.length,Oc=t=>typeof t=="string"?parseFloat(t):t,Lc=t=>typeof t=="number"||G.test(t);function rw(t,e,r,n,i,s){i?(t.opacity=ue(0,r.opacity!==void 0?r.opacity:1,nw(n)),t.opacityExit=ue(e.opacity!==void 0?e.opacity:1,0,iw(n))):s&&(t.opacity=ue(e.opacity!==void 0?e.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let a=0;ane?1:r(Cr(t,e,n))}function jc(t,e){t.min=e.min,t.max=e.max}function Ve(t,e){jc(t.x,e.x),jc(t.y,e.y)}function Nc(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Rc(t,e,r,n,i){return t-=e,t=Bi(t,1/r,n),i!==void 0&&(t=Bi(t,1/i,n)),t}function sw(t,e=0,r=1,n=.5,i,s=t,a=t){if(Je.test(e)&&(e=parseFloat(e),e=ue(a.min,a.max,e/100)-a.min),typeof e!="number")return;let o=ue(s.min,s.max,n);t===s&&(o-=e),t.min=Rc(t.min,e,r,o,i),t.max=Rc(t.max,e,r,o,i)}function Dc(t,e,[r,n,i],s,a){sw(t,e[r],e[n],e[i],e.scale,s,a)}const aw=["x","scaleX","originX"],ow=["y","scaleY","originY"];function Fc(t,e,r,n){Dc(t.x,e,aw,r?r.x:void 0,n?n.x:void 0),Dc(t.y,e,ow,r?r.y:void 0,n?n.y:void 0)}function Bc(t){return t.translate===0&&t.scale===1}function Wp(t){return Bc(t.x)&&Bc(t.y)}function zc(t,e){return t.min===e.min&&t.max===e.max}function lw(t,e){return zc(t.x,e.x)&&zc(t.y,e.y)}function Vc(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Gp(t,e){return Vc(t.x,e.x)&&Vc(t.y,e.y)}function qc(t){return Fe(t.x)/Fe(t.y)}function $c(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class uw{constructor(){this.members=[]}add(e){bl(this.members,e),e.scheduleRender()}remove(e){if(yl(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(e){const r=this.members.findIndex(i=>e===i);if(r===0)return!1;let n;for(let i=r;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){n=s;break}}return n?(this.promote(n),!0):!1}promote(e,r){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,r&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:r,resumingFrom:n}=e;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function cw(t,e,r){let n="";const i=t.x.translate/e.x,s=t.y.translate/e.y,a=(r==null?void 0:r.z)||0;if((i||s||a)&&(n=`translate3d(${i}px, ${s}px, ${a}px) `),(e.x!==1||e.y!==1)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),r){const{transformPerspective:u,rotate:d,rotateX:f,rotateY:c,skewX:p,skewY:m}=r;u&&(n=`perspective(${u}px) ${n}`),d&&(n+=`rotate(${d}deg) `),f&&(n+=`rotateX(${f}deg) `),c&&(n+=`rotateY(${c}deg) `),p&&(n+=`skewX(${p}deg) `),m&&(n+=`skewY(${m}deg) `)}const o=t.x.scale*e.x,l=t.y.scale*e.y;return(o!==1||l!==1)&&(n+=`scale(${o}, ${l})`),n||"none"}const dw=(t,e)=>t.depth-e.depth;class fw{constructor(){this.children=[],this.isDirty=!1}add(e){bl(this.children,e),this.isDirty=!0}remove(e){yl(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(dw),this.isDirty=!1,this.children.forEach(e)}}function Ci(t){const e=Se(t)?t.get():t;return n1(e)?e.toValue():e}function pw(t,e){const r=et.now(),n=({timestamp:i})=>{const s=i-r;s>=e&&(kt(n),t(s-e))};return ie.read(n,!0),()=>kt(n)}function hw(t){return t instanceof SVGElement&&t.tagName!=="svg"}function mw(t,e,r){const n=Se(t)?t:bn(t);return n.start(gl("",n,e,r)),n.animation}const $t={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Jr=typeof window<"u"&&window.MotionDebug!==void 0,Ks=["","X","Y","Z"],gw={visibility:"hidden"},Hc=1e3;let bw=0;function Qs(t,e,r,n){const{latestValues:i}=e;i[t]&&(r[t]=i[t],e.setStaticValue(t,0),n&&(n[t]=0))}function Yp(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const r=Cp(e);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:i,layoutId:s}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",ie,!(i||s))}const{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&Yp(n)}function Xp({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(a={},o=e==null?void 0:e()){this.id=bw++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Jr&&($t.totalNodes=$t.resolvedTargetDeltas=$t.recalculatedProjection=0),this.nodes.forEach(ww),this.nodes.forEach(Cw),this.nodes.forEach(Pw),this.nodes.forEach(xw),Jr&&window.MotionDebug.record($t)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;t(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=pw(c,250),Ei.hasAnimatedSinceResize&&(Ei.hasAnimatedSinceResize=!1,this.nodes.forEach(Wc))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:c,hasRelativeTargetChanged:p,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const h=this.options.transition||d.getDefaultTransition()||Ow,{onLayoutAnimationStart:g,onLayoutAnimationComplete:b}=d.getProps(),y=!this.targetLayout||!Gp(this.targetLayout,m)||p,v=!c&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||c&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,v);const x={...rl(h,"layout"),onPlay:g,onComplete:b};(d.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else c||Wc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,kt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Aw),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Yp(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const A=x/1e3;Gc(f.x,a.x,A),Gc(f.y,a.y,A),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(an(c,this.layout.layoutBox,this.relativeParent.layout.layoutBox),kw(this.relativeTarget,this.relativeTargetOrigin,c,A),v&&lw(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=de()),Ve(v,this.relativeTarget)),h&&(this.animationValues=d,rw(d,u,this.latestValues,A,y,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(kt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ie.update(()=>{Ei.hasAnimatedSinceResize=!0,this.currentAnimation=mw(0,Hc,{...a,onUpdate:o=>{this.mixTargetDelta(o),a.onUpdate&&a.onUpdate(o)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Hc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:o,target:l,layout:u,latestValues:d}=a;if(!(!o||!l||!u)){if(this!==a&&this.layout&&u&&Kp(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||de();const f=Fe(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;const c=Fe(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+c}Ve(o,l),gr(o,d),sn(this.projectionDeltaWithTransform,this.layoutCorrected,o,d)}}registerSharedNode(a,o){this.sharedNodes.has(a)||this.sharedNodes.set(a,new uw),this.sharedNodes.get(a).add(o);const u=o.options.initialPromotionConfig;o.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(o):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:o,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let o=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(o=!0),!o)return;const u={};l.z&&Qs("z",a,u,this.animationValues);for(let d=0;d{var o;return(o=a.currentAnimation)===null||o===void 0?void 0:o.stop()}),this.root.nodes.forEach(Uc),this.root.sharedNodes.clear()}}}function yw(t){t.updateLayout()}function vw(t){var e;const r=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&r&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=t.layout,{animationType:s}=t.options,a=r.source!==t.layout.source;s==="size"?$e(f=>{const c=a?r.measuredBox[f]:r.layoutBox[f],p=Fe(c);c.min=n[f].min,c.max=c.min+p}):Kp(s,r.layoutBox,n)&&$e(f=>{const c=a?r.measuredBox[f]:r.layoutBox[f],p=Fe(n[f]);c.max=c.min+p,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[f].max=t.relativeTarget[f].min+p)});const o=hr();sn(o,n,r.layoutBox);const l=hr();a?sn(l,t.applyTransform(i,!0),r.measuredBox):sn(l,n,r.layoutBox);const u=!Wp(o);let d=!1;if(!t.resumeFrom){const f=t.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:c,layout:p}=f;if(c&&p){const m=de();an(m,r.layoutBox,c.layoutBox);const h=de();an(h,n,p.layoutBox),Gp(m,h)||(d=!0),f.options.layoutRoot&&(t.relativeTarget=h,t.relativeTargetOrigin=m,t.relativeParent=f)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:o,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function ww(t){Jr&&$t.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function xw(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Sw(t){t.clearSnapshot()}function Uc(t){t.clearMeasurements()}function Tw(t){t.isLayoutDirty=!1}function Ew(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Wc(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Cw(t){t.resolveTargetDelta()}function Pw(t){t.calcProjection()}function Aw(t){t.resetSkewAndRotation()}function Mw(t){t.removeLeadSnapshot()}function Gc(t,e,r){t.translate=ue(e.translate,0,r),t.scale=ue(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function Yc(t,e,r,n){t.min=ue(e.min,r.min,n),t.max=ue(e.max,r.max,n)}function kw(t,e,r,n){Yc(t.x,e.x,r.x,n),Yc(t.y,e.y,r.y,n)}function Iw(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Ow={duration:.45,ease:[.4,0,.1,1]},Xc=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Kc=Xc("applewebkit/")&&!Xc("chrome/")?Math.round:Te;function Qc(t){t.min=Kc(t.min),t.max=Kc(t.max)}function Lw(t){Qc(t.x),Qc(t.y)}function Kp(t,e,r){return t==="position"||t==="preserve-aspect"&&!_1(qc(e),qc(r),.2)}function _w(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const jw=Xp({attachResizeListener:(t,e)=>dt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Zs={current:void 0},Qp=Xp({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Zs.current){const t=new jw({});t.mount(window),t.setOptions({layoutScroll:!0}),Zs.current=t}return Zs.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Nw={pan:{Feature:X1},drag:{Feature:Y1,ProjectionNode:Qp,MeasureLayout:$p}};function Zc(t,e){const r=e?"pointerenter":"pointerleave",n=e?"onHoverStart":"onHoverEnd",i=(s,a)=>{if(s.pointerType==="touch"||_p())return;const o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive("whileHover",e);const l=o[n];l&&ie.postRender(()=>l(s,a))};return mt(t.current,r,i,{passive:!t.getProps()[n]})}class Rw extends Dt{mount(){this.unmount=ht(Zc(this.node,!0),Zc(this.node,!1))}unmount(){}}class Dw extends Dt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ht(dt(this.node.current,"focus",()=>this.onFocus()),dt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Zp=(t,e)=>e?t===e?!0:Zp(t,e.parentElement):!1;function Js(t,e){if(!e)return;const r=new PointerEvent("pointer"+t);e(r,ls(r))}class Fw extends Dt{constructor(){super(...arguments),this.removeStartListeners=Te,this.removeEndListeners=Te,this.removeAccessibleListeners=Te,this.startPointerPress=(e,r)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),s=mt(window,"pointerup",(o,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:d,globalTapTarget:f}=this.node.getProps(),c=!f&&!Zp(this.node.current,o.target)?d:u;c&&ie.update(()=>c(o,l))},{passive:!(n.onTap||n.onPointerUp)}),a=mt(window,"pointercancel",(o,l)=>this.cancelPress(o,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=ht(s,a),this.startPress(e,r)},this.startAccessiblePress=()=>{const e=s=>{if(s.key!=="Enter"||this.isPressing)return;const a=o=>{o.key!=="Enter"||!this.checkPressEnd()||Js("up",(l,u)=>{const{onTap:d}=this.node.getProps();d&&ie.postRender(()=>d(l,u))})};this.removeEndListeners(),this.removeEndListeners=dt(this.node.current,"keyup",a),Js("down",(o,l)=>{this.startPress(o,l)})},r=dt(this.node.current,"keydown",e),n=()=>{this.isPressing&&Js("cancel",(s,a)=>this.cancelPress(s,a))},i=dt(this.node.current,"blur",n);this.removeAccessibleListeners=ht(r,i)}}startPress(e,r){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&ie.postRender(()=>n(e,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!_p()}cancelPress(e,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&ie.postRender(()=>n(e,r))}mount(){const e=this.node.getProps(),r=mt(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=dt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ht(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const io=new WeakMap,ea=new WeakMap,Bw=t=>{const e=io.get(t.target);e&&e(t)},zw=t=>{t.forEach(Bw)};function Vw({root:t,...e}){const r=t||document;ea.has(r)||ea.set(r,{});const n=ea.get(r),i=JSON.stringify(e);return n[i]||(n[i]=new IntersectionObserver(zw,{root:t,...e})),n[i]}function qw(t,e,r){const n=Vw(e);return io.set(t,r),n.observe(t),()=>{io.delete(t),n.unobserve(t)}}const $w={some:0,all:1};class Hw extends Dt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:s}=e,a={root:r?r.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:$w[i]},o=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),c=u?d:f;c&&c(l)};return qw(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:r}=this.node;["amount","margin","root"].some(Uw(e,r))&&this.startObserver()}unmount(){}}function Uw({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}const Ww={inView:{Feature:Hw},tap:{Feature:Fw},focus:{Feature:Dw},hover:{Feature:Rw}},Gw={layout:{ProjectionNode:Qp,MeasureLayout:$p}},Jp=I.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),us=I.createContext({}),Sl=typeof window<"u",Yw=Sl?I.useLayoutEffect:I.useEffect,eh=I.createContext({strict:!1});function Xw(t,e,r,n,i){var s,a;const{visualElement:o}=I.useContext(us),l=I.useContext(eh),u=I.useContext(wl),d=I.useContext(Jp).reducedMotion,f=I.useRef();n=n||l.renderer,!f.current&&n&&(f.current=n(t,{visualState:e,parent:o,props:r,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const c=f.current,p=I.useContext(qp);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&Kw(f.current,r,i,p),I.useInsertionEffect(()=>{c&&c.update(r,u)});const m=r[Ep],h=I.useRef(!!m&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,m))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,m)));return Yw(()=>{c&&(window.MotionIsMounted=!0,c.updateFeatures(),xl.render(c.render),h.current&&c.animationState&&c.animationState.animateChanges())}),I.useEffect(()=>{c&&(!h.current&&c.animationState&&c.animationState.animateChanges(),h.current&&(queueMicrotask(()=>{var g;(g=window.MotionHandoffMarkAsComplete)===null||g===void 0||g.call(window,m)}),h.current=!1))}),c}function Kw(t,e,r,n){const{layoutId:i,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u}=e;t.projection=new r(t.latestValues,e["data-framer-portal-id"]?void 0:th(t.parent)),t.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!a||o&&pr(o),visualElement:t,animationType:typeof s=="string"?s:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}function th(t){if(t)return t.options.allowProjection!==!1?t.projection:th(t.parent)}function Qw(t,e,r){return I.useCallback(n=>{n&&t.mount&&t.mount(n),e&&(n?e.mount(n):e.unmount()),r&&(typeof r=="function"?r(n):pr(r)&&(r.current=n))},[e])}function cs(t){return pn(t.animate)||tl.some(e=>hn(t[e]))}function rh(t){return!!(cs(t)||t.variants)}function Zw(t,e){if(cs(t)){const{initial:r,animate:n}=t;return{initial:r===!1||hn(r)?r:void 0,animate:hn(n)?n:void 0}}return t.inherit!==!1?e:{}}function Jw(t){const{initial:e,animate:r}=Zw(t,I.useContext(us));return I.useMemo(()=>({initial:e,animate:r}),[Jc(e),Jc(r)])}function Jc(t){return Array.isArray(t)?t.join(" "):t}const ed={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Pr={};for(const t in ed)Pr[t]={isEnabled:e=>ed[t].some(r=>!!e[r])};function ex(t){for(const e in t)Pr[e]={...Pr[e],...t[e]}}const tx=Symbol.for("motionComponentSymbol");function rx({preloadedFeatures:t,createVisualElement:e,useRender:r,useVisualState:n,Component:i}){t&&ex(t);function s(o,l){let u;const d={...I.useContext(Jp),...o,layoutId:nx(o)},{isStatic:f}=d,c=Jw(o),p=n(o,f);if(!f&&Sl){ix();const m=sx(d);u=m.MeasureLayout,c.visualElement=Xw(i,p,d,e,m.ProjectionNode)}return w.jsxs(us.Provider,{value:c,children:[u&&c.visualElement?w.jsx(u,{visualElement:c.visualElement,...d}):null,r(i,o,Qw(p,c.visualElement,l),p,f,c.visualElement)]})}const a=I.forwardRef(s);return a[tx]=i,a}function nx({layoutId:t}){const e=I.useContext(Vp).id;return e&&t!==void 0?e+"-"+t:t}function ix(t,e){I.useContext(eh).strict}function sx(t){const{drag:e,layout:r}=Pr;if(!e&&!r)return{};const n={...e,...r};return{MeasureLayout:e!=null&&e.isEnabled(t)||r!=null&&r.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}const ax=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Tl(t){return typeof t!="string"||t.includes("-")?!1:!!(ax.indexOf(t)>-1||/[A-Z]/u.test(t))}function nh(t,{style:e,vars:r},n,i){Object.assign(t.style,e,i&&i.getProjectionStyles(n));for(const s in r)t.style.setProperty(s,r[s])}const ih=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function sh(t,e,r,n){nh(t,e,void 0,n);for(const i in e.attrs)t.setAttribute(ih.has(i)?i:os(i),e.attrs[i])}function ah(t,{layout:e,layoutId:r}){return Rt.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!zi[t]||t==="opacity")}function El(t,e,r){var n;const{style:i}=t,s={};for(const a in i)(Se(i[a])||e.style&&Se(e.style[a])||ah(a,t)||((n=r==null?void 0:r.getValue(a))===null||n===void 0?void 0:n.liveStyle)!==void 0)&&(s[a]=i[a]);return r&&i&&typeof i.willChange=="string"&&(r.applyWillChange=!1),s}function oh(t,e,r){const n=El(t,e,r);for(const i in t)if(Se(t[i])||Se(e[i])){const s=On.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[s]=t[i]}return n}function ox(t){const e=I.useRef(null);return e.current===null&&(e.current=t()),e.current}function lx(t){if(Rt.has(t))return"transform";if(wp.has(t))return os(t)}function ux({applyWillChange:t=!1,scrapeMotionValuesFromProps:e,createRenderState:r,onMount:n},i,s,a,o){const l={latestValues:cx(i,s,a,o?!1:t,e),renderState:r()};return n&&(l.mount=u=>n(i,u,l)),l}const lh=t=>(e,r)=>{const n=I.useContext(us),i=I.useContext(wl),s=()=>ux(t,e,n,i,r);return r?s():ox(s)};function td(t,e,r){const n=Array.isArray(e)?e:[e];for(let i=0;i{for(const y in g){let v=g[y];if(Array.isArray(v)){const x=m?v.length-1:0;v=v[x]}v!==null&&(a[y]=v)}for(const y in b)a[y]=b[y]}),l&&(f&&d!==!1&&!pn(f)&&td(t,f,g=>{for(const b in g){const y=lx(b);y&&o.add(y)}}),o.size&&(a.willChange=Array.from(o).join(","))),a}const Cl=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),uh=()=>({...Cl(),attrs:{}}),ch=(t,e)=>e&&typeof t=="number"?e.transform(t):t,dx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},fx=On.length;function px(t,e,r){let n="",i=!0;for(let s=0;stypeof t=="string"&&t.toLowerCase()==="svg",yx={useVisualState:lh({scrapeMotionValuesFromProps:oh,createRenderState:uh,onMount:(t,e,{renderState:r,latestValues:n})=>{ie.read(()=>{try{r.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),ie.render(()=>{Al(r,n,Ml(e.tagName),t.transformTemplate),sh(e,r)})}})},vx={useVisualState:lh({applyWillChange:!0,scrapeMotionValuesFromProps:El,createRenderState:Cl})};function dh(t,e,r){for(const n in e)!Se(e[n])&&!ah(n,r)&&(t[n]=e[n])}function wx({transformTemplate:t},e){return I.useMemo(()=>{const r=Cl();return Pl(r,e,t),Object.assign({},r.vars,r.style)},[e])}function xx(t,e){const r=t.style||{},n={};return dh(n,r,t),Object.assign(n,wx(t,e)),n}function Sx(t,e){const r={},n=xx(t,e);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=n,r}const Tx=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Vi(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Tx.has(t)}let fh=t=>!Vi(t);function Ex(t){t&&(fh=e=>e.startsWith("on")?!Vi(e):t(e))}try{Ex(require("@emotion/is-prop-valid").default)}catch{}function Cx(t,e,r){const n={};for(const i in t)i==="values"&&typeof t.values=="object"||(fh(i)||r===!0&&Vi(i)||!e&&!Vi(i)||t.draggable&&i.startsWith("onDrag"))&&(n[i]=t[i]);return n}function Px(t,e,r,n){const i=I.useMemo(()=>{const s=uh();return Al(s,e,Ml(n),t.transformTemplate),{...s.attrs,style:{...s.style}}},[e]);if(t.style){const s={};dh(s,t.style,t),i.style={...s,...i.style}}return i}function Ax(t=!1){return(r,n,i,{latestValues:s},a)=>{const l=(Tl(r)?Px:Sx)(n,s,a,r),u=Cx(n,typeof r=="string",t),d=r!==I.Fragment?{...u,...l,ref:i}:{},{children:f}=n,c=I.useMemo(()=>Se(f)?f.get():f,[f]);return I.createElement(r,{...d,children:c})}}function Mx(t,e){return function(n,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Tl(n)?yx:vx,preloadedFeatures:t,useRender:Ax(i),createVisualElement:e,Component:n};return rx(a)}}const so={current:null},ph={current:!1};function kx(){if(ph.current=!0,!!Sl)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>so.current=t.matches;t.addListener(e),e()}else so.current=!1}function Ix(t,e,r){for(const n in e){const i=e[n],s=r[n];if(Se(i))t.addValue(n,i);else if(Se(s))t.addValue(n,bn(i,{owner:t}));else if(s!==i)if(t.hasValue(n)){const a=t.getValue(n);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=t.getStaticValue(n);t.addValue(n,bn(a!==void 0?a:i,{owner:t}))}}for(const n in r)e[n]===void 0&&t.removeValue(n);return e}const nd=new WeakMap,Ox=[...np,xe,Ot],Lx=t=>Ox.find(rp(t)),id=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class _x{scrapeMotionValuesFromProps(e,r,n){return{}}constructor({parent:e,props:r,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:s,visualState:a},o={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=al,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const c=et.now();this.renderScheduledAtthis.bindToMotionValue(n,r)),ph.current||kx(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:so.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){nd.delete(this.current),this.projection&&this.projection.unmount(),kt(this.notifyUpdate),kt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const r=this.features[e];r&&(r.unmount(),r.isMounted=!1)}this.current=null}bindToMotionValue(e,r){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=Rt.has(e),i=r.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&ie.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=r.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,r)),this.valueSubscriptions.set(e,()=>{i(),s(),a&&a(),r.owner&&r.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Pr){const r=Pr[e];if(!r)continue;const{isEnabled:n,Feature:i}=r;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){const s=this.features[e];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):de()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,r){this.latestValues[e]=r}update(e,r){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(e)}addValue(e,r){const n=this.values.get(e);r!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,r),this.values.set(e,r),this.latestValues[e]=r.get())}removeValue(e){this.values.delete(e);const r=this.valueSubscriptions.get(e);r&&(r(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,r){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&r!==void 0&&(n=bn(r===null?void 0:r,{owner:this}),this.addValue(e,n)),n}readValue(e,r){var n;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(Zf(i)||Qf(i))?i=parseFloat(i):!Lx(i)&&Ot.test(r)&&(i=dp(e,r)),this.setBaseTarget(e,Se(i)?i.get():i)),Se(i)?i.get():i}setBaseTarget(e,r){this.baseTarget[e]=r}getBaseTarget(e){var r;const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const a=Jo(this.props,n,(r=this.presenceContext)===null||r===void 0?void 0:r.custom);a&&(i=a[e])}if(n&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!Se(s)?s:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,r){return this.events[e]||(this.events[e]=new vl),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r)}}class hh extends _x{constructor(){super(...arguments),this.KeyframeResolver=fp}sortInstanceNodePosition(e,r){return e.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(e,r){return e.style?e.style[r]:void 0}removeValueFromRenderState(e,{vars:r,style:n}){delete r[e],delete n[e]}}function jx(t){return window.getComputedStyle(t)}class Nx extends hh{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=nh}readValueFromInstance(e,r){if(Rt.has(r)){const n=cl(r);return n&&n.default||0}else{const n=jx(e),i=(ep(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:r}){return Bp(e,r)}build(e,r,n){Pl(e,r,n.transformTemplate)}scrapeMotionValuesFromProps(e,r,n){return El(e,r,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Se(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class Rx extends hh{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=de}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(Rt.has(r)){const n=cl(r);return n&&n.default||0}return r=ih.has(r)?r:os(r),e.getAttribute(r)}scrapeMotionValuesFromProps(e,r,n){return oh(e,r,n)}build(e,r,n){Al(e,r,this.isSVGTag,n.transformTemplate)}renderInstance(e,r,n,i){sh(e,r,n,i)}mount(e){this.isSVGTag=Ml(e.tagName),super.mount(e)}}const Dx=(t,e)=>Tl(t)?new Rx(e):new Nx(e,{allowProjection:t!==I.Fragment}),Fx=Mx({...E1,...Ww,...Nw,...Gw},Dx),je=gy(Fx);var mh={},yn={},kl={},vn={},Il={};Object.defineProperty(Il,"__esModule",{value:!0});Il.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(t){return t.charCodeAt(0)}));var Ol={};Object.defineProperty(Ol,"__esModule",{value:!0});Ol.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}));var ao={};(function(t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(s){var a="";return s>65535&&(s-=65536,a+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),a+=String.fromCharCode(s),a};function n(s){var a;return s>=55296&&s<=57343||s>1114111?65533:(a=r.get(s))!==null&&a!==void 0?a:s}t.replaceCodePoint=n;function i(s){return(0,t.fromCodePoint)(n(s))}t.default=i})(ao);(function(t){var e=W&&W.__createBinding||(Object.create?function(P,O,L,C){C===void 0&&(C=L);var S=Object.getOwnPropertyDescriptor(O,L);(!S||("get"in S?!O.__esModule:S.writable||S.configurable))&&(S={enumerable:!0,get:function(){return O[L]}}),Object.defineProperty(P,C,S)}:function(P,O,L,C){C===void 0&&(C=L),P[C]=O[L]}),r=W&&W.__setModuleDefault||(Object.create?function(P,O){Object.defineProperty(P,"default",{enumerable:!0,value:O})}:function(P,O){P.default=O}),n=W&&W.__importStar||function(P){if(P&&P.__esModule)return P;var O={};if(P!=null)for(var L in P)L!=="default"&&Object.prototype.hasOwnProperty.call(P,L)&&e(O,P,L);return r(O,P),O},i=W&&W.__importDefault||function(P){return P&&P.__esModule?P:{default:P}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var s=i(Il);t.htmlDecodeTree=s.default;var a=i(Ol);t.xmlDecodeTree=a.default;var o=n(ao);t.decodeCodePoint=o.default;var l=ao;Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return l.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return l.fromCodePoint}});var u;(function(P){P[P.NUM=35]="NUM",P[P.SEMI=59]="SEMI",P[P.EQUALS=61]="EQUALS",P[P.ZERO=48]="ZERO",P[P.NINE=57]="NINE",P[P.LOWER_A=97]="LOWER_A",P[P.LOWER_F=102]="LOWER_F",P[P.LOWER_X=120]="LOWER_X",P[P.LOWER_Z=122]="LOWER_Z",P[P.UPPER_A=65]="UPPER_A",P[P.UPPER_F=70]="UPPER_F",P[P.UPPER_Z=90]="UPPER_Z"})(u||(u={}));var d=32,f;(function(P){P[P.VALUE_LENGTH=49152]="VALUE_LENGTH",P[P.BRANCH_LENGTH=16256]="BRANCH_LENGTH",P[P.JUMP_TABLE=127]="JUMP_TABLE"})(f=t.BinTrieFlags||(t.BinTrieFlags={}));function c(P){return P>=u.ZERO&&P<=u.NINE}function p(P){return P>=u.UPPER_A&&P<=u.UPPER_F||P>=u.LOWER_A&&P<=u.LOWER_F}function m(P){return P>=u.UPPER_A&&P<=u.UPPER_Z||P>=u.LOWER_A&&P<=u.LOWER_Z||c(P)}function h(P){return P===u.EQUALS||m(P)}var g;(function(P){P[P.EntityStart=0]="EntityStart",P[P.NumericStart=1]="NumericStart",P[P.NumericDecimal=2]="NumericDecimal",P[P.NumericHex=3]="NumericHex",P[P.NamedEntity=4]="NamedEntity"})(g||(g={}));var b;(function(P){P[P.Legacy=0]="Legacy",P[P.Strict=1]="Strict",P[P.Attribute=2]="Attribute"})(b=t.DecodingMode||(t.DecodingMode={}));var y=function(){function P(O,L,C){this.decodeTree=O,this.emitCodePoint=L,this.errors=C,this.state=g.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=b.Strict}return P.prototype.startEntity=function(O){this.decodeMode=O,this.state=g.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},P.prototype.write=function(O,L){switch(this.state){case g.EntityStart:return O.charCodeAt(L)===u.NUM?(this.state=g.NumericStart,this.consumed+=1,this.stateNumericStart(O,L+1)):(this.state=g.NamedEntity,this.stateNamedEntity(O,L));case g.NumericStart:return this.stateNumericStart(O,L);case g.NumericDecimal:return this.stateNumericDecimal(O,L);case g.NumericHex:return this.stateNumericHex(O,L);case g.NamedEntity:return this.stateNamedEntity(O,L)}},P.prototype.stateNumericStart=function(O,L){return L>=O.length?-1:(O.charCodeAt(L)|d)===u.LOWER_X?(this.state=g.NumericHex,this.consumed+=1,this.stateNumericHex(O,L+1)):(this.state=g.NumericDecimal,this.stateNumericDecimal(O,L))},P.prototype.addToNumericResult=function(O,L,C,S){if(L!==C){var N=C-L;this.result=this.result*Math.pow(S,N)+parseInt(O.substr(L,N),S),this.consumed+=N}},P.prototype.stateNumericHex=function(O,L){for(var C=L;L>14;L>14,N!==0){if(k===u.SEMI)return this.emitNamedEntityData(this.treeIndex,N,this.consumed+this.excess);this.decodeMode!==b.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},P.prototype.emitNotTerminatedNamedEntity=function(){var O,L=this,C=L.result,S=L.decodeTree,N=(S[C]&f.VALUE_LENGTH)>>14;return this.emitNamedEntityData(C,N,this.consumed),(O=this.errors)===null||O===void 0||O.missingSemicolonAfterCharacterReference(),this.consumed},P.prototype.emitNamedEntityData=function(O,L,C){var S=this.decodeTree;return this.emitCodePoint(L===1?S[O]&~f.VALUE_LENGTH:S[O+1],C),L===3&&this.emitCodePoint(S[O+2],C),C},P.prototype.end=function(){var O;switch(this.state){case g.NamedEntity:return this.result!==0&&(this.decodeMode!==b.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case g.NumericDecimal:return this.emitNumericEntity(0,2);case g.NumericHex:return this.emitNumericEntity(0,3);case g.NumericStart:return(O=this.errors)===null||O===void 0||O.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case g.EntityStart:return 0}},P}();t.EntityDecoder=y;function v(P){var O="",L=new y(P,function(C){return O+=(0,o.fromCodePoint)(C)});return function(S,N){for(var k=0,j=0;(j=S.indexOf("&",j))>=0;){O+=S.slice(k,j),L.startEntity(N);var B=L.write(S,j+1);if(B<0){k=j+L.end();break}k=j+B,j=B===0?k+1:k}var q=O+S.slice(k);return O="",q}}function x(P,O,L,C){var S=(O&f.BRANCH_LENGTH)>>7,N=O&f.JUMP_TABLE;if(S===0)return N!==0&&C===N?L:-1;if(N){var k=C-N;return k<0||k>=S?-1:P[L+k]-1}for(var j=L,B=j+S-1;j<=B;){var q=j+B>>>1,F=P[q];if(FC)B=q-1;else return P[q+S]}return-1}t.determineBranch=x;var A=v(s.default),R=v(a.default);function M(P,O){return O===void 0&&(O=b.Legacy),A(P,O)}t.decodeHTML=M;function E(P){return A(P,b.Attribute)}t.decodeHTMLAttribute=E;function T(P){return A(P,b.Strict)}t.decodeHTMLStrict=T;function _(P){return R(P,b.Strict)}t.decodeXML=_})(vn);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=vn,r;(function(c){c[c.Tab=9]="Tab",c[c.NewLine=10]="NewLine",c[c.FormFeed=12]="FormFeed",c[c.CarriageReturn=13]="CarriageReturn",c[c.Space=32]="Space",c[c.ExclamationMark=33]="ExclamationMark",c[c.Number=35]="Number",c[c.Amp=38]="Amp",c[c.SingleQuote=39]="SingleQuote",c[c.DoubleQuote=34]="DoubleQuote",c[c.Dash=45]="Dash",c[c.Slash=47]="Slash",c[c.Zero=48]="Zero",c[c.Nine=57]="Nine",c[c.Semi=59]="Semi",c[c.Lt=60]="Lt",c[c.Eq=61]="Eq",c[c.Gt=62]="Gt",c[c.Questionmark=63]="Questionmark",c[c.UpperA=65]="UpperA",c[c.LowerA=97]="LowerA",c[c.UpperF=70]="UpperF",c[c.LowerF=102]="LowerF",c[c.UpperZ=90]="UpperZ",c[c.LowerZ=122]="LowerZ",c[c.LowerX=120]="LowerX",c[c.OpeningSquareBracket=91]="OpeningSquareBracket"})(r||(r={}));var n;(function(c){c[c.Text=1]="Text",c[c.BeforeTagName=2]="BeforeTagName",c[c.InTagName=3]="InTagName",c[c.InSelfClosingTag=4]="InSelfClosingTag",c[c.BeforeClosingTagName=5]="BeforeClosingTagName",c[c.InClosingTagName=6]="InClosingTagName",c[c.AfterClosingTagName=7]="AfterClosingTagName",c[c.BeforeAttributeName=8]="BeforeAttributeName",c[c.InAttributeName=9]="InAttributeName",c[c.AfterAttributeName=10]="AfterAttributeName",c[c.BeforeAttributeValue=11]="BeforeAttributeValue",c[c.InAttributeValueDq=12]="InAttributeValueDq",c[c.InAttributeValueSq=13]="InAttributeValueSq",c[c.InAttributeValueNq=14]="InAttributeValueNq",c[c.BeforeDeclaration=15]="BeforeDeclaration",c[c.InDeclaration=16]="InDeclaration",c[c.InProcessingInstruction=17]="InProcessingInstruction",c[c.BeforeComment=18]="BeforeComment",c[c.CDATASequence=19]="CDATASequence",c[c.InSpecialComment=20]="InSpecialComment",c[c.InCommentLike=21]="InCommentLike",c[c.BeforeSpecialS=22]="BeforeSpecialS",c[c.SpecialStartSequence=23]="SpecialStartSequence",c[c.InSpecialTag=24]="InSpecialTag",c[c.BeforeEntity=25]="BeforeEntity",c[c.BeforeNumericEntity=26]="BeforeNumericEntity",c[c.InNamedEntity=27]="InNamedEntity",c[c.InNumericEntity=28]="InNumericEntity",c[c.InHexEntity=29]="InHexEntity"})(n||(n={}));function i(c){return c===r.Space||c===r.NewLine||c===r.Tab||c===r.FormFeed||c===r.CarriageReturn}function s(c){return c===r.Slash||c===r.Gt||i(c)}function a(c){return c>=r.Zero&&c<=r.Nine}function o(c){return c>=r.LowerA&&c<=r.LowerZ||c>=r.UpperA&&c<=r.UpperZ}function l(c){return c>=r.UpperA&&c<=r.UpperF||c>=r.LowerA&&c<=r.LowerF}var u;(function(c){c[c.NoValue=0]="NoValue",c[c.Unquoted=1]="Unquoted",c[c.Single=2]="Single",c[c.Double=3]="Double"})(u=t.QuoteType||(t.QuoteType={}));var d={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},f=function(){function c(p,m){var h=p.xmlMode,g=h===void 0?!1:h,b=p.decodeEntities,y=b===void 0?!0:b;this.cbs=m,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=g,this.decodeEntities=y,this.entityTrie=g?e.xmlDecodeTree:e.htmlDecodeTree}return c.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},c.prototype.write=function(p){this.offset+=this.buffer.length,this.buffer=p,this.parse()},c.prototype.end=function(){this.running&&this.finish()},c.prototype.pause=function(){this.running=!1},c.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&p===r.Amp&&(this.state=n.BeforeEntity)},c.prototype.stateSpecialStartSequence=function(p){var m=this.sequenceIndex===this.currentSequence.length,h=m?s(p):(p|32)===this.currentSequence[this.sequenceIndex];if(!h)this.isSpecial=!1;else if(!m){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(p)},c.prototype.stateInSpecialTag=function(p){if(this.sequenceIndex===this.currentSequence.length){if(p===r.Gt||i(p)){var m=this.index-this.currentSequence.length;if(this.sectionStart>14)-1;if(!this.allowLegacyEntity()&&p!==r.Semi)this.trieIndex+=h;else{var g=this.index-this.entityExcess+1;g>this.sectionStart&&this.emitPartial(this.sectionStart,g),this.entityResult=this.trieIndex,this.trieIndex+=h,this.entityExcess=0,this.sectionStart=this.index+1,h===0&&this.emitNamedEntity()}}},c.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var p=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(p){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~e.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},c.prototype.stateBeforeNumericEntity=function(p){(p|32)===r.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(p))},c.prototype.emitNumericEntity=function(p){var m=this.index-this.entityExcess-1,h=m+2+ +(this.state===n.InHexEntity);h!==this.index&&(m>this.sectionStart&&this.emitPartial(this.sectionStart,m),this.sectionStart=this.index+Number(p),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},c.prototype.stateInNumericEntity=function(p){p===r.Semi?this.emitNumericEntity(!0):a(p)?(this.entityResult=this.entityResult*10+(p-r.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},c.prototype.stateInHexEntity=function(p){p===r.Semi?this.emitNumericEntity(!0):a(p)?(this.entityResult=this.entityResult*16+(p-r.Zero),this.entityExcess++):l(p)?(this.entityResult=this.entityResult*16+((p|32)-r.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},c.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},c.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===n.InAttributeValueDq||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},c.prototype.shouldContinue=function(){return this.index0&&a.has(this.stack[this.stack.length-1]);){var o=this.stack.pop();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,o,!0)}this.isVoidElement(e)||(this.stack.push(e),ud.has(e)?this.foreignContext.push(!0):cd.has(e)&&this.foreignContext.push(!1)),(s=(i=this.cbs).onopentagname)===null||s===void 0||s.call(i,e),this.cbs.onopentag&&(this.attribs={})},t.prototype.endOpenTag=function(e){var r,n;this.startIndex=this.openTagStart,this.attribs&&((n=(r=this.cbs).onopentag)===null||n===void 0||n.call(r,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},t.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},t.prototype.onclosetag=function(e,r){var n,i,s,a,o,l;this.endIndex=r;var u=this.getSlice(e,r);if(this.lowerCaseTagNames&&(u=u.toLowerCase()),(ud.has(u)||cd.has(u))&&this.foreignContext.pop(),this.isVoidElement(u))!this.options.xmlMode&&u==="br"&&((i=(n=this.cbs).onopentagname)===null||i===void 0||i.call(n,"br"),(a=(s=this.cbs).onopentag)===null||a===void 0||a.call(s,"br",{},!0),(l=(o=this.cbs).onclosetag)===null||l===void 0||l.call(o,"br",!1));else{var d=this.stack.lastIndexOf(u);if(d!==-1)if(this.cbs.onclosetag)for(var f=this.stack.length-d;f--;)this.cbs.onclosetag(this.stack.pop(),f!==0);else this.stack.length=d;else!this.options.xmlMode&&u==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1},t.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},t.prototype.closeCurrentTag=function(e){var r,n,i=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===i&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,i,!e),this.stack.pop())},t.prototype.onattribname=function(e,r){this.startIndex=e;var n=this.getSlice(e,r);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},t.prototype.onattribdata=function(e,r){this.attribvalue+=this.getSlice(e,r)},t.prototype.onattribentity=function(e){this.attribvalue+=(0,sd.fromCodePoint)(e)},t.prototype.onattribend=function(e,r){var n,i;this.endIndex=r,(i=(n=this.cbs).onattribute)===null||i===void 0||i.call(n,this.attribname,this.attribvalue,e===ai.QuoteType.Double?'"':e===ai.QuoteType.Single?"'":e===ai.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},t.prototype.getInstructionName=function(e){var r=e.search(Hx),n=r<0?e:e.substr(0,r);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},t.prototype.ondeclaration=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var i=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(i),"!".concat(n))}this.startIndex=r+1},t.prototype.onprocessinginstruction=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var i=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(i),"?".concat(n))}this.startIndex=r+1},t.prototype.oncomment=function(e,r,n){var i,s,a,o;this.endIndex=r,(s=(i=this.cbs).oncomment)===null||s===void 0||s.call(i,this.getSlice(e,r-n)),(o=(a=this.cbs).oncommentend)===null||o===void 0||o.call(a),this.startIndex=r+1},t.prototype.oncdata=function(e,r,n){var i,s,a,o,l,u,d,f,c,p;this.endIndex=r;var m=this.getSlice(e,r-n);this.options.xmlMode||this.options.recognizeCDATA?((s=(i=this.cbs).oncdatastart)===null||s===void 0||s.call(i),(o=(a=this.cbs).ontext)===null||o===void 0||o.call(a,m),(u=(l=this.cbs).oncdataend)===null||u===void 0||u.call(l)):((f=(d=this.cbs).oncomment)===null||f===void 0||f.call(d,"[CDATA[".concat(m,"]]")),(p=(c=this.cbs).oncommentend)===null||p===void 0||p.call(c)),this.startIndex=r+1},t.prototype.onend=function(){var e,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}(r=(e=this.cbs).onend)===null||r===void 0||r.call(e)},t.prototype.reset=function(){var e,r,n,i;(r=(e=this.cbs).onreset)===null||r===void 0||r.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(i=(n=this.cbs).onparserinit)===null||i===void 0||i.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},t.prototype.parseComplete=function(e){this.reset(),this.end(e)},t.prototype.getSlice=function(e,r){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,r-this.bufferOffset);r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,r-this.bufferOffset);return n},t.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},t.prototype.write=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},t.prototype.end=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},t.prototype.pause=function(){this.tokenizer.pause()},t.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),e}(Ll);Z.NodeWithChildren=fs;var vh=function(t){Ft(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Oe.ElementType.CDATA,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(fs);Z.CDATA=vh;var wh=function(t){Ft(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Oe.ElementType.Root,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(fs);Z.Document=wh;var xh=function(t){Ft(e,t);function e(r,n,i,s){i===void 0&&(i=[]),s===void 0&&(s=r==="script"?Oe.ElementType.Script:r==="style"?Oe.ElementType.Style:Oe.ElementType.Tag);var a=t.call(this,i)||this;return a.name=r,a.attribs=n,a.type=s,a}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var i,s;return{name:n,value:r.attribs[n],namespace:(i=r["x-attribsNamespace"])===null||i===void 0?void 0:i[n],prefix:(s=r["x-attribsPrefix"])===null||s===void 0?void 0:s[n]}})},enumerable:!1,configurable:!0}),e}(fs);Z.Element=xh;function Sh(t){return(0,Oe.isTag)(t)}Z.isTag=Sh;function Th(t){return t.type===Oe.ElementType.CDATA}Z.isCDATA=Th;function Eh(t){return t.type===Oe.ElementType.Text}Z.isText=Eh;function Ch(t){return t.type===Oe.ElementType.Comment}Z.isComment=Ch;function Ph(t){return t.type===Oe.ElementType.Directive}Z.isDirective=Ph;function Ah(t){return t.type===Oe.ElementType.Root}Z.isDocument=Ah;function Wx(t){return Object.prototype.hasOwnProperty.call(t,"children")}Z.hasChildren=Wx;function _l(t,e){e===void 0&&(e=!1);var r;if(Eh(t))r=new gh(t.data);else if(Ch(t))r=new bh(t.data);else if(Sh(t)){var n=e?ta(t.children):[],i=new xh(t.name,on({},t.attribs),n);n.forEach(function(l){return l.parent=i}),t.namespace!=null&&(i.namespace=t.namespace),t["x-attribsNamespace"]&&(i["x-attribsNamespace"]=on({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(i["x-attribsPrefix"]=on({},t["x-attribsPrefix"])),r=i}else if(Th(t)){var n=e?ta(t.children):[],s=new vh(n);n.forEach(function(u){return u.parent=s}),r=s}else if(Ah(t)){var n=e?ta(t.children):[],a=new wh(n);n.forEach(function(u){return u.parent=a}),t["x-mode"]&&(a["x-mode"]=t["x-mode"]),r=a}else if(Ph(t)){var o=new yh(t.name,t.data);t["x-name"]!=null&&(o["x-name"]=t["x-name"],o["x-publicId"]=t["x-publicId"],o["x-systemId"]=t["x-systemId"]),r=o}else throw new Error("Not implemented yet: ".concat(t.type));return r.startIndex=t.startIndex,r.endIndex=t.endIndex,t.sourceCodeLocation!=null&&(r.sourceCodeLocation=t.sourceCodeLocation),r}Z.cloneNode=_l;function ta(t){for(var e=t.map(function(n){return _l(n,!0)}),r=1;r$\x80-\uFFFF]/g;var e=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(i,s){return i.codePointAt(s)}:function(i,s){return(i.charCodeAt(s)&64512)===55296?(i.charCodeAt(s)-55296)*1024+i.charCodeAt(s+1)-56320+65536:i.charCodeAt(s)};function r(i){for(var s="",a=0,o;(o=t.xmlReplacer.exec(i))!==null;){var l=o.index,u=i.charCodeAt(l),d=e.get(u);d!==void 0?(s+=i.substring(a,l)+d,a=l+1):(s+="".concat(i.substring(a,l),"&#x").concat((0,t.getCodePoint)(i,l).toString(16),";"),a=t.xmlReplacer.lastIndex+=+((u&64512)===55296))}return s+i.substr(a)}t.encodeXML=r,t.escape=r;function n(i,s){return function(o){for(var l,u=0,d="";l=i.exec(o);)u!==l.index&&(d+=o.substring(u,l.index)),d+=s.get(l[0].charCodeAt(0)),u=l.index+1;return d+o.substring(u)}}t.escapeUTF8=n(/[&<>'"]/g,e),t.escapeAttribute=n(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(qi);var Gx=W&&W.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Zt,"__esModule",{value:!0});Zt.encodeNonAsciiHTML=Zt.encodeHTML=void 0;var Yx=Gx(jl),kh=qi,Xx=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function Kx(t){return Ih(Xx,t)}Zt.encodeHTML=Kx;function Qx(t){return Ih(kh.xmlReplacer,t)}Zt.encodeNonAsciiHTML=Qx;function Ih(t,e){for(var r="",n=0,i;(i=t.exec(e))!==null;){var s=i.index;r+=e.substring(n,s);var a=e.charCodeAt(s),o=Yx.default.get(a);if(typeof o=="object"){if(s+10&&(n+=ps(t.children,e)),(e.xmlMode||!dd.has(t.name))&&(n+=""))),n}function l2(t){return"<".concat(t.data,">")}function u2(t,e){var r,n=t.data||"";return((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&t2.has(t.parent.name))&&(n=e.xmlMode||e.encodeEntities!=="utf8"?(0,$i.encodeXML)(n):(0,$i.escapeText)(n)),n}function c2(t){return"")}function d2(t){return"")}var f2=W&&W.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ne,"__esModule",{value:!0});Ne.innerText=Ne.textContent=Ne.getText=Ne.getInnerHTML=Ne.getOuterHTML=void 0;var tt=gt,p2=f2(jn),h2=Rr;function Lh(t,e){return(0,p2.default)(t,e)}Ne.getOuterHTML=Lh;function m2(t,e){return(0,tt.hasChildren)(t)?t.children.map(function(r){return Lh(r,e)}).join(""):""}Ne.getInnerHTML=m2;function Ai(t){return Array.isArray(t)?t.map(Ai).join(""):(0,tt.isTag)(t)?t.name==="br"?` `:Ai(t.children):(0,tt.isCDATA)(t)?Ai(t.children):(0,tt.isText)(t)?t.data:""}Ne.getText=Ai;function oo(t){return Array.isArray(t)?t.map(oo).join(""):(0,tt.hasChildren)(t)&&!(0,tt.isComment)(t)?oo(t.children):(0,tt.isText)(t)?t.data:""}Ne.textContent=oo;function lo(t){return Array.isArray(t)?t.map(lo).join(""):(0,tt.hasChildren)(t)&&(t.type===h2.ElementType.Tag||(0,tt.isCDATA)(t))?lo(t.children):(0,tt.isText)(t)?t.data:""}Ne.innerText=lo;var he={};Object.defineProperty(he,"__esModule",{value:!0});he.prevElementSibling=he.nextElementSibling=he.getName=he.hasAttrib=he.getAttributeValue=he.getSiblings=he.getParent=he.getChildren=void 0;var Nl=gt;function _h(t){return(0,Nl.hasChildren)(t)?t.children:[]}he.getChildren=_h;function jh(t){return t.parent||null}he.getParent=jh;function g2(t){var e,r,n=jh(t);if(n!=null)return _h(n);for(var i=[t],s=t.prev,a=t.next;s!=null;)i.unshift(s),e=s,s=e.prev;for(;a!=null;)i.push(a),r=a,a=r.next;return i}he.getSiblings=g2;function b2(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}he.getAttributeValue=b2;function y2(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}he.hasAttrib=y2;function v2(t){return t.name}he.getName=v2;function w2(t){for(var e,r=t.next;r!==null&&!(0,Nl.isTag)(r);)e=r,r=e.next;return r}he.nextElementSibling=w2;function x2(t){for(var e,r=t.prev;r!==null&&!(0,Nl.isTag)(r);)e=r,r=e.prev;return r}he.prevElementSibling=x2;var Ie={};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.prepend=Ie.prependChild=Ie.append=Ie.appendChild=Ie.replaceElement=Ie.removeElement=void 0;function Nn(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}Ie.removeElement=Nn;function S2(t,e){var r=e.prev=t.prev;r&&(r.next=e);var n=e.next=t.next;n&&(n.prev=e);var i=e.parent=t.parent;if(i){var s=i.children;s[s.lastIndexOf(t)]=e,t.parent=null}}Ie.replaceElement=S2;function T2(t,e){if(Nn(e),e.next=null,e.parent=t,t.children.push(e)>1){var r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}Ie.appendChild=T2;function E2(t,e){Nn(e);var r=t.parent,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){var i=r.children;i.splice(i.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}Ie.append=E2;function C2(t,e){if(Nn(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){var r=t.children[1];r.prev=e,e.next=r}else e.next=null}Ie.prependChild=C2;function P2(t,e){Nn(e);var r=t.parent;if(r){var n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}Ie.prepend=P2;var Ce={};Object.defineProperty(Ce,"__esModule",{value:!0});Ce.findAll=Ce.existsOne=Ce.findOne=Ce.findOneChild=Ce.find=Ce.filter=void 0;var hs=gt;function A2(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),Nh(t,Array.isArray(e)?e:[e],r,n)}Ce.filter=A2;function Nh(t,e,r,n){for(var i=[],s=[e],a=[0];;){if(a[0]>=s[0].length){if(a.length===1)return i;s.shift(),a.shift();continue}var o=s[0][a[0]++];if(t(o)&&(i.push(o),--n<=0))return i;r&&(0,hs.hasChildren)(o)&&o.children.length>0&&(a.unshift(0),s.unshift(o.children))}}Ce.find=Nh;function M2(t,e){return e.find(t)}Ce.findOneChild=M2;function Rh(t,e,r){r===void 0&&(r=!0);for(var n=null,i=0;i0&&(n=Rh(t,s.children,!0));else continue}return n}Ce.findOne=Rh;function Dh(t,e){return e.some(function(r){return(0,hs.isTag)(r)&&(t(r)||Dh(t,r.children))})}Ce.existsOne=Dh;function k2(t,e){for(var r=[],n=[e],i=[0];;){if(i[0]>=n[0].length){if(n.length===1)return r;n.shift(),i.shift();continue}var s=n[0][i[0]++];(0,hs.isTag)(s)&&(t(s)&&r.push(s),s.children.length>0&&(i.unshift(0),n.unshift(s.children)))}}Ce.findAll=k2;var Re={};Object.defineProperty(Re,"__esModule",{value:!0});Re.getElementsByTagType=Re.getElementsByTagName=Re.getElementById=Re.getElements=Re.testElement=void 0;var Ut=gt,ms=Ce,Hi={tag_name:function(t){return typeof t=="function"?function(e){return(0,Ut.isTag)(e)&&t(e.name)}:t==="*"?Ut.isTag:function(e){return(0,Ut.isTag)(e)&&e.name===t}},tag_type:function(t){return typeof t=="function"?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return typeof t=="function"?function(e){return(0,Ut.isText)(e)&&t(e.data)}:function(e){return(0,Ut.isText)(e)&&e.data===t}}};function Fh(t,e){return typeof e=="function"?function(r){return(0,Ut.isTag)(r)&&e(r.attribs[t])}:function(r){return(0,Ut.isTag)(r)&&r.attribs[t]===e}}function I2(t,e){return function(r){return t(r)||e(r)}}function Bh(t){var e=Object.keys(t).map(function(r){var n=t[r];return Object.prototype.hasOwnProperty.call(Hi,r)?Hi[r](n):Fh(r,n)});return e.length===0?null:e.reduce(I2)}function O2(t,e){var r=Bh(t);return r?r(e):!0}Re.testElement=O2;function L2(t,e,r,n){n===void 0&&(n=1/0);var i=Bh(t);return i?(0,ms.filter)(i,e,r,n):[]}Re.getElements=L2;function _2(t,e,r){return r===void 0&&(r=!0),Array.isArray(e)||(e=[e]),(0,ms.findOne)(Fh("id",t),e,r)}Re.getElementById=_2;function j2(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,ms.filter)(Hi.tag_name(t),e,r,n)}Re.getElementsByTagName=j2;function N2(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,ms.filter)(Hi.tag_type(t),e,r,n)}Re.getElementsByTagType=N2;var zh={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueSort=t.compareDocumentPosition=t.DocumentPosition=t.removeSubsets=void 0;var e=gt;function r(a){for(var o=a.length;--o>=0;){var l=a[o];if(o>0&&a.lastIndexOf(l,o-1)>=0){a.splice(o,1);continue}for(var u=l.parent;u;u=u.parent)if(a.includes(u)){a.splice(o,1);break}}return a}t.removeSubsets=r;var n;(function(a){a[a.DISCONNECTED=1]="DISCONNECTED",a[a.PRECEDING=2]="PRECEDING",a[a.FOLLOWING=4]="FOLLOWING",a[a.CONTAINS=8]="CONTAINS",a[a.CONTAINED_BY=16]="CONTAINED_BY"})(n=t.DocumentPosition||(t.DocumentPosition={}));function i(a,o){var l=[],u=[];if(a===o)return 0;for(var d=(0,e.hasChildren)(a)?a:a.parent;d;)l.unshift(d),d=d.parent;for(d=(0,e.hasChildren)(o)?o:o.parent;d;)u.unshift(d),d=d.parent;for(var f=Math.min(l.length,u.length),c=0;cm.indexOf(g)?p===o?n.FOLLOWING|n.CONTAINED_BY:n.FOLLOWING:p===a?n.PRECEDING|n.CONTAINS:n.PRECEDING}t.compareDocumentPosition=i;function s(a){return a=a.filter(function(o,l,u){return!u.includes(o,l+1)}),a.sort(function(o,l){var u=i(o,l);return u&n.PRECEDING?-1:u&n.FOLLOWING?1:0}),a}t.uniqueSort=s})(zh);var gs={};Object.defineProperty(gs,"__esModule",{value:!0});gs.getFeed=void 0;var R2=Ne,Rn=Re;function D2(t){var e=Ui(q2,t);return e?e.name==="feed"?F2(e):B2(e):null}gs.getFeed=D2;function F2(t){var e,r=t.children,n={type:"atom",items:(0,Rn.getElementsByTagName)("entry",r).map(function(a){var o,l=a.children,u={media:Vh(l)};ke(u,"id","id",l),ke(u,"title","title",l);var d=(o=Ui("link",l))===null||o===void 0?void 0:o.attribs.href;d&&(u.link=d);var f=At("summary",l)||At("content",l);f&&(u.description=f);var c=At("updated",l);return c&&(u.pubDate=new Date(c)),u})};ke(n,"id","id",r),ke(n,"title","title",r);var i=(e=Ui("link",r))===null||e===void 0?void 0:e.attribs.href;i&&(n.link=i),ke(n,"description","subtitle",r);var s=At("updated",r);return s&&(n.updated=new Date(s)),ke(n,"author","email",r,!0),n}function B2(t){var e,r,n=(r=(e=Ui("channel",t.children))===null||e===void 0?void 0:e.children)!==null&&r!==void 0?r:[],i={type:t.name.substr(0,3),id:"",items:(0,Rn.getElementsByTagName)("item",t.children).map(function(a){var o=a.children,l={media:Vh(o)};ke(l,"id","guid",o),ke(l,"title","title",o),ke(l,"link","link",o),ke(l,"description","description",o);var u=At("pubDate",o)||At("dc:date",o);return u&&(l.pubDate=new Date(u)),l})};ke(i,"title","title",n),ke(i,"link","link",n),ke(i,"description","description",n);var s=At("lastBuildDate",n);return s&&(i.updated=new Date(s)),ke(i,"author","managingEditor",n,!0),i}var z2=["url","type","lang"],V2=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function Vh(t){return(0,Rn.getElementsByTagName)("media:content",t).map(function(e){for(var r=e.attribs,n={medium:r.medium,isDefault:!!r.isDefault},i=0,s=z2;i{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},Rl={};Object.defineProperty(Rl,"__esModule",{value:!0});/*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */function fd(t){return Object.prototype.toString.call(t)==="[object Object]"}function H2(t){var e,r;return fd(t)===!1?!1:(e=t.constructor,e===void 0?!0:(r=e.prototype,!(fd(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}Rl.isPlainObject=H2;var qh={exports:{}};(function(t){(function(e,r){t.exports?t.exports=r():e.parseSrcset=r()})(W,function(){return function(e){function r(x){return x===" "||x===" "||x===` `||x==="\f"||x==="\r"}function n(x){var A,R=x.exec(e.substring(g));if(R)return A=R[0],g+=A.length,A}for(var i=e.length,s=/^[ \t\n\r\u000c]+/,a=/^[, \t\n\r\u000c]+/,o=/^[^ \t\n\r\u000c]+/,l=/[,]+$/,u=/^\d+$/,d=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,f,c,p,m,h,g=0,b=[];;){if(n(a),g>=i)return b;f=n(o),c=[],f.slice(-1)===","?(f=f.replace(l,""),v()):y()}function y(){for(n(s),p="",m="in descriptor";;){if(h=e.charAt(g),m==="in descriptor")if(r(h))p&&(c.push(p),p="",m="after descriptor");else if(h===","){g+=1,p&&c.push(p),v();return}else if(h==="(")p=p+h,m="in parens";else if(h===""){p&&c.push(p),v();return}else p=p+h;else if(m==="in parens")if(h===")")p=p+h,m="in descriptor";else if(h===""){c.push(p),v();return}else p=p+h;else if(m==="after descriptor"&&!r(h))if(h===""){v();return}else m="in descriptor",g-=1;g+=1}}function v(){var x=!1,A,R,M,E,T={},_,P,O,L,C;for(E=0;E",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let r=this.source;e==null&&(e=pd.isColorSupported);let n=d=>d,i=d=>d,s=d=>d;if(e){let{bold:d,gray:f,red:c}=pd.createColors(!0);i=p=>d(c(p)),n=p=>f(p),hd&&(s=p=>hd(p))}let a=r.split(/\r?\n/),o=Math.max(this.line-3,0),l=Math.min(this.line+2,a.length),u=String(l).length;return a.slice(o,l).map((d,f)=>{let c=o+1+f,p=" "+(" "+c).slice(-u)+" | ";if(c===this.line){if(d.length>160){let h=20,g=Math.max(0,this.column-h),b=Math.max(this.column+h,this.endColumn+h),y=d.slice(g,b),v=n(p.replace(/\d/g," "))+d.slice(0,Math.min(this.column-1,h-1)).replace(/[^\t]/g," ");return i(">")+n(p)+s(y)+` `+v+i("^")}let m=n(p.replace(/\d/g," "))+d.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+n(p)+s(d)+` `+m+i("^")}return" "+n(p)+s(d)}).join(` `)}toString(){let e=this.showSourceCode();return e&&(e=` `+e+` `),this.name+": "+this.message+e}};var Fl=uo;uo.default=uo;const md={after:` `,beforeClose:` `,beforeComment:` `,beforeDecl:` `,beforeOpen:" ",beforeRule:` `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function X2(t){return t[0].toUpperCase()+t.slice(1)}let co=class{constructor(e){this.builder=e}atrule(e,r){let n="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i);else{let s=(e.raws.between||"")+(r?";":"");this.builder(n+i+s,e)}}beforeAfter(e,r){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):r==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let i=e.parent,s=0;for(;i&&i.type!=="root";)s+=1,i=i.parent;if(n.includes(` `)){let a=this.raw(e,null,"indent");if(a.length)for(let o=0;o0&&e.nodes[r].type==="comment";)r-=1;let n=this.raw(e,"semicolon");for(let i=0;i{if(i=l.raws[r],typeof i<"u")return!1})}return typeof i>"u"&&(i=md[n]),a.rawCache[n]=i,i}rawBeforeClose(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return r=n.raws.after,r.includes(` `)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeComment(e,r){let n;return e.walkComments(i=>{if(typeof i.raws.before<"u")return n=i.raws.before,n.includes(` `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,r){let n;return e.walkDecls(i=>{if(typeof i.raws.before<"u")return n=i.raws.before,n.includes(` `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let r;return e.walk(n=>{if(n.type!=="decl"&&(r=n.raws.between,typeof r<"u"))return!1}),r}rawBeforeRule(e){let r;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before<"u")return r=n.raws.before,r.includes(` `)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawColon(e){let r;return e.walkDecls(n=>{if(typeof n.raws.between<"u")return r=n.raws.between.replace(/[^\s:]/g,""),!1}),r}rawEmptyBody(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length===0&&(r=n.raws.after,typeof r<"u"))return!1}),r}rawIndent(e){if(e.raws.indent)return e.raws.indent;let r;return e.walk(n=>{let i=n.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof n.raws.before<"u"){let s=n.raws.before.split(` `);return r=s[s.length-1],r=r.replace(/\S/g,""),!1}}),r}rawSemicolon(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(r=n.raws.semicolon,typeof r<"u"))return!1}),r}rawValue(e,r){let n=e[r],i=e.raws[r];return i&&i.value===n?i.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)}};var Uh=co;co.default=co;let K2=Uh;function fo(t,e){new K2(e).stringify(t)}var bs=fo;fo.default=fo;var Dn={};Dn.isClean=Symbol("isClean");Dn.my=Symbol("my");let Q2=Fl,Z2=Uh,J2=bs,{isClean:$r,my:eS}=Dn;function po(t,e){let r=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||n==="proxyCache")continue;let i=t[n],s=typeof i;n==="parent"&&s==="object"?e&&(r[n]=e):n==="source"?r[n]=i:Array.isArray(i)?r[n]=i.map(a=>po(a,r)):(s==="object"&&i!==null&&(i=po(i)),r[n]=i)}return r}let ho=class{constructor(e={}){this.raws={},this[$r]=!1,this[eS]=!0;for(let r in e)if(r==="nodes"){this.nodes=[];for(let n of e[r])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[r]=e[r]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let r in e)this[r]=e[r];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let r=po(this);for(let n in e)r[n]=e[n];return r}cloneAfter(e={}){let r=this.clone(e);return this.parent.insertAfter(this,r),r}cloneBefore(e={}){let r=this.clone(e);return this.parent.insertBefore(this,r),r}error(e,r={}){if(this.source){let{end:n,start:i}=this.rangeBy(r);return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},r)}return new Q2(e)}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:r==="root"?()=>e.root().toProxy():e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&e.markDirty()),!0}}}markClean(){this[$r]=!0}markDirty(){if(this[$r]){this[$r]=!1;let e=this;for(;e=e.parent;)e[$r]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,r){let n=this.source.start;if(e.index)n=this.positionInside(e.index,r);else if(e.word){r=this.toString();let i=r.indexOf(e.word);i!==-1&&(n=this.positionInside(i,r))}return n}positionInside(e,r){let n=r||this.toString(),i=this.source.start.column,s=this.source.start.line;for(let a=0;atypeof l=="object"&&l.toJSON?l.toJSON(null,r):l);else if(typeof o=="object"&&o.toJSON)n[a]=o.toJSON(null,r);else if(a==="source"){let l=r.get(o.input);l==null&&(l=s,r.set(o.input,s),s++),n[a]={end:o.end,inputId:l,start:o.start}}else n[a]=o}return i&&(n.inputs=[...r.keys()].map(a=>a.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=J2){e.stringify&&(e=e.stringify);let r="";return e(this,n=>{r+=n}),r}warn(e,r,n){let i={node:this};for(let s in n)i[s]=n[s];return e.warn(r,i)}get proxyOf(){return this}};var ys=ho;ho.default=ho;let tS=ys,mo=class extends tS{constructor(e){super(e),this.type="comment"}};var vs=mo;mo.default=mo;let rS=ys,go=class extends rS{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var ws=go;go.default=go;let Wh=vs,Gh=ws,nS=ys,{isClean:Yh,my:Xh}=Dn,Bl,Kh,Qh,zl;function Zh(t){return t.map(e=>(e.nodes&&(e.nodes=Zh(e.nodes)),delete e.source,e))}function Jh(t){if(t[Yh]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)Jh(e)}let bt=class e0 extends nS{append(...e){for(let r of e){let n=this.normalize(r,this.last);for(let i of n)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let r of this.nodes)r.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let r=this.getIterator(),n,i;for(;this.indexes[r]e[r](...n.map(i=>typeof i=="function"?(s,a)=>i(s.toProxy(),a):i)):r==="every"||r==="some"?n=>e[r]((i,...s)=>n(i.toProxy(),...s)):r==="root"?()=>e.root().toProxy():r==="nodes"?e.nodes.map(n=>n.toProxy()):r==="first"||r==="last"?e[r].toProxy():e[r]:e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="name"||r==="params"||r==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,r){let n=this.index(e),i=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let a of i)this.proxyOf.nodes.splice(n+1,0,a);let s;for(let a in this.indexes)s=this.indexes[a],n"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Gh(e)]}else if(e.selector||e.selectors)e=[new zl(e)];else if(e.name)e=[new Bl(e)];else if(e.text)e=[new Wh(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[Xh]||e0.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[Yh]&&Jh(i),i.raws||(i.raws={}),typeof i.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(i.raws.before=r.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let r of e){let n=this.normalize(r,this.first,"prepend").reverse();for(let i of n)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let r;for(let n in this.indexes)r=this.indexes[n],r>=e&&(this.indexes[n]=r-1);return this.markDirty(),this}replaceValues(e,r,n){return n||(n=r,r={}),this.walkDecls(i=>{r.props&&!r.props.includes(i.prop)||r.fast&&!i.value.includes(r.fast)||(i.value=i.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((r,n)=>{let i;try{i=e(r,n)}catch(s){throw r.addToError(s)}return i!==!1&&r.walk&&(i=r.walk(e)),i})}walkAtRules(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="atrule"&&e.test(n.name))return r(n,i)}):this.walk((n,i)=>{if(n.type==="atrule"&&n.name===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="atrule")return r(n,i)}))}walkComments(e){return this.walk((r,n)=>{if(r.type==="comment")return e(r,n)})}walkDecls(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="decl"&&e.test(n.prop))return r(n,i)}):this.walk((n,i)=>{if(n.type==="decl"&&n.prop===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="decl")return r(n,i)}))}walkRules(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="rule"&&e.test(n.selector))return r(n,i)}):this.walk((n,i)=>{if(n.type==="rule"&&n.selector===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="rule")return r(n,i)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};bt.registerParse=t=>{Kh=t};bt.registerRule=t=>{zl=t};bt.registerAtRule=t=>{Bl=t};bt.registerRoot=t=>{Qh=t};var nr=bt;bt.default=bt;bt.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,Bl.prototype):t.type==="rule"?Object.setPrototypeOf(t,zl.prototype):t.type==="decl"?Object.setPrototypeOf(t,Gh.prototype):t.type==="comment"?Object.setPrototypeOf(t,Wh.prototype):t.type==="root"&&Object.setPrototypeOf(t,Qh.prototype),t[Xh]=!0,t.nodes&&t.nodes.forEach(e=>{bt.rebuild(e)})};let t0=nr,Wi=class extends t0{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var Vl=Wi;Wi.default=Wi;t0.registerAtRule(Wi);let iS=nr,r0,n0,wn=class extends iS{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new r0(new n0,this,e).stringify()}};wn.registerLazyResult=t=>{r0=t};wn.registerProcessor=t=>{n0=t};var ql=wn;wn.default=wn;let sS="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",aS=(t,e=21)=>(r=e)=>{let n="",i=r;for(;i--;)n+=t[Math.random()*t.length|0];return n},oS=(t=21)=>{let e="",r=t;for(;r--;)e+=sS[Math.random()*64|0];return e};var lS={nanoid:oS,customAlphabet:aS};let{existsSync:uS,readFileSync:cS}=Ue,{dirname:ra,join:dS}=Ue,{SourceMapConsumer:gd,SourceMapGenerator:bd}=Ue;function fS(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}let bo=class{constructor(e,r){if(r.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=r.map?r.map.prev:void 0,i=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=ra(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new gd(this.text)),this.consumerCache}decodeInline(e){let r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,a=e.match(i)||e.match(s);if(a)return decodeURIComponent(e.substr(a[0].length));let o=e.match(r)||e.match(n);if(o)return fS(e.substr(o[0].length));let l=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+l)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let r=e.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let n=e.lastIndexOf(r.pop()),i=e.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,i)))}loadFile(e){if(this.root=ra(e),uS(e))return this.mapFile=e,cS(e,"utf-8").toString().trim()}loadMap(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let n=r(e);if(n){let i=this.loadFile(n);if(!i)throw new Error("Unable to load previous source map: "+n.toString());return i}}else{if(r instanceof gd)return bd.fromSourceMap(r).toString();if(r instanceof bd)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=dS(ra(e),n)),this.loadFile(n)}}}startWith(e,r){return e?e.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var i0=bo;bo.default=bo;let{nanoid:pS}=lS,{isAbsolute:yo,resolve:vo}=Ue,{SourceMapConsumer:hS,SourceMapGenerator:mS}=Ue,{fileURLToPath:yd,pathToFileURL:li}=Ue,vd=Fl,gS=i0,na=Ue,ia=Symbol("fromOffsetCache"),bS=!!(hS&&mS),wd=!!(vo&&yo),Gi=class{constructor(e,r={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,r.from&&(!wd||/^\w+:\/\//.test(r.from)||yo(r.from)?this.file=r.from:this.file=vo(r.from)),wd&&bS){let n=new gS(this.css,r);if(n.text){this.map=n;let i=n.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(e,r,n,i={}){let s,a,o;if(r&&typeof r=="object"){let u=r,d=n;if(typeof u.offset=="number"){let f=this.fromOffset(u.offset);r=f.line,n=f.col}else r=u.line,n=u.column;if(typeof d.offset=="number"){let f=this.fromOffset(d.offset);a=f.line,s=f.col}else a=d.line,s=d.column}else if(!n){let u=this.fromOffset(r);r=u.line,n=u.col}let l=this.origin(r,n,a,s);return l?o=new vd(e,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,i.plugin):o=new vd(e,a===void 0?r:{column:n,line:r},a===void 0?n:{column:s,line:a},this.css,this.file,i.plugin),o.input={column:n,endColumn:s,endLine:a,line:r,source:this.css},this.file&&(li&&(o.input.url=li(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let r,n;if(this[ia])n=this[ia];else{let s=this.css.split(` `);n=new Array(s.length);let a=0;for(let o=0,l=s.length;o=r)i=n.length-1;else{let s=n.length-2,a;for(;i>1),e=n[a+1])i=a+1;else{i=a;break}}return{col:e-n[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:vo(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,n,i){if(!this.map)return!1;let s=this.map.consumer(),a=s.originalPositionFor({column:r,line:e});if(!a.source)return!1;let o;typeof n=="number"&&(o=s.originalPositionFor({column:i,line:n}));let l;yo(a.source)?l=li(a.source):l=new URL(a.source,this.map.consumer().sourceRoot||li(this.map.mapFile));let u={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:l.toString()};if(l.protocol==="file:")if(yd)u.file=yd(l);else throw new Error("file: protocol is not available in this PostCSS build");let d=s.sourceContentFor(a.source);return d&&(u.source=d),u}toJSON(){let e={};for(let r of["hasBOM","css","file","id"])this[r]!=null&&(e[r]=this[r]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var xs=Gi;Gi.default=Gi;na&&na.registerInput&&na.registerInput(Gi);let s0=nr,a0,o0,Mr=class extends s0{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,r,n){let i=super.normalize(e);if(r){if(n==="prepend")this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let s of i)s.raws.before=r.raws.before}return i}removeChild(e,r){let n=this.index(e);return!r&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new a0(new o0,this,e).stringify()}};Mr.registerLazyResult=t=>{a0=t};Mr.registerProcessor=t=>{o0=t};var Fn=Mr;Mr.default=Mr;s0.registerRoot(Mr);let xn={comma(t){return xn.split(t,[","],!0)},space(t){let e=[" ",` `," "];return xn.split(t,e)},split(t,e,r){let n=[],i="",s=!1,a=0,o=!1,l="",u=!1;for(let d of t)u?u=!1:d==="\\"?u=!0:o?d===l&&(o=!1):d==='"'||d==="'"?(o=!0,l=d):d==="("?a+=1:d===")"?a>0&&(a-=1):a===0&&e.includes(d)&&(s=!0),s?(i!==""&&n.push(i.trim()),i="",s=!1):i+=d;return(r||i!=="")&&n.push(i.trim()),n}};var l0=xn;xn.default=xn;let u0=nr,yS=l0,Yi=class extends u0{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return yS.comma(this.selector)}set selectors(e){let r=this.selector?this.selector.match(/,\s*/):null,n=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}};var $l=Yi;Yi.default=Yi;u0.registerRule(Yi);let vS=Vl,wS=vs,xS=ws,SS=xs,TS=i0,ES=Fn,CS=$l;function Sn(t,e){if(Array.isArray(t))return t.map(i=>Sn(i));let{inputs:r,...n}=t;if(r){e=[];for(let i of r){let s={...i,__proto__:SS.prototype};s.map&&(s.map={...s.map,__proto__:TS.prototype}),e.push(s)}}if(n.nodes&&(n.nodes=t.nodes.map(i=>Sn(i,e))),n.source){let{inputId:i,...s}=n.source;n.source=s,i!=null&&(n.source.input=e[i])}if(n.type==="root")return new ES(n);if(n.type==="decl")return new xS(n);if(n.type==="rule")return new CS(n);if(n.type==="comment")return new wS(n);if(n.type==="atrule")return new vS(n);throw new Error("Unknown node type: "+t.type)}var PS=Sn;Sn.default=Sn;let{dirname:Mi,relative:c0,resolve:d0,sep:f0}=Ue,{SourceMapConsumer:p0,SourceMapGenerator:ki}=Ue,{pathToFileURL:xd}=Ue,AS=xs,MS=!!(p0&&ki),kS=!!(Mi&&d0&&c0&&f0),IS=class{constructor(e,r,n,i){this.stringify=e,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let r=` `;this.css.includes(`\r `)&&(r=`\r `),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),n=e.root||Mi(e.file),i;this.mapOpts.sourcesContent===!1?(i=new p0(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),kS&&MS&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,r=>{e+=r}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=ki.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new ki({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new ki({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,r=1,n="",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,a;this.stringify(this.root,(o,l,u)=>{if(this.css+=o,l&&u!=="end"&&(i.generated.line=e,i.generated.column=r-1,l.source&&l.source.start?(i.source=this.sourcePath(l),i.original.line=l.source.start.line,i.original.column=l.source.start.column-1,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,this.map.addMapping(i))),a=o.match(/\n/g),a?(e+=a.length,s=o.lastIndexOf(` `),r=o.length-s):r+=o.length,l&&u!=="start"){let d=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==d.last||d.raws.semicolon)&&(l.source&&l.source.end?(i.source=this.sourcePath(l),i.original.line=l.source.end.line,i.original.column=l.source.end.column-1,i.generated.line=e,i.generated.column=r-2,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=r-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let r=this.memoizedPaths.get(e);if(r)return r;let n=this.opts.to?Mi(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=Mi(d0(n,this.mapOpts.annotation)));let i=c0(n,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let r=e.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let e=new AS(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(r=>{if(r.source){let n=r.source.input.from;if(n&&!e[n]){e[n]=!0;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(r,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let r=this.memoizedFileURLs.get(e);if(r)return r;if(xd){let n=xd(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let r=this.memoizedURLs.get(e);if(r)return r;f0==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var h0=IS;const sa=39,Sd=34,ui=92,Td=47,ci=10,Hr=32,di=12,fi=9,pi=13,OS=91,LS=93,_S=40,jS=41,NS=123,RS=125,DS=59,FS=42,BS=58,zS=64,hi=/[\t\n\f\r "#'()/;[\\\]{}]/g,mi=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,VS=/.[\r\n"'(/\\]/,Ed=/[\da-f]/i;var qS=function(e,r={}){let n=e.css.valueOf(),i=r.ignoreErrors,s,a,o,l,u,d,f,c,p,m,h=n.length,g=0,b=[],y=[];function v(){return g}function x(E){throw e.error("Unclosed "+E,g)}function A(){return y.length===0&&g>=h}function R(E){if(y.length)return y.pop();if(g>=h)return;let T=E?E.ignoreUnclosed:!1;switch(s=n.charCodeAt(g),s){case ci:case Hr:case fi:case pi:case di:{l=g;do l+=1,s=n.charCodeAt(l);while(s===Hr||s===ci||s===fi||s===pi||s===di);d=["space",n.slice(g,l)],g=l-1;break}case OS:case LS:case NS:case RS:case BS:case DS:case jS:{let _=String.fromCharCode(s);d=[_,_,g];break}case _S:{if(m=b.length?b.pop()[1]:"",p=n.charCodeAt(g+1),m==="url"&&p!==sa&&p!==Sd&&p!==Hr&&p!==ci&&p!==fi&&p!==di&&p!==pi){l=g;do{if(f=!1,l=n.indexOf(")",l+1),l===-1)if(i||T){l=g;break}else x("bracket");for(c=l;n.charCodeAt(c-1)===ui;)c-=1,f=!f}while(f);d=["brackets",n.slice(g,l+1),g,l],g=l}else l=n.indexOf(")",g+1),a=n.slice(g,l+1),l===-1||VS.test(a)?d=["(","(",g]:(d=["brackets",a,g,l],g=l);break}case sa:case Sd:{u=s===sa?"'":'"',l=g;do{if(f=!1,l=n.indexOf(u,l+1),l===-1)if(i||T){l=g+1;break}else x("string");for(c=l;n.charCodeAt(c-1)===ui;)c-=1,f=!f}while(f);d=["string",n.slice(g,l+1),g,l],g=l;break}case zS:{hi.lastIndex=g+1,hi.test(n),hi.lastIndex===0?l=n.length-1:l=hi.lastIndex-2,d=["at-word",n.slice(g,l+1),g,l],g=l;break}case ui:{for(l=g,o=!0;n.charCodeAt(l+1)===ui;)l+=1,o=!o;if(s=n.charCodeAt(l+1),o&&s!==Td&&s!==Hr&&s!==ci&&s!==fi&&s!==pi&&s!==di&&(l+=1,Ed.test(n.charAt(l)))){for(;Ed.test(n.charAt(l+1));)l+=1;n.charCodeAt(l+1)===Hr&&(l+=1)}d=["word",n.slice(g,l+1),g,l],g=l;break}default:{s===Td&&n.charCodeAt(g+1)===FS?(l=n.indexOf("*/",g+2)+1,l===0&&(i||T?l=n.length:x("comment")),d=["comment",n.slice(g,l+1),g,l],g=l):(mi.lastIndex=g+1,mi.test(n),mi.lastIndex===0?l=n.length-1:l=mi.lastIndex-2,d=["word",n.slice(g,l+1),g,l],b.push(d),g=l);break}}return g++,d}function M(E){y.push(E)}return{back:M,endOfFile:A,nextToken:R,position:v}};let $S=Vl,HS=vs,US=ws,WS=Fn,Cd=$l,GS=qS;const Pd={empty:!0,space:!0};function YS(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}let XS=class{constructor(e){this.input=e,this.root=new WS,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let r=new $S;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let n,i,s,a=!1,o=!1,l=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?u.push(n==="("?")":"]"):n==="{"&&u.length>0?u.push("}"):n===u[u.length-1]&&u.pop(),u.length===0)if(n===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){o=!0;break}else if(n==="}"){if(l.length>0){for(s=l.length-1,i=l[s];i&&i[0]==="space";)i=l[--s];i&&(r.source.end=this.getPosition(i[3]||i[2]),r.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),a&&(e=l[l.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),o&&(r.nodes=[],this.current=r)}checkMissedSemicolon(e){let r=this.colon(e);if(r===!1)return;let n=0,i;for(let s=r-1;s>=0&&(i=e[s],!(i[0]!=="space"&&(n+=1,n===2)));s--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let r=0,n,i,s;for(let[a,o]of e.entries()){if(i=o,s=i[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!n)this.doubleColon(i);else{if(n[0]==="word"&&n[1]==="progid")continue;return a}n=i}return!1}comment(e){let r=new HS;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=i[2],r.raws.left=i[1],r.raws.right=i[3]}}createTokenizer(){this.tokenizer=GS(this.input)}decl(e,r){let n=new US;this.init(n,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||YS(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){n.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),n.raws.between+=s[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let a=[],o;for(;e.length&&(o=e[0][0],!(o!=="space"&&o!=="comment"));)a.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(s=e[u],s[1].toLowerCase()==="!important"){n.important=!0;let d=this.stringFrom(e,u);d=this.spacesFromEnd(e)+d,d!==" !important"&&(n.raws.important=d);break}else if(s[1].toLowerCase()==="important"){let d=e.slice(0),f="";for(let c=u;c>0;c--){let p=d[c][0];if(f.trim().startsWith("!")&&p!=="space")break;f=d.pop()[1]+f}f.trim().startsWith("!")&&(n.important=!0,n.raws.important=f,e=d)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(n.raws.between+=a.map(u=>u[1]).join(""),a=[]),this.raw(n,"value",a.concat(e),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let r=new Cd;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}}init(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let r=!1,n=null,i=!1,s=null,a=[],o=e[1].startsWith("--"),l=[],u=e;for(;u;){if(n=u[0],l.push(u),n==="("||n==="[")s||(s=u),a.push(n==="("?")":"]");else if(o&&i&&n==="{")s||(s=u),a.push("}");else if(a.length===0)if(n===";")if(i){this.decl(l,o);return}else break;else if(n==="{"){this.rule(l);return}else if(n==="}"){this.tokenizer.back(l.pop()),r=!0;break}else n===":"&&(i=!0);else n===a[a.length-1]&&(a.pop(),a.length===0&&(s=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),a.length>0&&this.unclosedBracket(s),r&&i){if(!o)for(;l.length&&(u=l[l.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,o)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,r,n,i){let s,a,o=n.length,l="",u=!0,d,f;for(let c=0;cp+m[1],"");e.raws[r]={raw:c,value:l}}e[r]=l}rule(e){e.pop();let r=new Cd;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r}spacesAndCommentsFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let r,n="";for(;e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],r==="space");)n=e.pop()[1]+n;return n}stringFrom(e,r){let n="";for(let i=r;ie.type==="warning")}get content(){return this.css}};var Ul=xo;xo.default=xo;let tT=nr,rT=ql,nT=h0,iT=Hl,Ad=Ul,sT=Fn,aT=bs,{isClean:Xe,my:oT}=Dn;const lT={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},uT={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},cT={Once:!0,postcssPlugin:!0,prepare:!0},kr=0;function Ur(t){return typeof t=="object"&&typeof t.then=="function"}function g0(t){let e=!1,r=lT[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,kr,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,kr,r+"Exit"]:[r,r+"Exit"]}function Md(t){let e;return t.type==="document"?e=["Document",kr,"DocumentExit"]:t.type==="root"?e=["Root",kr,"RootExit"]:e=g0(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function So(t){return t[Xe]=!1,t.nodes&&t.nodes.forEach(e=>So(e)),t}let To={},Ir=class b0{constructor(e,r,n){this.stringified=!1,this.processed=!1;let i;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))i=So(r);else if(r instanceof b0||r instanceof Ad)i=So(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let s=iT;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[oT]&&tT.rebuild(i)}this.result=new Ad(e,i,n),this.helpers={...To,postcss:To,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,r){let n=this.result.lastPlugin;try{r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(r,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,i])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!uT[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!cT[n])if(typeof r[n]=="object")for(let i in r[n])i==="*"?e(r,n,r[n][i]):e(r,n+"-"+i.toLowerCase(),r[n][i]);else typeof r[n]=="function"&&e(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e0;){let n=this.visitTick(r);if(Ur(n))try{await n}catch(i){let s=r[r.length-1].node;throw this.handleError(i,s)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let i=e.nodes.map(s=>n(s,this.helpers));await Promise.all(i)}else await n(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return Ur(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(r){throw this.handleError(r)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,r=aT;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let i=new nT(r,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let r=this.runOnRoot(e);if(Ur(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Xe];)e[Xe]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,r){return this.async().then(e,r)}toString(){return this.css}visitSync(e,r){for(let[n,i]of e){this.result.lastPlugin=n;let s;try{s=i(r,this.helpers)}catch(a){throw this.handleError(a,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Ur(s))throw this.getAsyncError()}}visitTick(e){let r=e[e.length-1],{node:n,visitors:i}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&r.visitorIndex{i[Xe]||this.walkSync(i)});else{let i=this.listeners[n];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};Ir.registerPostcss=t=>{To=t};var y0=Ir;Ir.default=Ir;sT.registerLazyResult(Ir);rT.registerLazyResult(Ir);let dT=h0,fT=Hl;const pT=Ul;let hT=bs,Eo=class{constructor(e,r,n){r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;let i,s=hT;this.result=new pT(this._processor,i,this._opts),this.result.css=r;let a=this;Object.defineProperty(this.result,"root",{get(){return a.root}});let o=new dT(s,i,this._opts,r);if(o.isMap()){let[l,u]=o.generate();l&&(this.result.css=l),u&&(this.result.map=u)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,r){return this.async().then(e,r)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,r=fT;try{e=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var mT=Eo;Eo.default=Eo;let gT=ql,bT=y0,yT=mT,vT=Fn,Tn=class{constructor(e=[]){this.version="8.4.47",this.plugins=this.normalize(e)}normalize(e){let r=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))r=r.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)r.push(n);else if(typeof n=="function")r.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return r}process(e,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new yT(this,e,r):new bT(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var wT=Tn;Tn.default=Tn;vT.registerProcessor(Tn);gT.registerProcessor(Tn);var kd={};let v0=Vl,w0=vs,xT=nr,ST=Fl,x0=ws,S0=ql,TT=PS,ET=xs,CT=y0,PT=l0,AT=ys,MT=Hl,Wl=wT,kT=Ul,T0=Fn,E0=$l,IT=bs,OT=m0;function re(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Wl(t)}re.plugin=function(e,r){let n=!1;function i(...a){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide: https://evilmartians.com/chronicles/postcss-8-plugin-migration`),kd.LANG&&kd.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南: https://www.w3ctech.com/topic/2226`));let o=r(...a);return o.postcssPlugin=e,o.postcssVersion=new Wl().version,o}let s;return Object.defineProperty(i,"postcss",{get(){return s||(s=i()),s}}),i.process=function(a,o,l){return re([i(l)]).process(a,o)},i};re.stringify=IT;re.parse=MT;re.fromJSON=TT;re.list=PT;re.comment=t=>new w0(t);re.atRule=t=>new v0(t);re.decl=t=>new x0(t);re.rule=t=>new E0(t);re.root=t=>new T0(t);re.document=t=>new S0(t);re.CssSyntaxError=ST;re.Declaration=x0;re.Container=xT;re.Processor=Wl;re.Document=S0;re.Comment=w0;re.Warning=OT;re.AtRule=v0;re.Result=kT;re.Input=ET;re.Rule=E0;re.Root=T0;re.Node=AT;CT.registerPostcss(re);var LT=re;re.default=re;const _T=mh,Id=$2,{isPlainObject:jT}=Rl,Od=fg,NT=U2,{parse:RT}=LT,DT=["img","audio","video","picture","svg","object","map","iframe","embed"],FT=["script","style"];function en(t,e){t&&Object.keys(t).forEach(function(r){e(t[r],r)})}function ut(t,e){return{}.hasOwnProperty.call(t,e)}function Ld(t,e){const r=[];return en(t,function(n){e(n)&&r.push(n)}),r}function BT(t){for(const e in t)if(ut(t,e))return!1;return!0}function zT(t){return t.map(function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")}).join(", ")}var VT=En;const qT=/^[^\0\t\n\f\r /<=>]+$/;function En(t,e,r){if(t==null)return"";typeof t=="number"&&(t=t.toString());let n="",i="";function s(S,N){const k=this;this.tag=S,this.attribs=N||{},this.tagPosition=n.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(g.length){const j=g[g.length-1];j.text+=k.text}},this.updateParentNodeMediaChildren=function(){g.length&&DT.includes(this.tag)&&g[g.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},En.defaults,e),e.parser=Object.assign({},$T,e.parser);const a=function(S){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(S)>-1};FT.forEach(function(S){a(S)&&!e.allowVulnerableTags&&console.warn(` ⚠️ Your \`allowedTags\` option includes, \`${S}\`, which is inherently vulnerable to XSS attacks. Please remove it from \`allowedTags\`. Or, to disable this warning, add the \`allowVulnerableTags\` option and ensure you are accounting for this risk. `)});const o=e.nonTextTags||["script","style","textarea","option"];let l,u;e.allowedAttributes&&(l={},u={},en(e.allowedAttributes,function(S,N){l[N]=[];const k=[];S.forEach(function(j){typeof j=="string"&&j.indexOf("*")>=0?k.push(Id(j).replace(/\\\*/g,".*")):l[N].push(j)}),k.length&&(u[N]=new RegExp("^("+k.join("|")+")$"))}));const d={},f={},c={};en(e.allowedClasses,function(S,N){if(l&&(ut(l,N)||(l[N]=[]),l[N].push("class")),d[N]=S,Array.isArray(S)){const k=[];d[N]=[],c[N]=[],S.forEach(function(j){typeof j=="string"&&j.indexOf("*")>=0?k.push(Id(j).replace(/\\\*/g,".*")):j instanceof RegExp?c[N].push(j):d[N].push(j)}),k.length&&(f[N]=new RegExp("^("+k.join("|")+")$"))}});const p={};let m;en(e.transformTags,function(S,N){let k;typeof S=="function"?k=S:typeof S=="string"&&(k=En.simpleTransform(S)),N==="*"?m=k:p[N]=k});let h,g,b,y,v,x,A=!1;M();const R=new _T.Parser({onopentag:function(S,N){if(e.enforceHtmlBoundary&&S==="html"&&M(),v){x++;return}const k=new s(S,N);g.push(k);let j=!1;const B=!!k.text;let q;if(ut(p,S)&&(q=p[S](S,N),k.attribs=N=q.attribs,q.text!==void 0&&(k.innerText=q.text),S!==q.tagName&&(k.name=S=q.tagName,y[h]=q.tagName)),m&&(q=m(S,N),k.attribs=N=q.attribs,S!==q.tagName&&(k.name=S=q.tagName,y[h]=q.tagName)),(!a(S)||e.disallowedTagsMode==="recursiveEscape"&&!BT(b)||e.nestingLimit!=null&&h>=e.nestingLimit)&&(j=!0,b[h]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&o.indexOf(S)!==-1&&(v=!0,x=1),b[h]=!0),h++,j){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")return;i=n,n=""}n+="<"+S,S==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(k.innerText=""),(!l||ut(l,S)||l["*"])&&en(N,function(F,z){if(!qT.test(z)){delete k.attribs[z];return}if(F===""&&!e.allowedEmptyAttributes.includes(z)&&(e.nonBooleanAttributes.includes(z)||e.nonBooleanAttributes.includes("*"))){delete k.attribs[z];return}let H=!1;if(!l||ut(l,S)&&l[S].indexOf(z)!==-1||l["*"]&&l["*"].indexOf(z)!==-1||ut(u,S)&&u[S].test(z)||u["*"]&&u["*"].test(z))H=!0;else if(l&&l[S]){for(const U of l[S])if(jT(U)&&U.name&&U.name===z){H=!0;let V="";if(U.multiple===!0){const K=F.split(" ");for(const ae of K)U.values.indexOf(ae)!==-1&&(V===""?V=ae:V+=" "+ae)}else U.values.indexOf(F)>=0&&(V=F);F=V}}if(H){if(e.allowedSchemesAppliedToAttributes.indexOf(z)!==-1&&T(S,F)){delete k.attribs[z];return}if(S==="script"&&z==="src"){let U=!0;try{const V=_(F);if(e.allowedScriptHostnames||e.allowedScriptDomains){const K=(e.allowedScriptHostnames||[]).find(function(pe){return pe===V.url.hostname}),ae=(e.allowedScriptDomains||[]).find(function(pe){return V.url.hostname===pe||V.url.hostname.endsWith(`.${pe}`)});U=K||ae}}catch{U=!1}if(!U){delete k.attribs[z];return}}if(S==="iframe"&&z==="src"){let U=!0;try{const V=_(F);if(V.isRelativeUrl)U=ut(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const K=(e.allowedIframeHostnames||[]).find(function(pe){return pe===V.url.hostname}),ae=(e.allowedIframeDomains||[]).find(function(pe){return V.url.hostname===pe||V.url.hostname.endsWith(`.${pe}`)});U=K||ae}}catch{U=!1}if(!U){delete k.attribs[z];return}}if(z==="srcset")try{let U=NT(F);if(U.forEach(function(V){T("srcset",V.url)&&(V.evil=!0)}),U=Ld(U,function(V){return!V.evil}),U.length)F=zT(Ld(U,function(V){return!V.evil})),k.attribs[z]=F;else{delete k.attribs[z];return}}catch{delete k.attribs[z];return}if(z==="class"){const U=d[S],V=d["*"],K=f[S],ae=c[S],pe=c["*"],sr=f["*"],Be=[K,sr].concat(ae,pe).filter(function(at){return at});if(U&&V?F=C(F,Od(U,V),Be):F=C(F,U||V,Be),!F.length){delete k.attribs[z];return}}if(z==="style"){if(e.parseStyleAttributes)try{const U=RT(S+" {"+F+"}",{map:!1}),V=P(U,e.allowedStyles);if(F=O(V),F.length===0){delete k.attribs[z];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+S+" {"+F+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete k.attribs[z];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}n+=" "+z,F&&F.length?n+='="'+E(F,!0)+'"':e.allowedEmptyAttributes.includes(z)&&(n+='=""')}else delete k.attribs[z]}),e.selfClosing.indexOf(S)!==-1?n+=" />":(n+=">",k.innerText&&!B&&!e.textFilter&&(n+=E(k.innerText),A=!0)),j&&(n=i+E(n),i="")},ontext:function(S){if(v)return;const N=g[g.length-1];let k;if(N&&(k=N.tag,S=N.innerText!==void 0?N.innerText:S),e.disallowedTagsMode==="completelyDiscard"&&!a(k))S="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(k==="script"||k==="style"))n+=S;else{const j=E(S,!1);e.textFilter&&!A?n+=e.textFilter(j,k):A||(n+=j)}if(g.length){const j=g[g.length-1];j.text+=S}},onclosetag:function(S,N){if(v)if(x--,!x)v=!1;else return;const k=g.pop();if(!k)return;if(k.tag!==S){g.push(k);return}v=e.enforceHtmlBoundary?S==="html":!1,h--;const j=b[h];if(j){if(delete b[h],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){k.updateParentNodeText();return}i=n,n=""}if(y[h]&&(S=y[h],delete y[h]),e.exclusiveFilter&&e.exclusiveFilter(k)){n=n.substr(0,k.tagPosition);return}if(k.updateParentNodeMediaChildren(),k.updateParentNodeText(),e.selfClosing.indexOf(S)!==-1||N&&!a(S)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){j&&(n=i,i="");return}n+="",j&&(n=i+E(n),i=""),A=!1}},e.parser);return R.write(t),R.end(),n;function M(){n="",h=0,g=[],b={},y={},v=!1,x=0}function E(S,N){return typeof S!="string"&&(S=S+""),e.parser.decodeEntities&&(S=S.replace(/&/g,"&").replace(//g,">"),N&&(S=S.replace(/"/g,"""))),S=S.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(//g,">"),N&&(S=S.replace(/"/g,""")),S}function T(S,N){for(N=N.replace(/[\x00-\x20]+/g,"");;){const B=N.indexOf("",B+4);if(q===-1)break;N=N.substring(0,B)+N.substring(q+3)}const k=N.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!k)return N.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const j=k[1].toLowerCase();return ut(e.allowedSchemesByTag,S)?e.allowedSchemesByTag[S].indexOf(j)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(j)===-1}function _(S){if(S=S.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),S.startsWith("relative:"))throw new Error("relative: exploit attempt");let N="relative://relative-site";for(let B=0;B<100;B++)N+=`/${B}`;const k=new URL(S,N);return{isRelativeUrl:k&&k.hostname==="relative-site"&&k.protocol==="relative:",url:k}}function P(S,N){if(!N)return S;const k=S.nodes[0];let j;return N[k.selector]&&N["*"]?j=Od(N[k.selector],N["*"]):j=N[k.selector]||N["*"],j&&(S.nodes[0].nodes=k.nodes.reduce(L(j),[])),S}function O(S){return S.nodes[0].nodes.reduce(function(N,k){return N.push(`${k.prop}:${k.value}${k.important?" !important":""}`),N},[]).join(";")}function L(S){return function(N,k){return ut(S,k.prop)&&S[k.prop].some(function(B){return B.test(k.value)})&&N.push(k),N}}function C(S,N,k){return N?(S=S.split(/\s+/),S.filter(function(j){return N.indexOf(j)!==-1||k.some(function(B){return B.test(j)})}).join(" ")):S}}const $T={decodeEntities:!0};En.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0};En.simpleTransform=function(t,e,r){return r=r===void 0?!0:r,e=e||{},function(n,i){let s;if(r)for(s in e)i[s]=e[s];else i=e;return{tagName:t,attribs:i}}};const Lt=Ef(VT);var HT="Expected a function",_d=NaN,UT="[object Symbol]",WT=/^\s+|\s+$/g,GT=/^[-+]0x[0-9a-f]+$/i,YT=/^0b[01]+$/i,XT=/^0o[0-7]+$/i,KT=parseInt,QT=typeof W=="object"&&W&&W.Object===Object&&W,ZT=typeof self=="object"&&self&&self.Object===Object&&self,JT=QT||ZT||Function("return this")(),e3=Object.prototype,t3=e3.toString,r3=Math.max,n3=Math.min,aa=function(){return JT.Date.now()};function i3(t,e,r){var n,i,s,a,o,l,u=0,d=!1,f=!1,c=!0;if(typeof t!="function")throw new TypeError(HT);e=jd(e)||0,Co(r)&&(d=!!r.leading,f="maxWait"in r,s=f?r3(jd(r.maxWait)||0,e):s,c="trailing"in r?!!r.trailing:c);function p(R){var M=n,E=i;return n=i=void 0,u=R,a=t.apply(E,M),a}function m(R){return u=R,o=setTimeout(b,e),d?p(R):a}function h(R){var M=R-l,E=R-u,T=e-M;return f?n3(T,s-E):T}function g(R){var M=R-l,E=R-u;return l===void 0||M>=e||M<0||f&&E>=s}function b(){var R=aa();if(g(R))return y(R);o=setTimeout(b,h(R))}function y(R){return o=void 0,c&&n?p(R):(n=i=void 0,a)}function v(){o!==void 0&&clearTimeout(o),u=0,n=l=i=o=void 0}function x(){return o===void 0?a:y(aa())}function A(){var R=aa(),M=g(R);if(n=arguments,i=this,l=R,M){if(o===void 0)return m(l);if(f)return o=setTimeout(b,e),p(l)}return o===void 0&&(o=setTimeout(b,e)),a}return A.cancel=v,A.flush=x,A}function Co(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function s3(t){return!!t&&typeof t=="object"}function a3(t){return typeof t=="symbol"||s3(t)&&t3.call(t)==UT}function jd(t){if(typeof t=="number")return t;if(a3(t))return _d;if(Co(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Co(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(WT,"");var r=YT.test(t);return r||XT.test(t)?KT(t.slice(2),r?2:8):GT.test(t)?_d:+t}var o3=i3;const Nd=Ef(o3);var Gl=typeof window<"u"?I.useLayoutEffect:I.useEffect;function l3(t,e,r,n){const i=I.useRef(e);Gl(()=>{i.current=e},[e]),I.useEffect(()=>{const s=window;if(!(s&&s.addEventListener))return;const a=o=>{i.current(o)};return s.addEventListener(t,a,n),()=>{s.removeEventListener(t,a,n)}},[t,r,n])}var u3=typeof window>"u";function oa(t,{defaultValue:e=!1,initializeWithValue:r=!0}={}){const n=o=>u3?e:window.matchMedia(o).matches,[i,s]=I.useState(()=>r?n(t):e);function a(){s(n(t))}return Gl(()=>{const o=window.matchMedia(t);return a(),o.addListener?o.addListener(a):o.addEventListener("change",a),()=>{o.removeListener?o.removeListener(a):o.removeEventListener("change",a)}},[t]),i}function c3(t){const e=I.useRef(t);e.current=t,I.useEffect(()=>()=>{e.current()},[])}function Bn(t,e=500,r){const n=I.useRef();c3(()=>{n.current&&n.current.cancel()});const i=I.useMemo(()=>{const s=Nd(t,e,r),a=(...o)=>s(...o);return a.cancel=()=>{s.cancel()},a.isPending=()=>!!n.current,a.flush=()=>s.flush(),a},[t,e,r]);return I.useEffect(()=>{n.current=Nd(t,e,r)},[t,e,r]),i}function d3(t,e,r){const n=(u,d)=>u===d,i=t instanceof Function?t():t,[s,a]=I.useState(i),o=I.useRef(i),l=Bn(a,e,r);return n(o.current,i)||(l(i),o.current=i),[s,l]}var f3=typeof window>"u";function p3(t={}){let{initializeWithValue:e=!0}=t;f3&&(e=!1);const[r,n]=I.useState(()=>e?{width:window.innerWidth,height:window.innerHeight}:{width:void 0,height:void 0}),i=Bn(n,t.debounceDelay);function s(){(t.debounceDelay?i:n)({width:window.innerWidth,height:window.innerHeight})}return l3("resize",s),Gl(()=>{s()},[]),r}const h3=()=>{const t=oa("(min-width: 640px)",{initializeWithValue:!0}),e=oa("(min-width: 768px)",{initializeWithValue:!0}),r=oa("(min-width: 1024px)",{initializeWithValue:!0});return{isSmall:t,isMedium:e,isLarge:r}};function C0(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;etypeof t=="boolean"?"".concat(t):t===0?"0":t,Dd=m3,st=(t,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return Dd(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:s}=e,a=Object.keys(i).map(u=>{const d=r==null?void 0:r[u],f=s==null?void 0:s[u];if(d===null)return null;const c=Rd(d)||Rd(f);return i[u][c]}),o=r&&Object.entries(r).reduce((u,d)=>{let[f,c]=d;return c===void 0||(u[f]=c),u},{}),l=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((u,d)=>{let{class:f,className:c,...p}=d;return Object.entries(p).every(m=>{let[h,g]=m;return Array.isArray(g)?g.includes({...s,...o}[h]):{...s,...o}[h]===g})?[...u,f,c]:u},[]);return Dd(t,a,l,r==null?void 0:r.class,r==null?void 0:r.className)},Yl="-",g3=t=>{const e=y3(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:a=>{const o=a.split(Yl);return o[0]===""&&o.length!==1&&o.shift(),P0(o,e)||b3(a)},getConflictingClassGroupIds:(a,o)=>{const l=r[a]||[];return o&&n[a]?[...l,...n[a]]:l}}},P0=(t,e)=>{var a;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),i=n?P0(t.slice(1),n):void 0;if(i)return i;if(e.validators.length===0)return;const s=t.join(Yl);return(a=e.validators.find(({validator:o})=>o(s)))==null?void 0:a.classGroupId},Fd=/^\[(.+)\]$/,b3=t=>{if(Fd.test(t)){const e=Fd.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},y3=t=>{const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return w3(Object.entries(t.classGroups),r).forEach(([s,a])=>{Po(a,n,s,e)}),n},Po=(t,e,r,n)=>{t.forEach(i=>{if(typeof i=="string"){const s=i===""?e:Bd(e,i);s.classGroupId=r;return}if(typeof i=="function"){if(v3(i)){Po(i(n),e,r,n);return}e.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([s,a])=>{Po(a,Bd(e,s),r,n)})})},Bd=(t,e)=>{let r=t;return e.split(Yl).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},v3=t=>t.isThemeGetter,w3=(t,e)=>e?t.map(([r,n])=>{const i=n.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,o])=>[e+a,o])):s);return[r,i]}):t,x3=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const i=(s,a)=>{r.set(s,a),e++,e>t&&(e=0,n=r,r=new Map)};return{get(s){let a=r.get(s);if(a!==void 0)return a;if((a=n.get(s))!==void 0)return i(s,a),a},set(s,a){r.has(s)?r.set(s,a):i(s,a)}}},A0="!",S3=t=>{const{separator:e,experimentalParseClassName:r}=t,n=e.length===1,i=e[0],s=e.length,a=o=>{const l=[];let u=0,d=0,f;for(let g=0;gd?f-d:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:h}};return r?o=>r({className:o,parseClassName:a}):a},T3=t=>{if(t.length<=1)return t;const e=[];let r=[];return t.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e},E3=t=>({cache:x3(t.cacheSize),parseClassName:S3(t),...g3(t)}),C3=/\s+/,P3=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=e,s=[],a=t.trim().split(C3);let o="";for(let l=a.length-1;l>=0;l-=1){const u=a[l],{modifiers:d,hasImportantModifier:f,baseClassName:c,maybePostfixModifierPosition:p}=r(u);let m=!!p,h=n(m?c.substring(0,p):c);if(!h){if(!m){o=u+(o.length>0?" "+o:o);continue}if(h=n(c),!h){o=u+(o.length>0?" "+o:o);continue}m=!1}const g=T3(d).join(":"),b=f?g+A0:g,y=b+h;if(s.includes(y))continue;s.push(y);const v=i(h,m);for(let x=0;x0?" "+o:o)}return o};function A3(){let t=0,e,r,n="";for(;t{if(typeof t=="string")return t;let e,r="";for(let n=0;nf(d),t());return r=E3(u),n=r.cache.get,i=r.cache.set,s=o,o(l)}function o(l){const u=n(l);if(u)return u;const d=P3(l,r);return i(l,d),d}return function(){return s(A3.apply(null,arguments))}}const le=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},k0=/^\[(?:([a-z-]+):)?(.+)\]$/i,k3=/^\d+\/\d+$/,I3=new Set(["px","full","screen"]),O3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,L3=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_3=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,j3=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,N3=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,lt=t=>yr(t)||I3.has(t)||k3.test(t),vt=t=>Dr(t,"length",$3),yr=t=>!!t&&!Number.isNaN(Number(t)),la=t=>Dr(t,"number",yr),Wr=t=>!!t&&Number.isInteger(Number(t)),R3=t=>t.endsWith("%")&&yr(t.slice(0,-1)),X=t=>k0.test(t),wt=t=>O3.test(t),D3=new Set(["length","size","percentage"]),F3=t=>Dr(t,D3,I0),B3=t=>Dr(t,"position",I0),z3=new Set(["image","url"]),V3=t=>Dr(t,z3,U3),q3=t=>Dr(t,"",H3),Gr=()=>!0,Dr=(t,e,r)=>{const n=k0.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},$3=t=>L3.test(t)&&!_3.test(t),I0=()=>!1,H3=t=>j3.test(t),U3=t=>N3.test(t),W3=()=>{const t=le("colors"),e=le("spacing"),r=le("blur"),n=le("brightness"),i=le("borderColor"),s=le("borderRadius"),a=le("borderSpacing"),o=le("borderWidth"),l=le("contrast"),u=le("grayscale"),d=le("hueRotate"),f=le("invert"),c=le("gap"),p=le("gradientColorStops"),m=le("gradientColorStopPositions"),h=le("inset"),g=le("margin"),b=le("opacity"),y=le("padding"),v=le("saturate"),x=le("scale"),A=le("sepia"),R=le("skew"),M=le("space"),E=le("translate"),T=()=>["auto","contain","none"],_=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto",X,e],O=()=>[X,e],L=()=>["",lt,vt],C=()=>["auto",yr,X],S=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],N=()=>["solid","dashed","dotted","double","none"],k=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",X],q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>[yr,X];return{cacheSize:500,separator:":",theme:{colors:[Gr],spacing:[lt,vt],blur:["none","",wt,X],brightness:F(),borderColor:[t],borderRadius:["none","","full",wt,X],borderSpacing:O(),borderWidth:L(),contrast:F(),grayscale:B(),hueRotate:F(),invert:B(),gap:O(),gradientColorStops:[t],gradientColorStopPositions:[R3,vt],inset:P(),margin:P(),opacity:F(),padding:O(),saturate:F(),scale:F(),sepia:B(),skew:F(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",X]}],container:["container"],columns:[{columns:[wt]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...S(),X]}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Wr,X]}],basis:[{basis:P()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",X]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",Wr,X]}],"grid-cols":[{"grid-cols":[Gr]}],"col-start-end":[{col:["auto",{span:["full",Wr,X]},X]}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":[Gr]}],"row-start-end":[{row:["auto",{span:[Wr,X]},X]}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",X]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",X]}],gap:[{gap:[c]}],"gap-x":[{"gap-x":[c]}],"gap-y":[{"gap-y":[c]}],"justify-content":[{justify:["normal",...j()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...j(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...j(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[M]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[M]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",X,e]}],"min-w":[{"min-w":[X,e,"min","max","fit"]}],"max-w":[{"max-w":[X,e,"none","full","min","max","fit","prose",{screen:[wt]},wt]}],h:[{h:[X,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[X,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[X,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[X,e,"auto","min","max","fit"]}],"font-size":[{text:["base",wt,vt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",la]}],"font-family":[{font:[Gr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",X]}],"line-clamp":[{"line-clamp":["none",yr,la]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",lt,X]}],"list-image":[{"list-image":["none",X]}],"list-style-type":[{list:["none","disc","decimal",X]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...N(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",lt,vt]}],"underline-offset":[{"underline-offset":["auto",lt,X]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",X]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",X]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...S(),B3]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",F3]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},V3]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...N(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:N()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...N()]}],"outline-offset":[{"outline-offset":[lt,X]}],"outline-w":[{outline:[lt,vt]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[lt,vt]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",wt,q3]}],"shadow-color":[{shadow:[Gr]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...k(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":k()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",wt,X]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[v]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",X]}],duration:[{duration:F()}],ease:[{ease:["linear","in","out","in-out",X]}],delay:[{delay:F()}],animate:[{animate:["none","spin","ping","pulse","bounce",X]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[Wr,X]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",X]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",X]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",X]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[lt,vt,la]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},se=M3(W3),zd=st("button",{variants:{colour:{chartreuse:["before:bg-char","after:bg-char","text-blue-d"],"ink blue":["before:bg-blue-d","after:bg-blue-d","text-white"],"mid blue":["before:bg-blue-m","after:bg-blue-m","text-white"],"light blue":["before:bg-blue-l","after:bg-blue-l","text-blue-d"],green:["before:bg-green","after:bg-green","text-blue-d"],purple:["before:bg-purple","after:bg-purple","text-blue-d"],pink:["before:bg-pink","after:bg-pink","text-blue-d"],orange:["before:bg-orange","after:bg-orange","text-blue-d"]}},defaultVariants:{colour:"pink"}}),Ss=({colour:t,...e})=>{var r,n,i,s,a,o,l,u,d;return w.jsx("div",{className:[se(zd({colour:t}),"relative w-full text-center sm:w-fit","before:absolute before:left-0 before:top-1/2 before:z-[1] before:aspect-square before:h-3 before:-translate-y-1/2 before:transition-all","after:absolute after:right-0 after:top-0 after:z-[0] after:h-full after:w-[calc(100%-15px)] after:transition-all","focus-within:after:w-[calc(100%-30px)] hover:after:w-[calc(100%-30px)]")].join(" "),children:w.jsx("a",{href:((r=e==null?void 0:e.btn)==null?void 0:r.externalLink)===null?(i=(n=e==null?void 0:e.btn)==null?void 0:n.entry)==null?void 0:i.sys.uri:(s=e==null?void 0:e.btn)==null?void 0:s.externalLink,...((a=e==null?void 0:e.btn)==null?void 0:a.ariaLabel)!==""?{"aria-label":(o=e==null?void 0:e.btn)==null?void 0:o.ariaLabel}:{},className:[se(zd({colour:t}),"relative z-[1] block h-full px-6 py-4 text-tag font-bold uppercase leading-[1.5] no-underline outline-none transition-all md:text-base","before:absolute before:left-0 before:top-0 before:h-[calc(100%/2-0.35rem)] before:w-5 before:transition-all","after:absolute after:bottom-0 after:left-0 after:h-[calc(100%/2-0.35rem)] after:w-5 after:transition-all","hover:pl-[40px] hover:text-current hover:before:left-[15px] hover:after:left-[15px]","focus-within:pl-[40px] focus-within:before:left-[15px] focus-within:after:left-[15px]")].join(" "),...(l=e==null?void 0:e.btn)!=null&&l.target?{target:"_blank"}:{},...(u=e==null?void 0:e.btn)!=null&&u.target?{rel:"noreferrer nofollow"}:{},children:(d=e==null?void 0:e.btn)==null?void 0:d.label})})},G3=({data:t})=>{const[e,r]=I.useState(1e3),[n,i]=I.useState(1.5),s=I.useRef(null),a=h3(),o=()=>{var f;s.current&&r((f=s.current)==null?void 0:f.clientWidth)};I.useEffect(()=>(o(),window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}),[]),I.useEffect(()=>{const f=setTimeout(()=>{i(0)},1500);return()=>{clearTimeout(f)}},[]);const l={hidden:{opacity:0,x:"-10px"},show:{opacity:1,x:0,transition:{type:"just",duration:.8,delay:1.4}}},u={small:{borderLeftWidth:"5px",borderRightWidth:"5px"},big:{borderLeftWidth:"10px",borderRightWidth:"10px",transition:{type:"just",duration:.6,delay:1.5}}},d={width:e>549?e:"auto",transition:{type:a.isSmall?"spring":"just",damping:6,stiffness:20,duration:.6,delay:n}};return w.jsxs(w.Fragment,{children:[(t==null?void 0:t.tag)&&w.jsx(je.p,{className:"tag text-white",variants:l,initial:"hidden",animate:"show",children:t==null?void 0:t.tag}),w.jsx(je.div,{className:"mb-lg border-char lg:mx-auto",variants:u,initial:"small",animate:"big",children:w.jsx(je.div,{className:"flex max-w-full items-center justify-center overflow-hidden",initial:{width:"0"},animate:d,children:w.jsx("div",{className:"text-balanced px-[50px] py-[15px] text-center sm:whitespace-nowrap",ref:s,children:w.jsxs("h1",{className:"mb-0",children:[w.jsx("span",{dangerouslySetInnerHTML:{__html:Lt(t==null?void 0:t.title,{allowedTags:["strong","em","sup"]})}}),(t==null?void 0:t.subTitle)&&w.jsx("span",{className:"block",children:t==null?void 0:t.subTitle})]})})})}),w.jsx(je.div,{className:"flex flex-col gap-6 sm:flex-row sm:flex-wrap sm:justify-center sm:gap-md",variants:l,initial:"hidden",animate:"show",children:t==null?void 0:t.uiPrimaryButtons.map((f,c)=>w.jsx(Ss,{btn:f,colour:f==null?void 0:f.colours.toLowerCase()},c))}),(t==null?void 0:t.subtext)&&w.jsx(je.div,{className:"mt-8 sm:mt-14",variants:l,initial:"hidden",animate:"show",children:w.jsx("p",{children:t==null?void 0:t.subtext})})]})},Y3=({sectData:t})=>{var n,i,s,a,o,l;const e=I.useRef(null),r=()=>{var u,d,f;return(u=e.current)!=null&&u.paused?(d=e.current)==null?void 0:d.play():(f=e.current)==null?void 0:f.pause()};return w.jsxs("header",{className:"relative flex min-h-screen items-center overflow-hidden",children:[w.jsxs("div",{className:"absolute -z-[1] h-full w-full object-cover",children:[w.jsx("div",{className:"absolute h-full w-full bg-black/30 object-cover"}),(t==null?void 0:t.imageDesktop)&&(t==null?void 0:t.video)===null&&w.jsxs("picture",{children:[w.jsx("source",{media:"(max-width: 578px)",srcSet:""+((n=t==null?void 0:t.imageMobile)==null?void 0:n.asset.sys.uri)+"?f=webp&q=40",type:"image/webp"}),w.jsx("source",{srcSet:""+((i=t==null?void 0:t.imageDesktop)==null?void 0:i.asset.sys.uri)+"?f=webp&q=40",type:"image/webp"}),w.jsx("img",{className:"h-full w-full object-cover",loading:"eager",width:1440,height:810,src:""+((s=t==null?void 0:t.imageDesktop)==null?void 0:s.asset.sys.uri)+"?f=webp&q=40",alt:(a=t==null?void 0:t.imageDesktop)==null?void 0:a.altText})]}),(t==null?void 0:t.video)&&w.jsxs("video",{ref:e,className:"aspect-video h-full w-full object-cover",preload:"metadata",muted:!0,autoPlay:!0,loop:!0,playsInline:!0,poster:""+((o=t==null?void 0:t.imageDesktop)==null?void 0:o.asset.sys.uri)+"?f=webp&q=40",width:1440,height:810,children:[w.jsx("source",{src:""+((l=t==null?void 0:t.video)==null?void 0:l.sys.uri),type:"video/mp4"}),w.jsx("p",{className:"sr-only",children:t==null?void 0:t.videoDescription})]})]}),(t==null?void 0:t.video)&&w.jsx("button",{type:"button",className:"absolute bottom-16 right-5 z-[3] flex aspect-square w-auto scale-105 items-center justify-center lg:bottom-28 lg:right-8",onClick:r,children:w.jsx(my,{fill:"white",secondaryfill:void 0,title:""})}),w.jsx("div",{className:"mx-auto flex min-h-[800px] flex-col items-center justify-center py-32 text-white sm:py-32",children:w.jsx(G3,{data:t})})]})};function We(t){const e=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&e==="[object Date]"?new t.constructor(+t):typeof t=="number"||e==="[object Number]"||typeof t=="string"||e==="[object String]"?new Date(t):new Date(NaN)}function Jt(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}const O0=6048e5,X3=864e5;let K3={};function Ts(){return K3}function Cn(t,e){var o,l,u,d;const r=Ts(),n=(e==null?void 0:e.weekStartsOn)??((l=(o=e==null?void 0:e.locale)==null?void 0:o.options)==null?void 0:l.weekStartsOn)??r.weekStartsOn??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,i=We(t),s=i.getDay(),a=(s=i.getTime()?r+1:e.getTime()>=a.getTime()?r:r-1}function Vd(t){const e=We(t);return e.setHours(0,0,0,0),e}function qd(t){const e=We(t),r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return r.setUTCFullYear(e.getFullYear()),+t-+r}function Q3(t,e){const r=Vd(t),n=Vd(e),i=+r-qd(r),s=+n-qd(n);return Math.round((i-s)/X3)}function Z3(t){const e=L0(t),r=Jt(t,0);return r.setFullYear(e,0,4),r.setHours(0,0,0,0),Ki(r)}function J3(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function eE(t){if(!J3(t)&&typeof t!="number")return!1;const e=We(t);return!isNaN(Number(e))}function tE(t){const e=We(t),r=Jt(t,0);return r.setFullYear(e.getFullYear(),0,1),r.setHours(0,0,0,0),r}const rE={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},nE=(t,e,r)=>{let n;const i=rE[t];return typeof i=="string"?n=i:e===1?n=i.one:n=i.other.replace("{{count}}",e.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function ua(t){return(e={})=>{const r=e.width?String(e.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}const iE={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},sE={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},aE={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},oE={date:ua({formats:iE,defaultWidth:"full"}),time:ua({formats:sE,defaultWidth:"full"}),dateTime:ua({formats:aE,defaultWidth:"full"})},lE={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},uE=(t,e,r,n)=>lE[t];function Yr(t){return(e,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let i;if(n==="formatting"&&t.formattingValues){const a=t.defaultFormattingWidth||t.defaultWidth,o=r!=null&&r.width?String(r.width):a;i=t.formattingValues[o]||t.formattingValues[a]}else{const a=t.defaultWidth,o=r!=null&&r.width?String(r.width):t.defaultWidth;i=t.values[o]||t.values[a]}const s=t.argumentCallback?t.argumentCallback(e):e;return i[s]}}const cE={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},dE={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},fE={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},pE={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},hE={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},mE={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},gE=(t,e)=>{const r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},bE={ordinalNumber:gE,era:Yr({values:cE,defaultWidth:"wide"}),quarter:Yr({values:dE,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Yr({values:fE,defaultWidth:"wide"}),day:Yr({values:pE,defaultWidth:"wide"}),dayPeriod:Yr({values:hE,defaultWidth:"wide",formattingValues:mE,defaultFormattingWidth:"wide"})};function Xr(t){return(e,r={})=>{const n=r.width,i=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],s=e.match(i);if(!s)return null;const a=s[0],o=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(o)?vE(o,f=>f.test(a)):yE(o,f=>f.test(a));let u;u=t.valueCallback?t.valueCallback(l):l,u=r.valueCallback?r.valueCallback(u):u;const d=e.slice(a.length);return{value:u,rest:d}}}function yE(t,e){for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return r}function vE(t,e){for(let r=0;r{const n=e.match(t.matchPattern);if(!n)return null;const i=n[0],s=e.match(t.parsePattern);if(!s)return null;let a=t.valueCallback?t.valueCallback(s[0]):s[0];a=r.valueCallback?r.valueCallback(a):a;const o=e.slice(i.length);return{value:a,rest:o}}}const xE=/^(\d+)(th|st|nd|rd)?/i,SE=/\d+/i,TE={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},EE={any:[/^b/i,/^(a|c)/i]},CE={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},PE={any:[/1/i,/2/i,/3/i,/4/i]},AE={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ME={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},kE={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},IE={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},OE={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},LE={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},_E={ordinalNumber:wE({matchPattern:xE,parsePattern:SE,valueCallback:t=>parseInt(t,10)}),era:Xr({matchPatterns:TE,defaultMatchWidth:"wide",parsePatterns:EE,defaultParseWidth:"any"}),quarter:Xr({matchPatterns:CE,defaultMatchWidth:"wide",parsePatterns:PE,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Xr({matchPatterns:AE,defaultMatchWidth:"wide",parsePatterns:ME,defaultParseWidth:"any"}),day:Xr({matchPatterns:kE,defaultMatchWidth:"wide",parsePatterns:IE,defaultParseWidth:"any"}),dayPeriod:Xr({matchPatterns:OE,defaultMatchWidth:"any",parsePatterns:LE,defaultParseWidth:"any"})},jE={code:"en-US",formatDistance:nE,formatLong:oE,formatRelative:uE,localize:bE,match:_E,options:{weekStartsOn:0,firstWeekContainsDate:1}};function NE(t){const e=We(t);return Q3(e,tE(e))+1}function RE(t){const e=We(t),r=+Ki(e)-+Z3(e);return Math.round(r/O0)+1}function _0(t,e){var d,f,c,p;const r=We(t),n=r.getFullYear(),i=Ts(),s=(e==null?void 0:e.firstWeekContainsDate)??((f=(d=e==null?void 0:e.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??i.firstWeekContainsDate??((p=(c=i.locale)==null?void 0:c.options)==null?void 0:p.firstWeekContainsDate)??1,a=Jt(t,0);a.setFullYear(n+1,0,s),a.setHours(0,0,0,0);const o=Cn(a,e),l=Jt(t,0);l.setFullYear(n,0,s),l.setHours(0,0,0,0);const u=Cn(l,e);return r.getTime()>=o.getTime()?n+1:r.getTime()>=u.getTime()?n:n-1}function DE(t,e){var o,l,u,d;const r=Ts(),n=(e==null?void 0:e.firstWeekContainsDate)??((l=(o=e==null?void 0:e.locale)==null?void 0:o.options)==null?void 0:l.firstWeekContainsDate)??r.firstWeekContainsDate??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,i=_0(t,e),s=Jt(t,0);return s.setFullYear(i,0,n),s.setHours(0,0,0,0),Cn(s,e)}function FE(t,e){const r=We(t),n=+Cn(r,e)-+DE(r,e);return Math.round(n/O0)+1}function te(t,e){const r=t<0?"-":"",n=Math.abs(t).toString().padStart(e,"0");return r+n}const xt={y(t,e){const r=t.getFullYear(),n=r>0?r:1-r;return te(e==="yy"?n%100:n,e.length)},M(t,e){const r=t.getMonth();return e==="M"?String(r+1):te(r+1,2)},d(t,e){return te(t.getDate(),e.length)},a(t,e){const r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(t,e){return te(t.getHours()%12||12,e.length)},H(t,e){return te(t.getHours(),e.length)},m(t,e){return te(t.getMinutes(),e.length)},s(t,e){return te(t.getSeconds(),e.length)},S(t,e){const r=e.length,n=t.getMilliseconds(),i=Math.trunc(n*Math.pow(10,r-3));return te(i,e.length)}},lr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},$d={G:function(t,e,r){const n=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(t,e,r){if(e==="yo"){const n=t.getFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return xt.y(t,e)},Y:function(t,e,r,n){const i=_0(t,n),s=i>0?i:1-i;if(e==="YY"){const a=s%100;return te(a,2)}return e==="Yo"?r.ordinalNumber(s,{unit:"year"}):te(s,e.length)},R:function(t,e){const r=L0(t);return te(r,e.length)},u:function(t,e){const r=t.getFullYear();return te(r,e.length)},Q:function(t,e,r){const n=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return te(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,r){const n=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return te(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,r){const n=t.getMonth();switch(e){case"M":case"MM":return xt.M(t,e);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(t,e,r){const n=t.getMonth();switch(e){case"L":return String(n+1);case"LL":return te(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,r,n){const i=FE(t,n);return e==="wo"?r.ordinalNumber(i,{unit:"week"}):te(i,e.length)},I:function(t,e,r){const n=RE(t);return e==="Io"?r.ordinalNumber(n,{unit:"week"}):te(n,e.length)},d:function(t,e,r){return e==="do"?r.ordinalNumber(t.getDate(),{unit:"date"}):xt.d(t,e)},D:function(t,e,r){const n=NE(t);return e==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):te(n,e.length)},E:function(t,e,r){const n=t.getDay();switch(e){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,r,n){const i=t.getDay(),s=(i-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return te(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,r,n){const i=t.getDay(),s=(i-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return te(s,e.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,r){const n=t.getDay(),i=n===0?7:n;switch(e){case"i":return String(i);case"ii":return te(i,e.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,r){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,r){const n=t.getHours();let i;switch(n===12?i=lr.noon:n===0?i=lr.midnight:i=n/12>=1?"pm":"am",e){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,r){const n=t.getHours();let i;switch(n>=17?i=lr.evening:n>=12?i=lr.afternoon:n>=4?i=lr.morning:i=lr.night,e){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,r){if(e==="ho"){let n=t.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return xt.h(t,e)},H:function(t,e,r){return e==="Ho"?r.ordinalNumber(t.getHours(),{unit:"hour"}):xt.H(t,e)},K:function(t,e,r){const n=t.getHours()%12;return e==="Ko"?r.ordinalNumber(n,{unit:"hour"}):te(n,e.length)},k:function(t,e,r){let n=t.getHours();return n===0&&(n=24),e==="ko"?r.ordinalNumber(n,{unit:"hour"}):te(n,e.length)},m:function(t,e,r){return e==="mo"?r.ordinalNumber(t.getMinutes(),{unit:"minute"}):xt.m(t,e)},s:function(t,e,r){return e==="so"?r.ordinalNumber(t.getSeconds(),{unit:"second"}):xt.s(t,e)},S:function(t,e){return xt.S(t,e)},X:function(t,e,r){const n=t.getTimezoneOffset();if(n===0)return"Z";switch(e){case"X":return Ud(n);case"XXXX":case"XX":return Ht(n);case"XXXXX":case"XXX":default:return Ht(n,":")}},x:function(t,e,r){const n=t.getTimezoneOffset();switch(e){case"x":return Ud(n);case"xxxx":case"xx":return Ht(n);case"xxxxx":case"xxx":default:return Ht(n,":")}},O:function(t,e,r){const n=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Hd(n,":");case"OOOO":default:return"GMT"+Ht(n,":")}},z:function(t,e,r){const n=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Hd(n,":");case"zzzz":default:return"GMT"+Ht(n,":")}},t:function(t,e,r){const n=Math.trunc(t.getTime()/1e3);return te(n,e.length)},T:function(t,e,r){const n=t.getTime();return te(n,e.length)}};function Hd(t,e=""){const r=t>0?"-":"+",n=Math.abs(t),i=Math.trunc(n/60),s=n%60;return s===0?r+String(i):r+String(i)+e+te(s,2)}function Ud(t,e){return t%60===0?(t>0?"-":"+")+te(Math.abs(t)/60,2):Ht(t,e)}function Ht(t,e=""){const r=t>0?"-":"+",n=Math.abs(t),i=te(Math.trunc(n/60),2),s=te(n%60,2);return r+i+e+s}const Wd=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},j0=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},BE=(t,e)=>{const r=t.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return Wd(t,e);let s;switch(n){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;case"PPPP":default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",Wd(n,e)).replace("{{time}}",j0(i,e))},zE={p:j0,P:BE},VE=/^D+$/,qE=/^Y+$/,$E=["D","DD","YY","YYYY"];function HE(t){return VE.test(t)}function UE(t){return qE.test(t)}function WE(t,e,r){const n=GE(t,e,r);if(console.warn(n),$E.includes(t))throw new RangeError(n)}function GE(t,e,r){const n=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const YE=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,XE=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,KE=/^'([^]*?)'?$/,QE=/''/g,ZE=/[a-zA-Z]/;function Pn(t,e,r){var d,f,c,p;const n=Ts(),i=n.locale??jE,s=n.firstWeekContainsDate??((f=(d=n.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??1,a=n.weekStartsOn??((p=(c=n.locale)==null?void 0:c.options)==null?void 0:p.weekStartsOn)??0,o=We(t);if(!eE(o))throw new RangeError("Invalid time value");let l=e.match(XE).map(m=>{const h=m[0];if(h==="p"||h==="P"){const g=zE[h];return g(m,i.formatLong)}return m}).join("").match(YE).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const h=m[0];if(h==="'")return{isToken:!1,value:JE(m)};if($d[h])return{isToken:!0,value:m};if(h.match(ZE))throw new RangeError("Format string contains an unescaped latin alphabet character `"+h+"`");return{isToken:!1,value:m}});i.localize.preprocessor&&(l=i.localize.preprocessor(o,l));const u={firstWeekContainsDate:s,weekStartsOn:a,locale:i};return l.map(m=>{if(!m.isToken)return m.value;const h=m.value;(UE(h)||HE(h))&&WE(h,e,String(t));const g=$d[h[0]];return g(o,h,i.localize,u)}).join("")}function JE(t){const e=t.match(KE);return e?e[1].replace(QE,"'"):t}const N0=["seoStandardFields.title","sys.uri","pageUrl","tags","date"],e6=["entryTitle","link","dateTime"],t6=async()=>{const t=new Pe(D.equalTo("sys.versionStatus","published"),D.equalTo("seoStandardFields.includeInSearch","true"),D.equalTo("sys.contentTypeId","newsArticles"),D.and(D.not(D.equalTo("tags[]","0/1/380/1039"))));t.pageSize=3,t.fields=N0,t.orderBy=jr.desc("date");try{return(await Nt.entries.search(t)).items}catch(e){console.log(e)}},r6=async()=>{const t=new Pe(D.equalTo("sys.versionStatus","published"),D.equalTo("seoStandardFields.includeInSearch","true"),D.equalTo("sys.contentTypeId","newsArticles"),D.and(D.equalTo("tags[]","0/1/380/503")));t.pageSize=3,t.fields=N0,t.orderBy=jr.desc("date");try{return(await Nt.entries.search(t)).items}catch(e){console.log(e)}},n6=async()=>{const t=new Date,e=new Pe(D.equalTo("sys.versionStatus","published"),D.equalTo("sys.contentTypeId","eventsStandard"),D.greaterThanOrEqualTo("dateTime.from",t));e.pageSize=3,e.fields=e6,e.orderBy=jr.asc("dateTime.from");try{return(await Nt.entries.search(e)).items}catch(r){console.log(r)}};function Qi(t){const e=t.fill||"currentColor",r=t.secondaryfill||e,n=t.title||"arrow right";return w.jsxs("svg",{height:"20",width:"20",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:n}),w.jsxs("g",{fill:r,stroke:r,strokeLinecap:"square",strokeLinejoin:"miter",strokeMiterlimit:"10",strokeWidth:"4",children:[w.jsx("line",{fill:"none",stroke:e,strokeLinecap:"butt",x1:"2",x2:"45",y1:"24",y2:"24"}),w.jsx("polyline",{fill:"none",points:"31,10 45,24 31,38 ",stroke:e})]})]})}const gi=st("section",{variants:{background:{white:["bg-white","text-blue-d"],chartreuse:["bg-char","text-blue-d"],"ink blue":["bg-blue-d","text-white"],"mid blue":["bg-blue-m","text-white"],"light blue":["bg-blue-l","text-blue-d"],green:["bg-green","text-blue-d"],purple:["bg-purple","text-blue-d"],pink:["bg-pink","text-blue-d"],orange:["bg-orange","text-blue-d"]},colour:{white:["text-white"],chartreuse:["text-char"],"ink blue":["text-blue-d"],"mid blue":["text-blue-m"],"light blue":["text-blue-l"],green:["text-green"],purple:["text-purple"],pink:["text-pink"],orange:["text-orange"]},line:{white:["bg-white"],chartreuse:["bg-char"],"ink blue":["bg-blue-d"],"mid blue":["bg-blue-m"],"light blue":["bg-blue-l"],green:["bg-green"],purple:["bg-purple"],pink:["bg-pink"],orange:["bg-orange"]},border:{white:["border-white"],chartreuse:["border-char"],"ink blue":["border-blue-d"],"mid blue":["border-blue-m"],"light blue":["border-blue-l"],green:["border-green"],purple:["border-purple"],pink:["border-pink"],orange:["border-orange"]}}}),i6=({background:t,colour:e,line:r,sectData:n})=>{const i=""+(n==null?void 0:n.backgroundOverlay.asset.sys.uri)+"?f=webp&q=60",s=""+(n==null?void 0:n.backgroundImage.asset.sys.uri)+"?f=webp&q=60",a=n==null?void 0:n.title.split(" "),{error:o,data:l,isSuccess:u}=rt({queryKey:["ResearchNews"],queryFn:()=>r6()});return w.jsxs("section",{className:"relative z-[2] -mb-[20px] -mt-[40px] sm:-mb-[50px]","aria-label":"Our "+a[0]+" "+a[1],children:[w.jsx("div",{style:{backgroundImage:`url(${i})`},className:"absolute left-0 h-[80px] min-w-[100vw] -translate-y-[20px] bg-cover bg-no-repeat opacity-50 sm:h-[calc(100%/1.5)] sm:-translate-y-[50px]"}),w.jsx("div",{style:{backgroundImage:`url(${s})`},className:"absolute bottom-[20px] left-0 z-[-1] h-[calc(100%-40px)] min-w-[100vw] bg-cover bg-no-repeat md:bottom-[50px] md:h-[calc(100%-90px)]"}),w.jsx("div",{className:"relative mx-auto flex max-w-[1600px] flex-col pl-5 lg:px-5",children:w.jsxs("div",{className:[se(gi({background:t}),gi({colour:e})),"relative grid max-w-[1340px] grid-cols-[1fr_auto] gap-xs self-end p-[20px] sm:grid-cols-[1fr_2fr_auto] sm:gap-sm sm:p-[50px] sm:pt-[30px] lg:gap-md lg:p-[70px] lg:pt-[50px]","text-blue-m before:absolute before:-left-[100vw] before:-top-[75px] before:hidden before:h-[75px] before:w-[100vw] before:bg-char lg:before:block"].join(" "),children:[w.jsxs("h2",{className:"col-span-2 row-start-1 mb-0 min-w-max font-serif text-h4 font-medium sm:col-span-1 sm:text-dec-50",children:[a[0]," ",w.jsx("em",{children:a[1]})]}),w.jsx("span",{className:[gi({line:r}),"row-start-3 flex h-[3px] grow flex-row items-center gap-xs self-center bg-blue-d sm:col-start-2 sm:row-start-1"].join(" ")}),((n==null?void 0:n.externalLink)!==null||(n==null?void 0:n.link)!==null)&&w.jsxs("a",{href:n==null?void 0:n.externalLink,"aria-label":"See more of our "+a[1],className:"col-start-2 row-start-3 flex min-w-max items-center justify-end gap-1 self-center underline hover:no-underline sm:col-start-3 sm:row-start-1",children:["More research",w.jsx(Qi,{fill:"",secondaryfill:void 0,title:""})]}),w.jsxs("ul",{style:{"--cols":3,"--gap":"50px"},className:"col-span-2 row-start-2 flex flex-col gap-sm sm:col-span-3 sm:flex-row md:gap-[var(--gap)]",children:[o&&w.jsx("li",{children:"An error has occurred: "+o.message}),u&&(l==null?void 0:l.map((d,f)=>{var c;return w.jsxs("li",{className:[se(gi({border:"ink blue"})),"basis-full border-b-[1px] border-solid pb-[20px] last:border-none sm:border-b-0 sm:border-r-[1px] sm:pb-0 sm:pr-[30px] md:basis-[calc((100%/var(--cols))-(var(--gap)/var(--cols)*(var(--cols)-1)))]"].join(" "),children:[w.jsx("p",{className:"tag text-blue-d",children:Pn(d.date,"dd MMM yyyy")}),w.jsx("a",{href:d.sys.uri!==null?d.sys.uri:d.pageUrl,className:"no-underline hover:underline",children:w.jsx("h3",{className:"mb-0 text-h5",children:(c=d==null?void 0:d.seoStandardFields)==null?void 0:c.title})})]},f)}))]})]})})]})},Es=t=>D.or(D.equalTo("entryTitle",t).weight(10),D.startsWith("entryTitle",t).weight(9),D.contains("entryTitle",t).weight(8),D.freeText("entryTitle",t,!0).weight(3),D.contains("searchContent",t).weight(6),D.contains("seoStandardFields.keywords",t).weight(3),D.or(D.contains("seoStandardFields.keywords",t).weight(2),D.freeText("seoStandardFields.description",t,!0).weight(2),D.freeText("seoStandardFields.websiteDescription",t,!0).weight(2))),Cs=["entryTitle","studyLevel.entryTitle","seoStandardFields.title","seoStandardFields.description","seoStandardFields.websiteDescription","seoStandardFields.keywords","seoStandardFields.focusKeyphrase","seoStandardFields.includeInSearch","sys.uri","pageUrl"],Gd=async t=>{const e=new Pe(D.equalTo("sys.versionStatus","published"),D.equalTo("seoStandardFields.includeInSearch","true"),Es(t),D.or(D.equalTo("sys.contentTypeId","coursesUndergraduate"),D.equalTo("sys.contentTypeId","coursesPostgraduateTaught"),D.equalTo("sys.contentTypeId","pgrCourses"),D.equalTo("sys.contentTypeId","cpdCourses"),D.equalTo("sys.contentTypeId","apprenticeships")));e.pageSize=400,e.fields=Cs;try{return await Nt.entries.search(e)}catch(r){console.log(r)}},s6=async t=>{const e=new Pe(D.equalTo("sys.versionStatus","published"),D.equalTo("seoStandardFields.includeInSearch","true"),Es(t),D.or(D.equalTo("sys.contentTypeId","coursesUndergraduate")));e.pageSize=400,e.fields=Cs;try{return await Nt.entries.search(e)}catch(r){console.log(r)}},a6=async t=>{const e=new Pe(D.equalTo("sys.versionStatus","published"),D.equalTo("seoStandardFields.includeInSearch","true"),Es(t),D.or(D.equalTo("sys.contentTypeId","coursesPostgraduateTaught")));e.pageSize=400,e.fields=Cs;try{return await Nt.entries.search(e)}catch(r){console.log(r)}},o6=async t=>{const e=new Pe(D.equalTo("sys.versionStatus","published"),D.equalTo("seoStandardFields.includeInSearch","true"),Es(t),D.or(D.equalTo("sys.contentTypeId","pgrCourses")));e.pageSize=400,e.fields=Cs;try{return await Nt.entries.search(e)}catch(r){console.log(r)}},l6=st("button",{variants:{background:{chartreuse:["bg-char-20","text-blue-d-60","hover:bg-char"],"ink blue":["bg-blue-d-20","text-white-60","hover:bg-blue-d"],"mid blue":["bg-blue-m-20","text-white-60","hover:bg-blue-m"],"light blue":["bg-blue-l-20","text-blue-d-60","hover:bg-blue-l"],green:["bg-green-20","text-blue-d-60","hover:bg-green"],purple:["bg-purple-20","text-blue-d-60","hover:bg-purple"],pink:["bg-pink-20","text-blue-d-60","hover:bg-pink"],orange:["bg-orange-20","text-blue-d-60","hover:bg-orange"]}}}),u6=({background:t,info:e})=>{var r;return w.jsxs("a",{href:e.externalLink===null?(r=e==null?void 0:e.entry)==null?void 0:r.sys.uri:e.externalLink,...(e==null?void 0:e.ariaLabel)!==""?{"aria-label":e==null?void 0:e.ariaLabel}:{},className:[se(l6({background:t}),"flex items-center gap-4 rounded-full px-[30px] py-3 !text-tag font-medium leading-[1.5] text-blue-d no-underline transition-all sm:!text-base")].join(" "),children:[e.label," ",w.jsx(Qi,{fill:"",secondaryfill:void 0,title:""})]})},c6="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3ctitle%3ezoom%3c/title%3e%3cg%20stroke-linecap='square'%20stroke-width='2'%20fill='none'%20stroke='%230e1647'%20stroke-linejoin='miter'%20class='nc-icon-wrapper'%20stroke-miterlimit='10'%3e%3cline%20x1='22'%20y1='22'%20x2='15.656'%20y2='15.656'%20stroke='%230e1647'%3e%3c/line%3e%3ccircle%20cx='10'%20cy='10'%20r='8'%3e%3c/circle%3e%3c/g%3e%3c/svg%3e",d6=st("section",{variants:{background:{white:["bg-white","text-blue-d"],chartreuse:["bg-char","text-blue-d"],"ink blue":["bg-blue-d","text-white"],"mid blue":["bg-blue-m","text-white"],"light blue":["bg-blue-l","text-blue-d"],green:["bg-green","text-blue-d"],purple:["bg-purple","text-blue-d"],pink:["bg-pink","text-blue-d"],orange:["bg-orange","text-blue-d"]}}}),f6=({background:t,sectData:e})=>{var m;const[r,n]=I.useState(""),i=Bn(n,500);let s=null;switch(e==null?void 0:e.dataSource[0].toLowerCase()){case"all courses":s=Gd(r);break;case"ug courses":s=s6(r);break;case"pgt courses":s=a6(r);break;case"pgr courses":s=o6(r);break;default:s=Gd(r);break}const{error:a,data:o,isFetched:l,isSuccess:u,refetch:d}=rt({queryKey:["courses",r],queryFn:()=>s}),f=h=>{var g;i((g=h==null?void 0:h.target)==null?void 0:g.value),d()},c={hidden:{opacity:0,height:0},show:{opacity:1,height:"auto",transition:{staggerChildren:.3}}},p={hidden:{opacity:0},show:{opacity:1}};return w.jsx("section",{className:[se(d6({background:t})),"block-bottom after:bg-blue-d"].join(" "),"aria-label":"Course search",children:w.jsxs("div",{className:"container flex-col gap-[50px] pt-[65px] text-white sm:pt-[115px] lg:pt-[150px]",children:[w.jsxs("div",{className:"sm:[gap-30px] flex flex-col gap-[20px] lg:gap-[50px]",children:[w.jsx("h2",{className:"",children:e==null?void 0:e.searchTitle}),w.jsxs("div",{className:"flex flex-wrap gap-[30px]",children:[w.jsx("input",{name:"courseSearch","aria-label":"Search for a courses",style:{backgroundImage:`url(${c6})`},className:"min-w-[320px] grow-[1] border border-black bg-blue-l-20 bg-[length:30px_auto] bg-[10px_center] bg-no-repeat py-3 pl-12 text-blue-d placeholder:text-blue-d-80",onChange:f,type:"search",placeholder:e==null?void 0:e.searchPlaceholder}),w.jsx(Ss,{btn:e==null?void 0:e.searchButton,colour:"pink"})]}),a&&w.jsx("p",{children:"An error has occurred: "+a.message}),l&&u&&r!==""&&w.jsxs(je.ul,{variants:c,initial:"hidden",animate:"show",className:"mt-3 max-h-96 overflow-auto",children:[o&&r!==""&&((m=o==null?void 0:o.items)==null?void 0:m.map(h=>{var g,b,y,v,x,A;return w.jsxs(je.li,{variants:p,className:"border-b-white/8 max-w-[86ch] border-b py-10",children:[((g=h==null?void 0:h.studyLevel)==null?void 0:g.entryTitle)&&w.jsx("p",{className:"tag text-white",children:(b=h==null?void 0:h.studyLevel)==null?void 0:b.entryTitle}),w.jsx("a",{href:h==null?void 0:h.pageUrl,className:"block text-white no-underline hover:underline",children:w.jsx("h3",{className:"mb-7",children:w.jsx("strong",{children:(y=h==null?void 0:h.seoStandardFields)==null?void 0:y.title})})}),((v=h==null?void 0:h.seoStandardFields)==null?void 0:v.websiteDescription)&&w.jsx("div",{dangerouslySetInnerHTML:{__html:Lt((x=h==null?void 0:h.seoStandardFields)==null?void 0:x.websiteDescription)}})]},(A=h==null?void 0:h.sys)==null?void 0:A.id)})),(o==null?void 0:o.items.length)<=0&&w.jsxs("li",{className:"max-w-[86ch] border-b border-b-white py-5",children:["Your query ",w.jsx("strong",{children:'"'+r+'"'})," returned 0 results, please try a different search term"]})]})]}),w.jsxs("div",{className:"flex flex-col gap-[20px] lg:gap-[50px]",children:[w.jsx("h3",{className:"text-h4 lg:text-h2",children:e==null?void 0:e.secondaryTitle}),w.jsx("div",{className:"flex flex-wrap gap-5 lg:gap-8",children:e==null?void 0:e.pillButtons.map((h,g)=>w.jsx(u6,{info:h,background:h==null?void 0:h.colours.entryTitle.toLowerCase()},g))})]})]})})},Yd=st("section",{variants:{background:{white:["bg-white","text-blue-m"],chartreuse:["bg-char","text-blue-d"],"ink blue":["bg-blue-d","text-white"],"mid blue":["bg-blue-m","text-white"],"light blue":["bg-blue-l","text-blue-d"],green:["bg-green","text-blue-d"],purple:["bg-purple","text-blue-d"],pink:["bg-pink","text-blue-d"],orange:["bg-orange","text-blue-d"]},text:{white:["text-white"],"ink blue":["text-blue-d"],"mid blue":["text-blue-m"]}}}),p6=({background:t,sectData:e})=>{const r=""+(e==null?void 0:e.backgroundImage.asset.sys.uri)+"?f=webp&q=40",n=e==null?void 0:e.textColour.entryTitle.toLowerCase();return w.jsxs("section",{className:[se(Yd({background:t})),"max-w-screen block-bottom relative overflow-x-clip after:bg-white"].join(" "),"aria-label":"Spotlight statement",children:[w.jsx("div",{style:{backgroundImage:`url(${r})`},className:"absolute -left-0 top-1/2 block aspect-square h-[60%] -translate-x-1/2 -translate-y-1/2 bg-contain bg-center bg-no-repeat opacity-10 sm:h-[75%]"}),w.jsx("div",{style:{backgroundImage:`url(${r})`},className:"absolute -right-0 top-1/2 hidden aspect-square h-[75%] -translate-y-1/2 translate-x-1/2 bg-contain bg-center bg-no-repeat opacity-10 lg:block"}),w.jsx("div",{className:"container flex-col gap-[70px]",children:w.jsxs("div",{className:"mx-auto flex max-w-[1200px] flex-col items-center justify-center gap-[36px] px-[20px] py-[20px] sm:gap-[64px] sm:py-[30px] lg:py-[70px]",children:[w.jsx("div",{className:[se(Yd({text:n})),"text-center font-serif text-h2 font-medium sm:text-h1"].join(" "),dangerouslySetInnerHTML:{__html:Lt(e==null?void 0:e.text,{allowedTags:["em"]})}}),w.jsx("div",{className:"flex justify-center gap-md",children:e==null?void 0:e.uiPrimaryButtons.map((i,s)=>w.jsx(Ss,{btn:i,colour:i==null?void 0:i.colours.toLowerCase()},s))})]})})]})};function Xd(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function Xl(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(r=>{typeof t[r]>"u"?t[r]=e[r]:Xd(e[r])&&Xd(t[r])&&Object.keys(e[r]).length>0&&Xl(t[r],e[r])})}const R0={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function ye(){const t=typeof document<"u"?document:{};return Xl(t,R0),t}const h6={document:R0,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function ce(){const t=typeof window<"u"?window:{};return Xl(t,h6),t}function Tt(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function m6(t){const e=t;Object.keys(e).forEach(r=>{try{e[r]=null}catch{}try{delete e[r]}catch{}})}function er(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function He(){return Date.now()}function g6(t){const e=ce();let r;return e.getComputedStyle&&(r=e.getComputedStyle(t,null)),!r&&t.currentStyle&&(r=t.currentStyle),r||(r=t.style),r}function Ao(t,e){e===void 0&&(e="x");const r=ce();let n,i,s;const a=g6(t);return r.WebKitCSSMatrix?(i=a.transform||a.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(o=>o.replace(",",".")).join(", ")),s=new r.WebKitCSSMatrix(i==="none"?"":i)):(s=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=s.toString().split(",")),e==="x"&&(r.WebKitCSSMatrix?i=s.m41:n.length===16?i=parseFloat(n[12]):i=parseFloat(n[4])),e==="y"&&(r.WebKitCSSMatrix?i=s.m42:n.length===16?i=parseFloat(n[13]):i=parseFloat(n[5])),i||0}function tn(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function b6(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function _e(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let r=1;re.indexOf(s)<0);for(let s=0,a=i.length;ss?"next":"prev",d=(c,p)=>u==="next"&&c>=p||u==="prev"&&c<=p,f=()=>{o=new Date().getTime(),a===null&&(a=o);const c=Math.max(Math.min((o-a)/l,1),0),p=.5-Math.cos(c*Math.PI)/2;let m=s+p*(r-s);if(d(m,r)&&(m=r),e.wrapperEl.scrollTo({[n]:m}),d(m,r)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:m})}),i.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=i.requestAnimationFrame(f)};f()}function ir(t){return t.querySelector(".swiper-slide-transform")||t.shadowRoot&&t.shadowRoot.querySelector(".swiper-slide-transform")||t}function be(t,e){e===void 0&&(e="");const r=[...t.children];return t instanceof HTMLSlotElement&&r.push(...t.assignedElements()),e?r.filter(n=>n.matches(e)):r}function y6(t,e){const r=e.contains(t);return!r&&e instanceof HTMLSlotElement?[...e.assignedElements()].includes(t):r}function Zi(t){try{console.warn(t);return}catch{}}function De(t,e){e===void 0&&(e=[]);const r=document.createElement(t);return r.classList.add(...Array.isArray(e)?e:Tt(e)),r}function Ji(t){const e=ce(),r=ye(),n=t.getBoundingClientRect(),i=r.body,s=t.clientTop||i.clientTop||0,a=t.clientLeft||i.clientLeft||0,o=t===e?e.scrollY:t.scrollTop,l=t===e?e.scrollX:t.scrollLeft;return{top:n.top+o-s,left:n.left+l-a}}function v6(t,e){const r=[];for(;t.previousElementSibling;){const n=t.previousElementSibling;e?n.matches(e)&&r.push(n):r.push(n),t=n}return r}function w6(t,e){const r=[];for(;t.nextElementSibling;){const n=t.nextElementSibling;e?n.matches(e)&&r.push(n):r.push(n),t=n}return r}function Mt(t,e){return ce().getComputedStyle(t,null).getPropertyValue(e)}function An(t){let e=t,r;if(e){for(r=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(r+=1);return r}}function Qt(t,e){const r=[];let n=t.parentElement;for(;n;)e?n.matches(e)&&r.push(n):r.push(n),n=n.parentElement;return r}function ln(t,e){function r(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",r))}e&&t.addEventListener("transitionend",r)}function Mo(t,e,r){const n=ce();return t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom"))}function Q(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}function Ps(t){return e=>Math.abs(e)>0&&t.browser&&t.browser.need3dFix&&Math.abs(e)%90===0?e+.001:e}let ca;function x6(){const t=ce(),e=ye();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function F0(){return ca||(ca=x6()),ca}let da;function S6(t){let{userAgent:e}=t===void 0?{}:t;const r=F0(),n=ce(),i=n.navigator.platform,s=e||n.navigator.userAgent,a={ios:!1,android:!1},o=n.screen.width,l=n.screen.height,u=s.match(/(Android);?[\s\/]+([\d.]+)?/);let d=s.match(/(iPad).*OS\s([\d_]+)/);const f=s.match(/(iPod)(.*OS\s([\d_]+))?/),c=!d&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=i==="Win32";let m=i==="MacIntel";const h=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&m&&r.touch&&h.indexOf(`${o}x${l}`)>=0&&(d=s.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),m=!1),u&&!p&&(a.os="android",a.android=!0),(d||c||f)&&(a.os="ios",a.ios=!0),a}function B0(t){return t===void 0&&(t={}),da||(da=S6(t)),da}let fa;function T6(){const t=ce(),e=B0();let r=!1;function n(){const o=t.navigator.userAgent.toLowerCase();return o.indexOf("safari")>=0&&o.indexOf("chrome")<0&&o.indexOf("android")<0}if(n()){const o=String(t.navigator.userAgent);if(o.includes("Version/")){const[l,u]=o.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));r=l<16||l===16&&u<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),s=n(),a=s||i&&e.ios;return{isSafari:r||s,needPerspectiveFix:r,need3dFix:a,isWebView:i}}function E6(){return fa||(fa=T6()),fa}function C6(t){let{swiper:e,on:r,emit:n}=t;const i=ce();let s=null,a=null;const o=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},l=()=>{!e||e.destroyed||!e.initialized||(s=new ResizeObserver(f=>{a=i.requestAnimationFrame(()=>{const{width:c,height:p}=e;let m=c,h=p;f.forEach(g=>{let{contentBoxSize:b,contentRect:y,target:v}=g;v&&v!==e.el||(m=y?y.width:(b[0]||b).inlineSize,h=y?y.height:(b[0]||b).blockSize)}),(m!==c||h!==p)&&o()})}),s.observe(e.el))},u=()=>{a&&i.cancelAnimationFrame(a),s&&s.unobserve&&e.el&&(s.unobserve(e.el),s=null)},d=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};r("init",()=>{if(e.params.resizeObserver&&typeof i.ResizeObserver<"u"){l();return}i.addEventListener("resize",o),i.addEventListener("orientationchange",d)}),r("destroy",()=>{u(),i.removeEventListener("resize",o),i.removeEventListener("orientationchange",d)})}function P6(t){let{swiper:e,extendParams:r,on:n,emit:i}=t;const s=[],a=ce(),o=function(d,f){f===void 0&&(f={});const c=a.MutationObserver||a.WebkitMutationObserver,p=new c(m=>{if(e.__preventObserver__)return;if(m.length===1){i("observerUpdate",m[0]);return}const h=function(){i("observerUpdate",m[0])};a.requestAnimationFrame?a.requestAnimationFrame(h):a.setTimeout(h,0)});p.observe(d,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:e.isElement||(typeof f.childList>"u"?!0:f).childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),s.push(p)},l=()=>{if(e.params.observer){if(e.params.observeParents){const d=Qt(e.hostEl);for(let f=0;f{s.forEach(d=>{d.disconnect()}),s.splice(0,s.length)};r({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",l),n("destroy",u)}var A6={on(t,e,r){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const i=r?"unshift":"push";return t.split(" ").forEach(s=>{n.eventsListeners[s]||(n.eventsListeners[s]=[]),n.eventsListeners[s][i](e)}),n},once(t,e,r){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function i(){n.off(t,i),i.__emitterProxy&&delete i.__emitterProxy;for(var s=arguments.length,a=new Array(s),o=0;o=0&&e.eventsAnyListeners.splice(r,1),e},off(t,e){const r=this;return!r.eventsListeners||r.destroyed||!r.eventsListeners||t.split(" ").forEach(n=>{typeof e>"u"?r.eventsListeners[n]=[]:r.eventsListeners[n]&&r.eventsListeners[n].forEach((i,s)=>{(i===e||i.__emitterProxy&&i.__emitterProxy===e)&&r.eventsListeners[n].splice(s,1)})}),r},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,r,n;for(var i=arguments.length,s=new Array(i),a=0;a{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(u=>{u.apply(n,[l,...r])}),t.eventsListeners&&t.eventsListeners[l]&&t.eventsListeners[l].forEach(u=>{u.apply(n,r)})}),t}};function M6(){const t=this;let e,r;const n=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=n.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?r=t.params.height:r=n.clientHeight,!(e===0&&t.isHorizontal()||r===0&&t.isVertical())&&(e=e-parseInt(Mt(n,"padding-left")||0,10)-parseInt(Mt(n,"padding-right")||0,10),r=r-parseInt(Mt(n,"padding-top")||0,10)-parseInt(Mt(n,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(r)&&(r=0),Object.assign(t,{width:e,height:r,size:t.isHorizontal()?e:r}))}function k6(){const t=this;function e(_,P){return parseFloat(_.getPropertyValue(t.getDirectionLabel(P))||0)}const r=t.params,{wrapperEl:n,slidesEl:i,size:s,rtlTranslate:a,wrongRTL:o}=t,l=t.virtual&&r.virtual.enabled,u=l?t.virtual.slides.length:t.slides.length,d=be(i,`.${t.params.slideClass}, swiper-slide`),f=l?t.virtual.slides.length:d.length;let c=[];const p=[],m=[];let h=r.slidesOffsetBefore;typeof h=="function"&&(h=r.slidesOffsetBefore.call(t));let g=r.slidesOffsetAfter;typeof g=="function"&&(g=r.slidesOffsetAfter.call(t));const b=t.snapGrid.length,y=t.slidesGrid.length;let v=r.spaceBetween,x=-h,A=0,R=0;if(typeof s>"u")return;typeof v=="string"&&v.indexOf("%")>=0?v=parseFloat(v.replace("%",""))/100*s:typeof v=="string"&&(v=parseFloat(v)),t.virtualSize=-v,d.forEach(_=>{a?_.style.marginLeft="":_.style.marginRight="",_.style.marginBottom="",_.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(rn(n,"--swiper-centered-offset-before",""),rn(n,"--swiper-centered-offset-after",""));const M=r.grid&&r.grid.rows>1&&t.grid;M?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let E;const T=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(_=>typeof r.breakpoints[_].slidesPerView<"u").length>0;for(let _=0;_1&&c.push(t.virtualSize-s)}if(l&&r.loop){const _=m[0]+v;if(r.slidesPerGroup>1){const P=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/r.slidesPerGroup),O=_*r.slidesPerGroup;for(let L=0;L!r.cssMode||r.loop?!0:O!==d.length-1).forEach(P=>{P.style[_]=`${v}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let _=0;m.forEach(O=>{_+=O+(v||0)}),_-=v;const P=_>s?_-s:0;c=c.map(O=>O<=0?-h:O>P?P+g:O)}if(r.centerInsufficientSlides){let _=0;m.forEach(O=>{_+=O+(v||0)}),_-=v;const P=(r.slidesOffsetBefore||0)+(r.slidesOffsetAfter||0);if(_+P{c[C]=L-O}),p.forEach((L,C)=>{p[C]=L+O})}}if(Object.assign(t,{slides:d,snapGrid:c,slidesGrid:p,slidesSizesGrid:m}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){rn(n,"--swiper-centered-offset-before",`${-c[0]}px`),rn(n,"--swiper-centered-offset-after",`${t.size/2-m[m.length-1]/2}px`);const _=-t.snapGrid[0],P=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(O=>O+_),t.slidesGrid=t.slidesGrid.map(O=>O+P)}if(f!==u&&t.emit("slidesLengthChange"),c.length!==b&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==y&&t.emit("slidesGridLengthChange"),r.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!l&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const _=`${r.containerModifierClass}backface-hidden`,P=t.el.classList.contains(_);f<=r.maxBackfaceHiddenSlides?P||t.el.classList.add(_):P&&t.el.classList.remove(_)}}function I6(t){const e=this,r=[],n=e.virtual&&e.params.virtual.enabled;let i=0,s;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const a=o=>n?e.slides[e.getSlideIndexByData(o)]:e.slides[o];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(o=>{r.push(o)});else for(s=0;se.slides.length&&!n)break;r.push(a(o))}else r.push(a(e.activeIndex));for(s=0;si?o:i}(i||i===0)&&(e.wrapperEl.style.height=`${i}px`)}function O6(){const t=this,e=t.slides,r=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let n=0;n{e&&!t.classList.contains(r)?t.classList.add(r):!e&&t.classList.contains(r)&&t.classList.remove(r)};function L6(t){t===void 0&&(t=this&&this.translate||0);const e=this,r=e.params,{slides:n,rtlTranslate:i,snapGrid:s}=e;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-t;i&&(a=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let o=r.spaceBetween;typeof o=="string"&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*e.size:typeof o=="string"&&(o=parseFloat(o));for(let l=0;l=0&&p<=e.size-e.slidesSizesGrid[l],g=p>=0&&p1&&m<=e.size||p<=0&&m>=e.size;g&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(l)),Kd(u,g,r.slideVisibleClass),Kd(u,h,r.slideFullyVisibleClass),u.progress=i?-f:f,u.originalProgress=i?-c:c}}function _6(t){const e=this;if(typeof t>"u"){const d=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*d||0}const r=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:i,isBeginning:s,isEnd:a,progressLoop:o}=e;const l=s,u=a;if(n===0)i=0,s=!0,a=!0;else{i=(t-e.minTranslate())/n;const d=Math.abs(t-e.minTranslate())<1,f=Math.abs(t-e.maxTranslate())<1;s=d||i<=0,a=f||i>=1,d&&(i=0),f&&(i=1)}if(r.loop){const d=e.getSlideIndexByData(0),f=e.getSlideIndexByData(e.slides.length-1),c=e.slidesGrid[d],p=e.slidesGrid[f],m=e.slidesGrid[e.slidesGrid.length-1],h=Math.abs(t);h>=c?o=(h-c)/m:o=(h+m-p)/m,o>1&&(o-=1)}Object.assign(e,{progress:i,progressLoop:o,isBeginning:s,isEnd:a}),(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)&&e.updateSlidesProgress(t),s&&!l&&e.emit("reachBeginning toEdge"),a&&!u&&e.emit("reachEnd toEdge"),(l&&!s||u&&!a)&&e.emit("fromEdge"),e.emit("progress",i)}const pa=(t,e,r)=>{e&&!t.classList.contains(r)?t.classList.add(r):!e&&t.classList.contains(r)&&t.classList.remove(r)};function j6(){const t=this,{slides:e,params:r,slidesEl:n,activeIndex:i}=t,s=t.virtual&&r.virtual.enabled,a=t.grid&&r.grid&&r.grid.rows>1,o=f=>be(n,`.${r.slideClass}${f}, swiper-slide${f}`)[0];let l,u,d;if(s)if(r.loop){let f=i-t.virtual.slidesBefore;f<0&&(f=t.virtual.slides.length+f),f>=t.virtual.slides.length&&(f-=t.virtual.slides.length),l=o(`[data-swiper-slide-index="${f}"]`)}else l=o(`[data-swiper-slide-index="${i}"]`);else a?(l=e.filter(f=>f.column===i)[0],d=e.filter(f=>f.column===i+1)[0],u=e.filter(f=>f.column===i-1)[0]):l=e[i];l&&(a||(d=w6(l,`.${r.slideClass}, swiper-slide`)[0],r.loop&&!d&&(d=e[0]),u=v6(l,`.${r.slideClass}, swiper-slide`)[0],r.loop&&!u===0&&(u=e[e.length-1]))),e.forEach(f=>{pa(f,f===l,r.slideActiveClass),pa(f,f===d,r.slideNextClass),pa(f,f===u,r.slidePrevClass)}),t.emitSlidesClasses()}const Ii=(t,e)=>{if(!t||t.destroyed||!t.params)return;const r=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,n=e.closest(r());if(n){let i=n.querySelector(`.${t.params.lazyPreloaderClass}`);!i&&t.isElement&&(n.shadowRoot?i=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(i=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),i&&i.remove())})),i&&i.remove()}},ha=(t,e)=>{if(!t.slides[e])return;const r=t.slides[e].querySelector('[loading="lazy"]');r&&r.removeAttribute("loading")},ko=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const r=t.slides.length;if(!r||!e||e<0)return;e=Math.min(e,r);const n=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),i=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const a=i,o=[a-e];o.push(...Array.from({length:e}).map((l,u)=>a+n+u)),t.slides.forEach((l,u)=>{o.includes(l.column)&&ha(t,u)});return}const s=i+n-1;if(t.params.rewind||t.params.loop)for(let a=i-e;a<=s+e;a+=1){const o=(a%r+r)%r;(os)&&ha(t,o)}else for(let a=Math.max(i-e,0);a<=Math.min(s+e,r-1);a+=1)a!==i&&(a>s||a=e[s]&&n=e[s]&&n=e[s]&&(i=s);return r.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function R6(t){const e=this,r=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:i,activeIndex:s,realIndex:a,snapIndex:o}=e;let l=t,u;const d=p=>{let m=p-e.virtual.slidesBefore;return m<0&&(m=e.virtual.slides.length+m),m>=e.virtual.slides.length&&(m-=e.virtual.slides.length),m};if(typeof l>"u"&&(l=N6(e)),n.indexOf(r)>=0)u=n.indexOf(r);else{const p=Math.min(i.slidesPerGroupSkip,l);u=p+Math.floor((l-p)/i.slidesPerGroup)}if(u>=n.length&&(u=n.length-1),l===s&&!e.params.loop){u!==o&&(e.snapIndex=u,e.emit("snapIndexChange"));return}if(l===s&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(l);return}const f=e.grid&&i.grid&&i.grid.rows>1;let c;if(e.virtual&&i.virtual.enabled&&i.loop)c=d(l);else if(f){const p=e.slides.filter(h=>h.column===l)[0];let m=parseInt(p.getAttribute("data-swiper-slide-index"),10);Number.isNaN(m)&&(m=Math.max(e.slides.indexOf(p),0)),c=Math.floor(m/i.grid.rows)}else if(e.slides[l]){const p=e.slides[l].getAttribute("data-swiper-slide-index");p?c=parseInt(p,10):c=l}else c=l;Object.assign(e,{previousSnapIndex:o,snapIndex:u,previousRealIndex:a,realIndex:c,previousIndex:s,activeIndex:l}),e.initialized&&ko(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==c&&e.emit("realIndexChange"),e.emit("slideChange"))}function D6(t,e){const r=this,n=r.params;let i=t.closest(`.${n.slideClass}, swiper-slide`);!i&&r.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(o=>{!i&&o.matches&&o.matches(`.${n.slideClass}, swiper-slide`)&&(i=o)});let s=!1,a;if(i){for(let o=0;ol?d=l:n&&ta?o="next":s"u"&&(e=s.params.speed);const h=Math.min(s.params.slidesPerGroupSkip,a);let g=h+Math.floor((a-h)/s.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const b=-l[g];if(o.normalizeSlideIndex)for(let A=0;A=M&&R=M&&R=M&&(a=A)}if(s.initialized&&a!==f&&(!s.allowSlideNext&&(c?b>s.translate&&b>s.minTranslate():bs.translate&&b>s.maxTranslate()&&(f||0)!==a))return!1;a!==(d||0)&&r&&s.emit("beforeSlideChangeStart"),s.updateProgress(b);let y;a>f?y="next":a0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[A?"scrollLeft":"scrollTop"]=R})):p[A?"scrollLeft":"scrollTop"]=R,v&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1});else{if(!s.support.smoothScroll)return D0({swiper:s,targetPosition:R,side:A?"left":"top"}),!0;p.scrollTo({[A?"left":"top"]:R,behavior:"smooth"})}return!0}return s.setTransition(e),s.setTranslate(b),s.updateActiveIndex(a),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,n),s.transitionStart(r,y),e===0?s.transitionEnd(r,y):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(R){!s||s.destroyed||R.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(r,y))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function K6(t,e,r,n){t===void 0&&(t=0),r===void 0&&(r=!0),typeof t=="string"&&(t=parseInt(t,10));const i=this;if(i.destroyed)return;typeof e>"u"&&(e=i.params.speed);const s=i.grid&&i.params.grid&&i.params.grid.rows>1;let a=t;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)a=a+i.virtual.slidesBefore;else{let o;if(s){const c=a*i.params.grid.rows;o=i.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===c)[0].column}else o=i.getSlideIndexByData(a);const l=s?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:u}=i.params;let d=i.params.slidesPerView;d==="auto"?d=i.slidesPerViewDynamic():(d=Math.ceil(parseFloat(i.params.slidesPerView,10)),u&&d%2===0&&(d=d+1));let f=l-op.getAttribute("data-swiper-slide-index")*1===c)[0].column}else a=i.getSlideIndexByData(a)}return requestAnimationFrame(()=>{i.slideTo(a,e,r,n)}),i}function Q6(t,e,r){e===void 0&&(e=!0);const n=this,{enabled:i,params:s,animating:a}=n;if(!i||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);let o=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(o=Math.max(n.slidesPerViewDynamic("current",!0),1));const l=n.activeIndex{n.slideTo(n.activeIndex+l,t,e,r)}),!0}return s.rewind&&n.isEnd?n.slideTo(0,t,e,r):n.slideTo(n.activeIndex+l,t,e,r)}function Z6(t,e,r){e===void 0&&(e=!0);const n=this,{params:i,snapGrid:s,slidesGrid:a,rtlTranslate:o,enabled:l,animating:u}=n;if(!l||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);const d=n.virtual&&i.virtual.enabled;if(i.loop){if(u&&!d&&i.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const f=o?n.translate:-n.translate;function c(b){return b<0?-Math.floor(Math.abs(b)):Math.floor(b)}const p=c(f),m=s.map(b=>c(b));let h=s[m.indexOf(p)-1];if(typeof h>"u"&&i.cssMode){let b;s.forEach((y,v)=>{p>=y&&(b=v)}),typeof b<"u"&&(h=s[b>0?b-1:b])}let g=0;if(typeof h<"u"&&(g=a.indexOf(h),g<0&&(g=n.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(g=g-n.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),i.rewind&&n.isBeginning){const b=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(b,t,e,r)}else if(i.loop&&n.activeIndex===0&&i.cssMode)return requestAnimationFrame(()=>{n.slideTo(g,t,e,r)}),!0;return n.slideTo(g,t,e,r)}function J6(t,e,r){e===void 0&&(e=!0);const n=this;if(!n.destroyed)return typeof t>"u"&&(t=n.params.speed),n.slideTo(n.activeIndex,t,e,r)}function e4(t,e,r,n){e===void 0&&(e=!0),n===void 0&&(n=.5);const i=this;if(i.destroyed)return;typeof t>"u"&&(t=i.params.speed);let s=i.activeIndex;const a=Math.min(i.params.slidesPerGroupSkip,s),o=a+Math.floor((s-a)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[o]){const u=i.snapGrid[o],d=i.snapGrid[o+1];l-u>(d-u)*n&&(s+=i.params.slidesPerGroup)}else{const u=i.snapGrid[o-1],d=i.snapGrid[o];l-u<=(d-u)*n&&(s-=i.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,i.slidesGrid.length-1),i.slideTo(s,t,e,r)}function t4(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:r}=t,n=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let i=t.clickedIndex,s;const a=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;s=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?it.slides.length-t.loopedSlides+n/2?(t.loopFix(),i=t.getSlideIndex(be(r,`${a}[data-swiper-slide-index="${s}"]`)[0]),er(()=>{t.slideTo(i)})):t.slideTo(i):i>t.slides.length-n?(t.loopFix(),i=t.getSlideIndex(be(r,`${a}[data-swiper-slide-index="${s}"]`)[0]),er(()=>{t.slideTo(i)})):t.slideTo(i)}else t.slideTo(i)}var r4={slideTo:X6,slideToLoop:K6,slideNext:Q6,slidePrev:Z6,slideReset:J6,slideToClosest:e4,slideToClickedSlide:t4};function n4(t){const e=this,{params:r,slidesEl:n}=e;if(!r.loop||e.virtual&&e.params.virtual.enabled)return;const i=()=>{be(n,`.${r.slideClass}, swiper-slide`).forEach((f,c)=>{f.setAttribute("data-swiper-slide-index",c)})},s=e.grid&&r.grid&&r.grid.rows>1,a=r.slidesPerGroup*(s?r.grid.rows:1),o=e.slides.length%a!==0,l=s&&e.slides.length%r.grid.rows!==0,u=d=>{for(let f=0;f1;u.length"u"?s=l.getSlideIndex(u.filter(L=>L.classList.contains(p.slideActiveClass))[0]):A=s;const R=n==="next"||!n,M=n==="prev"||!n;let E=0,T=0;const _=y?Math.ceil(u.length/p.grid.rows):u.length,O=(y?u[s].column:s)+(m&&typeof i>"u"?-h/2+.5:0);if(O=0;N-=1)u[N].column===S&&v.push(N)}else v.push(_-C-1)}}else if(O+h>_-b){T=Math.max(O-(_-b*2),g);for(let L=0;L{S.column===C&&x.push(N)}):x.push(C)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),M&&v.forEach(L=>{u[L].swiperLoopMoveDOM=!0,c.prepend(u[L]),u[L].swiperLoopMoveDOM=!1}),R&&x.forEach(L=>{u[L].swiperLoopMoveDOM=!0,c.append(u[L]),u[L].swiperLoopMoveDOM=!1}),l.recalcSlides(),p.slidesPerView==="auto"?l.updateSlides():y&&(v.length>0&&M||x.length>0&&R)&&l.slides.forEach((L,C)=>{l.grid.updateSlide(C,L,l.slides)}),p.watchSlidesProgress&&l.updateSlidesOffset(),r){if(v.length>0&&M){if(typeof e>"u"){const L=l.slidesGrid[A],S=l.slidesGrid[A+E]-L;o?l.setTranslate(l.translate-S):(l.slideTo(A+Math.ceil(E),0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-S,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-S))}else if(i){const L=y?v.length/p.grid.rows:v.length;l.slideTo(l.activeIndex+L,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(x.length>0&&R)if(typeof e>"u"){const L=l.slidesGrid[A],S=l.slidesGrid[A-T]-L;o?l.setTranslate(l.translate-S):(l.slideTo(A-T,0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-S,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-S))}else{const L=y?x.length/p.grid.rows:x.length;l.slideTo(l.activeIndex-L,0,!1,!0)}}if(l.allowSlidePrev=d,l.allowSlideNext=f,l.controller&&l.controller.control&&!a){const L={slideRealIndex:e,direction:n,setTranslate:i,activeSlideIndex:s,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(C=>{!C.destroyed&&C.params.loop&&C.loopFix({...L,slideTo:C.params.slidesPerView===p.slidesPerView?r:!1})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...L,slideTo:l.controller.control.params.slidesPerView===p.slidesPerView?r:!1})}l.emit("loopFix")}function s4(){const t=this,{params:e,slidesEl:r}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const n=[];t.slides.forEach(i=>{const s=typeof i.swiperSlideIndex>"u"?i.getAttribute("data-swiper-slide-index")*1:i.swiperSlideIndex;n[s]=i}),t.slides.forEach(i=>{i.removeAttribute("data-swiper-slide-index")}),n.forEach(i=>{r.append(i)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var a4={loopCreate:n4,loopFix:i4,loopDestroy:s4};function o4(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const r=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),r.style.cursor="move",r.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function l4(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var u4={setGrabCursor:o4,unsetGrabCursor:l4};function c4(t,e){e===void 0&&(e=this);function r(n){if(!n||n===ye()||n===ce())return null;n.assignedSlot&&(n=n.assignedSlot);const i=n.closest(t);return!i&&!n.getRootNode?null:i||r(n.getRootNode().host)}return r(e)}function Qd(t,e,r){const n=ce(),{params:i}=t,s=i.edgeSwipeDetection,a=i.edgeSwipeThreshold;return s&&(r<=a||r>=n.innerWidth-a)?s==="prevent"?(e.preventDefault(),!0):!1:!0}function d4(t){const e=this,r=ye();let n=t;n.originalEvent&&(n=n.originalEvent);const i=e.touchEventsData;if(n.type==="pointerdown"){if(i.pointerId!==null&&i.pointerId!==n.pointerId)return;i.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(i.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){Qd(e,n,n.targetTouches[0].pageX);return}const{params:s,touches:a,enabled:o}=e;if(!o||!s.simulateTouch&&n.pointerType==="mouse"||e.animating&&s.preventInteractionOnTransition)return;!e.animating&&s.cssMode&&s.loop&&e.loopFix();let l=n.target;if(s.touchEventsTarget==="wrapper"&&!y6(l,e.wrapperEl)||"which"in n&&n.which===3||"button"in n&&n.button>0||i.isTouched&&i.isMoved)return;const u=!!s.noSwipingClass&&s.noSwipingClass!=="",d=n.composedPath?n.composedPath():n.path;u&&n.target&&n.target.shadowRoot&&d&&(l=d[0]);const f=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,c=!!(n.target&&n.target.shadowRoot);if(s.noSwiping&&(c?c4(f,l):l.closest(f))){e.allowClick=!0;return}if(s.swipeHandler&&!l.closest(s.swipeHandler))return;a.currentX=n.pageX,a.currentY=n.pageY;const p=a.currentX,m=a.currentY;if(!Qd(e,n,p))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=p,a.startY=m,i.touchStartTime=He(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,s.threshold>0&&(i.allowThresholdMove=!1);let h=!0;l.matches(i.focusableElements)&&(h=!1,l.nodeName==="SELECT"&&(i.isTouched=!1)),r.activeElement&&r.activeElement.matches(i.focusableElements)&&r.activeElement!==l&&(n.pointerType==="mouse"||n.pointerType!=="mouse"&&!l.matches(i.focusableElements))&&r.activeElement.blur();const g=h&&e.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||g)&&!l.isContentEditable&&n.preventDefault(),s.freeMode&&s.freeMode.enabled&&e.freeMode&&e.animating&&!s.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function f4(t){const e=ye(),r=this,n=r.touchEventsData,{params:i,touches:s,rtlTranslate:a,enabled:o}=r;if(!o||!i.simulateTouch&&t.pointerType==="mouse")return;let l=t;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(n.touchId!==null||l.pointerId!==n.pointerId))return;let u;if(l.type==="touchmove"){if(u=[...l.changedTouches].filter(R=>R.identifier===n.touchId)[0],!u||u.identifier!==n.touchId)return}else u=l;if(!n.isTouched){n.startMoving&&n.isScrolling&&r.emit("touchMoveOpposite",l);return}const d=u.pageX,f=u.pageY;if(l.preventedByNestedSwiper){s.startX=d,s.startY=f;return}if(!r.allowTouchMove){l.target.matches(n.focusableElements)||(r.allowClick=!1),n.isTouched&&(Object.assign(s,{startX:d,startY:f,currentX:d,currentY:f}),n.touchStartTime=He());return}if(i.touchReleaseOnEdges&&!i.loop){if(r.isVertical()){if(fs.startY&&r.translate>=r.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(ds.startX&&r.translate>=r.minTranslate())return}if(e.activeElement&&e.activeElement.matches(n.focusableElements)&&e.activeElement!==l.target&&l.pointerType!=="mouse"&&e.activeElement.blur(),e.activeElement&&l.target===e.activeElement&&l.target.matches(n.focusableElements)){n.isMoved=!0,r.allowClick=!1;return}n.allowTouchCallbacks&&r.emit("touchMove",l),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=d,s.currentY=f;const c=s.currentX-s.startX,p=s.currentY-s.startY;if(r.params.threshold&&Math.sqrt(c**2+p**2)"u"){let R;r.isHorizontal()&&s.currentY===s.startY||r.isVertical()&&s.currentX===s.startX?n.isScrolling=!1:c*c+p*p>=25&&(R=Math.atan2(Math.abs(p),Math.abs(c))*180/Math.PI,n.isScrolling=r.isHorizontal()?R>i.touchAngle:90-R>i.touchAngle)}if(n.isScrolling&&r.emit("touchMoveOpposite",l),typeof n.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(n.startMoving=!0),n.isScrolling||l.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;r.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation();let m=r.isHorizontal()?c:p,h=r.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;i.oneWayMovement&&(m=Math.abs(m)*(a?1:-1),h=Math.abs(h)*(a?1:-1)),s.diff=m,m*=i.touchRatio,a&&(m=-m,h=-h);const g=r.touchesDirection;r.swipeDirection=m>0?"prev":"next",r.touchesDirection=h>0?"prev":"next";const b=r.params.loop&&!i.cssMode,y=r.touchesDirection==="next"&&r.allowSlideNext||r.touchesDirection==="prev"&&r.allowSlidePrev;if(!n.isMoved){if(b&&y&&r.loopFix({direction:r.swipeDirection}),n.startTranslate=r.getTranslate(),r.setTransition(0),r.animating){const R=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});r.wrapperEl.dispatchEvent(R)}n.allowMomentumBounce=!1,i.grabCursor&&(r.allowSlideNext===!0||r.allowSlidePrev===!0)&&r.setGrabCursor(!0),r.emit("sliderFirstMove",l)}let v;if(new Date().getTime(),n.isMoved&&n.allowThresholdMove&&g!==r.touchesDirection&&b&&y&&Math.abs(m)>=1){Object.assign(s,{startX:d,startY:f,currentX:d,currentY:f,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}r.emit("sliderMove",l),n.isMoved=!0,n.currentTranslate=m+n.startTranslate;let x=!0,A=i.resistanceRatio;if(i.touchReleaseOnEdges&&(A=0),m>0?(b&&y&&!v&&n.allowThresholdMove&&n.currentTranslate>(i.centeredSlides?r.minTranslate()-r.slidesSizesGrid[r.activeIndex+1]-(i.slidesPerView!=="auto"&&r.slides.length-i.slidesPerView>=2?r.slidesSizesGrid[r.activeIndex+1]+r.params.spaceBetween:0)-r.params.spaceBetween:r.minTranslate())&&r.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>r.minTranslate()&&(x=!1,i.resistance&&(n.currentTranslate=r.minTranslate()-1+(-r.minTranslate()+n.startTranslate+m)**A))):m<0&&(b&&y&&!v&&n.allowThresholdMove&&n.currentTranslate<(i.centeredSlides?r.maxTranslate()+r.slidesSizesGrid[r.slidesSizesGrid.length-1]+r.params.spaceBetween+(i.slidesPerView!=="auto"&&r.slides.length-i.slidesPerView>=2?r.slidesSizesGrid[r.slidesSizesGrid.length-1]+r.params.spaceBetween:0):r.maxTranslate())&&r.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:r.slides.length-(i.slidesPerView==="auto"?r.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),n.currentTranslaten.startTranslate&&(n.currentTranslate=n.startTranslate),!r.allowSlidePrev&&!r.allowSlideNext&&(n.currentTranslate=n.startTranslate),i.threshold>0)if(Math.abs(m)>i.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,n.currentTranslate=n.startTranslate,s.diff=r.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{n.currentTranslate=n.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&r.freeMode||i.watchSlidesProgress)&&(r.updateActiveIndex(),r.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&r.freeMode&&r.freeMode.onTouchMove(),r.updateProgress(n.currentTranslate),r.setTranslate(n.currentTranslate))}function p4(t){const e=this,r=e.touchEventsData;let n=t;n.originalEvent&&(n=n.originalEvent);let i;if(n.type==="touchend"||n.type==="touchcancel"){if(i=[...n.changedTouches].filter(A=>A.identifier===r.touchId)[0],!i||i.identifier!==r.touchId)return}else{if(r.touchId!==null||n.pointerId!==r.pointerId)return;i=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&!(["pointercancel","contextmenu"].includes(n.type)&&(e.browser.isSafari||e.browser.isWebView)))return;r.pointerId=null,r.touchId=null;const{params:a,touches:o,rtlTranslate:l,slidesGrid:u,enabled:d}=e;if(!d||!a.simulateTouch&&n.pointerType==="mouse")return;if(r.allowTouchCallbacks&&e.emit("touchEnd",n),r.allowTouchCallbacks=!1,!r.isTouched){r.isMoved&&a.grabCursor&&e.setGrabCursor(!1),r.isMoved=!1,r.startMoving=!1;return}a.grabCursor&&r.isMoved&&r.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const f=He(),c=f-r.touchStartTime;if(e.allowClick){const A=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(A&&A[0]||n.target,A),e.emit("tap click",n),c<300&&f-r.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(r.lastClickTime=He(),er(()=>{e.destroyed||(e.allowClick=!0)}),!r.isTouched||!r.isMoved||!e.swipeDirection||o.diff===0&&!r.loopSwapReset||r.currentTranslate===r.startTranslate&&!r.loopSwapReset){r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;return}r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;let p;if(a.followFinger?p=l?e.translate:-e.translate:p=-r.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:p});return}const m=p>=-e.maxTranslate()&&!e.params.loop;let h=0,g=e.slidesSizesGrid[0];for(let A=0;A=u[A]&&p=u[A])&&(h=A,g=u[u.length-1]-u[u.length-2])}let b=null,y=null;a.rewind&&(e.isBeginning?y=a.virtual&&a.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(b=0));const v=(p-u[h])/g,x=ha.longSwipesMs){if(!a.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(v>=a.longSwipesRatio?e.slideTo(a.rewind&&e.isEnd?b:h+x):e.slideTo(h)),e.swipeDirection==="prev"&&(v>1-a.longSwipesRatio?e.slideTo(h+x):y!==null&&v<0&&Math.abs(v)>a.longSwipesRatio?e.slideTo(y):e.slideTo(h))}else{if(!a.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(n.target===e.navigation.nextEl||n.target===e.navigation.prevEl)?n.target===e.navigation.nextEl?e.slideTo(h+x):e.slideTo(h):(e.swipeDirection==="next"&&e.slideTo(b!==null?b:h+x),e.swipeDirection==="prev"&&e.slideTo(y!==null?y:h))}}function Zd(){const t=this,{params:e,el:r}=t;if(r&&r.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:i,snapGrid:s}=t,a=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const o=a&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!o?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!a?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=i,t.allowSlideNext=n,t.params.watchOverflow&&s!==t.snapGrid&&t.checkOverflow()}function h4(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function m4(){const t=this,{wrapperEl:e,rtlTranslate:r,enabled:n}=t;if(!n)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let i;const s=t.maxTranslate()-t.minTranslate();s===0?i=0:i=(t.translate-t.minTranslate())/s,i!==t.progress&&t.updateProgress(r?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function g4(t){const e=this;Ii(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function b4(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const V0=(t,e)=>{const r=ye(),{params:n,el:i,wrapperEl:s,device:a}=t,o=!!n.nested,l=e==="on"?"addEventListener":"removeEventListener",u=e;!i||typeof i=="string"||(r[l]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:o}),i[l]("touchstart",t.onTouchStart,{passive:!1}),i[l]("pointerdown",t.onTouchStart,{passive:!1}),r[l]("touchmove",t.onTouchMove,{passive:!1,capture:o}),r[l]("pointermove",t.onTouchMove,{passive:!1,capture:o}),r[l]("touchend",t.onTouchEnd,{passive:!0}),r[l]("pointerup",t.onTouchEnd,{passive:!0}),r[l]("pointercancel",t.onTouchEnd,{passive:!0}),r[l]("touchcancel",t.onTouchEnd,{passive:!0}),r[l]("pointerout",t.onTouchEnd,{passive:!0}),r[l]("pointerleave",t.onTouchEnd,{passive:!0}),r[l]("contextmenu",t.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&i[l]("click",t.onClick,!0),n.cssMode&&s[l]("scroll",t.onScroll),n.updateOnWindowResize?t[u](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",Zd,!0):t[u]("observerUpdate",Zd,!0),i[l]("load",t.onLoad,{capture:!0}))};function y4(){const t=this,{params:e}=t;t.onTouchStart=d4.bind(t),t.onTouchMove=f4.bind(t),t.onTouchEnd=p4.bind(t),t.onDocumentTouchStart=b4.bind(t),e.cssMode&&(t.onScroll=m4.bind(t)),t.onClick=h4.bind(t),t.onLoad=g4.bind(t),V0(t,"on")}function v4(){V0(this,"off")}var w4={attachEvents:y4,detachEvents:v4};const Jd=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function x4(){const t=this,{realIndex:e,initialized:r,params:n,el:i}=t,s=n.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const a=t.getBreakpoint(s,t.params.breakpointsBase,t.el);if(!a||t.currentBreakpoint===a)return;const l=(a in s?s[a]:void 0)||t.originalParams,u=Jd(t,n),d=Jd(t,l),f=t.params.grabCursor,c=l.grabCursor,p=n.enabled;u&&!d?(i.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!u&&d&&(i.classList.add(`${n.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&n.grid.fill==="column")&&i.classList.add(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),f&&!c?t.unsetGrabCursor():!f&&c&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(v=>{if(typeof l[v]>"u")return;const x=n[v]&&n[v].enabled,A=l[v]&&l[v].enabled;x&&!A&&t[v].disable(),!x&&A&&t[v].enable()});const m=l.direction&&l.direction!==n.direction,h=n.loop&&(l.slidesPerView!==n.slidesPerView||m),g=n.loop;m&&r&&t.changeDirection(),_e(t.params,l);const b=t.params.enabled,y=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),p&&!b?t.disable():!p&&b&&t.enable(),t.currentBreakpoint=a,t.emit("_beforeBreakpoint",l),r&&(h?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!g&&y?(t.loopCreate(e),t.updateSlides()):g&&!y&&t.loopDestroy()),t.emit("breakpoint",l)}function S4(t,e,r){if(e===void 0&&(e="window"),!t||e==="container"&&!r)return;let n=!1;const i=ce(),s=e==="window"?i.innerHeight:r.clientHeight,a=Object.keys(t).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){const l=parseFloat(o.substr(1));return{value:s*l,point:o}}return{value:o,point:o}});a.sort((o,l)=>parseInt(o.value,10)-parseInt(l.value,10));for(let o=0;o{typeof n=="object"?Object.keys(n).forEach(i=>{n[i]&&r.push(e+i)}):typeof n=="string"&&r.push(e+n)}),r}function C4(){const t=this,{classNames:e,params:r,rtl:n,el:i,device:s}=t,a=E4(["initialized",r.direction,{"free-mode":t.params.freeMode&&r.freeMode.enabled},{autoheight:r.autoHeight},{rtl:n},{grid:r.grid&&r.grid.rows>1},{"grid-column":r.grid&&r.grid.rows>1&&r.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":r.cssMode},{centered:r.cssMode&&r.centeredSlides},{"watch-progress":r.watchSlidesProgress}],r.containerModifierClass);e.push(...a),i.classList.add(...e),t.emitContainerClasses()}function P4(){const t=this,{el:e,classNames:r}=t;!e||typeof e=="string"||(e.classList.remove(...r),t.emitContainerClasses())}var A4={addClasses:C4,removeClasses:P4};function M4(){const t=this,{isLocked:e,params:r}=t,{slidesOffsetBefore:n}=r;if(n){const i=t.slides.length-1,s=t.slidesGrid[i]+t.slidesSizesGrid[i]+n*2;t.isLocked=t.size>s}else t.isLocked=t.snapGrid.length===1;r.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),r.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var k4={checkOverflow:M4},Io={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function I4(t,e){return function(n){n===void 0&&(n={});const i=Object.keys(n)[0],s=n[i];if(typeof s!="object"||s===null){_e(e,n);return}if(t[i]===!0&&(t[i]={enabled:!0}),i==="navigation"&&t[i]&&t[i].enabled&&!t[i].prevEl&&!t[i].nextEl&&(t[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&t[i]&&t[i].enabled&&!t[i].el&&(t[i].auto=!0),!(i in t&&"enabled"in s)){_e(e,n);return}typeof t[i]=="object"&&!("enabled"in t[i])&&(t[i].enabled=!0),t[i]||(t[i]={enabled:!1}),_e(e,n)}}const ma={eventsEmitter:A6,update:F6,translate:H6,transition:Y6,slide:r4,loop:a4,grabCursor:u4,events:w4,breakpoints:T4,checkOverflow:k4,classes:A4},ga={};class Le{constructor(){let e,r;for(var n=arguments.length,i=new Array(n),s=0;s1){const d=[];return a.querySelectorAll(r.el).forEach(f=>{const c=_e({},r,{el:f});d.push(new Le(c))}),d}const o=this;o.__swiper__=!0,o.support=F0(),o.device=B0({userAgent:r.userAgent}),o.browser=E6(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],r.modules&&Array.isArray(r.modules)&&o.modules.push(...r.modules);const l={};o.modules.forEach(d=>{d({params:r,swiper:o,extendParams:I4(r,l),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const u=_e({},Io,l);return o.params=_e({},u,ga,r),o.originalParams=_e({},o.params),o.passedParams=_e({},r),o.params&&o.params.on&&Object.keys(o.params.on).forEach(d=>{o.on(d,o.params.on[d])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return o.params.direction==="horizontal"},isVertical(){return o.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:r,params:n}=this,i=be(r,`.${n.slideClass}, swiper-slide`),s=An(i[0]);return An(e)-s}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(r=>r.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:r,params:n}=e;e.slides=be(r,`.${n.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,r){const n=this;e=Math.min(Math.max(e,0),1);const i=n.minTranslate(),a=(n.maxTranslate()-i)*e+i;n.translateTo(a,typeof r>"u"?0:r),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const r=e.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",r.join(" "))}getSlideClasses(e){const r=this;return r.destroyed?"":e.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(r.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const r=[];e.slides.forEach(n=>{const i=e.getSlideClasses(n);r.push({slideEl:n,classNames:i}),e.emit("_slideClass",n,i)}),e.emit("_slideClasses",r)}slidesPerViewDynamic(e,r){e===void 0&&(e="current"),r===void 0&&(r=!1);const n=this,{params:i,slides:s,slidesGrid:a,slidesSizesGrid:o,size:l,activeIndex:u}=n;let d=1;if(typeof i.slidesPerView=="number")return i.slidesPerView;if(i.centeredSlides){let f=s[u]?Math.ceil(s[u].swiperSlideSize):0,c;for(let p=u+1;pl&&(c=!0));for(let p=u-1;p>=0;p-=1)s[p]&&!c&&(f+=s[p].swiperSlideSize,d+=1,f>l&&(c=!0))}else if(e==="current")for(let f=u+1;f=0;f-=1)a[u]-a[f]{a.complete&&Ii(e,a)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function i(){const a=e.rtlTranslate?e.translate*-1:e.translate,o=Math.min(Math.max(a,e.maxTranslate()),e.minTranslate());e.setTranslate(o),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)i(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const a=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;s=e.slideTo(a.length-1,0,!1,!0)}else s=e.slideTo(e.activeIndex,0,!1,!0);s||i()}n.watchOverflow&&r!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,r){r===void 0&&(r=!0);const n=this,i=n.params.direction;return e||(e=i==="horizontal"?"vertical":"horizontal"),e===i||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${i}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(s=>{e==="vertical"?s.style.width="":s.style.height=""}),n.emit("changeDirection"),r&&n.update()),n}changeLanguageDirection(e){const r=this;r.rtl&&e==="rtl"||!r.rtl&&e==="ltr"||(r.rtl=e==="rtl",r.rtlTranslate=r.params.direction==="horizontal"&&r.rtl,r.rtl?(r.el.classList.add(`${r.params.containerModifierClass}rtl`),r.el.dir="rtl"):(r.el.classList.remove(`${r.params.containerModifierClass}rtl`),r.el.dir="ltr"),r.update())}mount(e){const r=this;if(r.mounted)return!0;let n=e||r.params.el;if(typeof n=="string"&&(n=document.querySelector(n)),!n)return!1;n.swiper=r,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===r.params.swiperElementNodeName.toUpperCase()&&(r.isElement=!0);const i=()=>`.${(r.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(i()):be(n,i())[0];return!a&&r.params.createElements&&(a=De("div",r.params.wrapperClass),n.append(a),be(n,`.${r.params.slideClass}`).forEach(o=>{a.append(o)})),Object.assign(r,{el:n,wrapperEl:a,slidesEl:r.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:a,hostEl:r.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||Mt(n,"direction")==="rtl",rtlTranslate:r.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||Mt(n,"direction")==="rtl"),wrongRTL:Mt(a,"display")==="-webkit-box"}),!0}init(e){const r=this;if(r.initialized||r.mount(e)===!1)return r;r.emit("beforeInit"),r.params.breakpoints&&r.setBreakpoint(),r.addClasses(),r.updateSize(),r.updateSlides(),r.params.watchOverflow&&r.checkOverflow(),r.params.grabCursor&&r.enabled&&r.setGrabCursor(),r.params.loop&&r.virtual&&r.params.virtual.enabled?r.slideTo(r.params.initialSlide+r.virtual.slidesBefore,0,r.params.runCallbacksOnInit,!1,!0):r.slideTo(r.params.initialSlide,0,r.params.runCallbacksOnInit,!1,!0),r.params.loop&&r.loopCreate(),r.attachEvents();const i=[...r.el.querySelectorAll('[loading="lazy"]')];return r.isElement&&i.push(...r.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(s=>{s.complete?Ii(r,s):s.addEventListener("load",a=>{Ii(r,a.target)})}),ko(r),r.initialized=!0,ko(r),r.emit("init"),r.emit("afterInit"),r}destroy(e,r){e===void 0&&(e=!0),r===void 0&&(r=!0);const n=this,{params:i,el:s,wrapperEl:a,slides:o}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),r&&(n.removeClasses(),s&&typeof s!="string"&&s.removeAttribute("style"),a&&a.removeAttribute("style"),o&&o.length&&o.forEach(l=>{l.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(l=>{n.off(l)}),e!==!1&&(n.el&&typeof n.el!="string"&&(n.el.swiper=null),m6(n)),n.destroyed=!0),null}static extendDefaults(e){_e(ga,e)}static get extendedDefaults(){return ga}static get defaults(){return Io}static installModule(e){Le.prototype.__modules__||(Le.prototype.__modules__=[]);const r=Le.prototype.__modules__;typeof e=="function"&&r.indexOf(e)<0&&r.push(e)}static use(e){return Array.isArray(e)?(e.forEach(r=>Le.installModule(r)),Le):(Le.installModule(e),Le)}}Object.keys(ma).forEach(t=>{Object.keys(ma[t]).forEach(e=>{Le.prototype[e]=ma[t][e]})});Le.use([C6,P6]);function O4(t){let{swiper:e,extendParams:r,on:n,emit:i}=t;r({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let s;const a=ye();e.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const o=a.createElement("div");function l(m,h){const g=e.params.virtual;if(g.cache&&e.virtual.cache[h])return e.virtual.cache[h];let b;return g.renderSlide?(b=g.renderSlide.call(e,m,h),typeof b=="string"&&(o.innerHTML=b,b=o.children[0])):e.isElement?b=De("swiper-slide"):b=De("div",e.params.slideClass),b.setAttribute("data-swiper-slide-index",h),g.renderSlide||(b.innerHTML=m),g.cache&&(e.virtual.cache[h]=b),b}function u(m,h){const{slidesPerView:g,slidesPerGroup:b,centeredSlides:y,loop:v,initialSlide:x}=e.params;if(h&&!v&&x>0)return;const{addSlidesBefore:A,addSlidesAfter:R}=e.params.virtual,{from:M,to:E,slides:T,slidesGrid:_,offset:P}=e.virtual;e.params.cssMode||e.updateActiveIndex();const O=e.activeIndex||0;let L;e.rtlTranslate?L="right":L=e.isHorizontal()?"left":"top";let C,S;y?(C=Math.floor(g/2)+b+R,S=Math.floor(g/2)+b+A):(C=g+(b-1)+R,S=(v?g:b)+A);let N=O-S,k=O+C;v||(N=Math.max(N,0),k=Math.min(k,T.length-1));let j=(e.slidesGrid[N]||0)-(e.slidesGrid[0]||0);v&&O>=S?(N-=S,y||(j+=e.slidesGrid[0])):v&&O{V.style[L]=`${j-Math.abs(e.cssOverflowAdjustment())}px`}),e.updateProgress(),i("virtualUpdate");return}if(e.params.virtual.renderExternal){e.params.virtual.renderExternal.call(e,{offset:j,from:N,to:k,slides:function(){const K=[];for(let ae=N;ae<=k;ae+=1)K.push(T[ae]);return K}()}),e.params.virtual.renderExternalUpdate?B():i("virtualUpdate");return}const q=[],F=[],z=V=>{let K=V;return V<0?K=T.length+V:K>=T.length&&(K=K-T.length),K};if(m)e.slides.filter(V=>V.matches(`.${e.params.slideClass}, swiper-slide`)).forEach(V=>{V.remove()});else for(let V=M;V<=E;V+=1)if(Vk){const K=z(V);e.slides.filter(ae=>ae.matches(`.${e.params.slideClass}[data-swiper-slide-index="${K}"], swiper-slide[data-swiper-slide-index="${K}"]`)).forEach(ae=>{ae.remove()})}const H=v?-T.length:0,U=v?T.length*2:T.length;for(let V=H;V=N&&V<=k){const K=z(V);typeof E>"u"||m?F.push(K):(V>E&&F.push(K),V{e.slidesEl.append(l(T[V],V))}),v)for(let V=q.length-1;V>=0;V-=1){const K=q[V];e.slidesEl.prepend(l(T[K],K))}else q.sort((V,K)=>K-V),q.forEach(V=>{e.slidesEl.prepend(l(T[V],V))});be(e.slidesEl,".swiper-slide, swiper-slide").forEach(V=>{V.style[L]=`${j-Math.abs(e.cssOverflowAdjustment())}px`}),B()}function d(m){if(typeof m=="object"&&"length"in m)for(let h=0;h{const A=y[x],R=A.getAttribute("data-swiper-slide-index");R&&A.setAttribute("data-swiper-slide-index",parseInt(R,10)+b),v[parseInt(x,10)+b]=A}),e.virtual.cache=v}u(!0),e.slideTo(g,0)}function c(m){if(typeof m>"u"||m===null)return;let h=e.activeIndex;if(Array.isArray(m))for(let g=m.length-1;g>=0;g-=1)e.params.virtual.cache&&(delete e.virtual.cache[m[g]],Object.keys(e.virtual.cache).forEach(b=>{b>m&&(e.virtual.cache[b-1]=e.virtual.cache[b],e.virtual.cache[b-1].setAttribute("data-swiper-slide-index",b-1),delete e.virtual.cache[b])})),e.virtual.slides.splice(m[g],1),m[g]{g>m&&(e.virtual.cache[g-1]=e.virtual.cache[g],e.virtual.cache[g-1].setAttribute("data-swiper-slide-index",g-1),delete e.virtual.cache[g])})),e.virtual.slides.splice(m,1),m{if(!e.params.virtual.enabled)return;let m;if(typeof e.passedParams.virtual.slides>"u"){const h=[...e.slidesEl.children].filter(g=>g.matches(`.${e.params.slideClass}, swiper-slide`));h&&h.length&&(e.virtual.slides=[...h],m=!0,h.forEach((g,b)=>{g.setAttribute("data-swiper-slide-index",b),e.virtual.cache[b]=g,g.remove()}))}m||(e.virtual.slides=e.params.virtual.slides),e.classNames.push(`${e.params.containerModifierClass}virtual`),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0,u(!1,!0)}),n("setTranslate",()=>{e.params.virtual.enabled&&(e.params.cssMode&&!e._immediateVirtual?(clearTimeout(s),s=setTimeout(()=>{u()},100)):u())}),n("init update resize",()=>{e.params.virtual.enabled&&e.params.cssMode&&rn(e.wrapperEl,"--swiper-virtual-size",`${e.virtualSize}px`)}),Object.assign(e.virtual,{appendSlide:d,prependSlide:f,removeSlide:c,removeAllSlides:p,update:u})}function L4(t){let{swiper:e,extendParams:r,on:n,emit:i}=t;const s=ye(),a=ce();e.keyboard={enabled:!1},r({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function o(d){if(!e.enabled)return;const{rtlTranslate:f}=e;let c=d;c.originalEvent&&(c=c.originalEvent);const p=c.keyCode||c.charCode,m=e.params.keyboard.pageUpDown,h=m&&p===33,g=m&&p===34,b=p===37,y=p===39,v=p===38,x=p===40;if(!e.allowSlideNext&&(e.isHorizontal()&&y||e.isVertical()&&x||g)||!e.allowSlidePrev&&(e.isHorizontal()&&b||e.isVertical()&&v||h))return!1;if(!(c.shiftKey||c.altKey||c.ctrlKey||c.metaKey)&&!(s.activeElement&&s.activeElement.nodeName&&(s.activeElement.nodeName.toLowerCase()==="input"||s.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(h||g||b||y||v||x)){let A=!1;if(Qt(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Qt(e.el,`.${e.params.slideActiveClass}`).length===0)return;const R=e.el,M=R.clientWidth,E=R.clientHeight,T=a.innerWidth,_=a.innerHeight,P=Ji(R);f&&(P.left-=R.scrollLeft);const O=[[P.left,P.top],[P.left+M,P.top],[P.left,P.top+E],[P.left+M,P.top+E]];for(let L=0;L=0&&C[0]<=T&&C[1]>=0&&C[1]<=_){if(C[0]===0&&C[1]===0)continue;A=!0}}if(!A)return}e.isHorizontal()?((h||g||b||y)&&(c.preventDefault?c.preventDefault():c.returnValue=!1),((g||y)&&!f||(h||b)&&f)&&e.slideNext(),((h||b)&&!f||(g||y)&&f)&&e.slidePrev()):((h||g||v||x)&&(c.preventDefault?c.preventDefault():c.returnValue=!1),(g||x)&&e.slideNext(),(h||v)&&e.slidePrev()),i("keyPress",p)}}function l(){e.keyboard.enabled||(s.addEventListener("keydown",o),e.keyboard.enabled=!0)}function u(){e.keyboard.enabled&&(s.removeEventListener("keydown",o),e.keyboard.enabled=!1)}n("init",()=>{e.params.keyboard.enabled&&l()}),n("destroy",()=>{e.keyboard.enabled&&u()}),Object.assign(e.keyboard,{enable:l,disable:u})}function _4(t){let{swiper:e,extendParams:r,on:n,emit:i}=t;const s=ce();r({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let a,o=He(),l;const u=[];function d(v){let M=0,E=0,T=0,_=0;return"detail"in v&&(E=v.detail),"wheelDelta"in v&&(E=-v.wheelDelta/120),"wheelDeltaY"in v&&(E=-v.wheelDeltaY/120),"wheelDeltaX"in v&&(M=-v.wheelDeltaX/120),"axis"in v&&v.axis===v.HORIZONTAL_AXIS&&(M=E,E=0),T=M*10,_=E*10,"deltaY"in v&&(_=v.deltaY),"deltaX"in v&&(T=v.deltaX),v.shiftKey&&!T&&(T=_,_=0),(T||_)&&v.deltaMode&&(v.deltaMode===1?(T*=40,_*=40):(T*=800,_*=800)),T&&!M&&(M=T<1?-1:1),_&&!E&&(E=_<1?-1:1),{spinX:M,spinY:E,pixelX:T,pixelY:_}}function f(){e.enabled&&(e.mouseEntered=!0)}function c(){e.enabled&&(e.mouseEntered=!1)}function p(v){return e.params.mousewheel.thresholdDelta&&v.delta=6&&He()-o<60?!0:(v.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),i("scroll",v.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),i("scroll",v.raw)),o=new s.Date().getTime(),!1)}function m(v){const x=e.params.mousewheel;if(v.direction<0){if(e.isEnd&&!e.params.loop&&x.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&x.releaseOnEdges)return!0;return!1}function h(v){let x=v,A=!0;if(!e.enabled||v.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const R=e.params.mousewheel;e.params.cssMode&&x.preventDefault();let M=e.el;e.params.mousewheel.eventsTarget!=="container"&&(M=document.querySelector(e.params.mousewheel.eventsTarget));const E=M&&M.contains(x.target);if(!e.mouseEntered&&!E&&!R.releaseOnEdges)return!0;x.originalEvent&&(x=x.originalEvent);let T=0;const _=e.rtlTranslate?-1:1,P=d(x);if(R.forceToAxis)if(e.isHorizontal())if(Math.abs(P.pixelX)>Math.abs(P.pixelY))T=-P.pixelX*_;else return!0;else if(Math.abs(P.pixelY)>Math.abs(P.pixelX))T=-P.pixelY;else return!0;else T=Math.abs(P.pixelX)>Math.abs(P.pixelY)?-P.pixelX*_:-P.pixelY;if(T===0)return!0;R.invert&&(T=-T);let O=e.getTranslate()+T*R.sensitivity;if(O>=e.minTranslate()&&(O=e.minTranslate()),O<=e.maxTranslate()&&(O=e.maxTranslate()),A=e.params.loop?!0:!(O===e.minTranslate()||O===e.maxTranslate()),A&&e.params.nested&&x.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const L={time:He(),delta:Math.abs(T),direction:Math.sign(T),raw:v};u.length>=2&&u.shift();const C=u.length?u[u.length-1]:void 0;if(u.push(L),C?(L.direction!==C.direction||L.delta>C.delta||L.time>C.time+150)&&p(L):p(L),m(L))return!0}else{const L={time:He(),delta:Math.abs(T),direction:Math.sign(T)},C=l&&L.time=e.minTranslate()&&(S=e.minTranslate()),S<=e.maxTranslate()&&(S=e.maxTranslate()),e.setTransition(0),e.setTranslate(S),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!N&&e.isBeginning||!k&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:L.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(a),a=void 0,u.length>=15&&u.shift();const j=u.length?u[u.length-1]:void 0,B=u[0];if(u.push(L),j&&(L.delta>j.delta||L.direction!==j.direction))u.splice(0);else if(u.length>=15&&L.time-B.time<500&&B.delta-L.delta>=1&&L.delta<=6){const q=T>0?.8:.2;l=L,u.splice(0),a=er(()=>{e.destroyed||!e.params||e.slideToClosest(e.params.speed,!0,void 0,q)},0)}a||(a=er(()=>{if(e.destroyed||!e.params)return;const q=.5;l=L,u.splice(0),e.slideToClosest(e.params.speed,!0,void 0,q)},500))}if(C||i("scroll",x),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),R.releaseOnEdges&&(S===e.minTranslate()||S===e.maxTranslate()))return!0}}return x.preventDefault?x.preventDefault():x.returnValue=!1,!1}function g(v){let x=e.el;e.params.mousewheel.eventsTarget!=="container"&&(x=document.querySelector(e.params.mousewheel.eventsTarget)),x[v]("mouseenter",f),x[v]("mouseleave",c),x[v]("wheel",h)}function b(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",h),!0):e.mousewheel.enabled?!1:(g("addEventListener"),e.mousewheel.enabled=!0,!0)}function y(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,h),!0):e.mousewheel.enabled?(g("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&y(),e.params.mousewheel.enabled&&b()}),n("destroy",()=>{e.params.cssMode&&b(),e.mousewheel.enabled&&y()}),Object.assign(e.mousewheel,{enable:b,disable:y})}function Kl(t,e,r,n){return t.params.createElements&&Object.keys(n).forEach(i=>{if(!r[i]&&r.auto===!0){let s=be(t.el,`.${n[i]}`)[0];s||(s=De("div",n[i]),s.className=n[i],t.el.append(s)),r[i]=s,e[i]=s}}),r}function j4(t){let{swiper:e,extendParams:r,on:n,emit:i}=t;r({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function s(m){let h;return m&&typeof m=="string"&&e.isElement&&(h=e.el.querySelector(m)||e.hostEl.querySelector(m),h)?h:(m&&(typeof m=="string"&&(h=[...document.querySelectorAll(m)]),e.params.uniqueNavElements&&typeof m=="string"&&h&&h.length>1&&e.el.querySelectorAll(m).length===1?h=e.el.querySelector(m):h&&h.length===1&&(h=h[0])),m&&!h?m:h)}function a(m,h){const g=e.params.navigation;m=Q(m),m.forEach(b=>{b&&(b.classList[h?"add":"remove"](...g.disabledClass.split(" ")),b.tagName==="BUTTON"&&(b.disabled=h),e.params.watchOverflow&&e.enabled&&b.classList[e.isLocked?"add":"remove"](g.lockClass))})}function o(){const{nextEl:m,prevEl:h}=e.navigation;if(e.params.loop){a(h,!1),a(m,!1);return}a(h,e.isBeginning&&!e.params.rewind),a(m,e.isEnd&&!e.params.rewind)}function l(m){m.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),i("navigationPrev"))}function u(m){m.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),i("navigationNext"))}function d(){const m=e.params.navigation;if(e.params.navigation=Kl(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(m.nextEl||m.prevEl))return;let h=s(m.nextEl),g=s(m.prevEl);Object.assign(e.navigation,{nextEl:h,prevEl:g}),h=Q(h),g=Q(g);const b=(y,v)=>{y&&y.addEventListener("click",v==="next"?u:l),!e.enabled&&y&&y.classList.add(...m.lockClass.split(" "))};h.forEach(y=>b(y,"next")),g.forEach(y=>b(y,"prev"))}function f(){let{nextEl:m,prevEl:h}=e.navigation;m=Q(m),h=Q(h);const g=(b,y)=>{b.removeEventListener("click",y==="next"?u:l),b.classList.remove(...e.params.navigation.disabledClass.split(" "))};m.forEach(b=>g(b,"next")),h.forEach(b=>g(b,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?p():(d(),o())}),n("toEdge fromEdge lock unlock",()=>{o()}),n("destroy",()=>{f()}),n("enable disable",()=>{let{nextEl:m,prevEl:h}=e.navigation;if(m=Q(m),h=Q(h),e.enabled){o();return}[...m,...h].filter(g=>!!g).forEach(g=>g.classList.add(e.params.navigation.lockClass))}),n("click",(m,h)=>{let{nextEl:g,prevEl:b}=e.navigation;g=Q(g),b=Q(b);const y=h.target;let v=b.includes(y)||g.includes(y);if(e.isElement&&!v){const x=h.path||h.composedPath&&h.composedPath();x&&(v=x.find(A=>g.includes(A)||b.includes(A)))}if(e.params.navigation.hideOnClick&&!v){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===y||e.pagination.el.contains(y)))return;let x;g.length?x=g[0].classList.contains(e.params.navigation.hiddenClass):b.length&&(x=b[0].classList.contains(e.params.navigation.hiddenClass)),i(x===!0?"navigationShow":"navigationHide"),[...g,...b].filter(A=>!!A).forEach(A=>A.classList.toggle(e.params.navigation.hiddenClass))}});const c=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),d(),o()},p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),f()};Object.assign(e.navigation,{enable:c,disable:p,update:o,init:d,destroy:f})}function ct(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function N4(t){let{swiper:e,extendParams:r,on:n,emit:i}=t;const s="swiper-pagination";r({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:y=>y,formatFractionTotal:y=>y,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),e.pagination={el:null,bullets:[]};let a,o=0;function l(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(y,v){const{bulletActiveClass:x}=e.params.pagination;y&&(y=y[`${v==="prev"?"previous":"next"}ElementSibling`],y&&(y.classList.add(`${x}-${v}`),y=y[`${v==="prev"?"previous":"next"}ElementSibling`],y&&y.classList.add(`${x}-${v}-${v}`)))}function d(y,v,x){if(y=y%x,v=v%x,v===y+1)return"next";if(v===y-1)return"previous"}function f(y){const v=y.target.closest(ct(e.params.pagination.bulletClass));if(!v)return;y.preventDefault();const x=An(v)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===x)return;const A=d(e.realIndex,x,e.slides.length);A==="next"?e.slideNext():A==="previous"?e.slidePrev():e.slideToLoop(x)}else e.slideTo(x)}function c(){const y=e.rtl,v=e.params.pagination;if(l())return;let x=e.pagination.el;x=Q(x);let A,R;const M=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,E=e.params.loop?Math.ceil(M/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(R=e.previousRealIndex||0,A=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(A=e.snapIndex,R=e.previousSnapIndex):(R=e.previousIndex||0,A=e.activeIndex||0),v.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const T=e.pagination.bullets;let _,P,O;if(v.dynamicBullets&&(a=Mo(T[0],e.isHorizontal()?"width":"height"),x.forEach(L=>{L.style[e.isHorizontal()?"width":"height"]=`${a*(v.dynamicMainBullets+4)}px`}),v.dynamicMainBullets>1&&R!==void 0&&(o+=A-(R||0),o>v.dynamicMainBullets-1?o=v.dynamicMainBullets-1:o<0&&(o=0)),_=Math.max(A-o,0),P=_+(Math.min(T.length,v.dynamicMainBullets)-1),O=(P+_)/2),T.forEach(L=>{const C=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(S=>`${v.bulletActiveClass}${S}`)].map(S=>typeof S=="string"&&S.includes(" ")?S.split(" "):S).flat();L.classList.remove(...C)}),x.length>1)T.forEach(L=>{const C=An(L);C===A?L.classList.add(...v.bulletActiveClass.split(" ")):e.isElement&&L.setAttribute("part","bullet"),v.dynamicBullets&&(C>=_&&C<=P&&L.classList.add(...`${v.bulletActiveClass}-main`.split(" ")),C===_&&u(L,"prev"),C===P&&u(L,"next"))});else{const L=T[A];if(L&&L.classList.add(...v.bulletActiveClass.split(" ")),e.isElement&&T.forEach((C,S)=>{C.setAttribute("part",S===A?"bullet-active":"bullet")}),v.dynamicBullets){const C=T[_],S=T[P];for(let N=_;N<=P;N+=1)T[N]&&T[N].classList.add(...`${v.bulletActiveClass}-main`.split(" "));u(C,"prev"),u(S,"next")}}if(v.dynamicBullets){const L=Math.min(T.length,v.dynamicMainBullets+4),C=(a*L-a)/2-O*a,S=y?"right":"left";T.forEach(N=>{N.style[e.isHorizontal()?S:"top"]=`${C}px`})}}x.forEach((T,_)=>{if(v.type==="fraction"&&(T.querySelectorAll(ct(v.currentClass)).forEach(P=>{P.textContent=v.formatFractionCurrent(A+1)}),T.querySelectorAll(ct(v.totalClass)).forEach(P=>{P.textContent=v.formatFractionTotal(E)})),v.type==="progressbar"){let P;v.progressbarOpposite?P=e.isHorizontal()?"vertical":"horizontal":P=e.isHorizontal()?"horizontal":"vertical";const O=(A+1)/E;let L=1,C=1;P==="horizontal"?L=O:C=O,T.querySelectorAll(ct(v.progressbarFillClass)).forEach(S=>{S.style.transform=`translate3d(0,0,0) scaleX(${L}) scaleY(${C})`,S.style.transitionDuration=`${e.params.speed}ms`})}v.type==="custom"&&v.renderCustom?(T.innerHTML=v.renderCustom(e,A+1,E),_===0&&i("paginationRender",T)):(_===0&&i("paginationRender",T),i("paginationUpdate",T)),e.params.watchOverflow&&e.enabled&&T.classList[e.isLocked?"add":"remove"](v.lockClass)})}function p(){const y=e.params.pagination;if(l())return;const v=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let x=e.pagination.el;x=Q(x);let A="";if(y.type==="bullets"){let R=e.params.loop?Math.ceil(v/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&R>v&&(R=v);for(let M=0;M`}y.type==="fraction"&&(y.renderFraction?A=y.renderFraction.call(e,y.currentClass,y.totalClass):A=` / `),y.type==="progressbar"&&(y.renderProgressbar?A=y.renderProgressbar.call(e,y.progressbarFillClass):A=``),e.pagination.bullets=[],x.forEach(R=>{y.type!=="custom"&&(R.innerHTML=A||""),y.type==="bullets"&&e.pagination.bullets.push(...R.querySelectorAll(ct(y.bulletClass)))}),y.type!=="custom"&&i("paginationRender",x[0])}function m(){e.params.pagination=Kl(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const y=e.params.pagination;if(!y.el)return;let v;typeof y.el=="string"&&e.isElement&&(v=e.el.querySelector(y.el)),!v&&typeof y.el=="string"&&(v=[...document.querySelectorAll(y.el)]),v||(v=y.el),!(!v||v.length===0)&&(e.params.uniqueNavElements&&typeof y.el=="string"&&Array.isArray(v)&&v.length>1&&(v=[...e.el.querySelectorAll(y.el)],v.length>1&&(v=v.filter(x=>Qt(x,".swiper")[0]===e.el)[0])),Array.isArray(v)&&v.length===1&&(v=v[0]),Object.assign(e.pagination,{el:v}),v=Q(v),v.forEach(x=>{y.type==="bullets"&&y.clickable&&x.classList.add(...(y.clickableClass||"").split(" ")),x.classList.add(y.modifierClass+y.type),x.classList.add(e.isHorizontal()?y.horizontalClass:y.verticalClass),y.type==="bullets"&&y.dynamicBullets&&(x.classList.add(`${y.modifierClass}${y.type}-dynamic`),o=0,y.dynamicMainBullets<1&&(y.dynamicMainBullets=1)),y.type==="progressbar"&&y.progressbarOpposite&&x.classList.add(y.progressbarOppositeClass),y.clickable&&x.addEventListener("click",f),e.enabled||x.classList.add(y.lockClass)}))}function h(){const y=e.params.pagination;if(l())return;let v=e.pagination.el;v&&(v=Q(v),v.forEach(x=>{x.classList.remove(y.hiddenClass),x.classList.remove(y.modifierClass+y.type),x.classList.remove(e.isHorizontal()?y.horizontalClass:y.verticalClass),y.clickable&&(x.classList.remove(...(y.clickableClass||"").split(" ")),x.removeEventListener("click",f))})),e.pagination.bullets&&e.pagination.bullets.forEach(x=>x.classList.remove(...y.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const y=e.params.pagination;let{el:v}=e.pagination;v=Q(v),v.forEach(x=>{x.classList.remove(y.horizontalClass,y.verticalClass),x.classList.add(e.isHorizontal()?y.horizontalClass:y.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?b():(m(),p(),c())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&c()}),n("snapIndexChange",()=>{c()}),n("snapGridLengthChange",()=>{p(),c()}),n("destroy",()=>{h()}),n("enable disable",()=>{let{el:y}=e.pagination;y&&(y=Q(y),y.forEach(v=>v.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{c()}),n("click",(y,v)=>{const x=v.target,A=Q(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&A&&A.length>0&&!x.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&x===e.navigation.nextEl||e.navigation.prevEl&&x===e.navigation.prevEl))return;const R=A[0].classList.contains(e.params.pagination.hiddenClass);i(R===!0?"paginationShow":"paginationHide"),A.forEach(M=>M.classList.toggle(e.params.pagination.hiddenClass))}});const g=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:y}=e.pagination;y&&(y=Q(y),y.forEach(v=>v.classList.remove(e.params.pagination.paginationDisabledClass))),m(),p(),c()},b=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:y}=e.pagination;y&&(y=Q(y),y.forEach(v=>v.classList.add(e.params.pagination.paginationDisabledClass))),h()};Object.assign(e.pagination,{enable:g,disable:b,render:p,update:c,init:m,destroy:h})}function R4(t){let{swiper:e,extendParams:r,on:n,emit:i}=t;const s=ye();let a=!1,o=null,l=null,u,d,f,c;r({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function p(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:O,rtlTranslate:L}=e,{dragEl:C,el:S}=O,N=e.params.scrollbar,k=e.params.loop?e.progressLoop:e.progress;let j=d,B=(f-d)*k;L?(B=-B,B>0?(j=d-B,B=0):-B+d>f&&(j=f+B)):B<0?(j=d+B,B=0):B+d>f&&(j=f-B),e.isHorizontal()?(C.style.transform=`translate3d(${B}px, 0, 0)`,C.style.width=`${j}px`):(C.style.transform=`translate3d(0px, ${B}px, 0)`,C.style.height=`${j}px`),N.hide&&(clearTimeout(o),S.style.opacity=1,o=setTimeout(()=>{S.style.opacity=0,S.style.transitionDuration="400ms"},1e3))}function m(O){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${O}ms`)}function h(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:O}=e,{dragEl:L,el:C}=O;L.style.width="",L.style.height="",f=e.isHorizontal()?C.offsetWidth:C.offsetHeight,c=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?d=f*c:d=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?L.style.width=`${d}px`:L.style.height=`${d}px`,c>=1?C.style.display="none":C.style.display="",e.params.scrollbar.hide&&(C.style.opacity=0),e.params.watchOverflow&&e.enabled&&O.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function g(O){return e.isHorizontal()?O.clientX:O.clientY}function b(O){const{scrollbar:L,rtlTranslate:C}=e,{el:S}=L;let N;N=(g(O)-Ji(S)[e.isHorizontal()?"left":"top"]-(u!==null?u:d/2))/(f-d),N=Math.max(Math.min(N,1),0),C&&(N=1-N);const k=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*N;e.updateProgress(k),e.setTranslate(k),e.updateActiveIndex(),e.updateSlidesClasses()}function y(O){const L=e.params.scrollbar,{scrollbar:C,wrapperEl:S}=e,{el:N,dragEl:k}=C;a=!0,u=O.target===k?g(O)-O.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,O.preventDefault(),O.stopPropagation(),S.style.transitionDuration="100ms",k.style.transitionDuration="100ms",b(O),clearTimeout(l),N.style.transitionDuration="0ms",L.hide&&(N.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),i("scrollbarDragStart",O)}function v(O){const{scrollbar:L,wrapperEl:C}=e,{el:S,dragEl:N}=L;a&&(O.preventDefault&&O.cancelable?O.preventDefault():O.returnValue=!1,b(O),C.style.transitionDuration="0ms",S.style.transitionDuration="0ms",N.style.transitionDuration="0ms",i("scrollbarDragMove",O))}function x(O){const L=e.params.scrollbar,{scrollbar:C,wrapperEl:S}=e,{el:N}=C;a&&(a=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",S.style.transitionDuration=""),L.hide&&(clearTimeout(l),l=er(()=>{N.style.opacity=0,N.style.transitionDuration="400ms"},1e3)),i("scrollbarDragEnd",O),L.snapOnRelease&&e.slideToClosest())}function A(O){const{scrollbar:L,params:C}=e,S=L.el;if(!S)return;const N=S,k=C.passiveListeners?{passive:!1,capture:!1}:!1,j=C.passiveListeners?{passive:!0,capture:!1}:!1;if(!N)return;const B=O==="on"?"addEventListener":"removeEventListener";N[B]("pointerdown",y,k),s[B]("pointermove",v,k),s[B]("pointerup",x,j)}function R(){!e.params.scrollbar.el||!e.scrollbar.el||A("on")}function M(){!e.params.scrollbar.el||!e.scrollbar.el||A("off")}function E(){const{scrollbar:O,el:L}=e;e.params.scrollbar=Kl(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const C=e.params.scrollbar;if(!C.el)return;let S;if(typeof C.el=="string"&&e.isElement&&(S=e.el.querySelector(C.el)),!S&&typeof C.el=="string"){if(S=s.querySelectorAll(C.el),!S.length)return}else S||(S=C.el);e.params.uniqueNavElements&&typeof C.el=="string"&&S.length>1&&L.querySelectorAll(C.el).length===1&&(S=L.querySelector(C.el)),S.length>0&&(S=S[0]),S.classList.add(e.isHorizontal()?C.horizontalClass:C.verticalClass);let N;S&&(N=S.querySelector(ct(e.params.scrollbar.dragClass)),N||(N=De("div",e.params.scrollbar.dragClass),S.append(N))),Object.assign(O,{el:S,dragEl:N}),C.draggable&&R(),S&&S.classList[e.enabled?"remove":"add"](...Tt(e.params.scrollbar.lockClass))}function T(){const O=e.params.scrollbar,L=e.scrollbar.el;L&&L.classList.remove(...Tt(e.isHorizontal()?O.horizontalClass:O.verticalClass)),M()}n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const O=e.params.scrollbar;let{el:L}=e.scrollbar;L=Q(L),L.forEach(C=>{C.classList.remove(O.horizontalClass,O.verticalClass),C.classList.add(e.isHorizontal()?O.horizontalClass:O.verticalClass)})}),n("init",()=>{e.params.scrollbar.enabled===!1?P():(E(),h(),p())}),n("update resize observerUpdate lock unlock changeDirection",()=>{h()}),n("setTranslate",()=>{p()}),n("setTransition",(O,L)=>{m(L)}),n("enable disable",()=>{const{el:O}=e.scrollbar;O&&O.classList[e.enabled?"remove":"add"](...Tt(e.params.scrollbar.lockClass))}),n("destroy",()=>{T()});const _=()=>{e.el.classList.remove(...Tt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...Tt(e.params.scrollbar.scrollbarDisabledClass)),E(),h(),p()},P=()=>{e.el.classList.add(...Tt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...Tt(e.params.scrollbar.scrollbarDisabledClass)),T()};Object.assign(e.scrollbar,{enable:_,disable:P,updateSize:h,setTranslate:p,init:E,destroy:T})}function D4(t){let{swiper:e,extendParams:r,on:n}=t;r({parallax:{enabled:!1}});const i="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",s=(l,u)=>{const{rtl:d}=e,f=d?-1:1,c=l.getAttribute("data-swiper-parallax")||"0";let p=l.getAttribute("data-swiper-parallax-x"),m=l.getAttribute("data-swiper-parallax-y");const h=l.getAttribute("data-swiper-parallax-scale"),g=l.getAttribute("data-swiper-parallax-opacity"),b=l.getAttribute("data-swiper-parallax-rotate");if(p||m?(p=p||"0",m=m||"0"):e.isHorizontal()?(p=c,m="0"):(m=c,p="0"),p.indexOf("%")>=0?p=`${parseInt(p,10)*u*f}%`:p=`${p*u*f}px`,m.indexOf("%")>=0?m=`${parseInt(m,10)*u}%`:m=`${m*u}px`,typeof g<"u"&&g!==null){const v=g-(g-1)*(1-Math.abs(u));l.style.opacity=v}let y=`translate3d(${p}, ${m}, 0px)`;if(typeof h<"u"&&h!==null){const v=h-(h-1)*(1-Math.abs(u));y+=` scale(${v})`}if(b&&typeof b<"u"&&b!==null){const v=b*u*-1;y+=` rotate(${v}deg)`}l.style.transform=y},a=()=>{const{el:l,slides:u,progress:d,snapGrid:f,isElement:c}=e,p=be(l,i);e.isElement&&p.push(...be(e.hostEl,i)),p.forEach(m=>{s(m,d)}),u.forEach((m,h)=>{let g=m.progress;e.params.slidesPerGroup>1&&e.params.slidesPerView!=="auto"&&(g+=Math.ceil(h/2)-d*(f.length-1)),g=Math.min(Math.max(g,-1),1),m.querySelectorAll(`${i}, [data-swiper-parallax-rotate]`).forEach(b=>{s(b,g)})})},o=function(l){l===void 0&&(l=e.params.speed);const{el:u,hostEl:d}=e,f=[...u.querySelectorAll(i)];e.isElement&&f.push(...d.querySelectorAll(i)),f.forEach(c=>{let p=parseInt(c.getAttribute("data-swiper-parallax-duration"),10)||l;l===0&&(p=0),c.style.transitionDuration=`${p}ms`})};n("beforeInit",()=>{e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)}),n("init",()=>{e.params.parallax.enabled&&a()}),n("setTranslate",()=>{e.params.parallax.enabled&&a()}),n("setTransition",(l,u)=>{e.params.parallax.enabled&&o(u)})}function F4(t){let{swiper:e,extendParams:r,on:n,emit:i}=t;const s=ce();r({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),e.zoom={enabled:!1};let a=1,o=!1,l,u;const d=[],f={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},c={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:{}},p={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let m=1;Object.defineProperty(e.zoom,"scale",{get(){return m},set(F){if(m!==F){const z=f.imageEl,H=f.slideEl;i("zoomChange",F,z,H)}m=F}});function h(){if(d.length<2)return 1;const F=d[0].pageX,z=d[0].pageY,H=d[1].pageX,U=d[1].pageY;return Math.sqrt((H-F)**2+(U-z)**2)}function g(){const F=e.params.zoom,z=f.imageWrapEl.getAttribute("data-swiper-zoom")||F.maxRatio;if(F.limitToOriginalSize&&f.imageEl&&f.imageEl.naturalWidth){const H=f.imageEl.naturalWidth/f.imageEl.offsetWidth;return Math.min(H,z)}return z}function b(){if(d.length<2)return{x:null,y:null};const F=f.imageEl.getBoundingClientRect();return[(d[0].pageX+(d[1].pageX-d[0].pageX)/2-F.x-s.scrollX)/a,(d[0].pageY+(d[1].pageY-d[0].pageY)/2-F.y-s.scrollY)/a]}function y(){return e.isElement?"swiper-slide":`.${e.params.slideClass}`}function v(F){const z=y();return!!(F.target.matches(z)||e.slides.filter(H=>H.contains(F.target)).length>0)}function x(F){const z=`.${e.params.zoom.containerClass}`;return!!(F.target.matches(z)||[...e.hostEl.querySelectorAll(z)].filter(H=>H.contains(F.target)).length>0)}function A(F){if(F.pointerType==="mouse"&&d.splice(0,d.length),!v(F))return;const z=e.params.zoom;if(l=!1,u=!1,d.push(F),!(d.length<2)){if(l=!0,f.scaleStart=h(),!f.slideEl){f.slideEl=F.target.closest(`.${e.params.slideClass}, swiper-slide`),f.slideEl||(f.slideEl=e.slides[e.activeIndex]);let H=f.slideEl.querySelector(`.${z.containerClass}`);if(H&&(H=H.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),f.imageEl=H,H?f.imageWrapEl=Qt(f.imageEl,`.${z.containerClass}`)[0]:f.imageWrapEl=void 0,!f.imageWrapEl){f.imageEl=void 0;return}f.maxRatio=g()}if(f.imageEl){const[H,U]=b();f.originX=H,f.originY=U,f.imageEl.style.transitionDuration="0ms"}o=!0}}function R(F){if(!v(F))return;const z=e.params.zoom,H=e.zoom,U=d.findIndex(V=>V.pointerId===F.pointerId);U>=0&&(d[U]=F),!(d.length<2)&&(u=!0,f.scaleMove=h(),f.imageEl&&(H.scale=f.scaleMove/f.scaleStart*a,H.scale>f.maxRatio&&(H.scale=f.maxRatio-1+(H.scale-f.maxRatio+1)**.5),H.scaleV.pointerId===F.pointerId);U>=0&&d.splice(U,1),!(!l||!u)&&(l=!1,u=!1,f.imageEl&&(H.scale=Math.max(Math.min(H.scale,f.maxRatio),z.minRatio),f.imageEl.style.transitionDuration=`${e.params.speed}ms`,f.imageEl.style.transform=`translate3d(0,0,0) scale(${H.scale})`,a=H.scale,o=!1,H.scale>1&&f.slideEl?f.slideEl.classList.add(`${z.zoomedSlideClass}`):H.scale<=1&&f.slideEl&&f.slideEl.classList.remove(`${z.zoomedSlideClass}`),H.scale===1&&(f.originX=0,f.originY=0,f.slideEl=void 0)))}let E;function T(){e.touchEventsData.preventTouchMoveFromPointerMove=!1}function _(){clearTimeout(E),e.touchEventsData.preventTouchMoveFromPointerMove=!0,E=setTimeout(()=>{e.destroyed||T()})}function P(F){const z=e.device;if(!f.imageEl||c.isTouched)return;z.android&&F.cancelable&&F.preventDefault(),c.isTouched=!0;const H=d.length>0?d[0]:F;c.touchesStart.x=H.pageX,c.touchesStart.y=H.pageY}function O(F){if(!v(F)||!x(F))return;const z=e.zoom;if(!f.imageEl||!c.isTouched||!f.slideEl)return;c.isMoved||(c.width=f.imageEl.offsetWidth||f.imageEl.clientWidth,c.height=f.imageEl.offsetHeight||f.imageEl.clientHeight,c.startX=Ao(f.imageWrapEl,"x")||0,c.startY=Ao(f.imageWrapEl,"y")||0,f.slideWidth=f.slideEl.offsetWidth,f.slideHeight=f.slideEl.offsetHeight,f.imageWrapEl.style.transitionDuration="0ms");const H=c.width*z.scale,U=c.height*z.scale;if(c.minX=Math.min(f.slideWidth/2-H/2,0),c.maxX=-c.minX,c.minY=Math.min(f.slideHeight/2-U/2,0),c.maxY=-c.minY,c.touchesCurrent.x=d.length>0?d[0].pageX:F.pageX,c.touchesCurrent.y=d.length>0?d[0].pageY:F.pageY,Math.max(Math.abs(c.touchesCurrent.x-c.touchesStart.x),Math.abs(c.touchesCurrent.y-c.touchesStart.y))>5&&(e.allowClick=!1),!c.isMoved&&!o){if(e.isHorizontal()&&(Math.floor(c.minX)===Math.floor(c.startX)&&c.touchesCurrent.xc.touchesStart.x)){c.isTouched=!1,T();return}if(!e.isHorizontal()&&(Math.floor(c.minY)===Math.floor(c.startY)&&c.touchesCurrent.yc.touchesStart.y)){c.isTouched=!1,T();return}}F.cancelable&&F.preventDefault(),F.stopPropagation(),_(),c.isMoved=!0;const K=(z.scale-a)/(f.maxRatio-e.params.zoom.minRatio),{originX:ae,originY:pe}=f;c.currentX=c.touchesCurrent.x-c.touchesStart.x+c.startX+K*(c.width-ae*2),c.currentY=c.touchesCurrent.y-c.touchesStart.y+c.startY+K*(c.height-pe*2),c.currentXc.maxX&&(c.currentX=c.maxX-1+(c.currentX-c.maxX+1)**.8),c.currentYc.maxY&&(c.currentY=c.maxY-1+(c.currentY-c.maxY+1)**.8),p.prevPositionX||(p.prevPositionX=c.touchesCurrent.x),p.prevPositionY||(p.prevPositionY=c.touchesCurrent.y),p.prevTime||(p.prevTime=Date.now()),p.x=(c.touchesCurrent.x-p.prevPositionX)/(Date.now()-p.prevTime)/2,p.y=(c.touchesCurrent.y-p.prevPositionY)/(Date.now()-p.prevTime)/2,Math.abs(c.touchesCurrent.x-p.prevPositionX)<2&&(p.x=0),Math.abs(c.touchesCurrent.y-p.prevPositionY)<2&&(p.y=0),p.prevPositionX=c.touchesCurrent.x,p.prevPositionY=c.touchesCurrent.y,p.prevTime=Date.now(),f.imageWrapEl.style.transform=`translate3d(${c.currentX}px, ${c.currentY}px,0)`}function L(){const F=e.zoom;if(!f.imageEl)return;if(!c.isTouched||!c.isMoved){c.isTouched=!1,c.isMoved=!1;return}c.isTouched=!1,c.isMoved=!1;let z=300,H=300;const U=p.x*z,V=c.currentX+U,K=p.y*H,ae=c.currentY+K;p.x!==0&&(z=Math.abs((V-c.currentX)/p.x)),p.y!==0&&(H=Math.abs((ae-c.currentY)/p.y));const pe=Math.max(z,H);c.currentX=V,c.currentY=ae;const sr=c.width*F.scale,Be=c.height*F.scale;c.minX=Math.min(f.slideWidth/2-sr/2,0),c.maxX=-c.minX,c.minY=Math.min(f.slideHeight/2-Be/2,0),c.maxY=-c.minY,c.currentX=Math.max(Math.min(c.currentX,c.maxX),c.minX),c.currentY=Math.max(Math.min(c.currentY,c.maxY),c.minY),f.imageWrapEl.style.transitionDuration=`${pe}ms`,f.imageWrapEl.style.transform=`translate3d(${c.currentX}px, ${c.currentY}px,0)`}function C(){const F=e.zoom;f.slideEl&&e.activeIndex!==e.slides.indexOf(f.slideEl)&&(f.imageEl&&(f.imageEl.style.transform="translate3d(0,0,0) scale(1)"),f.imageWrapEl&&(f.imageWrapEl.style.transform="translate3d(0,0,0)"),f.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`),F.scale=1,a=1,f.slideEl=void 0,f.imageEl=void 0,f.imageWrapEl=void 0,f.originX=0,f.originY=0)}function S(F){const z=e.zoom,H=e.params.zoom;if(!f.slideEl){F&&F.target&&(f.slideEl=F.target.closest(`.${e.params.slideClass}, swiper-slide`)),f.slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?f.slideEl=be(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:f.slideEl=e.slides[e.activeIndex]);let zr=f.slideEl.querySelector(`.${H.containerClass}`);zr&&(zr=zr.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),f.imageEl=zr,zr?f.imageWrapEl=Qt(f.imageEl,`.${H.containerClass}`)[0]:f.imageWrapEl=void 0}if(!f.imageEl||!f.imageWrapEl)return;e.params.cssMode&&(e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.touchAction="none"),f.slideEl.classList.add(`${H.zoomedSlideClass}`);let U,V,K,ae,pe,sr,Be,at,au,ou,lu,uu,qn,$n,Ls,_s,js,Ns;typeof c.touchesStart.x>"u"&&F?(U=F.pageX,V=F.pageY):(U=c.touchesStart.x,V=c.touchesStart.y);const Br=typeof F=="number"?F:null;a===1&&Br&&(U=void 0,V=void 0,c.touchesStart.x=void 0,c.touchesStart.y=void 0);const cu=g();z.scale=Br||cu,a=Br||cu,F&&!(a===1&&Br)?(js=f.slideEl.offsetWidth,Ns=f.slideEl.offsetHeight,K=Ji(f.slideEl).left+s.scrollX,ae=Ji(f.slideEl).top+s.scrollY,pe=K+js/2-U,sr=ae+Ns/2-V,au=f.imageEl.offsetWidth||f.imageEl.clientWidth,ou=f.imageEl.offsetHeight||f.imageEl.clientHeight,lu=au*z.scale,uu=ou*z.scale,qn=Math.min(js/2-lu/2,0),$n=Math.min(Ns/2-uu/2,0),Ls=-qn,_s=-$n,Be=pe*z.scale,at=sr*z.scale,BeLs&&(Be=Ls),at<$n&&(at=$n),at>_s&&(at=_s)):(Be=0,at=0),Br&&z.scale===1&&(f.originX=0,f.originY=0),f.imageWrapEl.style.transitionDuration="300ms",f.imageWrapEl.style.transform=`translate3d(${Be}px, ${at}px,0)`,f.imageEl.style.transitionDuration="300ms",f.imageEl.style.transform=`translate3d(0,0,0) scale(${z.scale})`}function N(){const F=e.zoom,z=e.params.zoom;if(!f.slideEl){e.params.virtual&&e.params.virtual.enabled&&e.virtual?f.slideEl=be(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:f.slideEl=e.slides[e.activeIndex];let H=f.slideEl.querySelector(`.${z.containerClass}`);H&&(H=H.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),f.imageEl=H,H?f.imageWrapEl=Qt(f.imageEl,`.${z.containerClass}`)[0]:f.imageWrapEl=void 0}!f.imageEl||!f.imageWrapEl||(e.params.cssMode&&(e.wrapperEl.style.overflow="",e.wrapperEl.style.touchAction=""),F.scale=1,a=1,c.touchesStart.x=void 0,c.touchesStart.y=void 0,f.imageWrapEl.style.transitionDuration="300ms",f.imageWrapEl.style.transform="translate3d(0,0,0)",f.imageEl.style.transitionDuration="300ms",f.imageEl.style.transform="translate3d(0,0,0) scale(1)",f.slideEl.classList.remove(`${z.zoomedSlideClass}`),f.slideEl=void 0,f.originX=0,f.originY=0)}function k(F){const z=e.zoom;z.scale&&z.scale!==1?N():S(F)}function j(){const F=e.params.passiveListeners?{passive:!0,capture:!1}:!1,z=e.params.passiveListeners?{passive:!1,capture:!0}:!0;return{passiveListener:F,activeListenerWithCapture:z}}function B(){const F=e.zoom;if(F.enabled)return;F.enabled=!0;const{passiveListener:z,activeListenerWithCapture:H}=j();e.wrapperEl.addEventListener("pointerdown",A,z),e.wrapperEl.addEventListener("pointermove",R,H),["pointerup","pointercancel","pointerout"].forEach(U=>{e.wrapperEl.addEventListener(U,M,z)}),e.wrapperEl.addEventListener("pointermove",O,H)}function q(){const F=e.zoom;if(!F.enabled)return;F.enabled=!1;const{passiveListener:z,activeListenerWithCapture:H}=j();e.wrapperEl.removeEventListener("pointerdown",A,z),e.wrapperEl.removeEventListener("pointermove",R,H),["pointerup","pointercancel","pointerout"].forEach(U=>{e.wrapperEl.removeEventListener(U,M,z)}),e.wrapperEl.removeEventListener("pointermove",O,H)}n("init",()=>{e.params.zoom.enabled&&B()}),n("destroy",()=>{q()}),n("touchStart",(F,z)=>{e.zoom.enabled&&P(z)}),n("touchEnd",(F,z)=>{e.zoom.enabled&&L()}),n("doubleTap",(F,z)=>{!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&k(z)}),n("transitionEnd",()=>{e.zoom.enabled&&e.params.zoom.enabled&&C()}),n("slideChange",()=>{e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&C()}),Object.assign(e.zoom,{enable:B,disable:q,in:S,out:N,toggle:k})}function B4(t){let{swiper:e,extendParams:r,on:n}=t;r({controller:{control:void 0,inverse:!1,by:"slide"}}),e.controller={control:void 0};function i(u,d){const f=function(){let h,g,b;return(y,v)=>{for(g=-1,h=y.length;h-g>1;)b=h+g>>1,y[b]<=v?g=b:h=b;return h}}();this.x=u,this.y=d,this.lastIndex=u.length-1;let c,p;return this.interpolate=function(h){return h?(p=f(this.x,h),c=p-1,(h-this.x[c])*(this.y[p]-this.y[c])/(this.x[p]-this.x[c])+this.y[c]):0},this}function s(u){e.controller.spline=e.params.loop?new i(e.slidesGrid,u.slidesGrid):new i(e.snapGrid,u.snapGrid)}function a(u,d){const f=e.controller.control;let c,p;const m=e.constructor;function h(g){if(g.destroyed)return;const b=e.rtlTranslate?-e.translate:e.translate;e.params.controller.by==="slide"&&(s(g),p=-e.controller.spline.interpolate(-b)),(!p||e.params.controller.by==="container")&&(c=(g.maxTranslate()-g.minTranslate())/(e.maxTranslate()-e.minTranslate()),(Number.isNaN(c)||!Number.isFinite(c))&&(c=1),p=(b-e.minTranslate())*c+g.minTranslate()),e.params.controller.inverse&&(p=g.maxTranslate()-p),g.updateProgress(p),g.setTranslate(p,e),g.updateActiveIndex(),g.updateSlidesClasses()}if(Array.isArray(f))for(let g=0;g{h.updateAutoHeight()}),ln(h.wrapperEl,()=>{c&&h.transitionEnd()})))}if(Array.isArray(c))for(p=0;p{if(typeof window<"u"&&(typeof e.params.controller.control=="string"||e.params.controller.control instanceof HTMLElement)){(typeof e.params.controller.control=="string"?[...document.querySelectorAll(e.params.controller.control)]:[e.params.controller.control]).forEach(d=>{if(e.controller.control||(e.controller.control=[]),d&&d.swiper)e.controller.control.push(d.swiper);else if(d){const f=`${e.params.eventsPrefix}init`,c=p=>{e.controller.control.push(p.detail[0]),e.update(),d.removeEventListener(f,c)};d.addEventListener(f,c)}});return}e.controller.control=e.params.controller.control}),n("update",()=>{l()}),n("resize",()=>{l()}),n("observerUpdate",()=>{l()}),n("setTranslate",(u,d,f)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTranslate(d,f)}),n("setTransition",(u,d,f)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTransition(d,f)}),Object.assign(e.controller,{setTranslate:a,setTransition:o})}function z4(t){let{swiper:e,extendParams:r,on:n}=t;r({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),e.a11y={clicked:!1};let i=null,s,a,o=new Date().getTime();function l(k){const j=i;j.length!==0&&(j.innerHTML="",j.innerHTML=k)}function u(k){const j=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(k).replace(/x/g,j)}function d(k){k=Q(k),k.forEach(j=>{j.setAttribute("tabIndex","0")})}function f(k){k=Q(k),k.forEach(j=>{j.setAttribute("tabIndex","-1")})}function c(k,j){k=Q(k),k.forEach(B=>{B.setAttribute("role",j)})}function p(k,j){k=Q(k),k.forEach(B=>{B.setAttribute("aria-roledescription",j)})}function m(k,j){k=Q(k),k.forEach(B=>{B.setAttribute("aria-controls",j)})}function h(k,j){k=Q(k),k.forEach(B=>{B.setAttribute("aria-label",j)})}function g(k,j){k=Q(k),k.forEach(B=>{B.setAttribute("id",j)})}function b(k,j){k=Q(k),k.forEach(B=>{B.setAttribute("aria-live",j)})}function y(k){k=Q(k),k.forEach(j=>{j.setAttribute("aria-disabled",!0)})}function v(k){k=Q(k),k.forEach(j=>{j.setAttribute("aria-disabled",!1)})}function x(k){if(k.keyCode!==13&&k.keyCode!==32)return;const j=e.params.a11y,B=k.target;if(!(e.pagination&&e.pagination.el&&(B===e.pagination.el||e.pagination.el.contains(k.target))&&!k.target.matches(ct(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const q=Q(e.navigation.prevEl);Q(e.navigation.nextEl).includes(B)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?l(j.lastSlideMessage):l(j.nextSlideMessage)),q.includes(B)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?l(j.firstSlideMessage):l(j.prevSlideMessage))}e.pagination&&B.matches(ct(e.params.pagination.bulletClass))&&B.click()}}function A(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:k,prevEl:j}=e.navigation;j&&(e.isBeginning?(y(j),f(j)):(v(j),d(j))),k&&(e.isEnd?(y(k),f(k)):(v(k),d(k)))}function R(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function M(){return R()&&e.params.pagination.clickable}function E(){const k=e.params.a11y;R()&&e.pagination.bullets.forEach(j=>{e.params.pagination.clickable&&(d(j),e.params.pagination.renderBullet||(c(j,"button"),h(j,k.paginationBulletMessage.replace(/\{\{index\}\}/,An(j)+1)))),j.matches(ct(e.params.pagination.bulletActiveClass))?j.setAttribute("aria-current","true"):j.removeAttribute("aria-current")})}const T=(k,j,B)=>{d(k),k.tagName!=="BUTTON"&&(c(k,"button"),k.addEventListener("keydown",x)),h(k,B),m(k,j)},_=k=>{a&&a!==k.target&&!a.contains(k.target)&&(s=!0),e.a11y.clicked=!0},P=()=>{s=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},O=k=>{o=new Date().getTime()},L=k=>{if(e.a11y.clicked||!e.params.a11y.scrollOnFocus||new Date().getTime()-o<100)return;const j=k.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!j||!e.slides.includes(j))return;a=j;const B=e.slides.indexOf(j)===e.activeIndex,q=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(j);B||q||k.sourceCapabilities&&k.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{s||(e.params.loop?e.slideToLoop(parseInt(j.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(j),0),s=!1)}))},C=()=>{const k=e.params.a11y;k.itemRoleDescriptionMessage&&p(e.slides,k.itemRoleDescriptionMessage),k.slideRole&&c(e.slides,k.slideRole);const j=e.slides.length;k.slideLabelMessage&&e.slides.forEach((B,q)=>{const F=e.params.loop?parseInt(B.getAttribute("data-swiper-slide-index"),10):q,z=k.slideLabelMessage.replace(/\{\{index\}\}/,F+1).replace(/\{\{slidesLength\}\}/,j);h(B,z)})},S=()=>{const k=e.params.a11y;e.el.append(i);const j=e.el;k.containerRoleDescriptionMessage&&p(j,k.containerRoleDescriptionMessage),k.containerMessage&&h(j,k.containerMessage),k.containerRole&&c(j,k.containerRole);const B=e.wrapperEl,q=k.id||B.getAttribute("id")||`swiper-wrapper-${u(16)}`,F=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";g(B,q),b(B,F),C();let{nextEl:z,prevEl:H}=e.navigation?e.navigation:{};z=Q(z),H=Q(H),z&&z.forEach(V=>T(V,q,k.nextSlideMessage)),H&&H.forEach(V=>T(V,q,k.prevSlideMessage)),M()&&Q(e.pagination.el).forEach(K=>{K.addEventListener("keydown",x)}),ye().addEventListener("visibilitychange",O),e.el.addEventListener("focus",L,!0),e.el.addEventListener("focus",L,!0),e.el.addEventListener("pointerdown",_,!0),e.el.addEventListener("pointerup",P,!0)};function N(){i&&i.remove();let{nextEl:k,prevEl:j}=e.navigation?e.navigation:{};k=Q(k),j=Q(j),k&&k.forEach(q=>q.removeEventListener("keydown",x)),j&&j.forEach(q=>q.removeEventListener("keydown",x)),M()&&Q(e.pagination.el).forEach(F=>{F.removeEventListener("keydown",x)}),ye().removeEventListener("visibilitychange",O),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",L,!0),e.el.removeEventListener("pointerdown",_,!0),e.el.removeEventListener("pointerup",P,!0))}n("beforeInit",()=>{i=De("span",e.params.a11y.notificationClass),i.setAttribute("aria-live","assertive"),i.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&S()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&C()}),n("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&A()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&E()}),n("destroy",()=>{e.params.a11y.enabled&&N()})}function V4(t){let{swiper:e,extendParams:r,on:n}=t;r({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let i=!1,s={};const a=p=>p.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),o=p=>{const m=ce();let h;p?h=new URL(p):h=m.location;const g=h.pathname.slice(1).split("/").filter(x=>x!==""),b=g.length,y=g[b-2],v=g[b-1];return{key:y,value:v}},l=(p,m)=>{const h=ce();if(!i||!e.params.history.enabled)return;let g;e.params.url?g=new URL(e.params.url):g=h.location;const b=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${m}"]`):e.slides[m];let y=a(b.getAttribute("data-history"));if(e.params.history.root.length>0){let x=e.params.history.root;x[x.length-1]==="/"&&(x=x.slice(0,x.length-1)),y=`${x}/${p?`${p}/`:""}${y}`}else g.pathname.includes(p)||(y=`${p?`${p}/`:""}${y}`);e.params.history.keepQuery&&(y+=g.search);const v=h.history.state;v&&v.value===y||(e.params.history.replaceState?h.history.replaceState({value:y},null,y):h.history.pushState({value:y},null,y))},u=(p,m,h)=>{if(m)for(let g=0,b=e.slides.length;g{s=o(e.params.url),u(e.params.speed,s.value,!1)},f=()=>{const p=ce();if(e.params.history){if(!p.history||!p.history.pushState){e.params.history.enabled=!1,e.params.hashNavigation.enabled=!0;return}if(i=!0,s=o(e.params.url),!s.key&&!s.value){e.params.history.replaceState||p.addEventListener("popstate",d);return}u(0,s.value,e.params.runCallbacksOnInit),e.params.history.replaceState||p.addEventListener("popstate",d)}},c=()=>{const p=ce();e.params.history.replaceState||p.removeEventListener("popstate",d)};n("init",()=>{e.params.history.enabled&&f()}),n("destroy",()=>{e.params.history.enabled&&c()}),n("transitionEnd _freeModeNoMomentumRelease",()=>{i&&l(e.params.history.key,e.activeIndex)}),n("slideChange",()=>{i&&e.params.cssMode&&l(e.params.history.key,e.activeIndex)})}function q4(t){let{swiper:e,extendParams:r,emit:n,on:i}=t,s=!1;const a=ye(),o=ce();r({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(c,p){if(e.virtual&&e.params.virtual.enabled){const m=e.slides.filter(g=>g.getAttribute("data-hash")===p)[0];return m?parseInt(m.getAttribute("data-swiper-slide-index"),10):0}return e.getSlideIndex(be(e.slidesEl,`.${e.params.slideClass}[data-hash="${p}"], swiper-slide[data-hash="${p}"]`)[0])}}});const l=()=>{n("hashChange");const c=a.location.hash.replace("#",""),p=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],m=p?p.getAttribute("data-hash"):"";if(c!==m){const h=e.params.hashNavigation.getSlideIndex(e,c);if(typeof h>"u"||Number.isNaN(h))return;e.slideTo(h)}},u=()=>{if(!s||!e.params.hashNavigation.enabled)return;const c=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],p=c?c.getAttribute("data-hash")||c.getAttribute("data-history"):"";e.params.hashNavigation.replaceState&&o.history&&o.history.replaceState?(o.history.replaceState(null,null,`#${p}`||""),n("hashSet")):(a.location.hash=p||"",n("hashSet"))},d=()=>{if(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)return;s=!0;const c=a.location.hash.replace("#","");if(c){const m=e.params.hashNavigation.getSlideIndex(e,c);e.slideTo(m||0,0,e.params.runCallbacksOnInit,!0)}e.params.hashNavigation.watchState&&o.addEventListener("hashchange",l)},f=()=>{e.params.hashNavigation.watchState&&o.removeEventListener("hashchange",l)};i("init",()=>{e.params.hashNavigation.enabled&&d()}),i("destroy",()=>{e.params.hashNavigation.enabled&&f()}),i("transitionEnd _freeModeNoMomentumRelease",()=>{s&&u()}),i("slideChange",()=>{s&&e.params.cssMode&&u()})}function $4(t){let{swiper:e,extendParams:r,on:n,emit:i,params:s}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},r({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,o,l=s&&s.autoplay?s.autoplay.delay:3e3,u=s&&s.autoplay?s.autoplay.delay:3e3,d,f=new Date().getTime(),c,p,m,h,g,b,y;function v(j){!e||e.destroyed||!e.wrapperEl||j.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",v),!(y||j.detail&&j.detail.bySwiperTouchMove)&&_())}const x=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?c=!0:c&&(u=d,c=!1);const j=e.autoplay.paused?d:f+u-new Date().getTime();e.autoplay.timeLeft=j,i("autoplayTimeLeft",j,j/l),o=requestAnimationFrame(()=>{x()})},A=()=>{let j;return e.virtual&&e.params.virtual.enabled?j=e.slides.filter(q=>q.classList.contains("swiper-slide-active"))[0]:j=e.slides[e.activeIndex],j?parseInt(j.getAttribute("data-swiper-autoplay"),10):void 0},R=j=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(o),x();let B=typeof j>"u"?e.params.autoplay.delay:j;l=e.params.autoplay.delay,u=e.params.autoplay.delay;const q=A();!Number.isNaN(q)&&q>0&&typeof j>"u"&&(B=q,l=q,u=q),d=B;const F=e.params.speed,z=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(F,!0,!0),i("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,F,!0,!0),i("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(F,!0,!0),i("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,F,!0,!0),i("autoplay")),e.params.cssMode&&(f=new Date().getTime(),requestAnimationFrame(()=>{R()})))};return B>0?(clearTimeout(a),a=setTimeout(()=>{z()},B)):requestAnimationFrame(()=>{z()}),B},M=()=>{f=new Date().getTime(),e.autoplay.running=!0,R(),i("autoplayStart")},E=()=>{e.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(o),i("autoplayStop")},T=(j,B)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(a),j||(b=!0);const q=()=>{i("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",v):_()};if(e.autoplay.paused=!0,B){g&&(d=e.params.autoplay.delay),g=!1,q();return}d=(d||e.params.autoplay.delay)-(new Date().getTime()-f),!(e.isEnd&&d<0&&!e.params.loop)&&(d<0&&(d=0),q())},_=()=>{e.isEnd&&d<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(f=new Date().getTime(),b?(b=!1,R(d)):R(),e.autoplay.paused=!1,i("autoplayResume"))},P=()=>{if(e.destroyed||!e.autoplay.running)return;const j=ye();j.visibilityState==="hidden"&&(b=!0,T(!0)),j.visibilityState==="visible"&&_()},O=j=>{j.pointerType==="mouse"&&(b=!0,y=!0,!(e.animating||e.autoplay.paused)&&T(!0))},L=j=>{j.pointerType==="mouse"&&(y=!1,e.autoplay.paused&&_())},C=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",O),e.el.addEventListener("pointerleave",L))},S=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",O),e.el.removeEventListener("pointerleave",L))},N=()=>{ye().addEventListener("visibilitychange",P)},k=()=>{ye().removeEventListener("visibilitychange",P)};n("init",()=>{e.params.autoplay.enabled&&(C(),N(),M())}),n("destroy",()=>{S(),k(),e.autoplay.running&&E()}),n("_freeModeStaticRelease",()=>{(m||b)&&_()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?E():T(!0,!0)}),n("beforeTransitionStart",(j,B,q)=>{e.destroyed||!e.autoplay.running||(q||!e.params.autoplay.disableOnInteraction?T(!0,!0):E())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){E();return}p=!0,m=!1,b=!1,h=setTimeout(()=>{b=!0,m=!0,T(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!p)){if(clearTimeout(h),clearTimeout(a),e.params.autoplay.disableOnInteraction){m=!1,p=!1;return}m&&e.params.cssMode&&_(),m=!1,p=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(g=!0)}),Object.assign(e.autoplay,{start:M,stop:E,pause:T,resume:_})}function H4(t){let{swiper:e,extendParams:r,on:n}=t;r({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let i=!1,s=!1;e.thumbs={swiper:null};function a(){const u=e.thumbs.swiper;if(!u||u.destroyed)return;const d=u.clickedIndex,f=u.clickedSlide;if(f&&f.classList.contains(e.params.thumbs.slideThumbActiveClass)||typeof d>"u"||d===null)return;let c;u.params.loop?c=parseInt(u.clickedSlide.getAttribute("data-swiper-slide-index"),10):c=d,e.params.loop?e.slideToLoop(c):e.slideTo(c)}function o(){const{thumbs:u}=e.params;if(i)return!1;i=!0;const d=e.constructor;if(u.swiper instanceof d)e.thumbs.swiper=u.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper.update();else if(tn(u.swiper)){const f=Object.assign({},u.swiper);Object.assign(f,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new d(f),s=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",a),!0}function l(u){const d=e.thumbs.swiper;if(!d||d.destroyed)return;const f=d.params.slidesPerView==="auto"?d.slidesPerViewDynamic():d.params.slidesPerView;let c=1;const p=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(c=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(c=1),c=Math.floor(c),d.slides.forEach(g=>g.classList.remove(p)),d.params.loop||d.params.virtual&&d.params.virtual.enabled)for(let g=0;g{b.classList.add(p)});else for(let g=0;gx.getAttribute("data-swiper-slide-index")===`${e.realIndex}`)[0];b=d.slides.indexOf(v),y=e.activeIndex>e.previousIndex?"next":"prev"}else b=e.realIndex,y=b>e.previousIndex?"next":"prev";h&&(b+=y==="next"?m:-1*m),d.visibleSlidesIndexes&&d.visibleSlidesIndexes.indexOf(b)<0&&(d.params.centeredSlides?b>g?b=b-Math.floor(f/2)+1:b=b+Math.floor(f/2)-1:b>g&&d.params.slidesPerGroup,d.slideTo(b,u?0:void 0))}}n("beforeInit",()=>{const{thumbs:u}=e.params;if(!(!u||!u.swiper))if(typeof u.swiper=="string"||u.swiper instanceof HTMLElement){const d=ye(),f=()=>{const p=typeof u.swiper=="string"?d.querySelector(u.swiper):u.swiper;if(p&&p.swiper)u.swiper=p.swiper,o(),l(!0);else if(p){const m=`${e.params.eventsPrefix}init`,h=g=>{u.swiper=g.detail[0],p.removeEventListener(m,h),o(),l(!0),u.swiper.update(),e.update()};p.addEventListener(m,h)}return p},c=()=>{if(e.destroyed)return;f()||requestAnimationFrame(c)};requestAnimationFrame(c)}else o(),l(!0)}),n("slideChange update resize observerUpdate",()=>{l()}),n("setTransition",(u,d)=>{const f=e.thumbs.swiper;!f||f.destroyed||f.setTransition(d)}),n("beforeDestroy",()=>{const u=e.thumbs.swiper;!u||u.destroyed||s&&u.destroy()}),Object.assign(e.thumbs,{init:o,update:l})}function U4(t){let{swiper:e,extendParams:r,emit:n,once:i}=t;r({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function s(){if(e.params.cssMode)return;const l=e.getTranslate();e.setTranslate(l),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function a(){if(e.params.cssMode)return;const{touchEventsData:l,touches:u}=e;l.velocities.length===0&&l.velocities.push({position:u[e.isHorizontal()?"startX":"startY"],time:l.touchStartTime}),l.velocities.push({position:u[e.isHorizontal()?"currentX":"currentY"],time:He()})}function o(l){let{currentPos:u}=l;if(e.params.cssMode)return;const{params:d,wrapperEl:f,rtlTranslate:c,snapGrid:p,touchEventsData:m}=e,g=He()-m.touchStartTime;if(u<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(u>-e.maxTranslate()){e.slides.length1){const E=m.velocities.pop(),T=m.velocities.pop(),_=E.position-T.position,P=E.time-T.time;e.velocity=_/P,e.velocity/=2,Math.abs(e.velocity)150||He()-E.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=d.freeMode.momentumVelocityRatio,m.velocities.length=0;let b=1e3*d.freeMode.momentumRatio;const y=e.velocity*b;let v=e.translate+y;c&&(v=-v);let x=!1,A;const R=Math.abs(e.velocity)*20*d.freeMode.momentumBounceRatio;let M;if(ve.minTranslate())d.freeMode.momentumBounce?(v-e.minTranslate()>R&&(v=e.minTranslate()+R),A=e.minTranslate(),x=!0,m.allowMomentumBounce=!0):v=e.minTranslate(),d.loop&&d.centeredSlides&&(M=!0);else if(d.freeMode.sticky){let E;for(let T=0;T-v){E=T;break}Math.abs(p[E]-v){e.loopFix()}),e.velocity!==0){if(c?b=Math.abs((-v-e.translate)/e.velocity):b=Math.abs((v-e.translate)/e.velocity),d.freeMode.sticky){const E=Math.abs((c?-v:v)-e.translate),T=e.slidesSizesGrid[e.activeIndex];E{!e||e.destroyed||!m.allowMomentumBounce||(n("momentumBounce"),e.setTransition(d.speed),setTimeout(()=>{e.setTranslate(A),ln(f,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(v),e.setTransition(b),e.setTranslate(v),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,ln(f,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(v),e.updateActiveIndex(),e.updateSlidesClasses()}else if(d.freeMode.sticky){e.slideToClosest();return}else d.freeMode&&n("_freeModeNoMomentumRelease");(!d.freeMode.momentum||g>=d.longSwipesMs)&&(n("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:s,onTouchMove:a,onTouchEnd:o}})}function W4(t){let{swiper:e,extendParams:r,on:n}=t;r({grid:{rows:1,fill:"column"}});let i,s,a,o;const l=()=>{let h=e.params.spaceBetween;return typeof h=="string"&&h.indexOf("%")>=0?h=parseFloat(h.replace("%",""))/100*e.size:typeof h=="string"&&(h=parseFloat(h)),h},u=h=>{const{slidesPerView:g}=e.params,{rows:b,fill:y}=e.params.grid,v=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:h.length;a=Math.floor(v/b),Math.floor(v/b)===v/b?i=v:i=Math.ceil(v/b)*b,g!=="auto"&&y==="row"&&(i=Math.max(i,g*b)),s=i/b},d=()=>{e.slides&&e.slides.forEach(h=>{h.swiperSlideGridSet&&(h.style.height="",h.style[e.getDirectionLabel("margin-top")]="")})},f=(h,g,b)=>{const{slidesPerGroup:y}=e.params,v=l(),{rows:x,fill:A}=e.params.grid,R=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:b.length;let M,E,T;if(A==="row"&&y>1){const _=Math.floor(h/(y*x)),P=h-x*y*_,O=_===0?y:Math.min(Math.ceil((R-_*x*y)/x),y);T=Math.floor(P/O),E=P-T*O+_*y,M=E+T*i/x,g.style.order=M}else A==="column"?(E=Math.floor(h/x),T=h-E*x,(E>a||E===a&&T===x-1)&&(T+=1,T>=x&&(T=0,E+=1))):(T=Math.floor(h/s),E=h-T*s);g.row=T,g.column=E,g.style.height=`calc((100% - ${(x-1)*v}px) / ${x})`,g.style[e.getDirectionLabel("margin-top")]=T!==0?v&&`${v}px`:"",g.swiperSlideGridSet=!0},c=(h,g)=>{const{centeredSlides:b,roundLengths:y}=e.params,v=l(),{rows:x}=e.params.grid;if(e.virtualSize=(h+v)*i,e.virtualSize=Math.ceil(e.virtualSize/x)-v,e.params.cssMode||(e.wrapperEl.style[e.getDirectionLabel("width")]=`${e.virtualSize+v}px`),b){const A=[];for(let R=0;R{o=e.params.grid&&e.params.grid.rows>1},m=()=>{const{params:h,el:g}=e,b=h.grid&&h.grid.rows>1;o&&!b?(g.classList.remove(`${h.containerModifierClass}grid`,`${h.containerModifierClass}grid-column`),a=1,e.emitContainerClasses()):!o&&b&&(g.classList.add(`${h.containerModifierClass}grid`),h.grid.fill==="column"&&g.classList.add(`${h.containerModifierClass}grid-column`),e.emitContainerClasses()),o=b};n("init",p),n("update",m),e.grid={initSlides:u,unsetSlides:d,updateSlide:f,updateWrapperSize:c}}function G4(t){const e=this,{params:r,slidesEl:n}=e;r.loop&&e.loopDestroy();const i=s=>{if(typeof s=="string"){const a=document.createElement("div");a.innerHTML=s,n.append(a.children[0]),a.innerHTML=""}else n.append(s)};if(typeof t=="object"&&"length"in t)for(let s=0;s{if(typeof o=="string"){const l=document.createElement("div");l.innerHTML=o,i.prepend(l.children[0]),l.innerHTML=""}else i.prepend(o)};if(typeof t=="object"&&"length"in t){for(let o=0;o=o){r.appendSlide(e);return}let l=a>t?a+1:a;const u=[];for(let d=o-1;d>=t;d-=1){const f=r.slides[d];f.remove(),u.unshift(f)}if(typeof e=="object"&&"length"in e){for(let d=0;dt?a+e.length:a}else s.append(e);for(let d=0;d{if(r.params.effect!==e)return;r.classNames.push(`${r.params.containerModifierClass}${e}`),o&&o()&&r.classNames.push(`${r.params.containerModifierClass}3d`);const f=a?a():{};Object.assign(r.params,f),Object.assign(r.originalParams,f)}),n("setTranslate",()=>{r.params.effect===e&&i()}),n("setTransition",(f,c)=>{r.params.effect===e&&s(c)}),n("transitionEnd",()=>{if(r.params.effect===e&&l){if(!u||!u().slideShadows)return;r.slides.forEach(f=>{f.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(c=>c.remove())}),l()}});let d;n("virtualUpdate",()=>{r.params.effect===e&&(r.slides.length||(d=!0),requestAnimationFrame(()=>{d&&r.slides&&r.slides.length&&(i(),d=!1)}))})}function zn(t,e){const r=ir(e);return r!==e&&(r.style.backfaceVisibility="hidden",r.style["-webkit-backface-visibility"]="hidden"),r}function As(t){let{swiper:e,duration:r,transformElements:n,allSlides:i}=t;const{activeIndex:s}=e,a=o=>o.parentElement?o.parentElement:e.slides.filter(u=>u.shadowRoot&&u.shadowRoot===o.parentNode)[0];if(e.params.virtualTranslate&&r!==0){let o=!1,l;i?l=n:l=n.filter(u=>{const d=u.classList.contains("swiper-slide-transform")?a(u):u;return e.getSlideIndex(d)===s}),l.forEach(u=>{ln(u,()=>{if(o||!e||e.destroyed)return;o=!0,e.animating=!1;const d=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(d)})})}}function J4(t){let{swiper:e,extendParams:r,on:n}=t;r({fadeEffect:{crossFade:!1}}),Fr({effect:"fade",swiper:e,on:n,setTranslate:()=>{const{slides:a}=e,o=e.params.fadeEffect;for(let l=0;l{const o=e.slides.map(l=>ir(l));o.forEach(l=>{l.style.transitionDuration=`${a}ms`}),As({swiper:e,duration:a,transformElements:o,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function eC(t){let{swiper:e,extendParams:r,on:n}=t;r({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const i=(l,u,d)=>{let f=d?l.querySelector(".swiper-slide-shadow-left"):l.querySelector(".swiper-slide-shadow-top"),c=d?l.querySelector(".swiper-slide-shadow-right"):l.querySelector(".swiper-slide-shadow-bottom");f||(f=De("div",`swiper-slide-shadow-cube swiper-slide-shadow-${d?"left":"top"}`.split(" ")),l.append(f)),c||(c=De("div",`swiper-slide-shadow-cube swiper-slide-shadow-${d?"right":"bottom"}`.split(" ")),l.append(c)),f&&(f.style.opacity=Math.max(-u,0)),c&&(c.style.opacity=Math.max(u,0))};Fr({effect:"cube",swiper:e,on:n,setTranslate:()=>{const{el:l,wrapperEl:u,slides:d,width:f,height:c,rtlTranslate:p,size:m,browser:h}=e,g=Ps(e),b=e.params.cubeEffect,y=e.isHorizontal(),v=e.virtual&&e.params.virtual.enabled;let x=0,A;b.shadow&&(y?(A=e.wrapperEl.querySelector(".swiper-cube-shadow"),A||(A=De("div","swiper-cube-shadow"),e.wrapperEl.append(A)),A.style.height=`${f}px`):(A=l.querySelector(".swiper-cube-shadow"),A||(A=De("div","swiper-cube-shadow"),l.append(A))));for(let M=0;M-1&&(x=T*90+O*90,p&&(x=-T*90-O*90)),E.style.transform=N,b.slideShadows&&i(E,O,y)}if(u.style.transformOrigin=`50% 50% -${m/2}px`,u.style["-webkit-transform-origin"]=`50% 50% -${m/2}px`,b.shadow)if(y)A.style.transform=`translate3d(0px, ${f/2+b.shadowOffset}px, ${-f/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${b.shadowScale})`;else{const M=Math.abs(x)-Math.floor(Math.abs(x)/90)*90,E=1.5-(Math.sin(M*2*Math.PI/360)/2+Math.cos(M*2*Math.PI/360)/2),T=b.shadowScale,_=b.shadowScale/E,P=b.shadowOffset;A.style.transform=`scale3d(${T}, 1, ${_}) translate3d(0px, ${c/2+P}px, ${-c/2/_}px) rotateX(-89.99deg)`}const R=(h.isSafari||h.isWebView)&&h.needPerspectiveFix?-m/2:0;u.style.transform=`translate3d(0px,0,${R}px) rotateX(${g(e.isHorizontal()?0:x)}deg) rotateY(${g(e.isHorizontal()?-x:0)}deg)`,u.style.setProperty("--swiper-cube-translate-z",`${R}px`)},setTransition:l=>{const{el:u,slides:d}=e;if(d.forEach(f=>{f.style.transitionDuration=`${l}ms`,f.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(c=>{c.style.transitionDuration=`${l}ms`})}),e.params.cubeEffect.shadow&&!e.isHorizontal()){const f=u.querySelector(".swiper-cube-shadow");f&&(f.style.transitionDuration=`${l}ms`)}},recreateShadows:()=>{const l=e.isHorizontal();e.slides.forEach(u=>{const d=Math.max(Math.min(u.progress,1),-1);i(u,d,l)})},getEffectParams:()=>e.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}function Or(t,e,r){const n=`swiper-slide-shadow${r?`-${r}`:""}${t?` swiper-slide-shadow-${t}`:""}`,i=ir(e);let s=i.querySelector(`.${n.split(" ").join(".")}`);return s||(s=De("div",n.split(" ")),i.append(s)),s}function tC(t){let{swiper:e,extendParams:r,on:n}=t;r({flipEffect:{slideShadows:!0,limitRotation:!0}});const i=(l,u)=>{let d=e.isHorizontal()?l.querySelector(".swiper-slide-shadow-left"):l.querySelector(".swiper-slide-shadow-top"),f=e.isHorizontal()?l.querySelector(".swiper-slide-shadow-right"):l.querySelector(".swiper-slide-shadow-bottom");d||(d=Or("flip",l,e.isHorizontal()?"left":"top")),f||(f=Or("flip",l,e.isHorizontal()?"right":"bottom")),d&&(d.style.opacity=Math.max(-u,0)),f&&(f.style.opacity=Math.max(u,0))};Fr({effect:"flip",swiper:e,on:n,setTranslate:()=>{const{slides:l,rtlTranslate:u}=e,d=e.params.flipEffect,f=Ps(e);for(let c=0;c{const u=e.slides.map(d=>ir(d));u.forEach(d=>{d.style.transitionDuration=`${l}ms`,d.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(f=>{f.style.transitionDuration=`${l}ms`})}),As({swiper:e,duration:l,transformElements:u})},recreateShadows:()=>{e.params.flipEffect,e.slides.forEach(l=>{let u=l.progress;e.params.flipEffect.limitRotation&&(u=Math.max(Math.min(l.progress,1),-1)),i(l,u)})},getEffectParams:()=>e.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function rC(t){let{swiper:e,extendParams:r,on:n}=t;r({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),Fr({effect:"coverflow",swiper:e,on:n,setTranslate:()=>{const{width:a,height:o,slides:l,slidesSizesGrid:u}=e,d=e.params.coverflowEffect,f=e.isHorizontal(),c=e.translate,p=f?-c+a/2:-c+o/2,m=f?d.rotate:-d.rotate,h=d.depth,g=Ps(e);for(let b=0,y=l.length;b0?M:0),j&&(j.style.opacity=-M>0?-M:0)}}},setTransition:a=>{e.slides.map(l=>ir(l)).forEach(l=>{l.style.transitionDuration=`${a}ms`,l.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(u=>{u.style.transitionDuration=`${a}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function nC(t){let{swiper:e,extendParams:r,on:n}=t;r({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const i=o=>typeof o=="string"?o:`${o}px`;Fr({effect:"creative",swiper:e,on:n,setTranslate:()=>{const{slides:o,wrapperEl:l,slidesSizesGrid:u}=e,d=e.params.creativeEffect,{progressMultiplier:f}=d,c=e.params.centeredSlides,p=Ps(e);if(c){const m=u[0]/2-e.params.slidesOffsetBefore||0;l.style.transform=`translateX(calc(50% - ${m}px))`}for(let m=0;m0&&(M=d.prev,R=!0),x.forEach((C,S)=>{x[S]=`calc(${C}px + (${i(M.translate[S])} * ${Math.abs(b*f)}))`}),A.forEach((C,S)=>{let N=M.rotate[S]*Math.abs(b*f);A[S]=N}),h.style.zIndex=-Math.abs(Math.round(g))+o.length;const E=x.join(", "),T=`rotateX(${p(A[0])}deg) rotateY(${p(A[1])}deg) rotateZ(${p(A[2])}deg)`,_=y<0?`scale(${1+(1-M.scale)*y*f})`:`scale(${1-(1-M.scale)*y*f})`,P=y<0?1+(1-M.opacity)*y*f:1-(1-M.opacity)*y*f,O=`translate3d(${E}) ${T} ${_}`;if(R&&M.shadow||!R){let C=h.querySelector(".swiper-slide-shadow");if(!C&&M.shadow&&(C=Or("creative",h)),C){const S=d.shadowPerProgress?b*(1/d.limitProgress):b;C.style.opacity=Math.min(Math.max(Math.abs(S),0),1)}}const L=zn(d,h);L.style.transform=O,L.style.opacity=P,M.origin&&(L.style.transformOrigin=M.origin)}},setTransition:o=>{const l=e.slides.map(u=>ir(u));l.forEach(u=>{u.style.transitionDuration=`${o}ms`,u.querySelectorAll(".swiper-slide-shadow").forEach(d=>{d.style.transitionDuration=`${o}ms`})}),As({swiper:e,duration:o,transformElements:l,allSlides:!0})},perspective:()=>e.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}function iC(t){let{swiper:e,extendParams:r,on:n}=t;r({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),Fr({effect:"cards",swiper:e,on:n,setTranslate:()=>{const{slides:a,activeIndex:o,rtlTranslate:l}=e,u=e.params.cardsEffect,{startTranslate:d,isTouched:f}=e.touchEventsData,c=l?-e.translate:e.translate;for(let p=0;p0&&g<1&&(f||e.params.cssMode)&&c-1&&(f||e.params.cssMode)&&c>d;if(T||_){const C=(1-Math.abs((Math.abs(g)-.5)/.5))**.5;R+=-28*g*C,A+=-.5*C,M+=96*C,v=`${-25*C*Math.abs(g)}%`}if(g<0?y=`calc(${y}px ${l?"-":"+"} (${M*Math.abs(g)}%))`:g>0?y=`calc(${y}px ${l?"-":"+"} (-${M*Math.abs(g)}%))`:y=`${y}px`,!e.isHorizontal()){const C=v;v=y,y=C}const P=g<0?`${1+(1-A)*g}`:`${1-(1-A)*g}`,O=` translate3d(${y}, ${v}, ${x}px) rotateZ(${u.rotate?l?-R:R:0}deg) scale(${P}) `;if(u.slideShadows){let C=m.querySelector(".swiper-slide-shadow");C||(C=Or("cards",m)),C&&(C.style.opacity=Math.min(Math.max((Math.abs(g)-.5)/.5,0),1))}m.style.zIndex=-Math.abs(Math.round(h))+a.length;const L=zn(u,m);L.style.transform=O}},setTransition:a=>{const o=e.slides.map(l=>ir(l));o.forEach(l=>{l.style.transitionDuration=`${a}ms`,l.querySelectorAll(".swiper-slide-shadow").forEach(u=>{u.style.transitionDuration=`${a}ms`})}),As({swiper:e,duration:a,transformElements:o})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}const sC=[O4,L4,_4,j4,N4,R4,D4,F4,B4,z4,V4,q4,$4,H4,U4,W4,Z4,J4,eC,tC,rC,nC,iC];Le.use(sC);const Ms=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function Lr(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function Oo(t,e){const r=["__proto__","constructor","prototype"];Object.keys(e).filter(n=>r.indexOf(n)<0).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:Lr(e[n])&&Lr(t[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?t[n]=e[n]:Oo(t[n],e[n]):t[n]=e[n]})}function aC(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function oC(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function lC(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function Oi(t){return t===void 0&&(t=""),t.replace(/-[a-z]/g,e=>e.toUpperCase().replace("-",""))}function uC(t){let{swiper:e,slides:r,passedParams:n,changedParams:i,nextEl:s,prevEl:a,scrollbarEl:o,paginationEl:l}=t;const u=i.filter(T=>T!=="children"&&T!=="direction"&&T!=="wrapperClass"),{params:d,pagination:f,navigation:c,scrollbar:p,virtual:m,thumbs:h}=e;let g,b,y,v,x,A,R,M;i.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(g=!0),i.includes("controller")&&n.controller&&n.controller.control&&d.controller&&!d.controller.control&&(b=!0),i.includes("pagination")&&n.pagination&&(n.pagination.el||l)&&(d.pagination||d.pagination===!1)&&f&&!f.el&&(y=!0),i.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||o)&&(d.scrollbar||d.scrollbar===!1)&&p&&!p.el&&(v=!0),i.includes("navigation")&&n.navigation&&(n.navigation.prevEl||a)&&(n.navigation.nextEl||s)&&(d.navigation||d.navigation===!1)&&c&&!c.prevEl&&!c.nextEl&&(x=!0);const E=T=>{e[T]&&(e[T].destroy(),T==="navigation"?(e.isElement&&(e[T].prevEl.remove(),e[T].nextEl.remove()),d[T].prevEl=void 0,d[T].nextEl=void 0,e[T].prevEl=void 0,e[T].nextEl=void 0):(e.isElement&&e[T].el.remove(),d[T].el=void 0,e[T].el=void 0))};i.includes("loop")&&e.isElement&&(d.loop&&!n.loop?A=!0:!d.loop&&n.loop?R=!0:M=!0),u.forEach(T=>{if(Lr(d[T])&&Lr(n[T]))Object.assign(d[T],n[T]),(T==="navigation"||T==="pagination"||T==="scrollbar")&&"enabled"in n[T]&&!n[T].enabled&&E(T);else{const _=n[T];(_===!0||_===!1)&&(T==="navigation"||T==="pagination"||T==="scrollbar")?_===!1&&E(T):d[T]=n[T]}}),u.includes("controller")&&!b&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),i.includes("children")&&r&&m&&d.virtual.enabled?(m.slides=r,m.update(!0)):i.includes("virtual")&&m&&d.virtual.enabled&&(r&&(m.slides=r),m.update(!0)),i.includes("children")&&r&&d.loop&&(M=!0),g&&h.init()&&h.update(!0),b&&(e.controller.control=d.controller.control),y&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),e.el.appendChild(l)),l&&(d.pagination.el=l),f.init(),f.render(),f.update()),v&&(e.isElement&&(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-scrollbar"),o.part.add("scrollbar"),e.el.appendChild(o)),o&&(d.scrollbar.el=o),p.init(),p.updateSize(),p.setTranslate()),x&&(e.isElement&&((!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-next"),s.innerHTML=e.hostEl.constructor.nextButtonSvg,s.part.add("button-next"),e.el.appendChild(s)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=e.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),e.el.appendChild(a))),s&&(d.navigation.nextEl=s),a&&(d.navigation.prevEl=a),c.init(),c.update()),i.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),i.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),i.includes("direction")&&e.changeDirection(n.direction,!1),(A||M)&&e.loopDestroy(),(R||M)&&e.loopCreate(),e.update()}const ef=t=>{if(parseFloat(t)===Number(t))return Number(t);if(t==="true"||t==="")return!0;if(t==="false")return!1;if(t==="null")return null;if(t!=="undefined"){if(typeof t=="string"&&t.includes("{")&&t.includes("}")&&t.includes('"')){let e;try{e=JSON.parse(t)}catch{e=t}return e}return t}},tf=["a11y","autoplay","controller","cards-effect","coverflow-effect","creative-effect","cube-effect","fade-effect","flip-effect","free-mode","grid","hash-navigation","history","keyboard","mousewheel","navigation","pagination","parallax","scrollbar","thumbs","virtual","zoom"];function rf(t,e,r){const n={},i={};Oo(n,Io);const s=[...Ms,"on"],a=s.map(l=>l.replace(/_/,""));s.forEach(l=>{l=l.replace("_",""),typeof t[l]<"u"&&(i[l]=t[l])});const o=[...t.attributes];return typeof e=="string"&&typeof r<"u"&&o.push({name:e,value:Lr(r)?{...r}:r}),o.forEach(l=>{const u=tf.filter(d=>l.name.indexOf(`${d}-`)===0)[0];if(u){const d=Oi(u),f=Oi(l.name.split(`${u}-`)[1]);typeof i[d]>"u"&&(i[d]={}),i[d]===!0&&(i[d]={enabled:!0}),i[d][f]=ef(l.value)}else{const d=Oi(l.name);if(!a.includes(d))return;const f=ef(l.value);i[d]&&tf.includes(l.name)&&!Lr(f)?(i[d].constructor!==Object&&(i[d]={}),i[d].enabled=!!f):i[d]=f}}),Oo(n,i),n.navigation?n.navigation={prevEl:".swiper-button-prev",nextEl:".swiper-button-next",...n.navigation!==!0?n.navigation:{}}:n.navigation===!1&&delete n.navigation,n.scrollbar?n.scrollbar={el:".swiper-scrollbar",...n.scrollbar!==!0?n.scrollbar:{}}:n.scrollbar===!1&&delete n.scrollbar,n.pagination?n.pagination={el:".swiper-pagination",...n.pagination!==!0?n.pagination:{}}:n.pagination===!1&&delete n.pagination,{params:n,passedParams:i}}const cC=":host{--swiper-theme-color:#007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{width:100%;height:100%;margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android ::slotted(swiper-slide),.swiper-ios ::slotted(swiper-slide),.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}::slotted(swiper-slide){flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}::slotted(.swiper-slide-invisible-blank){visibility:hidden}.swiper-autoheight,.swiper-autoheight ::slotted(swiper-slide){height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden ::slotted(swiper-slide){transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d ::slotted(swiper-slide){transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode ::slotted(swiper-slide){scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode ::slotted(swiper-slide){scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered ::slotted(swiper-slide){scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal ::slotted(swiper-slide):first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical ::slotted(swiper-slide):first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-virtual ::slotted(swiper-slide){-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:host{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{width:100%;height:100%;object-fit:contain;transform-origin:center}.swiper-rtl .swiper-button-next svg,.swiper-rtl .swiper-button-prev svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;touch-action:none;background:var(--swiper-scrollbar-bg-color,rgba(0,0,0,.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset,1%);bottom:var(--swiper-scrollbar-bottom,4px);top:var(--swiper-scrollbar-top,auto);z-index:50;height:var(--swiper-scrollbar-size,4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);z-index:50;width:var(--swiper-scrollbar-size,4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color,rgba(0,0,0,.5));border-radius:var(--swiper-scrollbar-border-radius,10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}::slotted(.swiper-slide-zoomed){cursor:move;touch-action:none}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode ::slotted(swiper-slide){transition-timing-function:ease-out}.swiper-fade ::slotted(swiper-slide){pointer-events:none;transition-property:opacity}.swiper-fade ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-fade ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-fade ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper.swiper-cube{overflow:visible}.swiper-cube ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-cube.swiper-rtl ::slotted(swiper-slide){transform-origin:100% 0}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-next),.swiper-cube ::slotted(.swiper-slide-prev){pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-cube ::slotted(.swiper-slide-next)+::slotted(swiper-slide){pointer-events:auto;visibility:visible}.swiper.swiper-flip{overflow:visible}.swiper-flip ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-flip ::slotted(.swiper-slide-active),.swiper-flip ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-creative ::slotted(swiper-slide){-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper.swiper-cards{overflow:visible}.swiper-cards ::slotted(swiper-slide){transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}",dC="::slotted(.swiper-slide-shadow),::slotted(.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-top){position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}::slotted(.swiper-slide-shadow){background:rgba(0,0,0,.15)}::slotted(.swiper-slide-shadow-left){background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-right){background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-top){background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-bottom){background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear;width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-zoom-container){width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}::slotted(.swiper-zoom-container)>canvas,::slotted(.swiper-zoom-container)>img,::slotted(.swiper-zoom-container)>svg{max-width:100%;max-height:100%;object-fit:contain}";class fC{}const q0=typeof window>"u"||typeof HTMLElement>"u"?fC:HTMLElement,nf=` `,$0=(t,e)=>{if(typeof CSSStyleSheet<"u"&&t.adoptedStyleSheets){const r=new CSSStyleSheet;r.replaceSync(e),t.adoptedStyleSheets=[r]}else{const r=document.createElement("style");r.rel="stylesheet",r.textContent=e,t.appendChild(r)}};class H0 extends q0{constructor(){super(),this.attachShadow({mode:"open"})}static get nextButtonSvg(){return nf}static get prevButtonSvg(){return nf.replace("/>",' transform-origin="center" transform="rotate(180)"/>')}cssStyles(){return[cC,...this.injectStyles&&Array.isArray(this.injectStyles)?this.injectStyles:[]].join(` `)}cssLinks(){return this.injectStylesUrls||[]}calcSlideSlots(){const e=this.slideSlots||0,r=[...this.querySelectorAll("[slot^=slide-]")].map(n=>parseInt(n.getAttribute("slot").split("slide-")[1],10));if(this.slideSlots=r.length?Math.max(...r)+1:0,!!this.rendered){if(this.slideSlots>e)for(let n=e;n=0;i-=1)i>this.slideSlots&&n[i].remove()}}}render(){if(this.rendered)return;this.calcSlideSlots();let e=this.cssStyles();this.slideSlots>0&&(e=e.replace(/::slotted\(([a-z-0-9.]*)\)/g,"$1")),e.length&&$0(this.shadowRoot,e),this.cssLinks().forEach(n=>{if(this.shadowRoot.querySelector(`link[href="?x=http://www.hull.ac.uk${n}"]`))return;const s=document.createElement("link");s.rel="stylesheet",s.href=n,this.shadowRoot.appendChild(s)});const r=document.createElement("div");r.classList.add("swiper"),r.part="container",r.innerHTML=`
${Array.from({length:this.slideSlots}).map((n,i)=>` `).join("")}
${aC(this.passedParams)?`
${this.constructor.prevButtonSvg}
${this.constructor.nextButtonSvg}
`:""} ${oC(this.passedParams)?`
`:""} ${lC(this.passedParams)?`
`:""} `,this.shadowRoot.appendChild(r),this.rendered=!0}initialize(){var e=this;if(this.initialized)return;this.initialized=!0;const{params:r,passedParams:n}=rf(this);this.swiperParams=r,this.passedParams=n,delete this.swiperParams.init,this.render(),this.swiper=new Le(this.shadowRoot.querySelector(".swiper"),{...r.virtual?{}:{observer:!0},...r,touchEventsTarget:"container",onAny:function(i){i==="observerUpdate"&&e.calcSlideSlots();const s=r.eventsPrefix?`${r.eventsPrefix}${i.toLowerCase()}`:i.toLowerCase();for(var a=arguments.length,o=new Array(a>1?a-1:0),l=1;lr.includes("_")).map(r=>r.replace(/[A-Z]/g,n=>`-${n}`).replace("_","").toLowerCase())}}Ms.forEach(t=>{t!=="init"&&(t=t.replace("_",""),Object.defineProperty(H0.prototype,t,{configurable:!0,get(){return(this.passedParams||{})[t]},set(e){this.passedParams||(this.passedParams={}),this.passedParams[t]=e,this.initialized&&this.updateSwiperOnPropChange(t,e)}}))});class pC extends q0{constructor(){super(),this.attachShadow({mode:"open"})}render(){const e=this.lazy||this.getAttribute("lazy")===""||this.getAttribute("lazy")==="true";if($0(this.shadowRoot,dC),this.shadowRoot.appendChild(document.createElement("slot")),e){const r=document.createElement("div");r.classList.add("swiper-lazy-preloader"),r.part.add("preloader"),this.shadowRoot.appendChild(r)}}initialize(){this.render()}connectedCallback(){this.initialize()}}const U0=()=>{typeof window>"u"||(window.customElements.get("swiper-container")||window.customElements.define("swiper-container",H0),window.customElements.get("swiper-slide")||window.customElements.define("swiper-slide",pC))};typeof window<"u"&&(window.SwiperElementRegisterParams=t=>{Ms.push(...t)});const ba=st("section",{variants:{background:{white:["bg-white","text-blue-d"],chartreuse:["bg-char","text-blue-d"],"ink blue":["bg-blue-d","text-white"],"mid blue":["bg-blue-m","text-white"],"light blue":["bg-blue-l","text-blue-d"],green:["bg-green","text-blue-d"],purple:["bg-purple","text-blue-d"],pink:["bg-pink","text-blue-d"],orange:["bg-orange","text-blue-d"]},border:{white:["border-white"],chartreuse:["border-char"],"ink blue":["border-blue-d"],"mid blue":["border-blue-m"],"light blue":["border-blue-l"],green:["border-green"],purple:["border-purple"],pink:["border-pink"],orange:["border-orange"]}}});U0();const hC=({background:t,sectData:e})=>{const r=I.useRef(null),n=p3(),[i]=d3(n.width,500);I.useEffect(()=>{const o=r.current,l={slidesPerView:1.2,spaceBetween:20,grid:{rows:2},breakpoints:{640:{slidesPerView:1.4,spaceBetween:50}},pagination:{el:".achievments-pagination",clickable:!0,bulletActiveClass:"active",renderBullet:function(){return'
'}}};i<1024&&o&&!o.initialized&&(Object.assign(o,l),o.initialize())},[s]);function s({children:o}){return i<1024?w.jsx("swiper-container",{init:"false",class:"flex h-[450px] max-w-[100%] flex-col flex-wrap pb-[20px] sm:h-[550px] sm:pb-[40px]",ref:r,children:o}):w.jsx("ul",{className:"flex flex-row flex-wrap gap-[50px]",children:o})}function a({children:o,colour:l}){return i<1024?w.jsx("swiper-slide",{class:[se(ba({border:l==null?void 0:l.entryTitle.toLowerCase()})),"flex !h-[calc(50%-40px)] flex-row items-center gap-[20px] border-y-0 border-b-[3px] border-t-0 border-solid pb-[20px] sm:!h-[calc(50%-55px)] sm:border-b-[5px]"].join(" "),children:o}):w.jsx("li",{className:[se(ba({border:l==null?void 0:l.entryTitle.toLowerCase()})),"flex basis-[calc(33.33%-34px)] flex-row items-center gap-[30px] border-y-0 border-b-[10px] border-t-0 border-solid pb-[30px]"].join(" "),children:o})}return w.jsx("section",{className:[se(ba({background:t})),"block-top before:bg-blue-d"].join(" "),"aria-label":"Our achievements",children:w.jsxs("div",{className:"container flex-col gap-[20px] lg:gap-[70px]",children:[w.jsx("h2",{className:"",children:e==null?void 0:e.title}),w.jsx(s,{children:e==null?void 0:e.nestedIconCard.map((o,l)=>w.jsxs(a,{colour:o.colour,children:[w.jsx("img",{className:"w-full min-w-0 max-w-[75px] lg:max-w-[150px]",src:""+(o==null?void 0:o.icon.asset.sys.uri),alt:o==null?void 0:o.icon.altText,width:150,height:150}),w.jsxs("div",{className:"flex flex-col gap-[15px] md:items-start lg:gap-[20px]",children:[w.jsx("h3",{className:"mb-0 font-serif text-h3 font-medium italic sm:text-dec-48",children:o==null?void 0:o.title}),w.jsx("p",{className:"text-[15px] text-tag uppercase sm:text-[17px]",dangerouslySetInnerHTML:{__html:Lt(o==null?void 0:o.description.substring(0,100),{allowedTags:["strong","em","sup"]})}})]})]},l))}),w.jsx("div",{className:"achievments-pagination absolute bottom-[50px] z-[1] flex gap-[10px] sm:bottom-[80px] lg:hidden"})]})})};function mC(t){const e=t.fill||"currentColor",r=t.secondaryfill||e,n=t.title||"arrow right";return w.jsxs("svg",{height:"80",width:"80",viewBox:"0 0 64 64",xmlns:"http://www.w3.org/2000/svg",className:"h-[50px] w-[50px] md:h-[80px] md:w-[80px]",children:[w.jsx("title",{children:n}),w.jsxs("g",{fill:r,stroke:r,strokeLinecap:"square",strokeLinejoin:"miter",strokeMiterlimit:"10",strokeWidth:"4",children:[w.jsx("polyline",{fill:"none",points:"43,14 61,32 43,50 ",stroke:"#ffffff"}),w.jsx("line",{fill:"none",stroke:e,strokeLinecap:"butt",x1:"-2",y1:"32",x2:"56",y2:"32"}),w.jsx("polyline",{fill:"none",points:"38,14 56,32 38,50 ",stroke:e})]})]})}const gC=st("section",{variants:{background:{white:["bg-white","text-blue-d"],chartreuse:["bg-char","text-blue-d"],"ink blue":["bg-blue-d","text-white"],"mid blue":["bg-blue-m","text-white"],"light blue":["bg-blue-l","text-blue-d"],green:["bg-green","text-blue-d"],purple:["bg-purple","text-blue-d"],pink:["bg-pink","text-blue-d"],orange:["bg-orange","text-blue-d"]}}});U0();const bC=({sliderData:t})=>{const e=I.useRef(null),r=I.useRef(null);return I.useEffect(()=>{const n=e.current;Object.assign(n,{slidesPerView:1,spaceBetween:20,speed:200,effect:"fade",fadeEffect:{crossFade:!0},breakpoints:{1024:{spaceBetween:50}},pagination:{el:".research-pagination",clickable:!0,bulletActiveClass:"active",renderBullet:function(){return'
'}}}),n.initialize()},[]),w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"relative z-[2] col-span-1 col-start-1 row-start-2 flex max-w-[calc(60vw-24px)] items-center overflow-visible pl-[20px] sm:row-start-2 sm:mb-[20px] sm:max-w-[50vw] sm:items-end sm:pl-[50px] xl:col-start-2 xl:row-start-3 xl:h-max xl:w-[calc(100%+110px)] xl:max-w-[40vw] xl:self-end xl:pl-0",children:[w.jsx("swiper-container",{init:"false",class:"research-slider w-[calc(100%+3px)]",ref:e,"controller-control":".image-slider",children:t==null?void 0:t.nestedImageSlide.map((n,i)=>w.jsx("swiper-slide",{children:w.jsxs("a",{href:n==null?void 0:n.link,className:"mb-[20px] flex items-center justify-between no-underline sm:mb-[30px] sm:gap-[20px] xl:mb-[50px] xl:gap-[40px]",children:[w.jsxs("div",{className:"",children:[w.jsx("h3",{className:"text-sm text-blue-m no-underline hover:underline md:text-h4",children:n==null?void 0:n.title}),w.jsx("p",{className:"text-blue-d",children:n==null?void 0:n.description})]}),w.jsx("div",{className:"hidden shrink-0 sm:block",children:w.jsx(mC,{fill:"#1D4CF2",secondaryfill:void 0,title:""})})]})},i))}),w.jsx("div",{className:"research-pagination absolute -bottom-[10px] z-[1] flex gap-[10px] sm:-bottom-[20px]"})]}),w.jsx("div",{className:"col-start-2 row-start-2 aspect-square max-w-[40vw] sm:max-w-[50vw] sm:self-end xl:col-start-3 xl:row-span-3 xl:row-start-1",children:w.jsx("swiper-container",{class:"image-slider h-full",ref:r,"slides-per-view":"1",navigation:"false",pagination:"false",effect:"fade","simulate-touch":"false","allow-touch-move":"false",children:t==null?void 0:t.nestedImageSlide.map((n,i)=>w.jsx("swiper-slide",{children:w.jsx("div",{className:"flex h-full items-end justify-between gap-[100px]",children:w.jsx("img",{className:"aspect-square h-full w-full object-cover",src:""+(n==null?void 0:n.image.asset.sys.uri)+"?f=webp&q=60",alt:n==null?void 0:n.image.altText,width:864,height:864})})},i))})})]})},yC=({sectData:t})=>{const e=""+(t==null?void 0:t.backgroundOverlay.asset.sys.uri)+"?f=webp&q=60",r=t==null?void 0:t.featuredTextColour.entryTitle.toLowerCase();return w.jsxs("section",{className:"relative","aria-label":"Our research",children:[w.jsx("div",{style:{backgroundImage:`url(${e})`},className:"absolute left-0 top-0 z-[2] h-[40px] min-w-[100vw] -translate-y-[20px] bg-cover bg-no-repeat opacity-40 sm:h-[70px] sm:-translate-y-[40px] xl:-translate-y-[30px]"}),w.jsxs("div",{className:"relative mx-auto grid w-[100vw] max-w-[1920px] auto-cols-min auto-rows-min gap-x-[24px] gap-y-[45px] overflow-hidden pb-[45px] sm:mb-[70px] sm:gap-0 xl:grid-cols-[14%_30%_45%] xl:grid-rows-3 xl:gap-[100px]",children:[w.jsx("h1",{className:[se(gC({background:r})),"col-span-2 col-start-1 row-span-2 row-start-2 mb-0 hidden h-full max-h-[260px] max-w-[730px] origin-bottom-right -translate-x-[100%] rotate-90 self-end p-[50px] text-center xl:block"].join(" "),dangerouslySetInnerHTML:{__html:Lt(t==null?void 0:t.featuredText.substring(0,50),{allowedTags:["em"]})}}),w.jsxs("div",{className:"col-span-2 col-start-1 row-start-1 flex flex-col justify-end gap-[24px] px-[20px] pt-[65px] sm:row-start-1 sm:-mb-[30px] sm:gap-[36px] sm:pl-[50px] sm:pr-[150px] sm:pt-[100px] xl:col-span-1 xl:col-start-2 xl:row-span-2 xl:row-start-1 xl:mb-0 xl:mt-[100px] xl:gap-[70px] xl:p-0",children:[w.jsx("h2",{className:"mb-0 text-blue-m",children:t==null?void 0:t.description}),w.jsx("div",{className:"flex w-max gap-md",children:t==null?void 0:t.uiPrimaryButtons.map((n,i)=>w.jsx(Ss,{btn:n,colour:n==null?void 0:n.colours.toLowerCase()},i))})]}),w.jsx(kf,{children:()=>w.jsx(bC,{sliderData:t})})]})]})},Ye=st("section",{variants:{background:{white:["bg-white-40","text-blue-d"],chartreuse:["bg-char-40","text-blue-d"],"ink blue":["bg-blue-d-40","text-white"],"mid blue":["bg-blue-m-40","text-white"],"light blue":["bg-blue-l-40","text-blue-d"],green:["bg-green-40","text-blue-d"],purple:["bg-purple-40","text-blue-d"],pink:["bg-pink-40","text-blue-d"],orange:["bg-orange-40","text-blue-d"]},afterBg:{white:["after:bg-blue-d"],chartreuse:["after:bg-char"],"ink blue":["after:bg-blue-d"],"mid blue":["after:bg-blue-m"],"light blue":["after:bg-blue-l"],green:["after:bg-green"],purple:["after:bg-purple"],pink:["after:bg-pink"],orange:["after:bg-orange"]},line:{white:["bg-blue-d"],chartreuse:["bg-char"],"ink blue":["bg-blue-d"],"mid blue":["bg-blue-m"],"light blue":["bg-blue-l"],green:["bg-green"],purple:["bg-purple"],pink:["bg-pink"],orange:["bg-orange"]},textColour:{white:["text-blue-d"],chartreuse:["text-char"],"ink blue":["text-blue-d"],"mid blue":["text-blue-m"],"light blue":["text-blue-l"],green:["text-green"],purple:["text-purple"],pink:["text-pink"],orange:["text-orange"]}}}),vC=({background:t,textColour:e,afterBg:r,line:n,sectData:i})=>{var f,c;const{error:s,data:a,isSuccess:o}=rt({queryKey:["AllNews"],queryFn:()=>t6()}),{error:l,data:u,isSuccess:d}=rt({queryKey:["Events"],queryFn:()=>n6()});return w.jsx("section",{className:[se(Ye({background:t}))].join(" "),"aria-label":"News & Events",children:w.jsxs("div",{style:{"--cols":2,"--gap":"210px"},className:["container flex flex-col gap-[45px] sm:gap-[70px] lg:flex-row lg:gap-[var(--gap)]",se(Ye({afterBg:r})),"after:left-auto after:z-auto after:order-2 after:h-[5px] after:w-[100%] sm:after:h-[10px] lg:after:absolute lg:after:left-1/2 lg:after:h-[calc(100%-200px)] lg:after:w-[10px] lg:after:-translate-x-1/2"].join(" "),children:[w.jsxs("div",{className:"order-1 grid auto-rows-min grid-cols-[auto_min-content] gap-xs sm:grid-cols-[1fr_2fr_min-content] sm:gap-x-sm sm:gap-y-md lg:basis-[calc((100%/var(--cols))-(var(--gap)/var(--cols)*(var(--cols)-1)))]",children:[w.jsx("h2",{className:[se(Ye({textColour:e})),"col-span-2 row-start-1 mb-0 min-w-max sm:col-span-1 sm:text-h2"].join(" "),children:i==null?void 0:i.newsTitle}),w.jsx("span",{className:[se([Ye({line:n})]),"row-start-3 flex h-[3px] grow-[1] self-center sm:col-start-2 sm:row-start-1"].join(" ")}),((i==null?void 0:i.newsExternalLink)!==null||(i==null?void 0:i.newsLink)!==null)&&w.jsxs("a",{href:(i==null?void 0:i.newsExternalLink)===null?(f=i==null?void 0:i.newsLink)==null?void 0:f.sys.uri:i==null?void 0:i.newsExternalLink,className:[se(Ye({textColour:e})),"col-start-2 row-start-3 flex items-center justify-between gap-1 underline hover:no-underline sm:col-start-3 sm:row-start-1 sm:min-w-max"].join(" "),children:["See all"," ",w.jsx(Qi,{fill:"",secondaryfill:void 0,title:""})]}),w.jsxs("ul",{className:"col-span-2 row-start-2 mb-[10px] flex flex-col gap-[30px] sm:col-span-3 sm:gap-[50px]",children:[s&&w.jsx("li",{children:"An error has occurred: "+s.message}),o&&(a==null?void 0:a.map((p,m)=>{var h;return w.jsxs("li",{className:"flex flex-col",children:[w.jsx("p",{className:"tag mb-[8px] lg:mb-[20px]",children:Pn(p.date,"dd MMM yyyy")}),w.jsx("a",{href:p.sys.uri!==null?p.sys.uri:p.pageUrl,className:[se(Ye({textColour:e})),"no-underline hover:underline"].join(" "),children:w.jsx("h3",{className:"mb-0 text-h4",children:(h=p==null?void 0:p.seoStandardFields)==null?void 0:h.title})})]},m)}))]})]}),w.jsxs("div",{className:"order-3 grid auto-rows-min grid-cols-[auto_min-content] gap-xs sm:grid-cols-[1fr_1fr_min-content] sm:gap-x-sm sm:gap-y-md lg:basis-[calc((100%/var(--cols))-(var(--gap)/var(--cols)*(var(--cols)-1)))]",children:[w.jsx("h2",{className:[se(Ye({textColour:e})),"col-span-2 row-start-1 mb-0 min-w-max sm:col-span-1 sm:text-h2"].join(" "),children:i==null?void 0:i.eventsTitle}),w.jsx("span",{className:[se(Ye({line:n})),"row-start-3 flex h-[3px] grow-[1] self-center sm:col-start-2 sm:row-start-1"].join(" ")}),((i==null?void 0:i.eventsExternalLink)!==null||(i==null?void 0:i.eventsLink)!==null)&&w.jsxs("a",{href:(i==null?void 0:i.eventsExternalLink)===null?(c=i==null?void 0:i.eventsLink)==null?void 0:c.sys.uri:i==null?void 0:i.eventsExternalLink,className:[se(Ye({textColour:e})),"col-start-2 row-start-3 flex items-center justify-between gap-1 underline sm:col-start-3 sm:row-start-1 sm:min-w-max"].join(" "),children:["See all"," ",w.jsx(Qi,{fill:"",secondaryfill:void 0,title:""})]}),w.jsxs("ul",{className:"col-span-2 row-start-2 mb-[10px] flex flex-col gap-[30px] sm:col-span-3 sm:gap-[50px]",children:[l&&w.jsx("li",{children:"An error has occurred: "+l.message}),d&&(u==null?void 0:u.map((p,m)=>{var h;return w.jsxs("li",{className:"flex flex-col",children:[w.jsx("p",{className:"tag mb-[8px] lg:mb-[20px]",children:Pn((h=p.dateTime)==null?void 0:h.from,"dd MMM yyyy")}),w.jsx("a",{href:p.link,className:[se(Ye({textColour:e})),"no-underline hover:underline"].join(" "),children:w.jsx("h3",{className:"mb-0 text-h4",children:p==null?void 0:p.entryTitle})})]},m)}))]})]})]})})},wC=()=>{if(typeof window<"u"){const t=window.location.hostname;return xC(t)}return null},xC=t=>t.startsWith("localhost")?"latest":t.endsWith("contensis.cloud")?t.indexOf("preview.")>-1?"latest":"published":t.endsWith("cloud.contensis.com")&&t.indexOf("preview-")>-1?"latest":"published",SC={rootUrl:"https://cms-uni-hull.cloud.contensis.com",accessToken:"rRdGBGOsFIIWzFDeXMz9Zf6gpSq8sidf5b2yeys4pqfDbQO7",projectId:"website",versionStatus:wC()},yt=zf.create(SC),TC=["title","image","entryTitle","entry","pageUrl","newPage","externalTitle","externalUrl","secondaryLogo","navItems","navigationSecondaryLinks","navigationArticles","quickLinks","uiLinks","socialIcons","searchType","showSearchBar","popularSearches","footer","awardsPartners","address","phone","sys.uri"],W0=async()=>{try{return await yt.entries.get({id:"58f56370-3165-460c-b9e9-abe4071a7509",fields:TC,linkDepth:1,fieldLinkDepths:{navItems:2,footer:2}})}catch(t){console.log(t)}};function ve(t,e,{checkForDefaultPrevented:r=!0}={}){return function(n){if(t==null||t(n),r===!1||!n.defaultPrevented)return e==null?void 0:e(n)}}function EC(t,e){typeof t=="function"?t(e):t!=null&&(t.current=e)}function G0(...t){return e=>t.forEach(r=>EC(r,e))}function nt(...t){return I.useCallback(G0(...t),t)}function CC(t,e){const r=I.createContext(e);function n(s){const{children:a,...o}=s,l=I.useMemo(()=>o,Object.values(o));return w.jsx(r.Provider,{value:l,children:a})}function i(s){const a=I.useContext(r);if(a)return a;if(e!==void 0)return e;throw new Error(`\`${s}\` must be used within \`${t}\``)}return n.displayName=t+"Provider",[n,i]}function ks(t,e=[]){let r=[];function n(s,a){const o=I.createContext(a),l=r.length;r=[...r,a];function u(f){const{scope:c,children:p,...m}=f,h=(c==null?void 0:c[t][l])||o,g=I.useMemo(()=>m,Object.values(m));return w.jsx(h.Provider,{value:g,children:p})}function d(f,c){const p=(c==null?void 0:c[t][l])||o,m=I.useContext(p);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${s}\``)}return u.displayName=s+"Provider",[u,d]}const i=()=>{const s=r.map(a=>I.createContext(a));return function(a){const o=(a==null?void 0:a[t])||s;return I.useMemo(()=>({[`__scope${t}`]:{...a,[t]:o}}),[a,o])}};return i.scopeName=t,[n,PC(i,...e)]}function PC(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(i){const s=n.reduce((a,{useScope:o,scopeName:l})=>{const u=o(i)[`__scope${l}`];return{...a,...u}},{});return I.useMemo(()=>({[`__scope${e.scopeName}`]:s}),[s])}};return r.scopeName=e.scopeName,r}var es=globalThis!=null&&globalThis.document?I.useLayoutEffect:()=>{},AC=I.useId||(()=>{}),MC=0;function un(t){const[e,r]=I.useState(AC());return es(()=>{r(n=>n??String(MC++))},[t]),e?`radix-${e}`:""}function _t(t){const e=I.useRef(t);return I.useEffect(()=>{e.current=t}),I.useMemo(()=>(...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function Ql({prop:t,defaultProp:e,onChange:r=()=>{}}){const[n,i]=kC({defaultProp:e,onChange:r}),s=t!==void 0,a=s?t:n,o=_t(r),l=I.useCallback(u=>{if(s){const d=typeof u=="function"?u(t):u;d!==t&&o(d)}else i(u)},[s,t,i,o]);return[a,l]}function kC({defaultProp:t,onChange:e}){const r=I.useState(t),[n]=r,i=I.useRef(n),s=_t(e);return I.useEffect(()=>{i.current!==n&&(s(n),i.current=n)},[n,i,s]),r}var Mn=I.forwardRef((t,e)=>{const{children:r,...n}=t,i=I.Children.toArray(r),s=i.find(OC);if(s){const a=s.props.children,o=i.map(l=>l===s?I.Children.count(a)>1?I.Children.only(null):I.isValidElement(a)?a.props.children:null:l);return w.jsx(Lo,{...n,ref:e,children:I.isValidElement(a)?I.cloneElement(a,void 0,o):null})}return w.jsx(Lo,{...n,ref:e,children:r})});Mn.displayName="Slot";var Lo=I.forwardRef((t,e)=>{const{children:r,...n}=t;if(I.isValidElement(r)){const i=_C(r);return I.cloneElement(r,{...LC(n,r.props),ref:e?G0(e,i):i})}return I.Children.count(r)>1?I.Children.only(null):null});Lo.displayName="SlotClone";var IC=({children:t})=>w.jsx(w.Fragment,{children:t});function OC(t){return I.isValidElement(t)&&t.type===IC}function LC(t,e){const r={...e};for(const n in e){const i=t[n],s=e[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...a)=>{s(...a),i(...a)}:i&&(r[n]=i):n==="style"?r[n]={...i,...s}:n==="className"&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...t,...r}}function _C(t){var e,r;let n=(e=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:e.get,i=n&&"isReactWarning"in n&&n.isReactWarning;return i?t.ref:(n=(r=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:r.get,i=n&&"isReactWarning"in n&&n.isReactWarning,i?t.props.ref:t.props.ref||t.ref)}var jC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ae=jC.reduce((t,e)=>{const r=I.forwardRef((n,i)=>{const{asChild:s,...a}=n,o=s?Mn:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(o,{...a,ref:i})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function NC(t,e){t&&Cf.flushSync(()=>t.dispatchEvent(e))}function RC(t,e=globalThis==null?void 0:globalThis.document){const r=_t(t);I.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return e.addEventListener("keydown",n,{capture:!0}),()=>e.removeEventListener("keydown",n,{capture:!0})},[r,e])}var DC="DismissableLayer",_o="dismissableLayer.update",FC="dismissableLayer.pointerDownOutside",BC="dismissableLayer.focusOutside",sf,Y0=I.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),X0=I.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:o,...l}=t,u=I.useContext(Y0),[d,f]=I.useState(null),c=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=I.useState({}),m=nt(e,M=>f(M)),h=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=h.indexOf(g),y=d?h.indexOf(d):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=b,A=qC(M=>{const E=M.target,T=[...u.branches].some(_=>_.contains(E));!x||T||(i==null||i(M),a==null||a(M),M.defaultPrevented||o==null||o())},c),R=$C(M=>{const E=M.target;[...u.branches].some(T=>T.contains(E))||(s==null||s(M),a==null||a(M),M.defaultPrevented||o==null||o())},c);return RC(M=>{y===u.layers.size-1&&(n==null||n(M),!M.defaultPrevented&&o&&(M.preventDefault(),o()))},c),I.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(sf=c.body.style.pointerEvents,c.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),af(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(c.body.style.pointerEvents=sf)}},[d,c,r,u]),I.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),af())},[d,u]),I.useEffect(()=>{const M=()=>p({});return document.addEventListener(_o,M),()=>document.removeEventListener(_o,M)},[]),w.jsx(Ae.div,{...l,ref:m,style:{pointerEvents:v?x?"auto":"none":void 0,...t.style},onFocusCapture:ve(t.onFocusCapture,R.onFocusCapture),onBlurCapture:ve(t.onBlurCapture,R.onBlurCapture),onPointerDownCapture:ve(t.onPointerDownCapture,A.onPointerDownCapture)})});X0.displayName=DC;var zC="DismissableLayerBranch",VC=I.forwardRef((t,e)=>{const r=I.useContext(Y0),n=I.useRef(null),i=nt(e,n);return I.useEffect(()=>{const s=n.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),w.jsx(Ae.div,{...t,ref:i})});VC.displayName=zC;function qC(t,e=globalThis==null?void 0:globalThis.document){const r=_t(t),n=I.useRef(!1),i=I.useRef(()=>{});return I.useEffect(()=>{const s=o=>{if(o.target&&!n.current){let l=function(){K0(FC,r,u,{discrete:!0})};const u={originalEvent:o};o.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=l,e.addEventListener("click",i.current,{once:!0})):l()}else e.removeEventListener("click",i.current);n.current=!1},a=window.setTimeout(()=>{e.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),e.removeEventListener("pointerdown",s),e.removeEventListener("click",i.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function $C(t,e=globalThis==null?void 0:globalThis.document){const r=_t(t),n=I.useRef(!1);return I.useEffect(()=>{const i=s=>{s.target&&!n.current&&K0(BC,r,{originalEvent:s},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function af(){const t=new CustomEvent(_o);document.dispatchEvent(t)}function K0(t,e,r,{discrete:n}){const i=r.originalEvent.target,s=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&i.addEventListener(t,e,{once:!0}),n?NC(i,s):i.dispatchEvent(s)}var ya="focusScope.autoFocusOnMount",va="focusScope.autoFocusOnUnmount",of={bubbles:!1,cancelable:!0},HC="FocusScope",Q0=I.forwardRef((t,e)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...a}=t,[o,l]=I.useState(null),u=_t(i),d=_t(s),f=I.useRef(null),c=nt(e,h=>l(h)),p=I.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;I.useEffect(()=>{if(n){let h=function(v){if(p.paused||!o)return;const x=v.target;o.contains(x)?f.current=x:Et(f.current,{select:!0})},g=function(v){if(p.paused||!o)return;const x=v.relatedTarget;x!==null&&(o.contains(x)||Et(f.current,{select:!0}))},b=function(v){if(document.activeElement===document.body)for(const x of v)x.removedNodes.length>0&&Et(o)};document.addEventListener("focusin",h),document.addEventListener("focusout",g);const y=new MutationObserver(b);return o&&y.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",g),y.disconnect()}}},[n,o,p.paused]),I.useEffect(()=>{if(o){uf.add(p);const h=document.activeElement;if(!o.contains(h)){const g=new CustomEvent(ya,of);o.addEventListener(ya,u),o.dispatchEvent(g),g.defaultPrevented||(UC(KC(Z0(o)),{select:!0}),document.activeElement===h&&Et(o))}return()=>{o.removeEventListener(ya,u),setTimeout(()=>{const g=new CustomEvent(va,of);o.addEventListener(va,d),o.dispatchEvent(g),g.defaultPrevented||Et(h??document.body,{select:!0}),o.removeEventListener(va,d),uf.remove(p)},0)}}},[o,u,d,p]);const m=I.useCallback(h=>{if(!r&&!n||p.paused)return;const g=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,b=document.activeElement;if(g&&b){const y=h.currentTarget,[v,x]=WC(y);v&&x?!h.shiftKey&&b===x?(h.preventDefault(),r&&Et(v,{select:!0})):h.shiftKey&&b===v&&(h.preventDefault(),r&&Et(x,{select:!0})):b===y&&h.preventDefault()}},[r,n,p.paused]);return w.jsx(Ae.div,{tabIndex:-1,...a,ref:c,onKeyDown:m})});Q0.displayName=HC;function UC(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(Et(n,{select:e}),document.activeElement!==r)return}function WC(t){const e=Z0(t),r=lf(e,t),n=lf(e.reverse(),t);return[r,n]}function Z0(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function lf(t,e){for(const r of t)if(!GC(r,{upTo:e}))return r}function GC(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function YC(t){return t instanceof HTMLInputElement&&"select"in t}function Et(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&YC(t)&&e&&t.select()}}var uf=XC();function XC(){let t=[];return{add(e){const r=t[0];e!==r&&(r==null||r.pause()),t=cf(t,e),t.unshift(e)},remove(e){var r;t=cf(t,e),(r=t[0])==null||r.resume()}}}function cf(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function KC(t){return t.filter(e=>e.tagName!=="A")}var QC="Portal",J0=I.forwardRef((t,e)=>{var r;const{container:n,...i}=t,[s,a]=I.useState(!1);es(()=>a(!0),[]);const o=n||s&&((r=globalThis==null?void 0:globalThis.document)==null?void 0:r.body);return o?sg.createPortal(w.jsx(Ae.div,{...i,ref:e}),o):null});J0.displayName=QC;function ZC(t,e){return I.useReducer((r,n)=>e[r][n]??r,t)}var Vn=t=>{const{present:e,children:r}=t,n=JC(e),i=typeof r=="function"?r({present:n.isPresent}):I.Children.only(r),s=nt(n.ref,eP(i));return typeof r=="function"||n.isPresent?I.cloneElement(i,{ref:s}):null};Vn.displayName="Presence";function JC(t){const[e,r]=I.useState(),n=I.useRef({}),i=I.useRef(t),s=I.useRef("none"),a=t?"mounted":"unmounted",[o,l]=ZC(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return I.useEffect(()=>{const u=bi(n.current);s.current=o==="mounted"?u:"none"},[o]),es(()=>{const u=n.current,d=i.current;if(d!==t){const f=s.current,c=bi(u);t?l("MOUNT"):c==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&f!==c?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,l]),es(()=>{if(e){const u=f=>{const c=bi(n.current).includes(f.animationName);f.target===e&&c&&Cf.flushSync(()=>l("ANIMATION_END"))},d=f=>{f.target===e&&(s.current=bi(n.current))};return e.addEventListener("animationstart",d),e.addEventListener("animationcancel",u),e.addEventListener("animationend",u),()=>{e.removeEventListener("animationstart",d),e.removeEventListener("animationcancel",u),e.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:I.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function bi(t){return(t==null?void 0:t.animationName)||"none"}function eP(t){var e,r;let n=(e=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:e.get,i=n&&"isReactWarning"in n&&n.isReactWarning;return i?t.ref:(n=(r=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:r.get,i=n&&"isReactWarning"in n&&n.isReactWarning,i?t.props.ref:t.props.ref||t.ref)}var wa=0;function tP(){I.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??df()),document.body.insertAdjacentElement("beforeend",t[1]??df()),wa++,()=>{wa===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),wa--}},[])}function df(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",t}var Ze=function(){return Ze=Object.assign||function(t){for(var e,r=1,n=arguments.length;r"u")return yP;var e=vP(t),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-r+e[2]-e[0])}},xP=nm(),vr="data-scroll-locked",SP=function(t,e,r,n){var i=t.left,s=t.top,a=t.right,o=t.gap;return r===void 0&&(r="margin"),` .`.concat(nP,` { overflow: hidden `).concat(n,`; padding-right: `).concat(o,"px ").concat(n,`; } body[`).concat(vr,`] { overflow: hidden `).concat(n,`; overscroll-behavior: contain; `).concat([e&&"position: relative ".concat(n,";"),r==="margin"&&` padding-left: `.concat(i,`px; padding-top: `).concat(s,`px; padding-right: `).concat(a,`px; margin-left:0; margin-top:0; margin-right: `).concat(o,"px ").concat(n,`; `),r==="padding"&&"padding-right: ".concat(o,"px ").concat(n,";")].filter(Boolean).join(""),` } .`).concat(Li,` { right: `).concat(o,"px ").concat(n,`; } .`).concat(_i,` { margin-right: `).concat(o,"px ").concat(n,`; } .`).concat(Li," .").concat(Li,` { right: 0 `).concat(n,`; } .`).concat(_i," .").concat(_i,` { margin-right: 0 `).concat(n,`; } body[`).concat(vr,`] { `).concat(iP,": ").concat(o,`px; } `)},pf=function(){var t=parseInt(document.body.getAttribute(vr)||"0",10);return isFinite(t)?t:0},TP=function(){I.useEffect(function(){return document.body.setAttribute(vr,(pf()+1).toString()),function(){var t=pf()-1;t<=0?document.body.removeAttribute(vr):document.body.setAttribute(vr,t.toString())}},[])},EP=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,i=n===void 0?"margin":n;TP();var s=I.useMemo(function(){return wP(i)},[i]);return I.createElement(xP,{styles:SP(s,!e,i,r?"":"!important")})},jo=!1;if(typeof window<"u")try{var yi=Object.defineProperty({},"passive",{get:function(){return jo=!0,!0}});window.addEventListener("test",yi,yi),window.removeEventListener("test",yi,yi)}catch{jo=!1}var ur=jo?{passive:!1}:!1,CP=function(t){return t.tagName==="TEXTAREA"},im=function(t,e){var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!CP(t)&&r[e]==="visible")},PP=function(t){return im(t,"overflowY")},AP=function(t){return im(t,"overflowX")},hf=function(t,e){var r=e.ownerDocument,n=e;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=sm(t,n);if(i){var s=am(t,n),a=s[1],o=s[2];if(a>o)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},MP=function(t){var e=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[e,r,n]},kP=function(t){var e=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[e,r,n]},sm=function(t,e){return t==="v"?PP(e):AP(e)},am=function(t,e){return t==="v"?MP(e):kP(e)},IP=function(t,e){return t==="h"&&e==="rtl"?-1:1},OP=function(t,e,r,n,i){var s=IP(t,window.getComputedStyle(e).direction),a=s*n,o=r.target,l=e.contains(o),u=!1,d=a>0,f=0,c=0;do{var p=am(t,o),m=p[0],h=p[1],g=p[2],b=h-g-s*m;(m||b)&&sm(t,o)&&(f+=b,c+=m),o instanceof ShadowRoot?o=o.host:o=o.parentNode}while(!l&&o!==document.body||l&&(e.contains(o)||e===o));return(d&&(Math.abs(f)<1||!i)||!d&&(Math.abs(c)<1||!i))&&(u=!0),u},vi=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},mf=function(t){return[t.deltaX,t.deltaY]},gf=function(t){return t&&"current"in t?t.current:t},LP=function(t,e){return t[0]===e[0]&&t[1]===e[1]},_P=function(t){return` .block-interactivity-`.concat(t,` {pointer-events: none;} .allow-interactivity-`).concat(t,` {pointer-events: all;} `)},jP=0,cr=[];function NP(t){var e=I.useRef([]),r=I.useRef([0,0]),n=I.useRef(),i=I.useState(jP++)[0],s=I.useState(nm)[0],a=I.useRef(t);I.useEffect(function(){a.current=t},[t]),I.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var h=rP([t.lockRef.current],(t.shards||[]).map(gf)).filter(Boolean);return h.forEach(function(g){return g.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),h.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var o=I.useCallback(function(h,g){if("touches"in h&&h.touches.length===2)return!a.current.allowPinchZoom;var b=vi(h),y=r.current,v="deltaX"in h?h.deltaX:y[0]-b[0],x="deltaY"in h?h.deltaY:y[1]-b[1],A,R=h.target,M=Math.abs(v)>Math.abs(x)?"h":"v";if("touches"in h&&M==="h"&&R.type==="range")return!1;var E=hf(M,R);if(!E)return!0;if(E?A=M:(A=M==="v"?"h":"v",E=hf(M,R)),!E)return!1;if(!n.current&&"changedTouches"in h&&(v||x)&&(n.current=A),!A)return!0;var T=n.current||A;return OP(T,g,h,T==="h"?v:x,!0)},[]),l=I.useCallback(function(h){var g=h;if(!(!cr.length||cr[cr.length-1]!==s)){var b="deltaY"in g?mf(g):vi(g),y=e.current.filter(function(A){return A.name===g.type&&(A.target===g.target||g.target===A.shadowParent)&&LP(A.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var v=(a.current.shards||[]).map(gf).filter(Boolean).filter(function(A){return A.contains(g.target)}),x=v.length>0?o(g,v[0]):!a.current.noIsolation;x&&g.cancelable&&g.preventDefault()}}},[]),u=I.useCallback(function(h,g,b,y){var v={name:h,delta:g,target:b,should:y,shadowParent:RP(b)};e.current.push(v),setTimeout(function(){e.current=e.current.filter(function(x){return x!==v})},1)},[]),d=I.useCallback(function(h){r.current=vi(h),n.current=void 0},[]),f=I.useCallback(function(h){u(h.type,mf(h),h.target,o(h,t.lockRef.current))},[]),c=I.useCallback(function(h){u(h.type,vi(h),h.target,o(h,t.lockRef.current))},[]);I.useEffect(function(){return cr.push(s),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:c}),document.addEventListener("wheel",l,ur),document.addEventListener("touchmove",l,ur),document.addEventListener("touchstart",d,ur),function(){cr=cr.filter(function(h){return h!==s}),document.removeEventListener("wheel",l,ur),document.removeEventListener("touchmove",l,ur),document.removeEventListener("touchstart",d,ur)}},[]);var p=t.removeScrollBar,m=t.inert;return I.createElement(I.Fragment,null,m?I.createElement(s,{styles:_P(i)}):null,p?I.createElement(EP,{gapMode:t.gapMode}):null)}function RP(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const DP=dP(rm,NP);var om=I.forwardRef(function(t,e){return I.createElement(Is,Ze({},t,{ref:e,sideCar:DP}))});om.classNames=Is.classNames;var FP=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},dr=new WeakMap,wi=new WeakMap,xi={},Ea=0,lm=function(t){return t&&(t.host||lm(t.parentNode))},BP=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=lm(r);return n&&t.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},zP=function(t,e,r,n){var i=BP(e,Array.isArray(t)?t:[t]);xi[r]||(xi[r]=new WeakMap);var s=xi[r],a=[],o=new Set,l=new Set(i),u=function(f){!f||o.has(f)||(o.add(f),u(f.parentNode))};i.forEach(u);var d=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(c){if(o.has(c))d(c);else try{var p=c.getAttribute(n),m=p!==null&&p!=="false",h=(dr.get(c)||0)+1,g=(s.get(c)||0)+1;dr.set(c,h),s.set(c,g),a.push(c),h===1&&m&&wi.set(c,!0),g===1&&c.setAttribute(r,"true"),m||c.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",c,b)}})};return d(e),o.clear(),Ea++,function(){a.forEach(function(f){var c=dr.get(f)-1,p=s.get(f)-1;dr.set(f,c),s.set(f,p),c||(wi.has(f)||f.removeAttribute(n),wi.delete(f)),p||f.removeAttribute(r)}),Ea--,Ea||(dr=new WeakMap,dr=new WeakMap,wi=new WeakMap,xi={})}},VP=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),i=FP(t);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),zP(n,i,r,"aria-hidden")):function(){return null}},Zl="Dialog",[um,mA]=ks(Zl),[qP,Ge]=um(Zl),cm=t=>{const{__scopeDialog:e,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:a=!0}=t,o=I.useRef(null),l=I.useRef(null),[u=!1,d]=Ql({prop:n,defaultProp:i,onChange:s});return w.jsx(qP,{scope:e,triggerRef:o,contentRef:l,contentId:un(),titleId:un(),descriptionId:un(),open:u,onOpenChange:d,onOpenToggle:I.useCallback(()=>d(f=>!f),[d]),modal:a,children:r})};cm.displayName=Zl;var dm="DialogTrigger",fm=I.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=Ge(dm,r),s=nt(e,i.triggerRef);return w.jsx(Ae.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":tu(i.open),...n,ref:s,onClick:ve(t.onClick,i.onOpenToggle)})});fm.displayName=dm;var Jl="DialogPortal",[$P,pm]=um(Jl,{forceMount:void 0}),hm=t=>{const{__scopeDialog:e,forceMount:r,children:n,container:i}=t,s=Ge(Jl,e);return w.jsx($P,{scope:e,forceMount:r,children:I.Children.map(n,a=>w.jsx(Vn,{present:r||s.open,children:w.jsx(J0,{asChild:!0,container:i,children:a})}))})};hm.displayName=Jl;var ts="DialogOverlay",mm=I.forwardRef((t,e)=>{const r=pm(ts,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,s=Ge(ts,t.__scopeDialog);return s.modal?w.jsx(Vn,{present:n||s.open,children:w.jsx(HP,{...i,ref:e})}):null});mm.displayName=ts;var HP=I.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=Ge(ts,r);return w.jsx(om,{as:Mn,allowPinchZoom:!0,shards:[i.contentRef],children:w.jsx(Ae.div,{"data-state":tu(i.open),...n,ref:e,style:{pointerEvents:"auto",...n.style}})})}),tr="DialogContent",gm=I.forwardRef((t,e)=>{const r=pm(tr,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,s=Ge(tr,t.__scopeDialog);return w.jsx(Vn,{present:n||s.open,children:s.modal?w.jsx(UP,{...i,ref:e}):w.jsx(WP,{...i,ref:e})})});gm.displayName=tr;var UP=I.forwardRef((t,e)=>{const r=Ge(tr,t.__scopeDialog),n=I.useRef(null),i=nt(e,r.contentRef,n);return I.useEffect(()=>{const s=n.current;if(s)return VP(s)},[]),w.jsx(bm,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ve(t.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=r.triggerRef.current)==null||a.focus()}),onPointerDownOutside:ve(t.onPointerDownOutside,s=>{const a=s.detail.originalEvent,o=a.button===0&&a.ctrlKey===!0;(a.button===2||o)&&s.preventDefault()}),onFocusOutside:ve(t.onFocusOutside,s=>s.preventDefault())})}),WP=I.forwardRef((t,e)=>{const r=Ge(tr,t.__scopeDialog),n=I.useRef(!1),i=I.useRef(!1);return w.jsx(bm,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,o;(a=t.onCloseAutoFocus)==null||a.call(t,s),s.defaultPrevented||(n.current||(o=r.triggerRef.current)==null||o.focus(),s.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:s=>{var a,o;(a=t.onInteractOutside)==null||a.call(t,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=s.target;(o=r.triggerRef.current)!=null&&o.contains(l)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})}),bm=I.forwardRef((t,e)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:s,...a}=t,o=Ge(tr,r),l=I.useRef(null),u=nt(e,l);return tP(),w.jsxs(w.Fragment,{children:[w.jsx(Q0,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:s,children:w.jsx(X0,{role:"dialog",id:o.contentId,"aria-describedby":o.descriptionId,"aria-labelledby":o.titleId,"data-state":tu(o.open),...a,ref:u,onDismiss:()=>o.onOpenChange(!1)})}),w.jsxs(w.Fragment,{children:[w.jsx(GP,{titleId:o.titleId}),w.jsx(XP,{contentRef:l,descriptionId:o.descriptionId})]})]})}),eu="DialogTitle",ym=I.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=Ge(eu,r);return w.jsx(Ae.h2,{id:i.titleId,...n,ref:e})});ym.displayName=eu;var vm="DialogDescription",wm=I.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=Ge(vm,r);return w.jsx(Ae.p,{id:i.descriptionId,...n,ref:e})});wm.displayName=vm;var xm="DialogClose",Sm=I.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=Ge(xm,r);return w.jsx(Ae.button,{type:"button",...n,ref:e,onClick:ve(t.onClick,()=>i.onOpenChange(!1))})});Sm.displayName=xm;function tu(t){return t?"open":"closed"}var Tm="DialogTitleWarning",[gA,Em]=CC(Tm,{contentName:tr,titleName:eu,docsSlug:"dialog"}),GP=({titleId:t})=>{const e=Em(Tm),r=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component. For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return I.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},YP="DialogDescriptionWarning",XP=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Em(YP).contentName}}.`;return I.useEffect(()=>{var n;const i=(n=t.current)==null?void 0:n.getAttribute("aria-describedby");e&&i&&(document.getElementById(e)||console.warn(r))},[r,t,e]),null},KP=cm,QP=fm,ZP=hm,Cm=mm,Pm=gm,Am=ym,Mm=wm,JP=Sm;function km(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;etypeof t=="boolean"?"".concat(t):t===0?"0":t,yf=e8,t8=(t,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return yf(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:s}=e,a=Object.keys(i).map(u=>{const d=r==null?void 0:r[u],f=s==null?void 0:s[u];if(d===null)return null;const c=bf(d)||bf(f);return i[u][c]}),o=r&&Object.entries(r).reduce((u,d)=>{let[f,c]=d;return c===void 0||(u[f]=c),u},{}),l=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((u,d)=>{let{class:f,className:c,...p}=d;return Object.entries(p).every(m=>{let[h,g]=m;return Array.isArray(g)?g.includes({...s,...o}[h]):{...s,...o}[h]===g})?[...u,f,c]:u},[]);return yf(t,a,l,r==null?void 0:r.class,r==null?void 0:r.className)};function Im(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;ew.jsx(Cm,{className:jt("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e,ref:r}));s8.displayName=Cm.displayName;const a8=t8("fixed z-50 gap-4 bg-white p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500 dark:bg-slate-950",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),ru=I.forwardRef(({side:t="right",className:e,children:r,...n},i)=>w.jsxs(i8,{children:[!(e!=null&&e.includes("no-overlay"))&&w.jsx("div",{className:jt("fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0")}),w.jsx(Pm,{ref:i,className:jt(a8({side:t}),e),...n,children:r})]}));ru.displayName=Pm.displayName;const nu=I.forwardRef(({className:t,...e},r)=>w.jsx(Am,{ref:r,className:jt("text-slate-950 dark:text-slate-50 text-lg font-semibold",t),...e}));nu.displayName=Am.displayName;const o8=I.forwardRef(({className:t,...e},r)=>w.jsx(Mm,{ref:r,className:jt("text-slate-500 dark:text-slate-400 text-sm",t),...e}));o8.displayName=Mm.displayName;function l8(t){const e=t.fill||"currentColor",r=t.secondaryfill||e,n=t.title||"menu icon";return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:"35",width:"35",viewBox:"0 0 48 48",children:[w.jsx("title",{children:n}),w.jsxs("g",{strokeLinecap:"square",strokeWidth:"3",fill:r,stroke:r,strokeLinejoin:"miter",strokeMiterlimit:"10",children:[w.jsxs("g",{className:"js-nc-int-icon nc-int-menu",children:[w.jsx("line",{x1:"24",y1:"10",x2:"46",y2:"10",stroke:e}),w.jsx("line",{x1:"2",y1:"24",x2:"46",y2:"24",stroke:e}),w.jsx("line",{x1:"2",y1:"38",x2:"24",y2:"38",stroke:e})]}),w.jsx("style",{children:".menu{transition:background 0.2s ease-in-out}.menu .nc-int-menu :first-child,.nc-int-menu :last-child{stroke-dasharray:46;stroke-dashoffset:16;transition:transform 0.3s cubic-bezier(.17,.84,.44,1)}.menu:hover,.menu.active{background:#d7f777}.menu:hover>svg line,.menu.active>svg line{fill:#0e1647;stroke:#0e1647}.menu:hover .nc-int-menu :first-child, .menu.active .nc-int-menu :first-child{transform:translateX(-22px)}.menu:hover .nc-int-menu :last-child, .menu.active .nc-int-menu :last-child{transform:translateX(22px)}"})]})]})}function u8(t){const e=t.fill||"currentColor",r=t.secondaryfill||e,n=t.title||"search icon";return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:"35",width:"35",viewBox:"0 0 48 48",children:[w.jsx("title",{children:n}),w.jsxs("g",{strokeLinecap:"square",strokeWidth:"3",fill:"none",stroke:r,strokeLinejoin:"miter",strokeMiterlimit:"10",children:[w.jsxs("g",{className:"js-nc-int-icon nc-int-search",children:[w.jsx("line",{x1:"44",y1:"44",x2:"31.314",y2:"31.314",stroke:e}),w.jsx("circle",{cx:"20",cy:"20",r:"16",stroke:e})]}),w.jsx("style",{children:".search{transition:background 0.2s ease-in-out}.search .nc-int-search{transition:all 0.3s cubic-bezier(.17,.84,.44,1);transform:rotate(0);transform-origin:center}.search:hover,.search.active{background:#d7f777}.search:hover>svg line,.search.active>svg line,.search:hover>svg circle,.search.active>svg circle{stroke:#0e1647}.search:hover .nc-int-search, .search.active .nc-int-search{transform:rotate(-90deg)}"})]})]})}const c8=({data:t})=>w.jsx("div",{className:"flex h-full grow basis-[calc(50%-25px)] flex-col gap-8 overflow-auto md:gap-14",children:t==null?void 0:t.map((e,r)=>{var n;return w.jsxs("div",{children:[w.jsx("p",{className:"mb-4 text-[14px] uppercase leading-[21px] tracking-[1.6px] opacity-80 md:mb-6 md:text-[16px]",children:e==null?void 0:e.sectionTitle}),w.jsx("ul",{className:"flex flex-col gap-3 md:gap-4",children:(n=e==null?void 0:e.uiSimpleLinks)==null?void 0:n.map((i,s)=>{var a,o,l;return w.jsx("li",{children:w.jsx("a",{href:((a=i==null?void 0:i.entry)==null?void 0:a.pageUrl)||(i==null?void 0:i.link),className:[`${e.largeLinks?"text-[18px] md:text-h4":""}`,"font-bold hover:underline"].join(" "),title:((o=i==null?void 0:i.linkTitle)==null?void 0:o.toString())||((l=i==null?void 0:i.entry.entryTitle)==null?void 0:l.toString()),children:(i==null?void 0:i.linkTitle)||(i==null?void 0:i.entry.entryTitle)})},s)})})]},r)})}),vf=async(t,e=3)=>{const r=new Pe(D.equalTo("sys.versionStatus","published"),D.or(D.equalTo("entryTitle",t).weight(8),D.startsWith("entryTitle",t).weight(4),D.freeText("entryTitle",t,!0).weight(6),D.freeText("seoStandardFields.websiteDescription",t,!0).weight(2),D.freeText("seoStandardFields.description",t,!0).weight(2),D.freeText("seoStandardFields.keywords",t).weight(2),D.freeText("modules.coursesModuleCategory.modules.entryTitle",t,!0).weight(1),D.freeText("searchContent",t).weight(1)),D.or(D.and(D.equalTo("sys.dataFormat","webpage"),D.equalTo("sys.metadata.includeInSearch",!0),D.not(D.equalTo("sys.contentTypeId","undergraduateCoursesWebpage")),D.not(D.startsWith("sys.contentTypeId","scpgtCoursesWebpage")),D.not(D.startsWith("sys.contentTypeId","scpgrCoursesWebpage")),D.not(D.startsWith("sys.contentTypeId","scPhDWebpage")),D.not(D.startsWith("sys.contentTypeId","cpdCoursesWebpage")),D.not(D.startsWith("sys.contentTypeId","newsArticlesWebpage"))),D.and(D.equalTo("sys.dataFormat","entry"),D.contains("seoStandardFields.includeInSearch","true"),D.not(D.contains("entryTitle","Dummy")),D.not(D.startsWith("entryTitle","DevTest")),D.or(D.equalTo("sys.contentTypeId","coursesUndergraduate"),D.equalTo("sys.contentTypeId","coursesPostgraduateTaught"),D.equalTo("sys.contentTypeId","pgrCourses"),D.equalTo("sys.contentTypeId","phdScholarships"),D.equalTo("sys.contentTypeId","cpdCourses"),D.equalTo("sys.contentTypeId","pgceCourses"),D.equalTo("sys.contentTypeId","otherCourses"),D.equalTo("sys.contentTypeId","newsArticles")))));r.pageSize=e,r.fields=["entryTitle","sys.uri","pageUrl","title","keywords","description","sys","searchContent","thumbnail","sys.metadata.profileImage","seoStandardFields","modules","courseLength","studyLevel","coursesEntryRequirements.whichVariant","coursesEntryRequirements.ucasPoints","coursesVariant.whichVariant","coursesVariant.ucasCode","coursesVariant.studyMode","tags","date"];try{return await yt.entries.search(r)}catch(n){console.log(n)}},No=async(t,e=3)=>{const r=new Pe(D.equalTo("sys.versionStatus","published"),D.equalTo("sys.dataFormat","entry"),D.contains("seoStandardFields.includeInSearch","true"),D.or(D.equalTo("entryTitle",t).weight(8),D.startsWith("entryTitle",t).weight(4),D.freeText("entryTitle",t,!0).weight(6),D.freeText("seoStandardFields.websiteDescription",t,!0).weight(2),D.freeText("seoStandardFields.description",t,!0).weight(2),D.freeText("seoStandardFields.keywords",t).weight(2),D.freeText("modules.coursesModuleCategory.modules.entryTitle",t,!0).weight(1),D.freeText("searchContent",t).weight(1)),D.or(D.equalTo("sys.contentTypeId","coursesUndergraduate"),D.equalTo("sys.contentTypeId","coursesPostgraduateTaught"),D.equalTo("sys.contentTypeId","pgrCourses"),D.equalTo("sys.contentTypeId","phdScholarships"),D.equalTo("sys.contentTypeId","cpdCourses"),D.equalTo("sys.contentTypeId","pgceCourses"),D.equalTo("sys.contentTypeId","otherCourses")),D.not(D.contains("entryTitle","Dummy")),D.not(D.startsWith("entryTitle","DevTest")));r.pageSize=e,r.fields=["entryTitle","sys","pageUrl","seoStandardFields","modules","courseLength","studyLevel","coursesEntryRequirements.whichVariant","coursesEntryRequirements.ucasPoints","coursesVariant.whichVariant","coursesVariant.ucasCode","coursesVariant.studyMode"];try{return await yt.entries.search(r)}catch(n){console.log(n)}},_m=async(t,e=3)=>{const r=new Pe(D.equalTo("sys.versionStatus","published"),D.equalTo("sys.dataFormat","webpage"),D.equalTo("sys.metadata.includeInSearch",!0),D.contains("sys.uri","/research/"),D.or(D.equalTo("entryTitle",t).weight(8),D.startsWith("entryTitle",t).weight(4),D.freeText("entryTitle",t,!0).weight(6),D.freeText("seoStandardFields.websiteDescription",t,!0).weight(2),D.freeText("seoStandardFields.description",t,!0).weight(2),D.freeText("seoStandardFields.keywords",t).weight(2),D.freeText("searchContent",t).weight(1)),D.or(D.and(D.not(D.contains("entryTitle","Dummy")),D.not(D.startsWith("entryTitle","DevTest")))));r.pageSize=e,r.fields=["entryTitle","title","keywords","description","sys","searchContent","thumbnail","sys.metadata.profileImage"];try{return await yt.entries.search(r)}catch(n){console.log(n)}},d8=async(t,e=3)=>{const r=new Pe(D.equalTo("sys.versionStatus","published"),D.equalTo("sys.dataFormat","webpage"),D.equalTo("sys.metadata.includeInSearch",!0),D.equalTo("sys.contentTypeId","staffProfilesWebpage"),D.or(D.equalTo("entryTitle",t).weight(8),D.startsWith("entryTitle",t).weight(4),D.freeText("entryTitle",t,!0).weight(6),D.freeText("seoStandardFields.websiteDescription",t,!0).weight(2),D.freeText("seoStandardFields.description",t,!0).weight(2),D.freeText("seoStandardFields.keywords",t).weight(2),D.freeText("searchContent",t).weight(1)));r.pageSize=e,r.fields=["entryTitle","title","keywords","description","sys","searchContent","thumbnail","sys.metadata.profileImage"];try{return await yt.entries.search(r)}catch(n){console.log(n)}},f8=async(t,e=3)=>{const r=new Pe(D.equalTo("sys.versionStatus","published"),D.and(D.equalTo("sys.contentTypeId","newsArticles")),D.equalTo("sys.dataFormat","entry"),D.contains("seoStandardFields.includeInSearch","true"),D.or(D.equalTo("entryTitle",t).weight(8),D.startsWith("entryTitle",t).weight(4),D.freeText("entryTitle",t,!0).weight(6),D.freeText("seoStandardFields.websiteDescription",t,!0).weight(2),D.freeText("seoStandardFields.description",t,!0).weight(2),D.freeText("seoStandardFields.keywords",t).weight(2),D.freeText("searchContent",t).weight(1)),D.and(D.not(D.equalTo("tags[]","0/1/380/1039"))),D.not(D.contains("entryTitle","Dummy")),D.not(D.startsWith("entryTitle","DevTest")));r.pageSize=e,r.fields=["entryTitle","sys","pageUrl","seoStandardFields","tags","date"];try{return await yt.entries.search(r)}catch(n){console.log(n)}},jm="/assets/icon-library/standard/zoom.svg",p8=({type:t})=>{var e;const[r,n]=I.useState(""),i=Bn(n,500),s=4;let a="Type something...",o=null;switch(t==null?void 0:t.toLowerCase()){case"courses":a="Search for a course...",o=No(r,s);break;case"research":a="Search all of our research...",o=_m(r,s);break;default:o=No(r,s);break}const{data:l,isFetched:u,isSuccess:d,refetch:f}=rt({queryKey:[t,r],queryFn:()=>o}),c=h=>{var g;i((g=h==null?void 0:h.target)==null?void 0:g.value),f()},p={hidden:{opacity:0,height:0},show:{opacity:1,height:"auto",transition:{staggerChildren:.3}}},m={hidden:{opacity:0},show:{opacity:1}};return w.jsxs("div",{className:"w-full",children:[w.jsx("div",{className:"flex",children:w.jsx("input",{style:{backgroundImage:`url(${jm})`},className:"min-w-[280px] grow-[1] bg-white bg-[length:30px_auto] bg-[10px_center] bg-no-repeat py-2 pl-12 text-[18px] text-blue-d placeholder:text-blue-d-60 md:text-[20px]",onChange:c,type:"search",placeholder:a})}),u&&d&&r!==""&&w.jsx(je.div,{variants:p,initial:"hidden",animate:"show",className:"flex max-h-full flex-col overflow-scroll bg-blue-d p-4 leading-tight",children:w.jsxs("ul",{className:"flex flex-col gap-4",children:[l&&r!==""&&(l==null?void 0:l.items.map(h=>{var g,b,y;return w.jsx(je.li,{variants:m,className:"group max-w-[86ch] cursor-pointer",children:w.jsx("a",{href:h!=null&&h.pageUrl?h==null?void 0:h.pageUrl:h==null?void 0:h.sys.uri,className:"mb-1 group-hover:underline",title:((g=h==null?void 0:h.seoStandardFields)==null?void 0:g.title)||h.entryTitle,children:w.jsx("strong",{children:h!=null&&h.seoStandardFields?(b=h==null?void 0:h.seoStandardFields)==null?void 0:b.title:h.entryTitle})})},(y=h==null?void 0:h.sys)==null?void 0:y.id)})),l&&(l==null?void 0:l.totalCount)>=3&&w.jsx("li",{className:"border-t-white/8 mt-4 flex w-full grow justify-end border-t pt-5 hover:underline",children:w.jsxs("a",{href:"/search/"+(t==null?void 0:t.toLowerCase())+"?q="+r,className:"flex items-center gap-[10px]",title:"See all results",children:[w.jsx("strong",{children:"See all results"}),w.jsx("svg",{width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:w.jsxs("g",{strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"white",strokeLinejoin:"round",className:"nc-icon-wrapper",children:[w.jsx("line",{"data-cap":"butt",x1:"2",y1:"16",x2:"30",y2:"16"})," ",w.jsx("polyline",{points:"21,7 30,16 21,25 "})]})})]})}),l&&((e=l==null?void 0:l.items)==null?void 0:e.length)<=0&&w.jsxs("li",{className:"max-w-[86ch]",children:["Your query ",r&&w.jsx("strong",{children:'"'+r+'"'})," ","returned 0 results, please try a different search term"]})]})})]})},wf=st("button",{variants:{colour:{chartreuse:["before:bg-char","after:bg-char","text-blue-d"],"ink blue":["before:bg-blue-d","after:bg-blue-d","text-white"],"mid blue":["before:bg-blue-m","after:bg-blue-m","text-white"],"light blue":["before:bg-blue-l","after:bg-blue-l","text-blue-d"],green:["before:bg-green","after:bg-green","text-blue-d"],purple:["before:bg-purple","after:bg-purple","text-blue-d"],pink:["before:bg-pink","after:bg-pink","text-blue-d"],orange:["before:bg-orange","after:bg-orange","text-blue-d"],white:["before:bg-white","after:bg-white","text-blue-d"]}},defaultVariants:{colour:"pink"}}),h8=({colour:t,...e})=>{var r,n,i,s,a,o,l,u,d;return w.jsx("div",{className:[se(wf({colour:t}),"relative w-full text-center sm:w-fit","before:absolute before:left-0 before:top-1/2 before:z-[1] before:aspect-square before:h-3 before:-translate-y-1/2 before:transition-all","after:absolute after:right-0 after:top-0 after:z-[0] after:h-full after:w-[calc(100%-15px)] after:transition-all","focus-within:after:w-[calc(100%-30px)] hover:after:w-[calc(100%-30px)]")].join(" "),children:w.jsx("a",{href:((r=e==null?void 0:e.btn)==null?void 0:r.externalLink)===null?(i=(n=e==null?void 0:e.btn)==null?void 0:n.entry)==null?void 0:i.sys.uri:(s=e==null?void 0:e.btn)==null?void 0:s.externalLink,...((a=e==null?void 0:e.btn)==null?void 0:a.ariaLabel)!==""?{"aria-label":(o=e==null?void 0:e.btn)==null?void 0:o.ariaLabel}:{},className:[se(wf({colour:t}),"relative z-[1] block h-full px-6 py-4 text-tag font-bold uppercase leading-[1.5] no-underline outline-none transition-all md:text-base","before:absolute before:left-0 before:top-0 before:h-[calc(100%/2-14px/2)] before:w-5 before:transition-all","after:absolute after:bottom-0 after:left-0 after:h-[calc(100%/2-15px/2)] after:w-5 after:transition-all","hover:pl-[40px] hover:text-current hover:before:left-[15px] hover:after:left-[15px]","focus-within:pl-[40px] focus-within:before:left-[15px] focus-within:after:left-[15px]")].join(" "),...(l=e==null?void 0:e.btn)!=null&&l.target?{target:"_blank"}:{},...(u=e==null?void 0:e.btn)!=null&&u.target?{rel:"noreferrer nofollow"}:{},children:(d=e==null?void 0:e.btn)==null?void 0:d.label})})},Nm=["seoStandardFields.title","sys.uri","pageUrl","tags","date"],m8=["entryTitle","link","dateTime"],g8=async()=>{const t=new Pe(D.equalTo("sys.versionStatus","published"),D.equalTo("seoStandardFields.includeInSearch","true"),D.equalTo("sys.contentTypeId","newsArticles"),D.and(D.not(D.equalTo("tags[]","0/1/380/1039"))));t.pageSize=4,t.fields=Nm,t.orderBy=jr.desc("date");try{return(await yt.entries.search(t)).items}catch(e){console.log(e)}},b8=async()=>{const t=new Pe(D.equalTo("sys.versionStatus","published"),D.equalTo("seoStandardFields.includeInSearch","true"),D.equalTo("sys.contentTypeId","newsArticles"),D.and(D.equalTo("tags[]","0/1/380/503")));t.pageSize=4,t.fields=Nm,t.orderBy=jr.desc("date");try{return(await yt.entries.search(t)).items}catch(e){console.log(e)}},y8=async()=>{const t=new Date,e=new Pe(D.equalTo("sys.versionStatus","published"),D.equalTo("sys.contentTypeId","eventsStandard"),D.greaterThanOrEqualTo("dateTime.from",t));e.pageSize=4,e.fields=m8,e.orderBy=jr.asc("dateTime.from");try{return(await yt.entries.search(e)).items}catch(r){console.log(r)}},xf=({sectData:t})=>{var e,r,n;let i=null,s=null;(e=t==null?void 0:t.sectionTitle)!=null&&e.toLowerCase().includes("research")?(i="ResearchNews",s=b8()):(i=t==null?void 0:t.type,s=(t==null?void 0:t.type)==="Events"?y8():g8());const{data:a,isSuccess:o}=rt({queryKey:[i],queryFn:()=>s});return w.jsxs("div",{className:["flex h-auto max-h-[800px] basis-full flex-col lg:h-full lg:basis-[calc(50%-25px)]",`${i==="ResearchNews"?"hidden lg:flex":""}`].join(" "),children:[w.jsx("p",{className:"mb-4 text-[14px] uppercase leading-[21px] tracking-[1.6px] opacity-80 md:mb-6 md:text-[16px]",children:t==null?void 0:t.sectionTitle}),w.jsx("ul",{className:"flex grow flex-col gap-4 md:overflow-auto",children:o&&(a==null?void 0:a.map((l,u)=>{var d,f;return w.jsx("li",{className:"group max-h-[150px] grow bg-blue-d-60 hover:cursor-pointer",children:w.jsxs("a",{href:l.sys.uri!==null?l.sys.uri:l.pageUrl||(l==null?void 0:l.link),className:"flex flex-col p-4 font-bold ",title:((d=l==null?void 0:l.seoStandardFields)==null?void 0:d.title)||(l==null?void 0:l.entryTitle),children:[w.jsx("p",{className:"mb-2 text-[14px] uppercase leading-[21px] tracking-[1.6px] md:text-[16px]",children:l!=null&&l.date?Pn(l==null?void 0:l.date,"dd MMMM yyyy"):Pn(l==null?void 0:l.dateTime.from,"dd MMMM yyyy")}),w.jsx("span",{className:"line-clamp-3 group-hover:underline",children:((f=l==null?void 0:l.seoStandardFields)==null?void 0:f.title)||(l==null?void 0:l.entryTitle)})]})},u)}))}),(((r=t==null?void 0:t.uiPrimaryButtons)==null?void 0:r.label)!==null||((n=t==null?void 0:t.uiPrimaryButtons)==null?void 0:n.entry)!==null)&&w.jsx("div",{className:"mt-6",children:w.jsx(h8,{btn:t==null?void 0:t.uiPrimaryButtons,colour:"white"})})]})};function v8(t){const e=t.fill||"currentColor",r=t.title||"right arrow",n=t.selected||!1;return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",className:[`${n&&"translate-x-[10px]"}`,"h-[36px] w-[36px] transition-transform duration-300 group-hover/item:translate-x-[10px] md:h-[48px] md:w-[48px]"].join(" "),children:[w.jsx("title",{children:r}),w.jsx("g",{strokeLinecap:"square",strokeWidth:"4",fill:"none",stroke:e,strokeLinejoin:"miter",strokeMiterlimit:"10",children:w.jsx("polyline",{points:"20,16 28,24 20,32 ",stroke:e})})]})}function w8(t){const e=t.fill||"currentColor",r=t.title||"right arrow";return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",className:"h-[30px] w-[30px]",children:[w.jsx("title",{children:r}),w.jsx("g",{strokeLinecap:"square",strokeWidth:"4",fill:"none",stroke:e,strokeLinejoin:"miter",strokeMiterlimit:"10",children:w.jsx("polyline",{points:"28,32 20,24 28,16 ",stroke:e})})]})}const x8=({data:t,state:e})=>{var r;const[n,i]=I.useState(!1),s=e==null?void 0:e.selected,a=e.selectedHandler;I.useEffect(()=>a(n?t==null?void 0:t.title:void 0),[n]);function o(l){l.currentTarget&&i(!n)}if(t)return w.jsx(Om,{open:n,onOpenChange:i,modal:!1,children:w.jsxs("li",{children:[w.jsxs(Lm,{onClick:o,className:[`${s===void 0&&"opacity-100"}`,`${s!==(t==null?void 0:t.title)&&"group-hover/list:opacity-60"}`,`${s!==void 0&&s!==(t==null?void 0:t.title)&&"opacity-60"}`,"group/item flex w-full cursor-pointer items-center gap-2 text-[21px] font-bold transition-opacity duration-500 hover:!opacity-100 sm:text-h3"].join(" "),value:t==null?void 0:t.title,title:(r=t==null?void 0:t.title)==null?void 0:r.toString(),children:[w.jsx(nu,{className:"hidden",children:t==null?void 0:t.title}),t==null?void 0:t.title,w.jsx(v8,{fill:"white",title:"",selected:n})]}),w.jsx(ru,{side:"left",className:["no-overlay","z-[51] flex h-[100vh] w-full flex-col gap-2 border-none bg-blue-d-80 p-0 pt-16 text-white data-[state=closed]:ease-in sm:pt-20 lg:z-[50] lg:!max-w-[calc(100vw-450px)] lg:translate-x-[450px]",`${(t==null?void 0:t.navigationArticles.length)>0&&Object.keys(t==null?void 0:t.navigationArticles).length!==0?"lg:w-[800px]":"lg:w-[450px]"}`].join(" "),title:(t==null?void 0:t.title)+" menu panel",children:w.jsxs("div",{className:"grid w-full gap-8 overflow-auto p-4 md:gap-10 md:px-10 md:pb-16 md:pt-6 lg:overflow-hidden",children:[w.jsxs(n8,{className:"flex w-fit cursor-pointer items-center bg-blue-d py-1 pr-2 text-[14px] uppercase tracking-[1.6px] lg:hidden",children:[w.jsx(w8,{fill:"white",title:""}),w.jsx("span",{children:"Main menu"})]}),(t==null?void 0:t.showSearchBar)&&(t==null?void 0:t.searchType)!=null&&w.jsx(p8,{type:t==null?void 0:t.searchType}),w.jsxs("div",{className:"flex h-full min-h-32 flex-wrap gap-10 overflow-auto",children:[t&&(t==null?void 0:t.navigationArticles.length)>0&&w.jsx(xf,{sectData:t&&(t==null?void 0:t.navigationArticles[0])}),(t==null?void 0:t.navigationArticles.length)>1&&(t==null?void 0:t.navigationSecondaryLinks.length)===0&&w.jsx(xf,{sectData:t==null?void 0:t.navigationArticles[1]}),(t==null?void 0:t.navigationSecondaryLinks.length)>0&&w.jsx(c8,{data:t==null?void 0:t.navigationSecondaryLinks})]})]})})]})})},S8=({data:t})=>{if(t)return w.jsxs("div",{className:"p-4 md:px-10 md:py-6",children:[w.jsx("p",{className:"mb-6 text-[14px] uppercase leading-[21px] tracking-[1.6px] opacity-80 md:text-[16px]",children:"Quick links"}),w.jsx("ul",{className:"mb-3 flex flex-col gap-3 md:mb-0 md:gap-4",children:t==null?void 0:t.map((e,r)=>w.jsx("li",{children:w.jsxs("a",{href:e.entry?e.entry.pageUrl:e.externalUrl,title:e.entry?e.entry.entryTitle:e.externalTitle,target:e.newPage?"_blank":"",rel:e.newPage?"noopener referrer":"",className:"flex items-center gap-3 underline hover:no-underline",children:[w.jsx("img",{className:"w-4",src:""+e.image.asset.sys.uri,alt:e.image.altText}),e.entry?e.entry.entryTitle:e.externalTitle]})},r))})]})},T8=({data:t})=>{if(t)return w.jsx("div",{className:"bg-blue-d-80 p-4 md:px-10 md:py-6",children:w.jsx("ul",{className:"flex gap-4",children:t==null?void 0:t.map((e,r)=>{var n;return w.jsx("li",{children:w.jsx("a",{href:e.link,className:"block h-4 w-4",children:w.jsx("img",{className:"w-4",src:""+e.image.asset.sys.uri,alt:e.image.altText,title:(n=e==null?void 0:e.title)==null?void 0:n.toString()})})},r)})})})};function E8(t){const e=t+"CollectionProvider",[r,n]=ks(e),[i,s]=r(e,{collectionRef:{current:null},itemMap:new Map}),a=p=>{const{scope:m,children:h}=p,g=Bt.useRef(null),b=Bt.useRef(new Map).current;return w.jsx(i,{scope:m,itemMap:b,collectionRef:g,children:h})};a.displayName=e;const o=t+"CollectionSlot",l=Bt.forwardRef((p,m)=>{const{scope:h,children:g}=p,b=s(o,h),y=nt(m,b.collectionRef);return w.jsx(Mn,{ref:y,children:g})});l.displayName=o;const u=t+"CollectionItemSlot",d="data-radix-collection-item",f=Bt.forwardRef((p,m)=>{const{scope:h,children:g,...b}=p,y=Bt.useRef(null),v=nt(m,y),x=s(u,h);return Bt.useEffect(()=>(x.itemMap.set(y,{ref:y,...b}),()=>void x.itemMap.delete(y))),w.jsx(Mn,{[d]:"",ref:v,children:g})});f.displayName=u;function c(p){const m=s(t+"CollectionConsumer",p);return Bt.useCallback(()=>{const h=m.collectionRef.current;if(!h)return[];const g=Array.from(h.querySelectorAll(`[${d}]`));return Array.from(m.itemMap.values()).sort((b,y)=>g.indexOf(b.ref.current)-g.indexOf(y.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:a,Slot:l,ItemSlot:f},c,n]}var C8=I.createContext(void 0);function Rm(t){const e=I.useContext(C8);return t||e||"ltr"}var Ca="rovingFocusGroup.onEntryFocus",P8={bubbles:!1,cancelable:!0},Os="RovingFocusGroup",[Ro,Dm,A8]=E8(Os),[M8,Fm]=ks(Os,[A8]),[k8,I8]=M8(Os),Bm=I.forwardRef((t,e)=>w.jsx(Ro.Provider,{scope:t.__scopeRovingFocusGroup,children:w.jsx(Ro.Slot,{scope:t.__scopeRovingFocusGroup,children:w.jsx(O8,{...t,ref:e})})}));Bm.displayName=Os;var O8=I.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:o,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=t,c=I.useRef(null),p=nt(e,c),m=Rm(s),[h=null,g]=Ql({prop:a,defaultProp:o,onChange:l}),[b,y]=I.useState(!1),v=_t(u),x=Dm(r),A=I.useRef(!1),[R,M]=I.useState(0);return I.useEffect(()=>{const E=c.current;if(E)return E.addEventListener(Ca,v),()=>E.removeEventListener(Ca,v)},[v]),w.jsx(k8,{scope:r,orientation:n,dir:m,loop:i,currentTabStopId:h,onItemFocus:I.useCallback(E=>g(E),[g]),onItemShiftTab:I.useCallback(()=>y(!0),[]),onFocusableItemAdd:I.useCallback(()=>M(E=>E+1),[]),onFocusableItemRemove:I.useCallback(()=>M(E=>E-1),[]),children:w.jsx(Ae.div,{tabIndex:b||R===0?-1:0,"data-orientation":n,...f,ref:p,style:{outline:"none",...t.style},onMouseDown:ve(t.onMouseDown,()=>{A.current=!0}),onFocus:ve(t.onFocus,E=>{const T=!A.current;if(E.target===E.currentTarget&&T&&!b){const _=new CustomEvent(Ca,P8);if(E.currentTarget.dispatchEvent(_),!_.defaultPrevented){const P=x().filter(S=>S.focusable),O=P.find(S=>S.active),L=P.find(S=>S.id===h),C=[O,L,...P].filter(Boolean).map(S=>S.ref.current);qm(C,d)}}A.current=!1}),onBlur:ve(t.onBlur,()=>y(!1))})})}),zm="RovingFocusGroupItem",Vm=I.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:s,...a}=t,o=un(),l=s||o,u=I8(zm,r),d=u.currentTabStopId===l,f=Dm(r),{onFocusableItemAdd:c,onFocusableItemRemove:p}=u;return I.useEffect(()=>{if(n)return c(),()=>p()},[n,c,p]),w.jsx(Ro.ItemSlot,{scope:r,id:l,focusable:n,active:i,children:w.jsx(Ae.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...a,ref:e,onMouseDown:ve(t.onMouseDown,m=>{n?u.onItemFocus(l):m.preventDefault()}),onFocus:ve(t.onFocus,()=>u.onItemFocus(l)),onKeyDown:ve(t.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){u.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const h=j8(m,u.orientation,u.dir);if(h!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let g=f().filter(b=>b.focusable).map(b=>b.ref.current);if(h==="last")g.reverse();else if(h==="prev"||h==="next"){h==="prev"&&g.reverse();const b=g.indexOf(m.currentTarget);g=u.loop?N8(g,b+1):g.slice(b+1)}setTimeout(()=>qm(g))}})})})});Vm.displayName=zm;var L8={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function _8(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function j8(t,e,r){const n=_8(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return L8[n]}function qm(t,e=!1){const r=document.activeElement;for(const n of t)if(n===r||(n.focus({preventScroll:e}),document.activeElement!==r))return}function N8(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var R8=Bm,D8=Vm,iu="Tabs",[F8,bA]=ks(iu,[Fm]),$m=Fm(),[B8,su]=F8(iu),Hm=I.forwardRef((t,e)=>{const{__scopeTabs:r,value:n,onValueChange:i,defaultValue:s,orientation:a="horizontal",dir:o,activationMode:l="automatic",...u}=t,d=Rm(o),[f,c]=Ql({prop:n,onChange:i,defaultProp:s});return w.jsx(B8,{scope:r,baseId:un(),value:f,onValueChange:c,orientation:a,dir:d,activationMode:l,children:w.jsx(Ae.div,{dir:d,"data-orientation":a,...u,ref:e})})});Hm.displayName=iu;var Um="TabsList",Wm=I.forwardRef((t,e)=>{const{__scopeTabs:r,loop:n=!0,...i}=t,s=su(Um,r),a=$m(r);return w.jsx(R8,{asChild:!0,...a,orientation:s.orientation,dir:s.dir,loop:n,children:w.jsx(Ae.div,{role:"tablist","aria-orientation":s.orientation,...i,ref:e})})});Wm.displayName=Um;var Gm="TabsTrigger",Ym=I.forwardRef((t,e)=>{const{__scopeTabs:r,value:n,disabled:i=!1,...s}=t,a=su(Gm,r),o=$m(r),l=Qm(a.baseId,n),u=Zm(a.baseId,n),d=n===a.value;return w.jsx(D8,{asChild:!0,...o,focusable:!i,active:d,children:w.jsx(Ae.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:l,...s,ref:e,onMouseDown:ve(t.onMouseDown,f=>{!i&&f.button===0&&f.ctrlKey===!1?a.onValueChange(n):f.preventDefault()}),onKeyDown:ve(t.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&a.onValueChange(n)}),onFocus:ve(t.onFocus,()=>{const f=a.activationMode!=="manual";!d&&!i&&f&&a.onValueChange(n)})})})});Ym.displayName=Gm;var Xm="TabsContent",Km=I.forwardRef((t,e)=>{const{__scopeTabs:r,value:n,forceMount:i,children:s,...a}=t,o=su(Xm,r),l=Qm(o.baseId,n),u=Zm(o.baseId,n),d=n===o.value,f=I.useRef(d);return I.useEffect(()=>{const c=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(c)},[]),w.jsx(Vn,{present:i||d,children:({present:c})=>w.jsx(Ae.div,{"data-state":d?"active":"inactive","data-orientation":o.orientation,role:"tabpanel","aria-labelledby":l,hidden:!c,id:u,tabIndex:0,...a,ref:e,style:{...t.style,animationDuration:f.current?"0s":void 0},children:c&&s})})});Km.displayName=Xm;function Qm(t,e){return`${t}-trigger-${e}`}function Zm(t,e){return`${t}-content-${e}`}var z8=Hm,Jm=Wm,eg=Ym,tg=Km;const V8=z8,rg=I.forwardRef(({className:t,...e},r)=>w.jsx(Jm,{ref:r,className:jt("inline-flex h-10 items-center justify-center rounded-md bg-slate-100 p-1 text-slate-500 dark:bg-slate-800 dark:text-slate-400",t),...e}));rg.displayName=Jm.displayName;const ng=I.forwardRef(({className:t,...e},r)=>w.jsx(eg,{ref:r,className:jt("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-white transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-white data-[state=active]:text-slate-950 data-[state=active]:shadow-sm dark:ring-offset-slate-950 dark:focus-visible:ring-slate-300 dark:data-[state=active]:bg-slate-950 dark:data-[state=active]:text-slate-50",t),...e}));ng.displayName=eg.displayName;const ig=I.forwardRef(({className:t,...e},r)=>w.jsx(tg,{ref:r,className:jt("mt-2 ring-offset-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-950 focus-visible:ring-offset-2 dark:ring-offset-slate-950 dark:focus-visible:ring-slate-300",t),...e}));ig.displayName=tg.displayName;const q8=({state:t})=>{const e=t.searchHandler,[r,n]=I.useState(""),[i,s]=I.useState("All"),a=Bn(n,500),o=["All","Courses","Research","Staff","News"];let l=null;switch(i.toLowerCase()){case"all":l=vf(r);break;case"courses":l=No(r);break;case"research":l=_m(r);break;case"staff":l=d8(r);break;case"news":l=f8(r);break;default:l=vf(r);break}const{data:u,isFetched:d,isSuccess:f,refetch:c}=rt({queryKey:[i,r],queryFn:()=>l}),p=b=>{var y;a((y=b==null?void 0:b.target)==null?void 0:y.value),c()};I.useEffect(()=>u&&r!=""?e(!0):e(!1),[r,u]);const m={hidden:{opacity:0,height:0},show:{opacity:1,height:"auto"}},h={hidden:{opacity:0},show:{opacity:1,transition:{staggerChildren:.3}}},g={hidden:{opacity:0},show:{opacity:1}};return w.jsxs("div",{className:"h-auto p-4 md:p-10",children:[w.jsx("p",{className:"mb-4 text-[14px] uppercase leading-[21px] tracking-[1.6px] opacity-80 md:mb-6 md:text-[16px]",children:"Search our website"}),w.jsx("div",{className:"flex ",children:w.jsx("input",{style:{backgroundImage:`url(${jm})`},className:"min-w-[280px] grow-[1] bg-white bg-[length:30px_auto] bg-[10px_center] bg-no-repeat py-2 pl-12 text-blue-d placeholder:text-blue-d-60 md:text-h4",onChange:p,type:"search",placeholder:"Type something..."})}),r!==""&&w.jsx(je.div,{variants:m,initial:"hidden",animate:"show",className:"mt-4 flex max-h-full flex-col overflow-scroll leading-tight md:mt-10",children:w.jsxs(V8,{defaultValue:i.toLowerCase(),children:[w.jsx(rg,{className:"flex h-auto w-full flex-row justify-start overflow-x-auto rounded-none p-0",children:o.map((b,y)=>w.jsx(ng,{value:b.toLowerCase(),onClick:v=>{var x;s(b),(x=v.currentTarget)==null||x.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},className:"text-md grow rounded-none p-4 font-bold data-[state=active]:bg-blue-d-80",children:b},y))}),o.map((b,y)=>{var v;return w.jsx(ig,{value:b.toLowerCase(),className:"mt-0 min-h-[500px] bg-blue-d-80 p-4 md:p-6 [&:not([hidden])]:flex",children:d&&f&&w.jsxs(je.ul,{variants:h,initial:"hidden",animate:"show",className:"flex w-full flex-col gap-4",children:[u&&r!==""&&(u==null?void 0:u.items.map((x,A)=>{var R,M,E,T;return A<3&&w.jsx(je.li,{variants:g,className:"border-b-white/8 group max-w-[86ch] cursor-pointer border-b pb-5",children:w.jsxs("a",{href:x!=null&&x.pageUrl?x==null?void 0:x.pageUrl:x==null?void 0:x.sys.uri,title:((R=x==null?void 0:x.seoStandardFields)==null?void 0:R.title)||x.entryTitle,children:[w.jsx("h2",{className:"mb-2 line-clamp-1 group-hover:underline md:text-lg",children:w.jsx("strong",{children:x!=null&&x.seoStandardFields?(M=x==null?void 0:x.seoStandardFields)==null?void 0:M.title:x.entryTitle})}),x!=null&&x.seoStandardFields?w.jsx("div",{className:"line-clamp-2",dangerouslySetInnerHTML:{__html:Lt((E=x==null?void 0:x.seoStandardFields)==null?void 0:E.websiteDescription)}}):w.jsx("div",{className:"line-clamp-2",dangerouslySetInnerHTML:{__html:Lt(x==null?void 0:x.description)}})]})},(T=x==null?void 0:x.sys)==null?void 0:T.id)})),u&&(u==null?void 0:u.totalCount)>=3&&w.jsx("li",{className:"flex grow items-end self-end hover:underline",children:w.jsxs("a",{href:b.toLowerCase()==="all"?"/search/?q="+r:"/search/"+b.toLowerCase()+"?q="+r,className:"flex items-center justify-end gap-[10px]",title:"See all results",children:[w.jsx("strong",{children:"See all results"}),w.jsx("svg",{width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:w.jsxs("g",{strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"white",strokeLinejoin:"round",className:"nc-icon-wrapper",children:[w.jsx("line",{"data-cap":"butt",x1:"2",y1:"16",x2:"30",y2:"16"})," ",w.jsx("polyline",{points:"21,7 30,16 21,25 "})]})})]})}),u&&((v=u==null?void 0:u.items)==null?void 0:v.length)<=0&&w.jsxs("li",{className:"max-w-[86ch] border-b border-b-white py-5",children:["Your query"," ",r&&w.jsx("strong",{children:'"'+r+'"'})," ","returned 0 results, please try a different search term"]})]})},y)})]})})]})},$8=({data:t})=>{if(t)return w.jsxs(je.div,{initial:{opacity:0},animate:{opacity:1},className:"px-4 py-6 md:px-10",children:[w.jsx("p",{className:"mb-4 text-[14px] uppercase leading-[21px] tracking-[1.6px] opacity-80 md:mb-6 md:text-[16px]",children:"Popular searches"}),w.jsx("ul",{className:"flex flex-wrap",children:t==null?void 0:t.map((e,r)=>w.jsx("li",{className:"mb-4 basis-1/2 md:mb-2",children:w.jsx("a",{href:"/search/?q="+(e==null?void 0:e.replaceAll(" ","+")),className:"flex items-center gap-3 hover:underline",title:e,children:e})},r))})]})},Sf=({type:t,data:e})=>{var r;const[n,i]=I.useState(!1),[s,a]=I.useState(void 0),[o,l]=I.useState(!1);I.useEffect(()=>{var c,p;n?(document.body.classList.add("overflow-hidden"),(c=document.getElementById("header"))==null||c.classList.add("!bg-[length:100%_0]","!duration-75","!delay-0")):(document.body.classList.remove("overflow-hidden"),(p=document.getElementById("header"))==null||p.classList.remove("!bg-[length:100%_0]","!duration-75","!delay-0"))},[n]);function u(c){c.currentTarget&&i(!n)}function d(c){a(c)}function f(c){l(c)}return w.jsxs(Om,{open:n,onOpenChange:i,modal:!1,children:[w.jsxs(Lm,{onClick:u,id:t,className:[`${t} ${n?"active":""}`,"flex h-8 w-8 cursor-pointer items-center justify-center transition-colors duration-300 sm:h-12 sm:w-12"].join(" "),children:[w.jsx(nu,{className:"hidden",children:t}),t==="menu"&&w.jsx(l8,{fill:"white",secondaryfill:"white",title:"Main menu"}),t==="search"&&w.jsx(u8,{fill:"white",secondaryfill:"white",title:"Search"})]}),w.jsx(ru,{side:"left",className:[`${t==="search"?"sm:max-w-full md:max-w-[850px]":"md:max-w-[450px]"}`,"z-[51] h-[100vh] w-full max-w-[100vw] border-none bg-blue-d p-0 pt-16 text-white shadow-none data-[state=closed]:ease-in sm:pt-20"].join(" "),title:t+" panel",children:w.jsxs("div",{className:"flex h-full flex-col overflow-y-scroll",children:[t==="menu"&&w.jsxs(w.Fragment,{children:[w.jsx("ul",{className:"group/list m-4 flex grow flex-col gap-3 sm:gap-4 md:m-10",children:(r=e==null?void 0:e.navItems)==null?void 0:r.map((c,p)=>w.jsx(x8,{data:c,state:{selected:s,selectedHandler:d}},p))}),w.jsx(S8,{data:e==null?void 0:e.quickLinks}),w.jsx(T8,{data:e==null?void 0:e.socialIcons})]}),t==="search"&&w.jsxs(w.Fragment,{children:[w.jsx(q8,{state:{searchHandler:f}}),!o&&w.jsx($8,{data:e==null?void 0:e.popularSearches})]})]})})]})},H8=()=>{const{error:t,data:e}=rt({queryKey:["navigation"],queryFn:()=>W0()});if(t)return"An error has occurred: "+t.message;const r=(e==null?void 0:e.secondaryLogo)||null,n=(e==null?void 0:e.navItems)||null,i=(e==null?void 0:e.quickLinks)||null,s=(e==null?void 0:e.socialIcons)||null,a=(e==null?void 0:e.popularSearches)||null;return w.jsxs("nav",{className:"absolute z-[52] flex h-14 w-full justify-between bg-gradient-to-b from-black/70 bg-[length:100%_100%] bg-no-repeat px-4 transition-[background-size] delay-150 duration-500 ease-in-out sm:h-[110px] lg:px-10",children:[w.jsxs("div",{className:"z-[10] flex items-center gap-2",children:[w.jsx("a",{href:"/",children:w.jsx("img",{className:"h-10 w-auto sm:h-16",alt:"The University of Hull",src:"//www.hull.ac.uk/assets/developer/static-templates/header/images/new/uoh-white.svg",width:"150",height:"95"})}),(r==null?void 0:r.logo)&&w.jsx("a",{href:r==null?void 0:r.link,className:"border-l border-solid border-white pl-2",title:r==null?void 0:r.ariaLabel,children:w.jsx("img",{className:"h-8 w-auto sm:h-12",alt:r==null?void 0:r.logo.altText,src:r==null?void 0:r.logo.asset.sys.uri})})]}),w.jsxs("div",{"aria-label":"Main",className:"relative z-[11] flex items-center justify-end gap-2 md:gap-0",children:[w.jsx(Sf,{type:"menu",data:{navItems:n,quickLinks:i,socialIcons:s}}),w.jsx(Sf,{type:"search",data:{popularSearches:a}})]})]})},U8=st("section",{variants:{background:{white:["bg-white","text-blue-d"],chartreuse:["bg-char","text-blue-d"],"ink blue":["bg-blue-d","text-white"],"mid blue":["bg-blue-m","text-white"],"light blue":["bg-blue-l","text-blue-d"],green:["bg-green","text-blue-d"],purple:["bg-purple","text-blue-d"],pink:["bg-pink","text-blue-d"],orange:["bg-orange","text-blue-d"]},border:{white:["border-white"],chartreuse:["border-char"],"ink blue":["border-blue-d"],"mid blue":["border-blue-m"],"light blue":["border-blue-l"],green:["border-green"],purple:["border-purple"],pink:["border-pink"],orange:["border-orange"]}}}),W8=()=>{const{error:t,data:e}=rt({queryKey:["navigation"],queryFn:()=>W0()});if(t)return"An error has occurred: "+t.message;const r=(e==null?void 0:e.footer)||null;return w.jsx("footer",{id:"footer",className:[se(U8({background:"ink blue"})),""].join(" "),children:w.jsxs("div",{className:"container grid auto-cols-auto auto-rows-auto items-center gap-[30px] sm:gap-[40px] lg:gap-[50px]",children:[w.jsx("div",{className:"col-start-1 row-start-1",children:w.jsx("a",{href:"https://www.hull.ac.uk/",className:"",children:w.jsx("img",{className:"max-h-[50px] min-w-[150px] md:max-h-[100px]",src:"https://www.hull.ac.uk/assets/developer/static-templates/header/images/new/uoh-white.svg",alt:"The University of Hull",width:"300",height:"100"})})}),w.jsx("div",{className:"col-start-2 row-start-1 flex justify-end gap-[30px] sm:gap-[50px]",children:r==null?void 0:r.awardsPartners.map((n,i)=>w.jsx("a",{href:n==null?void 0:n.link,className:"",children:w.jsx("img",{className:"h-[100px] max-h-[50px] sm:max-h-[100px]",src:""+(n==null?void 0:n.logo.asset.sys.uri),alt:n==null?void 0:n.logo.altText,width:"80",height:"100"})},i))}),w.jsxs("div",{className:"col-span-2 col-start-1 row-start-3 flex flex-col gap-[10px] lg:col-span-1",children:[w.jsx("p",{className:"",children:r==null?void 0:r.address}),w.jsx("a",{href:(r==null?void 0:r.phone)&&"tel:"+(r==null?void 0:r.phone.replace("(0)","").replaceAll(" ","")),className:"no-underline hover:underline",children:r==null?void 0:r.phone})]}),w.jsx("ul",{className:"col-span-2 col-start-1 row-start-4 flex flex-wrap gap-x-[20px] gap-y-[10px] sm:gap-[30px] lg:col-span-1 lg:col-start-2 lg:row-start-3 lg:flex-row lg:justify-end",children:r==null?void 0:r.uiLinks.map((n,i)=>{var s;return w.jsx("li",{className:"underline hover:no-underline",children:w.jsx("a",{href:((s=n==null?void 0:n.entry)==null?void 0:s.pageUrl)||(n==null?void 0:n.externalLink),target:n!=null&&n.target?"_blank":"",children:n==null?void 0:n.label})},i)})}),w.jsx("ul",{className:"col-span-2 col-start-1 row-start-6 flex flex-wrap gap-x-[20px] gap-y-[10px] lg:col-span-1 lg:col-start-2 lg:row-start-5 lg:flex-row lg:justify-end lg:gap-[20px]",children:r==null?void 0:r.entry.map((n,i)=>w.jsx("li",{className:"underline hover:no-underline",children:w.jsx("a",{href:n==null?void 0:n.pageUrl,className:"!text-[14px] sm:!text-[15px]",children:n==null?void 0:n.entryTitle})},i))}),w.jsxs("div",{className:"col-span-2 col-start-1 row-start-7 text-[14px] sm:text-[15px] lg:col-span-1 lg:row-start-5",children:["© University of Hull, ",new Date().getFullYear()]}),w.jsx("div",{className:"col-span-2 col-start-1 row-start-2 h-[1px] w-full bg-white"}),w.jsx("div",{className:"col-span-2 col-start-1 row-start-5 h-[1px] w-full bg-white lg:row-start-4"})]})})},G8=({sectData:t})=>{const e=Lt(t);return w.jsx("section",{"aria-label":"Footnotes",children:w.jsx("div",{className:"relative mx-auto max-w-[1600px] px-[20px] py-[45px] text-xs sm:px-[50px] sm:py-[70px] lg:px-[20px] lg:py-[100px] [&_a]:text-xs [&_ol]:ml-4 [&_ol]:list-decimal [&_p]:text-xs [&_ul]:ml-4 [&_ul]:list-disc",dangerouslySetInnerHTML:{__html:e}})})},yA=({data:t})=>{var r,n,i,s,a,o,l,u,d,f,c,p,m,h,g,b,y,v,x,A;const e=(i=(n=(r=t==null?void 0:t.dehydratedState)==null?void 0:r.queries[0])==null?void 0:n.state)==null?void 0:i.data;return[((s=e==null?void 0:e.sys)==null?void 0:s.allUris.length)>1&&{rel:"canonical",href:`${(a=e.sys)==null?void 0:a.uri}`},{title:`${(o=e==null?void 0:e.seoStandardFields)==null?void 0:o.title} | University of Hull`},{name:"description",content:`${(l=e==null?void 0:e.seoStandardFields)==null?void 0:l.description}`},{name:"IDL:EntryId",content:`${(u=e==null?void 0:e.sys)==null?void 0:u.id}`},{name:"IDL:ProjectId",content:"website"},{property:"og:title",content:`${(d=e==null?void 0:e.seoStandardFields)==null?void 0:d.title}`},{property:"og:url",content:`https://www.hull.ac.uk${e==null?void 0:e.sys.uri}`},{property:"og:type",content:"website"},{property:"og:description",content:`${(f=e==null?void 0:e.seoStandardFields)==null?void 0:f.description}`},{property:"og:image",content:`https://www.hull.ac.uk${(h=(m=(p=(c=e==null?void 0:e.seoStandardFields)==null?void 0:c.socialImage)==null?void 0:p.asset)==null?void 0:m.sys)==null?void 0:h.uri}`},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:site",content:"@UniOfHull"},{name:"twitter:title",content:`${(g=e==null?void 0:e.seoStandardFields)==null?void 0:g.title}`},{name:"twitter:description",content:`${(b=e==null?void 0:e.seoStandardFields)==null?void 0:b.description}`},{name:"twitter:image",content:`https://www.hull.ac.uk${(A=(x=(v=(y=e==null?void 0:e.seoStandardFields)==null?void 0:y.socialImage)==null?void 0:v.asset)==null?void 0:x.sys)==null?void 0:A.uri}`}]};function vA(){var e,r,n,i,s;const{data:t}=rt({queryKey:["homeData"],queryFn:()=>hy("/")});return w.jsxs(w.Fragment,{children:[t&&w.jsx(H8,{}),(t==null?void 0:t.heroFeature)&&w.jsx(Y3,{sectData:t==null?void 0:t.heroFeature}),w.jsxs("main",{id:"main-content",className:"min-h-screen",children:[(t==null?void 0:t.feedsLatestResearch)&&w.jsx(i6,{sectData:t==null?void 0:t.feedsLatestResearch,background:(e=t==null?void 0:t.feedsLatestResearch.backgroundColour)==null?void 0:e.entryTitle.toLowerCase(),colour:(r=t==null?void 0:t.feedsLatestResearch.textColour)==null?void 0:r.entryTitle.toLowerCase(),line:(n=t==null?void 0:t.feedsLatestResearch.textColour)==null?void 0:n.entryTitle.toLowerCase()}),(t==null?void 0:t.searchCourseSearch)&&w.jsxs(w.Fragment,{children:[w.jsx(f6,{sectData:t==null?void 0:t.searchCourseSearch,background:(i=t==null?void 0:t.searchCourseSearch.backgroundColour)==null?void 0:i.entryTitle.toLowerCase()}),w.jsx("section",{className:"block-bottom relative h-[20px] w-full bg-blue-l after:bg-blue-l sm:h-[30px]"})]}),(t==null?void 0:t.featureSpotlight)&&w.jsx(p6,{sectData:t==null?void 0:t.featureSpotlight,background:(s=t==null?void 0:t.featureSpotlight.backgroundColour)==null?void 0:s.entryTitle.toLowerCase()}),(t==null?void 0:t.listAchievements)&&w.jsx(kf,{children:()=>w.jsx(hC,{sectData:t==null?void 0:t.listAchievements,background:t==null?void 0:t.listAchievements.backgroundColour.entryTitle.toLowerCase()})}),(t==null?void 0:t.sliderResearchFeature)&&w.jsx(yC,{sectData:t==null?void 0:t.sliderResearchFeature}),(t==null?void 0:t.feedsNewsAndEvents)&&w.jsx(vC,{sectData:t==null?void 0:t.feedsNewsAndEvents,background:t==null?void 0:t.feedsNewsAndEvents.backgroundColour.entryTitle.toLowerCase(),afterBg:t==null?void 0:t.feedsNewsAndEvents.backgroundColour.entryTitle.toLowerCase(),line:t==null?void 0:t.feedsNewsAndEvents.textColour.entryTitle.toLowerCase(),textColour:t==null?void 0:t.feedsNewsAndEvents.textColour.entryTitle.toLowerCase()}),(t==null?void 0:t.footnotes)&&w.jsx(G8,{sectData:t==null?void 0:t.footnotes})]}),t&&w.jsx(W8,{})]})}export{vA as default,yA as meta}; //# sourceMappingURL=_index-B480k62V.js.map