const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_slug_-BajTuty5.js","assets/_slug_-CzAwYCf0.css","assets/default-D0PYt-Z_.js","assets/IconYT-CQzMNWAQ.js","assets/default-wHqkqLt-.css","assets/example-Kht5TMLz.js","assets/example-DDLPA9LR.css","assets/partners-nagWYgK9.js","assets/HeroHeader-C6OZCNm1.js","assets/HeroHeader-BWqtW8Xi.css","assets/partners-BmU2IQYc.css","assets/people-BAUKVO9d.js","assets/PeopleGridList-CPPZSKMq.js","assets/PeopleGridList-C2QCYTaP.css","assets/people-ROy3gRV0.css","assets/programs-DHXLke79.js","assets/programs-CdsrYbUq.css","assets/signup-D-S4hrIU.js","assets/signup-C9FcDUYJ.css"])))=>i.map(i=>d[i]);
var PE=Object.defineProperty;var IE=(t,e,n)=>e in t?PE(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Oe=(t,e,n)=>IE(t,typeof e!="symbol"?e+"":e,n);function LE(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();/*!
  * shared v10.0.8
  * (c) 2025 kazuya kawaguchi
  * Released under the MIT License.
  */function OE(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const od=typeof window<"u",Fs=(t,e=!1)=>e?Symbol.for(t):Symbol(t),ME=(t,e,n)=>$E({l:t,k:e,s:n}),$E=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),zn=t=>typeof t=="number"&&isFinite(t),FE=t=>Km(t)==="[object Date]",sd=t=>Km(t)==="[object RegExp]",Ud=t=>Ut(t)&&Object.keys(t).length===0,ar=Object.assign,DE=Object.create,on=(t=null)=>DE(t);let Z_;const Ym=()=>Z_||(Z_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:on());function ev(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function tv(t){return t.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function NE(t){return t=t.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,i,o)=>`${i}="${tv(o)}"`),t=t.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,i,o)=>`${i}='${tv(o)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(t)&&(t=t.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{t=t.replace(r,"$1javascript&#58;")}),t}const HE=Object.prototype.hasOwnProperty;function Wi(t,e){return HE.call(t,e)}const er=Array.isArray,Tn=t=>typeof t=="function",et=t=>typeof t=="string",En=t=>typeof t=="boolean",Kt=t=>t!==null&&typeof t=="object",BE=t=>Kt(t)&&Tn(t.then)&&Tn(t.catch),D1=Object.prototype.toString,Km=t=>D1.call(t),Ut=t=>Km(t)==="[object Object]",VE=t=>t==null?"":er(t)||Ut(t)&&t.toString===D1?JSON.stringify(t,null,2):String(t);function Xm(t,e=""){return t.reduce((n,r,i)=>i===0?n+r:n+e+r,"")}const nf=t=>!Kt(t)||er(t);function $f(t,e){if(nf(t)||nf(e))throw new Error("Invalid value");const n=[{src:t,des:e}];for(;n.length;){const{src:r,des:i}=n.pop();Object.keys(r).forEach(o=>{o!=="__proto__"&&(Kt(r[o])&&!Kt(i[o])&&(i[o]=Array.isArray(r[o])?[]:on()),nf(i[o])||nf(r[o])?i[o]=r[o]:n.push({src:r[o],des:i[o]}))})}}/*!
  * message-compiler v10.0.8
  * (c) 2025 kazuya kawaguchi
  * Released under the MIT License.
  */function UE(t,e,n){return{line:t,column:e,offset:n}}function Cp(t,e,n){return{start:t,end:e}}const nn={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},jE=17;function jd(t,e,n={}){const{domain:r,messages:i,args:o}=n,s=t,a=new SyntaxError(String(s));return a.code=t,e&&(a.location=e),a.domain=r,a}function WE(t){throw t}const Co=" ",qE="\r",Fr=`
`,zE="\u2028",GE="\u2029";function YE(t){const e=t;let n=0,r=1,i=1,o=0;const s=I=>e[I]===qE&&e[I+1]===Fr,a=I=>e[I]===Fr,u=I=>e[I]===GE,c=I=>e[I]===zE,h=I=>s(I)||a(I)||u(I)||c(I),l=()=>n,d=()=>r,f=()=>i,_=()=>o,p=I=>s(I)||u(I)||c(I)?Fr:e[I],b=()=>p(n),y=()=>p(n+o);function w(){return o=0,h(n)&&(r++,i=0),s(n)&&n++,n++,i++,e[n]}function R(){return s(n+o)&&o++,o++,e[n+o]}function E(){n=0,r=1,i=1,o=0}function A(I=0){o=I}function C(){const I=n+o;for(;I!==n;)w();o=0}return{index:l,line:d,column:f,peekOffset:_,charAt:p,currentChar:b,currentPeek:y,next:w,peek:R,reset:E,resetPeek:A,skipToPeek:C}}const os=void 0,KE=".",nv="'",XE="tokenizer";function QE(t,e={}){const n=e.location!==!1,r=YE(t),i=()=>r.index(),o=()=>UE(r.line(),r.column(),r.index()),s=o(),a=i(),u={currentType:13,offset:a,startLoc:s,endLoc:s,lastType:13,lastOffset:a,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},c=()=>u,{onError:h}=e;function l(G,L,D,...Z){const me=c();if(L.column+=D,L.offset+=D,h){const de=n?Cp(me.startLoc,L):null,S=jd(G,de,{domain:XE,args:Z});h(S)}}function d(G,L,D){G.endLoc=o(),G.currentType=L;const Z={type:L};return n&&(Z.loc=Cp(G.startLoc,G.endLoc)),D!=null&&(Z.value=D),Z}const f=G=>d(G,13);function _(G,L){return G.currentChar()===L?(G.next(),L):(l(nn.EXPECTED_TOKEN,o(),0,L),"")}function p(G){let L="";for(;G.currentPeek()===Co||G.currentPeek()===Fr;)L+=G.currentPeek(),G.peek();return L}function b(G){const L=p(G);return G.skipToPeek(),L}function y(G){if(G===os)return!1;const L=G.charCodeAt(0);return L>=97&&L<=122||L>=65&&L<=90||L===95}function w(G){if(G===os)return!1;const L=G.charCodeAt(0);return L>=48&&L<=57}function R(G,L){const{currentType:D}=L;if(D!==2)return!1;p(G);const Z=y(G.currentPeek());return G.resetPeek(),Z}function E(G,L){const{currentType:D}=L;if(D!==2)return!1;p(G);const Z=G.currentPeek()==="-"?G.peek():G.currentPeek(),me=w(Z);return G.resetPeek(),me}function A(G,L){const{currentType:D}=L;if(D!==2)return!1;p(G);const Z=G.currentPeek()===nv;return G.resetPeek(),Z}function C(G,L){const{currentType:D}=L;if(D!==7)return!1;p(G);const Z=G.currentPeek()===".";return G.resetPeek(),Z}function I(G,L){const{currentType:D}=L;if(D!==8)return!1;p(G);const Z=y(G.currentPeek());return G.resetPeek(),Z}function $(G,L){const{currentType:D}=L;if(!(D===7||D===11))return!1;p(G);const Z=G.currentPeek()===":";return G.resetPeek(),Z}function N(G,L){const{currentType:D}=L;if(D!==9)return!1;const Z=()=>{const de=G.currentPeek();return de==="{"?y(G.peek()):de==="@"||de==="|"||de===":"||de==="."||de===Co||!de?!1:de===Fr?(G.peek(),Z()):ne(G,!1)},me=Z();return G.resetPeek(),me}function W(G){p(G);const L=G.currentPeek()==="|";return G.resetPeek(),L}function ne(G,L=!0){const D=(me=!1,de="")=>{const S=G.currentPeek();return S==="{"||S==="@"||!S?me:S==="|"?!(de===Co||de===Fr):S===Co?(G.peek(),D(!0,Co)):S===Fr?(G.peek(),D(!0,Fr)):!0},Z=D();return L&&G.resetPeek(),Z}function F(G,L){const D=G.currentChar();return D===os?os:L(D)?(G.next(),D):null}function Q(G){const L=G.charCodeAt(0);return L>=97&&L<=122||L>=65&&L<=90||L>=48&&L<=57||L===95||L===36}function M(G){return F(G,Q)}function H(G){const L=G.charCodeAt(0);return L>=97&&L<=122||L>=65&&L<=90||L>=48&&L<=57||L===95||L===36||L===45}function B(G){return F(G,H)}function U(G){const L=G.charCodeAt(0);return L>=48&&L<=57}function oe(G){return F(G,U)}function le(G){const L=G.charCodeAt(0);return L>=48&&L<=57||L>=65&&L<=70||L>=97&&L<=102}function q(G){return F(G,le)}function be(G){let L="",D="";for(;L=oe(G);)D+=L;return D}function ke(G){let L="";for(;;){const D=G.currentChar();if(D==="{"||D==="}"||D==="@"||D==="|"||!D)break;if(D===Co||D===Fr)if(ne(G))L+=D,G.next();else{if(W(G))break;L+=D,G.next()}else L+=D,G.next()}return L}function Se(G){b(G);let L="",D="";for(;L=B(G);)D+=L;return G.currentChar()===os&&l(nn.UNTERMINATED_CLOSING_BRACE,o(),0),D}function ae(G){b(G);let L="";return G.currentChar()==="-"?(G.next(),L+=`-${be(G)}`):L+=be(G),G.currentChar()===os&&l(nn.UNTERMINATED_CLOSING_BRACE,o(),0),L}function fe(G){return G!==nv&&G!==Fr}function _e(G){b(G),_(G,"'");let L="",D="";for(;L=F(G,fe);)L==="\\"?D+=te(G):D+=L;const Z=G.currentChar();return Z===Fr||Z===os?(l(nn.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),Z===Fr&&(G.next(),_(G,"'")),D):(_(G,"'"),D)}function te(G){const L=G.currentChar();switch(L){case"\\":case"'":return G.next(),`\\${L}`;case"u":return ue(G,L,4);case"U":return ue(G,L,6);default:return l(nn.UNKNOWN_ESCAPE_SEQUENCE,o(),0,L),""}}function ue(G,L,D){_(G,L);let Z="";for(let me=0;me<D;me++){const de=q(G);if(!de){l(nn.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${L}${Z}${G.currentChar()}`);break}Z+=de}return`\\${L}${Z}`}function ge(G){return G!=="{"&&G!=="}"&&G!==Co&&G!==Fr}function we(G){b(G);let L="",D="";for(;L=F(G,ge);)D+=L;return D}function Ie(G){let L="",D="";for(;L=M(G);)D+=L;return D}function z(G){const L=D=>{const Z=G.currentChar();return Z==="{"||Z==="@"||Z==="|"||Z==="("||Z===")"||!Z||Z===Co?D:(D+=Z,G.next(),L(D))};return L("")}function P(G){b(G);const L=_(G,"|");return b(G),L}function K(G,L){let D=null;switch(G.currentChar()){case"{":return L.braceNest>=1&&l(nn.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),G.next(),D=d(L,2,"{"),b(G),L.braceNest++,D;case"}":return L.braceNest>0&&L.currentType===2&&l(nn.EMPTY_PLACEHOLDER,o(),0),G.next(),D=d(L,3,"}"),L.braceNest--,L.braceNest>0&&b(G),L.inLinked&&L.braceNest===0&&(L.inLinked=!1),D;case"@":return L.braceNest>0&&l(nn.UNTERMINATED_CLOSING_BRACE,o(),0),D=ee(G,L)||f(L),L.braceNest=0,D;default:{let me=!0,de=!0,S=!0;if(W(G))return L.braceNest>0&&l(nn.UNTERMINATED_CLOSING_BRACE,o(),0),D=d(L,1,P(G)),L.braceNest=0,L.inLinked=!1,D;if(L.braceNest>0&&(L.currentType===4||L.currentType===5||L.currentType===6))return l(nn.UNTERMINATED_CLOSING_BRACE,o(),0),L.braceNest=0,X(G,L);if(me=R(G,L))return D=d(L,4,Se(G)),b(G),D;if(de=E(G,L))return D=d(L,5,ae(G)),b(G),D;if(S=A(G,L))return D=d(L,6,_e(G)),b(G),D;if(!me&&!de&&!S)return D=d(L,12,we(G)),l(nn.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,D.value),b(G),D;break}}return D}function ee(G,L){const{currentType:D}=L;let Z=null;const me=G.currentChar();switch((D===7||D===8||D===11||D===9)&&(me===Fr||me===Co)&&l(nn.INVALID_LINKED_FORMAT,o(),0),me){case"@":return G.next(),Z=d(L,7,"@"),L.inLinked=!0,Z;case".":return b(G),G.next(),d(L,8,".");case":":return b(G),G.next(),d(L,9,":");default:return W(G)?(Z=d(L,1,P(G)),L.braceNest=0,L.inLinked=!1,Z):C(G,L)||$(G,L)?(b(G),ee(G,L)):I(G,L)?(b(G),d(L,11,Ie(G))):N(G,L)?(b(G),me==="{"?K(G,L)||Z:d(L,10,z(G))):(D===7&&l(nn.INVALID_LINKED_FORMAT,o(),0),L.braceNest=0,L.inLinked=!1,X(G,L))}}function X(G,L){let D={type:13};if(L.braceNest>0)return K(G,L)||f(L);if(L.inLinked)return ee(G,L)||f(L);switch(G.currentChar()){case"{":return K(G,L)||f(L);case"}":return l(nn.UNBALANCED_CLOSING_BRACE,o(),0),G.next(),d(L,3,"}");case"@":return ee(G,L)||f(L);default:{if(W(G))return D=d(L,1,P(G)),L.braceNest=0,L.inLinked=!1,D;if(ne(G))return d(L,0,ke(G));break}}return D}function x(){const{currentType:G,offset:L,startLoc:D,endLoc:Z}=u;return u.lastType=G,u.lastOffset=L,u.lastStartLoc=D,u.lastEndLoc=Z,u.offset=i(),u.startLoc=o(),r.currentChar()===os?d(u,13):X(r,u)}return{nextToken:x,currentOffset:i,currentPosition:o,context:c}}const JE="parser",ZE=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function eR(t,e,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function tR(t={}){const e=t.location!==!1,{onError:n}=t;function r(y,w,R,E,...A){const C=y.currentPosition();if(C.offset+=E,C.column+=E,n){const I=e?Cp(R,C):null,$=jd(w,I,{domain:JE,args:A});n($)}}function i(y,w,R){const E={type:y};return e&&(E.start=w,E.end=w,E.loc={start:R,end:R}),E}function o(y,w,R,E){e&&(y.end=w,y.loc&&(y.loc.end=R))}function s(y,w){const R=y.context(),E=i(3,R.offset,R.startLoc);return E.value=w,o(E,y.currentOffset(),y.currentPosition()),E}function a(y,w){const R=y.context(),{lastOffset:E,lastStartLoc:A}=R,C=i(5,E,A);return C.index=parseInt(w,10),y.nextToken(),o(C,y.currentOffset(),y.currentPosition()),C}function u(y,w){const R=y.context(),{lastOffset:E,lastStartLoc:A}=R,C=i(4,E,A);return C.key=w,y.nextToken(),o(C,y.currentOffset(),y.currentPosition()),C}function c(y,w){const R=y.context(),{lastOffset:E,lastStartLoc:A}=R,C=i(9,E,A);return C.value=w.replace(ZE,eR),y.nextToken(),o(C,y.currentOffset(),y.currentPosition()),C}function h(y){const w=y.nextToken(),R=y.context(),{lastOffset:E,lastStartLoc:A}=R,C=i(8,E,A);return w.type!==11?(r(y,nn.UNEXPECTED_EMPTY_LINKED_MODIFIER,R.lastStartLoc,0),C.value="",o(C,E,A),{nextConsumeToken:w,node:C}):(w.value==null&&r(y,nn.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,io(w)),C.value=w.value||"",o(C,y.currentOffset(),y.currentPosition()),{node:C})}function l(y,w){const R=y.context(),E=i(7,R.offset,R.startLoc);return E.value=w,o(E,y.currentOffset(),y.currentPosition()),E}function d(y){const w=y.context(),R=i(6,w.offset,w.startLoc);let E=y.nextToken();if(E.type===8){const A=h(y);R.modifier=A.node,E=A.nextConsumeToken||y.nextToken()}switch(E.type!==9&&r(y,nn.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,io(E)),E=y.nextToken(),E.type===2&&(E=y.nextToken()),E.type){case 10:E.value==null&&r(y,nn.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,io(E)),R.key=l(y,E.value||"");break;case 4:E.value==null&&r(y,nn.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,io(E)),R.key=u(y,E.value||"");break;case 5:E.value==null&&r(y,nn.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,io(E)),R.key=a(y,E.value||"");break;case 6:E.value==null&&r(y,nn.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,io(E)),R.key=c(y,E.value||"");break;default:{r(y,nn.UNEXPECTED_EMPTY_LINKED_KEY,w.lastStartLoc,0);const A=y.context(),C=i(7,A.offset,A.startLoc);return C.value="",o(C,A.offset,A.startLoc),R.key=C,o(R,A.offset,A.startLoc),{nextConsumeToken:E,node:R}}}return o(R,y.currentOffset(),y.currentPosition()),{node:R}}function f(y){const w=y.context(),R=w.currentType===1?y.currentOffset():w.offset,E=w.currentType===1?w.endLoc:w.startLoc,A=i(2,R,E);A.items=[];let C=null;do{const N=C||y.nextToken();switch(C=null,N.type){case 0:N.value==null&&r(y,nn.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,io(N)),A.items.push(s(y,N.value||""));break;case 5:N.value==null&&r(y,nn.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,io(N)),A.items.push(a(y,N.value||""));break;case 4:N.value==null&&r(y,nn.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,io(N)),A.items.push(u(y,N.value||""));break;case 6:N.value==null&&r(y,nn.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,io(N)),A.items.push(c(y,N.value||""));break;case 7:{const W=d(y);A.items.push(W.node),C=W.nextConsumeToken||null;break}}}while(w.currentType!==13&&w.currentType!==1);const I=w.currentType===1?w.lastOffset:y.currentOffset(),$=w.currentType===1?w.lastEndLoc:y.currentPosition();return o(A,I,$),A}function _(y,w,R,E){const A=y.context();let C=E.items.length===0;const I=i(1,w,R);I.cases=[],I.cases.push(E);do{const $=f(y);C||(C=$.items.length===0),I.cases.push($)}while(A.currentType!==13);return C&&r(y,nn.MUST_HAVE_MESSAGES_IN_PLURAL,R,0),o(I,y.currentOffset(),y.currentPosition()),I}function p(y){const w=y.context(),{offset:R,startLoc:E}=w,A=f(y);return w.currentType===13?A:_(y,R,E,A)}function b(y){const w=QE(y,ar({},t)),R=w.context(),E=i(0,R.offset,R.startLoc);return e&&E.loc&&(E.loc.source=y),E.body=p(w),t.onCacheKey&&(E.cacheKey=t.onCacheKey(y)),R.currentType!==13&&r(w,nn.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,y[R.offset]||""),o(E,w.currentOffset(),w.currentPosition()),E}return{parse:b}}function io(t){if(t.type===13)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function nR(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function rv(t,e){for(let n=0;n<t.length;n++)Qm(t[n],e)}function Qm(t,e){switch(t.type){case 1:rv(t.cases,e),e.helper("plural");break;case 2:rv(t.items,e);break;case 6:{Qm(t.key,e),e.helper("linked"),e.helper("type");break}case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function rR(t,e={}){const n=nR(t);n.helper("normalize"),t.body&&Qm(t.body,n);const r=n.context();t.helpers=Array.from(r.helpers)}function iR(t){const e=t.body;return e.type===2?iv(e):e.cases.forEach(n=>iv(n)),t}function iv(t){if(t.items.length===1){const e=t.items[0];(e.type===3||e.type===9)&&(t.static=e.value,delete e.value)}else{const e=[];for(let n=0;n<t.items.length;n++){const r=t.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;e.push(r.value)}if(e.length===t.items.length){t.static=Xm(e);for(let n=0;n<t.items.length;n++){const r=t.items[n];(r.type===3||r.type===9)&&delete r.value}}}}function Ka(t){switch(t.t=t.type,t.type){case 0:{const e=t;Ka(e.body),e.b=e.body,delete e.body;break}case 1:{const e=t,n=e.cases;for(let r=0;r<n.length;r++)Ka(n[r]);e.c=n,delete e.cases;break}case 2:{const e=t,n=e.items;for(let r=0;r<n.length;r++)Ka(n[r]);e.i=n,delete e.items,e.static&&(e.s=e.static,delete e.static);break}case 3:case 9:case 8:case 7:{const e=t;e.value&&(e.v=e.value,delete e.value);break}case 6:{const e=t;Ka(e.key),e.k=e.key,delete e.key,e.modifier&&(Ka(e.modifier),e.m=e.modifier,delete e.modifier);break}case 5:{const e=t;e.i=e.index,delete e.index;break}case 4:{const e=t;e.k=e.key,delete e.key;break}}delete t.type}function oR(t,e){const{filename:n,breakLineCode:r,needIndent:i}=e,o=e.location!==!1,s={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:i,indentLevel:0};o&&t.loc&&(s.source=t.loc.source);const a=()=>s;function u(p,b){s.code+=p}function c(p,b=!0){const y=b?r:"";u(i?y+"  ".repeat(p):y)}function h(p=!0){const b=++s.indentLevel;p&&c(b)}function l(p=!0){const b=--s.indentLevel;p&&c(b)}function d(){c(s.indentLevel)}return{context:a,push:u,indent:h,deindent:l,newline:d,helper:p=>`_${p}`,needIndent:()=>s.needIndent}}function sR(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),bl(t,e.key),e.modifier?(t.push(", "),bl(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function aR(t,e){const{helper:n,needIndent:r}=t;t.push(`${n("normalize")}([`),t.indent(r());const i=e.items.length;for(let o=0;o<i&&(bl(t,e.items[o]),o!==i-1);o++)t.push(", ");t.deindent(r()),t.push("])")}function lR(t,e){const{helper:n,needIndent:r}=t;if(e.cases.length>1){t.push(`${n("plural")}([`),t.indent(r());const i=e.cases.length;for(let o=0;o<i&&(bl(t,e.cases[o]),o!==i-1);o++)t.push(", ");t.deindent(r()),t.push("])")}}function uR(t,e){e.body?bl(t,e.body):t.push("null")}function bl(t,e){const{helper:n}=t;switch(e.type){case 0:uR(t,e);break;case 1:lR(t,e);break;case 2:aR(t,e);break;case 6:sR(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${n("interpolate")}(${n("list")}(${e.index}))`,e);break;case 4:t.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break}}const cR=(t,e={})=>{const n=et(e.mode)?e.mode:"normal",r=et(e.filename)?e.filename:"message.intl";e.sourceMap;const i=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":`
`,o=e.needIndent?e.needIndent:n!=="arrow",s=t.helpers||[],a=oR(t,{filename:r,breakLineCode:i,needIndent:o});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(o),s.length>0&&(a.push(`const { ${Xm(s.map(h=>`${h}: _${h}`),", ")} } = ctx`),a.newline()),a.push("return "),bl(a,t),a.deindent(o),a.push("}"),delete t.helpers;const{code:u,map:c}=a.context();return{ast:t,code:u,map:c?c.toJSON():void 0}};function fR(t,e={}){const n=ar({},e),r=!!n.jit,i=!!n.minify,o=n.optimize==null?!0:n.optimize,a=tR(n).parse(t);return r?(o&&iR(a),i&&Ka(a),{ast:a,code:""}):(rR(a,n),cR(a,n))}/*!
  * core-base v10.0.8
  * (c) 2025 kazuya kawaguchi
  * Released under the MIT License.
  */function dR(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ym().__INTLIFY_PROD_DEVTOOLS__=!1)}function vo(t){return Kt(t)&&Jm(t)===0&&(Wi(t,"b")||Wi(t,"body"))}const N1=["b","body"];function hR(t){return Ds(t,N1)}const H1=["c","cases"];function pR(t){return Ds(t,H1,[])}const B1=["s","static"];function mR(t){return Ds(t,B1)}const V1=["i","items"];function gR(t){return Ds(t,V1,[])}const U1=["t","type"];function Jm(t){return Ds(t,U1)}const j1=["v","value"];function rf(t,e){const n=Ds(t,j1);if(n!=null)return n;throw Ku(e)}const W1=["m","modifier"];function _R(t){return Ds(t,W1)}const q1=["k","key"];function vR(t){const e=Ds(t,q1);if(e)return e;throw Ku(6)}function Ds(t,e,n){for(let r=0;r<e.length;r++){const i=e[r];if(Wi(t,i)&&t[i]!=null)return t[i]}return n}const z1=[...N1,...H1,...B1,...V1,...q1,...W1,...j1,...U1];function Ku(t){return new Error(`unhandled node type: ${t}`)}function Fh(t){return n=>yR(n,t)}function yR(t,e){const n=hR(e);if(n==null)throw Ku(0);if(Jm(n)===1){const o=pR(n);return t.plural(o.reduce((s,a)=>[...s,ov(t,a)],[]))}else return ov(t,n)}function ov(t,e){const n=mR(e);if(n!=null)return t.type==="text"?n:t.normalize([n]);{const r=gR(e).reduce((i,o)=>[...i,xp(t,o)],[]);return t.normalize(r)}}function xp(t,e){const n=Jm(e);switch(n){case 3:return rf(e,n);case 9:return rf(e,n);case 4:{const r=e;if(Wi(r,"k")&&r.k)return t.interpolate(t.named(r.k));if(Wi(r,"key")&&r.key)return t.interpolate(t.named(r.key));throw Ku(n)}case 5:{const r=e;if(Wi(r,"i")&&zn(r.i))return t.interpolate(t.list(r.i));if(Wi(r,"index")&&zn(r.index))return t.interpolate(t.list(r.index));throw Ku(n)}case 6:{const r=e,i=_R(r),o=vR(r);return t.linked(xp(t,o),i?xp(t,i):void 0,t.type)}case 7:return rf(e,n);case 8:return rf(e,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const bR=t=>t;let of=on();function wR(t,e={}){let n=!1;const r=e.onError||WE;return e.onError=i=>{n=!0,r(i)},{...fR(t,e),detectError:n}}function SR(t,e){if(et(t)){En(e.warnHtmlMessage)&&e.warnHtmlMessage;const r=(e.onCacheKey||bR)(t),i=of[r];if(i)return i;const{ast:o,detectError:s}=wR(t,{...e,location:!1,jit:!0}),a=Fh(o);return s?a:of[r]=a}else{const n=t.cacheKey;if(n){const r=of[n];return r||(of[n]=Fh(t))}else return Fh(t)}}let Xu=null;function TR(t){Xu=t}function kR(t,e,n){Xu&&Xu.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:e,meta:n})}const ER=RR("function:translate");function RR(t){return e=>Xu&&Xu.emit(t,e)}const Vo={INVALID_ARGUMENT:jE,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},AR=24;function Uo(t){return jd(t,null,void 0)}function Zm(t,e){return e.locale!=null?sv(e.locale):sv(t.locale)}let Dh;function sv(t){if(et(t))return t;if(Tn(t)){if(t.resolvedOnce&&Dh!=null)return Dh;if(t.constructor.name==="Function"){const e=t();if(BE(e))throw Uo(Vo.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Dh=e}else throw Uo(Vo.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Uo(Vo.NOT_SUPPORT_LOCALE_TYPE)}function CR(t,e,n){return[...new Set([n,...er(e)?e:Kt(e)?Object.keys(e):et(e)?[e]:[n]])]}function G1(t,e,n){const r=et(n)?n:ad,i=t;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(r);if(!o){o=[];let s=[n];for(;er(s);)s=av(o,s,e);const a=er(e)||!Ut(e)?e:e.default?e.default:null;s=et(a)?[a]:a,er(s)&&av(o,s,!1),i.__localeChainCache.set(r,o)}return o}function av(t,e,n){let r=!0;for(let i=0;i<e.length&&En(r);i++){const o=e[i];et(o)&&(r=xR(t,e[i],n))}return r}function xR(t,e,n){let r;const i=e.split("-");do{const o=i.join("-");r=PR(t,o,n),i.splice(-1,1)}while(i.length&&r===!0);return r}function PR(t,e,n){let r=!1;if(!t.includes(e)&&(r=!0,e)){r=e[e.length-1]!=="!";const i=e.replace(/!/g,"");t.push(i),(er(n)||Ut(n))&&n[i]&&(r=n[i])}return r}const Ns=[];Ns[0]={w:[0],i:[3,0],"[":[4],o:[7]};Ns[1]={w:[1],".":[2],"[":[4],o:[7]};Ns[2]={w:[2],i:[3,0],0:[3,0]};Ns[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Ns[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Ns[5]={"'":[4,0],o:8,l:[5,0]};Ns[6]={'"':[4,0],o:8,l:[6,0]};const IR=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function LR(t){return IR.test(t)}function OR(t){const e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e===n&&(e===34||e===39)?t.slice(1,-1):t}function MR(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function $R(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:LR(e)?OR(e):"*"+e}function FR(t){const e=[];let n=-1,r=0,i=0,o,s,a,u,c,h,l;const d=[];d[0]=()=>{s===void 0?s=a:s+=a},d[1]=()=>{s!==void 0&&(e.push(s),s=void 0)},d[2]=()=>{d[0](),i++},d[3]=()=>{if(i>0)i--,r=4,d[0]();else{if(i=0,s===void 0||(s=$R(s),s===!1))return!1;d[1]()}};function f(){const _=t[n+1];if(r===5&&_==="'"||r===6&&_==='"')return n++,a="\\"+_,d[0](),!0}for(;r!==null;)if(n++,o=t[n],!(o==="\\"&&f())){if(u=MR(o),l=Ns[r],c=l[u]||l.l||8,c===8||(r=c[0],c[1]!==void 0&&(h=d[c[1]],h&&(a=o,h()===!1))))return;if(r===7)return e}}const lv=new Map;function DR(t,e){return Kt(t)?t[e]:null}function NR(t,e){if(!Kt(t))return null;let n=lv.get(e);if(n||(n=FR(e),n&&lv.set(e,n)),!n)return null;const r=n.length;let i=t,o=0;for(;o<r;){const s=n[o];if(z1.includes(s)&&vo(i))return null;const a=i[s];if(a===void 0||Tn(i))return null;i=a,o++}return i}const HR="10.0.8",Wd=-1,ad="en-US",uv="",cv=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function BR(){return{upper:(t,e)=>e==="text"&&et(t)?t.toUpperCase():e==="vnode"&&Kt(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&et(t)?t.toLowerCase():e==="vnode"&&Kt(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&et(t)?cv(t):e==="vnode"&&Kt(t)&&"__v_isVNode"in t?cv(t.children):t}}let Y1;function VR(t){Y1=t}let K1;function UR(t){K1=t}let X1;function jR(t){X1=t}let Q1=null;const WR=t=>{Q1=t},qR=()=>Q1;let J1=null;const fv=t=>{J1=t},zR=()=>J1;let dv=0;function GR(t={}){const e=Tn(t.onWarn)?t.onWarn:OE,n=et(t.version)?t.version:HR,r=et(t.locale)||Tn(t.locale)?t.locale:ad,i=Tn(r)?ad:r,o=er(t.fallbackLocale)||Ut(t.fallbackLocale)||et(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:i,s=Ut(t.messages)?t.messages:Nh(i),a=Ut(t.datetimeFormats)?t.datetimeFormats:Nh(i),u=Ut(t.numberFormats)?t.numberFormats:Nh(i),c=ar(on(),t.modifiers,BR()),h=t.pluralRules||on(),l=Tn(t.missing)?t.missing:null,d=En(t.missingWarn)||sd(t.missingWarn)?t.missingWarn:!0,f=En(t.fallbackWarn)||sd(t.fallbackWarn)?t.fallbackWarn:!0,_=!!t.fallbackFormat,p=!!t.unresolving,b=Tn(t.postTranslation)?t.postTranslation:null,y=Ut(t.processor)?t.processor:null,w=En(t.warnHtmlMessage)?t.warnHtmlMessage:!0,R=!!t.escapeParameter,E=Tn(t.messageCompiler)?t.messageCompiler:Y1,A=Tn(t.messageResolver)?t.messageResolver:K1||DR,C=Tn(t.localeFallbacker)?t.localeFallbacker:X1||CR,I=Kt(t.fallbackContext)?t.fallbackContext:void 0,$=t,N=Kt($.__datetimeFormatters)?$.__datetimeFormatters:new Map,W=Kt($.__numberFormatters)?$.__numberFormatters:new Map,ne=Kt($.__meta)?$.__meta:{};dv++;const F={version:n,cid:dv,locale:r,fallbackLocale:o,messages:s,modifiers:c,pluralRules:h,missing:l,missingWarn:d,fallbackWarn:f,fallbackFormat:_,unresolving:p,postTranslation:b,processor:y,warnHtmlMessage:w,escapeParameter:R,messageCompiler:E,messageResolver:A,localeFallbacker:C,fallbackContext:I,onWarn:e,__meta:ne};return F.datetimeFormats=a,F.numberFormats=u,F.__datetimeFormatters=N,F.__numberFormatters=W,__INTLIFY_PROD_DEVTOOLS__&&kR(F,n,ne),F}const Nh=t=>({[t]:on()});function eg(t,e,n,r,i){const{missing:o,onWarn:s}=t;if(o!==null){const a=o(t,n,e,i);return et(a)?a:e}else return e}function tu(t,e,n){const r=t;r.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}function YR(t,e){return t===e?!1:t.split("-")[0]===e.split("-")[0]}function KR(t,e){const n=e.indexOf(t);if(n===-1)return!1;for(let r=n+1;r<e.length;r++)if(YR(t,e[r]))return!0;return!1}function hv(t,...e){const{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:s}=t,{__datetimeFormatters:a}=t,[u,c,h,l]=Pp(...e),d=En(h.missingWarn)?h.missingWarn:t.missingWarn;En(h.fallbackWarn)?h.fallbackWarn:t.fallbackWarn;const f=!!h.part,_=Zm(t,h),p=s(t,i,_);if(!et(u)||u==="")return new Intl.DateTimeFormat(_,l).format(c);let b={},y,w=null;const R="datetime format";for(let C=0;C<p.length&&(y=p[C],b=n[y]||{},w=b[u],!Ut(w));C++)eg(t,u,y,d,R);if(!Ut(w)||!et(y))return r?Wd:u;let E=`${y}__${u}`;Ud(l)||(E=`${E}__${JSON.stringify(l)}`);let A=a.get(E);return A||(A=new Intl.DateTimeFormat(y,ar({},w,l)),a.set(E,A)),f?A.formatToParts(c):A.format(c)}const Z1=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Pp(...t){const[e,n,r,i]=t,o=on();let s=on(),a;if(et(e)){const u=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!u)throw Uo(Vo.INVALID_ISO_DATE_ARGUMENT);const c=u[3]?u[3].trim().startsWith("T")?`${u[1].trim()}${u[3].trim()}`:`${u[1].trim()}T${u[3].trim()}`:u[1].trim();a=new Date(c);try{a.toISOString()}catch{throw Uo(Vo.INVALID_ISO_DATE_ARGUMENT)}}else if(FE(e)){if(isNaN(e.getTime()))throw Uo(Vo.INVALID_DATE_ARGUMENT);a=e}else if(zn(e))a=e;else throw Uo(Vo.INVALID_ARGUMENT);return et(n)?o.key=n:Ut(n)&&Object.keys(n).forEach(u=>{Z1.includes(u)?s[u]=n[u]:o[u]=n[u]}),et(r)?o.locale=r:Ut(r)&&(s=r),Ut(i)&&(s=i),[o.key||"",a,o,s]}function pv(t,e,n){const r=t;for(const i in n){const o=`${e}__${i}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function mv(t,...e){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:s}=t,{__numberFormatters:a}=t,[u,c,h,l]=Ip(...e),d=En(h.missingWarn)?h.missingWarn:t.missingWarn;En(h.fallbackWarn)?h.fallbackWarn:t.fallbackWarn;const f=!!h.part,_=Zm(t,h),p=s(t,i,_);if(!et(u)||u==="")return new Intl.NumberFormat(_,l).format(c);let b={},y,w=null;const R="number format";for(let C=0;C<p.length&&(y=p[C],b=n[y]||{},w=b[u],!Ut(w));C++)eg(t,u,y,d,R);if(!Ut(w)||!et(y))return r?Wd:u;let E=`${y}__${u}`;Ud(l)||(E=`${E}__${JSON.stringify(l)}`);let A=a.get(E);return A||(A=new Intl.NumberFormat(y,ar({},w,l)),a.set(E,A)),f?A.formatToParts(c):A.format(c)}const eb=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Ip(...t){const[e,n,r,i]=t,o=on();let s=on();if(!zn(e))throw Uo(Vo.INVALID_ARGUMENT);const a=e;return et(n)?o.key=n:Ut(n)&&Object.keys(n).forEach(u=>{eb.includes(u)?s[u]=n[u]:o[u]=n[u]}),et(r)?o.locale=r:Ut(r)&&(s=r),Ut(i)&&(s=i),[o.key||"",a,o,s]}function gv(t,e,n){const r=t;for(const i in n){const o=`${e}__${i}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}const XR=t=>t,QR=t=>"",JR="text",ZR=t=>t.length===0?"":Xm(t),eA=VE;function _v(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function tA(t){const e=zn(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(zn(t.named.count)||zn(t.named.n))?zn(t.named.count)?t.named.count:zn(t.named.n)?t.named.n:e:e}function nA(t,e){e.count||(e.count=t),e.n||(e.n=t)}function rA(t={}){const e=t.locale,n=tA(t),r=Kt(t.pluralRules)&&et(e)&&Tn(t.pluralRules[e])?t.pluralRules[e]:_v,i=Kt(t.pluralRules)&&et(e)&&Tn(t.pluralRules[e])?_v:void 0,o=y=>y[r(n,y.length,i)],s=t.list||[],a=y=>s[y],u=t.named||on();zn(t.pluralIndex)&&nA(n,u);const c=y=>u[y];function h(y,w){const R=Tn(t.messages)?t.messages(y,!!w):Kt(t.messages)?t.messages[y]:!1;return R||(t.parent?t.parent.message(y):QR)}const l=y=>t.modifiers?t.modifiers[y]:XR,d=Ut(t.processor)&&Tn(t.processor.normalize)?t.processor.normalize:ZR,f=Ut(t.processor)&&Tn(t.processor.interpolate)?t.processor.interpolate:eA,_=Ut(t.processor)&&et(t.processor.type)?t.processor.type:JR,b={list:a,named:c,plural:o,linked:(y,...w)=>{const[R,E]=w;let A="text",C="";w.length===1?Kt(R)?(C=R.modifier||C,A=R.type||A):et(R)&&(C=R||C):w.length===2&&(et(R)&&(C=R||C),et(E)&&(A=E||A));const I=h(y,!0)(b),$=A==="vnode"&&er(I)&&C?I[0]:I;return C?l(C)($,A):$},message:h,type:_,interpolate:f,normalize:d,values:ar(on(),s,u)};return b}const vv=()=>"",Ri=t=>Tn(t);function yv(t,...e){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:o,fallbackLocale:s,messages:a}=t,[u,c]=Lp(...e),h=En(c.missingWarn)?c.missingWarn:t.missingWarn,l=En(c.fallbackWarn)?c.fallbackWarn:t.fallbackWarn,d=En(c.escapeParameter)?c.escapeParameter:t.escapeParameter,f=!!c.resolvedMessage,_=et(c.default)||En(c.default)?En(c.default)?o?u:()=>u:c.default:n?o?u:()=>u:null,p=n||_!=null&&(et(_)||Tn(_)),b=Zm(t,c);d&&iA(c);let[y,w,R]=f?[u,b,a[b]||on()]:tb(t,u,b,s,l,h),E=y,A=u;if(!f&&!(et(E)||vo(E)||Ri(E))&&p&&(E=_,A=E),!f&&(!(et(E)||vo(E)||Ri(E))||!et(w)))return i?Wd:u;let C=!1;const I=()=>{C=!0},$=Ri(E)?E:nb(t,u,w,E,A,I);if(C)return E;const N=aA(t,w,R,c),W=rA(N),ne=oA(t,$,W);let F=r?r(ne,u):ne;if(d&&et(F)&&(F=NE(F)),__INTLIFY_PROD_DEVTOOLS__){const Q={timestamp:Date.now(),key:et(u)?u:Ri(E)?E.key:"",locale:w||(Ri(E)?E.locale:""),format:et(E)?E:Ri(E)?E.source:"",message:F};Q.meta=ar({},t.__meta,qR()||{}),ER(Q)}return F}function iA(t){er(t.list)?t.list=t.list.map(e=>et(e)?ev(e):e):Kt(t.named)&&Object.keys(t.named).forEach(e=>{et(t.named[e])&&(t.named[e]=ev(t.named[e]))})}function tb(t,e,n,r,i,o){const{messages:s,onWarn:a,messageResolver:u,localeFallbacker:c}=t,h=c(t,r,n);let l=on(),d,f=null;const _="translate";for(let p=0;p<h.length&&(d=h[p],l=s[d]||on(),(f=u(l,e))===null&&(f=l[e]),!(et(f)||vo(f)||Ri(f)));p++)if(!KR(d,h)){const b=eg(t,e,d,o,_);b!==e&&(f=b)}return[f,d,l]}function nb(t,e,n,r,i,o){const{messageCompiler:s,warnHtmlMessage:a}=t;if(Ri(r)){const c=r;return c.locale=c.locale||n,c.key=c.key||e,c}if(s==null){const c=()=>r;return c.locale=n,c.key=e,c}const u=s(r,sA(t,n,i,r,a,o));return u.locale=n,u.key=e,u.source=r,u}function oA(t,e,n){return e(n)}function Lp(...t){const[e,n,r]=t,i=on();if(!et(e)&&!zn(e)&&!Ri(e)&&!vo(e))throw Uo(Vo.INVALID_ARGUMENT);const o=zn(e)?String(e):(Ri(e),e);return zn(n)?i.plural=n:et(n)?i.default=n:Ut(n)&&!Ud(n)?i.named=n:er(n)&&(i.list=n),zn(r)?i.plural=r:et(r)?i.default=r:Ut(r)&&ar(i,r),[o,i]}function sA(t,e,n,r,i,o){return{locale:e,key:n,warnHtmlMessage:i,onError:s=>{throw o&&o(s),s},onCacheKey:s=>ME(e,n,s)}}function aA(t,e,n,r){const{modifiers:i,pluralRules:o,messageResolver:s,fallbackLocale:a,fallbackWarn:u,missingWarn:c,fallbackContext:h}=t,d={locale:e,modifiers:i,pluralRules:o,messages:(f,_)=>{let p=s(n,f);if(p==null&&(h||_)){const[,,b]=tb(h||t,f,e,a,u,c);p=s(b,f)}if(et(p)||vo(p)){let b=!1;const w=nb(t,f,e,p,f,()=>{b=!0});return b?vv:w}else return Ri(p)?p:vv}};return t.processor&&(d.processor=t.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),zn(r.plural)&&(d.pluralIndex=r.plural),d}dR();/**
* @vue/shared v3.5.17
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function tg(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const dn={},sl=[],yo=()=>{},lA=()=>!1,qd=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),ng=t=>t.startsWith("onUpdate:"),lr=Object.assign,rg=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},uA=Object.prototype.hasOwnProperty,tn=(t,e)=>uA.call(t,e),ut=Array.isArray,al=t=>Sc(t)==="[object Map]",zd=t=>Sc(t)==="[object Set]",bv=t=>Sc(t)==="[object Date]",ht=t=>typeof t=="function",An=t=>typeof t=="string",Gi=t=>typeof t=="symbol",sn=t=>t!==null&&typeof t=="object",rb=t=>(sn(t)||ht(t))&&ht(t.then)&&ht(t.catch),ib=Object.prototype.toString,Sc=t=>ib.call(t),cA=t=>Sc(t).slice(8,-1),ob=t=>Sc(t)==="[object Object]",ig=t=>An(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Eu=tg(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Gd=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},fA=/-(\w)/g,Fi=Gd(t=>t.replace(fA,(e,n)=>n?n.toUpperCase():"")),dA=/\B([A-Z])/g,Ia=Gd(t=>t.replace(dA,"-$1").toLowerCase()),Yd=Gd(t=>t.charAt(0).toUpperCase()+t.slice(1)),Hh=Gd(t=>t?`on${Yd(t)}`:""),Es=(t,e)=>!Object.is(t,e),Ff=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},Op=(t,e,n,r=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},ld=t=>{const e=parseFloat(t);return isNaN(e)?t:e},hA=t=>{const e=An(t)?Number(t):NaN;return isNaN(e)?t:e};let wv;const Kd=()=>wv||(wv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function og(t){if(ut(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],i=An(r)?_A(r):og(r);if(i)for(const o in i)e[o]=i[o]}return e}else if(An(t)||sn(t))return t}const pA=/;(?![^(]*\))/g,mA=/:([^]+)/,gA=/\/\*[^]*?\*\//g;function _A(t){const e={};return t.replace(gA,"").split(pA).forEach(n=>{if(n){const r=n.split(mA);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function rt(t){let e="";if(An(t))e=t;else if(ut(t))for(let n=0;n<t.length;n++){const r=rt(t[n]);r&&(e+=r+" ")}else if(sn(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const vA="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",yA=tg(vA);function sb(t){return!!t||t===""}function bA(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=Xd(t[r],e[r]);return n}function Xd(t,e){if(t===e)return!0;let n=bv(t),r=bv(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=Gi(t),r=Gi(e),n||r)return t===e;if(n=ut(t),r=ut(e),n||r)return n&&r?bA(t,e):!1;if(n=sn(t),r=sn(e),n||r){if(!n||!r)return!1;const i=Object.keys(t).length,o=Object.keys(e).length;if(i!==o)return!1;for(const s in t){const a=t.hasOwnProperty(s),u=e.hasOwnProperty(s);if(a&&!u||!a&&u||!Xd(t[s],e[s]))return!1}}return String(t)===String(e)}function wA(t,e){return t.findIndex(n=>Xd(n,e))}const ab=t=>!!(t&&t.__v_isRef===!0),De=t=>An(t)?t:t==null?"":ut(t)||sn(t)&&(t.toString===ib||!ht(t.toString))?ab(t)?De(t.value):JSON.stringify(t,lb,2):String(t),lb=(t,e)=>ab(e)?lb(t,e.value):al(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,i],o)=>(n[Bh(r,o)+" =>"]=i,n),{})}:zd(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>Bh(n))}:Gi(e)?Bh(e):sn(e)&&!ut(e)&&!ob(e)?String(e):e,Bh=(t,e="")=>{var n;return Gi(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/**
* @vue/reactivity v3.5.17
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let wr;class ub{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=wr,!e&&wr&&(this.index=(wr.scopes||(wr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].pause();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].resume();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].resume()}}run(e){if(this._active){const n=wr;try{return wr=this,e()}finally{wr=n}}}on(){++this._on===1&&(this.prevScope=wr,wr=this)}off(){this._on>0&&--this._on===0&&(wr=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function sg(t){return new ub(t)}function cb(){return wr}function SA(t,e=!1){wr&&wr.cleanups.push(t)}let mn;const Vh=new WeakSet;class fb{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,wr&&wr.active&&wr.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Vh.has(this)&&(Vh.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||hb(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Sv(this),pb(this);const e=mn,n=qi;mn=this,qi=!0;try{return this.fn()}finally{mb(this),mn=e,qi=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)ug(e);this.deps=this.depsTail=void 0,Sv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Vh.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Mp(this)&&this.run()}get dirty(){return Mp(this)}}let db=0,Ru,Au;function hb(t,e=!1){if(t.flags|=8,e){t.next=Au,Au=t;return}t.next=Ru,Ru=t}function ag(){db++}function lg(){if(--db>0)return;if(Au){let e=Au;for(Au=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;Ru;){let e=Ru;for(Ru=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}function pb(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function mb(t){let e,n=t.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),ug(r),TA(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}t.deps=e,t.depsTail=n}function Mp(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(gb(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function gb(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Qu)||(t.globalVersion=Qu,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!Mp(t))))return;t.flags|=2;const e=t.dep,n=mn,r=qi;mn=t,qi=!0;try{pb(t);const i=t.fn(t._value);(e.version===0||Es(i,t._value))&&(t.flags|=128,t._value=i,e.version++)}catch(i){throw e.version++,i}finally{mn=n,qi=r,mb(t),t.flags&=-3}}function ug(t,e=!1){const{dep:n,prevSub:r,nextSub:i}=t;if(r&&(r.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=r,t.nextSub=void 0),n.subs===t&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)ug(o,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function TA(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let qi=!0;const _b=[];function Ko(){_b.push(qi),qi=!1}function Xo(){const t=_b.pop();qi=t===void 0?!0:t}function Sv(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=mn;mn=void 0;try{e()}finally{mn=n}}}let Qu=0;class kA{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class cg{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!mn||!qi||mn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==mn)n=this.activeLink=new kA(mn,this),mn.deps?(n.prevDep=mn.depsTail,mn.depsTail.nextDep=n,mn.depsTail=n):mn.deps=mn.depsTail=n,vb(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=mn.depsTail,n.nextDep=void 0,mn.depsTail.nextDep=n,mn.depsTail=n,mn.deps===n&&(mn.deps=r)}return n}trigger(e){this.version++,Qu++,this.notify(e)}notify(e){ag();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{lg()}}}function vb(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)vb(r)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const ud=new WeakMap,ua=Symbol(""),$p=Symbol(""),Ju=Symbol("");function Tr(t,e,n){if(qi&&mn){let r=ud.get(t);r||ud.set(t,r=new Map);let i=r.get(n);i||(r.set(n,i=new cg),i.map=r,i.key=n),i.track()}}function No(t,e,n,r,i,o){const s=ud.get(t);if(!s){Qu++;return}const a=u=>{u&&u.trigger()};if(ag(),e==="clear")s.forEach(a);else{const u=ut(t),c=u&&ig(n);if(u&&n==="length"){const h=Number(r);s.forEach((l,d)=>{(d==="length"||d===Ju||!Gi(d)&&d>=h)&&a(l)})}else switch((n!==void 0||s.has(void 0))&&a(s.get(n)),c&&a(s.get(Ju)),e){case"add":u?c&&a(s.get("length")):(a(s.get(ua)),al(t)&&a(s.get($p)));break;case"delete":u||(a(s.get(ua)),al(t)&&a(s.get($p)));break;case"set":al(t)&&a(s.get(ua));break}}lg()}function EA(t,e){const n=ud.get(t);return n&&n.get(e)}function Ua(t){const e=Vt(t);return e===t?e:(Tr(e,"iterate",Ju),Mi(t)?e:e.map(dr))}function Qd(t){return Tr(t=Vt(t),"iterate",Ju),t}const RA={__proto__:null,[Symbol.iterator](){return Uh(this,Symbol.iterator,dr)},concat(...t){return Ua(this).concat(...t.map(e=>ut(e)?Ua(e):e))},entries(){return Uh(this,"entries",t=>(t[1]=dr(t[1]),t))},every(t,e){return xo(this,"every",t,e,void 0,arguments)},filter(t,e){return xo(this,"filter",t,e,n=>n.map(dr),arguments)},find(t,e){return xo(this,"find",t,e,dr,arguments)},findIndex(t,e){return xo(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return xo(this,"findLast",t,e,dr,arguments)},findLastIndex(t,e){return xo(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return xo(this,"forEach",t,e,void 0,arguments)},includes(...t){return jh(this,"includes",t)},indexOf(...t){return jh(this,"indexOf",t)},join(t){return Ua(this).join(t)},lastIndexOf(...t){return jh(this,"lastIndexOf",t)},map(t,e){return xo(this,"map",t,e,void 0,arguments)},pop(){return nu(this,"pop")},push(...t){return nu(this,"push",t)},reduce(t,...e){return Tv(this,"reduce",t,e)},reduceRight(t,...e){return Tv(this,"reduceRight",t,e)},shift(){return nu(this,"shift")},some(t,e){return xo(this,"some",t,e,void 0,arguments)},splice(...t){return nu(this,"splice",t)},toReversed(){return Ua(this).toReversed()},toSorted(t){return Ua(this).toSorted(t)},toSpliced(...t){return Ua(this).toSpliced(...t)},unshift(...t){return nu(this,"unshift",t)},values(){return Uh(this,"values",dr)}};function Uh(t,e,n){const r=Qd(t),i=r[e]();return r!==t&&!Mi(t)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.value&&(o.value=n(o.value)),o}),i}const AA=Array.prototype;function xo(t,e,n,r,i,o){const s=Qd(t),a=s!==t&&!Mi(t),u=s[e];if(u!==AA[e]){const l=u.apply(t,o);return a?dr(l):l}let c=n;s!==t&&(a?c=function(l,d){return n.call(this,dr(l),d,t)}:n.length>2&&(c=function(l,d){return n.call(this,l,d,t)}));const h=u.call(s,c,r);return a&&i?i(h):h}function Tv(t,e,n,r){const i=Qd(t);let o=n;return i!==t&&(Mi(t)?n.length>3&&(o=function(s,a,u){return n.call(this,s,a,u,t)}):o=function(s,a,u){return n.call(this,s,dr(a),u,t)}),i[e](o,...r)}function jh(t,e,n){const r=Vt(t);Tr(r,"iterate",Ju);const i=r[e](...n);return(i===-1||i===!1)&&hg(n[0])?(n[0]=Vt(n[0]),r[e](...n)):i}function nu(t,e,n=[]){Ko(),ag();const r=Vt(t)[e].apply(t,n);return lg(),Xo(),r}const CA=tg("__proto__,__v_isRef,__isVue"),yb=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Gi));function xA(t){Gi(t)||(t=String(t));const e=Vt(this);return Tr(e,"has",t),e.hasOwnProperty(t)}class bb{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){if(n==="__v_skip")return e.__v_skip;const i=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(i?o?HA:kb:o?Tb:Sb).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const s=ut(e);if(!i){let u;if(s&&(u=RA[n]))return u;if(n==="hasOwnProperty")return xA}const a=Reflect.get(e,n,vn(e)?e:r);return(Gi(n)?yb.has(n):CA(n))||(i||Tr(e,"get",n),o)?a:vn(a)?s&&ig(n)?a:a.value:sn(a)?i?Rb(a):La(a):a}}class wb extends bb{constructor(e=!1){super(!1,e)}set(e,n,r,i){let o=e[n];if(!this._isShallow){const u=Qo(o);if(!Mi(r)&&!Qo(r)&&(o=Vt(o),r=Vt(r)),!ut(e)&&vn(o)&&!vn(r))return u?!1:(o.value=r,!0)}const s=ut(e)&&ig(n)?Number(n)<e.length:tn(e,n),a=Reflect.set(e,n,r,vn(e)?e:i);return e===Vt(i)&&(s?Es(r,o)&&No(e,"set",n,r):No(e,"add",n,r)),a}deleteProperty(e,n){const r=tn(e,n);e[n];const i=Reflect.deleteProperty(e,n);return i&&r&&No(e,"delete",n,void 0),i}has(e,n){const r=Reflect.has(e,n);return(!Gi(n)||!yb.has(n))&&Tr(e,"has",n),r}ownKeys(e){return Tr(e,"iterate",ut(e)?"length":ua),Reflect.ownKeys(e)}}class PA extends bb{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const IA=new wb,LA=new PA,OA=new wb(!0);const Fp=t=>t,sf=t=>Reflect.getPrototypeOf(t);function MA(t,e,n){return function(...r){const i=this.__v_raw,o=Vt(i),s=al(o),a=t==="entries"||t===Symbol.iterator&&s,u=t==="keys"&&s,c=i[t](...r),h=n?Fp:e?cd:dr;return!e&&Tr(o,"iterate",u?$p:ua),{next(){const{value:l,done:d}=c.next();return d?{value:l,done:d}:{value:a?[h(l[0]),h(l[1])]:h(l),done:d}},[Symbol.iterator](){return this}}}}function af(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function $A(t,e){const n={get(i){const o=this.__v_raw,s=Vt(o),a=Vt(i);t||(Es(i,a)&&Tr(s,"get",i),Tr(s,"get",a));const{has:u}=sf(s),c=e?Fp:t?cd:dr;if(u.call(s,i))return c(o.get(i));if(u.call(s,a))return c(o.get(a));o!==s&&o.get(i)},get size(){const i=this.__v_raw;return!t&&Tr(Vt(i),"iterate",ua),Reflect.get(i,"size",i)},has(i){const o=this.__v_raw,s=Vt(o),a=Vt(i);return t||(Es(i,a)&&Tr(s,"has",i),Tr(s,"has",a)),i===a?o.has(i):o.has(i)||o.has(a)},forEach(i,o){const s=this,a=s.__v_raw,u=Vt(a),c=e?Fp:t?cd:dr;return!t&&Tr(u,"iterate",ua),a.forEach((h,l)=>i.call(o,c(h),c(l),s))}};return lr(n,t?{add:af("add"),set:af("set"),delete:af("delete"),clear:af("clear")}:{add(i){!e&&!Mi(i)&&!Qo(i)&&(i=Vt(i));const o=Vt(this);return sf(o).has.call(o,i)||(o.add(i),No(o,"add",i,i)),this},set(i,o){!e&&!Mi(o)&&!Qo(o)&&(o=Vt(o));const s=Vt(this),{has:a,get:u}=sf(s);let c=a.call(s,i);c||(i=Vt(i),c=a.call(s,i));const h=u.call(s,i);return s.set(i,o),c?Es(o,h)&&No(s,"set",i,o):No(s,"add",i,o),this},delete(i){const o=Vt(this),{has:s,get:a}=sf(o);let u=s.call(o,i);u||(i=Vt(i),u=s.call(o,i)),a&&a.call(o,i);const c=o.delete(i);return u&&No(o,"delete",i,void 0),c},clear(){const i=Vt(this),o=i.size!==0,s=i.clear();return o&&No(i,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=MA(i,t,e)}),n}function fg(t,e){const n=$A(t,e);return(r,i,o)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?r:Reflect.get(tn(n,i)&&i in r?n:r,i,o)}const FA={get:fg(!1,!1)},DA={get:fg(!1,!0)},NA={get:fg(!0,!1)};const Sb=new WeakMap,Tb=new WeakMap,kb=new WeakMap,HA=new WeakMap;function BA(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function VA(t){return t.__v_skip||!Object.isExtensible(t)?0:BA(cA(t))}function La(t){return Qo(t)?t:dg(t,!1,IA,FA,Sb)}function Eb(t){return dg(t,!1,OA,DA,Tb)}function Rb(t){return dg(t,!0,LA,NA,kb)}function dg(t,e,n,r,i){if(!sn(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const o=VA(t);if(o===0)return t;const s=i.get(t);if(s)return s;const a=new Proxy(t,o===2?r:n);return i.set(t,a),a}function zo(t){return Qo(t)?zo(t.__v_raw):!!(t&&t.__v_isReactive)}function Qo(t){return!!(t&&t.__v_isReadonly)}function Mi(t){return!!(t&&t.__v_isShallow)}function hg(t){return t?!!t.__v_raw:!1}function Vt(t){const e=t&&t.__v_raw;return e?Vt(e):t}function pg(t){return!tn(t,"__v_skip")&&Object.isExtensible(t)&&Op(t,"__v_skip",!0),t}const dr=t=>sn(t)?La(t):t,cd=t=>sn(t)?Rb(t):t;function vn(t){return t?t.__v_isRef===!0:!1}function j(t){return Ab(t,!1)}function ba(t){return Ab(t,!0)}function Ab(t,e){return vn(t)?t:new UA(t,e)}class UA{constructor(e,n){this.dep=new cg,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:Vt(e),this._value=n?e:dr(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,r=this.__v_isShallow||Mi(e)||Qo(e);e=r?e:Vt(e),Es(e,n)&&(this._rawValue=e,this._value=r?e:dr(e),this.dep.trigger())}}function pe(t){return vn(t)?t.value:t}function jA(t){return ht(t)?t():pe(t)}const WA={get:(t,e,n)=>e==="__v_raw"?t:pe(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const i=t[e];return vn(i)&&!vn(n)?(i.value=n,!0):Reflect.set(t,e,n,r)}};function Cb(t){return zo(t)?t:new Proxy(t,WA)}function xb(t){const e=ut(t)?new Array(t.length):{};for(const n in t)e[n]=Pb(t,n);return e}class qA{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return EA(Vt(this._object),this._key)}}class zA{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function GA(t,e,n){return vn(t)?t:ht(t)?new zA(t):sn(t)&&arguments.length>1?Pb(t,e,n):j(t)}function Pb(t,e,n){const r=t[e];return vn(r)?r:new qA(t,e,n)}class YA{constructor(e,n,r){this.fn=e,this.setter=n,this._value=void 0,this.dep=new cg(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Qu-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&mn!==this)return hb(this,!0),!0}get value(){const e=this.dep.track();return gb(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function KA(t,e,n=!1){let r,i;return ht(t)?r=t:(r=t.get,i=t.set),new YA(r,i,n)}const lf={},fd=new WeakMap;let Js;function XA(t,e=!1,n=Js){if(n){let r=fd.get(n);r||fd.set(n,r=[]),r.push(t)}}function QA(t,e,n=dn){const{immediate:r,deep:i,once:o,scheduler:s,augmentJob:a,call:u}=n,c=E=>i?E:Mi(E)||i===!1||i===0?Ho(E,1):Ho(E);let h,l,d,f,_=!1,p=!1;if(vn(t)?(l=()=>t.value,_=Mi(t)):zo(t)?(l=()=>c(t),_=!0):ut(t)?(p=!0,_=t.some(E=>zo(E)||Mi(E)),l=()=>t.map(E=>{if(vn(E))return E.value;if(zo(E))return c(E);if(ht(E))return u?u(E,2):E()})):ht(t)?e?l=u?()=>u(t,2):t:l=()=>{if(d){Ko();try{d()}finally{Xo()}}const E=Js;Js=h;try{return u?u(t,3,[f]):t(f)}finally{Js=E}}:l=yo,e&&i){const E=l,A=i===!0?1/0:i;l=()=>Ho(E(),A)}const b=cb(),y=()=>{h.stop(),b&&b.active&&rg(b.effects,h)};if(o&&e){const E=e;e=(...A)=>{E(...A),y()}}let w=p?new Array(t.length).fill(lf):lf;const R=E=>{if(!(!(h.flags&1)||!h.dirty&&!E))if(e){const A=h.run();if(i||_||(p?A.some((C,I)=>Es(C,w[I])):Es(A,w))){d&&d();const C=Js;Js=h;try{const I=[A,w===lf?void 0:p&&w[0]===lf?[]:w,f];w=A,u?u(e,3,I):e(...I)}finally{Js=C}}}else h.run()};return a&&a(R),h=new fb(l),h.scheduler=s?()=>s(R,!1):R,f=E=>XA(E,!1,h),d=h.onStop=()=>{const E=fd.get(h);if(E){if(u)u(E,4);else for(const A of E)A();fd.delete(h)}},e?r?R(!0):w=h.run():s?s(R.bind(null,!0),!0):h.run(),y.pause=h.pause.bind(h),y.resume=h.resume.bind(h),y.stop=y,y}function Ho(t,e=1/0,n){if(e<=0||!sn(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),e--,vn(t))Ho(t.value,e,n);else if(ut(t))for(let r=0;r<t.length;r++)Ho(t[r],e,n);else if(zd(t)||al(t))t.forEach(r=>{Ho(r,e,n)});else if(ob(t)){for(const r in t)Ho(t[r],e,n);for(const r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&Ho(t[r],e,n)}return t}/**
* @vue/runtime-core v3.5.17
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Tc(t,e,n,r){try{return r?t(...r):t()}catch(i){kc(i,e,n)}}function Yi(t,e,n,r){if(ht(t)){const i=Tc(t,e,n,r);return i&&rb(i)&&i.catch(o=>{kc(o,e,n)}),i}if(ut(t)){const i=[];for(let o=0;o<t.length;o++)i.push(Yi(t[o],e,n,r));return i}}function kc(t,e,n,r=!0){const i=e?e.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=e&&e.appContext.config||dn;if(e){let a=e.parent;const u=e.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const h=a.ec;if(h){for(let l=0;l<h.length;l++)if(h[l](t,u,c)===!1)return}a=a.parent}if(o){Ko(),Tc(o,null,10,[t,u,c]),Xo();return}}JA(t,n,i,r,s)}function JA(t,e,n,r=!0,i=!1){if(i)throw t;console.error(t)}const Vr=[];let ao=-1;const ll=[];let hs=null,Xa=0;const Ib=Promise.resolve();let dd=null;function Ot(t){const e=dd||Ib;return t?e.then(this?t.bind(this):t):e}function ZA(t){let e=ao+1,n=Vr.length;for(;e<n;){const r=e+n>>>1,i=Vr[r],o=Zu(i);o<t||o===t&&i.flags&2?e=r+1:n=r}return e}function mg(t){if(!(t.flags&1)){const e=Zu(t),n=Vr[Vr.length-1];!n||!(t.flags&2)&&e>=Zu(n)?Vr.push(t):Vr.splice(ZA(e),0,t),t.flags|=1,Lb()}}function Lb(){dd||(dd=Ib.then(Mb))}function eC(t){ut(t)?ll.push(...t):hs&&t.id===-1?hs.splice(Xa+1,0,t):t.flags&1||(ll.push(t),t.flags|=1),Lb()}function kv(t,e,n=ao+1){for(;n<Vr.length;n++){const r=Vr[n];if(r&&r.flags&2){if(t&&r.id!==t.uid)continue;Vr.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Ob(t){if(ll.length){const e=[...new Set(ll)].sort((n,r)=>Zu(n)-Zu(r));if(ll.length=0,hs){hs.push(...e);return}for(hs=e,Xa=0;Xa<hs.length;Xa++){const n=hs[Xa];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}hs=null,Xa=0}}const Zu=t=>t.id==null?t.flags&2?-1:1/0:t.id;function Mb(t){try{for(ao=0;ao<Vr.length;ao++){const e=Vr[ao];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),Tc(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;ao<Vr.length;ao++){const e=Vr[ao];e&&(e.flags&=-2)}ao=-1,Vr.length=0,Ob(),dd=null,(Vr.length||ll.length)&&Mb()}}let tr=null,$b=null;function hd(t){const e=tr;return tr=t,$b=t&&t.type.__scopeId||null,e}function ri(t,e=tr,n){if(!e||t._n)return t;const r=(...i)=>{r._d&&Hv(-1);const o=hd(e);let s;try{s=t(...i)}finally{hd(o),r._d&&Hv(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function tC(t,e){if(tr===null)return t;const n=eh(tr),r=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[o,s,a,u=dn]=e[i];o&&(ht(o)&&(o={mounted:o,updated:o}),o.deep&&Ho(s),r.push({dir:o,instance:n,value:s,oldValue:void 0,arg:a,modifiers:u}))}return t}function zs(t,e,n,r){const i=t.dirs,o=e&&e.dirs;for(let s=0;s<i.length;s++){const a=i[s];o&&(a.oldValue=o[s].value);let u=a.dir[r];u&&(Ko(),Yi(u,n,8,[t.el,a,t,e]),Xo())}}const Fb=Symbol("_vte"),Db=t=>t.__isTeleport,Cu=t=>t&&(t.disabled||t.disabled===""),Ev=t=>t&&(t.defer||t.defer===""),Rv=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Av=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,Dp=(t,e)=>{const n=t&&t.to;return An(n)?e?e(n):null:n},Nb={name:"Teleport",__isTeleport:!0,process(t,e,n,r,i,o,s,a,u,c){const{mc:h,pc:l,pbc:d,o:{insert:f,querySelector:_,createText:p,createComment:b}}=c,y=Cu(e.props);let{shapeFlag:w,children:R,dynamicChildren:E}=e;if(t==null){const A=e.el=p(""),C=e.anchor=p("");f(A,n,r),f(C,n,r);const I=(N,W)=>{w&16&&(i&&i.isCE&&(i.ce._teleportTarget=N),h(R,N,W,i,o,s,a,u))},$=()=>{const N=e.target=Dp(e.props,_),W=Hb(N,e,p,f);N&&(s!=="svg"&&Rv(N)?s="svg":s!=="mathml"&&Av(N)&&(s="mathml"),y||(I(N,W),Df(e,!1)))};y&&(I(n,C),Df(e,!0)),Ev(e.props)?(e.el.__isMounted=!1,Dr(()=>{$(),delete e.el.__isMounted},o)):$()}else{if(Ev(e.props)&&t.el.__isMounted===!1){Dr(()=>{Nb.process(t,e,n,r,i,o,s,a,u,c)},o);return}e.el=t.el,e.targetStart=t.targetStart;const A=e.anchor=t.anchor,C=e.target=t.target,I=e.targetAnchor=t.targetAnchor,$=Cu(t.props),N=$?n:C,W=$?A:I;if(s==="svg"||Rv(C)?s="svg":(s==="mathml"||Av(C))&&(s="mathml"),E?(d(t.dynamicChildren,E,N,i,o,s,a),bg(t,e,!0)):u||l(t,e,N,W,i,o,s,a,!1),y)$?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):uf(e,n,A,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const ne=e.target=Dp(e.props,_);ne&&uf(e,ne,null,c,0)}else $&&uf(e,C,I,c,1);Df(e,y)}},remove(t,e,n,{um:r,o:{remove:i}},o){const{shapeFlag:s,children:a,anchor:u,targetStart:c,targetAnchor:h,target:l,props:d}=t;if(l&&(i(c),i(h)),o&&i(u),s&16){const f=o||!Cu(d);for(let _=0;_<a.length;_++){const p=a[_];r(p,e,n,f,!!p.dynamicChildren)}}},move:uf,hydrate:nC};function uf(t,e,n,{o:{insert:r},m:i},o=2){o===0&&r(t.targetAnchor,e,n);const{el:s,anchor:a,shapeFlag:u,children:c,props:h}=t,l=o===2;if(l&&r(s,e,n),(!l||Cu(h))&&u&16)for(let d=0;d<c.length;d++)i(c[d],e,n,2);l&&r(a,e,n)}function nC(t,e,n,r,i,o,{o:{nextSibling:s,parentNode:a,querySelector:u,insert:c,createText:h}},l){const d=e.target=Dp(e.props,u);if(d){const f=Cu(e.props),_=d._lpa||d.firstChild;if(e.shapeFlag&16)if(f)e.anchor=l(s(t),e,a(t),n,r,i,o),e.targetStart=_,e.targetAnchor=_&&s(_);else{e.anchor=s(t);let p=_;for(;p;){if(p&&p.nodeType===8){if(p.data==="teleport start anchor")e.targetStart=p;else if(p.data==="teleport anchor"){e.targetAnchor=p,d._lpa=e.targetAnchor&&s(e.targetAnchor);break}}p=s(p)}e.targetAnchor||Hb(d,e,h,c),l(_&&s(_),e,d,n,r,i,o)}Df(e,f)}return e.anchor&&s(e.anchor)}const rC=Nb;function Df(t,e){const n=t.ctx;if(n&&n.ut){let r,i;for(e?(r=t.el,i=t.anchor):(r=t.targetStart,i=t.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Hb(t,e,n,r){const i=e.targetStart=n(""),o=e.targetAnchor=n("");return i[Fb]=o,t&&(r(i,t),r(o,t)),o}const ps=Symbol("_leaveCb"),cf=Symbol("_enterCb");function iC(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Et(()=>{t.isMounted=!0}),Rc(()=>{t.isUnmounting=!0}),t}const Ti=[Function,Array],Bb={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ti,onEnter:Ti,onAfterEnter:Ti,onEnterCancelled:Ti,onBeforeLeave:Ti,onLeave:Ti,onAfterLeave:Ti,onLeaveCancelled:Ti,onBeforeAppear:Ti,onAppear:Ti,onAfterAppear:Ti,onAppearCancelled:Ti},Vb=t=>{const e=t.subTree;return e.component?Vb(e.component):e},oC={name:"BaseTransition",props:Bb,setup(t,{slots:e}){const n=$l(),r=iC();return()=>{const i=e.default&&Wb(e.default(),!0);if(!i||!i.length)return;const o=Ub(i),s=Vt(t),{mode:a}=s;if(r.isLeaving)return Wh(o);const u=Cv(o);if(!u)return Wh(o);let c=Np(u,s,r,n,l=>c=l);u.type!==kr&&ec(u,c);let h=n.subTree&&Cv(n.subTree);if(h&&h.type!==kr&&!ra(u,h)&&Vb(n).type!==kr){let l=Np(h,s,r,n);if(ec(h,l),a==="out-in"&&u.type!==kr)return r.isLeaving=!0,l.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete l.afterLeave,h=void 0},Wh(o);a==="in-out"&&u.type!==kr?l.delayLeave=(d,f,_)=>{const p=jb(r,h);p[String(h.key)]=h,d[ps]=()=>{f(),d[ps]=void 0,delete c.delayedLeave,h=void 0},c.delayedLeave=()=>{_(),delete c.delayedLeave,h=void 0}}:h=void 0}else h&&(h=void 0);return o}}};function Ub(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==kr){e=n;break}}return e}const sC=oC;function jb(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function Np(t,e,n,r,i){const{appear:o,mode:s,persisted:a=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:h,onEnterCancelled:l,onBeforeLeave:d,onLeave:f,onAfterLeave:_,onLeaveCancelled:p,onBeforeAppear:b,onAppear:y,onAfterAppear:w,onAppearCancelled:R}=e,E=String(t.key),A=jb(n,t),C=(N,W)=>{N&&Yi(N,r,9,W)},I=(N,W)=>{const ne=W[1];C(N,W),ut(N)?N.every(F=>F.length<=1)&&ne():N.length<=1&&ne()},$={mode:s,persisted:a,beforeEnter(N){let W=u;if(!n.isMounted)if(o)W=b||u;else return;N[ps]&&N[ps](!0);const ne=A[E];ne&&ra(t,ne)&&ne.el[ps]&&ne.el[ps](),C(W,[N])},enter(N){let W=c,ne=h,F=l;if(!n.isMounted)if(o)W=y||c,ne=w||h,F=R||l;else return;let Q=!1;const M=N[cf]=H=>{Q||(Q=!0,H?C(F,[N]):C(ne,[N]),$.delayedLeave&&$.delayedLeave(),N[cf]=void 0)};W?I(W,[N,M]):M()},leave(N,W){const ne=String(t.key);if(N[cf]&&N[cf](!0),n.isUnmounting)return W();C(d,[N]);let F=!1;const Q=N[ps]=M=>{F||(F=!0,W(),M?C(p,[N]):C(_,[N]),N[ps]=void 0,A[ne]===t&&delete A[ne])};A[ne]=t,f?I(f,[N,Q]):Q()},clone(N){const W=Np(N,e,n,r,i);return i&&i(W),W}};return $}function Wh(t){if(Ec(t))return t=Is(t),t.children=null,t}function Cv(t){if(!Ec(t))return Db(t.type)&&t.children?Ub(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&ht(n.default))return n.default()}}function ec(t,e){t.shapeFlag&6&&t.component?(t.transition=e,ec(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Wb(t,e=!1,n){let r=[],i=0;for(let o=0;o<t.length;o++){let s=t[o];const a=n==null?s.key:String(n)+String(s.key!=null?s.key:o);s.type===Ye?(s.patchFlag&128&&i++,r=r.concat(Wb(s.children,e,a))):(e||s.type!==kr)&&r.push(a!=null?Is(s,{key:a}):s)}if(i>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function Ni(t,e){return ht(t)?lr({name:t.name},e,{setup:t}):t}function gg(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function xu(t,e,n,r,i=!1){if(ut(t)){t.forEach((_,p)=>xu(_,e&&(ut(e)?e[p]:e),n,r,i));return}if(ul(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&xu(t,e,n,r.component.subTree);return}const o=r.shapeFlag&4?eh(r.component):r.el,s=i?null:o,{i:a,r:u}=t,c=e&&e.r,h=a.refs===dn?a.refs={}:a.refs,l=a.setupState,d=Vt(l),f=l===dn?()=>!1:_=>tn(d,_);if(c!=null&&c!==u&&(An(c)?(h[c]=null,f(c)&&(l[c]=null)):vn(c)&&(c.value=null)),ht(u))Tc(u,a,12,[s,h]);else{const _=An(u),p=vn(u);if(_||p){const b=()=>{if(t.f){const y=_?f(u)?l[u]:h[u]:u.value;i?ut(y)&&rg(y,o):ut(y)?y.includes(o)||y.push(o):_?(h[u]=[o],f(u)&&(l[u]=h[u])):(u.value=[o],t.k&&(h[t.k]=u.value))}else _?(h[u]=s,f(u)&&(l[u]=s)):p&&(u.value=s,t.k&&(h[t.k]=s))};s?(b.id=-1,Dr(b,n)):b()}}}const xv=t=>t.nodeType===8;Kd().requestIdleCallback;Kd().cancelIdleCallback;function aC(t,e){if(xv(t)&&t.data==="["){let n=1,r=t.nextSibling;for(;r;){if(r.nodeType===1){if(e(r)===!1)break}else if(xv(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else e(t)}const ul=t=>!!t.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function lC(t){ht(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:o,timeout:s,suspensible:a=!0,onError:u}=t;let c=null,h,l=0;const d=()=>(l++,c=null,f()),f=()=>{let _;return c||(_=c=e().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),u)return new Promise((b,y)=>{u(p,()=>b(d()),()=>y(p),l+1)});throw p}).then(p=>_!==c&&c?c:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),h=p,p)))};return Ni({name:"AsyncComponentWrapper",__asyncLoader:f,__asyncHydrate(_,p,b){const y=o?()=>{const R=o(()=>{b()},E=>aC(_,E));R&&(p.bum||(p.bum=[])).push(R),(p.u||(p.u=[])).push(()=>!0)}:b;h?y():f().then(()=>!p.isUnmounted&&y())},get __asyncResolved(){return h},setup(){const _=Zn;if(gg(_),h)return()=>qh(h,_);const p=R=>{c=null,kc(R,_,13,!r)};if(a&&_.suspense||wl)return f().then(R=>()=>qh(R,_)).catch(R=>(p(R),()=>r?He(r,{error:R}):null));const b=j(!1),y=j(),w=j(!!i);return i&&setTimeout(()=>{w.value=!1},i),s!=null&&setTimeout(()=>{if(!b.value&&!y.value){const R=new Error(`Async component timed out after ${s}ms.`);p(R),y.value=R}},s),f().then(()=>{b.value=!0,_.parent&&Ec(_.parent.vnode)&&_.parent.update()}).catch(R=>{p(R),y.value=R}),()=>{if(b.value&&h)return qh(h,_);if(y.value&&r)return He(r,{error:y.value});if(n&&!w.value)return He(n)}}})}function qh(t,e){const{ref:n,props:r,children:i,ce:o}=e.vnode,s=He(t,r,i);return s.ref=n,s.ce=o,delete e.vnode.ce,s}const Ec=t=>t.type.__isKeepAlive;function qb(t,e){Gb(t,"a",e)}function zb(t,e){Gb(t,"da",e)}function Gb(t,e,n=Zn){const r=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(Jd(e,r,n),n){let i=n.parent;for(;i&&i.parent;)Ec(i.parent.vnode)&&uC(r,e,n,i),i=i.parent}}function uC(t,e,n,r){const i=Jd(e,t,r,!0);Ft(()=>{rg(r[e],i)},n)}function Jd(t,e,n=Zn,r=!1){if(n){const i=n[t]||(n[t]=[]),o=e.__weh||(e.__weh=(...s)=>{Ko();const a=Cc(n),u=Yi(e,n,t,s);return a(),Xo(),u});return r?i.unshift(o):i.push(o),o}}const es=t=>(e,n=Zn)=>{(!wl||t==="sp")&&Jd(t,(...r)=>e(...r),n)},Ml=es("bm"),Et=es("m"),cC=es("bu"),Yb=es("u"),Rc=es("bum"),Ft=es("um"),Oa=es("sp"),fC=es("rtg"),dC=es("rtc");function hC(t,e=Zn){Jd("ec",t,e)}const Kb="components";function _g(t,e){return Qb(Kb,t,!0,e)||t}const Xb=Symbol.for("v-ndc");function wa(t){return An(t)?Qb(Kb,t,!1)||t:t||Xb}function Qb(t,e,n=!0,r=!1){const i=tr||Zn;if(i){const o=i.type;{const a=JC(o,!1);if(a&&(a===e||a===Fi(e)||a===Yd(Fi(e))))return o}const s=Pv(i[t]||o[t],e)||Pv(i.appContext[t],e);return!s&&r?o:s}}function Pv(t,e){return t&&(t[e]||t[Fi(e)]||t[Yd(Fi(e))])}function lt(t,e,n,r){let i;const o=n,s=ut(t);if(s||An(t)){const a=s&&zo(t);let u=!1,c=!1;a&&(u=!Mi(t),c=Qo(t),t=Qd(t)),i=new Array(t.length);for(let h=0,l=t.length;h<l;h++)i[h]=e(u?c?cd(dr(t[h])):dr(t[h]):t[h],h,void 0,o)}else if(typeof t=="number"){i=new Array(t);for(let a=0;a<t;a++)i[a]=e(a+1,a,void 0,o)}else if(sn(t))if(t[Symbol.iterator])i=Array.from(t,(a,u)=>e(a,u,void 0,o));else{const a=Object.keys(t);i=new Array(a.length);for(let u=0,c=a.length;u<c;u++){const h=a[u];i[u]=e(t[h],h,u,o)}}else i=[];return i}function Fo(t,e,n={},r,i){if(tr.ce||tr.parent&&ul(tr.parent)&&tr.parent.ce)return se(),At(Ye,null,[He("slot",n,r)],64);let o=t[e];o&&o._c&&(o._d=!1),se();const s=o&&Jb(o(n)),a=n.key||s&&s.key,u=At(Ye,{key:(a&&!Gi(a)?a:`_${e}`)+(!s&&r?"_fb":"")},s||[],s&&t._===1?64:-2);return!i&&u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),o&&o._c&&(o._d=!0),u}function Jb(t){return t.some(e=>nc(e)?!(e.type===kr||e.type===Ye&&!Jb(e.children)):!0)?t:null}const Hp=t=>t?vw(t)?eh(t):Hp(t.parent):null,Pu=lr(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Hp(t.parent),$root:t=>Hp(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>ew(t),$forceUpdate:t=>t.f||(t.f=()=>{mg(t.update)}),$nextTick:t=>t.n||(t.n=Ot.bind(t.proxy)),$watch:t=>MC.bind(t)}),zh=(t,e)=>t!==dn&&!t.__isScriptSetup&&tn(t,e),pC={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:o,accessCache:s,type:a,appContext:u}=t;let c;if(e[0]!=="$"){const f=s[e];if(f!==void 0)switch(f){case 1:return r[e];case 2:return i[e];case 4:return n[e];case 3:return o[e]}else{if(zh(r,e))return s[e]=1,r[e];if(i!==dn&&tn(i,e))return s[e]=2,i[e];if((c=t.propsOptions[0])&&tn(c,e))return s[e]=3,o[e];if(n!==dn&&tn(n,e))return s[e]=4,n[e];Bp&&(s[e]=0)}}const h=Pu[e];let l,d;if(h)return e==="$attrs"&&Tr(t.attrs,"get",""),h(t);if((l=a.__cssModules)&&(l=l[e]))return l;if(n!==dn&&tn(n,e))return s[e]=4,n[e];if(d=u.config.globalProperties,tn(d,e))return d[e]},set({_:t},e,n){const{data:r,setupState:i,ctx:o}=t;return zh(i,e)?(i[e]=n,!0):r!==dn&&tn(r,e)?(r[e]=n,!0):tn(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(o[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:i,propsOptions:o}},s){let a;return!!n[s]||t!==dn&&tn(t,s)||zh(e,s)||(a=o[0])&&tn(a,s)||tn(r,s)||tn(Pu,s)||tn(i.config.globalProperties,s)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:tn(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function Iv(t){return ut(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let Bp=!0;function mC(t){const e=ew(t),n=t.proxy,r=t.ctx;Bp=!1,e.beforeCreate&&Lv(e.beforeCreate,t,"bc");const{data:i,computed:o,methods:s,watch:a,provide:u,inject:c,created:h,beforeMount:l,mounted:d,beforeUpdate:f,updated:_,activated:p,deactivated:b,beforeDestroy:y,beforeUnmount:w,destroyed:R,unmounted:E,render:A,renderTracked:C,renderTriggered:I,errorCaptured:$,serverPrefetch:N,expose:W,inheritAttrs:ne,components:F,directives:Q,filters:M}=e;if(c&&gC(c,r,null),s)for(const U in s){const oe=s[U];ht(oe)&&(r[U]=oe.bind(n))}if(i){const U=i.call(n,n);sn(U)&&(t.data=La(U))}if(Bp=!0,o)for(const U in o){const oe=o[U],le=ht(oe)?oe.bind(n,n):ht(oe.get)?oe.get.bind(n,n):yo,q=!ht(oe)&&ht(oe.set)?oe.set.bind(n):yo,be=Ae({get:le,set:q});Object.defineProperty(r,U,{enumerable:!0,configurable:!0,get:()=>be.value,set:ke=>be.value=ke})}if(a)for(const U in a)Zb(a[U],r,n,U);if(u){const U=ht(u)?u.call(n):u;Reflect.ownKeys(U).forEach(oe=>{Nf(oe,U[oe])})}h&&Lv(h,t,"c");function B(U,oe){ut(oe)?oe.forEach(le=>U(le.bind(n))):oe&&U(oe.bind(n))}if(B(Ml,l),B(Et,d),B(cC,f),B(Yb,_),B(qb,p),B(zb,b),B(hC,$),B(dC,C),B(fC,I),B(Rc,w),B(Ft,E),B(Oa,N),ut(W))if(W.length){const U=t.exposed||(t.exposed={});W.forEach(oe=>{Object.defineProperty(U,oe,{get:()=>n[oe],set:le=>n[oe]=le})})}else t.exposed||(t.exposed={});A&&t.render===yo&&(t.render=A),ne!=null&&(t.inheritAttrs=ne),F&&(t.components=F),Q&&(t.directives=Q),N&&gg(t)}function gC(t,e,n=yo){ut(t)&&(t=Vp(t));for(const r in t){const i=t[r];let o;sn(i)?"default"in i?o=Xr(i.from||r,i.default,!0):o=Xr(i.from||r):o=Xr(i),vn(o)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):e[r]=o}}function Lv(t,e,n){Yi(ut(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function Zb(t,e,n,r){let i=r.includes(".")?dw(n,r):()=>n[r];if(An(t)){const o=e[t];ht(o)&&Fe(i,o)}else if(ht(t))Fe(i,t.bind(n));else if(sn(t))if(ut(t))t.forEach(o=>Zb(o,e,n,r));else{const o=ht(t.handler)?t.handler.bind(n):e[t.handler];ht(o)&&Fe(i,o,t)}}function ew(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=t.appContext,a=o.get(e);let u;return a?u=a:!i.length&&!n&&!r?u=e:(u={},i.length&&i.forEach(c=>pd(u,c,s,!0)),pd(u,e,s)),sn(e)&&o.set(e,u),u}function pd(t,e,n,r=!1){const{mixins:i,extends:o}=e;o&&pd(t,o,n,!0),i&&i.forEach(s=>pd(t,s,n,!0));for(const s in e)if(!(r&&s==="expose")){const a=_C[s]||n&&n[s];t[s]=a?a(t[s],e[s]):e[s]}return t}const _C={data:Ov,props:Mv,emits:Mv,methods:gu,computed:gu,beforeCreate:Or,created:Or,beforeMount:Or,mounted:Or,beforeUpdate:Or,updated:Or,beforeDestroy:Or,beforeUnmount:Or,destroyed:Or,unmounted:Or,activated:Or,deactivated:Or,errorCaptured:Or,serverPrefetch:Or,components:gu,directives:gu,watch:yC,provide:Ov,inject:vC};function Ov(t,e){return e?t?function(){return lr(ht(t)?t.call(this,this):t,ht(e)?e.call(this,this):e)}:e:t}function vC(t,e){return gu(Vp(t),Vp(e))}function Vp(t){if(ut(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Or(t,e){return t?[...new Set([].concat(t,e))]:e}function gu(t,e){return t?lr(Object.create(null),t,e):e}function Mv(t,e){return t?ut(t)&&ut(e)?[...new Set([...t,...e])]:lr(Object.create(null),Iv(t),Iv(e??{})):e}function yC(t,e){if(!t)return e;if(!e)return t;const n=lr(Object.create(null),t);for(const r in e)n[r]=Or(t[r],e[r]);return n}function tw(){return{app:null,config:{isNativeTag:lA,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let bC=0;function wC(t,e){return function(r,i=null){ht(r)||(r=lr({},r)),i!=null&&!sn(i)&&(i=null);const o=tw(),s=new WeakSet,a=[];let u=!1;const c=o.app={_uid:bC++,_component:r,_props:i,_container:null,_context:o,_instance:null,version:ex,get config(){return o.config},set config(h){},use(h,...l){return s.has(h)||(h&&ht(h.install)?(s.add(h),h.install(c,...l)):ht(h)&&(s.add(h),h(c,...l))),c},mixin(h){return o.mixins.includes(h)||o.mixins.push(h),c},component(h,l){return l?(o.components[h]=l,c):o.components[h]},directive(h,l){return l?(o.directives[h]=l,c):o.directives[h]},mount(h,l,d){if(!u){const f=c._ceVNode||He(r,i);return f.appContext=o,d===!0?d="svg":d===!1&&(d=void 0),t(f,h,d),u=!0,c._container=h,h.__vue_app__=c,eh(f.component)}},onUnmount(h){a.push(h)},unmount(){u&&(Yi(a,c._instance,16),t(null,c._container),delete c._container.__vue_app__)},provide(h,l){return o.provides[h]=l,c},runWithContext(h){const l=ca;ca=c;try{return h()}finally{ca=l}}};return c}}let ca=null;function Nf(t,e){if(Zn){let n=Zn.provides;const r=Zn.parent&&Zn.parent.provides;r===n&&(n=Zn.provides=Object.create(r)),n[t]=e}}function Xr(t,e,n=!1){const r=Zn||tr;if(r||ca){let i=ca?ca._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&t in i)return i[t];if(arguments.length>1)return n&&ht(e)?e.call(r&&r.proxy):e}}function nw(){return!!(Zn||tr||ca)}const rw={},iw=()=>Object.create(rw),ow=t=>Object.getPrototypeOf(t)===rw;function SC(t,e,n,r=!1){const i={},o=iw();t.propsDefaults=Object.create(null),sw(t,e,i,o);for(const s in t.propsOptions[0])s in i||(i[s]=void 0);n?t.props=r?i:Eb(i):t.type.props?t.props=i:t.props=o,t.attrs=o}function TC(t,e,n,r){const{props:i,attrs:o,vnode:{patchFlag:s}}=t,a=Vt(i),[u]=t.propsOptions;let c=!1;if((r||s>0)&&!(s&16)){if(s&8){const h=t.vnode.dynamicProps;for(let l=0;l<h.length;l++){let d=h[l];if(Zd(t.emitsOptions,d))continue;const f=e[d];if(u)if(tn(o,d))f!==o[d]&&(o[d]=f,c=!0);else{const _=Fi(d);i[_]=Up(u,a,_,f,t,!1)}else f!==o[d]&&(o[d]=f,c=!0)}}}else{sw(t,e,i,o)&&(c=!0);let h;for(const l in a)(!e||!tn(e,l)&&((h=Ia(l))===l||!tn(e,h)))&&(u?n&&(n[l]!==void 0||n[h]!==void 0)&&(i[l]=Up(u,a,l,void 0,t,!0)):delete i[l]);if(o!==a)for(const l in o)(!e||!tn(e,l))&&(delete o[l],c=!0)}c&&No(t.attrs,"set","")}function sw(t,e,n,r){const[i,o]=t.propsOptions;let s=!1,a;if(e)for(let u in e){if(Eu(u))continue;const c=e[u];let h;i&&tn(i,h=Fi(u))?!o||!o.includes(h)?n[h]=c:(a||(a={}))[h]=c:Zd(t.emitsOptions,u)||(!(u in r)||c!==r[u])&&(r[u]=c,s=!0)}if(o){const u=Vt(n),c=a||dn;for(let h=0;h<o.length;h++){const l=o[h];n[l]=Up(i,u,l,c[l],t,!tn(c,l))}}return s}function Up(t,e,n,r,i,o){const s=t[n];if(s!=null){const a=tn(s,"default");if(a&&r===void 0){const u=s.default;if(s.type!==Function&&!s.skipFactory&&ht(u)){const{propsDefaults:c}=i;if(n in c)r=c[n];else{const h=Cc(i);r=c[n]=u.call(null,e),h()}}else r=u;i.ce&&i.ce._setProp(n,r)}s[0]&&(o&&!a?r=!1:s[1]&&(r===""||r===Ia(n))&&(r=!0))}return r}const kC=new WeakMap;function aw(t,e,n=!1){const r=n?kC:e.propsCache,i=r.get(t);if(i)return i;const o=t.props,s={},a=[];let u=!1;if(!ht(t)){const h=l=>{u=!0;const[d,f]=aw(l,e,!0);lr(s,d),f&&a.push(...f)};!n&&e.mixins.length&&e.mixins.forEach(h),t.extends&&h(t.extends),t.mixins&&t.mixins.forEach(h)}if(!o&&!u)return sn(t)&&r.set(t,sl),sl;if(ut(o))for(let h=0;h<o.length;h++){const l=Fi(o[h]);$v(l)&&(s[l]=dn)}else if(o)for(const h in o){const l=Fi(h);if($v(l)){const d=o[h],f=s[l]=ut(d)||ht(d)?{type:d}:lr({},d),_=f.type;let p=!1,b=!0;if(ut(_))for(let y=0;y<_.length;++y){const w=_[y],R=ht(w)&&w.name;if(R==="Boolean"){p=!0;break}else R==="String"&&(b=!1)}else p=ht(_)&&_.name==="Boolean";f[0]=p,f[1]=b,(p||tn(f,"default"))&&a.push(l)}}const c=[s,a];return sn(t)&&r.set(t,c),c}function $v(t){return t[0]!=="$"&&!Eu(t)}const vg=t=>t[0]==="_"||t==="$stable",yg=t=>ut(t)?t.map(co):[co(t)],EC=(t,e,n)=>{if(e._n)return e;const r=ri((...i)=>yg(e(...i)),n);return r._c=!1,r},lw=(t,e,n)=>{const r=t._ctx;for(const i in t){if(vg(i))continue;const o=t[i];if(ht(o))e[i]=EC(i,o,r);else if(o!=null){const s=yg(o);e[i]=()=>s}}},uw=(t,e)=>{const n=yg(e);t.slots.default=()=>n},cw=(t,e,n)=>{for(const r in e)(n||!vg(r))&&(t[r]=e[r])},RC=(t,e,n)=>{const r=t.slots=iw();if(t.vnode.shapeFlag&32){const i=e.__;i&&Op(r,"__",i,!0);const o=e._;o?(cw(r,e,n),n&&Op(r,"_",o,!0)):lw(e,r)}else e&&uw(t,e)},AC=(t,e,n)=>{const{vnode:r,slots:i}=t;let o=!0,s=dn;if(r.shapeFlag&32){const a=e._;a?n&&a===1?o=!1:cw(i,e,n):(o=!e.$stable,lw(e,i)),s=e}else e&&(uw(t,e),s={default:1});if(o)for(const a in i)!vg(a)&&s[a]==null&&delete i[a]},Dr=VC;function CC(t){return xC(t)}function xC(t,e){const n=Kd();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:s,createText:a,createComment:u,setText:c,setElementText:h,parentNode:l,nextSibling:d,setScopeId:f=yo,insertStaticContent:_}=t,p=(z,P,K,ee=null,X=null,x=null,G=void 0,L=null,D=!!P.dynamicChildren)=>{if(z===P)return;z&&!ra(z,P)&&(ee=te(z),ke(z,X,x,!0),z=null),P.patchFlag===-2&&(D=!1,P.dynamicChildren=null);const{type:Z,ref:me,shapeFlag:de}=P;switch(Z){case Ac:b(z,P,K,ee);break;case kr:y(z,P,K,ee);break;case Hf:z==null&&w(P,K,ee,G);break;case Ye:F(z,P,K,ee,X,x,G,L,D);break;default:de&1?A(z,P,K,ee,X,x,G,L,D):de&6?Q(z,P,K,ee,X,x,G,L,D):(de&64||de&128)&&Z.process(z,P,K,ee,X,x,G,L,D,we)}me!=null&&X?xu(me,z&&z.ref,x,P||z,!P):me==null&&z&&z.ref!=null&&xu(z.ref,null,x,z,!0)},b=(z,P,K,ee)=>{if(z==null)r(P.el=a(P.children),K,ee);else{const X=P.el=z.el;P.children!==z.children&&c(X,P.children)}},y=(z,P,K,ee)=>{z==null?r(P.el=u(P.children||""),K,ee):P.el=z.el},w=(z,P,K,ee)=>{[z.el,z.anchor]=_(z.children,P,K,ee,z.el,z.anchor)},R=({el:z,anchor:P},K,ee)=>{let X;for(;z&&z!==P;)X=d(z),r(z,K,ee),z=X;r(P,K,ee)},E=({el:z,anchor:P})=>{let K;for(;z&&z!==P;)K=d(z),i(z),z=K;i(P)},A=(z,P,K,ee,X,x,G,L,D)=>{P.type==="svg"?G="svg":P.type==="math"&&(G="mathml"),z==null?C(P,K,ee,X,x,G,L,D):N(z,P,X,x,G,L,D)},C=(z,P,K,ee,X,x,G,L)=>{let D,Z;const{props:me,shapeFlag:de,transition:S,dirs:g}=z;if(D=z.el=s(z.type,x,me&&me.is,me),de&8?h(D,z.children):de&16&&$(z.children,D,null,ee,X,Gh(z,x),G,L),g&&zs(z,null,ee,"created"),I(D,z,z.scopeId,G,ee),me){for(const V in me)V!=="value"&&!Eu(V)&&o(D,V,null,me[V],x,ee);"value"in me&&o(D,"value",null,me.value,x),(Z=me.onVnodeBeforeMount)&&oo(Z,ee,z)}g&&zs(z,null,ee,"beforeMount");const T=PC(X,S);T&&S.beforeEnter(D),r(D,P,K),((Z=me&&me.onVnodeMounted)||T||g)&&Dr(()=>{Z&&oo(Z,ee,z),T&&S.enter(D),g&&zs(z,null,ee,"mounted")},X)},I=(z,P,K,ee,X)=>{if(K&&f(z,K),ee)for(let x=0;x<ee.length;x++)f(z,ee[x]);if(X){let x=X.subTree;if(P===x||pw(x.type)&&(x.ssContent===P||x.ssFallback===P)){const G=X.vnode;I(z,G,G.scopeId,G.slotScopeIds,X.parent)}}},$=(z,P,K,ee,X,x,G,L,D=0)=>{for(let Z=D;Z<z.length;Z++){const me=z[Z]=L?ms(z[Z]):co(z[Z]);p(null,me,P,K,ee,X,x,G,L)}},N=(z,P,K,ee,X,x,G)=>{const L=P.el=z.el;let{patchFlag:D,dynamicChildren:Z,dirs:me}=P;D|=z.patchFlag&16;const de=z.props||dn,S=P.props||dn;let g;if(K&&Gs(K,!1),(g=S.onVnodeBeforeUpdate)&&oo(g,K,P,z),me&&zs(P,z,K,"beforeUpdate"),K&&Gs(K,!0),(de.innerHTML&&S.innerHTML==null||de.textContent&&S.textContent==null)&&h(L,""),Z?W(z.dynamicChildren,Z,L,K,ee,Gh(P,X),x):G||oe(z,P,L,null,K,ee,Gh(P,X),x,!1),D>0){if(D&16)ne(L,de,S,K,X);else if(D&2&&de.class!==S.class&&o(L,"class",null,S.class,X),D&4&&o(L,"style",de.style,S.style,X),D&8){const T=P.dynamicProps;for(let V=0;V<T.length;V++){const ie=T[V],he=de[ie],Ee=S[ie];(Ee!==he||ie==="value")&&o(L,ie,he,Ee,X,K)}}D&1&&z.children!==P.children&&h(L,P.children)}else!G&&Z==null&&ne(L,de,S,K,X);((g=S.onVnodeUpdated)||me)&&Dr(()=>{g&&oo(g,K,P,z),me&&zs(P,z,K,"updated")},ee)},W=(z,P,K,ee,X,x,G)=>{for(let L=0;L<P.length;L++){const D=z[L],Z=P[L],me=D.el&&(D.type===Ye||!ra(D,Z)||D.shapeFlag&198)?l(D.el):K;p(D,Z,me,null,ee,X,x,G,!0)}},ne=(z,P,K,ee,X)=>{if(P!==K){if(P!==dn)for(const x in P)!Eu(x)&&!(x in K)&&o(z,x,P[x],null,X,ee);for(const x in K){if(Eu(x))continue;const G=K[x],L=P[x];G!==L&&x!=="value"&&o(z,x,L,G,X,ee)}"value"in K&&o(z,"value",P.value,K.value,X)}},F=(z,P,K,ee,X,x,G,L,D)=>{const Z=P.el=z?z.el:a(""),me=P.anchor=z?z.anchor:a("");let{patchFlag:de,dynamicChildren:S,slotScopeIds:g}=P;g&&(L=L?L.concat(g):g),z==null?(r(Z,K,ee),r(me,K,ee),$(P.children||[],K,me,X,x,G,L,D)):de>0&&de&64&&S&&z.dynamicChildren?(W(z.dynamicChildren,S,K,X,x,G,L),(P.key!=null||X&&P===X.subTree)&&bg(z,P,!0)):oe(z,P,K,me,X,x,G,L,D)},Q=(z,P,K,ee,X,x,G,L,D)=>{P.slotScopeIds=L,z==null?P.shapeFlag&512?X.ctx.activate(P,K,ee,G,D):M(P,K,ee,X,x,G,D):H(z,P,D)},M=(z,P,K,ee,X,x,G)=>{const L=z.component=GC(z,ee,X);if(Ec(z)&&(L.ctx.renderer=we),YC(L,!1,G),L.asyncDep){if(X&&X.registerDep(L,B,G),!z.el){const D=L.subTree=He(kr);y(null,D,P,K)}}else B(L,z,P,K,X,x,G)},H=(z,P,K)=>{const ee=P.component=z.component;if(HC(z,P,K))if(ee.asyncDep&&!ee.asyncResolved){U(ee,P,K);return}else ee.next=P,ee.update();else P.el=z.el,ee.vnode=P},B=(z,P,K,ee,X,x,G)=>{const L=()=>{if(z.isMounted){let{next:de,bu:S,u:g,parent:T,vnode:V}=z;{const Pe=fw(z);if(Pe){de&&(de.el=V.el,U(z,de,G)),Pe.asyncDep.then(()=>{z.isUnmounted||L()});return}}let ie=de,he;Gs(z,!1),de?(de.el=V.el,U(z,de,G)):de=V,S&&Ff(S),(he=de.props&&de.props.onVnodeBeforeUpdate)&&oo(he,T,de,V),Gs(z,!0);const Ee=Dv(z),Ne=z.subTree;z.subTree=Ee,p(Ne,Ee,l(Ne.el),te(Ne),z,X,x),de.el=Ee.el,ie===null&&BC(z,Ee.el),g&&Dr(g,X),(he=de.props&&de.props.onVnodeUpdated)&&Dr(()=>oo(he,T,de,V),X)}else{let de;const{el:S,props:g}=P,{bm:T,m:V,parent:ie,root:he,type:Ee}=z,Ne=ul(P);Gs(z,!1),T&&Ff(T),!Ne&&(de=g&&g.onVnodeBeforeMount)&&oo(de,ie,P),Gs(z,!0);{he.ce&&he.ce._def.shadowRoot!==!1&&he.ce._injectChildStyle(Ee);const Pe=z.subTree=Dv(z);p(null,Pe,K,ee,z,X,x),P.el=Pe.el}if(V&&Dr(V,X),!Ne&&(de=g&&g.onVnodeMounted)){const Pe=P;Dr(()=>oo(de,ie,Pe),X)}(P.shapeFlag&256||ie&&ul(ie.vnode)&&ie.vnode.shapeFlag&256)&&z.a&&Dr(z.a,X),z.isMounted=!0,P=K=ee=null}};z.scope.on();const D=z.effect=new fb(L);z.scope.off();const Z=z.update=D.run.bind(D),me=z.job=D.runIfDirty.bind(D);me.i=z,me.id=z.uid,D.scheduler=()=>mg(me),Gs(z,!0),Z()},U=(z,P,K)=>{P.component=z;const ee=z.vnode.props;z.vnode=P,z.next=null,TC(z,P.props,ee,K),AC(z,P.children,K),Ko(),kv(z),Xo()},oe=(z,P,K,ee,X,x,G,L,D=!1)=>{const Z=z&&z.children,me=z?z.shapeFlag:0,de=P.children,{patchFlag:S,shapeFlag:g}=P;if(S>0){if(S&128){q(Z,de,K,ee,X,x,G,L,D);return}else if(S&256){le(Z,de,K,ee,X,x,G,L,D);return}}g&8?(me&16&&_e(Z,X,x),de!==Z&&h(K,de)):me&16?g&16?q(Z,de,K,ee,X,x,G,L,D):_e(Z,X,x,!0):(me&8&&h(K,""),g&16&&$(de,K,ee,X,x,G,L,D))},le=(z,P,K,ee,X,x,G,L,D)=>{z=z||sl,P=P||sl;const Z=z.length,me=P.length,de=Math.min(Z,me);let S;for(S=0;S<de;S++){const g=P[S]=D?ms(P[S]):co(P[S]);p(z[S],g,K,null,X,x,G,L,D)}Z>me?_e(z,X,x,!0,!1,de):$(P,K,ee,X,x,G,L,D,de)},q=(z,P,K,ee,X,x,G,L,D)=>{let Z=0;const me=P.length;let de=z.length-1,S=me-1;for(;Z<=de&&Z<=S;){const g=z[Z],T=P[Z]=D?ms(P[Z]):co(P[Z]);if(ra(g,T))p(g,T,K,null,X,x,G,L,D);else break;Z++}for(;Z<=de&&Z<=S;){const g=z[de],T=P[S]=D?ms(P[S]):co(P[S]);if(ra(g,T))p(g,T,K,null,X,x,G,L,D);else break;de--,S--}if(Z>de){if(Z<=S){const g=S+1,T=g<me?P[g].el:ee;for(;Z<=S;)p(null,P[Z]=D?ms(P[Z]):co(P[Z]),K,T,X,x,G,L,D),Z++}}else if(Z>S)for(;Z<=de;)ke(z[Z],X,x,!0),Z++;else{const g=Z,T=Z,V=new Map;for(Z=T;Z<=S;Z++){const tt=P[Z]=D?ms(P[Z]):co(P[Z]);tt.key!=null&&V.set(tt.key,Z)}let ie,he=0;const Ee=S-T+1;let Ne=!1,Pe=0;const Ue=new Array(Ee);for(Z=0;Z<Ee;Z++)Ue[Z]=0;for(Z=g;Z<=de;Z++){const tt=z[Z];if(he>=Ee){ke(tt,X,x,!0);continue}let gt;if(tt.key!=null)gt=V.get(tt.key);else for(ie=T;ie<=S;ie++)if(Ue[ie-T]===0&&ra(tt,P[ie])){gt=ie;break}gt===void 0?ke(tt,X,x,!0):(Ue[gt-T]=Z+1,gt>=Pe?Pe=gt:Ne=!0,p(tt,P[gt],K,null,X,x,G,L,D),he++)}const Qe=Ne?IC(Ue):sl;for(ie=Qe.length-1,Z=Ee-1;Z>=0;Z--){const tt=T+Z,gt=P[tt],_t=tt+1<me?P[tt+1].el:ee;Ue[Z]===0?p(null,gt,K,_t,X,x,G,L,D):Ne&&(ie<0||Z!==Qe[ie]?be(gt,K,_t,2):ie--)}}},be=(z,P,K,ee,X=null)=>{const{el:x,type:G,transition:L,children:D,shapeFlag:Z}=z;if(Z&6){be(z.component.subTree,P,K,ee);return}if(Z&128){z.suspense.move(P,K,ee);return}if(Z&64){G.move(z,P,K,we);return}if(G===Ye){r(x,P,K);for(let de=0;de<D.length;de++)be(D[de],P,K,ee);r(z.anchor,P,K);return}if(G===Hf){R(z,P,K);return}if(ee!==2&&Z&1&&L)if(ee===0)L.beforeEnter(x),r(x,P,K),Dr(()=>L.enter(x),X);else{const{leave:de,delayLeave:S,afterLeave:g}=L,T=()=>{z.ctx.isUnmounted?i(x):r(x,P,K)},V=()=>{de(x,()=>{T(),g&&g()})};S?S(x,T,V):V()}else r(x,P,K)},ke=(z,P,K,ee=!1,X=!1)=>{const{type:x,props:G,ref:L,children:D,dynamicChildren:Z,shapeFlag:me,patchFlag:de,dirs:S,cacheIndex:g}=z;if(de===-2&&(X=!1),L!=null&&(Ko(),xu(L,null,K,z,!0),Xo()),g!=null&&(P.renderCache[g]=void 0),me&256){P.ctx.deactivate(z);return}const T=me&1&&S,V=!ul(z);let ie;if(V&&(ie=G&&G.onVnodeBeforeUnmount)&&oo(ie,P,z),me&6)fe(z.component,K,ee);else{if(me&128){z.suspense.unmount(K,ee);return}T&&zs(z,null,P,"beforeUnmount"),me&64?z.type.remove(z,P,K,we,ee):Z&&!Z.hasOnce&&(x!==Ye||de>0&&de&64)?_e(Z,P,K,!1,!0):(x===Ye&&de&384||!X&&me&16)&&_e(D,P,K),ee&&Se(z)}(V&&(ie=G&&G.onVnodeUnmounted)||T)&&Dr(()=>{ie&&oo(ie,P,z),T&&zs(z,null,P,"unmounted")},K)},Se=z=>{const{type:P,el:K,anchor:ee,transition:X}=z;if(P===Ye){ae(K,ee);return}if(P===Hf){E(z);return}const x=()=>{i(K),X&&!X.persisted&&X.afterLeave&&X.afterLeave()};if(z.shapeFlag&1&&X&&!X.persisted){const{leave:G,delayLeave:L}=X,D=()=>G(K,x);L?L(z.el,x,D):D()}else x()},ae=(z,P)=>{let K;for(;z!==P;)K=d(z),i(z),z=K;i(P)},fe=(z,P,K)=>{const{bum:ee,scope:X,job:x,subTree:G,um:L,m:D,a:Z,parent:me,slots:{__:de}}=z;Fv(D),Fv(Z),ee&&Ff(ee),me&&ut(de)&&de.forEach(S=>{me.renderCache[S]=void 0}),X.stop(),x&&(x.flags|=8,ke(G,z,P,K)),L&&Dr(L,P),Dr(()=>{z.isUnmounted=!0},P),P&&P.pendingBranch&&!P.isUnmounted&&z.asyncDep&&!z.asyncResolved&&z.suspenseId===P.pendingId&&(P.deps--,P.deps===0&&P.resolve())},_e=(z,P,K,ee=!1,X=!1,x=0)=>{for(let G=x;G<z.length;G++)ke(z[G],P,K,ee,X)},te=z=>{if(z.shapeFlag&6)return te(z.component.subTree);if(z.shapeFlag&128)return z.suspense.next();const P=d(z.anchor||z.el),K=P&&P[Fb];return K?d(K):P};let ue=!1;const ge=(z,P,K)=>{z==null?P._vnode&&ke(P._vnode,null,null,!0):p(P._vnode||null,z,P,null,null,null,K),P._vnode=z,ue||(ue=!0,kv(),Ob(),ue=!1)},we={p,um:ke,m:be,r:Se,mt:M,mc:$,pc:oe,pbc:W,n:te,o:t};return{render:ge,hydrate:void 0,createApp:wC(ge)}}function Gh({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function Gs({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function PC(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function bg(t,e,n=!1){const r=t.children,i=e.children;if(ut(r)&&ut(i))for(let o=0;o<r.length;o++){const s=r[o];let a=i[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[o]=ms(i[o]),a.el=s.el),!n&&a.patchFlag!==-2&&bg(s,a)),a.type===Ac&&(a.el=s.el),a.type===kr&&!a.el&&(a.el=s.el)}}function IC(t){const e=t.slice(),n=[0];let r,i,o,s,a;const u=t.length;for(r=0;r<u;r++){const c=t[r];if(c!==0){if(i=n[n.length-1],t[i]<c){e[r]=i,n.push(r);continue}for(o=0,s=n.length-1;o<s;)a=o+s>>1,t[n[a]]<c?o=a+1:s=a;c<t[n[o]]&&(o>0&&(e[r]=n[o-1]),n[o]=r)}}for(o=n.length,s=n[o-1];o-- >0;)n[o]=s,s=e[s];return n}function fw(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:fw(e)}function Fv(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}const LC=Symbol.for("v-scx"),OC=()=>Xr(LC);function Ps(t,e){return wg(t,null,e)}function Fe(t,e,n){return wg(t,e,n)}function wg(t,e,n=dn){const{immediate:r,deep:i,flush:o,once:s}=n,a=lr({},n),u=e&&r||!e&&o!=="post";let c;if(wl){if(o==="sync"){const f=OC();c=f.__watcherHandles||(f.__watcherHandles=[])}else if(!u){const f=()=>{};return f.stop=yo,f.resume=yo,f.pause=yo,f}}const h=Zn;a.call=(f,_,p)=>Yi(f,h,_,p);let l=!1;o==="post"?a.scheduler=f=>{Dr(f,h&&h.suspense)}:o!=="sync"&&(l=!0,a.scheduler=(f,_)=>{_?f():mg(f)}),a.augmentJob=f=>{e&&(f.flags|=4),l&&(f.flags|=2,h&&(f.id=h.uid,f.i=h))};const d=QA(t,e,a);return wl&&(c?c.push(d):u&&d()),d}function MC(t,e,n){const r=this.proxy,i=An(t)?t.includes(".")?dw(r,t):()=>r[t]:t.bind(r,r);let o;ht(e)?o=e:(o=e.handler,n=e);const s=Cc(this),a=wg(i,o.bind(r),n);return s(),a}function dw(t,e){const n=e.split(".");return()=>{let r=t;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const $C=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${Fi(e)}Modifiers`]||t[`${Ia(e)}Modifiers`];function FC(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||dn;let i=n;const o=e.startsWith("update:"),s=o&&$C(r,e.slice(7));s&&(s.trim&&(i=n.map(h=>An(h)?h.trim():h)),s.number&&(i=n.map(ld)));let a,u=r[a=Hh(e)]||r[a=Hh(Fi(e))];!u&&o&&(u=r[a=Hh(Ia(e))]),u&&Yi(u,t,6,i);const c=r[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,Yi(c,t,6,i)}}function hw(t,e,n=!1){const r=e.emitsCache,i=r.get(t);if(i!==void 0)return i;const o=t.emits;let s={},a=!1;if(!ht(t)){const u=c=>{const h=hw(c,e,!0);h&&(a=!0,lr(s,h))};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}return!o&&!a?(sn(t)&&r.set(t,null),null):(ut(o)?o.forEach(u=>s[u]=null):lr(s,o),sn(t)&&r.set(t,s),s)}function Zd(t,e){return!t||!qd(e)?!1:(e=e.slice(2).replace(/Once$/,""),tn(t,e[0].toLowerCase()+e.slice(1))||tn(t,Ia(e))||tn(t,e))}function Dv(t){const{type:e,vnode:n,proxy:r,withProxy:i,propsOptions:[o],slots:s,attrs:a,emit:u,render:c,renderCache:h,props:l,data:d,setupState:f,ctx:_,inheritAttrs:p}=t,b=hd(t);let y,w;try{if(n.shapeFlag&4){const E=i||r,A=E;y=co(c.call(A,E,h,l,f,d,_)),w=a}else{const E=e;y=co(E.length>1?E(l,{attrs:a,slots:s,emit:u}):E(l,null)),w=e.props?a:DC(a)}}catch(E){Iu.length=0,kc(E,t,1),y=He(kr)}let R=y;if(w&&p!==!1){const E=Object.keys(w),{shapeFlag:A}=R;E.length&&A&7&&(o&&E.some(ng)&&(w=NC(w,o)),R=Is(R,w,!1,!0))}return n.dirs&&(R=Is(R,null,!1,!0),R.dirs=R.dirs?R.dirs.concat(n.dirs):n.dirs),n.transition&&ec(R,n.transition),y=R,hd(b),y}const DC=t=>{let e;for(const n in t)(n==="class"||n==="style"||qd(n))&&((e||(e={}))[n]=t[n]);return e},NC=(t,e)=>{const n={};for(const r in t)(!ng(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function HC(t,e,n){const{props:r,children:i,component:o}=t,{props:s,children:a,patchFlag:u}=e,c=o.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return r?Nv(r,s,c):!!s;if(u&8){const h=e.dynamicProps;for(let l=0;l<h.length;l++){const d=h[l];if(s[d]!==r[d]&&!Zd(c,d))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:r===s?!1:r?s?Nv(r,s,c):!0:!!s;return!1}function Nv(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(e[o]!==t[o]&&!Zd(n,o))return!0}return!1}function BC({vnode:t,parent:e},n){for(;e;){const r=e.subTree;if(r.suspense&&r.suspense.activeBranch===t&&(r.el=t.el),r===t)(t=e.vnode).el=n,e=e.parent;else break}}const pw=t=>t.__isSuspense;function VC(t,e){e&&e.pendingBranch?ut(t)?e.effects.push(...t):e.effects.push(t):eC(t)}const Ye=Symbol.for("v-fgt"),Ac=Symbol.for("v-txt"),kr=Symbol.for("v-cmt"),Hf=Symbol.for("v-stc"),Iu=[];let hi=null;function se(t=!1){Iu.push(hi=t?null:[])}function UC(){Iu.pop(),hi=Iu[Iu.length-1]||null}let tc=1;function Hv(t,e=!1){tc+=t,t<0&&hi&&e&&(hi.hasOnce=!0)}function mw(t){return t.dynamicChildren=tc>0?hi||sl:null,UC(),tc>0&&hi&&hi.push(t),t}function ce(t,e,n,r,i,o){return mw(Y(t,e,n,r,i,o,!0))}function At(t,e,n,r,i){return mw(He(t,e,n,r,i,!0))}function nc(t){return t?t.__v_isVNode===!0:!1}function ra(t,e){return t.type===e.type&&t.key===e.key}const gw=({key:t})=>t??null,Bf=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?An(t)||vn(t)||ht(t)?{i:tr,r:t,k:e,f:!!n}:t:null);function Y(t,e=null,n=null,r=0,i=null,o=t===Ye?0:1,s=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&gw(e),ref:e&&Bf(e),scopeId:$b,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:tr};return a?(Sg(u,n),o&128&&t.normalize(u)):n&&(u.shapeFlag|=An(n)?8:16),tc>0&&!s&&hi&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&hi.push(u),u}const He=jC;function jC(t,e=null,n=null,r=0,i=null,o=!1){if((!t||t===Xb)&&(t=kr),nc(t)){const a=Is(t,e,!0);return n&&Sg(a,n),tc>0&&!o&&hi&&(a.shapeFlag&6?hi[hi.indexOf(t)]=a:hi.push(a)),a.patchFlag=-2,a}if(ZC(t)&&(t=t.__vccOpts),e){e=WC(e);let{class:a,style:u}=e;a&&!An(a)&&(e.class=rt(a)),sn(u)&&(hg(u)&&!ut(u)&&(u=lr({},u)),e.style=og(u))}const s=An(t)?1:pw(t)?128:Db(t)?64:sn(t)?4:ht(t)?2:0;return Y(t,e,n,r,i,s,o,!0)}function WC(t){return t?hg(t)||ow(t)?lr({},t):t:null}function Is(t,e,n=!1,r=!1){const{props:i,ref:o,patchFlag:s,children:a,transition:u}=t,c=e?_w(i||{},e):i,h={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&gw(c),ref:e&&e.ref?n&&o?ut(o)?o.concat(Bf(e)):[o,Bf(e)]:Bf(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Ye?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:u,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Is(t.ssContent),ssFallback:t.ssFallback&&Is(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return u&&r&&ec(h,u.clone(h)),h}function Sa(t=" ",e=0){return He(Ac,null,t,e)}function Q8(t,e){const n=He(Hf,null,t);return n.staticCount=e,n}function it(t="",e=!1){return e?(se(),At(kr,null,t)):He(kr,null,t)}function co(t){return t==null||typeof t=="boolean"?He(kr):ut(t)?He(Ye,null,t.slice()):nc(t)?ms(t):He(Ac,null,String(t))}function ms(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Is(t)}function Sg(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(ut(e))n=16;else if(typeof e=="object")if(r&65){const i=e.default;i&&(i._c&&(i._d=!1),Sg(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!ow(e)?e._ctx=tr:i===3&&tr&&(tr.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else ht(e)?(e={default:e,_ctx:tr},n=32):(e=String(e),r&64?(n=16,e=[Sa(e)]):n=8);t.children=e,t.shapeFlag|=n}function _w(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const i in r)if(i==="class")e.class!==r.class&&(e.class=rt([e.class,r.class]));else if(i==="style")e.style=og([e.style,r.style]);else if(qd(i)){const o=e[i],s=r[i];s&&o!==s&&!(ut(o)&&o.includes(s))&&(e[i]=o?[].concat(o,s):s)}else i!==""&&(e[i]=r[i])}return e}function oo(t,e,n,r=null){Yi(t,e,7,[n,r])}const qC=tw();let zC=0;function GC(t,e,n){const r=t.type,i=(e?e.appContext:t.appContext)||qC,o={uid:zC++,vnode:t,type:r,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ub(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:aw(r,i),emitsOptions:hw(r,i),emit:null,emitted:null,propsDefaults:dn,inheritAttrs:r.inheritAttrs,ctx:dn,data:dn,props:dn,attrs:dn,slots:dn,refs:dn,setupState:dn,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=e?e.root:o,o.emit=FC.bind(null,o),t.ce&&t.ce(o),o}let Zn=null;const $l=()=>Zn||tr;let md,jp;{const t=Kd(),e=(n,r)=>{let i;return(i=t[n])||(i=t[n]=[]),i.push(r),o=>{i.length>1?i.forEach(s=>s(o)):i[0](o)}};md=e("__VUE_INSTANCE_SETTERS__",n=>Zn=n),jp=e("__VUE_SSR_SETTERS__",n=>wl=n)}const Cc=t=>{const e=Zn;return md(t),t.scope.on(),()=>{t.scope.off(),md(e)}},Bv=()=>{Zn&&Zn.scope.off(),md(null)};function vw(t){return t.vnode.shapeFlag&4}let wl=!1;function YC(t,e=!1,n=!1){e&&jp(e);const{props:r,children:i}=t.vnode,o=vw(t);SC(t,r,o,e),RC(t,i,n||e);const s=o?KC(t,e):void 0;return e&&jp(!1),s}function KC(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,pC);const{setup:r}=n;if(r){Ko();const i=t.setupContext=r.length>1?QC(t):null,o=Cc(t),s=Tc(r,t,0,[t.props,i]),a=rb(s);if(Xo(),o(),(a||t.sp)&&!ul(t)&&gg(t),a){if(s.then(Bv,Bv),e)return s.then(u=>{Vv(t,u)}).catch(u=>{kc(u,t,0)});t.asyncDep=s}else Vv(t,s)}else yw(t)}function Vv(t,e,n){ht(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:sn(e)&&(t.setupState=Cb(e)),yw(t)}function yw(t,e,n){const r=t.type;t.render||(t.render=r.render||yo);{const i=Cc(t);Ko();try{mC(t)}finally{Xo(),i()}}}const XC={get(t,e){return Tr(t,"get",""),t[e]}};function QC(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,XC),slots:t.slots,emit:t.emit,expose:e}}function eh(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Cb(pg(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Pu)return Pu[n](t)},has(e,n){return n in e||n in Pu}})):t.proxy}function JC(t,e=!0){return ht(t)?t.displayName||t.name:t.name||e&&t.__name}function ZC(t){return ht(t)&&"__vccOpts"in t}const Ae=(t,e)=>KA(t,e,wl);function xc(t,e,n){const r=arguments.length;return r===2?sn(e)&&!ut(e)?nc(e)?He(t,null,[e]):He(t,e):He(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&nc(n)&&(n=[n]),He(t,e,n))}const ex="3.5.17";/**
* @vue/runtime-dom v3.5.17
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Wp;const Uv=typeof window<"u"&&window.trustedTypes;if(Uv)try{Wp=Uv.createPolicy("vue",{createHTML:t=>t})}catch{}const bw=Wp?t=>Wp.createHTML(t):t=>t,tx="http://www.w3.org/2000/svg",nx="http://www.w3.org/1998/Math/MathML",Oo=typeof document<"u"?document:null,jv=Oo&&Oo.createElement("template"),rx={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const i=e==="svg"?Oo.createElementNS(tx,t):e==="mathml"?Oo.createElementNS(nx,t):n?Oo.createElement(t,{is:n}):Oo.createElement(t);return t==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:t=>Oo.createTextNode(t),createComment:t=>Oo.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Oo.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,i,o){const s=n?n.previousSibling:e.lastChild;if(i&&(i===o||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{jv.innerHTML=bw(r==="svg"?`<svg>${t}</svg>`:r==="mathml"?`<math>${t}</math>`:t);const a=jv.content;if(r==="svg"||r==="mathml"){const u=a.firstChild;for(;u.firstChild;)a.appendChild(u.firstChild);a.removeChild(u)}e.insertBefore(a,n)}return[s?s.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},ss="transition",ru="animation",rc=Symbol("_vtc"),ww={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ix=lr({},Bb,ww),ox=t=>(t.displayName="Transition",t.props=ix,t),J8=ox((t,{slots:e})=>xc(sC,sx(t),e)),Ys=(t,e=[])=>{ut(t)?t.forEach(n=>n(...e)):t&&t(...e)},Wv=t=>t?ut(t)?t.some(e=>e.length>1):t.length>1:!1;function sx(t){const e={};for(const F in t)F in ww||(e[F]=t[F]);if(t.css===!1)return e;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:u=o,appearActiveClass:c=s,appearToClass:h=a,leaveFromClass:l=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=t,_=ax(i),p=_&&_[0],b=_&&_[1],{onBeforeEnter:y,onEnter:w,onEnterCancelled:R,onLeave:E,onLeaveCancelled:A,onBeforeAppear:C=y,onAppear:I=w,onAppearCancelled:$=R}=e,N=(F,Q,M,H)=>{F._enterCancelled=H,Ks(F,Q?h:a),Ks(F,Q?c:s),M&&M()},W=(F,Q)=>{F._isLeaving=!1,Ks(F,l),Ks(F,f),Ks(F,d),Q&&Q()},ne=F=>(Q,M)=>{const H=F?I:w,B=()=>N(Q,F,M);Ys(H,[Q,B]),qv(()=>{Ks(Q,F?u:o),Po(Q,F?h:a),Wv(H)||zv(Q,r,p,B)})};return lr(e,{onBeforeEnter(F){Ys(y,[F]),Po(F,o),Po(F,s)},onBeforeAppear(F){Ys(C,[F]),Po(F,u),Po(F,c)},onEnter:ne(!1),onAppear:ne(!0),onLeave(F,Q){F._isLeaving=!0;const M=()=>W(F,Q);Po(F,l),F._enterCancelled?(Po(F,d),Kv()):(Kv(),Po(F,d)),qv(()=>{F._isLeaving&&(Ks(F,l),Po(F,f),Wv(E)||zv(F,r,b,M))}),Ys(E,[F,M])},onEnterCancelled(F){N(F,!1,void 0,!0),Ys(R,[F])},onAppearCancelled(F){N(F,!0,void 0,!0),Ys($,[F])},onLeaveCancelled(F){W(F),Ys(A,[F])}})}function ax(t){if(t==null)return null;if(sn(t))return[Yh(t.enter),Yh(t.leave)];{const e=Yh(t);return[e,e]}}function Yh(t){return hA(t)}function Po(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[rc]||(t[rc]=new Set)).add(e)}function Ks(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const n=t[rc];n&&(n.delete(e),n.size||(t[rc]=void 0))}function qv(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let lx=0;function zv(t,e,n,r){const i=t._endId=++lx,o=()=>{i===t._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:s,timeout:a,propCount:u}=ux(t,e);if(!s)return r();const c=s+"end";let h=0;const l=()=>{t.removeEventListener(c,d),o()},d=f=>{f.target===t&&++h>=u&&l()};setTimeout(()=>{h<u&&l()},a+1),t.addEventListener(c,d)}function ux(t,e){const n=window.getComputedStyle(t),r=_=>(n[_]||"").split(", "),i=r(`${ss}Delay`),o=r(`${ss}Duration`),s=Gv(i,o),a=r(`${ru}Delay`),u=r(`${ru}Duration`),c=Gv(a,u);let h=null,l=0,d=0;e===ss?s>0&&(h=ss,l=s,d=o.length):e===ru?c>0&&(h=ru,l=c,d=u.length):(l=Math.max(s,c),h=l>0?s>c?ss:ru:null,d=h?h===ss?o.length:u.length:0);const f=h===ss&&/\b(transform|all)(,|$)/.test(r(`${ss}Property`).toString());return{type:h,timeout:l,propCount:d,hasTransform:f}}function Gv(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>Yv(n)+Yv(t[r])))}function Yv(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function Kv(){return document.body.offsetHeight}function cx(t,e,n){const r=t[rc];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const gd=Symbol("_vod"),Sw=Symbol("_vsh"),fx={beforeMount(t,{value:e},{transition:n}){t[gd]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):iu(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),iu(t,!0),r.enter(t)):r.leave(t,()=>{iu(t,!1)}):iu(t,e))},beforeUnmount(t,{value:e}){iu(t,e)}};function iu(t,e){t.style.display=e?t[gd]:"none",t[Sw]=!e}const dx=Symbol(""),hx=/(^|;)\s*display\s*:/;function px(t,e,n){const r=t.style,i=An(n);let o=!1;if(n&&!i){if(e)if(An(e))for(const s of e.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&Vf(r,a,"")}else for(const s in e)n[s]==null&&Vf(r,s,"");for(const s in n)s==="display"&&(o=!0),Vf(r,s,n[s])}else if(i){if(e!==n){const s=r[dx];s&&(n+=";"+s),r.cssText=n,o=hx.test(n)}}else e&&t.removeAttribute("style");gd in t&&(t[gd]=o?r.display:"",t[Sw]&&(r.display="none"))}const Xv=/\s*!important$/;function Vf(t,e,n){if(ut(n))n.forEach(r=>Vf(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=mx(t,e);Xv.test(n)?t.setProperty(Ia(r),n.replace(Xv,""),"important"):t[r]=n}}const Qv=["Webkit","Moz","ms"],Kh={};function mx(t,e){const n=Kh[e];if(n)return n;let r=Fi(e);if(r!=="filter"&&r in t)return Kh[e]=r;r=Yd(r);for(let i=0;i<Qv.length;i++){const o=Qv[i]+r;if(o in t)return Kh[e]=o}return e}const Jv="http://www.w3.org/1999/xlink";function Zv(t,e,n,r,i,o=yA(e)){r&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(Jv,e.slice(6,e.length)):t.setAttributeNS(Jv,e,n):n==null||o&&!sb(n)?t.removeAttribute(e):t.setAttribute(e,o?"":Gi(n)?String(n):n)}function e0(t,e,n,r,i){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?bw(n):n);return}const o=t.tagName;if(e==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?t.getAttribute("value")||"":t.value,u=n==null?t.type==="checkbox"?"on":"":String(n);(a!==u||!("_value"in t))&&(t.value=u),n==null&&t.removeAttribute(e),t._value=n;return}let s=!1;if(n===""||n==null){const a=typeof t[e];a==="boolean"?n=sb(n):n==null&&a==="string"?(n="",s=!0):a==="number"&&(n=0,s=!0)}try{t[e]=n}catch{}s&&t.removeAttribute(i||e)}function ia(t,e,n,r){t.addEventListener(e,n,r)}function gx(t,e,n,r){t.removeEventListener(e,n,r)}const t0=Symbol("_vei");function _x(t,e,n,r,i=null){const o=t[t0]||(t[t0]={}),s=o[e];if(r&&s)s.value=r;else{const[a,u]=vx(e);if(r){const c=o[e]=wx(r,i);ia(t,a,c,u)}else s&&(gx(t,a,s,u),o[e]=void 0)}}const n0=/(?:Once|Passive|Capture)$/;function vx(t){let e;if(n0.test(t)){e={};let r;for(;r=t.match(n0);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Ia(t.slice(2)),e]}let Xh=0;const yx=Promise.resolve(),bx=()=>Xh||(yx.then(()=>Xh=0),Xh=Date.now());function wx(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Yi(Sx(r,n.value),e,5,[r])};return n.value=t,n.attached=bx(),n}function Sx(t,e){if(ut(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>i=>!i._stopped&&r&&r(i))}else return e}const r0=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Tx=(t,e,n,r,i,o)=>{const s=i==="svg";e==="class"?cx(t,r,s):e==="style"?px(t,n,r):qd(e)?ng(e)||_x(t,e,n,r,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):kx(t,e,r,s))?(e0(t,e,r),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Zv(t,e,r,s,o,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!An(r))?e0(t,Fi(e),r,o,e):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),Zv(t,e,r,s))};function kx(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&r0(e)&&ht(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return r0(e)&&An(n)?!1:e in t}const _d=t=>{const e=t.props["onUpdate:modelValue"]||!1;return ut(e)?n=>Ff(e,n):e};function Ex(t){t.target.composing=!0}function i0(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const cl=Symbol("_assign"),Z8={created(t,{modifiers:{lazy:e,trim:n,number:r}},i){t[cl]=_d(i);const o=r||i.props&&i.props.type==="number";ia(t,e?"change":"input",s=>{if(s.target.composing)return;let a=t.value;n&&(a=a.trim()),o&&(a=ld(a)),t[cl](a)}),n&&ia(t,"change",()=>{t.value=t.value.trim()}),e||(ia(t,"compositionstart",Ex),ia(t,"compositionend",i0),ia(t,"change",i0))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:r,trim:i,number:o}},s){if(t[cl]=_d(s),t.composing)return;const a=(o||t.type==="number")&&!/^0\d/.test(t.value)?ld(t.value):t.value,u=e??"";a!==u&&(document.activeElement===t&&t.type!=="range"&&(r&&e===n||i&&t.value.trim()===u)||(t.value=u))}},eB={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const i=zd(e);ia(t,"change",()=>{const o=Array.prototype.filter.call(t.options,s=>s.selected).map(s=>n?ld(vd(s)):vd(s));t[cl](t.multiple?i?new Set(o):o:o[0]),t._assigning=!0,Ot(()=>{t._assigning=!1})}),t[cl]=_d(r)},mounted(t,{value:e}){o0(t,e)},beforeUpdate(t,e,n){t[cl]=_d(n)},updated(t,{value:e}){t._assigning||o0(t,e)}};function o0(t,e){const n=t.multiple,r=ut(e);if(!(n&&!r&&!zd(e))){for(let i=0,o=t.options.length;i<o;i++){const s=t.options[i],a=vd(s);if(n)if(r){const u=typeof a;u==="string"||u==="number"?s.selected=e.some(c=>String(c)===String(a)):s.selected=wA(e,a)>-1}else s.selected=e.has(a);else if(Xd(vd(s),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function vd(t){return"_value"in t?t._value:t.value}const Rx=["ctrl","shift","alt","meta"],Ax={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>Rx.some(n=>t[`${n}Key`]&&!e.includes(n))},s0=(t,e)=>{const n=t._withMods||(t._withMods={}),r=e.join(".");return n[r]||(n[r]=(i,...o)=>{for(let s=0;s<e.length;s++){const a=Ax[e[s]];if(a&&a(i,e))return}return t(i,...o)})},Cx=lr({patchProp:Tx},rx);let a0;function xx(){return a0||(a0=CC(Cx))}const Px=(...t)=>{const e=xx().createApp(...t),{mount:n}=e;return e.mount=r=>{const i=Lx(r);if(!i)return;const o=e._component;!ht(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=n(i,!1,Ix(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},e};function Ix(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Lx(t){return An(t)?document.querySelector(t):t}/*!
  * vue-i18n v10.0.8
  * (c) 2025 kazuya kawaguchi
  * Released under the MIT License.
  */const Ox="10.0.8";function Mx(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ym().__INTLIFY_PROD_DEVTOOLS__=!1)}const Di={UNEXPECTED_RETURN_TYPE:AR,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function Ki(t,...e){return jd(t,null,void 0)}const qp=Fs("__translateVNode"),zp=Fs("__datetimeParts"),Gp=Fs("__numberParts"),$x=Fs("__setPluralRules"),Fx=Fs("__injectWithOption"),Yp=Fs("__dispose");function ic(t){if(!Kt(t)||vo(t))return t;for(const e in t)if(Wi(t,e))if(!e.includes("."))Kt(t[e])&&ic(t[e]);else{const n=e.split("."),r=n.length-1;let i=t,o=!1;for(let s=0;s<r;s++){if(n[s]==="__proto__")throw new Error(`unsafe key: ${n[s]}`);if(n[s]in i||(i[n[s]]=on()),!Kt(i[n[s]])){o=!0;break}i=i[n[s]]}if(o||(vo(i)?z1.includes(n[r])||delete t[e]:(i[n[r]]=t[e],delete t[e])),!vo(i)){const s=i[n[r]];Kt(s)&&ic(s)}}return t}function Tw(t,e){const{messages:n,__i18n:r,messageResolver:i,flatJson:o}=e,s=Ut(n)?n:er(r)?on():{[t]:on()};if(er(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:u,resource:c}=a;u?(s[u]=s[u]||on(),$f(c,s[u])):$f(c,s)}else et(a)&&$f(JSON.parse(a),s)}),i==null&&o)for(const a in s)Wi(s,a)&&ic(s[a]);return s}function kw(t){return t.type}function Dx(t,e,n){let r=Kt(e.messages)?e.messages:on();"__i18nGlobal"in n&&(r=Tw(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(o=>{t.mergeLocaleMessage(o,r[o])});{if(Kt(e.datetimeFormats)){const o=Object.keys(e.datetimeFormats);o.length&&o.forEach(s=>{t.mergeDateTimeFormat(s,e.datetimeFormats[s])})}if(Kt(e.numberFormats)){const o=Object.keys(e.numberFormats);o.length&&o.forEach(s=>{t.mergeNumberFormat(s,e.numberFormats[s])})}}}function l0(t){return He(Ac,null,t,0)}const u0="__INTLIFY_META__",c0=()=>[],Nx=()=>!1;let f0=0;function d0(t){return(e,n,r,i)=>t(n,r,$l()||void 0,i)}const Hx=()=>{const t=$l();let e=null;return t&&(e=kw(t)[u0])?{[u0]:e}:null};function Ew(t={}){const{__root:e,__injectWithOption:n}=t,r=e===void 0,i=t.flatJson,o=od?j:ba;let s=En(t.inheritLocale)?t.inheritLocale:!0;const a=o(e&&s?e.locale.value:et(t.locale)?t.locale:ad),u=o(e&&s?e.fallbackLocale.value:et(t.fallbackLocale)||er(t.fallbackLocale)||Ut(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:a.value),c=o(Tw(a.value,t)),h=o(Ut(t.datetimeFormats)?t.datetimeFormats:{[a.value]:{}}),l=o(Ut(t.numberFormats)?t.numberFormats:{[a.value]:{}});let d=e?e.missingWarn:En(t.missingWarn)||sd(t.missingWarn)?t.missingWarn:!0,f=e?e.fallbackWarn:En(t.fallbackWarn)||sd(t.fallbackWarn)?t.fallbackWarn:!0,_=e?e.fallbackRoot:En(t.fallbackRoot)?t.fallbackRoot:!0,p=!!t.fallbackFormat,b=Tn(t.missing)?t.missing:null,y=Tn(t.missing)?d0(t.missing):null,w=Tn(t.postTranslation)?t.postTranslation:null,R=e?e.warnHtmlMessage:En(t.warnHtmlMessage)?t.warnHtmlMessage:!0,E=!!t.escapeParameter;const A=e?e.modifiers:Ut(t.modifiers)?t.modifiers:{};let C=t.pluralRules||e&&e.pluralRules,I;I=(()=>{r&&fv(null);const S={version:Ox,locale:a.value,fallbackLocale:u.value,messages:c.value,modifiers:A,pluralRules:C,missing:y===null?void 0:y,missingWarn:d,fallbackWarn:f,fallbackFormat:p,unresolving:!0,postTranslation:w===null?void 0:w,warnHtmlMessage:R,escapeParameter:E,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};S.datetimeFormats=h.value,S.numberFormats=l.value,S.__datetimeFormatters=Ut(I)?I.__datetimeFormatters:void 0,S.__numberFormatters=Ut(I)?I.__numberFormatters:void 0;const g=GR(S);return r&&fv(g),g})(),tu(I,a.value,u.value);function N(){return[a.value,u.value,c.value,h.value,l.value]}const W=Ae({get:()=>a.value,set:S=>{a.value=S,I.locale=a.value}}),ne=Ae({get:()=>u.value,set:S=>{u.value=S,I.fallbackLocale=u.value,tu(I,a.value,S)}}),F=Ae(()=>c.value),Q=Ae(()=>h.value),M=Ae(()=>l.value);function H(){return Tn(w)?w:null}function B(S){w=S,I.postTranslation=S}function U(){return b}function oe(S){S!==null&&(y=d0(S)),b=S,I.missing=y}const le=(S,g,T,V,ie,he)=>{N();let Ee;try{__INTLIFY_PROD_DEVTOOLS__,r||(I.fallbackContext=e?zR():void 0),Ee=S(I)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(I.fallbackContext=void 0)}if(T!=="translate exists"&&zn(Ee)&&Ee===Wd||T==="translate exists"&&!Ee){const[Ne,Pe]=g();return e&&_?V(e):ie(Ne)}else{if(he(Ee))return Ee;throw Ki(Di.UNEXPECTED_RETURN_TYPE)}};function q(...S){return le(g=>Reflect.apply(yv,null,[g,...S]),()=>Lp(...S),"translate",g=>Reflect.apply(g.t,g,[...S]),g=>g,g=>et(g))}function be(...S){const[g,T,V]=S;if(V&&!Kt(V))throw Ki(Di.INVALID_ARGUMENT);return q(g,T,ar({resolvedMessage:!0},V||{}))}function ke(...S){return le(g=>Reflect.apply(hv,null,[g,...S]),()=>Pp(...S),"datetime format",g=>Reflect.apply(g.d,g,[...S]),()=>uv,g=>et(g))}function Se(...S){return le(g=>Reflect.apply(mv,null,[g,...S]),()=>Ip(...S),"number format",g=>Reflect.apply(g.n,g,[...S]),()=>uv,g=>et(g))}function ae(S){return S.map(g=>et(g)||zn(g)||En(g)?l0(String(g)):g)}const _e={normalize:ae,interpolate:S=>S,type:"vnode"};function te(...S){return le(g=>{let T;const V=g;try{V.processor=_e,T=Reflect.apply(yv,null,[V,...S])}finally{V.processor=null}return T},()=>Lp(...S),"translate",g=>g[qp](...S),g=>[l0(g)],g=>er(g))}function ue(...S){return le(g=>Reflect.apply(mv,null,[g,...S]),()=>Ip(...S),"number format",g=>g[Gp](...S),c0,g=>et(g)||er(g))}function ge(...S){return le(g=>Reflect.apply(hv,null,[g,...S]),()=>Pp(...S),"datetime format",g=>g[zp](...S),c0,g=>et(g)||er(g))}function we(S){C=S,I.pluralRules=C}function Ie(S,g){return le(()=>{if(!S)return!1;const T=et(g)?g:a.value,V=K(T),ie=I.messageResolver(V,S);return vo(ie)||Ri(ie)||et(ie)},()=>[S],"translate exists",T=>Reflect.apply(T.te,T,[S,g]),Nx,T=>En(T))}function z(S){let g=null;const T=G1(I,u.value,a.value);for(let V=0;V<T.length;V++){const ie=c.value[T[V]]||{},he=I.messageResolver(ie,S);if(he!=null){g=he;break}}return g}function P(S){const g=z(S);return g??(e?e.tm(S)||{}:{})}function K(S){return c.value[S]||{}}function ee(S,g){if(i){const T={[S]:g};for(const V in T)Wi(T,V)&&ic(T[V]);g=T[S]}c.value[S]=g,I.messages=c.value}function X(S,g){c.value[S]=c.value[S]||{};const T={[S]:g};if(i)for(const V in T)Wi(T,V)&&ic(T[V]);g=T[S],$f(g,c.value[S]),I.messages=c.value}function x(S){return h.value[S]||{}}function G(S,g){h.value[S]=g,I.datetimeFormats=h.value,pv(I,S,g)}function L(S,g){h.value[S]=ar(h.value[S]||{},g),I.datetimeFormats=h.value,pv(I,S,g)}function D(S){return l.value[S]||{}}function Z(S,g){l.value[S]=g,I.numberFormats=l.value,gv(I,S,g)}function me(S,g){l.value[S]=ar(l.value[S]||{},g),I.numberFormats=l.value,gv(I,S,g)}f0++,e&&od&&(Fe(e.locale,S=>{s&&(a.value=S,I.locale=S,tu(I,a.value,u.value))}),Fe(e.fallbackLocale,S=>{s&&(u.value=S,I.fallbackLocale=S,tu(I,a.value,u.value))}));const de={id:f0,locale:W,fallbackLocale:ne,get inheritLocale(){return s},set inheritLocale(S){s=S,S&&e&&(a.value=e.locale.value,u.value=e.fallbackLocale.value,tu(I,a.value,u.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:F,get modifiers(){return A},get pluralRules(){return C||{}},get isGlobal(){return r},get missingWarn(){return d},set missingWarn(S){d=S,I.missingWarn=d},get fallbackWarn(){return f},set fallbackWarn(S){f=S,I.fallbackWarn=f},get fallbackRoot(){return _},set fallbackRoot(S){_=S},get fallbackFormat(){return p},set fallbackFormat(S){p=S,I.fallbackFormat=p},get warnHtmlMessage(){return R},set warnHtmlMessage(S){R=S,I.warnHtmlMessage=S},get escapeParameter(){return E},set escapeParameter(S){E=S,I.escapeParameter=S},t:q,getLocaleMessage:K,setLocaleMessage:ee,mergeLocaleMessage:X,getPostTranslationHandler:H,setPostTranslationHandler:B,getMissingHandler:U,setMissingHandler:oe,[$x]:we};return de.datetimeFormats=Q,de.numberFormats=M,de.rt=be,de.te=Ie,de.tm=P,de.d=ke,de.n=Se,de.getDateTimeFormat=x,de.setDateTimeFormat=G,de.mergeDateTimeFormat=L,de.getNumberFormat=D,de.setNumberFormat=Z,de.mergeNumberFormat=me,de[Fx]=n,de[qp]=te,de[zp]=ge,de[Gp]=ue,de}const Tg={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function Bx({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,i)=>[...r,...i.type===Ye?i.children:[i]],[]):e.reduce((n,r)=>{const i=t[r];return i&&(n[r]=i()),n},on())}function Rw(){return Ye}const Vx=Ni({name:"i18n-t",props:ar({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>zn(t)||!isNaN(t)}},Tg),setup(t,e){const{slots:n,attrs:r}=e,i=t.i18n||kg({useScope:t.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(l=>l!=="_"),s=on();t.locale&&(s.locale=t.locale),t.plural!==void 0&&(s.plural=et(t.plural)?+t.plural:t.plural);const a=Bx(e,o),u=i[qp](t.keypath,a,s),c=ar(on(),r),h=et(t.tag)||Kt(t.tag)?t.tag:Rw();return xc(h,c,u)}}}),h0=Vx;function Ux(t){return er(t)&&!et(t[0])}function Aw(t,e,n,r){const{slots:i,attrs:o}=e;return()=>{const s={part:!0};let a=on();t.locale&&(s.locale=t.locale),et(t.format)?s.key=t.format:Kt(t.format)&&(et(t.format.key)&&(s.key=t.format.key),a=Object.keys(t.format).reduce((d,f)=>n.includes(f)?ar(on(),d,{[f]:t.format[f]}):d,on()));const u=r(t.value,s,a);let c=[s.key];er(u)?c=u.map((d,f)=>{const _=i[d.type],p=_?_({[d.type]:d.value,index:f,parts:u}):[d.value];return Ux(p)&&(p[0].key=`${d.type}-${f}`),p}):et(u)&&(c=[u]);const h=ar(on(),o),l=et(t.tag)||Kt(t.tag)?t.tag:Rw();return xc(l,h,c)}}const jx=Ni({name:"i18n-n",props:ar({value:{type:Number,required:!0},format:{type:[String,Object]}},Tg),setup(t,e){const n=t.i18n||kg({useScope:t.scope,__useComponent:!0});return Aw(t,e,eb,(...r)=>n[Gp](...r))}}),p0=jx,Wx=Ni({name:"i18n-d",props:ar({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Tg),setup(t,e){const n=t.i18n||kg({useScope:t.scope,__useComponent:!0});return Aw(t,e,Z1,(...r)=>n[zp](...r))}}),m0=Wx;function qx(t,e){const n=t;if(t.mode==="composition")return n.__getInstance(e)||t.global;{const r=n.__getInstance(e);return r!=null?r.__composer:t.global.__composer}}function zx(t){const e=s=>{const{instance:a,value:u}=s;if(!a||!a.$)throw Ki(Di.UNEXPECTED_ERROR);const c=qx(t,a.$),h=g0(u);return[Reflect.apply(c.t,c,[..._0(h)]),c]};return{created:(s,a)=>{const[u,c]=e(a);od&&t.global===c&&(s.__i18nWatcher=Fe(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),s.__composer=c,s.textContent=u},unmounted:s=>{od&&s.__i18nWatcher&&(s.__i18nWatcher(),s.__i18nWatcher=void 0,delete s.__i18nWatcher),s.__composer&&(s.__composer=void 0,delete s.__composer)},beforeUpdate:(s,{value:a})=>{if(s.__composer){const u=s.__composer,c=g0(a);s.textContent=Reflect.apply(u.t,u,[..._0(c)])}},getSSRProps:s=>{const[a]=e(s);return{textContent:a}}}}function g0(t){if(et(t))return{path:t};if(Ut(t)){if(!("path"in t))throw Ki(Di.REQUIRED_VALUE,"path");return t}else throw Ki(Di.INVALID_VALUE)}function _0(t){const{path:e,locale:n,args:r,choice:i,plural:o}=t,s={},a=r||{};return et(n)&&(s.locale=n),zn(i)&&(s.plural=i),zn(o)&&(s.plural=o),[e,a,s]}function Gx(t,e,...n){const r=Ut(n[0])?n[0]:{};(En(r.globalInstall)?r.globalInstall:!0)&&([h0.name,"I18nT"].forEach(o=>t.component(o,h0)),[p0.name,"I18nN"].forEach(o=>t.component(o,p0)),[m0.name,"I18nD"].forEach(o=>t.component(o,m0))),t.directive("t",zx(e))}const Yx=Fs("global-vue-i18n");function Kx(t={},e){const n=En(t.globalInjection)?t.globalInjection:!0,r=new Map,[i,o]=Xx(t),s=Fs("");function a(l){return r.get(l)||null}function u(l,d){r.set(l,d)}function c(l){r.delete(l)}const h={get mode(){return"composition"},async install(l,...d){if(l.__VUE_I18N_SYMBOL__=s,l.provide(l.__VUE_I18N_SYMBOL__,h),Ut(d[0])){const p=d[0];h.__composerExtend=p.__composerExtend,h.__vueI18nExtend=p.__vueI18nExtend}let f=null;n&&(f=i2(l,h.global)),Gx(l,h,...d);const _=l.unmount;l.unmount=()=>{f&&f(),h.dispose(),_()}},get global(){return o},dispose(){i.stop()},__instances:r,__getInstance:a,__setInstance:u,__deleteInstance:c};return h}function kg(t={}){const e=$l();if(e==null)throw Ki(Di.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Ki(Di.NOT_INSTALLED);const n=Qx(e),r=Zx(n),i=kw(e),o=Jx(t,i);if(o==="global")return Dx(r,t,i),r;if(o==="parent"){let u=e2(n,e,t.__useComponent);return u==null&&(u=r),u}const s=n;let a=s.__getInstance(e);if(a==null){const u=ar({},t);"__i18n"in i&&(u.__i18n=i.__i18n),r&&(u.__root=r),a=Ew(u),s.__composerExtend&&(a[Yp]=s.__composerExtend(a)),n2(s,e,a),s.__setInstance(e,a)}return a}function Xx(t,e,n){const r=sg(),i=r.run(()=>Ew(t));if(i==null)throw Ki(Di.UNEXPECTED_ERROR);return[r,i]}function Qx(t){const e=Xr(t.isCE?Yx:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Ki(t.isCE?Di.NOT_INSTALLED_WITH_PROVIDE:Di.UNEXPECTED_ERROR);return e}function Jx(t,e){return Ud(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function Zx(t){return t.mode==="composition"?t.global:t.global.__composer}function e2(t,e,n=!1){let r=null;const i=e.root;let o=t2(e,n);for(;o!=null;){const s=t;if(t.mode==="composition"&&(r=s.__getInstance(o)),r!=null||i===o)break;o=o.parent}return r}function t2(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function n2(t,e,n){Et(()=>{},e),Ft(()=>{const r=n;t.__deleteInstance(e);const i=r[Yp];i&&(i(),delete r[Yp])},e)}const r2=["locale","fallbackLocale","availableLocales"],v0=["t","rt","d","n","tm","te"];function i2(t,e){const n=Object.create(null);return r2.forEach(i=>{const o=Object.getOwnPropertyDescriptor(e,i);if(!o)throw Ki(Di.UNEXPECTED_ERROR);const s=vn(o.value)?{get(){return o.value.value},set(a){o.value.value=a}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,i,s)}),t.config.globalProperties.$i18n=n,v0.forEach(i=>{const o=Object.getOwnPropertyDescriptor(e,i);if(!o||!o.value)throw Ki(Di.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${i}`,o)}),()=>{delete t.config.globalProperties.$i18n,v0.forEach(i=>{delete t.config.globalProperties[`$${i}`]})}}Mx();VR(SR);UR(NR);jR(G1);if(__INTLIFY_PROD_DEVTOOLS__){const t=Ym();t.__INTLIFY__=!0,TR(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const o2=Object.fromEntries(Object.entries(Object.assign({})).map(([t,e])=>{const n=t.endsWith(".yaml");return[t.slice(14,n?-5:-4),e.default]})),s2=({app:t})=>{const e=Kx({locale:"en",messages:o2});t.use(e)},a2=Object.freeze(Object.defineProperty({__proto__:null,install:s2},Symbol.toStringTag,{value:"Module"}));/*!
 * pinia v2.3.1
 * (c) 2025 Eduardo San Martin Morote
 * @license MIT
 */let Cw;const th=t=>Cw=t,xw=Symbol();function Kp(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Lu;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Lu||(Lu={}));function l2(){const t=sg(!0),e=t.run(()=>j({}));let n=[],r=[];const i=pg({install(o){th(i),i._a=o,o.provide(xw,i),o.config.globalProperties.$pinia=i,r.forEach(s=>n.push(s)),r=[]},use(o){return this._a?n.push(o):r.push(o),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return i}const Pw=()=>{};function y0(t,e,n,r=Pw){t.push(e);const i=()=>{const o=t.indexOf(e);o>-1&&(t.splice(o,1),r())};return!n&&cb()&&SA(i),i}function ja(t,...e){t.slice().forEach(n=>{n(...e)})}const u2=t=>t(),b0=Symbol(),Qh=Symbol();function Xp(t,e){t instanceof Map&&e instanceof Map?e.forEach((n,r)=>t.set(r,n)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],i=t[n];Kp(i)&&Kp(r)&&t.hasOwnProperty(n)&&!vn(r)&&!zo(r)?t[n]=Xp(i,r):t[n]=r}return t}const c2=Symbol();function f2(t){return!Kp(t)||!t.hasOwnProperty(c2)}const{assign:fs}=Object;function d2(t){return!!(vn(t)&&t.effect)}function h2(t,e,n,r){const{state:i,actions:o,getters:s}=e,a=n.state.value[t];let u;function c(){a||(n.state.value[t]=i?i():{});const h=xb(n.state.value[t]);return fs(h,o,Object.keys(s||{}).reduce((l,d)=>(l[d]=pg(Ae(()=>{th(n);const f=n._s.get(t);return s[d].call(f,f)})),l),{}))}return u=Iw(t,c,e,n,r,!0),u}function Iw(t,e,n={},r,i,o){let s;const a=fs({actions:{}},n),u={deep:!0};let c,h,l=[],d=[],f;const _=r.state.value[t];!o&&!_&&(r.state.value[t]={}),j({});let p;function b($){let N;c=h=!1,typeof $=="function"?($(r.state.value[t]),N={type:Lu.patchFunction,storeId:t,events:f}):(Xp(r.state.value[t],$),N={type:Lu.patchObject,payload:$,storeId:t,events:f});const W=p=Symbol();Ot().then(()=>{p===W&&(c=!0)}),h=!0,ja(l,N,r.state.value[t])}const y=o?function(){const{state:N}=n,W=N?N():{};this.$patch(ne=>{fs(ne,W)})}:Pw;function w(){s.stop(),l=[],d=[],r._s.delete(t)}const R=($,N="")=>{if(b0 in $)return $[Qh]=N,$;const W=function(){th(r);const ne=Array.from(arguments),F=[],Q=[];function M(U){F.push(U)}function H(U){Q.push(U)}ja(d,{args:ne,name:W[Qh],store:A,after:M,onError:H});let B;try{B=$.apply(this&&this.$id===t?this:A,ne)}catch(U){throw ja(Q,U),U}return B instanceof Promise?B.then(U=>(ja(F,U),U)).catch(U=>(ja(Q,U),Promise.reject(U))):(ja(F,B),B)};return W[b0]=!0,W[Qh]=N,W},E={_p:r,$id:t,$onAction:y0.bind(null,d),$patch:b,$reset:y,$subscribe($,N={}){const W=y0(l,$,N.detached,()=>ne()),ne=s.run(()=>Fe(()=>r.state.value[t],F=>{(N.flush==="sync"?h:c)&&$({storeId:t,type:Lu.direct,events:f},F)},fs({},u,N)));return W},$dispose:w},A=La(E);r._s.set(t,A);const I=(r._a&&r._a.runWithContext||u2)(()=>r._e.run(()=>(s=sg()).run(()=>e({action:R}))));for(const $ in I){const N=I[$];if(vn(N)&&!d2(N)||zo(N))o||(_&&f2(N)&&(vn(N)?N.value=_[$]:Xp(N,_[$])),r.state.value[t][$]=N);else if(typeof N=="function"){const W=R(N,$);I[$]=W,a.actions[$]=N}}return fs(A,I),fs(Vt(A),I),Object.defineProperty(A,"$state",{get:()=>r.state.value[t],set:$=>{b(N=>{fs(N,$)})}}),r._p.forEach($=>{fs(A,s.run(()=>$({store:A,app:r._a,pinia:r,options:a})))}),_&&o&&n.hydrate&&n.hydrate(A.$state,_),c=!0,h=!0,A}/*! #__NO_SIDE_EFFECTS__ */function Pc(t,e,n){let r,i;const o=typeof e=="function";typeof t=="string"?(r=t,i=o?n:e):(i=t,r=t.id);function s(a,u){const c=nw();return a=a||(c?Xr(xw,null):null),a&&th(a),a=Cw,a._s.has(r)||(o?Iw(r,e,i,a):h2(r,i,a)),a._s.get(r)}return s.$id=r,s}function Lw(t){{const e=Vt(t),n={};for(const r in e){const i=e[r];i.effect?n[r]=Ae({get:()=>t[r],set(o){t[r]=o}}):(vn(i)||zo(i))&&(n[r]=GA(t,r))}return n}}const p2=({isClient:t,initialState:e,app:n})=>{const r=l2();n.use(r),t?r.state.value=e.pinia||{}:e.pinia=r.state.value},m2=Object.freeze(Object.defineProperty({__proto__:null,install:p2},Symbol.toStringTag,{value:"Module"})),g2="modulepreload",_2=function(t){return"/"+t},w0={},Gr=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){let s=function(c){return Promise.all(c.map(h=>Promise.resolve(h).then(l=>({status:"fulfilled",value:l}),l=>({status:"rejected",reason:l}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),u=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=s(n.map(c=>{if(c=_2(c),c in w0)return;w0[c]=!0;const h=c.endsWith(".css"),l=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${l}`))return;const d=document.createElement("link");if(d.rel=h?"stylesheet":g2,h||(d.as="script"),d.crossOrigin="",d.href=c,u&&d.setAttribute("nonce",u),document.head.appendChild(d),h)return new Promise((f,_)=>{d.addEventListener("load",f),d.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return e().catch(o)})};/*!
  * vue-router v4.5.1
  * (c) 2025 Eduardo San Martin Morote
  * @license MIT
  */const Qa=typeof document<"u";function Ow(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function v2(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&Ow(t.default)}const Zt=Object.assign;function Jh(t,e){const n={};for(const r in e){const i=e[r];n[r]=Xi(i)?i.map(t):t(i)}return n}const Ou=()=>{},Xi=Array.isArray,Mw=/#/g,y2=/&/g,b2=/\//g,w2=/=/g,S2=/\?/g,$w=/\+/g,T2=/%5B/g,k2=/%5D/g,Fw=/%5E/g,E2=/%60/g,Dw=/%7B/g,R2=/%7C/g,Nw=/%7D/g,A2=/%20/g;function Eg(t){return encodeURI(""+t).replace(R2,"|").replace(T2,"[").replace(k2,"]")}function C2(t){return Eg(t).replace(Dw,"{").replace(Nw,"}").replace(Fw,"^")}function Qp(t){return Eg(t).replace($w,"%2B").replace(A2,"+").replace(Mw,"%23").replace(y2,"%26").replace(E2,"`").replace(Dw,"{").replace(Nw,"}").replace(Fw,"^")}function x2(t){return Qp(t).replace(w2,"%3D")}function P2(t){return Eg(t).replace(Mw,"%23").replace(S2,"%3F")}function I2(t){return t==null?"":P2(t).replace(b2,"%2F")}function oc(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const L2=/\/$/,O2=t=>t.replace(L2,"");function Zh(t,e,n="/"){let r,i={},o="",s="";const a=e.indexOf("#");let u=e.indexOf("?");return a<u&&a>=0&&(u=-1),u>-1&&(r=e.slice(0,u),o=e.slice(u+1,a>-1?a:e.length),i=t(o)),a>-1&&(r=r||e.slice(0,a),s=e.slice(a,e.length)),r=D2(r??e,n),{fullPath:r+(o&&"?")+o+s,path:r,query:i,hash:oc(s)}}function M2(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function S0(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function $2(t,e,n){const r=e.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Sl(e.matched[r],n.matched[i])&&Hw(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function Sl(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function Hw(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!F2(t[n],e[n]))return!1;return!0}function F2(t,e){return Xi(t)?T0(t,e):Xi(e)?T0(e,t):t===e}function T0(t,e){return Xi(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function D2(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let o=n.length-1,s,a;for(s=0;s<r.length;s++)if(a=r[s],a!==".")if(a==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(s).join("/")}const as={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var sc;(function(t){t.pop="pop",t.push="push"})(sc||(sc={}));var Mu;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Mu||(Mu={}));function N2(t){if(!t)if(Qa){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),O2(t)}const H2=/^[^#]+#/;function B2(t,e){return t.replace(H2,"#")+e}function V2(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const nh=()=>({left:window.scrollX,top:window.scrollY});function U2(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;e=V2(i,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function k0(t,e){return(history.state?history.state.position-e:-1)+t}const Jp=new Map;function j2(t,e){Jp.set(t,e)}function W2(t){const e=Jp.get(t);return Jp.delete(t),e}let q2=()=>location.protocol+"//"+location.host;function Bw(t,e){const{pathname:n,search:r,hash:i}=e,o=t.indexOf("#");if(o>-1){let a=i.includes(t.slice(o))?t.slice(o).length:1,u=i.slice(a);return u[0]!=="/"&&(u="/"+u),S0(u,"")}return S0(n,t)+r+i}function z2(t,e,n,r){let i=[],o=[],s=null;const a=({state:d})=>{const f=Bw(t,location),_=n.value,p=e.value;let b=0;if(d){if(n.value=f,e.value=d,s&&s===_){s=null;return}b=p?d.position-p.position:0}else r(f);i.forEach(y=>{y(n.value,_,{delta:b,type:sc.pop,direction:b?b>0?Mu.forward:Mu.back:Mu.unknown})})};function u(){s=n.value}function c(d){i.push(d);const f=()=>{const _=i.indexOf(d);_>-1&&i.splice(_,1)};return o.push(f),f}function h(){const{history:d}=window;d.state&&d.replaceState(Zt({},d.state,{scroll:nh()}),"")}function l(){for(const d of o)d();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:u,listen:c,destroy:l}}function E0(t,e,n,r=!1,i=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:i?nh():null}}function G2(t){const{history:e,location:n}=window,r={value:Bw(t,n)},i={value:e.state};i.value||o(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function o(u,c,h){const l=t.indexOf("#"),d=l>-1?(n.host&&document.querySelector("base")?t:t.slice(l))+u:q2()+t+u;try{e[h?"replaceState":"pushState"](c,"",d),i.value=c}catch(f){console.error(f),n[h?"replace":"assign"](d)}}function s(u,c){const h=Zt({},e.state,E0(i.value.back,u,i.value.forward,!0),c,{position:i.value.position});o(u,h,!0),r.value=u}function a(u,c){const h=Zt({},i.value,e.state,{forward:u,scroll:nh()});o(h.current,h,!0);const l=Zt({},E0(r.value,u,null),{position:h.position+1},c);o(u,l,!1),r.value=u}return{location:r,state:i,push:a,replace:s}}function Y2(t){t=N2(t);const e=G2(t),n=z2(t,e.state,e.location,e.replace);function r(o,s=!0){s||n.pauseListeners(),history.go(o)}const i=Zt({location:"",base:t,go:r,createHref:B2.bind(null,t)},e,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function K2(t){return typeof t=="string"||t&&typeof t=="object"}function Vw(t){return typeof t=="string"||typeof t=="symbol"}const Uw=Symbol("");var R0;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(R0||(R0={}));function Tl(t,e){return Zt(new Error,{type:t,[Uw]:!0},e)}function Io(t,e){return t instanceof Error&&Uw in t&&(e==null||!!(t.type&e))}const A0="[^/]+?",X2={sensitive:!1,strict:!1,start:!0,end:!0},Q2=/[.+*?^${}()[\]/\\]/g;function J2(t,e){const n=Zt({},X2,e),r=[];let i=n.start?"^":"";const o=[];for(const c of t){const h=c.length?[]:[90];n.strict&&!c.length&&(i+="/");for(let l=0;l<c.length;l++){const d=c[l];let f=40+(n.sensitive?.25:0);if(d.type===0)l||(i+="/"),i+=d.value.replace(Q2,"\\$&"),f+=40;else if(d.type===1){const{value:_,repeatable:p,optional:b,regexp:y}=d;o.push({name:_,repeatable:p,optional:b});const w=y||A0;if(w!==A0){f+=10;try{new RegExp(`(${w})`)}catch(E){throw new Error(`Invalid custom RegExp for param "${_}" (${w}): `+E.message)}}let R=p?`((?:${w})(?:/(?:${w}))*)`:`(${w})`;l||(R=b&&c.length<2?`(?:/${R})`:"/"+R),b&&(R+="?"),i+=R,f+=20,b&&(f+=-8),p&&(f+=-20),w===".*"&&(f+=-50)}h.push(f)}r.push(h)}if(n.strict&&n.end){const c=r.length-1;r[c][r[c].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const s=new RegExp(i,n.sensitive?"":"i");function a(c){const h=c.match(s),l={};if(!h)return null;for(let d=1;d<h.length;d++){const f=h[d]||"",_=o[d-1];l[_.name]=f&&_.repeatable?f.split("/"):f}return l}function u(c){let h="",l=!1;for(const d of t){(!l||!h.endsWith("/"))&&(h+="/"),l=!1;for(const f of d)if(f.type===0)h+=f.value;else if(f.type===1){const{value:_,repeatable:p,optional:b}=f,y=_ in c?c[_]:"";if(Xi(y)&&!p)throw new Error(`Provided param "${_}" is an array but it is not repeatable (* or + modifiers)`);const w=Xi(y)?y.join("/"):y;if(!w)if(b)d.length<2&&(h.endsWith("/")?h=h.slice(0,-1):l=!0);else throw new Error(`Missing required param "${_}"`);h+=w}}return h||"/"}return{re:s,score:r,keys:o,parse:a,stringify:u}}function Z2(t,e){let n=0;for(;n<t.length&&n<e.length;){const r=e[n]-t[n];if(r)return r;n++}return t.length<e.length?t.length===1&&t[0]===80?-1:1:t.length>e.length?e.length===1&&e[0]===80?1:-1:0}function jw(t,e){let n=0;const r=t.score,i=e.score;for(;n<r.length&&n<i.length;){const o=Z2(r[n],i[n]);if(o)return o;n++}if(Math.abs(i.length-r.length)===1){if(C0(r))return 1;if(C0(i))return-1}return i.length-r.length}function C0(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const eP={type:0,value:""},tP=/[a-zA-Z0-9_]/;function nP(t){if(!t)return[[]];if(t==="/")return[[eP]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(f){throw new Error(`ERR (${n})/"${c}": ${f}`)}let n=0,r=n;const i=[];let o;function s(){o&&i.push(o),o=[]}let a=0,u,c="",h="";function l(){c&&(n===0?o.push({type:0,value:c}):n===1||n===2||n===3?(o.length>1&&(u==="*"||u==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:h,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):e("Invalid state to consume buffer"),c="")}function d(){c+=u}for(;a<t.length;){if(u=t[a++],u==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:u==="/"?(c&&l(),s()):u===":"?(l(),n=1):d();break;case 4:d(),n=r;break;case 1:u==="("?n=2:tP.test(u)?d():(l(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&a--);break;case 2:u===")"?h[h.length-1]=="\\"?h=h.slice(0,-1)+u:n=3:h+=u;break;case 3:l(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&a--,h="";break;default:e("Unknown state");break}}return n===2&&e(`Unfinished custom RegExp for param "${c}"`),l(),s(),i}function rP(t,e,n){const r=J2(nP(t.path),n),i=Zt(r,{record:t,parent:e,children:[],alias:[]});return e&&!i.record.aliasOf==!e.record.aliasOf&&e.children.push(i),i}function iP(t,e){const n=[],r=new Map;e=L0({strict:!1,end:!0,sensitive:!1},e);function i(l){return r.get(l)}function o(l,d,f){const _=!f,p=P0(l);p.aliasOf=f&&f.record;const b=L0(e,l),y=[p];if("alias"in l){const E=typeof l.alias=="string"?[l.alias]:l.alias;for(const A of E)y.push(P0(Zt({},p,{components:f?f.record.components:p.components,path:A,aliasOf:f?f.record:p})))}let w,R;for(const E of y){const{path:A}=E;if(d&&A[0]!=="/"){const C=d.record.path,I=C[C.length-1]==="/"?"":"/";E.path=d.record.path+(A&&I+A)}if(w=rP(E,d,b),f?f.alias.push(w):(R=R||w,R!==w&&R.alias.push(w),_&&l.name&&!I0(w)&&s(l.name)),Ww(w)&&u(w),p.children){const C=p.children;for(let I=0;I<C.length;I++)o(C[I],w,f&&f.children[I])}f=f||w}return R?()=>{s(R)}:Ou}function s(l){if(Vw(l)){const d=r.get(l);d&&(r.delete(l),n.splice(n.indexOf(d),1),d.children.forEach(s),d.alias.forEach(s))}else{const d=n.indexOf(l);d>-1&&(n.splice(d,1),l.record.name&&r.delete(l.record.name),l.children.forEach(s),l.alias.forEach(s))}}function a(){return n}function u(l){const d=aP(l,n);n.splice(d,0,l),l.record.name&&!I0(l)&&r.set(l.record.name,l)}function c(l,d){let f,_={},p,b;if("name"in l&&l.name){if(f=r.get(l.name),!f)throw Tl(1,{location:l});b=f.record.name,_=Zt(x0(d.params,f.keys.filter(R=>!R.optional).concat(f.parent?f.parent.keys.filter(R=>R.optional):[]).map(R=>R.name)),l.params&&x0(l.params,f.keys.map(R=>R.name))),p=f.stringify(_)}else if(l.path!=null)p=l.path,f=n.find(R=>R.re.test(p)),f&&(_=f.parse(p),b=f.record.name);else{if(f=d.name?r.get(d.name):n.find(R=>R.re.test(d.path)),!f)throw Tl(1,{location:l,currentLocation:d});b=f.record.name,_=Zt({},d.params,l.params),p=f.stringify(_)}const y=[];let w=f;for(;w;)y.unshift(w.record),w=w.parent;return{name:b,path:p,params:_,matched:y,meta:sP(y)}}t.forEach(l=>o(l));function h(){n.length=0,r.clear()}return{addRoute:o,resolve:c,removeRoute:s,clearRoutes:h,getRoutes:a,getRecordMatcher:i}}function x0(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function P0(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:oP(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function oP(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]=typeof n=="object"?n[r]:n;return e}function I0(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function sP(t){return t.reduce((e,n)=>Zt(e,n.meta),{})}function L0(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}function aP(t,e){let n=0,r=e.length;for(;n!==r;){const o=n+r>>1;jw(t,e[o])<0?r=o:n=o+1}const i=lP(t);return i&&(r=e.lastIndexOf(i,r-1)),r}function lP(t){let e=t;for(;e=e.parent;)if(Ww(e)&&jw(t,e)===0)return e}function Ww({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function uP(t){const e={};if(t===""||t==="?")return e;const r=(t[0]==="?"?t.slice(1):t).split("&");for(let i=0;i<r.length;++i){const o=r[i].replace($w," "),s=o.indexOf("="),a=oc(s<0?o:o.slice(0,s)),u=s<0?null:oc(o.slice(s+1));if(a in e){let c=e[a];Xi(c)||(c=e[a]=[c]),c.push(u)}else e[a]=u}return e}function O0(t){let e="";for(let n in t){const r=t[n];if(n=x2(n),r==null){r!==void 0&&(e+=(e.length?"&":"")+n);continue}(Xi(r)?r.map(o=>o&&Qp(o)):[r&&Qp(r)]).forEach(o=>{o!==void 0&&(e+=(e.length?"&":"")+n,o!=null&&(e+="="+o))})}return e}function cP(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=Xi(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return e}const fP=Symbol(""),M0=Symbol(""),rh=Symbol(""),Rg=Symbol(""),Zp=Symbol("");function ou(){let t=[];function e(r){return t.push(r),()=>{const i=t.indexOf(r);i>-1&&t.splice(i,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function gs(t,e,n,r,i,o=s=>s()){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((a,u)=>{const c=d=>{d===!1?u(Tl(4,{from:n,to:e})):d instanceof Error?u(d):K2(d)?u(Tl(2,{from:e,to:d})):(s&&r.enterCallbacks[i]===s&&typeof d=="function"&&s.push(d),a())},h=o(()=>t.call(r&&r.instances[i],e,n,c));let l=Promise.resolve(h);t.length<3&&(l=l.then(c)),l.catch(d=>u(d))})}function ep(t,e,n,r,i=o=>o()){const o=[];for(const s of t)for(const a in s.components){let u=s.components[a];if(!(e!=="beforeRouteEnter"&&!s.instances[a]))if(Ow(u)){const h=(u.__vccOpts||u)[e];h&&o.push(gs(h,n,r,s,a,i))}else{let c=u();o.push(()=>c.then(h=>{if(!h)throw new Error(`Couldn't resolve component "${a}" at "${s.path}"`);const l=v2(h)?h.default:h;s.mods[a]=h,s.components[a]=l;const f=(l.__vccOpts||l)[e];return f&&gs(f,n,r,s,a,i)()}))}}return o}function $0(t){const e=Xr(rh),n=Xr(Rg),r=Ae(()=>{const u=pe(t.to);return e.resolve(u)}),i=Ae(()=>{const{matched:u}=r.value,{length:c}=u,h=u[c-1],l=n.matched;if(!h||!l.length)return-1;const d=l.findIndex(Sl.bind(null,h));if(d>-1)return d;const f=F0(u[c-2]);return c>1&&F0(h)===f&&l[l.length-1].path!==f?l.findIndex(Sl.bind(null,u[c-2])):d}),o=Ae(()=>i.value>-1&&gP(n.params,r.value.params)),s=Ae(()=>i.value>-1&&i.value===n.matched.length-1&&Hw(n.params,r.value.params));function a(u={}){if(mP(u)){const c=e[pe(t.replace)?"replace":"push"](pe(t.to)).catch(Ou);return t.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:Ae(()=>r.value.href),isActive:o,isExactActive:s,navigate:a}}function dP(t){return t.length===1?t[0]:t}const hP=Ni({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:$0,setup(t,{slots:e}){const n=La($0(t)),{options:r}=Xr(rh),i=Ae(()=>({[D0(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[D0(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=e.default&&dP(e.default(n));return t.custom?o:xc("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),pP=hP;function mP(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function gP(t,e){for(const n in e){const r=e[n],i=t[n];if(typeof r=="string"){if(r!==i)return!1}else if(!Xi(i)||i.length!==r.length||r.some((o,s)=>o!==i[s]))return!1}return!0}function F0(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const D0=(t,e,n)=>t??e??n,_P=Ni({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=Xr(Zp),i=Ae(()=>t.route||r.value),o=Xr(M0,0),s=Ae(()=>{let c=pe(o);const{matched:h}=i.value;let l;for(;(l=h[c])&&!l.components;)c++;return c}),a=Ae(()=>i.value.matched[s.value]);Nf(M0,Ae(()=>s.value+1)),Nf(fP,a),Nf(Zp,i);const u=j();return Fe(()=>[u.value,a.value,t.name],([c,h,l],[d,f,_])=>{h&&(h.instances[l]=c,f&&f!==h&&c&&c===d&&(h.leaveGuards.size||(h.leaveGuards=f.leaveGuards),h.updateGuards.size||(h.updateGuards=f.updateGuards))),c&&h&&(!f||!Sl(h,f)||!d)&&(h.enterCallbacks[l]||[]).forEach(p=>p(c))},{flush:"post"}),()=>{const c=i.value,h=t.name,l=a.value,d=l&&l.components[h];if(!d)return N0(n.default,{Component:d,route:c});const f=l.props[h],_=f?f===!0?c.params:typeof f=="function"?f(c):f:null,b=xc(d,Zt({},_,e,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(l.instances[h]=null)},ref:u}));return N0(n.default,{Component:b,route:c})||b}}});function N0(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const vP=_P;function yP(t){const e=iP(t.routes,t),n=t.parseQuery||uP,r=t.stringifyQuery||O0,i=t.history,o=ou(),s=ou(),a=ou(),u=ba(as);let c=as;Qa&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=Jh.bind(null,te=>""+te),l=Jh.bind(null,I2),d=Jh.bind(null,oc);function f(te,ue){let ge,we;return Vw(te)?(ge=e.getRecordMatcher(te),we=ue):we=te,e.addRoute(we,ge)}function _(te){const ue=e.getRecordMatcher(te);ue&&e.removeRoute(ue)}function p(){return e.getRoutes().map(te=>te.record)}function b(te){return!!e.getRecordMatcher(te)}function y(te,ue){if(ue=Zt({},ue||u.value),typeof te=="string"){const K=Zh(n,te,ue.path),ee=e.resolve({path:K.path},ue),X=i.createHref(K.fullPath);return Zt(K,ee,{params:d(ee.params),hash:oc(K.hash),redirectedFrom:void 0,href:X})}let ge;if(te.path!=null)ge=Zt({},te,{path:Zh(n,te.path,ue.path).path});else{const K=Zt({},te.params);for(const ee in K)K[ee]==null&&delete K[ee];ge=Zt({},te,{params:l(K)}),ue.params=l(ue.params)}const we=e.resolve(ge,ue),Ie=te.hash||"";we.params=h(d(we.params));const z=M2(r,Zt({},te,{hash:C2(Ie),path:we.path})),P=i.createHref(z);return Zt({fullPath:z,hash:Ie,query:r===O0?cP(te.query):te.query||{}},we,{redirectedFrom:void 0,href:P})}function w(te){return typeof te=="string"?Zh(n,te,u.value.path):Zt({},te)}function R(te,ue){if(c!==te)return Tl(8,{from:ue,to:te})}function E(te){return I(te)}function A(te){return E(Zt(w(te),{replace:!0}))}function C(te){const ue=te.matched[te.matched.length-1];if(ue&&ue.redirect){const{redirect:ge}=ue;let we=typeof ge=="function"?ge(te):ge;return typeof we=="string"&&(we=we.includes("?")||we.includes("#")?we=w(we):{path:we},we.params={}),Zt({query:te.query,hash:te.hash,params:we.path!=null?{}:te.params},we)}}function I(te,ue){const ge=c=y(te),we=u.value,Ie=te.state,z=te.force,P=te.replace===!0,K=C(ge);if(K)return I(Zt(w(K),{state:typeof K=="object"?Zt({},Ie,K.state):Ie,force:z,replace:P}),ue||ge);const ee=ge;ee.redirectedFrom=ue;let X;return!z&&$2(r,we,ge)&&(X=Tl(16,{to:ee,from:we}),be(we,we,!0,!1)),(X?Promise.resolve(X):W(ee,we)).catch(x=>Io(x)?Io(x,2)?x:q(x):oe(x,ee,we)).then(x=>{if(x){if(Io(x,2))return I(Zt({replace:P},w(x.to),{state:typeof x.to=="object"?Zt({},Ie,x.to.state):Ie,force:z}),ue||ee)}else x=F(ee,we,!0,P,Ie);return ne(ee,we,x),x})}function $(te,ue){const ge=R(te,ue);return ge?Promise.reject(ge):Promise.resolve()}function N(te){const ue=ae.values().next().value;return ue&&typeof ue.runWithContext=="function"?ue.runWithContext(te):te()}function W(te,ue){let ge;const[we,Ie,z]=bP(te,ue);ge=ep(we.reverse(),"beforeRouteLeave",te,ue);for(const K of we)K.leaveGuards.forEach(ee=>{ge.push(gs(ee,te,ue))});const P=$.bind(null,te,ue);return ge.push(P),_e(ge).then(()=>{ge=[];for(const K of o.list())ge.push(gs(K,te,ue));return ge.push(P),_e(ge)}).then(()=>{ge=ep(Ie,"beforeRouteUpdate",te,ue);for(const K of Ie)K.updateGuards.forEach(ee=>{ge.push(gs(ee,te,ue))});return ge.push(P),_e(ge)}).then(()=>{ge=[];for(const K of z)if(K.beforeEnter)if(Xi(K.beforeEnter))for(const ee of K.beforeEnter)ge.push(gs(ee,te,ue));else ge.push(gs(K.beforeEnter,te,ue));return ge.push(P),_e(ge)}).then(()=>(te.matched.forEach(K=>K.enterCallbacks={}),ge=ep(z,"beforeRouteEnter",te,ue,N),ge.push(P),_e(ge))).then(()=>{ge=[];for(const K of s.list())ge.push(gs(K,te,ue));return ge.push(P),_e(ge)}).catch(K=>Io(K,8)?K:Promise.reject(K))}function ne(te,ue,ge){a.list().forEach(we=>N(()=>we(te,ue,ge)))}function F(te,ue,ge,we,Ie){const z=R(te,ue);if(z)return z;const P=ue===as,K=Qa?history.state:{};ge&&(we||P?i.replace(te.fullPath,Zt({scroll:P&&K&&K.scroll},Ie)):i.push(te.fullPath,Ie)),u.value=te,be(te,ue,ge,P),q()}let Q;function M(){Q||(Q=i.listen((te,ue,ge)=>{if(!fe.listening)return;const we=y(te),Ie=C(we);if(Ie){I(Zt(Ie,{replace:!0,force:!0}),we).catch(Ou);return}c=we;const z=u.value;Qa&&j2(k0(z.fullPath,ge.delta),nh()),W(we,z).catch(P=>Io(P,12)?P:Io(P,2)?(I(Zt(w(P.to),{force:!0}),we).then(K=>{Io(K,20)&&!ge.delta&&ge.type===sc.pop&&i.go(-1,!1)}).catch(Ou),Promise.reject()):(ge.delta&&i.go(-ge.delta,!1),oe(P,we,z))).then(P=>{P=P||F(we,z,!1),P&&(ge.delta&&!Io(P,8)?i.go(-ge.delta,!1):ge.type===sc.pop&&Io(P,20)&&i.go(-1,!1)),ne(we,z,P)}).catch(Ou)}))}let H=ou(),B=ou(),U;function oe(te,ue,ge){q(te);const we=B.list();return we.length?we.forEach(Ie=>Ie(te,ue,ge)):console.error(te),Promise.reject(te)}function le(){return U&&u.value!==as?Promise.resolve():new Promise((te,ue)=>{H.add([te,ue])})}function q(te){return U||(U=!te,M(),H.list().forEach(([ue,ge])=>te?ge(te):ue()),H.reset()),te}function be(te,ue,ge,we){const{scrollBehavior:Ie}=t;if(!Qa||!Ie)return Promise.resolve();const z=!ge&&W2(k0(te.fullPath,0))||(we||!ge)&&history.state&&history.state.scroll||null;return Ot().then(()=>Ie(te,ue,z)).then(P=>P&&U2(P)).catch(P=>oe(P,te,ue))}const ke=te=>i.go(te);let Se;const ae=new Set,fe={currentRoute:u,listening:!0,addRoute:f,removeRoute:_,clearRoutes:e.clearRoutes,hasRoute:b,getRoutes:p,resolve:y,options:t,push:E,replace:A,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:o.add,beforeResolve:s.add,afterEach:a.add,onError:B.add,isReady:le,install(te){const ue=this;te.component("RouterLink",pP),te.component("RouterView",vP),te.config.globalProperties.$router=ue,Object.defineProperty(te.config.globalProperties,"$route",{enumerable:!0,get:()=>pe(u)}),Qa&&!Se&&u.value===as&&(Se=!0,E(i.location).catch(Ie=>{}));const ge={};for(const Ie in as)Object.defineProperty(ge,Ie,{get:()=>u.value[Ie],enumerable:!0});te.provide(rh,ue),te.provide(Rg,Eb(ge)),te.provide(Zp,u);const we=te.unmount;ae.add(te),te.unmount=function(){ae.delete(te),ae.size<1&&(c=as,Q&&Q(),Q=null,u.value=as,Se=!1,U=!1),we()}}};function _e(te){return te.reduce((ue,ge)=>ue.then(()=>N(ge)),Promise.resolve())}return fe}function bP(t,e){const n=[],r=[],i=[],o=Math.max(e.matched.length,t.matched.length);for(let s=0;s<o;s++){const a=e.matched[s];a&&(t.matched.find(c=>Sl(c,a))?r.push(a):n.push(a));const u=t.matched[s];u&&(e.matched.find(c=>Sl(c,u))||i.push(u))}return[n,r,i]}function Hs(){return Xr(rh)}function Bs(t){return Xr(Rg)}const wP=["href","rel","target"],qw={__name:"AppLink",props:{to:{type:String,required:!0},rel:{type:String,default:null},target:{type:String,default:null},params:{type:String,default:null}},setup(t){const e=Bs(),n=t,r=u=>typeof u=="string"&&(u.startsWith("http")||u.startsWith("mailto:")||u.startsWith("tel:")),i=Ae(()=>r(n.to)||n.target==="_blank"||n.to.includes("tel:")||n.to.includes("mailto:")),o=Ae(()=>typeof n.target=="string"?n.target:i.value?"_blank":"_self"),s=()=>{typeof window<"u"&&e.fullPath===n.to&&window.location.reload()},a=Ae(()=>n.params?n.to+n.params:n.to);return(u,c)=>{const h=_g("router-link");return pe(i)?(se(),ce("a",{key:0,href:pe(a),rel:t.rel,target:pe(o),"c-cursor":"no-custom",class:"link"},[Fo(u.$slots,"default")],8,wP)):(se(),At(h,{key:1,to:pe(a),"c-cursor":"no-custom",class:"link",onClick:s},{default:ri(()=>[Fo(u.$slots,"default")]),_:3},8,["to"]))}}},SP=!0,gi=()=>typeof window<"u",TP=()=>typeof document<"u"&&!!document.body,zw=!gi(),kP=()=>gi(),Ta=gi()?window.navigator.userAgent:"",EP=gi()?window.location.href:"",Gw=gi()?window.location.search:"",RP=gi()?window.safari:!1,Ag=gi()?navigator.vendor:"",H0=gi()?navigator.platform:"",Cg=gi()?navigator.maxTouchPoints:0,AP=Cg>1,Gn=Ta.toLowerCase(),CP=new URLSearchParams(Gw),xP=Gn.includes("mac"),PP=Gn.includes("windows"),Yw=/apple/i.test(Ag)||RP,IP=/firefox/.test(Gn),LP=/edge\/\d+/.test(Ta),OP=Gn.includes("trident")&&Ta.includes("rv:11"),xg=/(iphone|ipod)/.test(Gn),Pg=/(ipad)/.test(Gn)||H0==="iPad"||!xg&&/MacIntel/.test(H0)&&Cg>0,Ic=xg||Pg,Ig=/(android)/.test(Gn),ih=Pg||/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(Gn),oh=Ic||ih||Ig,sh=!oh,MP=oh&&!ih,$P=oh&&!ih,FP=!Ic&&Yw&&!Cg,Lg=/fban\/messengerforios/.test(Gn)||/fb_iab\/messenger/.test(Gn),Kw=!1,DP=/(fban|fbav)/.test(Gn)&&!Lg&&!Kw,NP=/instagram/.test(Gn),HP=/micromessenger/.test(Gn),BP=/weibo/.test(Gn),VP=/ucbrowser/.test(Gn),UP=/samsung/.test(Gn),jP=/(crios|fxios|opios|mercury|ucbrowser|fbav|fban|instagram)/.test(Gn),WP=/(opera|ucbrowser|samsung|fbav|fban|instagram)/.test(Gn),qP=Ic&&!jP,zP=Ic&&/crios/.test(Gn),GP=Ig&&!WP&&/chrome/.test(Gn)&&!Lg,YP=sh&&/Chrome/.test(Ta)&&/Google Inc/.test(Ag)&&!/Edg/.test(Ta),KP=sh&&/Chrome/.test(Ta)&&/Google Inc/.test(Ag)&&/Edg/.test(Ta),XP=!1,QP="https://graphql.kontent.ai/",JP="null",Xw="4bb91847-d552-009a-ce6f-52272156c6c2",ZP=!1,eI=QP+Xw,tI="https://videos.breakthroughenergy.org/bevideos/video/fetch/w_1308/q_auto/ar_16:9/",nI="",rI="https://videos.breakthroughenergy.org/bevideos/",iI=2,oI=gi()?Math.min(window.devicePixelRatio||1,iI):1,sI=async function(){},ct={get hasDocument(){return TP()},get hasWindow(){return gi()},get isClient(){return kP()},window:gi()?window:{},isSSR:zw,touchScreen:AP,mobile:oh,tablet:ih,desktop:sh,phone:MP,mac:xP,windows:PP,href:EP,queryString:Gw,urlParams:CP,pixelRatio:oI,ios:Ic,iphone:xg,ipad:Pg,android:Ig,learnMobile:$P,facebook_video_ad:Kw,facebook:DP,messenger:Lg,instagram:NP,wechat:HP,weibo:BP,ucbrowser:VP,samsung:UP,edge:LP,ie11:OP,safari:Yw,ios_safari:qP,ios_chrome:zP,desktop_safari:FP,desktop_chrome:YP,desktop_edge:KP,webp:()=>SP,android_chrome:GP,firefox:IP,init:sI,localhost:XP,graphQLURL:eI,kontentAPIKey:JP,kontentEnvID:Xw,usePreview:ZP,cloudinaryVideoURL:tI,cloudinaryAssetURL:nI,videoPrefix:rI};function aI(){if(!gi)return;const t=zw?null:document.querySelector("html"),e={};for(const n in ct)t&&ct[n]===!0&&t.classList.add(e[n]||n)}aI();function Mo(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Qw(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}/*!
 * GSAP 3.13.0
 * https://gsap.com
 *
 * @license Copyright 2008-2025, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license
 * @author: Jack Doyle, jack@greensock.com
*/var mi={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},kl={duration:.5,overwrite:!1,delay:0},Og,pr,wn,xi=1e8,fn=1/xi,em=Math.PI*2,lI=em/4,uI=0,Jw=Math.sqrt,cI=Math.cos,fI=Math.sin,ur=function(e){return typeof e=="string"},Mn=function(e){return typeof e=="function"},Jo=function(e){return typeof e=="number"},Mg=function(e){return typeof e>"u"},wo=function(e){return typeof e=="object"},Qr=function(e){return e!==!1},$g=function(){return typeof window<"u"},ff=function(e){return Mn(e)||ur(e)},Zw=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Pr=Array.isArray,tm=/(?:-?\.?\d|\.)+/gi,eS=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,rl=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,tp=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,tS=/[+-]=-?[.\d]+/,nS=/[^,'"\[\]\s]+/gi,dI=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,kn,lo,nm,Fg,_i={},yd={},rS,iS=function(e){return(yd=El(e,_i))&&ii},Dg=function(e,n){return console.warn("Invalid property",e,"set to",n,"Missing plugin? gsap.registerPlugin()")},ac=function(e,n){return!n&&console.warn(e)},oS=function(e,n){return e&&(_i[e]=n)&&yd&&(yd[e]=n)||_i},lc=function(){return 0},hI={suppressEvents:!0,isStart:!0,kill:!1},Uf={suppressEvents:!0,kill:!1},pI={suppressEvents:!0},Ng={},Rs=[],rm={},sS,ui={},np={},B0=30,jf=[],Hg="",Bg=function(e){var n=e[0],r,i;if(wo(n)||Mn(n)||(e=[e]),!(r=(n._gsap||{}).harness)){for(i=jf.length;i--&&!jf[i].targetTest(n););r=jf[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new PS(e[i],r)))||e.splice(i,1);return e},fa=function(e){return e._gsap||Bg(Pi(e))[0]._gsap},aS=function(e,n,r){return(r=e[n])&&Mn(r)?e[n]():Mg(r)&&e.getAttribute&&e.getAttribute(n)||r},Jr=function(e,n){return(e=e.split(",")).forEach(n)||e},Dn=function(e){return Math.round(e*1e5)/1e5||0},Wn=function(e){return Math.round(e*1e7)/1e7||0},fl=function(e,n){var r=n.charAt(0),i=parseFloat(n.substr(2));return e=parseFloat(e),r==="+"?e+i:r==="-"?e-i:r==="*"?e*i:e/i},mI=function(e,n){for(var r=n.length,i=0;e.indexOf(n[i])<0&&++i<r;);return i<r},bd=function(){var e=Rs.length,n=Rs.slice(0),r,i;for(rm={},Rs.length=0,r=0;r<e;r++)i=n[r],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},Vg=function(e){return!!(e._initted||e._startAt||e.add)},lS=function(e,n,r,i){Rs.length&&!pr&&bd(),e.render(n,r,!!(pr&&n<0&&Vg(e))),Rs.length&&!pr&&bd()},uS=function(e){var n=parseFloat(e);return(n||n===0)&&(e+"").match(nS).length<2?n:ur(e)?e.trim():e},cS=function(e){return e},vi=function(e,n){for(var r in n)r in e||(e[r]=n[r]);return e},gI=function(e){return function(n,r){for(var i in r)i in n||i==="duration"&&e||i==="ease"||(n[i]=r[i])}},El=function(e,n){for(var r in n)e[r]=n[r];return e},V0=function t(e,n){for(var r in n)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(e[r]=wo(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},wd=function(e,n){var r={},i;for(i in e)i in n||(r[i]=e[i]);return r},$u=function(e){var n=e.parent||kn,r=e.keyframes?gI(Pr(e.keyframes)):vi;if(Qr(e.inherit))for(;n;)r(e,n.vars.defaults),n=n.parent||n._dp;return e},_I=function(e,n){for(var r=e.length,i=r===n.length;i&&r--&&e[r]===n[r];);return r<0},fS=function(e,n,r,i,o){var s=e[i],a;if(o)for(a=n[o];s&&s[o]>a;)s=s._prev;return s?(n._next=s._next,s._next=n):(n._next=e[r],e[r]=n),n._next?n._next._prev=n:e[i]=n,n._prev=s,n.parent=n._dp=e,n},ah=function(e,n,r,i){r===void 0&&(r="_first"),i===void 0&&(i="_last");var o=n._prev,s=n._next;o?o._next=s:e[r]===n&&(e[r]=s),s?s._prev=o:e[i]===n&&(e[i]=o),n._next=n._prev=n.parent=null},Ls=function(e,n){e.parent&&(!n||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},da=function(e,n){if(e&&(!n||n._end>e._dur||n._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},vI=function(e){for(var n=e.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return e},im=function(e,n,r,i){return e._startAt&&(pr?e._startAt.revert(Uf):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(n,!0,i))},yI=function t(e){return!e||e._ts&&t(e.parent)},U0=function(e){return e._repeat?Rl(e._tTime,e=e.duration()+e._rDelay)*e:0},Rl=function(e,n){var r=Math.floor(e=Wn(e/n));return e&&r===e?r-1:r},Sd=function(e,n){return(e-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},lh=function(e){return e._end=Wn(e._start+(e._tDur/Math.abs(e._ts||e._rts||fn)||0))},uh=function(e,n){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=Wn(r._time-(e._ts>0?n/e._ts:((e._dirty?e.totalDuration():e._tDur)-n)/-e._ts)),lh(e),r._dirty||da(r,e)),e},dS=function(e,n){var r;if((n._time||!n._dur&&n._initted||n._start<e._time&&(n._dur||!n.add))&&(r=Sd(e.rawTime(),n),(!n._dur||Lc(0,n.totalDuration(),r)-n._tTime>fn)&&n.render(r,!0)),da(e,n)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-fn}},ho=function(e,n,r,i){return n.parent&&Ls(n),n._start=Wn((Jo(r)?r:r||e!==kn?Ei(e,r,n):e._time)+n._delay),n._end=Wn(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),fS(e,n,"_first","_last",e._sort?"_start":0),om(n)||(e._recent=n),i||dS(e,n),e._ts<0&&uh(e,e._tTime),e},hS=function(e,n){return(_i.ScrollTrigger||Dg("scrollTrigger",n))&&_i.ScrollTrigger.create(n,e)},pS=function(e,n,r,i,o){if(jg(e,n,o),!e._initted)return 1;if(!r&&e._pt&&!pr&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&sS!==fi.frame)return Rs.push(e),e._lazy=[o,i],1},bI=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},om=function(e){var n=e.data;return n==="isFromStart"||n==="isStart"},wI=function(e,n,r,i){var o=e.ratio,s=n<0||!n&&(!e._start&&bI(e)&&!(!e._initted&&om(e))||(e._ts<0||e._dp._ts<0)&&!om(e))?0:1,a=e._rDelay,u=0,c,h,l;if(a&&e._repeat&&(u=Lc(0,e._tDur,n),h=Rl(u,a),e._yoyo&&h&1&&(s=1-s),h!==Rl(e._tTime,a)&&(o=1-s,e.vars.repeatRefresh&&e._initted&&e.invalidate())),s!==o||pr||i||e._zTime===fn||!n&&e._zTime){if(!e._initted&&pS(e,n,i,r,u))return;for(l=e._zTime,e._zTime=n||(r?fn:0),r||(r=n&&!l),e.ratio=s,e._from&&(s=1-s),e._time=0,e._tTime=u,c=e._pt;c;)c.r(s,c.d),c=c._next;n<0&&im(e,n,r,!0),e._onUpdate&&!r&&pi(e,"onUpdate"),u&&e._repeat&&!r&&e.parent&&pi(e,"onRepeat"),(n>=e._tDur||n<0)&&e.ratio===s&&(s&&Ls(e,1),!r&&!pr&&(pi(e,s?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=n)},SI=function(e,n,r){var i;if(r>n)for(i=e._first;i&&i._start<=r;){if(i.data==="isPause"&&i._start>n)return i;i=i._next}else for(i=e._last;i&&i._start>=r;){if(i.data==="isPause"&&i._start<n)return i;i=i._prev}},Al=function(e,n,r,i){var o=e._repeat,s=Wn(n)||0,a=e._tTime/e._tDur;return a&&!i&&(e._time*=s/e._dur),e._dur=s,e._tDur=o?o<0?1e10:Wn(s*(o+1)+e._rDelay*o):s,a>0&&!i&&uh(e,e._tTime=e._tDur*a),e.parent&&lh(e),r||da(e.parent,e),e},j0=function(e){return e instanceof Ur?da(e):Al(e,e._dur)},TI={_start:0,endTime:lc,totalDuration:lc},Ei=function t(e,n,r){var i=e.labels,o=e._recent||TI,s=e.duration()>=xi?o.endTime(!1):e._dur,a,u,c;return ur(n)&&(isNaN(n)||n in i)?(u=n.charAt(0),c=n.substr(-1)==="%",a=n.indexOf("="),u==="<"||u===">"?(a>=0&&(n=n.replace(/=/,"")),(u==="<"?o._start:o.endTime(o._repeat>=0))+(parseFloat(n.substr(1))||0)*(c?(a<0?o:r).totalDuration()/100:1)):a<0?(n in i||(i[n]=s),i[n]):(u=parseFloat(n.charAt(a-1)+n.substr(a+1)),c&&r&&(u=u/100*(Pr(r)?r[0]:r).totalDuration()),a>1?t(e,n.substr(0,a-1),r)+u:s+u)):n==null?s:+n},Fu=function(e,n,r){var i=Jo(n[1]),o=(i?2:1)+(e<2?0:1),s=n[o],a,u;if(i&&(s.duration=n[1]),s.parent=r,e){for(a=s,u=r;u&&!("immediateRender"in a);)a=u.vars.defaults||{},u=Qr(u.vars.inherit)&&u.parent;s.immediateRender=Qr(a.immediateRender),e<2?s.runBackwards=1:s.startAt=n[o-1]}return new jn(n[0],s,n[o+1])},Vs=function(e,n){return e||e===0?n(e):n},Lc=function(e,n,r){return r<e?e:r>n?n:r},Er=function(e,n){return!ur(e)||!(n=dI.exec(e))?"":n[1]},kI=function(e,n,r){return Vs(r,function(i){return Lc(e,n,i)})},sm=[].slice,mS=function(e,n){return e&&wo(e)&&"length"in e&&(!n&&!e.length||e.length-1 in e&&wo(e[0]))&&!e.nodeType&&e!==lo},EI=function(e,n,r){return r===void 0&&(r=[]),e.forEach(function(i){var o;return ur(i)&&!n||mS(i,1)?(o=r).push.apply(o,Pi(i)):r.push(i)})||r},Pi=function(e,n,r){return wn&&!n&&wn.selector?wn.selector(e):ur(e)&&!r&&(nm||!Cl())?sm.call((n||Fg).querySelectorAll(e),0):Pr(e)?EI(e,r):mS(e)?sm.call(e,0):e?[e]:[]},am=function(e){return e=Pi(e)[0]||ac("Invalid scope")||{},function(n){var r=e.current||e.nativeElement||e;return Pi(n,r.querySelectorAll?r:r===e?ac("Invalid scope")||Fg.createElement("div"):e)}},gS=function(e){return e.sort(function(){return .5-Math.random()})},_S=function(e){if(Mn(e))return e;var n=wo(e)?e:{each:e},r=ha(n.ease),i=n.from||0,o=parseFloat(n.base)||0,s={},a=i>0&&i<1,u=isNaN(i)||a,c=n.axis,h=i,l=i;return ur(i)?h=l={center:.5,edges:.5,end:1}[i]||0:!a&&u&&(h=i[0],l=i[1]),function(d,f,_){var p=(_||n).length,b=s[p],y,w,R,E,A,C,I,$,N;if(!b){if(N=n.grid==="auto"?0:(n.grid||[1,xi])[1],!N){for(I=-xi;I<(I=_[N++].getBoundingClientRect().left)&&N<p;);N<p&&N--}for(b=s[p]=[],y=u?Math.min(N,p)*h-.5:i%N,w=N===xi?0:u?p*l/N-.5:i/N|0,I=0,$=xi,C=0;C<p;C++)R=C%N-y,E=w-(C/N|0),b[C]=A=c?Math.abs(c==="y"?E:R):Jw(R*R+E*E),A>I&&(I=A),A<$&&($=A);i==="random"&&gS(b),b.max=I-$,b.min=$,b.v=p=(parseFloat(n.amount)||parseFloat(n.each)*(N>p?p-1:c?c==="y"?p/N:N:Math.max(N,p/N))||0)*(i==="edges"?-1:1),b.b=p<0?o-p:o,b.u=Er(n.amount||n.each)||0,r=r&&p<0?AS(r):r}return p=(b[d]-b.min)/b.max||0,Wn(b.b+(r?r(p):p)*b.v)+b.u}},lm=function(e){var n=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var i=Wn(Math.round(parseFloat(r)/e)*e*n);return(i-i%1)/n+(Jo(r)?0:Er(r))}},vS=function(e,n){var r=Pr(e),i,o;return!r&&wo(e)&&(i=r=e.radius||xi,e.values?(e=Pi(e.values),(o=!Jo(e[0]))&&(i*=i)):e=lm(e.increment)),Vs(n,r?Mn(e)?function(s){return o=e(s),Math.abs(o-s)<=i?o:s}:function(s){for(var a=parseFloat(o?s.x:s),u=parseFloat(o?s.y:0),c=xi,h=0,l=e.length,d,f;l--;)o?(d=e[l].x-a,f=e[l].y-u,d=d*d+f*f):d=Math.abs(e[l]-a),d<c&&(c=d,h=l);return h=!i||c<=i?e[h]:s,o||h===s||Jo(s)?h:h+Er(s)}:lm(e))},yS=function(e,n,r,i){return Vs(Pr(e)?!n:r===!0?!!(r=0):!i,function(){return Pr(e)?e[~~(Math.random()*e.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(n-e+r*.99))/r)*r*i)/i})},RI=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(i){return n.reduce(function(o,s){return s(o)},i)}},AI=function(e,n){return function(r){return e(parseFloat(r))+(n||Er(r))}},CI=function(e,n,r){return wS(e,n,0,1,r)},bS=function(e,n,r){return Vs(r,function(i){return e[~~n(i)]})},xI=function t(e,n,r){var i=n-e;return Pr(e)?bS(e,t(0,e.length),n):Vs(r,function(o){return(i+(o-e)%i)%i+e})},PI=function t(e,n,r){var i=n-e,o=i*2;return Pr(e)?bS(e,t(0,e.length-1),n):Vs(r,function(s){return s=(o+(s-e)%o)%o||0,e+(s>i?o-s:s)})},uc=function(e){for(var n=0,r="",i,o,s,a;~(i=e.indexOf("random(",n));)s=e.indexOf(")",i),a=e.charAt(i+7)==="[",o=e.substr(i+7,s-i-7).match(a?nS:tm),r+=e.substr(n,i-n)+yS(a?o:+o[0],a?0:+o[1],+o[2]||1e-5),n=s+1;return r+e.substr(n,e.length-n)},wS=function(e,n,r,i,o){var s=n-e,a=i-r;return Vs(o,function(u){return r+((u-e)/s*a||0)})},II=function t(e,n,r,i){var o=isNaN(e+n)?0:function(f){return(1-f)*e+f*n};if(!o){var s=ur(e),a={},u,c,h,l,d;if(r===!0&&(i=1)&&(r=null),s)e={p:e},n={p:n};else if(Pr(e)&&!Pr(n)){for(h=[],l=e.length,d=l-2,c=1;c<l;c++)h.push(t(e[c-1],e[c]));l--,o=function(_){_*=l;var p=Math.min(d,~~_);return h[p](_-p)},r=n}else i||(e=El(Pr(e)?[]:{},e));if(!h){for(u in n)Ug.call(a,e,u,"get",n[u]);o=function(_){return zg(_,a)||(s?e.p:e)}}}return Vs(r,o)},W0=function(e,n,r){var i=e.labels,o=xi,s,a,u;for(s in i)a=i[s]-n,a<0==!!r&&a&&o>(a=Math.abs(a))&&(u=s,o=a);return u},pi=function(e,n,r){var i=e.vars,o=i[n],s=wn,a=e._ctx,u,c,h;if(o)return u=i[n+"Params"],c=i.callbackScope||e,r&&Rs.length&&bd(),a&&(wn=a),h=u?o.apply(c,u):o.call(c),wn=s,h},_u=function(e){return Ls(e),e.scrollTrigger&&e.scrollTrigger.kill(!!pr),e.progress()<1&&pi(e,"onInterrupt"),e},il,SS=[],TS=function(e){if(e)if(e=!e.name&&e.default||e,$g()||e.headless){var n=e.name,r=Mn(e),i=n&&!r&&e.init?function(){this._props=[]}:e,o={init:lc,render:zg,add:Ug,kill:GI,modifier:zI,rawVars:0},s={targetTest:0,get:0,getSetter:qg,aliases:{},register:0};if(Cl(),e!==i){if(ui[n])return;vi(i,vi(wd(e,o),s)),El(i.prototype,El(o,wd(e,s))),ui[i.prop=n]=i,e.targetTest&&(jf.push(i),Ng[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}oS(n,i),e.register&&e.register(ii,i,Zr)}else SS.push(e)},cn=255,vu={aqua:[0,cn,cn],lime:[0,cn,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,cn],navy:[0,0,128],white:[cn,cn,cn],olive:[128,128,0],yellow:[cn,cn,0],orange:[cn,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[cn,0,0],pink:[cn,192,203],cyan:[0,cn,cn],transparent:[cn,cn,cn,0]},rp=function(e,n,r){return e+=e<0?1:e>1?-1:0,(e*6<1?n+(r-n)*e*6:e<.5?r:e*3<2?n+(r-n)*(2/3-e)*6:n)*cn+.5|0},kS=function(e,n,r){var i=e?Jo(e)?[e>>16,e>>8&cn,e&cn]:0:vu.black,o,s,a,u,c,h,l,d,f,_;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),vu[e])i=vu[e];else if(e.charAt(0)==="#"){if(e.length<6&&(o=e.charAt(1),s=e.charAt(2),a=e.charAt(3),e="#"+o+o+s+s+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8&cn,i&cn,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&cn,e&cn]}else if(e.substr(0,3)==="hsl"){if(i=_=e.match(tm),!n)u=+i[0]%360/360,c=+i[1]/100,h=+i[2]/100,s=h<=.5?h*(c+1):h+c-h*c,o=h*2-s,i.length>3&&(i[3]*=1),i[0]=rp(u+1/3,o,s),i[1]=rp(u,o,s),i[2]=rp(u-1/3,o,s);else if(~e.indexOf("="))return i=e.match(eS),r&&i.length<4&&(i[3]=1),i}else i=e.match(tm)||vu.transparent;i=i.map(Number)}return n&&!_&&(o=i[0]/cn,s=i[1]/cn,a=i[2]/cn,l=Math.max(o,s,a),d=Math.min(o,s,a),h=(l+d)/2,l===d?u=c=0:(f=l-d,c=h>.5?f/(2-l-d):f/(l+d),u=l===o?(s-a)/f+(s<a?6:0):l===s?(a-o)/f+2:(o-s)/f+4,u*=60),i[0]=~~(u+.5),i[1]=~~(c*100+.5),i[2]=~~(h*100+.5)),r&&i.length<4&&(i[3]=1),i},ES=function(e){var n=[],r=[],i=-1;return e.split(As).forEach(function(o){var s=o.match(rl)||[];n.push.apply(n,s),r.push(i+=s.length+1)}),n.c=r,n},q0=function(e,n,r){var i="",o=(e+i).match(As),s=n?"hsla(":"rgba(",a=0,u,c,h,l;if(!o)return e;if(o=o.map(function(d){return(d=kS(d,n,1))&&s+(n?d[0]+","+d[1]+"%,"+d[2]+"%,"+d[3]:d.join(","))+")"}),r&&(h=ES(e),u=r.c,u.join(i)!==h.c.join(i)))for(c=e.replace(As,"1").split(rl),l=c.length-1;a<l;a++)i+=c[a]+(~u.indexOf(a)?o.shift()||s+"0,0,0,0)":(h.length?h:o.length?o:r).shift());if(!c)for(c=e.split(As),l=c.length-1;a<l;a++)i+=c[a]+o[a];return i+c[l]},As=function(){var t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in vu)t+="|"+e+"\\b";return new RegExp(t+")","gi")}(),LI=/hsl[a]?\(/,RS=function(e){var n=e.join(" "),r;if(As.lastIndex=0,As.test(n))return r=LI.test(n),e[1]=q0(e[1],r),e[0]=q0(e[0],r,ES(e[1])),!0},cc,fi=function(){var t=Date.now,e=500,n=33,r=t(),i=r,o=1e3/240,s=o,a=[],u,c,h,l,d,f,_=function p(b){var y=t()-i,w=b===!0,R,E,A,C;if((y>e||y<0)&&(r+=y-n),i+=y,A=i-r,R=A-s,(R>0||w)&&(C=++l.frame,d=A-l.time*1e3,l.time=A=A/1e3,s+=R+(R>=o?4:o-R),E=1),w||(u=c(p)),E)for(f=0;f<a.length;f++)a[f](A,d,C,b)};return l={time:0,frame:0,tick:function(){_(!0)},deltaRatio:function(b){return d/(1e3/(b||60))},wake:function(){rS&&(!nm&&$g()&&(lo=nm=window,Fg=lo.document||{},_i.gsap=ii,(lo.gsapVersions||(lo.gsapVersions=[])).push(ii.version),iS(yd||lo.GreenSockGlobals||!lo.gsap&&lo||{}),SS.forEach(TS)),h=typeof requestAnimationFrame<"u"&&requestAnimationFrame,u&&l.sleep(),c=h||function(b){return setTimeout(b,s-l.time*1e3+1|0)},cc=1,_(2))},sleep:function(){(h?cancelAnimationFrame:clearTimeout)(u),cc=0,c=lc},lagSmoothing:function(b,y){e=b||1/0,n=Math.min(y||33,e)},fps:function(b){o=1e3/(b||240),s=l.time*1e3+o},add:function(b,y,w){var R=y?function(E,A,C,I){b(E,A,C,I),l.remove(R)}:b;return l.remove(b),a[w?"unshift":"push"](R),Cl(),R},remove:function(b,y){~(y=a.indexOf(b))&&a.splice(y,1)&&f>=y&&f--},_listeners:a},l}(),Cl=function(){return!cc&&fi.wake()},Nt={},OI=/^[\d.\-M][\d.\-,\s]/,MI=/["']/g,$I=function(e){for(var n={},r=e.substr(1,e.length-3).split(":"),i=r[0],o=1,s=r.length,a,u,c;o<s;o++)u=r[o],a=o!==s-1?u.lastIndexOf(","):u.length,c=u.substr(0,a),n[i]=isNaN(c)?c.replace(MI,"").trim():+c,i=u.substr(a+1).trim();return n},FI=function(e){var n=e.indexOf("(")+1,r=e.indexOf(")"),i=e.indexOf("(",n);return e.substring(n,~i&&i<r?e.indexOf(")",r+1):r)},DI=function(e){var n=(e+"").split("("),r=Nt[n[0]];return r&&n.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[$I(n[1])]:FI(e).split(",").map(uS)):Nt._CE&&OI.test(e)?Nt._CE("",e):r},AS=function(e){return function(n){return 1-e(1-n)}},CS=function t(e,n){for(var r=e._first,i;r;)r instanceof Ur?t(r,n):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==n&&(r.timeline?t(r.timeline,n):(i=r._ease,r._ease=r._yEase,r._yEase=i,r._yoyo=n)),r=r._next},ha=function(e,n){return e&&(Mn(e)?e:Nt[e]||DI(e))||n},Ma=function(e,n,r,i){r===void 0&&(r=function(u){return 1-n(1-u)}),i===void 0&&(i=function(u){return u<.5?n(u*2)/2:1-n((1-u)*2)/2});var o={easeIn:n,easeOut:r,easeInOut:i},s;return Jr(e,function(a){Nt[a]=_i[a]=o,Nt[s=a.toLowerCase()]=r;for(var u in o)Nt[s+(u==="easeIn"?".in":u==="easeOut"?".out":".inOut")]=Nt[a+"."+u]=o[u]}),o},xS=function(e){return function(n){return n<.5?(1-e(1-n*2))/2:.5+e((n-.5)*2)/2}},ip=function t(e,n,r){var i=n>=1?n:1,o=(r||(e?.3:.45))/(n<1?n:1),s=o/em*(Math.asin(1/i)||0),a=function(h){return h===1?1:i*Math.pow(2,-10*h)*fI((h-s)*o)+1},u=e==="out"?a:e==="in"?function(c){return 1-a(1-c)}:xS(a);return o=em/o,u.config=function(c,h){return t(e,c,h)},u},op=function t(e,n){n===void 0&&(n=1.70158);var r=function(s){return s?--s*s*((n+1)*s+n)+1:0},i=e==="out"?r:e==="in"?function(o){return 1-r(1-o)}:xS(r);return i.config=function(o){return t(e,o)},i};Jr("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var n=e<5?e+1:e;Ma(t+",Power"+(n-1),e?function(r){return Math.pow(r,n)}:function(r){return r},function(r){return 1-Math.pow(1-r,n)},function(r){return r<.5?Math.pow(r*2,n)/2:1-Math.pow((1-r)*2,n)/2})});Nt.Linear.easeNone=Nt.none=Nt.Linear.easeIn;Ma("Elastic",ip("in"),ip("out"),ip());(function(t,e){var n=1/e,r=2*n,i=2.5*n,o=function(a){return a<n?t*a*a:a<r?t*Math.pow(a-1.5/e,2)+.75:a<i?t*(a-=2.25/e)*a+.9375:t*Math.pow(a-2.625/e,2)+.984375};Ma("Bounce",function(s){return 1-o(1-s)},o)})(7.5625,2.75);Ma("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)});Ma("Circ",function(t){return-(Jw(1-t*t)-1)});Ma("Sine",function(t){return t===1?1:-cI(t*lI)+1});Ma("Back",op("in"),op("out"),op());Nt.SteppedEase=Nt.steps=_i.SteppedEase={config:function(e,n){e===void 0&&(e=1);var r=1/e,i=e+(n?0:1),o=n?1:0,s=1-fn;return function(a){return((i*Lc(0,s,a)|0)+o)*r}}};kl.ease=Nt["quad.out"];Jr("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return Hg+=t+","+t+"Params,"});var PS=function(e,n){this.id=uI++,e._gsap=this,this.target=e,this.harness=n,this.get=n?n.get:aS,this.set=n?n.getSetter:qg},fc=function(){function t(n){this.vars=n,this._delay=+n.delay||0,(this._repeat=n.repeat===1/0?-2:n.repeat||0)&&(this._rDelay=n.repeatDelay||0,this._yoyo=!!n.yoyo||!!n.yoyoEase),this._ts=1,Al(this,+n.duration,1,1),this.data=n.data,wn&&(this._ctx=wn,wn.data.push(this)),cc||fi.wake()}var e=t.prototype;return e.delay=function(r){return r||r===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+r-this._delay),this._delay=r,this):this._delay},e.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,Al(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,i){if(Cl(),!arguments.length)return this._tTime;var o=this._dp;if(o&&o.smoothChildTiming&&this._ts){for(uh(this,r),!o._dp||o.parent||dS(o,this);o&&o.parent;)o.parent._time!==o._start+(o._ts>=0?o._tTime/o._ts:(o.totalDuration()-o._tTime)/-o._ts)&&o.totalTime(o._tTime,!0),o=o.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&ho(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===fn||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),lS(this,r,i)),this},e.time=function(r,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+U0(this))%(this._dur+this._rDelay)||(r?this._dur:0),i):this._time},e.totalProgress=function(r,i){return arguments.length?this.totalTime(this.totalDuration()*r,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(r,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+U0(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(r,i){var o=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*o,i):this._repeat?Rl(this._tTime,o)+1:1},e.timeScale=function(r,i){if(!arguments.length)return this._rts===-fn?0:this._rts;if(this._rts===r)return this;var o=this.parent&&this._ts?Sd(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-fn?0:this._rts,this.totalTime(Lc(-Math.abs(this._delay),this.totalDuration(),o),i!==!1),lh(this),vI(this)},e.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Cl(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==fn&&(this._tTime-=fn)))),this):this._ps},e.startTime=function(r){if(arguments.length){this._start=r;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&ho(i,this,r-this._delay),this}return this._start},e.endTime=function(r){return this._start+(Qr(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(r){var i=this.parent||this._dp;return i?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Sd(i.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=pI);var i=pr;return pr=r,Vg(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),pr=i,this},e.globalTime=function(r){for(var i=this,o=arguments.length?r:i.rawTime();i;)o=i._start+o/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(r):o},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,j0(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var i=this._time;return this._rDelay=r,j0(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},e.seek=function(r,i){return this.totalTime(Ei(this,r),Qr(i))},e.restart=function(r,i){return this.play().totalTime(r?-this._delay:0,Qr(i)),this._dur||(this._zTime=-fn),this},e.play=function(r,i){return r!=null&&this.seek(r,i),this.reversed(!1).paused(!1)},e.reverse=function(r,i){return r!=null&&this.seek(r||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(r,i){return r!=null&&this.seek(r,i),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-fn:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-fn,this},e.isActive=function(){var r=this.parent||this._dp,i=this._start,o;return!!(!r||this._ts&&this._initted&&r.isActive()&&(o=r.rawTime(!0))>=i&&o<this.endTime(!0)-fn)},e.eventCallback=function(r,i,o){var s=this.vars;return arguments.length>1?(i?(s[r]=i,o&&(s[r+"Params"]=o),r==="onUpdate"&&(this._onUpdate=i)):delete s[r],this):s[r]},e.then=function(r){var i=this;return new Promise(function(o){var s=Mn(r)?r:cS,a=function(){var c=i.then;i.then=null,Mn(s)&&(s=s(i))&&(s.then||s===i)&&(i.then=c),o(s),i.then=c};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?a():i._prom=a})},e.kill=function(){_u(this)},t}();vi(fc.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-fn,_prom:0,_ps:!1,_rts:1});var Ur=function(t){Qw(e,t);function e(r,i){var o;return r===void 0&&(r={}),o=t.call(this,r)||this,o.labels={},o.smoothChildTiming=!!r.smoothChildTiming,o.autoRemoveChildren=!!r.autoRemoveChildren,o._sort=Qr(r.sortChildren),kn&&ho(r.parent||kn,Mo(o),i),r.reversed&&o.reverse(),r.paused&&o.paused(!0),r.scrollTrigger&&hS(Mo(o),r.scrollTrigger),o}var n=e.prototype;return n.to=function(i,o,s){return Fu(0,arguments,this),this},n.from=function(i,o,s){return Fu(1,arguments,this),this},n.fromTo=function(i,o,s,a){return Fu(2,arguments,this),this},n.set=function(i,o,s){return o.duration=0,o.parent=this,$u(o).repeatDelay||(o.repeat=0),o.immediateRender=!!o.immediateRender,new jn(i,o,Ei(this,s),1),this},n.call=function(i,o,s){return ho(this,jn.delayedCall(0,i,o),s)},n.staggerTo=function(i,o,s,a,u,c,h){return s.duration=o,s.stagger=s.stagger||a,s.onComplete=c,s.onCompleteParams=h,s.parent=this,new jn(i,s,Ei(this,u)),this},n.staggerFrom=function(i,o,s,a,u,c,h){return s.runBackwards=1,$u(s).immediateRender=Qr(s.immediateRender),this.staggerTo(i,o,s,a,u,c,h)},n.staggerFromTo=function(i,o,s,a,u,c,h,l){return a.startAt=s,$u(a).immediateRender=Qr(a.immediateRender),this.staggerTo(i,o,a,u,c,h,l)},n.render=function(i,o,s){var a=this._time,u=this._dirty?this.totalDuration():this._tDur,c=this._dur,h=i<=0?0:Wn(i),l=this._zTime<0!=i<0&&(this._initted||!c),d,f,_,p,b,y,w,R,E,A,C,I;if(this!==kn&&h>u&&i>=0&&(h=u),h!==this._tTime||s||l){if(a!==this._time&&c&&(h+=this._time-a,i+=this._time-a),d=h,E=this._start,R=this._ts,y=!R,l&&(c||(a=this._zTime),(i||!o)&&(this._zTime=i)),this._repeat){if(C=this._yoyo,b=c+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(b*100+i,o,s);if(d=Wn(h%b),h===u?(p=this._repeat,d=c):(A=Wn(h/b),p=~~A,p&&p===A&&(d=c,p--),d>c&&(d=c)),A=Rl(this._tTime,b),!a&&this._tTime&&A!==p&&this._tTime-A*b-this._dur<=0&&(A=p),C&&p&1&&(d=c-d,I=1),p!==A&&!this._lock){var $=C&&A&1,N=$===(C&&p&1);if(p<A&&($=!$),a=$?0:h%c?c:h,this._lock=1,this.render(a||(I?0:Wn(p*b)),o,!c)._lock=0,this._tTime=h,!o&&this.parent&&pi(this,"onRepeat"),this.vars.repeatRefresh&&!I&&(this.invalidate()._lock=1),a&&a!==this._time||y!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(c=this._dur,u=this._tDur,N&&(this._lock=2,a=$?c:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!I&&this.invalidate()),this._lock=0,!this._ts&&!y)return this;CS(this,I)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(w=SI(this,Wn(a),Wn(d)),w&&(h-=d-(d=w._start))),this._tTime=h,this._time=d,this._act=!R,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,a=0),!a&&h&&!o&&!A&&(pi(this,"onStart"),this._tTime!==h))return this;if(d>=a&&i>=0)for(f=this._first;f;){if(_=f._next,(f._act||d>=f._start)&&f._ts&&w!==f){if(f.parent!==this)return this.render(i,o,s);if(f.render(f._ts>0?(d-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(d-f._start)*f._ts,o,s),d!==this._time||!this._ts&&!y){w=0,_&&(h+=this._zTime=-fn);break}}f=_}else{f=this._last;for(var W=i<0?i:d;f;){if(_=f._prev,(f._act||W<=f._end)&&f._ts&&w!==f){if(f.parent!==this)return this.render(i,o,s);if(f.render(f._ts>0?(W-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(W-f._start)*f._ts,o,s||pr&&Vg(f)),d!==this._time||!this._ts&&!y){w=0,_&&(h+=this._zTime=W?-fn:fn);break}}f=_}}if(w&&!o&&(this.pause(),w.render(d>=a?0:-fn)._zTime=d>=a?1:-1,this._ts))return this._start=E,lh(this),this.render(i,o,s);this._onUpdate&&!o&&pi(this,"onUpdate",!0),(h===u&&this._tTime>=this.totalDuration()||!h&&a)&&(E===this._start||Math.abs(R)!==Math.abs(this._ts))&&(this._lock||((i||!c)&&(h===u&&this._ts>0||!h&&this._ts<0)&&Ls(this,1),!o&&!(i<0&&!a)&&(h||a||!u)&&(pi(this,h===u&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(h<u&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(i,o){var s=this;if(Jo(o)||(o=Ei(this,o,i)),!(i instanceof fc)){if(Pr(i))return i.forEach(function(a){return s.add(a,o)}),this;if(ur(i))return this.addLabel(i,o);if(Mn(i))i=jn.delayedCall(0,i);else return this}return this!==i?ho(this,i,o):this},n.getChildren=function(i,o,s,a){i===void 0&&(i=!0),o===void 0&&(o=!0),s===void 0&&(s=!0),a===void 0&&(a=-xi);for(var u=[],c=this._first;c;)c._start>=a&&(c instanceof jn?o&&u.push(c):(s&&u.push(c),i&&u.push.apply(u,c.getChildren(!0,o,s)))),c=c._next;return u},n.getById=function(i){for(var o=this.getChildren(1,1,1),s=o.length;s--;)if(o[s].vars.id===i)return o[s]},n.remove=function(i){return ur(i)?this.removeLabel(i):Mn(i)?this.killTweensOf(i):(i.parent===this&&ah(this,i),i===this._recent&&(this._recent=this._last),da(this))},n.totalTime=function(i,o){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Wn(fi.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),t.prototype.totalTime.call(this,i,o),this._forcing=0,this):this._tTime},n.addLabel=function(i,o){return this.labels[i]=Ei(this,o),this},n.removeLabel=function(i){return delete this.labels[i],this},n.addPause=function(i,o,s){var a=jn.delayedCall(0,o||lc,s);return a.data="isPause",this._hasPause=1,ho(this,a,Ei(this,i))},n.removePause=function(i){var o=this._first;for(i=Ei(this,i);o;)o._start===i&&o.data==="isPause"&&Ls(o),o=o._next},n.killTweensOf=function(i,o,s){for(var a=this.getTweensOf(i,s),u=a.length;u--;)vs!==a[u]&&a[u].kill(i,o);return this},n.getTweensOf=function(i,o){for(var s=[],a=Pi(i),u=this._first,c=Jo(o),h;u;)u instanceof jn?mI(u._targets,a)&&(c?(!vs||u._initted&&u._ts)&&u.globalTime(0)<=o&&u.globalTime(u.totalDuration())>o:!o||u.isActive())&&s.push(u):(h=u.getTweensOf(a,o)).length&&s.push.apply(s,h),u=u._next;return s},n.tweenTo=function(i,o){o=o||{};var s=this,a=Ei(s,i),u=o,c=u.startAt,h=u.onStart,l=u.onStartParams,d=u.immediateRender,f,_=jn.to(s,vi({ease:o.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:o.duration||Math.abs((a-(c&&"time"in c?c.time:s._time))/s.timeScale())||fn,onStart:function(){if(s.pause(),!f){var b=o.duration||Math.abs((a-(c&&"time"in c?c.time:s._time))/s.timeScale());_._dur!==b&&Al(_,b,0,1).render(_._time,!0,!0),f=1}h&&h.apply(_,l||[])}},o));return d?_.render(0):_},n.tweenFromTo=function(i,o,s){return this.tweenTo(o,vi({startAt:{time:Ei(this,i)}},s))},n.recent=function(){return this._recent},n.nextLabel=function(i){return i===void 0&&(i=this._time),W0(this,Ei(this,i))},n.previousLabel=function(i){return i===void 0&&(i=this._time),W0(this,Ei(this,i),1)},n.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+fn)},n.shiftChildren=function(i,o,s){s===void 0&&(s=0);for(var a=this._first,u=this.labels,c;a;)a._start>=s&&(a._start+=i,a._end+=i),a=a._next;if(o)for(c in u)u[c]>=s&&(u[c]+=i);return da(this)},n.invalidate=function(i){var o=this._first;for(this._lock=0;o;)o.invalidate(i),o=o._next;return t.prototype.invalidate.call(this,i)},n.clear=function(i){i===void 0&&(i=!0);for(var o=this._first,s;o;)s=o._next,this.remove(o),o=s;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),da(this)},n.totalDuration=function(i){var o=0,s=this,a=s._last,u=xi,c,h,l;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-i:i));if(s._dirty){for(l=s.parent;a;)c=a._prev,a._dirty&&a.totalDuration(),h=a._start,h>u&&s._sort&&a._ts&&!s._lock?(s._lock=1,ho(s,a,h-a._delay,1)._lock=0):u=h,h<0&&a._ts&&(o-=h,(!l&&!s._dp||l&&l.smoothChildTiming)&&(s._start+=h/s._ts,s._time-=h,s._tTime-=h),s.shiftChildren(-h,!1,-1/0),u=0),a._end>o&&a._ts&&(o=a._end),a=c;Al(s,s===kn&&s._time>o?s._time:o,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(i){if(kn._ts&&(lS(kn,Sd(i,kn)),sS=fi.frame),fi.frame>=B0){B0+=mi.autoSleep||120;var o=kn._first;if((!o||!o._ts)&&mi.autoSleep&&fi._listeners.length<2){for(;o&&!o._ts;)o=o._next;o||fi.sleep()}}},e}(fc);vi(Ur.prototype,{_lock:0,_hasPause:0,_forcing:0});var NI=function(e,n,r,i,o,s,a){var u=new Zr(this._pt,e,n,0,1,FS,null,o),c=0,h=0,l,d,f,_,p,b,y,w;for(u.b=r,u.e=i,r+="",i+="",(y=~i.indexOf("random("))&&(i=uc(i)),s&&(w=[r,i],s(w,e,n),r=w[0],i=w[1]),d=r.match(tp)||[];l=tp.exec(i);)_=l[0],p=i.substring(c,l.index),f?f=(f+1)%5:p.substr(-5)==="rgba("&&(f=1),_!==d[h++]&&(b=parseFloat(d[h-1])||0,u._pt={_next:u._pt,p:p||h===1?p:",",s:b,c:_.charAt(1)==="="?fl(b,_)-b:parseFloat(_)-b,m:f&&f<4?Math.round:0},c=tp.lastIndex);return u.c=c<i.length?i.substring(c,i.length):"",u.fp=a,(tS.test(i)||y)&&(u.e=0),this._pt=u,u},Ug=function(e,n,r,i,o,s,a,u,c,h){Mn(i)&&(i=i(o||0,e,s));var l=e[n],d=r!=="get"?r:Mn(l)?c?e[n.indexOf("set")||!Mn(e["get"+n.substr(3)])?n:"get"+n.substr(3)](c):e[n]():l,f=Mn(l)?c?jI:MS:Wg,_;if(ur(i)&&(~i.indexOf("random(")&&(i=uc(i)),i.charAt(1)==="="&&(_=fl(d,i)+(Er(d)||0),(_||_===0)&&(i=_))),!h||d!==i||um)return!isNaN(d*i)&&i!==""?(_=new Zr(this._pt,e,n,+d||0,i-(d||0),typeof l=="boolean"?qI:$S,0,f),c&&(_.fp=c),a&&_.modifier(a,this,e),this._pt=_):(!l&&!(n in e)&&Dg(n,i),NI.call(this,e,n,d,i,f,u||mi.stringFilter,c))},HI=function(e,n,r,i,o){if(Mn(e)&&(e=Du(e,o,n,r,i)),!wo(e)||e.style&&e.nodeType||Pr(e)||Zw(e))return ur(e)?Du(e,o,n,r,i):e;var s={},a;for(a in e)s[a]=Du(e[a],o,n,r,i);return s},IS=function(e,n,r,i,o,s){var a,u,c,h;if(ui[e]&&(a=new ui[e]).init(o,a.rawVars?n[e]:HI(n[e],i,o,s,r),r,i,s)!==!1&&(r._pt=u=new Zr(r._pt,o,e,0,1,a.render,a,0,a.priority),r!==il))for(c=r._ptLookup[r._targets.indexOf(o)],h=a._props.length;h--;)c[a._props[h]]=u;return a},vs,um,jg=function t(e,n,r){var i=e.vars,o=i.ease,s=i.startAt,a=i.immediateRender,u=i.lazy,c=i.onUpdate,h=i.runBackwards,l=i.yoyoEase,d=i.keyframes,f=i.autoRevert,_=e._dur,p=e._startAt,b=e._targets,y=e.parent,w=y&&y.data==="nested"?y.vars.targets:b,R=e._overwrite==="auto"&&!Og,E=e.timeline,A,C,I,$,N,W,ne,F,Q,M,H,B,U;if(E&&(!d||!o)&&(o="none"),e._ease=ha(o,kl.ease),e._yEase=l?AS(ha(l===!0?o:l,kl.ease)):0,l&&e._yoyo&&!e._repeat&&(l=e._yEase,e._yEase=e._ease,e._ease=l),e._from=!E&&!!i.runBackwards,!E||d&&!i.stagger){if(F=b[0]?fa(b[0]).harness:0,B=F&&i[F.prop],A=wd(i,Ng),p&&(p._zTime<0&&p.progress(1),n<0&&h&&a&&!f?p.render(-1,!0):p.revert(h&&_?Uf:hI),p._lazy=0),s){if(Ls(e._startAt=jn.set(b,vi({data:"isStart",overwrite:!1,parent:y,immediateRender:!0,lazy:!p&&Qr(u),startAt:null,delay:0,onUpdate:c&&function(){return pi(e,"onUpdate")},stagger:0},s))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(pr||!a&&!f)&&e._startAt.revert(Uf),a&&_&&n<=0&&r<=0){n&&(e._zTime=n);return}}else if(h&&_&&!p){if(n&&(a=!1),I=vi({overwrite:!1,data:"isFromStart",lazy:a&&!p&&Qr(u),immediateRender:a,stagger:0,parent:y},A),B&&(I[F.prop]=B),Ls(e._startAt=jn.set(b,I)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(pr?e._startAt.revert(Uf):e._startAt.render(-1,!0)),e._zTime=n,!a)t(e._startAt,fn,fn);else if(!n)return}for(e._pt=e._ptCache=0,u=_&&Qr(u)||u&&!_,C=0;C<b.length;C++){if(N=b[C],ne=N._gsap||Bg(b)[C]._gsap,e._ptLookup[C]=M={},rm[ne.id]&&Rs.length&&bd(),H=w===b?C:w.indexOf(N),F&&(Q=new F).init(N,B||A,e,H,w)!==!1&&(e._pt=$=new Zr(e._pt,N,Q.name,0,1,Q.render,Q,0,Q.priority),Q._props.forEach(function(oe){M[oe]=$}),Q.priority&&(W=1)),!F||B)for(I in A)ui[I]&&(Q=IS(I,A,e,H,N,w))?Q.priority&&(W=1):M[I]=$=Ug.call(e,N,I,"get",A[I],H,w,0,i.stringFilter);e._op&&e._op[C]&&e.kill(N,e._op[C]),R&&e._pt&&(vs=e,kn.killTweensOf(N,M,e.globalTime(n)),U=!e.parent,vs=0),e._pt&&u&&(rm[ne.id]=1)}W&&DS(e),e._onInit&&e._onInit(e)}e._onUpdate=c,e._initted=(!e._op||e._pt)&&!U,d&&n<=0&&E.render(xi,!0,!0)},BI=function(e,n,r,i,o,s,a,u){var c=(e._pt&&e._ptCache||(e._ptCache={}))[n],h,l,d,f;if(!c)for(c=e._ptCache[n]=[],d=e._ptLookup,f=e._targets.length;f--;){if(h=d[f][n],h&&h.d&&h.d._pt)for(h=h.d._pt;h&&h.p!==n&&h.fp!==n;)h=h._next;if(!h)return um=1,e.vars[n]="+=0",jg(e,a),um=0,u?ac(n+" not eligible for reset"):1;c.push(h)}for(f=c.length;f--;)l=c[f],h=l._pt||l,h.s=(i||i===0)&&!o?i:h.s+(i||0)+s*h.c,h.c=r-h.s,l.e&&(l.e=Dn(r)+Er(l.e)),l.b&&(l.b=h.s+Er(l.b))},VI=function(e,n){var r=e[0]?fa(e[0]).harness:0,i=r&&r.aliases,o,s,a,u;if(!i)return n;o=El({},n);for(s in i)if(s in o)for(u=i[s].split(","),a=u.length;a--;)o[u[a]]=o[s];return o},UI=function(e,n,r,i){var o=n.ease||i||"power1.inOut",s,a;if(Pr(n))a=r[e]||(r[e]=[]),n.forEach(function(u,c){return a.push({t:c/(n.length-1)*100,v:u,e:o})});else for(s in n)a=r[s]||(r[s]=[]),s==="ease"||a.push({t:parseFloat(e),v:n[s],e:o})},Du=function(e,n,r,i,o){return Mn(e)?e.call(n,r,i,o):ur(e)&&~e.indexOf("random(")?uc(e):e},LS=Hg+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",OS={};Jr(LS+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return OS[t]=1});var jn=function(t){Qw(e,t);function e(r,i,o,s){var a;typeof i=="number"&&(o.duration=i,i=o,o=null),a=t.call(this,s?i:$u(i))||this;var u=a.vars,c=u.duration,h=u.delay,l=u.immediateRender,d=u.stagger,f=u.overwrite,_=u.keyframes,p=u.defaults,b=u.scrollTrigger,y=u.yoyoEase,w=i.parent||kn,R=(Pr(r)||Zw(r)?Jo(r[0]):"length"in i)?[r]:Pi(r),E,A,C,I,$,N,W,ne;if(a._targets=R.length?Bg(R):ac("GSAP target "+r+" not found. https://gsap.com",!mi.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=f,_||d||ff(c)||ff(h)){if(i=a.vars,E=a.timeline=new Ur({data:"nested",defaults:p||{},targets:w&&w.data==="nested"?w.vars.targets:R}),E.kill(),E.parent=E._dp=Mo(a),E._start=0,d||ff(c)||ff(h)){if(I=R.length,W=d&&_S(d),wo(d))for($ in d)~LS.indexOf($)&&(ne||(ne={}),ne[$]=d[$]);for(A=0;A<I;A++)C=wd(i,OS),C.stagger=0,y&&(C.yoyoEase=y),ne&&El(C,ne),N=R[A],C.duration=+Du(c,Mo(a),A,N,R),C.delay=(+Du(h,Mo(a),A,N,R)||0)-a._delay,!d&&I===1&&C.delay&&(a._delay=h=C.delay,a._start+=h,C.delay=0),E.to(N,C,W?W(A,N,R):0),E._ease=Nt.none;E.duration()?c=h=0:a.timeline=0}else if(_){$u(vi(E.vars.defaults,{ease:"none"})),E._ease=ha(_.ease||i.ease||"none");var F=0,Q,M,H;if(Pr(_))_.forEach(function(B){return E.to(R,B,">")}),E.duration();else{C={};for($ in _)$==="ease"||$==="easeEach"||UI($,_[$],C,_.easeEach);for($ in C)for(Q=C[$].sort(function(B,U){return B.t-U.t}),F=0,A=0;A<Q.length;A++)M=Q[A],H={ease:M.e,duration:(M.t-(A?Q[A-1].t:0))/100*c},H[$]=M.v,E.to(R,H,F),F+=H.duration;E.duration()<c&&E.to({},{duration:c-E.duration()})}}c||a.duration(c=E.duration())}else a.timeline=0;return f===!0&&!Og&&(vs=Mo(a),kn.killTweensOf(R),vs=0),ho(w,Mo(a),o),i.reversed&&a.reverse(),i.paused&&a.paused(!0),(l||!c&&!_&&a._start===Wn(w._time)&&Qr(l)&&yI(Mo(a))&&w.data!=="nested")&&(a._tTime=-fn,a.render(Math.max(0,-h)||0)),b&&hS(Mo(a),b),a}var n=e.prototype;return n.render=function(i,o,s){var a=this._time,u=this._tDur,c=this._dur,h=i<0,l=i>u-fn&&!h?u:i<fn?0:i,d,f,_,p,b,y,w,R,E;if(!c)wI(this,i,o,s);else if(l!==this._tTime||!i||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==h||this._lazy){if(d=l,R=this.timeline,this._repeat){if(p=c+this._rDelay,this._repeat<-1&&h)return this.totalTime(p*100+i,o,s);if(d=Wn(l%p),l===u?(_=this._repeat,d=c):(b=Wn(l/p),_=~~b,_&&_===b?(d=c,_--):d>c&&(d=c)),y=this._yoyo&&_&1,y&&(E=this._yEase,d=c-d),b=Rl(this._tTime,p),d===a&&!s&&this._initted&&_===b)return this._tTime=l,this;_!==b&&(R&&this._yEase&&CS(R,y),this.vars.repeatRefresh&&!y&&!this._lock&&d!==p&&this._initted&&(this._lock=s=1,this.render(Wn(p*_),!0).invalidate()._lock=0))}if(!this._initted){if(pS(this,h?i:d,s,o,l))return this._tTime=0,this;if(a!==this._time&&!(s&&this.vars.repeatRefresh&&_!==b))return this;if(c!==this._dur)return this.render(i,o,s)}if(this._tTime=l,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=w=(E||this._ease)(d/c),this._from&&(this.ratio=w=1-w),!a&&l&&!o&&!b&&(pi(this,"onStart"),this._tTime!==l))return this;for(f=this._pt;f;)f.r(w,f.d),f=f._next;R&&R.render(i<0?i:R._dur*R._ease(d/this._dur),o,s)||this._startAt&&(this._zTime=i),this._onUpdate&&!o&&(h&&im(this,i,o,s),pi(this,"onUpdate")),this._repeat&&_!==b&&this.vars.onRepeat&&!o&&this.parent&&pi(this,"onRepeat"),(l===this._tDur||!l)&&this._tTime===l&&(h&&!this._onUpdate&&im(this,i,!0,!0),(i||!c)&&(l===this._tDur&&this._ts>0||!l&&this._ts<0)&&Ls(this,1),!o&&!(h&&!a)&&(l||a||y)&&(pi(this,l===u?"onComplete":"onReverseComplete",!0),this._prom&&!(l<u&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),t.prototype.invalidate.call(this,i)},n.resetTo=function(i,o,s,a,u){cc||fi.wake(),this._ts||this.play();var c=Math.min(this._dur,(this._dp._time-this._start)*this._ts),h;return this._initted||jg(this,c),h=this._ease(c/this._dur),BI(this,i,o,s,a,h,c,u)?this.resetTo(i,o,s,a,1):(uh(this,0),this.parent||fS(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(i,o){if(o===void 0&&(o="all"),!i&&(!o||o==="all"))return this._lazy=this._pt=0,this.parent?_u(this):this.scrollTrigger&&this.scrollTrigger.kill(!!pr),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(i,o,vs&&vs.vars.overwrite!==!0)._first||_u(this),this.parent&&s!==this.timeline.totalDuration()&&Al(this,this._dur*this.timeline._tDur/s,0,1),this}var a=this._targets,u=i?Pi(i):a,c=this._ptLookup,h=this._pt,l,d,f,_,p,b,y;if((!o||o==="all")&&_I(a,u))return o==="all"&&(this._pt=0),_u(this);for(l=this._op=this._op||[],o!=="all"&&(ur(o)&&(p={},Jr(o,function(w){return p[w]=1}),o=p),o=VI(a,o)),y=a.length;y--;)if(~u.indexOf(a[y])){d=c[y],o==="all"?(l[y]=o,_=d,f={}):(f=l[y]=l[y]||{},_=o);for(p in _)b=d&&d[p],b&&((!("kill"in b.d)||b.d.kill(p)===!0)&&ah(this,b,"_pt"),delete d[p]),f!=="all"&&(f[p]=1)}return this._initted&&!this._pt&&h&&_u(this),this},e.to=function(i,o){return new e(i,o,arguments[2])},e.from=function(i,o){return Fu(1,arguments)},e.delayedCall=function(i,o,s,a){return new e(o,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:o,onReverseComplete:o,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:a})},e.fromTo=function(i,o,s){return Fu(2,arguments)},e.set=function(i,o){return o.duration=0,o.repeatDelay||(o.repeat=0),new e(i,o)},e.killTweensOf=function(i,o,s){return kn.killTweensOf(i,o,s)},e}(fc);vi(jn.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Jr("staggerTo,staggerFrom,staggerFromTo",function(t){jn[t]=function(){var e=new Ur,n=sm.call(arguments,0);return n.splice(t==="staggerFromTo"?5:4,0,0),e[t].apply(e,n)}});var Wg=function(e,n,r){return e[n]=r},MS=function(e,n,r){return e[n](r)},jI=function(e,n,r,i){return e[n](i.fp,r)},WI=function(e,n,r){return e.setAttribute(n,r)},qg=function(e,n){return Mn(e[n])?MS:Mg(e[n])&&e.setAttribute?WI:Wg},$S=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e6)/1e6,n)},qI=function(e,n){return n.set(n.t,n.p,!!(n.s+n.c*e),n)},FS=function(e,n){var r=n._pt,i="";if(!e&&n.b)i=n.b;else if(e===1&&n.e)i=n.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+i,r=r._next;i+=n.c}n.set(n.t,n.p,i,n)},zg=function(e,n){for(var r=n._pt;r;)r.r(e,r.d),r=r._next},zI=function(e,n,r,i){for(var o=this._pt,s;o;)s=o._next,o.p===i&&o.modifier(e,n,r),o=s},GI=function(e){for(var n=this._pt,r,i;n;)i=n._next,n.p===e&&!n.op||n.op===e?ah(this,n,"_pt"):n.dep||(r=1),n=i;return!r},YI=function(e,n,r,i){i.mSet(e,n,i.m.call(i.tween,r,i.mt),i)},DS=function(e){for(var n=e._pt,r,i,o,s;n;){for(r=n._next,i=o;i&&i.pr>n.pr;)i=i._next;(n._prev=i?i._prev:s)?n._prev._next=n:o=n,(n._next=i)?i._prev=n:s=n,n=r}e._pt=o},Zr=function(){function t(n,r,i,o,s,a,u,c,h){this.t=r,this.s=o,this.c=s,this.p=i,this.r=a||$S,this.d=u||this,this.set=c||Wg,this.pr=h||0,this._next=n,n&&(n._prev=this)}var e=t.prototype;return e.modifier=function(r,i,o){this.mSet=this.mSet||this.set,this.set=YI,this.m=r,this.mt=o,this.tween=i},t}();Jr(Hg+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return Ng[t]=1});_i.TweenMax=_i.TweenLite=jn;_i.TimelineLite=_i.TimelineMax=Ur;kn=new Ur({sortChildren:!1,defaults:kl,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});mi.stringFilter=RS;var pa=[],Wf={},KI=[],z0=0,XI=0,sp=function(e){return(Wf[e]||KI).map(function(n){return n()})},cm=function(){var e=Date.now(),n=[];e-z0>2&&(sp("matchMediaInit"),pa.forEach(function(r){var i=r.queries,o=r.conditions,s,a,u,c;for(a in i)s=lo.matchMedia(i[a]).matches,s&&(u=1),s!==o[a]&&(o[a]=s,c=1);c&&(r.revert(),u&&n.push(r))}),sp("matchMediaRevert"),n.forEach(function(r){return r.onMatch(r,function(i){return r.add(null,i)})}),z0=e,sp("matchMedia"))},NS=function(){function t(n,r){this.selector=r&&am(r),this.data=[],this._r=[],this.isReverted=!1,this.id=XI++,n&&this.add(n)}var e=t.prototype;return e.add=function(r,i,o){Mn(r)&&(o=i,i=r,r=Mn);var s=this,a=function(){var c=wn,h=s.selector,l;return c&&c!==s&&c.data.push(s),o&&(s.selector=am(o)),wn=s,l=i.apply(s,arguments),Mn(l)&&s._r.push(l),wn=c,s.selector=h,s.isReverted=!1,l};return s.last=a,r===Mn?a(s,function(u){return s.add(null,u)}):r?s[r]=a:a},e.ignore=function(r){var i=wn;wn=null,r(this),wn=i},e.getTweens=function(){var r=[];return this.data.forEach(function(i){return i instanceof t?r.push.apply(r,i.getTweens()):i instanceof jn&&!(i.parent&&i.parent.data==="nested")&&r.push(i)}),r},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(r,i){var o=this;if(r?function(){for(var a=o.getTweens(),u=o.data.length,c;u--;)c=o.data[u],c.data==="isFlip"&&(c.revert(),c.getChildren(!0,!0,!1).forEach(function(h){return a.splice(a.indexOf(h),1)}));for(a.map(function(h){return{g:h._dur||h._delay||h._sat&&!h._sat.vars.immediateRender?h.globalTime(0):-1/0,t:h}}).sort(function(h,l){return l.g-h.g||-1/0}).forEach(function(h){return h.t.revert(r)}),u=o.data.length;u--;)c=o.data[u],c instanceof Ur?c.data!=="nested"&&(c.scrollTrigger&&c.scrollTrigger.revert(),c.kill()):!(c instanceof jn)&&c.revert&&c.revert(r);o._r.forEach(function(h){return h(r,o)}),o.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),i)for(var s=pa.length;s--;)pa[s].id===this.id&&pa.splice(s,1)},e.revert=function(r){this.kill(r||{})},t}(),QI=function(){function t(n){this.contexts=[],this.scope=n,wn&&wn.data.push(this)}var e=t.prototype;return e.add=function(r,i,o){wo(r)||(r={matches:r});var s=new NS(0,o||this.scope),a=s.conditions={},u,c,h;wn&&!s.selector&&(s.selector=wn.selector),this.contexts.push(s),i=s.add("onMatch",i),s.queries=r;for(c in r)c==="all"?h=1:(u=lo.matchMedia(r[c]),u&&(pa.indexOf(s)<0&&pa.push(s),(a[c]=u.matches)&&(h=1),u.addListener?u.addListener(cm):u.addEventListener("change",cm)));return h&&i(s,function(l){return s.add(null,l)}),this},e.revert=function(r){this.kill(r||{})},e.kill=function(r){this.contexts.forEach(function(i){return i.kill(r,!0)})},t}(),Td={registerPlugin:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach(function(i){return TS(i)})},timeline:function(e){return new Ur(e)},getTweensOf:function(e,n){return kn.getTweensOf(e,n)},getProperty:function(e,n,r,i){ur(e)&&(e=Pi(e)[0]);var o=fa(e||{}).get,s=r?cS:uS;return r==="native"&&(r=""),e&&(n?s((ui[n]&&ui[n].get||o)(e,n,r,i)):function(a,u,c){return s((ui[a]&&ui[a].get||o)(e,a,u,c))})},quickSetter:function(e,n,r){if(e=Pi(e),e.length>1){var i=e.map(function(h){return ii.quickSetter(h,n,r)}),o=i.length;return function(h){for(var l=o;l--;)i[l](h)}}e=e[0]||{};var s=ui[n],a=fa(e),u=a.harness&&(a.harness.aliases||{})[n]||n,c=s?function(h){var l=new s;il._pt=0,l.init(e,r?h+r:h,il,0,[e]),l.render(1,l),il._pt&&zg(1,il)}:a.set(e,u);return s?c:function(h){return c(e,u,r?h+r:h,a,1)}},quickTo:function(e,n,r){var i,o=ii.to(e,vi((i={},i[n]="+=0.1",i.paused=!0,i.stagger=0,i),r||{})),s=function(u,c,h){return o.resetTo(n,u,c,h)};return s.tween=o,s},isTweening:function(e){return kn.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=ha(e.ease,kl.ease)),V0(kl,e||{})},config:function(e){return V0(mi,e||{})},registerEffect:function(e){var n=e.name,r=e.effect,i=e.plugins,o=e.defaults,s=e.extendTimeline;(i||"").split(",").forEach(function(a){return a&&!ui[a]&&!_i[a]&&ac(n+" effect requires "+a+" plugin.")}),np[n]=function(a,u,c){return r(Pi(a),vi(u||{},o),c)},s&&(Ur.prototype[n]=function(a,u,c){return this.add(np[n](a,wo(u)?u:(c=u)&&{},this),c)})},registerEase:function(e,n){Nt[e]=ha(n)},parseEase:function(e,n){return arguments.length?ha(e,n):Nt},getById:function(e){return kn.getById(e)},exportRoot:function(e,n){e===void 0&&(e={});var r=new Ur(e),i,o;for(r.smoothChildTiming=Qr(e.smoothChildTiming),kn.remove(r),r._dp=0,r._time=r._tTime=kn._time,i=kn._first;i;)o=i._next,(n||!(!i._dur&&i instanceof jn&&i.vars.onComplete===i._targets[0]))&&ho(r,i,i._start-i._delay),i=o;return ho(kn,r,0),r},context:function(e,n){return e?new NS(e,n):wn},matchMedia:function(e){return new QI(e)},matchMediaRefresh:function(){return pa.forEach(function(e){var n=e.conditions,r,i;for(i in n)n[i]&&(n[i]=!1,r=1);r&&e.revert()})||cm()},addEventListener:function(e,n){var r=Wf[e]||(Wf[e]=[]);~r.indexOf(n)||r.push(n)},removeEventListener:function(e,n){var r=Wf[e],i=r&&r.indexOf(n);i>=0&&r.splice(i,1)},utils:{wrap:xI,wrapYoyo:PI,distribute:_S,random:yS,snap:vS,normalize:CI,getUnit:Er,clamp:kI,splitColor:kS,toArray:Pi,selector:am,mapRange:wS,pipe:RI,unitize:AI,interpolate:II,shuffle:gS},install:iS,effects:np,ticker:fi,updateRoot:Ur.updateRoot,plugins:ui,globalTimeline:kn,core:{PropTween:Zr,globals:oS,Tween:jn,Timeline:Ur,Animation:fc,getCache:fa,_removeLinkedListItem:ah,reverting:function(){return pr},context:function(e){return e&&wn&&(wn.data.push(e),e._ctx=wn),wn},suppressOverwrites:function(e){return Og=e}}};Jr("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Td[t]=jn[t]});fi.add(Ur.updateRoot);il=Td.to({},{duration:0});var JI=function(e,n){for(var r=e._pt;r&&r.p!==n&&r.op!==n&&r.fp!==n;)r=r._next;return r},ZI=function(e,n){var r=e._targets,i,o,s;for(i in n)for(o=r.length;o--;)s=e._ptLookup[o][i],s&&(s=s.d)&&(s._pt&&(s=JI(s,i)),s&&s.modifier&&s.modifier(n[i],e,r[o],i))},ap=function(e,n){return{name:e,headless:1,rawVars:1,init:function(i,o,s){s._onInit=function(a){var u,c;if(ur(o)&&(u={},Jr(o,function(h){return u[h]=1}),o=u),n){u={};for(c in o)u[c]=n(o[c]);o=u}ZI(a,o)}}}},ii=Td.registerPlugin({name:"attr",init:function(e,n,r,i,o){var s,a,u;this.tween=r;for(s in n)u=e.getAttribute(s)||"",a=this.add(e,"setAttribute",(u||0)+"",n[s],i,o,0,0,s),a.op=s,a.b=u,this._props.push(s)},render:function(e,n){for(var r=n._pt;r;)pr?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",headless:1,init:function(e,n){for(var r=n.length;r--;)this.add(e,r,e[r]||0,n[r],0,0,0,0,0,1)}},ap("roundProps",lm),ap("modifiers"),ap("snap",vS))||Td;jn.version=Ur.version=ii.version="3.13.0";rS=1;$g()&&Cl();Nt.Power0;Nt.Power1;Nt.Power2;Nt.Power3;Nt.Power4;Nt.Linear;Nt.Quad;Nt.Cubic;Nt.Quart;Nt.Quint;Nt.Strong;Nt.Elastic;Nt.Back;Nt.SteppedEase;Nt.Bounce;Nt.Sine;Nt.Expo;Nt.Circ;/*!
 * CSSPlugin 3.13.0
 * https://gsap.com
 *
 * Copyright 2008-2025, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license
 * @author: Jack Doyle, jack@greensock.com
*/var G0,ys,dl,Gg,sa,Y0,Yg,eL=function(){return typeof window<"u"},Zo={},Zs=180/Math.PI,hl=Math.PI/180,Wa=Math.atan2,K0=1e8,Kg=/([A-Z])/g,tL=/(left|right|width|margin|padding|x)/i,nL=/[\s,\(]\S/,po={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},fm=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},rL=function(e,n){return n.set(n.t,n.p,e===1?n.e:Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},iL=function(e,n){return n.set(n.t,n.p,e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},oL=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},HS=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},BS=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},sL=function(e,n,r){return e.style[n]=r},aL=function(e,n,r){return e.style.setProperty(n,r)},lL=function(e,n,r){return e._gsap[n]=r},uL=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},cL=function(e,n,r,i,o){var s=e._gsap;s.scaleX=s.scaleY=r,s.renderTransform(o,s)},fL=function(e,n,r,i,o){var s=e._gsap;s[n]=r,s.renderTransform(o,s)},Rn="transform",ei=Rn+"Origin",dL=function t(e,n){var r=this,i=this.target,o=i.style,s=i._gsap;if(e in Zo&&o){if(this.tfm=this.tfm||{},e!=="transform")e=po[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=Do(i,a)}):this.tfm[e]=s.x?s[e]:Do(i,e),e===ei&&(this.tfm.zOrigin=s.zOrigin);else return po.transform.split(",").forEach(function(a){return t.call(r,a,n)});if(this.props.indexOf(Rn)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(ei,n,"")),e=Rn}(o||n)&&this.props.push(e,n,o[e])},VS=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},hL=function(){var e=this.props,n=this.target,r=n.style,i=n._gsap,o,s;for(o=0;o<e.length;o+=3)e[o+1]?e[o+1]===2?n[e[o]](e[o+2]):n[e[o]]=e[o+2]:e[o+2]?r[e[o]]=e[o+2]:r.removeProperty(e[o].substr(0,2)==="--"?e[o]:e[o].replace(Kg,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)i[s]=this.tfm[s];i.svg&&(i.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),o=Yg(),(!o||!o.isStart)&&!r[Rn]&&(VS(r),i.zOrigin&&r[ei]&&(r[ei]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},US=function(e,n){var r={target:e,props:[],revert:hL,save:dL};return e._gsap||ii.core.getCache(e),n&&e.style&&e.nodeType&&n.split(",").forEach(function(i){return r.save(i)}),r},jS,dm=function(e,n){var r=ys.createElementNS?ys.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):ys.createElement(e);return r&&r.style?r:ys.createElement(e)},Ii=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(Kg,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,xl(n)||n,1)||""},X0="O,Moz,ms,Ms,Webkit".split(","),xl=function(e,n,r){var i=n||sa,o=i.style,s=5;if(e in o&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);s--&&!(X0[s]+e in o););return s<0?null:(s===3?"ms":s>=0?X0[s]:"")+e},hm=function(){eL()&&window.document&&(G0=window,ys=G0.document,dl=ys.documentElement,sa=dm("div")||{style:{}},dm("div"),Rn=xl(Rn),ei=Rn+"Origin",sa.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",jS=!!xl("perspective"),Yg=ii.core.reverting,Gg=1)},Q0=function(e){var n=e.ownerSVGElement,r=dm("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0),o;i.style.display="block",r.appendChild(i),dl.appendChild(r);try{o=i.getBBox()}catch{}return r.removeChild(i),dl.removeChild(r),o},J0=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},WS=function(e){var n,r;try{n=e.getBBox()}catch{n=Q0(e),r=1}return n&&(n.width||n.height)||r||(n=Q0(e)),n&&!n.width&&!n.x&&!n.y?{x:+J0(e,["x","cx","x1"])||0,y:+J0(e,["y","cy","y1"])||0,width:0,height:0}:n},qS=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&WS(e))},ka=function(e,n){if(n){var r=e.style,i;n in Zo&&n!==ei&&(n=Rn),r.removeProperty?(i=n.substr(0,2),(i==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(i==="--"?n:n.replace(Kg,"-$1").toLowerCase())):r.removeAttribute(n)}},bs=function(e,n,r,i,o,s){var a=new Zr(e._pt,n,r,0,1,s?BS:HS);return e._pt=a,a.b=i,a.e=o,e._props.push(r),a},Z0={deg:1,rad:1,turn:1},pL={grid:1,flex:1},Os=function t(e,n,r,i){var o=parseFloat(r)||0,s=(r+"").trim().substr((o+"").length)||"px",a=sa.style,u=tL.test(n),c=e.tagName.toLowerCase()==="svg",h=(c?"client":"offset")+(u?"Width":"Height"),l=100,d=i==="px",f=i==="%",_,p,b,y;if(i===s||!o||Z0[i]||Z0[s])return o;if(s!=="px"&&!d&&(o=t(e,n,r,"px")),y=e.getCTM&&qS(e),(f||s==="%")&&(Zo[n]||~n.indexOf("adius")))return _=y?e.getBBox()[u?"width":"height"]:e[h],Dn(f?o/_*l:o/100*_);if(a[u?"width":"height"]=l+(d?s:i),p=i!=="rem"&&~n.indexOf("adius")||i==="em"&&e.appendChild&&!c?e:e.parentNode,y&&(p=(e.ownerSVGElement||{}).parentNode),(!p||p===ys||!p.appendChild)&&(p=ys.body),b=p._gsap,b&&f&&b.width&&u&&b.time===fi.time&&!b.uncache)return Dn(o/b.width*l);if(f&&(n==="height"||n==="width")){var w=e.style[n];e.style[n]=l+i,_=e[h],w?e.style[n]=w:ka(e,n)}else(f||s==="%")&&!pL[Ii(p,"display")]&&(a.position=Ii(e,"position")),p===e&&(a.position="static"),p.appendChild(sa),_=sa[h],p.removeChild(sa),a.position="absolute";return u&&f&&(b=fa(p),b.time=fi.time,b.width=p[h]),Dn(d?_*o/l:_&&o?l/_*o:0)},Do=function(e,n,r,i){var o;return Gg||hm(),n in po&&n!=="transform"&&(n=po[n],~n.indexOf(",")&&(n=n.split(",")[0])),Zo[n]&&n!=="transform"?(o=hc(e,i),o=n!=="transformOrigin"?o[n]:o.svg?o.origin:Ed(Ii(e,ei))+" "+o.zOrigin+"px"):(o=e.style[n],(!o||o==="auto"||i||~(o+"").indexOf("calc("))&&(o=kd[n]&&kd[n](e,n,r)||Ii(e,n)||aS(e,n)||(n==="opacity"?1:0))),r&&!~(o+"").trim().indexOf(" ")?Os(e,n,o,r)+r:o},mL=function(e,n,r,i){if(!r||r==="none"){var o=xl(n,e,1),s=o&&Ii(e,o,1);s&&s!==r?(n=o,r=s):n==="borderColor"&&(r=Ii(e,"borderTopColor"))}var a=new Zr(this._pt,e.style,n,0,1,FS),u=0,c=0,h,l,d,f,_,p,b,y,w,R,E,A;if(a.b=r,a.e=i,r+="",i+="",i.substring(0,6)==="var(--"&&(i=Ii(e,i.substring(4,i.indexOf(")")))),i==="auto"&&(p=e.style[n],e.style[n]=i,i=Ii(e,n)||i,p?e.style[n]=p:ka(e,n)),h=[r,i],RS(h),r=h[0],i=h[1],d=r.match(rl)||[],A=i.match(rl)||[],A.length){for(;l=rl.exec(i);)b=l[0],w=i.substring(u,l.index),_?_=(_+1)%5:(w.substr(-5)==="rgba("||w.substr(-5)==="hsla(")&&(_=1),b!==(p=d[c++]||"")&&(f=parseFloat(p)||0,E=p.substr((f+"").length),b.charAt(1)==="="&&(b=fl(f,b)+E),y=parseFloat(b),R=b.substr((y+"").length),u=rl.lastIndex-R.length,R||(R=R||mi.units[n]||E,u===i.length&&(i+=R,a.e+=R)),E!==R&&(f=Os(e,n,p,R)||0),a._pt={_next:a._pt,p:w||c===1?w:",",s:f,c:y-f,m:_&&_<4||n==="zIndex"?Math.round:0});a.c=u<i.length?i.substring(u,i.length):""}else a.r=n==="display"&&i==="none"?BS:HS;return tS.test(i)&&(a.e=0),this._pt=a,a},ey={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},gL=function(e){var n=e.split(" "),r=n[0],i=n[1]||"50%";return(r==="top"||r==="bottom"||i==="left"||i==="right")&&(e=r,r=i,i=e),n[0]=ey[r]||r,n[1]=ey[i]||i,n.join(" ")},_L=function(e,n){if(n.tween&&n.tween._time===n.tween._dur){var r=n.t,i=r.style,o=n.u,s=r._gsap,a,u,c;if(o==="all"||o===!0)i.cssText="",u=1;else for(o=o.split(","),c=o.length;--c>-1;)a=o[c],Zo[a]&&(u=1,a=a==="transformOrigin"?ei:Rn),ka(r,a);u&&(ka(r,Rn),s&&(s.svg&&r.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",hc(r,1),s.uncache=1,VS(i)))}},kd={clearProps:function(e,n,r,i,o){if(o.data!=="isFromStart"){var s=e._pt=new Zr(e._pt,n,r,0,0,_L);return s.u=i,s.pr=-10,s.tween=o,e._props.push(r),1}}},dc=[1,0,0,1,0,0],zS={},GS=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},ty=function(e){var n=Ii(e,Rn);return GS(n)?dc:n.substr(7).match(eS).map(Dn)},Xg=function(e,n){var r=e._gsap||fa(e),i=e.style,o=ty(e),s,a,u,c;return r.svg&&e.getAttribute("transform")?(u=e.transform.baseVal.consolidate().matrix,o=[u.a,u.b,u.c,u.d,u.e,u.f],o.join(",")==="1,0,0,1,0,0"?dc:o):(o===dc&&!e.offsetParent&&e!==dl&&!r.svg&&(u=i.display,i.display="block",s=e.parentNode,(!s||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,a=e.nextElementSibling,dl.appendChild(e)),o=ty(e),u?i.display=u:ka(e,"display"),c&&(a?s.insertBefore(e,a):s?s.appendChild(e):dl.removeChild(e))),n&&o.length>6?[o[0],o[1],o[4],o[5],o[12],o[13]]:o)},pm=function(e,n,r,i,o,s){var a=e._gsap,u=o||Xg(e,!0),c=a.xOrigin||0,h=a.yOrigin||0,l=a.xOffset||0,d=a.yOffset||0,f=u[0],_=u[1],p=u[2],b=u[3],y=u[4],w=u[5],R=n.split(" "),E=parseFloat(R[0])||0,A=parseFloat(R[1])||0,C,I,$,N;r?u!==dc&&(I=f*b-_*p)&&($=E*(b/I)+A*(-p/I)+(p*w-b*y)/I,N=E*(-_/I)+A*(f/I)-(f*w-_*y)/I,E=$,A=N):(C=WS(e),E=C.x+(~R[0].indexOf("%")?E/100*C.width:E),A=C.y+(~(R[1]||R[0]).indexOf("%")?A/100*C.height:A)),i||i!==!1&&a.smooth?(y=E-c,w=A-h,a.xOffset=l+(y*f+w*p)-y,a.yOffset=d+(y*_+w*b)-w):a.xOffset=a.yOffset=0,a.xOrigin=E,a.yOrigin=A,a.smooth=!!i,a.origin=n,a.originIsAbsolute=!!r,e.style[ei]="0px 0px",s&&(bs(s,a,"xOrigin",c,E),bs(s,a,"yOrigin",h,A),bs(s,a,"xOffset",l,a.xOffset),bs(s,a,"yOffset",d,a.yOffset)),e.setAttribute("data-svg-origin",E+" "+A)},hc=function(e,n){var r=e._gsap||new PS(e);if("x"in r&&!n&&!r.uncache)return r;var i=e.style,o=r.scaleX<0,s="px",a="deg",u=getComputedStyle(e),c=Ii(e,ei)||"0",h,l,d,f,_,p,b,y,w,R,E,A,C,I,$,N,W,ne,F,Q,M,H,B,U,oe,le,q,be,ke,Se,ae,fe;return h=l=d=p=b=y=w=R=E=0,f=_=1,r.svg=!!(e.getCTM&&qS(e)),u.translate&&((u.translate!=="none"||u.scale!=="none"||u.rotate!=="none")&&(i[Rn]=(u.translate!=="none"?"translate3d("+(u.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(u.rotate!=="none"?"rotate("+u.rotate+") ":"")+(u.scale!=="none"?"scale("+u.scale.split(" ").join(",")+") ":"")+(u[Rn]!=="none"?u[Rn]:"")),i.scale=i.rotate=i.translate="none"),I=Xg(e,r.svg),r.svg&&(r.uncache?(oe=e.getBBox(),c=r.xOrigin-oe.x+"px "+(r.yOrigin-oe.y)+"px",U=""):U=!n&&e.getAttribute("data-svg-origin"),pm(e,U||c,!!U||r.originIsAbsolute,r.smooth!==!1,I)),A=r.xOrigin||0,C=r.yOrigin||0,I!==dc&&(ne=I[0],F=I[1],Q=I[2],M=I[3],h=H=I[4],l=B=I[5],I.length===6?(f=Math.sqrt(ne*ne+F*F),_=Math.sqrt(M*M+Q*Q),p=ne||F?Wa(F,ne)*Zs:0,w=Q||M?Wa(Q,M)*Zs+p:0,w&&(_*=Math.abs(Math.cos(w*hl))),r.svg&&(h-=A-(A*ne+C*Q),l-=C-(A*F+C*M))):(fe=I[6],Se=I[7],q=I[8],be=I[9],ke=I[10],ae=I[11],h=I[12],l=I[13],d=I[14],$=Wa(fe,ke),b=$*Zs,$&&(N=Math.cos(-$),W=Math.sin(-$),U=H*N+q*W,oe=B*N+be*W,le=fe*N+ke*W,q=H*-W+q*N,be=B*-W+be*N,ke=fe*-W+ke*N,ae=Se*-W+ae*N,H=U,B=oe,fe=le),$=Wa(-Q,ke),y=$*Zs,$&&(N=Math.cos(-$),W=Math.sin(-$),U=ne*N-q*W,oe=F*N-be*W,le=Q*N-ke*W,ae=M*W+ae*N,ne=U,F=oe,Q=le),$=Wa(F,ne),p=$*Zs,$&&(N=Math.cos($),W=Math.sin($),U=ne*N+F*W,oe=H*N+B*W,F=F*N-ne*W,B=B*N-H*W,ne=U,H=oe),b&&Math.abs(b)+Math.abs(p)>359.9&&(b=p=0,y=180-y),f=Dn(Math.sqrt(ne*ne+F*F+Q*Q)),_=Dn(Math.sqrt(B*B+fe*fe)),$=Wa(H,B),w=Math.abs($)>2e-4?$*Zs:0,E=ae?1/(ae<0?-ae:ae):0),r.svg&&(U=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!GS(Ii(e,Rn)),U&&e.setAttribute("transform",U))),Math.abs(w)>90&&Math.abs(w)<270&&(o?(f*=-1,w+=p<=0?180:-180,p+=p<=0?180:-180):(_*=-1,w+=w<=0?180:-180)),n=n||r.uncache,r.x=h-((r.xPercent=h&&(!n&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-h)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+s,r.y=l-((r.yPercent=l&&(!n&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-l)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+s,r.z=d+s,r.scaleX=Dn(f),r.scaleY=Dn(_),r.rotation=Dn(p)+a,r.rotationX=Dn(b)+a,r.rotationY=Dn(y)+a,r.skewX=w+a,r.skewY=R+a,r.transformPerspective=E+s,(r.zOrigin=parseFloat(c.split(" ")[2])||!n&&r.zOrigin||0)&&(i[ei]=Ed(c)),r.xOffset=r.yOffset=0,r.force3D=mi.force3D,r.renderTransform=r.svg?yL:jS?YS:vL,r.uncache=0,r},Ed=function(e){return(e=e.split(" "))[0]+" "+e[1]},lp=function(e,n,r){var i=Er(n);return Dn(parseFloat(n)+parseFloat(Os(e,"x",r+"px",i)))+i},vL=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,YS(e,n)},Xs="0deg",su="0px",Qs=") ",YS=function(e,n){var r=n||this,i=r.xPercent,o=r.yPercent,s=r.x,a=r.y,u=r.z,c=r.rotation,h=r.rotationY,l=r.rotationX,d=r.skewX,f=r.skewY,_=r.scaleX,p=r.scaleY,b=r.transformPerspective,y=r.force3D,w=r.target,R=r.zOrigin,E="",A=y==="auto"&&e&&e!==1||y===!0;if(R&&(l!==Xs||h!==Xs)){var C=parseFloat(h)*hl,I=Math.sin(C),$=Math.cos(C),N;C=parseFloat(l)*hl,N=Math.cos(C),s=lp(w,s,I*N*-R),a=lp(w,a,-Math.sin(C)*-R),u=lp(w,u,$*N*-R+R)}b!==su&&(E+="perspective("+b+Qs),(i||o)&&(E+="translate("+i+"%, "+o+"%) "),(A||s!==su||a!==su||u!==su)&&(E+=u!==su||A?"translate3d("+s+", "+a+", "+u+") ":"translate("+s+", "+a+Qs),c!==Xs&&(E+="rotate("+c+Qs),h!==Xs&&(E+="rotateY("+h+Qs),l!==Xs&&(E+="rotateX("+l+Qs),(d!==Xs||f!==Xs)&&(E+="skew("+d+", "+f+Qs),(_!==1||p!==1)&&(E+="scale("+_+", "+p+Qs),w.style[Rn]=E||"translate(0, 0)"},yL=function(e,n){var r=n||this,i=r.xPercent,o=r.yPercent,s=r.x,a=r.y,u=r.rotation,c=r.skewX,h=r.skewY,l=r.scaleX,d=r.scaleY,f=r.target,_=r.xOrigin,p=r.yOrigin,b=r.xOffset,y=r.yOffset,w=r.forceCSS,R=parseFloat(s),E=parseFloat(a),A,C,I,$,N;u=parseFloat(u),c=parseFloat(c),h=parseFloat(h),h&&(h=parseFloat(h),c+=h,u+=h),u||c?(u*=hl,c*=hl,A=Math.cos(u)*l,C=Math.sin(u)*l,I=Math.sin(u-c)*-d,$=Math.cos(u-c)*d,c&&(h*=hl,N=Math.tan(c-h),N=Math.sqrt(1+N*N),I*=N,$*=N,h&&(N=Math.tan(h),N=Math.sqrt(1+N*N),A*=N,C*=N)),A=Dn(A),C=Dn(C),I=Dn(I),$=Dn($)):(A=l,$=d,C=I=0),(R&&!~(s+"").indexOf("px")||E&&!~(a+"").indexOf("px"))&&(R=Os(f,"x",s,"px"),E=Os(f,"y",a,"px")),(_||p||b||y)&&(R=Dn(R+_-(_*A+p*I)+b),E=Dn(E+p-(_*C+p*$)+y)),(i||o)&&(N=f.getBBox(),R=Dn(R+i/100*N.width),E=Dn(E+o/100*N.height)),N="matrix("+A+","+C+","+I+","+$+","+R+","+E+")",f.setAttribute("transform",N),w&&(f.style[Rn]=N)},bL=function(e,n,r,i,o){var s=360,a=ur(o),u=parseFloat(o)*(a&&~o.indexOf("rad")?Zs:1),c=u-i,h=i+c+"deg",l,d;return a&&(l=o.split("_")[1],l==="short"&&(c%=s,c!==c%(s/2)&&(c+=c<0?s:-s)),l==="cw"&&c<0?c=(c+s*K0)%s-~~(c/s)*s:l==="ccw"&&c>0&&(c=(c-s*K0)%s-~~(c/s)*s)),e._pt=d=new Zr(e._pt,n,r,i,c,rL),d.e=h,d.u="deg",e._props.push(r),d},ny=function(e,n){for(var r in n)e[r]=n[r];return e},wL=function(e,n,r){var i=ny({},r._gsap),o="perspective,force3D,transformOrigin,svgOrigin",s=r.style,a,u,c,h,l,d,f,_;i.svg?(c=r.getAttribute("transform"),r.setAttribute("transform",""),s[Rn]=n,a=hc(r,1),ka(r,Rn),r.setAttribute("transform",c)):(c=getComputedStyle(r)[Rn],s[Rn]=n,a=hc(r,1),s[Rn]=c);for(u in Zo)c=i[u],h=a[u],c!==h&&o.indexOf(u)<0&&(f=Er(c),_=Er(h),l=f!==_?Os(r,u,c,_):parseFloat(c),d=parseFloat(h),e._pt=new Zr(e._pt,a,u,l,d-l,fm),e._pt.u=_||0,e._props.push(u));ny(a,i)};Jr("padding,margin,Width,Radius",function(t,e){var n="Top",r="Right",i="Bottom",o="Left",s=(e<3?[n,r,i,o]:[n+o,n+r,i+r,i+o]).map(function(a){return e<2?t+a:"border"+a+t});kd[e>1?"border"+t:t]=function(a,u,c,h,l){var d,f;if(arguments.length<4)return d=s.map(function(_){return Do(a,_,c)}),f=d.join(" "),f.split(d[0]).length===5?d[0]:f;d=(h+"").split(" "),f={},s.forEach(function(_,p){return f[_]=d[p]=d[p]||d[(p-1)/2|0]}),a.init(u,f,l)}});var KS={name:"css",register:hm,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,r,i,o){var s=this._props,a=e.style,u=r.vars.startAt,c,h,l,d,f,_,p,b,y,w,R,E,A,C,I,$;Gg||hm(),this.styles=this.styles||US(e),$=this.styles.props,this.tween=r;for(p in n)if(p!=="autoRound"&&(h=n[p],!(ui[p]&&IS(p,n,r,i,e,o)))){if(f=typeof h,_=kd[p],f==="function"&&(h=h.call(r,i,e,o),f=typeof h),f==="string"&&~h.indexOf("random(")&&(h=uc(h)),_)_(this,e,p,h,r)&&(I=1);else if(p.substr(0,2)==="--")c=(getComputedStyle(e).getPropertyValue(p)+"").trim(),h+="",As.lastIndex=0,As.test(c)||(b=Er(c),y=Er(h)),y?b!==y&&(c=Os(e,p,c,y)+y):b&&(h+=b),this.add(a,"setProperty",c,h,i,o,0,0,p),s.push(p),$.push(p,0,a[p]);else if(f!=="undefined"){if(u&&p in u?(c=typeof u[p]=="function"?u[p].call(r,i,e,o):u[p],ur(c)&&~c.indexOf("random(")&&(c=uc(c)),Er(c+"")||c==="auto"||(c+=mi.units[p]||Er(Do(e,p))||""),(c+"").charAt(1)==="="&&(c=Do(e,p))):c=Do(e,p),d=parseFloat(c),w=f==="string"&&h.charAt(1)==="="&&h.substr(0,2),w&&(h=h.substr(2)),l=parseFloat(h),p in po&&(p==="autoAlpha"&&(d===1&&Do(e,"visibility")==="hidden"&&l&&(d=0),$.push("visibility",0,a.visibility),bs(this,a,"visibility",d?"inherit":"hidden",l?"inherit":"hidden",!l)),p!=="scale"&&p!=="transform"&&(p=po[p],~p.indexOf(",")&&(p=p.split(",")[0]))),R=p in Zo,R){if(this.styles.save(p),f==="string"&&h.substring(0,6)==="var(--"&&(h=Ii(e,h.substring(4,h.indexOf(")"))),l=parseFloat(h)),E||(A=e._gsap,A.renderTransform&&!n.parseTransform||hc(e,n.parseTransform),C=n.smoothOrigin!==!1&&A.smooth,E=this._pt=new Zr(this._pt,a,Rn,0,1,A.renderTransform,A,0,-1),E.dep=1),p==="scale")this._pt=new Zr(this._pt,A,"scaleY",A.scaleY,(w?fl(A.scaleY,w+l):l)-A.scaleY||0,fm),this._pt.u=0,s.push("scaleY",p),p+="X";else if(p==="transformOrigin"){$.push(ei,0,a[ei]),h=gL(h),A.svg?pm(e,h,0,C,0,this):(y=parseFloat(h.split(" ")[2])||0,y!==A.zOrigin&&bs(this,A,"zOrigin",A.zOrigin,y),bs(this,a,p,Ed(c),Ed(h)));continue}else if(p==="svgOrigin"){pm(e,h,1,C,0,this);continue}else if(p in zS){bL(this,A,p,d,w?fl(d,w+h):h);continue}else if(p==="smoothOrigin"){bs(this,A,"smooth",A.smooth,h);continue}else if(p==="force3D"){A[p]=h;continue}else if(p==="transform"){wL(this,h,e);continue}}else p in a||(p=xl(p)||p);if(R||(l||l===0)&&(d||d===0)&&!nL.test(h)&&p in a)b=(c+"").substr((d+"").length),l||(l=0),y=Er(h)||(p in mi.units?mi.units[p]:b),b!==y&&(d=Os(e,p,c,y)),this._pt=new Zr(this._pt,R?A:a,p,d,(w?fl(d,w+l):l)-d,!R&&(y==="px"||p==="zIndex")&&n.autoRound!==!1?oL:fm),this._pt.u=y||0,b!==y&&y!=="%"&&(this._pt.b=c,this._pt.r=iL);else if(p in a)mL.call(this,e,p,c,w?w+h:h);else if(p in e)this.add(e,p,c||e[p],w?w+h:h,i,o);else if(p!=="parseTransform"){Dg(p,h);continue}R||(p in a?$.push(p,0,a[p]):typeof e[p]=="function"?$.push(p,2,e[p]()):$.push(p,1,c||e[p])),s.push(p)}}I&&DS(this)},render:function(e,n){if(n.tween._time||!Yg())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:Do,aliases:po,getSetter:function(e,n,r){var i=po[n];return i&&i.indexOf(",")<0&&(n=i),n in Zo&&n!==ei&&(e._gsap.x||Do(e,"x"))?r&&Y0===r?n==="scale"?uL:lL:(Y0=r||{})&&(n==="scale"?cL:fL):e.style&&!Mg(e.style[n])?sL:~n.indexOf("-")?aL:qg(e,n)},core:{_removeProperty:ka,_getMatrix:Xg}};ii.utils.checkPrefix=xl;ii.core.getStyleSaver=US;(function(t,e,n,r){var i=Jr(t+","+e+","+n,function(o){Zo[o]=1});Jr(e,function(o){mi.units[o]="deg",zS[o]=1}),po[i[13]]=t+","+e,Jr(r,function(o){var s=o.split(":");po[s[1]]=i[s[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Jr("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){mi.units[t]="px"});ii.registerPlugin(KS);var Vn=ii.registerPlugin(KS)||ii;Vn.core.Tween;/*!
 * CSSRulePlugin 3.13.0
 * https://gsap.com
 *
 * @license Copyright 2008-2025, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license
 * @author: Jack Doyle, jack@greensock.com
*/var ws,mm,qf,Rd,XS=function(){return typeof window<"u"},QS=function(){return ws||XS()&&(ws=window.gsap)&&ws.registerPlugin&&ws},ry=function(){return mm||(JS(),Rd||console.warn("Please gsap.registerPlugin(CSSPlugin, CSSRulePlugin)")),mm},JS=function(e){ws=e||QS(),XS()&&(qf=document),ws&&(Rd=ws.plugins.css,Rd&&(mm=1))},gm={version:"3.13.0",name:"cssRule",init:function(e,n,r,i,o){if(!ry()||typeof e.cssText>"u")return!1;var s=e._gsProxy=e._gsProxy||qf.createElement("div");this.ss=e,this.style=s.style,s.style.cssText=e.cssText,Rd.prototype.init.call(this,s,n,r,i,o)},render:function(e,n){for(var r=n._pt,i=n.style,o=n.ss,s;r;)r.r(e,r.d),r=r._next;for(s=i.length;--s>-1;)o[i[s]]=i[i[s]]},getRule:function(e){ry();var n=qf.all?"rules":"cssRules",r=qf.styleSheets,i=r.length,o=e.charAt(0)===":",s,a,u,c;for(e=(o?"":",")+e.split("::").join(":").toLowerCase()+",",o&&(c=[]);i--;){try{if(a=r[i][n],!a)continue;s=a.length}catch(h){console.warn(h);continue}for(;--s>-1;)if(u=a[s],u.selectorText&&(","+u.selectorText.split("::").join(":").toLowerCase()+",").indexOf(e)!==-1)if(o)c.push(u.style);else return u.style}return c},register:JS};QS()&&ws.registerPlugin(gm);/*!
 * paths 3.13.0
 * https://gsap.com
 *
 * Copyright 2008-2025, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license
 * @author: Jack Doyle, jack@greensock.com
*/var SL=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,TL=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig,kL=Math.PI/180,df=Math.sin,hf=Math.cos,Nu=Math.abs,au=Math.sqrt,EL=function(e){return typeof e=="number"},iy=1e5,ls=function(e){return Math.round(e*iy)/iy||0};function RL(t,e,n,r,i,o,s){for(var a=t.length,u,c,h,l,d;--a>-1;)for(u=t[a],c=u.length,h=0;h<c;h+=2)l=u[h],d=u[h+1],u[h]=l*e+d*r+o,u[h+1]=l*n+d*i+s;return t._dirty=1,t}function AL(t,e,n,r,i,o,s,a,u){if(!(t===a&&e===u)){n=Nu(n),r=Nu(r);var c=i%360*kL,h=hf(c),l=df(c),d=Math.PI,f=d*2,_=(t-a)/2,p=(e-u)/2,b=h*_+l*p,y=-l*_+h*p,w=b*b,R=y*y,E=w/(n*n)+R/(r*r);E>1&&(n=au(E)*n,r=au(E)*r);var A=n*n,C=r*r,I=(A*C-A*R-C*w)/(A*R+C*w);I<0&&(I=0);var $=(o===s?-1:1)*au(I),N=$*(n*y/r),W=$*-(r*b/n),ne=(t+a)/2,F=(e+u)/2,Q=ne+(h*N-l*W),M=F+(l*N+h*W),H=(b-N)/n,B=(y-W)/r,U=(-b-N)/n,oe=(-y-W)/r,le=H*H+B*B,q=(B<0?-1:1)*Math.acos(H/au(le)),be=(H*oe-B*U<0?-1:1)*Math.acos((H*U+B*oe)/au(le*(U*U+oe*oe)));isNaN(be)&&(be=d),!s&&be>0?be-=f:s&&be<0&&(be+=f),q%=f,be%=f;var ke=Math.ceil(Nu(be)/(f/4)),Se=[],ae=be/ke,fe=4/3*df(ae/2)/(1+hf(ae/2)),_e=h*n,te=l*n,ue=l*-r,ge=h*r,we;for(we=0;we<ke;we++)i=q+we*ae,b=hf(i),y=df(i),H=hf(i+=ae),B=df(i),Se.push(b-fe*y,y+fe*b,H+fe*B,B-fe*H,H,B);for(we=0;we<Se.length;we+=2)b=Se[we],y=Se[we+1],Se[we]=b*_e+y*ue+Q,Se[we+1]=b*te+y*ge+M;return Se[we-2]=a,Se[we-1]=u,Se}}function CL(t){var e=(t+"").replace(TL,function(N){var W=+N;return W<1e-4&&W>-1e-4?0:W}).match(SL)||[],n=[],r=0,i=0,o=2/3,s=e.length,a=0,u="ERROR: malformed path: "+t,c,h,l,d,f,_,p,b,y,w,R,E,A,C,I,$=function(W,ne,F,Q){w=(F-W)/3,R=(Q-ne)/3,p.push(W+w,ne+R,F-w,Q-R,F,Q)};if(!t||!isNaN(e[0])||isNaN(e[1]))return n;for(c=0;c<s;c++)if(A=f,isNaN(e[c])?(f=e[c].toUpperCase(),_=f!==e[c]):c--,l=+e[c+1],d=+e[c+2],_&&(l+=r,d+=i),c||(b=l,y=d),f==="M")p&&(p.length<8?n.length-=1:a+=p.length),r=b=l,i=y=d,p=[l,d],n.push(p),c+=2,f="L";else if(f==="C")p||(p=[0,0]),_||(r=i=0),p.push(l,d,r+e[c+3]*1,i+e[c+4]*1,r+=e[c+5]*1,i+=e[c+6]*1),c+=6;else if(f==="S")w=r,R=i,(A==="C"||A==="S")&&(w+=r-p[p.length-4],R+=i-p[p.length-3]),_||(r=i=0),p.push(w,R,l,d,r+=e[c+3]*1,i+=e[c+4]*1),c+=4;else if(f==="Q")w=r+(l-r)*o,R=i+(d-i)*o,_||(r=i=0),r+=e[c+3]*1,i+=e[c+4]*1,p.push(w,R,r+(l-r)*o,i+(d-i)*o,r,i),c+=4;else if(f==="T")w=r-p[p.length-4],R=i-p[p.length-3],p.push(r+w,i+R,l+(r+w*1.5-l)*o,d+(i+R*1.5-d)*o,r=l,i=d),c+=2;else if(f==="H")$(r,i,r=l,i),c+=1;else if(f==="V")$(r,i,r,i=l+(_?i-r:0)),c+=1;else if(f==="L"||f==="Z")f==="Z"&&(l=b,d=y,p.closed=!0),(f==="L"||Nu(r-l)>.5||Nu(i-d)>.5)&&($(r,i,l,d),f==="L"&&(c+=2)),r=l,i=d;else if(f==="A"){if(C=e[c+4],I=e[c+5],w=e[c+6],R=e[c+7],h=7,C.length>1&&(C.length<3?(R=w,w=I,h--):(R=I,w=C.substr(2),h-=2),I=C.charAt(1),C=C.charAt(0)),E=AL(r,i,+e[c+1],+e[c+2],+e[c+3],+C,+I,(_?r:0)+w*1,(_?i:0)+R*1),c+=h,E)for(h=0;h<E.length;h++)p.push(E[h]);r=p[p.length-2],i=p[p.length-1]}return c=p.length,c<6?(n.pop(),c=0):p[0]===p[c-2]&&p[1]===p[c-1]&&(p.closed=!0),n.totalPoints=a+c,n}function xL(t){EL(t[0])&&(t=[t]);var e="",n=t.length,r,i,o,s;for(i=0;i<n;i++){for(s=t[i],e+="M"+ls(s[0])+","+ls(s[1])+" C",r=s.length,o=2;o<r;o++)e+=ls(s[o++])+","+ls(s[o++])+" "+ls(s[o++])+","+ls(s[o++])+" "+ls(s[o++])+","+ls(s[o])+" ";s.closed&&(e+="z")}return e}/*!
 * CustomEase 3.13.0
 * https://gsap.com
 *
 * @license Copyright 2008-2025, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license
 * @author: Jack Doyle, jack@greensock.com
*/var Kr,ZS,eT=function(){return Kr||typeof window<"u"&&(Kr=window.gsap)&&Kr.registerPlugin&&Kr},oy=function(){Kr=eT(),Kr?(Kr.registerEase("_CE",Pl.create),ZS=1):console.warn("Please gsap.registerPlugin(CustomEase)")},PL=1e20,pf=function(e){return~~(e*1e3+(e<0?-.5:.5))/1e3},IL=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi,LL=/[cLlsSaAhHvVtTqQ]/g,OL=function(e){var n=e.length,r=PL,i;for(i=1;i<n;i+=6)+e[i]<r&&(r=+e[i]);return r},ML=function(e,n,r){!r&&r!==0&&(r=Math.max(+e[e.length-1],+e[1]));var i=+e[0]*-1,o=-r,s=e.length,a=1/(+e[s-2]+i),u=-n||(Math.abs(+e[s-1]-+e[1])<.01*(+e[s-2]-+e[0])?OL(e)+o:+e[s-1]+o),c;for(u?u=1/u:u=-a,c=0;c<s;c+=2)e[c]=(+e[c]+i)*a,e[c+1]=(+e[c+1]+o)*u},$L=function t(e,n,r,i,o,s,a,u,c,h,l){var d=(e+r)/2,f=(n+i)/2,_=(r+o)/2,p=(i+s)/2,b=(o+a)/2,y=(s+u)/2,w=(d+_)/2,R=(f+p)/2,E=(_+b)/2,A=(p+y)/2,C=(w+E)/2,I=(R+A)/2,$=a-e,N=u-n,W=Math.abs((r-a)*N-(i-u)*$),ne=Math.abs((o-a)*N-(s-u)*$),F;return h||(h=[{x:e,y:n},{x:a,y:u}],l=1),h.splice(l||h.length-1,0,{x:C,y:I}),(W+ne)*(W+ne)>c*($*$+N*N)&&(F=h.length,t(e,n,d,f,w,R,C,I,c,h,l),t(C,I,E,A,b,y,a,u,c,h,l+1+(h.length-F))),h},Pl=function(){function t(n,r,i){ZS||oy(),this.id=n,this.setData(r,i)}var e=t.prototype;return e.setData=function(r,i){i=i||{},r=r||"0,0,1,1";var o=r.match(IL),s=1,a=[],u=[],c=i.precision||1,h=c<=1,l,d,f,_,p,b,y,w,R;if(this.data=r,(LL.test(r)||~r.indexOf("M")&&r.indexOf("C")<0)&&(o=CL(r)[0]),l=o.length,l===4)o.unshift(0,0),o.push(1,1),l=8;else if((l-2)%6)throw"Invalid CustomEase";for((+o[0]!=0||+o[l-2]!=1)&&ML(o,i.height,i.originY),this.segment=o,_=2;_<l;_+=6)d={x:+o[_-2],y:+o[_-1]},f={x:+o[_+4],y:+o[_+5]},a.push(d,f),$L(d.x,d.y,+o[_],+o[_+1],+o[_+2],+o[_+3],f.x,f.y,1/(c*2e5),a,a.length-1);for(l=a.length,_=0;_<l;_++)y=a[_],w=a[_-1]||y,(y.x>w.x||w.y!==y.y&&w.x===y.x||y===w)&&y.x<=1?(w.cx=y.x-w.x,w.cy=y.y-w.y,w.n=y,w.nx=y.x,h&&_>1&&Math.abs(w.cy/w.cx-a[_-2].cy/a[_-2].cx)>2&&(h=0),w.cx<s&&(w.cx?s=w.cx:(w.cx=.001,_===l-1&&(w.x-=.001,s=Math.min(s,.001),h=0)))):(a.splice(_--,1),l--);if(l=1/s+1|0,p=1/l,b=0,y=a[0],h){for(_=0;_<l;_++)R=_*p,y.nx<R&&(y=a[++b]),d=y.y+(R-y.x)/y.cx*y.cy,u[_]={x:R,cx:p,y:d,cy:0,nx:9},_&&(u[_-1].cy=d-u[_-1].y);b=a[a.length-1],u[l-1].cy=b.y-d,u[l-1].cx=b.x-u[u.length-1].x}else{for(_=0;_<l;_++)y.nx<_*p&&(y=a[++b]),u[_]=y;b<a.length-1&&(u[_-1]=a[a.length-2])}return this.ease=function(E){var A=u[E*l|0]||u[l-1];return A.nx<E&&(A=A.n),A.y+(E-A.x)/A.cx*A.cy},this.ease.custom=this,this.id&&Kr&&Kr.registerEase(this.id,this.ease),this},e.getSVGData=function(r){return t.getSVGData(this,r)},t.create=function(r,i,o){return new t(r,i,o).ease},t.register=function(r){Kr=r,oy()},t.get=function(r){return Kr.parseEase(r)},t.getSVGData=function(r,i){i=i||{};var o=i.width||100,s=i.height||100,a=i.x||0,u=(i.y||0)+s,c=Kr.utils.toArray(i.path)[0],h,l,d,f,_,p,b,y,w,R;if(i.invert&&(s=-s,u=0),typeof r=="string"&&(r=Kr.parseEase(r)),r.custom&&(r=r.custom),r instanceof t)h=xL(RL([r.segment],o,0,0,-s,a,u));else{for(h=[a,u],b=Math.max(5,(i.precision||1)*200),f=1/b,b+=2,y=5/b,w=pf(a+f*o),R=pf(u+r(f)*-s),l=(R-u)/(w-a),d=2;d<b;d++)_=pf(a+d*f*o),p=pf(u+r(d*f)*-s),(Math.abs((p-R)/(_-w)-l)>y||d===b-1)&&(h.push(w,R),l=(p-R)/(_-w)),w=_,R=p;h="M"+h.join(",")}return c&&c.setAttribute("d",h),h},t}();Pl.version="3.13.0";Pl.headless=!0;eT()&&Kr.registerPlugin(Pl);/*!
 * SplitText 3.13.0
 * https://gsap.com
 *
 * @license Copyright 2025, GreenSock. All rights reserved. Subject to the terms at https://gsap.com/standard-license.
 * @author: Jack Doyle
 */let lu,qa,_m,FL=()=>_m||bm.register(window.gsap),sy=typeof Intl<"u"?new Intl.Segmenter:0,Ad=t=>typeof t=="string"?Ad(document.querySelectorAll(t)):"length"in t?Array.from(t):[t],ay=t=>Ad(t).filter(e=>e instanceof HTMLElement),vm=[],up=function(){},DL=/\s+/g,ly=new RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*|.","gu"),uy={left:0,top:0,width:0,height:0},cy=(t,e)=>{if(e){let n=new Set(t.join("").match(e)||vm),r=t.length,i,o,s,a;if(n.size)for(;--r>-1;){o=t[r];for(s of n)if(s.startsWith(o)&&s.length>o.length){for(i=0,a=o;s.startsWith(a+=t[r+ ++i])&&a.length<s.length;);if(i&&a.length===s.length){t[r]=s,t.splice(r+1,i);break}}}}return t},fy=t=>window.getComputedStyle(t).display==="inline"&&(t.style.display="inline-block"),za=(t,e,n)=>e.insertBefore(typeof t=="string"?document.createTextNode(t):t,n),ym=(t,e,n)=>{let r=e[t+"sClass"]||"",{tag:i="div",aria:o="auto",propIndex:s=!1}=e,a=t==="line"?"block":"inline-block",u=r.indexOf("++")>-1,c=h=>{let l=document.createElement(i),d=n.length+1;return r&&(l.className=r+(u?" "+r+d:"")),s&&l.style.setProperty("--"+t,d+""),o!=="none"&&l.setAttribute("aria-hidden","true"),i!=="span"&&(l.style.position="relative",l.style.display=a),l.textContent=h,n.push(l),l};return u&&(r=r.replace("++","")),c.collection=n,c},NL=(t,e,n,r)=>{let i=ym("line",n,r),o=window.getComputedStyle(t).textAlign||"left";return(s,a)=>{let u=i("");for(u.style.textAlign=o,t.insertBefore(u,e[s]);s<a;s++)u.appendChild(e[s]);u.normalize()}},tT=(t,e,n,r,i,o,s,a,u,c)=>{var h;let l=Array.from(t.childNodes),d=0,{wordDelimiter:f,reduceWhiteSpace:_=!0,prepareText:p}=e,b=t.getBoundingClientRect(),y=b,w=!_&&window.getComputedStyle(t).whiteSpace.substring(0,3)==="pre",R=0,E=n.collection,A,C,I,$,N,W,ne,F,Q,M,H,B,U,oe,le,q,be,ke;for(typeof f=="object"?(I=f.delimiter||f,C=f.replaceWith||""):C=f===""?"":f||" ",A=C!==" ";d<l.length;d++)if($=l[d],$.nodeType===3){for(le=$.textContent||"",_?le=le.replace(DL," "):w&&(le=le.replace(/\n/g,C+`
`)),p&&(le=p(le,t)),$.textContent=le,N=C||I?le.split(I||C):le.match(a)||vm,be=N[N.length-1],F=A?be.slice(-1)===" ":!be,be||N.pop(),y=b,ne=A?N[0].charAt(0)===" ":!N[0],ne&&za(" ",t,$),N[0]||N.shift(),cy(N,u),o&&c||($.textContent=""),Q=1;Q<=N.length;Q++)if(q=N[Q-1],!_&&w&&q.charAt(0)===`
`&&((h=$.previousSibling)==null||h.remove(),za(document.createElement("br"),t,$),q=q.slice(1)),!_&&q==="")za(C,t,$);else if(q===" ")t.insertBefore(document.createTextNode(" "),$);else{if(A&&q.charAt(0)===" "&&za(" ",t,$),R&&Q===1&&!ne&&E.indexOf(R.parentNode)>-1?(W=E[E.length-1],W.appendChild(document.createTextNode(r?"":q))):(W=n(r?"":q),za(W,t,$),R&&Q===1&&!ne&&W.insertBefore(R,W.firstChild)),r)for(H=sy?cy([...sy.segment(q)].map(Se=>Se.segment),u):q.match(a)||vm,ke=0;ke<H.length;ke++)W.appendChild(H[ke]===" "?document.createTextNode(" "):r(H[ke]));if(o&&c){if(le=$.textContent=le.substring(q.length+1,le.length),M=W.getBoundingClientRect(),M.top>y.top&&M.left<=y.left){for(B=t.cloneNode(),U=t.childNodes[0];U&&U!==W;)oe=U,U=U.nextSibling,B.appendChild(oe);t.parentNode.insertBefore(B,t),i&&fy(B)}y=M}(Q<N.length||F)&&za(Q>=N.length?" ":A&&q.slice(-1)===" "?" "+C:C,t,$)}t.removeChild($),R=0}else $.nodeType===1&&(s&&s.indexOf($)>-1?(E.indexOf($.previousSibling)>-1&&E[E.length-1].appendChild($),R=$):(tT($,e,n,r,i,o,s,a,u,!0),R=0),i&&fy($))};const nT=class rT{constructor(e,n){this.isSplit=!1,FL(),this.elements=ay(e),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=n,this._split=()=>this.isSplit&&this.split(this.vars);let r=[],i,o=()=>{let s=r.length,a;for(;s--;){a=r[s];let u=a.element.offsetWidth;if(u!==a.width){a.width=u,this._split();return}}};this._data={orig:r,obs:typeof ResizeObserver<"u"&&new ResizeObserver(()=>{clearTimeout(i),i=setTimeout(o,200)})},up(this),this.split(n)}split(e){this.isSplit&&this.revert(),this.vars=e=e||this.vars||{};let{type:n="chars,words,lines",aria:r="auto",deepSlice:i=!0,smartWrap:o,onSplit:s,autoSplit:a=!1,specialChars:u,mask:c}=this.vars,h=n.indexOf("lines")>-1,l=n.indexOf("chars")>-1,d=n.indexOf("words")>-1,f=l&&!d&&!h,_=u&&("push"in u?new RegExp("(?:"+u.join("|")+")","gu"):u),p=_?new RegExp(_.source+"|"+ly.source,"gu"):ly,b=!!e.ignore&&ay(e.ignore),{orig:y,animTime:w,obs:R}=this._data,E;return(l||d||h)&&(this.elements.forEach((A,C)=>{y[C]={element:A,html:A.innerHTML,ariaL:A.getAttribute("aria-label"),ariaH:A.getAttribute("aria-hidden")},r==="auto"?A.setAttribute("aria-label",(A.textContent||"").trim()):r==="hidden"&&A.setAttribute("aria-hidden","true");let I=[],$=[],N=[],W=l?ym("char",e,I):null,ne=ym("word",e,$),F,Q,M,H;if(tT(A,e,ne,W,f,i&&(h||f),b,p,_,!1),h){let B=Ad(A.childNodes),U=NL(A,B,e,N),oe,le=[],q=0,be=B.map(Se=>Se.nodeType===1?Se.getBoundingClientRect():uy),ke=uy;for(F=0;F<B.length;F++)oe=B[F],oe.nodeType===1&&(oe.nodeName==="BR"?(le.push(oe),U(q,F+1),q=F+1,ke=be[q]):(F&&be[F].top>ke.top&&be[F].left<=ke.left&&(U(q,F),q=F),ke=be[F]));q<F&&U(q,F),le.forEach(Se=>{var ae;return(ae=Se.parentNode)==null?void 0:ae.removeChild(Se)})}if(!d){for(F=0;F<$.length;F++)if(Q=$[F],l||!Q.nextSibling||Q.nextSibling.nodeType!==3)if(o&&!h){for(M=document.createElement("span"),M.style.whiteSpace="nowrap";Q.firstChild;)M.appendChild(Q.firstChild);Q.replaceWith(M)}else Q.replaceWith(...Q.childNodes);else H=Q.nextSibling,H&&H.nodeType===3&&(H.textContent=(Q.textContent||"")+(H.textContent||""),Q.remove());$.length=0,A.normalize()}this.lines.push(...N),this.words.push(...$),this.chars.push(...I)}),c&&this[c]&&this.masks.push(...this[c].map(A=>{let C=A.cloneNode();return A.replaceWith(C),C.appendChild(A),A.className&&(C.className=A.className.replace(/(\b\w+\b)/g,"$1-mask")),C.style.overflow="clip",C}))),this.isSplit=!0,qa&&(a?qa.addEventListener("loadingdone",this._split):qa.status==="loading"&&console.warn("SplitText called before fonts loaded")),(E=s&&s(this))&&E.totalTime&&(this._data.anim=w?E.totalTime(w):E),h&&a&&this.elements.forEach((A,C)=>{y[C].width=A.offsetWidth,R&&R.observe(A)}),this}revert(){var e,n;let{orig:r,anim:i,obs:o}=this._data;return o&&o.disconnect(),r.forEach(({element:s,html:a,ariaL:u,ariaH:c})=>{s.innerHTML=a,u?s.setAttribute("aria-label",u):s.removeAttribute("aria-label"),c?s.setAttribute("aria-hidden",c):s.removeAttribute("aria-hidden")}),this.chars.length=this.words.length=this.lines.length=r.length=this.masks.length=0,this.isSplit=!1,qa==null||qa.removeEventListener("loadingdone",this._split),i&&(this._data.animTime=i.totalTime(),i.revert()),(n=(e=this.vars).onRevert)==null||n.call(e,this),this}static create(e,n){return new rT(e,n)}static register(e){lu=lu||e||window.gsap,lu&&(Ad=lu.utils.toArray,up=lu.core.context||up),!_m&&window.innerWidth>0&&(qa=document.fonts,_m=!0)}};nT.version="3.13.0";let bm=nT;function HL(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function BL(t,e,n){return e&&HL(t.prototype,e),t}/*!
 * Observer 3.13.0
 * https://gsap.com
 *
 * @license Copyright 2008-2025, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license
 * @author: Jack Doyle, jack@greensock.com
*/var hr,zf,di,Ss,Ts,pl,iT,ea,Hu,oT,jo,ji,sT,aT=function(){return hr||typeof window<"u"&&(hr=window.gsap)&&hr.registerPlugin&&hr},lT=1,ol=[],It=[],bo=[],Bu=Date.now,wm=function(e,n){return n},VL=function(){var e=Hu.core,n=e.bridge||{},r=e._scrollers,i=e._proxies;r.push.apply(r,It),i.push.apply(i,bo),It=r,bo=i,wm=function(s,a){return n[s](a)}},Cs=function(e,n){return~bo.indexOf(e)&&bo[bo.indexOf(e)+1][n]},Vu=function(e){return!!~oT.indexOf(e)},Mr=function(e,n,r,i,o){return e.addEventListener(n,r,{passive:i!==!1,capture:!!o})},Lr=function(e,n,r,i){return e.removeEventListener(n,r,!!i)},mf="scrollLeft",gf="scrollTop",Sm=function(){return jo&&jo.isPressed||It.cache++},Cd=function(e,n){var r=function i(o){if(o||o===0){lT&&(di.history.scrollRestoration="manual");var s=jo&&jo.isPressed;o=i.v=Math.round(o)||(jo&&jo.iOS?1:0),e(o),i.cacheID=It.cache,s&&wm("ss",o)}else(n||It.cache!==i.cacheID||wm("ref"))&&(i.cacheID=It.cache,i.v=e());return i.v+i.offset};return r.offset=0,e&&r},jr={s:mf,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Cd(function(t){return arguments.length?di.scrollTo(t,Jn.sc()):di.pageXOffset||Ss[mf]||Ts[mf]||pl[mf]||0})},Jn={s:gf,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:jr,sc:Cd(function(t){return arguments.length?di.scrollTo(jr.sc(),t):di.pageYOffset||Ss[gf]||Ts[gf]||pl[gf]||0})},Yr=function(e,n){return(n&&n._ctx&&n._ctx.selector||hr.utils.toArray)(e)[0]||(typeof e=="string"&&hr.config().nullTargetWarn!==!1?console.warn("Element not found:",e):null)},UL=function(e,n){for(var r=n.length;r--;)if(n[r]===e||n[r].contains(e))return!0;return!1},Ms=function(e,n){var r=n.s,i=n.sc;Vu(e)&&(e=Ss.scrollingElement||Ts);var o=It.indexOf(e),s=i===Jn.sc?1:2;!~o&&(o=It.push(e)-1),It[o+s]||Mr(e,"scroll",Sm);var a=It[o+s],u=a||(It[o+s]=Cd(Cs(e,r),!0)||(Vu(e)?i:Cd(function(c){return arguments.length?e[r]=c:e[r]})));return u.target=e,a||(u.smooth=hr.getProperty(e,"scrollBehavior")==="smooth"),u},Tm=function(e,n,r){var i=e,o=e,s=Bu(),a=s,u=n||50,c=Math.max(500,u*3),h=function(_,p){var b=Bu();p||b-s>u?(o=i,i=_,a=s,s=b):r?i+=_:i=o+(_-o)/(b-a)*(s-a)},l=function(){o=i=r?0:i,a=s=0},d=function(_){var p=a,b=o,y=Bu();return(_||_===0)&&_!==i&&h(_),s===a||y-a>c?0:(i+(r?b:-b))/((r?y:s)-p)*1e3};return{update:h,reset:l,getVelocity:d}},uu=function(e,n){return n&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},dy=function(e){var n=Math.max.apply(Math,e),r=Math.min.apply(Math,e);return Math.abs(n)>=Math.abs(r)?n:r},uT=function(){Hu=hr.core.globals().ScrollTrigger,Hu&&Hu.core&&VL()},cT=function(e){return hr=e||aT(),!zf&&hr&&typeof document<"u"&&document.body&&(di=window,Ss=document,Ts=Ss.documentElement,pl=Ss.body,oT=[di,Ss,Ts,pl],hr.utils.clamp,sT=hr.core.context||function(){},ea="onpointerenter"in pl?"pointer":"mouse",iT=Nn.isTouch=di.matchMedia&&di.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in di||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,ji=Nn.eventTypes=("ontouchstart"in Ts?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Ts?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return lT=0},500),uT(),zf=1),zf};jr.op=Jn;It.cache=0;var Nn=function(){function t(n){this.init(n)}var e=t.prototype;return e.init=function(r){zf||cT(hr)||console.warn("Please gsap.registerPlugin(Observer)"),Hu||uT();var i=r.tolerance,o=r.dragMinimum,s=r.type,a=r.target,u=r.lineHeight,c=r.debounce,h=r.preventDefault,l=r.onStop,d=r.onStopDelay,f=r.ignore,_=r.wheelSpeed,p=r.event,b=r.onDragStart,y=r.onDragEnd,w=r.onDrag,R=r.onPress,E=r.onRelease,A=r.onRight,C=r.onLeft,I=r.onUp,$=r.onDown,N=r.onChangeX,W=r.onChangeY,ne=r.onChange,F=r.onToggleX,Q=r.onToggleY,M=r.onHover,H=r.onHoverEnd,B=r.onMove,U=r.ignoreCheck,oe=r.isNormalizer,le=r.onGestureStart,q=r.onGestureEnd,be=r.onWheel,ke=r.onEnable,Se=r.onDisable,ae=r.onClick,fe=r.scrollSpeed,_e=r.capture,te=r.allowClicks,ue=r.lockAxis,ge=r.onLockAxis;this.target=a=Yr(a)||Ts,this.vars=r,f&&(f=hr.utils.toArray(f)),i=i||1e-9,o=o||0,_=_||1,fe=fe||1,s=s||"wheel,touch,pointer",c=c!==!1,u||(u=parseFloat(di.getComputedStyle(pl).lineHeight)||22);var we,Ie,z,P,K,ee,X,x=this,G=0,L=0,D=r.passive||!h&&r.passive!==!1,Z=Ms(a,jr),me=Ms(a,Jn),de=Z(),S=me(),g=~s.indexOf("touch")&&!~s.indexOf("pointer")&&ji[0]==="pointerdown",T=Vu(a),V=a.ownerDocument||Ss,ie=[0,0,0],he=[0,0,0],Ee=0,Ne=function(){return Ee=Bu()},Pe=function(at,Mt){return(x.event=at)&&f&&UL(at.target,f)||Mt&&g&&at.pointerType!=="touch"||U&&U(at,Mt)},Ue=function(){x._vx.reset(),x._vy.reset(),Ie.pause(),l&&l(x)},Qe=function(){var at=x.deltaX=dy(ie),Mt=x.deltaY=dy(he),qe=Math.abs(at)>=i,dt=Math.abs(Mt)>=i;ne&&(qe||dt)&&ne(x,at,Mt,ie,he),qe&&(A&&x.deltaX>0&&A(x),C&&x.deltaX<0&&C(x),N&&N(x),F&&x.deltaX<0!=G<0&&F(x),G=x.deltaX,ie[0]=ie[1]=ie[2]=0),dt&&($&&x.deltaY>0&&$(x),I&&x.deltaY<0&&I(x),W&&W(x),Q&&x.deltaY<0!=L<0&&Q(x),L=x.deltaY,he[0]=he[1]=he[2]=0),(P||z)&&(B&&B(x),z&&(b&&z===1&&b(x),w&&w(x),z=0),P=!1),ee&&!(ee=!1)&&ge&&ge(x),K&&(be(x),K=!1),we=0},tt=function(at,Mt,qe){ie[qe]+=at,he[qe]+=Mt,x._vx.update(at),x._vy.update(Mt),c?we||(we=requestAnimationFrame(Qe)):Qe()},gt=function(at,Mt){ue&&!X&&(x.axis=X=Math.abs(at)>Math.abs(Mt)?"x":"y",ee=!0),X!=="y"&&(ie[2]+=at,x._vx.update(at,!0)),X!=="x"&&(he[2]+=Mt,x._vy.update(Mt,!0)),c?we||(we=requestAnimationFrame(Qe)):Qe()},_t=function(at){if(!Pe(at,1)){at=uu(at,h);var Mt=at.clientX,qe=at.clientY,dt=Mt-x.x,st=qe-x.y,Le=x.isDragging;x.x=Mt,x.y=qe,(Le||(dt||st)&&(Math.abs(x.startX-Mt)>=o||Math.abs(x.startY-qe)>=o))&&(z=Le?2:1,Le||(x.isDragging=!0),gt(dt,st))}},rn=x.onPress=function(ot){Pe(ot,1)||ot&&ot.button||(x.axis=X=null,Ie.pause(),x.isPressed=!0,ot=uu(ot),G=L=0,x.startX=x.x=ot.clientX,x.startY=x.y=ot.clientY,x._vx.reset(),x._vy.reset(),Mr(oe?a:V,ji[1],_t,D,!0),x.deltaX=x.deltaY=0,R&&R(x))},nt=x.onRelease=function(ot){if(!Pe(ot,1)){Lr(oe?a:V,ji[1],_t,!0);var at=!isNaN(x.y-x.startY),Mt=x.isDragging,qe=Mt&&(Math.abs(x.x-x.startX)>3||Math.abs(x.y-x.startY)>3),dt=uu(ot);!qe&&at&&(x._vx.reset(),x._vy.reset(),h&&te&&hr.delayedCall(.08,function(){if(Bu()-Ee>300&&!ot.defaultPrevented){if(ot.target.click)ot.target.click();else if(V.createEvent){var st=V.createEvent("MouseEvents");st.initMouseEvent("click",!0,!0,di,1,dt.screenX,dt.screenY,dt.clientX,dt.clientY,!1,!1,!1,!1,0,null),ot.target.dispatchEvent(st)}}})),x.isDragging=x.isGesturing=x.isPressed=!1,l&&Mt&&!oe&&Ie.restart(!0),z&&Qe(),y&&Mt&&y(x),E&&E(x,qe)}},jt=function(at){return at.touches&&at.touches.length>1&&(x.isGesturing=!0)&&le(at,x.isDragging)},Rt=function(){return(x.isGesturing=!1)||q(x)},pt=function(at){if(!Pe(at)){var Mt=Z(),qe=me();tt((Mt-de)*fe,(qe-S)*fe,1),de=Mt,S=qe,l&&Ie.restart(!0)}},Wt=function(at){if(!Pe(at)){at=uu(at,h),be&&(K=!0);var Mt=(at.deltaMode===1?u:at.deltaMode===2?di.innerHeight:1)*_;tt(at.deltaX*Mt,at.deltaY*Mt,0),l&&!oe&&Ie.restart(!0)}},Pn=function(at){if(!Pe(at)){var Mt=at.clientX,qe=at.clientY,dt=Mt-x.x,st=qe-x.y;x.x=Mt,x.y=qe,P=!0,l&&Ie.restart(!0),(dt||st)&&gt(dt,st)}},In=function(at){x.event=at,M(x)},Ke=function(at){x.event=at,H(x)},mt=function(at){return Pe(at)||uu(at,h)&&ae(x)};Ie=x._dc=hr.delayedCall(d||.25,Ue).pause(),x.deltaX=x.deltaY=0,x._vx=Tm(0,50,!0),x._vy=Tm(0,50,!0),x.scrollX=Z,x.scrollY=me,x.isDragging=x.isGesturing=x.isPressed=!1,sT(this),x.enable=function(ot){return x.isEnabled||(Mr(T?V:a,"scroll",Sm),s.indexOf("scroll")>=0&&Mr(T?V:a,"scroll",pt,D,_e),s.indexOf("wheel")>=0&&Mr(a,"wheel",Wt,D,_e),(s.indexOf("touch")>=0&&iT||s.indexOf("pointer")>=0)&&(Mr(a,ji[0],rn,D,_e),Mr(V,ji[2],nt),Mr(V,ji[3],nt),te&&Mr(a,"click",Ne,!0,!0),ae&&Mr(a,"click",mt),le&&Mr(V,"gesturestart",jt),q&&Mr(V,"gestureend",Rt),M&&Mr(a,ea+"enter",In),H&&Mr(a,ea+"leave",Ke),B&&Mr(a,ea+"move",Pn)),x.isEnabled=!0,x.isDragging=x.isGesturing=x.isPressed=P=z=!1,x._vx.reset(),x._vy.reset(),de=Z(),S=me(),ot&&ot.type&&rn(ot),ke&&ke(x)),x},x.disable=function(){x.isEnabled&&(ol.filter(function(ot){return ot!==x&&Vu(ot.target)}).length||Lr(T?V:a,"scroll",Sm),x.isPressed&&(x._vx.reset(),x._vy.reset(),Lr(oe?a:V,ji[1],_t,!0)),Lr(T?V:a,"scroll",pt,_e),Lr(a,"wheel",Wt,_e),Lr(a,ji[0],rn,_e),Lr(V,ji[2],nt),Lr(V,ji[3],nt),Lr(a,"click",Ne,!0),Lr(a,"click",mt),Lr(V,"gesturestart",jt),Lr(V,"gestureend",Rt),Lr(a,ea+"enter",In),Lr(a,ea+"leave",Ke),Lr(a,ea+"move",Pn),x.isEnabled=x.isPressed=x.isDragging=!1,Se&&Se(x))},x.kill=x.revert=function(){x.disable();var ot=ol.indexOf(x);ot>=0&&ol.splice(ot,1),jo===x&&(jo=0)},ol.push(x),oe&&Vu(a)&&(jo=x),x.enable(p)},BL(t,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),t}();Nn.version="3.13.0";Nn.create=function(t){return new Nn(t)};Nn.register=cT;Nn.getAll=function(){return ol.slice()};Nn.getById=function(t){return ol.filter(function(e){return e.vars.id===t})[0]};aT()&&hr.registerPlugin(Nn);/*!
 * ScrollTrigger 3.13.0
 * https://gsap.com
 *
 * @license Copyright 2008-2025, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license
 * @author: Jack Doyle, jack@greensock.com
*/var Ze,Ja,Pt,pn,ci,en,Qg,xd,pc,Uu,yu,_f,br,ch,km,Hr,hy,py,Za,fT,cp,dT,Nr,Em,hT,pT,ds,Rm,Jg,ml,Zg,Pd,Am,fp,vf=1,Sr=Date.now,dp=Sr(),$i=0,bu=0,my=function(e,n,r){var i=li(e)&&(e.substr(0,6)==="clamp("||e.indexOf("max")>-1);return r["_"+n+"Clamp"]=i,i?e.substr(6,e.length-7):e},gy=function(e,n){return n&&(!li(e)||e.substr(0,6)!=="clamp(")?"clamp("+e+")":e},jL=function t(){return bu&&requestAnimationFrame(t)},_y=function(){return ch=1},vy=function(){return ch=0},uo=function(e){return e},wu=function(e){return Math.round(e*1e5)/1e5||0},mT=function(){return typeof window<"u"},gT=function(){return Ze||mT()&&(Ze=window.gsap)&&Ze.registerPlugin&&Ze},Ea=function(e){return!!~Qg.indexOf(e)},_T=function(e){return(e==="Height"?Zg:Pt["inner"+e])||ci["client"+e]||en["client"+e]},vT=function(e){return Cs(e,"getBoundingClientRect")||(Ea(e)?function(){return Qf.width=Pt.innerWidth,Qf.height=Zg,Qf}:function(){return Bo(e)})},WL=function(e,n,r){var i=r.d,o=r.d2,s=r.a;return(s=Cs(e,"getBoundingClientRect"))?function(){return s()[i]}:function(){return(n?_T(o):e["client"+o])||0}},qL=function(e,n){return!n||~bo.indexOf(e)?vT(e):function(){return Qf}},mo=function(e,n){var r=n.s,i=n.d2,o=n.d,s=n.a;return Math.max(0,(r="scroll"+i)&&(s=Cs(e,r))?s()-vT(e)()[o]:Ea(e)?(ci[r]||en[r])-_T(i):e[r]-e["offset"+i])},yf=function(e,n){for(var r=0;r<Za.length;r+=3)(!n||~n.indexOf(Za[r+1]))&&e(Za[r],Za[r+1],Za[r+2])},li=function(e){return typeof e=="string"},Rr=function(e){return typeof e=="function"},Su=function(e){return typeof e=="number"},ta=function(e){return typeof e=="object"},cu=function(e,n,r){return e&&e.progress(n?0:1)&&r&&e.pause()},hp=function(e,n){if(e.enabled){var r=e._ctx?e._ctx.add(function(){return n(e)}):n(e);r&&r.totalTime&&(e.callbackAnimation=r)}},Ga=Math.abs,yT="left",bT="top",e_="right",t_="bottom",ma="width",ga="height",ju="Right",Wu="Left",qu="Top",zu="Bottom",Un="padding",Ai="margin",Il="Width",n_="Height",Qn="px",Ci=function(e){return Pt.getComputedStyle(e)},zL=function(e){var n=Ci(e).position;e.style.position=n==="absolute"||n==="fixed"?n:"relative"},yy=function(e,n){for(var r in n)r in e||(e[r]=n[r]);return e},Bo=function(e,n){var r=n&&Ci(e)[km]!=="matrix(1, 0, 0, 1, 0, 0)"&&Ze.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),i=e.getBoundingClientRect();return r&&r.progress(0).kill(),i},Id=function(e,n){var r=n.d2;return e["offset"+r]||e["client"+r]||0},wT=function(e){var n=[],r=e.labels,i=e.duration(),o;for(o in r)n.push(r[o]/i);return n},GL=function(e){return function(n){return Ze.utils.snap(wT(e),n)}},r_=function(e){var n=Ze.utils.snap(e),r=Array.isArray(e)&&e.slice(0).sort(function(i,o){return i-o});return r?function(i,o,s){s===void 0&&(s=.001);var a;if(!o)return n(i);if(o>0){for(i-=s,a=0;a<r.length;a++)if(r[a]>=i)return r[a];return r[a-1]}else for(a=r.length,i+=s;a--;)if(r[a]<=i)return r[a];return r[0]}:function(i,o,s){s===void 0&&(s=.001);var a=n(i);return!o||Math.abs(a-i)<s||a-i<0==o<0?a:n(o<0?i-e:i+e)}},YL=function(e){return function(n,r){return r_(wT(e))(n,r.direction)}},bf=function(e,n,r,i){return r.split(",").forEach(function(o){return e(n,o,i)})},or=function(e,n,r,i,o){return e.addEventListener(n,r,{passive:!i,capture:!!o})},ir=function(e,n,r,i){return e.removeEventListener(n,r,!!i)},wf=function(e,n,r){r=r&&r.wheelHandler,r&&(e(n,"wheel",r),e(n,"touchmove",r))},by={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Sf={toggleActions:"play",anticipatePin:0},Ld={top:0,left:0,center:.5,bottom:1,right:1},Gf=function(e,n){if(li(e)){var r=e.indexOf("="),i=~r?+(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;~r&&(e.indexOf("%")>r&&(i*=n/100),e=e.substr(0,r-1)),e=i+(e in Ld?Ld[e]*n:~e.indexOf("%")?parseFloat(e)*n/100:parseFloat(e)||0)}return e},Tf=function(e,n,r,i,o,s,a,u){var c=o.startColor,h=o.endColor,l=o.fontSize,d=o.indent,f=o.fontWeight,_=pn.createElement("div"),p=Ea(r)||Cs(r,"pinType")==="fixed",b=e.indexOf("scroller")!==-1,y=p?en:r,w=e.indexOf("start")!==-1,R=w?c:h,E="border-color:"+R+";font-size:"+l+";color:"+R+";font-weight:"+f+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return E+="position:"+((b||u)&&p?"fixed;":"absolute;"),(b||u||!p)&&(E+=(i===Jn?e_:t_)+":"+(s+parseFloat(d))+"px;"),a&&(E+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),_._isStart=w,_.setAttribute("class","gsap-marker-"+e+(n?" marker-"+n:"")),_.style.cssText=E,_.innerText=n||n===0?e+"-"+n:e,y.children[0]?y.insertBefore(_,y.children[0]):y.appendChild(_),_._offset=_["offset"+i.op.d2],Yf(_,0,i,w),_},Yf=function(e,n,r,i){var o={display:"block"},s=r[i?"os2":"p2"],a=r[i?"p2":"os2"];e._isFlipped=i,o[r.a+"Percent"]=i?-100:0,o[r.a]=i?"1px":0,o["border"+s+Il]=1,o["border"+a+Il]=0,o[r.p]=n+"px",Ze.set(e,o)},xt=[],Cm={},mc,wy=function(){return Sr()-$i>34&&(mc||(mc=requestAnimationFrame(Go)))},Ya=function(){(!Nr||!Nr.isPressed||Nr.startX>en.clientWidth)&&(It.cache++,Nr?mc||(mc=requestAnimationFrame(Go)):Go(),$i||Aa("scrollStart"),$i=Sr())},pp=function(){pT=Pt.innerWidth,hT=Pt.innerHeight},Tu=function(e){It.cache++,(e===!0||!br&&!dT&&!pn.fullscreenElement&&!pn.webkitFullscreenElement&&(!Em||pT!==Pt.innerWidth||Math.abs(Pt.innerHeight-hT)>Pt.innerHeight*.25))&&xd.restart(!0)},Ra={},KL=[],ST=function t(){return ir(Lt,"scrollEnd",t)||aa(!0)},Aa=function(e){return Ra[e]&&Ra[e].map(function(n){return n()})||KL},ai=[],TT=function(e){for(var n=0;n<ai.length;n+=5)(!e||ai[n+4]&&ai[n+4].query===e)&&(ai[n].style.cssText=ai[n+1],ai[n].getBBox&&ai[n].setAttribute("transform",ai[n+2]||""),ai[n+3].uncache=1)},i_=function(e,n){var r;for(Hr=0;Hr<xt.length;Hr++)r=xt[Hr],r&&(!n||r._ctx===n)&&(e?r.kill(1):r.revert(!0,!0));Pd=!0,n&&TT(n),n||Aa("revert")},kT=function(e,n){It.cache++,(n||!Br)&&It.forEach(function(r){return Rr(r)&&r.cacheID++&&(r.rec=0)}),li(e)&&(Pt.history.scrollRestoration=Jg=e)},Br,_a=0,Sy,XL=function(){if(Sy!==_a){var e=Sy=_a;requestAnimationFrame(function(){return e===_a&&aa(!0)})}},ET=function(){en.appendChild(ml),Zg=!Nr&&ml.offsetHeight||Pt.innerHeight,en.removeChild(ml)},Ty=function(e){return pc(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(n){return n.style.display=e?"none":"block"})},aa=function(e,n){if(ci=pn.documentElement,en=pn.body,Qg=[Pt,pn,ci,en],$i&&!e&&!Pd){or(Lt,"scrollEnd",ST);return}ET(),Br=Lt.isRefreshing=!0,It.forEach(function(i){return Rr(i)&&++i.cacheID&&(i.rec=i())});var r=Aa("refreshInit");fT&&Lt.sort(),n||i_(),It.forEach(function(i){Rr(i)&&(i.smooth&&(i.target.style.scrollBehavior="auto"),i(0))}),xt.slice(0).forEach(function(i){return i.refresh()}),Pd=!1,xt.forEach(function(i){if(i._subPinOffset&&i.pin){var o=i.vars.horizontal?"offsetWidth":"offsetHeight",s=i.pin[o];i.revert(!0,1),i.adjustPinSpacing(i.pin[o]-s),i.refresh()}}),Am=1,Ty(!0),xt.forEach(function(i){var o=mo(i.scroller,i._dir),s=i.vars.end==="max"||i._endClamp&&i.end>o,a=i._startClamp&&i.start>=o;(s||a)&&i.setPositions(a?o-1:i.start,s?Math.max(a?o:i.start+1,o):i.end,!0)}),Ty(!1),Am=0,r.forEach(function(i){return i&&i.render&&i.render(-1)}),It.forEach(function(i){Rr(i)&&(i.smooth&&requestAnimationFrame(function(){return i.target.style.scrollBehavior="smooth"}),i.rec&&i(i.rec))}),kT(Jg,1),xd.pause(),_a++,Br=2,Go(2),xt.forEach(function(i){return Rr(i.vars.onRefresh)&&i.vars.onRefresh(i)}),Br=Lt.isRefreshing=!1,Aa("refresh")},xm=0,Kf=1,Gu,Go=function(e){if(e===2||!Br&&!Pd){Lt.isUpdating=!0,Gu&&Gu.update(0);var n=xt.length,r=Sr(),i=r-dp>=50,o=n&&xt[0].scroll();if(Kf=xm>o?-1:1,Br||(xm=o),i&&($i&&!ch&&r-$i>200&&($i=0,Aa("scrollEnd")),yu=dp,dp=r),Kf<0){for(Hr=n;Hr-- >0;)xt[Hr]&&xt[Hr].update(0,i);Kf=1}else for(Hr=0;Hr<n;Hr++)xt[Hr]&&xt[Hr].update(0,i);Lt.isUpdating=!1}mc=0},Pm=[yT,bT,t_,e_,Ai+zu,Ai+ju,Ai+qu,Ai+Wu,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Xf=Pm.concat([ma,ga,"boxSizing","max"+Il,"max"+n_,"position",Ai,Un,Un+qu,Un+ju,Un+zu,Un+Wu]),QL=function(e,n,r){gl(r);var i=e._gsap;if(i.spacerIsNative)gl(i.spacerState);else if(e._gsap.swappedIn){var o=n.parentNode;o&&(o.insertBefore(e,n),o.removeChild(n))}e._gsap.swappedIn=!1},mp=function(e,n,r,i){if(!e._gsap.swappedIn){for(var o=Pm.length,s=n.style,a=e.style,u;o--;)u=Pm[o],s[u]=r[u];s.position=r.position==="absolute"?"absolute":"relative",r.display==="inline"&&(s.display="inline-block"),a[t_]=a[e_]="auto",s.flexBasis=r.flexBasis||"auto",s.overflow="visible",s.boxSizing="border-box",s[ma]=Id(e,jr)+Qn,s[ga]=Id(e,Jn)+Qn,s[Un]=a[Ai]=a[bT]=a[yT]="0",gl(i),a[ma]=a["max"+Il]=r[ma],a[ga]=a["max"+n_]=r[ga],a[Un]=r[Un],e.parentNode!==n&&(e.parentNode.insertBefore(n,e),n.appendChild(e)),e._gsap.swappedIn=!0}},JL=/([A-Z])/g,gl=function(e){if(e){var n=e.t.style,r=e.length,i=0,o,s;for((e.t._gsap||Ze.core.getCache(e.t)).uncache=1;i<r;i+=2)s=e[i+1],o=e[i],s?n[o]=s:n[o]&&n.removeProperty(o.replace(JL,"-$1").toLowerCase())}},kf=function(e){for(var n=Xf.length,r=e.style,i=[],o=0;o<n;o++)i.push(Xf[o],r[Xf[o]]);return i.t=e,i},ZL=function(e,n,r){for(var i=[],o=e.length,s=r?8:0,a;s<o;s+=2)a=e[s],i.push(a,a in n?n[a]:e[s+1]);return i.t=e.t,i},Qf={left:0,top:0},ky=function(e,n,r,i,o,s,a,u,c,h,l,d,f,_){Rr(e)&&(e=e(u)),li(e)&&e.substr(0,3)==="max"&&(e=d+(e.charAt(4)==="="?Gf("0"+e.substr(3),r):0));var p=f?f.time():0,b,y,w;if(f&&f.seek(0),isNaN(e)||(e=+e),Su(e))f&&(e=Ze.utils.mapRange(f.scrollTrigger.start,f.scrollTrigger.end,0,d,e)),a&&Yf(a,r,i,!0);else{Rr(n)&&(n=n(u));var R=(e||"0").split(" "),E,A,C,I;w=Yr(n,u)||en,E=Bo(w)||{},(!E||!E.left&&!E.top)&&Ci(w).display==="none"&&(I=w.style.display,w.style.display="block",E=Bo(w),I?w.style.display=I:w.style.removeProperty("display")),A=Gf(R[0],E[i.d]),C=Gf(R[1]||"0",r),e=E[i.p]-c[i.p]-h+A+o-C,a&&Yf(a,C,i,r-C<20||a._isStart&&C>20),r-=r-C}if(_&&(u[_]=e||-.001,e<0&&(e=0)),s){var $=e+r,N=s._isStart;b="scroll"+i.d2,Yf(s,$,i,N&&$>20||!N&&(l?Math.max(en[b],ci[b]):s.parentNode[b])<=$+1),l&&(c=Bo(a),l&&(s.style[i.op.p]=c[i.op.p]-i.op.m-s._offset+Qn))}return f&&w&&(b=Bo(w),f.seek(d),y=Bo(w),f._caScrollDist=b[i.p]-y[i.p],e=e/f._caScrollDist*d),f&&f.seek(p),f?e:Math.round(e)},eO=/(webkit|moz|length|cssText|inset)/i,Ey=function(e,n,r,i){if(e.parentNode!==n){var o=e.style,s,a;if(n===en){e._stOrig=o.cssText,a=Ci(e);for(s in a)!+s&&!eO.test(s)&&a[s]&&typeof o[s]=="string"&&s!=="0"&&(o[s]=a[s]);o.top=r,o.left=i}else o.cssText=e._stOrig;Ze.core.getCache(e).uncache=1,n.appendChild(e)}},RT=function(e,n,r){var i=n,o=i;return function(s){var a=Math.round(e());return a!==i&&a!==o&&Math.abs(a-i)>3&&Math.abs(a-o)>3&&(s=a,r&&r()),o=i,i=Math.round(s),i}},Ef=function(e,n,r){var i={};i[n.p]="+="+r,Ze.set(e,i)},Ry=function(e,n){var r=Ms(e,n),i="_scroll"+n.p2,o=function s(a,u,c,h,l){var d=s.tween,f=u.onComplete,_={};c=c||r();var p=RT(r,c,function(){d.kill(),s.tween=0});return l=h&&l||0,h=h||a-c,d&&d.kill(),u[i]=a,u.inherit=!1,u.modifiers=_,_[i]=function(){return p(c+h*d.ratio+l*d.ratio*d.ratio)},u.onUpdate=function(){It.cache++,s.tween&&Go()},u.onComplete=function(){s.tween=0,f&&f.call(d)},d=s.tween=Ze.to(e,u),d};return e[i]=r,r.wheelHandler=function(){return o.tween&&o.tween.kill()&&(o.tween=0)},or(e,"wheel",r.wheelHandler),Lt.isTouch&&or(e,"touchmove",r.wheelHandler),o},Lt=function(){function t(n,r){Ja||t.register(Ze)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),Rm(this),this.init(n,r)}var e=t.prototype;return e.init=function(r,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!bu){this.update=this.refresh=this.kill=uo;return}r=yy(li(r)||Su(r)||r.nodeType?{trigger:r}:r,Sf);var o=r,s=o.onUpdate,a=o.toggleClass,u=o.id,c=o.onToggle,h=o.onRefresh,l=o.scrub,d=o.trigger,f=o.pin,_=o.pinSpacing,p=o.invalidateOnRefresh,b=o.anticipatePin,y=o.onScrubComplete,w=o.onSnapComplete,R=o.once,E=o.snap,A=o.pinReparent,C=o.pinSpacer,I=o.containerAnimation,$=o.fastScrollEnd,N=o.preventOverlaps,W=r.horizontal||r.containerAnimation&&r.horizontal!==!1?jr:Jn,ne=!l&&l!==0,F=Yr(r.scroller||Pt),Q=Ze.core.getCache(F),M=Ea(F),H=("pinType"in r?r.pinType:Cs(F,"pinType")||M&&"fixed")==="fixed",B=[r.onEnter,r.onLeave,r.onEnterBack,r.onLeaveBack],U=ne&&r.toggleActions.split(" "),oe="markers"in r?r.markers:Sf.markers,le=M?0:parseFloat(Ci(F)["border"+W.p2+Il])||0,q=this,be=r.onRefreshInit&&function(){return r.onRefreshInit(q)},ke=WL(F,M,W),Se=qL(F,M),ae=0,fe=0,_e=0,te=Ms(F,W),ue,ge,we,Ie,z,P,K,ee,X,x,G,L,D,Z,me,de,S,g,T,V,ie,he,Ee,Ne,Pe,Ue,Qe,tt,gt,_t,rn,nt,jt,Rt,pt,Wt,Pn,In,Ke;if(q._startClamp=q._endClamp=!1,q._dir=W,b*=45,q.scroller=F,q.scroll=I?I.time.bind(I):te,Ie=te(),q.vars=r,i=i||r.animation,"refreshPriority"in r&&(fT=1,r.refreshPriority===-9999&&(Gu=q)),Q.tweenScroll=Q.tweenScroll||{top:Ry(F,Jn),left:Ry(F,jr)},q.tweenTo=ue=Q.tweenScroll[W.p],q.scrubDuration=function(qe){jt=Su(qe)&&qe,jt?nt?nt.duration(qe):nt=Ze.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:jt,paused:!0,onComplete:function(){return y&&y(q)}}):(nt&&nt.progress(1).kill(),nt=0)},i&&(i.vars.lazy=!1,i._initted&&!q.isReverted||i.vars.immediateRender!==!1&&r.immediateRender!==!1&&i.duration()&&i.render(0,!0,!0),q.animation=i.pause(),i.scrollTrigger=q,q.scrubDuration(l),_t=0,u||(u=i.vars.id)),E&&((!ta(E)||E.push)&&(E={snapTo:E}),"scrollBehavior"in en.style&&Ze.set(M?[en,ci]:F,{scrollBehavior:"auto"}),It.forEach(function(qe){return Rr(qe)&&qe.target===(M?pn.scrollingElement||ci:F)&&(qe.smooth=!1)}),we=Rr(E.snapTo)?E.snapTo:E.snapTo==="labels"?GL(i):E.snapTo==="labelsDirectional"?YL(i):E.directional!==!1?function(qe,dt){return r_(E.snapTo)(qe,Sr()-fe<500?0:dt.direction)}:Ze.utils.snap(E.snapTo),Rt=E.duration||{min:.1,max:2},Rt=ta(Rt)?Uu(Rt.min,Rt.max):Uu(Rt,Rt),pt=Ze.delayedCall(E.delay||jt/2||.1,function(){var qe=te(),dt=Sr()-fe<500,st=ue.tween;if((dt||Math.abs(q.getVelocity())<10)&&!st&&!ch&&ae!==qe){var Le=(qe-P)/Z,Ln=i&&!ne?i.totalProgress():Le,yt=dt?0:(Ln-rn)/(Sr()-yu)*1e3||0,bn=Ze.utils.clamp(-Le,1-Le,Ga(yt/2)*yt/.185),Yn=Le+(E.inertia===!1?0:bn),an,ln,Xt=E,gr=Xt.onStart,hn=Xt.onInterrupt,Ir=Xt.onComplete;if(an=we(Yn,q),Su(an)||(an=Yn),ln=Math.max(0,Math.round(P+an*Z)),qe<=K&&qe>=P&&ln!==qe){if(st&&!st._initted&&st.data<=Ga(ln-qe))return;E.inertia===!1&&(bn=an-Le),ue(ln,{duration:Rt(Ga(Math.max(Ga(Yn-Ln),Ga(an-Ln))*.185/yt/.05||0)),ease:E.ease||"power3",data:Ga(ln-qe),onInterrupt:function(){return pt.restart(!0)&&hn&&hn(q)},onComplete:function(){q.update(),ae=te(),i&&!ne&&(nt?nt.resetTo("totalProgress",an,i._tTime/i._tDur):i.progress(an)),_t=rn=i&&!ne?i.totalProgress():q.progress,w&&w(q),Ir&&Ir(q)}},qe,bn*Z,ln-qe-bn*Z),gr&&gr(q,ue.tween)}}else q.isActive&&ae!==qe&&pt.restart(!0)}).pause()),u&&(Cm[u]=q),d=q.trigger=Yr(d||f!==!0&&f),Ke=d&&d._gsap&&d._gsap.stRevert,Ke&&(Ke=Ke(q)),f=f===!0?d:Yr(f),li(a)&&(a={targets:d,className:a}),f&&(_===!1||_===Ai||(_=!_&&f.parentNode&&f.parentNode.style&&Ci(f.parentNode).display==="flex"?!1:Un),q.pin=f,ge=Ze.core.getCache(f),ge.spacer?me=ge.pinState:(C&&(C=Yr(C),C&&!C.nodeType&&(C=C.current||C.nativeElement),ge.spacerIsNative=!!C,C&&(ge.spacerState=kf(C))),ge.spacer=g=C||pn.createElement("div"),g.classList.add("pin-spacer"),u&&g.classList.add("pin-spacer-"+u),ge.pinState=me=kf(f)),r.force3D!==!1&&Ze.set(f,{force3D:!0}),q.spacer=g=ge.spacer,gt=Ci(f),Ne=gt[_+W.os2],V=Ze.getProperty(f),ie=Ze.quickSetter(f,W.a,Qn),mp(f,g,gt),S=kf(f)),oe){L=ta(oe)?yy(oe,by):by,x=Tf("scroller-start",u,F,W,L,0),G=Tf("scroller-end",u,F,W,L,0,x),T=x["offset"+W.op.d2];var mt=Yr(Cs(F,"content")||F);ee=this.markerStart=Tf("start",u,mt,W,L,T,0,I),X=this.markerEnd=Tf("end",u,mt,W,L,T,0,I),I&&(In=Ze.quickSetter([ee,X],W.a,Qn)),!H&&!(bo.length&&Cs(F,"fixedMarkers")===!0)&&(zL(M?en:F),Ze.set([x,G],{force3D:!0}),Ue=Ze.quickSetter(x,W.a,Qn),tt=Ze.quickSetter(G,W.a,Qn))}if(I){var ot=I.vars.onUpdate,at=I.vars.onUpdateParams;I.eventCallback("onUpdate",function(){q.update(0,0,1),ot&&ot.apply(I,at||[])})}if(q.previous=function(){return xt[xt.indexOf(q)-1]},q.next=function(){return xt[xt.indexOf(q)+1]},q.revert=function(qe,dt){if(!dt)return q.kill(!0);var st=qe!==!1||!q.enabled,Le=br;st!==q.isReverted&&(st&&(Wt=Math.max(te(),q.scroll.rec||0),_e=q.progress,Pn=i&&i.progress()),ee&&[ee,X,x,G].forEach(function(Ln){return Ln.style.display=st?"none":"block"}),st&&(br=q,q.update(st)),f&&(!A||!q.isActive)&&(st?QL(f,g,me):mp(f,g,Ci(f),Pe)),st||q.update(st),br=Le,q.isReverted=st)},q.refresh=function(qe,dt,st,Le){if(!((br||!q.enabled)&&!dt)){if(f&&qe&&$i){or(t,"scrollEnd",ST);return}!Br&&be&&be(q),br=q,ue.tween&&!st&&(ue.tween.kill(),ue.tween=0),nt&&nt.pause(),p&&i&&(i.revert({kill:!1}).invalidate(),i.getChildren&&i.getChildren(!0,!0,!1).forEach(function(vr){return vr.vars.immediateRender&&vr.render(0,!0,!0)})),q.isReverted||q.revert(!0,!0),q._subPinOffset=!1;var Ln=ke(),yt=Se(),bn=I?I.duration():mo(F,W),Yn=Z<=.01||!Z,an=0,ln=Le||0,Xt=ta(st)?st.end:r.end,gr=r.endTrigger||d,hn=ta(st)?st.start:r.start||(r.start===0||!d?0:f?"0 0":"0 100%"),Ir=q.pinnedContainer=r.pinnedContainer&&Yr(r.pinnedContainer,q),Kn=d&&Math.max(0,xt.indexOf(q))||0,Hn=Kn,Xn,Bn,eo,_r,Fn,Sn,bi,ts,ql,ns,oi,Hi,rs;for(oe&&ta(st)&&(Hi=Ze.getProperty(x,W.p),rs=Ze.getProperty(G,W.p));Hn-- >0;)Sn=xt[Hn],Sn.end||Sn.refresh(0,1)||(br=q),bi=Sn.pin,bi&&(bi===d||bi===f||bi===Ir)&&!Sn.isReverted&&(ns||(ns=[]),ns.unshift(Sn),Sn.revert(!0,!0)),Sn!==xt[Hn]&&(Kn--,Hn--);for(Rr(hn)&&(hn=hn(q)),hn=my(hn,"start",q),P=ky(hn,d,Ln,W,te(),ee,x,q,yt,le,H,bn,I,q._startClamp&&"_startClamp")||(f?-.001:0),Rr(Xt)&&(Xt=Xt(q)),li(Xt)&&!Xt.indexOf("+=")&&(~Xt.indexOf(" ")?Xt=(li(hn)?hn.split(" ")[0]:"")+Xt:(an=Gf(Xt.substr(2),Ln),Xt=li(hn)?hn:(I?Ze.utils.mapRange(0,I.duration(),I.scrollTrigger.start,I.scrollTrigger.end,P):P)+an,gr=d)),Xt=my(Xt,"end",q),K=Math.max(P,ky(Xt||(gr?"100% 0":bn),gr,Ln,W,te()+an,X,G,q,yt,le,H,bn,I,q._endClamp&&"_endClamp"))||-.001,an=0,Hn=Kn;Hn--;)Sn=xt[Hn],bi=Sn.pin,bi&&Sn.start-Sn._pinPush<=P&&!I&&Sn.end>0&&(Xn=Sn.end-(q._startClamp?Math.max(0,Sn.start):Sn.start),(bi===d&&Sn.start-Sn._pinPush<P||bi===Ir)&&isNaN(hn)&&(an+=Xn*(1-Sn.progress)),bi===f&&(ln+=Xn));if(P+=an,K+=an,q._startClamp&&(q._startClamp+=an),q._endClamp&&!Br&&(q._endClamp=K||-.001,K=Math.min(K,mo(F,W))),Z=K-P||(P-=.01)&&.001,Yn&&(_e=Ze.utils.clamp(0,1,Ze.utils.normalize(P,K,Wt))),q._pinPush=ln,ee&&an&&(Xn={},Xn[W.a]="+="+an,Ir&&(Xn[W.p]="-="+te()),Ze.set([ee,X],Xn)),f&&!(Am&&q.end>=mo(F,W)))Xn=Ci(f),_r=W===Jn,eo=te(),he=parseFloat(V(W.a))+ln,!bn&&K>1&&(oi=(M?pn.scrollingElement||ci:F).style,oi={style:oi,value:oi["overflow"+W.a.toUpperCase()]},M&&Ci(en)["overflow"+W.a.toUpperCase()]!=="scroll"&&(oi.style["overflow"+W.a.toUpperCase()]="scroll")),mp(f,g,Xn),S=kf(f),Bn=Bo(f,!0),ts=H&&Ms(F,_r?jr:Jn)(),_?(Pe=[_+W.os2,Z+ln+Qn],Pe.t=g,Hn=_===Un?Id(f,W)+Z+ln:0,Hn&&(Pe.push(W.d,Hn+Qn),g.style.flexBasis!=="auto"&&(g.style.flexBasis=Hn+Qn)),gl(Pe),Ir&&xt.forEach(function(vr){vr.pin===Ir&&vr.vars.pinSpacing!==!1&&(vr._subPinOffset=!0)}),H&&te(Wt)):(Hn=Id(f,W),Hn&&g.style.flexBasis!=="auto"&&(g.style.flexBasis=Hn+Qn)),H&&(Fn={top:Bn.top+(_r?eo-P:ts)+Qn,left:Bn.left+(_r?ts:eo-P)+Qn,boxSizing:"border-box",position:"fixed"},Fn[ma]=Fn["max"+Il]=Math.ceil(Bn.width)+Qn,Fn[ga]=Fn["max"+n_]=Math.ceil(Bn.height)+Qn,Fn[Ai]=Fn[Ai+qu]=Fn[Ai+ju]=Fn[Ai+zu]=Fn[Ai+Wu]="0",Fn[Un]=Xn[Un],Fn[Un+qu]=Xn[Un+qu],Fn[Un+ju]=Xn[Un+ju],Fn[Un+zu]=Xn[Un+zu],Fn[Un+Wu]=Xn[Un+Wu],de=ZL(me,Fn,A),Br&&te(0)),i?(ql=i._initted,cp(1),i.render(i.duration(),!0,!0),Ee=V(W.a)-he+Z+ln,Qe=Math.abs(Z-Ee)>1,H&&Qe&&de.splice(de.length-2,2),i.render(0,!0,!0),ql||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),cp(0)):Ee=Z,oi&&(oi.value?oi.style["overflow"+W.a.toUpperCase()]=oi.value:oi.style.removeProperty("overflow-"+W.a));else if(d&&te()&&!I)for(Bn=d.parentNode;Bn&&Bn!==en;)Bn._pinOffset&&(P-=Bn._pinOffset,K-=Bn._pinOffset),Bn=Bn.parentNode;ns&&ns.forEach(function(vr){return vr.revert(!1,!0)}),q.start=P,q.end=K,Ie=z=Br?Wt:te(),!I&&!Br&&(Ie<Wt&&te(Wt),q.scroll.rec=0),q.revert(!1,!0),fe=Sr(),pt&&(ae=-1,pt.restart(!0)),br=0,i&&ne&&(i._initted||Pn)&&i.progress()!==Pn&&i.progress(Pn||0,!0).render(i.time(),!0,!0),(Yn||_e!==q.progress||I||p||i&&!i._initted)&&(i&&!ne&&(i._initted||_e||i.vars.immediateRender!==!1)&&i.totalProgress(I&&P<-.001&&!_e?Ze.utils.normalize(P,K,0):_e,!0),q.progress=Yn||(Ie-P)/Z===_e?0:_e),f&&_&&(g._pinOffset=Math.round(q.progress*Ee)),nt&&nt.invalidate(),isNaN(Hi)||(Hi-=Ze.getProperty(x,W.p),rs-=Ze.getProperty(G,W.p),Ef(x,W,Hi),Ef(ee,W,Hi-(Le||0)),Ef(G,W,rs),Ef(X,W,rs-(Le||0))),Yn&&!Br&&q.update(),h&&!Br&&!D&&(D=!0,h(q),D=!1)}},q.getVelocity=function(){return(te()-z)/(Sr()-yu)*1e3||0},q.endAnimation=function(){cu(q.callbackAnimation),i&&(nt?nt.progress(1):i.paused()?ne||cu(i,q.direction<0,1):cu(i,i.reversed()))},q.labelToScroll=function(qe){return i&&i.labels&&(P||q.refresh()||P)+i.labels[qe]/i.duration()*Z||0},q.getTrailing=function(qe){var dt=xt.indexOf(q),st=q.direction>0?xt.slice(0,dt).reverse():xt.slice(dt+1);return(li(qe)?st.filter(function(Le){return Le.vars.preventOverlaps===qe}):st).filter(function(Le){return q.direction>0?Le.end<=P:Le.start>=K})},q.update=function(qe,dt,st){if(!(I&&!st&&!qe)){var Le=Br===!0?Wt:q.scroll(),Ln=qe?0:(Le-P)/Z,yt=Ln<0?0:Ln>1?1:Ln||0,bn=q.progress,Yn,an,ln,Xt,gr,hn,Ir,Kn;if(dt&&(z=Ie,Ie=I?te():Le,E&&(rn=_t,_t=i&&!ne?i.totalProgress():yt)),b&&f&&!br&&!vf&&$i&&(!yt&&P<Le+(Le-z)/(Sr()-yu)*b?yt=1e-4:yt===1&&K>Le+(Le-z)/(Sr()-yu)*b&&(yt=.9999)),yt!==bn&&q.enabled){if(Yn=q.isActive=!!yt&&yt<1,an=!!bn&&bn<1,hn=Yn!==an,gr=hn||!!yt!=!!bn,q.direction=yt>bn?1:-1,q.progress=yt,gr&&!br&&(ln=yt&&!bn?0:yt===1?1:bn===1?2:3,ne&&(Xt=!hn&&U[ln+1]!=="none"&&U[ln+1]||U[ln],Kn=i&&(Xt==="complete"||Xt==="reset"||Xt in i))),N&&(hn||Kn)&&(Kn||l||!i)&&(Rr(N)?N(q):q.getTrailing(N).forEach(function(eo){return eo.endAnimation()})),ne||(nt&&!br&&!vf?(nt._dp._time-nt._start!==nt._time&&nt.render(nt._dp._time-nt._start),nt.resetTo?nt.resetTo("totalProgress",yt,i._tTime/i._tDur):(nt.vars.totalProgress=yt,nt.invalidate().restart())):i&&i.totalProgress(yt,!!(br&&(fe||qe)))),f){if(qe&&_&&(g.style[_+W.os2]=Ne),!H)ie(wu(he+Ee*yt));else if(gr){if(Ir=!qe&&yt>bn&&K+1>Le&&Le+1>=mo(F,W),A)if(!qe&&(Yn||Ir)){var Hn=Bo(f,!0),Xn=Le-P;Ey(f,en,Hn.top+(W===Jn?Xn:0)+Qn,Hn.left+(W===Jn?0:Xn)+Qn)}else Ey(f,g);gl(Yn||Ir?de:S),Qe&&yt<1&&Yn||ie(he+(yt===1&&!Ir?Ee:0))}}E&&!ue.tween&&!br&&!vf&&pt.restart(!0),a&&(hn||R&&yt&&(yt<1||!fp))&&pc(a.targets).forEach(function(eo){return eo.classList[Yn||R?"add":"remove"](a.className)}),s&&!ne&&!qe&&s(q),gr&&!br?(ne&&(Kn&&(Xt==="complete"?i.pause().totalProgress(1):Xt==="reset"?i.restart(!0).pause():Xt==="restart"?i.restart(!0):i[Xt]()),s&&s(q)),(hn||!fp)&&(c&&hn&&hp(q,c),B[ln]&&hp(q,B[ln]),R&&(yt===1?q.kill(!1,1):B[ln]=0),hn||(ln=yt===1?1:3,B[ln]&&hp(q,B[ln]))),$&&!Yn&&Math.abs(q.getVelocity())>(Su($)?$:2500)&&(cu(q.callbackAnimation),nt?nt.progress(1):cu(i,Xt==="reverse"?1:!yt,1))):ne&&s&&!br&&s(q)}if(tt){var Bn=I?Le/I.duration()*(I._caScrollDist||0):Le;Ue(Bn+(x._isFlipped?1:0)),tt(Bn)}In&&In(-Le/I.duration()*(I._caScrollDist||0))}},q.enable=function(qe,dt){q.enabled||(q.enabled=!0,or(F,"resize",Tu),M||or(F,"scroll",Ya),be&&or(t,"refreshInit",be),qe!==!1&&(q.progress=_e=0,Ie=z=ae=te()),dt!==!1&&q.refresh())},q.getTween=function(qe){return qe&&ue?ue.tween:nt},q.setPositions=function(qe,dt,st,Le){if(I){var Ln=I.scrollTrigger,yt=I.duration(),bn=Ln.end-Ln.start;qe=Ln.start+bn*qe/yt,dt=Ln.start+bn*dt/yt}q.refresh(!1,!1,{start:gy(qe,st&&!!q._startClamp),end:gy(dt,st&&!!q._endClamp)},Le),q.update()},q.adjustPinSpacing=function(qe){if(Pe&&qe){var dt=Pe.indexOf(W.d)+1;Pe[dt]=parseFloat(Pe[dt])+qe+Qn,Pe[1]=parseFloat(Pe[1])+qe+Qn,gl(Pe)}},q.disable=function(qe,dt){if(q.enabled&&(qe!==!1&&q.revert(!0,!0),q.enabled=q.isActive=!1,dt||nt&&nt.pause(),Wt=0,ge&&(ge.uncache=1),be&&ir(t,"refreshInit",be),pt&&(pt.pause(),ue.tween&&ue.tween.kill()&&(ue.tween=0)),!M)){for(var st=xt.length;st--;)if(xt[st].scroller===F&&xt[st]!==q)return;ir(F,"resize",Tu),M||ir(F,"scroll",Ya)}},q.kill=function(qe,dt){q.disable(qe,dt),nt&&!dt&&nt.kill(),u&&delete Cm[u];var st=xt.indexOf(q);st>=0&&xt.splice(st,1),st===Hr&&Kf>0&&Hr--,st=0,xt.forEach(function(Le){return Le.scroller===q.scroller&&(st=1)}),st||Br||(q.scroll.rec=0),i&&(i.scrollTrigger=null,qe&&i.revert({kill:!1}),dt||i.kill()),ee&&[ee,X,x,G].forEach(function(Le){return Le.parentNode&&Le.parentNode.removeChild(Le)}),Gu===q&&(Gu=0),f&&(ge&&(ge.uncache=1),st=0,xt.forEach(function(Le){return Le.pin===f&&st++}),st||(ge.spacer=0)),r.onKill&&r.onKill(q)},xt.push(q),q.enable(!1,!1),Ke&&Ke(q),i&&i.add&&!Z){var Mt=q.update;q.update=function(){q.update=Mt,It.cache++,P||K||q.refresh()},Ze.delayedCall(.01,q.update),Z=.01,P=K=0}else q.refresh();f&&XL()},t.register=function(r){return Ja||(Ze=r||gT(),mT()&&window.document&&t.enable(),Ja=bu),Ja},t.defaults=function(r){if(r)for(var i in r)Sf[i]=r[i];return Sf},t.disable=function(r,i){bu=0,xt.forEach(function(s){return s[i?"kill":"disable"](r)}),ir(Pt,"wheel",Ya),ir(pn,"scroll",Ya),clearInterval(_f),ir(pn,"touchcancel",uo),ir(en,"touchstart",uo),bf(ir,pn,"pointerdown,touchstart,mousedown",_y),bf(ir,pn,"pointerup,touchend,mouseup",vy),xd.kill(),yf(ir);for(var o=0;o<It.length;o+=3)wf(ir,It[o],It[o+1]),wf(ir,It[o],It[o+2])},t.enable=function(){if(Pt=window,pn=document,ci=pn.documentElement,en=pn.body,Ze&&(pc=Ze.utils.toArray,Uu=Ze.utils.clamp,Rm=Ze.core.context||uo,cp=Ze.core.suppressOverwrites||uo,Jg=Pt.history.scrollRestoration||"auto",xm=Pt.pageYOffset||0,Ze.core.globals("ScrollTrigger",t),en)){bu=1,ml=document.createElement("div"),ml.style.height="100vh",ml.style.position="absolute",ET(),jL(),Nn.register(Ze),t.isTouch=Nn.isTouch,ds=Nn.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),Em=Nn.isTouch===1,or(Pt,"wheel",Ya),Qg=[Pt,pn,ci,en],Ze.matchMedia?(t.matchMedia=function(c){var h=Ze.matchMedia(),l;for(l in c)h.add(l,c[l]);return h},Ze.addEventListener("matchMediaInit",function(){return i_()}),Ze.addEventListener("matchMediaRevert",function(){return TT()}),Ze.addEventListener("matchMedia",function(){aa(0,1),Aa("matchMedia")}),Ze.matchMedia().add("(orientation: portrait)",function(){return pp(),pp})):console.warn("Requires GSAP 3.11.0 or later"),pp(),or(pn,"scroll",Ya);var r=en.hasAttribute("style"),i=en.style,o=i.borderTopStyle,s=Ze.core.Animation.prototype,a,u;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",a=Bo(en),Jn.m=Math.round(a.top+Jn.sc())||0,jr.m=Math.round(a.left+jr.sc())||0,o?i.borderTopStyle=o:i.removeProperty("border-top-style"),r||(en.setAttribute("style",""),en.removeAttribute("style")),_f=setInterval(wy,250),Ze.delayedCall(.5,function(){return vf=0}),or(pn,"touchcancel",uo),or(en,"touchstart",uo),bf(or,pn,"pointerdown,touchstart,mousedown",_y),bf(or,pn,"pointerup,touchend,mouseup",vy),km=Ze.utils.checkPrefix("transform"),Xf.push(km),Ja=Sr(),xd=Ze.delayedCall(.2,aa).pause(),Za=[pn,"visibilitychange",function(){var c=Pt.innerWidth,h=Pt.innerHeight;pn.hidden?(hy=c,py=h):(hy!==c||py!==h)&&Tu()},pn,"DOMContentLoaded",aa,Pt,"load",aa,Pt,"resize",Tu],yf(or),xt.forEach(function(c){return c.enable(0,1)}),u=0;u<It.length;u+=3)wf(ir,It[u],It[u+1]),wf(ir,It[u],It[u+2])}},t.config=function(r){"limitCallbacks"in r&&(fp=!!r.limitCallbacks);var i=r.syncInterval;i&&clearInterval(_f)||(_f=i)&&setInterval(wy,i),"ignoreMobileResize"in r&&(Em=t.isTouch===1&&r.ignoreMobileResize),"autoRefreshEvents"in r&&(yf(ir)||yf(or,r.autoRefreshEvents||"none"),dT=(r.autoRefreshEvents+"").indexOf("resize")===-1)},t.scrollerProxy=function(r,i){var o=Yr(r),s=It.indexOf(o),a=Ea(o);~s&&It.splice(s,a?6:2),i&&(a?bo.unshift(Pt,i,en,i,ci,i):bo.unshift(o,i))},t.clearMatchMedia=function(r){xt.forEach(function(i){return i._ctx&&i._ctx.query===r&&i._ctx.kill(!0,!0)})},t.isInViewport=function(r,i,o){var s=(li(r)?Yr(r):r).getBoundingClientRect(),a=s[o?ma:ga]*i||0;return o?s.right-a>0&&s.left+a<Pt.innerWidth:s.bottom-a>0&&s.top+a<Pt.innerHeight},t.positionInViewport=function(r,i,o){li(r)&&(r=Yr(r));var s=r.getBoundingClientRect(),a=s[o?ma:ga],u=i==null?a/2:i in Ld?Ld[i]*a:~i.indexOf("%")?parseFloat(i)*a/100:parseFloat(i)||0;return o?(s.left+u)/Pt.innerWidth:(s.top+u)/Pt.innerHeight},t.killAll=function(r){if(xt.slice(0).forEach(function(o){return o.vars.id!=="ScrollSmoother"&&o.kill()}),r!==!0){var i=Ra.killAll||[];Ra={},i.forEach(function(o){return o()})}},t}();Lt.version="3.13.0";Lt.saveStyles=function(t){return t?pc(t).forEach(function(e){if(e&&e.style){var n=ai.indexOf(e);n>=0&&ai.splice(n,5),ai.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),Ze.core.getCache(e),Rm())}}):ai};Lt.revert=function(t,e){return i_(!t,e)};Lt.create=function(t,e){return new Lt(t,e)};Lt.refresh=function(t){return t?Tu(!0):(Ja||Lt.register())&&aa(!0)};Lt.update=function(t){return++It.cache&&Go(t===!0?2:0)};Lt.clearScrollMemory=kT;Lt.maxScroll=function(t,e){return mo(t,e?jr:Jn)};Lt.getScrollFunc=function(t,e){return Ms(Yr(t),e?jr:Jn)};Lt.getById=function(t){return Cm[t]};Lt.getAll=function(){return xt.filter(function(t){return t.vars.id!=="ScrollSmoother"})};Lt.isScrolling=function(){return!!$i};Lt.snapDirectional=r_;Lt.addEventListener=function(t,e){var n=Ra[t]||(Ra[t]=[]);~n.indexOf(e)||n.push(e)};Lt.removeEventListener=function(t,e){var n=Ra[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)};Lt.batch=function(t,e){var n=[],r={},i=e.interval||.016,o=e.batchMax||1e9,s=function(c,h){var l=[],d=[],f=Ze.delayedCall(i,function(){h(l,d),l=[],d=[]}).pause();return function(_){l.length||f.restart(!0),l.push(_.trigger),d.push(_),o<=l.length&&f.progress(1)}},a;for(a in e)r[a]=a.substr(0,2)==="on"&&Rr(e[a])&&a!=="onRefreshInit"?s(a,e[a]):e[a];return Rr(o)&&(o=o(),or(Lt,"refresh",function(){return o=e.batchMax()})),pc(t).forEach(function(u){var c={};for(a in r)c[a]=r[a];c.trigger=u,n.push(Lt.create(c))}),n};var Ay=function(e,n,r,i){return n>i?e(i):n<0&&e(0),r>i?(i-n)/(r-n):r<0?n/(n-r):1},gp=function t(e,n){n===!0?e.style.removeProperty("touch-action"):e.style.touchAction=n===!0?"auto":n?"pan-"+n+(Nn.isTouch?" pinch-zoom":""):"none",e===ci&&t(en,n)},Rf={auto:1,scroll:1},tO=function(e){var n=e.event,r=e.target,i=e.axis,o=(n.changedTouches?n.changedTouches[0]:n).target,s=o._gsap||Ze.core.getCache(o),a=Sr(),u;if(!s._isScrollT||a-s._isScrollT>2e3){for(;o&&o!==en&&(o.scrollHeight<=o.clientHeight&&o.scrollWidth<=o.clientWidth||!(Rf[(u=Ci(o)).overflowY]||Rf[u.overflowX]));)o=o.parentNode;s._isScroll=o&&o!==r&&!Ea(o)&&(Rf[(u=Ci(o)).overflowY]||Rf[u.overflowX]),s._isScrollT=a}(s._isScroll||i==="x")&&(n.stopPropagation(),n._gsapAllow=!0)},AT=function(e,n,r,i){return Nn.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:n,onWheel:i=i&&tO,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return r&&or(pn,Nn.eventTypes[0],xy,!1,!0)},onDisable:function(){return ir(pn,Nn.eventTypes[0],xy,!0)}})},nO=/(input|label|select|textarea)/i,Cy,xy=function(e){var n=nO.test(e.target.tagName);(n||Cy)&&(e._gsapAllow=!0,Cy=n)},rO=function(e){ta(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var n=e,r=n.normalizeScrollX,i=n.momentum,o=n.allowNestedScroll,s=n.onRelease,a,u,c=Yr(e.target)||ci,h=Ze.core.globals().ScrollSmoother,l=h&&h.get(),d=ds&&(e.content&&Yr(e.content)||l&&e.content!==!1&&!l.smooth()&&l.content()),f=Ms(c,Jn),_=Ms(c,jr),p=1,b=(Nn.isTouch&&Pt.visualViewport?Pt.visualViewport.scale*Pt.visualViewport.width:Pt.outerWidth)/Pt.innerWidth,y=0,w=Rr(i)?function(){return i(a)}:function(){return i||2.8},R,E,A=AT(c,e.type,!0,o),C=function(){return E=!1},I=uo,$=uo,N=function(){u=mo(c,Jn),$=Uu(ds?1:0,u),r&&(I=Uu(0,mo(c,jr))),R=_a},W=function(){d._gsap.y=wu(parseFloat(d._gsap.y)+f.offset)+"px",d.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(d._gsap.y)+", 0, 1)",f.offset=f.cacheID=0},ne=function(){if(E){requestAnimationFrame(C);var oe=wu(a.deltaY/2),le=$(f.v-oe);if(d&&le!==f.v+f.offset){f.offset=le-f.v;var q=wu((parseFloat(d&&d._gsap.y)||0)-f.offset);d.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+q+", 0, 1)",d._gsap.y=q+"px",f.cacheID=It.cache,Go()}return!0}f.offset&&W(),E=!0},F,Q,M,H,B=function(){N(),F.isActive()&&F.vars.scrollY>u&&(f()>u?F.progress(1)&&f(u):F.resetTo("scrollY",u))};return d&&Ze.set(d,{y:"+=0"}),e.ignoreCheck=function(U){return ds&&U.type==="touchmove"&&ne()||p>1.05&&U.type!=="touchstart"||a.isGesturing||U.touches&&U.touches.length>1},e.onPress=function(){E=!1;var U=p;p=wu((Pt.visualViewport&&Pt.visualViewport.scale||1)/b),F.pause(),U!==p&&gp(c,p>1.01?!0:r?!1:"x"),Q=_(),M=f(),N(),R=_a},e.onRelease=e.onGestureStart=function(U,oe){if(f.offset&&W(),!oe)H.restart(!0);else{It.cache++;var le=w(),q,be;r&&(q=_(),be=q+le*.05*-U.velocityX/.227,le*=Ay(_,q,be,mo(c,jr)),F.vars.scrollX=I(be)),q=f(),be=q+le*.05*-U.velocityY/.227,le*=Ay(f,q,be,mo(c,Jn)),F.vars.scrollY=$(be),F.invalidate().duration(le).play(.01),(ds&&F.vars.scrollY>=u||q>=u-1)&&Ze.to({},{onUpdate:B,duration:le})}s&&s(U)},e.onWheel=function(){F._ts&&F.pause(),Sr()-y>1e3&&(R=0,y=Sr())},e.onChange=function(U,oe,le,q,be){if(_a!==R&&N(),oe&&r&&_(I(q[2]===oe?Q+(U.startX-U.x):_()+oe-q[1])),le){f.offset&&W();var ke=be[2]===le,Se=ke?M+U.startY-U.y:f()+le-be[1],ae=$(Se);ke&&Se!==ae&&(M+=ae-Se),f(ae)}(le||oe)&&Go()},e.onEnable=function(){gp(c,r?!1:"x"),Lt.addEventListener("refresh",B),or(Pt,"resize",B),f.smooth&&(f.target.style.scrollBehavior="auto",f.smooth=_.smooth=!1),A.enable()},e.onDisable=function(){gp(c,!0),ir(Pt,"resize",B),Lt.removeEventListener("refresh",B),A.kill()},e.lockAxis=e.lockAxis!==!1,a=new Nn(e),a.iOS=ds,ds&&!f()&&f(1),ds&&Ze.ticker.add(uo),H=a._dc,F=Ze.to(a,{ease:"power4",paused:!0,inherit:!1,scrollX:r?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:RT(f,f(),function(){return F.pause()})},onUpdate:Go,onComplete:H.vars.onComplete}),a};Lt.sort=function(t){if(Rr(t))return xt.sort(t);var e=Pt.pageYOffset||0;return Lt.getAll().forEach(function(n){return n._sortY=n.trigger?e+n.trigger.getBoundingClientRect().top:n.start+Pt.innerHeight}),xt.sort(t||function(n,r){return(n.vars.refreshPriority||0)*-1e6+(n.vars.containerAnimation?1e6:n._sortY)-((r.vars.containerAnimation?1e6:r._sortY)+(r.vars.refreshPriority||0)*-1e6)})};Lt.observe=function(t){return new Nn(t)};Lt.normalizeScroll=function(t){if(typeof t>"u")return Nr;if(t===!0&&Nr)return Nr.enable();if(t===!1){Nr&&Nr.kill(),Nr=t;return}var e=t instanceof Nn?t:rO(t);return Nr&&Nr.target===e.target&&Nr.kill(),Ea(e.target)&&(Nr=e),e};Lt.core={_getVelocityProp:Tm,_inputObserver:AT,_scrollers:It,_proxies:bo,bridge:{ss:function(){$i||Aa("scrollStart"),$i=Sr()},ref:function(){return br}}};gT()&&Ze.registerPlugin(Lt);function iO(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function oO(t,e,n){return e&&iO(t.prototype,e),t}/*!
 * ScrollSmoother 3.13.0
 * https://gsap.com
 *
 * @license Copyright 2008-2025, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license
 * @author: Jack Doyle, jack@greensock.com
*/var Jt,Af,$r,_s,ku,Lo,na,Py,kt,fo,Cf,Iy,Ly,Oy,My,CT=function(){return typeof window<"u"},xT=function(){return Jt||CT()&&(Jt=window.gsap)&&Jt.registerPlugin&&Jt},sO=function(e){return Math.round(e*1e5)/1e5||0},us=function(e){return kt.maxScroll(e||$r)},aO=function(e,n){var r=e.parentNode||ku,i=e.getBoundingClientRect(),o=r.getBoundingClientRect(),s=o.top-i.top,a=o.bottom-i.bottom,u=(Math.abs(s)>Math.abs(a)?s:a)/(1-n),c=-u*n,h,l;return u>0&&(h=o.height/($r.innerHeight+o.height),l=h===.5?o.height*2:Math.min(o.height,Math.abs(-u*h/(2*h-1)))*2*(n||1),c+=n?-l*n:-l/2,u+=l),{change:u,offset:c}},lO=function(e){var n=_s.querySelector(".ScrollSmoother-wrapper");return n||(n=_s.createElement("div"),n.classList.add("ScrollSmoother-wrapper"),e.parentNode.insertBefore(n,e),n.appendChild(e)),n},Ca=function(){function t(e){var n=this;Af||t.register(Jt)||console.warn("Please gsap.registerPlugin(ScrollSmoother)"),e=this.vars=e||{},fo&&fo.kill(),fo=this,Oy(this);var r=e,i=r.smoothTouch,o=r.onUpdate,s=r.onStop,a=r.smooth,u=r.onFocusIn,c=r.normalizeScroll,h=r.wholePixels,l,d,f,_,p,b,y,w,R,E,A,C,I,$,N=this,W=e.effectsPrefix||"",ne=kt.getScrollFunc($r),F=kt.isTouch===1?i===!0?.8:parseFloat(i)||0:a===0||a===!1?0:parseFloat(a)||.8,Q=F&&+e.speed||1,M=0,H=0,B=1,U=Iy(0),oe=function(){return U.update(-M)},le={y:0},q=function(){return l.style.overflow="visible"},be,ke=function(D){D.update();var Z=D.getTween();Z&&(Z.pause(),Z._time=Z._dur,Z._tTime=Z._tDur),be=!1,D.animation.progress(D.progress,!0)},Se=function(D,Z){(D!==M&&!E||Z)&&(h&&(D=Math.round(D)),F&&(l.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+D+", 0, 1)",l._gsap.y=D+"px"),H=D-M,M=D,kt.isUpdating||t.isRefreshing||kt.update())},ae=function(D){return arguments.length?(D<0&&(D=0),le.y=-D,be=!0,E?M=-D:Se(-D),kt.isRefreshing?_.update():ne(D/Q),this):-M},fe=typeof ResizeObserver<"u"&&e.autoResize!==!1&&new ResizeObserver(function(){if(!kt.isRefreshing){var L=us(d)*Q;L<-M&&ae(L),My.restart(!0)}}),_e,te=function(D){d.scrollTop=0,!(D.target.contains&&D.target.contains(d)||u&&u(n,D)===!1)&&(kt.isInViewport(D.target)||D.target===_e||n.scrollTo(D.target,!1,"center center"),_e=D.target)},ue=function(D,Z){if(D<Z.start)return D;var me=isNaN(Z.ratio)?1:Z.ratio,de=Z.end-Z.start,S=D-Z.start,g=Z.offset||0,T=Z.pins||[],V=T.offset||0,ie=Z._startClamp&&Z.start<=0||Z.pins&&Z.pins.offset?0:Z._endClamp&&Z.end===us()?1:.5;return T.forEach(function(he){de-=he.distance,he.nativeStart<=D&&(S-=he.distance)}),V&&(S*=(de-V/me)/de),D+(S-g*ie)/me-S},ge=function L(D,Z,me){me||(D.pins.length=D.pins.offset=0);var de=D.pins,S=D.markers,g,T,V,ie,he,Ee,Ne,Pe;for(Ne=0;Ne<Z.length;Ne++)if(Pe=Z[Ne],D.trigger&&Pe.trigger&&D!==Pe&&(Pe.trigger===D.trigger||Pe.pinnedContainer===D.trigger||D.trigger.contains(Pe.trigger))&&(he=Pe._startNative||Pe._startClamp||Pe.start,Ee=Pe._endNative||Pe._endClamp||Pe.end,V=ue(he,D),ie=Pe.pin&&Ee>0?V+(Ee-he):ue(Ee,D),Pe.setPositions(V,ie,!0,(Pe._startClamp?Math.max(0,V):V)-he),Pe.markerStart&&S.push(Jt.quickSetter([Pe.markerStart,Pe.markerEnd],"y","px")),Pe.pin&&Pe.end>0&&!me)){if(g=Pe.end-Pe.start,T=D._startClamp&&Pe.start<0,T){if(D.start>0){D.setPositions(0,D.end+(D._startNative-D.start),!0),L(D,Z);return}g+=Pe.start,de.offset=-Pe.start}de.push({start:Pe.start,nativeStart:he,end:Pe.end,distance:g,trig:Pe}),D.setPositions(D.start,D.end+(T?-Pe.start:g),!0)}},we=function(D,Z){p.forEach(function(me){return ge(me,D,Z)})},Ie=function(){ku=_s.documentElement,Lo=_s.body,q(),requestAnimationFrame(q),p&&(kt.getAll().forEach(function(D){D._startNative=D.start,D._endNative=D.end}),p.forEach(function(D){var Z=D._startClamp||D.start,me=D.autoSpeed?Math.min(us(),D.end):Z+Math.abs((D.end-Z)/D.ratio),de=me-D.end;if(Z-=de/2,me-=de/2,Z>me){var S=Z;Z=me,me=S}D._startClamp&&Z<0?(me=D.ratio<0?us():D.end/D.ratio,de=me-D.end,Z=0):(D.ratio<0||D._endClamp&&me>=us())&&(me=us(),Z=D.ratio<0||D.ratio>1?0:me-(me-D.start)/D.ratio,de=(me-Z)*D.ratio-(D.end-D.start)),D.offset=de||1e-4,D.pins.length=D.pins.offset=0,D.setPositions(Z,me,!0)}),we(kt.sort())),U.reset()},z=function(){return kt.addEventListener("refresh",Ie)},P=function(){return p&&p.forEach(function(D){return D.vars.onRefresh(D)})},K=function(){return p&&p.forEach(function(D){return D.vars.onRefreshInit(D)}),P},ee=function(D,Z,me,de){return function(){var S=typeof Z=="function"?Z(me,de):Z;S||S===0||(S=de.getAttribute("data-"+W+D)||(D==="speed"?1:0)),de.setAttribute("data-"+W+D,S);var g=(S+"").substr(0,6)==="clamp(";return{clamp:g,value:g?S.substr(6,S.length-7):S}}},X=function(D,Z,me,de,S){S=(typeof S=="function"?S(de,D):S)||0;var g=ee("speed",Z,de,D),T=ee("lag",me,de,D),V=Jt.getProperty(D,"y"),ie=D._gsap,he,Ee,Ne,Pe,Ue,Qe,tt=[],gt=function(){Z=g(),me=parseFloat(T().value),he=parseFloat(Z.value)||1,Ne=Z.value==="auto",Ue=Ne||Ee&&Ee._startClamp&&Ee.start<=0||tt.offset?0:Ee&&Ee._endClamp&&Ee.end===us()?1:.5,Pe&&Pe.kill(),Pe=me&&Jt.to(D,{ease:Cf,overwrite:!1,y:"+=0",duration:me}),Ee&&(Ee.ratio=he,Ee.autoSpeed=Ne)},_t=function(){ie.y=V+"px",ie.renderTransform(1),gt()},rn=[],nt=0,jt=function(pt){if(Ne){_t();var Wt=aO(D,Py(0,1,-pt.start/(pt.end-pt.start)));nt=Wt.change,Qe=Wt.offset}else Qe=tt.offset||0,nt=(pt.end-pt.start-Qe)*(1-he);tt.forEach(function(Pn){return nt-=Pn.distance*(1-he)}),pt.offset=nt||.001,pt.vars.onUpdate(pt),Pe&&Pe.progress(1)};return gt(),(he!==1||Ne||Pe)&&(Ee=kt.create({trigger:Ne?D.parentNode:D,start:function(){return Z.clamp?"clamp(top bottom+="+S+")":"top bottom+="+S},end:function(){return Z.value<0?"max":Z.clamp?"clamp(bottom top-="+S+")":"bottom top-="+S},scroller:d,scrub:!0,refreshPriority:-999,onRefreshInit:_t,onRefresh:jt,onKill:function(pt){var Wt=p.indexOf(pt);Wt>=0&&p.splice(Wt,1),_t()},onUpdate:function(pt){var Wt=V+nt*(pt.progress-Ue),Pn=tt.length,In=0,Ke,mt,ot;if(pt.offset){if(Pn){for(mt=-M,ot=pt.end;Pn--;){if(Ke=tt[Pn],Ke.trig.isActive||mt>=Ke.start&&mt<=Ke.end){Pe&&(Ke.trig.progress+=Ke.trig.direction<0?.001:-.001,Ke.trig.update(0,0,1),Pe.resetTo("y",parseFloat(ie.y),-H,!0),B&&Pe.progress(1));return}mt>Ke.end&&(In+=Ke.distance),ot-=Ke.distance}Wt=V+In+nt*((Jt.utils.clamp(pt.start,pt.end,mt)-pt.start-In)/(ot-pt.start)-Ue)}rn.length&&!Ne&&rn.forEach(function(at){return at(Wt-In)}),Wt=sO(Wt+Qe),Pe?(Pe.resetTo("y",Wt,-H,!0),B&&Pe.progress(1)):(ie.y=Wt+"px",ie.renderTransform(1))}}}),jt(Ee),Jt.core.getCache(Ee.trigger).stRevert=K,Ee.startY=V,Ee.pins=tt,Ee.markers=rn,Ee.ratio=he,Ee.autoSpeed=Ne,D.style.willChange="transform"),Ee};z(),kt.addEventListener("killAll",z),Jt.delayedCall(.5,function(){return B=0}),this.scrollTop=ae,this.scrollTo=function(L,D,Z){var me=Jt.utils.clamp(0,us(),isNaN(L)?n.offset(L,Z,!!D&&!E):+L);D?E?Jt.to(n,{duration:F,scrollTop:me,overwrite:"auto",ease:Cf}):ne(me):ae(me)},this.offset=function(L,D,Z){L=na(L)[0];var me=L.style.cssText,de=kt.create({trigger:L,start:D||"top top"}),S;return p&&(B?kt.refresh():we([de],!0)),S=de.start/(Z?Q:1),de.kill(!1),L.style.cssText=me,Jt.core.getCache(L).uncache=1,S};function x(){return f=l.clientHeight,l.style.overflow="visible",Lo.style.height=$r.innerHeight+(f-$r.innerHeight)/Q+"px",f-$r.innerHeight}this.content=function(L){if(arguments.length){var D=na(L||"#smooth-content")[0]||console.warn("ScrollSmoother needs a valid content element.")||Lo.children[0];return D!==l&&(l=D,R=l.getAttribute("style")||"",fe&&fe.observe(l),Jt.set(l,{overflow:"visible",width:"100%",boxSizing:"border-box",y:"+=0"}),F||Jt.set(l,{clearProps:"transform"})),this}return l},this.wrapper=function(L){return arguments.length?(d=na(L||"#smooth-wrapper")[0]||lO(l),w=d.getAttribute("style")||"",x(),Jt.set(d,F?{overflow:"hidden",position:"fixed",height:"100%",width:"100%",top:0,left:0,right:0,bottom:0}:{overflow:"visible",position:"relative",width:"100%",height:"auto",top:"auto",bottom:"auto",left:"auto",right:"auto"}),this):d},this.effects=function(L,D){var Z;if(p||(p=[]),!L)return p.slice(0);L=na(L),L.forEach(function(he){for(var Ee=p.length;Ee--;)p[Ee].trigger===he&&p[Ee].kill()}),D=D||{};var me=D,de=me.speed,S=me.lag,g=me.effectsPadding,T=[],V,ie;for(V=0;V<L.length;V++)ie=X(L[V],de,S,V,g),ie&&T.push(ie);return(Z=p).push.apply(Z,T),D.refresh!==!1&&kt.refresh(),T},this.sections=function(L,D){var Z;if(b||(b=[]),!L)return b.slice(0);var me=na(L).map(function(de){return kt.create({trigger:de,start:"top 120%",end:"bottom -20%",onToggle:function(g){de.style.opacity=g.isActive?"1":"0",de.style.pointerEvents=g.isActive?"all":"none"}})});return D&&D.add?(Z=b).push.apply(Z,me):b=me.slice(0),me},this.content(e.content),this.wrapper(e.wrapper),this.render=function(L){return Se(L||L===0?L:M)},this.getVelocity=function(){return U.getVelocity(-M)},kt.scrollerProxy(d,{scrollTop:ae,scrollHeight:function(){return x()&&Lo.scrollHeight},fixedMarkers:e.fixedMarkers!==!1&&!!F,content:l,getBoundingClientRect:function(){return{top:0,left:0,width:$r.innerWidth,height:$r.innerHeight}}}),kt.defaults({scroller:d});var G=kt.getAll().filter(function(L){return L.scroller===$r||L.scroller===d});G.forEach(function(L){return L.revert(!0,!0)}),_=kt.create({animation:Jt.fromTo(le,{y:function(){return $=0,0}},{y:function(){return $=1,-x()},immediateRender:!1,ease:"none",data:"ScrollSmoother",duration:100,onUpdate:function(){if($){var D=be;D&&(ke(_),le.y=M),Se(le.y,D),oe(),o&&!E&&o(N)}}}),onRefreshInit:function(D){if(!t.isRefreshing){if(t.isRefreshing=!0,p){var Z=kt.getAll().filter(function(de){return!!de.pin});p.forEach(function(de){de.vars.pinnedContainer||Z.forEach(function(S){if(S.pin.contains(de.trigger)){var g=de.vars;g.pinnedContainer=S.pin,de.vars=null,de.init(g,de.animation)}})})}var me=D.getTween();I=me&&me._end>me._dp._time,C=M,le.y=0,F&&(kt.isTouch===1&&(d.style.position="absolute"),d.scrollTop=0,kt.isTouch===1&&(d.style.position="fixed"))}},onRefresh:function(D){D.animation.invalidate(),D.setPositions(D.start,x()/Q),I||ke(D),le.y=-ne()*Q,Se(le.y),B||(I&&(be=!1),D.animation.progress(Jt.utils.clamp(0,1,C/Q/-D.end))),I&&(D.progress-=.001,D.update()),t.isRefreshing=!1},id:"ScrollSmoother",scroller:$r,invalidateOnRefresh:!0,start:0,refreshPriority:-9999,end:function(){return x()/Q},onScrubComplete:function(){U.reset(),s&&s(n)},scrub:F||!0}),this.smooth=function(L){return arguments.length&&(F=L||0,Q=F&&+e.speed||1,_.scrubDuration(L)),_.getTween()?_.getTween().duration():0},_.getTween()&&(_.getTween().vars.ease=e.ease||Cf),this.scrollTrigger=_,e.effects&&this.effects(e.effects===!0?"[data-"+W+"speed], [data-"+W+"lag]":e.effects,{effectsPadding:e.effectsPadding,refresh:!1}),e.sections&&this.sections(e.sections===!0?"[data-section]":e.sections),G.forEach(function(L){L.vars.scroller=d,L.revert(!1,!0),L.init(L.vars,L.animation)}),this.paused=function(L,D){return arguments.length?(!!E!==L&&(L?(_.getTween()&&_.getTween().pause(),ne(-M/Q),U.reset(),A=kt.normalizeScroll(),A&&A.disable(),E=kt.observe({preventDefault:!0,type:"wheel,touch,scroll",debounce:!1,allowClicks:!0,onChangeY:function(){return ae(-M)}}),E.nested=Ly(ku,"wheel,touch,scroll",!0,D!==!1)):(E.nested.kill(),E.kill(),E=0,A&&A.enable(),_.progress=(-M/Q-_.start)/(_.end-_.start),ke(_))),this):!!E},this.kill=this.revert=function(){n.paused(!1),ke(_),_.kill();for(var L=(p||[]).concat(b||[]),D=L.length;D--;)L[D].kill();kt.scrollerProxy(d),kt.removeEventListener("killAll",z),kt.removeEventListener("refresh",Ie),d.style.cssText=w,l.style.cssText=R;var Z=kt.defaults({});Z&&Z.scroller===d&&kt.defaults({scroller:$r}),n.normalizer&&kt.normalizeScroll(!1),clearInterval(y),fo=null,fe&&fe.disconnect(),Lo.style.removeProperty("height"),$r.removeEventListener("focusin",te)},this.refresh=function(L,D){return _.refresh(L,D)},c&&(this.normalizer=kt.normalizeScroll(c===!0?{debounce:!0,content:!F&&l}:c)),kt.config(e),"scrollBehavior"in $r.getComputedStyle(Lo)&&Jt.set([Lo,ku],{scrollBehavior:"auto"}),$r.addEventListener("focusin",te),y=setInterval(oe,250),_s.readyState==="loading"||requestAnimationFrame(function(){return kt.refresh()})}return t.register=function(n){return Af||(Jt=n||xT(),CT()&&window.document&&($r=window,_s=document,ku=_s.documentElement,Lo=_s.body),Jt&&(na=Jt.utils.toArray,Py=Jt.utils.clamp,Cf=Jt.parseEase("expo"),Oy=Jt.core.context||function(){},kt=Jt.core.globals().ScrollTrigger,Jt.core.globals("ScrollSmoother",t),Lo&&kt&&(My=Jt.delayedCall(.2,function(){return kt.isRefreshing||fo&&fo.refresh()}).pause(),Iy=kt.core._getVelocityProp,Ly=kt.core._inputObserver,t.refresh=kt.refresh,Af=1))),Af},oO(t,[{key:"progress",get:function(){return this.scrollTrigger?this.scrollTrigger.animation._time/100:0}}]),t}();Ca.version="3.13.0";Ca.create=function(t){return fo&&t&&fo.content()===na(t.content)[0]?fo:new Ca(t)};Ca.get=function(){return fo};xT()&&Jt.registerPlugin(Ca);/*!
 * ScrollToPlugin 3.13.0
 * https://gsap.com
 *
 * @license Copyright 2008-2025, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license
 * @author: Jack Doyle, jack@greensock.com
*/var Ar,PT,Yo,go,xs,IT,_l,xf,LT=function(){return typeof window<"u"},OT=function(){return Ar||LT()&&(Ar=window.gsap)&&Ar.registerPlugin&&Ar},MT=function(e){return typeof e=="string"},$y=function(e){return typeof e=="function"},gc=function(e,n){var r=n==="x"?"Width":"Height",i="scroll"+r,o="client"+r;return e===Yo||e===go||e===xs?Math.max(go[i],xs[i])-(Yo["inner"+r]||go[o]||xs[o]):e[i]-e["offset"+r]},_c=function(e,n){var r="scroll"+(n==="x"?"Left":"Top");return e===Yo&&(e.pageXOffset!=null?r="page"+n.toUpperCase()+"Offset":e=go[r]!=null?go:xs),function(){return e[r]}},uO=function(e,n,r,i){if($y(e)&&(e=e(n,r,i)),typeof e!="object")return MT(e)&&e!=="max"&&e.charAt(1)!=="="?{x:e,y:e}:{y:e};if(e.nodeType)return{y:e,x:e};var o={},s;for(s in e)o[s]=s!=="onAutoKill"&&$y(e[s])?e[s](n,r,i):e[s];return o},$T=function(e,n){if(e=IT(e)[0],!e||!e.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var r=e.getBoundingClientRect(),i=!n||n===Yo||n===xs,o=i?{top:go.clientTop-(Yo.pageYOffset||go.scrollTop||xs.scrollTop||0),left:go.clientLeft-(Yo.pageXOffset||go.scrollLeft||xs.scrollLeft||0)}:n.getBoundingClientRect(),s={x:r.left-o.left,y:r.top-o.top};return!i&&n&&(s.x+=_c(n,"x")(),s.y+=_c(n,"y")()),s},Fy=function(e,n,r,i,o){return!isNaN(e)&&typeof e!="object"?parseFloat(e)-o:MT(e)&&e.charAt(1)==="="?parseFloat(e.substr(2))*(e.charAt(0)==="-"?-1:1)+i-o:e==="max"?gc(n,r)-o:Math.min(gc(n,r),$T(e,n)[r]-o)},Im=function(){Ar=OT(),LT()&&Ar&&typeof document<"u"&&document.body&&(Yo=window,xs=document.body,go=document.documentElement,IT=Ar.utils.toArray,Ar.config({autoKillThreshold:7}),_l=Ar.config(),PT=1)},xa={version:"3.13.0",name:"scrollTo",rawVars:1,register:function(e){Ar=e,Im()},init:function(e,n,r,i,o){PT||Im();var s=this,a=Ar.getProperty(e,"scrollSnapType");s.isWin=e===Yo,s.target=e,s.tween=r,n=uO(n,i,e,o),s.vars=n,s.autoKill=!!("autoKill"in n?n:_l).autoKill,s.getX=_c(e,"x"),s.getY=_c(e,"y"),s.x=s.xPrev=s.getX(),s.y=s.yPrev=s.getY(),xf||(xf=Ar.core.globals().ScrollTrigger),Ar.getProperty(e,"scrollBehavior")==="smooth"&&Ar.set(e,{scrollBehavior:"auto"}),a&&a!=="none"&&(s.snap=1,s.snapInline=e.style.scrollSnapType,e.style.scrollSnapType="none"),n.x!=null?(s.add(s,"x",s.x,Fy(n.x,e,"x",s.x,n.offsetX||0),i,o),s._props.push("scrollTo_x")):s.skipX=1,n.y!=null?(s.add(s,"y",s.y,Fy(n.y,e,"y",s.y,n.offsetY||0),i,o),s._props.push("scrollTo_y")):s.skipY=1},render:function(e,n){for(var r=n._pt,i=n.target,o=n.tween,s=n.autoKill,a=n.xPrev,u=n.yPrev,c=n.isWin,h=n.snap,l=n.snapInline,d,f,_,p,b;r;)r.r(e,r.d),r=r._next;d=c||!n.skipX?n.getX():a,f=c||!n.skipY?n.getY():u,_=f-u,p=d-a,b=_l.autoKillThreshold,n.x<0&&(n.x=0),n.y<0&&(n.y=0),s&&(!n.skipX&&(p>b||p<-b)&&d<gc(i,"x")&&(n.skipX=1),!n.skipY&&(_>b||_<-b)&&f<gc(i,"y")&&(n.skipY=1),n.skipX&&n.skipY&&(o.kill(),n.vars.onAutoKill&&n.vars.onAutoKill.apply(o,n.vars.onAutoKillParams||[]))),c?Yo.scrollTo(n.skipX?d:n.x,n.skipY?f:n.y):(n.skipY||(i.scrollTop=n.y),n.skipX||(i.scrollLeft=n.x)),h&&(e===1||e===0)&&(f=i.scrollTop,d=i.scrollLeft,l?i.style.scrollSnapType=l:i.style.removeProperty("scroll-snap-type"),i.scrollTop=f+1,i.scrollLeft=d+1,i.scrollTop=f,i.scrollLeft=d),n.xPrev=n.x,n.yPrev=n.y,xf&&xf.update()},kill:function(e){var n=e==="scrollTo",r=this._props.indexOf(e);return(n||e==="scrollTo_x")&&(this.skipX=1),(n||e==="scrollTo_y")&&(this.skipY=1),r>-1&&this._props.splice(r,1),!this._props.length}};xa.max=gc;xa.getOffset=$T;xa.buildGetter=_c;xa.config=function(t){_l||Im()||(_l=Ar.config());for(var e in t)_l[e]=t[e]};OT()&&Ar.registerPlugin(xa);/*!
 * DrawSVGPlugin 3.13.0
 * https://gsap.com
 *
 * @license Copyright 2008-2025, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license
 * @author: Jack Doyle, jack@greensock.com
*/var _o,o_,Od,FT,DT,Dy,Lm,NT,HT=function(){return typeof window<"u"},BT=function(){return _o||HT()&&(_o=window.gsap)&&_o.registerPlugin&&_o},cO=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,_p={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},oa=function(e){return Math.round(e*1e4)/1e4},Wo=function(e){return parseFloat(e)||0},Ny=function(e,n){var r=Wo(e);return~e.indexOf("%")?r/100*n:r},Pf=function(e,n){return Wo(e.getAttribute(n))},Jf=Math.sqrt,Hy=function(e,n,r,i,o,s){return Jf(Math.pow((Wo(r)-Wo(e))*o,2)+Math.pow((Wo(i)-Wo(n))*s,2))},By=function(e){return console.warn(e)},VT=function(e){return e.getAttribute("vector-effect")==="non-scaling-stroke"},fO=1,dO=function(e,n,r){var i=e.indexOf(" "),o,s;return i<0?(o=r!==void 0?r+"":e,s=e):(o=e.substr(0,i),s=e.substr(i+1)),o=Ny(o,n),s=Ny(s,n),o>s?[s,o]:[o,s]},Zf=function(e){if(e=o_(e)[0],!e)return 0;var n=e.tagName.toLowerCase(),r=e.style,i=1,o=1,s,a,u,c,h,l,d;VT(e)&&(o=e.getScreenCTM(),i=Jf(o.a*o.a+o.b*o.b),o=Jf(o.d*o.d+o.c*o.c));try{a=e.getBBox()}catch{By("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}var f=a||{x:0,y:0,width:0,height:0},_=f.x,p=f.y,b=f.width,y=f.height;if((!a||!b&&!y)&&_p[n]&&(b=Pf(e,_p[n][0]),y=Pf(e,_p[n][1]),n!=="rect"&&n!=="line"&&(b*=2,y*=2),n==="line"&&(_=Pf(e,"x1"),p=Pf(e,"y1"),b=Math.abs(b-_),y=Math.abs(y-p))),n==="path")c=r.strokeDasharray,r.strokeDasharray="none",s=e.getTotalLength()||0,oa(i)!==oa(o)&&!Dy&&(Dy=1)&&By("Warning: <path> length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),s*=(i+o)/2,r.strokeDasharray=c;else if(n==="rect")s=b*2*i+y*2*o;else if(n==="line")s=Hy(_,p,_+b,p+y,i,o);else if(n==="polyline"||n==="polygon")for(u=e.getAttribute("points").match(cO)||[],n==="polygon"&&u.push(u[0],u[1]),s=0,h=2;h<u.length;h+=2)s+=Hy(u[h-2],u[h-1],u[h],u[h+1],i,o)||0;else(n==="circle"||n==="ellipse")&&(l=b/2*i,d=y/2*o,s=Math.PI*(3*(l+d)-Jf((3*l+d)*(l+3*d))));return s||0},Vy=function(e,n){if(e=o_(e)[0],!e)return[0,0];n||(n=Zf(e)+1);var r=Od.getComputedStyle(e),i=r.strokeDasharray||"",o=Wo(r.strokeDashoffset),s=i.indexOf(",");return s<0&&(s=i.indexOf(" ")),i=s<0?n:Wo(i.substr(0,s)),i>n&&(i=n),[-o||0,i-o||0]},Uy=function(){HT()&&(Od=window,DT=_o=BT(),o_=_o.utils.toArray,Lm=_o.core.getStyleSaver,NT=_o.core.reverting||function(){},FT=((Od.navigator||{}).userAgent||"").indexOf("Edge")!==-1)},UT={version:"3.13.0",name:"drawSVG",register:function(e){_o=e,Uy()},init:function(e,n,r,i,o){if(!e.getBBox)return!1;DT||Uy();var s=Zf(e),a,u,c;return this.styles=Lm&&Lm(e,"strokeDashoffset,strokeDasharray,strokeMiterlimit"),this.tween=r,this._style=e.style,this._target=e,n+""=="true"?n="0 100%":n?(n+"").indexOf(" ")===-1&&(n="0 "+n):n="0 0",a=Vy(e,s),u=dO(n,s,a[0]),this._length=oa(s),this._dash=oa(a[1]-a[0]),this._offset=oa(-a[0]),this._dashPT=this.add(this,"_dash",this._dash,oa(u[1]-u[0]),0,0,0,0,0,1),this._offsetPT=this.add(this,"_offset",this._offset,oa(-u[0]),0,0,0,0,0,1),FT&&(c=Od.getComputedStyle(e),c.strokeLinecap!==c.strokeLinejoin&&(u=Wo(c.strokeMiterlimit),this.add(e.style,"strokeMiterlimit",u,u+.01))),this._live=VT(e)||~(n+"").indexOf("live"),this._nowrap=~(n+"").indexOf("nowrap"),this._props.push("drawSVG"),fO},render:function(e,n){if(n.tween._time||!NT()){var r=n._pt,i=n._style,o,s,a,u;if(r){for(n._live&&(o=Zf(n._target),o!==n._length&&(s=o/n._length,n._length=o,n._offsetPT&&(n._offsetPT.s*=s,n._offsetPT.c*=s),n._dashPT?(n._dashPT.s*=s,n._dashPT.c*=s):n._dash*=s));r;)r.r(e,r.d),r=r._next;a=n._dash||e&&e!==1&&1e-4||0,o=n._length-a+.1,u=n._offset,a&&u&&a+Math.abs(u%n._length)>n._length-.05&&(u+=u<0?.005:-.005)&&(o+=.005),i.strokeDashoffset=a?u:u+.001,i.strokeDasharray=o<.1?"none":a?a+"px,"+(n._nowrap?999999:o)+"px":"0px, 999999px"}}else n.styles.revert()},getLength:Zf,getPosition:Vy};BT()&&_o.registerPlugin(UT);const gn=function(){return ct.isSSR||(Vn.registerPlugin(Pl,Ca,gm,bm,Lt,xa,UT),Vn.defaults({ease:"linear"})),{gsap:Vn,CustomEase:Pl,ScrollSmoother:Ca,CSSRulePlugin:gm,SplitText:bm,ScrollTrigger:Lt,ScrollToPlugin:xa}},ft=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},hO=["data-variant"],pO={class:"ButtonBasic ButtonBasic--hover"},mO=["data-variant"],gO=["data-variant"],_O={class:"ButtonBasic ButtonBasic--hover"},vO=["data-variant"],yO={__name:"ButtonBasic",props:{label:{type:String,required:!0,default:""},theme:{type:String,default:"black"},to:{type:String},rel:{type:String},download:{type:String},buttonType:{type:String},variant:{type:String,default:"default"},target:{type:String,default:null},manualHover:{type:Boolean,default:!1,required:!1},notButton:{type:Boolean,default:!1,required:!1}},emits:["click"],setup(t,{emit:e}){const n=t,r=e,{gsap:i}=gn();let o=null;const s=[],a=[],u=j(null);let c=!1;Fe(()=>n.manualHover,()=>{n.manualHover?(h(),c=!0):(c=!1,l())});function h(){c||(o==null||o.kill(),o=i.timeline(),o.set(u.value,{y:"101%"},0),o.to(u.value,{duration:.45,ease:"sine.inOut",y:0},0),o.to(s,{duration:.45,stagger:.05,y:"-150%",ease:"sine.in"},0),o.set(a,{y:"150%"},0),o.to(a,{delay:.1,duration:.5,stagger:.05,y:0,ease:"sine.out"},0))}function l(){c||(o==null||o.kill(),o=i.timeline(),o.to(u.value,{duration:.45,ease:"sine.inOut",y:"-101%"}),o.set(s,{y:"150%"},0),o.to(s,{delay:.1,duration:.45,stagger:.05,y:0,ease:"sine.out"},0),o.to(a,{duration:.5,stagger:.05,y:"-150%",ease:"sine.out"},0))}function d(R){r("click",R)}function f(){ct.touchScreen||h()}function _(){ct.touchScreen||l()}function p(R){return String(R).trim()}const b=Ae(()=>!n.to||n.buttonType);Ae(()=>p(n.label));const y=Ae(()=>p(n.label)),w=Ae(()=>{var R;return(R=y.value)==null?void 0:R.split(" ")});return Et(()=>{i.set([u.value],{y:"101%"}),i.set(a,{y:"100%"})}),(R,E)=>{const A=qw;return pe(b)?(se(),At(wa(t.notButton?"span":"button"),{key:0,class:"ButtonBasic-wrapper",type:n.buttonType,"data-variant":t.variant,"data-is-hover":t.manualHover,onClick:d,onMouseenter:f,onMouseleave:_},{default:ri(()=>[Y("span",{class:rt(["ButtonBasic ButtonBasic--static",[`ButtonBasic--${n.theme}`]])},[pe(y)?(se(),ce("span",{key:0,class:"ButtonBasic-text","data-variant":t.variant},[(se(!0),ce(Ye,null,lt(pe(w),(C,I)=>(se(),ce("span",{key:`ButtonBasic-word-${I}`,ref_for:!0,ref:$=>s[I]=$,class:"ButtonBasic-word"},De(C),1))),128))],8,hO)):it("",!0)],2),Y("span",{ref_key:"hoverBgRef",ref:u,class:rt(["ButtonBasic-hover-bg",[`ButtonBasic--${n.theme}-hover`]])},null,2),Y("span",pO,[pe(y)?(se(),ce("span",{key:0,class:"ButtonBasic-text ButtonBasic-text--hover","data-variant":t.variant,"aria-hidden":"true"},[(se(!0),ce(Ye,null,lt(pe(w),(C,I)=>(se(),ce("span",{key:`ButtonBasic-word-${I}`,ref_for:!0,ref:$=>a[I]=$,class:"ButtonBasic-word"},De(C),1))),128))],8,mO)):it("",!0)])]),_:1},40,["type","data-variant","data-is-hover"])):(se(),At(A,{key:1,class:"ButtonBasic-wrapper",to:n.to,download:n.download,rel:n.rel,"data-variant":t.variant,"data-is-hover":t.manualHover,target:t.target,onMouseenter:f,onMouseleave:_},{default:ri(()=>[Y("span",{class:rt(["ButtonBasic ButtonBasic--static",[`ButtonBasic--${n.theme}`]])},[pe(y)?(se(),ce("span",{key:0,class:"ButtonBasic-text","data-variant":t.variant},[(se(!0),ce(Ye,null,lt(pe(w),(C,I)=>(se(),ce("span",{key:`ButtonBasic-word-${I}`,ref_for:!0,ref:$=>s[I]=$,class:"ButtonBasic-word"},De(C),1))),128))],8,gO)):it("",!0)],2),Y("span",{ref_key:"hoverBgRef",ref:u,class:rt(["ButtonBasic-hover-bg",[`ButtonBasic--${n.theme}-hover`]])},null,2),Y("span",_O,[pe(y)?(se(),ce("span",{key:0,class:"ButtonBasic-text ButtonBasic-text--hover","data-variant":t.variant,"aria-hidden":"true"},[(se(!0),ce(Ye,null,lt(pe(w),(C,I)=>(se(),ce("span",{key:`ButtonBasic-word-${I}`,ref_for:!0,ref:$=>a[I]=$,class:"ButtonBasic-word"},De(C),1))),128))],8,vO)):it("",!0)])]),_:1},8,["to","download","rel","data-variant","data-is-hover","target"]))}}},jT=ft(yO,[["__scopeId","data-v-96eda748"]]),bO={},wO={class:"The404"},SO={class:"The404-container"},TO={class:"The404-wrapper"};function kO(t,e){const n=jT;return se(),ce("section",wO,[e[1]||(e[1]=Y("div",{class:"The404-bgtext"},null,-1)),Y("div",SO,[Y("div",TO,[e[0]||(e[0]=Y("p",{class:"The404-text type-body--md"},"Sorry, we can't find the page you're looking for.",-1)),He(n,{label:"Go back home",to:"/",variant:"primary",size:"large"})])])])}const EO=ft(bO,[["render",kO],["__scopeId","data-v-b39b54b2"]]),RO=["data-in-column","innerHTML"],Fl=Ni({__name:"RichText",props:{html:{type:String,required:!1},disableStyles:{type:Boolean,default:!1},extraClasses:{type:String,default:""},inColumn:{type:Boolean,default:!1}},setup(t){return(e,n)=>t.html?(se(),ce("div",{key:0,"data-in-column":t.inColumn,class:rt([t.disableStyles?"":"RichText",t.extraClasses]),innerHTML:t.html},null,10,RO)):it("",!0)}});class AO{addOptionsToUrl(e,n){return n&&n.forEach(r=>{e.indexOf("?")>-1?e+="&":e+="?",e+=r.getParam()}),e}}const jy=new AO;function Dl(t){const e=[];for(const n of Object.keys(t.headers))e.push({header:n,value:t.headers[n]});return e}class CO{constructor(){this.requestCancelledMessagePrefix="Request cancelled",this.retryAfterHeaderName="Retry-After",this.defaultRetryStatusCodes=[408,429,500,502,503,504],this.defaultRetryStrategy={addJitter:!0,deltaBackoffMs:1e3,maxAttempts:5,canRetryError:e=>this.canRetryErrorDefault(e)}}getRetryErrorResult(e){var n,r,i;if(e.error&&e.error.message&&e.error.message.startsWith(this.requestCancelledMessagePrefix))return{canRetry:!1,retryInMs:0,maxRetries:0};if(!(e.retryStrategy.canRetryError?e.retryStrategy.canRetryError(e.error):this.defaultRetryStrategy.canRetryError(e.error)))return{canRetry:!1,retryInMs:0,maxRetries:0};const s=(n=e.retryStrategy.maxAttempts)!==null&&n!==void 0?n:this.defaultRetryStrategy.maxAttempts;if(e.retryAttempt>=s)return{canRetry:!1,retryInMs:0,maxRetries:s};const u=this.tryGetRetryAfterInMsFromError(e.error);return u?{canRetry:!0,retryInMs:u,maxRetries:s}:{canRetry:!0,retryInMs:this.getNextWaitTimeMs((r=e.retryStrategy.addJitter)!==null&&r!==void 0?r:this.defaultRetryStrategy.addJitter,(i=e.retryStrategy.deltaBackoffMs)!==null&&i!==void 0?i:this.defaultRetryStrategy.deltaBackoffMs,e.retryAttempt),maxRetries:s}}getRetryStrategyFromStrategyOptions(e){return e||this.defaultRetryStrategy}canRetryInTime(e,n){const r=e.getTime(),o=new Date().getTime()-r;return{canRetry:o<n,differenceInMs:o}}getNextWaitTimeMs(e,n,r){if(!e)return n*Math.pow(2,r);const i=.8*n,o=1.2*n*Math.pow(2,r);return this.randomNumberFromInterval(i,o)}canRetryErrorDefault(e){if(!this.tryGetAxiosError(e))return!1;const r=this.getStatusCodeFromError(e);return!!this.canRetryStatusCode(r,this.defaultRetryStatusCodes)}tryGetRetryAfterInMsFromError(e){const n=this.tryGetAxiosError(e);if(!n||!n.response)return;const i=Dl(n.response).find(s=>s.header.toLowerCase()===this.retryAfterHeaderName.toLowerCase());return i?+i.value*1e3:void 0}canRetryStatusCode(e,n){return n.includes(e)}getStatusCodeFromError(e){const n=this.tryGetAxiosError(e);return!n||!n.response?0:n.response.status}tryGetAxiosError(e){if(!e)return;if(e.isAxiosError)return e;const n=e.originalError;if(n&&n.isAxiosError)return n}randomNumberFromInterval(e,n){return Math.floor(Math.random()*(n-e+1)+e)}}const $a=new CO;var Wy;(function(t){class e{constructor(r,i){if(this.name=r,this.value=i,!r)throw Error("Name of the custom parameter is not specified")}getParam(){return this.name}getParamValue(){return this.value}}t.CustomParameter=e})(Wy||(Wy={}));function WT(t,e){return function(){return t.apply(e,arguments)}}const{toString:xO}=Object.prototype,{getPrototypeOf:s_}=Object,{iterator:fh,toStringTag:qT}=Symbol,dh=(t=>e=>{const n=xO.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Zi=t=>(t=t.toLowerCase(),e=>dh(e)===t),hh=t=>e=>typeof e===t,{isArray:Nl}=Array,vc=hh("undefined");function PO(t){return t!==null&&!vc(t)&&t.constructor!==null&&!vc(t.constructor)&&ti(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const zT=Zi("ArrayBuffer");function IO(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&zT(t.buffer),e}const LO=hh("string"),ti=hh("function"),GT=hh("number"),ph=t=>t!==null&&typeof t=="object",OO=t=>t===!0||t===!1,ed=t=>{if(dh(t)!=="object")return!1;const e=s_(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(qT in t)&&!(fh in t)},MO=Zi("Date"),$O=Zi("File"),FO=Zi("Blob"),DO=Zi("FileList"),NO=t=>ph(t)&&ti(t.pipe),HO=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||ti(t.append)&&((e=dh(t))==="formdata"||e==="object"&&ti(t.toString)&&t.toString()==="[object FormData]"))},BO=Zi("URLSearchParams"),[VO,UO,jO,WO]=["ReadableStream","Request","Response","Headers"].map(Zi),qO=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Oc(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),Nl(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),s=o.length;let a;for(r=0;r<s;r++)a=o[r],e.call(null,t[a],a,t)}}function YT(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const la=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,KT=t=>!vc(t)&&t!==la;function Om(){const{caseless:t}=KT(this)&&this||{},e={},n=(r,i)=>{const o=t&&YT(e,i)||i;ed(e[o])&&ed(r)?e[o]=Om(e[o],r):ed(r)?e[o]=Om({},r):Nl(r)?e[o]=r.slice():e[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Oc(arguments[r],n);return e}const zO=(t,e,n,{allOwnKeys:r}={})=>(Oc(e,(i,o)=>{n&&ti(i)?t[o]=WT(i,n):t[o]=i},{allOwnKeys:r}),t),GO=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),YO=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},KO=(t,e,n,r)=>{let i,o,s;const a={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)s=i[o],(!r||r(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=n!==!1&&s_(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},XO=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},QO=t=>{if(!t)return null;if(Nl(t))return t;let e=t.length;if(!GT(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},JO=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&s_(Uint8Array)),ZO=(t,e)=>{const r=(t&&t[fh]).call(t);let i;for(;(i=r.next())&&!i.done;){const o=i.value;e.call(t,o[0],o[1])}},eM=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},tM=Zi("HTMLFormElement"),nM=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),qy=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),rM=Zi("RegExp"),XT=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Oc(n,(i,o)=>{let s;(s=e(i,o,t))!==!1&&(r[o]=s||i)}),Object.defineProperties(t,r)},iM=t=>{XT(t,(e,n)=>{if(ti(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(ti(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},oM=(t,e)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Nl(t)?r(t):r(String(t).split(e)),n},sM=()=>{},aM=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function lM(t){return!!(t&&ti(t.append)&&t[qT]==="FormData"&&t[fh])}const uM=t=>{const e=new Array(10),n=(r,i)=>{if(ph(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const o=Nl(r)?[]:{};return Oc(r,(s,a)=>{const u=n(s,i+1);!vc(u)&&(o[a]=u)}),e[i]=void 0,o}}return r};return n(t,0)},cM=Zi("AsyncFunction"),fM=t=>t&&(ph(t)||ti(t))&&ti(t.then)&&ti(t.catch),QT=((t,e)=>t?setImmediate:e?((n,r)=>(la.addEventListener("message",({source:i,data:o})=>{i===la&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),la.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ti(la.postMessage)),dM=typeof queueMicrotask<"u"?queueMicrotask.bind(la):typeof process<"u"&&process.nextTick||QT,hM=t=>t!=null&&ti(t[fh]),Ce={isArray:Nl,isArrayBuffer:zT,isBuffer:PO,isFormData:HO,isArrayBufferView:IO,isString:LO,isNumber:GT,isBoolean:OO,isObject:ph,isPlainObject:ed,isReadableStream:VO,isRequest:UO,isResponse:jO,isHeaders:WO,isUndefined:vc,isDate:MO,isFile:$O,isBlob:FO,isRegExp:rM,isFunction:ti,isStream:NO,isURLSearchParams:BO,isTypedArray:JO,isFileList:DO,forEach:Oc,merge:Om,extend:zO,trim:qO,stripBOM:GO,inherits:YO,toFlatObject:KO,kindOf:dh,kindOfTest:Zi,endsWith:XO,toArray:QO,forEachEntry:ZO,matchAll:eM,isHTMLForm:tM,hasOwnProperty:qy,hasOwnProp:qy,reduceDescriptors:XT,freezeMethods:iM,toObjectSet:oM,toCamelCase:nM,noop:sM,toFiniteNumber:aM,findKey:YT,global:la,isContextDefined:KT,isSpecCompliantForm:lM,toJSONObject:uM,isAsyncFn:cM,isThenable:fM,setImmediate:QT,asap:dM,isIterable:hM};function bt(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}Ce.inherits(bt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ce.toJSONObject(this.config),code:this.code,status:this.status}}});const JT=bt.prototype,ZT={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{ZT[t]={value:t}});Object.defineProperties(bt,ZT);Object.defineProperty(JT,"isAxiosError",{value:!0});bt.from=(t,e,n,r,i,o)=>{const s=Object.create(JT);return Ce.toFlatObject(t,s,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),bt.call(s,t.message,e,n,r,i),s.cause=t,s.name=t.name,o&&Object.assign(s,o),s};const pM=null;function Mm(t){return Ce.isPlainObject(t)||Ce.isArray(t)}function ek(t){return Ce.endsWith(t,"[]")?t.slice(0,-2):t}function zy(t,e,n){return t?t.concat(e).map(function(i,o){return i=ek(i),!n&&o?"["+i+"]":i}).join(n?".":""):e}function mM(t){return Ce.isArray(t)&&!t.some(Mm)}const gM=Ce.toFlatObject(Ce,{},null,function(e){return/^is[A-Z]/.test(e)});function mh(t,e,n){if(!Ce.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=Ce.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,b){return!Ce.isUndefined(b[p])});const r=n.metaTokens,i=n.visitor||h,o=n.dots,s=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&Ce.isSpecCompliantForm(e);if(!Ce.isFunction(i))throw new TypeError("visitor must be a function");function c(_){if(_===null)return"";if(Ce.isDate(_))return _.toISOString();if(!u&&Ce.isBlob(_))throw new bt("Blob is not supported. Use a Buffer instead.");return Ce.isArrayBuffer(_)||Ce.isTypedArray(_)?u&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function h(_,p,b){let y=_;if(_&&!b&&typeof _=="object"){if(Ce.endsWith(p,"{}"))p=r?p:p.slice(0,-2),_=JSON.stringify(_);else if(Ce.isArray(_)&&mM(_)||(Ce.isFileList(_)||Ce.endsWith(p,"[]"))&&(y=Ce.toArray(_)))return p=ek(p),y.forEach(function(R,E){!(Ce.isUndefined(R)||R===null)&&e.append(s===!0?zy([p],E,o):s===null?p:p+"[]",c(R))}),!1}return Mm(_)?!0:(e.append(zy(b,p,o),c(_)),!1)}const l=[],d=Object.assign(gM,{defaultVisitor:h,convertValue:c,isVisitable:Mm});function f(_,p){if(!Ce.isUndefined(_)){if(l.indexOf(_)!==-1)throw Error("Circular reference detected in "+p.join("."));l.push(_),Ce.forEach(_,function(y,w){(!(Ce.isUndefined(y)||y===null)&&i.call(e,y,Ce.isString(w)?w.trim():w,p,d))===!0&&f(y,p?p.concat(w):[w])}),l.pop()}}if(!Ce.isObject(t))throw new TypeError("data must be an object");return f(t),e}function Gy(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function a_(t,e){this._pairs=[],t&&mh(t,this,e)}const tk=a_.prototype;tk.append=function(e,n){this._pairs.push([e,n])};tk.toString=function(e){const n=e?function(r){return e.call(this,r,Gy)}:Gy;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function _M(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function nk(t,e,n){if(!e)return t;const r=n&&n.encode||_M;Ce.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(e,n):o=Ce.isURLSearchParams(e)?e.toString():new a_(e,n).toString(r),o){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Yy{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Ce.forEach(this.handlers,function(r){r!==null&&e(r)})}}const rk={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vM=typeof URLSearchParams<"u"?URLSearchParams:a_,yM=typeof FormData<"u"?FormData:null,bM=typeof Blob<"u"?Blob:null,wM={isBrowser:!0,classes:{URLSearchParams:vM,FormData:yM,Blob:bM},protocols:["http","https","file","blob","url","data"]},l_=typeof window<"u"&&typeof document<"u",$m=typeof navigator=="object"&&navigator||void 0,SM=l_&&(!$m||["ReactNative","NativeScript","NS"].indexOf($m.product)<0),TM=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",kM=l_&&window.location.href||"http://localhost",EM=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:l_,hasStandardBrowserEnv:SM,hasStandardBrowserWebWorkerEnv:TM,navigator:$m,origin:kM},Symbol.toStringTag,{value:"Module"})),Cr={...EM,...wM};function RM(t,e){return mh(t,new Cr.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return Cr.isNode&&Ce.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function AM(t){return Ce.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function CM(t){const e={},n=Object.keys(t);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],e[o]=t[o];return e}function ik(t){function e(n,r,i,o){let s=n[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),u=o>=n.length;return s=!s&&Ce.isArray(i)?i.length:s,u?(Ce.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!Ce.isObject(i[s]))&&(i[s]=[]),e(n,r,i[s],o)&&Ce.isArray(i[s])&&(i[s]=CM(i[s])),!a)}if(Ce.isFormData(t)&&Ce.isFunction(t.entries)){const n={};return Ce.forEachEntry(t,(r,i)=>{e(AM(r),i,n,0)}),n}return null}function xM(t,e,n){if(Ce.isString(t))try{return(e||JSON.parse)(t),Ce.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const Mc={transitional:rk,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=Ce.isObject(e);if(o&&Ce.isHTMLForm(e)&&(e=new FormData(e)),Ce.isFormData(e))return i?JSON.stringify(ik(e)):e;if(Ce.isArrayBuffer(e)||Ce.isBuffer(e)||Ce.isStream(e)||Ce.isFile(e)||Ce.isBlob(e)||Ce.isReadableStream(e))return e;if(Ce.isArrayBufferView(e))return e.buffer;if(Ce.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return RM(e,this.formSerializer).toString();if((a=Ce.isFileList(e))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return mh(a?{"files[]":e}:e,u&&new u,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),xM(e)):e}],transformResponse:[function(e){const n=this.transitional||Mc.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(Ce.isResponse(e)||Ce.isReadableStream(e))return e;if(e&&Ce.isString(e)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?bt.from(a,bt.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Cr.classes.FormData,Blob:Cr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ce.forEach(["delete","get","head","post","put","patch"],t=>{Mc.headers[t]={}});const PM=Ce.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),IM=t=>{const e={};let n,r,i;return t&&t.split(`
`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||e[n]&&PM[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Ky=Symbol("internals");function fu(t){return t&&String(t).trim().toLowerCase()}function td(t){return t===!1||t==null?t:Ce.isArray(t)?t.map(td):String(t)}function LM(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const OM=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function vp(t,e,n,r,i){if(Ce.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!Ce.isString(e)){if(Ce.isString(r))return e.indexOf(r)!==-1;if(Ce.isRegExp(r))return r.test(e)}}function MM(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function $M(t,e){const n=Ce.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,o,s){return this[r].call(this,e,i,o,s)},configurable:!0})})}let ni=class{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function o(a,u,c){const h=fu(u);if(!h)throw new Error("header name must be a non-empty string");const l=Ce.findKey(i,h);(!l||i[l]===void 0||c===!0||c===void 0&&i[l]!==!1)&&(i[l||u]=td(a))}const s=(a,u)=>Ce.forEach(a,(c,h)=>o(c,h,u));if(Ce.isPlainObject(e)||e instanceof this.constructor)s(e,n);else if(Ce.isString(e)&&(e=e.trim())&&!OM(e))s(IM(e),n);else if(Ce.isObject(e)&&Ce.isIterable(e)){let a={},u,c;for(const h of e){if(!Ce.isArray(h))throw TypeError("Object iterator must return a key-value pair");a[c=h[0]]=(u=a[c])?Ce.isArray(u)?[...u,h[1]]:[u,h[1]]:h[1]}s(a,n)}else e!=null&&o(n,e,r);return this}get(e,n){if(e=fu(e),e){const r=Ce.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return LM(i);if(Ce.isFunction(n))return n.call(this,i,r);if(Ce.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=fu(e),e){const r=Ce.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||vp(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function o(s){if(s=fu(s),s){const a=Ce.findKey(r,s);a&&(!n||vp(r,r[a],a,n))&&(delete r[a],i=!0)}}return Ce.isArray(e)?e.forEach(o):o(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!e||vp(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){const n=this,r={};return Ce.forEach(this,(i,o)=>{const s=Ce.findKey(r,o);if(s){n[s]=td(i),delete n[o];return}const a=e?MM(o):String(o).trim();a!==o&&delete n[o],n[a]=td(i),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return Ce.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&Ce.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[Ky]=this[Ky]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=fu(s);r[a]||($M(i,s),r[a]=!0)}return Ce.isArray(e)?e.forEach(o):o(e),this}};ni.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ce.reduceDescriptors(ni.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});Ce.freezeMethods(ni);function yp(t,e){const n=this||Mc,r=e||n,i=ni.from(r.headers);let o=r.data;return Ce.forEach(t,function(a){o=a.call(n,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function ok(t){return!!(t&&t.__CANCEL__)}function Hl(t,e,n){bt.call(this,t??"canceled",bt.ERR_CANCELED,e,n),this.name="CanceledError"}Ce.inherits(Hl,bt,{__CANCEL__:!0});function sk(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new bt("Request failed with status code "+n.status,[bt.ERR_BAD_REQUEST,bt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function FM(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function DM(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,o=0,s;return e=e!==void 0?e:1e3,function(u){const c=Date.now(),h=r[o];s||(s=c),n[i]=u,r[i]=c;let l=o,d=0;for(;l!==i;)d+=n[l++],l=l%t;if(i=(i+1)%t,i===o&&(o=(o+1)%t),c-s<e)return;const f=h&&c-h;return f?Math.round(d*1e3/f):void 0}}function NM(t,e){let n=0,r=1e3/e,i,o;const s=(c,h=Date.now())=>{n=h,i=null,o&&(clearTimeout(o),o=null),t.apply(null,c)};return[(...c)=>{const h=Date.now(),l=h-n;l>=r?s(c,h):(i=c,o||(o=setTimeout(()=>{o=null,s(i)},r-l)))},()=>i&&s(i)]}const Md=(t,e,n=3)=>{let r=0;const i=DM(50,250);return NM(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,u=s-r,c=i(u),h=s<=a;r=s;const l={loaded:s,total:a,progress:a?s/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a&&h?(a-s)/c:void 0,event:o,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(l)},n)},Xy=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Qy=t=>(...e)=>Ce.asap(()=>t(...e)),HM=Cr.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Cr.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Cr.origin),Cr.navigator&&/(msie|trident)/i.test(Cr.navigator.userAgent)):()=>!0,BM=Cr.hasStandardBrowserEnv?{write(t,e,n,r,i,o){const s=[t+"="+encodeURIComponent(e)];Ce.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Ce.isString(r)&&s.push("path="+r),Ce.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function VM(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function UM(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function ak(t,e,n){let r=!VM(e);return t&&(r||n==!1)?UM(t,e):e}const Jy=t=>t instanceof ni?{...t}:t;function Pa(t,e){e=e||{};const n={};function r(c,h,l,d){return Ce.isPlainObject(c)&&Ce.isPlainObject(h)?Ce.merge.call({caseless:d},c,h):Ce.isPlainObject(h)?Ce.merge({},h):Ce.isArray(h)?h.slice():h}function i(c,h,l,d){if(Ce.isUndefined(h)){if(!Ce.isUndefined(c))return r(void 0,c,l,d)}else return r(c,h,l,d)}function o(c,h){if(!Ce.isUndefined(h))return r(void 0,h)}function s(c,h){if(Ce.isUndefined(h)){if(!Ce.isUndefined(c))return r(void 0,c)}else return r(void 0,h)}function a(c,h,l){if(l in e)return r(c,h);if(l in t)return r(void 0,c)}const u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,h,l)=>i(Jy(c),Jy(h),l,!0)};return Ce.forEach(Object.keys(Object.assign({},t,e)),function(h){const l=u[h]||i,d=l(t[h],e[h],h);Ce.isUndefined(d)&&l!==a||(n[h]=d)}),n}const lk=t=>{const e=Pa({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=e;e.headers=s=ni.from(s),e.url=nk(ak(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let u;if(Ce.isFormData(n)){if(Cr.hasStandardBrowserEnv||Cr.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((u=s.getContentType())!==!1){const[c,...h]=u?u.split(";").map(l=>l.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...h].join("; "))}}if(Cr.hasStandardBrowserEnv&&(r&&Ce.isFunction(r)&&(r=r(e)),r||r!==!1&&HM(e.url))){const c=i&&o&&BM.read(o);c&&s.set(i,c)}return e},jM=typeof XMLHttpRequest<"u",WM=jM&&function(t){return new Promise(function(n,r){const i=lk(t);let o=i.data;const s=ni.from(i.headers).normalize();let{responseType:a,onUploadProgress:u,onDownloadProgress:c}=i,h,l,d,f,_;function p(){f&&f(),_&&_(),i.cancelToken&&i.cancelToken.unsubscribe(h),i.signal&&i.signal.removeEventListener("abort",h)}let b=new XMLHttpRequest;b.open(i.method.toUpperCase(),i.url,!0),b.timeout=i.timeout;function y(){if(!b)return;const R=ni.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),A={data:!a||a==="text"||a==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:R,config:t,request:b};sk(function(I){n(I),p()},function(I){r(I),p()},A),b=null}"onloadend"in b?b.onloadend=y:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(y)},b.onabort=function(){b&&(r(new bt("Request aborted",bt.ECONNABORTED,t,b)),b=null)},b.onerror=function(){r(new bt("Network Error",bt.ERR_NETWORK,t,b)),b=null},b.ontimeout=function(){let E=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const A=i.transitional||rk;i.timeoutErrorMessage&&(E=i.timeoutErrorMessage),r(new bt(E,A.clarifyTimeoutError?bt.ETIMEDOUT:bt.ECONNABORTED,t,b)),b=null},o===void 0&&s.setContentType(null),"setRequestHeader"in b&&Ce.forEach(s.toJSON(),function(E,A){b.setRequestHeader(A,E)}),Ce.isUndefined(i.withCredentials)||(b.withCredentials=!!i.withCredentials),a&&a!=="json"&&(b.responseType=i.responseType),c&&([d,_]=Md(c,!0),b.addEventListener("progress",d)),u&&b.upload&&([l,f]=Md(u),b.upload.addEventListener("progress",l),b.upload.addEventListener("loadend",f)),(i.cancelToken||i.signal)&&(h=R=>{b&&(r(!R||R.type?new Hl(null,t,b):R),b.abort(),b=null)},i.cancelToken&&i.cancelToken.subscribe(h),i.signal&&(i.signal.aborted?h():i.signal.addEventListener("abort",h)));const w=FM(i.url);if(w&&Cr.protocols.indexOf(w)===-1){r(new bt("Unsupported protocol "+w+":",bt.ERR_BAD_REQUEST,t));return}b.send(o||null)})},qM=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,i;const o=function(c){if(!i){i=!0,a();const h=c instanceof Error?c:this.reason;r.abort(h instanceof bt?h:new Hl(h instanceof Error?h.message:h))}};let s=e&&setTimeout(()=>{s=null,o(new bt(`timeout ${e} of ms exceeded`,bt.ETIMEDOUT))},e);const a=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),t=null)};t.forEach(c=>c.addEventListener("abort",o));const{signal:u}=r;return u.unsubscribe=()=>Ce.asap(a),u}},zM=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,i;for(;r<n;)i=r+e,yield t.slice(r,i),r=i},GM=async function*(t,e){for await(const n of YM(t))yield*zM(n,e)},YM=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},Zy=(t,e,n,r)=>{const i=GM(t,e);let o=0,s,a=u=>{s||(s=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:c,value:h}=await i.next();if(c){a(),u.close();return}let l=h.byteLength;if(n){let d=o+=l;n(d)}u.enqueue(new Uint8Array(h))}catch(c){throw a(c),c}},cancel(u){return a(u),i.return()}},{highWaterMark:2})},gh=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",uk=gh&&typeof ReadableStream=="function",KM=gh&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),ck=(t,...e)=>{try{return!!t(...e)}catch{return!1}},XM=uk&&ck(()=>{let t=!1;const e=new Request(Cr.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),e1=64*1024,Fm=uk&&ck(()=>Ce.isReadableStream(new Response("").body)),$d={stream:Fm&&(t=>t.body)};gh&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!$d[e]&&($d[e]=Ce.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new bt(`Response type '${e}' is not supported`,bt.ERR_NOT_SUPPORT,r)})})})(new Response);const QM=async t=>{if(t==null)return 0;if(Ce.isBlob(t))return t.size;if(Ce.isSpecCompliantForm(t))return(await new Request(Cr.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(Ce.isArrayBufferView(t)||Ce.isArrayBuffer(t))return t.byteLength;if(Ce.isURLSearchParams(t)&&(t=t+""),Ce.isString(t))return(await KM(t)).byteLength},JM=async(t,e)=>{const n=Ce.toFiniteNumber(t.getContentLength());return n??QM(e)},ZM=gh&&(async t=>{let{url:e,method:n,data:r,signal:i,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:u,responseType:c,headers:h,withCredentials:l="same-origin",fetchOptions:d}=lk(t);c=c?(c+"").toLowerCase():"text";let f=qM([i,o&&o.toAbortSignal()],s),_;const p=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let b;try{if(u&&XM&&n!=="get"&&n!=="head"&&(b=await JM(h,r))!==0){let A=new Request(e,{method:"POST",body:r,duplex:"half"}),C;if(Ce.isFormData(r)&&(C=A.headers.get("content-type"))&&h.setContentType(C),A.body){const[I,$]=Xy(b,Md(Qy(u)));r=Zy(A.body,e1,I,$)}}Ce.isString(l)||(l=l?"include":"omit");const y="credentials"in Request.prototype;_=new Request(e,{...d,signal:f,method:n.toUpperCase(),headers:h.normalize().toJSON(),body:r,duplex:"half",credentials:y?l:void 0});let w=await fetch(_);const R=Fm&&(c==="stream"||c==="response");if(Fm&&(a||R&&p)){const A={};["status","statusText","headers"].forEach(N=>{A[N]=w[N]});const C=Ce.toFiniteNumber(w.headers.get("content-length")),[I,$]=a&&Xy(C,Md(Qy(a),!0))||[];w=new Response(Zy(w.body,e1,I,()=>{$&&$(),p&&p()}),A)}c=c||"text";let E=await $d[Ce.findKey($d,c)||"text"](w,t);return!R&&p&&p(),await new Promise((A,C)=>{sk(A,C,{data:E,headers:ni.from(w.headers),status:w.status,statusText:w.statusText,config:t,request:_})})}catch(y){throw p&&p(),y&&y.name==="TypeError"&&/Load failed|fetch/i.test(y.message)?Object.assign(new bt("Network Error",bt.ERR_NETWORK,t,_),{cause:y.cause||y}):bt.from(y,y&&y.code,t,_)}}),Dm={http:pM,xhr:WM,fetch:ZM};Ce.forEach(Dm,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const t1=t=>`- ${t}`,e3=t=>Ce.isFunction(t)||t===null||t===!1,fk={getAdapter:t=>{t=Ce.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let o=0;o<e;o++){n=t[o];let s;if(r=n,!e3(n)&&(r=Dm[(s=String(n)).toLowerCase()],r===void 0))throw new bt(`Unknown adapter '${s}'`);if(r)break;i[s||"#"+o]=r}if(!r){const o=Object.entries(i).map(([a,u])=>`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=e?o.length>1?`since :
`+o.map(t1).join(`
`):" "+t1(o[0]):"as no adapter specified";throw new bt("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Dm};function bp(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Hl(null,t)}function n1(t){return bp(t),t.headers=ni.from(t.headers),t.data=yp.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),fk.getAdapter(t.adapter||Mc.adapter)(t).then(function(r){return bp(t),r.data=yp.call(t,t.transformResponse,r),r.headers=ni.from(r.headers),r},function(r){return ok(r)||(bp(t),r&&r.response&&(r.response.data=yp.call(t,t.transformResponse,r.response),r.response.headers=ni.from(r.response.headers))),Promise.reject(r)})}const dk="1.9.0",_h={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{_h[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const r1={};_h.transitional=function(e,n,r){function i(o,s){return"[Axios v"+dk+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(e===!1)throw new bt(i(s," has been removed"+(n?" in "+n:"")),bt.ERR_DEPRECATED);return n&&!r1[s]&&(r1[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,s,a):!0}};_h.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function t3(t,e,n){if(typeof t!="object")throw new bt("options must be an object",bt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const o=r[i],s=e[o];if(s){const a=t[o],u=a===void 0||s(a,o,t);if(u!==!0)throw new bt("option "+o+" must be "+u,bt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new bt("Unknown option "+o,bt.ERR_BAD_OPTION)}}const nd={assertOptions:t3,validators:_h},so=nd.validators;let va=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Yy,response:new Yy}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+o):r.stack=o}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Pa(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&nd.assertOptions(r,{silentJSONParsing:so.transitional(so.boolean),forcedJSONParsing:so.transitional(so.boolean),clarifyTimeoutError:so.transitional(so.boolean)},!1),i!=null&&(Ce.isFunction(i)?n.paramsSerializer={serialize:i}:nd.assertOptions(i,{encode:so.function,serialize:so.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),nd.assertOptions(n,{baseUrl:so.spelling("baseURL"),withXsrfToken:so.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&Ce.merge(o.common,o[n.method]);o&&Ce.forEach(["delete","get","head","post","put","patch","common"],_=>{delete o[_]}),n.headers=ni.concat(s,o);const a=[];let u=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(u=u&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let h,l=0,d;if(!u){const _=[n1.bind(this),void 0];for(_.unshift.apply(_,a),_.push.apply(_,c),d=_.length,h=Promise.resolve(n);l<d;)h=h.then(_[l++],_[l++]);return h}d=a.length;let f=n;for(l=0;l<d;){const _=a[l++],p=a[l++];try{f=_(f)}catch(b){p.call(this,b);break}}try{h=n1.call(this,f)}catch(_){return Promise.reject(_)}for(l=0,d=c.length;l<d;)h=h.then(c[l++],c[l++]);return h}getUri(e){e=Pa(this.defaults,e);const n=ak(e.baseURL,e.url,e.allowAbsoluteUrls);return nk(n,e.params,e.paramsSerializer)}};Ce.forEach(["delete","get","head","options"],function(e){va.prototype[e]=function(n,r){return this.request(Pa(r||{},{method:e,url:n,data:(r||{}).data}))}});Ce.forEach(["post","put","patch"],function(e){function n(r){return function(o,s,a){return this.request(Pa(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}va.prototype[e]=n(),va.prototype[e+"Form"]=n(!0)});let n3=class hk{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},e(function(o,s,a){r.reason||(r.reason=new Hl(o,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new hk(function(i){e=i}),cancel:e}}};function r3(t){return function(n){return t.apply(null,n)}}function i3(t){return Ce.isObject(t)&&t.isAxiosError===!0}const Nm={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Nm).forEach(([t,e])=>{Nm[e]=t});function pk(t){const e=new va(t),n=WT(va.prototype.request,e);return Ce.extend(n,va.prototype,e,{allOwnKeys:!0}),Ce.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return pk(Pa(t,i))},n}const $n=pk(Mc);$n.Axios=va;$n.CanceledError=Hl;$n.CancelToken=n3;$n.isCancel=ok;$n.VERSION=dk;$n.toFormData=mh;$n.AxiosError=bt;$n.Cancel=$n.CanceledError;$n.all=function(e){return Promise.all(e)};$n.spread=r3;$n.isAxiosError=i3;$n.mergeConfig=Pa;$n.AxiosHeaders=ni;$n.formToJSON=t=>ik(Ce.isHTMLForm(t)?new FormData(t):t);$n.getAdapter=fk.getAdapter;$n.HttpStatusCode=Nm;$n.default=$n;const{Axios:rB,AxiosError:iB,CanceledError:oB,isCancel:sB,CancelToken:aB,VERSION:lB,all:uB,Cancel:cB,isAxiosError:fB,spread:dB,toFormData:hB,AxiosHeaders:pB,HttpStatusCode:mB,formToJSON:gB,getAdapter:_B,mergeConfig:vB}=$n;class o3{debugStartHttpRequest(){}debugSuccessHttpRequest(){}debugRetryHttpRequest(){}}const Qi=new o3;var Ji=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(h){try{c(r.next(h))}catch(l){s(l)}}function u(h){try{c(r.throw(h))}catch(l){s(l)}}function c(h){h.done?o(h.value):i(h.value).then(a,u)}c((r=r.apply(t,e||[])).next())})};function s3(t,e,n,r){var i;return Ji(this,void 0,void 0,function*(){const o=(i=r==null?void 0:r.retryStrategy)!==null&&i!==void 0?i:$a.defaultRetryStrategy;return yield Bl({retryAttempt:0,url:e.url,retryStrategy:o,functionsConfig:n,call:s=>Ji(this,void 0,void 0,function*(){var a,u;Qi.debugStartHttpRequest();const c=yield t.get(e.url,{headers:$c((a=r==null?void 0:r.headers)!==null&&a!==void 0?a:[]),responseType:r==null?void 0:r.responseType,cancelToken:(u=r==null?void 0:r.cancelToken)===null||u===void 0?void 0:u.token}),h={data:c.data,rawResponse:c,headers:Dl(c),status:c.status,retryStrategy:{options:o,retryAttempts:s}};return Qi.debugSuccessHttpRequest(),h})})})}function a3(t,e,n,r){var i;return Ji(this,void 0,void 0,function*(){const o=(i=r==null?void 0:r.retryStrategy)!==null&&i!==void 0?i:$a.defaultRetryStrategy;return yield Bl({retryAttempt:0,url:e.url,retryStrategy:o,functionsConfig:n,call:s=>Ji(this,void 0,void 0,function*(){var a,u;Qi.debugStartHttpRequest();const c=yield t.post(e.url,e.body,{headers:$c((a=r==null?void 0:r.headers)!==null&&a!==void 0?a:[]),responseType:r==null?void 0:r.responseType,maxContentLength:"Infinity",maxBodyLength:"Infinity",cancelToken:(u=r==null?void 0:r.cancelToken)===null||u===void 0?void 0:u.token}),h={data:c.data,rawResponse:c,headers:Dl(c),status:c.status,retryStrategy:{options:o,retryAttempts:s}};return Qi.debugSuccessHttpRequest(),h})})})}function l3(t,e,n,r){var i;return Ji(this,void 0,void 0,function*(){const o=(i=r==null?void 0:r.retryStrategy)!==null&&i!==void 0?i:$a.defaultRetryStrategy;return yield Bl({retryAttempt:0,url:e.url,retryStrategy:o,functionsConfig:n,call:s=>Ji(this,void 0,void 0,function*(){var a,u;Qi.debugStartHttpRequest();const c=yield t.put(e.url,e.body,{headers:$c((a=r==null?void 0:r.headers)!==null&&a!==void 0?a:[]),responseType:r==null?void 0:r.responseType,maxContentLength:"Infinity",maxBodyLength:"Infinity",cancelToken:(u=r==null?void 0:r.cancelToken)===null||u===void 0?void 0:u.token}),h={data:c.data,rawResponse:c,headers:Dl(c),status:c.status,retryStrategy:{options:o,retryAttempts:s}};return Qi.debugSuccessHttpRequest(),h})})})}function u3(t,e,n,r){var i;return Ji(this,void 0,void 0,function*(){const o=(i=r==null?void 0:r.retryStrategy)!==null&&i!==void 0?i:$a.defaultRetryStrategy;return yield Bl({retryAttempt:0,url:e.url,retryStrategy:o,functionsConfig:n,call:s=>Ji(this,void 0,void 0,function*(){var a,u;Qi.debugStartHttpRequest();const c=yield t.patch(e.url,e.body,{headers:$c((a=r==null?void 0:r.headers)!==null&&a!==void 0?a:[]),responseType:r==null?void 0:r.responseType,maxContentLength:"Infinity",maxBodyLength:"Infinity",cancelToken:(u=r==null?void 0:r.cancelToken)===null||u===void 0?void 0:u.token}),h={data:c.data,rawResponse:c,headers:Dl(c),status:c.status,retryStrategy:{options:o,retryAttempts:s}};return Qi.debugSuccessHttpRequest(),h})})})}function c3(t,e,n,r){var i;return Ji(this,void 0,void 0,function*(){const o=(i=r==null?void 0:r.retryStrategy)!==null&&i!==void 0?i:$a.defaultRetryStrategy;return yield Bl({retryAttempt:0,url:e.url,retryStrategy:o,functionsConfig:n,call:s=>Ji(this,void 0,void 0,function*(){var a,u;Qi.debugStartHttpRequest();const c=yield t.delete(e.url,{headers:$c((a=r==null?void 0:r.headers)!==null&&a!==void 0?a:[]),responseType:r==null?void 0:r.responseType,maxContentLength:"Infinity",maxBodyLength:"Infinity",cancelToken:(u=r==null?void 0:r.cancelToken)===null||u===void 0?void 0:u.token}),h={data:c.data,rawResponse:c,headers:Dl(c),status:c.status,retryStrategy:{options:o,retryAttempts:s}};return Qi.debugSuccessHttpRequest(),h})})})}function f3(){let t;const e=new $n.CancelToken(n=>{t=n});return{cancel:n=>t(`${$a.requestCancelledMessagePrefix}: ${n??"User cancel"}`),token:e}}function Bl(t){return Ji(this,void 0,void 0,function*(){try{return yield t.call(t.retryAttempt)}catch(e){const n=$a.getRetryErrorResult({error:e,retryAttempt:t.retryAttempt,retryStrategy:t.retryStrategy});if(n.canRetry)return Qi.debugRetryHttpRequest(),yield new Promise(r=>setTimeout(r,n.retryInMs)),t.functionsConfig.logErrorsToConsole&&console.warn(`Retry attempt '${t.retryAttempt+1}' from a maximum of '${n.maxRetries}' retries. Request url: '${t.url}'`),yield Bl({call:t.call,retryStrategy:t.retryStrategy,retryAttempt:t.retryAttempt+1,url:t.url,functionsConfig:t.functionsConfig});throw t.functionsConfig.logErrorsToConsole&&console.error(`Executing '${t.url}' failed. Request was retried '${t.retryAttempt}' times. `,e),e}})}function $c(t,e){const n={};return t.forEach(r=>{n[r.header]=r.value}),n}var du=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(h){try{c(r.next(h))}catch(l){s(l)}}function u(h){try{c(r.throw(h))}catch(l){s(l)}}function c(h){h.done?o(h.value):i(h.value).then(a,u)}c((r=r.apply(t,e||[])).next())})};class d3{constructor(e){this.opts=e,this.axiosInstance=$n.create(e==null?void 0:e.axiosRequestConfig),this.functionsConfig=this.getFunctionsConfig()}getAsync(e,n){return du(this,void 0,void 0,function*(){return yield s3(this.axiosInstance,e,this.functionsConfig,n)})}postAsync(e,n){return du(this,void 0,void 0,function*(){return yield a3(this.axiosInstance,e,this.functionsConfig,n)})}putAsync(e,n){return du(this,void 0,void 0,function*(){return yield l3(this.axiosInstance,e,this.functionsConfig,n)})}patchAsync(e,n){return du(this,void 0,void 0,function*(){return yield u3(this.axiosInstance,e,this.functionsConfig,n)})}deleteAsync(e,n){return du(this,void 0,void 0,function*(){return yield c3(this.axiosInstance,e,this.functionsConfig,n)})}createCancelToken(){return f3()}getFunctionsConfig(){var e,n;return{logErrorsToConsole:(n=(e=this.opts)===null||e===void 0?void 0:e.logErrorsToConsole)!==null&&n!==void 0?n:!0}}}var zt;(function(t){const r=E=>{if(!E)return"";if(Array.isArray(E)){let A="";for(let C=0;C<E.length;C++)A=A+E[C].toString(),C!==E.length-1&&(A=A+",");return A}return E.toString()};class i{constructor(A){this.type=A}getParam(){return Array.isArray(this.type)?`system.type[in]=${r(this.type)}`:`system.type=${r(this.type)}`}}t.TypeFilter=i;class o{constructor(A){this.collection=A}getParam(){return Array.isArray(this.collection)?`system.collection[in]=${r(this.collection)}`:`system.collection=${r(this.collection)}`}}t.CollectionFilter=o;class s{constructor(A){this.element=A}getParam(){return`${this.element.trim()}[empty]`}}t.EmptyFilter=s;class a{constructor(A){this.element=A}getParam(){return`${this.element.trim()}[nempty]`}}t.NotEmptyFilter=a;class u{constructor(A,C){this.element=A,this.value=C}getParam(){return`${this.element.trim()}[eq]=${this.getParamValue()}`}getParamValue(){return this.value?this.value:""}}t.EqualsFilter=u;class c{constructor(A,C){this.element=A,this.value=C}getParam(){return`${this.element.trim()}[neq]=${this.getParamValue()}`}getParamValue(){return this.value?this.value:""}}t.NotEqualsFilter=c;class h{constructor(A,C){this.element=A,this.values=C}getParam(){return`${this.element.trim()}[all]=${this.getParamValue()}`}getParamValue(){return!this.values||!Array.isArray(this.values)?"":this.values.map(A=>A.trim()).join(",")}}t.AllFilter=h;class l{constructor(A,C){this.element=A,this.values=C}getParam(){return`${this.element.trim()}[any]=${this.getParamValue()}`}getParamValue(){return!this.values||!Array.isArray(this.values)?"":this.values.map(A=>A.trim()).join(",")}}t.AnyFilter=l;class d{constructor(A,C){this.element=A,this.values=C}getParam(){return`${this.element.trim()}[contains]=${this.getParamValue()}`}getParamValue(){return!this.values||!Array.isArray(this.values)?"":this.values.map(A=>A.trim()).join(",")}}t.ContainsFilter=d;class f{constructor(A,C){this.element=A,this.value=C}getParam(){return`${this.element.trim()}[gt]=${this.getParamValue()}`}getParamValue(){return this.value?this.value:""}}t.GreaterThanFilter=f;class _{constructor(A,C){this.element=A,this.value=C}getParam(){return`${this.element.trim()}[gte]=${this.getParamValue()}`}getParamValue(){return this.value?this.value:""}}t.GreaterThanOrEqualFilter=_;class p{constructor(A,C){this.element=A,this.values=C}getParam(){return`${this.element.trim()}[in]=${this.getParamValue()}`}getParamValue(){return!this.values||!Array.isArray(this.values)?"":this.values.map(A=>A.trim()).join(",")}}t.InFilter=p;class b{constructor(A,C){this.element=A,this.values=C}getParam(){return`${this.element.trim()}[nin]=${this.getParamValue()}`}getParamValue(){return!this.values||!Array.isArray(this.values)?"":this.values.map(A=>A.trim()).join(",")}}t.NotInFilter=b;class y{constructor(A,C){this.element=A,this.value=C}getParam(){return`${this.element.trim()}[lt]=${this.getParamValue()}`}getParamValue(){return this.value?this.value:""}}t.LessThanFilter=y;class w{constructor(A,C){this.element=A,this.value=C}getParam(){return`${this.element.trim()}[lte]=${this.getParamValue()}`}getParamValue(){return this.value?this.value:""}}t.LessThanOrEqualFilter=w;class R{constructor(A,C,I){this.element=A,this.lowerValue=C,this.higherValue=I}getParam(){return`${this.element.trim()}[range]=${this.getParamValue()}`}getParamValue(){let A="",C="";return this.lowerValue&&(A=this.lowerValue.toString()),this.higherValue&&(C=this.higherValue.toString()),`${A},${C}`}}t.RangeFilter=R})(zt||(zt={}));var Yt;(function(t){class n{constructor(f,_){if(this.name=f,this.value=_,!f)throw Error("Name of the parameter is not specified")}getParam(){return`${this.name}=${this.value}`}}t.QueryParameter=n;class r{constructor(f){this.elementCodenames=f}getParam(){return`elements=${this.getParamValue()}`}getParamValue(){return this.elementCodenames?this.elementCodenames.map(f=>{if(!f)throw Error("Codename of 'ElementsParameter' cannot be null or empty");return f.trim()}).join(","):""}}t.ElementsParameter=r;class i{constructor(f){this.elementCodenames=f}getParam(){return`excludeElements=${this.getParamValue()}`}getParamValue(){return this.elementCodenames?this.elementCodenames.map(f=>{if(!f)throw Error("Codename of 'ExcludeElementsParameter' cannot be null or empty");return f.trim()}).join(","):""}}t.ExcludeElementsParameter=i;class o{constructor(f){if(this.limit=f,f<=0)throw Error("'LimitParameter' must specify a positive integer")}getParam(){return`limit=${this.limit}`}}t.LimitParameter=o;class s{constructor(){}getParam(){return"includeTotalCount=true"}}t.IncludeTotalCountParameter=s;class a{constructor(f){if(this.skip=f,f<0)throw Error(`'SkipParameter' must specify a positive integer number or zero."`)}getParam(){return`skip=${this.skip}`}}t.SkipParameter=a;class u{constructor(f,_){if(this.element=f,this.sortOrder=_,!f)throw Error("Element specified in 'OrderParameter' is null or empty")}getParam(){return`order=${this.getParamValue()}`}getParamValue(){return`${this.element.trim()}[${this.sortOrder}]`}}t.OrderParameter=u;class c{constructor(f){this.param=f}getParam(){return this.param}}t.CustomParameter=c;class h{constructor(f){if(this.depth=f,f<0)throw Error("'DepthParameter' must specify a positive integer or zero")}getParam(){return`depth=${this.depth}`}}t.DepthParameter=h;class l{constructor(f){this.languageCodename=f}getParam(){return`language=${this.languageCodename}`}}t.LanguageParameter=l})(Yt||(Yt={}));class h3{constructor(e){this.message=e.message,this.requestId=e.requestId,this.errorCode=e.errorCode,this.specificCode=e.specificCode}}const Hm="X-Continuation",p3="X-KC-Wait-For-Loading-New-Content",m3="X-KC-SDKID",g3="X-Stale-Content";class Vl{constructor(e,n){this.config=e,this.queryService=n,this.parameters=[]}withCustomParameter(e,n){return this.parameters.push(new Yt.QueryParameter(e,n)),this}withParameter(e){return this.parameters.push(e),this}withParameters(e){return this.parameters.push(...e),this}getHeaders(){return this.queryService.getHeaders(this._queryConfig,[])}withHeaders(e){var n;const r=(n=this._queryConfig.customHeaders)!==null&&n!==void 0?n:[];return r.push(...e),this._queryConfig.customHeaders=r,this}withHeader(e){var n;const r=(n=this._queryConfig.customHeaders)!==null&&n!==void 0?n:[];return r.push(e),this._queryConfig.customHeaders=r,this}withCustomUrl(e){return this.customUrl=e,this}getParameters(){return this.parameters}queryConfig(e){return this._queryConfig=e,this}resolveUrlInternal(e){var n;return this.customUrl?this.customUrl:this.queryService.getUrl(e,(n=this._queryConfig)!==null&&n!==void 0?n:{},this.getParameters())}processDefaultLanguageParameter(){this.config.defaultLanguage&&(this.getParameters().find(n=>{var r;return(r=n.getParam())===null||r===void 0?void 0:r.toLowerCase().includes("language=".toLowerCase())})||this.parameters.push(new Yt.LanguageParameter(this.config.defaultLanguage)))}processExcludeArchivedItemsParameter(){this.config.excludeArchivedItems&&this.parameters.push(new zt.NotEqualsFilter("system.workflow_step","archived"))}}class _3 extends Vl{constructor(e,n,r,i){if(super(e,n),this.config=e,this.queryService=n,this.typeCodename=r,this.elementCodename=i,this._queryConfig={},!r)throw Error("Codename of the type has to be provided");if(!i)throw Error("Codename of the element has to be provided")}toPromise(){var e;return this.queryService.getElementAsync(this.getUrl(),(e=this._queryConfig)!==null&&e!==void 0?e:{})}getUrl(){return super.resolveUrlInternal(`/types/${this.typeCodename}/elements/${this.elementCodename}`)}map(e){return this.queryService.mappingService.viewContentTypeElementResponse(e)}}var un;(function(t){t.Text="text",t.Number="number",t.ModularContent="modular_content",t.Asset="asset",t.DateTime="date_time",t.RichText="rich_text",t.MultipleChoice="multiple_choice",t.UrlSlug="url_slug",t.Taxonomy="taxonomy",t.Custom="custom",t.Unknown="unknown"})(un||(un={}));class Ul extends Vl{constructor(e,n){super(e,n),this.config=e,this.queryService=n}withContinuationToken(e){var n;let r=(n=this._queryConfig.customHeaders)!==null&&n!==void 0?n:[];return r=r.filter(i=>i.header!==Hm),this._queryConfig.customHeaders=r,this.withHeaders([{header:Hm,value:e}]),this}toAllPromise(e){return this.queryService.getListAllResponse({page:1,listQueryConfig:e,allResponseFactory:(n,r)=>({data:this.allResponseFactory(n,r),responses:r}),getResponse:(n,r)=>(n&&this.withCustomUrl(n),r&&this.withContinuationToken(r),this.toPromise())})}}class mk extends Ul{constructor(e,n){super(e,n),this.config=e,this.queryService=n}emptyFilter(e){return this.parameters.push(new zt.EmptyFilter(e)),this}notEmptyFilter(e){return this.parameters.push(new zt.NotEmptyFilter(e)),this}equalsFilter(e,n){return this.parameters.push(new zt.EqualsFilter(e,n)),this}notEqualsFilter(e,n){return this.parameters.push(new zt.NotEqualsFilter(e,n)),this}allFilter(e,n){return this.parameters.push(new zt.AllFilter(e,n)),this}anyFilter(e,n){return this.parameters.push(new zt.AnyFilter(e,n)),this}containsFilter(e,n){return this.parameters.push(new zt.ContainsFilter(e,n)),this}greaterThanFilter(e,n){return this.parameters.push(new zt.GreaterThanFilter(e,n)),this}greaterThanOrEqualFilter(e,n){return this.parameters.push(new zt.GreaterThanOrEqualFilter(e,n)),this}inFilter(e,n){return this.parameters.push(new zt.InFilter(e,n)),this}notInFilter(e,n){return this.parameters.push(new zt.NotInFilter(e,n)),this}lessThanFilter(e,n){return this.parameters.push(new zt.LessThanFilter(e,n)),this}lessThanOrEqualFilter(e,n){return this.parameters.push(new zt.LessThanOrEqualFilter(e,n)),this}rangeFilter(e,n,r){return this.parameters.push(new zt.RangeFilter(e,n,r)),this}limitParameter(e){return this.parameters.push(new Yt.LimitParameter(e)),this}orderParameter(e,n){return this.parameters.push(new Yt.OrderParameter(e,n)),this}orderByDescending(e){return this.parameters.push(new Yt.OrderParameter(e,"desc")),this}orderByAscending(e){return this.parameters.push(new Yt.OrderParameter(e,"asc")),this}skipParameter(e){return this.parameters.push(new Yt.SkipParameter(e)),this}linkItemsInRte(e){for(const n of e)for(const r of Object.keys(n.elements)){const i=n.elements[r];if(i.type===un.ModularContent){const o=i,s=[];for(const a of o.value){let u;const c=o.linkedItems.find(h=>h.system.codename.toLowerCase()===a.toLowerCase());c?u=c:u=e.find(h=>h.system.codename.toLowerCase()===a.toLowerCase()),u&&s.push(u)}o.linkedItems=s}if(i.type===un.RichText){const o=[],s=i;for(const a of s.linkedItemCodenames){let u;const c=s.linkedItems.find(h=>h.system.codename.toLowerCase()===a.toLowerCase());c?u=c:u=e.find(h=>h.system.codename.toLowerCase()===a.toLowerCase()),u&&o.push(u)}s.linkedItems=o}}}}class v3 extends mk{constructor(e,n){super(e,n),this.config=e,this.queryService=n,this._queryConfig={}}includeTotalCountParameter(){return this.parameters.push(new Yt.IncludeTotalCountParameter),this}type(e){return this.parameters.push(new zt.TypeFilter(e)),this}types(e){return this.parameters.push(new zt.TypeFilter(e)),this}collection(e){return this.parameters.push(new zt.CollectionFilter(e)),this}collections(e){return this.parameters.push(new zt.CollectionFilter(e)),this}depthParameter(e){return this.parameters.push(new Yt.DepthParameter(e)),this}languageParameter(e){return this.parameters.push(new Yt.LanguageParameter(e)),this}elementsParameter(e){return this.parameters.push(new Yt.ElementsParameter(e)),this}excludeElementsParameter(e){return this.parameters.push(new Yt.ExcludeElementsParameter(e)),this}toPromise(){var e;return this.queryService.getMultipleItems(this.getUrl(),(e=this._queryConfig)!==null&&e!==void 0?e:{})}getUrl(){const e="/items";return this.processDefaultLanguageParameter(),this.processExcludeArchivedItemsParameter(),super.resolveUrlInternal(e)}map(e){return this.queryService.mappingService.listContentItemsResponse(e)}allResponseFactory(e,n){return this.linkItems(e,n),{items:e,responses:n}}linkItems(e,n){const r=[];for(const i of n)r.push(...Object.values(i.data.linkedItems).filter(o=>o!==void 0).map(o=>o));for(const i of e)r.find(o=>o.system.codename.toLowerCase()===i.system.codename.toLowerCase())||r.push(i);this.linkItemsInRte(r)}}class y3 extends Vl{constructor(e,n,r){if(super(e,n),this.config=e,this.queryService=n,this.codename=r,this._queryConfig={},!r)throw Error("'codename' has to be configured for 'SingleItemQuery' query")}depthParameter(e){return this.parameters.push(new Yt.DepthParameter(e)),this}queryConfig(e){return this._queryConfig=e,this}languageParameter(e){return this.parameters.push(new Yt.LanguageParameter(e)),this}elementsParameter(e){return this.parameters.push(new Yt.ElementsParameter(e)),this}excludeElementsParameter(e){return this.parameters.push(new Yt.ExcludeElementsParameter(e)),this}toPromise(){var e;return this.queryService.getSingleItemAsync(this.getUrl(),(e=this._queryConfig)!==null&&e!==void 0?e:{})}getUrl(){const e="/items/"+this.codename;return this.processDefaultLanguageParameter(),this.processExcludeArchivedItemsParameter(),super.resolveUrlInternal(e)}map(e){return this.queryService.mappingService.viewContentItemResponse(e)}}class b3 extends Ul{constructor(e,n){super(e,n),this.config=e,this.queryService=n,this.taxonomiesEndpoint="taxonomies",this._queryConfig={}}limitParameter(e){return this.parameters.push(new Yt.LimitParameter(e)),this}skipParameter(e){return this.parameters.push(new Yt.SkipParameter(e)),this}toPromise(){var e;return this.queryService.getTaxonomies(this.getUrl(),(e=this._queryConfig)!==null&&e!==void 0?e:{})}getUrl(){const e="/"+this.taxonomiesEndpoint;return super.resolveUrlInternal(e)}map(e){return this.queryService.mappingService.listTaxonomiesResponse(e)}allResponseFactory(e,n){return{items:e,responses:n}}}class w3 extends Vl{constructor(e,n,r){if(super(e,n),this.config=e,this.queryService=n,this.taxonomyCodename=r,this.taxonomiesEndpoint="taxonomies",this._queryConfig={},!r)throw Error("Cannot create taxonomy query without codename of the taxonomy")}toPromise(){var e;return this.queryService.getTaxonomy(this.getUrl(),(e=this._queryConfig)!==null&&e!==void 0?e:{})}getUrl(){const e="/"+this.taxonomiesEndpoint+"/"+this.taxonomyCodename;return super.resolveUrlInternal(e)}map(e){return this.queryService.mappingService.viewTaxonomyResponse(e)}}class S3 extends Ul{constructor(e,n){super(e,n),this.config=e,this.queryService=n,this._queryConfig={}}elementsParameter(e){return this.parameters.push(new Yt.ElementsParameter(e)),this}excludeElementsParameter(e){return this.parameters.push(new Yt.ExcludeElementsParameter(e)),this}limitParameter(e){return this.parameters.push(new Yt.LimitParameter(e)),this}skipParameter(e){return this.parameters.push(new Yt.SkipParameter(e)),this}toPromise(){var e;return this.queryService.getMultipleTypes(this.getUrl(),(e=this._queryConfig)!==null&&e!==void 0?e:{})}getUrl(){return super.resolveUrlInternal("/types")}map(e){return this.queryService.mappingService.listContentTypesResponse(e)}allResponseFactory(e,n){return{items:e,responses:n}}}class T3 extends Vl{constructor(e,n,r){if(super(e,n),this.config=e,this.queryService=n,this.typeCodename=r,this._queryConfig={},!r)throw Error("Cannot create type query without the codename of the type")}toPromise(){var e;return this.queryService.getSingleType(this.getUrl(),(e=this._queryConfig)!==null&&e!==void 0?e:{})}getUrl(){const e="/types/"+this.typeCodename;return super.resolveUrlInternal(e)}map(e){return this.queryService.mappingService.viewContentTypeResponse(e)}}class k3 extends mk{constructor(e,n){super(e,n),this.config=e,this.queryService=n,this._queryConfig={}}type(e){return this.parameters.push(new zt.TypeFilter(e)),this}types(e){return this.parameters.push(new zt.TypeFilter(e)),this}collection(e){return this.parameters.push(new zt.CollectionFilter(e)),this}collections(e){return this.parameters.push(new zt.CollectionFilter(e)),this}languageParameter(e){return this.parameters.push(new Yt.LanguageParameter(e)),this}elementsParameter(e){return this.parameters.push(new Yt.ElementsParameter(e)),this}excludeElementsParameter(e){return this.parameters.push(new Yt.ExcludeElementsParameter(e)),this}toPromise(){var e;return this.queryService.getItemsFeed(this.getUrl(),(e=this._queryConfig)!==null&&e!==void 0?e:{})}getUrl(){const e="/items-feed";return this.processDefaultLanguageParameter(),this.processExcludeArchivedItemsParameter(),super.resolveUrlInternal(e)}queryConfig(e){return this._queryConfig=e,this}map(e){return this.queryService.mappingService.itemsFeedResponse(e)}allResponseFactory(e,n){return this.canLinkItems()&&this.linkFeedItems(e,n),{items:e,responses:n}}linkFeedItems(e,n){const r=[];for(const i of n)r.push(...Object.values(i.data.linkedItems).filter(o=>o!==void 0).map(o=>o));for(const i of e)r.find(o=>o.system.codename.toLowerCase()===i.system.codename.toLowerCase())||r.push(i);this.linkItemsInRte(r)}canLinkItems(){return!(this.config.linkedItemsReferenceHandler==="ignore"||this._queryConfig.disableItemLinking===!0)}}class E3 extends Ul{constructor(e,n){super(e,n),this.config=e,this.queryService=n,this.endpoint="languages",this._queryConfig={}}limitParameter(e){return this.parameters.push(new Yt.LimitParameter(e)),this}skipParameter(e){return this.parameters.push(new Yt.SkipParameter(e)),this}toPromise(){var e;return this.queryService.getLanguages(this.getUrl(),(e=this._queryConfig)!==null&&e!==void 0?e:{})}getUrl(){const e="/"+this.endpoint;return super.resolveUrlInternal(e)}queryConfig(e){return this._queryConfig=e,this}map(e){return this.queryService.mappingService.listLanguagesResponse(e)}allResponseFactory(e,n){return{items:e,responses:n}}}class R3 extends Vl{constructor(e,n){super(e,n),this.config=e,this.queryService=n,this.endpoint="sync/init",this._queryConfig={}}type(e){return this.parameters.push(new zt.TypeFilter(e)),this}collection(e){return this.parameters.push(new zt.CollectionFilter(e)),this}languageParameter(e){return this.parameters.push(new Yt.LanguageParameter(e)),this}toPromise(){var e;return console.warn("Sync Api v1 is deprecated. Please use the new Sync Api v2. https://kontent.ai/learn/docs/apis/openapi/sync-api-v2/"),this.queryService.initializeSync(this.getUrl(),(e=this._queryConfig)!==null&&e!==void 0?e:{})}getUrl(){const e="/"+this.endpoint;return super.resolveUrlInternal(e)}queryConfig(e){return this._queryConfig=e,this}map(e){return this.queryService.mappingService.initializeContentSync(e)}}class A3 extends Ul{constructor(e,n){super(e,n),this.config=e,this.queryService=n,this._queryConfig={},this.action="/sync"}toPromise(){var e;return console.warn("Sync Api v1 is deprecated. Please use the new Sync Api v2. https://kontent.ai/learn/docs/apis/openapi/sync-api-v2/"),this.queryService.syncChanges(this.getUrl(),(e=this._queryConfig)!==null&&e!==void 0?e:{})}getUrl(){return super.resolveUrlInternal(this.action)}queryConfig(e){return this._queryConfig=e,this}map(e){return this.queryService.mappingService.syncChanges(e)}allResponseFactory(e,n){return{items:e,responses:n}}}class i1 extends Ul{constructor(e,n,r){super(e,n),this.config=e,this.queryService=n,this.setup=r,this._queryConfig={}}type(e){return this.parameters.push(new zt.TypeFilter(e)),this}types(e){return this.parameters.push(new zt.TypeFilter(e)),this}collection(e){return this.parameters.push(new zt.CollectionFilter(e)),this}collections(e){return this.parameters.push(new zt.CollectionFilter(e)),this}languageParameter(e){return this.parameters.push(new Yt.LanguageParameter(e)),this}toPromise(){var e;return this.queryService.getUsedIn(this.getUrl(),(e=this._queryConfig)!==null&&e!==void 0?e:{})}getUrl(){const e=`/${this.setup.entity==="asset"?"assets":"items"}/${this.setup.codename}/used-in`;return this.processDefaultLanguageParameter(),this.processExcludeArchivedItemsParameter(),super.resolveUrlInternal(e)}queryConfig(e){return this._queryConfig=e,this}map(e){return this.queryService.mappingService.usedInResponse(e)}allResponseFactory(e,n){return{items:e,responses:n}}}const wp={host:"npmjs.com",version:"16.2.1",name:"@kontent-ai/delivery-sdk"};var o1=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(h){try{c(r.next(h))}catch(l){s(l)}}function u(h){try{c(r.throw(h))}catch(l){s(l)}}function c(h){h.done?o(h.value):i(h.value).then(a,u)}c((r=r.apply(t,e||[])).next())})};class C3{constructor(e,n,r,i){this.config=e,this.httpService=n,this.sdkInfo=r,this.mappingService=i,this.defaultBaseDeliveryApiUrl="https://deliver.kontent.ai",this.defaultPreviewDeliveryApiUrl="https://preview-deliver.kontent.ai"}getUrl(e,n,r){return!this.config.proxy||!this.config.proxy.advancedProxyUrlResolver?jy.addOptionsToUrl(this.getBaseUrl(n)+e,r):this.config.proxy.advancedProxyUrlResolver({queryParameters:r||[],queryString:jy.addOptionsToUrl("",r),action:e,domain:this.getDomain(n),queryConfig:n,environmentId:this.config.environmentId})}getHeaders(e,n){const r=[];if(n&&r.push(...n),r.push(this.getSdkIdHeader()),this.config.globalHeaders&&r.push(...this.config.globalHeaders(e)),r.push(...this.getQueryHeaders(e)),this.isPreviewModeEnabled(e)&&this.isSecuredModeEnabled(e))throw Error("Preview & secured modes cannot be used at the same time.");return this.isPreviewModeEnabled(e)&&this.config.previewApiKey&&r.push(this.getAuthorizationHeader(this.config.previewApiKey)),this.isSecuredModeEnabled(e)&&this.config.secureApiKey&&r.push(this.getAuthorizationHeader(this.config.secureApiKey)),this.shouldAddWaitForLoadingNewContentHeader(e)&&r.push({header:p3,value:"true"}),r}postResponseAsync(e,n,r,i){return o1(this,void 0,void 0,function*(){r||(r={}),i||(i={});try{return yield this.httpService.postAsync({url:e,body:n},{cancelToken:r==null?void 0:r.cancelToken,responseType:"json",retryStrategy:this.config.retryStrategy,headers:this.getHeaders(r,i.headers?i.headers:[])})}catch(o){throw this.mapDeliveryError(o)}})}getResponseAsync(e,n,r){return o1(this,void 0,void 0,function*(){n||(n={}),r||(r={});try{return yield this.httpService.getAsync({url:e},{cancelToken:n==null?void 0:n.cancelToken,responseType:"json",retryStrategy:this.config.retryStrategy,headers:this.getHeaders(n,r.headers?r.headers:[])})}catch(i){throw this.mapDeliveryError(i)}})}getBaseUrl(e){return this.getDomain(e)+"/"+this.config.environmentId}mapNetworkResponse(e,n){return{data:e,response:n,hasStaleContent:this.getHasStaleContent(n.headers),xContinuationToken:this.getContinuationToken(n.headers)}}isPreviewModeEnabled(e){return e.usePreviewMode!==void 0?e.usePreviewMode:this.config.defaultQueryConfig?this.config.defaultQueryConfig.usePreviewMode===!0:!1}getQueryHeaders(e){var n;return e.customHeaders?e.customHeaders:!((n=this.config.defaultQueryConfig)===null||n===void 0)&&n.customHeaders?this.config.defaultQueryConfig.customHeaders:[]}shouldAddWaitForLoadingNewContentHeader(e){return e.waitForLoadingNewContent!==void 0?e.waitForLoadingNewContent:this.config.defaultQueryConfig?this.config.defaultQueryConfig.waitForLoadingNewContent===!0:!1}isSecuredModeEnabled(e){return e.useSecuredMode!==void 0?e.useSecuredMode:this.config.defaultQueryConfig?this.config.defaultQueryConfig.useSecuredMode===!0:!1}getDomain(e){if(this.isPreviewModeEnabled(e)){if(!this.config.previewApiKey)throw Error("Preview API key is not configured.");return this.config.proxy&&this.config.proxy.basePreviewUrl?this.config.proxy.basePreviewUrl:this.defaultPreviewDeliveryApiUrl}return this.config.proxy&&this.config.proxy.baseUrl?this.config.proxy.baseUrl:this.defaultBaseDeliveryApiUrl}getAuthorizationHeader(e){if(!e)throw Error("Cannot get authorization header because key is invalid");return{header:"authorization",value:`bearer ${e}`}}getSdkIdHeader(){return{header:m3,value:`${this.sdkInfo.host};${this.sdkInfo.name};${this.sdkInfo.version}`}}mapDeliveryError(e){var n;let r;if(e.error?r=e.error:r=e,!r||!r.isAxiosError)return e;const i=(n=r.response)===null||n===void 0?void 0:n.data;return!i||!i.error_code?e:new h3({errorCode:i.error_code,message:i.message,specificCode:i.specific_code,requestId:i.request_id})}getHasStaleContent(e){const n=e.find(r=>r.header.toLowerCase()===g3.toLowerCase());return!!(n&&n.value.toString()==="1")}getContinuationToken(e){const n=e.find(r=>r.header.toLowerCase()===Hm.toLowerCase());return n?n.value:void 0}}var zr=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(h){try{c(r.next(h))}catch(l){s(l)}}function u(h){try{c(r.throw(h))}catch(l){s(l)}}function c(h){h.done?o(h.value):i(h.value).then(a,u)}c((r=r.apply(t,e||[])).next())})};class x3 extends C3{constructor(e,n,r,i){super(e,n,r,i)}getSingleItemAsync(e,n){return zr(this,void 0,void 0,function*(){const r=yield this.getResponseAsync(e,n);return this.mapNetworkResponse(this.mappingService.viewContentItemResponse(r.data),r)})}getItemsFeed(e,n){return zr(this,void 0,void 0,function*(){const r=yield this.getResponseAsync(e,n);return this.mapNetworkResponse(this.mappingService.itemsFeedResponse(r.data),r)})}getUsedIn(e,n){return zr(this,void 0,void 0,function*(){const r=yield this.getResponseAsync(e,n);return this.mapNetworkResponse(this.mappingService.usedInResponse(r.data),r)})}getMultipleItems(e,n){return zr(this,void 0,void 0,function*(){const r=yield this.getResponseAsync(e,n);return this.mapNetworkResponse(this.mappingService.listContentItemsResponse(r.data),r)})}getSingleType(e,n){return zr(this,void 0,void 0,function*(){const r=yield this.getResponseAsync(e,n);return this.mapNetworkResponse(this.mappingService.viewContentTypeResponse(r.data),r)})}getMultipleTypes(e,n){return zr(this,void 0,void 0,function*(){const r=yield this.getResponseAsync(e,n);return this.mapNetworkResponse(this.mappingService.listContentTypesResponse(r.data),r)})}initializeSync(e,n){return zr(this,void 0,void 0,function*(){const r=yield this.postResponseAsync(e,{},n);return this.mapNetworkResponse(this.mappingService.initializeContentSync(r.data),r)})}syncChanges(e,n){return zr(this,void 0,void 0,function*(){const r=yield this.getResponseAsync(e,n);return this.mapNetworkResponse(this.mappingService.syncChanges(r.data),r)})}getLanguages(e,n){return zr(this,void 0,void 0,function*(){const r=yield this.getResponseAsync(e,n);return this.mapNetworkResponse(this.mappingService.listLanguagesResponse(r.data),r)})}getTaxonomy(e,n){return zr(this,void 0,void 0,function*(){const r=yield this.getResponseAsync(e,n);return this.mapNetworkResponse(this.mappingService.viewTaxonomyResponse(r.data),r)})}getTaxonomies(e,n){return zr(this,void 0,void 0,function*(){const r=yield this.getResponseAsync(e,n);return this.mapNetworkResponse(this.mappingService.listTaxonomiesResponse(r.data),r)})}getElementAsync(e,n){return zr(this,void 0,void 0,function*(){const r=yield this.getResponseAsync(e,n);return this.mapNetworkResponse(this.mappingService.viewContentTypeElementResponse(r.data),r)})}getListAllResponse(e){return zr(this,void 0,void 0,function*(){const n=yield this.getListAllResponseInternalAsync({page:e.page,resolvedResponses:[],getResponse:e.getResponse,nextPageUrl:void 0,continuationToken:void 0,listQueryConfig:e.listQueryConfig});return e.allResponseFactory(n.reduce((r,i)=>(r.push(...i.data.items),r),[]),n)})}getListAllResponseInternalAsync(e){var n,r,i,o;return zr(this,void 0,void 0,function*(){if(!((n=e.listQueryConfig)===null||n===void 0)&&n.pages&&e.page>e.listQueryConfig.pages)return e.resolvedResponses;const s=yield e.getResponse(e.nextPageUrl,e.continuationToken);!((r=e.listQueryConfig)===null||r===void 0)&&r.delayBetweenRequests&&(yield this.sleep(e.listQueryConfig.delayBetweenRequests)),e.resolvedResponses.push(s),!((i=e.listQueryConfig)===null||i===void 0)&&i.responseFetched&&e.listQueryConfig.responseFetched(s,e.nextPageUrl,e.continuationToken);const a=(o=s.data.pagination)===null||o===void 0?void 0:o.nextPage,u=s.xContinuationToken;return a||u?yield this.getListAllResponseInternalAsync({page:e.page+1,nextPageUrl:a,continuationToken:u,listQueryConfig:e.listQueryConfig,getResponse:e.getResponse,resolvedResponses:e.resolvedResponses}):e.resolvedResponses})}sleep(e){return new Promise(n=>setTimeout(n,e))}}class P3{escapeCodenameInCodenameIndexer(e){return`_${e}`}}const vl=new P3;class I3{replaceAssetDomain(e,n){return`${n}${this.getPathname(e)}`}getPathname(e){return new URL(e).pathname}}const s1=new I3;class L3{getAllValues(e){return Object.keys(e).map(r=>e[r])}getEnumFromValue(e,n){try{if(!n)return;if(this.isNumeric(n))return e[n];const i=this.getAllValues(e).find(o=>o.toLowerCase()===n.toString().toLowerCase());return i||void 0}catch{return}}isNumeric(e){return!isNaN(parseFloat(e))&&isFinite(e)}}const O3=new L3;class M3{constructor(e){this.config=e}mapElements(e){const n=e.processedItems[vl.escapeCodenameInCodenameIndexer(e.dataToMap.item.system.codename)];if(n)return{item:n,processedItems:e.processedItems,preparedItems:e.preparedItems,processingStartedForCodenames:e.processingStartedForCodenames};const r=e.preparedItems[vl.escapeCodenameInCodenameIndexer(e.dataToMap.item.system.codename)],i=r==null?void 0:r.item;if(!i)return;const o=Object.getOwnPropertyNames(e.dataToMap.rawItem.elements);for(const s of o){const a={system:e.dataToMap.item.system,rawElement:e.dataToMap.rawItem.elements[s],element:s},u=this.mapElement({elementWrapper:a,item:i,preparedItems:e.preparedItems,processingStartedForCodenames:e.processingStartedForCodenames,processedItems:e.processedItems});i.elements[s]=u}return{item:i,processedItems:e.processedItems,preparedItems:e.preparedItems,processingStartedForCodenames:e.processingStartedForCodenames}}mapElement(e){const n=O3.getEnumFromValue(un,e.elementWrapper.rawElement.type);if(n){if(n===un.ModularContent)return this.mapLinkedItemsElement({elementWrapper:e.elementWrapper,preparedItems:e.preparedItems,processingStartedForCodenames:e.processingStartedForCodenames,processedItems:e.processedItems});if(n===un.Text)return this.mapTextElement(e.elementWrapper);if(n===un.Asset)return this.mapAssetsElement(e.elementWrapper);if(n===un.Number)return this.mapNumberElement(e.elementWrapper);if(n===un.MultipleChoice)return this.mapMultipleChoiceElement(e.elementWrapper);if(n===un.DateTime)return this.mapDateTimeElement(e.elementWrapper);if(n===un.RichText)return this.mapRichTextElement(e.elementWrapper,e.processedItems,e.processingStartedForCodenames,e.preparedItems);if(n===un.UrlSlug)return this.mapUrlSlugElement(e.elementWrapper);if(n===un.Taxonomy)return this.mapTaxonomyElement(e.elementWrapper);if(n===un.Custom)return this.mapCustomElement(e.elementWrapper)}return console.warn(`Could not map element '${e.elementWrapper.rawElement.name}' of type '${e.elementWrapper.rawElement.type}'. Returning unknown element instead.`),this.mapUnknowElement(e.elementWrapper)}mapRichTextElement(e,n,r,i){const o=e.rawElement,s=[],a=[],u=o.value.matchAll(/<object[^>]+data-codename="(?<codename>[a-z0-9_]*)".*?>/g),c=Array.from(u).reduce((p,b)=>(b.groups&&b.groups.codename&&p.push(b.groups.codename),p),[]),h=[...o.modular_content].sort(function(p,b){return c.indexOf(p)-c.indexOf(b)});for(const p of h){a.push(p);const b=i[p];if(this.canMapLinkedItems()){const y=this.getOrSaveLinkedItemForElement(p,o,n,r,i);if(y)s.push(y);else if(b){const w=this.mapElements({dataToMap:b,preparedItems:i,processingStartedForCodenames:r,processedItems:n});w&&s.push(w.item)}}}const l=this.getRichTextImages(o.images),d=this.mapRichTextLinks(o.links),f=l.richTextImages,_=this.getRichTextHtml(o.value,l.imageUrlRecords);return{images:f,linkedItemCodenames:a,linkedItems:s,links:d,name:o.name,type:un.RichText,value:_}}mapDateTimeElement(e){var n;const r=e.rawElement;return Object.assign(Object.assign({},this.buildElement(e,un.DateTime,()=>r.value)),{displayTimeZone:(n=r.display_timezone)!==null&&n!==void 0?n:null})}mapMultipleChoiceElement(e){return this.buildElement(e,un.MultipleChoice,()=>e.rawElement.value)}mapNumberElement(e){return this.buildElement(e,un.Number,()=>e.rawElement.value===0?0:e.rawElement.value?+e.rawElement.value:null)}mapTextElement(e){return this.buildElement(e,un.Text,()=>e.rawElement.value)}mapAssetsElement(e){return this.buildElement(e,un.Asset,()=>{var n;const r=e.rawElement.value,i=[];for(const o of r){let s=null;const a=this.config.assetsDomain?s1.replaceAssetDomain(o.url,this.config.assetsDomain):o.url;if(o.renditions){s={};for(const l of Object.keys(o.renditions)){const d=o.renditions[l];s[l]=Object.assign(Object.assign({},d),{url:`${a}?${d.query}`})}}const u=this.config.defaultRenditionPreset&&(s==null?void 0:s[this.config.defaultRenditionPreset])||null,c=(n=u==null?void 0:u.url)!==null&&n!==void 0?n:a,h=Object.assign(Object.assign({},o),{url:c,renditions:s});i.push(h)}return i})}mapTaxonomyElement(e){var n;return Object.assign(Object.assign({},this.buildElement(e,un.Taxonomy,()=>e.rawElement.value)),{taxonomyGroup:(n=e.rawElement.taxonomy_group)!==null&&n!==void 0?n:""})}mapUnknowElement(e){return this.buildElement(e,un.Unknown,()=>e.rawElement.value)}mapCustomElement(e){if(this.config.elementResolver){const n=this.config.elementResolver(e);if(n)return this.buildElement(e,un.Custom,()=>n)}return this.buildElement(e,un.Custom,()=>e.rawElement.value)}mapUrlSlugElement(e){return this.buildElement(e,un.UrlSlug,()=>e.rawElement.value)}mapLinkedItemsElement(e){const n=[],r=e.elementWrapper.rawElement.value;for(const i of r)if(this.canMapLinkedItems()){const o=this.getOrSaveLinkedItemForElement(i,e.elementWrapper.rawElement,e.processedItems,e.processingStartedForCodenames,e.preparedItems);o&&n.push(o)}return Object.assign(Object.assign({},this.buildElement(e.elementWrapper,un.ModularContent,()=>r)),{linkedItems:n})}getOrSaveLinkedItemForElement(e,n,r,i,o){const s=vl.escapeCodenameInCodenameIndexer(e),a=r[s];if(a)return a;const u=o[s];if(i.includes(e))return u==null?void 0:u.item;if(i.push(e),!u)return;let c;const h=this.mapElements({dataToMap:u,preparedItems:o,processingStartedForCodenames:i,processedItems:r});return h&&(c=h.item,r[s]=c),c}mapRichTextLinks(e){const n=[];for(const r of Object.keys(e)){const i=e[r];n.push({codename:i.codename,linkId:r,urlSlug:i.url_slug,type:i.type})}return n}getRichTextHtml(e,n){for(const r of n)r.newUrl!==r.originalUrl&&(e=e.replace(new RegExp(r.originalUrl,"g"),r.newUrl));return e}getRichTextImages(e){var n,r,i;const o=[],s=[];for(const a of Object.keys(e)){const u=e[a],c=this.config.assetsDomain?s1.replaceAssetDomain(u.url,this.config.assetsDomain):u.url;o.push({description:(n=u.description)!==null&&n!==void 0?n:null,imageId:u.image_id,url:c,height:(r=u.height)!==null&&r!==void 0?r:null,width:(i=u.width)!==null&&i!==void 0?i:null}),s.push({originalUrl:u.url,newUrl:c})}return{imageUrlRecords:s,richTextImages:o}}buildElement(e,n,r){return{name:e.rawElement.name,type:n,value:r()}}canMapLinkedItems(){return this.config.linkedItemsReferenceHandler?this.config.linkedItemsReferenceHandler==="map":!0}}class $3{constructor(e){this.config=e,this.elementMapper=new M3(e)}mapSingleItemFromResponse(e){const n=this.mapItems({mainItems:[e.item],linkedItems:Object.values(e.modular_content)});return{item:n.items[0],linkedItems:n.linkedItems}}mapMultipleItemsFromResponse(e){return this.mapItems({mainItems:e.items,linkedItems:Object.values(e.modular_content)})}mapItems(e){const n={},r={},i=[],o=[],s={},a=[...e.mainItems,...e.linkedItems];for(const u of a)r[vl.escapeCodenameInCodenameIndexer(u.system.codename)]={item:this.createContentItem(u),rawItem:u};for(const u of e.mainItems){const c=this.mapItem({item:r[vl.escapeCodenameInCodenameIndexer(u.system.codename)],processedItems:n,preparedItems:r,processingStartedForCodenames:i});o.push(c.item)}for(const u of e.linkedItems){const c=this.mapItem({item:r[vl.escapeCodenameInCodenameIndexer(u.system.codename)],processedItems:n,preparedItems:r,processingStartedForCodenames:i});s[u.system.codename]=c.item}return{items:o,linkedItems:s}}mapItem(e){if(!e.item)throw Error("Could not map item because its undefined");const n=this.elementMapper.mapElements({dataToMap:e.item,preparedItems:e.preparedItems,processingStartedForCodenames:[],processedItems:e.processedItems});if(!n)throw Error(`Mapping of content item '${e.item.item.system.codename}' failed`);return{item:n.item,processedItems:n.processedItems,preparedItems:n.preparedItems,processingStartedForCodenames:n.processingStartedForCodenames}}createContentItem(e){var n,r;return{elements:{},system:{codename:e.system.codename,collection:e.system.collection,id:e.system.id,language:e.system.language,lastModified:e.system.last_modified,name:e.system.name,sitemapLocations:e.system.sitemap_locations,type:e.system.type,workflowStep:(n=e.system.workflow_step)!==null&&n!==void 0?n:null,workflow:(r=e.system.workflow)!==null&&r!==void 0?r:null}}}}class F3{mapTaxonomy(e,n){if(!e)throw Error("Cannot map taxonomy due to missing 'system' property");if(!n)throw Error("Cannot map taxonomy due to missing 'terms' property");if(!Array.isArray(n))throw Error("Cannot map terms because no terms array was provided");const r={name:e.name,codename:e.codename,id:e.id,lastModified:e.last_modified},i=this.mapTaxonomyTerms(n);return{system:r,terms:i}}mapTaxonomies(e){if(!e)throw Error("Cannot map taxonomy due to missing 'taxonomies' property");if(!Array.isArray(e))throw Error("Cannot map taxonomies because the 'taxonomies' property is not an array ");const n=[];return e.forEach(r=>{n.push(this.mapTaxonomy(r.system,r.terms))}),n}mapTaxonomyTerms(e){if(e.length===0)return[];const n=[];return e.forEach(r=>{const i={codename:r.codename,name:r.name,terms:this.mapTaxonomyTerms(r.terms)};n.push(i)}),n}}class D3{mapSingleType(e){return this.mapType(e)}mapMultipleTypes(e){return e.types.map(n=>this.mapType(n))}mapType(e){if(!e)throw Error("Cannot map type");if(!e.elements)throw Error("Cannot map type elements");const n={codename:e.system.codename,id:e.system.id,name:e.system.name,lastModified:e.system.last_modified},r=[];return Object.getOwnPropertyNames(e.elements).forEach(o=>{const s=e.elements[o];if(!s)throw Error(`Cannot find element '${o}' on type '${e.system.codename}'`);const a=o,u=[],c=s.options;if(c){if(!Array.isArray(c))throw Error("Content type 'options' property has to be an array");c.forEach(h=>{u.push({codename:h.codename,name:h.name})})}r.push({codename:a,taxonomyGroup:s.taxonomy_group,options:u,name:s.name,type:s.type})}),{elements:r,system:n}}}class N3{mapElement(e){if(!e)throw Error("Invalid response for mapping element");const n=e;return{codename:n.codename,name:n.name,type:n.type,options:n.options?n.options:[],taxonomyGroup:n.taxonomy_group}}}class H3{mapMultipleLanguages(e){return e.languages.map(n=>this.mapLanguage(n))}mapLanguage(e){if(!e)throw Error("Cannot map language");return{system:{codename:e.system.codename,id:e.system.id,name:e.system.name}}}}class B3{mapUsedInItem(e){return{system:{id:e.system.id,name:e.system.name,codename:e.system.codename,language:e.system.language,type:e.system.type,collection:e.system.collection,workflow:e.system.workflow,workflowStep:e.system.workflow_step,lastModified:e.system.last_modified}}}}class V3{mapContentItemDelta(e){var n,r;const i=e.data.system,o=e.data.elements?e.data.elements:{};return{changeType:e.change_type,timestamp:e.timestamp,data:{elements:o,system:{codename:i.codename,collection:i.collection,id:i.id,language:i.language,lastModified:i.last_modified,name:i.name,sitemapLocations:i.sitemap_locations,type:i.type,workflowStep:(n=i.workflow_step)!==null&&n!==void 0?n:null,workflow:(r=i.workflow)!==null&&r!==void 0?r:null}}}}}class U3{constructor(e){this.config=e,this.typeMapper=new D3,this.languageMapper=new H3,this.itemMapper=new $3(e),this.taxonomyMapper=new F3,this.usedInMapper=new B3,this.genericElementMapper=new N3,this.syncMapper=new V3}usedInResponse(e){return{items:e.items.map(n=>this.usedInMapper.mapUsedInItem(n))}}listLanguagesResponse(e){return{items:this.languageMapper.mapMultipleLanguages(e),pagination:this.mapPagination(e.pagination)}}listContentTypesResponse(e){return{items:this.typeMapper.mapMultipleTypes(e),pagination:this.mapPagination(e.pagination)}}viewContentTypeResponse(e){return{type:this.typeMapper.mapSingleType(e)}}itemsFeedResponse(e){const n=this.itemMapper.mapItems({linkedItems:Object.values(e.modular_content),mainItems:e.items});return{items:n.items,linkedItems:n.linkedItems}}viewContentItemResponse(e){const n=this.itemMapper.mapSingleItemFromResponse(e);return{item:n.item,linkedItems:n.linkedItems}}listContentItemsResponse(e){const n=this.itemMapper.mapMultipleItemsFromResponse(e);return{items:n.items,pagination:this.mapPagination(e.pagination),linkedItems:n.linkedItems}}viewTaxonomyResponse(e){return{taxonomy:this.taxonomyMapper.mapTaxonomy(e.system,e.terms)}}listTaxonomiesResponse(e){return{items:this.taxonomyMapper.mapTaxonomies(e.taxonomies),pagination:this.mapPagination(e.pagination)}}viewContentTypeElementResponse(e){return this.genericElementMapper.mapElement(e)}initializeContentSync(e){return{items:e.items.map(n=>this.syncMapper.mapContentItemDelta(n))}}syncChanges(e){return{items:e.items.map(n=>this.syncMapper.mapContentItemDelta(n))}}mapPagination(e){var n;return{skip:e.skip,count:e.count,limit:e.limit,nextPage:e.next_page,totalCount:(n=e.total_count)!==null&&n!==void 0?n:null}}}class j3{constructor(e){if(this.config=e,!e)throw Error("Delivery client configuration is not set");this.mappingService=new U3(e),this.queryService=new x3(e,e.httpService?e.httpService:new d3,{host:wp.host,name:wp.name,version:wp.version},this.mappingService)}languages(){return new E3(this.config,this.queryService)}types(){return new S3(this.config,this.queryService)}type(e){return new T3(this.config,this.queryService,e)}items(){return new v3(this.config,this.queryService)}item(e){return new y3(this.config,this.queryService,e)}itemsFeed(){return new k3(this.config,this.queryService)}taxonomy(e){return new w3(this.config,this.queryService,e)}taxonomies(){return new b3(this.config,this.queryService)}element(e,n){return new _3(this.config,this.queryService,e,n)}initializeSync(){return new R3(this.config,this.queryService)}syncChanges(){return new A3(this.config,this.queryService)}assetUsedIn(e){return new i1(this.config,this.queryService,{entity:"asset",codename:e})}itemUsedIn(e){return new i1(this.config,this.queryService,{entity:"contentItem",codename:e})}}const{kontentEnvID:W3}=ct,q3="https://content.breakthroughenergy.org",z3="https://preview.breakthroughenergy.org",G3="https://images.breakthroughenergy.org",Y3={environmentId:W3,defaultQueryConfig:{usePreviewMode:!1},proxy:{baseUrl:q3,basePreviewUrl:z3},assetsDomain:G3},vh=new j3(Y3),gk=async(t,e=!1,n=1)=>{try{const r=await vh.items().type(t).depthParameter(n).toPromise();return e?r.data.items[0]:r.data.items}catch(r){return console.error("Error fetching content from Kontent:",r),null}},_k=async(t,e=1)=>{try{return(await vh.items().equalsFilter("elements.slug",t).depthParameter(e).toPromise()).data.items[0]}catch(n){return console.error(`Error fetching content by slug "${t}":`,n),null}},K3=async()=>{try{return(await vh.items().depthParameter(2).notEqualsFilter("elements.slug","").toPromise()).data.items}catch(t){return console.error("Error fetching items from Kontent:",t),null}},vk=async(t=null)=>{try{const e=await vh.taxonomy(t).toPromise();return e&&e.data&&e.data.taxonomy?e.data.taxonomy.terms:{}}catch(e){return console.error("Error fetching taxonomies:",e),{}}};var Sp=new WeakMap,a1=0;function X3(t){if(!t.length)return"";for(var e="arg",n=0;n<t.length;++n){var r=void 0;t[n]===null||typeof t[n]!="object"&&typeof t[n]!="function"?typeof t[n]=="string"?r='"'+t[n]+'"':r=String(t[n]):Sp.has(t[n])?r=Sp.get(t[n]):(r=a1,Sp.set(t[n],a1++)),e+="@"+r}return e}function Q3(t){if(typeof t=="function")try{t=t()}catch{t=""}return Array.isArray(t)?t=X3(t):t=String(t||""),t}var u_=function(){function t(e){e===void 0&&(e=0),this.items=new Map,this.ttl=e}return t.prototype.serializeKey=function(e){return Q3(e)},t.prototype.get=function(e){var n=this.serializeKey(e);return this.items.get(n)},t.prototype.set=function(e,n,r){var i=this.serializeKey(e),o=r||this.ttl,s=Date.now(),a={data:n,createdAt:s,expiresAt:o?s+o:1/0};this.dispatchExpire(o,a,i),this.items.set(i,a)},t.prototype.dispatchExpire=function(e,n,r){var i=this;e&&setTimeout(function(){var o=Date.now(),s=o>=n.expiresAt;s&&i.delete(r)},e)},t.prototype.delete=function(e){this.items.delete(e)},t}();function J3(){return typeof navigator.onLine<"u"?navigator.onLine:!0}function Z3(){return typeof document<"u"&&typeof document.visibilityState<"u"?document.visibilityState!=="hidden":!0}var e5=function(t){return fetch(t).then(function(e){return e.json()})};const Tp={isOnline:J3,isDocumentVisible:Z3,fetcher:e5};var $o=function(){return $o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},$o.apply(this,arguments)},el=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(h){try{c(r.next(h))}catch(l){s(l)}}function u(h){try{c(r.throw(h))}catch(l){s(l)}}function c(h){h.done?o(h.value):i(h.value).then(a,u)}c((r=r.apply(t,e||[])).next())})},tl=function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(h){return u([c,h])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(h){c=[6,h],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},t5=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},n5=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},yk=new u_,Fd=new u_,kp=new u_,bk={cache:yk,refreshInterval:0,ttl:0,serverTTL:1e3,dedupingInterval:2e3,revalidateOnFocus:!0,revalidateDebounce:0,shouldRetryOnError:!0,errorRetryInterval:5e3,errorRetryCount:5,fetcher:Tp.fetcher,isOnline:Tp.isOnline,isDocumentVisible:Tp.isDocumentVisible};function r5(t,e,n){var r=Fd.get(t);if(r)r.data.push(e);else{var i=5e3;Fd.set(t,[e],n>0?n+i:n)}}function i5(t,e,n){if(n.isDocumentVisible()&&!(n.errorRetryCount!==void 0&&e>n.errorRetryCount)){var r=Math.min(e||0,n.errorRetryCount),i=r*n.errorRetryInterval;setTimeout(function(){t(null,{errorRetryCount:r+1,shouldRetryOnError:!0})},i)}}var l1=function(t,e,n,r){return n===void 0&&(n=yk),r===void 0&&(r=bk.ttl),el(void 0,void 0,void 0,function(){var i,o,s,a,u,c,h;return tl(this,function(l){switch(l.label){case 0:if(!s5(e))return[3,5];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,e];case 2:return i=l.sent(),[3,4];case 3:return a=l.sent(),o=a,[3,4];case 4:return[3,6];case 5:i=e,l.label=6;case 6:if(s=!1,u={data:i,error:o,isValidating:s},typeof i<"u")try{n.set(t,u,r)}catch(d){console.error("swrv(mutate): failed to set cache",d)}return c=Fd.get(t),c&&c.data.length&&(h=c.data.filter(function(d){return d.key===t}),h.forEach(function(d,f){typeof u.data<"u"&&(d.data=u.data),d.error=u.error,d.isValidating=u.isValidating,d.isLoading=u.isValidating;var _=f===h.length-1;_||delete h[f]}),h=h.filter(Boolean)),[2,u]}})})};function o5(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r,i,o=$o({},bk),s=!1,a=!1,u=$l(),c=(u==null?void 0:u.proxy)||u;if(!c)return console.error("Could not get current instance, check to make sure that `useSwrv` is declared in the top level of the setup function."),null;var h=(c==null?void 0:c.$isServer)||!1;e.length>=1&&(r=e[0]),e.length>=2&&(i=e[1]),e.length>2&&(o=$o($o({},o),e[2]));var l=h?o.serverTTL:o.ttl,d=typeof r=="function"?r:j(r);typeof i>"u"&&(i=o.fetcher);var f=null;f||(f=La({data:void 0,error:void 0,isValidating:!0,isLoading:!0,key:null}));var _=function(w,R){return el(t,void 0,void 0,function(){var E,A,C,I,$,N,W,ne=this;return tl(this,function(F){switch(F.label){case 0:return E=f.data===void 0,A=d.value,A?(C=o.cache.get(A),I=C&&C.data,f.isValidating=!0,f.isLoading=!I,I&&(f.data=I.data,f.error=I.error),$=w||i,!$||!o.isDocumentVisible()&&!E||(R==null?void 0:R.forceRevalidate)!==void 0&&!(R!=null&&R.forceRevalidate)?(f.isValidating=!1,f.isLoading=!1,[2]):C&&(N=!!(Date.now()-C.createdAt>=o.dedupingInterval||R!=null&&R.forceRevalidate),!N)?(f.isValidating=!1,f.isLoading=!1,[2]):(W=function(){return el(ne,void 0,void 0,function(){var Q,M,H,B;return tl(this,function(U){switch(U.label){case 0:return Q=kp.get(A),Q?[3,2]:(M=Array.isArray(A)?A:[A],H=$.apply(void 0,n5([],t5(M),!1)),kp.set(A,H,o.dedupingInterval),[4,l1(A,H,o.cache,l)]);case 1:return U.sent(),[3,4];case 2:return[4,l1(A,Q.data,o.cache,l)];case 3:U.sent(),U.label=4;case 4:return f.isValidating=!1,f.isLoading=!1,kp.delete(A),f.error!==void 0&&(B=!s&&o.shouldRetryOnError&&(R?R.shouldRetryOnError:!0),B&&i5(_,R?R.errorRetryCount:1,o)),[2]}})})},I&&o.revalidateDebounce?(setTimeout(function(){return el(ne,void 0,void 0,function(){return tl(this,function(Q){switch(Q.label){case 0:return s?[3,2]:[4,W()];case 1:Q.sent(),Q.label=2;case 2:return[2]}})})},o.revalidateDebounce),[3,3]):[3,1])):[2];case 1:return[4,W()];case 2:F.sent(),F.label=3;case 3:return[2]}})})},p=function(){return el(t,void 0,void 0,function(){return tl(this,function(w){return[2,_(null,{shouldRetryOnError:!1})]})})},b=null;Et(function(){var w=function(){return el(t,void 0,void 0,function(){return tl(this,function(R){switch(R.label){case 0:return!f.error&&o.isOnline()?[4,_()]:[3,2];case 1:return R.sent(),[3,3];case 2:b&&clearTimeout(b),R.label=3;case 3:return o.refreshInterval&&!s&&(b=setTimeout(w,o.refreshInterval)),[2]}})})};o.refreshInterval&&(b=setTimeout(w,o.refreshInterval)),o.revalidateOnFocus&&(document.addEventListener("visibilitychange",p,!1),window.addEventListener("focus",p,!1))}),Ft(function(){s=!0,b&&clearTimeout(b),o.revalidateOnFocus&&(document.removeEventListener("visibilitychange",p,!1),window.removeEventListener("focus",p,!1));var w=Fd.get(d.value);w&&(w.data=w.data.filter(function(R){return R!==f}))});try{Fe(d,function(w){Qo(d)||(d.value=w),f.key=w,f.isValidating=!!w,r5(d.value,f,l),!h&&!a&&d.value&&_(),a=!1},{immediate:!0})}catch{}var y=$o($o({},xb(f)),{mutate:function(w,R){return _(w,$o($o({},R),{forceRevalidate:!0}))}});return y}function s5(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}const a5=ct.isSSR;function l5(t){const e=j(null),n=j(null),r=j(!0);return t().then(i=>{e.value=i,r.value=!1}).catch(i=>{n.value=i,r.value=!1}),{data:e,error:n,isLoading:r,mutate:async()=>{r.value=!0;try{const i=await t();e.value=i}catch(i){n.value=i}finally{r.value=!1}}}}function c_(t,e,n={}){if(a5)return l5(e);const r={dedupingInterval:5e3,revalidateOnFocus:!1,...n},{data:i,error:o,isValidating:s,mutate:a}=o5(t,e,r);return{data:i,error:o,isLoading:s,mutate:a}}const wk=(t=null)=>{const e=async()=>await vk(t),n=t?`kontent/taxonomy/${t}`:"kontent/taxonomies";return c_(n,e)},yh=(t,e=5)=>{const n=async()=>{const r=Cn(),i=await _k(t,e);return i?r.prepComponentsField("components",{...i}):null};return c_(`kontent/content-by-slug/${t}/${e}`,n)},Dd=(t,e=!1,n=1)=>{const r=async()=>{const i=Cn(),o=await gk(t,e,n);return o?e?i.prepComponentsField("components",{...o}):o.map(s=>i.prepComponentsField("components",{...s})):null};return c_(`kontent/content-type/${t}/${e}/${n}`,r)},u5="375",c5="1440",Fc={mobile:u5,"tablet-portrait":"768","tablet-landscape":"1024",desktop:c5,"desktop-wide":"1920"},Cn=Pc("content",()=>{const t=j([]),e=j(null),n=j(!0);j(!0);const r=j(null),i=j(null),o=j([]),s=async()=>{const M=await K3();return M?(o.value=M,M):{}},a=M=>!M||o.value.length===0?[]:o.value.filter(H=>H.slug?H.slug.value===M:!1),u=M=>{const H=a(M);return H&&H.length>0?b(H[0]):!1},c=M=>({})[M]||"ProxyBlock",h=(M,H)=>{const B=H[M];if(!B)return H;const U=[];return B.forEach((oe,le)=>{var be;const q={...oe};q.vueType=c(q._type),q.pageTitle=H.title,q.pageSlug=(be=H.slug)==null?void 0:be.current,q.blockIndex=le,q.cascadeColor="white",U.push(q)}),H[M]=U,H},l=async()=>{if(r.value)return r.value;const M=await gk("siteconfig",!0,3);return M?(r.value={...M},r.value):{}},d=(M=null)=>[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"},{rel:"icon",type:"image/svg+xml",href:"/favicon.svg"},{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"},{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"192x192",href:"/android-chrome-192x192.png"},{rel:"icon",type:"image/png",sizes:"512x512",href:"/android-chrome-512x512.png"},{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"},{rel:"mask-icon",href:"/apple-touch-icon.png",color:"#000000"}],f=M=>{var U,oe,le,q,be;if(!r.value&&!M.metadata)return[];const H=Array.isArray((le=(oe=(U=r==null?void 0:r.value)==null?void 0:U.elements)==null?void 0:oe.metadata)==null?void 0:le.linkedItems)&&r.value.elements.metadata.linkedItems.length>0?r.value.elements.metadata.linkedItems[0].elements:{},B=Array.isArray((q=M==null?void 0:M.metadata)==null?void 0:q.linkedItems)&&((be=M.metadata)==null?void 0:be.linkedItems.length)>0?M.metadata.linkedItems[0].elements:{};return[{rel:"canonical",href:Ae(()=>{var ke,Se,ae;return(ae=(Se=(ke=r==null?void 0:r.value)==null?void 0:ke.elements)==null?void 0:Se.url)==null?void 0:ae.value})},{name:"description",content:Ae(()=>{var ke,Se;return((ke=B==null?void 0:B.description)==null?void 0:ke.value)||((Se=H==null?void 0:H.description)==null?void 0:Se.value)})},{name:"keywords",content:Ae(()=>{var ke,Se;return((ke=B==null?void 0:B.keywords)==null?void 0:ke.value)||((Se=H==null?void 0:H.keywords)==null?void 0:Se.value)})},{property:"og:type",content:"website"},{property:"og:title",content:Ae(()=>{var ke,Se,ae,fe,_e;return`${(ae=(Se=(ke=r.value)==null?void 0:ke.elements)==null?void 0:Se.sitename)==null?void 0:ae.value}${(fe=M==null?void 0:M.title)!=null&&fe.value?` | ${(_e=M==null?void 0:M.title)==null?void 0:_e.value}`:""}`})},{property:"og:description",content:Ae(()=>{var ke,Se;return((ke=B==null?void 0:B.description)==null?void 0:ke.value)||((Se=H==null?void 0:H.description)==null?void 0:Se.value)})},{property:"og:url",content:Ae(()=>{var ke,Se,ae;return(ae=(Se=(ke=r==null?void 0:r.value)==null?void 0:ke.elements)==null?void 0:Se.url)==null?void 0:ae.value})},{property:"og:image",content:Ae(()=>F(H==null?void 0:H.socialimagefacebook))},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:Ae(()=>{var ke,Se,ae,fe,_e;return`${(ae=(Se=(ke=r.value)==null?void 0:ke.elements)==null?void 0:Se.sitename)==null?void 0:ae.value}${(fe=M==null?void 0:M.title)!=null&&fe.value?` | ${(_e=M==null?void 0:M.title)==null?void 0:_e.value}`:""}`})},{name:"twitter:description",content:Ae(()=>{var ke,Se;return((ke=B==null?void 0:B.description)==null?void 0:ke.value)||((Se=H==null?void 0:H.description)==null?void 0:Se.value)})},{name:"twitter:image",content:Ae(()=>F(H==null?void 0:H.socialimagetwitter))}]},_=M=>(Array.isArray(M)||(M=[]),M.map(H=>R(H)).filter(Boolean)),p=(M,H,B=null)=>{let U="";const oe={},le=B||b(H);return U=oe[le]||U,M==="/"?"/":`/${U}${M}`},b=M=>typeof M.type=="object"&&M.type._system&&M.type._system.name?M.type._system.name:M.type,y=M=>{if(!M||!o.value||o.value.length===0)return!1;const H=o.value.find(B=>{var U,oe;return((oe=(U=B.elements)==null?void 0:U.slug)==null?void 0:oe.value)===M});return H&&(H.system.type||H._type)||!1},w=M=>{var U,oe,le;const H=M.system?M.system:y((U=M.elements.slug)==null?void 0:U.value),B=((le=(oe=M.elements)==null?void 0:oe.slug)==null?void 0:le.value)||"/";return typeof B>"u"?"":p(B,H)},R=M=>{if(!M)return"";const H=y(M);return p(M,null,H)};function E(M){return!M||!Array.isArray(M)?[]:M.filter(H=>{var B,U;return(U=(B=H.elements)==null?void 0:B.slug)==null?void 0:U.value})}function A(M,H="beige"){var B,U;return((U=(B=M==null?void 0:M.value)==null?void 0:B[0])==null?void 0:U.name)||H}function C(M,H=""){const B={"warm-grey":"#12110E"};let U=M;return M&&typeof M=="object"&&(U=Object.keys(M).find(oe=>M[oe])),typeof U=="string"&&(U=U.replace(/^\.?theme-bg--/,"").replace(/^\.?theme--/,"")),B[U]||H}const I=(M,{width:H=null,height:B=null,crop:U=null}={})=>{const le=ct.pixelRatio;let q=`${M}?fm=jpg&dpr=${le}&q=60`;return H&&(H>1300&&(H=1300),q+=`&w=${H}`),B&&(q+=`&h=${B}`),H&&B&&U&&(q+=`&fit=${U}`),q},$=M=>ct.videoPrefix+M,N=M=>ct.cloudinaryVideoURL+M,W=M=>M.replace("https://assets-us-01.kc-usercontent.com/","https://images.breakthroughenergy.org/"),ne=M=>!M||!M.value||!Array.isArray(M.value)||M.value.length===0?[]:M.value.filter(H=>H.url&&H.type).map(H=>({src:N(H.url),type:H.type})),F=M=>!M||!M.value||!M.value.length||!M.value[0].url?!1:ct.cloudinaryAssetURL+M.value[0].url;return{getWebP:I,prefixedVideoURL:$,getVideoSource:N,getVideoSourceKontent:W,getVideoSources:ne,getAssetURL:F,getAssetURLs:M=>!M||!M.value||!M.value.length?[]:M.value.map(H=>ct.cloudinaryAssetURL+H.url).filter(H=>!!H),prepComponentsField:h,getRouteTypeFromSlug:u,prepLinkList:_,prepLink:R,getMeta:f,getMetaLinks:d,siteConfig:r,populateSiteConfig:l,getAllRoutes:s,pages:t,currentContent:e,isLoading:n,internalRouting:p,pageType:i,filterLinkList:E,getInternalTo:w,getThemeValue:A,getNavColorValue:C}});function bh(t){if(!t)return"";const e=t.charAt(0);return e>="A"&&e<="Z"?`type-nudge--${e.toLowerCase()}`:""}const f5=["data-nav-color"],d5={class:"SectionHeader-container"},h5=["data-show-grid"],p5=["data-align"],m5={__name:"SectionHeader",props:{showGrid:{type:Boolean,default:!1},hLevel:{type:String,default:"h2"},block:{type:Object,required:!0,default:()=>({_type:"sectionHeader",vueType:"SectionHeader",title:"",intro:"",theme:{name:"theme",type:"multiple_choice",value:[{name:"black",codename:"black"}]},blockIndex:0,cascadeColor:"white",leadAlignment:"right"})}},setup(t){const e=t,n=Cn();function r(){return e.block.leadAlignment||"right"}const i=Ae(()=>bh(e.block.intro));return(o,s)=>{const a=Fl;return se(),ce("header",{class:rt(["SectionHeader",`theme--${pe(n).getThemeValue(t.block.theme)}`]),"data-nav-color":pe(n).getNavColorValue(pe(n).getThemeValue(t.block.theme))},[Y("div",d5,[Y("div",{class:"SectionHeader-wrap","data-show-grid":t.showGrid},[t.block.title?(se(),At(wa(t.hLevel),{key:0,class:"SectionHeader-title type-h1"},{default:ri(()=>[Sa(De(t.block.title),1)]),_:1})):it("",!0),Y("div",{class:"SectionHeader-lead","data-align":r()},[He(a,{class:rt(["SectionHeader-intro type-h5",i.value]),html:t.block.intro},null,8,["class","html"])],8,p5)],8,h5)])],10,f5)}}},g5=ft(m5,[["__scopeId","data-v-cd9aca6e"]]),xr={NONE:null,MENU:"MENU",FILTER:"FILTER",CONTENT:"CONTENT",VIDEO:"VIDEO"},Nd="cohort-",_5=[1,2,3,4,5,6];function v5(t){return`${Nd}${t}`}function y5(t){if(typeof t!="string"||!t.startsWith(Nd))return null;const e=Number(t.slice(Nd.length));return Number.isFinite(e)?e:null}const ya={PENDING_TRANSITION:"TRANSITION_STATE:PENDING_TRANSITION",LEAVE:"TRANSITION_STATE:LEAVE",AFTER_LEAVE:"TRANSITION_STATE:AFTER_LEAVE",ENTER:"TRANSITION_STATE:ENTER",ENTER_AFTER_LOADED:"TRANSITION_STATE:ENTER_AFTER_LOADED",AFTER_ENTER:"TRANSITION_STATE:AFTER_ENTER"},yB={LEAVE:2,ENTER_TOTAL:1.2,ENTER_DELAY:.4},b5={BLACK:"rgb(18,17,14)",CREAM:"#FAFBF8",YELLOW:"#DFFF5C",KEYLINE_DARK:"#12110E4D"},qr=Pc("app",()=>{const t=Bs(),e=j(!1);j(!1);const n=j(!1),r=j(null),i=ba({sources:[],timeOffset:0,title:"Title"}),o=!ct.isSSR&&ct.hasDocument?document.visibilityState==="visible":!0,s=j(!1),a=j(!1),u=j(!0);u.value=o;const c=j(!1),h=Ae(()=>c.value||!u.value),l=j(!1),d=j(xr.NONE),f=j(!1),_=j(!0),p=j(!0),b=Ae(()=>d.value!==xr.NONE),y=W=>{d.value=W},w=W=>{c.value=W},R=W=>{s.value=W},E=W=>{u.value=W},A=W=>{f.value=W},C=W=>{_.value=W};return Fe(()=>t.path,()=>{p.value=!1}),Fe(()=>t.path,()=>{n.value=d.value===xr.MENU,y(xr.NONE),setTimeout(()=>{n.value=!1},200)},{immediate:!0}),{navbarCanShow:_,toggleNavbarCanShow:C,setIsLoaderVisible:W=>{e.value=W},isLoaderVisible:e,audioUnlocked:a,tabVisible:u,setTabVisible:E,setAudioUserMuted:w,audioUserMuted:c,audioMuted:h,isWarningShowing:l,setModalState:y,modalState:d,modalShowing:b,videoModalData:i,videoModalPlayerRef:r,setVideoModalData:W=>{i.value=W},setVideoModalPlayerRef:W=>{r.value=W},menuOpenBeforeRouteChange:n,setPageHasAudio:R,pageHasAudio:s,lowFPS:f,setLowFPS:A}}),w5=new Set(["link","style","script","noscript"]),S5=new Set(["title","titleTemplate","script","style","noscript"]),u1=new Set(["base","meta","link","style","script","noscript"]),T5=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),k5=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),E5=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),R5=new Set(["templateParams","htmlAttrs","bodyAttrs"]),A5=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);function Bm(t,e={},n){for(const r in t){const i=t[r],o=n?`${n}:${r}`:r;typeof i=="object"&&i!==null?Bm(i,e,o):typeof i=="function"&&(e[o]=i)}return e}const C5={run:t=>t()},x5=()=>C5,Sk=typeof console.createTask<"u"?console.createTask:x5;function P5(t,e){const n=e.shift(),r=Sk(n);return t.reduce((i,o)=>i.then(()=>r.run(()=>o(...e))),Promise.resolve())}function I5(t,e){const n=e.shift(),r=Sk(n);return Promise.all(t.map(i=>r.run(()=>i(...e))))}function Ep(t,e){for(const n of[...t])n(e)}class L5{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,n,r={}){if(!e||typeof n!="function")return()=>{};const i=e;let o;for(;this._deprecatedHooks[e];)o=this._deprecatedHooks[e],e=o.to;if(o&&!r.allowDeprecated){let s=o.message;s||(s=`${i} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(s)||(console.warn(s),this._deprecatedMessages.add(s))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(n),()=>{n&&(this.removeHook(e,n),n=void 0)}}hookOnce(e,n){let r,i=(...o)=>(typeof r=="function"&&r(),r=void 0,i=void 0,n(...o));return r=this.hook(e,i),r}removeHook(e,n){if(this._hooks[e]){const r=this._hooks[e].indexOf(n);r!==-1&&this._hooks[e].splice(r,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,n){this._deprecatedHooks[e]=typeof n=="string"?{to:n}:n;const r=this._hooks[e]||[];delete this._hooks[e];for(const i of r)this.hook(e,i)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const n in e)this.deprecateHook(n,e[n])}addHooks(e){const n=Bm(e),r=Object.keys(n).map(i=>this.hook(i,n[i]));return()=>{for(const i of r.splice(0,r.length))i()}}removeHooks(e){const n=Bm(e);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...n){return n.unshift(e),this.callHookWith(P5,e,...n)}callHookParallel(e,...n){return n.unshift(e),this.callHookWith(I5,e,...n)}callHookWith(e,n,...r){const i=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&Ep(this._before,i);const o=e(n in this._hooks?[...this._hooks[n]]:[],r);return o instanceof Promise?o.finally(()=>{this._after&&i&&Ep(this._after,i)}):(this._after&&i&&Ep(this._after,i),o)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const n=this._before.indexOf(e);n!==-1&&this._before.splice(n,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const n=this._after.indexOf(e);n!==-1&&this._after.splice(n,1)}}}}function O5(){return new L5}const M5=["name","property","http-equiv"],$5=new Set(["viewport","description","keywords","robots"]);function Tk(t){const e=t.split(":");return e.length?A5.has(e[1]):!1}function Vm(t){const{props:e,tag:n}=t;if(k5.has(n))return n;if(n==="link"&&e.rel==="canonical")return"canonical";if(e.charset)return"charset";if(t.tag==="meta"){for(const r of M5)if(e[r]!==void 0){const i=e[r],o=i.includes(":"),s=$5.has(i),u=!(o||s)&&t.key?`:key:${t.key}`:"";return`${n}:${i}${u}`}}if(t.key)return`${n}:key:${t.key}`;if(e.id)return`${n}:id:${e.id}`;if(S5.has(n)){const r=t.textContent||t.innerHTML;if(r)return`${n}:content:${r}`}}function c1(t){const e=t._h||t._d;if(e)return e;const n=t.textContent||t.innerHTML;return n||`${t.tag}:${Object.entries(t.props).map(([r,i])=>`${r}:${String(i)}`).join(",")}`}function Hd(t,e,n){typeof t==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(t=t());let i;if(e&&(i=e(n,t)),Array.isArray(i))return i.map(o=>Hd(o,e));if((i==null?void 0:i.constructor)===Object){const o={};for(const s of Object.keys(i))o[s]=Hd(i[s],e,s);return o}return i}function F5(t,e){const n=t==="style"?new Map:new Set;function r(i){const o=i.trim();if(o)if(t==="style"){const[s,...a]=o.split(":").map(u=>u.trim());s&&a.length&&n.set(s,a.join(":"))}else o.split(" ").filter(Boolean).forEach(s=>n.add(s))}return typeof e=="string"?t==="style"?e.split(";").forEach(r):r(e):Array.isArray(e)?e.forEach(i=>r(i)):e&&typeof e=="object"&&Object.entries(e).forEach(([i,o])=>{o&&o!=="false"&&(t==="style"?n.set(i.trim(),o):r(i))}),n}function kk(t,e){return t.props=t.props||{},e&&Object.entries(e).forEach(([n,r])=>{if(r===null){t.props[n]=null;return}if(n==="class"||n==="style"){t.props[n]=F5(n,r);return}if(E5.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof r=="object"){let s=e.type;if(e.type||(s="application/json"),!(s!=null&&s.endsWith("json"))&&s!=="speculationrules")return;e.type=s,t.props.type=s,t[n]=JSON.stringify(r)}else t[n]=r;return}const i=String(r),o=n.startsWith("data-");i==="true"||i===""?t.props[n]=o?i:!0:!r&&o&&i==="false"?t.props[n]="false":r!==void 0&&(t.props[n]=r)}),t}function D5(t,e){const n=typeof e=="object"&&typeof e!="function"?e:{[t==="script"||t==="noscript"||t==="style"?"innerHTML":"textContent"]:e},r=kk({tag:t,props:{}},n);return r.key&&w5.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(i=>({...r,props:{...r.props,content:i}})):r}function N5(t,e){if(!t)return[];typeof t=="function"&&(t=t());const n=(i,o)=>{for(let s=0;s<e.length;s++)o=e[s](i,o);return o};t=n(void 0,t);const r=[];return t=Hd(t,n),Object.entries(t||{}).forEach(([i,o])=>{if(o!==void 0)for(const s of Array.isArray(o)?o:[o])r.push(D5(i,s))}),r.flat()}const f1=(t,e)=>t._w===e._w?t._p-e._p:t._w-e._w,d1={base:-10,title:10},H5={critical:-8,high:-1,low:2},h1={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},B5=/@import/,hu=t=>t===""||t===!0;function V5(t,e){var o;if(typeof e.tagPriority=="number")return e.tagPriority;let n=100;const r=H5[e.tagPriority]||0,i=t.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:h1;if(e.tag in d1)n=d1[e.tag];else if(e.tag==="meta"){const s=e.props["http-equiv"]==="content-security-policy"?"content-security-policy":e.props.charset?"charset":e.props.name==="viewport"?"viewport":null;s&&(n=h1.meta[s])}else e.tag==="link"&&e.props.rel?n=i.link[e.props.rel]:e.tag==="script"?hu(e.props.async)?n=i.script.async:e.props.src&&!hu(e.props.defer)&&!hu(e.props.async)&&e.props.type!=="module"&&!((o=e.props.type)!=null&&o.endsWith("json"))?n=i.script.sync:hu(e.props.defer)&&e.props.src&&!hu(e.props.async)&&(n=i.script.defer):e.tag==="style"&&(n=e.innerHTML&&B5.test(e.innerHTML)?i.style.imported:i.style.sync);return(n||100)+r}function p1(t,e){const n=typeof e=="function"?e(t):e,r=n.key||String(t.plugins.size+1);t.plugins.get(r)||(t.plugins.set(r,n),t.hooks.addHooks(n.hooks||{}))}function U5(t={}){var a;const e=O5();e.addHooks(t.hooks||{});const n=!t.document,r=new Map,i=new Map,o=new Set,s={_entryCount:1,plugins:i,dirty:!1,resolvedOptions:t,hooks:e,ssr:n,entries:r,headEntries(){return[...r.values()]},use:u=>p1(s,u),push(u,c){const h={...c||{}};delete h.head;const l=h._index??s._entryCount++,d={_i:l,input:u,options:h},f={_poll(_=!1){s.dirty=!0,!_&&o.add(l),e.callHook("entries:updated",s)},dispose(){r.delete(l)&&s.invalidate()},patch(_){(!h.mode||h.mode==="server"&&n||h.mode==="client"&&!n)&&(d.input=_,r.set(l,d),f._poll())}};return f.patch(u),f},async resolveTags(){var f;const u={tagMap:new Map,tags:[],entries:[...s.entries.values()]};for(await e.callHook("entries:resolve",u);o.size;){const _=o.values().next().value;o.delete(_);const p=r.get(_);if(p){const b={tags:N5(p.input,t.propResolvers||[]).map(y=>Object.assign(y,p.options)),entry:p};await e.callHook("entries:normalize",b),p._tags=b.tags.map((y,w)=>(y._w=V5(s,y),y._p=(p._i<<10)+w,y._d=Vm(y),y))}}let c=!1;u.entries.flatMap(_=>(_._tags||[]).map(p=>({...p,props:{...p.props}}))).sort(f1).reduce((_,p)=>{const b=String(p._d||p._p);if(!_.has(b))return _.set(b,p);const y=_.get(b);if(((p==null?void 0:p.tagDuplicateStrategy)||(R5.has(p.tag)?"merge":null)||(p.key&&p.key===y.key?"merge":null))==="merge"){const R={...y.props};Object.entries(p.props).forEach(([E,A])=>R[E]=E==="style"?new Map([...y.props.style||new Map,...A]):E==="class"?new Set([...y.props.class||new Set,...A]):A),_.set(b,{...p,props:R})}else p._p>>10===y._p>>10&&p.tag==="meta"&&Tk(b)?(_.set(b,Object.assign([...Array.isArray(y)?y:[y],p],p)),c=!0):(p._w===y._w?p._p>y._p:(p==null?void 0:p._w)<(y==null?void 0:y._w))&&_.set(b,p);return _},u.tagMap);const h=u.tagMap.get("title"),l=u.tagMap.get("titleTemplate");if(s._title=h==null?void 0:h.textContent,l){const _=l==null?void 0:l.textContent;if(s._titleTemplate=_,_){let p=typeof _=="function"?_(h==null?void 0:h.textContent):_;typeof p=="string"&&!s.plugins.has("template-params")&&(p=p.replace("%s",(h==null?void 0:h.textContent)||"")),h?p===null?u.tagMap.delete("title"):u.tagMap.set("title",{...h,textContent:p}):(l.tag="title",l.textContent=p)}}u.tags=Array.from(u.tagMap.values()),c&&(u.tags=u.tags.flat().sort(f1)),await e.callHook("tags:beforeResolve",u),await e.callHook("tags:resolve",u),await e.callHook("tags:afterResolve",u);const d=[];for(const _ of u.tags){const{innerHTML:p,tag:b,props:y}=_;if(T5.has(b)&&!(Object.keys(y).length===0&&!_.innerHTML&&!_.textContent)&&!(b==="meta"&&!y.content&&!y["http-equiv"]&&!y.charset)){if(b==="script"&&p){if((f=y.type)!=null&&f.endsWith("json")){const w=typeof p=="string"?p:JSON.stringify(p);_.innerHTML=w.replace(/</g,"\\u003C")}else typeof p=="string"&&(_.innerHTML=p.replace(new RegExp(`</${b}`,"g"),`<\\/${b}`));_._d=Vm(_)}d.push(_)}}return d},invalidate(){for(const u of r.values())o.add(u._i);s.dirty=!0,e.callHook("entries:updated",s)}};return((t==null?void 0:t.plugins)||[]).forEach(u=>p1(s,u)),s.hooks.callHook("init",s),(a=t.init)==null||a.forEach(u=>u&&s.push(u)),s}const j5=(t,e)=>vn(e)?jA(e):e,Ek="usehead";function W5(t){return{install(n){n.config.globalProperties.$unhead=t,n.config.globalProperties.$head=t,n.provide(Ek,t)}}.install}function Rk(){if(nw()){const t=Xr(Ek);if(!t)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return t}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function Dc(t,e={}){const n=e.head||Rk();return n.ssr?n.push(t||{},e):q5(n,t,e)}function q5(t,e,n={}){const r=j(!1);let i;return Ps(()=>{const s=r.value?{}:Hd(e,j5);i?i.patch(s):i=t.push(s,n)}),$l()&&(Rc(()=>{i.dispose()}),zb(()=>{r.value=!0}),qb(()=>{r.value=!1})),i}const m1={},z5=["data-slug"],G5={key:1,class:"page-loading"},Y5=["data-nav-color"],K5=["data-nav-color"],X5={class:"page-container"},Q5={class:"page-grid"},J5={key:0,class:"type-eyebrow page-eyebrow"},Z5={class:"page-body"},e$={key:3,class:"page-content page-content--404 theme--cream"},t$={class:"page-container page-container--404"},Ak={__name:"[...slug]",props:{slug:{type:Array,required:!0},isModalRoute:{type:Boolean,default:!1},theme:{name:"theme",type:Object,default:()=>({name:"theme",type:"multiple_choice",value:[{name:"beige",codename:"beige"}]})}},setup(t){const e=t,n=Ae(()=>!e.slug&&!Array.isArray(e.slug)?!1:typeof e.slug=="string"||Array.isArray(e.slug)&&e.slug.length===1),r=lC(()=>Gr(()=>import("./_slug_-BajTuty5.js"),__vite__mapDeps([0,1])));j("page");const i=Cn(),o=j(""),s=j(null);Bs(),Hs();const a=j(),u=j(null),c=Ae(()=>typeof e.slug=="string"?[e.slug]:Array.isArray(e.slug)?e.slug:[]),h=Ae(()=>c.value.join("/")),{data:l,error:d,isLoading:f}=yh(h);e.isModalRoute||Dc(Ae(()=>({title:o.value||p(),meta:s.value?i.getMeta(s.value):[],link:i.getMetaLinks(s.value)})));async function _(){var y,w;if(a.value=!1,!l.value){s.value=null;return}if(!((y=l.value.system)!=null&&y.type)){console.error("Invalid page data structure"),a.value="Invalid page data structure",s.value=null;return}l.value.elements?(s.value=l.value.elements,s.value,s.value,o.value=(w=s.value.title)==null?void 0:w.value,i.pageType=l.value.system.type):(console.error("No page elements found"),s.value=null)}Ps(()=>{f.value||(d.value?(a.value="Error loading page",console.error("Error loading page:",d.value),s.value=null):l.value?_():s.value=null)});function p(){const y=c.value;if(!Array.isArray(y)||!y.length)return"";try{return y.map(w=>typeof w!="string"?"":w.split("-").map(R=>R.charAt(0).toUpperCase()+R.slice(1)).join(" ")).filter(Boolean).join(" - ")}catch(w){return console.error("Error formatting slug title:",w),""}}async function b(){try{await new Promise((y,w)=>{const R=Fe(()=>f.value,E=>{E||(R(),y())},{immediate:!0})}),l.value&&await _()}catch(y){console.error("Error in onServerPrefetch:",y)}}return Ml(async()=>{u.value=h.value,u.value,BTEDL.newPage(u.value),l.value&&!f.value&&_()}),Oa(async()=>{u.value=h.value,await b()}),Ft(()=>{}),(y,w)=>{var A,C,I,$,N,W,ne,F,Q,M,H,B,U,oe,le,q,be;const R=g5,E=EO;return se(),ce("div",{key:h.value,"data-slug":c.value,class:"page"},[n.value?(se(),At(wa(pe(r)),{key:0,slug:Array.isArray(e.slug)?e.slug[0]:e.slug,isModalRoute:e.isModalRoute},null,8,["slug","isModalRoute"])):pe(f)?(se(),ce("div",G5,w[0]||(w[0]=[Y("div",{class:"loading-indicator"}," Loading page content... ",-1)]))):s.value?(se(),ce("div",{key:2,class:rt(["page-content",`theme--${((I=(C=(A=s.value.theme)==null?void 0:A.value)==null?void 0:C[0])==null?void 0:I.name)||"beige"}`]),"data-nav-color":pe(i).getNavColorValue(((W=(N=($=s.value.theme)==null?void 0:$.value)==null?void 0:N[0])==null?void 0:W.name)||"beige")},[He(R,{block:{_type:"sectionHeader",vueType:"SectionHeader",title:o.value,intro:((ne=s.value.intro)==null?void 0:ne.value)||"",theme:s.value.theme||t.theme,blockIndex:0,cascadeColor:"white",leadAlignment:"right-compact"}},null,8,["block"]),Y("div",{class:rt(`theme--${((M=(Q=(F=s.value.theme)==null?void 0:F.value)==null?void 0:Q[0])==null?void 0:M.name)||"beige"}`),"data-nav-color":pe(i).getNavColorValue(((U=(B=(H=s.value.theme)==null?void 0:H.value)==null?void 0:B[0])==null?void 0:U.name)||"beige")},[Y("div",X5,[Y("div",Q5,[s.value.eyebrow?(se(),ce("h2",J5,De((oe=s.value.eyebrow)==null?void 0:oe.value),1)):it("",!0),Y("div",Z5,[He(Fl,{html:(le=s.value.body)==null?void 0:le.value,"in-column":!0},null,8,["html"])])])])],10,K5),(be=(q=pe(l))==null?void 0:q.components)!=null&&be.length?(se(!0),ce(Ye,{key:0},lt(pe(l).components,ke=>(se(),At(wa(ke.vueType),{key:ke.blockIndex,data:ke,class:"page-component"},null,8,["data"]))),128)):it("",!0)],10,Y5)):(se(),ce("div",e$,[Y("div",t$,[He(E)])]))],8,z5)}}};typeof m1=="function"&&m1(Ak);const Um=ft(Ak,[["__scopeId","data-v-301a2568"]]),n$=Object.freeze(Object.defineProperty({__proto__:null,default:Um},Symbol.toStringTag,{value:"Module"})),Li=(t,e=0,n=1)=>t<e?e:t>n?n:t,We=(t,e,n,r=0,i=1,o=!0)=>{const s=(t-e)/(n-e);return o?Li(s,r,i):s},qn=(t,e,n)=>e+t*(n-e),yi={};yi.subscribe=function(t,e,n=-1,r=void 0){return this.on(t,e,n),r!==void 0&&e(r),()=>{this.off(t,e)}};yi.on=function(t,e,n=-1){typeof e=="function"&&(this._emitCallbacks=this._emitCallbacks||{},this._emitCallbacks[t]=this._emitCallbacks[t]||[],e._callback_order=n===-1?1e6:n,this._emitCallbacks[t].unshift(e),n>-1&&this._emitCallbacks[t].sort((r,i)=>i._callback_order-r._callback_order))};yi.off=function(t,e){if(this._emitCallbacks&&(!t&&!e&&(this._emitCallbacks=null),t&&!e&&(this._emitCallbacks[t]=null),t&&e&&this._emitCallbacks[t])){const n=this._emitCallbacks[t].indexOf(e);n>-1&&this._emitCallbacks[t].splice(n,1)}};yi.emit=function(t,e){var r;if(!(this._emitCallbacks&&this._emitCallbacks[t]))return;const n=this._emitCallbacks[t];for(let i=n.length-1;i>-1;i--)(r=n[i])==null||r.call(n,e)};yi.set=function(t,e,n=null){this.setEmit(t,e,n)};yi.setEmit=function(t,e,n=null){this[t]!==e&&(this[t]=e,n=n||t,this.emit(n,e))};yi.removeEventListener=yi.off;yi.addEventListener=yi.on;yi.trigger=yi.emit;const f_={},yl=function(t){return typeof t=="function"},r$=function(t,e,n,r){const i=yl(t.on)?"on":null,o=yl(t.$on)?"$on":null,s=yl(t.addEventListener)?"addEventListener":null;t[i||o||s](e,n,r)},nl=function(t,e,n){const r=yl(t.off)?"off":null,i=yl(t.$off)?"$off":null,o=yl(t.addEventListener)?"removeEventListener":null;t[r||i||o](e,n)};f_.listen=function(t,e,n,r){this._emitters=this._emitters||new Map,this._emitters.has(t)||this._emitters.set(t,new Set);let i=!1;this._emitters.get(t).forEach(o=>{o.eventKey===e&&o.callback===n&&(i=!0)}),i||(nl(t,e,n),r$(t,e,n,r),this._emitters.get(t).add({eventKey:e,callback:n}))};f_.unlisten=function(t,e,n){if(this._emitters){if(!t)this._emitters.forEach((r,i)=>{r.forEach(o=>{nl(i,o.eventKey,o.callback)})}),this._emitters.clear();else if(t&&e&&n){const r=this._emitters.get(t);r&&r.forEach(i=>{i.eventKey===e&&i.callback===n&&(nl(t,i.eventKey,i.callback),r.delete(i))})}else if(t&&e&&Array.isArray(e)){const r=this._emitters.get(t),i=e;r&&r.forEach(o=>{i.includes(o.eventKey)&&(nl(t,o.eventKey,o.callback),r.delete(o))})}else if(t&&e){const r=this._emitters.get(t);r&&r.forEach(i=>{i.eventKey===e&&(nl(t,i.eventKey,i.callback),r.delete(i))})}else if(t){const r=this._emitters.get(t);r&&(r.forEach(i=>{nl(t,i.eventKey,i.callback),r.delete(i)}),this._emitters.delete(t))}}};const i$=Number.parseInt(Fc.desktop,10),o$=Number.parseInt(Fc.mobile,10),rd=Number.parseInt(Fc["tablet-portrait"],10),jm=Number.parseInt(Fc["tablet-landscape"],10),Yu=Number.parseInt(Fc.desktop,10),pu={RESIZE:"resize",POLL_RESIZE:"poll_resize",BODY_HEIGHT_CHANGE:"body_height_change"},s$="mobile",a$="tablet",l$="tablet-portrait",u$="tablet-landscape",c$="desktop",g1="breakpoint-tablet-portrait",_1="breakpoint-tablet-landscape",v1="breakpoint-mobile",y1="breakpoint-tablet",Wm="breakpoint-desktop",f$={alwaysEmitResize:!1,scale:1,baseFontSize:1,pollResizeSeconds:2,breakpoints:{[v1]:{name:v1,maxWidth:rd},[y1]:{name:y1,maxWidth:Yu},[g1]:{name:g1,maxWidth:jm},[_1]:{name:_1,maxWidth:Yu},[Wm]:{name:Wm,maxWidth:2e4}},deviceTypes:{[s$]:{portrait:{designSize:{width:o$,height:667}},landscape:{designSize:{width:667,height:375}}},[l$]:{designSize:{width:768,height:1024}},[u$]:{designSize:{width:1024,height:768}},[a$]:{designSize:{width:1024,height:900}},[c$]:{designSize:{width:i$,height:900}}}},If=()=>ct.hasWindow&&ct.hasDocument;class d${constructor(e){Oe(this,"cssVar",{lvh:600,svh:600,dvh:600,lch:0,dch:0});Oe(this,"subscribeBodyHeight",(e,n=!0,r=-1)=>this.subscribe(this.EVENTS.BODY_HEIGHT_CHANGE,e,r,n?this.current:null));Oe(this,"subscribeResize",(e,n=!0,r=-1,i=!1)=>{const o=this.subscribe(this.EVENTS.RESIZE,e,r,n?this.current:null);if(i){const s=this.subscribe(this.EVENTS.POLL_RESIZE,e,!1,r);return()=>{o(),s()}}else return o});Oe(this,"triggerResize",()=>{this._resize(!0)});Oe(this,"_pollResize",()=>{this.emit(pu.POLL_RESIZE,this.current)});Oe(this,"onFrame",()=>{var e,n;this._resize(),this.rafRef=(n=(e=ct.window).requestAnimationFrame)==null?void 0:n.call(e,this.onFrame)});Oe(this,"_bodyChange",()=>{this.emit(pu.BODY_HEIGHT_CHANGE,this.current)});Oe(this,"_resize",(e=!1,n=!1)=>{const r=this.ww,i=this.wh,o=r!==this.width||i!==this.height||e,s=o||this.config.alwaysEmitResize||e;this.width=r,this.height=i,o&&(this._updateBreakpointClass(),this._updateCSSVars(),this._updateOrientationClass()),s&&this.emit(pu.RESIZE,this.current),s&&!n&&(clearTimeout(this.resizeDelayedTimeout),this.resizeDelayedTimeout=setTimeout(this._resize(!0,!0),500))});Oe(this,"_updateBreakpointClass",()=>{const e=this.breakpoint,n=this.config.breakpoints;for(const r in n)this.html.classList[r===e?"add":"remove"](r)});Oe(this,"_updateOrientationClass",()=>{this.html.classList.toggle("landscape",this.landscape),this.html.classList.toggle("portrait",!this.landscape)});Oe(this,"_updateCSSVars",()=>{this.isDesktop?(this.dvh=this.wh,this.svh=this.wh,this.lvh=this.wh,this.lch=0,this.dch=0):(this._makeVHRuler(),this.dvh=this.wh,this.lvh=this.lvh_ruler.clientHeight,this.svh=this.svh_ruler.clientHeight,this.lch=this.lvh-this.svh,this.dch=this.lvh-this.dvh)});Oe(this,"_makeVHRuler",()=>{if(ct.isSSR||!ct.hasDocument||this.lvh_ruler)return;const e=document.createElement("div");e.style="width:1px; height:1px; position:fixed; overflow:hidden;",document.body.appendChild(e),this.lvh_ruler=document.createElement("div"),this.lvh_ruler.style="width:1; height:100lvh; position:absolute;",e.appendChild(this.lvh_ruler),this.svh_ruler=document.createElement("div"),this.svh_ruler.style="width:1; height:100svh; position:absolute;",e.appendChild(this.svh_ruler)});var i,o,s,a,u,c;if(Object.assign(this,yi),Object.assign(this,f_),!If())return;this.config=Object.assign({},f$,e),this.html=If()?document.querySelector("html"):{};const n=Math.max(this.wh,this.ww);this.cssVar={lvh:n,svh:n,dvh:n,lch:0,dch:0},this._scale=1,this._resize(!0),(o=(i=ct.window).setTimeout)==null||o.call(i,()=>this._resize(!0),50),(a=(s=ct.window).setTimeout)==null||a.call(s,()=>this._resize(!0),500),this.pollInterval=(c=(u=ct.window).setInterval)==null?void 0:c.call(u,()=>this._pollResize(),this.config.pollResizeSeconds*1e3),this.onFrame();const r=new ResizeObserver(()=>this._bodyChange());If()&&r.observe(document.body)}static get EVENTS(){return pu}get EVENTS(){return pu}destroy(){var e,n;(n=(e=ct.window).cancelAnimationFrame)==null||n.call(e,this.rafRef),this.unlisten()}setCSSVar(e,n){If()&&(document.documentElement.style.setProperty(`--${e}`,`${n}px`),this.cssVar[e]=n)}get lvh(){return this.cssVar.lvh}set lvh(e){this.cssVar.lvh=e}get svh(){return this.cssVar.svh}set svh(e){this.setCSSVar("svh",e)}get dvh(){return this.cssVar.dvh}set dvh(e){this.setCSSVar("dvh",e)}get lch(){return this.cssVar.lch}set lch(e){this.setCSSVar("lch",e)}get dch(){return this.cssVar.dch}set dch(e){this.setCSSVar("dch",e)}get wh(){return ct.window.innerHeight}get ww(){return ct.window.innerWidth}get isPhoneBreakpoint(){return this.ww<=rd}get isTabletBreakpoint(){return this.ww>rd&&this.ww<=Yu}get isTabletPortraitBreakpoint(){return this.ww>rd&&this.ww<=jm}get isTabletLandscapeBreakpoint(){return this.ww>jm&&this.ww<=Yu}get isDesktopBreakpoint(){return this.ww>Yu}get isPhone(){return ct.phone}get isMobile(){return ct.mobile}get isTablet(){return ct.tablet}get isDesktop(){return!ct.mobile&&!ct.tablet}get breakpoint(){var n;const e=((n=this.config)==null?void 0:n.breakpoints)||[];for(const r in e)if(this.width<=e[r].maxWidth)return r;return Wm}get landscape(){return this.ww>this.wh&&this.ww>600}get orientation(){return this.landscape?"landscape":"portrait"}get device(){return this.deviceType}get deviceType(){return this.isMobile?"mobile":this.isTablet?"tablet":"desktop"}get baseFontSize(){return this.config.baseFontSize}get current(){return{width:this.width,height:this.height,breakpoint:this.breakpoint,deviceType:this.deviceType,orientation:this.orientation}}}const Je=new d$,xn=function(t=()=>{},e=!0,n=-1,r=!1){let i=[];const o=()=>{i.forEach(s=>s==null?void 0:s()),i=[]};return Et(()=>{i.push(Je.subscribeResize(t,e,n)),r&&i.push(Je.subscribeBodyHeight(t,e,n))}),Rc(()=>{o()}),o};var h$="1.1.20";function Ck(t,e,n){return Math.max(t,Math.min(e,n))}function p$(t,e,n){return(1-n)*t+n*e}function m$(t,e,n,r){return p$(t,e,1-Math.exp(-n*r))}function g$(t,e){return(t%e+e)%e}var _$=class{constructor(){Oe(this,"isRunning",!1);Oe(this,"value",0);Oe(this,"from",0);Oe(this,"to",0);Oe(this,"currentTime",0);Oe(this,"lerp");Oe(this,"duration");Oe(this,"easing");Oe(this,"onUpdate")}advance(t){var n;if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=t;const r=Ck(0,this.currentTime/this.duration,1);e=r>=1;const i=e?1:this.easing(r);this.value=this.from+(this.to-this.from)*i}else this.lerp?(this.value=m$(this.value,this.to,this.lerp*60,t),Math.round(this.value)===this.to&&(this.value=this.to,e=!0)):(this.value=this.to,e=!0);e&&this.stop(),(n=this.onUpdate)==null||n.call(this,this.value,e)}stop(){this.isRunning=!1}fromTo(t,e,{lerp:n,duration:r,easing:i,onStart:o,onUpdate:s}){this.from=this.value=t,this.to=e,this.lerp=n,this.duration=r,this.easing=i,this.currentTime=0,this.isRunning=!0,o==null||o(),this.onUpdate=s}};function v$(t,e){let n;return function(...r){let i=this;clearTimeout(n),n=setTimeout(()=>{n=void 0,t.apply(i,r)},e)}}var y$=class{constructor(t,e,{autoResize:n=!0,debounce:r=250}={}){Oe(this,"width",0);Oe(this,"height",0);Oe(this,"scrollHeight",0);Oe(this,"scrollWidth",0);Oe(this,"debouncedResize");Oe(this,"wrapperResizeObserver");Oe(this,"contentResizeObserver");Oe(this,"resize",()=>{this.onWrapperResize(),this.onContentResize()});Oe(this,"onWrapperResize",()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)});Oe(this,"onContentResize",()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)});this.wrapper=t,this.content=e,n&&(this.debouncedResize=v$(this.resize,r),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){var t,e;(t=this.wrapperResizeObserver)==null||t.disconnect(),(e=this.contentResizeObserver)==null||e.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},xk=class{constructor(){Oe(this,"events",{})}emit(t,...e){var r;let n=this.events[t]||[];for(let i=0,o=n.length;i<o;i++)(r=n[i])==null||r.call(n,...e)}on(t,e){var n;return(n=this.events[t])!=null&&n.push(e)||(this.events[t]=[e]),()=>{var r;this.events[t]=(r=this.events[t])==null?void 0:r.filter(i=>e!==i)}}off(t,e){var n;this.events[t]=(n=this.events[t])==null?void 0:n.filter(r=>e!==r)}destroy(){this.events={}}},b1=100/6,cs={passive:!1},b$=class{constructor(t,e={wheelMultiplier:1,touchMultiplier:1}){Oe(this,"touchStart",{x:0,y:0});Oe(this,"lastDelta",{x:0,y:0});Oe(this,"window",{width:0,height:0});Oe(this,"emitter",new xk);Oe(this,"onTouchStart",t=>{const{clientX:e,clientY:n}=t.targetTouches?t.targetTouches[0]:t;this.touchStart.x=e,this.touchStart.y=n,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:t})});Oe(this,"onTouchMove",t=>{const{clientX:e,clientY:n}=t.targetTouches?t.targetTouches[0]:t,r=-(e-this.touchStart.x)*this.options.touchMultiplier,i=-(n-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=n,this.lastDelta={x:r,y:i},this.emitter.emit("scroll",{deltaX:r,deltaY:i,event:t})});Oe(this,"onTouchEnd",t=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:t})});Oe(this,"onWheel",t=>{let{deltaX:e,deltaY:n,deltaMode:r}=t;const i=r===1?b1:r===2?this.window.width:1,o=r===1?b1:r===2?this.window.height:1;e*=i,n*=o,e*=this.options.wheelMultiplier,n*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:n,event:t})});Oe(this,"onWindowResize",()=>{this.window={width:window.innerWidth,height:window.innerHeight}});this.element=t,this.options=e,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,cs),this.element.addEventListener("touchstart",this.onTouchStart,cs),this.element.addEventListener("touchmove",this.onTouchMove,cs),this.element.addEventListener("touchend",this.onTouchEnd,cs)}on(t,e){return this.emitter.on(t,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,cs),this.element.removeEventListener("touchstart",this.onTouchStart,cs),this.element.removeEventListener("touchmove",this.onTouchMove,cs),this.element.removeEventListener("touchend",this.onTouchEnd,cs)}},w$=class{constructor({wrapper:t=window,content:e=document.documentElement,eventsTarget:n=t,smoothWheel:r=!0,syncTouch:i=!1,syncTouchLerp:o=.075,touchInertiaMultiplier:s=35,duration:a,easing:u=C=>Math.min(1,1.001-Math.pow(2,-10*C)),lerp:c=.1,infinite:h=!1,orientation:l="vertical",gestureOrientation:d="vertical",touchMultiplier:f=1,wheelMultiplier:_=1,autoResize:p=!0,prevent:b,virtualScroll:y,overscroll:w=!0,autoRaf:R=!1,anchors:E=!1,__experimental__naiveDimensions:A=!1}={}){Oe(this,"_isScrolling",!1);Oe(this,"_isStopped",!1);Oe(this,"_isLocked",!1);Oe(this,"_preventNextNativeScrollEvent",!1);Oe(this,"_resetVelocityTimeout",null);Oe(this,"__rafID",null);Oe(this,"isTouching");Oe(this,"time",0);Oe(this,"userData",{});Oe(this,"lastVelocity",0);Oe(this,"velocity",0);Oe(this,"direction",0);Oe(this,"options");Oe(this,"targetScroll");Oe(this,"animatedScroll");Oe(this,"animate",new _$);Oe(this,"emitter",new xk);Oe(this,"dimensions");Oe(this,"virtualScroll");Oe(this,"onScrollEnd",t=>{t instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&t.stopPropagation()});Oe(this,"dispatchScrollendEvent",()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))});Oe(this,"onClick",t=>{const n=t.composedPath().find(r=>{var i;return r instanceof HTMLAnchorElement&&((i=r.getAttribute("href"))==null?void 0:i.startsWith("#"))});if(n){const r=n.getAttribute("href");if(r){const i=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0;this.scrollTo(r,i)}}});Oe(this,"onPointerDown",t=>{t.button===1&&this.reset()});Oe(this,"onVirtualScroll",t=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(t)===!1)return;const{deltaX:e,deltaY:n,event:r}=t;if(this.emitter.emit("virtual-scroll",{deltaX:e,deltaY:n,event:r}),r.ctrlKey||r.lenisStopPropagation)return;const i=r.type.includes("touch"),o=r.type.includes("wheel");this.isTouching=r.type==="touchstart"||r.type==="touchmove";const s=e===0&&n===0;if(this.options.syncTouch&&i&&r.type==="touchstart"&&s&&!this.isStopped&&!this.isLocked){this.reset();return}const u=this.options.gestureOrientation==="vertical"&&n===0||this.options.gestureOrientation==="horizontal"&&e===0;if(s||u)return;let c=r.composedPath();c=c.slice(0,c.indexOf(this.rootElement));const h=this.options.prevent;if(c.find(b=>{var y,w,R;return b instanceof HTMLElement&&(typeof h=="function"&&(h==null?void 0:h(b))||((y=b.hasAttribute)==null?void 0:y.call(b,"data-lenis-prevent"))||i&&((w=b.hasAttribute)==null?void 0:w.call(b,"data-lenis-prevent-touch"))||o&&((R=b.hasAttribute)==null?void 0:R.call(b,"data-lenis-prevent-wheel")))}))return;if(this.isStopped||this.isLocked){r.preventDefault();return}if(!(this.options.syncTouch&&i||this.options.smoothWheel&&o)){this.isScrolling="native",this.animate.stop(),r.lenisStopPropagation=!0;return}let d=n;this.options.gestureOrientation==="both"?d=Math.abs(n)>Math.abs(e)?n:e:this.options.gestureOrientation==="horizontal"&&(d=e),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&(this.animatedScroll>0&&this.animatedScroll<this.limit||this.animatedScroll===0&&n>0||this.animatedScroll===this.limit&&n<0))&&(r.lenisStopPropagation=!0),r.preventDefault();const f=i&&this.options.syncTouch,p=i&&r.type==="touchend"&&Math.abs(d)>5;p&&(d=this.velocity*this.options.touchInertiaMultiplier),this.scrollTo(this.targetScroll+d,{programmatic:!1,...f?{lerp:p?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})});Oe(this,"onNativeScroll",()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){const t=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-t,this.direction=Math.sign(this.animatedScroll-t),this.isStopped||(this.isScrolling="native"),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}});Oe(this,"raf",t=>{const e=t-(this.time||t);this.time=t,this.animate.advance(e*.001),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))});window.lenisVersion=h$,(!t||t===document.documentElement)&&(t=window),this.options={wrapper:t,content:e,eventsTarget:n,smoothWheel:r,syncTouch:i,syncTouchLerp:o,touchInertiaMultiplier:s,duration:a,easing:u,lerp:c,infinite:h,gestureOrientation:d,orientation:l,touchMultiplier:f,wheelMultiplier:_,autoResize:p,prevent:b,virtualScroll:y,overscroll:w,autoRaf:R,anchors:E,__experimental__naiveDimensions:A},this.dimensions=new y$(t,e,{autoResize:p}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new b$(n,{touchMultiplier:f,wheelMultiplier:_}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this.__rafID&&cancelAnimationFrame(this.__rafID)}on(t,e){return this.emitter.on(t,e)}off(t,e){return this.emitter.off(t,e)}setScroll(t){this.isHorizontal?this.options.wrapper.scrollTo({left:t,behavior:"instant"}):this.options.wrapper.scrollTo({top:t,behavior:"instant"})}resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){this.isStopped&&(this.reset(),this.isStopped=!1)}stop(){this.isStopped||(this.reset(),this.isStopped=!0)}scrollTo(t,{offset:e=0,immediate:n=!1,lock:r=!1,duration:i=this.options.duration,easing:o=this.options.easing,lerp:s=this.options.lerp,onStart:a,onComplete:u,force:c=!1,programmatic:h=!0,userData:l}={}){if(!((this.isStopped||this.isLocked)&&!c)){if(typeof t=="string"&&["top","left","start"].includes(t))t=0;else if(typeof t=="string"&&["bottom","right","end"].includes(t))t=this.limit;else{let d;if(typeof t=="string"?d=document.querySelector(t):t instanceof HTMLElement&&(t!=null&&t.nodeType)&&(d=t),d){if(this.options.wrapper!==window){const _=this.rootElement.getBoundingClientRect();e-=this.isHorizontal?_.left:_.top}const f=d.getBoundingClientRect();t=(this.isHorizontal?f.left:f.top)+this.animatedScroll}}if(typeof t=="number"){if(t+=e,t=Math.round(t),this.options.infinite?h&&(this.targetScroll=this.animatedScroll=this.scroll):t=Ck(0,t,this.limit),t===this.targetScroll){a==null||a(this),u==null||u(this);return}if(this.userData=l??{},n){this.animatedScroll=this.targetScroll=t,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),u==null||u(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}h||(this.targetScroll=t),this.animate.fromTo(this.animatedScroll,t,{duration:i,easing:o,lerp:s,onStart:()=>{r&&(this.isLocked=!0),this.isScrolling="smooth",a==null||a(this)},onUpdate:(d,f)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=d-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=d,this.setScroll(this.scroll),h&&(this.targetScroll=d),f||this.emit(),f&&(this.reset(),this.emit(),u==null||u(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){const t=this.options.wrapper;return this.isHorizontal?t.scrollX??t.scrollLeft:t.scrollY??t.scrollTop}get scroll(){return this.options.infinite?g$(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(t){this._isScrolling!==t&&(this._isScrolling=t,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(t){this._isStopped!==t&&(this._isStopped=t,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(t){this._isLocked!==t&&(this._isLocked=t,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let t="lenis";return this.isStopped&&(t+=" lenis-stopped"),this.isLocked&&(t+=" lenis-locked"),this.isScrolling&&(t+=" lenis-scrolling"),this.isScrolling==="smooth"&&(t+=" lenis-smooth"),t}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}};const S$={mouseWheelDuration:.8,touchDragDuration:.2,touchSwipeMaxDuration:10,touchSwipeDurationFactor:.5,touchSwipeVelocityFactor:1.5,touchSwipeDecayFactor:.95};function T$(t,e=S$){t.mobileConfig=e,t.virtualScroll.emitter.off("scroll",t.onVirtualScroll),t.virtualScroll.on("scroll",n=>{k$(n,t)})}function k$(t,e){var $,N;const n=(N=($=t.event)==null?void 0:$.type)==null?void 0:N.includes("wheel");if(e.options.infinite&&n){const W=t.deltaY<=0,F=t.deltaY+e.targetScroll<=0;if(W&&F){t.deltaY=0,t.event.lenisStopPropagation=!0,e.scrollTo(0,{programmatic:!0,lerp:e.options.lerp,duration:e.options.duration,easing:e.options.easing});return}}if(typeof e.options.virtualScroll=="function"&&e.options.virtualScroll(t)===!1)return;const{deltaX:r,deltaY:i,event:o}=t;if(e.emitter.emit("virtual-scroll",{deltaX:r,deltaY:i,event:o}),o.ctrlKey||o.lenisStopPropagation)return;const s=o.type.includes("touch"),a=o.type.includes("wheel");e.isTouching=o.type==="touchstart"||o.type==="touchmove";const u=r===0&&i===0;if(e.options.syncTouch&&s&&o.type==="touchstart"&&u&&!e.isStopped&&!e.isLocked){e.reset();return}const h=e.options.gestureOrientation==="vertical"&&i===0||e.options.gestureOrientation==="horizontal"&&r===0;if(u||h)return;let l=o.composedPath();l=l.slice(0,l.indexOf(e.rootElement));const d=e.options.prevent;if(l.find(W=>{var ne,F,Q;return W instanceof HTMLElement&&(typeof d=="function"&&(d==null?void 0:d(W))||((ne=W.hasAttribute)==null?void 0:ne.call(W,"data-lenis-prevent"))||s&&((F=W.hasAttribute)==null?void 0:F.call(W,"data-lenis-prevent-touch"))||a&&((Q=W.hasAttribute)==null?void 0:Q.call(W,"data-lenis-prevent-wheel")))}))return;if(e.isStopped||e.isLocked){o.preventDefault();return}if(!(e.options.syncTouch&&s||e.options.smoothWheel&&a)){e.isScrolling="native",e.animate.stop(),o.lenisStopPropagation=!0;return}let _=i;e.options.gestureOrientation==="both"?_=Math.abs(i)>Math.abs(r)?i:r:e.options.gestureOrientation==="horizontal"&&(_=r),(!e.options.overscroll||e.options.infinite||e.options.wrapper!==window&&(e.animatedScroll>0&&e.animatedScroll<e.limit||e.animatedScroll===0&&i>0||e.animatedScroll===e.limit&&i<0))&&(o.lenisStopPropagation=!0),o.preventDefault();const p=s&&e.options.syncTouch,y=s&&o.type==="touchend"&&Math.abs(_)>5,{mouseWheelDuration:w,touchDragDuration:R,touchSwipeMaxDuration:E,touchSwipeDurationFactor:A,touchSwipeVelocityFactor:C,touchSwipeDecayFactor:I}=e.mobileConfig;if(y){const W=Math.abs(e.velocity),ne=e.velocity>0?1:-1,F=Math.min(R+Math.log(1+W*A),E);e.options.duration=F;const Q=F*1e3/(1e3/60),M=(1-I**Q)/(1-I)*C*W;_=ne*M}else p?e.options.duration=R:e.options.duration=w;e.scrollTo(e.targetScroll+_,{programmatic:!1,...p?{lerp:y?e.options.syncTouchLerp:1}:{lerp:e.options.lerp,duration:e.options.duration,easing:e.options.easing}})}const wh=Pc("transition",()=>{const t=j(!1),e=j(!1),n=j(!1),r=j(ya.PENDING_TRANSITION),i=j(ya.PENDING_TRANSITION),o=j(0),s=j(!1);return{routeFrom:t,routeTo:e,skipTransition:n,transitionState:r,transitionCancelled:s,setRoute:function(d){t.value=e.value,e.value=d.path},setSkipTransition:function(d){n.value=d},setTransitionState:function(d){r.value=d},setTransitionCancelled:function(d){s.value=d},transitionVisibleState:i,setTransitionVisibleState:function(d){i.value=d},transitionEnterProgress:o}}),{ScrollTrigger:Lf,gsap:E$}=gn();function R$(t){return t===1?1:1.001-2**(-10*t)}const yn=Pc("scroll",()=>{const t=Hs(),e=wh(),n=qr(),{transitionState:r,transitionVisibleState:i}=Lw(e);let o=-1,s={top:0};const a=ba(null),u=j(0),c=j(-.001),h=j(-.001),l=j(-.001),d=j(0),f=j(0),_=j(0),p=j(!1),b=j(!1),y=j(!1),w=j(!1);function R(){const H=s.top||0,B=s.hash||void 0,U=ct.isSSR&&!ct.hasDocument?null:document.querySelector(B||"#-----------------"),oe=U?U.getBoundingClientRect().top+window.scrollY:H;a.value&&a.value.scrollTo(oe,{immediate:!0,force:!0}),!a.value&&window.scrollTo({top:oe,behavior:"instant"},!1),Q()}t.options.scrollBehavior=(H,B,U)=>{const oe=["/"].includes(H.path),le={TOP:{top:0},SAVED_POSITION:{top:U==null?void 0:U.top},HASH:{hash:H==null?void 0:H.hash}};let q=H!=null&&H.hash?le.HASH:le.TOP;return q=U?le.SAVED_POSITION:q,q=oe?le.TOP:q,s=q,{top:ct.isSSR?0:window.scrollY}},Fe(r,H=>{var U;const B={[ya.LEAVE]:()=>A(!0),[ya.ENTER]:()=>{A(!0),setTimeout(R,20)},[ya.AFTER_ENTER]:()=>{A(!1)}};(U=B[H])==null||U.call(B)},{immediate:!0}),Fe(()=>n.modalShowing,H=>{I(H)},{immediate:!0});const E=Ae(()=>p.value||b.value||y.value);function A(H){p.value=H}function C(H){b.value=H}function I(H){y.value=H}function $(H){w.value=H}Ps(()=>{a.value&&(E.value?a.value.stop():a.value.start(),E.value||Q())});function N(H){a.value.raf(H),Ot(()=>{h.value=a.value.scroll.toFixed(3)}),o=requestAnimationFrame(N)}function W(){var H,B;(H=a.value)==null||H.destroy(),a.value=new w$({duration:.8,easing:R$,syncTouch:!0}),T$(a.value),N(),(B=a.value)==null||B.on("scroll",()=>ne()),ne()}function ne(){a.value&&(u.value=a.value.velocity||0,c.value=a.value.actualScroll||0,f.value=a.value.targetScroll||0,d.value=a.value.progress||0,_.value=a.value.direction||0,Lf.update(),window.scrollProgress=d.value,Ot(()=>{l.value=a.value.actualScroll||0}))}function F(H,B){var U;(U=a.value)==null||U.scrollTo(H,B)}function Q(H){ct.isSSR||(E$.ticker.lagSmoothing(0),Lf==null||Lf.refresh())}function M(){var H;cancelAnimationFrame(o.value),(H=a.value)==null||H.destroy(),a.value=null}return{initLenis:W,lenis:a,scrollLock:E,setScrollLockTransition:A,setScrollLockModal:I,setScrollLockLoader:C,scrollVelocity:u,scrollCurrent:c,scrollSubPixel:h,scrollCurrentAfter:l,scrollProgress:d,scrollTarget:f,scrollDirection:_,refreshScroller:Q,scrollTo:F,setScrollBarDragging:$,scrollBarDragging:w,cleanup:M}});function A$({elRef:t=j(null),activeMargin:e=0,activeInitDelaySeconds:n=.1,onUpdate:r}={}){const i=yn(),o=j(!1);let s=null,a=null;const u=(b,y=0)=>{clearTimeout(s),y?s=setTimeout(()=>{o.value=b},y*1e3):o.value=b},c={scrollY:0,viewportHeight:1080,viewportWidth:1080,svh:1e3,lvh:1e3,rect:{scrollContent:{y:1,height:1,get baseY(){return this.y+this.height},x:1,width:1},viewport:{y:-1,height:1,get baseY(){return this.y+this.height},x:1,width:1},viewportUnit:{y:1,height:1,get baseY(){return this.y+this.height},x:1,width:1}},rectIsVisible:!1,rectIsActive:!1},h=j(!1),l=j(!1);Fe(()=>t.value&&o.value,b=>{b&&_()},{immediate:!0});const d=()=>i.scrollCurrent,f=()=>Je.lvh||window.innerHeight,_=()=>{const b=f(),y=window.innerWidth,w=d();if(c.scrollY=w,c.viewportHeight=b,c.viewportWidth=y,c.svh=Je.svh,c.lvh=Je.lvh,!t.value)return;const{top:R,left:E,width:A,height:C}=t.value.getBoundingClientRect();let I=c.rect.scrollContent;I.y=R+w,I.height=C,I.x=E,I.width=A,I=c.rect.viewport,I.height=C,I.x=E,I.width=A,I=c.rect.viewportUnit,I.height=C/b,I.x=E/y,I.width=A/y,p()},p=()=>{const b=c.viewportHeight,y=d();if(c.scrollY=y,c.rect.viewport.y=c.rect.scrollContent.y-y,c.rect.viewportUnit.y=c.rect.viewport.y/b,o.value){const{y:w,baseY:R}=c.rect.viewportUnit,E=e;c.rectIsVisible=R>0&&w<1,c.rectIsActive=R+E>0&&w-E<1,h.value=c.rectIsVisible,l.value=c.rectIsActive}r==null||r(c)};return xn(()=>{_(),clearTimeout(a),a=setTimeout(_,100)},!0,3,!0),Fe(()=>i.scrollCurrent,()=>{p()}),Ft(()=>{u(!1),clearTimeout(a)}),Et(()=>{u(!1),u(!0,n)}),{elRef:t,scrollData:c,rectIsVisible:h,rectIsActive:l}}const C$=["data-open","data-fixed"],x$=["data-open"],P$=["data-open"],I$={class:"FilterList-container"},L$=["data-cohorts"],O$={class:"FilterList-items"},M$=["data-active","aria-pressed","aria-label","onClick"],$$={key:0,class:"FilterList-bullet","aria-hidden":"true"},F$={class:"FilterList-footeritem FilterList-footeritem--left"},D$=["aria-hidden"],N$=["aria-hidden"],H$=["data-open"],B$={__name:"FilterList",props:{taxonomies:{type:Object,required:!0,default:()=>[{codename:"sector",name:"sector",terms:[{codename:"manufacturing",name:"manufacturing",terms:[]},{codename:"electricity",name:"electricity",terms:[]}]},{codename:"program",name:"program",terms:[{codename:"fellows",name:"fellows",terms:[]}]}]},cohorts:{type:Array,default:()=>[]},cohortsTitle:{type:String,default:"Cohorts"},selectedTerm:{type:String,default:""}},emits:["update:selectedTerm"],setup(t,{emit:e}){const n=t,r=e,i=qr(),o=yn(),s=j(n.selectedTerm),a=j(!1),u=j(!1),c=j(null),h=j(null),l=j(null),d=j(null),f=j(null),_=j(null),p=[],b=j(null),y=j(null),w=j(null),R=j(!1);A$({elRef:c,activeMargin:.1,onUpdate:()=>M()});let E=null;const A=Ae(()=>!!s.value),C=Ae(()=>{if(!Array.isArray(n.taxonomies))return n.taxonomies||{};const ae={};return n.taxonomies.forEach(fe=>{fe.name&&fe.terms&&(ae[fe.name]=fe.terms)}),ae}),I=Ae(()=>{var fe;const ae=Object.entries(C.value).map(([_e,te])=>({key:_e,title:_e,isCohorts:!1,items:(te||[]).map(ue=>{const ge=ue.name||ue;return{value:ge,label:ge}})}));return(fe=n.cohorts)!=null&&fe.length&&ae.push({key:"cohorts",title:n.cohortsTitle,isCohorts:!0,items:n.cohorts.map(_e=>({value:`${Nd}${_e}`,label:String(_e)}))}),ae});function $(){i.setModalState(xr.FILTER)}function N(){i.setModalState(xr.NONE)}function W(ae){const fe=s.value===ae?"":ae;s.value=fe,r("update:selectedTerm",fe)}function ne(){s.value="",r("update:selectedTerm","")}function F(){a.value=!a.value,a.value?$():N()}function Q(ae){return(ae||[]).filter(fe=>fe&&fe.isConnected)}function M(){if(!c.value||!c.value.parentElement)return;const ae=c.value.getBoundingClientRect(),fe=c.value.parentElement.getBoundingClientRect(),_e=fe.top>0&&ae.top<=fe.top,te=ae.bottom>=fe.bottom;_e&&!te?R.value=!1:te?R.value=!0:R.value=!1}function H(){M()}function B(){M()}function U(){u.value=!0,Ot(()=>{const ae=h.value,fe=d.value;if(!ae||!fe)return;E&&(E.kill(),E=null),Vn.set(fe,{clipPath:"inset(100% 0% 0% 0%)",display:"block"}),R.value&&Vn.set(c.value,{position:"fixed"}),Q(p.flat()).forEach(te=>{Vn.set(te,{opacity:0,y:20})}),E=Vn.timeline(),E.set(ae,{clipPath:"inset(0% 0% 0% 0%)"}),E.to(fe,{clipPath:"inset(0% 0% 0% 0%)",duration:.33,ease:"power1.inOut"},"-=0.10");const _e="-=0.10";p.forEach(te=>{const ue=Q(te);ue.length&&E.to(ue,{y:0,opacity:1,duration:.18,ease:"power4.out",stagger:.03},_e)})})}function oe(){const ae=h.value,fe=d.value;if(!ae||!fe)return;E&&(E.kill(),E=null),E=Vn.timeline();let _e="0";p.forEach(te=>{const ue=Q(te);ue.length&&(E.to(ue,{y:20,opacity:0,duration:.1,ease:"power4.in",stagger:0},_e),_e="+=0.05")}),E.to(fe,{duration:.14,ease:"power1.inOut",onComplete:()=>{Vn.set(fe,{clearProps:"all"}),Vn.set(ae,{clearProps:"all"}),Vn.set(c.value,{clearProps:"all"}),Vn.set(_.value,{clearProps:"all"}),Q(p.flat()).forEach(te=>{Vn.set(te,{clearProps:"all"})}),u.value=!1}},"-=0.08")}function le(ae,fe,_e,te=0){ae&&Vn.to(ae,{y:-_e,duration:.5,ease:"power3.out",delay:te}),fe&&Vn.fromTo(fe,{y:_e},{y:0,duration:.5,ease:"power3.out",delay:0})}function q(ae,fe,_e,te=0){fe&&Vn.to(fe,{y:_e,duration:.5,ease:"power3.out",delay:te}),ae&&Vn.fromTo(ae,{y:-_e},{y:0,duration:.5,ease:"power3.out",delay:0})}function be(){F()}function ke(){a.value=!1,N()}function Se(ae){return s.value===ae}return Fe(a,async ae=>{await Ot();const fe=b.value,_e=y.value,te=w.value;!fe||!_e||(ae?(le(fe,_e,30),A.value&&(Vn.set(te,{opacity:1,delay:.5}),le(null,te,30,.5))):(q(fe,_e,30),A.value&&(q(null,te,30,.5),Vn.set(te,{opacity:0,delay:0}))))}),Fe(a,ae=>{ae?U():oe()}),Fe(()=>I.value.map(ae=>`${ae.key}:${ae.items.length}`).join("|"),()=>{p.length=0}),Fe(()=>n.selectedTerm,ae=>{s.value=ae}),Fe(()=>o.scrollSubPixel,()=>{H()}),xn(B),Et(()=>{Ot(H)}),Ft(()=>{a.value&&N(),E&&(E.kill(),E=null)}),(ae,fe)=>(se(),ce(Ye,null,[u.value?(se(),ce("div",{key:0,ref_key:"filterSpacer",ref:_,"aria-hidden":"true",class:"FilterList-spacer"},null,512)):it("",!0),Y("div",{ref_key:"filterWrapperRef",ref:c,class:"FilterList-wrapper","data-open":a.value,"data-fixed":R.value},[Y("div",{ref_key:"filterPanelRef",ref:h,class:"FilterList","data-open":a.value},[Y("div",{ref_key:"filterBgRef",ref:d,class:"FilterList-bg","data-open":a.value},null,8,P$),Y("div",I$,[(se(!0),ce(Ye,null,lt(I.value,(_e,te)=>(se(),ce("div",{key:_e.key,class:"FilterList-category","data-cohorts":_e.isCohorts},[Y("h3",{ref_for:!0,ref:ue=>{p[te]||(p[te]=[]),p[te][0]=ue},class:"FilterList-categorytitle"},De(n.cohorts.length&&!_e.isCohorts?"Grand Challenges":_e.title),513),Y("ul",O$,[(se(!0),ce(Ye,null,lt(_e.items,(ue,ge)=>(se(),ce("li",{key:`${_e.key}-${ue.value}`,class:"FilterList-item"},[Y("button",{ref_for:!0,ref:we=>{p[te]||(p[te]=[]),p[te][ge+1]=we},class:"FilterList-term","data-active":Se(ue.value),"aria-pressed":Se(ue.value),"aria-label":_e.isCohorts?`Filter by cohort ${ue.label}`:`Filter by ${ue.label}`,onClick:we=>W(ue.value)},[Y("span",null,De(ue.label),1),Se(ue.value)?(se(),ce("span",$$)):it("",!0)],8,M$)]))),128))])],8,L$))),128))]),Y("div",{class:"FilterList-footer",onClick:be},[Y("div",F$,[tC(Y("button",{ref_key:"seeAllBtn",ref:w,class:"FilterList-action FilterList-action--seeall","aria-label":"See all categories",onClick:s0(ne,["stop"])}," See All ",512),[[fx,A.value&&a.value]])]),Y("div",{ref_key:"filterFooter",ref:f,class:"FilterList-footeritem FilterList-footeritem--center type-body--bold"},[Y("button",{class:"FilterList-action FilterList-togglebtn",onClick:s0(F,["stop"])},[Y("span",{ref_key:"filterTextTop",ref:b,class:"FilterList-toggletext FilterList-toggletext--filter","aria-hidden":a.value},"Filter",8,D$),Y("span",{ref_key:"closeTextBottom",ref:y,class:"FilterList-toggletext FilterList-toggletext--close","aria-hidden":!a.value},"Close",8,N$)])],512),fe[0]||(fe[0]=Y("div",{class:"FilterList-footeritem FilterList-footeritem--right",role:"presentation"},null,-1))])],8,x$)],8,C$),Y("div",{ref_key:"filterBackdropRef",ref:l,class:"FilterList-backdrop","data-open":a.value,onClick:ke},fe[1]||(fe[1]=[Y("div",{class:"FilterList-backdrop-gradient"},null,-1)]),8,H$)],64))}},Pk=ft(B$,[["__scopeId","data-v-16958fff"]]),V$=Ni({__name:"PillLabel",props:{label:{type:String,required:!0},variant:{type:String,required:!1,default:"default"},isActive:{type:Boolean,required:!1,default:!1},action:{type:Function,required:!1,default:null},to:{type:String,required:!1,default:""}},setup(t){return(e,n)=>{const r=_g("router-link");return t.to?(se(),At(r,{key:0,to:t.to,class:rt(["PillLabel",`PillLabel--${t.variant}`]),"data-active":t.isActive},{default:ri(()=>[Sa(De(t.label),1)]),_:1},8,["to","class","data-active"])):(se(),At(wa(t.action?"button":"span"),{key:1,class:rt(["PillLabel",`PillLabel--${t.variant}`]),"data-active":t.isActive,onClick:t.action},{default:ri(()=>[Sa(De(t.label),1)]),_:1},8,["class","data-active","onClick"]))}}}),Ik=ft(V$,[["__scopeId","data-v-3fbcf133"]]),U$={class:"icon-arrow",fill:"none",viewBox:"0 0 40 41",xmlns:"http://www.w3.org/2000/svg"};function j$(t,e){return se(),ce("svg",U$,e[0]||(e[0]=[Y("path",{d:"m26.8333 17.5709c.6334.2667 1.0334.8667 1.0334 1.5667v9.7h3.6333v-20.06666h-20.0333v3.63336h9.8333c.7 0 1.3.4 1.5667 1.0666.2666.6667.1333 1.3667-.3667 1.8667l-14 13.7 2.5333 2.5667 13.9667-13.7c.5-.5 1.2-.6334 1.8333-.3667z",fill:"currentColor"},null,-1)]))}const Lk={render:j$},W$=["href","data-nav-color"],q$={class:"PortfolioCard-inner"},z$={class:"PortfolioCard-logo"},G$=["src","alt"],Y$={class:"PortfolioCard-title type-body--bold"},K$={class:"PortfolioCard-description type-body--xs"},X$={key:1},Q$={class:"PortfolioCard-tags"},J$={__name:"PortfolioCard",props:{company:{type:Object,required:!0},theme:{type:Object,default:()=>({name:"theme",type:"multiple_choice",value:[{name:"yellow",codename:"yellow"}]})}},setup(t){const e=t,n=Cn(),r=Ae(()=>{var s,a,u;const o=(u=(a=(s=e.company)==null?void 0:s.elements)==null?void 0:a.description_rt)==null?void 0:u.value;return!o||o.trim()==="<p><br></p>"?!1:o}),i=o=>{var a;const s=n.getAssetURL((a=e.company.elements)==null?void 0:a.logo);return s||"https://placehold.co/200x80/transparent/000000?font=Poppins&text="+o};return Ae(()=>{var o,s,a;return(a=(s=(o=e.company.elements)==null?void 0:o.tags)==null?void 0:s.value)!=null&&a.length?e.company.elements.tags.value.map(u=>u.name).join(" • "):""}),(o,s)=>{const a=Lk,u=Fl,c=Ik;return se(),ce("a",{href:t.company.elements.url.value,target:"_blank",class:rt(["PortfolioCard",`theme--${pe(n).getThemeValue(t.theme)}`]),"data-nav-color":pe(n).getNavColorValue(pe(n).getThemeValue(t.theme))},[Y("div",q$,[He(a,{class:"PortfolioCard-icon"}),Y("div",z$,[Y("img",{src:i(t.company.elements.title.value),alt:t.company.elements.title.value+" logo",class:"PortfolioCard-img"},null,8,G$)]),Y("h3",Y$,De(t.company.elements.title.value),1),Y("div",K$,[r.value?(se(),At(u,{key:0,"disable-styles":!0,html:r.value},null,8,["html"])):(se(),ce("p",X$,De(t.company.elements.description.value),1))]),Y("div",Q$,[(se(!0),ce(Ye,null,lt(t.company.elements.technologies.value,h=>(se(),At(c,{key:h.codename,label:h.name,variant:"compact"},null,8,["label"]))),128))])])],10,W$)}}},Z$=ft(J$,[["__scopeId","data-v-cd1068c8"]]),e4=["data-is-modal-route"],t4=["data-is-modal-route"],n4={__name:"PortfolioGrid",props:{companies:{type:Array,required:!0,default:()=>[]},filtered:{type:Boolean,default:!1},theme:{type:Object,default:()=>({name:"theme",type:"multiple_choice",value:[{name:"yellow",codename:"yellow"}]})},isModalRoute:{type:Boolean,default:!1}},setup(t){return(e,n)=>{const r=Z$;return se(),ce("div",{class:rt(["PortfolioGrid",{"PortfolioGrid--filtered":t.filtered}]),"data-is-modal-route":t.isModalRoute},[Y("div",{class:"PortfolioGrid-container","data-is-modal-route":t.isModalRoute},[(se(!0),ce(Ye,null,lt(t.companies,i=>(se(),ce("div",{key:i.system.id,class:"PortfolioGrid-item"},[He(r,{company:i,theme:t.theme},null,8,["company","theme"])]))),128))],8,t4)],10,e4)}}},Ok=ft(n4,[["__scopeId","data-v-0b547557"]]),r4={class:"TextHero-container"},i4={class:"TextHero-wrap"},o4={class:"TextHero-titlewrap"},s4={class:"TextHero-lead"},a4=Ni({__name:"TextHero",props:{block:{type:Object,required:!0,default:()=>({_type:"",vueType:"",pageTitle:"",blockIndex:1,cascadeColor:"white",theme:{name:"theme",type:"multiple_choice",value:[{name:"white",codename:"white"}]}})}},setup(t){const e=t;Cn();const n=Ae(()=>{var r;return bh((r=e.block.title)==null?void 0:r.value)});return(r,i)=>{const o=Fl;return se(),ce("header",{class:rt(["TextHero","theme-text--yellow"])},[Y("div",r4,[Y("div",i4,[Y("div",o4,[t.block.title?(se(),ce("h1",{key:0,class:rt(["TextHero-title type-oversized",n.value])},De(t.block.title.value),3)):it("",!0)]),Y("div",s4,[t.block.intro?(se(),At(o,{key:0,class:"TextHero-leadtext type-h6",html:t.block.intro.value},null,8,["html"])):it("",!0)])])])])}}}),Mk=ft(a4,[["__scopeId","data-v-63347f05"]]),l4=["data-nav-color","data-is-modal-route"],u4={key:0,class:"fellowsprojects-loading"},c4={key:1,class:"fellowsprojects-error"},f4={class:"type-oversized"},d4={key:2,class:"fellowsprojects-content"},h4=["data-is-modal-route","data-has-filter"],p4=["data-is-modal-route"],m4={__name:"fellows-projects",props:{slug:{type:String,required:!0},filter:{type:String,default:""},isModalRoute:{type:Boolean,default:!1},theme:{name:"theme",type:Object,default:()=>({name:"theme",type:"multiple_choice",value:[{name:"cream",codename:"cream"}]})}},setup(t){const e=t,n=Cn(),r=j(""),i=j(null),o=Bs(),s=Hs(),a=j(),u=j(null),{data:c,error:h,isLoading:l}=yh("fellows-projects"),{data:d,error:f,isLoading:_}=wk("be"),p=j(""),b=Ae(()=>y5(p.value)),y=Ae(()=>b.value!==null?`Cohort ${b.value}`:p.value),w=Ae(()=>p.value?`${r.value||"Fellows Projects"} - ${y.value}`:r.value||"Fellows Projects");e.isModalRoute||Dc(Ae(()=>({title:w.value,meta:i.value?n.getMeta(i.value):[],link:n.getMetaLinks(i.value)})));function R(){i.value.theme=e.theme}const E=Ae(()=>!i.value||!i.value.theme?{}:{[`theme--${n.getThemeValue(i.value.theme)}`]:!0}),A=Ae(()=>{var M,H,B;return(B=(H=(M=i.value)==null?void 0:M.companies)==null?void 0:H.linkedItems)!=null&&B.length?i.value.companies.linkedItems:[]});function C(M){var U,oe;const H=(oe=(U=M==null?void 0:M.elements)==null?void 0:U.cohort_number)==null?void 0:oe.value;if(H==null||H==="")return null;const B=Number(H);return Number.isFinite(B)?B:null}const I=Ae(()=>{const M=new Set;return A.value.forEach(H=>{const B=C(H);B!==null&&M.add(B)}),[...M].sort((H,B)=>H-B)}),$=Ae(()=>(Array.isArray(d.value)?d.value.length>0:Object.keys(d.value||{}).length>0)||I.value.length>0),N=Ae(()=>p.value?b.value!==null?A.value.filter(M=>C(M)===b.value):A.value.filter(M=>{var B,U;const H=(U=(B=M.elements)==null?void 0:B.tags)==null?void 0:U.value;return H!=null&&H.length?H.some(oe=>oe.name===p.value):!1}):A.value);async function W(){var M,H;if(a.value=!1,ne(),!!c.value){if(!((M=c.value.system)!=null&&M.type)){a.value="Invalid page data structure";return}i.value=c.value.elements,r.value=(H=i.value.title)==null?void 0:H.value,e.isModalRoute||(n.pageType=c.value.system.type),R()}}function ne(){p.value=e.filter?e.filter:""}function F(M){if(e.filter===M)return;const H=M?`/fellows-projects/${encodeURIComponent(M)}`:"/fellows-projects";s.push(H)}async function Q(){try{await new Promise((M,H)=>{const B=Fe(()=>l.value,U=>{U||(B(),M())},{immediate:!0})}),c.value&&await W()}catch(M){console.error("Error in onServerPrefetch:",M)}}return Fe(p,M=>{F(M)}),Fe(()=>o.params,()=>{ne()},{immediate:!0}),Ps(()=>{c.value&&!l.value&&W(),h.value&&(a.value="Error loading page")}),Ml(async()=>{u.value=e.slug,BTEDL.newPage("fellows-projects"),c.value&&!l.value&&W()}),Oa(async()=>{u.value=e.slug,await Q()}),Ft(()=>{}),(M,H)=>{const B=Mk,U=Ok,oe=Pk;return se(),ce("div",{key:M.$route.fullPath,class:rt(["fellowsprojects",E.value]),"data-nav-color":pe(n).getNavColorValue(E.value),"data-is-modal-route":t.isModalRoute},[pe(l)||pe(_)?(se(),ce("div",u4,H[1]||(H[1]=[Y("div",{class:"loading-indicator"}," Loading page content... ",-1)]))):a.value?(se(),ce("div",c4,[Y("h1",f4,De(a.value),1),H[2]||(H[2]=Y("p",null,"Sorry, we couldn't load the page you requested.",-1))])):i.value?(se(),ce("div",d4,[He(B,{block:i.value},null,8,["block"]),Y("section",{class:"fellowsprojects-companies","data-is-modal-route":t.isModalRoute,"data-has-filter":!!p.value},[Y("div",{class:rt(["fellowsprojects-container",t.isModalRoute?"fellowsprojects-container--modal":""])},[Y("div",{class:"fellowsprojects-layout","data-is-modal-route":t.isModalRoute},[He(U,{companies:N.value,filtered:!!p.value,theme:i.value.theme,class:"fellowsprojects-gridcontainer","is-modal-route":t.isModalRoute},null,8,["companies","filtered","theme","is-modal-route"])],8,p4)],2)],8,h4),!t.isModalRoute&&$.value?(se(),At(oe,{key:0,"selected-term":p.value,"onUpdate:selectedTerm":H[0]||(H[0]=le=>p.value=le),taxonomies:pe(d),cohorts:I.value},null,8,["selected-term","taxonomies","cohorts"])):it("",!0)])):it("",!0)],10,l4)}}},d_=ft(m4,[["__scopeId","data-v-ce0abf44"]]),g4=Object.freeze(Object.defineProperty({__proto__:null,default:d_},Symbol.toStringTag,{value:"Module"})),_4={class:"ButtonIcon-icon ButtonIcon-icon--static"},v4={class:"ButtonIcon-clip"},y4={class:"ButtonIcon-clip"},b4={class:"sr-only"},w4={class:"ButtonIcon-icon ButtonIcon-icon--static"},S4={class:"ButtonIcon-clip"},T4={class:"ButtonIcon-clip"},k4={class:"sr-only"},E4={__name:"ButtonIcon",props:{label:{type:String,required:!0,default:"",description:"Accessible label for screen readers"},theme:{type:String,default:"black"},to:{type:String},rel:{type:String},download:{type:String},buttonType:{type:String},variant:{type:String,default:"default"},manualHover:{type:Boolean,default:!1},notButton:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:e}){const n=t,r=e,{gsap:i}=gn();let o=null;const s=j(null),a=j(null),u=j(null);let c=!1;Fe(()=>n.manualHover,()=>{n.manualHover?(h(),c=!0):(c=!1,l())});function h(){c||(o==null||o.kill(),o=i.timeline(),o.set(s.value,{y:"100%"},0),o.to(s.value,{duration:.45,ease:"sine.inOut",y:0},0),o.set(a.value,{y:0},0),o.to(a.value,{duration:.45,y:"-100%",ease:"sine.out"},0),o.set(u.value,{y:"100%"},0),o.to(u.value,{delay:.1,duration:.5,stagger:.05,y:0,ease:"sine.out"},0))}function l(){c||(o==null||o.kill(),o=i.timeline(),o.to(s.value,{duration:.45,ease:"sine.inOut",y:"-100%"}),o.set(a.value,{y:"100%"},0),o.to(a.value,{delay:.1,duration:.45,y:0,ease:"sine.out"},0),o.set(u.value,{y:0},0),o.to(u.value,{duration:.5,y:"-100%",ease:"sine.out"},0))}function d(w){r("click",w)}function f(){ct.touchScreen||h()}function _(){ct.touchScreen||l()}function p(w){return String(w).trim()}const b=Ae(()=>!n.to||n.buttonType),y=Ae(()=>p(n.label));return Et(()=>{i.set([s.value,u.value],{y:"-100%"})}),(w,R)=>{const E=qw;return b.value?(se(),At(wa(t.notButton?"span":"button"),{key:0,class:rt(["ButtonIconWrapper",`ButtonIconWrapper--${t.variant}`]),type:n.buttonType,"data-is-hover":t.manualHover,onClick:d,onMouseenter:f,onMouseleave:_},{default:ri(()=>[Y("span",{class:rt(["ButtonIcon",[`ButtonIcon--${t.variant}`]])},[Y("span",_4,[Fo(w.$slots,"default",{},void 0,!0)])],2),Y("span",{class:rt(["ButtonIcon ButtonIcon-icon ButtonIcon-icon--animated",[`ButtonIcon--${n.theme}`,`ButtonIcon--${t.variant}`]])},[Y("span",v4,[Y("span",{ref_key:"iconRef",ref:a,class:"ButtonIcon-anim"},[Fo(w.$slots,"default",{},void 0,!0)],512)])],2),Y("span",{ref_key:"hoverBgRef",ref:s,class:rt(["ButtonIcon-hover-bg",[`ButtonIcon--${n.theme}-hover`,`ButtonIcon--${t.variant}`]])},null,2),Y("span",{class:rt(["ButtonIcon-icon ButtonIcon-icon--hover",[`ButtonIcon--${n.theme}-hover-icon`,`ButtonIcon--${t.variant}`]])},[Y("span",y4,[Y("span",{ref_key:"hoverIconRef",ref:u,class:"ButtonIcon-anim"},[Fo(w.$slots,"default",{},void 0,!0)],512)])],2),Y("span",b4,De(y.value),1)]),_:3},40,["class","type","data-is-hover"])):(se(),At(E,{key:1,class:rt(["ButtonIconWrapper",`ButtonIconWrapper--${t.variant}`]),to:n.to,download:n.download,rel:n.rel,"data-is-hover":t.manualHover},{default:ri(()=>[Y("span",{class:rt(["ButtonIcon",[`ButtonIcon--${t.variant}`]])},[Y("span",w4,[Fo(w.$slots,"default",{},void 0,!0)])],2),Y("span",{class:rt(["ButtonIcon ButtonIcon-icon ButtonIcon-icon--animated",[`ButtonIcon--${n.theme}`,`ButtonIcon--${t.variant}`]])},[Y("span",S4,[Y("span",{ref_key:"iconRef",ref:a,class:"ButtonIcon-anim"},[Fo(w.$slots,"default",{},void 0,!0)],512)])],2),Y("span",{ref_key:"hoverBgRef",ref:s,class:rt(["ButtonIcon-hover-bg",[`ButtonIcon--${n.theme}-hover`,`ButtonIcon--${t.variant}`]])},null,2),Y("span",{class:rt(["ButtonIcon-icon ButtonIcon-icon--hover",[`ButtonIcon--${n.theme}-hover-icon`,`ButtonIcon--${t.variant}`]])},[Y("span",T4,[Y("span",{ref_key:"hoverIconRef",ref:u,class:"ButtonIcon-anim"},[Fo(w.$slots,"default",{},void 0,!0)],512)])],2),Y("span",k4,De(y.value),1)]),_:3},8,["class","to","download","rel","data-is-hover"]))}}},Sh=ft(E4,[["__scopeId","data-v-d7d7ae78"]]),R4={fill:"none",viewBox:"0 0 41 40",xmlns:"http://www.w3.org/2000/svg"};function A4(t,e){return se(),ce("svg",R4,e[0]||(e[0]=[Y("path",{d:"m19.1638 23.7501c.3334-.3333.7667-.5 1.2-.5.4334 0 .8667.1667 1.2.5l9.5 9.5 2.5667-2.5666-9.5-9.5c-.3333-.3334-.5-.7334-.5-1.2 0-.4667.1667-.8667.5-1.2l9.5-9.50004-2.5667-2.56666-9.5 9.5c-.6666.6667-1.7333.6667-2.4 0l-9.49997-9.5-2.56666 2.56666 9.50003 9.50004c.3333.3333.5.7333.5 1.2 0 .4666-.1667.8666-.5 1.2l-9.50003 9.5333 2.56666 2.5667 9.49997-9.5z",fill:"currentColor"},null,-1)]))}const C4={render:A4},$k=Pc("browser",()=>{const t=j(0),e=j(0),n=j(1),r=j(""),i=j(!1),o=j(!1),s=j(!1),a=j(""),u=j(""),c=j(0),h=j(!1),l=j(!1),d=j(!1),f=j(!1),_=j(!1),p=j(!1),b=function(){t.value=Je.width,e.value=Je.height,n.value=1,r.value=Je.breakpoint,i.value=Je.isPhoneBreakpoint,o.value=Je.isTabletBreakpoint,s.value=Je.isDesktopBreakpoint,a.value=Je.deviceType,u.value=Je.orientation,c.value=16,h.value=Je.isMobile,l.value=Je.isTablet,d.value=Je.isDesktop,f.value=Je.isTabletPortraitBreakpoint,_.value=Je.isTabletLandscapeBreakpoint,t.value!==0&&(p.value=!0)};typeof window<"u"?setTimeout(()=>{b(),Je.subscribeResize(b,!0,1)},0):(t.value=1920,e.value=1080,n.value=1,r.value="desktop",i.value=!1,o.value=!1,s.value=!0,a.value="desktop",u.value="landscape",c.value=16,h.value=!1,l.value=!1,d.value=!0,f.value=!1,_.value=!1,p.value=!0);const y=Ae(()=>i.value||f.value);return{ww:t,wh:e,scale:n,breakpoint:r,isPhoneBreakpoint:i,isTabletBreakpoint:o,isDesktopBreakpoint:s,deviceType:a,orientation:u,fontSize:c,isMobile:h,isTablet:l,isDesktop:d,isTabletPortrait:f,isTabletLandscape:_,storeReady:p,update:b,isMobileOrPortraitTablet:y}}),x4=["data-theme-color"],P4=["data-theme-color"],I4=["data-theme-color"],L4=["data-large"],O4=["data-nav-color"],M4=["data-large"],$4={key:1,class:"modal-404"},F4={__name:"ContentModal",props:{uniqueId:{type:String,required:!0},theme:{name:"theme",type:Object,default:()=>({name:"theme",type:"multiple_choice",value:[{name:"yellow",codename:"yellow"}]})},isLarge:{type:Boolean,required:!1,default:!0},overlayTheme:{name:"overlaytheme",type:Object,default:()=>({name:"theme",type:"multiple_choice",value:[{name:"yellow",codename:"yellow"}]})},slug:{type:String,required:!1,default:null},filter:{type:String,required:!1,default:null}},setup(t){const e=t,n=qr(),r=Cn(),i=$k();yn();const{gsap:o}=gn(),s=Hs();Bs();const a=ba(null),u=j(!1),c=j({}),h=j(null),l=j(null),d=j(null),f=j(null),_=j(null),p=j(null),b=j(null),y=j(null);async function w($){var ne;if(u.value=!1,a.value=null,!$)return;const N=s.resolve($);if(!N.matched.length||!((ne=N.matched[N.matched.length-1].components)!=null&&ne.default)){u.value=!0;return}let W=N.matched[N.matched.length-1].components.default;typeof W=="function"&&(W=(await W()).default||await W()),a.value=W,c.value={slug:e.slug,filter:e.filter}}function R(){n.setModalState(xr.NONE)}let E=null,A=null;function C(){E==null||E.kill(),A==null||A.kill(),E=o.timeline({}),E.set([p.value,_.value,d.value,l.value,f.value],{autoAlpha:1},">"),E.to(l.value,{autoAlpha:1,duration:.6},0),E.to(p.value,{scaleX:1,duration:.6,ease:"power2.inOut"},0),E.to(f.value,{scale:1,duration:.25,ease:"power2.inOut"},">-0.1"),E.to(_.value,{translateX:"0%",duration:.6,ease:"power2.inOut"},0),E.to(b.value,{translateX:"0%",duration:.6,ease:"power2.inOut"},0),y.value&&(y.value.scrollTop=0)}function I($=!1){E==null||E.kill(),A==null||A.kill(),A=o.timeline({}),A.to(l.value,{autoAlpha:0,duration:$?0:.4},0),A.to(f.value,{scale:.01,duration:$?0:.18,ease:"power2.inOut"},0),A.set([f.value],{autoAlpha:0},">"),A.to(_.value,{autoAlpha:0,ease:"linear",duration:$?0:.2},0),A.to(_.value,{translateX:"100%",ease:"power2.inOut",duration:$?0:.25},.1),A.to(b.value,{translateX:"-100%",ease:"power2.inOut",duration:$?0:.25},.1),A.to(p.value,{scaleX:.01,ease:"power2.inOut",duration:$?0:.25},.1),A.set([p.value,_.value,d.value],{autoAlpha:0},">")}return Fe(()=>n.modalState,$=>{$===xr.CONTENT+e.uniqueId?C():I(!1)}),Fe(()=>e.slug,w),Et(async()=>{I(!0),e.slug&&await w(e.slug)}),($,N)=>{const W=C4,ne=Sh;return se(),At(rC,{to:"body"},[Y("div",{ref_key:"rootRef",ref:h,class:"ContentModal"},[Y("div",{ref_key:"bgWrapperRef",ref:l,class:"ContentModal-bgWrapper",onClick:R},[Y("div",{class:"ContentModal-bg ContentModal-bg--first","data-theme-color":pe(r).getThemeValue(t.overlayTheme)},null,8,x4),Y("div",{class:"ContentModal-bg ContentModal-bg--second","data-theme-color":pe(r).getThemeValue(t.overlayTheme)},null,8,P4),Y("div",{class:"ContentModal-bg ContentModal-bg--third","data-theme-color":pe(r).getThemeValue(t.overlayTheme)},null,8,I4)],512),Y("div",{ref_key:"blockRef",ref:d,class:"ContentModal-block","data-large":t.isLarge},[Y("div",{ref_key:"contentBgRef",ref:p,class:rt(["ContentModal-contentbackground",`theme--${pe(r).getThemeValue(t.theme)}`]),"data-nav-color":pe(r).getNavColorValue(pe(r).getThemeValue(t.theme))},null,10,O4),Y("div",{ref_key:"closeRef",ref:f,class:"ContentModal-closeButton"},[He(ne,{label:"Close",theme:pe(i).isMobileOrPortraitTablet?"yellow-alt":"yellow",onClick:R},{default:ri(()=>[He(W)]),_:1},8,["theme"])],512),Y("div",{ref_key:"contentRef",ref:_,class:"ContentModal-content"},[Y("div",{ref_key:"inverseRef",ref:b,class:"ContentModal-inverse"},[Y("div",{ref_key:"scrollRef",ref:y,class:"ContentModal-scroll","data-lenis-prevent":""},[Y("div",{class:"ContentModal-container","data-large":t.isLarge},[t.slug&&a.value?(se(),ce(Ye,{key:0},[a.value?(se(),At(wa(a.value),_w({key:0},pe(c),{slug:pe(c).slug,filter:pe(c).filter,theme:t.theme,"is-modal-route":!0}),null,16,["slug","filter","theme"])):it("",!0)],64)):t.slug&&pe(u)?(se(),ce("div",$4,N[0]||(N[0]=[Y("h1",{class:"type-h3"}," Sorry ",-1),Sa(" This content was not found. ")]))):Fo($.$slots,"default",{key:2},void 0,!0)],8,M4)],512)],512)],512)],8,L4)],512)])}}},Fk=ft(F4,[["__scopeId","data-v-0089f1d3"]]),D4={class:"mody"},N4={__name:"HomePortfolioModal",setup(t){function e(){return[{name:"Manufacturing",codename:"manufacturing"},{name:"Electricity",codename:"electricity"},{name:"Agriculture",codename:"agriculture"},{name:"Transportation",codename:"transportation"},{name:"Buildings",codename:"buildings"}]}function n(){return{theme:{name:"theme",type:"multiple_choice",value:[{name:"yellow",codename:"yellow"}]},overlay:{name:"overlaytheme",type:"multiple_choice",value:[{name:"yellow",codename:"yellow"}]}}}return(r,i)=>{const o=Fk;return se(),ce("div",D4,[(se(!0),ce(Ye,null,lt(e(),s=>(se(),At(o,{key:s.name,"unique-id":s.codename,slug:"portfolio",filter:s.codename,theme:n().theme,"overlay-theme":n().overlay},null,8,["unique-id","filter","theme","overlay-theme"]))),128))])}}},H4=ft(N4,[["__scopeId","data-v-a594cd35"]]);var mu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function B4(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var id={exports:{}},V4=id.exports,w1;function U4(){return w1||(w1=1,function(t,e){(function(r,i){t.exports=i()})(V4,()=>(()=>{var n=[,(s,a,u)=>{u.r(a),u.d(a,{default:()=>h});var c=(()=>{var l=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(d={}){var f=d,_,p;f.ready=new Promise((m,v)=>{_=m,p=v});function b(){function m(ve){const Re=O;k=v=0,O=new Map,Re.forEach(xe=>{try{xe(ve)}catch(Te){console.error(Te)}}),this.pb(),J&&J.Tb()}let v=0,k=0,O=new Map,J=null,re=null;this.requestAnimationFrame=function(ve){v||(v=requestAnimationFrame(m.bind(this)));const Re=++k;return O.set(Re,ve),Re},this.cancelAnimationFrame=function(ve){O.delete(ve),v&&O.size==0&&(cancelAnimationFrame(v),v=0)},this.Rb=function(ve){re&&(document.body.remove(re),re=null),ve||(re=document.createElement("div"),re.style.backgroundColor="black",re.style.position="fixed",re.style.right=0,re.style.top=0,re.style.color="white",re.style.padding="4px",re.innerHTML="RIVE FPS",ve=function(Re){re.innerHTML="RIVE FPS "+Re.toFixed(1)},document.body.appendChild(re)),J=new function(){let Re=0,xe=0;this.Tb=function(){var Te=performance.now();xe?(++Re,Te-=xe,1e3<Te&&(ve(1e3*Re/Te),Re=xe=0)):(xe=Te,Re=0)}}},this.Ob=function(){re&&(document.body.remove(re),re=null),J=null},this.pb=function(){}}function y(m){console.assert(!0);const v=new Map;let k=-1/0;this.push=function(O){return O=O+((1<<m)-1)>>m,v.has(O)&&clearTimeout(v.get(O)),v.set(O,setTimeout(function(){v.delete(O),v.length==0?k=-1/0:O==k&&(k=Math.max(...v.keys()),console.assert(k<O))},1e3)),k=Math.max(O,k),k<<m}}const w=f.onRuntimeInitialized;f.onRuntimeInitialized=function(){w&&w();let m=f.decodeAudio;f.decodeAudio=function(J,re){J=m(J),re(J)};let v=f.decodeFont;f.decodeFont=function(J,re){J=v(J),re(J)};const k=f.FileAssetLoader;f.ptrToAsset=J=>{let re=f.ptrToFileAsset(J);return re.isImage?f.ptrToImageAsset(J):re.isFont?f.ptrToFontAsset(J):re.isAudio?f.ptrToAudioAsset(J):re},f.CustomFileAssetLoader=k.extend("CustomFileAssetLoader",{__construct:function({loadContents:J}){this.__parent.__construct.call(this),this.Gb=J},loadContents:function(J,re){return J=f.ptrToAsset(J),this.Gb(J,re)}}),f.CDNFileAssetLoader=k.extend("CDNFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this)},loadContents:function(J){let re=f.ptrToAsset(J);return J=re.cdnUuid,J===""?!1:(function(ve,Re){var xe=new XMLHttpRequest;xe.responseType="arraybuffer",xe.onreadystatechange=function(){xe.readyState==4&&xe.status==200&&Re(xe)},xe.open("GET",ve,!0),xe.send(null)}(re.cdnBaseUrl+"/"+J,ve=>{re.decode(new Uint8Array(ve.response))}),!0)}}),f.FallbackFileAssetLoader=k.extend("FallbackFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this),this.lb=[]},addLoader:function(J){this.lb.push(J)},loadContents:function(J,re){for(let ve of this.lb)if(ve.loadContents(J,re))return!0;return!1}});let O=f.computeAlignment;f.computeAlignment=function(J,re,ve,Re,xe=1){return O.call(this,J,re,ve,Re,xe)}};const R="createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "),E=new function(){function m(){if(!v){let St=function(Ct,ze,_n){if(ze=$e.createShader(ze),$e.shaderSource(ze,_n),$e.compileShader(ze),_n=$e.getShaderInfoLog(ze),0<(_n||"").length)throw _n;$e.attachShader(Ct,ze)};var ye=document.createElement("canvas"),Be={alpha:1,depth:0,stencil:0,antialias:0,premultipliedAlpha:1,preserveDrawingBuffer:0,powerPreference:"high-performance",failIfMajorPerformanceCaveat:0,enableExtensionsByDefault:1,explicitSwapControl:1,renderViaOffscreenBackBuffer:1};let $e;if(/iPhone|iPad|iPod/i.test(navigator.userAgent)){if($e=ye.getContext("webgl",Be),k=1,!$e)return!1}else if($e=ye.getContext("webgl2",Be))k=2;else if($e=ye.getContext("webgl",Be))k=1;else return!1;if($e=new Proxy($e,{get(Ct,ze){if(Ct.isContextLost()){if(xe||(console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ",ze),xe=!0),typeof Ct[ze]=="function")return function(){}}else return typeof Ct[ze]=="function"?function(..._n){return Ct[ze].apply(Ct,_n)}:Ct[ze]},set(Ct,ze,_n){if(Ct.isContextLost())xe||(console.error("Cannot render the mesh because the GL Context was lost. Tried to set property "+ze),xe=!0);else return Ct[ze]=_n,!0}}),O=Math.min($e.getParameter($e.MAX_RENDERBUFFER_SIZE),$e.getParameter($e.MAX_TEXTURE_SIZE)),ye=$e.createProgram(),St(ye,$e.VERTEX_SHADER,`attribute vec2 vertex;
                attribute vec2 uv;
                uniform vec4 mat;
                uniform vec2 translate;
                varying vec2 st;
                void main() {
                    st = uv;
                    gl_Position = vec4(mat2(mat) * vertex + translate, 0, 1);
                }`),St(ye,$e.FRAGMENT_SHADER,`precision highp float;
                uniform sampler2D image;
                varying vec2 st;
                void main() {
                    gl_FragColor = texture2D(image, st);
                }`),$e.bindAttribLocation(ye,0,"vertex"),$e.bindAttribLocation(ye,1,"uv"),$e.linkProgram(ye),Be=$e.getProgramInfoLog(ye),0<(Be||"").trim().length)throw Be;J=$e.getUniformLocation(ye,"mat"),re=$e.getUniformLocation(ye,"translate"),$e.useProgram(ye),$e.bindBuffer($e.ARRAY_BUFFER,$e.createBuffer()),$e.enableVertexAttribArray(0),$e.enableVertexAttribArray(1),$e.bindBuffer($e.ELEMENT_ARRAY_BUFFER,$e.createBuffer()),$e.uniform1i($e.getUniformLocation(ye,"image"),0),$e.pixelStorei($e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),v=$e}return!0}let v=null,k=0,O=0,J=null,re=null,ve=0,Re=0,xe=!1;m(),this.hc=function(){return m(),O},this.Mb=function(ye){v.deleteTexture&&v.deleteTexture(ye)},this.Lb=function(ye){if(!m())return null;const Be=v.createTexture();return Be?(v.bindTexture(v.TEXTURE_2D,Be),v.texImage2D(v.TEXTURE_2D,0,v.RGBA,v.RGBA,v.UNSIGNED_BYTE,ye),v.texParameteri(v.TEXTURE_2D,v.TEXTURE_WRAP_S,v.CLAMP_TO_EDGE),v.texParameteri(v.TEXTURE_2D,v.TEXTURE_WRAP_T,v.CLAMP_TO_EDGE),v.texParameteri(v.TEXTURE_2D,v.TEXTURE_MAG_FILTER,v.LINEAR),k==2?(v.texParameteri(v.TEXTURE_2D,v.TEXTURE_MIN_FILTER,v.LINEAR_MIPMAP_LINEAR),v.generateMipmap(v.TEXTURE_2D)):v.texParameteri(v.TEXTURE_2D,v.TEXTURE_MIN_FILTER,v.LINEAR),Be):null};const Te=new y(8),Ve=new y(8),je=new y(10),Xe=new y(10);this.Qb=function(ye,Be,$e,St,Ct){if(m()){var ze=Te.push(ye),_n=Ve.push(Be);if(v.canvas){(v.canvas.width!=ze||v.canvas.height!=_n)&&(v.canvas.width=ze,v.canvas.height=_n),v.viewport(0,_n-Be,ye,Be),v.disable(v.SCISSOR_TEST),v.clearColor(0,0,0,0),v.clear(v.COLOR_BUFFER_BIT),v.enable(v.SCISSOR_TEST),$e.sort((Ht,ro)=>ro.xb-Ht.xb),ze=je.push(St),ve!=ze&&(v.bufferData(v.ARRAY_BUFFER,8*ze,v.DYNAMIC_DRAW),ve=ze),ze=0;for(var cr of $e)v.bufferSubData(v.ARRAY_BUFFER,ze,cr.Ua),ze+=4*cr.Ua.length;console.assert(ze==4*St);for(var no of $e)v.bufferSubData(v.ARRAY_BUFFER,ze,no.Db),ze+=4*no.Db.length;console.assert(ze==8*St),ze=Xe.push(Ct),Re!=ze&&(v.bufferData(v.ELEMENT_ARRAY_BUFFER,2*ze,v.DYNAMIC_DRAW),Re=ze),cr=0;for(var js of $e)v.bufferSubData(v.ELEMENT_ARRAY_BUFFER,cr,js.indices),cr+=2*js.indices.length;console.assert(cr==2*Ct),js=0,no=!0,ze=cr=0;for(const Ht of $e){Ht.image.Ka!=js&&(v.bindTexture(v.TEXTURE_2D,Ht.image.Ja||null),js=Ht.image.Ka),Ht.mc?(v.scissor(Ht.Za,_n-Ht.$a-Ht.kb,Ht.Ac,Ht.kb),no=!0):no&&(v.scissor(0,_n-Be,ye,Be),no=!1),$e=2/ye;const ro=-2/Be;v.uniform4f(J,Ht.ha[0]*$e*Ht.Ba,Ht.ha[1]*ro*Ht.Ca,Ht.ha[2]*$e*Ht.Ba,Ht.ha[3]*ro*Ht.Ca),v.uniform2f(re,Ht.ha[4]*$e*Ht.Ba+$e*(Ht.Za-Ht.ic*Ht.Ba)-1,Ht.ha[5]*ro*Ht.Ca+ro*(Ht.$a-Ht.jc*Ht.Ca)+1),v.vertexAttribPointer(0,2,v.FLOAT,!1,0,ze),v.vertexAttribPointer(1,2,v.FLOAT,!1,0,ze+4*St),v.drawElements(v.TRIANGLES,Ht.indices.length,v.UNSIGNED_SHORT,cr),ze+=4*Ht.Ua.length,cr+=2*Ht.indices.length}console.assert(ze==4*St),console.assert(cr==2*Ct)}}},this.canvas=function(){return m()&&v.canvas}},A=f.onRuntimeInitialized;f.onRuntimeInitialized=function(){function m(Me){switch(Me){case Te.srcOver:return"source-over";case Te.screen:return"screen";case Te.overlay:return"overlay";case Te.darken:return"darken";case Te.lighten:return"lighten";case Te.colorDodge:return"color-dodge";case Te.colorBurn:return"color-burn";case Te.hardLight:return"hard-light";case Te.softLight:return"soft-light";case Te.difference:return"difference";case Te.exclusion:return"exclusion";case Te.multiply:return"multiply";case Te.hue:return"hue";case Te.saturation:return"saturation";case Te.color:return"color";case Te.luminosity:return"luminosity"}}function v(Me){return"rgba("+((16711680&Me)>>>16)+","+((65280&Me)>>>8)+","+((255&Me)>>>0)+","+((4278190080&Me)>>>24)/255+")"}function k(){0<_n.length&&(E.Qb(ze.drawWidth(),ze.drawHeight(),_n,cr,no),_n=[],no=cr=0,ze.reset(512,512));for(const Me of Ct){for(const Ge of Me.H)Ge();Me.H=[]}Ct.clear()}A&&A();var O=f.RenderPaintStyle;const J=f.RenderPath,re=f.RenderPaint,ve=f.Renderer,Re=f.StrokeCap,xe=f.StrokeJoin,Te=f.BlendMode,Ve=O.fill,je=O.stroke,Xe=f.FillRule.evenOdd;let ye=1;var Be=f.RenderImage.extend("CanvasRenderImage",{__construct:function({la:Me,xa:Ge}={}){this.__parent.__construct.call(this),this.Ka=ye,ye=ye+1&2147483647||1,this.la=Me,this.xa=Ge},__destruct:function(){this.Ja&&(E.Mb(this.Ja),URL.revokeObjectURL(this.Xa)),this.__parent.__destruct.call(this)},decode:function(Me){var Ge=this;Ge.xa&&Ge.xa(Ge);var $t=new Image;Ge.Xa=URL.createObjectURL(new Blob([Me],{type:"image/png"})),$t.onload=function(){Ge.Fb=$t,Ge.Ja=E.Lb($t),Ge.size($t.width,$t.height),Ge.la&&Ge.la(Ge)},$t.src=Ge.Xa}}),$e=J.extend("CanvasRenderPath",{__construct:function(){this.__parent.__construct.call(this),this.T=new Path2D},rewind:function(){this.T=new Path2D},addPath:function(Me,Ge,$t,Bt,Tt,Dt,qt){var Qt=this.T,Ui=Qt.addPath;Me=Me.T;const nr=new DOMMatrix;nr.a=Ge,nr.b=$t,nr.c=Bt,nr.d=Tt,nr.e=Dt,nr.f=qt,Ui.call(Qt,Me,nr)},fillRule:function(Me){this.Wa=Me},moveTo:function(Me,Ge){this.T.moveTo(Me,Ge)},lineTo:function(Me,Ge){this.T.lineTo(Me,Ge)},cubicTo:function(Me,Ge,$t,Bt,Tt,Dt){this.T.bezierCurveTo(Me,Ge,$t,Bt,Tt,Dt)},close:function(){this.T.closePath()}}),St=re.extend("CanvasRenderPaint",{color:function(Me){this.Ya=v(Me)},thickness:function(Me){this.Ib=Me},join:function(Me){switch(Me){case xe.miter:this.Ia="miter";break;case xe.round:this.Ia="round";break;case xe.bevel:this.Ia="bevel"}},cap:function(Me){switch(Me){case Re.butt:this.Ha="butt";break;case Re.round:this.Ha="round";break;case Re.square:this.Ha="square"}},style:function(Me){this.Hb=Me},blendMode:function(Me){this.Eb=m(Me)},clearGradient:function(){this.ja=null},linearGradient:function(Me,Ge,$t,Bt){this.ja={zb:Me,Ab:Ge,cb:$t,eb:Bt,Ra:[]}},radialGradient:function(Me,Ge,$t,Bt){this.ja={zb:Me,Ab:Ge,cb:$t,eb:Bt,Ra:[],ec:!0}},addStop:function(Me,Ge){this.ja.Ra.push({color:Me,stop:Ge})},completeGradient:function(){},draw:function(Me,Ge,$t){let Bt=this.Hb;var Tt=this.Ya,Dt=this.ja;if(Me.globalCompositeOperation=this.Eb,Dt!=null){Tt=Dt.zb;var qt=Dt.Ab;const Ui=Dt.cb;var Qt=Dt.eb;const nr=Dt.Ra;Dt.ec?(Dt=Ui-Tt,Qt-=qt,Tt=Me.createRadialGradient(Tt,qt,0,Tt,qt,Math.sqrt(Dt*Dt+Qt*Qt))):Tt=Me.createLinearGradient(Tt,qt,Ui,Qt);for(let Si=0,rr=nr.length;Si<rr;Si++)qt=nr[Si],Tt.addColorStop(qt.stop,v(qt.color));this.Ya=Tt,this.ja=null}switch(Bt){case je:Me.strokeStyle=Tt,Me.lineWidth=this.Ib,Me.lineCap=this.Ha,Me.lineJoin=this.Ia,Me.stroke(Ge);break;case Ve:Me.fillStyle=Tt,Me.fill(Ge,$t)}}});const Ct=new Set;let ze=null,_n=[],cr=0,no=0;var js=f.CanvasRenderer=ve.extend("Renderer",{__construct:function(Me){this.__parent.__construct.call(this),this.S=[1,0,0,1,0,0],this.C=Me.getContext("2d"),this.Va=Me,this.H=[]},save:function(){this.S.push(...this.S.slice(this.S.length-6)),this.H.push(this.C.save.bind(this.C))},restore:function(){const Me=this.S.length-6;if(6>Me)throw"restore() called without matching save().";this.S.splice(Me),this.H.push(this.C.restore.bind(this.C))},transform:function(Me,Ge,$t,Bt,Tt,Dt){const qt=this.S,Qt=qt.length-6;qt.splice(Qt,6,qt[Qt]*Me+qt[Qt+2]*Ge,qt[Qt+1]*Me+qt[Qt+3]*Ge,qt[Qt]*$t+qt[Qt+2]*Bt,qt[Qt+1]*$t+qt[Qt+3]*Bt,qt[Qt]*Tt+qt[Qt+2]*Dt+qt[Qt+4],qt[Qt+1]*Tt+qt[Qt+3]*Dt+qt[Qt+5]),this.H.push(this.C.transform.bind(this.C,Me,Ge,$t,Bt,Tt,Dt))},rotate:function(Me){const Ge=Math.sin(Me);Me=Math.cos(Me),this.transform(Me,Ge,-Ge,Me,0,0)},_drawPath:function(Me,Ge){this.H.push(Ge.draw.bind(Ge,this.C,Me.T,Me.Wa===Xe?"evenodd":"nonzero"))},_drawRiveImage:function(Me,Ge,$t,Bt){var Tt=Me.Fb;if(Tt){var Dt=this.C,qt=m($t);this.H.push(function(){Dt.globalCompositeOperation=qt,Dt.globalAlpha=Bt,Dt.drawImage(Tt,0,0),Dt.globalAlpha=1})}},_getMatrix:function(Me){const Ge=this.S,$t=Ge.length-6;for(let Bt=0;6>Bt;++Bt)Me[Bt]=Ge[$t+Bt]},_drawImageMesh:function(Me,Ge,$t,Bt,Tt,Dt,qt,Qt,Ui,nr,Si){Ge=this.C.canvas.width;var rr=this.C.canvas.height;const Y_=nr-Qt,K_=Si-Ui;Qt=Math.max(Qt,0),Ui=Math.max(Ui,0),nr=Math.min(nr,Ge),Si=Math.min(Si,rr);const Zl=nr-Qt,eu=Si-Ui;if(console.assert(Zl<=Math.min(Y_,Ge)),console.assert(eu<=Math.min(K_,rr)),!(0>=Zl||0>=eu)){nr=Zl<Y_||eu<K_,Ge=Si=1;var Ws=Math.ceil(Zl*Si),qs=Math.ceil(eu*Ge);rr=E.hc(),Ws>rr&&(Si*=rr/Ws,Ws=rr),qs>rr&&(Ge*=rr/qs,qs=rr),ze||(ze=new f.DynamicRectanizer(rr),ze.reset(512,512)),rr=ze.addRect(Ws,qs),0>rr&&(k(),Ct.add(this),rr=ze.addRect(Ws,qs),console.assert(0<=rr));var X_=rr&65535,Q_=rr>>16;_n.push({ha:this.S.slice(this.S.length-6),image:Me,Za:X_,$a:Q_,ic:Qt,jc:Ui,Ac:Ws,kb:qs,Ba:Si,Ca:Ge,Ua:new Float32Array(Tt),Db:new Float32Array(Dt),indices:new Uint16Array(qt),mc:nr,xb:Me.Ka<<1|(nr?1:0)}),cr+=Tt.length,no+=qt.length;var Va=this.C,xE=m($t);this.H.push(function(){Va.save(),Va.resetTransform(),Va.globalCompositeOperation=xE,Va.globalAlpha=Bt;const J_=E.canvas();J_&&Va.drawImage(J_,X_,Q_,Ws,qs,Qt,Ui,Zl,eu),Va.restore()})}},_clipPath:function(Me){this.H.push(this.C.clip.bind(this.C,Me.T,Me.Wa===Xe?"evenodd":"nonzero"))},clear:function(){Ct.add(this),this.H.push(this.C.clearRect.bind(this.C,0,0,this.Va.width,this.Va.height))},flush:function(){},translate:function(Me,Ge){this.transform(1,0,0,1,Me,Ge)}});f.makeRenderer=function(Me){const Ge=new js(Me),$t=Ge.C;return new Proxy(Ge,{get(Bt,Tt){if(typeof Bt[Tt]=="function")return function(...Dt){return Bt[Tt].apply(Bt,Dt)};if(typeof $t[Tt]=="function"){if(-1<R.indexOf(Tt))throw Error("RiveException: Method call to '"+Tt+"()' is not allowed, as the renderer cannot immediately pass through the return                 values of any canvas 2d context methods.");return function(...Dt){Ge.H.push($t[Tt].bind($t,...Dt))}}return Bt[Tt]},set(Bt,Tt,Dt){if(Tt in $t)return Ge.H.push(()=>{$t[Tt]=Dt}),!0}})},f.decodeImage=function(Me,Ge){new Be({la:Ge}).decode(Me)},f.renderFactory={makeRenderPaint:function(){return new St},makeRenderPath:function(){return new $e},makeRenderImage:function(){let Me=ro;return new Be({xa:()=>{Me.total++},la:()=>{if(Me.loaded++,Me.loaded===Me.total){const Ge=Me.ready;Ge&&(Ge(),Me.ready=null)}}})}};let Ht=f.load,ro=null;f.load=function(Me,Ge,$t=!0){const Bt=new f.FallbackFileAssetLoader;return Ge!==void 0&&Bt.addLoader(Ge),$t&&(Ge=new f.CDNFileAssetLoader,Bt.addLoader(Ge)),new Promise(function(Tt){let Dt=null;ro={total:0,loaded:0,ready:function(){Tt(Dt)}},Dt=Ht(Me,Bt),ro.total==0&&Tt(Dt)})};let CE=f.RendererWrapper.prototype.align;f.RendererWrapper.prototype.align=function(Me,Ge,$t,Bt,Tt=1){CE.call(this,Me,Ge,$t,Bt,Tt)},O=new b,f.requestAnimationFrame=O.requestAnimationFrame.bind(O),f.cancelAnimationFrame=O.cancelAnimationFrame.bind(O),f.enableFPSCounter=O.Rb.bind(O),f.disableFPSCounter=O.Ob,O.pb=k,f.resolveAnimationFrame=k,f.cleanup=function(){ze&&ze.delete()}};var C=Object.assign({},f),I="./this.program",$=typeof window=="object",N=typeof importScripts=="function",W="",ne,F;($||N)&&(N?W=self.location.href:typeof document<"u"&&document.currentScript&&(W=document.currentScript.src),l&&(W=l),W.indexOf("blob:")!==0?W=W.substr(0,W.replace(/[?#].*/,"").lastIndexOf("/")+1):W="",N&&(F=m=>{var v=new XMLHttpRequest;return v.open("GET",m,!1),v.responseType="arraybuffer",v.send(null),new Uint8Array(v.response)}),ne=(m,v,k)=>{var O=new XMLHttpRequest;O.open("GET",m,!0),O.responseType="arraybuffer",O.onload=()=>{O.status==200||O.status==0&&O.response?v(O.response):k()},O.onerror=k,O.send(null)});var Q=f.print||console.log.bind(console),M=f.printErr||console.error.bind(console);Object.assign(f,C),C=null,f.thisProgram&&(I=f.thisProgram);var H;f.wasmBinary&&(H=f.wasmBinary),f.noExitRuntime,typeof WebAssembly!="object"&&ee("no native wasm support detected");var B,U,oe=!1,le,q,be,ke,Se,ae,fe,_e;function te(){var m=B.buffer;f.HEAP8=le=new Int8Array(m),f.HEAP16=be=new Int16Array(m),f.HEAP32=Se=new Int32Array(m),f.HEAPU8=q=new Uint8Array(m),f.HEAPU16=ke=new Uint16Array(m),f.HEAPU32=ae=new Uint32Array(m),f.HEAPF32=fe=new Float32Array(m),f.HEAPF64=_e=new Float64Array(m)}var ue,ge=[],we=[],Ie=[];function z(){var m=f.preRun.shift();ge.unshift(m)}var P=0,K=null;function ee(m){throw f.onAbort&&f.onAbort(m),m="Aborted("+m+")",M(m),oe=!0,m=new WebAssembly.RuntimeError(m+". Build with -sASSERTIONS for more info."),p(m),m}function X(m){return m.startsWith("data:application/octet-stream;base64,")}var x;if(x="canvas_advanced.wasm",!X(x)){var G=x;x=f.locateFile?f.locateFile(G,W):W+G}function L(m){if(m==x&&H)return new Uint8Array(H);if(F)return F(m);throw"both async and sync fetching of the wasm failed"}function D(m){if(!H&&($||N)){if(typeof fetch=="function"&&!m.startsWith("file://"))return fetch(m,{credentials:"same-origin"}).then(v=>{if(!v.ok)throw"failed to load wasm binary file at '"+m+"'";return v.arrayBuffer()}).catch(()=>L(m));if(ne)return new Promise((v,k)=>{ne(m,O=>v(new Uint8Array(O)),k)})}return Promise.resolve().then(()=>L(m))}function Z(m,v,k){return D(m).then(O=>WebAssembly.instantiate(O,v)).then(O=>O).then(k,O=>{M("failed to asynchronously prepare wasm: "+O),ee(O)})}function me(m,v){var k=x;return H||typeof WebAssembly.instantiateStreaming!="function"||X(k)||k.startsWith("file://")||typeof fetch!="function"?Z(k,m,v):fetch(k,{credentials:"same-origin"}).then(O=>WebAssembly.instantiateStreaming(O,m).then(v,function(J){return M("wasm streaming compile failed: "+J),M("falling back to ArrayBuffer instantiation"),Z(k,m,v)}))}var de,S,g={459036:(m,v,k,O,J)=>{if(typeof window>"u"||(window.AudioContext||window.webkitAudioContext)===void 0)return 0;if(typeof window.h>"u"){window.h={Aa:0},window.h.I={},window.h.I.ya=m,window.h.I.capture=v,window.h.I.La=k,window.h.ga={},window.h.ga.stopped=O,window.h.ga.yb=J;let re=window.h;re.D=[],re.yc=function(ve){for(var Re=0;Re<re.D.length;++Re)if(re.D[Re]==null)return re.D[Re]=ve,Re;return re.D.push(ve),re.D.length-1},re.Cb=function(ve){for(re.D[ve]=null;0<re.D.length&&re.D[re.D.length-1]==null;)re.D.pop()},re.Sc=function(ve){for(var Re=0;Re<re.D.length;++Re)if(re.D[Re]==ve)return re.Cb(Re)},re.ra=function(ve){return re.D[ve]},re.Ta=["touchend","click"],re.unlock=function(){for(var ve=0;ve<re.D.length;++ve){var Re=re.D[ve];Re!=null&&Re.J!=null&&Re.state===re.ga.yb&&Re.J.resume().then(()=>{j_(Re.qb)},xe=>{console.error("Failed to resume audiocontext",xe)})}re.Ta.map(function(xe){document.removeEventListener(xe,re.unlock,!0)})},re.Ta.map(function(ve){document.addEventListener(ve,re.unlock,!0)})}return window.h.Aa+=1,1},461214:()=>{typeof window.h<"u"&&(window.h.Ta.map(function(m){document.removeEventListener(m,window.h.unlock,!0)}),--window.h.Aa,window.h.Aa===0&&delete window.h)},461518:()=>navigator.mediaDevices!==void 0&&navigator.mediaDevices.getUserMedia!==void 0,461622:()=>{try{var m=new(window.AudioContext||window.webkitAudioContext),v=m.sampleRate;return m.close(),v}catch{return 0}},461793:(m,v,k,O,J,re)=>{if(typeof window.h>"u")return-1;var ve={},Re={};return m==window.h.I.ya&&k!=0&&(Re.sampleRate=k),ve.J=new(window.AudioContext||window.webkitAudioContext)(Re),ve.J.suspend(),ve.state=window.h.ga.stopped,k=0,m!=window.h.I.ya&&(k=v),ve.Z=ve.J.createScriptProcessor(O,k,v),ve.Z.onaudioprocess=function(xe){if((ve.sa==null||ve.sa.length==0)&&(ve.sa=new Float32Array(fe.buffer,J,O*v)),m==window.h.I.capture||m==window.h.I.La){for(var Te=0;Te<v;Te+=1)for(var Ve=xe.inputBuffer.getChannelData(Te),je=ve.sa,Xe=0;Xe<O;Xe+=1)je[Xe*v+Te]=Ve[Xe];W_(re,O,J)}if(m==window.h.I.ya||m==window.h.I.La)for(q_(re,O,J),Te=0;Te<xe.outputBuffer.numberOfChannels;++Te)for(Ve=xe.outputBuffer.getChannelData(Te),je=ve.sa,Xe=0;Xe<O;Xe+=1)Ve[Xe]=je[Xe*v+Te];else for(Te=0;Te<xe.outputBuffer.numberOfChannels;++Te)xe.outputBuffer.getChannelData(Te).fill(0)},m!=window.h.I.capture&&m!=window.h.I.La||navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(function(xe){ve.Da=ve.J.createMediaStreamSource(xe),ve.Da.connect(ve.Z),ve.Z.connect(ve.J.destination)}).catch(function(xe){""+xe}),m==window.h.I.ya&&ve.Z.connect(ve.J.destination),ve.qb=re,window.h.yc(ve)},464670:m=>window.h.ra(m).J.sampleRate,464743:m=>{m=window.h.ra(m),m.Z!==void 0&&(m.Z.onaudioprocess=function(){},m.Z.disconnect(),m.Z=void 0),m.Da!==void 0&&(m.Da.disconnect(),m.Da=void 0),m.J.close(),m.J=void 0,m.qb=void 0},465143:m=>{window.h.Cb(m)},465193:m=>{m=window.h.ra(m),m.J.resume(),m.state=window.h.ga.yb},465332:m=>{m=window.h.ra(m),m.J.suspend(),m.state=window.h.ga.stopped}},T=m=>{for(;0<m.length;)m.shift()(f)},V=(m,v)=>{for(var k=0,O=m.length-1;0<=O;O--){var J=m[O];J==="."?m.splice(O,1):J===".."?(m.splice(O,1),k++):k&&(m.splice(O,1),k--)}if(v)for(;k;k--)m.unshift("..");return m},ie=m=>{var v=m.charAt(0)==="/",k=m.substr(-1)==="/";return(m=V(m.split("/").filter(O=>!!O),!v).join("/"))||v||(m="."),m&&k&&(m+="/"),(v?"/":"")+m},he=m=>{var v=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(m).slice(1);return m=v[0],v=v[1],!m&&!v?".":(v&&(v=v.substr(0,v.length-1)),m+v)},Ee=m=>{if(m==="/")return"/";m=ie(m),m=m.replace(/\/$/,"");var v=m.lastIndexOf("/");return v===-1?m:m.substr(v+1)},Ne=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return m=>crypto.getRandomValues(m);ee("initRandomDevice")},Pe=m=>(Pe=Ne())(m);function Ue(){for(var m="",v=!1,k=arguments.length-1;-1<=k&&!v;k--){if(v=0<=k?arguments[k]:"/",typeof v!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!v)return"";m=v+"/"+m,v=v.charAt(0)==="/"}return m=V(m.split("/").filter(O=>!!O),!v).join("/"),(v?"/":"")+m||"."}var Qe=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,tt=(m,v,k)=>{var O=v+k;for(k=v;m[k]&&!(k>=O);)++k;if(16<k-v&&m.buffer&&Qe)return Qe.decode(m.subarray(v,k));for(O="";v<k;){var J=m[v++];if(J&128){var re=m[v++]&63;if((J&224)==192)O+=String.fromCharCode((J&31)<<6|re);else{var ve=m[v++]&63;J=(J&240)==224?(J&15)<<12|re<<6|ve:(J&7)<<18|re<<12|ve<<6|m[v++]&63,65536>J?O+=String.fromCharCode(J):(J-=65536,O+=String.fromCharCode(55296|J>>10,56320|J&1023))}}else O+=String.fromCharCode(J)}return O},gt=[],_t=m=>{for(var v=0,k=0;k<m.length;++k){var O=m.charCodeAt(k);127>=O?v++:2047>=O?v+=2:55296<=O&&57343>=O?(v+=4,++k):v+=3}return v},rn=(m,v,k,O)=>{if(!(0<O))return 0;var J=k;O=k+O-1;for(var re=0;re<m.length;++re){var ve=m.charCodeAt(re);if(55296<=ve&&57343>=ve){var Re=m.charCodeAt(++re);ve=65536+((ve&1023)<<10)|Re&1023}if(127>=ve){if(k>=O)break;v[k++]=ve}else{if(2047>=ve){if(k+1>=O)break;v[k++]=192|ve>>6}else{if(65535>=ve){if(k+2>=O)break;v[k++]=224|ve>>12}else{if(k+3>=O)break;v[k++]=240|ve>>18,v[k++]=128|ve>>12&63}v[k++]=128|ve>>6&63}v[k++]=128|ve&63}}return v[k]=0,k-J};function nt(m,v){var k=Array(_t(m)+1);return m=rn(m,k,0,k.length),v&&(k.length=m),k}var jt=[];function Rt(m,v){jt[m]={input:[],F:[],V:v},Bn(m,pt)}var pt={open:function(m){var v=jt[m.node.za];if(!v)throw new Le(43);m.s=v,m.seekable=!1},close:function(m){m.s.V.qa(m.s)},qa:function(m){m.s.V.qa(m.s)},read:function(m,v,k,O){if(!m.s||!m.s.V.jb)throw new Le(60);for(var J=0,re=0;re<O;re++){try{var ve=m.s.V.jb(m.s)}catch{throw new Le(29)}if(ve===void 0&&J===0)throw new Le(6);if(ve==null)break;J++,v[k+re]=ve}return J&&(m.node.timestamp=Date.now()),J},write:function(m,v,k,O){if(!m.s||!m.s.V.Oa)throw new Le(60);try{for(var J=0;J<O;J++)m.s.V.Oa(m.s,v[k+J])}catch{throw new Le(29)}return O&&(m.node.timestamp=Date.now()),J}},Wt={jb:function(){e:{if(!gt.length){var m=null;if(typeof window<"u"&&typeof window.prompt=="function"?(m=window.prompt("Input: "),m!==null&&(m+=`
`)):typeof readline=="function"&&(m=readline(),m!==null&&(m+=`
`)),!m){m=null;break e}gt=nt(m,!0)}m=gt.shift()}return m},Oa:function(m,v){v===null||v===10?(Q(tt(m.F,0)),m.F=[]):v!=0&&m.F.push(v)},qa:function(m){m.F&&0<m.F.length&&(Q(tt(m.F,0)),m.F=[])},bc:function(){return{Fc:25856,Hc:5,Ec:191,Gc:35387,Dc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},cc:function(){return 0},dc:function(){return[24,80]}},Pn={Oa:function(m,v){v===null||v===10?(M(tt(m.F,0)),m.F=[]):v!=0&&m.F.push(v)},qa:function(m){m.F&&0<m.F.length&&(M(tt(m.F,0)),m.F=[])}};function In(m,v){var k=m.j?m.j.length:0;k>=v||(v=Math.max(v,k*(1048576>k?2:1.125)>>>0),k!=0&&(v=Math.max(v,256)),k=m.j,m.j=new Uint8Array(v),0<m.v&&m.j.set(k.subarray(0,m.v),0))}var Ke={O:null,U(){return Ke.createNode(null,"/",16895,0)},createNode(m,v,k,O){if((k&61440)===24576||(k&61440)===4096)throw new Le(63);return Ke.O||(Ke.O={dir:{node:{Y:Ke.l.Y,P:Ke.l.P,ka:Ke.l.ka,va:Ke.l.va,vb:Ke.l.vb,Bb:Ke.l.Bb,wb:Ke.l.wb,tb:Ke.l.tb,Ea:Ke.l.Ea},stream:{ba:Ke.m.ba}},file:{node:{Y:Ke.l.Y,P:Ke.l.P},stream:{ba:Ke.m.ba,read:Ke.m.read,write:Ke.m.write,pa:Ke.m.pa,mb:Ke.m.mb,ob:Ke.m.ob}},link:{node:{Y:Ke.l.Y,P:Ke.l.P,ma:Ke.l.ma},stream:{}},ab:{node:{Y:Ke.l.Y,P:Ke.l.P},stream:Xn}}),k=ln(m,v,k,O),(k.mode&61440)===16384?(k.l=Ke.O.dir.node,k.m=Ke.O.dir.stream,k.j={}):(k.mode&61440)===32768?(k.l=Ke.O.file.node,k.m=Ke.O.file.stream,k.v=0,k.j=null):(k.mode&61440)===40960?(k.l=Ke.O.link.node,k.m=Ke.O.link.stream):(k.mode&61440)===8192&&(k.l=Ke.O.ab.node,k.m=Ke.O.ab.stream),k.timestamp=Date.now(),m&&(m.j[v]=k,m.timestamp=k.timestamp),k},Kc(m){return m.j?m.j.subarray?m.j.subarray(0,m.v):new Uint8Array(m.j):new Uint8Array(0)},l:{Y(m){var v={};return v.Jc=(m.mode&61440)===8192?m.id:1,v.Mc=m.id,v.mode=m.mode,v.Oc=1,v.uid=0,v.Lc=0,v.za=m.za,(m.mode&61440)===16384?v.size=4096:(m.mode&61440)===32768?v.size=m.v:(m.mode&61440)===40960?v.size=m.link.length:v.size=0,v.Bc=new Date(m.timestamp),v.Nc=new Date(m.timestamp),v.Ic=new Date(m.timestamp),v.Jb=4096,v.Cc=Math.ceil(v.size/v.Jb),v},P(m,v){if(v.mode!==void 0&&(m.mode=v.mode),v.timestamp!==void 0&&(m.timestamp=v.timestamp),v.size!==void 0&&(v=v.size,m.v!=v))if(v==0)m.j=null,m.v=0;else{var k=m.j;m.j=new Uint8Array(v),k&&m.j.set(k.subarray(0,Math.min(v,m.v))),m.v=v}},ka(){throw Ln[44]},va(m,v,k,O){return Ke.createNode(m,v,k,O)},vb(m,v,k){if((m.mode&61440)===16384){try{var O=an(v,k)}catch{}if(O)for(var J in O.j)throw new Le(55)}delete m.parent.j[m.name],m.parent.timestamp=Date.now(),m.name=k,v.j[k]=m,v.timestamp=m.parent.timestamp,m.parent=v},Bb(m,v){delete m.j[v],m.timestamp=Date.now()},wb(m,v){var k=an(m,v),O;for(O in k.j)throw new Le(55);delete m.j[v],m.timestamp=Date.now()},tb(m){var v=[".",".."],k;for(k in m.j)m.j.hasOwnProperty(k)&&v.push(k);return v},Ea(m,v,k){return m=Ke.createNode(m,v,41471,0),m.link=k,m},ma(m){if((m.mode&61440)!==40960)throw new Le(28);return m.link}},m:{read(m,v,k,O,J){var re=m.node.j;if(J>=m.node.v)return 0;if(m=Math.min(m.node.v-J,O),8<m&&re.subarray)v.set(re.subarray(J,J+m),k);else for(O=0;O<m;O++)v[k+O]=re[J+O];return m},write(m,v,k,O,J,re){if(v.buffer===le.buffer&&(re=!1),!O)return 0;if(m=m.node,m.timestamp=Date.now(),v.subarray&&(!m.j||m.j.subarray)){if(re)return m.j=v.subarray(k,k+O),m.v=O;if(m.v===0&&J===0)return m.j=v.slice(k,k+O),m.v=O;if(J+O<=m.v)return m.j.set(v.subarray(k,k+O),J),O}if(In(m,J+O),m.j.subarray&&v.subarray)m.j.set(v.subarray(k,k+O),J);else for(re=0;re<O;re++)m.j[J+re]=v[k+re];return m.v=Math.max(m.v,J+O),O},ba(m,v,k){if(k===1?v+=m.position:k===2&&(m.node.mode&61440)===32768&&(v+=m.node.v),0>v)throw new Le(28);return v},pa(m,v,k){In(m.node,v+k),m.node.v=Math.max(m.node.v,v+k)},mb(m,v,k,O,J){if((m.node.mode&61440)!==32768)throw new Le(43);if(m=m.node.j,J&2||m.buffer!==le.buffer){if((0<k||k+v<m.length)&&(m.subarray?m=m.subarray(k,k+v):m=Array.prototype.slice.call(m,k,k+v)),k=!0,ee(),v=void 0,!v)throw new Le(48);le.set(m,v)}else k=!1,v=m.byteOffset;return{o:v,M:k}},ob(m,v,k,O){return Ke.m.write(m,v,0,O,k,!1),0}}};function mt(m,v){var k=0;return m&&(k|=365),v&&(k|=146),k}var ot=null,at={},Mt=[],qe=1,dt=null,st=!0,Le=null,Ln={},yt=(m,v={})=>{if(m=Ue(m),!m)return{path:"",node:null};if(v=Object.assign({hb:!0,Qa:0},v),8<v.Qa)throw new Le(32);m=m.split("/").filter(ve=>!!ve);for(var k=ot,O="/",J=0;J<m.length;J++){var re=J===m.length-1;if(re&&v.parent)break;if(k=an(k,m[J]),O=ie(O+"/"+m[J]),k.wa&&(!re||re&&v.hb)&&(k=k.wa.root),!re||v.gb){for(re=0;(k.mode&61440)===40960;)if(k=bi(O),O=Ue(he(O),k),k=yt(O,{Qa:v.Qa+1}).node,40<re++)throw new Le(32)}}return{path:O,node:k}},bn=m=>{for(var v;;){if(m===m.parent)return m=m.U.nb,v?m[m.length-1]!=="/"?`${m}/${v}`:m+v:m;v=v?`${m.name}/${v}`:m.name,m=m.parent}},Yn=(m,v)=>{for(var k=0,O=0;O<v.length;O++)k=(k<<5)-k+v.charCodeAt(O)|0;return(m+k>>>0)%dt.length},an=(m,v)=>{var k;if(k=(k=gr(m,"x"))?k:m.l.ka?0:2)throw new Le(k,m);for(k=dt[Yn(m.id,v)];k;k=k.lc){var O=k.name;if(k.parent.id===m.id&&O===v)return k}return m.l.ka(m,v)},ln=(m,v,k,O)=>(m=new H_(m,v,k,O),v=Yn(m.parent.id,m.name),m.lc=dt[v],dt[v]=m),Xt=m=>{var v=["r","w","rw"][m&3];return m&512&&(v+="w"),v},gr=(m,v)=>{if(st)return 0;if(!v.includes("r")||m.mode&292){if(v.includes("w")&&!(m.mode&146)||v.includes("x")&&!(m.mode&73))return 2}else return 2;return 0},hn=(m,v)=>{try{return an(m,v),20}catch{}return gr(m,"wx")},Ir=()=>{for(var m=0;4096>=m;m++)if(!Mt[m])return m;throw new Le(33)},Kn=m=>{if(m=Mt[m],!m)throw new Le(8);return m},Hn=(m,v=-1)=>(zl||(zl=function(){this.h={}},zl.prototype={},Object.defineProperties(zl.prototype,{object:{get(){return this.node},set(k){this.node=k}},flags:{get(){return this.h.flags},set(k){this.h.flags=k}},position:{get(){return this.h.position},set(k){this.h.position=k}}})),m=Object.assign(new zl,m),v==-1&&(v=Ir()),m.X=v,Mt[v]=m),Xn={open:m=>{m.m=at[m.node.za].m,m.m.open&&m.m.open(m)},ba:()=>{throw new Le(70)}},Bn=(m,v)=>{at[m]={m:v}},eo=(m,v)=>{var k=v==="/",O=!v;if(k&&ot)throw new Le(10);if(!k&&!O){var J=yt(v,{hb:!1});if(v=J.path,J=J.node,J.wa)throw new Le(10);if((J.mode&61440)!==16384)throw new Le(54)}v={type:m,Qc:{},nb:v,kc:[]},m=m.U(v),m.U=v,v.root=m,k?ot=m:J&&(J.wa=v,J.U&&J.U.kc.push(v))},_r=(m,v,k)=>{var O=yt(m,{parent:!0}).node;if(m=Ee(m),!m||m==="."||m==="..")throw new Le(28);var J=hn(O,m);if(J)throw new Le(J);if(!O.l.va)throw new Le(63);return O.l.va(O,m,v,k)},Fn=(m,v,k)=>{typeof k>"u"&&(k=v,v=438),_r(m,v|8192,k)},Sn=(m,v)=>{if(!Ue(m))throw new Le(44);var k=yt(v,{parent:!0}).node;if(!k)throw new Le(44);v=Ee(v);var O=hn(k,v);if(O)throw new Le(O);if(!k.l.Ea)throw new Le(63);k.l.Ea(k,v,m)},bi=m=>{if(m=yt(m).node,!m)throw new Le(44);if(!m.l.ma)throw new Le(28);return Ue(bn(m.parent),m.l.ma(m))},ts=(m,v,k)=>{if(m==="")throw new Le(44);if(typeof v=="string"){var O={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[v];if(typeof O>"u")throw Error(`Unknown file open mode: ${v}`);v=O}if(k=v&64?(typeof k>"u"?438:k)&4095|32768:0,typeof m=="object")var J=m;else{m=ie(m);try{J=yt(m,{gb:!(v&131072)}).node}catch{}}if(O=!1,v&64)if(J){if(v&128)throw new Le(20)}else J=_r(m,k,0),O=!0;if(!J)throw new Le(44);if((J.mode&61440)===8192&&(v&=-513),v&65536&&(J.mode&61440)!==16384)throw new Le(54);if(!O&&(k=J?(J.mode&61440)===40960?32:(J.mode&61440)===16384&&(Xt(v)!=="r"||v&512)?31:gr(J,Xt(v)):44))throw new Le(k);if(v&512&&!O){if(k=J,k=typeof k=="string"?yt(k,{gb:!0}).node:k,!k.l.P)throw new Le(63);if((k.mode&61440)===16384)throw new Le(31);if((k.mode&61440)!==32768)throw new Le(28);if(O=gr(k,"w"))throw new Le(O);k.l.P(k,{size:0,timestamp:Date.now()})}return v&=-131713,J=Hn({node:J,path:bn(J),flags:v,seekable:!0,position:0,m:J.m,zc:[],error:!1}),J.m.open&&J.m.open(J),!f.logReadFiles||v&1||(Hc||(Hc={}),m in Hc||(Hc[m]=1)),J},ql=(m,v,k)=>{if(m.X===null)throw new Le(8);if(!m.seekable||!m.m.ba)throw new Le(70);if(k!=0&&k!=1&&k!=2)throw new Le(28);m.position=m.m.ba(m,v,k),m.zc=[]},ns=()=>{Le||(Le=function(m,v){this.name="ErrnoError",this.node=v,this.pc=function(k){this.aa=k},this.pc(m),this.message="FS error"},Le.prototype=Error(),Le.prototype.constructor=Le,[44].forEach(m=>{Ln[m]=new Le(m),Ln[m].stack="<generic error, no stack>"}))},oi,Hi=(m,v,k)=>{m=ie("/dev/"+m);var O=mt(!!v,!!k);rs||(rs=64);var J=rs++<<8|0;Bn(J,{open:re=>{re.seekable=!1},close:()=>{k&&k.buffer&&k.buffer.length&&k(10)},read:(re,ve,Re,xe)=>{for(var Te=0,Ve=0;Ve<xe;Ve++){try{var je=v()}catch{throw new Le(29)}if(je===void 0&&Te===0)throw new Le(6);if(je==null)break;Te++,ve[Re+Ve]=je}return Te&&(re.node.timestamp=Date.now()),Te},write:(re,ve,Re,xe)=>{for(var Te=0;Te<xe;Te++)try{k(ve[Re+Te])}catch{throw new Le(29)}return xe&&(re.node.timestamp=Date.now()),Te}}),Fn(m,O,J)},rs,vr={},zl,Hc,Gl=void 0;function To(){return Gl+=4,Se[Gl-4>>2]}function b_(m){if(m===void 0)return"_unknown";m=m.replace(/[^a-zA-Z0-9_]/g,"$");var v=m.charCodeAt(0);return 48<=v&&57>=v?`_${m}`:m}function Bc(m,v){return m=b_(m),{[m]:function(){return v.apply(this,arguments)}}[m]}function w_(){this.M=[void 0],this.ib=[]}var wi=new w_,Na=void 0;function wt(m){throw new Na(m)}var Bi=m=>(m||wt("Cannot use deleted val. handle = "+m),wi.get(m).value),Vi=m=>{switch(m){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return wi.pa({ub:1,value:m})}};function S_(m){var v=Error,k=Bc(m,function(O){this.name=m,this.message=O,O=Error(O).stack,O!==void 0&&(this.stack=this.toString()+`
`+O.replace(/^Error(:[^\n]*)?\n/,""))});return k.prototype=Object.create(v.prototype),k.prototype.constructor=k,k.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},k}var T_=void 0,k_=void 0;function On(m){for(var v="";q[m];)v+=k_[q[m++]];return v}var Yl=[];function kh(){for(;Yl.length;){var m=Yl.pop();m.g.fa=!1,m.delete()}}var Kl=void 0,ko={};function Eh(m,v){for(v===void 0&&wt("ptr should not be undefined");m.A;)v=m.na(v),m=m.A;return v}var Us={};function E_(m){m=z_(m);var v=On(m);return Ao(m),v}function Xl(m,v){var k=Us[m];return k===void 0&&wt(v+" has unknown type "+E_(m)),k}function Vc(){}var Rh=!1;function R_(m){--m.count.value,m.count.value===0&&(m.G?m.L.W(m.G):m.u.i.W(m.o))}function A_(m,v,k){return v===k?m:k.A===void 0?null:(m=A_(m,v,k.A),m===null?null:k.Pb(m))}var C_={};function lE(m,v){return v=Eh(m,v),ko[v]}var x_=void 0;function Uc(m){throw new x_(m)}function jc(m,v){return v.u&&v.o||Uc("makeClassHandle requires ptr and ptrType"),!!v.L!=!!v.G&&Uc("Both smartPtrType and smartPtr must be specified"),v.count={value:1},Ha(Object.create(m,{g:{value:v}}))}function Ha(m){return typeof FinalizationRegistry>"u"?(Ha=v=>v,m):(Rh=new FinalizationRegistry(v=>{R_(v.g)}),Ha=v=>{var k=v.g;return k.G&&Rh.register(v,{g:k},v),v},Vc=v=>{Rh.unregister(v)},Ha(m))}var Wc={};function Ql(m){for(;m.length;){var v=m.pop();m.pop()(v)}}function Jl(m){return this.fromWireType(Se[m>>2])}var Ba={},qc={};function si(m,v,k){function O(Re){Re=k(Re),Re.length!==m.length&&Uc("Mismatched type converter count");for(var xe=0;xe<m.length;++xe)to(m[xe],Re[xe])}m.forEach(function(Re){qc[Re]=v});var J=Array(v.length),re=[],ve=0;v.forEach((Re,xe)=>{Us.hasOwnProperty(Re)?J[xe]=Us[Re]:(re.push(Re),Ba.hasOwnProperty(Re)||(Ba[Re]=[]),Ba[Re].push(()=>{J[xe]=Us[Re],++ve,ve===re.length&&O(J)}))}),re.length===0&&O(J)}function zc(m){switch(m){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError(`Unknown type size: ${m}`)}}function uE(m,v,k={}){var O=v.name;if(m||wt(`type "${O}" must have a positive integer typeid pointer`),Us.hasOwnProperty(m)){if(k.$b)return;wt(`Cannot register type '${O}' twice`)}Us[m]=v,delete qc[m],Ba.hasOwnProperty(m)&&(v=Ba[m],delete Ba[m],v.forEach(J=>J()))}function to(m,v,k={}){if(!("argPackAdvance"in v))throw new TypeError("registerType registeredInstance requires argPackAdvance");uE(m,v,k)}function Ah(m){wt(m.g.u.i.name+" instance already deleted")}function is(){}function Ch(m,v,k){if(m[v].B===void 0){var O=m[v];m[v]=function(){return m[v].B.hasOwnProperty(arguments.length)||wt(`Function '${k}' called with an invalid number of arguments (${arguments.length}) - expects one of (${m[v].B})!`),m[v].B[arguments.length].apply(this,arguments)},m[v].B=[],m[v].B[O.ea]=O}}function xh(m,v,k){f.hasOwnProperty(m)?((k===void 0||f[m].B!==void 0&&f[m].B[k]!==void 0)&&wt(`Cannot register public name '${m}' twice`),Ch(f,m,m),f.hasOwnProperty(k)&&wt(`Cannot register multiple overloads of a function with the same number of arguments (${k})!`),f[m].B[k]=v):(f[m]=v,k!==void 0&&(f[m].Pc=k))}function cE(m,v,k,O,J,re,ve,Re){this.name=m,this.constructor=v,this.N=k,this.W=O,this.A=J,this.Ub=re,this.na=ve,this.Pb=Re,this.rb=[]}function Gc(m,v,k){for(;v!==k;)v.na||wt(`Expected null or instance of ${k.name}, got an instance of ${v.name}`),m=v.na(m),v=v.A;return m}function fE(m,v){return v===null?(this.Na&&wt(`null is not a valid ${this.name}`),0):(v.g||wt(`Cannot pass "${Ih(v)}" as a ${this.name}`),v.g.o||wt(`Cannot pass deleted object as a pointer of type ${this.name}`),Gc(v.g.o,v.g.u.i,this.i))}function dE(m,v){if(v===null){if(this.Na&&wt(`null is not a valid ${this.name}`),this.ua){var k=this.Pa();return m!==null&&m.push(this.W,k),k}return 0}if(v.g||wt(`Cannot pass "${Ih(v)}" as a ${this.name}`),v.g.o||wt(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.ta&&v.g.u.ta&&wt(`Cannot convert argument of type ${v.g.L?v.g.L.name:v.g.u.name} to parameter type ${this.name}`),k=Gc(v.g.o,v.g.u.i,this.i),this.ua)switch(v.g.G===void 0&&wt("Passing raw pointer to smart pointer is illegal"),this.tc){case 0:v.g.L===this?k=v.g.G:wt(`Cannot convert argument of type ${v.g.L?v.g.L.name:v.g.u.name} to parameter type ${this.name}`);break;case 1:k=v.g.G;break;case 2:if(v.g.L===this)k=v.g.G;else{var O=v.clone();k=this.oc(k,Vi(function(){O.delete()})),m!==null&&m.push(this.W,k)}break;default:wt("Unsupporting sharing policy")}return k}function hE(m,v){return v===null?(this.Na&&wt(`null is not a valid ${this.name}`),0):(v.g||wt(`Cannot pass "${Ih(v)}" as a ${this.name}`),v.g.o||wt(`Cannot pass deleted object as a pointer of type ${this.name}`),v.g.u.ta&&wt(`Cannot convert argument of type ${v.g.u.name} to parameter type ${this.name}`),Gc(v.g.o,v.g.u.i,this.i))}function Eo(m,v,k,O){this.name=m,this.i=v,this.Na=k,this.ta=O,this.ua=!1,this.W=this.oc=this.Pa=this.sb=this.tc=this.nc=void 0,v.A!==void 0?this.toWireType=dE:(this.toWireType=O?fE:hE,this.K=null)}function P_(m,v,k){f.hasOwnProperty(m)||Uc("Replacing nonexistant public symbol"),f[m].B!==void 0&&k!==void 0?f[m].B[k]=v:(f[m]=v,f[m].ea=k)}var Yc=[],I_=m=>{var v=Yc[m];return v||(m>=Yc.length&&(Yc.length=m+1),Yc[m]=v=ue.get(m)),v},pE=(m,v)=>{var k=[];return function(){if(k.length=0,Object.assign(k,arguments),m.includes("j")){var O=f["dynCall_"+m];O=k&&k.length?O.apply(null,[v].concat(k)):O.call(null,v)}else O=I_(v).apply(null,k);return O}};function yr(m,v){m=On(m);var k=m.includes("j")?pE(m,v):I_(v);return typeof k!="function"&&wt(`unknown function pointer with signature ${m}: ${v}`),k}var L_=void 0;function Ro(m,v){function k(re){J[re]||Us[re]||(qc[re]?qc[re].forEach(k):(O.push(re),J[re]=!0))}var O=[],J={};throw v.forEach(k),new L_(`${m}: `+O.map(E_).join([", "]))}function Kc(m,v,k,O,J){var re=v.length;2>re&&wt("argTypes array size mismatch! Must at least get return value and 'this' types!");var ve=v[1]!==null&&k!==null,Re=!1;for(k=1;k<v.length;++k)if(v[k]!==null&&v[k].K===void 0){Re=!0;break}var xe=v[0].name!=="void",Te=re-2,Ve=Array(Te),je=[],Xe=[];return function(){if(arguments.length!==Te&&wt(`function ${m} called with ${arguments.length} arguments, expected ${Te} args!`),Xe.length=0,je.length=ve?2:1,je[0]=J,ve){var ye=v[1].toWireType(Xe,this);je[1]=ye}for(var Be=0;Be<Te;++Be)Ve[Be]=v[Be+2].toWireType(Xe,arguments[Be]),je.push(Ve[Be]);if(Be=O.apply(null,je),Re)Ql(Xe);else for(var $e=ve?1:2;$e<v.length;$e++){var St=$e===1?ye:Ve[$e-2];v[$e].K!==null&&v[$e].K(St)}return ye=xe?v[0].fromWireType(Be):void 0,ye}}function Xc(m,v){for(var k=[],O=0;O<m;O++)k.push(ae[v+4*O>>2]);return k}function O_(m,v,k){return m instanceof Object||wt(`${k} with invalid "this": ${m}`),m instanceof v.i.constructor||wt(`${k} incompatible with "this" of type ${m.constructor.name}`),m.g.o||wt(`cannot call emscripten binding method ${k} on deleted object`),Gc(m.g.o,m.g.u.i,v.i)}function Ph(m){m>=wi.h&&--wi.get(m).ub===0&&wi.Zb(m)}function mE(m,v,k){switch(v){case 0:return function(O){return this.fromWireType((k?le:q)[O])};case 1:return function(O){return this.fromWireType((k?be:ke)[O>>1])};case 2:return function(O){return this.fromWireType((k?Se:ae)[O>>2])};default:throw new TypeError("Unknown integer type: "+m)}}function Ih(m){if(m===null)return"null";var v=typeof m;return v==="object"||v==="array"||v==="function"?m.toString():""+m}function gE(m,v){switch(v){case 2:return function(k){return this.fromWireType(fe[k>>2])};case 3:return function(k){return this.fromWireType(_e[k>>3])};default:throw new TypeError("Unknown float type: "+m)}}function _E(m,v,k){switch(v){case 0:return k?function(O){return le[O]}:function(O){return q[O]};case 1:return k?function(O){return be[O>>1]}:function(O){return ke[O>>1]};case 2:return k?function(O){return Se[O>>2]}:function(O){return ae[O>>2]};default:throw new TypeError("Unknown integer type: "+m)}}var M_=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,vE=(m,v)=>{for(var k=m>>1,O=k+v/2;!(k>=O)&&ke[k];)++k;if(k<<=1,32<k-m&&M_)return M_.decode(q.subarray(m,k));for(k="",O=0;!(O>=v/2);++O){var J=be[m+2*O>>1];if(J==0)break;k+=String.fromCharCode(J)}return k},yE=(m,v,k)=>{if(k===void 0&&(k=2147483647),2>k)return 0;k-=2;var O=v;k=k<2*m.length?k/2:m.length;for(var J=0;J<k;++J)be[v>>1]=m.charCodeAt(J),v+=2;return be[v>>1]=0,v-O},bE=m=>2*m.length,wE=(m,v)=>{for(var k=0,O="";!(k>=v/4);){var J=Se[m+4*k>>2];if(J==0)break;++k,65536<=J?(J-=65536,O+=String.fromCharCode(55296|J>>10,56320|J&1023)):O+=String.fromCharCode(J)}return O},SE=(m,v,k)=>{if(k===void 0&&(k=2147483647),4>k)return 0;var O=v;k=O+k-4;for(var J=0;J<m.length;++J){var re=m.charCodeAt(J);if(55296<=re&&57343>=re){var ve=m.charCodeAt(++J);re=65536+((re&1023)<<10)|ve&1023}if(Se[v>>2]=re,v+=4,v+4>k)break}return Se[v>>2]=0,v-O},TE=m=>{for(var v=0,k=0;k<m.length;++k){var O=m.charCodeAt(k);55296<=O&&57343>=O&&++k,v+=4}return v},kE={};function Qc(m){var v=kE[m];return v===void 0?On(m):v}var Jc=[];function EE(m){var v=Jc.length;return Jc.push(m),v}function RE(m,v){for(var k=Array(m),O=0;O<m;++O)k[O]=Xl(ae[v+4*O>>2],"parameter "+O);return k}var $_=[],Lh=[],Oh={},F_=()=>{if(!Mh){var m={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:I||"./this.program"},v;for(v in Oh)Oh[v]===void 0?delete m[v]:m[v]=Oh[v];var k=[];for(v in m)k.push(`${v}=${m[v]}`);Mh=k}return Mh},Mh,Zc=m=>m%4===0&&(m%100!==0||m%400===0),D_=[31,29,31,30,31,30,31,31,30,31,30,31],N_=[31,28,31,30,31,30,31,31,30,31,30,31],AE=(m,v,k,O)=>{function J(ye,Be,$e){for(ye=typeof ye=="number"?ye.toString():ye||"";ye.length<Be;)ye=$e[0]+ye;return ye}function re(ye,Be){return J(ye,Be,"0")}function ve(ye,Be){function $e(Ct){return 0>Ct?-1:0<Ct?1:0}var St;return(St=$e(ye.getFullYear()-Be.getFullYear()))===0&&(St=$e(ye.getMonth()-Be.getMonth()))===0&&(St=$e(ye.getDate()-Be.getDate())),St}function Re(ye){switch(ye.getDay()){case 0:return new Date(ye.getFullYear()-1,11,29);case 1:return ye;case 2:return new Date(ye.getFullYear(),0,3);case 3:return new Date(ye.getFullYear(),0,2);case 4:return new Date(ye.getFullYear(),0,1);case 5:return new Date(ye.getFullYear()-1,11,31);case 6:return new Date(ye.getFullYear()-1,11,30)}}function xe(ye){var Be=ye.ca;for(ye=new Date(new Date(ye.da+1900,0,1).getTime());0<Be;){var $e=ye.getMonth(),St=(Zc(ye.getFullYear())?D_:N_)[$e];if(Be>St-ye.getDate())Be-=St-ye.getDate()+1,ye.setDate(1),11>$e?ye.setMonth($e+1):(ye.setMonth(0),ye.setFullYear(ye.getFullYear()+1));else{ye.setDate(ye.getDate()+Be);break}}return $e=new Date(ye.getFullYear()+1,0,4),Be=Re(new Date(ye.getFullYear(),0,4)),$e=Re($e),0>=ve(Be,ye)?0>=ve($e,ye)?ye.getFullYear()+1:ye.getFullYear():ye.getFullYear()-1}var Te=Se[O+40>>2];O={wc:Se[O>>2],vc:Se[O+4>>2],Fa:Se[O+8>>2],Sa:Se[O+12>>2],Ga:Se[O+16>>2],da:Se[O+20>>2],R:Se[O+24>>2],ca:Se[O+28>>2],Rc:Se[O+32>>2],uc:Se[O+36>>2],xc:Te&&Te?tt(q,Te):""},k=k?tt(q,k):"",Te={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var Ve in Te)k=k.replace(new RegExp(Ve,"g"),Te[Ve]);var je="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),Xe="January February March April May June July August September October November December".split(" ");Te={"%a":ye=>je[ye.R].substring(0,3),"%A":ye=>je[ye.R],"%b":ye=>Xe[ye.Ga].substring(0,3),"%B":ye=>Xe[ye.Ga],"%C":ye=>re((ye.da+1900)/100|0,2),"%d":ye=>re(ye.Sa,2),"%e":ye=>J(ye.Sa,2," "),"%g":ye=>xe(ye).toString().substring(2),"%G":ye=>xe(ye),"%H":ye=>re(ye.Fa,2),"%I":ye=>(ye=ye.Fa,ye==0?ye=12:12<ye&&(ye-=12),re(ye,2)),"%j":ye=>{for(var Be=0,$e=0;$e<=ye.Ga-1;Be+=(Zc(ye.da+1900)?D_:N_)[$e++]);return re(ye.Sa+Be,3)},"%m":ye=>re(ye.Ga+1,2),"%M":ye=>re(ye.vc,2),"%n":()=>`
`,"%p":ye=>0<=ye.Fa&&12>ye.Fa?"AM":"PM","%S":ye=>re(ye.wc,2),"%t":()=>"	","%u":ye=>ye.R||7,"%U":ye=>re(Math.floor((ye.ca+7-ye.R)/7),2),"%V":ye=>{var Be=Math.floor((ye.ca+7-(ye.R+6)%7)/7);if(2>=(ye.R+371-ye.ca-2)%7&&Be++,Be)Be==53&&($e=(ye.R+371-ye.ca)%7,$e==4||$e==3&&Zc(ye.da)||(Be=1));else{Be=52;var $e=(ye.R+7-ye.ca-1)%7;($e==4||$e==5&&Zc(ye.da%400-1))&&Be++}return re(Be,2)},"%w":ye=>ye.R,"%W":ye=>re(Math.floor((ye.ca+7-(ye.R+6)%7)/7),2),"%y":ye=>(ye.da+1900).toString().substring(2),"%Y":ye=>ye.da+1900,"%z":ye=>{ye=ye.uc;var Be=0<=ye;return ye=Math.abs(ye)/60,(Be?"+":"-")+("0000"+(ye/60*100+ye%60)).slice(-4)},"%Z":ye=>ye.xc,"%%":()=>"%"},k=k.replace(/%%/g,"\0\0");for(Ve in Te)k.includes(Ve)&&(k=k.replace(new RegExp(Ve,"g"),Te[Ve](O)));return k=k.replace(/\0\0/g,"%"),Ve=nt(k,!1),Ve.length>v?0:(le.set(Ve,m),Ve.length-1)};function H_(m,v,k,O){m||(m=this),this.parent=m,this.U=m.U,this.wa=null,this.id=qe++,this.name=v,this.mode=k,this.l={},this.m={},this.za=O}Object.defineProperties(H_.prototype,{read:{get:function(){return(this.mode&365)===365},set:function(m){m?this.mode|=365:this.mode&=-366}},write:{get:function(){return(this.mode&146)===146},set:function(m){m?this.mode|=146:this.mode&=-147}}}),ns(),dt=Array(4096),eo(Ke,"/"),_r("/tmp",16895,0),_r("/home",16895,0),_r("/home/web_user",16895,0),(()=>{_r("/dev",16895,0),Bn(259,{read:()=>0,write:(O,J,re,ve)=>ve}),Fn("/dev/null",259),Rt(1280,Wt),Rt(1536,Pn),Fn("/dev/tty",1280),Fn("/dev/tty1",1536);var m=new Uint8Array(1024),v=0,k=()=>(v===0&&(v=Pe(m).byteLength),m[--v]);Hi("random",k),Hi("urandom",k),_r("/dev/shm",16895,0),_r("/dev/shm/tmp",16895,0)})(),(()=>{_r("/proc",16895,0);var m=_r("/proc/self",16895,0);_r("/proc/self/fd",16895,0),eo({U:()=>{var v=ln(m,"fd",16895,73);return v.l={ka:(k,O)=>{var J=Kn(+O);return k={parent:null,U:{nb:"fake"},l:{ma:()=>J.path}},k.parent=k}},v}},"/proc/self/fd")})(),Object.assign(w_.prototype,{get(m){return this.M[m]},has(m){return this.M[m]!==void 0},pa(m){var v=this.ib.pop()||this.M.length;return this.M[v]=m,v},Zb(m){this.M[m]=void 0,this.ib.push(m)}}),Na=f.BindingError=class extends Error{constructor(m){super(m),this.name="BindingError"}},wi.M.push({value:void 0},{value:null},{value:!0},{value:!1}),wi.h=wi.M.length,f.count_emval_handles=function(){for(var m=0,v=wi.h;v<wi.M.length;++v)wi.M[v]!==void 0&&++m;return m},T_=f.PureVirtualError=S_("PureVirtualError");for(var B_=Array(256),ef=0;256>ef;++ef)B_[ef]=String.fromCharCode(ef);k_=B_,f.getInheritedInstanceCount=function(){return Object.keys(ko).length},f.getLiveInheritedInstances=function(){var m=[],v;for(v in ko)ko.hasOwnProperty(v)&&m.push(ko[v]);return m},f.flushPendingDeletes=kh,f.setDelayFunction=function(m){Kl=m,Yl.length&&Kl&&Kl(kh)},x_=f.InternalError=class extends Error{constructor(m){super(m),this.name="InternalError"}},is.prototype.isAliasOf=function(m){if(!(this instanceof is&&m instanceof is))return!1;var v=this.g.u.i,k=this.g.o,O=m.g.u.i;for(m=m.g.o;v.A;)k=v.na(k),v=v.A;for(;O.A;)m=O.na(m),O=O.A;return v===O&&k===m},is.prototype.clone=function(){if(this.g.o||Ah(this),this.g.ia)return this.g.count.value+=1,this;var m=Ha,v=Object,k=v.create,O=Object.getPrototypeOf(this),J=this.g;return m=m(k.call(v,O,{g:{value:{count:J.count,fa:J.fa,ia:J.ia,o:J.o,u:J.u,G:J.G,L:J.L}}})),m.g.count.value+=1,m.g.fa=!1,m},is.prototype.delete=function(){this.g.o||Ah(this),this.g.fa&&!this.g.ia&&wt("Object already scheduled for deletion"),Vc(this),R_(this.g),this.g.ia||(this.g.G=void 0,this.g.o=void 0)},is.prototype.isDeleted=function(){return!this.g.o},is.prototype.deleteLater=function(){return this.g.o||Ah(this),this.g.fa&&!this.g.ia&&wt("Object already scheduled for deletion"),Yl.push(this),Yl.length===1&&Kl&&Kl(kh),this.g.fa=!0,this},Eo.prototype.Vb=function(m){return this.sb&&(m=this.sb(m)),m},Eo.prototype.bb=function(m){this.W&&this.W(m)},Eo.prototype.argPackAdvance=8,Eo.prototype.readValueFromPointer=Jl,Eo.prototype.deleteObject=function(m){m!==null&&m.delete()},Eo.prototype.fromWireType=function(m){function v(){return this.ua?jc(this.i.N,{u:this.nc,o:k,L:this,G:m}):jc(this.i.N,{u:this,o:m})}var k=this.Vb(m);if(!k)return this.bb(m),null;var O=lE(this.i,k);if(O!==void 0)return O.g.count.value===0?(O.g.o=k,O.g.G=m,O.clone()):(O=O.clone(),this.bb(m),O);if(O=this.i.Ub(k),O=C_[O],!O)return v.call(this);O=this.ta?O.Kb:O.pointerType;var J=A_(k,this.i,O.i);return J===null?v.call(this):this.ua?jc(O.i.N,{u:O,o:J,L:this,G:m}):jc(O.i.N,{u:O,o:J})},L_=f.UnboundTypeError=S_("UnboundTypeError");var V_={__syscall_fcntl64:function(m,v,k){Gl=k;try{var O=Kn(m);switch(v){case 0:var J=To();return 0>J?-28:Hn(O,J).X;case 1:case 2:return 0;case 3:return O.flags;case 4:return J=To(),O.flags|=J,0;case 5:return J=To(),be[J+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return Se[U_()>>2]=28,-1;default:return-28}}catch(re){if(typeof vr>"u"||re.name!=="ErrnoError")throw re;return-re.aa}},__syscall_ioctl:function(m,v,k){Gl=k;try{var O=Kn(m);switch(v){case 21509:return O.s?0:-59;case 21505:if(!O.s)return-59;if(O.s.V.bc){v=[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];var J=To();Se[J>>2]=25856,Se[J+4>>2]=5,Se[J+8>>2]=191,Se[J+12>>2]=35387;for(var re=0;32>re;re++)le[J+re+17>>0]=v[re]||0}return 0;case 21510:case 21511:case 21512:return O.s?0:-59;case 21506:case 21507:case 21508:if(!O.s)return-59;if(O.s.V.cc)for(J=To(),v=[],re=0;32>re;re++)v.push(le[J+re+17>>0]);return 0;case 21519:return O.s?(J=To(),Se[J>>2]=0):-59;case 21520:return O.s?-28:-59;case 21531:if(J=To(),!O.m.ac)throw new Le(59);return O.m.ac(O,v,J);case 21523:return O.s?(O.s.V.dc&&(re=[24,80],J=To(),be[J>>1]=re[0],be[J+2>>1]=re[1]),0):-59;case 21524:return O.s?0:-59;case 21515:return O.s?0:-59;default:return-28}}catch(ve){if(typeof vr>"u"||ve.name!=="ErrnoError")throw ve;return-ve.aa}},__syscall_openat:function(m,v,k,O){Gl=O;try{v=v?tt(q,v):"";var J=v;if(J.charAt(0)==="/")v=J;else{var re=m===-100?"/":Kn(m).path;if(J.length==0)throw new Le(44);v=ie(re+"/"+J)}var ve=O?To():0;return ts(v,k,ve).X}catch(Re){if(typeof vr>"u"||Re.name!=="ErrnoError")throw Re;return-Re.aa}},_embind_create_inheriting_constructor:function(m,v,k){m=On(m),v=Xl(v,"wrapper"),k=Bi(k);var O=[].slice,J=v.i,re=J.N,ve=J.A.N,Re=J.A.constructor;m=Bc(m,function(){J.A.rb.forEach((function(Te){if(this[Te]===ve[Te])throw new T_(`Pure virtual function ${Te} must be implemented in JavaScript`)}).bind(this)),Object.defineProperty(this,"__parent",{value:re}),this.__construct.apply(this,O.call(arguments))}),re.__construct=function(){this===re&&wt("Pass correct 'this' to __construct");var Te=Re.implement.apply(void 0,[this].concat(O.call(arguments)));Vc(Te);var Ve=Te.g;Te.notifyOnDestruction(),Ve.ia=!0,Object.defineProperties(this,{g:{value:Ve}}),Ha(this),Te=Ve.o,Te=Eh(J,Te),ko.hasOwnProperty(Te)?wt(`Tried to register registered instance: ${Te}`):ko[Te]=this},re.__destruct=function(){this===re&&wt("Pass correct 'this' to __destruct"),Vc(this);var Te=this.g.o;Te=Eh(J,Te),ko.hasOwnProperty(Te)?delete ko[Te]:wt(`Tried to unregister unregistered instance: ${Te}`)},m.prototype=Object.create(re);for(var xe in k)m.prototype[xe]=k[xe];return Vi(m)},_embind_finalize_value_object:function(m){var v=Wc[m];delete Wc[m];var k=v.Pa,O=v.W,J=v.fb,re=J.map(ve=>ve.Yb).concat(J.map(ve=>ve.rc));si([m],re,ve=>{var Re={};return J.forEach((xe,Te)=>{var Ve=ve[Te],je=xe.Wb,Xe=xe.Xb,ye=ve[Te+J.length],Be=xe.qc,$e=xe.sc;Re[xe.Sb]={read:St=>Ve.fromWireType(je(Xe,St)),write:(St,Ct)=>{var ze=[];Be($e,St,ye.toWireType(ze,Ct)),Ql(ze)}}}),[{name:v.name,fromWireType:function(xe){var Te={},Ve;for(Ve in Re)Te[Ve]=Re[Ve].read(xe);return O(xe),Te},toWireType:function(xe,Te){for(var Ve in Re)if(!(Ve in Te))throw new TypeError(`Missing field: "${Ve}"`);var je=k();for(Ve in Re)Re[Ve].write(je,Te[Ve]);return xe!==null&&xe.push(O,je),je},argPackAdvance:8,readValueFromPointer:Jl,K:O}]})},_embind_register_bigint:function(){},_embind_register_bool:function(m,v,k,O,J){var re=zc(k);v=On(v),to(m,{name:v,fromWireType:function(ve){return!!ve},toWireType:function(ve,Re){return Re?O:J},argPackAdvance:8,readValueFromPointer:function(ve){if(k===1)var Re=le;else if(k===2)Re=be;else if(k===4)Re=Se;else throw new TypeError("Unknown boolean type size: "+v);return this.fromWireType(Re[ve>>re])},K:null})},_embind_register_class:function(m,v,k,O,J,re,ve,Re,xe,Te,Ve,je,Xe){Ve=On(Ve),re=yr(J,re),Re&&(Re=yr(ve,Re)),Te&&(Te=yr(xe,Te)),Xe=yr(je,Xe);var ye=b_(Ve);xh(ye,function(){Ro(`Cannot construct ${Ve} due to unbound types`,[O])}),si([m,v,k],O?[O]:[],function(Be){if(Be=Be[0],O)var $e=Be.i,St=$e.N;else St=is.prototype;Be=Bc(ye,function(){if(Object.getPrototypeOf(this)!==Ct)throw new Na("Use 'new' to construct "+Ve);if(ze.$===void 0)throw new Na(Ve+" has no accessible constructor");var cr=ze.$[arguments.length];if(cr===void 0)throw new Na(`Tried to invoke ctor of ${Ve} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(ze.$).toString()}) parameters instead!`);return cr.apply(this,arguments)});var Ct=Object.create(St,{constructor:{value:Be}});Be.prototype=Ct;var ze=new cE(Ve,Be,Ct,Xe,$e,re,Re,Te);ze.A&&(ze.A.oa===void 0&&(ze.A.oa=[]),ze.A.oa.push(ze)),$e=new Eo(Ve,ze,!0,!1),St=new Eo(Ve+"*",ze,!1,!1);var _n=new Eo(Ve+" const*",ze,!1,!0);return C_[m]={pointerType:St,Kb:_n},P_(ye,Be),[$e,St,_n]})},_embind_register_class_class_function:function(m,v,k,O,J,re,ve){var Re=Xc(k,O);v=On(v),re=yr(J,re),si([],[m],function(xe){function Te(){Ro(`Cannot call ${Ve} due to unbound types`,Re)}xe=xe[0];var Ve=`${xe.name}.${v}`;v.startsWith("@@")&&(v=Symbol[v.substring(2)]);var je=xe.i.constructor;return je[v]===void 0?(Te.ea=k-1,je[v]=Te):(Ch(je,v,Ve),je[v].B[k-1]=Te),si([],Re,function(Xe){if(Xe=Kc(Ve,[Xe[0],null].concat(Xe.slice(1)),null,re,ve),je[v].B===void 0?(Xe.ea=k-1,je[v]=Xe):je[v].B[k-1]=Xe,xe.i.oa)for(const ye of xe.i.oa)ye.constructor.hasOwnProperty(v)||(ye.constructor[v]=Xe);return[]}),[]})},_embind_register_class_class_property:function(m,v,k,O,J,re,ve,Re){v=On(v),re=yr(J,re),si([],[m],function(xe){xe=xe[0];var Te=`${xe.name}.${v}`,Ve={get(){Ro(`Cannot access ${Te} due to unbound types`,[k])},enumerable:!0,configurable:!0};return Ve.set=Re?()=>{Ro(`Cannot access ${Te} due to unbound types`,[k])}:()=>{wt(`${Te} is a read-only property`)},Object.defineProperty(xe.i.constructor,v,Ve),si([],[k],function(je){je=je[0];var Xe={get(){return je.fromWireType(re(O))},enumerable:!0};return Re&&(Re=yr(ve,Re),Xe.set=ye=>{var Be=[];Re(O,je.toWireType(Be,ye)),Ql(Be)}),Object.defineProperty(xe.i.constructor,v,Xe),[]}),[]})},_embind_register_class_constructor:function(m,v,k,O,J,re){var ve=Xc(v,k);J=yr(O,J),si([],[m],function(Re){Re=Re[0];var xe=`constructor ${Re.name}`;if(Re.i.$===void 0&&(Re.i.$=[]),Re.i.$[v-1]!==void 0)throw new Na(`Cannot register multiple constructors with identical number of parameters (${v-1}) for class '${Re.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return Re.i.$[v-1]=()=>{Ro(`Cannot construct ${Re.name} due to unbound types`,ve)},si([],ve,function(Te){return Te.splice(1,0,null),Re.i.$[v-1]=Kc(xe,Te,null,J,re),[]}),[]})},_embind_register_class_function:function(m,v,k,O,J,re,ve,Re){var xe=Xc(k,O);v=On(v),re=yr(J,re),si([],[m],function(Te){function Ve(){Ro(`Cannot call ${je} due to unbound types`,xe)}Te=Te[0];var je=`${Te.name}.${v}`;v.startsWith("@@")&&(v=Symbol[v.substring(2)]),Re&&Te.i.rb.push(v);var Xe=Te.i.N,ye=Xe[v];return ye===void 0||ye.B===void 0&&ye.className!==Te.name&&ye.ea===k-2?(Ve.ea=k-2,Ve.className=Te.name,Xe[v]=Ve):(Ch(Xe,v,je),Xe[v].B[k-2]=Ve),si([],xe,function(Be){return Be=Kc(je,Be,Te,re,ve),Xe[v].B===void 0?(Be.ea=k-2,Xe[v]=Be):Xe[v].B[k-2]=Be,[]}),[]})},_embind_register_class_property:function(m,v,k,O,J,re,ve,Re,xe,Te){v=On(v),J=yr(O,J),si([],[m],function(Ve){Ve=Ve[0];var je=`${Ve.name}.${v}`,Xe={get(){Ro(`Cannot access ${je} due to unbound types`,[k,ve])},enumerable:!0,configurable:!0};return Xe.set=xe?()=>{Ro(`Cannot access ${je} due to unbound types`,[k,ve])}:()=>{wt(je+" is a read-only property")},Object.defineProperty(Ve.i.N,v,Xe),si([],xe?[k,ve]:[k],function(ye){var Be=ye[0],$e={get(){var Ct=O_(this,Ve,je+" getter");return Be.fromWireType(J(re,Ct))},enumerable:!0};if(xe){xe=yr(Re,xe);var St=ye[1];$e.set=function(Ct){var ze=O_(this,Ve,je+" setter"),_n=[];xe(Te,ze,St.toWireType(_n,Ct)),Ql(_n)}}return Object.defineProperty(Ve.i.N,v,$e),[]}),[]})},_embind_register_emval:function(m,v){v=On(v),to(m,{name:v,fromWireType:function(k){var O=Bi(k);return Ph(k),O},toWireType:function(k,O){return Vi(O)},argPackAdvance:8,readValueFromPointer:Jl,K:null})},_embind_register_enum:function(m,v,k,O){function J(){}k=zc(k),v=On(v),J.values={},to(m,{name:v,constructor:J,fromWireType:function(re){return this.constructor.values[re]},toWireType:function(re,ve){return ve.value},argPackAdvance:8,readValueFromPointer:mE(v,k,O),K:null}),xh(v,J)},_embind_register_enum_value:function(m,v,k){var O=Xl(m,"enum");v=On(v),m=O.constructor,O=Object.create(O.constructor.prototype,{value:{value:k},constructor:{value:Bc(`${O.name}_${v}`,function(){})}}),m.values[k]=O,m[v]=O},_embind_register_float:function(m,v,k){k=zc(k),v=On(v),to(m,{name:v,fromWireType:function(O){return O},toWireType:function(O,J){return J},argPackAdvance:8,readValueFromPointer:gE(v,k),K:null})},_embind_register_function:function(m,v,k,O,J,re){var ve=Xc(v,k);m=On(m),J=yr(O,J),xh(m,function(){Ro(`Cannot call ${m} due to unbound types`,ve)},v-1),si([],ve,function(Re){return P_(m,Kc(m,[Re[0],null].concat(Re.slice(1)),null,J,re),v-1),[]})},_embind_register_integer:function(m,v,k,O,J){v=On(v),J===-1&&(J=4294967295),J=zc(k);var re=Re=>Re;if(O===0){var ve=32-8*k;re=Re=>Re<<ve>>>ve}k=v.includes("unsigned")?function(Re,xe){return xe>>>0}:function(Re,xe){return xe},to(m,{name:v,fromWireType:re,toWireType:k,argPackAdvance:8,readValueFromPointer:_E(v,J,O!==0),K:null})},_embind_register_memory_view:function(m,v,k){function O(re){re>>=2;var ve=ae;return new J(ve.buffer,ve[re+1],ve[re])}var J=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][v];k=On(k),to(m,{name:k,fromWireType:O,argPackAdvance:8,readValueFromPointer:O},{$b:!0})},_embind_register_std_string:function(m,v){v=On(v);var k=v==="std::string";to(m,{name:v,fromWireType:function(O){var J=ae[O>>2],re=O+4;if(k)for(var ve=re,Re=0;Re<=J;++Re){var xe=re+Re;if(Re==J||q[xe]==0){if(ve=ve?tt(q,ve,xe-ve):"",Te===void 0)var Te=ve;else Te+="\0",Te+=ve;ve=xe+1}}else{for(Te=Array(J),Re=0;Re<J;++Re)Te[Re]=String.fromCharCode(q[re+Re]);Te=Te.join("")}return Ao(O),Te},toWireType:function(O,J){J instanceof ArrayBuffer&&(J=new Uint8Array(J));var re=typeof J=="string";re||J instanceof Uint8Array||J instanceof Uint8ClampedArray||J instanceof Int8Array||wt("Cannot pass non-string to std::string");var ve=k&&re?_t(J):J.length,Re=$h(4+ve+1),xe=Re+4;if(ae[Re>>2]=ve,k&&re)rn(J,q,xe,ve+1);else if(re)for(re=0;re<ve;++re){var Te=J.charCodeAt(re);255<Te&&(Ao(xe),wt("String has UTF-16 code units that do not fit in 8 bits")),q[xe+re]=Te}else for(re=0;re<ve;++re)q[xe+re]=J[re];return O!==null&&O.push(Ao,Re),Re},argPackAdvance:8,readValueFromPointer:Jl,K:function(O){Ao(O)}})},_embind_register_std_wstring:function(m,v,k){if(k=On(k),v===2)var O=vE,J=yE,re=bE,ve=()=>ke,Re=1;else v===4&&(O=wE,J=SE,re=TE,ve=()=>ae,Re=2);to(m,{name:k,fromWireType:function(xe){for(var Te=ae[xe>>2],Ve=ve(),je,Xe=xe+4,ye=0;ye<=Te;++ye){var Be=xe+4+ye*v;(ye==Te||Ve[Be>>Re]==0)&&(Xe=O(Xe,Be-Xe),je===void 0?je=Xe:(je+="\0",je+=Xe),Xe=Be+v)}return Ao(xe),je},toWireType:function(xe,Te){typeof Te!="string"&&wt(`Cannot pass non-string to C++ string type ${k}`);var Ve=re(Te),je=$h(4+Ve+v);return ae[je>>2]=Ve>>Re,J(Te,je+4,Ve+v),xe!==null&&xe.push(Ao,je),je},argPackAdvance:8,readValueFromPointer:Jl,K:function(xe){Ao(xe)}})},_embind_register_value_object:function(m,v,k,O,J,re){Wc[m]={name:On(v),Pa:yr(k,O),W:yr(J,re),fb:[]}},_embind_register_value_object_field:function(m,v,k,O,J,re,ve,Re,xe,Te){Wc[m].fb.push({Sb:On(v),Yb:k,Wb:yr(O,J),Xb:re,rc:ve,qc:yr(Re,xe),sc:Te})},_embind_register_void:function(m,v){v=On(v),to(m,{fc:!0,name:v,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},_emscripten_get_now_is_monotonic:()=>!0,_emval_as:function(m,v,k){m=Bi(m),v=Xl(v,"emval::as");var O=[],J=Vi(O);return ae[k>>2]=J,v.toWireType(O,m)},_emval_call_method:function(m,v,k,O,J){m=Jc[m],v=Bi(v),k=Qc(k);var re=[];return ae[O>>2]=Vi(re),m(v,k,re,J)},_emval_call_void_method:function(m,v,k,O){m=Jc[m],v=Bi(v),k=Qc(k),m(v,k,null,O)},_emval_decref:Ph,_emval_get_method_caller:function(m,v){var k=RE(m,v),O=k[0];v=O.name+"_$"+k.slice(1).map(function(ve){return ve.name}).join("_")+"$";var J=$_[v];if(J!==void 0)return J;var re=Array(m-1);return J=EE((ve,Re,xe,Te)=>{for(var Ve=0,je=0;je<m-1;++je)re[je]=k[je+1].readValueFromPointer(Te+Ve),Ve+=k[je+1].argPackAdvance;for(ve=ve[Re].apply(ve,re),je=0;je<m-1;++je)k[je+1].Nb&&k[je+1].Nb(re[je]);if(!O.fc)return O.toWireType(xe,ve)}),$_[v]=J},_emval_get_module_property:function(m){return m=Qc(m),Vi(f[m])},_emval_get_property:function(m,v){return m=Bi(m),v=Bi(v),Vi(m[v])},_emval_incref:function(m){4<m&&(wi.get(m).ub+=1)},_emval_new_array:function(){return Vi([])},_emval_new_cstring:function(m){return Vi(Qc(m))},_emval_new_object:function(){return Vi({})},_emval_run_destructors:function(m){var v=Bi(m);Ql(v),Ph(m)},_emval_set_property:function(m,v,k){m=Bi(m),v=Bi(v),k=Bi(k),m[v]=k},_emval_take_value:function(m,v){return m=Xl(m,"_emval_take_value"),m=m.readValueFromPointer(v),Vi(m)},abort:()=>{ee("")},emscripten_asm_const_int:(m,v,k)=>{Lh.length=0;var O;for(k>>=2;O=q[v++];)k+=O!=105&k,Lh.push(O==105?Se[k]:_e[k++>>1]),++k;return g[m].apply(null,Lh)},emscripten_date_now:function(){return Date.now()},emscripten_get_now:()=>performance.now(),emscripten_memcpy_big:(m,v,k)=>q.copyWithin(m,v,v+k),emscripten_resize_heap:m=>{var v=q.length;if(m>>>=0,2147483648<m)return!1;for(var k=1;4>=k;k*=2){var O=v*(1+.2/k);O=Math.min(O,m+100663296);var J=Math;O=Math.max(m,O);e:{J=J.min.call(J,2147483648,O+(65536-O%65536)%65536)-B.buffer.byteLength+65535>>>16;try{B.grow(J),te();var re=1;break e}catch{}re=void 0}if(re)return!0}return!1},environ_get:(m,v)=>{var k=0;return F_().forEach(function(O,J){var re=v+k;for(J=ae[m+4*J>>2]=re,re=0;re<O.length;++re)le[J++>>0]=O.charCodeAt(re);le[J>>0]=0,k+=O.length+1}),0},environ_sizes_get:(m,v)=>{var k=F_();ae[m>>2]=k.length;var O=0;return k.forEach(function(J){O+=J.length+1}),ae[v>>2]=O,0},fd_close:function(m){try{var v=Kn(m);if(v.X===null)throw new Le(8);v.Ma&&(v.Ma=null);try{v.m.close&&v.m.close(v)}catch(k){throw k}finally{Mt[v.X]=null}return v.X=null,0}catch(k){if(typeof vr>"u"||k.name!=="ErrnoError")throw k;return k.aa}},fd_read:function(m,v,k,O){try{e:{var J=Kn(m);m=v;for(var re,ve=v=0;ve<k;ve++){var Re=ae[m>>2],xe=ae[m+4>>2];m+=8;var Te=J,Ve=Re,je=xe,Xe=re,ye=le;if(0>je||0>Xe)throw new Le(28);if(Te.X===null)throw new Le(8);if((Te.flags&2097155)===1)throw new Le(8);if((Te.node.mode&61440)===16384)throw new Le(31);if(!Te.m.read)throw new Le(28);var Be=typeof Xe<"u";if(!Be)Xe=Te.position;else if(!Te.seekable)throw new Le(70);var $e=Te.m.read(Te,ye,Ve,je,Xe);Be||(Te.position+=$e);var St=$e;if(0>St){var Ct=-1;break e}if(v+=St,St<xe)break;typeof re<"u"&&(re+=St)}Ct=v}return ae[O>>2]=Ct,0}catch(ze){if(typeof vr>"u"||ze.name!=="ErrnoError")throw ze;return ze.aa}},fd_seek:function(m,v,k,O,J){v=k+2097152>>>0<4194305-!!v?(v>>>0)+4294967296*k:NaN;try{if(isNaN(v))return 61;var re=Kn(m);return ql(re,v,O),S=[re.position>>>0,(de=re.position,1<=+Math.abs(de)?0<de?+Math.floor(de/4294967296)>>>0:~~+Math.ceil((de-+(~~de>>>0))/4294967296)>>>0:0)],Se[J>>2]=S[0],Se[J+4>>2]=S[1],re.Ma&&v===0&&O===0&&(re.Ma=null),0}catch(ve){if(typeof vr>"u"||ve.name!=="ErrnoError")throw ve;return ve.aa}},fd_write:function(m,v,k,O){try{e:{var J=Kn(m);m=v;for(var re,ve=v=0;ve<k;ve++){var Re=ae[m>>2],xe=ae[m+4>>2];m+=8;var Te=J,Ve=Re,je=xe,Xe=re,ye=le;if(0>je||0>Xe)throw new Le(28);if(Te.X===null)throw new Le(8);if((Te.flags&2097155)===0)throw new Le(8);if((Te.node.mode&61440)===16384)throw new Le(31);if(!Te.m.write)throw new Le(28);Te.seekable&&Te.flags&1024&&ql(Te,0,2);var Be=typeof Xe<"u";if(!Be)Xe=Te.position;else if(!Te.seekable)throw new Le(70);var $e=Te.m.write(Te,ye,Ve,je,Xe,void 0);Be||(Te.position+=$e);var St=$e;if(0>St){var Ct=-1;break e}v+=St,typeof re<"u"&&(re+=St)}Ct=v}return ae[O>>2]=Ct,0}catch(ze){if(typeof vr>"u"||ze.name!=="ErrnoError")throw ze;return ze.aa}},strftime_l:(m,v,k,O)=>AE(m,v,k,O)};(function(){function m(k){if(U=k=k.exports,B=U.memory,te(),ue=U.__indirect_function_table,we.unshift(U.__wasm_call_ctors),P--,f.monitorRunDependencies&&f.monitorRunDependencies(P),P==0&&K){var O=K;K=null,O()}return k}var v={env:V_,wasi_snapshot_preview1:V_};if(P++,f.monitorRunDependencies&&f.monitorRunDependencies(P),f.instantiateWasm)try{return f.instantiateWasm(v,m)}catch(k){M("Module.instantiateWasm callback failed with error: "+k),p(k)}return me(v,function(k){m(k.instance)}).catch(p),{}})();var Ao=m=>(Ao=U.free)(m),$h=m=>($h=U.malloc)(m),U_=()=>(U_=U.__errno_location)(),j_=f._ma_device__on_notification_unlocked=m=>(j_=f._ma_device__on_notification_unlocked=U.ma_device__on_notification_unlocked)(m);f._ma_malloc_emscripten=(m,v)=>(f._ma_malloc_emscripten=U.ma_malloc_emscripten)(m,v),f._ma_free_emscripten=(m,v)=>(f._ma_free_emscripten=U.ma_free_emscripten)(m,v);var W_=f._ma_device_process_pcm_frames_capture__webaudio=(m,v,k)=>(W_=f._ma_device_process_pcm_frames_capture__webaudio=U.ma_device_process_pcm_frames_capture__webaudio)(m,v,k),q_=f._ma_device_process_pcm_frames_playback__webaudio=(m,v,k)=>(q_=f._ma_device_process_pcm_frames_playback__webaudio=U.ma_device_process_pcm_frames_playback__webaudio)(m,v,k),z_=m=>(z_=U.__getTypeName)(m);f.__embind_initialize_bindings=()=>(f.__embind_initialize_bindings=U._embind_initialize_bindings)(),f.dynCall_iiji=(m,v,k,O,J)=>(f.dynCall_iiji=U.dynCall_iiji)(m,v,k,O,J),f.dynCall_jiji=(m,v,k,O,J)=>(f.dynCall_jiji=U.dynCall_jiji)(m,v,k,O,J),f.dynCall_iiiji=(m,v,k,O,J,re)=>(f.dynCall_iiiji=U.dynCall_iiiji)(m,v,k,O,J,re),f.dynCall_iij=(m,v,k,O)=>(f.dynCall_iij=U.dynCall_iij)(m,v,k,O),f.dynCall_jii=(m,v,k)=>(f.dynCall_jii=U.dynCall_jii)(m,v,k),f.dynCall_viijii=(m,v,k,O,J,re,ve)=>(f.dynCall_viijii=U.dynCall_viijii)(m,v,k,O,J,re,ve),f.dynCall_iiiiij=(m,v,k,O,J,re,ve)=>(f.dynCall_iiiiij=U.dynCall_iiiiij)(m,v,k,O,J,re,ve),f.dynCall_iiiiijj=(m,v,k,O,J,re,ve,Re,xe)=>(f.dynCall_iiiiijj=U.dynCall_iiiiijj)(m,v,k,O,J,re,ve,Re,xe),f.dynCall_iiiiiijj=(m,v,k,O,J,re,ve,Re,xe,Te)=>(f.dynCall_iiiiiijj=U.dynCall_iiiiiijj)(m,v,k,O,J,re,ve,Re,xe,Te);var tf;K=function m(){tf||G_(),tf||(K=m)};function G_(){function m(){if(!tf&&(tf=!0,f.calledRun=!0,!oe)){if(f.noFSInit||oi||(oi=!0,ns(),f.stdin=f.stdin,f.stdout=f.stdout,f.stderr=f.stderr,f.stdin?Hi("stdin",f.stdin):Sn("/dev/tty","/dev/stdin"),f.stdout?Hi("stdout",null,f.stdout):Sn("/dev/tty","/dev/stdout"),f.stderr?Hi("stderr",null,f.stderr):Sn("/dev/tty1","/dev/stderr"),ts("/dev/stdin",0),ts("/dev/stdout",1),ts("/dev/stderr",1)),st=!1,T(we),_(f),f.onRuntimeInitialized&&f.onRuntimeInitialized(),f.postRun)for(typeof f.postRun=="function"&&(f.postRun=[f.postRun]);f.postRun.length;){var v=f.postRun.shift();Ie.unshift(v)}T(Ie)}}if(!(0<P)){if(f.preRun)for(typeof f.preRun=="function"&&(f.preRun=[f.preRun]);f.preRun.length;)z();T(ge),0<P||(f.setStatus?(f.setStatus("Running..."),setTimeout(function(){setTimeout(function(){f.setStatus("")},1),m()},1)):m())}}if(f.preInit)for(typeof f.preInit=="function"&&(f.preInit=[f.preInit]);0<f.preInit.length;)f.preInit.pop()();return G_(),d.ready}})();const h=c},s=>{s.exports=JSON.parse(`{"name":"@rive-app/canvas","version":"2.30.4","description":"Rive's canvas based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}`)},(s,a,u)=>{u.r(a),u.d(a,{Animation:()=>c.Animation});var c=u(4)},(s,a,u)=>{u.r(a),u.d(a,{Animation:()=>c});var c=function(){function h(l,d,f,_){this.animation=l,this.artboard=d,this.playing=_,this.loopCount=0,this.scrubTo=null,this.instance=new f.LinearAnimationInstance(l,d)}return Object.defineProperty(h.prototype,"name",{get:function(){return this.animation.name},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"time",{get:function(){return this.instance.time},set:function(l){this.instance.time=l},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"loopValue",{get:function(){return this.animation.loopValue},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"needsScrub",{get:function(){return this.scrubTo!==null},enumerable:!1,configurable:!0}),h.prototype.advance=function(l){this.scrubTo===null?this.instance.advance(l):(this.instance.time=0,this.instance.advance(this.scrubTo),this.scrubTo=null)},h.prototype.apply=function(l){this.instance.apply(l)},h.prototype.cleanup=function(){this.instance.delete()},h}()},(s,a,u)=>{u.r(a),u.d(a,{AudioAssetWrapper:()=>l.AudioAssetWrapper,AudioWrapper:()=>l.AudioWrapper,BLANK_URL:()=>h.BLANK_URL,CustomFileAssetLoaderWrapper:()=>l.CustomFileAssetLoaderWrapper,FileAssetWrapper:()=>l.FileAssetWrapper,Finalizable:()=>l.Finalizable,FontAssetWrapper:()=>l.FontAssetWrapper,FontWrapper:()=>l.FontWrapper,ImageAssetWrapper:()=>l.ImageAssetWrapper,ImageWrapper:()=>l.ImageWrapper,finalizationRegistry:()=>l.finalizationRegistry,registerTouchInteractions:()=>c.registerTouchInteractions,sanitizeUrl:()=>h.sanitizeUrl});var c=u(6),h=u(7),l=u(8)},(s,a,u)=>{u.r(a),u.d(a,{registerTouchInteractions:()=>l});var c=void 0,h=function(d,f){var _,p;return["touchstart","touchmove"].indexOf(d.type)>-1&&(!((_=d.touches)===null||_===void 0)&&_.length)?(f||d.preventDefault(),{clientX:d.touches[0].clientX,clientY:d.touches[0].clientY}):d.type==="touchend"&&(!((p=d.changedTouches)===null||p===void 0)&&p.length)?{clientX:d.changedTouches[0].clientX,clientY:d.changedTouches[0].clientY}:{clientX:d.clientX,clientY:d.clientY}},l=function(d){var f=d.canvas,_=d.artboard,p=d.stateMachines,b=p===void 0?[]:p,y=d.renderer,w=d.rive,R=d.fit,E=d.alignment,A=d.isTouchScrollEnabled,C=A===void 0?!1:A,I=d.layoutScaleFactor,$=I===void 0?1:I;if(!f||!b.length||!y||!w||!_||typeof window>"u")return null;var N=null,W=!1,ne=function(Q){if(W&&Q instanceof MouseEvent){Q.type=="mouseup"&&(W=!1);return}W=C&&Q.type==="touchend"&&N==="touchstart",N=Q.type;var M=Q.currentTarget.getBoundingClientRect(),H=h(Q,C),B=H.clientX,U=H.clientY;if(!(!B&&!U)){var oe=B-M.left,le=U-M.top,q=w.computeAlignment(R,E,{minX:0,minY:0,maxX:M.width,maxY:M.height},_.bounds,$),be=new w.Mat2D;q.invert(be);var ke=new w.Vec2D(oe,le),Se=w.mapXY(be,ke),ae=Se.x(),fe=Se.y();switch(Se.delete(),be.delete(),ke.delete(),q.delete(),Q.type){case"mouseout":for(var _e=0,te=b;_e<te.length;_e++){var ue=te[_e];ue.pointerMove(ae,fe)}break;case"touchmove":case"mouseover":case"mousemove":{for(var ge=0,we=b;ge<we.length;ge++){var ue=we[ge];ue.pointerMove(ae,fe)}break}case"touchstart":case"mousedown":{for(var Ie=0,z=b;Ie<z.length;Ie++){var ue=z[Ie];ue.pointerDown(ae,fe)}break}case"touchend":case"mouseup":{for(var P=0,K=b;P<K.length;P++){var ue=K[P];ue.pointerUp(ae,fe)}break}}}},F=ne.bind(c);return f.addEventListener("mouseover",F),f.addEventListener("mouseout",F),f.addEventListener("mousemove",F),f.addEventListener("mousedown",F),f.addEventListener("mouseup",F),f.addEventListener("touchmove",F,{passive:C}),f.addEventListener("touchstart",F,{passive:C}),f.addEventListener("touchend",F),function(){f.removeEventListener("mouseover",F),f.removeEventListener("mouseout",F),f.removeEventListener("mousemove",F),f.removeEventListener("mousedown",F),f.removeEventListener("mouseup",F),f.removeEventListener("touchmove",F),f.removeEventListener("touchstart",F),f.removeEventListener("touchend",F)}}},(s,a,u)=>{u.r(a),u.d(a,{BLANK_URL:()=>p,sanitizeUrl:()=>w});var c=/^([^\w]*)(javascript|data|vbscript)/im,h=/&#(\w+)(^\w|;)?/g,l=/&(newline|tab);/gi,d=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,f=/^.+(:|&colon;)/gim,_=[".","/"],p="about:blank";function b(R){return _.indexOf(R[0])>-1}function y(R){var E=R.replace(d,"");return E.replace(h,function(A,C){return String.fromCharCode(C)})}function w(R){if(!R)return p;var E=y(R).replace(l,"").replace(d,"").trim();if(!E)return p;if(b(E))return E;var A=E.match(f);if(!A)return E;var C=A[0];return c.test(C)?p:E}},(s,a,u)=>{u.r(a),u.d(a,{AudioAssetWrapper:()=>y,AudioWrapper:()=>d,CustomFileAssetLoaderWrapper:()=>_,FileAssetWrapper:()=>p,Finalizable:()=>h,FontAssetWrapper:()=>w,FontWrapper:()=>f,ImageAssetWrapper:()=>b,ImageWrapper:()=>l,finalizationRegistry:()=>A});var c=function(){var C=function(I,$){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,W){N.__proto__=W}||function(N,W){for(var ne in W)Object.prototype.hasOwnProperty.call(W,ne)&&(N[ne]=W[ne])},C(I,$)};return function(I,$){if(typeof $!="function"&&$!==null)throw new TypeError("Class extends value "+String($)+" is not a constructor or null");C(I,$);function N(){this.constructor=I}I.prototype=$===null?Object.create($):(N.prototype=$.prototype,new N)}}(),h=function(){function C(){this.selfUnref=!1}return C}(),l=function(C){c(I,C);function I($){var N=C.call(this)||this;return N._nativeImage=$,N}return Object.defineProperty(I.prototype,"nativeImage",{get:function(){return this._nativeImage},enumerable:!1,configurable:!0}),I.prototype.unref=function(){this.selfUnref&&this._nativeImage.unref()},I}(h),d=function(C){c(I,C);function I($){var N=C.call(this)||this;return N._nativeAudio=$,N}return Object.defineProperty(I.prototype,"nativeAudio",{get:function(){return this._nativeAudio},enumerable:!1,configurable:!0}),I.prototype.unref=function(){this.selfUnref&&this._nativeAudio.unref()},I}(h),f=function(C){c(I,C);function I($){var N=C.call(this)||this;return N._nativeFont=$,N}return Object.defineProperty(I.prototype,"nativeFont",{get:function(){return this._nativeFont},enumerable:!1,configurable:!0}),I.prototype.unref=function(){this.selfUnref&&this._nativeFont.unref()},I}(h),_=function(){function C(I,$){this._assetLoaderCallback=$,this.assetLoader=new I.CustomFileAssetLoader({loadContents:this.loadContents.bind(this)})}return C.prototype.loadContents=function(I,$){var N;return I.isImage?N=new b(I):I.isAudio?N=new y(I):I.isFont&&(N=new w(I)),this._assetLoaderCallback(N,$)},C}(),p=function(){function C(I){this._nativeFileAsset=I}return C.prototype.decode=function(I){this._nativeFileAsset.decode(I)},Object.defineProperty(C.prototype,"name",{get:function(){return this._nativeFileAsset.name},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"fileExtension",{get:function(){return this._nativeFileAsset.fileExtension},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"uniqueFilename",{get:function(){return this._nativeFileAsset.uniqueFilename},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"isAudio",{get:function(){return this._nativeFileAsset.isAudio},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"isImage",{get:function(){return this._nativeFileAsset.isImage},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"isFont",{get:function(){return this._nativeFileAsset.isFont},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"cdnUuid",{get:function(){return this._nativeFileAsset.cdnUuid},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"nativeFileAsset",{get:function(){return this._nativeFileAsset},enumerable:!1,configurable:!0}),C}(),b=function(C){c(I,C);function I(){return C!==null&&C.apply(this,arguments)||this}return I.prototype.setRenderImage=function($){this._nativeFileAsset.setRenderImage($.nativeImage)},I}(p),y=function(C){c(I,C);function I(){return C!==null&&C.apply(this,arguments)||this}return I.prototype.setAudioSource=function($){this._nativeFileAsset.setAudioSource($.nativeAudio)},I}(p),w=function(C){c(I,C);function I(){return C!==null&&C.apply(this,arguments)||this}return I.prototype.setFont=function($){this._nativeFileAsset.setFont($.nativeFont)},I}(p),R=function(){function C(I){}return C.prototype.register=function(I){I.selfUnref=!0},C.prototype.unregister=function(I){},C}(),E=typeof FinalizationRegistry<"u"?FinalizationRegistry:R,A=new E(function(C){C.unref()})}],r={};function i(s){var a=r[s];if(a!==void 0)return a.exports;var u=r[s]={exports:{}};return n[s](u,u.exports,i),u.exports}i.d=(s,a)=>{for(var u in a)i.o(a,u)&&!i.o(s,u)&&Object.defineProperty(s,u,{enumerable:!0,get:a[u]})},i.o=(s,a)=>Object.prototype.hasOwnProperty.call(s,a),i.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var o={};return(()=>{i.r(o),i.d(o,{Alignment:()=>w,DataEnum:()=>fe,EventType:()=>ne,Fit:()=>y,Layout:()=>R,LoopType:()=>F,Rive:()=>Se,RiveEventType:()=>I,RiveFile:()=>ke,RuntimeLoader:()=>E,StateMachineInput:()=>C,StateMachineInputType:()=>A,Testing:()=>D,ViewModel:()=>ae,ViewModelInstance:()=>te,ViewModelInstanceArtboard:()=>x,ViewModelInstanceAssetImage:()=>X,ViewModelInstanceBoolean:()=>Ie,ViewModelInstanceColor:()=>ee,ViewModelInstanceEnum:()=>P,ViewModelInstanceList:()=>K,ViewModelInstanceNumber:()=>we,ViewModelInstanceString:()=>ge,ViewModelInstanceTrigger:()=>z,ViewModelInstanceValue:()=>ue,decodeAudio:()=>Z,decodeFont:()=>de,decodeImage:()=>me});var s=i(1),a=i(2),u=i(3),c=i(5),h=function(){var S=function(g,T){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,ie){V.__proto__=ie}||function(V,ie){for(var he in ie)Object.prototype.hasOwnProperty.call(ie,he)&&(V[he]=ie[he])},S(g,T)};return function(g,T){if(typeof T!="function"&&T!==null)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");S(g,T);function V(){this.constructor=g}g.prototype=T===null?Object.create(T):(V.prototype=T.prototype,new V)}}(),l=function(){return l=Object.assign||function(S){for(var g,T=1,V=arguments.length;T<V;T++){g=arguments[T];for(var ie in g)Object.prototype.hasOwnProperty.call(g,ie)&&(S[ie]=g[ie])}return S},l.apply(this,arguments)},d=function(S,g,T,V){function ie(he){return he instanceof T?he:new T(function(Ee){Ee(he)})}return new(T||(T=Promise))(function(he,Ee){function Ne(Qe){try{Ue(V.next(Qe))}catch(tt){Ee(tt)}}function Pe(Qe){try{Ue(V.throw(Qe))}catch(tt){Ee(tt)}}function Ue(Qe){Qe.done?he(Qe.value):ie(Qe.value).then(Ne,Pe)}Ue((V=V.apply(S,g||[])).next())})},f=function(S,g){var T={label:0,sent:function(){if(he[0]&1)throw he[1];return he[1]},trys:[],ops:[]},V,ie,he,Ee=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return Ee.next=Ne(0),Ee.throw=Ne(1),Ee.return=Ne(2),typeof Symbol=="function"&&(Ee[Symbol.iterator]=function(){return this}),Ee;function Ne(Ue){return function(Qe){return Pe([Ue,Qe])}}function Pe(Ue){if(V)throw new TypeError("Generator is already executing.");for(;Ee&&(Ee=0,Ue[0]&&(T=0)),T;)try{if(V=1,ie&&(he=Ue[0]&2?ie.return:Ue[0]?ie.throw||((he=ie.return)&&he.call(ie),0):ie.next)&&!(he=he.call(ie,Ue[1])).done)return he;switch(ie=0,he&&(Ue=[Ue[0]&2,he.value]),Ue[0]){case 0:case 1:he=Ue;break;case 4:return T.label++,{value:Ue[1],done:!1};case 5:T.label++,ie=Ue[1],Ue=[0];continue;case 7:Ue=T.ops.pop(),T.trys.pop();continue;default:if(he=T.trys,!(he=he.length>0&&he[he.length-1])&&(Ue[0]===6||Ue[0]===2)){T=0;continue}if(Ue[0]===3&&(!he||Ue[1]>he[0]&&Ue[1]<he[3])){T.label=Ue[1];break}if(Ue[0]===6&&T.label<he[1]){T.label=he[1],he=Ue;break}if(he&&T.label<he[2]){T.label=he[2],T.ops.push(Ue);break}he[2]&&T.ops.pop(),T.trys.pop();continue}Ue=g.call(S,T)}catch(Qe){Ue=[6,Qe],ie=0}finally{V=he=0}if(Ue[0]&5)throw Ue[1];return{value:Ue[0]?Ue[1]:void 0,done:!0}}},_=function(S,g,T){if(T||arguments.length===2)for(var V=0,ie=g.length,he;V<ie;V++)(he||!(V in g))&&(he||(he=Array.prototype.slice.call(g,0,V)),he[V]=g[V]);return S.concat(he||Array.prototype.slice.call(g))},p=function(S){h(g,S);function g(){var T=S!==null&&S.apply(this,arguments)||this;return T.isHandledError=!0,T}return g}(Error),b=function(S){return S&&S.isHandledError?S.message:"Problem loading file; may be corrupt!"},y;(function(S){S.Cover="cover",S.Contain="contain",S.Fill="fill",S.FitWidth="fitWidth",S.FitHeight="fitHeight",S.None="none",S.ScaleDown="scaleDown",S.Layout="layout"})(y||(y={}));var w;(function(S){S.Center="center",S.TopLeft="topLeft",S.TopCenter="topCenter",S.TopRight="topRight",S.CenterLeft="centerLeft",S.CenterRight="centerRight",S.BottomLeft="bottomLeft",S.BottomCenter="bottomCenter",S.BottomRight="bottomRight"})(w||(w={}));var R=function(){function S(g){var T,V,ie,he,Ee,Ne,Pe;this.fit=(T=g==null?void 0:g.fit)!==null&&T!==void 0?T:y.Contain,this.alignment=(V=g==null?void 0:g.alignment)!==null&&V!==void 0?V:w.Center,this.layoutScaleFactor=(ie=g==null?void 0:g.layoutScaleFactor)!==null&&ie!==void 0?ie:1,this.minX=(he=g==null?void 0:g.minX)!==null&&he!==void 0?he:0,this.minY=(Ee=g==null?void 0:g.minY)!==null&&Ee!==void 0?Ee:0,this.maxX=(Ne=g==null?void 0:g.maxX)!==null&&Ne!==void 0?Ne:0,this.maxY=(Pe=g==null?void 0:g.maxY)!==null&&Pe!==void 0?Pe:0}return S.new=function(g){var T=g.fit,V=g.alignment,ie=g.minX,he=g.minY,Ee=g.maxX,Ne=g.maxY;return console.warn("This function is deprecated: please use `new Layout({})` instead"),new S({fit:T,alignment:V,minX:ie,minY:he,maxX:Ee,maxY:Ne})},S.prototype.copyWith=function(g){var T=g.fit,V=g.alignment,ie=g.layoutScaleFactor,he=g.minX,Ee=g.minY,Ne=g.maxX,Pe=g.maxY;return new S({fit:T??this.fit,alignment:V??this.alignment,layoutScaleFactor:ie??this.layoutScaleFactor,minX:he??this.minX,minY:Ee??this.minY,maxX:Ne??this.maxX,maxY:Pe??this.maxY})},S.prototype.runtimeFit=function(g){if(this.cachedRuntimeFit)return this.cachedRuntimeFit;var T;return this.fit===y.Cover?T=g.Fit.cover:this.fit===y.Contain?T=g.Fit.contain:this.fit===y.Fill?T=g.Fit.fill:this.fit===y.FitWidth?T=g.Fit.fitWidth:this.fit===y.FitHeight?T=g.Fit.fitHeight:this.fit===y.ScaleDown?T=g.Fit.scaleDown:this.fit===y.Layout?T=g.Fit.layout:T=g.Fit.none,this.cachedRuntimeFit=T,T},S.prototype.runtimeAlignment=function(g){if(this.cachedRuntimeAlignment)return this.cachedRuntimeAlignment;var T;return this.alignment===w.TopLeft?T=g.Alignment.topLeft:this.alignment===w.TopCenter?T=g.Alignment.topCenter:this.alignment===w.TopRight?T=g.Alignment.topRight:this.alignment===w.CenterLeft?T=g.Alignment.centerLeft:this.alignment===w.CenterRight?T=g.Alignment.centerRight:this.alignment===w.BottomLeft?T=g.Alignment.bottomLeft:this.alignment===w.BottomCenter?T=g.Alignment.bottomCenter:this.alignment===w.BottomRight?T=g.Alignment.bottomRight:T=g.Alignment.center,this.cachedRuntimeAlignment=T,T},S}(),E=function(){function S(){}return S.loadRuntime=function(){s.default({locateFile:function(){return S.wasmURL}}).then(function(g){var T;for(S.runtime=g;S.callBackQueue.length>0;)(T=S.callBackQueue.shift())===null||T===void 0||T(S.runtime)}).catch(function(g){var T={message:(g==null?void 0:g.message)||"Unknown error",type:(g==null?void 0:g.name)||"Error",wasmError:g instanceof WebAssembly.CompileError||g instanceof WebAssembly.RuntimeError,originalError:g},V="https://cdn.jsdelivr.net/npm/".concat(a.name,"@").concat(a.version,"/rive_fallback.wasm");if(S.wasmURL.toLowerCase()!==V)console.warn("Failed to load WASM from ".concat(S.wasmURL," (").concat(T.message,"), trying jsdelivr as a backup")),S.setWasmUrl(V),S.loadRuntime();else{var ie=["Could not load Rive WASM file from ".concat(S.wasmURL," or ").concat(V,"."),"Possible reasons:","- Network connection is down","- WebAssembly is not supported in this environment","- The WASM file is corrupted or incompatible",`
Error details:`,"- Type: ".concat(T.type),"- Message: ".concat(T.message),"- WebAssembly-specific error: ".concat(T.wasmError),`
To resolve, you may need to:`,"1. Check your network connection","2. Set a new WASM source via RuntimeLoader.setWasmUrl()","3. Call RuntimeLoader.loadRuntime() again"].join(`
`);console.error(ie)}})},S.getInstance=function(g){S.isLoading||(S.isLoading=!0,S.loadRuntime()),S.runtime?g(S.runtime):S.callBackQueue.push(g)},S.awaitInstance=function(){return new Promise(function(g){return S.getInstance(function(T){return g(T)})})},S.setWasmUrl=function(g){S.wasmURL=g},S.getWasmUrl=function(){return S.wasmURL},S.isLoading=!1,S.callBackQueue=[],S.wasmURL="https://unpkg.com/".concat(a.name,"@").concat(a.version,"/rive.wasm"),S}(),A;(function(S){S[S.Number=56]="Number",S[S.Trigger=58]="Trigger",S[S.Boolean=59]="Boolean"})(A||(A={}));var C=function(){function S(g,T){this.type=g,this.runtimeInput=T}return Object.defineProperty(S.prototype,"name",{get:function(){return this.runtimeInput.name},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"value",{get:function(){return this.runtimeInput.value},set:function(g){this.runtimeInput.value=g},enumerable:!1,configurable:!0}),S.prototype.fire=function(){this.type===A.Trigger&&this.runtimeInput.fire()},S.prototype.delete=function(){this.runtimeInput=null},S}(),I;(function(S){S[S.General=128]="General",S[S.OpenUrl=131]="OpenUrl"})(I||(I={}));var $=function(){function S(g){this.nativeArtboard=g}return S}(),N=function(){function S(g,T,V,ie){this.stateMachine=g,this.playing=V,this.artboard=ie,this.inputs=[],this.instance=new T.StateMachineInstance(g,ie),this.initInputs(T)}return Object.defineProperty(S.prototype,"name",{get:function(){return this.stateMachine.name},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"statesChanged",{get:function(){for(var g=[],T=0;T<this.instance.stateChangedCount();T++)g.push(this.instance.stateChangedNameByIndex(T));return g},enumerable:!1,configurable:!0}),S.prototype.advance=function(g){this.instance.advance(g)},S.prototype.advanceAndApply=function(g){this.instance.advanceAndApply(g)},S.prototype.reportedEventCount=function(){return this.instance.reportedEventCount()},S.prototype.reportedEventAt=function(g){return this.instance.reportedEventAt(g)},S.prototype.initInputs=function(g){for(var T=0;T<this.instance.inputCount();T++){var V=this.instance.input(T);this.inputs.push(this.mapRuntimeInput(V,g))}},S.prototype.mapRuntimeInput=function(g,T){if(g.type===T.SMIInput.bool)return new C(A.Boolean,g.asBool());if(g.type===T.SMIInput.number)return new C(A.Number,g.asNumber());if(g.type===T.SMIInput.trigger)return new C(A.Trigger,g.asTrigger())},S.prototype.cleanup=function(){this.inputs.forEach(function(g){g.delete()}),this.inputs.length=0,this.instance.delete()},S.prototype.bindViewModelInstance=function(g){g.runtimeInstance!=null&&this.instance.bindViewModelInstance(g.runtimeInstance)},S}(),W=function(){function S(g,T,V,ie,he){ie===void 0&&(ie=[]),he===void 0&&(he=[]),this.runtime=g,this.artboard=T,this.eventManager=V,this.animations=ie,this.stateMachines=he}return S.prototype.add=function(g,T,V){if(V===void 0&&(V=!0),g=L(g),g.length===0)this.animations.forEach(function(_t){return _t.playing=T}),this.stateMachines.forEach(function(_t){return _t.playing=T});else for(var ie=this.animations.map(function(_t){return _t.name}),he=this.stateMachines.map(function(_t){return _t.name}),Ee=0;Ee<g.length;Ee++){var Ne=ie.indexOf(g[Ee]),Pe=he.indexOf(g[Ee]);if(Ne>=0||Pe>=0)Ne>=0?this.animations[Ne].playing=T:this.stateMachines[Pe].playing=T;else{var Ue=this.artboard.animationByName(g[Ee]);if(Ue){var Qe=new u.Animation(Ue,this.artboard,this.runtime,T);Qe.advance(0),Qe.apply(1),this.animations.push(Qe)}else{var tt=this.artboard.stateMachineByName(g[Ee]);if(tt){var gt=new N(tt,this.runtime,T,this.artboard);this.stateMachines.push(gt)}}}}return V&&(T?this.eventManager.fire({type:ne.Play,data:this.playing}):this.eventManager.fire({type:ne.Pause,data:this.paused})),T?this.playing:this.paused},S.prototype.initLinearAnimations=function(g,T){for(var V=this.animations.map(function(Pe){return Pe.name}),ie=0;ie<g.length;ie++){var he=V.indexOf(g[ie]);if(he>=0)this.animations[he].playing=T;else{var Ee=this.artboard.animationByName(g[ie]);if(Ee){var Ne=new u.Animation(Ee,this.artboard,this.runtime,T);Ne.advance(0),Ne.apply(1),this.animations.push(Ne)}else console.error("Animation with name ".concat(g[ie]," not found."))}}},S.prototype.initStateMachines=function(g,T){for(var V=this.stateMachines.map(function(Pe){return Pe.name}),ie=0;ie<g.length;ie++){var he=V.indexOf(g[ie]);if(he>=0)this.stateMachines[he].playing=T;else{var Ee=this.artboard.stateMachineByName(g[ie]);if(Ee){var Ne=new N(Ee,this.runtime,T,this.artboard);this.stateMachines.push(Ne),T||Ne.advanceAndApply(0)}else console.warn("State Machine with name ".concat(g[ie]," not found.")),this.initLinearAnimations([g[ie]],T)}}},S.prototype.play=function(g){return this.add(g,!0)},S.prototype.pause=function(g){return this.add(g,!1)},S.prototype.scrub=function(g,T){var V=this.animations.filter(function(ie){return g.includes(ie.name)});return V.forEach(function(ie){return ie.scrubTo=T}),V.map(function(ie){return ie.name})},Object.defineProperty(S.prototype,"playing",{get:function(){return this.animations.filter(function(g){return g.playing}).map(function(g){return g.name}).concat(this.stateMachines.filter(function(g){return g.playing}).map(function(g){return g.name}))},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"paused",{get:function(){return this.animations.filter(function(g){return!g.playing}).map(function(g){return g.name}).concat(this.stateMachines.filter(function(g){return!g.playing}).map(function(g){return g.name}))},enumerable:!1,configurable:!0}),S.prototype.stop=function(g){var T=this;g=L(g);var V=[];if(g.length===0)V=this.animations.map(function(Ee){return Ee.name}).concat(this.stateMachines.map(function(Ee){return Ee.name})),this.animations.forEach(function(Ee){return Ee.cleanup()}),this.stateMachines.forEach(function(Ee){return Ee.cleanup()}),this.animations.splice(0,this.animations.length),this.stateMachines.splice(0,this.stateMachines.length);else{var ie=this.animations.filter(function(Ee){return g.includes(Ee.name)});ie.forEach(function(Ee){Ee.cleanup(),T.animations.splice(T.animations.indexOf(Ee),1)});var he=this.stateMachines.filter(function(Ee){return g.includes(Ee.name)});he.forEach(function(Ee){Ee.cleanup(),T.stateMachines.splice(T.stateMachines.indexOf(Ee),1)}),V=ie.map(function(Ee){return Ee.name}).concat(he.map(function(Ee){return Ee.name}))}return this.eventManager.fire({type:ne.Stop,data:V}),V},Object.defineProperty(S.prototype,"isPlaying",{get:function(){return this.animations.reduce(function(g,T){return g||T.playing},!1)||this.stateMachines.reduce(function(g,T){return g||T.playing},!1)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isPaused",{get:function(){return!this.isPlaying&&(this.animations.length>0||this.stateMachines.length>0)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isStopped",{get:function(){return this.animations.length===0&&this.stateMachines.length===0},enumerable:!1,configurable:!0}),S.prototype.atLeastOne=function(g,T){T===void 0&&(T=!0);var V;return this.animations.length===0&&this.stateMachines.length===0&&(this.artboard.animationCount()>0?this.add([V=this.artboard.animationByIndex(0).name],g,T):this.artboard.stateMachineCount()>0&&this.add([V=this.artboard.stateMachineByIndex(0).name],g,T)),V},S.prototype.handleLooping=function(){for(var g=0,T=this.animations.filter(function(ie){return ie.playing});g<T.length;g++){var V=T[g];V.loopValue===0&&V.loopCount?(V.loopCount=0,this.stop(V.name)):V.loopValue===1&&V.loopCount?(this.eventManager.fire({type:ne.Loop,data:{animation:V.name,type:F.Loop}}),V.loopCount=0):V.loopValue===2&&V.loopCount>1&&(this.eventManager.fire({type:ne.Loop,data:{animation:V.name,type:F.PingPong}}),V.loopCount=0)}},S.prototype.handleStateChanges=function(){for(var g=[],T=0,V=this.stateMachines.filter(function(he){return he.playing});T<V.length;T++){var ie=V[T];g.push.apply(g,ie.statesChanged)}g.length>0&&this.eventManager.fire({type:ne.StateChange,data:g})},S.prototype.handleAdvancing=function(g){this.eventManager.fire({type:ne.Advance,data:g})},S}(),ne;(function(S){S.Load="load",S.LoadError="loaderror",S.Play="play",S.Pause="pause",S.Stop="stop",S.Loop="loop",S.Draw="draw",S.Advance="advance",S.StateChange="statechange",S.RiveEvent="riveevent",S.AudioStatusChange="audiostatuschange"})(ne||(ne={}));var F;(function(S){S.OneShot="oneshot",S.Loop="loop",S.PingPong="pingpong"})(F||(F={}));var Q=function(){function S(g){g===void 0&&(g=[]),this.listeners=g}return S.prototype.getListeners=function(g){return this.listeners.filter(function(T){return T.type===g})},S.prototype.add=function(g){this.listeners.includes(g)||this.listeners.push(g)},S.prototype.remove=function(g){for(var T=0;T<this.listeners.length;T++){var V=this.listeners[T];if(V.type===g.type&&V.callback===g.callback){this.listeners.splice(T,1);break}}},S.prototype.removeAll=function(g){var T=this;g?this.listeners.filter(function(V){return V.type===g}).forEach(function(V){return T.remove(V)}):this.listeners.splice(0,this.listeners.length)},S.prototype.fire=function(g){var T=this.getListeners(g.type);T.forEach(function(V){return V.callback(g)})},S}(),M=function(){function S(g){this.eventManager=g,this.queue=[]}return S.prototype.add=function(g){this.queue.push(g)},S.prototype.process=function(){for(;this.queue.length>0;){var g=this.queue.shift();g!=null&&g.action&&g.action(),g!=null&&g.event&&this.eventManager.fire(g.event)}},S}(),H;(function(S){S[S.AVAILABLE=0]="AVAILABLE",S[S.UNAVAILABLE=1]="UNAVAILABLE"})(H||(H={}));var B=function(S){h(g,S);function g(){var T=S!==null&&S.apply(this,arguments)||this;return T._started=!1,T._enabled=!1,T._status=H.UNAVAILABLE,T}return g.prototype.delay=function(T){return d(this,void 0,void 0,function(){return f(this,function(V){return[2,new Promise(function(ie){return setTimeout(ie,T)})]})})},g.prototype.timeout=function(){return d(this,void 0,void 0,function(){return f(this,function(T){return[2,new Promise(function(V,ie){return setTimeout(ie,50)})]})})},g.prototype.reportToListeners=function(){this.fire({type:ne.AudioStatusChange}),this.removeAll()},g.prototype.enableAudio=function(){return d(this,void 0,void 0,function(){return f(this,function(T){return this._enabled||(this._enabled=!0,this._status=H.AVAILABLE,this.reportToListeners()),[2]})})},g.prototype.testAudio=function(){return d(this,void 0,void 0,function(){return f(this,function(T){switch(T.label){case 0:if(!(this._status===H.UNAVAILABLE&&this._audioContext!==null))return[3,4];T.label=1;case 1:return T.trys.push([1,3,,4]),[4,Promise.race([this._audioContext.resume(),this.timeout()])];case 2:return T.sent(),this.enableAudio(),[3,4];case 3:return T.sent(),[3,4];case 4:return[2]}})})},g.prototype._establishAudio=function(){return d(this,void 0,void 0,function(){return f(this,function(T){switch(T.label){case 0:return this._started?[3,5]:(this._started=!0,typeof window>"u"?(this.enableAudio(),[3,5]):[3,1]);case 1:this._audioContext=new AudioContext,this.listenForUserAction(),T.label=2;case 2:return this._status!==H.UNAVAILABLE?[3,5]:[4,this.testAudio()];case 3:return T.sent(),[4,this.delay(1e3)];case 4:return T.sent(),[3,2];case 5:return[2]}})})},g.prototype.listenForUserAction=function(){var T=this,V=function(){return d(T,void 0,void 0,function(){return f(this,function(ie){return this.enableAudio(),[2]})})};document.addEventListener("pointerdown",V,{once:!0})},g.prototype.establishAudio=function(){return d(this,void 0,void 0,function(){return f(this,function(T){return this._establishAudio(),[2]})})},Object.defineProperty(g.prototype,"systemVolume",{get:function(){return this._status===H.UNAVAILABLE?(this.testAudio(),0):1},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),g}(Q),U=new B,oe=function(){function S(){}return S.prototype.observe=function(){},S.prototype.unobserve=function(){},S.prototype.disconnect=function(){},S}(),le=globalThis.ResizeObserver||oe,q=function(){function S(){var g=this;this._elementsMap=new Map,this._onObservedEntry=function(T){var V=g._elementsMap.get(T.target);V!==null?V.onResize(T.target.clientWidth==0||T.target.clientHeight==0):g._resizeObserver.unobserve(T.target)},this._onObserved=function(T){T.forEach(g._onObservedEntry)},this._resizeObserver=new le(this._onObserved)}return S.prototype.add=function(g,T){var V={onResize:T,element:g};return this._elementsMap.set(g,V),this._resizeObserver.observe(g),V},S.prototype.remove=function(g){this._resizeObserver.unobserve(g.element),this._elementsMap.delete(g.element)},S}(),be=new q,ke=function(){function S(g){this.enableRiveAssetCDN=!0,this.referenceCount=0,this.destroyed=!1,this.src=g.src,this.buffer=g.buffer,g.assetLoader&&(this.assetLoader=g.assetLoader),this.enableRiveAssetCDN=typeof g.enableRiveAssetCDN=="boolean"?g.enableRiveAssetCDN:!0,this.eventManager=new Q,g.onLoad&&this.on(ne.Load,g.onLoad),g.onLoadError&&this.on(ne.LoadError,g.onLoadError)}return S.prototype.initData=function(){return d(this,void 0,void 0,function(){var g,T,V,ie,he;return f(this,function(Ee){switch(Ee.label){case 0:return this.src?(g=this,[4,G(this.src)]):[3,2];case 1:g.buffer=Ee.sent(),Ee.label=2;case 2:return this.destroyed?[2]:(this.assetLoader&&(V=new c.CustomFileAssetLoaderWrapper(this.runtime,this.assetLoader),T=V.assetLoader),ie=this,[4,this.runtime.load(new Uint8Array(this.buffer),T,this.enableRiveAssetCDN)]);case 3:return ie.file=Ee.sent(),this.destroyed?((he=this.file)===null||he===void 0||he.delete(),this.file=null,[2]):(this.file!==null?this.eventManager.fire({type:ne.Load,data:this}):this.fireLoadError(S.fileLoadErrorMessage),[2])}})})},S.prototype.init=function(){return d(this,void 0,void 0,function(){var g,T;return f(this,function(V){switch(V.label){case 0:if(!this.src&&!this.buffer)return this.fireLoadError(S.missingErrorMessage),[2];V.label=1;case 1:return V.trys.push([1,4,,5]),g=this,[4,E.awaitInstance()];case 2:return g.runtime=V.sent(),this.destroyed?[2]:[4,this.initData()];case 3:return V.sent(),[3,5];case 4:return T=V.sent(),this.fireLoadError(T instanceof Error?T.message:S.fileLoadErrorMessage),[3,5];case 5:return[2]}})})},S.prototype.fireLoadError=function(g){throw this.eventManager.fire({type:ne.LoadError,data:g}),new Error(g)},S.prototype.on=function(g,T){this.eventManager.add({type:g,callback:T})},S.prototype.off=function(g,T){this.eventManager.remove({type:g,callback:T})},S.prototype.cleanup=function(){var g;this.referenceCount-=1,this.referenceCount<=0&&(this.removeAllRiveEventListeners(),(g=this.file)===null||g===void 0||g.delete(),this.file=null,this.destroyed=!0)},S.prototype.removeAllRiveEventListeners=function(g){this.eventManager.removeAll(g)},S.prototype.getInstance=function(){if(this.file!==null)return this.referenceCount+=1,this.file},S.prototype.destroyIfUnused=function(){this.referenceCount<=0&&this.cleanup()},S.prototype.getArtboard=function(g){var T=this.file.artboardByName(g);return T!=null?new $(T):null},S.missingErrorMessage="Rive source file or data buffer required",S.fileLoadErrorMessage="The file failed to load",S}(),Se=function(){function S(g){var T=this,V;this.loaded=!1,this.destroyed=!1,this._observed=null,this.readyForPlaying=!1,this.artboard=null,this.eventCleanup=null,this.shouldDisableRiveListeners=!1,this.automaticallyHandleEvents=!1,this.enableRiveAssetCDN=!0,this._volume=1,this._artboardWidth=void 0,this._artboardHeight=void 0,this._devicePixelRatioUsed=1,this._hasZeroSize=!1,this._audioEventListener=null,this._boundDraw=null,this._viewModelInstance=null,this._dataEnums=null,this.durations=[],this.frameTimes=[],this.frameCount=0,this.isTouchScrollEnabled=!1,this.onCanvasResize=function(ie){var he=T._hasZeroSize!==ie;T._hasZeroSize=ie,ie?(!T._layout.maxX||!T._layout.maxY)&&T.resizeToCanvas():he&&T.resizeDrawingSurfaceToCanvas()},this.renderSecondTimer=0,this._boundDraw=this.draw.bind(this),this.canvas=g.canvas,g.canvas.constructor===HTMLCanvasElement&&(this._observed=be.add(this.canvas,this.onCanvasResize)),this.src=g.src,this.buffer=g.buffer,this.riveFile=g.riveFile,this.layout=(V=g.layout)!==null&&V!==void 0?V:new R,this.shouldDisableRiveListeners=!!g.shouldDisableRiveListeners,this.isTouchScrollEnabled=!!g.isTouchScrollEnabled,this.automaticallyHandleEvents=!!g.automaticallyHandleEvents,this.enableRiveAssetCDN=g.enableRiveAssetCDN===void 0?!0:g.enableRiveAssetCDN,this.eventManager=new Q,g.onLoad&&this.on(ne.Load,g.onLoad),g.onLoadError&&this.on(ne.LoadError,g.onLoadError),g.onPlay&&this.on(ne.Play,g.onPlay),g.onPause&&this.on(ne.Pause,g.onPause),g.onStop&&this.on(ne.Stop,g.onStop),g.onLoop&&this.on(ne.Loop,g.onLoop),g.onStateChange&&this.on(ne.StateChange,g.onStateChange),g.onAdvance&&this.on(ne.Advance,g.onAdvance),g.onload&&!g.onLoad&&this.on(ne.Load,g.onload),g.onloaderror&&!g.onLoadError&&this.on(ne.LoadError,g.onloaderror),g.onplay&&!g.onPlay&&this.on(ne.Play,g.onplay),g.onpause&&!g.onPause&&this.on(ne.Pause,g.onpause),g.onstop&&!g.onStop&&this.on(ne.Stop,g.onstop),g.onloop&&!g.onLoop&&this.on(ne.Loop,g.onloop),g.onstatechange&&!g.onStateChange&&this.on(ne.StateChange,g.onstatechange),g.assetLoader&&(this.assetLoader=g.assetLoader),this.taskQueue=new M(this.eventManager),this.init({src:this.src,buffer:this.buffer,riveFile:this.riveFile,autoplay:g.autoplay,autoBind:g.autoBind,animations:g.animations,stateMachines:g.stateMachines,artboard:g.artboard,useOffscreenRenderer:g.useOffscreenRenderer})}return Object.defineProperty(S.prototype,"viewModelCount",{get:function(){return this.file.viewModelCount()},enumerable:!1,configurable:!0}),S.new=function(g){return console.warn("This function is deprecated: please use `new Rive({})` instead"),new S(g)},S.prototype.onSystemAudioChanged=function(){this.volume=this._volume},S.prototype.init=function(g){var T=this,V=g.src,ie=g.buffer,he=g.riveFile,Ee=g.animations,Ne=g.stateMachines,Pe=g.artboard,Ue=g.autoplay,Qe=Ue===void 0?!1:Ue,tt=g.useOffscreenRenderer,gt=tt===void 0?!1:tt,_t=g.autoBind,rn=_t===void 0?!1:_t;if(!this.destroyed){if(this.src=V,this.buffer=ie,this.riveFile=he,!this.src&&!this.buffer&&!this.riveFile)throw new p(S.missingErrorMessage);var nt=L(Ee),jt=L(Ne);this.loaded=!1,this.readyForPlaying=!1,E.awaitInstance().then(function(Rt){T.destroyed||(T.runtime=Rt,T.removeRiveListeners(),T.deleteRiveRenderer(),T.renderer=T.runtime.makeRenderer(T.canvas,gt),T.canvas.width||T.canvas.height||T.resizeDrawingSurfaceToCanvas(),T.initData(Pe,nt,jt,Qe,rn).then(function(pt){if(pt)return T.setupRiveListeners()}).catch(function(pt){console.error(pt)}))}).catch(function(Rt){console.error(Rt)})}},S.prototype.setupRiveListeners=function(g){var T=this;if(this.eventCleanup&&this.eventCleanup(),!this.shouldDisableRiveListeners){var V=(this.animator.stateMachines||[]).filter(function(he){return he.playing&&T.runtime.hasListeners(he.instance)}).map(function(he){return he.instance}),ie=this.isTouchScrollEnabled;g&&"isTouchScrollEnabled"in g&&(ie=g.isTouchScrollEnabled),this.eventCleanup=(0,c.registerTouchInteractions)({canvas:this.canvas,artboard:this.artboard,stateMachines:V,renderer:this.renderer,rive:this.runtime,fit:this._layout.runtimeFit(this.runtime),alignment:this._layout.runtimeAlignment(this.runtime),isTouchScrollEnabled:ie,layoutScaleFactor:this._layout.layoutScaleFactor})}},S.prototype.removeRiveListeners=function(){this.eventCleanup&&(this.eventCleanup(),this.eventCleanup=null)},S.prototype.initializeAudio=function(){var g=this,T;U.status==H.UNAVAILABLE&&!((T=this.artboard)===null||T===void 0)&&T.hasAudio&&this._audioEventListener===null&&(this._audioEventListener={type:ne.AudioStatusChange,callback:function(){return g.onSystemAudioChanged()}},U.add(this._audioEventListener),U.establishAudio())},S.prototype.initArtboardSize=function(){this.artboard&&(this._artboardWidth=this.artboard.width=this._artboardWidth||this.artboard.width,this._artboardHeight=this.artboard.height=this._artboardHeight||this.artboard.height)},S.prototype.initData=function(g,T,V,ie,he){return d(this,void 0,void 0,function(){var Ee,Ne,Pe,Ue;return f(this,function(Qe){switch(Qe.label){case 0:return Qe.trys.push([0,3,,4]),this.riveFile!=null?[3,2]:(Ee=new ke({src:this.src,buffer:this.buffer,enableRiveAssetCDN:this.enableRiveAssetCDN,assetLoader:this.assetLoader}),this.riveFile=Ee,[4,Ee.init()]);case 1:if(Qe.sent(),this.destroyed)return Ee.destroyIfUnused(),[2,!1];Qe.label=2;case 2:return this.file=this.riveFile.getInstance(),this.initArtboard(g,T,V,ie,he),this.initArtboardSize(),this.initializeAudio(),this.loaded=!0,this.eventManager.fire({type:ne.Load,data:(Ue=this.src)!==null&&Ue!==void 0?Ue:"buffer"}),this.readyForPlaying=!0,this.taskQueue.process(),this.drawFrame(),[2,!0];case 3:return Ne=Qe.sent(),Pe=b(Ne),console.warn(Pe),this.eventManager.fire({type:ne.LoadError,data:Pe}),[2,Promise.reject(Pe)];case 4:return[2]}})})},S.prototype.initArtboard=function(g,T,V,ie,he){if(this.file){var Ee=g?this.file.artboardByName(g):this.file.defaultArtboard();if(!Ee){var Ne="Invalid artboard name or no default artboard";console.warn(Ne),this.eventManager.fire({type:ne.LoadError,data:Ne});return}if(this.artboard=Ee,Ee.volume=this._volume*U.systemVolume,this.artboard.animationCount()<1){var Ne="Artboard has no animations";throw this.eventManager.fire({type:ne.LoadError,data:Ne}),Ne}this.animator=new W(this.runtime,this.artboard,this.eventManager);var Pe;if(T.length>0||V.length>0?(Pe=T.concat(V),this.animator.initLinearAnimations(T,ie),this.animator.initStateMachines(V,ie)):Pe=[this.animator.atLeastOne(ie,!1)],this.taskQueue.add({event:{type:ie?ne.Play:ne.Pause,data:Pe}}),he){var Ue=this.file.defaultArtboardViewModel(Ee);if(Ue!==null){var Qe=Ue.defaultInstance();if(Qe!==null){var tt=new te(Qe,null);this.bindViewModelInstance(tt)}}}}},S.prototype.drawFrame=function(){var g,T;!((g=document==null?void 0:document.timeline)===null||g===void 0)&&g.currentTime?this.loaded&&this.artboard&&!this.frameRequestId&&(this._boundDraw(document.timeline.currentTime),(T=this.runtime)===null||T===void 0||T.resolveAnimationFrame()):this.startRendering()},S.prototype.draw=function(g,T){var V;this.frameRequestId=null;var ie=performance.now();this.lastRenderTime||(this.lastRenderTime=g),this.renderSecondTimer+=g-this.lastRenderTime,this.renderSecondTimer>5e3&&(this.renderSecondTimer=0,T==null||T());var he=(g-this.lastRenderTime)/1e3;this.lastRenderTime=g;for(var Ee=this.animator.animations.filter(function(ot){return ot.playing||ot.needsScrub}).sort(function(ot){return ot.needsScrub?-1:1}),Ne=0,Pe=Ee;Ne<Pe.length;Ne++){var Ue=Pe[Ne];Ue.advance(he),Ue.instance.didLoop&&(Ue.loopCount+=1),Ue.apply(1)}for(var Qe=this.animator.stateMachines.filter(function(ot){return ot.playing}),tt=0,gt=Qe;tt<gt.length;tt++){var _t=gt[tt],rn=_t.reportedEventCount();if(rn)for(var nt=0;nt<rn;nt++){var jt=_t.reportedEventAt(nt);if(jt)if(jt.type===I.OpenUrl){if(this.eventManager.fire({type:ne.RiveEvent,data:jt}),this.automaticallyHandleEvents){var Rt=document.createElement("a"),pt=jt,Wt=pt.url,Pn=pt.target,In=(0,c.sanitizeUrl)(Wt);Wt&&Rt.setAttribute("href",In),Pn&&Rt.setAttribute("target",Pn),In&&In!==c.BLANK_URL&&Rt.click()}}else this.eventManager.fire({type:ne.RiveEvent,data:jt})}_t.advanceAndApply(he)}this.animator.stateMachines.length==0&&this.artboard.advance(he);var Ke=this.renderer;Ke.clear(),Ke.save(),this.alignRenderer(),this._hasZeroSize||this.artboard.draw(Ke),Ke.restore(),Ke.flush(),this.animator.handleLooping(),this.animator.handleStateChanges(),this.animator.handleAdvancing(he),this.frameCount++;var mt=performance.now();for(this.frameTimes.push(mt),this.durations.push(mt-ie);this.frameTimes[0]<=mt-1e3;)this.frameTimes.shift(),this.durations.shift();(V=this._viewModelInstance)===null||V===void 0||V.handleCallbacks(),this.animator.isPlaying?this.startRendering():this.animator.isPaused?this.lastRenderTime=0:this.animator.isStopped&&(this.lastRenderTime=0)},S.prototype.alignRenderer=function(){var g=this,T=g.renderer,V=g.runtime,ie=g._layout,he=g.artboard;T.align(ie.runtimeFit(V),ie.runtimeAlignment(V),{minX:ie.minX,minY:ie.minY,maxX:ie.maxX,maxY:ie.maxY},he.bounds,this._devicePixelRatioUsed*ie.layoutScaleFactor)},Object.defineProperty(S.prototype,"fps",{get:function(){return this.durations.length},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"frameTime",{get:function(){return this.durations.length===0?0:(this.durations.reduce(function(g,T){return g+T},0)/this.durations.length).toFixed(4)},enumerable:!1,configurable:!0}),S.prototype.cleanup=function(){var g,T;this.destroyed=!0,this.stopRendering(),this.cleanupInstances(),this._observed!==null&&be.remove(this._observed),this.removeRiveListeners(),this.file&&((g=this.riveFile)===null||g===void 0||g.cleanup(),this.file=null),this.riveFile=null,this.deleteRiveRenderer(),this._audioEventListener!==null&&(U.remove(this._audioEventListener),this._audioEventListener=null),(T=this._viewModelInstance)===null||T===void 0||T.cleanup(),this._viewModelInstance=null,this._dataEnums=null},S.prototype.deleteRiveRenderer=function(){var g;(g=this.renderer)===null||g===void 0||g.delete(),this.renderer=null},S.prototype.cleanupInstances=function(){this.eventCleanup!==null&&this.eventCleanup(),this.stop(),this.artboard&&(this.artboard.delete(),this.artboard=null)},S.prototype.retrieveTextRun=function(g){var T;if(!g){console.warn("No text run name provided");return}if(!this.artboard){console.warn("Tried to access text run, but the Artboard is null");return}var V=this.artboard.textRun(g);if(!V){console.warn("Could not access a text run with name '".concat(g,"' in the '").concat((T=this.artboard)===null||T===void 0?void 0:T.name,"' Artboard. Note that you must rename a text run node in the Rive editor to make it queryable at runtime."));return}return V},S.prototype.getTextRunValue=function(g){var T=this.retrieveTextRun(g);return T?T.text:void 0},S.prototype.setTextRunValue=function(g,T){var V=this.retrieveTextRun(g);V&&(V.text=T)},S.prototype.play=function(g,T){var V=this;if(g=L(g),!this.readyForPlaying){this.taskQueue.add({action:function(){return V.play(g,T)}});return}this.animator.play(g),this.eventCleanup&&this.eventCleanup(),this.setupRiveListeners(),this.startRendering()},S.prototype.pause=function(g){var T=this;if(g=L(g),!this.readyForPlaying){this.taskQueue.add({action:function(){return T.pause(g)}});return}this.eventCleanup&&this.eventCleanup(),this.animator.pause(g)},S.prototype.scrub=function(g,T){var V=this;if(g=L(g),!this.readyForPlaying){this.taskQueue.add({action:function(){return V.scrub(g,T)}});return}this.animator.scrub(g,T||0),this.drawFrame()},S.prototype.stop=function(g){var T=this;if(g=L(g),!this.readyForPlaying){this.taskQueue.add({action:function(){return T.stop(g)}});return}this.animator&&this.animator.stop(g),this.eventCleanup&&this.eventCleanup()},S.prototype.reset=function(g){var T,V,ie=g==null?void 0:g.artboard,he=L(g==null?void 0:g.animations),Ee=L(g==null?void 0:g.stateMachines),Ne=(T=g==null?void 0:g.autoplay)!==null&&T!==void 0?T:!1,Pe=(V=g==null?void 0:g.autoBind)!==null&&V!==void 0?V:!1;this.cleanupInstances(),this.initArtboard(ie,he,Ee,Ne,Pe),this.taskQueue.process()},S.prototype.load=function(g){this.file=null,this.stop(),this.init(g)},Object.defineProperty(S.prototype,"layout",{get:function(){return this._layout},set:function(g){this._layout=g,(!g.maxX||!g.maxY)&&this.resizeToCanvas(),this.loaded&&!this.animator.isPlaying&&this.drawFrame()},enumerable:!1,configurable:!0}),S.prototype.resizeToCanvas=function(){this._layout=this.layout.copyWith({minX:0,minY:0,maxX:this.canvas.width,maxY:this.canvas.height})},S.prototype.resizeDrawingSurfaceToCanvas=function(g){if(this.canvas instanceof HTMLCanvasElement&&window){var T=this.canvas.getBoundingClientRect(),V=T.width,ie=T.height,he=g||window.devicePixelRatio||1;if(this.devicePixelRatioUsed=he,this.canvas.width=he*V,this.canvas.height=he*ie,this.resizeToCanvas(),this.drawFrame(),this.layout.fit===y.Layout){var Ee=this._layout.layoutScaleFactor;this.artboard.width=V/Ee,this.artboard.height=ie/Ee}}},Object.defineProperty(S.prototype,"source",{get:function(){return this.src},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"activeArtboard",{get:function(){return this.artboard?this.artboard.name:""},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"animationNames",{get:function(){if(!this.loaded||!this.artboard)return[];for(var g=[],T=0;T<this.artboard.animationCount();T++)g.push(this.artboard.animationByIndex(T).name);return g},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"stateMachineNames",{get:function(){if(!this.loaded||!this.artboard)return[];for(var g=[],T=0;T<this.artboard.stateMachineCount();T++)g.push(this.artboard.stateMachineByIndex(T).name);return g},enumerable:!1,configurable:!0}),S.prototype.stateMachineInputs=function(g){if(this.loaded){var T=this.animator.stateMachines.find(function(V){return V.name===g});return T==null?void 0:T.inputs}},S.prototype.retrieveInputAtPath=function(g,T){if(!g){console.warn("No input name provided for path '".concat(T,"'"));return}if(!this.artboard){console.warn("Tried to access input: '".concat(g,"', at path: '").concat(T,"', but the Artboard is null"));return}var V=this.artboard.inputByPath(g,T);if(!V){console.warn("Could not access an input with name: '".concat(g,"', at path:'").concat(T,"'"));return}return V},S.prototype.setBooleanStateAtPath=function(g,T,V){var ie=this.retrieveInputAtPath(g,V);ie&&(ie.type===A.Boolean?ie.asBool().value=T:console.warn("Input with name: '".concat(g,"', at path:'").concat(V,"' is not a boolean")))},S.prototype.setNumberStateAtPath=function(g,T,V){var ie=this.retrieveInputAtPath(g,V);ie&&(ie.type===A.Number?ie.asNumber().value=T:console.warn("Input with name: '".concat(g,"', at path:'").concat(V,"' is not a number")))},S.prototype.fireStateAtPath=function(g,T){var V=this.retrieveInputAtPath(g,T);V&&(V.type===A.Trigger?V.asTrigger().fire():console.warn("Input with name: '".concat(g,"', at path:'").concat(T,"' is not a trigger")))},S.prototype.retrieveTextAtPath=function(g,T){if(!g){console.warn("No text name provided for path '".concat(T,"'"));return}if(!T){console.warn("No path provided for text '".concat(g,"'"));return}if(!this.artboard){console.warn("Tried to access text: '".concat(g,"', at path: '").concat(T,"', but the Artboard is null"));return}var V=this.artboard.textByPath(g,T);if(!V){console.warn("Could not access text with name: '".concat(g,"', at path:'").concat(T,"'"));return}return V},S.prototype.getTextRunValueAtPath=function(g,T){var V=this.retrieveTextAtPath(g,T);if(!V){console.warn("Could not get text with name: '".concat(g,"', at path:'").concat(T,"'"));return}return V.text},S.prototype.setTextRunValueAtPath=function(g,T,V){var ie=this.retrieveTextAtPath(g,V);if(!ie){console.warn("Could not set text with name: '".concat(g,"', at path:'").concat(V,"'"));return}ie.text=T},Object.defineProperty(S.prototype,"playingStateMachineNames",{get:function(){return this.loaded?this.animator.stateMachines.filter(function(g){return g.playing}).map(function(g){return g.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"playingAnimationNames",{get:function(){return this.loaded?this.animator.animations.filter(function(g){return g.playing}).map(function(g){return g.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"pausedAnimationNames",{get:function(){return this.loaded?this.animator.animations.filter(function(g){return!g.playing}).map(function(g){return g.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"pausedStateMachineNames",{get:function(){return this.loaded?this.animator.stateMachines.filter(function(g){return!g.playing}).map(function(g){return g.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isPlaying",{get:function(){return this.animator.isPlaying},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isPaused",{get:function(){return this.animator.isPaused},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isStopped",{get:function(){return this.animator.isStopped},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"bounds",{get:function(){return this.artboard?this.artboard.bounds:void 0},enumerable:!1,configurable:!0}),S.prototype.on=function(g,T){this.eventManager.add({type:g,callback:T})},S.prototype.off=function(g,T){this.eventManager.remove({type:g,callback:T})},S.prototype.unsubscribe=function(g,T){console.warn("This function is deprecated: please use `off()` instead."),this.off(g,T)},S.prototype.removeAllRiveEventListeners=function(g){this.eventManager.removeAll(g)},S.prototype.unsubscribeAll=function(g){console.warn("This function is deprecated: please use `removeAllRiveEventListeners()` instead."),this.removeAllRiveEventListeners(g)},S.prototype.stopRendering=function(){this.loaded&&this.frameRequestId&&(this.runtime.cancelAnimationFrame?this.runtime.cancelAnimationFrame(this.frameRequestId):cancelAnimationFrame(this.frameRequestId),this.frameRequestId=null)},S.prototype.startRendering=function(){this.loaded&&this.artboard&&!this.frameRequestId&&(this.runtime.requestAnimationFrame?this.frameRequestId=this.runtime.requestAnimationFrame(this._boundDraw):this.frameRequestId=requestAnimationFrame(this._boundDraw))},S.prototype.enableFPSCounter=function(g){this.runtime.enableFPSCounter(g)},S.prototype.disableFPSCounter=function(){this.runtime.disableFPSCounter()},Object.defineProperty(S.prototype,"contents",{get:function(){if(this.loaded){for(var g={artboards:[]},T=0;T<this.file.artboardCount();T++){for(var V=this.file.artboardByIndex(T),ie={name:V.name,animations:[],stateMachines:[]},he=0;he<V.animationCount();he++){var Ee=V.animationByIndex(he);ie.animations.push(Ee.name)}for(var Ne=0;Ne<V.stateMachineCount();Ne++){for(var Pe=V.stateMachineByIndex(Ne),Ue=Pe.name,Qe=new this.runtime.StateMachineInstance(Pe,V),tt=[],gt=0;gt<Qe.inputCount();gt++){var _t=Qe.input(gt);tt.push({name:_t.name,type:_t.type})}ie.stateMachines.push({name:Ue,inputs:tt})}g.artboards.push(ie)}return g}},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"volume",{get:function(){return this.artboard&&this.artboard.volume!==this._volume&&(this._volume=this.artboard.volume),this._volume},set:function(g){this._volume=g,this.artboard&&(this.artboard.volume=g*U.systemVolume)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"artboardWidth",{get:function(){var g;return this.artboard?this.artboard.width:(g=this._artboardWidth)!==null&&g!==void 0?g:0},set:function(g){this._artboardWidth=g,this.artboard&&(this.artboard.width=g)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"artboardHeight",{get:function(){var g;return this.artboard?this.artboard.height:(g=this._artboardHeight)!==null&&g!==void 0?g:0},set:function(g){this._artboardHeight=g,this.artboard&&(this.artboard.height=g)},enumerable:!1,configurable:!0}),S.prototype.resetArtboardSize=function(){this.artboard?(this.artboard.resetArtboardSize(),this._artboardWidth=this.artboard.width,this._artboardHeight=this.artboard.height):(this._artboardWidth=void 0,this._artboardHeight=void 0)},Object.defineProperty(S.prototype,"devicePixelRatioUsed",{get:function(){return this._devicePixelRatioUsed},set:function(g){this._devicePixelRatioUsed=g},enumerable:!1,configurable:!0}),S.prototype.bindViewModelInstance=function(g){var T;this.artboard&&!this.destroyed&&g&&g.runtimeInstance&&(g.internalIncrementReferenceCount(),(T=this._viewModelInstance)===null||T===void 0||T.cleanup(),this._viewModelInstance=g,this.animator.stateMachines.length>0?this.animator.stateMachines.forEach(function(V){return V.bindViewModelInstance(g)}):this.artboard.bindViewModelInstance(g.runtimeInstance))},Object.defineProperty(S.prototype,"viewModelInstance",{get:function(){return this._viewModelInstance},enumerable:!1,configurable:!0}),S.prototype.viewModelByIndex=function(g){var T=this.file.viewModelByIndex(g);return T!==null?new ae(T):null},S.prototype.viewModelByName=function(g){var T=this.file.viewModelByName(g);return T!==null?new ae(T):null},S.prototype.enums=function(){if(this._dataEnums===null){var g=this.file.enums();this._dataEnums=g.map(function(T){return new fe(T)})}return this._dataEnums},S.prototype.defaultViewModel=function(){if(this.artboard){var g=this.file.defaultArtboardViewModel(this.artboard);if(g)return new ae(g)}return null},S.prototype.getArtboard=function(g){var T,V;return(V=(T=this.riveFile)===null||T===void 0?void 0:T.getArtboard(g))!==null&&V!==void 0?V:null},S.missingErrorMessage="Rive source file or data buffer required",S.cleanupErrorMessage="Attempt to use file after calling cleanup.",S}(),ae=function(){function S(g){this._viewModel=g}return Object.defineProperty(S.prototype,"instanceCount",{get:function(){return this._viewModel.instanceCount},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"name",{get:function(){return this._viewModel.name},enumerable:!1,configurable:!0}),S.prototype.instanceByIndex=function(g){var T=this._viewModel.instanceByIndex(g);return T!==null?new te(T,null):null},S.prototype.instanceByName=function(g){var T=this._viewModel.instanceByName(g);return T!==null?new te(T,null):null},S.prototype.defaultInstance=function(){var g=this._viewModel.defaultInstance();return g!==null?new te(g,null):null},S.prototype.instance=function(){var g=this._viewModel.instance();return g!==null?new te(g,null):null},Object.defineProperty(S.prototype,"properties",{get:function(){return this._viewModel.getProperties()},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"instanceNames",{get:function(){return this._viewModel.getInstanceNames()},enumerable:!1,configurable:!0}),S}(),fe=function(){function S(g){this._dataEnum=g}return Object.defineProperty(S.prototype,"name",{get:function(){return this._dataEnum.name},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"values",{get:function(){return this._dataEnum.values},enumerable:!1,configurable:!0}),S}(),_e;(function(S){S.Number="number",S.String="string",S.Boolean="boolean",S.Color="color",S.Trigger="trigger",S.Enum="enum",S.List="list",S.Image="image",S.Artboard="artboard"})(_e||(_e={}));var te=function(){function S(g,T){this._parents=[],this._children=[],this._viewModelInstances=new Map,this._propertiesWithCallbacks=[],this._referenceCount=0,this._runtimeInstance=g,T!==null&&this._parents.push(T)}return Object.defineProperty(S.prototype,"runtimeInstance",{get:function(){return this._runtimeInstance},enumerable:!1,configurable:!0}),S.prototype.handleCallbacks=function(){this._propertiesWithCallbacks.length!==0&&(this._propertiesWithCallbacks.forEach(function(g){g.handleCallbacks()}),this._propertiesWithCallbacks.forEach(function(g){g.clearChanges()})),this._children.forEach(function(g){return g.handleCallbacks()})},S.prototype.addParent=function(g){this._parents.includes(g)||(this._parents.push(g),(this._propertiesWithCallbacks.length>0||this._children.length>0)&&g.addToViewModelCallbacks(this))},S.prototype.removeParent=function(g){var T=this._parents.indexOf(g);if(T!==-1){var V=this._parents[T];V.removeFromViewModelCallbacks(this),this._parents.splice(T,1)}},S.prototype.addToPropertyCallbacks=function(g){var T=this;this._propertiesWithCallbacks.includes(g)||(this._propertiesWithCallbacks.push(g),this._propertiesWithCallbacks.length>0&&this._parents.forEach(function(V){V.addToViewModelCallbacks(T)}))},S.prototype.removeFromPropertyCallbacks=function(g){var T=this;this._propertiesWithCallbacks.includes(g)&&(this._propertiesWithCallbacks=this._propertiesWithCallbacks.filter(function(V){return V!==g}),this._children.length===0&&this._propertiesWithCallbacks.length===0&&this._parents.forEach(function(V){V.removeFromViewModelCallbacks(T)}))},S.prototype.addToViewModelCallbacks=function(g){var T=this;this._children.includes(g)||(this._children.push(g),this._parents.forEach(function(V){V.addToViewModelCallbacks(T)}))},S.prototype.removeFromViewModelCallbacks=function(g){var T=this;this._children.includes(g)&&(this._children=this._children.filter(function(V){return V!==g}),this._children.length===0&&this._propertiesWithCallbacks.length===0&&this._parents.forEach(function(V){V.removeFromViewModelCallbacks(T)}))},S.prototype.clearCallbacks=function(){this._propertiesWithCallbacks.forEach(function(g){g.clearCallbacks()})},S.prototype.propertyFromPath=function(g,T){var V=g.split("/");return this.propertyFromPathSegments(V,0,T)},S.prototype.viewModelFromPathSegments=function(g,T){var V=this.internalViewModelInstance(g[T]);return V!==null?T==g.length-1?V:V.viewModelFromPathSegments(g,T++):null},S.prototype.propertyFromPathSegments=function(g,T,V){var ie,he,Ee,Ne,Pe,Ue,Qe,tt,gt,_t,rn,nt,jt,Rt,pt,Wt,Pn,In;if(T<g.length-1){var Ke=this.internalViewModelInstance(g[T]);return Ke!==null?Ke.propertyFromPathSegments(g,T+1,V):null}var mt=null;switch(V){case _e.Number:if(mt=(he=(ie=this._runtimeInstance)===null||ie===void 0?void 0:ie.number(g[T]))!==null&&he!==void 0?he:null,mt!==null)return new we(mt,this);break;case _e.String:if(mt=(Ne=(Ee=this._runtimeInstance)===null||Ee===void 0?void 0:Ee.string(g[T]))!==null&&Ne!==void 0?Ne:null,mt!==null)return new ge(mt,this);break;case _e.Boolean:if(mt=(Ue=(Pe=this._runtimeInstance)===null||Pe===void 0?void 0:Pe.boolean(g[T]))!==null&&Ue!==void 0?Ue:null,mt!==null)return new Ie(mt,this);break;case _e.Color:if(mt=(tt=(Qe=this._runtimeInstance)===null||Qe===void 0?void 0:Qe.color(g[T]))!==null&&tt!==void 0?tt:null,mt!==null)return new ee(mt,this);break;case _e.Trigger:if(mt=(_t=(gt=this._runtimeInstance)===null||gt===void 0?void 0:gt.trigger(g[T]))!==null&&_t!==void 0?_t:null,mt!==null)return new z(mt,this);break;case _e.Enum:if(mt=(nt=(rn=this._runtimeInstance)===null||rn===void 0?void 0:rn.enum(g[T]))!==null&&nt!==void 0?nt:null,mt!==null)return new P(mt,this);break;case _e.List:if(mt=(Rt=(jt=this._runtimeInstance)===null||jt===void 0?void 0:jt.list(g[T]))!==null&&Rt!==void 0?Rt:null,mt!==null)return new K(mt,this);break;case _e.Image:if(mt=(Wt=(pt=this._runtimeInstance)===null||pt===void 0?void 0:pt.image(g[T]))!==null&&Wt!==void 0?Wt:null,mt!==null)return new X(mt,this);break;case _e.Artboard:if(mt=(In=(Pn=this._runtimeInstance)===null||Pn===void 0?void 0:Pn.artboard(g[T]))!==null&&In!==void 0?In:null,mt!==null)return new x(mt,this);break}return null},S.prototype.internalViewModelInstance=function(g){var T;if(this._viewModelInstances.has(g))return this._viewModelInstances.get(g);var V=(T=this._runtimeInstance)===null||T===void 0?void 0:T.viewModel(g);if(V!==null){var ie=new S(V,this);return ie.internalIncrementReferenceCount(),this._viewModelInstances.set(g,ie),ie}return null},S.prototype.number=function(g){var T=this.propertyFromPath(g,_e.Number);return T},S.prototype.string=function(g){var T=this.propertyFromPath(g,_e.String);return T},S.prototype.boolean=function(g){var T=this.propertyFromPath(g,_e.Boolean);return T},S.prototype.color=function(g){var T=this.propertyFromPath(g,_e.Color);return T},S.prototype.trigger=function(g){var T=this.propertyFromPath(g,_e.Trigger);return T},S.prototype.enum=function(g){var T=this.propertyFromPath(g,_e.Enum);return T},S.prototype.list=function(g){var T=this.propertyFromPath(g,_e.List);return T},S.prototype.image=function(g){var T=this.propertyFromPath(g,_e.Image);return T},S.prototype.artboard=function(g){var T=this.propertyFromPath(g,_e.Artboard);return T},S.prototype.viewModel=function(g){var T=g.split("/"),V=T.length>1?this.viewModelFromPathSegments(T.slice(0,T.length-1),0):this;return V!=null?V.internalViewModelInstance(T[T.length-1]):null},S.prototype.internalReplaceViewModel=function(g,T){var V;if(T.runtimeInstance!==null){var ie=((V=this._runtimeInstance)===null||V===void 0?void 0:V.replaceViewModel(g,T.runtimeInstance))||!1;if(ie){T.internalIncrementReferenceCount();var he=this.internalViewModelInstance(g);he!==null&&(he.removeParent(this),this._children.includes(he)&&(this._children=this._children.filter(function(Ee){return Ee!==he})),he.cleanup()),this._viewModelInstances.set(g,T),T.addParent(this)}return ie}return!1},S.prototype.replaceViewModel=function(g,T){var V,ie=g.split("/"),he=ie.length>1?this.viewModelFromPathSegments(ie.slice(0,ie.length-1),0):this;return(V=he==null?void 0:he.internalReplaceViewModel(ie[ie.length-1],T))!==null&&V!==void 0?V:!1},S.prototype.incrementReferenceCount=function(){var g;this._referenceCount++,(g=this._runtimeInstance)===null||g===void 0||g.incrementReferenceCount()},S.prototype.decrementReferenceCount=function(){var g;this._referenceCount--,(g=this._runtimeInstance)===null||g===void 0||g.decrementReferenceCount()},Object.defineProperty(S.prototype,"properties",{get:function(){var g;return((g=this._runtimeInstance)===null||g===void 0?void 0:g.getProperties().map(function(T){return l({},T)}))||[]},enumerable:!1,configurable:!0}),S.prototype.internalIncrementReferenceCount=function(){this._referenceCount++},S.prototype.cleanup=function(){var g=this;if(this._referenceCount--,this._referenceCount<=0){this._runtimeInstance=null,this.clearCallbacks(),this._propertiesWithCallbacks=[],this._viewModelInstances.forEach(function(ie){ie.cleanup()}),this._viewModelInstances.clear();var T=_([],this._children,!0);this._children.length=0;var V=_([],this._parents,!0);this._parents.length=0,T.forEach(function(ie){ie.removeParent(g)}),V.forEach(function(ie){ie.removeFromViewModelCallbacks(g)})}},S}(),ue=function(){function S(g,T){this.callbacks=[],this._viewModelInstanceValue=g,this._parentViewModel=T}return S.prototype.on=function(g){this.callbacks.length===0&&this._viewModelInstanceValue.clearChanges(),this.callbacks.includes(g)||(this.callbacks.push(g),this._parentViewModel.addToPropertyCallbacks(this))},S.prototype.off=function(g){g?this.callbacks=this.callbacks.filter(function(T){return T!==g}):this.callbacks.length=0,this.callbacks.length===0&&this._parentViewModel.removeFromPropertyCallbacks(this)},S.prototype.internalHandleCallback=function(g){},S.prototype.handleCallbacks=function(){var g=this;this._viewModelInstanceValue.hasChanged&&this.callbacks.forEach(function(T){g.internalHandleCallback(T)})},S.prototype.clearChanges=function(){this._viewModelInstanceValue.clearChanges()},S.prototype.clearCallbacks=function(){this.callbacks.length=0},Object.defineProperty(S.prototype,"name",{get:function(){return this._viewModelInstanceValue.name},enumerable:!1,configurable:!0}),S}(),ge=function(S){h(g,S);function g(T,V){return S.call(this,T,V)||this}return Object.defineProperty(g.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(T){this._viewModelInstanceValue.value=T},enumerable:!1,configurable:!0}),g.prototype.internalHandleCallback=function(T){T(this.value)},g}(ue),we=function(S){h(g,S);function g(T,V){return S.call(this,T,V)||this}return Object.defineProperty(g.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(T){this._viewModelInstanceValue.value=T},enumerable:!1,configurable:!0}),g.prototype.internalHandleCallback=function(T){T(this.value)},g}(ue),Ie=function(S){h(g,S);function g(T,V){return S.call(this,T,V)||this}return Object.defineProperty(g.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(T){this._viewModelInstanceValue.value=T},enumerable:!1,configurable:!0}),g.prototype.internalHandleCallback=function(T){T(this.value)},g}(ue),z=function(S){h(g,S);function g(T,V){return S.call(this,T,V)||this}return g.prototype.trigger=function(){return this._viewModelInstanceValue.trigger()},g.prototype.internalHandleCallback=function(T){T()},g}(ue),P=function(S){h(g,S);function g(T,V){return S.call(this,T,V)||this}return Object.defineProperty(g.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(T){this._viewModelInstanceValue.value=T},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"valueIndex",{get:function(){return this._viewModelInstanceValue.valueIndex},set:function(T){this._viewModelInstanceValue.valueIndex=T},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"values",{get:function(){return this._viewModelInstanceValue.values},enumerable:!1,configurable:!0}),g.prototype.internalHandleCallback=function(T){T(this.value)},g}(ue),K=function(S){h(g,S);function g(T,V){return S.call(this,T,V)||this}return Object.defineProperty(g.prototype,"length",{get:function(){return this._viewModelInstanceValue.size},enumerable:!1,configurable:!0}),g.prototype.addInstance=function(T){T.runtimeInstance!=null&&(this._viewModelInstanceValue.addInstance(T.runtimeInstance),T.addParent(this._parentViewModel))},g.prototype.addInstanceAt=function(T,V){return T.runtimeInstance!=null&&this._viewModelInstanceValue.addInstanceAt(T.runtimeInstance,V)?(T.addParent(this._parentViewModel),!0):!1},g.prototype.removeInstance=function(T){T.runtimeInstance!=null&&(this._viewModelInstanceValue.removeInstance(T.runtimeInstance),T.removeParent(this._parentViewModel))},g.prototype.removeInstanceAt=function(T){this._viewModelInstanceValue.removeInstanceAt(T)},g.prototype.instanceAt=function(T){var V=this._viewModelInstanceValue.instanceAt(T);if(V!=null){var ie=new te(V,this._parentViewModel);return ie}return null},g.prototype.swap=function(T,V){this._viewModelInstanceValue.swap(T,V)},g.prototype.internalHandleCallback=function(T){T()},g}(ue),ee=function(S){h(g,S);function g(T,V){return S.call(this,T,V)||this}return Object.defineProperty(g.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(T){this._viewModelInstanceValue.value=T},enumerable:!1,configurable:!0}),g.prototype.rgb=function(T,V,ie){this._viewModelInstanceValue.rgb(T,V,ie)},g.prototype.rgba=function(T,V,ie,he){this._viewModelInstanceValue.argb(he,T,V,ie)},g.prototype.argb=function(T,V,ie,he){this._viewModelInstanceValue.argb(T,V,ie,he)},g.prototype.alpha=function(T){this._viewModelInstanceValue.alpha(T)},g.prototype.opacity=function(T){this._viewModelInstanceValue.alpha(Math.round(Math.max(0,Math.min(1,T))*255))},g.prototype.internalHandleCallback=function(T){T(this.value)},g}(ue),X=function(S){h(g,S);function g(T,V){return S.call(this,T,V)||this}return Object.defineProperty(g.prototype,"value",{set:function(T){var V;this._viewModelInstanceValue.value((V=T==null?void 0:T.nativeImage)!==null&&V!==void 0?V:null)},enumerable:!1,configurable:!0}),g.prototype.internalHandleCallback=function(T){T()},g}(ue),x=function(S){h(g,S);function g(T,V){return S.call(this,T,V)||this}return Object.defineProperty(g.prototype,"value",{set:function(T){this._viewModelInstanceValue.value(T.nativeArtboard)},enumerable:!1,configurable:!0}),g.prototype.internalHandleCallback=function(T){T()},g}(ue),G=function(S){return d(void 0,void 0,void 0,function(){var g,T,V;return f(this,function(ie){switch(ie.label){case 0:return g=new Request(S),[4,fetch(g)];case 1:return T=ie.sent(),[4,T.arrayBuffer()];case 2:return V=ie.sent(),[2,V]}})})},L=function(S){return typeof S=="string"?[S]:S instanceof Array?S:[]},D={EventManager:Q,TaskQueueManager:M},Z=function(S){return d(void 0,void 0,void 0,function(){var g,T,V;return f(this,function(ie){switch(ie.label){case 0:return g=new Promise(function(he){return E.getInstance(function(Ee){Ee.decodeAudio(S,he)})}),[4,g];case 1:return T=ie.sent(),V=new c.AudioWrapper(T),c.finalizationRegistry.register(V,T),[2,V]}})})},me=function(S){return d(void 0,void 0,void 0,function(){var g,T,V;return f(this,function(ie){switch(ie.label){case 0:return g=new Promise(function(he){return E.getInstance(function(Ee){Ee.decodeImage(S,he)})}),[4,g];case 1:return T=ie.sent(),V=new c.ImageWrapper(T),c.finalizationRegistry.register(V,T),[2,V]}})})},de=function(S){return d(void 0,void 0,void 0,function(){var g,T,V;return f(this,function(ie){switch(ie.label){case 0:return g=new Promise(function(he){return E.getInstance(function(Ee){Ee.decodeFont(S,he)})}),[4,g];case 1:return T=ie.sent(),V=new c.FontWrapper(T),c.finalizationRegistry.register(V,T),[2,V]}})})}})(),o})())}(id)),id.exports}var Bd=U4();const j4=B4(Bd),W4=LE({__proto__:null,default:j4},[Bd]),S1={fontMap:{"RoslindaleDisplayCondensed-Light":"/rive/RoslindaleDisplayCondensed-Light-3462095.ttf"},imageMap:{}},q4={__name:"RivePlayer",props:{srcAll:{default:{src:"",artboard:"Main",animation:"Main"},required:!0},assets:{default:S1},textRuns:{default:{}},fit:{default:"contain"},alignment:{default:"center"},stateMachines:{default:null},autoplay:{default:!0},fpsCounter:{default:!1},logInstance:{default:!1}},emits:["load"],setup(t,{expose:e,emit:n}){const r=t,i=n,{Rive:o,Layout:s}=W4,a=j(null),u=j(null),c=ba(null),h=ba([]),l=j(!1),d=j(0),f=j(""),_=j("");let p=[],b=null;Fe(()=>a.value&&u.value,()=>N());function y(){var U,oe;const B=Math.min(window.devicePixelRatio,2);(U=c.value)==null||U.resizeDrawingSurfaceToCanvas(B),(oe=c.value)==null||oe.startRendering()}function w(){var B;p=[],(B=c.value)==null||B.cleanup(),b==null||b.disconnect(),b=null,c.value=null,l.value=!1}function R(){const B=$();Object.keys(B).forEach(U=>{B[U]})}function E(){const B=c.value;r.textRuns&&Object.keys(r.textRuns).forEach(U=>{B==null||B.setTextRunValue(U,r.textRuns[U])})}function A(){return r.assets||S1}function C(B){var oe;const U=((oe=A().fontMap)==null?void 0:oe[B.name])||null;if(!U){console.warn(`rive: ${r.srcAll.src} :: missing font asset: ${B.name}`);return}fetch(U).then(async le=>{const q=await Bd.decodeFont(new Uint8Array(await le.arrayBuffer()));B.setFont(q),q.unref()})}function I(B){var oe,le;const U=((le=(oe=A())==null?void 0:oe.imageMap)==null?void 0:le[B.name])||null;if(!U){console.warn(`rive: ${r.srcAll.src} :: missing image asset: ${B.name}`);return}fetch(U).then(async q=>{const be=await Bd.decodeImage(new Uint8Array(await q.arrayBuffer()));B.setRenderImage(be),be.unref()})}function $(){var ke;const B=c.value;if(!B)return null;const U=B.animator.animations[0].animation.duration,oe=B.animator.animations[0].animation.fps,le=U/oe,q=(ke=c.value.contents)==null?void 0:ke.artboards.map(Se=>Se.name),be=c.value.animationNames;return{src:c.value.src,rive:c.value,artboardNames:q,animationNames:be,artboardHeight:B._artboardHeight,artboardWidth:B._artboardWidth,ratio:B._artboardWidth/B._artboardHeight,fps:oe,durationFrames:U,durationSeconds:le,assetsRequested:p}}function N(B=!1){w();const U=r.logInstance||B;U&&console.group("RIVE INFO"),f.value=B?null:r.srcAll.animation||"Main",_.value=B?null:r.srcAll.artboard||"Main";let oe=!1;U&&r.srcAll.src,c.value=new o({src:r.srcAll.src,artboard:_.value,animation:f.value,canvas:u.value,layout:new s({fit:r.fit,alignment:r.alignment}),autoplay:r.autoplay,assetLoader:(le,q)=>{const be={name:le.name,fileExtension:le.fileExtension,cdnUuid:le.cdnUuid,isFont:le.isFont,isImage:le.isImage,bytes:q};return p.push(be),le.cdnUuid.length>0||q.length>0?!1:le.isFont?(C(le),!0):le.isImage?(I(le),!0):!1},onLoad:()=>{if(oe)return;y(),h.value=c.value.stateMachineInputs(r.stateMachines),r.fpsCounter&&c.value.enableFPSCounter(),U&&(B&&console.warn(`ERROR IN RIVE CONFIGURATION,: ${r.srcAll.src}, animation: ${r.srcAll.animation}, artboard: ${r.srcAll.artboard}`),(r.logInstance||B)&&R(),console.groupEnd());const le=$();d.value=le.durationSeconds,E(),l.value=!0,i("load")},onLoadError:le=>{B||(oe=!0,setTimeout(()=>N(!0),500))}}),b=new ResizeObserver(y),b.observe(u.value)}function W(B,U=null){var oe,le;U=U||f.value,(oe=c.value)==null||oe.scrub(U,B),(le=c.value)==null||le.startRendering()}let ne=null;function F(B,U=null){var le,q,be;if(U=U||f.value,B===ne)return;const oe=Li(B)*d.value;(le=c.value)==null||le.pause(U),(q=c.value)==null||q.scrub(U,oe),(be=c.value)==null||be.startRendering(),ne=B}function Q(B=null){var U;B=B||f.value,(U=c.value)==null||U.play(B)}function M(B=null){var U;B=B||f.value,(U=c.value)==null||U.pause(B)}function H(B=null){var U;B=B||f.value,(U=c.value)==null||U.stop(B)}return Et(()=>{setTimeout(()=>{a.value=!0},50)}),Ft(()=>{w()}),e({animation:f,loaded:l,resize:y,instance:c,inputs:h,scrub:W,play:Q,pause:M,stop:H,progress:F,getInfo:$}),(B,U)=>(se(),ce("canvas",{ref_key:"canvasRef",ref:u,class:"RivePlayer"},null,512))}},Dk=ft(q4,[["__scopeId","data-v-667a266b"]]),ki=5.6;class z4{constructor(){Oe(this,"desktop",{elements:{heroRect:null},time:{swirlEnd:ki,graphStart:ki-.15,imageStackStart:ki+2,quoteStart:ki+4.5,keyAreaStart:ki+5.5,approachStart:ki+15.3}});Oe(this,"mobile",{elements:{heroRect:null},time:{swirlEnd:ki,graphStart:ki-.15,imageStackStart:ki+2,quoteStart:ki+4.5,keyAreaStart:ki+5.5,approachStart:ki+15.3}})}}const mr=new z4;function G4(t,e=0,n=1){return t<e?e:t>n?n:t}class Nk{constructor({decel:e=.4,accel:n=.06,maxSpeed:r=.2}={}){this.maxSpeed=r,this.decel=e,this.accel=n,this.to=this.current=this.velocity=0}set(e){e=e===void 0?this.to:e,this.to=this.current=e,this.velocity=0}update(e){return this.to=e,this.process()}process(){const n=(this.to-this.current)*this.accel;return this.velocity+=n,this.velocity*=1-this.decel,this.velocity=G4(this.velocity,0-this.maxSpeed,this.maxSpeed),this.current+=this.velocity,this.current}}const Oi=function(t){return t*=2,t<1?.5*t*t*t:.5*((t-=2)*t*t+2)},yc=function(t){return 1-Math.cos(t*Math.PI/2)},qo=function(t){return Math.sin(t*Math.PI/2)},Ll=function(t){return .5*(1-Math.cos(Math.PI*t))};function $s(t,e=.3333){return t<e?1/(2*e)*t*t:t-e/2}const Y4="/assets/desktop-1500-1080-homepage-approach%20section-refresh-v8-CGbbtDTB.riv",K4="/assets/mobile-375-520-homepage-approach%20section-refresh-v10-57ftYjte.riv",X4={desktop:{rive:Y4,chapters:[{title:"DISCOVER",subtitle:`Our Ventures
  innovation approach `,body:"Based on a clear investment thesis, we discover promising technologies and leverage our unique resources and talent to build companies from the ground.up."},{title:"DEVELOP",subtitle:null,body:"Once the technology has been validated, we accelerate the development of breakthrough innovations and build resilient companies."},{title:"DEPLOY",subtitle:null,body:"We focus on driving down the costs and eliminating green premiums of clean technologies so they can be deployed globally"}]},mobile:{rive:K4,chapters:[{title:"DISCOVER",subtitle:`Our Ventures
  innovation approach `,body:"Based on a clear investment thesis, we discover promising technologies and leverage our unique resources and talent to build companies from the ground.up."},{title:"DEVELOP",subtitle:null,body:"Once the technology has been validated, we accelerate the development of breakthrough innovations and build resilient companies."},{title:"DEPLOY",subtitle:null,body:"We focus on driving down the costs and eliminating green premiums of clean technologies so they can be deployed globally"}]}},{gsap:Nc,SplitText:h_}=gn(),zi=Math.PI*2;function Wr(t){Object.values(t).forEach(e=>{var n;return(n=e.timeline)==null?void 0:n.kill()})}function p_(t){return Q4(Math.sin(t*43758.5453123)*43758.5453123)}function Q4(t){return t-Math.floor(t)}function fr(t){return{baseRadius:1,radiusWander:.5,radiusFreq:.2,angleSpeed:1,angleWander:.5,angleFreq:.5,seed:p_(t*.01)}}function Hk(t,e,{baseRadius:n=0,radiusWander:r=1,radiusFreq:i=.2,angleSpeed:o=1,angleWander:s=.5,angleFreq:a=.5,seed:u=0}={}){const c=t,h=u*zi,l=u*zi,d=(1-u)*zi,f=n+Math.sin(c*i+h)*r;let _=c*o+Math.sin(c*a+l)*s;_-=c+.75*o*1.4+Math.sin(c*a+l*1.3)*s*.5;let p=c*o+Math.cos(c*a+d)*s;p-=c+1.75*o*1.2+Math.cos(c*a+d*1.5)*s*.65;const b=Math.cos(_)*f*e,y=Math.sin(_)*f*e,w=Math.sin(p)*f*e;return[b,y,w]}function vt(t,e,n){return t>=e&&t<n}function jl(t,e){return t.forEach(n=>{const r=`<${n}>`,i=`</${n}>`;e.includes(r)&&!e.includes(i)&&(e=e+i),e.includes(i)&&!e.includes(r)&&(e=r+e)}),e}function Bk({timeline:t,lineElementsArray:e}={}){const n=t;let r=.25;e.forEach(i=>{var a;const o={duration:.6,y:0,ease:"circ.out"};n.set(i,{y:50},0),n.to(i,o,r),(a=i.wordSplit)==null||a.revert(),i.wordSplit=h_.create(i,{type:"words"});const s={duration:.001,autoAlpha:1,stagger:o.duration*.8/i.wordSplit.words.length};n.set(i.wordSplit.words,{autoAlpha:0},0),Nc.set(i.wordSplit.words,{autoAlpha:0},0),n.to(i.wordSplit.words,s,r+.01),r+=.6})}function ks({timeline:t,lineElementsArray:e,outroOffset:n=.01,x:r=100}={}){const i=t;let o=.25;e.forEach(c=>{var d;const h={duration:.6,x:0,ease:"circ.out"};i.set(c,{x:r},0),i.to(c,h,o),(d=c.wordSplit)==null||d.revert(),c.wordSplit=h_.create(c,{type:"words"});const l={duration:.001,autoAlpha:1,stagger:h.duration*.8/c.wordSplit.words.length};i.set(c.wordSplit.words,{autoAlpha:0},0),Nc.set(c.wordSplit.words,{autoAlpha:0},0),i.to(c.wordSplit.words,l,o+.01),o+=.6});const s=i.duration();o=n+s+.01,e.forEach(c=>{i.to(c.wordSplit.words,{duration:.001,autoAlpha:0,stagger:.1},o),o+=.1});const a=i.duration();return s/a}function Vk({timeline:t,lineElementsArray:e,outroOffset:n=.01,x:r=100}={}){const i=t;let o=.25;e.forEach(h=>{var f;const l={duration:.6,x:0,ease:"circ.out"};i.set(h,{x:r},0),i.to(h,l,o),(f=h.wordSplit)==null||f.revert(),h.wordSplit=h_.create(h,{type:"words"});const d={duration:.001,autoAlpha:1,stagger:l.duration*.8/h.wordSplit.words.length};i.set(h.wordSplit.words,{autoAlpha:0},0),Nc.set(h.wordSplit.words,{autoAlpha:0},0),i.to(h.wordSplit.words,d,o+.01),o+=.6});const s=i.duration();o=n+s;const a="circ.in";e.forEach(h=>{i.to(h,{duration:.3,x:-r*.5,ease:a},o),i.to(h,{duration:.001,autoAlpha:0},o+.3),o+=.2});const u=i.duration();return s/u}function Th({timeline:t,lineElementsArray:e,x:n=100}={}){const r=t;let i=0;e.forEach((u,c)=>{const h={duration:1.5-c*.2,x:0,ease:"circ.out"};r.set(u,{x:n,autoAlpha:0},0),Nc.set(u,{x:n,autoAlpha:0},0),r.to(u,h,i),r.to(u,{duration:0,autoAlpha:1},i+.05),i+=.3});const o=r.duration();e.forEach(u=>{r.to(u,{duration:.5,autoAlpha:0},o+.01)});const s=r.duration();return o/s}function Vd({timeline:t,lineElementsArray:e,lineDuration:n,startTime:r}={}){const i=t;let o=r;e.forEach((s,a)=>{const u={duration:n,y:0,ease:"circ.out"};i.set(s,{y:"11cqh",autoAlpha:0},0),Nc.set(s,{y:"11cqh",autoAlpha:0},0),i.to(s,u,o),i.to(s,{duration:0,autoAlpha:1},o+n*.3),o+=n*.3})}function Uk({timeline:t,lineElementsArray:e,lineDuration:n,startTime:r}={}){const i=t;let o=r;e.forEach((s,a)=>{const u={duration:n,y:"-11cqh",ease:"circ.in"};i.to(s,u,o),i.to(s,{duration:0,autoAlpha:0},o+n*.8),o+=n*.1})}function jk(t,e=.5){if(!Array.isArray(t)||t.length<2)throw new Error("points must be an array of [input, output] pairs with length >= 2");const n=t.map(o=>o[0]),r=t.map(o=>o[1]);function i(o,s,a,u,c){const h=(a-o)*e,l=(u-s)*e,d=c*c,f=d*c;return(2*f-3*d+1)*s+(f-2*d+c)*h+(-2*f+3*d)*a+(f-d)*l}return function(s){let a=0;for(;a<n.length-1&&s>n[a+1];)a++;for(;a>0&&s<n[a];)a--;const u=r[Math.max(a-1,0)],c=r[a],h=r[Math.min(a+1,r.length-1)],l=r[Math.min(a+2,r.length-1)],d=n[a],f=n[Math.min(a+1,n.length-1)],_=(s-d)/(f-d);return i(u,c,h,l,_)}}class J4{constructor(){Oe(this,"_update",e=>{const n=e-this._prevElapsed;this._prevElapsed=e;let r=this._fns.length;for(;r--;)this._fns[r]&&this._fns[r]({elapsed:e,delta:n});this.rafId=ct.isSSR?null:window.requestAnimationFrame(this._update)});Oe(this,"_updateWithStats",e=>{const n=e-this._prevElapsed;this._prevElapsed=e,this.stats.begin();const r=this._fns.length;for(let i=0;i<r;i++)this._fns[i]&&this._fns[i]({elapsed:e,delta:n});this.stats.end(),this.rafId=ct.isSSR?null:window.requestAnimationFrame(this._updateWithStats)});Oe(this,"start",()=>{this.running||(this.running=!0,this.rafId=ct.isSSR?null:window.requestAnimationFrame(this._update))});Oe(this,"stop",()=>{window.cancelAnimationFrame(this.rafId),this.running=!1});Oe(this,"add",(e,n=-1)=>typeof e=="function"?this._fns.includes(e)?!1:(this._fns.push(e),e._callback_order=n===-1?1e6:n,n>-1&&this._fns.sort((r,i)=>r._callback_order-i._callback_order),!0):!1);Oe(this,"remove",e=>{const n=this._fns.indexOf(e);n>=0&&this._fns.splice(n,1)});this.running=!1,this.rafId=null,this._fns=[],this._prevElapsed=0}async startWithStats(){const e=await Gr(()=>import("./stats.min-NHJTY3Iq.js").then(n=>n.s),[]);this.stats=new e.default,this.stats.showPanel(0),this.stats.dom.id="stats",ct.isClient&&document.querySelector("html").appendChild(this.stats.dom),!this.running&&(this.running=!0,this.rafId=ct.isSSR?null:window.requestAnimationFrame(this._updateWithStats))}}const qm=new J4;function So(t=()=>{},e={}){const n=La({autoplay:!0,delegate:null,...e}),r=e.order||-1,i=n.delegate!==null,o=j(i?n.delegate:n.autoplay),s=j(!0),a=l=>{t({...l,isFirstTick:s.value}),s.value=!1},u=()=>{i||(o.value=!0),qm.add(a,r)},c=()=>{i||(o.value=!1),qm.remove(a)},h=()=>{i&&(o.value=n.delegate),o.value?u():c()};return Fe(()=>n.delegate,()=>h()),Et(()=>h()),Yb(()=>h()),Rc(()=>c()),i?{isActive:o,isFirstTick:s}:{isActive:o,isFirstTick:s,pause:c,resume:u}}const Z4={key:1,class:"HomeApproach-inner"},eF={key:0,ref:"chaptersRef",class:"HomeApproach-chapters"},tF={class:"HomeApproach-chapter-inner"},nF={__name:"HomeApproachMo",props:{block:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=Ae(()=>n.block),o=Ae(()=>i.value.chapters),s={radar:"Loop Radar",smallDots:"Init Loop",largeDot:"Loop B",whiteDot:"Loop C",main:"main"},a=Ae(()=>{var fe;return{src:((fe=i.value)==null?void 0:fe.rive)||"",artboard:"main",animation:s.main}}),u={dots:.307,bigDot:.4756,premium:.665},c={dots:[u.dots,u.dots+.04],bigDot:[u.bigDot,u.bigDot+.01],premium:[u.premium-0,1]},h=[u.dots,u.bigDot,u.premium],l=[c.dots[1],c.bigDot[1],c.premium[1]],d=jk([[-1,0],[0,h[0]],[.2,l[0]],[1,h[1]],[1.2,l[1]],[2,h[2]],[3,1]],.4),f=j(null),_=j(null),p={decel:.8,accel:.5,maxSpeed:.01};new Nk(p);const b=j(!1),y=j(!1),w=j(!1),R=j(!1),E={[s.radar]:0,[s.smallDots]:0,[s.largeDot]:0,[s.whiteDot]:0},A=j(!1);function C(){Object.values(s).forEach(fe=>{f.value.stop(fe)}),A.value=!0,r("load"),ke()}const I=yn(),$=[],N=[],W=j(!1),ne=j(0);j(0);const F={indexEased:0,indexLinear:0},Q=j(null),M=j(!1),{gsap:H}=gn(),B={main:{timeline:null}};function U(){const fe=B.main;fe.timeline=H.timeline({paused:!0}),fe.timeline.set(F,{indexEased:-1},0),fe.timeline.set(F,{indexLinear:-1},0),fe.timeline.to(F,{indexLinear:3,ease:"linear",duration:1},0);const _e=1/4,te=_e*.1;for(let ue=0;ue<4;ue++)fe.timeline.to(F,{indexEased:ue,ease:"sine.inOut",duration:_e-te},_e*ue)}function oe(){const fe=f.value,{indexLinear:_e}=F,te=d(_e);fe&&fe.progress(te),b.value=vt(te,...c.dots),y.value=vt(te,...c.dots),w.value=vt(te,...c.bigDot),R.value=vt(te,...c.premium)}function le(fe,_e){var te,ue,ge;_e?((te=f.value)==null||te.play(fe),E[fe]=setInterval(()=>{var we;return(we=f.value)==null?void 0:we.play(fe)},3e3)):(clearInterval(E[fe]),(ue=f.value)==null||ue.pause(fe),(ge=f.value)==null||ge.scrub(0,fe))}Fe(()=>b.value&&A.value,fe=>le(s.radar,fe)),Fe(()=>y.value&&A.value,fe=>le(s.smallDots,fe)),Fe(()=>w.value&&A.value,fe=>le(s.largeDot,fe)),Fe(()=>R.value&&A.value,fe=>le(s.whiteDot,fe));function q(){var Ie;const fe=Je.lvh,_e=I.scrollSubPixel/fe,te=mr.mobile.time.approachStart,ue=[te,te+4.2],ge=te+4.8,we=B.main;if(M.value=vt(_e,ue[0],ge),M.value){(Ie=we.timeline)==null||Ie.progress(We(_e,ue[0],ue[1]));const z=$s(We(_e,ue[0]+.8,ue[0]),.2)*fe*.5;_.value.style.translate=`0px ${z}px`;const P=$s(We(_e,ge-1,ge),.2)*-fe;Q.value.style.translate=`0px ${P}px`}}function be(){const fe=Je.lvh;I.scrollSubPixel/fe;const{indexEased:_e}=F;ne.value=Math.round(_e);for(let te=0;te<$.length;te++){let ue=$[te];const ge=0;let we=Math.min(_e,2)*-fe;we+=te*fe,ue.style.translate=`${ge}px ${we}px`,ue=N[te];const Ie=We(_e,te-.4,te-.25);ue.style.opacity=Ie}}function ke(){W.value&&(q(),M.value&&be())}function Se(){M.value&&oe()}function ae(){ke()}return Fe(()=>I.scrollSubPixel,()=>{ke()}),xn(ae),So(Se),Et(()=>{Ot(()=>{W.value=!0,U(),ke()})}),Ft(()=>{W.value=!1}),(fe,_e)=>{var ue;const te=Dk;return se(),ce("div",{ref_key:"rootRef",ref:Q,class:rt(["HomeApproach",{visible:pe(M)}])},[pe(a)?(se(),ce("div",{key:0,ref_key:"riveParentRef",ref:_,class:"HomeApproach-rive-container"},[He(te,{ref_key:"rivePlayerRef",ref:f,"src-all":pe(a),"log-instance":!1,autoplay:!0,onLoad:C},null,8,["src-all"])],512)):it("",!0),pe(a)?(se(),ce("div",Z4,[(ue=pe(o))!=null&&ue.length?(se(),ce("div",eF,[(se(!0),ce(Ye,null,lt(pe(o),(ge,we)=>(se(),ce("div",{ref_for:!0,ref:Ie=>$[we]=Ie,key:`chapter-${we}`,class:"HomeApproach-chapter"},[Y("div",tF,[ge.title?(se(),ce("div",{key:0,ref_for:!0,ref:Ie=>Ie,class:"HomeApproach-title"},De(ge.title),513)):it("",!0),ge.subtitle?(se(),ce("div",{key:1,ref_for:!0,ref:Ie=>Ie,class:"HomeApproach-subtitle"},De(ge.subtitle),513)):it("",!0),ge.body?(se(),ce("div",{key:2,ref_for:!0,ref:Ie=>N[we]=Ie,class:"HomeApproach-body"},De(ge.body),513)):it("",!0)])]))),128))],512)):it("",!0)])):it("",!0)],2)}}},rF=ft(nF,[["__scopeId","data-v-7c969422"]]);let iF=0;const oF=5e3;function sF(){const t=j(!1),e=iF++,n=e*oF;let r=null;function i(){if(n===0){t.value=!0;return}r=setTimeout(()=>{t.value=!0},n)}function o(){r&&clearTimeout(r)}return{canLoad:t,start:i,cancel:o,slot:e,delay:n}}const aF={class:"InlineVideo"},lF=["src"],uF=["src"],cF={__name:"InlineVideo",props:{videoUrl:{type:String,required:!0},webmUrl:{type:String,required:!1},imageUrl:{type:String,required:!0},fallbackToStatic:{type:Boolean,default:!1}},emits:["imgload","videoplay"],setup(t,{expose:e,emit:n}){const r=t,i=n,o={imgLoaded:"imgload",videoPlaying:"videoplay"};let s;const a=j(null),u=j(null),c=j(!1),h=j(!1),l=j(!1),{gsap:d}=gn(),{canLoad:f,start:_,cancel:p}=sF();function b(){c.value=!0,i(o.imgLoaded)}async function y(){try{await s.play()}catch(A){console.warn("Autoplay failed:",A.name,A.message)}}Fe(()=>r.fallbackToStatic,A=>{u.value&&(d.killTweensOf(u.value),d.set(u.value,{autoAlpha:A?1:0}))}),Fe(()=>h.value&&u.value,A=>{A&&(i(o.videoPlaying),d.to(u.value,{duration:.2,autoAlpha:0}))});const w=Ae(()=>{const A=ct.android||ct.windows,C=r.webmUrl||r.videoUrl;return A?C:r.videoUrl});function R(){!h.value&&s&&s.currentTime>0&&(h.value=!0,s==null||s.removeEventListener("timeupdate",R))}function E(){Ot(()=>{s=a.value,s&&(s.muted=!0,s.addEventListener("timeupdate",R),s.readyState>=3?y():s.addEventListener("canplay",y,{once:!0}))})}return Fe(f,A=>{A&&E()}),Et(()=>{l.value=!0,_()}),Ft(()=>{l.value=!1,p(),s==null||s.removeEventListener("timeupdate",R)}),e({isImgLoaded:c,isVideoPlaying:h}),(A,C)=>(se(),ce("div",aF,[!t.fallbackToStatic&&pe(f)?(se(),ce("video",{key:0,ref_key:"videoRef",ref:a,class:"InlineVideo-video",src:pe(w),preload:"auto",playsinline:"","webkit-playsinline":"",autoplay:"",muted:"",loop:"",disablepictureinpicture:""},null,8,lF)):it("",!0),Y("img",{ref_key:"imageRef",ref:u,src:t.imageUrl,class:"InlineVideo-image",alt:"video placeholder",onLoad:b},null,40,uF)]))}},Wl=ft(cF,[["__scopeId","data-v-ee1f6f48"]]),fF={__name:"KeyAreasBtnLabel",props:{currentIndex:{type:Number,default:0},itemIndex:{type:Number,default:0},label:{type:String,default:"this is default"}},setup(t,{expose:e}){const n=t,{gsap:r}=gn(),i=j(null),o=j(!1),s=[];let a,u=20;const c=Ae(()=>{var b;return(b=n.label)==null?void 0:b.split(" ")}),h=Ae(()=>n.itemIndex===n.currentIndex,{});Fe(()=>h.value&&o.value,b=>{!b&&l(),b&&d()},{immediate:!0});function l(){if(!o.value)return;a==null||a.kill(),a=r.timeline(),a.to(s,{duration:.5,stagger:.05,y:-u,ease:"sine.in"})}function d(){if(!o.value)return;a==null||a.kill(),a=r.timeline();const b=a,y="sine.out";b.set(s,{y:u}),b.to(s,{delay:.1,duration:.5,stagger:.05,y:0,ease:y})}function f(){i.value&&(u=i.value.getBoundingClientRect().height*2)}xn(f);function _(){h.value||r.set(s,{y:u})}Et(()=>{Ot(()=>{o.value=!0,f(),_()})}),Ft(()=>{o.value=!1});function p(){var b;return((b=i.value)==null?void 0:b.getBoundingClientRect().width)||-1}return e({getLabelWidth:p}),(b,y)=>(se(),ce("div",{class:rt(["KeyAreasBtnLabel",{isCurrentIndex:pe(h)}])},[Y("div",{ref_key:"labelRef",ref:i,class:"KeyAreasBtnLabel-label"},[(se(!0),ce(Ye,null,lt(pe(c),(w,R)=>(se(),ce("div",{key:`KeyAreasBtnLabel-word-${R}`,ref_for:!0,ref:E=>s[R]=E,class:"KeyAreasBtnLabel-word"},De(w),1))),128))],512)],2))}},dF=ft(fF,[["__scopeId","data-v-e196f883"]]),hF={class:"KeyAreasBtn-labels-wrap"},pF={class:"KeyAreasBtn-labels"},mF={class:"KeyAreasBtn-labels-wrap"},gF={class:"KeyAreasBtn-labels"},_F={__name:"KeyAreasBtn",props:{labelIndex:{type:Number,default:0},areas:{type:Array,default:[]}},setup(t){const e=t,n=Hs(),r=yn(),i=qr(),{gsap:o}=gn(),s=[],a=j(null),u=j(null),c=j(null),h=j(null),l=j(null),d=j(!1),f=j(!1),_=j(!1),p={roll:{timeline:null},width:{timeline:null}};function b(){const H=Je.lvh,B=r.scrollSubPixel/H,U=mr.desktop.time.keyAreaStart;if(d.value=vt(B,U+3,U+10.5),d.value){let oe,le;vt(B,U+2.8,U+3.3)?(le=yc(We(B,U+3.2,U+2.9))*H*.15,oe=qo(We(B,U+2.9,U+3.2))):oe=1,u.value.style.translate=`0px ${le}px`,u.value.style.opacity=oe;const q=Ll(We(B,U+9.5,U+10.5))*H*.13;a.value.style.translate=`0px ${q}px`}}function y(){f.value=!0}function w(){f.value=!1}function R(H){var U;return(U=s[H])==null?void 0:U.getLabelWidth()}const E=j(270);Fe(E,H=>{_.value&&(c.value.style.width=`${H}px`,l.value.style.width=`${H}px`)});function A(H){var oe;const B=p.roll;(oe=B.timeline)==null||oe.kill(),B.timeline=o.timeline(),B.timeline.to(E,{value:H,duration:.3,ease:"sine.inOut"},.1)}function C(){const H=N.value;if(H>-1){const B=R(H),U=Je.landscape?56:32,oe=Math.max(B+U,140);A(oe)}}function I(){var B;const H=p.roll;(B=H.timeline)==null||B.kill(),H.timeline=o.timeline(),H.timeline.set(h.value,{y:"100%"},0),H.timeline.to(h.value,{duration:.45,ease:"sine.inOut",y:0},.01)}function $(H=.45){var U;const B=p.roll;(U=B.timeline)==null||U.kill(),B.timeline=o.timeline(),B.timeline.to(h.value,{duration:H,ease:"sine.inOut",y:"-100%"})}const N=Ae(()=>f.value?-1:e.labelIndex,{});Fe(N,H=>{C()});const W=Ae(()=>f.value?e.labelIndex:-1,{});Fe(f,H=>{ct.touchScreen||(H&&I(),!H&&$())});const ne=Ae(()=>{var H,B;if((H=e.areas)!=null&&H.length){const U=Li(e.labelIndex,0,e.areas.length-1);return((B=e.areas[U])==null?void 0:B.url)||"no modal url"}return""});function F(){if(ne.value.startsWith("/")){n.push(ne.value);return}i.setModalState(xr.CONTENT+ne.value)}function Q(){_.value&&b()}function M(){d.value=!1,$(0),Q(),C()}return Fe(()=>r.scrollSubPixel,()=>{Q()}),Et(()=>{Ot(()=>{_.value=!0,M()})}),Ft(()=>{_.value=!1,Wr(p)}),(H,B)=>{const U=dF;return se(),ce("div",{ref_key:"rootRef",ref:a,class:rt(["KeyAreasBtn",{visible:pe(d)}])},[Y("div",{ref_key:"btnRef",ref:u,class:"KeyAreasBtn-btn",onMouseover:y,onMouseout:w},[Y("div",{ref_key:"greenBgRef",ref:l,class:"KeyAreasBtn-bg green"},null,512),Y("div",hF,[Y("div",pF,[(se(!0),ce(Ye,null,lt(t.areas,(oe,le)=>(se(),At(U,{key:`KeyAreasBtn-label-${le}`,ref_for:!0,ref:q=>s[le]=q,label:oe.label,"current-index":pe(N),"item-index":le},null,8,["label","current-index","item-index"]))),128))])]),Y("div",{ref_key:"rollParentBgRef",ref:c,class:"KeyAreasBtn-bg masked"},[Y("div",{ref_key:"rollWhiteBgRef",ref:h,class:"KeyAreasBtn-bg white"},null,512)],512),Y("div",mF,[Y("div",gF,[(se(!0),ce(Ye,null,lt(t.areas,(oe,le)=>(se(),At(U,{key:`KeyAreasBtn-label-${le}`,ref_for:!0,ref:q=>q,label:oe.label,"current-index":pe(W),"item-index":le},null,8,["label","current-index","item-index"]))),128))])]),Y("button",{class:"KeyAreasBtn-link",onClick:F})],544)],2)}}},Wk=ft(_F,[["__scopeId","data-v-c25791e6"]]),vF=["innerHTML"],yF={__name:"KeyAreasOutroMo",props:{block:{type:Object,required:!0,default:()=>({})}},setup(t){const e=t,n=yn(),r=Ae(()=>e.block.content.outro),i=j(!1),o=j(null),s=[],a=Ae(()=>{var w,R;let y=((R=(w=r.value)==null?void 0:w.title)==null?void 0:R.split(`
`))||[];return y=y.map(E=>jl(["code","em"],E)),y}),u=j(null),c=j(null),h=j(!1),{gsap:l}=gn(),d={main:{timeline:null}};function f(){const y=d.main;y.timeline=l.timeline({paused:!0}),Bk({timeline:y.timeline,lineElementsArray:s})}function _(){var C;const y=Je.lvh,w=n.scrollSubPixel/y,R=mr.mobile.time.keyAreaStart,E=d.main;h.value=vt(w,R+6,R+10.5),h.value&&((C=E.timeline)==null||C.progress(We(w,R+8.4,R+8.8)));const A=Ll(We(w,R+9.5,R+10.5))*y*.13;c.value.style.translate=`0px ${A}px`}function p(){i.value&&_()}function b(){p()}return Fe(()=>n.scrollSubPixel,()=>{p()}),xn(b),Et(()=>{Ot(()=>{i.value=!0,f(),p()})}),Ft(()=>{i.value=!1}),(y,w)=>(se(),ce("div",{ref_key:"rootRef",ref:u,class:rt(["KeyAreasOutro",{visible:pe(h)}])},[Y("div",{ref_key:"contentRef",ref:c,class:"KeyAreasOutro-inner"},[Y("div",{ref_key:"titleRef",ref:o,class:"KeyAreasOutro-title"},[(se(!0),ce(Ye,null,lt(pe(a),(R,E)=>(se(),ce("div",{ref_for:!0,ref:A=>s[E]=A,key:`titleLine-${E}`,innerHTML:R},null,8,vF))),128))],512)],512)],2))}},bF=ft(yF,[["__scopeId","data-v-498ebf65"]]);class sr{constructor(){Oe(this,"width",1e3);Oe(this,"height",1e3);Oe(this,"top",0);Oe(this,"left",0)}get right(){return this.left+this.width}get bottom(){return this.top+this.height}updateFromElement(e){if(e){const n=e.getBoundingClientRect();this.width=n.width,this.height=n.height,this.top=n.top,this.left=n.left}}static clipPathInsetFromRects(e,n){const r={top:e.top-n.top,left:e.left-n.left,right:n.right-e.right,bottom:n.bottom-e.bottom};return`inset(${r.top}px ${r.right}px ${r.bottom}px ${r.left}px)`}}const wF={class:"KeyAreas-title-wrap"},SF={ref:"titleMaskedRef",class:"KeyAreas-title"},TF=["innerHTML"],kF={key:0,class:"KeyAreas-rect-wrap"},EF={class:"KeyAreas-video"},RF={class:"KeyAreas-content-wrap"},AF={class:"KeyAreas-content unmasked"},CF={class:"KeyAreas-content"},xF={class:"KeyAreas-content-body-inner"},PF={class:"KeyAreas-content-eyebrow"},IF={__name:"KeyAreasMo",props:{block:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=j(!1);let o=0;Fe(()=>i.value,P=>{P&&r("load")},{immediate:!0});const s=qr(),a=yn(),{gsap:u}=gn(),c=j(!1),h=[],l=[],d=[],f=j(null),_=j(null),p=j(null),b=j(null),y=j(null),w=j(0),R=j(null),E=j(!1),A=Ae(()=>s.lowFPS),C=j(!1);Fe(C,P=>{const K=[_.value,p.value];K[0]&&K[1]&&K.forEach(ee=>{ee.style.visibility=P?"visible":"hidden"})});const I={title:{timeline:null,bisection:.5},areas:{timeline:null}},$=Ae(()=>n.block),N=Ae(()=>{var P;return(P=$.value)==null?void 0:P.content.areas}),W=Ae(()=>{var P;return(P=$.value)==null?void 0:P.content.main.title}),ne=Ae(()=>{var K;let P=((K=W.value)==null?void 0:K.split(`
`))||[];return P=P.map(ee=>jl(["code","em"],ee)),P}),F=j(""),Q=j(""),M=j("");class H{constructor(K=0,ee=0){Oe(this,"clusterRectScale",1);Oe(this,"clusterOverShoot",-1);Oe(this,"clusterRadius",0);Oe(this,"stackLerp",0);Oe(this,"clusterRect",null);Oe(this,"stackRect",null);Oe(this,"outputRect",null);Oe(this,"clusterIndex",0);Oe(this,"index",0);Oe(this,"wanderData",{});this.index=0,this.clusterIndex=ee,this.clusterRect=new sr,this.stackRect=new sr,this.outputRect=new sr,this.wanderData=fr(K)}}const B={areaIndex:0,areaTitleIndex:-1,areas:[new H(0,3),new H(1,3),new H(2,2),new H(3,1),new H(4,0),new H(5)]},U=Ae(()=>{var ee,X;const P=[];(ee=N.value)==null||ee.forEach(x=>{P.push({label:x.button,url:x.url})});const K=(X=$.value)==null?void 0:X.content.outro;return P.push({label:K.button,url:K.url}),P}),oe=j(0);function le(){var K,ee;Wr(I);let P=I.title;(K=P.timeline)==null||K.kill(),P.timeline=u.timeline({paused:!0}),P.bisection=Th({timeline:P.timeline,lineElementsArray:h,x:50}),P=I.areas,(ee=P.timeline)==null||ee.kill(),P.timeline=u.timeline({paused:!0}),B.areas.forEach((X,x)=>{const{clusterIndex:G}=X;P.timeline.set(X,{clusterRadius:0,stackLerp:0,clusterRectScale:1.7,clusterOverShoot:-3},0);const L=G*.08;P.timeline.to(X,{clusterRectScale:1,duration:1,ease:"power3.inOut"},1+L),P.timeline.to(X,{clusterRadius:1,duration:1,ease:"power3.inOut"},1+L),P.timeline.set(X,{clusterOverShoot:-1},.8),P.timeline.to(X,{clusterOverShoot:0,duration:.6,ease:"sine.inOut"},1+L),P.timeline.to(X,{stackLerp:1,duration:1.4,ease:"power2.inOut"},3.4-x*.05),P.timeline.set(B,{areaIndex:0,areaTitleIndex:-1},0),P.timeline.set(C,{value:!1},3.5),P.timeline.set(C,{value:!0},4.1);const D="sine.inOut";x===0&&P.timeline.to(B,{duration:1,areaTitleIndex:x,ease:D},3.5+.05),x>0&&(P.timeline.to(B,{duration:1,areaIndex:x,ease:D},4.5+x*1.25),P.timeline.to(B,{duration:1,areaTitleIndex:x,ease:D},4.5+x*1.25+.05))})}const q=new sr,be=new sr;function ke(){const P=Je.lvh,K=Je.ww,ee=Math.round(B.areaTitleIndex),X=ee-B.areaTitleIndex,x=Li(ee,0,4);w.value=Li(ee,0,4),oe.value=Li(ee,0,5);const G=B.areas[x],L=N.value[x];F.value=(L==null?void 0:L.title)||"",Q.value=(L==null?void 0:L.body)||"",M.value=(L==null?void 0:L.emission)||"";const D=G.outputRect;q.width=K,q.height=P,be.width=D.width,be.height=D.height,be.left=D.x-D.width*.5,be.top=D.y-D.height*.5,f.value.style.clipPath=sr.clipPathInsetFromRects(be,q);let Z=0,me=be.top+K*.04;me+=P*.15*We(Math.max(X,0),.01,.5);let de=1-qo(We(Math.abs(X),.25,.45));_.value.style.translate=`${Z}px ${me}px`,_.value.style.opacity=de,p.value.style.translate=`${Z}px ${me}px`,p.value.style.opacity=de,Z=0,me=P+P*X*.8,de=1-qo(We(Math.abs(X),.07,.2)),de=ee<0||ee>4?0:de,y.value.style.translate=`${Z}px ${me}px`,y.value.style.opacity=de}function Se(){const P=Je.svh,K=Je.ww,ee=121,X=48,x=11,G=P-(ee+X),L=K-x*2;return{top:ee,height:G,width:L,pad:x,base:X}}const ae=[375,667],fe={x:0,y:0};function _e(P,K,ee){const X=K[0]*.5+P[0],x=K[1]*.5+P[1];return fe.x=(X-ee[0]*.5)/ee[0],fe.y=(x-ee[1]*.5)/ee[0],fe}function te(){const P=Je.svh,K=Je.ww,ee=l,{pivot:X,rects:x}=$.value.animation.cluster;ee.forEach((G,L)=>{const D=B.areas[L],{offset:Z,rectSize:me}=x[L],{clusterRectScale:de,clusterRadius:S,clusterOverShoot:g,stackLerp:T,clusterRect:V,stackRect:ie,outputRect:he,wanderData:Ee}=D;V.width=me[0]/ae[0]*de*K,V.height=me[1]/ae[0]*de*K,V.x=X.x,V.y=X.y,V.x*=K,V.y*=P;const Ne=P/K,Pe=1-Li(We(Ne,ae[1]/ae[0],0)*1.05),Ue=_e(Z,me,ae);V.x+=Ue.x*S*K,V.y+=Ue.y*S*K*Pe,V.x+=g*K*.3;let{areaIndex:Qe}=B;Qe=Math.max(Qe,0);const{top:tt,height:gt,width:_t,base:rn}=Se(),nt=P-rn*2;ie.width=_t,ie.height=gt,ie.x=.5*K,ie.y=ie.height*.5+tt+nt*L,ie.y-=Qe*nt;const jt=qo(We(Math.abs(L-Qe),1,0));ie.width*=qn(jt,.75,1),ie.height*=qn(jt,.75,1);const Rt=T;he.x=qn(qo(Rt),V.x,ie.x),he.y=qn(Rt,V.y,ie.y),he.width=qn(yc(Rt),V.width,ie.width),he.height=qn(yc(Rt),V.height,ie.height);const pt=0;G.style.width=`${he.width}px`,G.style.height=`${he.height}px`,G.style.translate=`${he.x}px ${he.y}px ${pt}px`,d[L].style.opacity=We(T,.1,.6,0,.5,!0)})}function ue(){var X,x,G;const P=Je.lvh,K=a.scrollSubPixel/P,ee=mr.mobile.time.keyAreaStart;if(E.value=vt(K,ee+.2,ee+10.5),E.value){let L=I.title;vt(K,-1,ee+1.9)?(X=L.timeline)==null||X.progress(We(K,ee+1.15,ee+1.85,0,L.bisection,!0)):(x=L.timeline)==null||x.progress(We(K,ee+1.9,ee+2.3,L.bisection,1,!0)),L=I.areas,(G=L.timeline)==null||G.progress(We(K,ee-.5,ee+9));const D=Ll(We(K,ee+9.5,ee+10.5))*-P;R.value.style.translate=`0px ${D}px`}}function ge(){c.value&&(ue(),E.value&&(te(),ke()))}function we(){}function Ie(){ge()}Fe(()=>a.scrollSubPixel,()=>{ge()}),xn(Ie),So(we),Et(()=>{Ot(()=>{c.value=!0,le(),ge()})}),Ft(()=>{var K;o=0,(K=I.title.timeline)==null||K.kill()});function z(){var K;o++;const P=(K=N.value)==null?void 0:K.length;i.value=P>0&&o===P}return(P,K)=>{const ee=bF,X=Wk,x=Wl;return se(),ce("div",{ref_key:"rootRef",ref:R,class:rt(["KeyAreas",{visible:pe(E)}])},[He(ee,{block:t.block},null,8,["block"]),He(X,{"label-index":pe(oe),areas:pe(U)},null,8,["label-index","areas"]),Y("div",wF,[Y("div",SF,[(se(!0),ce(Ye,null,lt(pe(ne),(G,L)=>(se(),ce("div",{ref_for:!0,ref:D=>h[L]=D,key:`line-${L}`,innerHTML:G},null,8,TF))),128))],512)]),pe(N)?(se(),ce("div",kF,[(se(!0),ce(Ye,null,lt(pe(N),(G,L)=>(se(),ce("div",{ref_for:!0,ref:D=>l[L]=D,key:`area-${L}`,class:"KeyAreas-area"},[Y("div",EF,[He(x,{"image-url":G.imageSrc,"video-url":G.src,"fallback-to-static":pe(A),onImgload:z},null,8,["image-url","video-url","fallback-to-static"]),Y("div",{ref_for:!0,ref:D=>d[L]=D,class:"KeyAreas-video-gradient"},null,512)])]))),128))])):it("",!0),Y("div",RF,[Y("div",AF,[Y("h2",{ref_key:"unmaskedTitleRef",ref:_,class:"KeyAreas-content-title"},De(pe(F)),513)]),Y("div",{ref_key:"maskedRef",ref:f,class:"KeyAreas-content masked"},[Y("div",{ref_key:"maskedTitleRef",ref:p,class:"KeyAreas-content-title"},De(pe(F)),513)],512),Y("div",CF,[Y("div",{ref_key:"maskedBodyWrapRef",ref:y,class:"KeyAreas-content-body-wrap"},[Y("div",xF,[Y("div",PF,De(pe(M)),1),Y("div",{ref_key:"maskedBodyRef",ref:b,class:"KeyAreas-content-body"},De(pe(Q)),513)])],512)])])],2)}}},LF=ft(IF,[["__scopeId","data-v-c690cc61"]]),OF={fill:"none",viewBox:"0 0 41 40",xmlns:"http://www.w3.org/2000/svg"};function MF(t,e){return se(),ce("svg",OF,e[0]||(e[0]=[Y("path",{d:"m14.6501 8.90342c-.1667-.13333-.3667-.16666-.5667-.16666-.1667 0-.3333.03333-.5.13333-.3333.16667-.5667.53333-.5667.9v21.03331c0 .4.2.7334.5667.9.3333.1667.7333.1667 1.0667-.0666l16.8333-11.3667zm2.0333 5.73338 8.3333 5.6333-8.3333 5.6333z",fill:"currentColor"},null,-1)]))}const m_={render:MF},$F={class:"icon-plus",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 6",fill:"none"};function FF(t,e){return se(),ce("svg",$F,e[0]||(e[0]=[Y("path",{d:"M6 3L3.12201e-08 3",stroke:"currentColor","stroke-width":"0.666667","stroke-miterlimit":"10"},null,-1),Y("path",{d:"M3 6L3 0",stroke:"currentColor","stroke-width":"0.666667","stroke-miterlimit":"10"},null,-1)]))}const g_={render:FF},DF=["innerHTML"],NF={ref:"videoSectionRef",class:"HomeQuote-video-section"},HF={ref:"videoTitlesRef",class:"HomeQuote-video-titles"},BF={class:"HomeQuote-video-play"},VF=["src"],UF={__name:"HomeQuoteMo",props:{block:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=ct.href.includes("debug-quote-video");let o=0;const s=yn(),a=qr(),u=Cn(),c=Ae(()=>n.block),h=Ae(()=>{if(i)return!1;const M=a.modalState===xr.VIDEO;return a.lowFPS||M}),l=j(!1),d=j(null),f=[],_=Ae(()=>{var H,B;let M=((B=(H=c.value)==null?void 0:H.title)==null?void 0:B.split(`
`))||[];return M=M.map(U=>jl(["code","em"],U)),M}),p=j(null),b=j(null),y=j(null),w=j(null),R=j(!1),{gsap:E}=gn(),A={title:{timeline:null}};function C(){var H;Wr(A);const M=A.title;(H=M.timeline)==null||H.kill(),M.timeline=E.timeline({paused:!0}),M.bisection=Th({timeline:M.timeline,lineElementsArray:f})}function I(){var U;const M=Je.lvh,H=s.scrollSubPixel/M,B=mr.mobile.time.quoteStart;if(R.value=vt(H,B,B+2.5),R.value){const oe=A.title;(U=oe.timeline)==null||U.progress(We(H,B+.4,B+1.4,0,oe.bisection,!0));const le=Oi(We(H,B+1.1,B-.2)),q=Oi(We(H,B+1.2,B+2.4))*-1,be=vt(H,0,B+1.2)?le:q;w.value.style.translate=`0px ${be*M}px`;const ke=Math.max(le,0),Se=Math.max(ke*M*.07,0);i||(p.value.style.clipPath=`inset(${Se}px ${Se}px ${Se}px ${Se}px)`);const ae=be*-M*.13;b.value.style.translate=`0px ${ae}px`;const fe=be*-M*.6;y.value.style.translate=`0px ${fe}px`}}function $(){l.value&&I()}function N(){$()}Fe(()=>s.scrollSubPixel,()=>{$()}),xn(N);function W(){a.setVideoModalData({sources:u.getVideoSources(n.block.video.videoData),timeOffset:0}),a.setModalState(xr.VIDEO)}const ne=j(!1);function F(M){ne.value=M}Et(()=>{Ot(()=>{l.value=!0,C(),$()})}),Ft(()=>{o=0,l.value=!1});function Q(){o++,o===2&&r("load")}return(M,H)=>{const B=Wl,U=g_,oe=m_,le=Sh;return pe(c)?(se(),ce("div",{key:0,ref_key:"rootRef",ref:w,class:rt(["HomeQuote",{visible:pe(R)}])},[Y("div",{ref_key:"maskRef",ref:p,class:"HomeQuote-inner"},[Y("div",{ref_key:"bgRef",ref:y,class:"HomeQuote-bg"},[He(B,{"image-url":pe(c).backgroundImageSrc,"video-url":pe(c).backgroundVideoSrc,"fallback-to-static":pe(h),onImgload:Q},null,8,["image-url","video-url","fallback-to-static"])],512),Y("div",{ref_key:"columnRef",ref:b,class:"HomeQuote-grid"},[Y("div",{ref_key:"columnRef",ref:b,class:"HomeQuote-column"},[Y("div",{ref_key:"titleRef",ref:d,class:"HomeQuote-title"},[(se(!0),ce(Ye,null,lt(pe(_),(q,be)=>(se(),ce("div",{ref_for:!0,ref:ke=>f[be]=ke,key:`titleLine-${be}`,innerHTML:q},null,8,DF))),128))],512),Y("div",NF,[Y("div",HF,[Y("div",{ref:"videoTitleNameRef",class:"HomeQuote-video-title"},De(pe(c).video.name),513),Y("div",{ref:"videoTitleRoleRef",class:"HomeQuote-video-title green"},De(pe(c).video.role),513),He(U)],512),Y("button",{ref:"videoWrapRef",class:"HomeQuote-video-wrap",onClick:W,onMouseenter:H[0]||(H[0]=q=>F(!0)),onMouseleave:H[1]||(H[1]=q=>F(!1))},[Y("span",BF,[He(le,{label:"Open video modal",theme:"white-alt","not-button":!0,"manual-hover":pe(ne)},{default:ri(()=>[He(oe)]),_:1},8,["manual-hover"])]),Y("img",{class:"HomeQuote-video-bg",src:pe(c).video.videoImageSrc,onLoad:Q,alt:""},null,40,VF)],544)],512)],512)],512)],512)],2)):it("",!0)}}},jF=ft(UF,[["__scopeId","data-v-18f28bb9"]]),WF=["width","height","viewBox"],qF=["x","y","width","height","rx","ry","stroke","stroke-width"],zF={__name:"GraphBorder",props:{width:{default:100},height:{default:100},progress:{default:0},radius:{default:3},stroke:{default:1.5}},setup(t){const e=t,n=j(!1),r=b5.KEYLINE_DARK,i=j(null);let o=1;So(()=>{n.value&&a()}),xn(()=>{s()});function s(){if(!n.value)return;o=i.value.getTotalLength()}function a(){if(!n.value)return;const u=i.value,c=e.progress,h=qn(c,0,o*.95),l=qn(c,o,0),d=qn(c,0,o*.05),f=0,_=qn(c,-o*.27,0);u==null||u.setAttribute("stroke-dasharray",`${d} ${l} ${h} ${f}`),u==null||u.setAttribute("stroke-dashoffset",_)}return Et(()=>{Ot(()=>{n.value=!0,s()})}),Ft(()=>{n.value=!1}),(u,c)=>(se(),ce("svg",{width:t.width,height:t.height,viewBox:`0 0 ${t.width} ${t.height}`,class:"GraphBorder",xmlns:"http://www.w3.org/2000/svg"},[Y("rect",{ref_key:"borderRect",ref:i,x:t.stroke/2,y:t.stroke/2,width:t.width-t.stroke,height:t.height-t.stroke,rx:t.radius,ry:t.radius,stroke:pe(r),"stroke-width":t.stroke,fill:"none"},null,8,qF)],8,WF))}},qk=ft(zF,[["__scopeId","data-v-99ab6858"]]),GF={viewBox:"0 0 9 9",fill:"none","stroke-width":"1px",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"};function YF(t,e){return se(),ce("svg",GF,e[0]||(e[0]=[Y("path",{d:"M9 4.5L-4.0 4.5","vector-effect":"non-scaling-stroke","stroke-miterlimit":"10"},null,-1),Y("path",{d:"M4.5 9L4.5 0","vector-effect":"non-scaling-stroke","stroke-miterlimit":"10"},null,-1)]))}const zk={render:YF},KF={class:"HomeImageStack-inner"},XF={class:"HomeImageStack-box"},QF={class:"HomeImageStack-box-content"},JF={class:"HomeImageStack-box-text"},ZF={class:"HomeImageStack-subtitle HomeImageStack-typo"},eD=["src"],tD={class:"HomeImageStack-box-text masked"},nD={class:"HomeImageStack-subtitle HomeImageStack-typo"},rD={__name:"HomeImageStackMo",props:{block:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=yn(),o=Ae(()=>n.block),s=j(!1);let a=40;const u=[],c=[],h=[],l=j(null),d=j(null),f=j(null),_=j(null),p=j(),b=j(null),y=j(!1),w=j(!1);let R=0;const E=j(!1);Fe(()=>E.value,Q=>{Q&&r("load")},{immediate:!0});const{gsap:A,CustomEase:C}=gn(),I={main:{timeline:null}};function $(){Wr(I);const Q=I.main;Q.timeline=A.timeline({paused:!0});const M=C.create("custom","M0,0 C0,0.023 0,0.229 0,0.248 0,0.699 0.493,1 1,1 "),H=C.create("imgEase","M0,0 C0.36,0.521 0.624,1 1,1 ");let B=[];const U=u.length,oe=Q.timeline,le=a*U;oe.set([d.value,l.value],{y:le},0),oe.set([u,c],{opacity:0},0),B=[f.value,_.value],oe.set(B,{y:a,opacity:0},0),oe.to(B,{y:0,ease:M,duration:.95},.2),oe.set(B,{opacity:1},.2);for(let q=0;q<U;q++){const be=le-a*(q+1),ke=q<1?q+.01:q+.5,Se=M;if(B=[d.value,l.value],oe.to(B,{y:be,duration:.95,ease:Se},ke),B=[u[q],c[q]],oe.set(B,{opacity:1},ke),q>0){const ae=h[q],fe=H;oe.set(ae,{opacity:0,scale:1},0),oe.to(ae,{opacity:1,duration:.1},ke),oe.to(ae,{scale:1.1,duration:.95,ease:fe},ke)}else{const ae=h[q];oe.set(ae,{opacity:1},0)}}oe.progress(.001)}function N(){var B;const Q=Je.lvh,M=i.scrollSubPixel/Q,H=mr.mobile.time.imageStackStart;y.value=vt(M,H,H+3.9),y.value&&((B=I.main.timeline)==null||B.progress(We(M,H+.3,H+2.2)))}function W(){s.value&&N()}function ne(){var Q;a=((Q=u[0])==null?void 0:Q.getBoundingClientRect().height)||40,$(),W()}Fe(()=>i.scrollSubPixel,()=>{W()}),xn(ne),Et(()=>{Ot(()=>{var Q;s.value=!0,ne(),$(),W(),Ot(ne),w.value=(Q=ct.href)==null?void 0:Q.includes("debug-vertical")})}),Ft(()=>{R=0,E.value=!1,s.value=!1});function F(Q,M){R++;const H=o.value.stacks.length;E.value=H>0&&R===H}return(Q,M)=>(se(),ce("div",{ref_key:"rootRef",ref:b,class:rt(["HomeImageStack",{visible:pe(y),debugVertical:pe(w)}])},[M[1]||(M[1]=Y("div",{class:"HomeImageStack-redline"},null,-1)),Y("div",KF,[Y("div",XF,[Y("div",QF,[Y("div",JF,[Y("div",{ref_key:"labelsRef",ref:d,class:"HomeImageStack-labels HomeImageStack-typo"},[(se(!0),ce(Ye,null,lt(pe(o).stacks,(H,B)=>(se(),ce("div",{ref_for:!0,ref:U=>u[B]=U,key:`label-${B}`,class:"HomeImageStack-label"},De(H.label),1))),128))],512),Y("div",ZF,[Y("div",{ref_key:"subtitleRef",ref:f,class:"HomeImageStack-label"},De(pe(o).subtitle),513)])]),Y("div",{ref_key:"imagesRef",ref:p,class:"HomeImageStack-images"},[(se(!0),ce(Ye,null,lt(pe(o).stacks,(H,B)=>(se(),ce("img",{ref_for:!0,ref:U=>h[B]=U,key:`image-${B}`,class:"HomeImageStack-image",src:H.imageSrc,onLoad:M[0]||(M[0]=U=>F(U,Q.image)),alt:""},null,40,eD))),128))],512),Y("div",tD,[Y("div",{ref_key:"labelsMaskedRef",ref:l,class:"HomeImageStack-labels HomeImageStack-typo"},[(se(!0),ce(Ye,null,lt(pe(o).stacks,(H,B)=>(se(),ce("div",{ref_for:!0,ref:U=>c[B]=U,key:`label-masked--${B}`,class:"HomeImageStack-label white"},De(H.label),1))),128))],512),Y("div",nD,[Y("div",{ref_key:"subtitleMaskedRef",ref:_,class:"HomeImageStack-label green"},De(pe(o).subtitle),513)])])])])])],2))}},iD=ft(rD,[["__scopeId","data-v-9426fd8e"]]),oD={desktop:{title:"THE OPPORTUNITY AHEAD",body1:`The world’s demand for
  energy will more than
  double by 2050.`,body2:`Innovation must meet
  rising needs without
  compromise to people
  and planet.`,maximum1:"66k TWh",maximum2:"in 2050",minimum1:"26k TWh",minimum2:"in 2023"}},sD={class:"HomeGraph-sidetitle-wrap"},aD={class:"HomeGraph-inner"},lD={class:"HomeGraph-box"},uD={class:"HomeGraph-text"},cD={class:"HomeGraph-text text2"},fD={class:"HomeGraph-value-labels"},dD={class:"HomeGraph-value-labels"},hD={__name:"HomeGraphMo",props:{block:{type:Object,required:!0,default:()=>({})},blockStack:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=yn(),o=Ae(()=>n.block),s=j(null),a=j(null),u=j(null),c=j(null),h=j(null),l=j(null),d=j(null),f=j(0),_=j(300),p=j(300),b=j(null),y=j(null),w=j(null),R=j(null),E=j(null),A=j(null),C=j(null),I=j(null),$=j(null),N=j(null),W=j(null),ne=j(null),F=j(null),Q=j(null),M=j(null),H=j(null),B=j(null),U=j(null),oe=j(null),le=j(null),q=[],be=[],ke=Ae(()=>{var ee,X;return((X=(ee=o.value)==null?void 0:ee.body1)==null?void 0:X.split(`
`))||[]}),Se=Ae(()=>{var ee,X;return((X=(ee=o.value)==null?void 0:ee.body2)==null?void 0:X.split(`
`))||[]}),ae=j(!1),fe=j(null),_e=j(!1),{gsap:te}=gn(),ue={main:{timeline:null}};function ge(){Wr(ue);const ee=ue.main;ee.timeline=te.timeline({paused:!0});const X=ee.timeline;let x=[];x=s.value,X.set(x,{y:"100svh"},0),X.to(x,{duration:.75,y:"42.4svh",ease:"sine.out"},.001),X.to(x,{duration:.65,y:0,ease:"sine.in"},1.2),X.set(x,{y:0},3),x=a.value,X.set(x,{scale:.7,y:"75svh"},0),X.to(x,{duration:.75,scale:1,y:0,ease:"sine.out"},.05),X.set(f,{value:0},0),X.to(f,{value:1,duration:1,ease:"sine.out"},.1);const G=.9;x=[U.value,oe.value],X.set(x,{opacity:0},0),X.to(x,{opacity:1,duration:0,ease:"sine.out"},G),x=l.value,X.set(x,{x:20,opacity:0},0),X.to(x,{x:0,opacity:1,duration:.5,ease:"sine.out"},.5);function L({start:me=.6,parent:de,barHorz:S,barVertArray:g,labelArray:T}={}){x=de,X.set(x,{x:"-5cqw"},0),X.to(x,{x:0,duration:.4,ease:"sine.out"},me),x=S,X.set(x,{x:-10,scaleX:.5,opacity:0},0),X.to(x,{x:0,scaleX:1,duration:.35,ease:"sine.out"},me),X.set(x,{opacity:1},me),x=g,X.set(x,{opacity:0},0),X.set(x,{opacity:1},me),x=T,X.set(x,{opacity:0,x:-10},0),X.to(x,{x:0,duration:.35,ease:"sine.out"},me+.15),X.set(x,{opacity:1},me+.2)}L({start:.5,parent:y.value,barHorz:R.value,barVertArray:[E.value,A.value],labelArray:[C.value,I.value]}),x=$.value,X.set(x,{x:-10,scaleX:0,opacity:0},0),X.to(x,{x:0,scaleX:1,duration:.5,ease:"sine.out"},.75),X.set(x,{opacity:1},.7),x=N.value,X.set(x,{x:-10,scaleX:0,opacity:0},0),X.to(x,{x:0,scaleX:1,duration:.5,ease:"sine.out"},.85),X.set(x,{opacity:1},.8),L({start:.75,parent:W.value,barHorz:F.value,barVertArray:[Q.value,M.value],labelArray:[H.value,B.value]}),x=q,Vd({timeline:X,lineElementsArray:x,lineDuration:.3,startTime:.7}),Uk({timeline:X,lineElementsArray:x,lineDuration:.3,startTime:1.35}),x=be,Vd({timeline:X,lineElementsArray:x,lineDuration:.3,startTime:2.1}),x=le.value,X.set(x,{y:"100cqh"},0);const D="67cqh",Z="25.5cqh";X.to(x,{y:D,duration:.75,ease:"sine.out"},.3),X.to(x,{y:Z,duration:0,ease:"sine.inOut"},1.75),x=c.value,X.set(x,{y:"100cqh"},0),X.to(x,{y:D,duration:.75,ease:"sine.out"},.3),X.to(x,{y:Z,duration:1,ease:"sine.inOut"},1.25),x=h.value,X.set(x,{autoAlpha:1},0)}function we(){var G;const ee=Je.lvh,X=i.scrollSubPixel/ee,x=mr.mobile.time.graphStart;if(_e.value=vt(X,x,x+5.95),_e.value){(G=ue.main.timeline)==null||G.progress(We(X,x,x+2.15));const D=Oi(We(X,x+4.45,x+5.75))*-1;fe.value.style.translate=`0px ${D*ee}px`;const Z=Oi(We(X,x+2.15,x+2.65)),me=ee*.65,de=qn(Z,0,me);u.value.style.clipPath=`inset( -2px -2px ${de}px  -2px )`;const S=Oi(We(X,x+2.75,x+2.55));d.value.style.opacity=S;const g=Oi(We(X,x+2.35,x+2.15));b.value.style.opacity=g}}function Ie(){const{svh:ee,ww:X}=Je;_.value=Math.max(50,Math.min(.584*ee,.589*X)),p.value=Math.max(100,.5967*ee)}function z(){ae.value&&we()}function P(){ge(),Ie(),z()}Fe(()=>i.scrollSubPixel,()=>{z()}),xn(P),Et(()=>{Ot(()=>{ae.value=!0,ge(),z()})}),Ft(()=>{ae.value=!1});function K(){r("load")}return(ee,X)=>{const x=iD,G=zk,L=qk;return se(),ce("div",{ref_key:"rootRef",ref:fe,class:rt(["HomeGraph",{visible:pe(_e)}])},[Y("div",{ref_key:"bgRef",ref:s,class:"HomeGraph-bg"},null,512),Y("div",sD,[Y("div",{ref_key:"sideTitleRef",ref:l,class:"HomeGraph-sidetitle"},De(pe(o).title),513)]),He(x,{block:t.blockStack,onLoad:K},null,8,["block"]),Y("div",aD,[Y("div",{ref_key:"boxRef",ref:a,class:"HomeGraph-box-wrap"},[Y("div",lD,[Y("div",{ref_key:"cornerCrossTLRef",ref:U,class:"HomeGraph-box-corner tl"},[He(G)],512),Y("div",{ref_key:"cornerCrossBRRef",ref:oe,class:"HomeGraph-box-corner br"},[He(G)],512),Y("div",{ref_key:"boxContentRef",ref:u,class:"HomeGraph-box-content"},[Y("div",{ref_key:"boxWhiteBGRef",ref:h,class:"HomeGraph-box-content-bg white"},null,512),Y("div",{ref_key:"boxGreenBGRef",ref:c,class:"HomeGraph-box-content-bg"},null,512),Y("div",{ref_key:"titleRef",ref:le,class:"HomeGraph-text-wrap"},[Y("div",uD,[(se(!0),ce(Ye,null,lt(pe(ke),(D,Z)=>(se(),ce("div",{ref_for:!0,ref:me=>q[Z]=me,key:`title1Line-${Z}`},De(D),1))),128))]),Y("div",cD,[(se(!0),ce(Ye,null,lt(pe(Se),(D,Z)=>(se(),ce("div",{ref_for:!0,ref:me=>be[Z]=me,key:`title2Line-${Z}`},De(D),1))),128))])],512)],512),Y("div",{ref_key:"valuesRef",ref:b,class:"HomeGraph-box-values"},[Y("div",{ref_key:"values1Ref",ref:y,class:"HomeGraph-value top"},[Y("div",{ref_key:"values1BarRef",ref:w,class:"HomeGraph-value-bar"},[Y("div",{ref_key:"values1BarHorzRef",ref:R,class:"HomeGraph-value-bar-horz"},null,512),Y("div",{ref_key:"values1BarVertLeftRef",ref:E,class:"HomeGraph-value-bar-vert left"},null,512),Y("div",{ref_key:"values1BarVertRightRef",ref:A,class:"HomeGraph-value-bar-vert right"},null,512)],512),Y("div",fD,[Y("div",{ref_key:"values1Label1",ref:C,class:"HomeGraph-value-label top"},De(pe(o).maximum1),513),Y("div",{ref_key:"values1Label2",ref:I,class:"HomeGraph-value-label base"},De(pe(o).maximum2),513)])],512),Y("div",{ref_key:"valuesMid1Ref",ref:$,class:"HomeGraph-value-mid"},null,512),Y("div",{ref_key:"valuesMid2Ref",ref:N,class:"HomeGraph-value-mid"},null,512),Y("div",{ref_key:"values2Ref",ref:W,class:"HomeGraph-value base"},[Y("div",{ref_key:"values2BarRef",ref:ne,class:"HomeGraph-value-bar"},[Y("div",{ref_key:"values2BarHorzRef",ref:F,class:"HomeGraph-value-bar-horz"},null,512),Y("div",{ref_key:"values2BarVertLeftRef",ref:Q,class:"HomeGraph-value-bar-vert left"},null,512),Y("div",{ref_key:"values2BarVertRightRef",ref:M,class:"HomeGraph-value-bar-vert right"},null,512)],512),Y("div",dD,[Y("div",{ref_key:"values2Label1",ref:H,class:"HomeGraph-value-label top"},De(pe(o).minimum1),513),Y("div",{ref_key:"values2Label2",ref:B,class:"HomeGraph-value-label base"},De(pe(o).minimum2),513)])],512)],512)]),Y("div",{ref_key:"boxBorderRef",ref:d,class:"HomeGraph-box-border"},[He(L,{width:pe(_),height:pe(p),progress:pe(f),radius:2,stroke:.75},null,8,["width","height","progress"])],512)],512)])],2)}}},pD=ft(hD,[["__scopeId","data-v-6f4e13e6"]]),mD="/assets/mediaswirl-1@2x-BnmEsBkb.webp",gD="/assets/mediaswirl-2@2x-Cj07mDi-.webp",_D="/assets/mediaswirl-3@2x-HAT8tFyE.webp",vD="/assets/mediaswirl-4@2x-Dqbow5UR.webp",yD="/assets/mediaswirl-5@2x-D3af6shk.webp",bD="/assets/mediaswirl-6@2x-soDYuKkW.webp",wD="/assets/mediaswirl-7@2x-BWMLbOS2.webp",SD="/assets/mediaswirl-8@2x-DmLJDpg0.webp",TD="/assets/mediaswirl-9@2x-DPL8GeNt.webp",kD="/assets/mediaswirl-10@2x-BHrUQZCI.webp",ED="/assets/mediaswirl-11@2x-BG58g1Ow.webp",RD="/assets/mediaswirl-12@2x-DoAy-BYk.webp",AD="/assets/mediaswirl-13@2x-DImtqJBE.webp",CD="/assets/mediaswirl-14@2x-BM3rNPwo.webp",xD="/assets/mediaswirl-15@2x-f8ACBS_2.webp",bc={desktop:{content:{title1:`
      Breakthrough Energy is a global
      platform focused on accelerating
      clean energy innovation and building
      the industries of the future`.trim(),title2:"Energy is prosperity",images:[{id:0,src:mD},{id:1,src:gD},{id:2,src:_D},{id:3,src:vD},{id:4,src:yD},{id:5,src:bD},{id:6,src:wD},{id:7,src:SD},{id:8,src:TD},{id:9,src:kD},{id:10,src:ED},{id:11,src:RD},{id:12,src:AD},{id:13,src:CD},{id:14,src:xD}]},animation:{main:{radius_multiply:.6,radius_add:0,radius_random_mul:1,z_scale:1,z_add:0,rect_scale:.01,rotation:0,rotationModulated:0,rotationModulateRamp:1,aspect_scale:1},rects:[{id:0,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:fr(0)},{id:1,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:fr(1)},{id:2,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:fr(2)},{id:3,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:fr(3)},{id:4,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:fr(4)},{id:5,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:fr(5)},{id:6,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:fr(6)},{id:7,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:fr(7)},{id:8,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:fr(8)},{id:9,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:fr(9)},{id:10,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:fr(10)},{id:11,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:fr(11)},{id:12,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:fr(12)},{id:13,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:fr(13)},{id:14,aspect:1,scale:1,z:1,radius:1,rotation:0,el:null,wander:fr(14)}]}}},PD=["src","onLoad"],ID={__name:"ImageSwirlMo",props:{block:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=yn(),{gsap:o}=gn(),s=j(!1),a=j(null),u=j(!1),c=[];let h=null;const l=Ae(()=>n.block),d=Ae(()=>l.value.content),f=structuredClone(bc.desktop.animation.main),_=structuredClone(bc.desktop.animation.rects),p=j(!1);Fe(()=>p.value,$=>{$&&r("load")},{immediate:!0});function b(){h==null||h.kill(),h=o.timeline({paused:!0});const $=h,N=l.value.animation.main,W=f;for(const[le,q]of Object.entries(N))$.set(W,{[le]:q},0);const ne=6,F=1,Q={s:.001,k:2.3,d:2.3},M={s:Q.k,k:3.2,d:3.2-Q.k},H={s:M.k,d:4.4-M.k},B={s:ne-1,d:1},U="power2.inOut";$.set(W,{aspect_scale:0,rect_scale:1.5,duration:0,radius_multiply:1,radius_add:.3,radius_random_mul:1,ease:U},0),$.to(W,{aspect_scale:.1,duration:Q.d,ease:U},Q.s),$.to(W,{rect_scale:.9,duration:Q.d,ease:U},Q.s),$.to(W,{radius_multiply:.3,radius_add:.03,duration:Q.d,ease:U},Q.s),$.to(W,{rect_scale:1.2,duration:M.d,ease:U},M.s),$.to(W,{radius_multiply:.6,duration:M.d,ease:U},M.s),$.to(W,{radius_add:.05,duration:M.d+.6,ease:"sine.in"},M.s+.6),$.to(W,{aspect_scale:0,duration:M.d,ease:U},M.s),$.to(W,{radius_random_mul:.6,duration:M.d,ease:U},M.s),$.to(W,{radius_add:1,duration:B.d,ease:"sine.in"},B.s-.6),$.to(W,{radius_random_mul:0,rect_scale:1.4,duration:H.d,ease:U},H.s),$.to(W,{rect_scale:0,duration:0,ease:U},ne-.05),$.to(W,{rotation:2,duration:ne-F,ease:le=>$s(le,.07)},F);const oe=Q.k-F;$.to(W,{rotationModulated:0,duration:oe,ease:U},F),$.to(W,{rotationModulated:.8,duration:H.d+B.d,ease:le=>$s(le,.35)},H.s)}function y(){let $=0;const N=performance.now()/1e3,{radius_multiply:W,radius_random_mul:ne,radius_add:F,z_scale:Q,z_add:M,rect_scale:H,rotation:B,rotationModulated:U,rotationModulateRamp:oe,aspect_scale:le}=f,q=(B+U-.2)*.5*zi;for(const be of c){const ke=_[$];if(ke.el=be,be){const Se=Je.lvh,ae=Je.ww,fe=ae/Se,_e=$/c.length;let{el:te,scale:ue,aspect:ge,z:we,rotation:Ie,radius:z}=ke,P=ke.wander.seed;const K=.5+P*.5,ee=Hk(N,K,ke.wander);we+=M,we+=ee[2]*.1;const X=we*Q+(1-Q);let x=ue*X*H;P=p_(P)*ne,x*=.75*P+.25;const G=Ie*zi,L=_e*zi,D=G+L+q;let Z=X*z*W;Z+=F,Z+=P*.6,Z+=x*.15*ge;const me=Z*ae,de=qn(le,1,fe);let S=Math.cos(D)*me*de,g=Math.sin(D)*me;S+=ee[0]*.15*ae*Z,g+=ee[1]*.15*ae*Z,S+=ae*.5,g+=Se*.5,g-=Se*.15,S-=Se*.15*ge,te.style.translate=`${S}px ${g}px`,te.style.scale=`${x} ${x}`}$++}}function w(){const $=i.scrollSubPixel/Je.lvh,N=[.1,5.5];u.value=vt($,-1,N[1]),u.value&&(h==null||h.progress(We($,N[0],N[1])))}function R(){s.value&&w()}function E(){u.value&&y()}function A(){R()}Fe(()=>i.scrollSubPixel,()=>{R()}),xn(A),So(E),Et(()=>{Ot(()=>{s.value=!0,b()})}),Ft(()=>{h==null||h.kill(),c.splice(0,c.length),C=0});let C=0;function I($,N){const W=$.target;N.aspect=W.naturalWidth/W.naturalHeight,C++;const ne=_.length;p.value=ne>0&&C===ne}return($,N)=>(se(),ce("div",{ref_key:"rootRef",ref:a,class:rt(["ImageSwirl",{visible:pe(u)}])},[(se(!0),ce(Ye,null,lt(pe(_),(W,ne)=>{var F;return se(),ce("img",{ref_for:!0,ref:Q=>c[ne]=Q,key:`swirlimage-${ne}`,class:"ImageSwirl-rect",src:((F=pe(d).images[ne])==null?void 0:F.src)||"",onLoad:Q=>I(Q,W),alt:""},null,40,PD)}),128))],2))}},LD=ft(ID,[["__scopeId","data-v-af7fb688"]]),OD={class:"icon-logo-bt",viewBox:"0 0 184 184",xmlns:"http://www.w3.org/2000/svg"};function MD(t,e){return se(),ce("svg",OD,e[0]||(e[0]=[Y("g",null,[Y("path",{d:"M65.1896 27.2328L70.1777 10.1643C71.8144 4.47475 77.1142 0.499878 83.0376 0.499878H101.041C106.965 0.499878 112.265 4.47475 113.901 10.1643L127.463 56.6157L148.428 62.7729L144.219 70.4109L120.526 63.4743L105.64 12.5804C105.016 10.554 103.146 9.07313 100.963 9.07313H82.9596C80.7773 9.07313 78.9068 10.554 78.2833 12.5804L72.7496 31.4415L65.1117 27.2328H65.1896ZM27.2335 118.811L31.4421 111.173L12.581 105.639C10.5546 105.016 9.07374 103.145 9.07374 100.963V82.959C9.07374 81.634 9.61931 80.387 10.4766 79.5297C11.0222 78.9841 11.7237 78.5165 12.503 78.2827L63.397 63.3964L70.3335 39.703L62.6956 35.4943L56.5384 56.4599L10.0869 70.0212C4.47536 71.8138 0.500488 77.1136 0.500488 83.0369V101.041C0.500488 106.964 4.47536 112.264 10.1649 113.901L27.2335 118.889V118.811ZM173.914 70.1771L156.845 65.189L152.637 72.827L171.498 78.3606C173.524 78.9841 175.005 80.8547 175.005 83.0369V101.041C175.005 103.223 173.602 105.094 171.498 105.717L120.604 120.603L113.667 144.297L121.305 148.505L127.463 127.54L173.914 113.979C176.096 113.355 178.045 112.186 179.604 110.627C182.098 108.133 183.578 104.782 183.578 101.119V83.1149C183.578 77.1915 179.604 71.8917 173.914 70.255V70.1771ZM111.173 152.636L105.64 171.497C105.016 173.524 103.146 175.005 100.963 175.005H82.9596C80.7773 175.005 78.9068 173.602 78.2833 171.497L63.397 120.603L39.7036 113.667L35.495 121.305L56.4605 127.462L70.0218 173.913C71.6585 179.603 76.9583 183.578 82.8817 183.578H100.886C106.809 183.578 112.109 179.603 113.745 173.913L118.733 156.845L111.095 152.636H111.173Z",fill:"currentColor"}),Y("path",{opacity:"0.62",d:"M27.2328 65.1888L18.6595 49.6011C15.8538 44.4571 16.789 37.9103 20.9198 33.7016L33.6238 20.9976C37.8325 16.7889 44.3014 15.8536 49.5233 18.7374L91.9998 41.9631L111.173 31.4414L113.589 39.7808L91.9219 51.6275L45.3925 26.1415C43.522 25.1283 41.1059 25.4401 39.6251 26.9989L26.921 39.7029C25.4402 41.2616 25.0505 43.5998 26.0637 45.4703L35.4943 62.6948L27.1549 65.1109L27.2328 65.1888ZM65.1889 156.767L62.7728 148.427L45.5484 157.858C43.6779 158.871 41.2618 158.559 39.7809 157.001L27.0769 144.297C26.1417 143.361 25.674 142.114 25.674 140.867C25.674 139.62 25.8299 139.231 26.2975 138.529L51.7835 91.9997L39.9368 70.3328L31.5974 72.7489L42.1191 91.9218L18.8934 134.398C16.0876 139.542 17.0228 146.089 21.1536 150.298L33.8576 163.002C38.0663 167.211 44.5352 168.146 49.7571 165.262L65.3448 156.689L65.1889 156.767ZM134.476 18.6594L118.889 27.2327L121.305 35.5721L138.529 26.1415C140.4 25.1283 142.816 25.4401 144.297 26.9989L157.001 39.7029C158.482 41.2616 158.871 43.5998 157.858 45.4703L132.372 91.9997L144.219 113.667L152.558 111.251L142.036 92.0777L165.262 49.6011C166.353 47.5747 166.899 45.3924 166.899 43.2101C166.899 39.7029 165.574 36.2736 163.002 33.7016L150.298 20.9976C146.089 16.7889 139.62 15.8536 134.398 18.7374L134.476 18.6594ZM148.427 121.305L157.858 138.529C158.871 140.4 158.559 142.816 157.001 144.297L144.297 157.001C142.816 158.481 140.4 158.871 138.529 157.858L91.9998 132.372L70.3329 144.219L72.749 152.558L91.9219 142.036L134.398 165.262C139.542 168.068 146.089 167.133 150.298 163.002L163.002 150.298C167.211 146.089 168.146 139.62 165.262 134.398L156.689 118.811L148.35 121.227L148.427 121.305Z",fill:"currentColor"})],-1)]))}const Gk={render:MD},$D={class:"HomeSwirlTitles-title-wrap"},FD={class:"HomeSwirlTitles-title-wrap"},DD={__name:"HomeSwirlTitlesMo",props:{block:{type:Object,required:!0,default:()=>({})}},setup(t){const e=t,n=yn(),r=j(null),i=j(null),o=j(null),s=j(null),a=j(null),u=j(null),c=j(null),h=[],l=[],d=Ae(()=>e.block),f=Ae(()=>{var F,Q,M;return((M=(Q=(F=d.value)==null?void 0:F.content)==null?void 0:Q.title1)==null?void 0:M.split(`
`))||""}),_=Ae(()=>{var F,Q,M;return((M=(Q=(F=d.value)==null?void 0:F.content)==null?void 0:Q.title2)==null?void 0:M.split(`
`))||""});Ae(()=>{var F,Q,M;return((M=(Q=(F=d.value)==null?void 0:F.content)==null?void 0:Q.title3)==null?void 0:M.split(`
`))||""});const p=j(!1),b=j(null),y=j(!1),{gsap:w}=gn(),R={logoOutro:{timeline:null,bisection:.5},background:{timeline:null},title1:{timeline:null,bisection:.5},title2:{timeline:null,bisection:.5}};function E(){w.set(i.value,{autoAlpha:0}),w.set(a.value,{autoAlpha:0}),w.set(o.value,{autoAlpha:1})}function A(){Wr(R);let F=R.logoOutro;F.timeline=w.timeline({paused:!0});let Q=F.timeline;Q.set(o.value,{autoAlpha:1},0),Q.to(o.value,{duration:.25,autoAlpha:0},.01),F=R.background,F.timeline=w.timeline({paused:!0}),Q=F.timeline,Q.set(i.value,{autoAlpha:0},0),Q.set(a.value,{autoAlpha:0},0),Q.to(i.value,{duration:.25,autoAlpha:1},.01),Q.to(a.value,{duration:.25,autoAlpha:1},.01),Q.to(r.value,{duration:0,autoAlpha:0},.26),F=R.title1,F.timeline=w.timeline({paused:!0}),F.bisection=Vk({timeline:F.timeline,lineElementsArray:h,x:30}),F=R.title2,F.timeline=w.timeline({paused:!0}),F.timeline.set(c.value,{y:0},0),F.bisection=ks({timeline:F.timeline,lineElementsArray:l,outroOffset:.3,x:30});const M=F.bisection*F.timeline.duration(),H=F.timeline.duration()-M;F.timeline.to(c.value,{y:-20,ease:"power2.in",duration:H},M+.01)}const C={vis:[-1,7],background:[2.4,2.6],title1_in:[2.6,3.6],title1_out:[3.8,4.5],title2_in:[4.5,4.9],title2_out:[4.9,5.4],logo:[5.2,5.6]};function I(){var q,be,ke,Se,ae,fe;const F=n.scrollSubPixel/Je.lvh,{vis:Q,logo:M,background:H,title1_in:B,title1_out:U,title2_in:oe,title2_out:le}=C;if(y.value=vt(F,Q[0],Q[1]),y.value){let _e=R.logoOutro;(q=_e.timeline)==null||q.progress(We(F,M[0],M[1])),_e=R.background,(be=_e.timeline)==null||be.progress(We(F,H[0],H[1])),_e=R.title1,vt(F,-1,B[1])?(ke=_e.timeline)==null||ke.progress(We(F,B[0],B[1],0,_e.bisection,!0)):(Se=_e.timeline)==null||Se.progress(We(F,U[0],U[1],_e.bisection,1,!0)),_e=R.title2,vt(F,-1,oe[1])?(ae=_e.timeline)==null||ae.progress(We(F,oe[0],oe[1],0,_e.bisection,!0)):(fe=_e.timeline)==null||fe.progress(We(F,le[0],le[1],_e.bisection,1,!0))}}let $=0;function N(){$+=.25,p.value&&y.value&&(o.value.style.rotate=`${$}deg`,s.value.style.rotate=`${$}deg`)}So(N);function W(){p.value&&I()}function ne(){W()}return Fe(()=>n.scrollSubPixel,()=>{W()}),xn(ne),Et(()=>{Ot(()=>{p.value=!0,E(),A(),W()})}),Ft(()=>{p.value=!1}),(F,Q)=>{const M=Gk;return se(),ce("div",{ref_key:"rootRef",ref:b,class:rt(["HomeSwirlTitles",{visible:pe(y)}])},[Y("div",{ref_key:"bgWhiteRef",ref:r,class:"HomeSwirlTitles-bg white"},[Y("div",{ref_key:"logoGreenRef",ref:s,class:"HomeSwirlTitles-logo green"},[He(M)],512)],512),Y("div",{ref_key:"bgGreenRef",ref:i,class:"HomeSwirlTitles-bg green"},null,512),Y("div",{ref_key:"logoWhiteWrapRef",ref:a,class:"HomeSwirlTitles-bg"},[Y("div",{ref_key:"logoWhiteRef",ref:o,class:"HomeSwirlTitles-logo white"},[He(M)],512)],512),Y("div",$D,[Y("div",{ref_key:"titleRef1",ref:u,class:"HomeSwirlTitles-title"},[(se(!0),ce(Ye,null,lt(pe(f),(H,B)=>(se(),ce("div",{ref_for:!0,ref:U=>h[B]=U,key:`title1Line-${B}`,role:"group"},De(H),1))),128))],512)]),Y("div",FD,[Y("div",{ref_key:"titleRef2",ref:c,class:"HomeSwirlTitles-title"},[(se(!0),ce(Ye,null,lt(pe(_),(H,B)=>(se(),ce("div",{ref_for:!0,ref:U=>l[B]=U,key:`title2Line-${B}`,role:"group"},De(H),1))),128))],512)])],2)}}},ND=ft(DD,[["__scopeId","data-v-9da85970"]]),HD={class:"HomeHero-inner"},BD={class:"sr-only"},VD={class:"HomeHero-title"},UD={class:"HomeHero-title base"},jD={class:"HomeHero-title"},WD={class:"HomeHero-title base"},qD={__name:"HomeHeroMo",props:{block:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=yn(),o=wh();qr();const s=[],a=[],u=[],c=[],h=j(null),l=j(null),d=j(null),f={rectScale:1,zScale:1,radiusScale:0,rotationUnit:0,el:null},_=j(!1),p=j(null),b=j(!1),{gsap:y}=gn(),w=Ae(()=>n.block),R=Ae(()=>w.value.videoSrc),E=Ae(()=>w.value.imageSrc),A=Ae(()=>w.value.title1),C=Ae(()=>{var P;const z=((P=A.value)==null?void 0:P.split(`
`))||[];return w.value.title2&&z.push(w.value.title2),z}),I=Ae(()=>{var P;return((P=w.value.title3)==null?void 0:P.split(`
`))||[]}),$=new sr,N=new sr,W={progress:0},ne=[-1,.2],F=[.3,1],Q={unmasked:{timeline:null,bisection:.5},masked:{timeline:null,bisection:.5},unmaskedBase:{timeline:null,bisection:.5},maskedBase:{timeline:null,bisection:.5},video:{timeline:null,bisection:.5}},M=j(!1),H=j(!1),B=()=>M.value=!0,U=()=>H.value=!0,oe=Ae(()=>H.value);Fe(oe,z=>z&&r("load"),{immediate:!0});const le=Ae(()=>!1);function q(){Wr(Q);let z=Q.masked;const P=50;z.timeline=y.timeline({paused:!0}),z.bisection=ks({timeline:z.timeline,lineElementsArray:s,x:P}),z=Q.unmasked,z.timeline=y.timeline({paused:!0}),z.bisection=ks({timeline:z.timeline,lineElementsArray:a,x:P}),z=Q.maskedBase,z.timeline=y.timeline({paused:!0}),z.bisection=ks({timeline:z.timeline,lineElementsArray:u,x:P}),z=Q.unmaskedBase,z.timeline=y.timeline({paused:!0}),z.bisection=ks({timeline:z.timeline,lineElementsArray:c,x:P}),z=Q.video,z.timeline=y.timeline({paused:!0}),z.timeline.set(f,{rotationUnit:.5},0),z.timeline.to(f,{rectScale:.3,duration:1.5,ease:"power2.inOut"},.001),z.timeline.to(f,{zScale:.7,duration:2,ease:"power2.inOut"},.001),z.timeline.to(f,{rotationUnit:.75,duration:2,ease:"power2.inOut"},.2),z.timeline.to(f,{radiusScale:1.02,duration:1.7,ease:"power2.inOut"},.3)}Fe(()=>o.transitionVisibleState,z=>{z===ya.AFTER_ENTER&&be()},{immediate:!0});function be(){y.to(W,{progress:1,duration:3.4,ease:"sine.out"})}function ke(){N.updateFromElement(h.value)}function Se(){const{el:z,rectScale:P,zScale:K,rotationUnit:ee,radiusScale:X}=f;if(z){const x=Je.lvh,L=Je.ww/x,D=P*K,Z=ee*zi,me=K*X*x,de=Math.cos(Z)*me*L,S=Math.sin(Z)*me;z.style.translate=`${de}px ${S}px`,z.style.scale=`${D} ${D}`}}function ae(){Se(),$.updateFromElement(mr.mobile.elements.heroRect)}function fe(){_.value&&(h.value.style.clipPath=sr.clipPathInsetFromRects($,N),l.value.style.translate=`${$.left}px ${$.top}px`,l.value.style.width=`${$.width}px`,l.value.style.height=`${$.height}px`)}function _e(z){var P,K;(P=Q.masked.timeline)==null||P.progress(z),(K=Q.unmasked.timeline)==null||K.progress(z)}function te(z){var P,K;(P=Q.maskedBase.timeline)==null||P.progress(z),(K=Q.unmaskedBase.timeline)==null||K.progress(z)}function ue(){var ee;const z=i.scrollSubPixel/Je.lvh,P=F[1]+1;b.value=vt(z,-1,P);let K=Q.masked;if(b.value){if(vt(z,F[0],P)){let X=We(z,F[0],F[1],K.bisection,1,!0);_e(X),K=Q.maskedBase,X=We(z,F[0],F[1],K.bisection,1,!0),te(X)}K=Q.video,(ee=K.timeline)==null||ee.progress(We(z,.2,2.5))}}function ge(){_.value&&(ue(),ke(),ae(),fe())}function we(){ge()}Fe(()=>i.scrollSubPixel,()=>{ge()}),xn(we);function Ie(){const z=i.scrollSubPixel/Je.lvh;if(vt(z,ne[0],ne[1])){let P=Q.masked,K=We(W.progress,0,.7,0,P.bisection,!0);_e(K),P=Q.maskedBase,K=We(W.progress,.65,1,0,P.bisection,!0),te(K)}}return So(Ie),Et(()=>{Ot(()=>{_.value=!0,mr.mobile.elements.heroRect=d.value,f.el=d.value,q(),ge(),Ot(ge)})}),Ft(()=>{y.killTweensOf(W),Wr(Q),W.progress=0}),(z,P)=>{const K=Wl;return se(),ce("div",{ref_key:"rootRef",ref:p,class:rt(["HomeHero",{visible:pe(b)}])},[Y("div",{ref_key:"inputRectRef",ref:d,class:"HomeHero-rect"},null,512),Y("div",HD,[Y("h1",BD,[(se(!0),ce(Ye,null,lt(pe(C),(ee,X)=>(se(),ce("span",{key:`sr-only-line-${X}`},De(ee),1))),128)),(se(!0),ce(Ye,null,lt(pe(I),(ee,X)=>(se(),ce("span",{key:`sr-only-line-base-${X}`},De(ee),1))),128))]),Y("div",VD,[(se(!0),ce(Ye,null,lt(pe(C),(ee,X)=>(se(),ce("div",{ref_for:!0,ref:x=>a[X]=x,key:`unmaskedLine-${X}`,class:"HomeHero-title-line",role:"group"},De(ee),1))),128))]),Y("div",UD,[(se(!0),ce(Ye,null,lt(pe(I),(ee,X)=>(se(),ce("div",{ref_for:!0,ref:x=>c[X]=x,key:`unmaskedLineBase-${X}`,class:"HomeHero-title-line-base",role:"group"},De(ee),1))),128))])]),Y("div",{ref_key:"maskedBGRef",ref:l,class:"HomeHero-bg"},[He(K,{"image-url":pe(E),"video-url":pe(R),"fallback-to-static":pe(le),onVideoplay:B,onImgload:U},null,8,["image-url","video-url","fallback-to-static"])],512),Y("div",{ref_key:"maskedRef",ref:h,class:"HomeHero-inner masked"},[Y("div",jD,[(se(!0),ce(Ye,null,lt(pe(C),(ee,X)=>(se(),ce("div",{ref_for:!0,ref:x=>s[X]=x,key:`maskedLine-${X}`,class:"HomeHero-title-line",role:"group"},De(ee),1))),128))]),Y("div",WD,[(se(!0),ce(Ye,null,lt(pe(I),(ee,X)=>(se(),ce("div",{ref_for:!0,ref:x=>u[X]=x,key:`maskedLineBase-${X}`,class:"HomeHero-title-line-base",role:"group"},De(ee),1))),128))])],512)],2)}}},zD=ft(qD,[["__scopeId","data-v-088b7959"]]),GD={ref:"iconRef",class:"HomeScrollCTA-icon"},YD={ref:"labelRef",class:"HomeScrollCTA-label"},KD={__name:"HomeScrollCTA",setup(t){const e=yn(),n=wh(),r=j(null),i=j(null),o=j(!1),s=j(!1);Fe(()=>n.transitionVisibleState,c=>{},{immediate:!0});function a(){if(s.value){const c=e.scrollSubPixel/Je.lvh;o.value=vt(c,-1,1)}}function u(){a()}return xn(u),Fe(()=>e.scrollSubPixel,()=>{a()}),Et(()=>{Ot(()=>{s.value=!0,a(),Ot(a)})}),Ft(()=>{}),(c,h)=>{const l=Lk;return se(),ce("div",{ref_key:"rootRef",ref:r,class:rt(["HomeScrollCTA",{visible:pe(o)}])},[Y("div",{ref_key:"ctaRef",ref:i,class:"HomeScrollCTA-cta"},[Y("div",GD,[He(l)],512),Y("div",YD," Scroll for more ",512)],512)],2)}}},Yk=ft(KD,[["__scopeId","data-v-4aa9c26c"]]),XD={class:"HomeAnimation-portrait"},QD={class:"HomeAnimation-portrait-sticky-wrap"},JD={key:0,class:"HomeAnimation-portrait-sticky"},ZD={__name:"HomeAnimationPortrait",props:{content:{type:Object,required:!0,default:()=>({hero:{},swirl:{},graph:{},stack:{},quote:{},keyAreas:{},approach:{},stats:{},funds:{}})}},emits:["load"],setup(t,{emit:e}){const n=e,r=j(!1),i=j(!1),o=j(!1),s=j(!1),a=j(!1),u=j(!1),c=Ae(()=>r.value&&i.value&&o.value&&s.value&&a.value&&u.value);Fe(c,b=>{b&&n("load")});function h(){r.value=!0}function l(){i.value=!0}function d(){o.value=!0}function f(){s.value=!0}function _(){a.value=!0}function p(){u.value=!0}return(b,y)=>{const w=Yk,R=zD,E=ND,A=LD,C=pD,I=jF,$=LF,N=rF;return se(),ce("div",XD,[Y("div",QD,[t.content?(se(),ce("div",JD,[He(w),He(R,{block:t.content.hero.mobile,onLoad:h},null,8,["block"]),He(E,{block:t.content.swirl.mobile},null,8,["block"]),He(A,{block:t.content.swirl.mobile,onLoad:l},null,8,["block"]),He(C,{block:t.content.graph.mobile,"block-stack":t.content.stack.mobile,onLoad:d},null,8,["block","block-stack"]),He(I,{block:t.content.quote.mobile,onLoad:f},null,8,["block"]),He($,{block:t.content.keyAreas.mobile,onLoad:_},null,8,["block"]),He(N,{block:t.content.approach.mobile,onLoad:p},null,8,["block"])])):it("",!0)])])}}},e6=ft(ZD,[["__scopeId","data-v-3f8622f7"]]),t6={class:"PaginationDots"},n6={__name:"PaginationDots",props:{currentIndex:{type:Number,default:0},total:{type:Number,default:5}},setup(t){return(e,n)=>(se(),ce("div",t6,[(se(!0),ce(Ye,null,lt(t.total,r=>(se(),ce("div",{ref_for:!0,ref:i=>i,key:`pagination-dot-${r}`,class:rt(["PaginationDots-dot",{current:r<=t.currentIndex+1}])},n[0]||(n[0]=[Y("div",{class:"PaginationDots-dot-border"},null,-1),Y("div",{class:"PaginationDots-dot-fill"},null,-1)]),2))),128))]))}},Kk=ft(n6,[["__scopeId","data-v-fa615e89"]]),r6={key:0,class:"HomeApproach-inner"},i6={key:0,ref:"chapterTitlesRef",class:"HomeApproach-sideTitles"},o6={class:"HomeApproach-sideTitles-inner"},s6={key:1,ref:"chaptersRef",class:"HomeApproach-chapters"},a6={class:"HomeApproach-dots"},l6={class:"HomeApproach-chapter-inner"},u6={__name:"HomeApproach",props:{block:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=Ae(()=>n.block),o=Ae(()=>i.value.chapters),s={radar:"Loop Radar",smallDots:"Init Loop",largeDot:"Loop B",whiteDot:"Loop C",main:"main"},a=Ae(()=>{var te;return{src:((te=i.value)==null?void 0:te.rive)||"",artboard:"main",animation:s.main}}),u={dots:.307,bigDot:.4756,premium:.665},c={dots:[u.dots,u.dots+.04],bigDot:[u.bigDot,u.bigDot+.01],premium:[u.premium,1]},h=[u.dots,u.bigDot,u.premium],l=[c.dots[1],c.bigDot[1],c.premium[1]],d=jk([[-1,0],[0,h[0]],[.2,l[0]],[1,h[1]],[1.2,l[1]],[2,h[2]],[3,1]],.4),f=j(null),_=j(null),p={decel:.8,accel:.5,maxSpeed:.01};new Nk(p);const b=j(!1),y=j(!1),w=j(!1),R=j(!1),E={[s.radar]:0,[s.smallDots]:0,[s.largeDot]:0,[s.whiteDot]:0},A=j(!1);function C(){Object.values(s).forEach(te=>{f.value.stop(te)}),A.value=!0,r("load"),ae()}const I=yn(),$=[],N=[],W=[],ne=j(!1),F=j(0),Q=j(0),M={indexEased:0,indexLinear:0},H=j(null),B=j(!1);Fe(F,(te,ue)=>{const ge=ue!==te&&vt(ue,0,3),we=ue!==te&&vt(te,0,3);if(Q.value=Li(te,0,2),ne.value&&ge){const Ie=N[ue];U.killTweensOf(Ie),U.to(Ie,{opacity:0,x:0,duration:.1})}if(ne.value&&we){const Ie=N[te];U.killTweensOf(Ie),U.set(Ie,{opacity:0,x:"-2vw"}),U.to(Ie,{opacity:1,x:0,duration:.6,delay:.1,ease:"sine.out"})}});const{gsap:U}=gn(),oe={main:{timeline:null}};function le(){const te=oe.main;te.timeline=U.timeline({paused:!0}),te.timeline.set(M,{indexEased:-1},0),te.timeline.set(M,{indexLinear:-1},0),te.timeline.to(M,{indexLinear:3,ease:"linear",duration:1},0);const ue=1/4,ge=ue*.1;for(let we=0;we<4;we++)te.timeline.to(M,{indexEased:we,ease:"sine.inOut",duration:ue-ge},ue*we)}function q(){const te=f.value,{indexLinear:ue}=M,ge=d(ue);te&&te.progress(ge),b.value=vt(ge,...c.dots),y.value=vt(ge,...c.dots),w.value=vt(ge,...c.bigDot),R.value=vt(ge,...c.premium)}function be(te,ue){var ge,we,Ie;ue?((ge=f.value)==null||ge.play(te),E[te]=setInterval(()=>{var z;return(z=f.value)==null?void 0:z.play(te)},3e3)):(clearInterval(E[te]),(we=f.value)==null||we.pause(te),(Ie=f.value)==null||Ie.scrub(0,te))}Fe(()=>b.value&&A.value,te=>be(s.radar,te)),Fe(()=>y.value&&A.value,te=>be(s.smallDots,te)),Fe(()=>w.value&&A.value,te=>be(s.largeDot,te)),Fe(()=>R.value&&A.value,te=>be(s.whiteDot,te));function ke(){var P;const te=Je.lvh,ue=I.scrollSubPixel/te,ge=mr.desktop.time.approachStart,we=[ge,ge+4.2],Ie=ge+4.7,z=oe.main;if(B.value=vt(ue,we[0],Ie),B.value){(P=z.timeline)==null||P.progress(We(ue,we[0],we[1]));const K=$s(We(ue,we[0]+.8,we[0]),.2)*te*.5;_.value.style.translate=`0px ${K}px`;const ee=$s(We(ue,Ie-1.2,Ie),.2)*-te;H.value.style.translate=`0px ${ee}px`}}function Se(){const te=Je.lvh;I.scrollSubPixel/te;const{indexEased:ue}=M;F.value=Math.round(ue);for(let ge=0;ge<$.length;ge++){let we=$[ge];const Ie=0;let z=Math.min(ue,2)*-te;z+=ge*te,we.style.translate=`${Ie}px ${z}px`,we=W[ge];const P=We(ue,ge-.4,ge-.25);we.style.opacity=P}}function ae(){ne.value&&(ke(),B.value&&Se())}function fe(){B.value&&q()}function _e(){ae()}return Fe(()=>I.scrollSubPixel,()=>{ae()}),xn(_e),So(fe),Et(()=>{Ot(()=>{ne.value=!0,le(),ae()})}),Ft(()=>{ne.value=!1}),(te,ue)=>{var Ie,z;const ge=Dk,we=Kk;return se(),ce("div",{ref_key:"rootRef",ref:H,class:rt(["HomeApproach",{visible:pe(B)}])},[pe(a)?(se(),ce("div",r6,[Y("div",{ref_key:"riveParentRef",ref:_,class:"HomeApproach-rive-container"},[He(ge,{ref_key:"rivePlayerRef",ref:f,"src-all":pe(a),"log-instance":!1,autoplay:!0,onLoad:C},null,8,["src-all"])],512),(Ie=pe(o))!=null&&Ie.length?(se(),ce("div",i6,[Y("div",o6,[(se(!0),ce(Ye,null,lt(pe(o),(P,K)=>(se(),ce("div",{ref_for:!0,ref:ee=>N[K]=ee,key:`chapter-${K}`,class:"HomeApproach-sideTitle"},De(P.title),1))),128))])],512)):it("",!0),(z=pe(o))!=null&&z.length?(se(),ce("div",s6,[Y("div",a6,[He(we,{total:pe(o).length,"current-index":pe(Q)},null,8,["total","current-index"])]),(se(!0),ce(Ye,null,lt(pe(o),(P,K)=>(se(),ce("div",{ref_for:!0,ref:ee=>$[K]=ee,key:`chapter-${K}`,class:"HomeApproach-chapter"},[Y("div",l6,[P.subtitle?(se(),ce("div",{key:0,ref_for:!0,ref:ee=>ee,class:"HomeApproach-subtitle"},De(P.subtitle),513)):it("",!0),P.body?(se(),ce("div",{key:1,ref_for:!0,ref:ee=>W[K]=ee,class:"HomeApproach-body"},De(P.body),513)):it("",!0)])]))),128))],512)):it("",!0)])):it("",!0)],2)}}},c6=ft(u6,[["__scopeId","data-v-77d46489"]]),f6=["innerHTML"],d6={__name:"KeyAreasOutro",props:{block:{type:Object,required:!0,default:()=>({})}},setup(t){const e=t,n=yn(),r=Ae(()=>e.block.content.outro),i=j(!1),o=j(null),s=[],a=Ae(()=>{var w,R;let y=((R=(w=r.value)==null?void 0:w.title)==null?void 0:R.split(`
`))||[];return y=y.map(E=>jl(["code","em"],E)),y}),u=j(null),c=j(null),h=j(!1),{gsap:l}=gn(),d={main:{timeline:null}};function f(){const y=d.main;y.timeline=l.timeline({paused:!0}),Bk({timeline:y.timeline,lineElementsArray:s})}function _(){var C;const y=Je.lvh,w=n.scrollSubPixel/y,R=mr.desktop.time.keyAreaStart,E=d.main;h.value=vt(w,R+6,R+10.5),h.value&&((C=E.timeline)==null||C.progress(We(w,R+8.5,R+8.8)));const A=Ll(We(w,R+9.5,R+10.5))*y*.13;c.value.style.translate=`0px ${A}px`}function p(){i.value&&_()}function b(){p()}return Fe(()=>n.scrollSubPixel,()=>{p()}),xn(b),Et(()=>{Ot(()=>{i.value=!0,f(),p()})}),Ft(()=>{i.value=!1}),(y,w)=>(se(),ce("div",{ref_key:"rootRef",ref:u,class:rt(["KeyAreasOutro",{visible:pe(h)}])},[Y("div",{ref_key:"contentRef",ref:c,class:"KeyAreasOutro-inner"},[Y("div",{ref_key:"titleRef",ref:o,class:"KeyAreasOutro-title"},[(se(!0),ce(Ye,null,lt(pe(a),(R,E)=>(se(),ce("div",{ref_for:!0,ref:A=>s[E]=A,key:`titleLine-${E}`,innerHTML:R},null,8,f6))),128))],512)],512)],2))}},h6=ft(d6,[["__scopeId","data-v-6e5404a4"]]),p6={class:"KeyAreas-title-wrap"},m6={ref:"titleMaskedRef",class:"KeyAreas-title"},g6=["innerHTML"],_6={key:0,class:"KeyAreas-rect-wrap"},v6={class:"KeyAreas-video"},y6={class:"KeyAreas-content-wrap"},b6={class:"KeyAreas-content unmasked"},w6={class:"KeyAreas-content-body-inner"},S6={class:"KeyAreas-content-eyebrow"},T6=.92,k6={__name:"KeyAreas",props:{block:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=j(!1);let o=0;Fe(()=>i.value,P=>{P&&r("load")},{immediate:!0});const s=qr(),a=yn(),{gsap:u}=gn(),c=j(!1),h=[],l=[],d=[],f=j(null),_=j(null),p=j(null),b=j(null),y=j(null),w=j(null),R=j(0),E=j(null),A=j(!1),C=Ae(()=>s.lowFPS),I=j(!1);Fe(I,P=>{const K=[_.value,p.value];K[0]&&K[1]&&K.forEach(ee=>{ee.style.visibility=P?"visible":"hidden"})});const $={title:{timeline:null,bisection:.5},areas:{timeline:null}},N=Ae(()=>n.block),W=Ae(()=>{var P;return(P=N.value)==null?void 0:P.content.areas}),ne=Ae(()=>{var P;return(P=N.value)==null?void 0:P.content.main.title}),F=Ae(()=>{var K;let P=((K=ne.value)==null?void 0:K.split(`
`))||[];return P=P.map(ee=>jl(["code","em"],ee)),P}),Q=j(""),M=j(""),H=j(""),B=[1440,810];class U{constructor(K=0,ee=0){Oe(this,"clusterRectScale",1);Oe(this,"clusterOverShoot",-1);Oe(this,"clusterRadius",0);Oe(this,"stackLerp",0);Oe(this,"clusterRect",null);Oe(this,"stackRect",null);Oe(this,"outputRect",null);Oe(this,"clusterIndex",0);Oe(this,"index",0);Oe(this,"wanderData",{});this.index=0,this.clusterIndex=ee,this.clusterRect=new sr,this.stackRect=new sr,this.outputRect=new sr,this.wanderData=fr(K)}}const oe={areaIndex:0,areaTitleIndex:-1,areas:[new U(0,3),new U(1,4),new U(2,2),new U(3,1),new U(4,0),new U(5)]},le=Ae(()=>{var ee,X;const P=[];(ee=W.value)==null||ee.forEach(x=>{P.push({label:x.button,url:x.url})});const K=(X=N.value)==null?void 0:X.content.outro;return P.push({label:K.button,url:K.url}),P}),q=j(0);function be(){var K,ee;Wr($);let P=$.title;(K=P.timeline)==null||K.kill(),P.timeline=u.timeline({paused:!0}),P.bisection=Th({timeline:P.timeline,lineElementsArray:h,x:100}),P=$.areas,(ee=P.timeline)==null||ee.kill(),P.timeline=u.timeline({paused:!0}),oe.areas.forEach((X,x)=>{const{clusterIndex:G}=X;P.timeline.set(X,{clusterRadius:0,stackLerp:0,clusterRectScale:1.7,clusterOverShoot:-3},0);const L=G*.05;P.timeline.to(X,{clusterRectScale:1,duration:1,ease:"power3.inOut"},1+L),P.timeline.to(X,{clusterRadius:1,duration:1,ease:"power3.inOut"},1+L),P.timeline.set(X,{clusterOverShoot:-1},.8),P.timeline.to(X,{clusterOverShoot:0,duration:.6,ease:"sine.out"},1.1+L),P.timeline.to(X,{stackLerp:1,duration:1.4,ease:"power2.inOut"},3.4-x*.05),P.timeline.set(oe,{areaIndex:0,areaTitleIndex:-1},0),P.timeline.set(I,{value:!1},3.5),P.timeline.set(I,{value:!0},4.1);const D="sine.inOut";x===0&&P.timeline.to(oe,{duration:1,areaTitleIndex:x,ease:D},3.5+.05),x>0&&(P.timeline.to(oe,{duration:1,areaIndex:x,ease:D},4.5+x*1.25),P.timeline.to(oe,{duration:1,areaTitleIndex:x,ease:D},4.5+x*1.25+.05))})}const ke=new sr,Se=new sr;function ae(){const P=Je.svh,K=Je.ww,ee=Math.round(oe.areaTitleIndex),X=ee-oe.areaTitleIndex,x=Li(ee,0,4);R.value=Li(ee,0,4),q.value=Li(ee,0,5);const G=oe.areas[x],L=W.value[x];Q.value=(L==null?void 0:L.title)||"",M.value=(L==null?void 0:L.body)||"",H.value=(L==null?void 0:L.emission)||"";const D=G.outputRect;ke.width=K,ke.height=P,Se.width=D.width,Se.height=D.height,Se.left=D.x-D.width*.5,Se.top=D.y-D.height*.5,f.value.style.clipPath=sr.clipPathInsetFromRects(Se,ke);let Z=0,me=Se.top+K*.059;me+=P*.2*We(Math.max(X,0),.01,.5);let de=1-qo(We(Math.abs(X),.25,.45));_.value.style.translate=`${Z}px ${me}px`,_.value.style.opacity=de,p.value.style.translate=`${Z}px ${me}px`,p.value.style.opacity=de;const{pad:S,padSide:g}=fe();Z=g,me=P-S+P*X*.8,de=1-qo(We(Math.abs(X),.07,.2)),y.value.style.translate=`${Z}px ${me}px`,y.value.style.opacity=de}function fe(){const P=Je.lvh,X=Je.ww*.046+60,x=T6*X;return{stackHeight:P-X*2,pad:X,padSide:x}}const _e={x:0,y:0};function te(P,K,ee){const X=K[0]*.6+P[0],x=K[1]*.5+P[1];return _e.x=(X-ee[0]*.6)/ee[0],_e.y=(x-ee[1]*.5)/ee[0],_e}function ue(){performance.now()/1e3;const P=Je.lvh,K=Je.ww,ee=l,{pivot:X,rects:x}=N.value.animation.cluster;ee.forEach((G,L)=>{const D=oe.areas[L],{offset:Z,rectSize:me}=x[L],{clusterRectScale:de,clusterRadius:S,clusterOverShoot:g,stackLerp:T,clusterRect:V,stackRect:ie,outputRect:he,wanderData:Ee}=D;V.width=me[0]/B[0]*de*K,V.height=me[1]/B[0]*de*K,V.x=X.x,V.y=X.y,V.x*=K,V.y*=P;const Ne=P/K,Pe=1-Li(We(Ne,B[1]/B[0],0)*1.5),Ue=te(Z,me,B);V.x+=Ue.x*S*K,V.y+=Ue.y*S*K*Pe,V.x+=g*K*.2;let{areaIndex:Qe}=oe;Qe=Math.max(Qe,0);const{stackHeight:tt,pad:gt,padSide:_t}=fe(),rn=tt+gt;ie.width=K-_t*2,ie.height=tt,ie.x=.5*K,ie.y=ie.height*.5+gt+rn*L,ie.y-=Qe*rn;const nt=qo(We(Math.abs(L-Qe),1,0));ie.width*=qn(nt,.85,1),ie.height*=qn(nt,.85,1);const jt=T;he.x=qn(qo(jt),V.x,ie.x),he.y=qn(jt,V.y,ie.y),he.width=qn(yc(jt),V.width,ie.width),he.height=qn(yc(jt),V.height,ie.height);const Rt=0;G.style.width=`${he.width}px`,G.style.height=`${he.height}px`,G.style.translate=`${he.x}px ${he.y}px ${Rt}px`,d[L].style.opacity=We(T,.1,.6,0,.5,!0)})}function ge(){var X,x,G;const P=Je.lvh,K=a.scrollSubPixel/P,ee=mr.desktop.time.keyAreaStart;if(A.value=vt(K,ee+.2,ee+10.5),A.value){let L=$.title;vt(K,-1,ee+1.9)?(X=L.timeline)==null||X.progress(We(K,ee+.9,ee+1.9,0,L.bisection,!0)):(x=L.timeline)==null||x.progress(We(K,ee+2.3,ee+2.65,L.bisection,1,!0)),L=$.areas,(G=L.timeline)==null||G.progress(We(K,ee-.5,ee+9));const D=Ll(We(K,ee+9.5,ee+10.5))*-P;E.value.style.translate=`0px ${D}px`;const Z=We(K,ee+3,ee+3.3),me=We(K,ee+8.4,ee+8.2),de=Ll(vt(K,0,ee+3.4)?Z:me);w.value.style.opacity=de}}function we(){c.value&&(ge(),A.value&&(ue(),ae()))}function Ie(){we()}Fe(()=>a.scrollSubPixel,()=>{we()}),xn(Ie),Et(()=>{Ot(()=>{c.value=!0,be(),we()})}),Ft(()=>{var K;o=0,(K=$.title.timeline)==null||K.kill()});function z(){var K;o++;const P=(K=W.value)==null?void 0:K.length;i.value=P>0&&o===P}return(P,K)=>{var L;const ee=h6,X=Wk,x=Kk,G=Wl;return se(),ce("div",{ref_key:"rootRef",ref:E,class:rt(["KeyAreas",{visible:pe(A)}])},[He(ee,{block:t.block},null,8,["block"]),He(X,{"label-index":pe(q),areas:pe(le)},null,8,["label-index","areas"]),Y("div",p6,[Y("div",m6,[(se(!0),ce(Ye,null,lt(pe(F),(D,Z)=>(se(),ce("div",{ref_for:!0,ref:me=>h[Z]=me,key:`line-${Z}`,innerHTML:D},null,8,g6))),128))],512)]),pe(W)?(se(),ce("div",_6,[Y("div",{ref_key:"dotsRef",ref:w,class:"KeyAreas-dots"},[He(x,{total:((L=pe(W))==null?void 0:L.length)||5,"current-index":pe(R)},null,8,["total","current-index"])],512),(se(!0),ce(Ye,null,lt(pe(W),(D,Z)=>(se(),ce("div",{ref_for:!0,ref:me=>l[Z]=me,key:`area-${Z}`,class:"KeyAreas-area"},[Y("div",v6,[He(G,{"image-url":D.imageSrc,"video-url":D.src,"fallback-to-static":pe(C),onImgload:z},null,8,["image-url","video-url","fallback-to-static"]),Y("div",{ref_for:!0,ref:me=>d[Z]=me,class:"KeyAreas-video-gradient"},null,512)])]))),128))])):it("",!0),Y("div",y6,[Y("div",b6,[Y("h2",{ref_key:"unmaskedTitleRef",ref:_,class:"KeyAreas-content-title"},De(pe(Q)),513)]),Y("div",{ref_key:"maskedRef",ref:f,class:"KeyAreas-content masked"},[Y("div",{ref_key:"maskedTitleRef",ref:p,class:"KeyAreas-content-title"},De(pe(Q)),513),Y("div",{ref_key:"maskedBodyWrapRef",ref:y,class:"KeyAreas-content-body-wrap"},[Y("div",w6,[Y("div",S6,De(pe(H)),1),Y("div",{ref_key:"maskedBodyRef",ref:b,class:"KeyAreas-content-body"},De(pe(M)),513)])],512)],512)])],2)}}},E6=ft(k6,[["__scopeId","data-v-4c555c38"]]),R6=["innerHTML"],A6={ref:"videoSectionRef",class:"HomeQuote-video-section"},C6={ref:"videoTitlesRef",class:"HomeQuote-video-titles"},x6={class:"HomeQuote-video-play"},P6=["src"],I6={__name:"HomeQuote",props:{block:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=ct.href.includes("debug-quote-video");let o=0;const s=yn(),a=qr(),u=Cn(),c=Ae(()=>n.block),h=Ae(()=>{if(i)return!1;const M=a.modalState===xr.VIDEO;return a.lowFPS||M}),l=j(!1),d=j(null),f=[],_=Ae(()=>{var H,B;let M=((B=(H=c.value)==null?void 0:H.title)==null?void 0:B.split(`
`))||[];return M=M.map(U=>jl(["code","em"],U)),M}),p=j(null),b=j(null),y=j(null),w=j(null),R=j(!1),{gsap:E}=gn(),A={title:{timeline:null}};function C(){var H;Wr(A);const M=A.title;(H=M.timeline)==null||H.kill(),M.timeline=E.timeline({paused:!0}),M.bisection=Th({timeline:M.timeline,lineElementsArray:f})}function I(){var U;const M=Je.lvh,H=s.scrollSubPixel/M,B=mr.desktop.time.quoteStart;if(R.value=vt(H,B,B+2.5),R.value){const oe=A.title;(U=oe.timeline)==null||U.progress(We(H,B+.4,B+1.4,0,oe.bisection,!0));const le=Oi(We(H,B+1.1,B-.2)),q=Oi(We(H,B+1.2,B+2.4))*-1,be=vt(H,0,B+1.1)?le:q;w.value.style.translate=`0px ${be*M}px`;const ke=Math.max(le,0),Se=Math.max(ke*M*.07,0),ae=1+ke*4;i||(p.value.style.clipPath=`inset(${Se}px ${Se}px ${Se}px ${Se}px round ${ae}px)`);const fe=be*-M*.13;b.value.style.translate=`0px ${fe}px`;const _e=be*-M*.6;y.value.style.translate=`0px ${_e}px`}}function $(){l.value&&I()}function N(){$()}Fe(()=>s.scrollSubPixel,()=>{$()}),xn(N);function W(){a.setVideoModalData({sources:u.getVideoSources(n.block.video.videoData),timeOffset:0}),a.setModalState(xr.VIDEO)}Et(()=>{Ot(()=>{l.value=!0,C(),$()})});const ne=j(!1);function F(M){ne.value=M}Ft(()=>{o=0,l.value=!1});function Q(){o++,o===2&&r("load")}return(M,H)=>{const B=Wl,U=g_,oe=m_,le=Sh;return pe(c)?(se(),ce("div",{key:0,ref_key:"rootRef",ref:w,class:rt(["HomeQuote",{visible:pe(R)}])},[Y("div",{ref_key:"maskRef",ref:p,class:"HomeQuote-inner"},[Y("div",{ref_key:"bgRef",ref:y,class:"HomeQuote-bg"},[He(B,{"image-url":pe(c).backgroundImageSrc,"video-url":pe(c).backgroundVideoSrc,"fallback-to-static":pe(h),onImgload:Q},null,8,["image-url","video-url","fallback-to-static"])],512),Y("div",{ref_key:"columnRef",ref:b,class:"HomeQuote-grid"},[Y("div",{ref_key:"columnRef",ref:b,class:"HomeQuote-column"},[Y("div",{ref_key:"titleRef",ref:d,class:"HomeQuote-title"},[(se(!0),ce(Ye,null,lt(pe(_),(q,be)=>(se(),ce("div",{ref_for:!0,ref:ke=>f[be]=ke,key:`titleLine-${be}`,innerHTML:q},null,8,R6))),128))],512),Y("div",A6,[Y("div",C6,[Y("div",{ref:"videoTitleNameRef",class:"HomeQuote-video-title"},De(pe(c).video.name),513),Y("div",{ref:"videoTitleRoleRef",class:"HomeQuote-video-title green"},De(pe(c).video.role),513),He(U)],512),Y("button",{ref:"videoWrapRef",class:"HomeQuote-video-wrap",onClick:W,onMouseenter:H[0]||(H[0]=q=>F(!0)),onMouseleave:H[1]||(H[1]=q=>F(!1))},[Y("span",x6,[He(le,{label:"Open video modal",theme:"white-alt","not-button":!0,variant:"large","manual-hover":pe(ne)},{default:ri(()=>[He(oe)]),_:1},8,["manual-hover"])]),Y("img",{alt:"",class:"HomeQuote-video-bg",src:pe(c).video.videoImageSrc,onLoad:Q},null,40,P6)],544)],512)],512)],512)],512)],2)):it("",!0)}}},L6=ft(I6,[["__scopeId","data-v-ed655a87"]]),O6={class:"HomeImageStack-inner"},M6={class:"HomeImageStack-box"},$6={class:"HomeImageStack-box-content"},F6={class:"HomeImageStack-box-text"},D6={class:"HomeImageStack-subtitle HomeImageStack-typo"},N6=["src"],H6={class:"HomeImageStack-box-text masked"},B6={class:"HomeImageStack-subtitle HomeImageStack-typo"},V6={__name:"HomeImageStack",props:{block:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=yn(),o=Ae(()=>n.block),s=j(!1);let a=40;const u=[],c=[],h=[],l=j(null),d=j(null),f=j(null),_=j(null),p=j(),b=j(null),y=j(!1),w=j(!1);let R=0;const E=j(!1);Fe(()=>E.value,Q=>{Q&&r("load")},{immediate:!0});const{gsap:A,CustomEase:C}=gn(),I={main:{timeline:null}};function $(){Wr(I);const Q=I.main;Q.timeline=A.timeline({paused:!0});const M=C.create("custom","M0,0 C0,0.023 0,0.229 0,0.248 0,0.699 0.493,1 1,1 "),H=C.create("imgEase","M0,0 C0.36,0.521 0.624,1 1,1 ");let B=[];const U=u.length,oe=Q.timeline,le=a*U;oe.set([d.value,l.value],{y:le},0),oe.set([u,c],{opacity:0},0),B=[f.value,_.value],oe.set(B,{y:a,opacity:0},0),oe.to(B,{y:0,ease:M,duration:.95},.2),oe.set(B,{opacity:1},.2);for(let q=0;q<U;q++){const be=le-a*(q+1),ke=q<1?q+.01:q+.5,Se=M;if(B=[d.value,l.value],oe.to(B,{y:be,duration:.95,ease:Se},ke),B=[u[q],c[q]],oe.set(B,{opacity:1},ke),q>0){const ae=h[q],fe=H;oe.set(ae,{opacity:0,scale:1},0),oe.to(ae,{opacity:1,duration:.1},ke),oe.to(ae,{scale:1.1,duration:.95,ease:fe},ke)}else{const ae=h[q];oe.set(ae,{opacity:1},0)}}oe.progress(.001)}function N(){var B;const Q=Je.lvh,M=i.scrollSubPixel/Q,H=mr.desktop.time.imageStackStart;y.value=vt(M,H,H+3.9),y.value&&((B=I.main.timeline)==null||B.progress(We(M,H+.3,H+2.2)))}function W(){s.value&&N()}function ne(){var Q;a=((Q=u[0])==null?void 0:Q.getBoundingClientRect().height)||40,$(),W()}Fe(()=>i.scrollSubPixel,()=>{W()}),xn(ne),Et(()=>{Ot(()=>{var Q;s.value=!0,ne(),$(),W(),Ot(ne),w.value=(Q=ct.href)==null?void 0:Q.includes("debug-vertical")})}),Ft(()=>{R=0,E.value=!1,s.value=!1});function F(Q,M){R++;const H=o.value.stacks.length;E.value=H>0&&R===H}return(Q,M)=>(se(),ce("div",{ref_key:"rootRef",ref:b,class:rt(["HomeImageStack",{visible:pe(y),debugVertical:pe(w)}])},[M[1]||(M[1]=Y("div",{class:"HomeImageStack-redline"},null,-1)),Y("div",O6,[Y("div",M6,[Y("div",$6,[Y("div",F6,[Y("div",{ref_key:"labelsRef",ref:d,class:"HomeImageStack-labels HomeImageStack-typo"},[(se(!0),ce(Ye,null,lt(pe(o).stacks,(H,B)=>(se(),ce("div",{ref_for:!0,ref:U=>u[B]=U,key:`label-${B}`,class:"HomeImageStack-label"},De(H.label),1))),128))],512),Y("div",D6,[Y("div",{ref_key:"subtitleRef",ref:f,class:"HomeImageStack-label"},De(pe(o).subtitle),513)])]),Y("div",{ref_key:"imagesRef",ref:p,class:"HomeImageStack-images"},[(se(!0),ce(Ye,null,lt(pe(o).stacks,(H,B)=>(se(),ce("img",{ref_for:!0,ref:U=>h[B]=U,key:`image-${B}`,class:"HomeImageStack-image",src:H.imageSrc,onLoad:M[0]||(M[0]=U=>F(U,Q.image)),alt:""},null,40,N6))),128))],512),Y("div",H6,[Y("div",{ref_key:"labelsMaskedRef",ref:l,class:"HomeImageStack-labels HomeImageStack-typo"},[(se(!0),ce(Ye,null,lt(pe(o).stacks,(H,B)=>(se(),ce("div",{ref_for:!0,ref:U=>c[B]=U,key:`label-masked--${B}`,class:"HomeImageStack-label white"},De(H.label),1))),128))],512),Y("div",B6,[Y("div",{ref_key:"subtitleMaskedRef",ref:_,class:"HomeImageStack-label green"},De(pe(o).subtitle),513)])])])])])],2))}},U6=ft(V6,[["__scopeId","data-v-99a445c1"]]),j6={class:"HomeGraph-sidetitle-wrap"},W6={class:"HomeGraph-inner"},q6={class:"HomeGraph-box"},z6={class:"HomeGraph-text"},G6={class:"HomeGraph-text text2"},Y6={class:"HomeGraph-value-labels"},K6={class:"HomeGraph-value-labels"},X6={__name:"HomeGraph",props:{block:{type:Object,required:!0,default:()=>({})},blockStack:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=yn(),o=Ae(()=>n.block),s=j(null),a=j(null),u=j(null),c=j(null),h=j(null),l=j(null),d=j(null),f=j(0),_=j(300),p=j(300),b=j(null),y=j(null),w=j(null),R=j(null),E=j(null),A=j(null),C=j(null),I=j(null),$=j(null),N=j(null),W=j(null),ne=j(null),F=j(null),Q=j(null),M=j(null),H=j(null),B=j(null),U=j(null),oe=j(null),le=j(null),q=[],be=[],ke=Ae(()=>{var ee,X;return((X=(ee=o.value)==null?void 0:ee.body1)==null?void 0:X.split(`
`))||[]}),Se=Ae(()=>{var ee,X;return((X=(ee=o.value)==null?void 0:ee.body2)==null?void 0:X.split(`
`))||[]}),ae=j(!1),fe=j(null),_e=j(!1),{gsap:te}=gn(),ue={main:{timeline:null}};function ge(){Wr(ue);const ee=ue.main;ee.timeline=te.timeline({paused:!0});const X=ee.timeline;let x=[];x=s.value,X.set(x,{y:"100lvh"},0),X.to(x,{duration:.75,y:"35.5vh",ease:"sine.out"},.001),X.to(x,{duration:.65,y:0,ease:"sine.in"},1.2),X.set(x,{y:0},3),x=a.value,X.set(x,{scale:.7,y:"75vh"},0),X.to(x,{duration:.75,scale:1,y:0,ease:"sine.out"},.05),X.set(f,{value:0},0),X.to(f,{value:1,duration:1,ease:"sine.out"},.1);const G=.9;x=[U.value,oe.value],X.set(x,{opacity:0},0),X.to(x,{opacity:1,duration:0,ease:"sine.out"},G),x=l.value,X.set(x,{x:20,opacity:0},0),X.to(x,{x:0,opacity:1,duration:.5,ease:"sine.out"},.5);function L({start:me=.6,parent:de,barHorz:S,barVertArray:g,labelArray:T}={}){x=de,X.set(x,{x:"-5cqw"},0),X.to(x,{x:0,duration:.4,ease:"sine.out"},me),x=S,X.set(x,{x:-10,scaleX:.5,opacity:0},0),X.to(x,{x:0,scaleX:1,duration:.35,ease:"sine.out"},me),X.set(x,{opacity:1},me),x=g,X.set(x,{opacity:0},0),X.set(x,{opacity:1},me),x=T,X.set(x,{opacity:0,x:-10},0),X.to(x,{x:0,duration:.35,ease:"sine.out"},me+.15),X.set(x,{opacity:1},me+.2)}L({start:.5,parent:y.value,barHorz:R.value,barVertArray:[E.value,A.value],labelArray:[C.value,I.value]}),x=$.value,X.set(x,{x:-10,scaleX:0,opacity:0},0),X.to(x,{x:0,scaleX:1,duration:.5,ease:"sine.out"},.75),X.set(x,{opacity:1},.7),x=N.value,X.set(x,{x:-10,scaleX:0,opacity:0},0),X.to(x,{x:0,scaleX:1,duration:.5,ease:"sine.out"},.85),X.set(x,{opacity:1},.8),L({start:.75,parent:W.value,barHorz:F.value,barVertArray:[Q.value,M.value],labelArray:[H.value,B.value]}),x=q,Vd({timeline:X,lineElementsArray:x,lineDuration:.3,startTime:.7}),Uk({timeline:X,lineElementsArray:x,lineDuration:.3,startTime:1.35}),x=be,Vd({timeline:X,lineElementsArray:x,lineDuration:.3,startTime:2.1}),x=le.value,X.set(x,{y:"100cqh"},0);const D="61cqh",Z="20.8cqh";X.to(x,{y:D,duration:.75,ease:"sine.out"},.3),X.to(x,{y:Z,duration:0,ease:"sine.inOut"},1.75),x=c.value,X.set(x,{y:"100cqh"},0),X.to(x,{y:D,duration:.75,ease:"sine.out"},.3),X.to(x,{y:Z,duration:1,ease:"sine.inOut"},1.25),x=h.value,X.set(x,{autoAlpha:1},0)}function we(){var G;const ee=Je.lvh,X=i.scrollSubPixel/ee,x=mr.desktop.time.graphStart;if(_e.value=vt(X,x,x+5.95),_e.value){(G=ue.main.timeline)==null||G.progress(We(X,x,x+2.15));const D=Oi(We(X,x+4.45,x+5.75))*-1;fe.value.style.translate=`0px ${D*ee}px`;const Z=Oi(We(X,x+2.15,x+2.65)),me=ee*.65,de=qn(Z,0,me);u.value.style.clipPath=`inset( -2px -2px ${de}px  -2px )`;const S=Oi(We(X,x+2.75,x+2.55));d.value.style.opacity=S;const g=Oi(We(X,x+2.35,x+2.15));b.value.style.opacity=g}}function Ie(){const{svh:ee}=Je;_.value=Math.max(300,.584*ee),p.value=Math.max(100,.65*ee)}function z(){ae.value&&we()}function P(){ge(),Ie(),z()}Fe(()=>i.scrollSubPixel,()=>{z()}),xn(P),Et(()=>{Ot(()=>{ae.value=!0,ge(),z()})}),Ft(()=>{ae.value=!1});function K(){r("load")}return(ee,X)=>{const x=U6,G=zk,L=qk;return se(),ce("div",{ref_key:"rootRef",ref:fe,class:rt(["HomeGraph",{visible:pe(_e)}])},[Y("div",{ref_key:"bgRef",ref:s,class:"HomeGraph-bg"},null,512),Y("div",j6,[Y("div",{ref_key:"sideTitleRef",ref:l,class:"HomeGraph-sidetitle"},De(pe(o).title),513)]),He(x,{block:t.blockStack,onLoad:K},null,8,["block"]),Y("div",W6,[Y("div",{ref_key:"boxRef",ref:a,class:"HomeGraph-box-wrap"},[Y("div",q6,[Y("div",{ref_key:"cornerCrossTLRef",ref:U,class:"HomeGraph-box-corner tl"},[He(G)],512),Y("div",{ref_key:"cornerCrossBRRef",ref:oe,class:"HomeGraph-box-corner br"},[He(G)],512),Y("div",{ref_key:"boxContentRef",ref:u,class:"HomeGraph-box-content"},[Y("div",{ref_key:"boxWhiteBGRef",ref:h,class:"HomeGraph-box-content-bg white"},null,512),Y("div",{ref_key:"boxGreenBGRef",ref:c,class:"HomeGraph-box-content-bg"},null,512),Y("div",{ref_key:"titleRef",ref:le,class:"HomeGraph-text-wrap"},[Y("div",z6,[(se(!0),ce(Ye,null,lt(pe(ke),(D,Z)=>(se(),ce("div",{ref_for:!0,ref:me=>q[Z]=me,key:`title1Line-${Z}`},De(D),1))),128))]),Y("div",G6,[(se(!0),ce(Ye,null,lt(pe(Se),(D,Z)=>(se(),ce("div",{ref_for:!0,ref:me=>be[Z]=me,key:`title2Line-${Z}`},De(D),1))),128))])],512)],512),Y("div",{ref_key:"valuesRef",ref:b,class:"HomeGraph-box-values"},[Y("div",{ref_key:"values1Ref",ref:y,class:"HomeGraph-value top"},[Y("div",{ref_key:"values1BarRef",ref:w,class:"HomeGraph-value-bar"},[Y("div",{ref_key:"values1BarHorzRef",ref:R,class:"HomeGraph-value-bar-horz"},null,512),Y("div",{ref_key:"values1BarVertLeftRef",ref:E,class:"HomeGraph-value-bar-vert left"},null,512),Y("div",{ref_key:"values1BarVertRightRef",ref:A,class:"HomeGraph-value-bar-vert right"},null,512)],512),Y("div",Y6,[Y("div",{ref_key:"values1Label1",ref:C,class:"HomeGraph-value-label top"},De(pe(o).maximum1),513),Y("div",{ref_key:"values1Label2",ref:I,class:"HomeGraph-value-label base"},De(pe(o).maximum2),513)])],512),Y("div",{ref_key:"valuesMid1Ref",ref:$,class:"HomeGraph-value-mid"},null,512),Y("div",{ref_key:"valuesMid2Ref",ref:N,class:"HomeGraph-value-mid"},null,512),Y("div",{ref_key:"values2Ref",ref:W,class:"HomeGraph-value base"},[Y("div",{ref_key:"values2BarRef",ref:ne,class:"HomeGraph-value-bar"},[Y("div",{ref_key:"values2BarHorzRef",ref:F,class:"HomeGraph-value-bar-horz"},null,512),Y("div",{ref_key:"values2BarVertLeftRef",ref:Q,class:"HomeGraph-value-bar-vert left"},null,512),Y("div",{ref_key:"values2BarVertRightRef",ref:M,class:"HomeGraph-value-bar-vert right"},null,512)],512),Y("div",K6,[Y("div",{ref_key:"values2Label1",ref:H,class:"HomeGraph-value-label top"},De(pe(o).minimum1),513),Y("div",{ref_key:"values2Label2",ref:B,class:"HomeGraph-value-label base"},De(pe(o).minimum2),513)])],512)],512)]),Y("div",{ref_key:"boxBorderRef",ref:d,class:"HomeGraph-box-border"},[He(L,{width:pe(_),height:pe(p),progress:pe(f)},null,8,["width","height","progress"])],512)],512)])],2)}}},Q6=ft(X6,[["__scopeId","data-v-18da34fd"]]),J6=["src","onLoad"],Z6={__name:"ImageSwirl",props:{block:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=yn(),{gsap:o}=gn(),s=j(!1),a=j(null),u=j(!1),c=[];let h=null;const l=Ae(()=>n.block),d=Ae(()=>l.value.content),f=structuredClone(bc.desktop.animation.main),_=structuredClone(bc.desktop.animation.rects),p=j(!1);Fe(()=>p.value,$=>{$&&r("load")},{immediate:!0});function b(){h==null||h.kill(),h=o.timeline({paused:!0});const $=h;l.value;const N=l.value.animation.main,W=f;for(const[le,q]of Object.entries(N))$.set(W,{[le]:q},0);const ne=6,F=1,Q={s:.001,k:2.3,d:2.3},M={s:Q.k,k:3.2,d:3.2-Q.k},H={s:M.k,d:4.4-M.k},B={s:ne-1,d:1},U="sine.inOut";$.set(W,{rect_scale:5,duration:0,ease:U},0),$.to(W,{aspect_scale:.3,duration:Q.d,ease:U},Q.s),$.to(W,{rect_scale:1.5,duration:Q.d,ease:U},Q.s),$.to(W,{radius_multiply:.2,duration:Q.d,ease:U},Q.s),$.to(W,{rect_scale:2.2,duration:M.d,ease:U},M.s),$.to(W,{radius_multiply:.36,duration:M.d,ease:U},M.s),$.to(W,{aspect_scale:1,duration:M.d,ease:U},M.s),$.to(W,{radius_random_mul:.3,duration:M.d,ease:U},M.s),$.to(W,{radius_add:.48,duration:B.d,ease:"sine.in"},B.s-.6),$.to(W,{radius_random_mul:0,duration:H.d,ease:U},H.s),$.to(W,{rect_scale:0,duration:0,ease:U},ne-.05),$.to(W,{rotation:2,duration:ne-F,ease:le=>$s(le,.07)},F);const oe=Q.k-F;$.to(W,{rotationModulated:0,duration:oe,ease:U},F),$.to(W,{rotationModulated:.8,duration:H.d+B.d,ease:le=>$s(le,.35)},H.s)}function y(){let $=0;const N=performance.now()/1e3,{radius_multiply:W,radius_random_mul:ne,radius_add:F,z_scale:Q,z_add:M,rect_scale:H,rotation:B,rotationModulated:U,rotationModulateRamp:oe,aspect_scale:le}=f,q=(B+U-.2)*.5*zi;for(const be of c){const ke=_[$];if(ke.el=be,be){const Se=Je.lvh,ae=Je.ww,fe=ae/Se,_e=$/c.length;let{el:te,scale:ue,aspect:ge,z:we,rotation:Ie,radius:z}=ke,P=ke.wander.seed;const K=.5+P*.5,ee=Hk(N,K,ke.wander);we+=M,we+=ee[2]*.1;const X=we*Q+(1-Q);let x=ue*X*H;P=p_(P)*ne,x*=.75*P+.25;const G=Ie*zi,L=_e*zi,D=G+L+q;let Z=X*z*W;Z+=F,Z+=P*.6,Z+=x*.15*ge;const me=Z*Se,de=qn(le,1,fe);let S=Math.cos(D)*me*de,g=Math.sin(D)*me;S+=ee[0]*.1*Se*Z,g+=ee[1]*.1*Se*Z,S+=ae*.5,g+=Se*.5,g-=Se*.15,S-=Se*.15*ge,te.style.translate=`${S}px ${g}px`,te.style.scale=`${x} ${x}`}$++}}function w(){const $=i.scrollSubPixel/Je.lvh,N=[.1,5.5];u.value=vt($,-1,N[1]),u.value&&(h==null||h.progress(We($,N[0],N[1])))}function R(){s.value&&w()}function E(){u.value&&y()}function A(){R()}Fe(()=>i.scrollSubPixel,()=>{R()}),xn(A),So(E),Et(()=>{Ot(()=>{s.value=!0,b()})}),Ft(()=>{h==null||h.kill(),c.splice(0,c.length),C=0});let C=0;function I($,N){const W=$.target;N.aspect=W.naturalWidth/W.naturalHeight,C++;const ne=_.length;p.value=ne>0&&C===ne}return($,N)=>(se(),ce("div",{ref_key:"rootRef",ref:a,class:rt(["ImageSwirl",{visible:pe(u)}])},[(se(!0),ce(Ye,null,lt(pe(_),(W,ne)=>{var F;return se(),ce("img",{ref_for:!0,ref:Q=>c[ne]=Q,key:`swirlimage-${ne}`,class:"ImageSwirl-rect",src:((F=pe(d).images[ne])==null?void 0:F.src)||"",onLoad:Q=>I(Q,W),alt:""},null,40,J6)}),128))],2))}},eN=ft(Z6,[["__scopeId","data-v-59404dea"]]),tN={class:"HomeSwirlTitles-title-wrap"},nN={class:"HomeSwirlTitles-title-wrap"},rN={__name:"HomeSwirlTitles",props:{block:{type:Object,required:!0,default:()=>({})}},setup(t){const e=t,n=yn(),r=j(null),i=j(null),o=j(null),s=j(null),a=j(null),u=j(null),c=j(null),h=[],l=[],d=Ae(()=>e.block),f=Ae(()=>{var F,Q,M;return((M=(Q=(F=d.value)==null?void 0:F.content)==null?void 0:Q.title1)==null?void 0:M.split(`
`))||""}),_=Ae(()=>{var F,Q,M;return((M=(Q=(F=d.value)==null?void 0:F.content)==null?void 0:Q.title2)==null?void 0:M.split(`
`))||""});Ae(()=>{var F,Q,M;return((M=(Q=(F=d.value)==null?void 0:F.content)==null?void 0:Q.title3)==null?void 0:M.split(`
`))||""});const p=j(!1),b=j(null),y=j(!1),{gsap:w}=gn(),R={logoOutro:{timeline:null,bisection:.5},background:{timeline:null},title1:{timeline:null,bisection:.5},title2:{timeline:null,bisection:.5}};function E(){w.set(i.value,{autoAlpha:0}),w.set(a.value,{autoAlpha:0}),w.set(o.value,{autoAlpha:1})}function A(){Wr(R);let F=R.logoOutro;F.timeline=w.timeline({paused:!0});let Q=F.timeline;Q.set(o.value,{autoAlpha:1},0),Q.to(o.value,{duration:.25,autoAlpha:0},.01),F=R.background,F.timeline=w.timeline({paused:!0}),Q=F.timeline,Q.set(i.value,{autoAlpha:0},0),Q.set(a.value,{autoAlpha:0},0),Q.to(i.value,{duration:.25,autoAlpha:1},.01),Q.to(a.value,{duration:.25,autoAlpha:1},.01),Q.to(r.value,{duration:0,autoAlpha:0},.26),F=R.title1,F.timeline=w.timeline({paused:!0}),F.bisection=Vk({timeline:F.timeline,lineElementsArray:h}),F=R.title2,F.timeline=w.timeline({paused:!0}),F.timeline.set(c.value,{y:0},0),F.bisection=ks({timeline:F.timeline,lineElementsArray:l,outroOffset:.3});const M=F.bisection*F.timeline.duration(),H=F.timeline.duration()-M;F.timeline.to(c.value,{y:-20,ease:"power2.in",duration:H},M+.01)}const C={vis:[-1,7],background:[2.4,2.6],title1_in:[2.6,3.6],title1_out:[3.8,4.5],title2_in:[4.5,4.9],title2_out:[4.9,5.4],logo:[5.2,5.6]};function I(){var q,be,ke,Se,ae,fe;const F=n.scrollSubPixel/Je.lvh,{vis:Q,logo:M,background:H,title1_in:B,title1_out:U,title2_in:oe,title2_out:le}=C;if(y.value=vt(F,Q[0],Q[1]),y.value){let _e=R.logoOutro;(q=_e.timeline)==null||q.progress(We(F,M[0],M[1])),_e=R.background,(be=_e.timeline)==null||be.progress(We(F,H[0],H[1])),_e=R.title1,vt(F,-1,B[1])?(ke=_e.timeline)==null||ke.progress(We(F,B[0],B[1],0,_e.bisection,!0)):(Se=_e.timeline)==null||Se.progress(We(F,U[0],U[1],_e.bisection,1,!0)),_e=R.title2,vt(F,-1,oe[1])?(ae=_e.timeline)==null||ae.progress(We(F,oe[0],oe[1],0,_e.bisection,!0)):(fe=_e.timeline)==null||fe.progress(We(F,le[0],le[1],_e.bisection,1,!0))}}let $=0;function N(){$+=.25,p.value&&y.value&&(o.value.style.rotate=`${$}deg`,s.value.style.rotate=`${$}deg`)}So(N);function W(){p.value&&I()}function ne(){W()}return Fe(()=>n.scrollSubPixel,()=>{W()}),xn(ne),Et(()=>{Ot(()=>{p.value=!0,E(),A(),W()})}),Ft(()=>{p.value=!1}),(F,Q)=>{const M=Gk;return se(),ce("div",{ref_key:"rootRef",ref:b,class:rt(["HomeSwirlTitles",{visible:pe(y)}])},[Y("div",{ref_key:"bgWhiteRef",ref:r,class:"HomeSwirlTitles-bg white"},[Y("div",{ref_key:"logoGreenRef",ref:s,class:"HomeSwirlTitles-logo green"},[He(M)],512)],512),Y("div",{ref_key:"bgGreenRef",ref:i,class:"HomeSwirlTitles-bg green"},null,512),Y("div",{ref_key:"logoWhiteWrapRef",ref:a,class:"HomeSwirlTitles-bg"},[Y("div",{ref_key:"logoWhiteRef",ref:o,class:"HomeSwirlTitles-logo white"},[He(M)],512)],512),Y("div",tN,[Y("div",{ref_key:"titleRef1",ref:u,class:"HomeSwirlTitles-title"},[(se(!0),ce(Ye,null,lt(pe(f),(H,B)=>(se(),ce("div",{ref_for:!0,ref:U=>h[B]=U,key:`title1Line-${B}`,role:"group"},De(H),1))),128))],512)]),Y("div",nN,[Y("div",{ref_key:"titleRef2",ref:c,class:"HomeSwirlTitles-title"},[(se(!0),ce(Ye,null,lt(pe(_),(H,B)=>(se(),ce("div",{ref_for:!0,ref:U=>l[B]=U,key:`title2Line-${B}`,role:"group"},De(H),1))),128))],512)])],2)}}},iN=ft(rN,[["__scopeId","data-v-79c990d7"]]),oN={class:"HomeHero-inner"},sN={class:"sr-only"},aN={class:"HomeHero-title"},lN={class:"HomeHero-title"},uN={__name:"HomeHero",props:{block:{type:Object,required:!0,default:()=>({})}},emits:["load"],setup(t,{emit:e}){const n=t,r=e,i=yn(),o=wh(),s=[],a=[],u=j(null),c=j(null),h=j(null),l={rectScale:1,zScale:1,radiusScale:0,rotationUnit:0,el:null},d=j(!1),f=j(null),_=j(!1),{gsap:p}=gn(),b=Ae(()=>n.block),y=Ae(()=>b.value.videoSrc),w=Ae(()=>b.value.imageSrc),R=Ae(()=>b.value.title1),E=Ae(()=>{var ge;const ue=((ge=R.value)==null?void 0:ge.split(`
`))||[];return b.value.title2&&ue.push(b.value.title2),ue}),A=Ae(()=>{const ue=E.value,ge=["Empowering innovators","to build the future","of energy"];let we=!0;return ge.forEach((Ie,z)=>{ge[z]!==ue[z]&&(we=!1)}),we}),C=new sr,I=new sr,$={progress:0},N=[-1,.2],W=[.3,1],ne={unmasked:{timeline:null,bisection:.5},masked:{timeline:null,bisection:.5},video:{timeline:null,bisection:.5}},F=j(!1),Q=j(!1),M=()=>F.value=!0,H=()=>Q.value=!0,B=Ae(()=>Q.value);Fe(B,ue=>ue&&r("load"),{immediate:!0});function U(){Wr(ne);let ue=ne.masked;ue.timeline=p.timeline({paused:!0}),ue.bisection=ks({timeline:ue.timeline,lineElementsArray:s}),ue=ne.unmasked,ue.timeline=p.timeline({paused:!0}),ue.bisection=ks({timeline:ue.timeline,lineElementsArray:a}),ue=ne.video,ue.timeline=p.timeline({paused:!0}),ue.timeline.set(l,{rotationUnit:.5},0),ue.timeline.to(l,{rectScale:.3,duration:1.5,ease:"power2.inOut"},.001),ue.timeline.to(l,{zScale:.7,duration:2,ease:"power2.inOut"},.001),ue.timeline.to(l,{rotationUnit:.75,duration:2,ease:"power2.inOut"},.2),ue.timeline.to(l,{radiusScale:1.02,duration:1.7,ease:"power2.inOut"},.3)}Fe(()=>o.transitionVisibleState,ue=>{ue===ya.AFTER_ENTER&&oe()},{immediate:!0});function oe(){p.to($,{progress:1,duration:3.4,ease:"sine.out"})}function le(){I.updateFromElement(u.value)}function q(){const{el:ue,rectScale:ge,zScale:we,rotationUnit:Ie,radiusScale:z}=l;if(ue){const P=Je.lvh,ee=Je.ww/P,X=ge*we,x=Ie*zi,G=we*z*P,L=Math.cos(x)*G*ee,D=Math.sin(x)*G;ue.style.translate=`${L}px ${D}px`,ue.style.scale=`${X} ${X}`}}function be(){q(),C.updateFromElement(mr.desktop.elements.heroRect)}function ke(){d.value&&(u.value.style.clipPath=sr.clipPathInsetFromRects(C,I),c.value.style.translate=`${C.left}px ${C.top}px`,c.value.style.width=`${C.width}px`,c.value.style.height=`${C.height}px`)}function Se(ue){var ge,we;(ge=ne.masked.timeline)==null||ge.progress(ue),(we=ne.unmasked.timeline)==null||we.progress(ue)}function ae(){var Ie;const ue=i.scrollSubPixel/Je.lvh,ge=W[1]+1;_.value=vt(ue,-1,ge);let we=ne.masked;if(_.value){if(vt(ue,W[0],ge)){const z=We(ue,W[0],W[1],we.bisection,1,!0);Se(z)}we=ne.video,(Ie=we.timeline)==null||Ie.progress(We(ue,.2,2.5))}}function fe(){d.value&&(ae(),le(),be(),ke())}function _e(){fe()}Fe(()=>i.scrollSubPixel,()=>{fe()}),xn(_e);function te(){const ue=i.scrollSubPixel/Je.lvh,ge=ne.masked;if(vt(ue,N[0],N[1])){const we=We($.progress,0,1,0,ge.bisection,!0);Se(we)}}return So(te),Et(()=>{Ot(()=>{d.value=!0,mr.desktop.elements.heroRect=h.value,l.el=h.value,U(),fe(),Ot(fe)})}),Ft(()=>{p.killTweensOf($),Wr(ne),$.progress=0}),(ue,ge)=>{const we=Wl;return se(),ce("div",{ref_key:"rootRef",ref:f,class:rt(["HomeHero",{visible:pe(_),isInitialText:pe(A)}])},[Y("div",{ref_key:"inputRectRef",ref:h,class:"HomeHero-rect"},null,512),Y("div",oN,[Y("h1",sN,[(se(!0),ce(Ye,null,lt(pe(E),(Ie,z)=>(se(),ce("span",{key:`sr-only-line-${z}`},De(Ie),1))),128))]),Y("div",aN,[(se(!0),ce(Ye,null,lt(pe(E),(Ie,z)=>(se(),ce("div",{ref_for:!0,ref:P=>a[z]=P,key:`unmaskedLine-${z}`,class:"HomeHero-title-line",role:"group"},De(Ie),1))),128))])]),Y("div",{ref_key:"maskedBGRef",ref:c,class:"HomeHero-bg"},[He(we,{"image-url":pe(w),"video-url":pe(y),onVideoplay:M,onImgload:H},null,8,["image-url","video-url"])],512),Y("div",{ref_key:"maskedRef",ref:u,class:"HomeHero-inner masked"},[Y("div",lN,[(se(!0),ce(Ye,null,lt(pe(E),(Ie,z)=>(se(),ce("div",{ref_for:!0,ref:P=>s[z]=P,key:`maskedLine-${z}`,class:"HomeHero-title-line",role:"group"},De(Ie),1))),128))])],512)],2)}}},cN=ft(uN,[["__scopeId","data-v-f92dfd40"]]),fN={class:"HomeAnimation-landscape"},dN={class:"HomeAnimation-landscape-sticky-wrap"},hN={key:0,class:"HomeAnimation-landscape-sticky"},pN={__name:"HomeAnimationLandscape",props:{content:{type:Object,required:!0,default:()=>({hero:{},swirl:{},graph:{},stack:{},quote:{},keyAreas:{},approach:{},stats:{},funds:{}})}},emits:["load"],setup(t,{expose:e,emit:n}){const r=n,i=j(!1),o=j(!1),s=j(!1),a=j(!1),u=j(!1),c=j(!1),h=Ae(()=>i.value&&o.value&&s.value&&a.value&&u.value&&c.value);Fe(h,y=>{y&&r("load")},{immediate:!0});function l(){i.value=!0}function d(){o.value=!0}function f(){s.value=!0}function _(){a.value=!0}function p(){u.value=!0}function b(){c.value=!0}return e({loaded:h}),(y,w)=>{const R=Yk,E=cN,A=iN,C=eN,I=Q6,$=L6,N=E6,W=c6;return se(),ce("div",fN,[Y("div",dN,[t.content?(se(),ce("div",hN,[He(R),He(E,{block:t.content.hero.desktop,onLoad:l},null,8,["block"]),He(A,{block:t.content.swirl.desktop},null,8,["block"]),He(C,{block:t.content.swirl.desktop,onLoad:d},null,8,["block"]),He(I,{block:t.content.graph.desktop,"block-stack":t.content.stack.desktop,onLoad:f},null,8,["block","block-stack"]),He($,{block:t.content.quote.desktop,onLoad:_},null,8,["block"]),He(N,{block:t.content.keyAreas.desktop,onLoad:p},null,8,["block"]),He(W,{block:t.content.approach.desktop,onLoad:b},null,8,["block"])])):it("",!0)])])}}},mN=ft(pN,[["__scopeId","data-v-3059f735"]]);class gN{constructor(e){Oe(this,"canObserve",!1);Oe(this,"onFallback",null);Oe(this,"detector",null);Oe(this,"onLowPerformance",()=>{var e;(e=this.onFallback)==null||e.call(this),this.destroy()})}destroy(){var e;this.onFallback=null,(e=this.detector)==null||e.destroy(),this.detector=null}}const _N={class:"HomeAnimation"},vN={__name:"HomeAnimation",props:{content:{type:Object,required:!0,default:()=>({hero:{},swirl:{},graph:{},stack:{},quote:{},keyAreas:{},approach:{},stats:{},funds:{}})}},emits:["load"],setup(t,{emit:e}){const n=e,r=$k(),i=yn(),o=qr(),s=j(!1),a=j(!1);let u;const c=Ae(()=>r.orientation==="landscape");Fe(a,d=>{d&&s.value&&(n("load"),u==null||u.destroy(),u=new gN(()=>{console.warn("LOW FPS DETECTED"),o.setLowFPS(!0)}))},{immediate:!0});function h(){a.value=!0}let l=!1;return Fe(()=>!i.scrollLock&&s.value,d=>{d&&l&&(l=!1,setTimeout(i.scrollTo(1),50),setTimeout(i.scrollTo(0),100))}),Et(()=>{l=!0,s.value=!0}),Ft(()=>{s.value=!1,u==null||u.destroy(),u=null}),(d,f)=>{const _=mN,p=e6;return se(),ce("div",_N,[pe(c)?(se(),At(_,{key:0,content:t.content,onLoad:h},null,8,["content"])):(se(),At(p,{key:1,content:t.content,onLoad:h},null,8,["content"]))])}}},yN=ft(vN,[["__scopeId","data-v-f0803819"]]),bN="/assets/feature_quote_video_thumb-Z86du56P.webp",wN="/assets/featured_quote_bg-CSY0NBS6.webp",SN="/assets/Quote-CPw6Wkep.mp4",TN={desktop:{backgroundVideoSrc:SN,backgroundImageSrc:wN,title:`When I see a tough problem, my first
  thought is always <code>“how can innovation help</code>
  <code>solve this?”</code> That’s why Breakthrough
  Energy was started – to bring the power of
  innovation to bear on the toughest problem
  humanity has ever faced: climate change.`,video:{name:"Bill Gates",role:`Founder
    Breakthrough Energy`,videoImageSrc:bN,videoData:{value:{url:"",type:""}}}}},T1="/assets/Hero-Reel-compressed-COlxHHPV.mp4",k1="/assets/hero_f0-C9PFU_wA.webp",kN={desktop:{imageSrc:k1,videoSrc:T1,title1:`
Empowering innovators
to build the future
`.trim(),title2:`
of energy.
`.trim()},mobile:{imageSrc:k1,videoSrc:T1,title1:`
Empowering
innovators
`.trim(),title2:`
to build`,title3:`
the future
of energy
`.trim()}},EN="/assets/affordable-1@2x-BiGOHVqX.webp",RN="/assets/reliable-2@2x-CETxX1DK.webp",AN="/assets/zero-carbon-3@2x-CaxkkjRK.webp",CN={desktop:{title:"THE OPPORTUNITY AHEAD",subtitle:"Energy",stacks:[{label:"Affordable",imageSrc:EN},{label:"Reliable",imageSrc:RN},{label:"Zero Carbon",imageSrc:AN}]}},E1="/assets/Agriculture-Edit-compressed-Ddb0a7xq.mp4",R1="/assets/agriculture_f0-B2HbTrze.webp",A1="/assets/Buildings-Edit-compressed-CM3Iudkx.mp4",C1="/assets/buildings_f0-DkMi9yRx.webp",x1="/assets/Electricity-Edit-compressed-Da1Qay8h.mp4",P1="/assets/electricity_f0-Bv7ZfiCF.webp",I1="/assets/Manufacturing-Edit-compressed-DpJAf_Rb.mp4",L1="/assets/manufacturing_f0-DN44fdvY.webp",O1="/assets/Transportation-Edit-compressed-BuDVVJlQ.mp4",M1="/assets/transportation_f0-CJ_Tegjh.webp",xN={desktop:{content:{main:{title:`
      We work to accelerate progress across
      every source of emissions. In these five
      critical areas of energy consumption,
      a fundamental shift is underway,
      creating a <em>landscape of opportunity.</em>
      `.trim(),sideTitle:"ENERGY CONSUMPTION"},areas:[{id:0,src:I1,imageSrc:L1,emission:"30% emissions",button:"25 Manufacturing Companies",url:"manufacturing",title:"Manufacturing",body:"The shift to clean materials is accelerating opening up massive opportunity across  every mode of movement."},{id:1,src:x1,imageSrc:P1,emission:"28% emissions",button:"32 Electricity Companies",url:"electricity",title:"Electricity",body:"A surge in innovation is leading the charge to deliver clean and reliable power while transforming the grid."},{id:2,src:E1,imageSrc:R1,emission:"19% emissions",button:"16 Agriculture Companies",url:"agriculture",title:"Agriculture",body:"Agriculture is undergoing a fundamental shift—toward systems that feed more people with fewer emissions."},{id:3,src:O1,imageSrc:M1,emission:"16% emissions",button:"12 Transportation Companies",url:"transportation",title:"Transportation",body:"The shift to clean mobility is accelerating—opening up massive opportunity across every mode of movement."},{id:4,src:A1,imageSrc:C1,emission:"7% emissions",button:"8 Building Companies",url:"buildings",title:"Buildings",body:"Decarbonizing the built environment is a global challenge and a high-leverage play for long-term impact."}],outro:{title:`This is <em>energy innovation</em>
      on a global scale`,button:"Full Portfolio",url:"/portfolio"}},animation:{cluster:{pivot:{x:.6,y:.5},rects:[{offset:[501,82],rectSize:[138,87]},{offset:[1036,98],rectSize:[172,97]},{offset:[741,256],rectSize:[172,126]},{offset:[1036,509],rectSize:[165,97]},{offset:[777,695],rectSize:[138,87]}]}}},mobile:{content:{main:{title:`
      We work to accelerate progress across
      every source of emissions. In these five
      critical areas of energy consumption,
      a fundamental shift is underway,
      creating a <em>landscape of opportunity.</em>
      `.trim(),sideTitle:"ENERGY CONSUMPTION"},areas:[{id:0,src:I1,imageSrc:L1,emission:"30% emissions",button:"25 Manufacturing Companies",url:"manufacturing",title:"Manufacturing",body:"The shift to clean materials is accelerating opening up massive opportunity across  every mode of movement."},{id:1,src:x1,imageSrc:P1,emission:"28% emissions",button:"32 Electricity Companies",url:"electricity",title:"Electricity",body:"A surge in innovation is leading the charge to deliver clean and reliable power while transforming the grid."},{id:2,src:E1,imageSrc:R1,emission:"19% emissions",button:"16 Agriculture Companies",url:"agriculture",title:"Agriculture",body:"Agriculture is undergoing a fundamental shift—toward systems that feed more people with fewer emissions."},{id:3,src:O1,imageSrc:M1,emission:"16% emissions",button:"12 Transportation Companies",url:"transportation",title:"Transportation",body:"The shift to clean mobility is accelerating—opening up massive opportunity across every mode of movement."},{id:4,src:A1,imageSrc:C1,emission:"7% emissions",button:"8 Building Companies",url:"buildings",title:"Buildings",body:"Decarbonizing the built environment is a global challenge and a high-leverage play for long-term impact."}],outro:{title:`This is <em>energy innovation</em>
      on a global scale`,button:"Full Portfolio",url:"/portfolio"}},animation:{cluster:{pivot:{x:.5,y:.5},rects:[{offset:[221,54],rectSize:[69,44]},{offset:[34,128],rectSize:[68,43]},{offset:[289,190],rectSize:[105,60]},{offset:[25,449],rectSize:[87,51]},{offset:[240,510],rectSize:[75,55]}]}}}},Fa=["desktop","mobile"];function Gt(t,e,n){var o,s;e=e==="desktop"?"":"mobile_";const r=e+n;let i=(o=t[r])==null?void 0:o.value;return i==null&&(i=((s=t[n])==null?void 0:s.value)||null),i}function Da(t){const e=structuredClone(t);return e.desktop=e.desktop||{},e.mobile=e.mobile||structuredClone(t.desktop),e}function __(t){return t?Cn().getVideoSourceKontent(t):null}function Ol(t,{width:e=null,height:n=null}={}){return t?Cn().getWebP(t,{width:e,height:n}):null}function PN(t){const e={};return e.hero=IN(t),e.swirl=LN(t),e.graph=ON(t),e.stack=MN(t),e.quote=$N(t),e.keyAreas=FN(t),e.approach=DN(t),e.stats={},e.funds={},e}function IN(t){const e=Da(kN);return Fa.forEach(n=>{var a,u,c,h;const r=e[n];r.title1=Gt(t,n,"home_hero_heading_1"),r.title2=Gt(t,n,"home_hero_heading_2"),r.title3=Gt(t,n,"home_hero_heading_3");const i=(u=(a=Gt(t,n,"home_hero_video"))==null?void 0:a[0])==null?void 0:u.url;r.videoSrc=__(i);const o=(h=(c=Gt(t,n,"home_hero_video_image"))==null?void 0:c[0])==null?void 0:h.url,s=n==="desktop"?1920:375;r.imageSrc=Ol(o,{width:s})||r.imageSrc}),e}function LN(t){const e=Da(bc);return Fa.forEach(n=>{const r=e[n].content;r.title1=Gt(t,n,"home_swirl_title_1"),r.title2=Gt(t,n,"home_swirl_title_2");const i=Gt(t,n,"home_swirl_images")||[];r.images.forEach((o,s)=>{var u;const a=n==="desktop"?700:300;o.src=Ol((u=i[s])==null?void 0:u.url,{width:a})||o.src})}),e}function ON(t){const e=Da(oD);return Fa.forEach(n=>{const r=e[n];r.title=Gt(t,n,"home_graph_title"),r.body1=Gt(t,n,"home_graph_body_1"),r.body2=Gt(t,n,"home_graph_body_2"),r.maximum1=Gt(t,n,"home_graph_max_1"),r.maximum2=Gt(t,n,"home_graph_max_2"),r.minimum1=Gt(t,n,"home_graph_min_1"),r.minimum2=Gt(t,n,"home_graph_min_2")}),e}function MN(t){const e=Da(CN);return Fa.forEach(n=>{e[n]=e[n]||{};const r=e[n];r.title=Gt(t,n,"home_graph_title"),r.subtitle=Gt(t,n,"home_image_stack_subtitle"),r.stacks.forEach((i,o)=>{var c,h;const s=Gt(t,n,`home_image_stack_label_${o+1}`);i.label=s||i.label;const a=(h=(c=Gt(t,n,`home_image_stack_img_src_${o+1}`))==null?void 0:c[0])==null?void 0:h.url,u=n==="desktop"?1024:375;i.imageSrc=Ol(a,{width:u})||i.imageSrc})}),e}function $N(t){const e=Da(TN);return Fa.forEach(n=>{var u,c,h,l,d,f,_,p;const r=e[n];r.title=Gt(t,n,"home_quote_text"),r.video.name=Gt(t,n,"home_quote_title"),r.video.role=Gt(t,n,"home_quote_role");const i=(c=(u=Gt(t,n,"home_quote_bg_video"))==null?void 0:u[0])==null?void 0:c.url;r.backgroundVideoSrc=__(i)||r.backgroundVideoSrc;const o=(l=(h=Gt(t,n,"home_quote_bg_image"))==null?void 0:h[0])==null?void 0:l.url;let s=n==="desktop"?1920:375;r.backgroundImageSrc=Ol(o,{width:s})||r.backgroundImageSrc;const a=(f=(d=Gt(t,n,"home_quote_video_image"))==null?void 0:d[0])==null?void 0:f.url;s=n==="desktop"?500:375,r.video.videoImageSrc=Ol(a,{width:s})||r.video.videoImageSrc,n==="desktop"?r.video.videoData=((_=t.home_quote_video)==null?void 0:_.linkedItems[0].elements.video)||null:r.video.videoData=((p=t.home_quote_video)==null?void 0:p.linkedItems[0].elements.video)||null}),e}function FN(t){const e=Da(xN);return Fa.forEach(n=>{const r=e[n].content;r.main.title=Gt(t,n,"home_key_areas_intro"),r.main.sidetitle=Gt(t,n,"home_key_areas_sidetitle"),r.outro.title=Gt(t,n,"home_key_areas_outro"),r.areas.forEach((i,o)=>{var a,u,c,h,l,d,f,_,p;const s=(c=(u=(a=t.key_areas)==null?void 0:a.linkedItems)==null?void 0:u[o])==null?void 0:c.elements;if(s){const b=(d=(l=(h=s[n==="desktop"?"video":"mobile_video"])==null?void 0:h.value)==null?void 0:l[0])==null?void 0:d.url;i.src=__(b)||i.src;const y=(p=(_=(f=s[n==="desktop"?"video_image":"mobile_video_image"])==null?void 0:f.value)==null?void 0:_[0])==null?void 0:p.url,w=n==="desktop"?1920:375;i.imageSrc=Ol(y,{width:w})||i.imageSrc,i.emission=s.emissions.value,i.button=s.button.value,i.title=s.title.value,i.body=s.description.value}})}),e}function DN(t){const e=Da(X4);return Fa.forEach(n=>{e[n].chapters.forEach((i,o)=>{i.title=Gt(t,n,`home_approach_${o+1}_title`),i.subtitle=Gt(t,n,`home_approach_${o+1}_subtitle`),i.body=Gt(t,n,`home_approach_${o+1}_body`)})}),e}const NN={class:"page"},HN=Object.assign({name:"IndexPage"},{__name:"index",setup(t){const e=Cn(),n=qr();j("home");const r=j(""),i=j(null);Bs(),Hs();const o=j(),{data:s,error:a,isLoading:u}=Dd("home",!0,5),c=j(null);Dc(Ae(()=>({title:r.value||"Home",meta:i.value?e.getMeta(i.value):[],link:e.getMetaLinks(i.value)})));async function h(){var _,p;if(o.value=!1,!!s.value){if(!((_=s.value.system)!=null&&_.type)){o.value="Invalid page data structure";return}i.value=s.value.elements,l(),r.value=(p=i.value.title)==null?void 0:p.value,e.pageType=s.value.system.type}}function l(){var p,b,y,w;const _=(w=(y=(b=(p=i.value)==null?void 0:p.components)==null?void 0:b.linkedItems)==null?void 0:y[0])==null?void 0:w.elements;if(_){const R=PN(_);c.value=R}}async function d(){try{await new Promise((_,p)=>{const b=Fe(()=>u.value,y=>{y||(b(),_())},{immediate:!0})}),s.value&&await h()}catch(_){console.error("Error in onServerPrefetch:",_)}}Ps(()=>{s.value&&!u.value&&h(),a.value&&(o.value="Error loading page",console.error("Error loading page:",a.value))}),Ml(async()=>{BTEDL.newPage("home"),s.value&&!u.value&&h()}),Oa(async()=>{await d()});function f(){n.setIsLoaderVisible(!1)}return Et(()=>{n.setIsLoaderVisible(!0)}),Ft(()=>{}),(_,p)=>{const b=yN,y=H4;return se(),ce("div",NN,[c.value?(se(),At(b,{key:0,content:c.value,onLoad:f},null,8,["content"])):it("",!0),c.value?(se(),At(y,{key:1})):it("",!0)])}}}),Xk=ft(HN,[["__scopeId","data-v-5a57413c"]]),BN=Object.freeze(Object.defineProperty({__proto__:null,default:Xk},Symbol.toStringTag,{value:"Module"})),VN={viewBox:"0 0 63 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function UN(t,e){return se(),ce("svg",VN,e[0]||(e[0]=[Y("path",{d:"M49.2303 38.2347C48.1636 39.3014 47.0969 40.1547 45.9769 40.7947C42.8303 42.6614 39.4169 43.4614 35.8436 43.1947C33.3903 43.0347 30.9903 42.2881 28.8569 41.1147C26.6703 39.9414 24.8036 38.2881 23.3103 36.3147L21.5503 34.0214L24.8569 31.5147C25.2303 31.2481 25.6569 31.1414 26.0836 31.1947C26.5103 31.2481 26.8836 31.4614 27.1503 31.8347L27.8969 32.8481C28.8569 34.1814 30.1369 35.2481 31.5769 36.0481C33.0169 36.8481 34.6169 37.2747 36.2169 37.4347C38.4569 37.5947 40.7503 37.0614 42.7769 35.9414C43.6303 35.4614 44.4303 34.8214 45.2303 34.0214L53.7103 25.5414C55.7903 23.4081 56.9103 20.5814 56.8569 17.5947C56.8569 13.3814 54.5103 9.59474 50.7236 7.56808C49.2303 6.76808 47.4703 6.34141 45.4436 6.28808C42.4569 6.28808 39.6836 7.40808 37.5503 9.48808L31.7903 15.1947C31.1503 15.8347 30.0836 15.8347 29.4436 15.1947L26.5103 12.2614L33.4969 5.32808C36.7503 2.28808 41.0169 0.528076 45.6569 0.528076C50.1903 0.528076 54.457 2.34141 57.657 5.54141C60.857 8.74141 62.6703 13.0081 62.6703 17.5414C62.6703 22.0747 61.017 26.3414 57.8703 29.5947L49.2303 38.2347ZM4.85695 33.9681C1.71028 37.2214 0.0569458 41.5414 0.0569458 46.0747C0.110279 52.3681 3.52361 57.9681 9.17695 61.1147C11.4703 62.3947 14.2436 63.0881 17.1236 63.0881H17.2836C21.7636 63.0881 26.0303 61.3814 29.2836 58.2347L36.2169 51.3014L33.2836 48.3681C32.6436 47.7281 31.5769 47.7281 30.9369 48.3681L25.2303 54.0747C23.0969 56.1547 20.3236 57.2747 17.2303 57.2747C14.1903 57.2747 11.3636 56.0481 9.28361 53.9147C7.15028 51.7814 5.97695 48.9547 5.97695 45.9681C5.97695 42.9814 7.04361 40.1547 9.12361 38.0214L17.7103 29.4347C18.8836 28.2614 20.2169 27.4081 21.7636 26.8214C23.3103 26.2347 24.9103 26.0214 26.5636 26.1281C28.1636 26.2347 29.8169 26.7147 31.2036 27.5147C32.6436 28.3147 33.8703 29.3814 34.8836 30.7147L35.6303 31.7281C35.8969 32.1014 36.2703 32.3147 36.6969 32.3681C37.1236 32.3681 37.5503 32.3681 37.9236 32.0481L41.2303 29.5414L39.4703 27.2481C38.0303 25.2747 36.1103 23.6214 33.9236 22.4481C31.7903 21.2747 29.3369 20.5814 26.9369 20.3681C26.5103 20.3681 26.0836 20.3681 25.7103 20.3681C23.1503 20.3681 20.6969 20.9014 18.3503 22.0214C16.5903 22.8747 14.8303 24.1014 13.1769 25.7547L4.91028 34.0214L4.85695 33.9681Z",fill:"currentColor"},null,-1)]))}const Qk={render:UN},jN={fill:"none",viewBox:"0 0 41 41",xmlns:"http://www.w3.org/2000/svg"};function WN(t,e){return se(),ce("svg",jN,e[0]||(e[0]=[Y("path",{d:"m6.06382 18.4375 2.53333-2.6 7.06665 6.9333c.5.5 1.2.6334 1.8334.3667.6333-.2667 1.0333-.8667 1.0333-1.5667v-19.59997h3.6333v19.73337c0 .7.4 1.3 1.0334 1.5666.6666.2667 1.3666.1334 1.8666-.3666l7.0334-7.0334 2.5666 2.5667-14.1666 14.1667zm-3.9 16.3333v3.6334h36.39998v-3.6334z",fill:"currentColor"},null,-1)]))}const Jk={render:WN},qN=["data-is-modal-route"],zN=["data-is-modal-route"],GN={class:"AreaDetail-main"},YN={class:"AreaDetail-header"},KN={class:"AreaDetail-content"},XN={key:1,class:"AreaDetail-technologies"},QN={class:"AreaDetail-pilllist"},JN={key:2,class:"AreaDetail-links"},ZN={class:"AreaDetail-linklist"},eH=["href","target"],tH={key:0,class:"AreaDetail-linktype type-body--bold"},nH={key:1,class:"AreaDetail-linktype AreaDetail-linktype--placeholder"},rH={class:"AreaDetail-linktitle type-body"},iH={class:"AreaDetail-linkicon"},oH={key:0,class:"AreaDetail-actions"},sH={__name:"AreaDetail",props:{area:{type:Object,required:!0},theme:{type:Object,default:()=>({name:"theme",type:"multiple_choice",value:[{name:"yellow",codename:"yellow"}]})},isModalRoute:{type:Boolean,default:!1}},setup(t){const e=t,n=Cn(),r=Ae(()=>e.area.elements||{});function i(c){var l,d;if(!c.elements)return"#";const h=n.getAssetURL(c.elements.download);return h||((d=(l=c.elements)==null?void 0:l.link)!=null&&d.value?c.elements.link.value:"#")}function o(c){return!!n.getAssetURL(c.elements.download)}function s(c){var h,l;return!!((l=(h=c.elements)==null?void 0:h.link)!=null&&l.value)}function a(c){if(!c.type)return"";const h=c.type.value;return!h||!h.length?"":h[0].name||""}const u=Ae(()=>e.area.elements.title.value?bh(e.area.elements.title.value):"");return(c,h)=>{var b,y,w,R;const l=Fl,d=Ik,f=Jk,_=Qk,p=jT;return se(),ce("section",{class:"AreaDetail","data-is-modal-route":t.isModalRoute},[Y("div",{class:"AreaDetail-container","data-is-modal-route":t.isModalRoute},[Y("div",GN,[Y("header",YN,[r.value.title?(se(),ce("h2",{key:0,class:rt(["AreaDetail-title type-h3",u.value])},De(r.value.title.value),3)):it("",!0)]),Y("div",KN,[r.value.intro?(se(),At(l,{key:0,class:"AreaDetail-intro type-body--lg",html:r.value.intro.value},null,8,["html"])):it("",!0),(y=(b=r.value.technologies)==null?void 0:b.value)!=null&&y.length?(se(),ce("div",XN,[h[0]||(h[0]=Y("h3",{class:"AreaDetail-sectiontitle type-h6"}," Key Technologies ",-1)),Y("ul",QN,[(se(!0),ce(Ye,null,lt(r.value.technologies.value,E=>(se(),ce("li",{key:E.codename,class:"technology-item"},[He(d,{label:E.name},null,8,["label"])]))),128))])])):it("",!0),(R=(w=r.value.perspectives)==null?void 0:w.linkedItems)!=null&&R.length?(se(),ce("div",JN,[h[1]||(h[1]=Y("h3",{class:"AreaDetail-sectiontitle type-h6"}," Perspectives ",-1)),Y("ul",ZN,[(se(!0),ce(Ye,null,lt(r.value.perspectives.linkedItems,E=>{var A;return se(),ce("li",{key:E.system.id,class:"AreaDetail-linkitem"},[Y("a",{href:i(E),target:s(E)?"_blank":"_self",class:"AreaDetail-link"},[(A=E.elements)!=null&&A.type?(se(),ce("span",tH,De(a(E.elements)),1)):(se(),ce("span",nH)),Y("span",rH,De(E.system.name),1),Y("span",iH,[o(E)?(se(),At(f,{key:0})):(se(),At(_,{key:1}))])],8,eH)])}),128))])])):it("",!0)])]),t.isModalRoute?(se(),ce("div",oH,[He(p,{to:pe(n).prepLink("portfolio"),theme:"black",label:"Explore the Full Portfolio"},null,8,["to"])])):it("",!0)],8,zN)],8,qN)}}},aH=ft(sH,[["__scopeId","data-v-36cae1fc"]]),lH=["data-nav-color","data-is-modal-route"],uH={key:0,class:"portfolio-loading"},cH={key:1,class:"portfolio-error"},fH={class:"type-oversized"},dH={key:2,class:"portfolio-content"},hH=["data-is-modal-route","data-has-filter"],pH=["data-has-filter","data-is-modal-route"],mH={__name:"portfolio",props:{slug:{type:String,required:!0},filter:{type:String,default:""},isModalRoute:{type:Boolean,default:!1},theme:{name:"theme",type:Object,default:()=>({name:"theme",type:"multiple_choice",value:[{name:"cream",codename:"cream"}]})}},setup(t){const e=t,n=Cn(),r=j(""),i=j(null),o=Bs(),s=Hs(),a=j(),u=j(null),{data:c,error:h,isLoading:l}=yh("portfolio"),{data:d,error:f,isLoading:_}=Dd("sector"),{data:p,error:b,isLoading:y}=Dd("program"),{data:w,error:R,isLoading:E}=wk("be"),A=j(""),C=j([]),I=Ae(()=>A.value?`${r.value||"Portfolio"} - ${A.value}`:r.value||"Portfolio");e.isModalRoute||Dc(Ae(()=>({title:I.value,meta:i.value?n.getMeta(i.value):[],link:n.getMetaLinks(i.value)})));function $(){i.value.theme=e.theme}const N=Ae(()=>!i.value||!i.value.theme?{}:{[`theme--${n.getThemeValue(i.value.theme)}`]:!0}),W=Ae(()=>{var oe,le,q;return(q=(le=(oe=i.value)==null?void 0:oe.companies)==null?void 0:le.linkedItems)!=null&&q.length?i.value.companies.linkedItems:[]}),ne=Ae(()=>A.value?W.value.filter(oe=>{var le,q,be;return(be=(q=(le=oe.elements)==null?void 0:le.tags)==null?void 0:q.value)!=null&&be.length?!!(oe.elements.tags.value.some(ke=>ke.name===A.value)||oe.elements.tags.value.some(ke=>ke.name===A.value)):!1}):W.value);async function F(){var oe,le;if(a.value=!1,H(),!!c.value){if(!((oe=c.value.system)!=null&&oe.type)){a.value="Invalid page data structure";return}i.value=c.value.elements,r.value=(le=i.value.title)==null?void 0:le.value,e.isModalRoute||(n.pageType=c.value.system.type),$()}}function Q(oe){var q,be;let le=(be=(q=oe.elements)==null?void 0:q.portfolio_area)==null?void 0:be.value;return le.length<1?!1:(le=le[0].name,le===A.value)}function M(){if(!d||!p||!d.value||!p.value){C.value=[];return}const oe=d.value.filter(q=>Q(q)),le=p.value.filter(q=>Q(q));C.value=oe.length?oe[0]:le.length?le[0]:[]}function H(){A.value=e.filter?e.filter:"",(p.value||d.value)&&A.value!==""&&M()}function B(oe){if(e.filter===oe)return;const le=oe?`/portfolio/${encodeURIComponent(oe)}`:"/portfolio";s.push(le)}async function U(){try{await new Promise((oe,le)=>{const q=Fe(()=>l.value,be=>{be||(q(),oe())},{immediate:!0})}),c.value&&await F()}catch(oe){console.error("Error in onServerPrefetch:",oe)}}return Fe(A,oe=>{B(oe)}),Fe(()=>o.params,()=>{H()},{immediate:!0}),Ps(()=>{c.value&&!l.value&&F(),h.value&&(a.value="Error loading page")}),Ml(async()=>{u.value=e.slug,BTEDL.newPage("portfolio"),c.value&&!l.value&&F()}),Oa(async()=>{u.value=e.slug,await U()}),Ft(()=>{}),(oe,le)=>{const q=Mk,be=aH,ke=Ok,Se=Pk;return se(),ce("div",{key:oe.$route.fullPath,class:rt(["portfolio",N.value]),"data-nav-color":pe(n).getNavColorValue(N.value),"data-is-modal-route":t.isModalRoute},[pe(l)||pe(E)?(se(),ce("div",uH,le[1]||(le[1]=[Y("div",{class:"loading-indicator"}," Loading page content... ",-1)]))):a.value?(se(),ce("div",cH,[Y("h1",fH,De(a.value),1),le[2]||(le[2]=Y("p",null,"Sorry, we couldn't load the page you requested.",-1))])):i.value?(se(),ce("div",dH,[!C.value||!A.value?(se(),At(q,{key:0,block:i.value},null,8,["block"])):it("",!0),Y("section",{class:"portfolio-companies","data-is-modal-route":t.isModalRoute,"data-has-filter":!!A.value},[Y("div",{class:rt(["portfolio-container",t.isModalRoute?"portfolio-container--modal":""])},[Y("div",{class:"portfolio-layout","data-has-filter":!!A.value,"data-is-modal-route":t.isModalRoute},[C.value&&A.value?(se(),At(be,{key:0,area:C.value,theme:i.value.theme,class:"portfolio-areadetail","is-modal-route":t.isModalRoute},null,8,["area","theme","is-modal-route"])):it("",!0),He(ke,{companies:ne.value,filtered:!!A.value,theme:i.value.theme,class:"portfolio-gridcontainer","is-modal-route":t.isModalRoute},null,8,["companies","filtered","theme","is-modal-route"])],8,pH)],2)],8,hH),!t.isModalRoute&&Object.keys(pe(w)).length>0?(se(),At(Se,{key:1,"selected-term":A.value,"onUpdate:selectedTerm":le[0]||(le[0]=ae=>A.value=ae),taxonomies:pe(w)},null,8,["selected-term","taxonomies"])):it("",!0)])):it("",!0)],10,lH)}}},v_=ft(mH,[["__scopeId","data-v-e29f5a32"]]),gH=Object.freeze(Object.defineProperty({__proto__:null,default:v_},Symbol.toStringTag,{value:"Module"})),Zk=t=>{const e={};Object.entries(Object.assign({"/src/layouts/default.vue":()=>Gr(()=>import("./default-D0PYt-Z_.js"),__vite__mapDeps([2,3,4]))})).forEach(([i,o])=>{let s=i.replace("/src/layouts/","").replace(".vue","");e[s]=o});function r(i,o=!0){return i.map(s=>{var a,u,c,h,l,d;if(((a=s.children)==null?void 0:a.length)>0&&(s.children=r(s.children,!1)),o){if(!s.component&&((u=s.children)==null?void 0:u.find(_=>{var p;return(_.path===""||_.path==="/")&&((p=_.meta)==null?void 0:p.isLayout)})))return s;if(((c=s.meta)==null?void 0:c.layout)!==!1)return{path:s.path,component:e[((h=s.meta)==null?void 0:h.layout)||"default"],children:s.path==="/"?[s]:[{...s,path:""}],meta:{isLayout:!0}}}return(l=s.meta)!=null&&l.layout?{path:s.path,component:e[(d=s.meta)==null?void 0:d.layout],children:[{...s,path:""}],meta:{isLayout:!0}}:s})}return r(t)};async function eE(t,e={}){const n=e.document||t.resolvedOptions.document;if(!n||!t.dirty)return;const r={shouldRender:!0,tags:[]};if(await t.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return t._domUpdatePromise||(t._domUpdatePromise=new Promise(async i=>{var f;const o=new Map,s=new Promise(_=>{t.resolveTags().then(p=>{_(p.map(b=>{const y=o.get(b._d)||0,w={tag:b,id:(y?`${b._d}:${y}`:b._d)||c1(b),shouldRender:!0};return b._d&&Tk(b._d)&&o.set(b._d,y+1),w}))})});let a=t._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const _ of["body","head"]){const p=(f=n[_])==null?void 0:f.children;for(const b of p){const y=b.tagName.toLowerCase();if(!u1.has(y))continue;const w=kk({tag:y,props:{}},{innerHTML:b.innerHTML,...b.getAttributeNames().reduce((R,E)=>(R[E]=b.getAttribute(E),R),{})||{}});if(w.key=b.getAttribute("data-hid")||void 0,w._d=Vm(w)||c1(w),a.elMap.has(w._d)){let R=1,E=w._d;for(;a.elMap.has(E);)E=`${w._d}:${R++}`;a.elMap.set(E,b)}else a.elMap.set(w._d,b)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function u(_,p,b){const y=`${_}:${p}`;a.sideEffects[y]=b,delete a.pendingSideEffects[y]}function c({id:_,$el:p,tag:b}){const y=b.tag.endsWith("Attrs");a.elMap.set(_,p),y||(b.textContent&&b.textContent!==p.textContent&&(p.textContent=b.textContent),b.innerHTML&&b.innerHTML!==p.innerHTML&&(p.innerHTML=b.innerHTML),u(_,"el",()=>{p==null||p.remove(),a.elMap.delete(_)}));for(const w in b.props){if(!Object.prototype.hasOwnProperty.call(b.props,w))continue;const R=b.props[w];if(w.startsWith("on")&&typeof R=="function"){const A=p==null?void 0:p.dataset;if(A&&A[`${w}fired`]){const C=w.slice(0,-5);R.call(p,new Event(C.substring(2)))}p.getAttribute(`data-${w}`)!==""&&((b.tag==="bodyAttrs"?n.defaultView:p).addEventListener(w.substring(2),R.bind(p)),p.setAttribute(`data-${w}`,""));continue}const E=`attr:${w}`;if(w==="class"){if(!R)continue;for(const A of R)y&&u(_,`${E}:${A}`,()=>p.classList.remove(A)),!p.classList.contains(A)&&p.classList.add(A)}else if(w==="style"){if(!R)continue;for(const[A,C]of R)u(_,`${E}:${A}`,()=>{p.style.removeProperty(A)}),p.style.setProperty(A,C)}else R!==!1&&R!==null&&(p.getAttribute(w)!==R&&p.setAttribute(w,R===!0?"":String(R)),y&&u(_,E,()=>p.removeAttribute(w)))}}const h=[],l={bodyClose:void 0,bodyOpen:void 0,head:void 0},d=await s;for(const _ of d){const{tag:p,shouldRender:b,id:y}=_;if(b){if(p.tag==="title"){n.title=p.textContent,u("title","",()=>n.title=a.title);continue}_.$el=_.$el||a.elMap.get(y),_.$el?c(_):u1.has(p.tag)&&h.push(_)}}for(const _ of h){const p=_.tag.tagPosition||"head";_.$el=n.createElement(_.tag.tag),c(_),l[p]=l[p]||n.createDocumentFragment(),l[p].appendChild(_.$el)}for(const _ of d)await t.hooks.callHook("dom:renderTag",_,n,u);l.head&&n.head.appendChild(l.head),l.bodyOpen&&n.body.insertBefore(l.bodyOpen,n.body.firstChild),l.bodyClose&&n.body.appendChild(l.bodyClose);for(const _ in a.pendingSideEffects)a.pendingSideEffects[_]();t._dom=a,await t.hooks.callHook("dom:rendered",{renders:d}),i()}).finally(()=>{t._domUpdatePromise=void 0,t.dirty=!1})),t._domUpdatePromise}function _H(t={}){var r,i,o;const e=((r=t.domOptions)==null?void 0:r.render)||eE;t.document=t.document||(typeof window<"u"?document:void 0);const n=((o=(i=t.document)==null?void 0:i.head.querySelector('script[id="unhead:payload"]'))==null?void 0:o.innerHTML)||!1;return U5({...t,plugins:[...t.plugins||[],{key:"client",hooks:{"entries:updated":e}}],init:[n?JSON.parse(n):!1,...t.init||[]]})}function vH(t,e){let n=0;return()=>{const r=++n;e(()=>{n===r&&t()})}}function yH(t={}){const e=_H({domOptions:{render:vH(()=>eE(e),n=>setTimeout(n,0))},...t});return e.install=W5(e),e}function bH(t){return document.readyState==="loading"?new Promise(e=>{document.addEventListener("DOMContentLoaded",()=>e(t))}):Promise.resolve(t)}const wH=Ni({setup(t,{slots:e}){const n=j(!1);return Et(()=>n.value=!0),()=>n.value?e.default&&e.default({}):e.placeholder&&e.placeholder({})}});function SH(t){try{return JSON.parse(t||"{}")}catch(e){return console.error("[SSG] On state deserialization -",e,t),{}}}function TH(t,e,n,r){const{transformState:i,registerComponents:o=!0,useHead:s=!0,rootContainer:a="#app"}={};async function u(c=!1,h){const l=Px(t);let d;s&&l.use(d=yH());const f=yP({history:Y2(e.base),...e}),{routes:_}=e;o&&l.component("ClientOnly",wH);const p=[],w={app:l,head:d,isClient:!0,router:f,routes:_,onSSRAppRendered:()=>{},triggerOnSSRAppRendered:()=>Promise.all(p.map(C=>C())),initialState:{},transformState:i,routePath:h};await bH(),w.initialState=(i==null?void 0:i(window.__INITIAL_STATE__||{}))||SH(window.__INITIAL_STATE__),await(n==null?void 0:n(w)),l.use(f);let R,E=!0;f.beforeEach((C,I,$)=>{(E||R&&R===C.path)&&(E=!1,R=C.path,C.meta.state=w.initialState),$()});const A=w.initialState;return{...w,initialState:A}}return(async()=>{const{app:c,router:h}=await u();await h.isReady(),c.mount(a,!0)})(),u}const tE=[{path:"/",name:"/",component:()=>Gr(()=>Promise.resolve().then(()=>BN),void 0)},{path:"/:slug",name:"/[slug]",component:()=>Gr(()=>import("./_slug_-BajTuty5.js"),__vite__mapDeps([0,1])),meta:{layout:"default"}},{path:"/:slug(.*)",name:"/[...slug]",component:()=>Gr(()=>Promise.resolve().then(()=>n$),void 0),meta:{layout:"default"}},{path:"/example",name:"/example",component:()=>Gr(()=>import("./example-Kht5TMLz.js"),__vite__mapDeps([5,3,6]))},{path:"/fellows-projects",name:"/fellows-projects",component:()=>Gr(()=>Promise.resolve().then(()=>g4),void 0)},{path:"/partners",name:"/partners",component:()=>Gr(()=>import("./partners-nagWYgK9.js"),__vite__mapDeps([7,8,9,10]))},{path:"/people",name:"/people",component:()=>Gr(()=>import("./people-BAUKVO9d.js"),__vite__mapDeps([11,12,8,9,13,14]))},{path:"/perspectives",name:"/perspectives",component:()=>Gr(()=>Promise.resolve().then(()=>$8),void 0)},{path:"/portfolio",name:"/portfolio",component:()=>Gr(()=>Promise.resolve().then(()=>gH),void 0)},{path:"/programs",name:"/programs",component:()=>Gr(()=>import("./programs-DHXLke79.js"),__vite__mapDeps([15,12,8,9,13,16]))},{path:"/signup",name:"/signup",component:()=>Gr(()=>import("./signup-D-S4hrIU.js"),__vite__mapDeps([17,18]))}],kH={class:"proxy-block"},EH={__name:"ProxyBlock",props:{block:{type:Object,required:!0,default:()=>({_type:"",vueType:"",pageTitle:"",pageSlug:"",blockIndex:1,cascadeColor:"white"})}},setup(t){return(e,n)=>(se(),ce("div",kH,[Y("h3",null,De(t.block.vueType)+" : "+De(t.block._type),1),Y("p",null,De(t.block),1)]))}},RH=ft(EH,[["__scopeId","data-v-f15c05b3"]]);var Rp={};/*!
 *  howler.js v2.2.4
 *  howlerjs.com
 *
 *  (c) 2013-2020, James Simpson of GoldFire Studios
 *  goldfirestudios.com
 *
 *  MIT License
 */var $1;function AH(){return $1||($1=1,function(t){(function(){var e=function(){this.init()};e.prototype={init:function(){var l=this||n;return l._counter=1e3,l._html5AudioPool=[],l.html5PoolSize=10,l._codecs={},l._howls=[],l._muted=!1,l._volume=1,l._canPlayEvent="canplaythrough",l._navigator=typeof window<"u"&&window.navigator?window.navigator:null,l.masterGain=null,l.noAudio=!1,l.usingWebAudio=!0,l.autoSuspend=!0,l.ctx=null,l.autoUnlock=!0,l._setup(),l},volume:function(l){var d=this||n;if(l=parseFloat(l),d.ctx||h(),typeof l<"u"&&l>=0&&l<=1){if(d._volume=l,d._muted)return d;d.usingWebAudio&&d.masterGain.gain.setValueAtTime(l,n.ctx.currentTime);for(var f=0;f<d._howls.length;f++)if(!d._howls[f]._webAudio)for(var _=d._howls[f]._getSoundIds(),p=0;p<_.length;p++){var b=d._howls[f]._soundById(_[p]);b&&b._node&&(b._node.volume=b._volume*l)}return d}return d._volume},mute:function(l){var d=this||n;d.ctx||h(),d._muted=l,d.usingWebAudio&&d.masterGain.gain.setValueAtTime(l?0:d._volume,n.ctx.currentTime);for(var f=0;f<d._howls.length;f++)if(!d._howls[f]._webAudio)for(var _=d._howls[f]._getSoundIds(),p=0;p<_.length;p++){var b=d._howls[f]._soundById(_[p]);b&&b._node&&(b._node.muted=l?!0:b._muted)}return d},stop:function(){for(var l=this||n,d=0;d<l._howls.length;d++)l._howls[d].stop();return l},unload:function(){for(var l=this||n,d=l._howls.length-1;d>=0;d--)l._howls[d].unload();return l.usingWebAudio&&l.ctx&&typeof l.ctx.close<"u"&&(l.ctx.close(),l.ctx=null,h()),l},codecs:function(l){return(this||n)._codecs[l.replace(/^x-/,"")]},_setup:function(){var l=this||n;if(l.state=l.ctx&&l.ctx.state||"suspended",l._autoSuspend(),!l.usingWebAudio)if(typeof Audio<"u")try{var d=new Audio;typeof d.oncanplaythrough>"u"&&(l._canPlayEvent="canplay")}catch{l.noAudio=!0}else l.noAudio=!0;try{var d=new Audio;d.muted&&(l.noAudio=!0)}catch{}return l.noAudio||l._setupCodecs(),l},_setupCodecs:function(){var l=this||n,d=null;try{d=typeof Audio<"u"?new Audio:null}catch{return l}if(!d||typeof d.canPlayType!="function")return l;var f=d.canPlayType("audio/mpeg;").replace(/^no$/,""),_=l._navigator?l._navigator.userAgent:"",p=_.match(/OPR\/(\d+)/g),b=p&&parseInt(p[0].split("/")[1],10)<33,y=_.indexOf("Safari")!==-1&&_.indexOf("Chrome")===-1,w=_.match(/Version\/(.*?) /),R=y&&w&&parseInt(w[1],10)<15;return l._codecs={mp3:!!(!b&&(f||d.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!f,opus:!!d.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!d.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!d.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(d.canPlayType('audio/wav; codecs="1"')||d.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!d.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!d.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(d.canPlayType("audio/x-m4a;")||d.canPlayType("audio/m4a;")||d.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(d.canPlayType("audio/x-m4b;")||d.canPlayType("audio/m4b;")||d.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(d.canPlayType("audio/x-mp4;")||d.canPlayType("audio/mp4;")||d.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!R&&d.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!R&&d.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!d.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(d.canPlayType("audio/x-flac;")||d.canPlayType("audio/flac;")).replace(/^no$/,"")},l},_unlockAudio:function(){var l=this||n;if(!(l._audioUnlocked||!l.ctx)){l._audioUnlocked=!1,l.autoUnlock=!1,!l._mobileUnloaded&&l.ctx.sampleRate!==44100&&(l._mobileUnloaded=!0,l.unload()),l._scratchBuffer=l.ctx.createBuffer(1,1,22050);var d=function(f){for(;l._html5AudioPool.length<l.html5PoolSize;)try{var _=new Audio;_._unlocked=!0,l._releaseHtml5Audio(_)}catch{l.noAudio=!0;break}for(var p=0;p<l._howls.length;p++)if(!l._howls[p]._webAudio)for(var b=l._howls[p]._getSoundIds(),y=0;y<b.length;y++){var w=l._howls[p]._soundById(b[y]);w&&w._node&&!w._node._unlocked&&(w._node._unlocked=!0,w._node.load())}l._autoResume();var R=l.ctx.createBufferSource();R.buffer=l._scratchBuffer,R.connect(l.ctx.destination),typeof R.start>"u"?R.noteOn(0):R.start(0),typeof l.ctx.resume=="function"&&l.ctx.resume(),R.onended=function(){R.disconnect(0),l._audioUnlocked=!0,document.removeEventListener("touchstart",d,!0),document.removeEventListener("touchend",d,!0),document.removeEventListener("click",d,!0),document.removeEventListener("keydown",d,!0);for(var E=0;E<l._howls.length;E++)l._howls[E]._emit("unlock")}};return document.addEventListener("touchstart",d,!0),document.addEventListener("touchend",d,!0),document.addEventListener("click",d,!0),document.addEventListener("keydown",d,!0),l}},_obtainHtml5Audio:function(){var l=this||n;if(l._html5AudioPool.length)return l._html5AudioPool.pop();var d=new Audio().play();return d&&typeof Promise<"u"&&(d instanceof Promise||typeof d.then=="function")&&d.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(l){var d=this||n;return l._unlocked&&d._html5AudioPool.push(l),d},_autoSuspend:function(){var l=this;if(!(!l.autoSuspend||!l.ctx||typeof l.ctx.suspend>"u"||!n.usingWebAudio)){for(var d=0;d<l._howls.length;d++)if(l._howls[d]._webAudio){for(var f=0;f<l._howls[d]._sounds.length;f++)if(!l._howls[d]._sounds[f]._paused)return l}return l._suspendTimer&&clearTimeout(l._suspendTimer),l._suspendTimer=setTimeout(function(){if(l.autoSuspend){l._suspendTimer=null,l.state="suspending";var _=function(){l.state="suspended",l._resumeAfterSuspend&&(delete l._resumeAfterSuspend,l._autoResume())};l.ctx.suspend().then(_,_)}},3e4),l}},_autoResume:function(){var l=this;if(!(!l.ctx||typeof l.ctx.resume>"u"||!n.usingWebAudio))return l.state==="running"&&l.ctx.state!=="interrupted"&&l._suspendTimer?(clearTimeout(l._suspendTimer),l._suspendTimer=null):l.state==="suspended"||l.state==="running"&&l.ctx.state==="interrupted"?(l.ctx.resume().then(function(){l.state="running";for(var d=0;d<l._howls.length;d++)l._howls[d]._emit("resume")}),l._suspendTimer&&(clearTimeout(l._suspendTimer),l._suspendTimer=null)):l.state==="suspending"&&(l._resumeAfterSuspend=!0),l}};var n=new e,r=function(l){var d=this;if(!l.src||l.src.length===0){console.error("An array of source files must be passed with any new Howl.");return}d.init(l)};r.prototype={init:function(l){var d=this;return n.ctx||h(),d._autoplay=l.autoplay||!1,d._format=typeof l.format!="string"?l.format:[l.format],d._html5=l.html5||!1,d._muted=l.mute||!1,d._loop=l.loop||!1,d._pool=l.pool||5,d._preload=typeof l.preload=="boolean"||l.preload==="metadata"?l.preload:!0,d._rate=l.rate||1,d._sprite=l.sprite||{},d._src=typeof l.src!="string"?l.src:[l.src],d._volume=l.volume!==void 0?l.volume:1,d._xhr={method:l.xhr&&l.xhr.method?l.xhr.method:"GET",headers:l.xhr&&l.xhr.headers?l.xhr.headers:null,withCredentials:l.xhr&&l.xhr.withCredentials?l.xhr.withCredentials:!1},d._duration=0,d._state="unloaded",d._sounds=[],d._endTimers={},d._queue=[],d._playLock=!1,d._onend=l.onend?[{fn:l.onend}]:[],d._onfade=l.onfade?[{fn:l.onfade}]:[],d._onload=l.onload?[{fn:l.onload}]:[],d._onloaderror=l.onloaderror?[{fn:l.onloaderror}]:[],d._onplayerror=l.onplayerror?[{fn:l.onplayerror}]:[],d._onpause=l.onpause?[{fn:l.onpause}]:[],d._onplay=l.onplay?[{fn:l.onplay}]:[],d._onstop=l.onstop?[{fn:l.onstop}]:[],d._onmute=l.onmute?[{fn:l.onmute}]:[],d._onvolume=l.onvolume?[{fn:l.onvolume}]:[],d._onrate=l.onrate?[{fn:l.onrate}]:[],d._onseek=l.onseek?[{fn:l.onseek}]:[],d._onunlock=l.onunlock?[{fn:l.onunlock}]:[],d._onresume=[],d._webAudio=n.usingWebAudio&&!d._html5,typeof n.ctx<"u"&&n.ctx&&n.autoUnlock&&n._unlockAudio(),n._howls.push(d),d._autoplay&&d._queue.push({event:"play",action:function(){d.play()}}),d._preload&&d._preload!=="none"&&d.load(),d},load:function(){var l=this,d=null;if(n.noAudio){l._emit("loaderror",null,"No audio support.");return}typeof l._src=="string"&&(l._src=[l._src]);for(var f=0;f<l._src.length;f++){var _,p;if(l._format&&l._format[f])_=l._format[f];else{if(p=l._src[f],typeof p!="string"){l._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}_=/^data:audio\/([^;,]+);/i.exec(p),_||(_=/\.([^.]+)$/.exec(p.split("?",1)[0])),_&&(_=_[1].toLowerCase())}if(_||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),_&&n.codecs(_)){d=l._src[f];break}}if(!d){l._emit("loaderror",null,"No codec support for selected audio sources.");return}return l._src=d,l._state="loading",window.location.protocol==="https:"&&d.slice(0,5)==="http:"&&(l._html5=!0,l._webAudio=!1),new i(l),l._webAudio&&s(l),l},play:function(l,d){var f=this,_=null;if(typeof l=="number")_=l,l=null;else{if(typeof l=="string"&&f._state==="loaded"&&!f._sprite[l])return null;if(typeof l>"u"&&(l="__default",!f._playLock)){for(var p=0,b=0;b<f._sounds.length;b++)f._sounds[b]._paused&&!f._sounds[b]._ended&&(p++,_=f._sounds[b]._id);p===1?l=null:_=null}}var y=_?f._soundById(_):f._inactiveSound();if(!y)return null;if(_&&!l&&(l=y._sprite||"__default"),f._state!=="loaded"){y._sprite=l,y._ended=!1;var w=y._id;return f._queue.push({event:"play",action:function(){f.play(w)}}),w}if(_&&!y._paused)return d||f._loadQueue("play"),y._id;f._webAudio&&n._autoResume();var R=Math.max(0,y._seek>0?y._seek:f._sprite[l][0]/1e3),E=Math.max(0,(f._sprite[l][0]+f._sprite[l][1])/1e3-R),A=E*1e3/Math.abs(y._rate),C=f._sprite[l][0]/1e3,I=(f._sprite[l][0]+f._sprite[l][1])/1e3;y._sprite=l,y._ended=!1;var $=function(){y._paused=!1,y._seek=R,y._start=C,y._stop=I,y._loop=!!(y._loop||f._sprite[l][2])};if(R>=I){f._ended(y);return}var N=y._node;if(f._webAudio){var W=function(){f._playLock=!1,$(),f._refreshBuffer(y);var M=y._muted||f._muted?0:y._volume;N.gain.setValueAtTime(M,n.ctx.currentTime),y._playStart=n.ctx.currentTime,typeof N.bufferSource.start>"u"?y._loop?N.bufferSource.noteGrainOn(0,R,86400):N.bufferSource.noteGrainOn(0,R,E):y._loop?N.bufferSource.start(0,R,86400):N.bufferSource.start(0,R,E),A!==1/0&&(f._endTimers[y._id]=setTimeout(f._ended.bind(f,y),A)),d||setTimeout(function(){f._emit("play",y._id),f._loadQueue()},0)};n.state==="running"&&n.ctx.state!=="interrupted"?W():(f._playLock=!0,f.once("resume",W),f._clearTimer(y._id))}else{var ne=function(){N.currentTime=R,N.muted=y._muted||f._muted||n._muted||N.muted,N.volume=y._volume*n.volume(),N.playbackRate=y._rate;try{var M=N.play();if(M&&typeof Promise<"u"&&(M instanceof Promise||typeof M.then=="function")?(f._playLock=!0,$(),M.then(function(){f._playLock=!1,N._unlocked=!0,d?f._loadQueue():f._emit("play",y._id)}).catch(function(){f._playLock=!1,f._emit("playerror",y._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),y._ended=!0,y._paused=!0})):d||(f._playLock=!1,$(),f._emit("play",y._id)),N.playbackRate=y._rate,N.paused){f._emit("playerror",y._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}l!=="__default"||y._loop?f._endTimers[y._id]=setTimeout(f._ended.bind(f,y),A):(f._endTimers[y._id]=function(){f._ended(y),N.removeEventListener("ended",f._endTimers[y._id],!1)},N.addEventListener("ended",f._endTimers[y._id],!1))}catch(H){f._emit("playerror",y._id,H)}};N.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(N.src=f._src,N.load());var F=window&&window.ejecta||!N.readyState&&n._navigator.isCocoonJS;if(N.readyState>=3||F)ne();else{f._playLock=!0,f._state="loading";var Q=function(){f._state="loaded",ne(),N.removeEventListener(n._canPlayEvent,Q,!1)};N.addEventListener(n._canPlayEvent,Q,!1),f._clearTimer(y._id)}}return y._id},pause:function(l){var d=this;if(d._state!=="loaded"||d._playLock)return d._queue.push({event:"pause",action:function(){d.pause(l)}}),d;for(var f=d._getSoundIds(l),_=0;_<f.length;_++){d._clearTimer(f[_]);var p=d._soundById(f[_]);if(p&&!p._paused&&(p._seek=d.seek(f[_]),p._rateSeek=0,p._paused=!0,d._stopFade(f[_]),p._node))if(d._webAudio){if(!p._node.bufferSource)continue;typeof p._node.bufferSource.stop>"u"?p._node.bufferSource.noteOff(0):p._node.bufferSource.stop(0),d._cleanBuffer(p._node)}else(!isNaN(p._node.duration)||p._node.duration===1/0)&&p._node.pause();arguments[1]||d._emit("pause",p?p._id:null)}return d},stop:function(l,d){var f=this;if(f._state!=="loaded"||f._playLock)return f._queue.push({event:"stop",action:function(){f.stop(l)}}),f;for(var _=f._getSoundIds(l),p=0;p<_.length;p++){f._clearTimer(_[p]);var b=f._soundById(_[p]);b&&(b._seek=b._start||0,b._rateSeek=0,b._paused=!0,b._ended=!0,f._stopFade(_[p]),b._node&&(f._webAudio?b._node.bufferSource&&(typeof b._node.bufferSource.stop>"u"?b._node.bufferSource.noteOff(0):b._node.bufferSource.stop(0),f._cleanBuffer(b._node)):(!isNaN(b._node.duration)||b._node.duration===1/0)&&(b._node.currentTime=b._start||0,b._node.pause(),b._node.duration===1/0&&f._clearSound(b._node))),d||f._emit("stop",b._id))}return f},mute:function(l,d){var f=this;if(f._state!=="loaded"||f._playLock)return f._queue.push({event:"mute",action:function(){f.mute(l,d)}}),f;if(typeof d>"u")if(typeof l=="boolean")f._muted=l;else return f._muted;for(var _=f._getSoundIds(d),p=0;p<_.length;p++){var b=f._soundById(_[p]);b&&(b._muted=l,b._interval&&f._stopFade(b._id),f._webAudio&&b._node?b._node.gain.setValueAtTime(l?0:b._volume,n.ctx.currentTime):b._node&&(b._node.muted=n._muted?!0:l),f._emit("mute",b._id))}return f},volume:function(){var l=this,d=arguments,f,_;if(d.length===0)return l._volume;if(d.length===1||d.length===2&&typeof d[1]>"u"){var p=l._getSoundIds(),b=p.indexOf(d[0]);b>=0?_=parseInt(d[0],10):f=parseFloat(d[0])}else d.length>=2&&(f=parseFloat(d[0]),_=parseInt(d[1],10));var y;if(typeof f<"u"&&f>=0&&f<=1){if(l._state!=="loaded"||l._playLock)return l._queue.push({event:"volume",action:function(){l.volume.apply(l,d)}}),l;typeof _>"u"&&(l._volume=f),_=l._getSoundIds(_);for(var w=0;w<_.length;w++)y=l._soundById(_[w]),y&&(y._volume=f,d[2]||l._stopFade(_[w]),l._webAudio&&y._node&&!y._muted?y._node.gain.setValueAtTime(f,n.ctx.currentTime):y._node&&!y._muted&&(y._node.volume=f*n.volume()),l._emit("volume",y._id))}else return y=_?l._soundById(_):l._sounds[0],y?y._volume:0;return l},fade:function(l,d,f,_){var p=this;if(p._state!=="loaded"||p._playLock)return p._queue.push({event:"fade",action:function(){p.fade(l,d,f,_)}}),p;l=Math.min(Math.max(0,parseFloat(l)),1),d=Math.min(Math.max(0,parseFloat(d)),1),f=parseFloat(f),p.volume(l,_);for(var b=p._getSoundIds(_),y=0;y<b.length;y++){var w=p._soundById(b[y]);if(w){if(_||p._stopFade(b[y]),p._webAudio&&!w._muted){var R=n.ctx.currentTime,E=R+f/1e3;w._volume=l,w._node.gain.setValueAtTime(l,R),w._node.gain.linearRampToValueAtTime(d,E)}p._startFadeInterval(w,l,d,f,b[y],typeof _>"u")}}return p},_startFadeInterval:function(l,d,f,_,p,b){var y=this,w=d,R=f-d,E=Math.abs(R/.01),A=Math.max(4,E>0?_/E:_),C=Date.now();l._fadeTo=f,l._interval=setInterval(function(){var I=(Date.now()-C)/_;C=Date.now(),w+=R*I,w=Math.round(w*100)/100,R<0?w=Math.max(f,w):w=Math.min(f,w),y._webAudio?l._volume=w:y.volume(w,l._id,!0),b&&(y._volume=w),(f<d&&w<=f||f>d&&w>=f)&&(clearInterval(l._interval),l._interval=null,l._fadeTo=null,y.volume(f,l._id),y._emit("fade",l._id))},A)},_stopFade:function(l){var d=this,f=d._soundById(l);return f&&f._interval&&(d._webAudio&&f._node.gain.cancelScheduledValues(n.ctx.currentTime),clearInterval(f._interval),f._interval=null,d.volume(f._fadeTo,l),f._fadeTo=null,d._emit("fade",l)),d},loop:function(){var l=this,d=arguments,f,_,p;if(d.length===0)return l._loop;if(d.length===1)if(typeof d[0]=="boolean")f=d[0],l._loop=f;else return p=l._soundById(parseInt(d[0],10)),p?p._loop:!1;else d.length===2&&(f=d[0],_=parseInt(d[1],10));for(var b=l._getSoundIds(_),y=0;y<b.length;y++)p=l._soundById(b[y]),p&&(p._loop=f,l._webAudio&&p._node&&p._node.bufferSource&&(p._node.bufferSource.loop=f,f&&(p._node.bufferSource.loopStart=p._start||0,p._node.bufferSource.loopEnd=p._stop,l.playing(b[y])&&(l.pause(b[y],!0),l.play(b[y],!0)))));return l},rate:function(){var l=this,d=arguments,f,_;if(d.length===0)_=l._sounds[0]._id;else if(d.length===1){var p=l._getSoundIds(),b=p.indexOf(d[0]);b>=0?_=parseInt(d[0],10):f=parseFloat(d[0])}else d.length===2&&(f=parseFloat(d[0]),_=parseInt(d[1],10));var y;if(typeof f=="number"){if(l._state!=="loaded"||l._playLock)return l._queue.push({event:"rate",action:function(){l.rate.apply(l,d)}}),l;typeof _>"u"&&(l._rate=f),_=l._getSoundIds(_);for(var w=0;w<_.length;w++)if(y=l._soundById(_[w]),y){l.playing(_[w])&&(y._rateSeek=l.seek(_[w]),y._playStart=l._webAudio?n.ctx.currentTime:y._playStart),y._rate=f,l._webAudio&&y._node&&y._node.bufferSource?y._node.bufferSource.playbackRate.setValueAtTime(f,n.ctx.currentTime):y._node&&(y._node.playbackRate=f);var R=l.seek(_[w]),E=(l._sprite[y._sprite][0]+l._sprite[y._sprite][1])/1e3-R,A=E*1e3/Math.abs(y._rate);(l._endTimers[_[w]]||!y._paused)&&(l._clearTimer(_[w]),l._endTimers[_[w]]=setTimeout(l._ended.bind(l,y),A)),l._emit("rate",y._id)}}else return y=l._soundById(_),y?y._rate:l._rate;return l},seek:function(){var l=this,d=arguments,f,_;if(d.length===0)l._sounds.length&&(_=l._sounds[0]._id);else if(d.length===1){var p=l._getSoundIds(),b=p.indexOf(d[0]);b>=0?_=parseInt(d[0],10):l._sounds.length&&(_=l._sounds[0]._id,f=parseFloat(d[0]))}else d.length===2&&(f=parseFloat(d[0]),_=parseInt(d[1],10));if(typeof _>"u")return 0;if(typeof f=="number"&&(l._state!=="loaded"||l._playLock))return l._queue.push({event:"seek",action:function(){l.seek.apply(l,d)}}),l;var y=l._soundById(_);if(y)if(typeof f=="number"&&f>=0){var w=l.playing(_);w&&l.pause(_,!0),y._seek=f,y._ended=!1,l._clearTimer(_),!l._webAudio&&y._node&&!isNaN(y._node.duration)&&(y._node.currentTime=f);var R=function(){w&&l.play(_,!0),l._emit("seek",_)};if(w&&!l._webAudio){var E=function(){l._playLock?setTimeout(E,0):R()};setTimeout(E,0)}else R()}else if(l._webAudio){var A=l.playing(_)?n.ctx.currentTime-y._playStart:0,C=y._rateSeek?y._rateSeek-y._seek:0;return y._seek+(C+A*Math.abs(y._rate))}else return y._node.currentTime;return l},playing:function(l){var d=this;if(typeof l=="number"){var f=d._soundById(l);return f?!f._paused:!1}for(var _=0;_<d._sounds.length;_++)if(!d._sounds[_]._paused)return!0;return!1},duration:function(l){var d=this,f=d._duration,_=d._soundById(l);return _&&(f=d._sprite[_._sprite][1]/1e3),f},state:function(){return this._state},unload:function(){for(var l=this,d=l._sounds,f=0;f<d.length;f++)d[f]._paused||l.stop(d[f]._id),l._webAudio||(l._clearSound(d[f]._node),d[f]._node.removeEventListener("error",d[f]._errorFn,!1),d[f]._node.removeEventListener(n._canPlayEvent,d[f]._loadFn,!1),d[f]._node.removeEventListener("ended",d[f]._endFn,!1),n._releaseHtml5Audio(d[f]._node)),delete d[f]._node,l._clearTimer(d[f]._id);var _=n._howls.indexOf(l);_>=0&&n._howls.splice(_,1);var p=!0;for(f=0;f<n._howls.length;f++)if(n._howls[f]._src===l._src||l._src.indexOf(n._howls[f]._src)>=0){p=!1;break}return o&&p&&delete o[l._src],n.noAudio=!1,l._state="unloaded",l._sounds=[],l=null,null},on:function(l,d,f,_){var p=this,b=p["_on"+l];return typeof d=="function"&&b.push(_?{id:f,fn:d,once:_}:{id:f,fn:d}),p},off:function(l,d,f){var _=this,p=_["_on"+l],b=0;if(typeof d=="number"&&(f=d,d=null),d||f)for(b=0;b<p.length;b++){var y=f===p[b].id;if(d===p[b].fn&&y||!d&&y){p.splice(b,1);break}}else if(l)_["_on"+l]=[];else{var w=Object.keys(_);for(b=0;b<w.length;b++)w[b].indexOf("_on")===0&&Array.isArray(_[w[b]])&&(_[w[b]]=[])}return _},once:function(l,d,f){var _=this;return _.on(l,d,f,1),_},_emit:function(l,d,f){for(var _=this,p=_["_on"+l],b=p.length-1;b>=0;b--)(!p[b].id||p[b].id===d||l==="load")&&(setTimeout((function(y){y.call(this,d,f)}).bind(_,p[b].fn),0),p[b].once&&_.off(l,p[b].fn,p[b].id));return _._loadQueue(l),_},_loadQueue:function(l){var d=this;if(d._queue.length>0){var f=d._queue[0];f.event===l&&(d._queue.shift(),d._loadQueue()),l||f.action()}return d},_ended:function(l){var d=this,f=l._sprite;if(!d._webAudio&&l._node&&!l._node.paused&&!l._node.ended&&l._node.currentTime<l._stop)return setTimeout(d._ended.bind(d,l),100),d;var _=!!(l._loop||d._sprite[f][2]);if(d._emit("end",l._id),!d._webAudio&&_&&d.stop(l._id,!0).play(l._id),d._webAudio&&_){d._emit("play",l._id),l._seek=l._start||0,l._rateSeek=0,l._playStart=n.ctx.currentTime;var p=(l._stop-l._start)*1e3/Math.abs(l._rate);d._endTimers[l._id]=setTimeout(d._ended.bind(d,l),p)}return d._webAudio&&!_&&(l._paused=!0,l._ended=!0,l._seek=l._start||0,l._rateSeek=0,d._clearTimer(l._id),d._cleanBuffer(l._node),n._autoSuspend()),!d._webAudio&&!_&&d.stop(l._id,!0),d},_clearTimer:function(l){var d=this;if(d._endTimers[l]){if(typeof d._endTimers[l]!="function")clearTimeout(d._endTimers[l]);else{var f=d._soundById(l);f&&f._node&&f._node.removeEventListener("ended",d._endTimers[l],!1)}delete d._endTimers[l]}return d},_soundById:function(l){for(var d=this,f=0;f<d._sounds.length;f++)if(l===d._sounds[f]._id)return d._sounds[f];return null},_inactiveSound:function(){var l=this;l._drain();for(var d=0;d<l._sounds.length;d++)if(l._sounds[d]._ended)return l._sounds[d].reset();return new i(l)},_drain:function(){var l=this,d=l._pool,f=0,_=0;if(!(l._sounds.length<d)){for(_=0;_<l._sounds.length;_++)l._sounds[_]._ended&&f++;for(_=l._sounds.length-1;_>=0;_--){if(f<=d)return;l._sounds[_]._ended&&(l._webAudio&&l._sounds[_]._node&&l._sounds[_]._node.disconnect(0),l._sounds.splice(_,1),f--)}}},_getSoundIds:function(l){var d=this;if(typeof l>"u"){for(var f=[],_=0;_<d._sounds.length;_++)f.push(d._sounds[_]._id);return f}else return[l]},_refreshBuffer:function(l){var d=this;return l._node.bufferSource=n.ctx.createBufferSource(),l._node.bufferSource.buffer=o[d._src],l._panner?l._node.bufferSource.connect(l._panner):l._node.bufferSource.connect(l._node),l._node.bufferSource.loop=l._loop,l._loop&&(l._node.bufferSource.loopStart=l._start||0,l._node.bufferSource.loopEnd=l._stop||0),l._node.bufferSource.playbackRate.setValueAtTime(l._rate,n.ctx.currentTime),d},_cleanBuffer:function(l){var d=this,f=n._navigator&&n._navigator.vendor.indexOf("Apple")>=0;if(!l.bufferSource)return d;if(n._scratchBuffer&&l.bufferSource&&(l.bufferSource.onended=null,l.bufferSource.disconnect(0),f))try{l.bufferSource.buffer=n._scratchBuffer}catch{}return l.bufferSource=null,d},_clearSound:function(l){var d=/MSIE |Trident\//.test(n._navigator&&n._navigator.userAgent);d||(l.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var i=function(l){this._parent=l,this.init()};i.prototype={init:function(){var l=this,d=l._parent;return l._muted=d._muted,l._loop=d._loop,l._volume=d._volume,l._rate=d._rate,l._seek=0,l._paused=!0,l._ended=!0,l._sprite="__default",l._id=++n._counter,d._sounds.push(l),l.create(),l},create:function(){var l=this,d=l._parent,f=n._muted||l._muted||l._parent._muted?0:l._volume;return d._webAudio?(l._node=typeof n.ctx.createGain>"u"?n.ctx.createGainNode():n.ctx.createGain(),l._node.gain.setValueAtTime(f,n.ctx.currentTime),l._node.paused=!0,l._node.connect(n.masterGain)):n.noAudio||(l._node=n._obtainHtml5Audio(),l._errorFn=l._errorListener.bind(l),l._node.addEventListener("error",l._errorFn,!1),l._loadFn=l._loadListener.bind(l),l._node.addEventListener(n._canPlayEvent,l._loadFn,!1),l._endFn=l._endListener.bind(l),l._node.addEventListener("ended",l._endFn,!1),l._node.src=d._src,l._node.preload=d._preload===!0?"auto":d._preload,l._node.volume=f*n.volume(),l._node.load()),l},reset:function(){var l=this,d=l._parent;return l._muted=d._muted,l._loop=d._loop,l._volume=d._volume,l._rate=d._rate,l._seek=0,l._rateSeek=0,l._paused=!0,l._ended=!0,l._sprite="__default",l._id=++n._counter,l},_errorListener:function(){var l=this;l._parent._emit("loaderror",l._id,l._node.error?l._node.error.code:0),l._node.removeEventListener("error",l._errorFn,!1)},_loadListener:function(){var l=this,d=l._parent;d._duration=Math.ceil(l._node.duration*10)/10,Object.keys(d._sprite).length===0&&(d._sprite={__default:[0,d._duration*1e3]}),d._state!=="loaded"&&(d._state="loaded",d._emit("load"),d._loadQueue()),l._node.removeEventListener(n._canPlayEvent,l._loadFn,!1)},_endListener:function(){var l=this,d=l._parent;d._duration===1/0&&(d._duration=Math.ceil(l._node.duration*10)/10,d._sprite.__default[1]===1/0&&(d._sprite.__default[1]=d._duration*1e3),d._ended(l)),l._node.removeEventListener("ended",l._endFn,!1)}};var o={},s=function(l){var d=l._src;if(o[d]){l._duration=o[d].duration,c(l);return}if(/^data:[^;]+;base64,/.test(d)){for(var f=atob(d.split(",")[1]),_=new Uint8Array(f.length),p=0;p<f.length;++p)_[p]=f.charCodeAt(p);u(_.buffer,l)}else{var b=new XMLHttpRequest;b.open(l._xhr.method,d,!0),b.withCredentials=l._xhr.withCredentials,b.responseType="arraybuffer",l._xhr.headers&&Object.keys(l._xhr.headers).forEach(function(y){b.setRequestHeader(y,l._xhr.headers[y])}),b.onload=function(){var y=(b.status+"")[0];if(y!=="0"&&y!=="2"&&y!=="3"){l._emit("loaderror",null,"Failed loading audio file with status: "+b.status+".");return}u(b.response,l)},b.onerror=function(){l._webAudio&&(l._html5=!0,l._webAudio=!1,l._sounds=[],delete o[d],l.load())},a(b)}},a=function(l){try{l.send()}catch{l.onerror()}},u=function(l,d){var f=function(){d._emit("loaderror",null,"Decoding audio data failed.")},_=function(p){p&&d._sounds.length>0?(o[d._src]=p,c(d,p)):f()};typeof Promise<"u"&&n.ctx.decodeAudioData.length===1?n.ctx.decodeAudioData(l).then(_).catch(f):n.ctx.decodeAudioData(l,_,f)},c=function(l,d){d&&!l._duration&&(l._duration=d.duration),Object.keys(l._sprite).length===0&&(l._sprite={__default:[0,l._duration*1e3]}),l._state!=="loaded"&&(l._state="loaded",l._emit("load"),l._loadQueue())},h=function(){if(n.usingWebAudio){try{typeof AudioContext<"u"?n.ctx=new AudioContext:typeof webkitAudioContext<"u"?n.ctx=new webkitAudioContext:n.usingWebAudio=!1}catch{n.usingWebAudio=!1}n.ctx||(n.usingWebAudio=!1);var l=/iP(hone|od|ad)/.test(n._navigator&&n._navigator.platform),d=n._navigator&&n._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),f=d?parseInt(d[1],10):null;if(l&&f&&f<9){var _=/safari/.test(n._navigator&&n._navigator.userAgent.toLowerCase());n._navigator&&!_&&(n.usingWebAudio=!1)}n.usingWebAudio&&(n.masterGain=typeof n.ctx.createGain>"u"?n.ctx.createGainNode():n.ctx.createGain(),n.masterGain.gain.setValueAtTime(n._muted?0:n._volume,n.ctx.currentTime),n.masterGain.connect(n.ctx.destination)),n._setup()}};t.Howler=n,t.Howl=r,typeof mu<"u"?(mu.HowlerGlobal=e,mu.Howler=n,mu.Howl=r,mu.Sound=i):typeof window<"u"&&(window.HowlerGlobal=e,window.Howler=n,window.Howl=r,window.Sound=i)})();/*!
 *  Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
 *  
 *  howler.js v2.2.4
 *  howlerjs.com
 *
 *  (c) 2013-2020, James Simpson of GoldFire Studios
 *  goldfirestudios.com
 *
 *  MIT License
 */(function(){HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(n){var r=this;if(!r.ctx||!r.ctx.listener)return r;for(var i=r._howls.length-1;i>=0;i--)r._howls[i].stereo(n);return r},HowlerGlobal.prototype.pos=function(n,r,i){var o=this;if(!o.ctx||!o.ctx.listener)return o;if(r=typeof r!="number"?o._pos[1]:r,i=typeof i!="number"?o._pos[2]:i,typeof n=="number")o._pos=[n,r,i],typeof o.ctx.listener.positionX<"u"?(o.ctx.listener.positionX.setTargetAtTime(o._pos[0],Howler.ctx.currentTime,.1),o.ctx.listener.positionY.setTargetAtTime(o._pos[1],Howler.ctx.currentTime,.1),o.ctx.listener.positionZ.setTargetAtTime(o._pos[2],Howler.ctx.currentTime,.1)):o.ctx.listener.setPosition(o._pos[0],o._pos[1],o._pos[2]);else return o._pos;return o},HowlerGlobal.prototype.orientation=function(n,r,i,o,s,a){var u=this;if(!u.ctx||!u.ctx.listener)return u;var c=u._orientation;if(r=typeof r!="number"?c[1]:r,i=typeof i!="number"?c[2]:i,o=typeof o!="number"?c[3]:o,s=typeof s!="number"?c[4]:s,a=typeof a!="number"?c[5]:a,typeof n=="number")u._orientation=[n,r,i,o,s,a],typeof u.ctx.listener.forwardX<"u"?(u.ctx.listener.forwardX.setTargetAtTime(n,Howler.ctx.currentTime,.1),u.ctx.listener.forwardY.setTargetAtTime(r,Howler.ctx.currentTime,.1),u.ctx.listener.forwardZ.setTargetAtTime(i,Howler.ctx.currentTime,.1),u.ctx.listener.upX.setTargetAtTime(o,Howler.ctx.currentTime,.1),u.ctx.listener.upY.setTargetAtTime(s,Howler.ctx.currentTime,.1),u.ctx.listener.upZ.setTargetAtTime(a,Howler.ctx.currentTime,.1)):u.ctx.listener.setOrientation(n,r,i,o,s,a);else return c;return u},Howl.prototype.init=function(n){return function(r){var i=this;return i._orientation=r.orientation||[1,0,0],i._stereo=r.stereo||null,i._pos=r.pos||null,i._pannerAttr={coneInnerAngle:typeof r.coneInnerAngle<"u"?r.coneInnerAngle:360,coneOuterAngle:typeof r.coneOuterAngle<"u"?r.coneOuterAngle:360,coneOuterGain:typeof r.coneOuterGain<"u"?r.coneOuterGain:0,distanceModel:typeof r.distanceModel<"u"?r.distanceModel:"inverse",maxDistance:typeof r.maxDistance<"u"?r.maxDistance:1e4,panningModel:typeof r.panningModel<"u"?r.panningModel:"HRTF",refDistance:typeof r.refDistance<"u"?r.refDistance:1,rolloffFactor:typeof r.rolloffFactor<"u"?r.rolloffFactor:1},i._onstereo=r.onstereo?[{fn:r.onstereo}]:[],i._onpos=r.onpos?[{fn:r.onpos}]:[],i._onorientation=r.onorientation?[{fn:r.onorientation}]:[],n.call(this,r)}}(Howl.prototype.init),Howl.prototype.stereo=function(n,r){var i=this;if(!i._webAudio)return i;if(i._state!=="loaded")return i._queue.push({event:"stereo",action:function(){i.stereo(n,r)}}),i;var o=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof r>"u")if(typeof n=="number")i._stereo=n,i._pos=[n,0,0];else return i._stereo;for(var s=i._getSoundIds(r),a=0;a<s.length;a++){var u=i._soundById(s[a]);if(u)if(typeof n=="number")u._stereo=n,u._pos=[n,0,0],u._node&&(u._pannerAttr.panningModel="equalpower",(!u._panner||!u._panner.pan)&&e(u,o),o==="spatial"?typeof u._panner.positionX<"u"?(u._panner.positionX.setValueAtTime(n,Howler.ctx.currentTime),u._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),u._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):u._panner.setPosition(n,0,0):u._panner.pan.setValueAtTime(n,Howler.ctx.currentTime)),i._emit("stereo",u._id);else return u._stereo}return i},Howl.prototype.pos=function(n,r,i,o){var s=this;if(!s._webAudio)return s;if(s._state!=="loaded")return s._queue.push({event:"pos",action:function(){s.pos(n,r,i,o)}}),s;if(r=typeof r!="number"?0:r,i=typeof i!="number"?-.5:i,typeof o>"u")if(typeof n=="number")s._pos=[n,r,i];else return s._pos;for(var a=s._getSoundIds(o),u=0;u<a.length;u++){var c=s._soundById(a[u]);if(c)if(typeof n=="number")c._pos=[n,r,i],c._node&&((!c._panner||c._panner.pan)&&e(c,"spatial"),typeof c._panner.positionX<"u"?(c._panner.positionX.setValueAtTime(n,Howler.ctx.currentTime),c._panner.positionY.setValueAtTime(r,Howler.ctx.currentTime),c._panner.positionZ.setValueAtTime(i,Howler.ctx.currentTime)):c._panner.setPosition(n,r,i)),s._emit("pos",c._id);else return c._pos}return s},Howl.prototype.orientation=function(n,r,i,o){var s=this;if(!s._webAudio)return s;if(s._state!=="loaded")return s._queue.push({event:"orientation",action:function(){s.orientation(n,r,i,o)}}),s;if(r=typeof r!="number"?s._orientation[1]:r,i=typeof i!="number"?s._orientation[2]:i,typeof o>"u")if(typeof n=="number")s._orientation=[n,r,i];else return s._orientation;for(var a=s._getSoundIds(o),u=0;u<a.length;u++){var c=s._soundById(a[u]);if(c)if(typeof n=="number")c._orientation=[n,r,i],c._node&&(c._panner||(c._pos||(c._pos=s._pos||[0,0,-.5]),e(c,"spatial")),typeof c._panner.orientationX<"u"?(c._panner.orientationX.setValueAtTime(n,Howler.ctx.currentTime),c._panner.orientationY.setValueAtTime(r,Howler.ctx.currentTime),c._panner.orientationZ.setValueAtTime(i,Howler.ctx.currentTime)):c._panner.setOrientation(n,r,i)),s._emit("orientation",c._id);else return c._orientation}return s},Howl.prototype.pannerAttr=function(){var n=this,r=arguments,i,o,s;if(!n._webAudio)return n;if(r.length===0)return n._pannerAttr;if(r.length===1)if(typeof r[0]=="object")i=r[0],typeof o>"u"&&(i.pannerAttr||(i.pannerAttr={coneInnerAngle:i.coneInnerAngle,coneOuterAngle:i.coneOuterAngle,coneOuterGain:i.coneOuterGain,distanceModel:i.distanceModel,maxDistance:i.maxDistance,refDistance:i.refDistance,rolloffFactor:i.rolloffFactor,panningModel:i.panningModel}),n._pannerAttr={coneInnerAngle:typeof i.pannerAttr.coneInnerAngle<"u"?i.pannerAttr.coneInnerAngle:n._coneInnerAngle,coneOuterAngle:typeof i.pannerAttr.coneOuterAngle<"u"?i.pannerAttr.coneOuterAngle:n._coneOuterAngle,coneOuterGain:typeof i.pannerAttr.coneOuterGain<"u"?i.pannerAttr.coneOuterGain:n._coneOuterGain,distanceModel:typeof i.pannerAttr.distanceModel<"u"?i.pannerAttr.distanceModel:n._distanceModel,maxDistance:typeof i.pannerAttr.maxDistance<"u"?i.pannerAttr.maxDistance:n._maxDistance,refDistance:typeof i.pannerAttr.refDistance<"u"?i.pannerAttr.refDistance:n._refDistance,rolloffFactor:typeof i.pannerAttr.rolloffFactor<"u"?i.pannerAttr.rolloffFactor:n._rolloffFactor,panningModel:typeof i.pannerAttr.panningModel<"u"?i.pannerAttr.panningModel:n._panningModel});else return s=n._soundById(parseInt(r[0],10)),s?s._pannerAttr:n._pannerAttr;else r.length===2&&(i=r[0],o=parseInt(r[1],10));for(var a=n._getSoundIds(o),u=0;u<a.length;u++)if(s=n._soundById(a[u]),s){var c=s._pannerAttr;c={coneInnerAngle:typeof i.coneInnerAngle<"u"?i.coneInnerAngle:c.coneInnerAngle,coneOuterAngle:typeof i.coneOuterAngle<"u"?i.coneOuterAngle:c.coneOuterAngle,coneOuterGain:typeof i.coneOuterGain<"u"?i.coneOuterGain:c.coneOuterGain,distanceModel:typeof i.distanceModel<"u"?i.distanceModel:c.distanceModel,maxDistance:typeof i.maxDistance<"u"?i.maxDistance:c.maxDistance,refDistance:typeof i.refDistance<"u"?i.refDistance:c.refDistance,rolloffFactor:typeof i.rolloffFactor<"u"?i.rolloffFactor:c.rolloffFactor,panningModel:typeof i.panningModel<"u"?i.panningModel:c.panningModel};var h=s._panner;h||(s._pos||(s._pos=n._pos||[0,0,-.5]),e(s,"spatial"),h=s._panner),h.coneInnerAngle=c.coneInnerAngle,h.coneOuterAngle=c.coneOuterAngle,h.coneOuterGain=c.coneOuterGain,h.distanceModel=c.distanceModel,h.maxDistance=c.maxDistance,h.refDistance=c.refDistance,h.rolloffFactor=c.rolloffFactor,h.panningModel=c.panningModel}return n},Sound.prototype.init=function(n){return function(){var r=this,i=r._parent;r._orientation=i._orientation,r._stereo=i._stereo,r._pos=i._pos,r._pannerAttr=i._pannerAttr,n.call(this),r._stereo?i.stereo(r._stereo):r._pos&&i.pos(r._pos[0],r._pos[1],r._pos[2],r._id)}}(Sound.prototype.init),Sound.prototype.reset=function(n){return function(){var r=this,i=r._parent;return r._orientation=i._orientation,r._stereo=i._stereo,r._pos=i._pos,r._pannerAttr=i._pannerAttr,r._stereo?i.stereo(r._stereo):r._pos?i.pos(r._pos[0],r._pos[1],r._pos[2],r._id):r._panner&&(r._panner.disconnect(0),r._panner=void 0,i._refreshBuffer(r)),n.call(this)}}(Sound.prototype.reset);var e=function(n,r){r=r||"spatial",r==="spatial"?(n._panner=Howler.ctx.createPanner(),n._panner.coneInnerAngle=n._pannerAttr.coneInnerAngle,n._panner.coneOuterAngle=n._pannerAttr.coneOuterAngle,n._panner.coneOuterGain=n._pannerAttr.coneOuterGain,n._panner.distanceModel=n._pannerAttr.distanceModel,n._panner.maxDistance=n._pannerAttr.maxDistance,n._panner.refDistance=n._pannerAttr.refDistance,n._panner.rolloffFactor=n._pannerAttr.rolloffFactor,n._panner.panningModel=n._pannerAttr.panningModel,typeof n._panner.positionX<"u"?(n._panner.positionX.setValueAtTime(n._pos[0],Howler.ctx.currentTime),n._panner.positionY.setValueAtTime(n._pos[1],Howler.ctx.currentTime),n._panner.positionZ.setValueAtTime(n._pos[2],Howler.ctx.currentTime)):n._panner.setPosition(n._pos[0],n._pos[1],n._pos[2]),typeof n._panner.orientationX<"u"?(n._panner.orientationX.setValueAtTime(n._orientation[0],Howler.ctx.currentTime),n._panner.orientationY.setValueAtTime(n._orientation[1],Howler.ctx.currentTime),n._panner.orientationZ.setValueAtTime(n._orientation[2],Howler.ctx.currentTime)):n._panner.setOrientation(n._orientation[0],n._orientation[1],n._orientation[2])):(n._panner=Howler.ctx.createStereoPanner(),n._panner.pan.setValueAtTime(n._stereo,Howler.ctx.currentTime)),n._panner.connect(n._node),n._paused||n._parent.pause(n._id,!0).play(n._id,!0)}})()}(Rp)),Rp}var Ap=AH();const CH={class:"audio-unlock"},xH={__name:"AudioUnlock",setup(t){const e=qr(),{audioMuted:n}=Lw(e);let r;return Ap.Howler._audioUnlocked?e.audioUnlocked=!0:ct.isClient&&(window.addEventListener("click",()=>{e.audioUnlocked=!0},{once:!0}),r=setInterval(()=>{Ap.Howler._audioUnlocked&&(e.audioUnlocked=!0,clearInterval(r))},100)),Fe(n,i=>{Ap.Howler.mute(i)}),(i,o)=>(se(),ce("div",CH))}},PH=Ni({__name:"App",setup(t){const e=Rk(),n=j(""),r=qr(),i=Cn(),{data:o,error:s,isLoading:a}=Dd("siteconfig",!0,3);Fe(o,c=>{c&&(i.siteConfig={...c})}),ct.isClient&&document.addEventListener("visibilitychange",()=>{r.tabVisible=document.visibilityState==="visible"||!1});function u(c){ct.isClient&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"page_view",page_title:c,page_location:window.location.href,page_path:window.location.pathname}))}return e.hooks.hook("entries:updated",c=>{ct.isClient&&setTimeout(()=>{var d;const h=e.headEntries().find(f=>f.input&&typeof f.input=="object"&&"title"in f.input),l=(d=h==null?void 0:h.input)==null?void 0:d.title;l&&l!==n.value&&(n.value=l,u(l))},0)}),Et(async()=>{o.value||await i.populateSiteConfig()}),Oa(async()=>{a.value&&!o.value?await i.populateSiteConfig():o.value&&(i.siteConfig={...o.value})}),qm.start(),(c,h)=>{const l=xH,d=_g("RouterView");return se(),ce(Ye,null,[He(l),He(d)],64)}}}),IH=["data-variant"],LH={class:"ButtonToggle"},OH={class:"ButtonToggle-group"},MH=["data-active","onClick","aria-label","aria-pressed"],$H={__name:"ButtonToggle",props:{activeTab:{type:String,required:!0},tabs:{type:Array,required:!0,default:()=>["watch","read"]},variant:{type:String,default:"default"}},emits:["update:activeTab"],setup(t,{emit:e}){const n=e,r=i=>{n("update:activeTab",i)};return(i,o)=>(se(),ce("div",{class:"ButtonToggle-wrapper","data-variant":t.variant},[Y("div",LH,[Y("div",OH,[(se(!0),ce(Ye,null,lt(t.tabs,s=>(se(),ce("button",{key:s,class:"ButtonToggle-option","data-active":t.activeTab===s,onClick:a=>r(s),"aria-label":`Show ${s} content`,"aria-pressed":t.activeTab===s},De(s.charAt(0).toUpperCase()+s.slice(1)),9,MH))),128))])])],8,IH))}},FH=ft($H,[["__scopeId","data-v-d45fc1e7"]]),wc="/perspectives",DH="newsletter";function nE(t){return String(t??"").normalize("NFKD").replace(/[̀-ͯ]/g,"").replace(/&/g," and ").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}function NH(t){var n,r;const e=(r=(n=t==null?void 0:t.elements)==null?void 0:n.type)==null?void 0:r.value;return e!=null&&e.length?e.some(i=>(i==null?void 0:i.codename)===DH||String((i==null?void 0:i.name)??"").trim().toLowerCase()==="newsletter"):!1}function HH(t){var n,r;const e=(r=(n=t==null?void 0:t.elements)==null?void 0:n.newsletter_body)==null?void 0:r.value;return e?e.replace(/<[^>]*>/g,"").replace(/&nbsp;/g," ").trim().length>0:!1}function zm(t){return NH(t)&&HH(t)}function y_(t){var e,n,r,i;return nE(((n=(e=t==null?void 0:t.elements)==null?void 0:e.slug)==null?void 0:n.value)||((r=t==null?void 0:t.system)==null?void 0:r.name)||((i=t==null?void 0:t.system)==null?void 0:i.codename))}function rE(t){return`${wc}/${y_(t)}`}function BH(t){if(!(t!=null&&t.startsWith(wc)))return"";const e=t.slice(wc.length).replace(/^\/+|\/+$/g,"");return e==="index"?"":e}function iE(t){var n;return(((n=t==null?void 0:t.perspectives_read)==null?void 0:n.linkedItems)||[]).filter(zm)}function VH(t,e){if(!e)return null;let n=e;try{n=decodeURIComponent(e)}catch{}const r=nE(n);return iE(t).find(i=>y_(i)===r)||null}const UH=["href","target","rel","data-index","data-newsletter"],jH={class:"ResourceItemRead-container"},WH={class:"ResourceItemRead-info"},qH={key:0,class:"ResourceItemRead-topic"},zH={class:"ResourceItemRead-content"},GH={class:"ResourceItemRead-title type-h6"},YH={key:0},KH={key:1,class:"ResourceItemWatch-subtitle"},XH={class:"ResourceItemRead-iconwrap"},QH={class:"sr-only"},JH={__name:"ResourceItemRead",props:{item:{type:Object,required:!0},index:{type:Number,required:!0}},emits:["openNewsletter"],setup(t,{emit:e}){const n=t,r=e,i=Cn(),o=Ae(()=>zm(n.item)),s=()=>{var d;const h={type:"link",url:"#",label:"View"};if(zm(n.item))return h.type="newsletter",h.url=rE(n.item),h.label="Read",h;const l=i.getAssetURL(n.item.elements.download);return l?(h.type="download",h.url=l,h.label="Download"):(d=n.item.elements.link)!=null&&d.value&&(h.type="link",h.url=n.item.elements.link.value,h.label="View Online"),h},a=Ae(()=>s()),u=()=>{const h=n.item.system.name;if(h.includes(":")){const l=h.split(":");return{firstPart:l[0].trim(),secondPart:l.slice(1).join(":").trim()}}return{firstPart:h,secondPart:null}};function c(h){o.value&&(h.metaKey||h.ctrlKey||h.shiftKey||h.altKey||h.button!==0||(h.preventDefault(),r("openNewsletter",n.item)))}return(h,l)=>{var p,b;const d=Jk,f=g_,_=Qk;return se(),ce("a",{href:a.value.url,class:"ResourceItemRead",target:a.value.type==="newsletter"?null:"_blank",rel:a.value.type==="newsletter"?null:"noopener noreferrer","data-index":t.index,"data-newsletter":o.value,onClick:c},[Y("div",jH,[Y("div",WH,[((b=(p=t.item.elements.type)==null?void 0:p.value)==null?void 0:b.length)>0?(se(),ce("span",qH,De(t.item.elements.type.value[0].name),1)):it("",!0),Y("div",zH,[Y("h3",GH,[Sa(De(u().firstPart),1),u().secondPart?(se(),ce("span",YH,":")):it("",!0),u().secondPart?(se(),ce("span",KH,De(u().secondPart),1)):it("",!0)]),Y("div",XH,[a.value.type==="download"?(se(),At(d,{key:0,class:"ResourceItemRead-icon"})):a.value.type==="newsletter"?(se(),At(f,{key:1,class:"ResourceItemRead-icon"})):(se(),At(_,{key:2,class:"ResourceItemRead-icon"})),Y("span",QH,De(a.value.label),1)])])])])],8,UH)}}},ZH=ft(JH,[["__scopeId","data-v-c3e31adc"]]),e8=["data-index"],t8={class:"ResourceItemWatch-container"},n8={class:"ResourceItemWatch-info"},r8={class:"ResourceItemWatch-thumbnail"},i8=["src","alt"],o8={class:"ResourceItemWatch-content"},s8={class:"ResourceItemWatch-title type-h6"},a8={key:0},l8={key:1,class:"ResourceItemWatch-subtitle"},u8={key:0,class:"ResourceItemWatch-duration type-body--boldsm"},c8={__name:"ResourceItemWatch",props:{item:{type:Object,required:!0},index:{type:Number,required:!0}},emits:["playVideo"],setup(t,{emit:e}){const n=t,r=qr(),i=Cn(),o=j(!1);function s(){let c=i.getVideoSources(n.item.elements.video);n.item.elements.cloudinary_url&&n.item.elements.cloudinary_url.value&&(c=[{src:i.prefixedVideoURL(n.item.elements.cloudinary_url.value),type:"video/mp4"}]),r.setVideoModalData({sources:c,timeOffset:0}),r.setModalState(xr.VIDEO)}function a(){var h;const c=i.getAssetURL((h=n.item.elements)==null?void 0:h.thumbnail);return c||"https://placehold.co/600x338"}function u(){const c=n.item.system.name;if(c.includes(":")){const h=c.split(":");return{firstPart:h[0].trim(),secondPart:h.slice(1).join(":").trim()}}return{firstPart:c,secondPart:null}}return(c,h)=>{var f;const l=m_,d=Sh;return se(),ce("button",{class:"ResourceItemWatch","data-index":t.index,onClick:s,onMouseenter:h[0]||(h[0]=_=>o.value=!0),onMouseleave:h[1]||(h[1]=_=>o.value=!1)},[Y("div",t8,[Y("div",n8,[Y("div",r8,[He(d,{label:"Play",theme:"white-alt",variant:"large",class:"ResourceItemWatch-playicon","not-button":!0,"manual-hover":pe(o)},{default:ri(()=>[He(l)]),_:1},8,["manual-hover"]),Y("img",{src:a(),alt:`${t.item.system.name} thumbnail`,class:"ResourceItemWatch-img"},null,8,i8)]),Y("div",o8,[Y("h3",s8,[Sa(De(u().firstPart),1),u().secondPart?(se(),ce("span",a8,":")):it("",!0),u().secondPart?(se(),ce("span",l8,De(u().secondPart),1)):it("",!0)]),(f=t.item.elements.video_length)!=null&&f.value?(se(),ce("span",u8,De(t.item.elements.video_length.value),1)):it("",!0)])])])],40,e8)}}},f8=ft(c8,[["__scopeId","data-v-8434a3f2"]]),d8=["data-nav-color"],h8={class:"ResourceList-container"},p8={class:"ResourceList-list"},m8={class:"ResourceList-title sr-only"},g8={__name:"ResourceList",props:{title:{type:String,required:!0},items:{type:Array,required:!0,default:()=>[]},type:{type:String,required:!0,validator:t=>["watch","read"].includes(t)},theme:{name:"theme",type:Object,default:()=>({name:"theme",type:"multiple_choice",value:[{name:"warm-grey",codename:"warm-grey"}]})}},emits:["playVideo","openNewsletter"],setup(t,{emit:e}){const n=Cn(),r=e,i=s=>{r("playVideo",s)},o=s=>{r("openNewsletter",s)};return(s,a)=>{const u=f8,c=ZH;return se(),ce("section",{class:rt(["ResourceList",`theme--${pe(n).getThemeValue(t.theme)}`]),"data-nav-color":pe(n).getNavColorValue(pe(n).getThemeValue(t.theme))},[Y("div",h8,[Y("div",p8,[Y("h2",m8,De(t.title),1),(se(!0),ce(Ye,null,lt(t.items,(h,l)=>(se(),ce("div",{key:h.system.id,class:"ResourceList-item"},[t.type==="watch"?(se(),At(u,{key:0,item:h,onPlayVideo:i,index:l},null,8,["item","index"])):(se(),At(c,{key:1,index:l,item:h,onOpenNewsletter:o},null,8,["index","item"]))]))),128))])])],10,d8)}}},_8=ft(g8,[["__scopeId","data-v-83b8e2dc"]]),v8=["data-nav-color"],y8={class:"SimpleHero-container"},b8=["data-show-grid"],w8={class:"SimpleHero-titlewrap"},S8=["data-theme"],T8=Ni({__name:"SimpleHero",props:{showGrid:{type:Boolean,default:!1},block:{type:Object,required:!0,default:()=>({_type:"",vueType:"",pageTitle:"",blockIndex:1,cascadeColor:"white",theme:{name:"theme",type:"multiple_choice",value:[{name:"white",codename:"white"}]}})}},setup(t){const e=t,n=Cn(),r=j(null),i=Ae(()=>{var o;return bh((o=e.block.title)==null?void 0:o.value)});return Et(async()=>{}),(o,s)=>(se(),ce("header",{class:rt(["SimpleHero",`theme--${pe(n).getThemeValue(t.block.theme)}`]),"data-nav-color":pe(n).getNavColorValue(pe(n).getThemeValue(t.block.theme))},[Y("div",y8,[Y("div",{class:"SimpleHero-wrap","data-show-grid":t.showGrid},[Y("div",w8,[t.block.title?(se(),ce("h1",{key:0,ref_key:"titleRef",ref:r,class:rt(["SimpleHero-title type-oversized",i.value]),"data-theme":pe(n).getThemeValue(t.block.theme)},De(t.block.title.value),11,S8)):it("",!0)])],8,b8)])],10,v8))}}),k8=ft(T8,[["__scopeId","data-v-00328bd0"]]),E8=["data-nav-color"],R8={key:0,class:"perspectives-loading"},A8={key:1,class:"perspectives-error"},C8={class:"type-oversized"},x8={key:2,class:"perspectives-content"},P8={class:"content-sections"},I8={key:0,class:"perspectives-newsletter"},L8={key:0,class:"perspectives-newslettertopic"},O8={key:1,class:"perspectives-newslettertitle type-h4"},F1="perspectives-newsletter",M8={__name:"perspectives",props:{slug:{type:String,required:!1},newsletter:{type:String,required:!1,default:""}},setup(t){const e=t,n=Cn(),r=yn(),i=qr(),o=j(""),s=j(null),a=Bs();Hs();const u=j(),c=j(null),{data:h,error:l,isLoading:d}=yh("perspectives"),f=j("read"),_=xr.CONTENT+F1,p=j(null),b=j(!1);let y=!1;const w={theme:{name:"theme",type:"multiple_choice",value:[{name:"cream",codename:"cream"}]},overlay:{name:"overlaytheme",type:"multiple_choice",value:[{name:"black",codename:"black"}]}},R=Ae(()=>{var ae;return e.newsletter||((ae=a.params)==null?void 0:ae.newsletter)||""}),E=Ae(()=>i.modalState===_),A=Ae(()=>{var ae,fe,_e,te,ue;return((ue=(te=(_e=(fe=(ae=p.value)==null?void 0:ae.elements)==null?void 0:fe.type)==null?void 0:_e.value)==null?void 0:te[0])==null?void 0:ue.name)||""}),C=Ae(()=>{var ae,fe;return((fe=(ae=p.value)==null?void 0:ae.system)==null?void 0:fe.name)||""}),I=Ae(()=>{var ae,fe,_e;return((_e=(fe=(ae=p.value)==null?void 0:ae.elements)==null?void 0:fe.newsletter_body)==null?void 0:_e.value)||""});function $(){return typeof window<"u"&&window.location.pathname.startsWith(wc)}function N(ae){if(typeof window>"u"||window.location.pathname===ae)return;const fe=`${ae}${window.location.search}${window.location.hash}`;window.history.pushState({perspectivesNewsletter:ae},"",fe)}function W(ae,{updateUrl:fe=!0}={}){ae&&(p.value=ae,fe&&N(rE(ae)),i.setModalState(_))}function ne(ae,fe){const _e=VH(s.value,ae);return _e&&W(_e,fe),!!_e}function F(){$()&&N(wc)}function Q(){if(typeof window>"u")return;const ae=BH(window.location.pathname);ae&&ne(ae,{updateUrl:!1})||E.value&&i.setModalState(xr.NONE)}Fe(()=>i.modalState,(ae,fe)=>{fe===_&&ae!==_&&F()}),Dc(Ae(()=>{const ae=o.value||"Perspectives";return{title:E.value&&C.value?`${ae} - ${C.value}`:ae,meta:s.value?n.getMeta(s.value):[],link:n.getMetaLinks(s.value)}}));const M=Ae(()=>!s.value||!s.value.theme?{}:{[`theme--${n.getThemeValue(s.value.theme)}`]:!0}),H=Ae(()=>{var ae,fe,_e;return((_e=(fe=(ae=s.value)==null?void 0:ae.perspectives_watch)==null?void 0:fe.linkedItems)==null?void 0:_e.length)>0}),B=Ae(()=>{var ae,fe,_e;return((_e=(fe=(ae=s.value)==null?void 0:ae.perspectives_read)==null?void 0:fe.linkedItems)==null?void 0:_e.length)>0}),U=Ae(()=>H.value&&B.value),oe=Ae(()=>{const ae=[];return H.value&&ae.push("watch"),B.value&&ae.push("read"),ae});async function le(){var ae,fe;if(u.value=!1,!!h.value){if(!((ae=h.value.system)!=null&&ae.type)){u.value="Invalid page data structure";return}s.value=h.value.elements,o.value=(fe=s.value.title)==null?void 0:fe.value,n.pageType=h.value.system.type,B.value?f.value="read":H.value&&(f.value="watch"),q()}}function q(){!s.value||s.value.theme||(s.value.theme={name:"theme",type:"multiple_choice",value:[{name:"warm-grey",codename:"warm-grey"}]})}function be(ae){const fe=n.getVideoSources(ae.elements.video);fe&&fe.length>0?window.open(fe[0].src,"_blank"):console.error("No video sources available for this item")}function ke(ae){W(ae)}async function Se(){try{await new Promise((ae,fe)=>{const _e=Fe(()=>d.value,te=>{te||(_e(),ae())},{immediate:!0})}),h.value&&await le()}catch(ae){console.error("Error in onServerPrefetch:",ae)}}return Ps(()=>{h.value&&!d.value&&le(),l.value&&(u.value="Error loading page",console.error("Error loading page:",l.value))}),Ps(()=>{if(y||!b.value||!s.value)return;y=!0;const ae=R.value;ae&&Ot(()=>{ne(ae,{updateUrl:!1})})}),Fe(f,()=>{r.scrollTo(1,{duration:.1})}),Ml(async()=>{c.value=e.slug,c.value,BTEDL.newPage("perspectives"),h.value&&!d.value&&le()}),Et(()=>{b.value=!0,window.addEventListener("popstate",Q)}),Oa(async()=>{c.value=e.slug,await Se()}),Ft(()=>{window.removeEventListener("popstate",Q)}),(ae,fe)=>{const _e=k8,te=_8,ue=FH,ge=Fk;return se(),ce("div",{key:e.slug,class:rt(["perspectives",M.value]),"data-nav-color":pe(n).getNavColorValue(M.value)},[pe(d)?(se(),ce("div",R8,fe[1]||(fe[1]=[Y("div",{class:"loading-indicator"},"Loading page content...",-1)]))):u.value?(se(),ce("div",A8,[Y("h1",C8,De(u.value),1),fe[2]||(fe[2]=Y("p",null,"Sorry, we couldn't load the page you requested.",-1))])):s.value?(se(),ce("div",x8,[He(_e,{block:s.value},null,8,["block"]),Y("div",P8,[H.value&&f.value==="watch"?(se(),At(te,{key:0,type:"watch",items:s.value.perspectives_watch.linkedItems,title:"Watch",theme:s.value.theme,onPlayVideo:be},null,8,["items","theme"])):it("",!0),B.value&&f.value==="read"?(se(),At(te,{key:1,type:"read",title:"Read",theme:s.value.theme,items:s.value.perspectives_read.linkedItems,onOpenNewsletter:ke},null,8,["theme","items"])):it("",!0)]),U.value?(se(),At(ue,{key:0,activeTab:f.value,"onUpdate:activeTab":fe[0]||(fe[0]=we=>f.value=we),tabs:oe.value},null,8,["activeTab","tabs"])):it("",!0),He(ge,{"unique-id":F1,theme:w.theme,"overlay-theme":w.overlay,"is-large":!1},{default:ri(()=>[p.value?(se(),ce("article",I8,[A.value?(se(),ce("p",L8,De(A.value),1)):it("",!0),C.value?(se(),ce("h2",O8,De(C.value),1)):it("",!0),He(Fl,{html:I.value},null,8,["html"])])):it("",!0)]),_:1},8,["theme","overlay-theme"])])):it("",!0)],10,E8)}}},Gm=ft(M8,[["__scopeId","data-v-69acb42b"]]),$8=Object.freeze(Object.defineProperty({__proto__:null,default:Gm},Symbol.toStringTag,{value:"Module"})),F8=["portfolio","fellows-projects","perspectives"],D8=["/prototype/","/test/","/readme"],N8=!1;function oE(t){let e=!1;return D8.forEach(n=>{t.includes(n)&&(e=!0)}),e?N8:!0}function sE(){return(tE.filter(e=>oE(e.path||""))||[]).map(e=>({...e,props:{slug:e.path.substring(1)||"index"}}))}function H8(){const t=Zk(tE);return(t==null?void 0:t.filter(e=>oE(e.path||"")))||[]}function B8(t){t.component("ProxyBlock",RH)}TH(PH,{routes:sE(),base:"/"},async t=>{const{app:e,router:n}=t;Object.values([a2,m2]).forEach(o=>{var s;return(s=o.install)==null?void 0:s.call(o,t)});const r=await j8();Zk(r).forEach(o=>{n.addRoute(o)}),B8(e)});function V8(t,e){var h,l,d;const n=Cn(),r="default",i=n.internalRouting(t,e.system),o=(h=H8())==null?void 0:h.find(f=>f.path===i);let s=o==null?void 0:o.component;const a=i==="/"?"/index":`${i}/index`,u=F8.includes(t)?`${i}/index`:`${i}`;if(s)return{componentTemplate:s,path:u,layout:r,pathAlias:a};const c={page:Um,home:Xk,portfolio:v_,fellows_projects:d_};return s=c[(l=e==null?void 0:e.system)==null?void 0:l.type]?c[(d=e==null?void 0:e.system)==null?void 0:d.type]:Um,{componentTemplate:s,path:u,layout:r,pathAlias:a}}async function U8(){const e=await Cn().getAllRoutes();if(!e||!Array.isArray(e))return[];const n=[];return e.forEach(r=>{const i=r.elements||{},o=r.system||{};if(!i.slug||!i.slug.value)return;let s;const a=i.slug.value,u=o.type,{componentTemplate:c,path:h,layout:l,pathAlias:d}=V8(a,r);c&&(s={path:h,name:`${u}-${a}`,component:c,props:{slug:a},meta:{layout:l},alias:d},s.name&&n.push(s))}),n}async function j8(){const t=await U8(),e=sE(),n=await z8(),r=await G8(),i=await K8(),o=[...n,...r,...i];return t.length<1?[...e,...o]:[...e,...t,...o]}function W8(t){if(!Array.isArray(t))return t;const e=[];return t.forEach(n=>{n.name&&n.terms&&n.terms.map(i=>{e.push(i.name)})}),e}let Of=null;function q8(){return Of||(Of=vk("be").then(t=>W8(t)).catch(t=>(console.error("Failed to fetch taxonomies for filter routes:",t),Of=null,[]))),Of}async function aE({slug:t,component:e,cohorts:n=[]}){const r=await q8(),o=(Array.isArray(r)?r:[]).map(s=>({path:`/${t}/${s}`,name:`${t}-filter-${s}`,component:e,props:{slug:t,filter:s},meta:{layout:"default"}}));return n.forEach(s=>{const a=v5(s);o.push({path:`/${t}/${a}`,name:`${t}-filter-${a}`,component:e,props:{slug:t,filter:a},meta:{layout:"default"}})}),o.push({path:`/${t}/:filter(.*)`,name:`${t}-filter-404`,component:e,props:{slug:t,filter:""},meta:{layout:"default"}}),o}async function z8(){return aE({slug:"portfolio",component:v_})}async function G8(){return aE({slug:"fellows-projects",component:d_,cohorts:_5})}let Mf=null;function Y8(){return Mf||(Mf=_k("perspectives",2).catch(t=>(console.error("Failed to fetch perspectives for newsletter routes:",t),Mf=null,null))),Mf}async function K8(){const t=await Y8(),n=iE(t==null?void 0:t.elements).map(r=>y_(r)).filter(Boolean).map(r=>({path:`/perspectives/${r}`,name:`perspectives-newsletter-${r}`,component:Gm,props:{slug:"perspectives",newsletter:r},meta:{layout:"default"}}));return n.push({path:"/perspectives/:newsletter(.*)",name:"perspectives-newsletter-404",component:Gm,props:{slug:"perspectives",newsletter:""},meta:{layout:"default"}}),n}export{Ot as $,m1 as A,gn as B,qr as C,xn as D,So as E,Ye as F,Et as G,Sa as H,ri as I,C4 as J,Sh as K,m_ as L,xr as M,og as N,Li as O,yn as P,Lw as Q,ct as R,We as S,rC as T,Lk as U,qw as V,Gk as W,$k as X,Q8 as Y,yB as Z,ft as _,Bs as a,Je as a0,vt as a1,wh as a2,ya as a3,tC as a4,fx as a5,b5 as a6,vn as a7,Z8 as a8,eB as a9,_g as aa,J8 as ab,_w as ac,Fc as ad,Ni as ae,Jk as af,Qk as ag,g_ as ah,FH as ai,jT as aj,Fk as ak,k8 as al,Ik as am,Dk as an,mu as ao,B4 as ap,A$ as aq,bh as ar,Hs as b,yh as c,Dc as d,Ae as e,Oa as f,Ft as g,ce as h,se as i,pe as j,Y as k,He as l,it as m,rt as n,Ml as o,g5 as p,Fl as q,j as r,lt as s,De as t,Cn as u,At as v,Ps as w,wa as x,EO as y,Fe as z};