PageSourceSearch

https://opportunitythroughsport.org/assets/index-D1G9RLbZ.js

js opportunitythroughsport.org collected 2026-10-07 19:11:09 UTC 765,738 bytes, 205 lines download raw bytes

1function Dk(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const a in i)if(a!=="default"&&!(a in e)){const l=Object.getOwnPropertyDescriptor(i,a);l&&Object.defineProperty(e,a,l.get?l:{enumerable:!0,get:()=>i[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(a){if(a.ep)return;a.ep=!0;const l=n(a);fetch(a.href,l)}})();const ct={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},tr=console,ns={};Object.keys(ct).forEach(e=>{ns[e]=tr[e]});const Zo="Openobserve Browser SDK:",be={debug:ns.debug.bind(tr,Zo),log:ns.log.bind(tr,Zo),info:ns.info.bind(tr,Zo),warn:ns.warn.bind(tr,Zo),error:ns.error.bind(tr,Zo)},XE="https://openobserve.ai",Mk=`${XE}/docs/user-guide/rum/`,WE="More details:";function JE(e,t){return(...n)=>{try{return e(...n)}catch(i){be.error(t,i)}}}function hi(e){return e!==0&&Math.random()*100<=e}function va(e,t){return+e.toFixed(t)}function Lk(e){return Vl(e)&&e>=0&&e<=100}function Vl(e){return typeof e=="number"}function El(e){return{...e}}function rd(e,t){return Object.keys(e).some(n=>e[n]===t)}function Ti(e){return Object.keys(e).length===0}function QE(e,t){const n={};for(const i of Object.keys(e))n[i]=t(e[i]);return n}function Un(){if(typeof globalThis=="object")return globalThis;Object.defineProperty(Object.prototype,"_oo_temp_",{get(){return this},configurable:!0});let e=_oo_temp_;return delete Object.prototype._oo_temp_,typeof e!="object"&&(typeof self=="object"?e=self:typeof window=="object"?e=window:e={}),e}const Kn=Un(),gs="WorkerGlobalScope"in Kn;function yi(e,t){const n=Un();let i;return n.Zone&&typeof n.Zone.__symbol__=="function"&&(i=e[n.Zone.__symbol__(t)]),i||(i=e[t]),i}let id,ZE=!1;function Uk(e){id=e}function Ik(e){ZE=e}function Pk(e,t,n){const i=n.value;n.value=function(...a){return(id?le(i):i).apply(this,a)}}function le(e){return function(){return jr(e,this,arguments)}}function jr(e,t,n){try{return e.apply(t,n)}catch(i){zl(i)}}function zl(e){if(Cp(e),id)try{id(e)}catch(t){Cp(t)}}function Cp(...e){ZE&&be.error("[MONITOR]",...e)}function en(e,t){return yi(Un(),"setTimeout")(le(e),t)}function Nn(e){yi(Un(),"clearTimeout")(e)}function qa(e,t){return yi(Un(),"setInterval")(le(e),t)}function wd(e){yi(Un(),"clearInterval")(e)}function z_(e){var t;const n=(t=Kn.queueMicrotask)===null||t===void 0?void 0:t.bind(Kn);typeof n=="function"?n(le(e)):Promise.resolve().then(le(e))}class Oe{constructor(t){this.onFirstSubscribe=t,this.observers=[]}subscribe(t){return this.addObserver(t),{unsubscribe:()=>this.removeObserver(t)}}notify(t){this.observers.forEach(n=>n(t))}addObserver(t){this.observers.push(t),this.observers.length===1&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(t){this.observers=this.observers.filter(n=>t!==n),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}}function eT(...e){return new Oe(t=>{const n=e.map(i=>i.subscribe(a=>t.notify(a)));return()=>n.forEach(i=>i.unsubscribe())})}class tT extends Oe{constructor(t){super(),this.maxBufferSize=t,this.buffer=[]}notify(t){this.buffer.push(t),this.buffer.length>this.maxBufferSize&&this.buffer.shift(),super.notify(t)}subscribe(t){let n=!1;const i={unsubscribe:()=>{n=!0,this.removeObserver(t)}};return z_(()=>{for(const a of this.buffer){if(n)return;t(a)}n||this.addObserver(t)}),i}unbuffer(){z_(()=>{this.maxBufferSize=this.buffer.length=0})}}const qt=1e3,Ft=60*qt,nT=60*Ft,Bk=24*nT,rT=365*Bk;function Ed(e){return{relative:e,timeStamp:zk(e)}}function Vk(e){return{relative:Td(e),timeStamp:e}}function zk(e){const t=Ht()-performance.now();return t>$l()?Math.round(Fa(t,e)):Hk(e)}function $k(){return Math.round(Ht()-Fa($l(),performance.now()))}function ve(e){return Vl(e)?va(e*1e6,0):e}function Ht(){return new Date().getTime()}function Dt(){return Ht()}function gn(){return performance.now()}function wt(){return{relative:gn(),timeStamp:Dt()}}function iT(){return{relative:0,timeStamp:$l()}}function xt(e,t){return t-e}function Fa(e,t){return e+t}function Td(e){return e-$l()}function Hk(e){return Math.round(Fa($l(),e))}function qk(e){return e<rT}let vm;function $l(){var e,t;return vm===void 0&&(vm=(t=(e=performance.timing)===null||e===void 0?void 0:e.navigationStart)!==null&&t!==void 0?t:performance.timeOrigin),vm}
1function xd(e,t,n){const i=n&&n.leading!==void 0?n.leading:!0,a=n&&n.trailing!==void 0?n.trailing:!0;let l=!1,u,d;return{throttled:(...f)=>{if(l){u=f;return}i?e(...f):u=f,l=!0,d=en(()=>{a&&u&&e(...u),l=!1,u=void 0},t)},cancel:()=>{Nn(d),l=!1,u=void 0}}}function Me(){}function It(e){return e?(parseInt(e,10)^Math.random()*16>>parseInt(e,10)/4).toString(16):`10000000-1000-4000-8000-${1e11}`.replace(/[018]/g,It)}const Ma=/([\w-]+)\s*=\s*([^;]+)/g;function Tl(e,t){for(Ma.lastIndex=0;;){const n=Ma.exec(e);if(n){if(n[1]===t)return n[2]}else break}}function Fk(e){const t=new Map;for(Ma.lastIndex=0;;){const n=Ma.exec(e);if(n){const i=n[1],a=n[2];t.has(i)?t.get(i).push(a):t.set(i,[a])}else break}return t}function Gk(e){const t=new Map;for(Ma.lastIndex=0;;){const n=Ma.exec(e);if(n)t.set(n[1],n[2]);else break}return t}function Ad(e,t,n=""){const i=e.charCodeAt(t-1),l=i>=55296&&i<=56319?t+1:t;return e.length<=l?e:`${e.slice(0,l)}${n}`}function Kk(){return Yk()===0}let wc;function Yk(){return wc??(wc=Xk())}function Xk(e=window){var t;const n=e.navigator.userAgent;return e.chrome||/HeadlessChrome/.test(n)?0:((t=e.navigator.vendor)===null||t===void 0?void 0:t.indexOf("Apple"))===0||/safari/i.test(n)&&!/chrome|android/i.test(n)?1:2}function Og(e){return Od(e,location.href).href}function Wk(e){try{return!!Od(e)}catch{return!1}}function Jk(e){const t=Od(e).pathname;return t[0]==="/"?t:`/${t}`}function Od(e,t){const{URL:n}=Qk();try{return t!==void 0?new n(e,t):new n(e)}catch(i){throw new Error(`Failed to construct URL: ${String(i)}`)}}let bm;function Qk(){if(!bm){let e,t;try{e=document.createElement("iframe"),e.style.display="none",document.body.appendChild(e),t=e.contentWindow}catch{t=Kn}bm={URL:t.URL},e?.remove()}return bm}function Cd(e,t,n=0,i){const a=new Date;a.setTime(a.getTime()+n);const l=`expires=${a.toUTCString()}`,u=i&&i.crossSite?"none":"strict",d=i&&i.domain?`;domain=${i.domain}`:"",f=i&&i.secure?";secure":"",h=i&&i.partitioned?";partitioned":"";document.cookie=`${e}=${t};${l};path=/;samesite=${u}${d}${f}${h}`}function Rd(e){return Tl(document.cookie,e)}function Zk(e){return Fk(document.cookie).get(e)||[]}let _m;function mi(e){return _m||(_m=Gk(document.cookie)),_m.get(e)}function sT(e,t){Cd(e,"",0,t)}function eN(e){if(document.cookie===void 0||document.cookie===null)return!1;try{const t=`oo_cookie_test_${It()}`,n="test";Cd(t,n,Ft,e);const i=Rd(t)===n;return sT(t,e),i}catch(t){return be.error(t),!1}}let Sm;function aT(e=location.hostname,t=document.referrer){if(Sm===void 0){const n=tN(e,t);if(n){const i=`oo_site_test_${It()}`,a="test",l=n.split(".");let u=l.pop();for(;l.length&&!Rd(i);)u=`${l.pop()}.${u}`,Cd(i,a,qt,{domain:u});sT(i,{domain:u}),Sm=u}}return Sm}function tN(e,t){try{return e||Od(t).hostname}catch{}}const Mr="_oo_s";function oT(e,t){for(let n=e.length-1;n>=0;n-=1){const i=e[n];if(t(i,n,e))return i}}function sd(e){return Object.values(e)}function Cg(e){return Object.entries(e)}const ys=4*nT,lT=15*Ft,nN=rT,uT="0",La={COOKIE:"cookie",LOCAL_STORAGE:"local-storage"},cT=/^([a-zA-Z]+)=([a-z0-9-]+)$/,Rg="&";function rN(e){return!!e&&(e.indexOf(Rg)!==-1||cT.test(e))}const iN="1";function rs(e,t){const n={isExpired:iN};return t.trackAnonymousUser&&e?.anonymousId&&(n.anonymousId=e?.anonymousId),n}function Hc(e){return Ti(e)}function dT(e){return!Hc(e)}function hl(e){return e.isExpired!==void 0||!sN(e)}function sN(e){return(e.created===void 0||Ht()-Number(e.created)<ys)&&(e.expire===void 0||Ht()<Number(e.expire))}function fT(e){e.expire=String(Ht()+lT)}function Rp(e){return Cg(e).map(([t,n])=>t==="anonymousId"?`aid=${n}`:`${t}=${n}`).join(Rg)}function kd(e){const t={};return rN(e)&&e.split(Rg).forEach(n=>{const i=cT.exec(n);if(i!==null){const[,a,l]=i;a==="aid"?t.anonymousId=l:t[a]=l}}),t}const aN="_oo",oN="_oo_r",lN="_oo_l",uN="rum",cN="logs";function dN(e){if(!mi(Mr)){const n=mi(aN),i=mi(oN),a=mi(lN),l={};n&&(l.id=n),a&&/^[01]$/.test(a)&&(l[cN]=a),i&&/^[012]$/.test(i)&&(l[uN]=i),dT(l)&&(fT(l),e.persistSession(l))}}const fN=0;function $_(e){const t=mN(e);return t&&eN(t)?{type:La.COOKIE,cookieOptions:t}:void 0}function hN(e,t){const n={isLockEnabled:Kk(),persistSession:i=>H_(t,e,i,lT),retrieveSession:()=>hT(t,e),expireSession:i=>H_(t,e,rs(i,e),ys)};return dN(n),n}function H_(e,t,n,i){let a=Rp(n);t.betaEncodeCookieOptions&&(a=Rp({...n,...Ti(n)?{}:{c:mT(e)}}
1)),Cd(Mr,a,t.trackAnonymousUser?nN:i,e)}function hT(e,t){if(t.betaEncodeCookieOptions)return pN(e);const n=Rd(Mr);return kd(n)}function mN(e){const t={};if(t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains){const n=aT();if(!n)return;t.domain=n}return t}function mT(e){const t=e.domain?e.domain.split(".").length-1:0;let n=0;return n|=fN<<5,n|=t<<1,n|=e.crossSite?1:0,n.toString(16)}function pN(e){const t=Zk(Mr),n=mT(e);let i;for(const a of t.reverse())if(i=kd(a),i.c===n)break;return i==null||delete i.c,i??{}}const gN="_oo_test_";function q_(){try{const e=It(),t=`${gN}${e}`;localStorage.setItem(t,e);const n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:La.LOCAL_STORAGE}:void 0}catch{return}}function yN(e){return{isLockEnabled:!1,persistSession:pT,retrieveSession:gT,expireSession:t=>vN(t,e)}}function pT(e){localStorage.setItem(Mr,Rp(e))}function gT(){const e=localStorage.getItem(Mr);return kd(e)}function vN(e,t){pT(rs(e,t))}const bN=10,_N=100,SN=qt,yT="--",vT=[];let qc;function is(e,t,n=0){var i;const{isLockEnabled:a,persistSession:l,expireSession:u}=t,d=v=>l({...v,lock:h}),f=()=>{const{lock:v,..._}=t.retrieveSession();return{session:_,lock:v&&!EN(v)?v:void 0}};if(qc||(qc=e),e!==qc){vT.push(e);return}if(a&&n>=_N){F_(t);return}let h,g=f();if(a){if(g.lock){Ec(e,t,n);return}if(h=wN(),d(g.session),g=f(),g.lock!==h){Ec(e,t,n);return}}let y=e.process(g.session);if(a&&(g=f(),g.lock!==h)){Ec(e,t,n);return}if(y&&(hl(y)?u(y):(fT(y),a?d(y):l(y))),a&&!(y&&hl(y))){if(g=f(),g.lock!==h){Ec(e,t,n);return}l(g.session),y=g.session}(i=e.after)===null||i===void 0||i.call(e,y||g.session),F_(t)}function Ec(e,t,n){en(()=>{is(e,t,n+1)},bN)}function F_(e){qc=void 0;const t=vT.shift();t&&is(t,e)}function wN(){return It()+yT+Dt()}function EN(e){const[,t]=e.split(yT);return!t||xt(Number(t),Dt())>SN}const G_=qt;function TN(e){switch(e.sessionPersistence){case La.COOKIE:return $_(e);case La.LOCAL_STORAGE:return q_();case void 0:{let t=$_(e);return!t&&e.allowFallbackToLocalStorage&&(t=q_()),t}default:be.error(`Invalid session persistence '${String(e.sessionPersistence)}'`)}}function xN(e,t){return e.type===La.COOKIE?hN(t,e.cookieOptions):yN(t)}function AN(e,t,n,i,a=xN(e,t)){const l=new Oe,u=new Oe,d=new Oe,f=qa(_,G_);let h;E();const{throttled:g,cancel:y}=xd(()=>{is({process:B=>{if(Hc(B))return;const G=S(B);return x(G),G},after:B=>{dT(B)&&!A()&&M(B),h=B}},a)},G_);function v(){is({process:B=>A()?S(B):void 0},a)}function _(){const B=a.retrieveSession();hl(B)?is({process:G=>hl(G)?rs(G,t):void 0,after:S},a):S(B)}function S(B){return hl(B)&&(B=rs(B,t)),A()&&(N(B)?R():(d.notify({previousState:h,newState:B}),h=B)),B}function E(){is({process:B=>{if(Hc(B))return B.anonymousId=It(),rs(B,t)},after:B=>{h=B}},a)}function x(B){if(Hc(B))return!1;const G=i(B[n]);B[n]=G,delete B.isExpired,G!==uT&&!B.id&&(B.id=It(),B.created=String(Ht()))}function A(){return h?.[n]!==void 0}function N(B){return h.id!==B.id||h[n]!==B[n]}function R(){h=rs(h,t),u.notify()}function M(B){h=B,l.notify()}function $(B){is({process:G=>({...G,...B}),after:S},a)}return{expandOrRenewSession:g,expandSession:v,getSession:()=>h,renewObservable:l,expireObservable:u,sessionStateUpdateObservable:d,restartSession:E,expire:B=>{y(),B===!1&&h&&delete h.anonymousId,a.expireSession(h),S(rs(h,t))},stop:()=>{wd(f)},updateSessionState:$}}const kp={GRANTED:"granted",NOT_GRANTED:"not-granted"};function bT(e){const t=new Oe;return{tryToInit(n){e||(e=n)},update(n){e=n,t.notify()},isGranted(){return e===kp.GRANTED},observable:t}}function vs(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function xl(e){const t=vs(e);return t==="string"||t==="function"||e instanceof RegExp}function Nd(e,t,n=!1){return e.some(i=>{try{if(typeof i=="function")return i(t);if(i instanceof RegExp)return i.test(t);if(typeof i=="string")return n?t.startsWith(i):i===t}catch(a){be.error(a)}return!1})}const ON=["chrome-extension://","moz-extension://"];function K_(e){return ON.some(t=>e.includes(t))}function CN(e,t=""){if(K_(e))return!1;const i=t.split(`
2`).filter(a=>{const l=a.trim();return l.length&&/^at\s+|@/.test(l)})[1]||"";return K_(i)}
2const RN="Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided.",kN="SDK initialized on a non-allowed domain.";function NN(e,t,n=typeof location<"u"?location.origin:""){const i=e.allowedTrackingOrigins;if(!i)return CN(n,t)?(be.error(RN),!1):!0;const a=Nd(i,n);return a||be.error(kN),a}const _T="datad0g.com",jd="datadoghq.com",jN="datadoghq.eu",DN="ddog-gov.com",MN=["ddsource","dd-api-key","dd-request-id"];function ss(e,t,n){const i=LN(e,t);return{build(a,l){const u=UN(e,t,a,l,n);return i(u)},trackType:t}}function LN(e,t){const{proxy:n,apiVersion:i,organizationIdentifier:a,insecureHTTP:l}=e,u=`/rum/${i}/${a}/${t}`;if(typeof n=="string"){const h=Og(n);return g=>`${h}?o2forward=${encodeURIComponent(`${u}?${g}`)}`}if(typeof n=="function")return h=>n({path:u,parameters:h});const d=ST(t,e),f=l?"http":"https";return h=>`${f}://${d}${u}?${h}`}function ST(e,t){const{site:n=jd,internalAnalyticsSubdomain:i}=t;return n}function UN({clientToken:e,internalAnalyticsSubdomain:t,source:n="browser"},i,a,{retry:l,encoding:u},d=[]){const f=[`o2source=${n}`,`o2-api-key=${e}`,`o2-evp-origin-version=${encodeURIComponent("0.3.1")}`,"o2-evp-origin=browser",`o2-request-id=${It()}`].concat(d);return u&&f.push(`o2-evp-encoding=${u}`),i==="rum"&&(f.push(`batch_time=${Dt()}`,`_o2.api=${a}`),l&&f.push(`_o2.retry_count=${l.count}`,`_o2.retry_after=${l.lastFailureStatus}`)),t&&f.reverse(),f.join("&")}function IN(e){const t=e.site||jd,n=PN(e.source),i=BN({...e,site:t,source:n});return{replica:VN({...e,site:t,source:n}),site:t,source:n,...i}}function PN(e){return e==="flutter"||e==="unity"?e:"browser"}function BN(e){return{logsEndpointBuilder:ss(e,"logs"),rumEndpointBuilder:ss(e,"rum"),profilingEndpointBuilder:ss(e,"profile"),sessionReplayEndpointBuilder:ss(e,"replay"),exposuresEndpointBuilder:ss(e,"exposures")}}function VN(e){if(!e.replica)return;const t={...e,site:jd,clientToken:e.replica.clientToken};return{logsEndpointBuilder:ss(t,"logs"),rumEndpointBuilder:ss(t,"rum",[`application.id=${e.replica.applicationId}`])}}function wT(e){return MN.every(t=>e.includes(t))}const ba={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input",MASK_UNLESS_ALLOWLISTED:"mask-unless-allowlisted"},Np={ALL:"all",SAMPLED:"sampled"};function wm(e,t){return e!=null&&typeof e!="string"?(be.error(`${t} must be defined as a string`),!1):!0}function zN(e){return!0}function _a(e,t){return e!==void 0&&!Lk(e)?(be.error(`${t} Sample Rate should be a number between 0 and 100`),!1):!0}function ET(e,t){var n,i,a,l,u,d,f,h,g,y,v;if(!e||!e.clientToken){be.error("Client Token is not configured, we will not send any data.");return}if(e.allowedTrackingOrigins!==void 0&&!Array.isArray(e.allowedTrackingOrigins)){be.error("Allowed Tracking Origins must be an array");return}if(!(!zN(e.site)||!_a(e.sessionSampleRate,"Session")||!_a(e.telemetrySampleRate,"Telemetry")||!_a(e.telemetryConfigurationSampleRate,"Telemetry Configuration")||!_a(e.telemetryUsageSampleRate,"Telemetry Usage")||!wm(e.version,"Version")||!wm(e.env,"Env")||!wm(e.service,"Service")||!NN(e,t??""))){if(e.trackingConsent!==void 0&&!rd(kp,e.trackingConsent)){be.error('Tracking Consent should be either "granted" or "not-granted"');return}return{beforeSend:e.beforeSend&&JE(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:gs?void 0:TN(e),sessionSampleRate:(n=e.sessionSampleRate)!==null&&n!==void 0?n:100,telemetrySampleRate:(i=e.telemetrySampleRate)!==null&&i!==void 0?i:20,telemetryConfigurationSampleRate:(a=e.telemetryConfigurationSampleRate)!==null&&a!==void 0?a:5,telemetryUsageSampleRate:(l=e.telemetryUsageSampleRate)!==null&&l!==void 0?l:5,service:(u=e.service)!==null&&u!==void 0?u:void 0,env:(d=e.env)!==null&&d!==void 0?d:void 0,version:(f=e.version)!==null&&f!==void 0?f:void 0,datacenter:(h=e.datacenter)!==null&&h!==void 0?h:void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:(g=e.trackingConsent)!==null&&g!==void 0?g:kp.GRANTED,trackAnonymousUser:(y=e.trackAnonymousUser)!==null&&y!==void 0?y:!0,storeContextsAcrossPages:!!e.storeContextsAcrossPages,betaEncodeCookieOptions:!!e.betaEncodeCookieOptions,variant:e.variant,sdkVersion:e.sdkVersion,apiVersion:(v=e.apiVersion)!==null&&v!==void 0?v:"v1",organizationIdentifier:e.organizationIdentifier,insecureHTTP:e.insecureHTTP,...IN(e)}}}function TT(e){return{session_sample_rate:e.sessionSampleRate,telemetry_sample_rate:e.telemetrySampleRate,telemetry_configuration_sample_rate:e.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:e.telemetryUsageSampleRate,use_before_send:!!e.beforeSend,use_partitioned_cross_site_session_cookie:e.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:e.useSecureSessionCookie,use_proxy:!!e.proxy,silent_multiple_init:e.silentMultipleInit,track_session_across_subdomains:e.trackSessionAcrossSubdomains,track_anonymous_user:e.trackA
2nonymousUser,session_persistence:e.sessionPersistence,allow_fallback_to_local_storage:!!e.allowFallbackToLocalStorage,store_contexts_across_pages:!!e.storeContextsAcrossPages,allow_untrusted_events:!!e.allowUntrustedEvents,tracking_consent:e.trackingConsent,use_allowed_tracking_origins:Array.isArray(e.allowedTrackingOrigins),beta_encode_cookie_options:e.betaEncodeCookieOptions,source:e.source,sdk_version:e.sdkVersion,variant:e.variant}}var vi;(function(e){e.TRACK_INTAKE_REQUESTS="track_intake_requests",e.USE_TREE_WALKER_FOR_ACTION_NAME="use_tree_walker_for_action_name",e.FEATURE_OPERATION_VITAL="feature_operation_vital",e.SHORT_SESSION_INVESTIGATION="short_session_investigation",e.AVOID_FETCH_KEEPALIVE="avoid_fetch_keepalive"})(vi||(vi={}));const kg=new Set;function xT(e){Array.isArray(e)&&$N(e.filter(t=>rd(vi,t)))}function $N(e){e.forEach(t=>{kg.add(t)})}function Hl(e){return kg.has(e)}function HN(){return kg}const Ua="?";function Ga(e){var t,n;const i=[];let a=Em(e,"stack");const l=String(e);if(a&&a.startsWith(l)&&(a=a.slice(l.length)),a&&a.split(`
3`).forEach(u=>{const d=GN(u)||YN(u)||WN(u)||ZN(u);d&&(!d.func&&d.line&&(d.func=Ua),i.push(d))}),i.length>0&&rj()&&e instanceof Error){const u=[];let d=e;for(;(d=Object.getPrototypeOf(d))&&OT(d);){const f=((t=d.constructor)===null||t===void 0?void 0:t.name)||Ua;u.push(f)}for(let f=u.length-1;f>=0&&((n=i[0])===null||n===void 0?void 0:n.func)===u[f];f--)i.shift()}return{message:Em(e,"message"),name:Em(e,"name"),stack:i}}const AT="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",Ia="(?::(\\d+))",qN=new RegExp(`^\\s*at (.*?) ?\\(${AT}${Ia}?${Ia}?\\)?\\s*$`,"i"),FN=new RegExp(`\\((\\S*)${Ia}${Ia}\\)`);function GN(e){const t=qN.exec(e);if(!t)return;const n=t[2]&&t[2].indexOf("native")===0,i=t[2]&&t[2].indexOf("eval")===0,a=FN.exec(t[2]);return i&&a&&(t[2]=a[1],t[3]=a[2],t[4]=a[3]),{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||Ua,line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}const KN=new RegExp(`^\\s*at ?${AT}${Ia}?${Ia}??\\s*$`,"i");function YN(e){const t=KN.exec(e);if(t)return{args:[],column:t[3]?+t[3]:void 0,func:Ua,line:t[2]?+t[2]:void 0,url:t[1]}}const XN=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function WN(e){const t=XN.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||Ua,line:+t[3],url:t[2]}}const JN=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,QN=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function ZN(e){const t=JN.exec(e);if(!t)return;const n=t[3]&&t[3].indexOf(" > eval")>-1,i=QN.exec(t[3]);return n&&i&&(t[3]=i[1],t[4]=i[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||Ua,line:t[4]?+t[4]:void 0,url:t[3]}}function Em(e,t){if(typeof e!="object"||!e||!(t in e))return;const n=e[t];return typeof n=="string"?n:void 0}function ej(e,t,n,i){if(t===void 0)return;const{name:a,message:l}=nj(e);return{name:a,message:l,stack:[{url:t,column:i,line:n}]}}const tj=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function nj(e){let t,n;return{}.toString.call(e)==="[object String]"&&([,t,n]=tj.exec(e)),{name:t,message:n}}function OT(e){return String(e.constructor).startsWith("class ")}let Tc;function rj(){if(Tc!==void 0)return Tc;class e extends Error{constructor(){super(),this.name="Error"}}const[t,n]=[e,Error].map(i=>new i);return Tc=OT(Object.getPrototypeOf(t))&&n.stack!==t.stack,Tc}function Pa(e){const n=new Error(e);n.name="HandlingStack";let i;return jr(()=>{const a=Ga(n);a.stack=a.stack.slice(2),i=Ka(a)}),i}function Ka(e){let t=CT(e);return e.stack.forEach(n=>{const i=n.func==="?"?"<anonymous>":n.func,a=n.args&&n.args.length>0?`(${n.args.join(", ")})`:"",l=n.line?`:${n.line}`:"",u=n.line&&n.column?`:${n.column}`:"";t+=`
4  at ${i}${a} @ ${n.url}${l}${u}`}),t}function CT(e){return`${e.name||"Error"}: ${e.message}`}function nr(e,t,n,{computeHandlingStack:i}={}){let a=e[t];if(typeof a!="function")if(t in e&&t.startsWith("on"))a=Me;else return{stop:Me};let l=!1;const u=function(){if(l)return a.apply(this,arguments);const d=Array.from(arguments);let f;jr(n,null,[{target:this,parameters:d,onPostCall:g=>{f=g},handlingStack:i?Pa("instrumented method"):void 0}]);const h=a.apply(this,d);return f&&jr(f,null,[h]),h};return e[t]=u,{stop:()=>{l=!0,e[t]===u&&(e[t]=a)}}}const xi=1024,RT=1024*xi,ij=/[^\u0000-\u007F]/;function kT(e){return ij.test(e)?window.TextEncoder!==void 0?new TextEncoder().encode(e).length:new Blob([e]).size:e.length}function sj(e){if(e.length===1)return e[0];const t=e.reduce((a,l)=>a+l.length,0),n=new Uint8Array(t);let i=0;for(const a of e)n.set(a,i),i+=a.length;return n}function ql(e,t,n){if(typeof e!="object"||e===null)return JSON.stringify(e);const i=Sa(Object.prototype),a=Sa(Array.prototype),l=Sa(Object.getPrototypeOf(e)),u=Sa(e);
4try{return JSON.stringify(e,t,n)}catch{return"<error: unable to serialize object>"}finally{i(),a(),l(),u()}}function Sa(e){const t=e,n=t.toJSON;return n?(delete t.toJSON,()=>{t.toJSON=n}):Me}const aj=220*xi,oj="$",lj=3;function ze(e,t=aj){const n=Sa(Object.prototype),i=Sa(Array.prototype),a=[],l=new WeakMap,u=Tm(e,oj,void 0,a,l),d=JSON.stringify(u);let f=d?d.length:0;if(f>t){xm(t,"discarded",e);return}for(;a.length>0&&f<t;){const h=a.shift();let g=0;if(Array.isArray(h.source))for(let y=0;y<h.source.length;y++){const v=Tm(h.source[y],h.path,y,a,l);if(v!==void 0?f+=JSON.stringify(v).length:f+=4,f+=g,g=1,f>t){xm(t,"truncated",e);break}h.target[y]=v}else for(const y in h.source)if(Object.prototype.hasOwnProperty.call(h.source,y)){const v=Tm(h.source[y],h.path,y,a,l);if(v!==void 0&&(f+=JSON.stringify(v).length+g+y.length+lj,g=1),f>t){xm(t,"truncated",e);break}h.target[y]=v}}return n(),i(),u}function Tm(e,t,n,i,a){const l=dj(e);if(!l||typeof l!="object")return uj(l);const u=jp(l);if(u!=="[Object]"&&u!=="[Array]"&&u!=="[Error]")return u;const d=e;if(a.has(d))return`[Reference seen at ${a.get(d)}]`;const f=n!==void 0?`${t}.${n}`:t,h=Array.isArray(l)?[]:{};return a.set(d,f),i.push({source:l,target:h,path:f}),h}function uj(e){return typeof e=="bigint"?`[BigInt] ${e.toString()}`:typeof e=="function"?`[Function] ${e.name||"unknown"}`:typeof e=="symbol"?`[Symbol] ${e.description||e.toString()}`:e}function jp(e){try{if(e instanceof Event)return cj(e);if(e instanceof RegExp)return`[RegExp] ${e.toString()}`;const n=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(n&&n[1])return`[${n[1]}]`}catch{}return"[Unserializable]"}function cj(e){return{type:e.type,isTrusted:e.isTrusted,currentTarget:e.currentTarget?jp(e.currentTarget):null,target:e.target?jp(e.target):null}}function dj(e){const t=e;if(t&&typeof t.toJSON=="function")try{return t.toJSON()}catch{}return e}function xm(e,t,n){be.warn(`The data provided has been ${t} as it is over the limit of ${e} characters:`,n)}const NT="No stack, consider using an instance of Error";function Dd({stackTrace:e,originalError:t,handlingStack:n,componentStack:i,startClocks:a,nonErrorPrefix:l,useFallbackStack:u=!0,source:d,handling:f}){const h=bs(t);return!e&&h&&(e=Ga(t)),{startClocks:a,source:d,handling:f,handlingStack:n,componentStack:i,originalError:t,type:e?e.name:void 0,message:fj(e,h,l,t),stack:e?Ka(e):u?NT:void 0,causes:h?gj(t,d):void 0,fingerprint:hj(t),context:mj(t)}}function fj(e,t,n,i){return e?.message&&e?.name?e.message:t?"Empty message":`${n} ${ql(ze(i))}`}function hj(e){return bs(e)&&"oo_fingerprint"in e?String(e.oo_fingerprint):void 0}function mj(e){if(e!==null&&typeof e=="object"&&"dd_context"in e)return e.dd_context}function pj(e){var t;return(t=/@ (.+)/.exec(e))===null||t===void 0?void 0:t[1]}function bs(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}function gj(e,t){let n=e;const i=[];for(;bs(n?.cause)&&i.length<10;){const a=Ga(n.cause);i.push({message:n.cause.message,source:t,type:a?.name,stack:a&&Ka(a)}),n=n.cause}return i.length?i:void 0}const tn={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function yj(){return new Oe(e=>{const t=(a,l)=>{const u=Dd({stackTrace:l,originalError:a,startClocks:wt(),nonErrorPrefix:"Uncaught",source:tn.SOURCE,handling:"unhandled"});e.notify(u)},{stop:n}=vj(t),{stop:i}=bj(t);return()=>{n(),i()}})}function vj(e){return nr(Un(),"onerror",({parameters:[t,n,i,a,l]})=>{let u;bs(l)||(u=ej(t,n,i,a)),e(l??t,u)})}function bj(e){return nr(Un(),"onunhandledrejection",({parameters:[t]})=>{e(t.reason||"Empty reason")})}function jT(e){const t={version:"0.3.1",onReady(n){n()},...e};return Object.defineProperty(t,"_setDebug",{get(){return Ik},enumerable:!1}),t}function DT(e,t,n){const i=e[t];i&&!i.q&&i.version&&be.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),e[t]=n,i&&i.q&&i.q.forEach(a=>JE(a,"onReady callback threw an error:")())}function Md(e,t){t.silentMultipleInit||be.error(`${e} is already initialized.`)}function yt(e,t,n,i,a){return bi(e,t,[n],i,a)}function bi(e,t,n,i,{once:a,capture:l,passive:u}={}){const d=le(v=>{!v.isTrusted&&!v.__ooIsTrusted&&!e.allowUntrustedEvents||(a&&y(),i(v))}),f=u?{capture:l,passive:u}:l,h=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,g=yi(h,"addEventListener");
4n.forEach(v=>g.call(t,v,d,f));function y(){const v=yi(h,"removeEventListener");n.forEach(_=>v.call(t,_,d,f))}return{stop:y}}const Ba={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function MT(e,t){const n=[];t.includes(Ba.cspViolation)&&n.push(Sj(e));const i=t.filter(a=>a!==Ba.cspViolation);return i.length&&n.push(_j(i)),eT(...n)}function _j(e){return new Oe(t=>{if(!window.ReportingObserver)return;const n=le((a,l)=>a.forEach(u=>t.notify(wj(u)))),i=new window.ReportingObserver(n,{types:e,buffered:!0});return i.observe(),()=>{i.disconnect()}})}function Sj(e){return new Oe(t=>{const{stop:n}=yt(e,document,"securitypolicyviolation",i=>{t.notify(Ej(i))});return n})}function wj(e){const{type:t,body:n}=e;return LT({type:n.id,message:`${t}: ${n.message}`,originalError:e,stack:UT(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)})}function Ej(e){const t=`'${e.blockedURI}' blocked by '${e.effectiveDirective}' directive`;return LT({type:e.effectiveDirective,message:`${Ba.cspViolation}: ${t}`,originalError:e,csp:{disposition:e.disposition},stack:UT(e.effectiveDirective,e.originalPolicy?`${t} of the policy "${Ad(e.originalPolicy,100,"...")}"`:"no policy",e.sourceFile,e.lineNumber,e.columnNumber)})}function LT(e){return{startClocks:wt(),source:tn.REPORT,handling:"unhandled",...e}}function UT(e,t,n,i,a){return n?Ka({name:e,message:t,stack:[{func:"?",url:n,line:i??void 0,column:a??void 0}]}):void 0}const Tj=200;function Ng(e){const{env:t,service:n,version:i,datacenter:a,sdkVersion:l,variant:u}=e,d=[Qi("sdk_version",l??"0.3.1")];return t&&d.push(Qi("env",t)),n&&d.push(Qi("service",n)),i&&d.push(Qi("version",i)),a&&d.push(Qi("datacenter",a)),u&&d.push(Qi("variant",u)),d}function Qi(e,t){const n=t?`${e}:${t}`:e;return(n.length>Tj||xj(n))&&be.warn(`Tag ${n} doesn't meet tag requirements and will be sanitized. ${WE} ${XE}/getting_started/tagging/#defining-tags`),IT(n)}function IT(e){return e.replace(/,/g,"_")}function xj(e){return Aj()?new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(e):!1}function Aj(){try{return new RegExp("[\\p{Ll}]","u"),!0}catch{return!1}}function jg(e,t){const n=Kn.__ooBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}function ad(e,t,n=Oj()){if(t===void 0)return e;if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){const a=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,a)}if(n.hasAlreadyBeenSeen(t))return;if(Array.isArray(t)){const a=Array.isArray(e)?e:[];for(let l=0;l<t.length;++l)a[l]=ad(a[l],t[l],n);return a}const i=vs(e)==="object"?e:{};for(const a in t)Object.prototype.hasOwnProperty.call(t,a)&&(i[a]=ad(i[a],t[a],n));return i}function Ld(e){return ad(void 0,e)}function Mn(...e){let t;for(const n of e)n!=null&&(t=ad(t,n));return t}function Oj(){if(typeof WeakSet<"u"){const t=new WeakSet;return{hasAlreadyBeenSeen(n){const i=t.has(n);return i||t.add(n),i}}}const e=[];return{hasAlreadyBeenSeen(t){const n=e.indexOf(t)>=0;return n||e.push(t),n}}}function PT(){var e;const t=Kn.navigator;return{status:t.onLine?"connected":"not_connected",interfaces:t.connection&&t.connection.type?[t.connection.type]:void 0,effective_type:(e=t.connection)===null||e===void 0?void 0:e.effectiveType}}function BT(e){return e>=500}function Cj(e){try{return e.clone()}catch{return}}const Rj=80*xi,kj=32,VT=20*RT,Nj=Ft,zT=qt;function $T(e,t,n,i,a,l){t.transportStatus===0&&t.queuedPayloads.size()===0&&t.bandwidthMonitor.canHandle(e)?qT(e,t,n,l,{onSuccess:()=>FT(0,t,n,i,a,l),onFailure:()=>{t.queuedPayloads.enqueue(e)||l.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e}),HT(t,n,i,a,l)}}):t.queuedPayloads.enqueue(e)||l.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e})}function HT(e,t,n,i,a){e.transportStatus===2&&en(()=>{const l=e.queuedPayloads.first();qT(l,e,t,a,{onSuccess:()=>{e.queuedPayloads.dequeue(),e.currentBackoffTime=zT,FT(1,e,t,n,i,a)},onFailure:()=>{e.currentBackoffTime=Math.min(Nj,e.currentBackoffTime*2),HT(e,t,n,i,a)}})},e.currentBackoffTime)}function qT(e,t,n,i,{onSuccess:a,onFailure:l}){t.bandwidthMonitor.add(e),n(e,u=>{t.bandwidthMonitor.remove(e),jj(u)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:u.status},i.notify({type:"failure",bandwidth:t.bandwidthMonitor.stats(),payload:e}),l()):(t.transportStatus=0,i.notify({type:"success",bandwidth:t.bandwidthMonitor.stats(),payload:e}),a())})}function FT(e,t,n,i,a,l){e===0&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(a({message:`Reached max ${i} events size queued for upload: ${VT/RT}MiB`,source:tn.AGENT,startClocks:wt()}),t.queueFullReported=!0);const u=t.queuedPayloads;for(t.queuedPayloads=GT();u.size()>0;)$T(u.dequeue(),t,n,i,a,l)}function jj(e){return e.type!=="opaque"&&(e.status===0&&!navigator.onLine||e.status===408||e.status===429||BT(e.status))}function Dj(){return{transportStatus:0,currentBackoffTime:zT,bandwidthMonitor:Mj(),queuedPayloads:GT(),queueFullReported:!1}}function GT(){const e=[];return{bytesCount:0,enqueue(t){return this.isFull()?!1:(e.push(t),this.bytesCount+=t.bytesCount,!0)},first(){return e[0]},dequeue(){const t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size(){return e.length},isFull(){return this.bytesCount>=VT}}}function Mj(){return{ongoingRequestCount:0,ongoingByteCount:0,canHandle(e){return this.ongoingRequestCount===0||this.ongoingByteCount+e.bytesCount<=Rj&&this.ongoingRequestCount<kj},add(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount},stats(){return{ongoingByteCount:this.ongoingByteCount,ongoingRequestCount:this.ongoingRequestCount}}}}const Dp=16*xi;function Dg(e,t,n=Dp){const i=new Oe,a=Dj();return{observable:i,send:l=>{for(const u of e)$T(l,a,(d,f)=>{Hl(vi.AVOID_FETCH_KEEPALIVE)?od(u,d,f):Ij(u,n,d,f)},u.trackType,t,i)},sendOnExit:l=>{for(const u of e)Lj(u,n,l)}}}function Lj(e,t,n){if(!!navigator.sendBeacon&&n.bytesCount<t)try{const a=e.build("beacon",n);if(navigator.sendBeacon(a,n.data))return}catch(a){Uj(a)}od(e,n)}let Y_=!1;function Uj(e){Y_||(Y_=!0,zl(e))}function Ij(e,t,n,i){if(Pj()&&n.bytesCount<t){const l=e.build("fetch-keepalive",n);fetch(l,{method:"POST",body:n.data,keepalive:!0,mode:"cors"}).then(le(u=>i?.({status:u.status,type:u.type}))).catch(le(()=>od(e,n,i)))}else od(e,n,i)}
4function od(e,t,n){const i=e.build("fetch",t);fetch(i,{method:"POST",body:t.data,mode:"cors"}).then(le(a=>n?.({status:a.status,type:a.type}))).catch(le(()=>n?.({status:0})))}function Pj(){try{return window.Request&&"keepalive"in new Request("http://a")}catch{return!1}}function Ya(){const e=Vj();if(e)return{getCapabilities(){var t;return JSON.parse(((t=e.getCapabilities)===null||t===void 0?void 0:t.call(e))||"[]")},getPrivacyLevel(){var t;return(t=e.getPrivacyLevel)===null||t===void 0?void 0:t.call(e)},getAllowedWebViewHosts(){return JSON.parse(e.getAllowedWebViewHosts())},send(t,n,i){const a=i?{id:i}:void 0;e.send(JSON.stringify({eventType:t,event:n,view:a}))}}}function Bj(e){const t=Ya();return!!t&&t.getCapabilities().includes(e)}function _i(e){var t;e===void 0&&(e=(t=Un().location)===null||t===void 0?void 0:t.hostname);const n=Ya();return!!n&&n.getAllowedWebViewHosts().some(i=>e===i||e.endsWith(`.${i}`))}function Vj(){return Un().DatadogEventBridge}const Oa={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function KT(e){return new Oe(t=>{const{stop:n}=bi(e,window,["visibilitychange","freeze"],a=>{a.type==="visibilitychange"&&document.visibilityState==="hidden"?t.notify({reason:Oa.HIDDEN}):a.type==="freeze"&&t.notify({reason:Oa.FROZEN})},{capture:!0}),i=yt(e,window,"beforeunload",()=>{t.notify({reason:Oa.UNLOADING})}).stop;return()=>{n(),i()}})}function zj(e){return sd(Oa).includes(e)}const X_=256*xi;function Mg({encoder:e,request:t,flushController:n}){let i={};const a=n.flushObservable.subscribe(g=>h(g));function l(g,y,v){n.notifyBeforeAddMessage(y),v!==void 0?(i[v]=g,n.notifyAfterAddMessage()):e.write(e.isEmpty?g:`
5${g}`,_=>{n.notifyAfterAddMessage(_-y)})}function u(g){return g!==void 0&&i[g]!==void 0}function d(g){const y=i[g];delete i[g];const v=e.estimateEncodedBytesCount(y);n.notifyAfterRemoveMessage(v)}function f(g,y){const v=ql(g),_=e.estimateEncodedBytesCount(v);if(_>=X_){be.warn(`Discarded a message whose size was bigger than the maximum allowed size ${X_/xi}KiB. ${WE} ${Mk}/#technical-limitations`);return}u(y)&&d(y),l(v,_,y)}function h(g){const y=sd(i).join(`
6`);i={};const v=zj(g.reason),_=v?t.sendOnExit:t.send;if(v&&e.isAsync){const S=e.finishSync();S.outputBytesCount&&_(W_(S));const E=[S.pendingData,y].filter(Boolean).join(`
7`);E&&_({data:E,bytesCount:kT(E)})}else y&&e.write(e.isEmpty?y:`
8${y}`),e.finish(S=>{_(W_(S))})}return{flushController:n,add:f,upsert:f,stop:a.unsubscribe}}function W_(e){let t;return typeof e.output=="string"?t=e.output:t=new Blob([e.output],{type:"text/plain"}),{data:t,bytesCount:e.outputBytesCount,encoding:e.encoding}}const $j=30*qt,Hj=gs?1:50;function Lg({pageMayExitObservable:e,sessionExpireObservable:t}){const n=e.subscribe(y=>d(y.reason)),i=t.subscribe(()=>d("session_expire")),a=new Oe(()=>()=>{n.unsubscribe(),i.unsubscribe()});let l=0,u=0;function d(y){if(u===0)return;const v=u,_=l;u=0,l=0,g(),a.notify({reason:y,messagesCount:v,bytesCount:_})}let f;function h(){f===void 0&&(f=en(()=>{d("duration_limit")},$j))}function g(){Nn(f),f=void 0}return{flushObservable:a,get messagesCount(){return u},notifyBeforeAddMessage(y){l+y>=Dp&&d("bytes_limit"),u+=1,l+=y,h()},notifyAfterAddMessage(y=0){l+=y,u>=Hj?d("messages_limit"):l>=Dp&&d("bytes_limit")},notifyAfterRemoveMessage(y){l-=y,u-=1,u===0&&g()}}}const Yn="DISCARDED",Pt="SKIPPED";function YT(){const e={};return{register(t,n){return e[t]||(e[t]=[]),e[t].push(n),{unregister:()=>{e[t]=e[t].filter(i=>i!==n)}}},triggerHook(t,n){const i=e[t]||[],a=[];for(const l of i){const u=l(n);if(u===Yn)return Yn;u!==Pt&&a.push(u)}return Mn(...a)}}}const gi={LOG:"log",CONFIGURATION:"configuration",USAGE:"usage"},qj=["http://localhost","<anonymous>"],Fj=1,Gj=[DN],Kj=15;let Am;function Xa(){return Am||(Am=new tT(100)),Am}function XT(e,t,n,i,a,l){const u=new Oe,{stop:d}=Xj(t,i,a,l,u),{enabled:f,metricsEnabled:h}=Yj(e,t,n,u);return{stop:d,enabled:f,metricsEnabled:h}}function Yj(e,t,n,i,a=Fj,l=Kj){const u={},d=!Gj.includes(t.site)&&hi(t.telemetrySampleRate),f={[gi.LOG]:d,[gi.CONFIGURATION]:d&&hi(t.telemetryConfigurationSampleRate),[gi.USAGE]:d&&hi(t.telemetryUsageSampleRate),metric:d&&hi(a)},h=Wj(),g=Xa();return g.subscribe(({rawEvent:v,metricName:_})=>
8{if(_&&!f.metric||!f[v.type])return;const S=_||v.status||v.type;let E=u[S];if(E||(E=u[S]=new Set),E.size>=l)return;const x=ql(v);if(E.has(x))return;const A=n.triggerHook(1,{startTime:wt().relative});if(A===Yn)return;const N=y(A,e,v,h);i.notify(N),jg("telemetry",N),E.add(x)}),g.unbuffer(),Uk(Qj),{enabled:d,metricsEnabled:f.metric};function y(v,_,S,E){const A={type:"telemetry",date:wt().timeStamp,service:_,version:"0.3.1",source:"browser",_oo:{format_version:2},telemetry:Mn(S,{runtime_env:E,connectivity:PT(),sdk_setup:"npm"}),ootags:Ng(t).join(","),experimental_features:Array.from(HN())};return Mn(A,v)}}function Xj(e,t,n,i,a){const l=[];if(_i()){const u=Ya(),d=a.subscribe(f=>u.send("internal_telemetry",f));l.push(d.unsubscribe)}else{const u=[e.rumEndpointBuilder];e.replica&&Jj(e)&&u.push(e.replica.rumEndpointBuilder);const d=Mg({encoder:i(4),request:Dg(u,t),flushController:Lg({pageMayExitObservable:n,sessionExpireObservable:new Oe})});l.push(d.stop);const f=a.subscribe(d.add);l.push(f.unsubscribe)}return{stop:()=>l.forEach(u=>u())}}function Wj(){var e;return{is_local_file:((e=Kn.location)===null||e===void 0?void 0:e.protocol)==="file:",is_worker:gs}}function Jj(e){return e.site===_T}function Fl(e,t){Cp(ct.debug,e,t),Xa().notify({rawEvent:{type:gi.LOG,message:e,status:"debug",...t}})}function Qj(e,t){Xa().notify({rawEvent:{type:gi.LOG,status:"error",...Zj(e),...t}})}function WT(e){Xa().notify({rawEvent:{type:gi.CONFIGURATION,configuration:e}})}function Ug(e,t){Xa().notify({rawEvent:{type:gi.LOG,message:e,status:"debug",...t},metricName:e})}function _t(e){Xa().notify({rawEvent:{type:gi.USAGE,usage:e}})}function Zj(e){if(bs(e)){const t=Ga(e);return{error:{kind:t.name,stack:Ka(e2(t))},message:t.message}}return{error:{stack:NT},message:`Uncaught ${ql(e)}`}}function e2(e){return e.stack=e.stack.filter(t=>!t.url||qj.some(n=>t.url.startsWith(n))),e}function t2(e){const t=new Set;return e.forEach(n=>t.add(n)),Array.from(t)}function JT(e,t){const n=e.indexOf(t);n>=0&&e.splice(n,1)}function hs(e){return Array.isArray(e)&&e.length>0}const xc=1/0,n2=Ft;let el=null;const Fc=new Set;function r2(){Fc.forEach(e=>e())}function Wa({expireDelay:e,maxEntries:t}){let n=[];el||(el=qa(()=>r2(),n2));const i=()=>{const g=gn()-e;for(;n.length>0&&n[n.length-1].endTime<g;)n.pop()};Fc.add(i);function a(g,y){const v={value:g,startTime:y,endTime:xc,remove:()=>{JT(n,v)},close:_=>{v.endTime=_}};return t&&n.length>=t&&n.pop(),n.unshift(v),v}function l(g=xc,y={returnInactive:!1}){for(const v of n)if(v.startTime<=g){if(y.returnInactive||g<=v.endTime)return v.value;break}}function u(g){const y=n[0];y&&y.endTime===xc&&y.close(g)}function d(g=xc,y=0){const v=Fa(g,y);return n.filter(_=>_.startTime<=v&&g<=_.endTime).map(_=>_.value)}function f(){n=[]}function h(){Fc.delete(i),Fc.size===0&&el&&(wd(el),el=null)}return{add:a,find:l,closeActive:u,findAll:d,reset:f,stop:h}}const i2="openobserve-synthetics-public-id",s2="openobserve-synthetics-result-id",a2="openobserve-synthetics-injects-rum";function Ud(){return gs?!1:!!(Kn._OO_SYNTHETICS_INJECTS_RUM||mi(a2))}function QT(){const e=window._OO_SYNTHETICS_PUBLIC_ID||mi(i2);return typeof e=="string"?e:void 0}function ZT(){const e=window._OO_SYNTHETICS_RESULT_ID||mi(s2);return typeof e=="string"?e:void 0}function ex(){return!!(QT()&&ZT())}const o2=Ft,l2=ys;function tx(e,t,n,i){const a=new Oe,l=new Oe,u=AN(e.sessionStoreStrategyType,e,t,n),d=Wa({expireDelay:l2});if(u.renewObservable.subscribe(()=>{d.add(f(),gn()),a.notify()}),u.expireObservable.subscribe(()=>{l.notify(),d.closeActive(gn())}),u.expandOrRenewSession(),d.add(f(),iT().relative),Hl(vi.SHORT_SESSION_INVESTIGATION)){const h=u.getSession();h&&h2(e,h)}i.observable.subscribe(()=>{i.isGranted()?u.expandOrRenewSession():u.expire(!1)}),u2(e,()=>{i.isGranted()&&u.expandOrRenewSession()}),c2(e,()=>u.expandSession()),d2(e,()=>u.restartSession());function f(){const h=u.getSession();return h?{id:h.id,trackingType:h[t],isReplayForced:!!h.forcedReplay,anonymousId:h.anonymousId}:(f2(e).catch(()=>{}),{id:"invalid",trackingType:uT,isReplayForced:!1,anonymousId:void 0})}return{findSession:(h,g)=>d.find(h,g),renewObservable:a,expireObservable:l,sessionStateUpdateOb
8servable:u.sessionStateUpdateObservable,expire:u.expire,updateSessionState:u.updateSessionState}}function u2(e,t){const{stop:n}=bi(e,window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0})}function c2(e,t){const n=()=>{document.visibilityState==="visible"&&t()},{stop:i}=yt(e,document,"visibilitychange",n);qa(n,o2)}function d2(e,t){const{stop:n}=yt(e,window,"resume",t,{capture:!0})}async function f2(e){const t=e.sessionStoreStrategyType;if(!t)return;let n,i;t.type===La.COOKIE?(n=hT(t.cookieOptions,e),i={cookie:await nx(),currentDomain:`${window.location.protocol}//${window.location.hostname}`}):n=gT(),Fl("Unexpected session state",{sessionStoreStrategyType:t.type,session:n,isSyntheticsTest:ex(),createdTimestamp:n?.created,expireTimestamp:n?.expire,...i})}function h2(e,t){if(!window.cookieStore||!t.created)return;const n=Number(t.created),i=Ht(),{stop:a}=yt(e,cookieStore,"change",l);function l(u){const d=oT(u.changed,h=>h.name===Mr);if(!d)return;const f=Ht()-n;if(f>14*Ft)a();else{const h=kd(d.value);if(h.id&&h.id!==t.id){a();const g=Ht()-i;nx().then(y=>{Fl("Session cookie changed",{time:g,session_age:f,old:t,new:h,cookie:y})}).catch(zl)}}}}async function nx(){let e;return"cookieStore"in window?e=await window.cookieStore.getAll(Mr):e=document.cookie.split(/\s*;\s*/).filter(t=>t.startsWith(Mr)),{count:e.length,domain:aT()||"undefined",...e}}function Ig(){let e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write(n,i){const a=kT(n);t+=a,e+=n,i&&i(a)},finish(n){n(this.finishSync())},finishSync(){const n={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,n},estimateEncodedBytesCount(n){return n.length}}}class rx{constructor(){this.callbacks={}}notify(t,n){const i=this.callbacks[t];i&&i.forEach(a=>a(n))}subscribe(t,n){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(n),{unsubscribe:()=>{this.callbacks[t]=this.callbacks[t].filter(i=>n!==i)}}}}const m2=3e3;function Gc(e,t,n=m2){let i=0,a=!1;return{isLimitReached(){if(i===0&&en(()=>{i=0},Ft),i+=1,i<=n||a)return a=!1,!1;if(i===n+1){a=!0;try{t({message:`Reached max number of ${e}s by minute: ${n}`,source:tn.AGENT,startClocks:wt()})}finally{a=!1}
8}return!0}}}function ix(e,t,n){return document.readyState===t||document.readyState==="complete"?(n(),{stop:Me}):yt(e,window,t==="complete"?"load":"DOMContentLoaded",n,{once:!0})}let Om;const Pg=new WeakMap;function sx(e){return Om||(Om=p2(e)),Om}function p2(e){return new Oe(t=>{const{stop:n}=nr(XMLHttpRequest.prototype,"open",g2),{stop:i}=nr(XMLHttpRequest.prototype,"send",l=>{y2(l,e,t)},{computeHandlingStack:!0}),{stop:a}=nr(XMLHttpRequest.prototype,"abort",v2);return()=>{n(),i(),a()}})}function g2({target:e,parameters:[t,n]}){Pg.set(e,{state:"open",method:String(t).toUpperCase(),url:Og(String(n))})}function y2({target:e,parameters:[t],handlingStack:n},i,a){const l=Pg.get(e);if(!l)return;const u=l;u.state="start",u.startClocks=wt(),u.isAborted=!1,u.xhr=e,u.handlingStack=n,u.requestBody=t;let d=!1;const{stop:f}=nr(e,"onreadystatechange",()=>{e.readyState===XMLHttpRequest.DONE&&h()}),h=()=>{if(g(),f(),d)return;d=!0;const y=l;y.state="complete",y.duration=xt(u.startClocks.timeStamp,Dt()),y.status=e.status,typeof e.response=="string"&&(y.responseBody=e.response),a.notify(El(y))},{stop:g}=yt(i,e,"loadend",h);a.notify(u)}function v2({target:e}){const t=Pg.get(e);t&&(t.isAborted=!0)}async function b2(e,t){const n=e.getReader(),i=[];for(;;){const a=await n.read();if(a.done)break;t.collectStreamBody&&i.push(a.value)}return n.cancel().catch(Me),t.collectStreamBody?sj(i):void 0}let Cm;const ax=[];function Id({responseBodyAction:e}={}){return e&&ax.push(e),Cm||(Cm=_2()),Cm}function _2(){return new Oe(e=>{if(!Kn.fetch)return;const{stop:t}=nr(Kn,"fetch",n=>S2(n,e),{computeHandlingStack:!0});return t})}function S2({parameters:e,onPostCall:t,handlingStack:n},i){const[a,l]=e;let u=l&&l.method;u===void 0&&a instanceof Request&&(u=a.method);const d=u!==void 0?String(u).toUpperCase():"GET",f=a instanceof Request?a.url:Og(String(a)),h=wt(),g={state:"start",init:l,input:a,method:d,startClocks:h,url:f,handlingStack:n};i.notify(g),e[0]=g.input,e[1]=g.init,t(y=>{w2(i,y,g).catch(zl)})}async function w2(e,t,n){var i,a;const l=n;l.state="resolve";let u;try{u=await t}catch(f){l.status=0,l.isAborted=((a=(i=l.init)===null||i===void 0?void 0:i.signal)===null||a===void 0?void 0:a.aborted)||f instanceof DOMException&&f.code===DOMException.ABORT_ERR,l.error=f,e.notify(l);return}l.response=u,l.status=u.status,l.responseType=u.type,l.isAborted=!1;const d=ax.reduce((f,h)=>Math.max(f,h(l)),0);if(d!==0){const f=Cj(u);if(f&&f.body)try{const h=await b2(f.body,{collectStreamBody:d===2});l.responseBody=h&&new TextDecoder().decode(h)}catch{}}e.notify(l)}function E2(e,t){if(window.requestIdleCallback&&window.cancelIdleCallback){const n=window.requestIdleCallback(le(e),t);return()=>window.cancelIdleCallback(n)}return x2(e)}const T2=50;function x2(e){const t=Ht(),n=en(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,T2-(Ht()-t))})},0);return()=>Nn(n)}const A2=qt,O2=30;function C2(){const e=[];function t(i){let a;if(i.didTimeout){const l=performance.now();a=()=>O2-(performance.now()-l)}else a=i.timeRemaining.bind(i);for(;a()>0&&e.length;)e.shift()();e.length&&n()}function n(){E2(t,{timeout:A2})}return{push(i){e.push(i)===1&&n()},stop(){e.length=0}}}let Rm={};function ox(e){const t=e.map(n=>(Rm[n]||(Rm[n]=R2(n)),Rm[n]));return eT(...t)}function R2(e){return new Oe(t=>{const n=tr[e];return tr[e]=(...i)=>{n.apply(console,i);const a=Pa("console error");jr(()=>{t.notify(k2(i,e,a))})},()=>{tr[e]=n}})}function k2(e,t,n){const i=e.map(a=>N2(a)).join(" ");if(t===ct.error){const a=e.find(bs),l=Dd({originalError:a,handlingStack:n,startClocks:wt(),source:tn.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return l.message=i,{api:t,message:i,handlingStack:n,error:l}}return{api:t,message:i,error:void 0,handlingStack:n}}function N2(e){return typeof e=="string"?ze(e):bs(e)?CT(Ga(e)):ql(ze(e),void 0,2)}const j2=500;function lx(){const e=[];return{add:a=>{e.push(a)>j2&&e.splice(0,1)},remove:a=>{JT(e,a)},drain:a=>{e.forEach(l=>l(a)),e.length=0}}}function D2(e){const t=vs(e)==="object";return t||be.error("Unsupported context:",e),t}function km(e,t,n){const i={...e};for(const[a,{required:l,type:u}]of Object.entries(t))u==="string"&&!J_(i[a])&&(i[a]=String(i[a]
8)),l&&J_(i[a])&&be.warn(`The property ${a} of ${n} is required; context will not be sent to the intake.`);return i}function J_(e){return e==null||e===""}function Gl(e="",{propertiesConfig:t={}}={}){let n={};const i=new Oe,a={getContext:()=>Ld(n),setContext:l=>{D2(l)?n=ze(km(l,t,e)):a.clearContext(),i.notify()},setContextProperty:(l,u)=>{n=ze(km({...n,[l]:u},t,e)),i.notify()},removeContextProperty:l=>{delete n[l],km(n,t,e),i.notify()},clearContext:()=>{n={},i.notify()},changeObservable:i};return a}function Ue(e,t,n,i){return le((...a)=>(i&&_t({feature:i}),e()[t][n](...a)))}function Nm(e,t,n){e.changeObservable.subscribe(()=>{const i=e.getContext();n.add(a=>a[t].setContext(i))})}const M2="_oo_c",L2=[];function Bg(e,t,n,i){const a=U2(n,i);L2.push(yt(e,window,"storage",({key:h})=>{a===h&&u()})),t.changeObservable.subscribe(d);const l=Mn(f(),t.getContext());Ti(l)||t.setContext(l);function u(){t.setContext(f())}function d(){localStorage.setItem(a,JSON.stringify(t.getContext()))}function f(){const h=localStorage.getItem(a);return h?JSON.parse(h):{}}}function U2(e,t){return`${M2}_${e}_${t}`}function ux(e,t,n){const i=Vg();return t.storeContextsAcrossPages&&Bg(t,i,n,4),e.register(0,()=>{const a=i.getContext();return Ti(a)||!a.id?Pt:{account:a}}),i}
8function Vg(){return Gl("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}function cx(e,t,n,i){const a=zg();return t.storeContextsAcrossPages&&Bg(t,a,n,2),e.register(0,()=>{const l=a.getContext();return i?{context:l}:l}),a}function zg(){return Gl("global context")}function dx(e,t,n,i){const a=$g();return t.storeContextsAcrossPages&&Bg(t,a,i,1),e.register(0,({eventType:l,startTime:u})=>{const d=a.getContext(),f=n.findTrackedSession(u);return f&&f.anonymousId&&!d.anonymous_id&&t.trackAnonymousUser&&(d.anonymous_id=f.anonymousId),Ti(d)?Pt:{type:l,usr:d}}),e.register(1,({startTime:l})=>{var u;return{anonymous_id:(u=n.findTrackedSession(l))===null||u===void 0?void 0:u.anonymousId}}),a}function $g(){return Gl("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}const xe={userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"},Ie={getContext:"getContext",setContext:"setContext",setContextProperty:"setContextProperty",removeContextProperty:"removeContextProperty",clearContext:"clearContext"},Vt={DOCUMENT:"document",XHR:"xhr",BEACON:"beacon",FETCH:"fetch",CSS:"css",JS:"js",IMAGE:"image",FONT:"font",MEDIA:"media",OTHER:"other"},ps={FETCH:Vt.FETCH,XHR:Vt.XHR},I2=500;function fx(e=yj){const t=new tT(I2),n=e().subscribe(i=>{t.notify({type:0,error:i})});return{observable:t,stop:()=>{n.unsubscribe()}}}function P2(){try{return new Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}const _e={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",VITAL:"vital"},hx={LONG_TASK:"long-task",LONG_ANIMATION_FRAME:"long-animation-frame"},Rr={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change",BF_CACHE:"bf_cache"},Hg={CLICK:"click",CUSTOM:"custom"},tl={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"},Al={DURATION:"duration",OPERATION_STEP:"operation_step"};function B2(){return{vitalsByName:new Map,vitalsByReference:new WeakMap}}function V2(e,t,n){function i(u){return!t.wasInPageStateDuringPeriod("frozen",u.startClocks.relative,u.duration)}function a(u){i(u)&&e.notify(12,Q_(u))}function l(u,d,f,h){if(!Hl(vi.FEATURE_OPERATION_VITAL))return;const{operationKey:g,context:y,description:v}=f||{},_={name:u,type:Al.OPERATION_STEP,operationKey:g,failureReason:h,stepType:d,startClocks:wt(),context:ze(y),description:v};e.notify(12,Q_(_))}return{addOperationStepVital:l,addDurationVital:a,startDurationVital:(u,d={})=>mx(n,u,d),stopDurationVital:(u,d={})=>{px(a,n,u,d)}}}function mx({vitalsByName:e,vitalsByReference:t},n,i={}){const a={name:n,startClocks:wt(),...i},l={__oo_vital_reference:!0};return e.set(n,a),t.set(l,a),l}function px(e,{vitalsByName:t,vitalsByReference:n},i,a={}){const l=typeof i=="string"?t.get(i):n.get(i);l&&(e(z2(l,l.startClocks,a,wt())),typeof i=="string"?t.delete(i):n.delete(i))}function z2(e,t,n,i){var a;return{name:e.name,type:Al.DURATION,startClocks:t,duration:xt(t.timeStamp,i.timeStamp),context:Mn(e.context,n.context),description:(a=n.description)!==null&&a!==void 0?a:e.description}}function Q_(e){const{startClocks:t,type:n,name:i,description:a,context:l}=e,u={id:It(),type:n,name:i,description:a,...n===Al.DURATION?{duration:ve(e.duration)}:{step_type:e.stepType,operation_key:e.operationKey,failure_reason:e.failureReason}};return{rawRumEvent:{date:t.timeStamp,vital:u,type:_e.VITAL,context:l},startTime:t.relative,duration:n===Al.DURATION?e.duration:void 0,domainContext:{}}}function gx(e,t,n){if(e)for(const i of e){const a=i[t];a&&a(n)}}const Z_=new Map;function $2(e,t){if(t===100)return!0;if(t===0)return!1;const n=Z_.get(t);if(n&&e===n.sessionId)return n.decision;let i;return window.BigInt?i=H2(BigInt(`0x${e.split("-")[4]}`),t):i=hi(t),Z_.set(t,{sessionId:e,decision:i}),i}function H2(e,t){const n=BigInt("1111111111111111111"),i=BigInt("0x10000000000000000"),a=e*n%i;return Number(a)<=t/100*Number(i)}function q2(){return vx(64)}function yx(){return vx(63)}function vx(e){const t=crypto.getRandomValues(new Uint32Array(2));return e===63&&(t[t.length-1]>>>=1),{toString(n=10){let i=t[1],a=t[0],l="";do{const u=i%n*4294967296+a;i=Math.floor(i/n),a=Math.floor(u/n),l=(u%n).toString(n)+l}while(i||a);return l}}}function sa(e){return e.toString(16).padStart(16,"0")}function F2(e){const t=e;return vs(t)==="object"&&xl(t.match)&&Array.isArray(t.propagatorTypes)}function G2(e){e.status===0&&!e.isAborted&&(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function K2(e,t,n,i){return{clearTracingIfNeeded:G2,traceFetch:a=>eS(e,a,t,n,i,l=>{var u;if(a.input instanceof Request&&!(!((u=a.init)===null||u===void 0)&&u.headers))a.input=new Request
8(a.input),Object.keys(l).forEach(d=>{a.input.headers.append(d,l[d])});else{a.init=El(a.init);const d=[];a.init.headers instanceof Headers?a.init.headers.forEach((f,h)=>{d.push([h,f])}):Array.isArray(a.init.headers)?a.init.headers.forEach(f=>{d.push(f)}):a.init.headers&&Object.keys(a.init.headers).forEach(f=>{d.push([f,a.init.headers[f]])}),a.init.headers=d.concat(Cg(l))}}),traceXhr:(a,l)=>eS(e,a,t,n,i,u=>{Object.keys(u).forEach(d=>{l.setRequestHeader(d,u[d])})})}}function eS(e,t,n,i,a,l){const u=n.findTrackedSession();if(!u)return;const d=e.allowedTracingUrls.find(g=>Nd([g.match],t.url,!0));if(!d)return;const f=$2(u.id,e.traceSampleRate);(f||e.traceContextInjection===Np.ALL)&&(t.traceSampled=f,t.traceId=q2(),t.spanId=yx(),l(Y2(t.traceId,t.spanId,t.traceSampled,u.id,d.propagatorTypes,i,a,e)))}function Y2(e,t,n,i,a,l,u,d){const f={};if(a.forEach(h=>{switch(h){case"tracecontext":{Object.assign(f,{traceparent:`00-0000000000000000${sa(e)}-${sa(t)}-0${n?"1":"0"}`,tracestate:`oo=s:${n?"1":"0"};o:rum`});break}case"b3":{Object.assign(f,{b3:`${sa(e)}-${sa(t)}-${n?"1":"0"}`});break}case"b3multi":{Object.assign(f,{"X-B3-TraceId":sa(e),"X-B3-SpanId":sa(t),"X-B3-Sampled":n?"1":"0"});break}}}),d.propagateTraceBaggage){const h={"session.id":i},g=l.getContext().id;typeof g=="string"&&(h["user.id"]=g);const y=u.getContext().id;typeof y=="string"&&(h["account.id"]=y);const v=Object.entries(h).map(([_,S])=>`${_}=${encodeURIComponent(S)}`).join(",");v&&(f.baggage=v)}return f}const bx=["tracecontext"];function X2(e,t){var n,i,a,l,u,d,f;if(e.trackFeatureFlagsForEvents!==void 0&&!Array.isArray(e.trackFeatureFlagsForEvents)&&be.warn("trackFeatureFlagsForEvents should be an array"),!e.applicationId){be.error("Application ID is not configured, no RUM data will be collected.");return}if(!_a(e.sessionReplaySampleRate,"Session Replay")||!_a(e.traceSampleRate,"Trace"))return;if(e.excludedActivityUrls!==void 0&&!Array.isArray(e.excludedActivityUrls)){be.error("Excluded Activity Urls should be an array");return}const h=W2(e);if(!h)return;const g=ET(e,t),y=Q2(e);if(!g)return;const v=(n=e.sessionReplaySampleRate)!==null&&n!==void 0?n:0;return{applicationId:e.applicationId,actionNameAttribute:e.actionNameAttribute,sessionReplaySampleRate:v,startSessionReplayRecordingManually:e.startSessionReplayRecordingManually!==void 0?!!e.startSessionReplayRecordingManually:v===0,traceSampleRate:(i=e.traceSampleRate)!==null&&i!==void 0?i:100,rulePsr:Vl(e.traceSampleRate)?e.traceSampleRate/100:void 0,allowedTracingUrls:h,excludedActivityUrls:(a=e.excludedActivityUrls)!==null&&a!==void 0?a:[],workerUrl:e.workerUrl,compressIntakeRequests:!!e.compressIntakeRequests,trackUserInteractions:!!(!((l=e.trackUserInteractions)!==null&&l!==void 0)||l),trackViewsManually:!!e.trackViewsManually,trackResources:!!(!((u=e.trackResources)!==null&&u!==void 0)||u),trackLongTasks:!!(!((d=e.trackLongTasks)!==null&&d!==void 0)||d),trackBfcacheViews:!!e.trackBfcacheViews,trackEarlyRequests:!!e.trackEarlyRequests,subdomain:e.subdomain,defaultPrivacyLevel:rd(ba,e.defaultPrivacyLevel)?e.defaultPrivacyLevel:ba.MASK,enablePrivacyForActionName:!!e.enablePrivacyForActionName,traceContextInjection:rd(Np,e.traceContextInjection)?e.traceContextInjection:Np.SAMPLED,plugins:e.plugins||[],trackFeatureFlagsForEvents:e.trackFeatureFlagsForEvents||[],profilingSampleRate:(f=e.profilingSampleRate)!==null&&f!==void 0?f:0,propagateTraceBaggage:!!e.propagateTraceBaggage,allowedGraphQlUrls:y,...g}}function W2(e){if(e.allowedTracingUrls===void 0)return[];if(!Array.isArray(e.allowedTracingUrls)){be.error("Allowed Tracing URLs should be an array");return}if(e.allowedTracingUrls.length!==0&&e.service===void 0){be.error("Service needs to be configured when tracing is enabled");return}const t=[];return e.allowedTracingUrls.forEach(n=>{xl(n)?t.push({match:n,propagatorTypes:bx}):F2(n)?t.push(n):be.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",n)}),t}function J2(e){const t=new Set;return hs(e.allowedTracingUrls)&&e.allowedTracingUrls.forEach(n=>{xl(n)?bx.forEach(i=>
8t.add(i)):vs(n)==="object"&&Array.isArray(n.propagatorTypes)&&n.propagatorTypes.forEach(i=>t.add(i))}),Array.from(t)}function Q2(e){if(!e.allowedGraphQlUrls)return[];if(!Array.isArray(e.allowedGraphQlUrls))return be.warn("allowedGraphQlUrls should be an array"),[];const t=[];return e.allowedGraphQlUrls.forEach(n=>{xl(n)?t.push({match:n,trackPayload:!1,trackResponseErrors:!1}):n&&typeof n=="object"&&"match"in n&&xl(n.match)&&t.push({match:n.match,trackPayload:!!n.trackPayload,trackResponseErrors:!!n.trackResponseErrors})}),t}function Z2(e){return hs(e)&&e.some(t=>typeof t=="object"&&"trackPayload"in t?!!t.trackPayload:!1)}function eD(e){return hs(e)&&e.some(t=>typeof t=="object"&&"trackResponseErrors"in t?!!t.trackResponseErrors:!1)}function tD(e){var t;const n=TT(e);return{session_replay_sample_rate:e.sessionReplaySampleRate,start_session_replay_recording_manually:e.startSessionReplayRecordingManually,trace_sample_rate:e.traceSampleRate,trace_context_injection:e.traceContextInjection,propagate_trace_baggage:e.propagateTraceBaggage,action_name_attribute:e.actionNameAttribute,use_allowed_tracing_urls:hs(e.allowedTracingUrls),use_allowed_graph_ql_urls:hs(e.allowedGraphQlUrls),use_track_graph_ql_payload:Z2(e.allowedGraphQlUrls),use_track_graph_ql_response_errors:eD(e.allowedGraphQlUrls),selected_tracing_propagators:J2(e),default_privacy_level:e.defaultPrivacyLevel,enable_privacy_for_action_name:e.enablePrivacyForActionName,use_excluded_activity_urls:hs(e.excludedActivityUrls),use_worker_url:!!e.workerUrl,compress_intake_requests:e.compressIntakeRequests,track_views_manually:e.trackViewsManually,track_user_interactions:e.trackUserInteractions,track_resources:e.trackResources,track_long_task:e.trackLongTasks,track_bfcache_views:e.trackBfcacheViews,track_early_requests:e.trackEarlyRequests,plugins:(t=e.plugins)===null||t===void 0?void 0:t.map(i=>{var a;return{name:i.name,...(a=i.getConfigurationTelemetry)===null||a===void 0?void 0:a.call(i)}}),track_feature_flags_for_events:e.trackFeatureFlagsForEvents,remote_configuration_id:e.remoteConfigurationId,profiling_sample_rate:e.profilingSampleRate,use_remote_configuration_proxy:!!e.remoteConfigurationProxy,...n}}function nD(e){const t=[];let n=0,i;const a={quote:void 0,escapeSequence:void 0};let l="";for(const u of e){if(i=tS[n].find(d=>lD[d](u,a)),!i)return[];if(a.escapeSequence!==void 0&&i!==12){if(!dD(a.escapeSequence))return[];l+=hD(a.escapeSequence),a.escapeSequence=void 0}uD.includes(i)?l+=u:cD.includes(i)&&l!==""?(t.push(l),l=""):i===12?a.escapeSequence=a.escapeSequence?`${a.escapeSequence}${u}`:u:i===8?a.quote=u:i===9&&(a.quote=void 0),n=i}return tS[n].includes(1)?(l!==""&&t.push(l),t):[]}const rD=/[a-zA-Z_$]/,iD=/[a-zA-Z0-9_$]/,sD=/[0-9]/,aD=/[a-fA-F0-9]/,oD=`'"`,lD={0:()=>!1,1:()=>!1,2:e=>rD.test(e),3:e=>iD.test(e),4:e=>e===".",5:e=>e==="[",6:e=>e==="]",7:e=>sD.test(e),8:e=>oD.includes(e),9:(e,t)=>e===t.quote,10:()=>!0,11:e=>e==="\\",12:(e,t)=>t.escapeSequence===void 0?`${t.quote}/\\bfnrtu`.includes(e):t.escapeSequence.startsWith("u")&&t.escapeSequence.length<5?aD.test(e):!1},tS={0:[2,5],1:[],2:[3,4,5,1],3:[3,4,5,1],4:[2],5:[8,7],6:[4,5,1],7:[7,6],8:[11,9,10],9:[6],10:[11,9,10],11:[12],12:[12,11,9,10]},uD=[2,3,7,10],cD=[4,5,6];function dD(e){return`"'/\\bfnrt`.includes(e)||e.startsWith("u")&&e.length===5}const fD={'"':'"',"'":"'","/":"/","\\":"\\",b:"\b",f:"\f",n:`
9`,r:"\r",t:"	"};function hD(e){return e.startsWith("u")?String.fromCharCode(parseInt(e.slice(1),16)):fD[e]}const mD="v1",pD=["applicationId","service","env","version","sessionSampleRate","sessionReplaySampleRate","defaultPrivacyLevel","enablePrivacyForActionName","traceSampleRate","trackSessionAcrossSubdomains","allowedTracingUrls","allowedTrackingOrigins"];async function gD(e,t){let n;const i=vD(),a=await wD(e);return a.ok?(i.increment("fetch","success"),n=yD(e,a.value,t,i)):(i.increment("fetch","failure"),be.error(a.error)),Ug("remote configuration metrics",{metrics:i.get()}),n}function yD(e,t,n,i){const a={...e};return pD.forEach(v=>{v in t&&(a[v]=l(t[v]))}),Object.keys(n).forEach(v=>{t[v]!==void 0&&u(n[v],t[v])}),a;function l(v){if(Array.isArray(v))return v.map(l);if(bD(v)){if(_D(v)){const _=v.rcSerializedType;switch(_){case"string":return v.value;case"regex":return _x(v.value);case"dynamic":return d(v);default:be.error(`Unsupported remote configuration: "rcSerializedType": "${_}"`);return}}return QE(v,l)}return v}function u(v,_){_.forEach(({key:S,value:E})=>{v.setContextProperty(S,l(E))})}function d(v){const _=v.strategy;let S;switch(_){case"cookie":S=f(v);break;case"dom":S=h(v);break;case"js":S=y(v);break;default:be.error(`Unsupported remote configuration: "strategy": "${_}"`);return}const E=v.extractor;return E!==void 0&&typeof S=="string"?SD(E,S):S}function f({name:v}){const _=Rd(v);return i.increment("cookie",_!==void 0?"success":"missing"),_}function h({selector:v,attribute:_}){let S;try{S=document.querySelector(v)}catch{be.error(`Invalid selector in the remote configuration: '${v}'`),i.increment("dom","failure");return}if(!S){i.increment("dom","missing");return}if(g(S,_)){be.error(`Forbidden element selected by the remote configuration: '${v}'`),i.increment("dom","failure");return}const E=_!==void 0?S.getAttribute(_):S.textContent;if(E===null){i.increment("dom","missing");return}return i.increment("dom","success"),E}function g(v,_){return v.getAttribute("type")==="password"&&_==="value"}function y({path:v}){let _=window;const S=nD(v);if(S.length===0){be.error(`Invalid JSON path in the remote configuration: '${v}'`),i.increment("js","failure");return}for(const E of S){if(!(E in _)){i.increment("js","missing");return}try{_=_[E]}catch(x){be.error(`Error accessing: '${v}'`,x),i.increment("js","failure");return}}return i.increment("js","success"),_}}function vD(){const e={fetch:{}};return{get:()=>e,increment:(t,n)=>{e[t]||(e[t]={}),e[t][n]||(e[t][n]=0),e[t][n]=e[t][n]+1}}}function bD(e){return typeof e=="object"&&e!==null}function _D(e){return"rcSerializedType"in e}function _x(e){try{return new RegExp(e)}catch{be.error(`Invalid regex in the remote configuration: '${e}'`)}}function SD(e,t){const n=_x(e.value);if(n===void 0)return;const i=n.exec(t);if(i===null)return;const[a,l]=i;return l||a}async function wD(e){let t;try{t=await fetch(ED(e))}catch{t=void 0}if(!t||!t.ok)return{ok:!1,error:new Error("Error fetching the remote configuration.")};const n=await t.json();return n.rum?{ok:!0,value:n.rum}:{ok:!1,error:new Error("No remote configuration for RUM.")}}function ED(e){return e.remoteConfigurationProxy?e.remoteConfigurationProxy:`https://sdk-configuration.${ST("rum",e)}/${mD}/${encodeURIComponent(e.remoteConfigurationId)}.json`}function TD({ignoreInitIfSyntheticsWillInjectRum:e=!0,startDeflateWorker:t},n,i,a){const l=lx(),u=zg();jm(u,xe.globalContext,l);const d=$g();jm(d,xe.userContext,l);const f=Vg();jm(f,xe.accountContext,l);let h,g,y,v;const _=n.observable.subscribe(E),S={};
9function E(){if(!y||!v||!n.isGranted())return;_.unsubscribe();let M;if(v.trackViewsManually){if(!h)return;l.remove(h.callback),M=h.options}const $=a(v,g,M);l.drain($)}function x(M,$){const B=_i();if(B&&(M=xD(M)),y=M,WT(tD(M)),v){Md("OO_RUM",M);return}const G=X2(M,$);if(G){if(!B&&!G.sessionStoreStrategyType){be.warn("No storage available for session. We will not send any data.");return}G.compressIntakeRequests&&!B&&t&&(g=t(G,"Datadog RUM",Me),!g)||(v=G,Id().subscribe(Me),n.tryToInit(G.trackingConsent),E())}}const A=M=>{l.add($=>$.addDurationVital(M))};return{init(M,$,B){if(!M){be.error("Missing configuration");return}xT(M.enableExperimentalFeatures),y=M,!(e&&Ud())&&(gx(M.plugins,"onInit",{initConfiguration:M,publicApi:$}),M.remoteConfigurationId?gD(M,{user:d,context:u}).then(G=>{G&&x(G,B)}).catch(zl):x(M,B))},get initConfiguration(){return y},getInternalContext:Me,stopSession:Me,addTiming(M,$=Dt()){l.add(B=>B.addTiming(M,$))},startView(M,$=wt()){const B=G=>{G.startView(M,$)};l.add(B),h||(h={options:M,callback:B},E())}
9,setViewName(M){l.add($=>$.setViewName(M))},setViewContext(M){l.add($=>$.setViewContext(M))},setViewContextProperty(M,$){l.add(B=>B.setViewContextProperty(M,$))},getViewContext:()=>S,globalContext:u,userContext:d,accountContext:f,addAction(M){l.add($=>$.addAction(M))},addError(M){l.add($=>$.addError(M))},addFeatureFlagEvaluation(M,$){l.add(B=>B.addFeatureFlagEvaluation(M,$))},startDurationVital(M,$){return mx(i,M,$)},stopDurationVital(M,$){px(A,i,M,$)},addDurationVital:A,addOperationStepVital:(M,$,B,G)=>{l.add(X=>X.addOperationStepVital(ze(M),$,ze(B),ze(G)))}}}function xD(e){var t,n;return{...e,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:(t=e.defaultPrivacyLevel)!==null&&t!==void 0?t:(n=Ya())===null||n===void 0?void 0:n.getPrivacyLevel()}}function jm(e,t,n){e.changeObservable.subscribe(()=>{const i=e.getContext();n.add(a=>a[t].setContext(i))})}function AD(e,t,n,i={}){const a=bT(),l=B2(),u=fx().observable;let d=TD(i,a,l,(y,v,_)=>{const S=v&&i.createDeflateEncoder?x=>i.createDeflateEncoder(y,v,x):Ig,E=e(y,t,n,_,S,a,l,u,i.sdkName);return t.onRumStart(E.lifeCycle,y,E.session,E.viewHistory,v,E.telemetry),n.onRumStart(E.lifeCycle,E.hooks,y,E.session,E.viewHistory,S),d=OD(d,E),gx(y.plugins,"onRumStart",{strategy:d,addEvent:E.addEvent}),E});const f=()=>d,h=le(y=>{const v=typeof y=="object"?y:{name:y};d.startView(v),_t({feature:"start-view"})}),g=jT({init:y=>{const v=new Error().stack;jr(()=>d.init(y,g,v))},setTrackingConsent:le(y=>{a.update(y),_t({feature:"set-tracking-consent",tracking_consent:y})}),setViewName:le(y=>{d.setViewName(y),_t({feature:"set-view-name"})}),setViewContext:le(y=>{d.setViewContext(y),_t({feature:"set-view-context"})}),setViewContextProperty:le((y,v)=>{d.setViewContextProperty(y,v),_t({feature:"set-view-context-property"})}),getViewContext:le(()=>(_t({feature:"set-view-context-property"}),d.getViewContext())),getInternalContext:le(y=>d.getInternalContext(y)),getInitConfiguration:le(()=>Ld(d.initConfiguration)),addAction:(y,v)=>{const _=Pa("action");jr(()=>{d.addAction({name:ze(y),context:ze(v),startClocks:wt(),type:Hg.CUSTOM,handlingStack:_}),_t({feature:"add-action"})})},addError:(y,v)=>{const _=Pa("error");jr(()=>{d.addError({error:y,handlingStack:_,context:ze(v),startClocks:wt()}),_t({feature:"add-error"})})},addTiming:le((y,v)=>{d.addTiming(ze(y),v)}),setGlobalContext:Ue(f,xe.globalContext,Ie.setContext,"set-global-context"),getGlobalContext:Ue(f,xe.globalContext,Ie.getContext,"get-global-context"),setGlobalContextProperty:Ue(f,xe.globalContext,Ie.setContextProperty,"set-global-context-property"),removeGlobalContextProperty:Ue(f,xe.globalContext,Ie.removeContextProperty,"remove-global-context-property"),clearGlobalContext:Ue(f,xe.globalContext,Ie.clearContext,"clear-global-context"),setUser:Ue(f,xe.userContext,Ie.setContext,"set-user"),getUser:Ue(f,xe.userContext,Ie.getContext,"get-user"),setUserProperty:Ue(f,xe.userContext,Ie.setContextProperty,"set-user-property"),removeUserProperty:Ue(f,xe.userContext,Ie.removeContextProperty,"remove-user-property"),clearUser:Ue(f,xe.userContext,Ie.clearContext,"clear-user"),setAccount:Ue(f,xe.accountContext,Ie.setContext,"set-account"),getAccount:Ue(f,xe.accountContext,Ie.getContext,"get-account"),setAccountProperty:Ue(f,xe.accountContext,Ie.setContextProperty,"set-account-property"),removeAccountProperty:Ue(f,xe.accountContext,Ie.removeContextProperty,"remove-account-property"),clearAccount:Ue(f,xe.accountContext,Ie.clearContext,"clear-account"),startView:h,stopSession:le(()=>{d.stopSession(),_t({feature:"stop-session"})}),addFeatureFlagEvaluation:le((y,v)=>{d.addFeatureFlagEvaluation(ze(y),ze(v)),_t({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:le(()=>t.getSessionReplayLink()),startSessionReplayRecording:le(y=>{t.start(y),_t({feature:"start-session-replay-recording",force:y&&y.force})}),stopSessionReplayRecording:le(()=>t.stop()),addDurationVital:le((y,v)=>{_t({feature:"add-duration-vital"}),d.addDurationVital({name:ze(y),type:Al.DURATION,startClocks:Vk(v.startTime),duration:v.duration,context:ze(v&&v.context),description:ze(v&&v.description)})}),startDurationVital:le((y,v)=>(_t({feature:"start-duration-vital"}),d.startDurationVital(ze(y),{context:ze(v&&v.context),description:ze(v&&v.description)}))),stopDurationVital:le((y,v)=>{_t({feature:"stop-duration-vital"}),d.stopDurationVital(typeof y=="string"?ze(y):y,{context:ze(v&&v.context),description:ze(v&&v.description)})}),startFeatureOperation:le((y,v)=>{_t({feature:"add-operation-step-vital",action_type:"start"}),d.addOperationStepVital(y,"start",v)}),succeedFeatureOperation:le((y,v)=>{_t({feature:"add-operation-step-vital",action_type:"succeed"}),d.addOperationStepVital(y,"end",v)}),failFeatureOperation:le((y,v,_)=>{_t({feature:"add-operation-step-vital",action_type:"fail"}),d.addOperationStepVital(y,"end",_,v)})});return g}function OD(e,t){return{init:n=>{Md("OO_RUM",n)}
9,initConfiguration:e.initConfiguration,...t}}function CD(){const e=RD();return new Oe(t=>{if(!e)return;const n=new e(le(i=>t.notify(i)));return n.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>n.disconnect()})}function RD(){let e;const t=window;if(t.Zone&&(e=yi(t,"MutationObserver"),t.MutationObserver&&e===t.MutationObserver)){const n=new t.MutationObserver(Me),i=yi(n,"originalInstance");e=i&&i.constructor}return e||(e=t.MutationObserver),e}function kD(){const e=new Oe,{stop:t}=nr(window,"open",()=>e.notify());return{observable:e,stop:t}}function ND(e,t,n,i,a){return{get:l=>{const u=n.findView(l),d=a.findUrl(l),f=t.findTrackedSession(l);if(f&&u&&d){const h=i.findActionId(l);return{application_id:e,session_id:f.id,user_action:h?{id:h}:void 0,view:{id:u.id,name:u.name,referrer:d.referrer,url:d.url}}}}}}const jD=rx,DD=ys;function MD(e){const t=Wa({expireDelay:DD});e.subscribe(1,i=>{t.add(n(i),i.startClocks.relative)}),e.subscribe(6,({endClocks:i})=>{t.closeActive(i.relative)}),e.subscribe(3,i=>{const a=t.find(i.startClocks.relative);a&&(i.name&&(a.name=i.name),i.context&&(a.context=i.context),a.sessionIsActive=i.sessionIsActive)}),e.subscribe(10,()=>{t.reset()});function n(i){return{service:i.service,version:i.version,context:i.context,id:i.id,name:i.name,startClocks:i.startClocks}}return{findView:i=>t.find(i),stop:()=>{t.stop()}}}const Sx="initial_document",LD=[[Vt.DOCUMENT,e=>Sx===e],[Vt.XHR,e=>e==="xmlhttprequest"],[Vt.FETCH,e=>e==="fetch"],[Vt.BEACON,e=>e==="beacon"],[Vt.CSS,(e,t)=>/\.css$/i.test(t)],[Vt.JS,(e,t)=>/\.js$/i.test(t)],[Vt.IMAGE,(e,t)=>["image","img","icon"].includes(e)||/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(t)!==null],[Vt.FONT,(e,t)=>/\.(woff|eot|woff2|ttf)$/i.exec(t)!==null],[Vt.MEDIA,(e,t)=>["audio","video"].includes(e)||/\.(mp3|mp4)$/i.exec(t)!==null]];function UD(e){const t=e.name;if(!Wk(t))return Vt.OTHER;const n=Jk(t);for(const[i,a]of LD)if(a(e.initiatorType,n))return i;return Vt.OTHER}function nS(...e){for(let t=1;t<e.length;t+=1)if(e[t-1]>e[t])return!1;return!0}function wx(e){return e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch"}function ID(e){const{duration:t,startTime:n,responseEnd:i}=e;return t===0&&n<i?xt(n,i):t}function PD(e){if(!Tx(e))return;const{startTime:t,fetchStart:n,workerStart:i,redirectStart:a,redirectEnd:l,domainLookupStart:u,domainLookupEnd:d,connectStart:f,secureConnectionStart:h,connectEnd:g,requestStart:y,responseStart:v,responseEnd:_}=e,S={download:Ki(t,v,_),first_byte:Ki(t,y,v)};return 0<i&&i<n&&(S.worker=Ki(t,i,n)),n<g&&(S.connect=Ki(t,f,g),f<=h&&h<=g&&(S.ssl=Ki(t,h,g))),n<d&&(S.dns=Ki(t,u,d)),t<l&&(S.redirect=Ki(t,a,l)),S}function Ex(e){return e.duration>=0}function Tx(e){const t=nS(e.startTime,e.fetchStart,e.domainLookupStart,e.domainLookupEnd,e.connectStart,e.connectEnd,e.requestStart,e.responseStart,e.responseEnd),n=BD(e)?nS(e.startTime,e.redirectStart,e.redirectEnd,e.fetchStart):!0;return t&&n}function BD(e){return e.redirectEnd>e.startTime}function Ki(e,t,n){if(e<=t&&t<=n)return{duration:ve(xt(t,n)),start:ve(xt(e,t))}}function VD(e){return e.nextHopProtocol===""?void 0:e.nextHopProtocol}function zD(e){return e.deliveryType===""?"other":e.deliveryType}function $D(e){if(e.startTime<e.responseStart){const{encodedBodySize:t,decodedBodySize:n,transferSize:i}=e;return{size:n,encoded_body_size:t,decoded_body_size:n,transfer_size:i}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}function qg(e){return e&&(!wT(e)||Hl(vi.TRACK_INTAKE_REQUESTS))}const HD=/data:(.+)?(;base64)?,/g,qD=24e3;function FD(e,t=qD){if(e.length<=t||!e.startsWith("data:"))return e;const n=e.substring(0,100).match(HD);return n?`${n[0]}[...]`:e}const GD=32*xi;function KD(e,t){const n=XD(e.requestBody,t.trackPayload);if(n){if(t.trackResponseErrors&&e.responseBody){const i=YD(e.responseBody);i&&(n.errors_count=i.length,n.errors=i)}return n}}function YD(e){let t;try{t=JSON.parse(e)}catch{return}if(!t||typeof t!="object")return;const n=t;return hs(n.errors)?n.errors.map(a=>{var l;return{message:a.message,path:a.path,locations:a.locations,code:(l=a.extensions)===null||l===void 0?void 0:l.code}}):void 0}function xx(e,t){return t.allowedGraphQlUrls.find(n=>Nd([n.match],e))}function XD(e,t=!1){if(!e||typeof e!="string")return;let n;try{n=JSON.parse(e)}catch{return}if(!n||!n.query)return;const i=n.query.trim(),a=WD(i),l=n.operationName;if(!a)return;let u;return n.variables&&(u=JSON.stringify(n.variables)),{operationType:a,operationName:l,variables:u,payload:t?Ad(i,GD,"..."):void 0}}function WD(e){var t;return(t=e.match(/^\s*(query|mutation|subscription)\b/i))===null||t===void 0?void 0:t[1]}let rS=1;function JD(e,t,n,i,a){const l=K2(t,n,i,a);QD(e,t,l),ZD(e,t,l)}
9function QD(e,t,n){const i=sx(t).subscribe(a=>{const l=a;if(qg(l.url))switch(l.state){case"start":n.traceXhr(l,l.xhr),l.requestIndex=Ax(),e.notify(7,{requestIndex:l.requestIndex,url:l.url});break;case"complete":n.clearTracingIfNeeded(l),e.notify(8,{duration:l.duration,method:l.method,requestIndex:l.requestIndex,spanId:l.spanId,startClocks:l.startClocks,status:l.status,traceId:l.traceId,traceSampled:l.traceSampled,type:ps.XHR,url:l.url,xhr:l.xhr,isAborted:l.isAborted,handlingStack:l.handlingStack,requestBody:l.requestBody,responseBody:l.responseBody});break}});return{stop:()=>i.unsubscribe()}}function ZD(e,t,n){const i=Id({responseBodyAction:a=>{var l;return!((l=xx(a.url,t))===null||l===void 0)&&l.trackResponseErrors?2:1}}).subscribe(a=>{var l;const u=a;if(qg(u.url))switch(u.state){case"start":n.traceFetch(u),u.requestIndex=Ax(),e.notify(7,{requestIndex:u.requestIndex,url:u.url});break;case"resolve":n.clearTracingIfNeeded(u),e.notify(8,{duration:xt(u.startClocks.timeStamp,Dt()),method:u.method,requestIndex:u.requestIndex,responseType:u.responseType,spanId:u.spanId,startClocks:u.startClocks,status:u.status,traceId:u.traceId,traceSampled:u.traceSampled,type:ps.FETCH,url:u.url,response:u.response,init:u.init,input:u.input,isAborted:u.isAborted,handlingStack:u.handlingStack,requestBody:(l=u.init)===null||l===void 0?void 0:l.body,responseBody:u.responseBody});break}});return{stop:()=>i.unsubscribe()}}function Ax(){const e=rS;return rS+=1,e}function Ox(e){return Vl(e)&&e<0?void 0:e}function Cx({lifeCycle:e,isChildEvent:t,onChange:n=Me}){const i={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},a=e.subscribe(13,l=>{var u;if(!(l.type==="view"||l.type==="vital"||!t(l)))switch(l.type){case _e.ERROR:i.errorCount+=1,n();break;case _e.ACTION:i.actionCount+=1,l.action.frustration&&(i.frustrationCount+=l.action.frustration.type.length),n();break;case _e.LONG_TASK:i.longTaskCount+=1,n();break;case _e.RESOURCE:!((u=l._oo)===null||u===void 0)&&u.discarded||(i.resourceCount+=1,n());break}});return{stop:()=>{a.unsubscribe()},eventCounts:i}}function eM(e,t){const n=Ht();let i=!1;const{stop:a}=bi(e,window,["click","mousedown","keydown","touchstart","pointerdown"],d=>{if(!d.cancelable)return;const f={entryType:"first-input",processingStart:gn(),processingEnd:gn(),startTime:d.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:()=>({})};d.type==="pointerdown"?l(e,f):u(f)},{passive:!0,capture:!0});return{stop:a};function l(d,f){bi(d,window,["pointerup","pointercancel"],h=>{h.type==="pointerup"&&u(f)},{once:!0})}function u(d){if(!i){i=!0,a();const f=d.processingStart-d.startTime;f>=0&&f<Ht()-n&&t(d)}}}var je;(function(e){e.EVENT="event",e.FIRST_INPUT="first-input",e.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",e.LAYOUT_SHIFT="layout-shift",e.LONG_TASK="longtask",e.LONG_ANIMATION_FRAME="long-animation-frame",e.NAVIGATION="navigation",e.PAINT="paint",e.RESOURCE="resource",e.VISIBILITY_STATE="visibility-state"})(je||(je={}));function sr(e,t){return new Oe(n=>{if(!window.PerformanceObserver)return;const i=f=>{const h=rM(f);h.length>0&&n.notify(h)};let a,l=!0;const u=new PerformanceObserver(le(f=>{l?a=en(()=>i(f.getEntries())):i(f.getEntries())}));try{u.observe(t)}catch{if([je.RESOURCE,je.NAVIGATION,je.LONG_TASK,je.PAINT].includes(t.type)){t.buffered&&(a=en(()=>i(performance.getEntriesByType(t.type))));try{u.observe({entryTypes:[t.type]})}catch{return}}}l=!1,tM(e);let d;return!_s(je.FIRST_INPUT)&&t.type===je.FIRST_INPUT&&({stop:d}=eM(e,f=>{i([f])})),()=>{u.disconnect(),d&&d(),Nn(a)}})}let nl;function tM(e){return!nl&&nM()&&"addEventListener"in performance&&(nl=yt(e,performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()})),()=>{nl?.stop()}}function nM(){return window.performance!==void 0&&"getEntries"in performance}function _s(e){return window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes!==void 0&&PerformanceObserver.supportedEntryTypes.includes(e)}function rM(e){return e.filter(t=>!iM(t))}function iM(e){return e.entryType===je.RESOURCE&&(!qg(e.name)||!Ex(e))}
9function Mp(e){return e.nodeType===Node.TEXT_NODE}function sM(e){return e.nodeType===Node.COMMENT_NODE}function Si(e){return e.nodeType===Node.ELEMENT_NODE}function aM(e){const t=e;return!!t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Si(t.host)}function oM(e){return aM(e)?e.host:e.parentNode}const Rx=100,lM=100,iS="data-dd-excluded-activity-mutations";function Fg(e,t,n,i,a,l){const u=cM(e,t,n,i);return uM(u,a,l)}function uM(e,t,n){let i,a=!1;const l=en(le(()=>h({hadActivity:!1})),Rx),u=n!==void 0?en(le(()=>h({hadActivity:!0,end:Dt()})),n):void 0,d=e.subscribe(({isBusy:g})=>{Nn(l),Nn(i);const y=Dt();g||(i=en(le(()=>h({hadActivity:!0,end:y})),lM))}),f=()=>{a=!0,Nn(l),Nn(i),Nn(u),d.unsubscribe()};function h(g){a||(f(),t(g))}return{stop:f}}function cM(e,t,n,i){return new Oe(a=>{const l=[];let u,d=0;return l.push(t.subscribe(h=>{h.every(dM)||f()}),n.subscribe(f),sr(i,{type:je.RESOURCE}).subscribe(h=>{h.some(g=>!Dm(i,g.name))&&f()}),e.subscribe(7,h=>{Dm(i,h.url)||(u===void 0&&(u=h.requestIndex),d+=1,f())}),e.subscribe(8,h=>{Dm(i,h.url)||u===void 0||h.requestIndex<u||(d-=1,f())})),()=>{l.forEach(h=>h.unsubscribe())};function f(){a.notify({isBusy:d>0})}})}function Dm(e,t){return Nd(e.excludedActivityUrls,t)}function dM(e){const t=e.type==="characterData"?e.target.parentElement:e.target;return!!(t&&Si(t)&&t.matches(`[${iS}], [${iS}] *`))}const Pd="data-dd-action-name",kx="Masked Element",Nx=[Pd,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],fM=[Dx,mM],hM=[Dx,pM,gM];function Kl(e,t){if(!e.isConnected)return;let n,i=e;for(;i&&i.nodeName!=="HTML";){const a=sS(i,fM,vM,t,n);if(a)return a;n=sS(i,hM,bM,t,n)||Bd(yM(i),n),i=i.parentElement}return n}function jx(e){return/[0-9]/.test(e)}function mM(e){if(e.id&&!jx(e.id))return`#${CSS.escape(e.id)}`}function pM(e){if(e.tagName==="BODY")return;const t=e.classList;for(let n=0;n<t.length;n+=1){const i=t[n];if(!jx(i))return`${CSS.escape(e.tagName)}.${CSS.escape(i)}`}}function gM(e){return CSS.escape(e.tagName)}function Dx(e,t){if(t){const i=n(t);if(i)return i}for(const i of Nx){const a=n(i);if(a)return a}function n(i){if(e.hasAttribute(i))return`${CSS.escape(e.tagName)}[${i}="${CSS.escape(e.getAttribute(i))}"]`}}function yM(e){let t=e.parentElement.firstElementChild,n=1;for(;t&&t!==e;)t.tagName===e.tagName&&(n+=1),t=t.nextElementSibling;return`${CSS.escape(e.tagName)}:nth-of-type(${n})`}function sS(e,t,n,i,a){for(const l of t){const u=l(e,i);if(u&&n(e,u,a))return Bd(u,a)}}function vM(e,t,n){return e.ownerDocument.querySelectorAll(Bd(t,n)).length===1}function bM(e,t,n){let i;if(n===void 0)i=u=>u.matches(t);else{const u=Bd(`${t}:scope`,n);i=d=>d.querySelector(u)!==null}let l=e.parentElement.firstElementChild;for(;l;){if(l!==e&&i(l))return!1;l=l.nextElementSibling}return!0}function Bd(e,t){return t?`${e}>${t}`:e}const Ae={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:ba.ALLOW,MASK:ba.MASK,MASK_USER_INPUT:ba.MASK_USER_INPUT,MASK_UNLESS_ALLOWLISTED:ba.MASK_UNLESS_ALLOWLISTED},Mx="data-oo-privacy",_M="oo-privacy-",SM={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0},wM="x";function as(e){return`[${Mx}="${e}"], .${_M}${e}`}function Vd(e,t,n){if(n&&n.has(e))return n.get(e);const i=oM(e),a=i?Vd(i,t,n):t,l=TM(e),u=EM(l,a);return n&&n.set(e,u),u}function EM(e,t){switch(t){case Ae.HIDDEN:case Ae.IGNORE:return t}switch(e){case Ae.ALLOW:case Ae.MASK:case Ae.MASK_USER_INPUT:case Ae.MASK_UNLESS_ALLOWLISTED:case Ae.HIDDEN:case Ae.IGNORE:return e;default:return t}}function TM(e){if(Si(e)){if(e.tagName==="BASE")return Ae.ALLOW;if(e.tagName==="INPUT"){const t=e;if(t.type==="password"||t.type==="email"||t.type==="tel"||t.type==="hidden")return Ae.MASK;const n=t.getAttribute("autocomplete");if(n&&(n.startsWith("cc-")||n.endsWith("-password")))return Ae.MASK}if(e.matches(as(Ae.HIDDEN)))return Ae.HIDDEN;if(e.matches(as(Ae.MASK)))return Ae.MASK;if(e.matches(as(Ae.MASK_UNLESS_ALLOWLISTED)))return Ae.MASK_UNLESS_ALLOWLISTED;if(e.matches(as(Ae.MASK_USER_INPUT)))return Ae.MASK_USER_INPUT;if(e.matches(as(Ae.ALLOW)))return Ae.ALLOW;if(CM(e))return Ae.IGNORE}}function xM(e,t){switch(t){case Ae.MASK:case Ae.HIDDEN:case Ae.IGNORE:return!0;case Ae.MASK_UNLESS_ALLOWLISTED:return Mp(e)?Ac(e.parentNode)?!0:!Lx(e.textContent||""):Ac(e);case Ae.MASK_USER_INPUT:return Mp(e)?Ac(e.parentNode):Ac(e);default:return!1}}function AM(e,t,n,i,a){if(i!==Ae.MASK&&i!==Ae.MASK_UNLESS_ALLOWLISTED||t===Mx||Nx.includes(t)||t===a.actionNameAttribute)return!1;switch(t){case"title":case"alt":case"placeholder":return!0}return!!(e==="A"&&t==="href"||e==="IFRAME"&&t==="srcdoc"||n&&t.startsWith("data-")||(e==="IMG"||e==="SOURCE")&&(t==="src"||t==="srcset"))}function Ac(e){if(!e||e.nodeType!==e.ELEMENT_NODE)return!1;const t=e;if(t.tagName==="INPUT")switch(t.type){case"button":case"color":case"reset":case"submit":return!1}return!!SM[t.tagName]}const OM=e=>e.replace(/\S/g,wM);function CM(e){if(e.nodeName==="SCRIPT")return!0;
9if(e.nodeName==="LINK"){const n=t("rel");return/preload|prefetch/i.test(n)&&t("as")==="script"||n==="shortcut icon"||n==="icon"}if(e.nodeName==="META"){const n=t("name"),i=t("rel"),a=t("property");return/^msapplication-tile(image|color)$/.test(n)||n==="application-name"||i==="icon"||i==="apple-touch-icon"||i==="shortcut icon"||n==="keywords"||n==="description"||/^(og|twitter|fb):/.test(a)||/^(og|twitter):/.test(n)||n==="pinterest"||n==="robots"||n==="googlebot"||n==="bingbot"||e.hasAttribute("http-equiv")||n==="author"||n==="generator"||n==="framework"||n==="publisher"||n==="progid"||/^article:/.test(a)||/^product:/.test(a)||n==="google-site-verification"||n==="yandex-verification"||n==="csrf-token"||n==="p:domain_verify"||n==="verify-v1"||n==="verification"||n==="shopify-checkout-api-token"}function t(n){return(e.getAttribute(n)||"").toLowerCase()}return!1}function Lx(e){var t;return!e||!e.trim()?!0:((t=window.$DD_ALLOW)===null||t===void 0?void 0:t.has(e.toLocaleLowerCase()))||!1}function RM(e,t){return Lx(e)?e:t||OM(e)}const Ux=qt,kM=100;function NM(e,t){const n=[];let i=0,a;l(e);function l(f){f.stopObservable.subscribe(u),n.push(f),Nn(a),a=en(d,Ux)}function u(){i===1&&n.every(f=>f.isStopped())&&(i=2,t(n))}function d(){Nn(a),i===0&&(i=1,u())}return{tryAppend:f=>i!==0?!1:n.length>0&&!jM(n[n.length-1].event,f.event)?(d(),!1):(l(f),!0),stop:()=>{d()}}}function jM(e,t){return e.target===t.target&&DM(e,t)<=kM&&e.timeStamp-t.timeStamp<=Ux}function DM(e,t){return Math.sqrt(Math.pow(e.clientX-t.clientX,2)+Math.pow(e.clientY-t.clientY,2))}function MM(e,t,n=Ae.ALLOW){const i=new Map,{actionNameAttribute:a}=t,l=aS(e,Pd)||a&&aS(e,a);return l?{name:l,nameSource:"custom_attribute"}:n===Ae.MASK?{name:kx,nameSource:"mask_placeholder"}:oS(e,LM,t,i)||oS(e,UM,t,i)||{name:"",nameSource:"blank"}}function aS(e,t){const n=e.closest(`[${t}]`);if(!n)return;const i=n.getAttribute(t);return Px(Ix(i.trim()))}const LM=[(e,t,n)=>{if("labels"in e&&e.labels&&e.labels.length>0)return Kc(e.labels[0],t,n)},e=>{if(e.nodeName==="INPUT"){const t=e,n=t.getAttribute("type");if(n==="button"||n==="submit"||n==="reset")return{name:t.value,nameSource:"text_content"}}},(e,t,n)=>{if(e.nodeName==="BUTTON"||e.nodeName==="LABEL"||e.getAttribute("role")==="button")return Kc(e,t,n)},(e,t,n)=>rl(e,"aria-label",t,n),(e,t,n)=>{const i=e.getAttribute("aria-labelledby");if(i)return{name:i.split(/\s+/).map(a=>PM(e,a)).filter(a=>!!a).map(a=>Bx(a,t,n)).join(" "),nameSource:"text_content"}},(e,t,n)=>
9rl(e,"alt",t,n),(e,t,n)=>rl(e,"name",t,n),(e,t,n)=>rl(e,"title",t,n),(e,t,n)=>rl(e,"placeholder",t,n),(e,t,n)=>{if("options"in e&&e.options.length>0)return Kc(e.options[0],t,n)}],UM=[(e,t,n)=>Kc(e,t,n)],IM=10;function oS(e,t,n,i){let a=e,l=0;for(;l<=IM&&a&&a.nodeName!=="BODY"&&a.nodeName!=="HTML"&&a.nodeName!=="HEAD";){for(const u of t){const d=u(a,n,i);if(d){const{name:f,nameSource:h}=d,g=f&&f.trim();if(g)return{name:Px(Ix(g)),nameSource:h}}}if(a.nodeName==="FORM")break;a=a.parentElement,l+=1}}function Ix(e){return e.replace(/\s+/g," ")}function Px(e){return e.length>100?`${Ad(e,100)} [...]`:e}function PM(e,t){return e.ownerDocument?e.ownerDocument.getElementById(t):null}function rl(e,t,n,i){const{enablePrivacyForActionName:a,defaultPrivacyLevel:l}=n;let u=e.getAttribute(t);if(u&&a){const d=Vd(e,l,i);AM(e.tagName,t,u,d,n)&&(u=RM(u,kx))}else u||(u="");return{name:u,nameSource:"standard_attribute"}}function Kc(e,t,n){return{name:Bx(e,t,n)||"",nameSource:"text_content"}}function Bx(e,t,n){if(e.isContentEditable)return;const{enablePrivacyForActionName:i,actionNameAttribute:a,defaultPrivacyLevel:l}=t;if(Hl(vi.USE_TREE_WALKER_FOR_ACTION_NAME))return BM(e,a,i,l,n);if("innerText"in e){let u=e.innerText;const d=f=>{const h=e.querySelectorAll(f);for(let g=0;g<h.length;g+=1){const y=h[g];if("innerText"in y){const v=y.innerText;v&&v.trim().length>0&&(u=u.replace(v,""))}}};return d(`[${Pd}]`),a&&d(`[${a}]`),i&&d(`${as(Ae.HIDDEN)}, ${as(Ae.MASK)}`),u}return e.textContent}function BM(e,t,n,i,a){const l=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,d);let u="";for(;l.nextNode();){const f=l.currentNode;if(Si(f)){(f.nodeName==="BR"||f.nodeName==="P"||["block","flex","grid","list-item","table","table-caption"].includes(getComputedStyle(f).display))&&(u+=" ");continue}u+=f.textContent||""}return u.replace(/\s+/g," ").trim();function d(f){const h=Vd(f,i,a);if(n&&h&&xM(f,h))return NodeFilter.FILTER_REJECT;if(Si(f)){if(f.hasAttribute(Pd)||t&&f.hasAttribute(t))return NodeFilter.FILTER_REJECT;const g=getComputedStyle(f);if(g.visibility!=="visible"||g.display==="none"||g.contentVisibility&&g.contentVisibility!=="visible")return NodeFilter.FILTER_REJECT}return NodeFilter.FILTER_ACCEPT}}function VM(e,{onPointerDown:t,onPointerUp:n}){let i,a={selection:!1,input:!1,scroll:!1},l;const u=[yt(e,window,"pointerdown",d=>{uS(d)&&(i=lS(),a={selection:!1,input:!1,scroll:!1},l=t(d))},{capture:!0}),yt(e,window,"selectionchange",()=>{(!i||!lS())&&(a.selection=!0)},{capture:!0}),yt(e,window,"scroll",()=>{a.scroll=!0},{capture:!0,passive:!0}),yt(e,window,"pointerup",d=>{if(uS(d)&&l){const f=a;n(l,d,()=>f),l=void 0}},{capture:!0}),yt(e,window,"input",()=>{a.input=!0},{capture:!0})];return{stop:()=>{u.forEach(d=>d.stop())}}}function lS(){const e=window.getSelection();return!e||e.isCollapsed}function uS(e){return e.target instanceof Element&&e.isPrimary!==!1}const cS=3;function zM(e,t){if($M(e))return t.addFrustration(tl.RAGE_CLICK),e.some(dS)&&t.addFrustration(tl.DEAD_CLICK),t.hasError&&t.addFrustration(tl.ERROR_CLICK),{isRage:!0};const n=e.some(i=>i.getUserActivity().selection);return e.forEach(i=>{i.hasError&&i.addFrustration(tl.ERROR_CLICK),dS(i)&&!n&&i.addFrustration(tl.DEAD_CLICK)}),{isRage:!1}}function $M(e){if(e.some(t=>t.getUserActivity().selection||t.getUserActivity().scroll))return!1;for(let t=0;t<e.length-(cS-1);t+=1)if(e[t+cS-1].event.timeStamp-e[t].event.timeStamp<=qt)return!0;return!1}const HM='input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *';function dS(e){if(e.hasPageActivity||e.getUserActivity().input||e.getUserActivity().scroll)return!1;let t=e.event.target;return t.tagName==="LABEL"&&t.hasAttribute("for")&&(t=document.getElementById(t.getAttribute("for"))),!t||!t.matches(HM)}const Vx=10*qt,ml=new Map;function qM(e){const t=ml.get(e);return ml.delete(e),t}function zx(e,t){ml.set(e,t),ml.forEach((n,i)=>{xt(i,gn())>Vx&&ml.delete(i)})}const FM=5*Ft;function GM(e,t,n,i){const a=Wa({expireDelay:FM}),l=new Oe;let u;e.subscribe(10,()=>{a.reset()}),e.subscribe(5,g),e.subscribe(11,y=>{y.reason===Oa.UNLOADING&&g()});const{stop:d}=VM(i,{onPointerDown:y=>KM(i,e,t,y,n),onPointerUp:({clickActionBase:y,hadActivityOnPointerDown:v},_,S)=>{YM(i,e,t,n,a,l,h,y,_,S,v)}});return{stop:()=>{g(),l.notify(),d()},actionContexts:{findActionId:y=>a.findAll(y)}};function h(y){if(!u||!u.tryAppend(y)){const v=y.clone();u=NM(y,_=>{WM(_,v)})}}function g(){u&&u.stop()}}function KM(e,t,n,i,a){let l;
9if(e.enablePrivacyForActionName?l=Vd(i.target,e.defaultPrivacyLevel):l=Ae.ALLOW,l===Ae.HIDDEN)return;const u=XM(i,l,e);let d=!1;return Fg(t,n,a,e,f=>{d=f.hadActivity},Rx),{clickActionBase:u,hadActivityOnPointerDown:()=>d}}function YM(e,t,n,i,a,l,u,d,f,h,g){var y;const v=$x(t,a,h,d,f);u(v);const _=(y=d?.target)===null||y===void 0?void 0:y.selector;_&&zx(f.timeStamp,_);const{stop:S}=Fg(t,n,i,e,A=>{A.hadActivity&&A.end<v.startClocks.timeStamp?v.discard():A.hadActivity?v.stop(A.end):g()?v.stop(v.startClocks.timeStamp):v.stop()},Vx),E=t.subscribe(5,({endClocks:A})=>{v.stop(A.timeStamp)}),x=l.subscribe(()=>{v.stop()});v.stopObservable.subscribe(()=>{E.unsubscribe(),S(),x.unsubscribe()})}function XM(e,t,n){const i=e.target.getBoundingClientRect(),a=Kl(e.target,n.actionNameAttribute);a&&zx(e.timeStamp,a);const{name:l,nameSource:u}=MM(e.target,n,t);return{type:Hg.CLICK,target:{width:Math.round(i.width),height:Math.round(i.height),selector:a},position:{x:Math.round(e.clientX-i.left),y:Math.round(e.clientY-i.top)},name:l,nameSource:u}}function $x(e,t,n,i,a){const l=It(),u=wt(),d=t.add(l,u.relative),f=Cx({lifeCycle:e,isChildEvent:S=>S.action!==void 0&&(Array.isArray(S.action.id)?S.action.id.includes(l):S.action.id===l)});let h=0,g;const y=[],v=new Oe;function _(S){h===0&&(g=S,h=1,g?d.close(Td(g)):d.remove(),f.stop(),v.notify())}return{event:a,stop:_,stopObservable:v,get hasError(){return f.eventCounts.errorCount>0},get hasPageActivity(){return g!==void 0},getUserActivity:n,addFrustration:S=>{y.push(S)},startClocks:u,isStopped:()=>h===1||h===2,clone:()=>$x(e,t,n,i,a),validate:S=>{if(_(),h!==1)return;const{resourceCount:E,errorCount:x,longTaskCount:A}=f.eventCounts,N={duration:g&&xt(u.timeStamp,g),startClocks:u,id:l,frustrationTypes:y,counts:{resourceCount:E,errorCount:x,longTaskCount:A},events:S??[a],event:a,...i};e.notify(0,N),h=2},discard:()=>{_(),h=2}}}function WM(e,t){const{isRage:n}=zM(e,t);n?(e.forEach(i=>i.discard()),t.stop(Dt()),t.validate(e.map(i=>i.event))):(t.discard(),e.forEach(i=>i.validate()))}function JM(e,t,n,i,a){const{unsubscribe:l}=e.subscribe(0,f=>{e.notify(12,fS(f))});t.register(0,({startTime:f,eventType:h})=>{if(h!==_e.ERROR&&h!==_e.RESOURCE&&h!==_e.LONG_TASK)return Pt;const g=u.findActionId(f);return g?{type:h,action:{id:g}}:Pt}),t.register(1,({startTime:f})=>({action:{id:u.findActionId(f)}}));let u={findActionId:Me},d=Me;return a.trackUserInteractions&&({actionContexts:u,stop:d}=GM(e,n,i,a)),{addAction:f=>{e.notify(12,fS(f))},actionContexts:u,stop:()=>{l(),d()}}}function fS(e){const t=Mm(e)?{action:{id:e.id,loading_time:Ox(ve(e.duration)),frustration:{type:e.frustrationTypes},error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},_oo:{action:{target:e.target,position:e.position,name_source:e.nameSource}}}:{context:e.context},n=Mn({action:{id:It(),target:{name:e.name},type:e.type},date:e.startClocks.timeStamp,type:_e.ACTION},t),i=Mm(e)?e.duration:void 0,a=Mm(e)?{events:e.events}:{handlingStack:e.handlingStack};return{rawRumEvent:n,duration:i,startTime:e.startClocks.relative,domainContext:a}}function Mm(e){return e.type!==Hg.CUSTOM}function QM(e){const t=ox([ct.error]).subscribe(n=>e.notify(n.error));return{stop:()=>{t.unsubscribe()}}}function ZM(e,t){const n=MT(e,[Ba.cspViolation,Ba.intervention]).subscribe(i=>t.notify(i));return{stop:()=>{n.unsubscribe()}}}
9function eL(e,t,n){const i=new Oe;return n.subscribe(a=>{a.type===0&&i.notify(a.error)}),QM(i),ZM(t,i),i.subscribe(a=>e.notify(14,{error:a})),tL(e)}function tL(e){return e.subscribe(14,({error:t})=>{e.notify(12,nL(t))}),{addError:({error:t,handlingStack:n,componentStack:i,startClocks:a,context:l})=>{const u=Dd({originalError:t,handlingStack:n,componentStack:i,startClocks:a,nonErrorPrefix:"Provided",source:tn.CUSTOM,handling:"handled"});u.context=Mn(u.context,l),e.notify(14,{error:u})}}}function nL(e){const t={date:e.startClocks.timeStamp,error:{id:It(),message:e.message,source:e.source,stack:e.stack,handling_stack:e.handlingStack,component_stack:e.componentStack,type:e.type,handling:e.handling,causes:e.causes,source_type:"browser",fingerprint:e.fingerprint,csp:e.csp},type:_e.ERROR,context:e.context},n={error:e.originalError,handlingStack:e.handlingStack};return{rawRumEvent:t,startTime:e.startClocks.relative,domainContext:n}}const hS=new WeakSet;function rL(e){if(!performance||!("getEntriesByName"in performance))return;const t=performance.getEntriesByName(e.url,"resource");if(!t.length||!("toJSON"in t[0]))return;const n=t.filter(i=>!hS.has(i)).filter(i=>Ex(i)&&Tx(i)).filter(i=>iL(i,e.startClocks.relative,Hx({startTime:e.startClocks.relative,duration:e.duration})));if(n.length===1)return hS.add(n[0]),n[0].toJSON()}function Hx(e){return Fa(e.startTime,e.duration)}function iL(e,t,n){return e.startTime>=t-1&&Hx(e)<=Fa(n,1)}const sL=2*Ft;function aL(e){const t=oL(e)||lL(e);if(!(!t||t.traceTime<=Ht()-sL))return t.traceId}function oL(e){const t=e.querySelector("meta[name=oo-trace-id]"),n=e.querySelector("meta[name=oo-trace-time]");return qx(t&&t.content,n&&n.content)}function lL(e){const t=uL(e);if(t)return qx(Tl(t,"trace-id"),Tl(t,"trace-time"))}function qx(e,t){const n=t&&Number(t);if(!(!e||!n))return{traceId:e,traceTime:n}}function uL(e){for(let t=0;t<e.childNodes.length;t+=1){const n=mS(e.childNodes[t]);if(n)return n}if(e.body)for(let t=e.body.childNodes.length-1;t>=0;t-=1){const n=e.body.childNodes[t],i=mS(n);if(i)return i;if(!Mp(n))break}}function mS(e){if(e&&sM(e)){const t=/^\s*OPENOBSERVE;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function Fx(){if(_s(je.NAVIGATION)){const n=performance.getEntriesByType(je.NAVIGATION)[0];if(n)return n}const e=cL(),t={entryType:je.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.loadEventEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:()=>({...t,toJSON:void 0}),...e};return t}function cL(){const e={},t=performance.timing;for(const n in t)if(Vl(t[n])){const i=n,a=t[i];e[i]=a===0?0:Td(a)}return e}function dL(e,t,n=Fx){ix(e,"interactive",()=>{const i=n(),a=Object.assign(i.toJSON(),{entryType:je.RESOURCE,initiatorType:Sx,duration:i.responseEnd,traceId:aL(document),toJSON:()=>({...a,toJSON:void 0})});t(a)})}const fL=1e3;function hL(e){const t=new Set,n=e.subscribe(8,i=>{t.add(i),t.size>fL&&(Fl("Too many requests"),t.delete(t.values().next().value))});return{getMatchingRequest(i){let a=1/0,l;for(const u of t){const d=i.startTime-u.startClocks.relative;0<=d&&d<a&&u.url===i.name&&(a=Math.abs(d),l=u)}return l&&t.delete(l),l},stop(){n.unsubscribe()}}}function mL(e,t,n,i=C2(),a=dL){let l;const u=t.trackEarlyRequests;u?l=hL(e):e.subscribe(8,h=>{f(()=>pL(h,t,n))});const d=sr(t,{type:je.RESOURCE,buffered:!0}).subscribe(h=>{for(const g of h)(u||!wx(g))&&f(()=>pS(g,t,n,l))});a(t,h=>{f(()=>pS(h,t,n,l))});function f(h){i.push(()=>{const g=h();g&&e.notify(12,g)})}return{stop:()=>{i.stop(),d.unsubscribe()}}}function pL(e,t,n){const i=rL(e);return Gx(i,e,n,t)}function pS(e,t,n,i){const a=wx(e)&&i?i.getMatchingRequest(e):void 0;return Gx(e,a,n,t)}function Gx(e,t,n,i){if(!e&&!t)return;const a=t?bL(t,i):_L(e,i);if(!i.trackResources&&!a)return;const l=e?Ed(e.startTime):t.startClocks,u=e?ID(e):SL(n,l,t.duration),d=t&&gL(t,i),f=Mn({date:l.timeStamp,resource:{id:It(),duration:ve(u),type:t?t.type===ps.XHR?Vt.XHR:Vt.FETCH:UD(e),method:t?t.method:void 0,status_code:t?t.status:wL(e.responseStatus),url:t?FD(t.url):e.name,protocol:e&&VD(e),delivery_type:e&&zD(e),graphql:d},type:_e.RESOURCE,_oo:{discarded:!i.trackResources}},a,e&&vL(e));return{startTime:l.relative,duration:u,rawRumEvent:f,domainContext:yL(e,t)}}
9function gL(e,t){const n=xx(e.url,t);if(n)return KD(e,n)}function yL(e,t){if(t){const n={performanceEntry:e,isAborted:t.isAborted,handlingStack:t.handlingStack};return t.type===ps.XHR?{xhr:t.xhr,...n}:{requestInput:t.input,requestInit:t.init,response:t.response,error:t.error,...n}}return{performanceEntry:e}}function vL(e){const{renderBlockingStatus:t}=e;return{resource:{render_blocking_status:t,...$D(e),...PD(e)}}}function bL(e,t){if(e.traceSampled&&e.traceId&&e.spanId)return{_oo:{span_id:e.spanId.toString(),trace_id:e.traceId.toString(),rule_psr:t.rulePsr}}}function _L(e,t){if(e.traceId)return{_oo:{trace_id:e.traceId,span_id:yx().toString(),rule_psr:t.rulePsr}}}function SL(e,t,n){return e.wasInPageStateDuringPeriod("frozen",t.relative,n)?void 0:n}function wL(e){return e===0?void 0:e}function EL(e,t,n){const{stop:i,eventCounts:a}=Cx({lifeCycle:e,isChildEvent:l=>l.view.id===t,onChange:n});return{stop:i,eventCounts:a}}const TL=10*Ft;function xL(e,t,n){return{stop:sr(e,{type:je.PAINT,buffered:!0}).subscribe(a=>{const l=a.find(u=>u.name==="first-contentful-paint"&&u.startTime<t.timeStamp&&u.startTime<TL);l&&n(l.startTime)}).unsubscribe}}function AL(e,t){requestAnimationFrame(()=>{requestAnimationFrame(()=>{t(xt(e,gn()))})})}function OL(e,t,n){const i=sr(e,{type:je.FIRST_INPUT,buffered:!0}).subscribe(a=>{const l=a.find(u=>u.startTime<t.timeStamp);if(l){const u=xt(l.startTime,l.processingStart);let d;l.target&&Si(l.target)&&(d=Kl(l.target,e.actionNameAttribute)),n({delay:u>=0?u:0,time:l.startTime,targetSelector:d})}});return{stop:()=>{i.unsubscribe()}}}function CL(e,t,n=Fx){return NL(e,()=>{const i=n();kL(i)||t(RL(i))})}function RL(e){return{domComplete:e.domComplete,domContentLoaded:e.domContentLoadedEventEnd,domInteractive:e.domInteractive,loadEvent:e.loadEventEnd,firstByte:e.responseStart>=0&&e.responseStart<=gn()?e.responseStart:void 0}}function kL(e){return e.loadEventEnd<=0}function NL(e,t){let n;const{stop:i}=ix(e,"complete",()=>{n=en(()=>t())});return{stop:()=>{i(),Nn(n)}}}const jL=10*Ft;function DL(e,t,n,i){let a=1/0;const{stop:l}=bi(e,n,["pointerdown","keydown"],f=>{a=f.timeStamp},{capture:!0,once:!0});let u=0;const d=sr(e,{type:je.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(f=>{const h=oT(f,g=>g.entryType===je.LARGEST_CONTENTFUL_PAINT&&g.startTime<a&&g.startTime<t.timeStamp&&g.startTime<jL&&g.size>u);if(h){let g;h.element&&(g=Kl(h.element,e.actionNameAttribute)),i({value:h.startTime,targetSelector:g,resourceUrl:ML(h)}),u=h.size}});return{stop:()=>{l(),d.unsubscribe()}}}function ML(e){return e.url===""?void 0:e.url}function Kx(e,t,n=window){if(document.visibilityState==="hidden")return{timeStamp:0,stop:Me};if(_s(je.VISIBILITY_STATE)){const l=performance.getEntriesByType(je.VISIBILITY_STATE).filter(u=>u.name==="hidden").find(u=>u.startTime>=t.relative);if(l)return{timeStamp:l.startTime,stop:Me}}let i=1/0;const{stop:a}=bi(e,n,["pagehide","visibilitychange"],l=>{(l.type==="pagehide"||document.visibilityState==="hidden")&&(i=l.timeStamp,a())},{capture:!0});return{get timeStamp(){return i},stop:a}}function LL(e,t,n,i){const a={},{stop:l}=CL(e,y=>{n(y.loadEvent),a.navigationTimings=y,i()}),u=Kx(e,t),{stop:d}=xL(e,u,y=>{a.firstContentfulPaint=y,i()}),{stop:f}=DL(e,u,window,y=>{a.largestContentfulPaint=y,i()}),{stop:h}=OL(e,u,y=>{a.firstInput=y,i()});function g(){l(),d(),f(),h(),u.stop()}return{stop:g,initialViewMetrics:a}}const Lp=(e,t)=>e*t,UL=(e,t)=>{const n=Math.max(e.left,t.left),i=Math.max(e.top,t.top),a=Math.min(e.right,t.right),l=Math.min(e.bottom,t.bottom);return n>=a||i>=l?0:Lp(a-n,l-i)},gS=e=>{const t=Lp(e.previousRect.width,e.previousRect.height),n=Lp(e.currentRect.width,e.currentRect.height),i=UL(e.previousRect,e.currentRect);return t+n-i};function IL(e,t,n){if(!$L())return{stop:Me};let i=0,a;n({value:0});const l=zL(),u=sr(e,{type:je.LAYOUT_SHIFT,buffered:!0}).subscribe(d=>{var f;for(const h of d){if(h.hadRecentInput||h.startTime<t)continue;const{cumulatedValue:g,isMaxValue:y}=l.update(h);if(y){const v=PL(h.sources);a={target:v?.node?new WeakRef(v.node):void 0,time:xt(t,h.startTime),previousRect:v?.previousRect,currentRect:v?.currentRect,devicePixelRatio:window.devicePixelRatio}}if(g>i){i=g;const v=(f=a?.target)===null||f===void 0?void 0:f.deref();n({value:va(i,4),targetSelector:v&&Kl(v,e.actionNameAttribute),time:a?.time,previousRect:a?.previousRect?yS(a.previousRect):void 0,currentRect:a?.currentRect?yS(a.currentRect):void 0,devicePixelRatio:a?.devicePixelRatio})}}});return{stop:()=>{u.unsubscribe()}}}function PL(e){let t;for(const n of e)if(n.node&&Si(n.node)){const i=gS(n);(!t||gS(t)<i)&&(t=n)}return t}function yS({x:e,y:t,width:n,height:i}){return{x:e,y:t,width:n,height:i}}const BL=5*qt,VL=qt;function zL(){let e=0,t,n,i=0;return{update:a=>{const l=t===void 0||a.startTime-n>=VL||a.startTime-t>=BL;let u;return l?(t=n=a.startTime,i=e=a.value,u=!0):(e+=a.value,n=a.startTime,u=a.value>i,u&&(i=a.value)),{cumulatedValue:e,isMaxValue:u}}}}function $L(){return _s(je.LAYOUT_SHIFT)&&"WeakRef"in window}let Yc,Yx=0,Lm=1/0,Um=0;function HL(){"interactionCount"in performance||Yc||(Yc=new window.PerformanceObserver(le(e=>
9{e.getEntries().forEach(t=>{const n=t;n.interactionId&&(Lm=Math.min(Lm,n.interactionId),Um=Math.max(Um,n.interactionId),Yx=(Um-Lm)/7+1)})})),Yc.observe({type:"event",buffered:!0,durationThreshold:0}))}const vS=()=>Yc?Yx:window.performance.interactionCount||0,bS=10,qL=1*Ft;function FL(e,t,n){if(!YL())return{getInteractionToNextPaint:()=>{},setViewEnd:Me,stop:Me};const{getViewInteractionCount:i,stopViewInteractionCount:a}=KL(n);let l=1/0;const u=GL(i);let d=-1,f,h;function g(_){for(const E of _)E.interactionId&&E.startTime>=t&&E.startTime<=l&&u.process(E);const S=u.estimateP98Interaction();S&&S.duration!==d&&(d=S.duration,h=xt(t,S.startTime),f=qM(S.startTime),!f&&S.target&&Si(S.target)&&(f=Kl(S.target,e.actionNameAttribute)))}const y=sr(e,{type:je.FIRST_INPUT,buffered:!0}).subscribe(g),v=sr(e,{type:je.EVENT,durationThreshold:40,buffered:!0}).subscribe(g);return{getInteractionToNextPaint:()=>{if(d>=0)return{value:Math.min(d,qL),targetSelector:f,time:h};if(i())return{value:0}},setViewEnd:_=>{l=_,a()},stop:()=>{v.unsubscribe(),y.unsubscribe()}}}function GL(e){const t=[];function n(){t.sort((i,a)=>a.duration-i.duration).splice(bS)}return{process(i){const a=t.findIndex(u=>i.interactionId===u.interactionId),l=t[t.length-1];a!==-1?i.duration>t[a].duration&&(t[a]=i,n()):(t.length<bS||i.duration>l.duration)&&(t.push(i),n())},estimateP98Interaction(){const i=Math.min(t.length-1,Math.floor(e()/50));return t[i]}}}function KL(e){HL();const t=e===Rr.INITIAL_LOAD?0:vS();let n={stopped:!1};function i(){return vS()-t}return{getViewInteractionCount:()=>n.stopped?n.interactionCount:i(),stopViewInteractionCount:()=>{n={stopped:!0,interactionCount:i()}}}}function YL(){return _s(je.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype}function XL(e,t,n,i,a,l,u){let d=a===Rr.INITIAL_LOAD,f=!0;const h=[],g=Kx(i,l);function y(){if(!f&&!d&&h.length>0){const _=Math.max(...h);_<g.timeStamp-l.relative&&u(_)}}const{stop:v}=Fg(e,t,n,i,_=>{f&&(f=!1,_.hadActivity&&h.push(xt(l.timeStamp,_.end)),y())});return{stop:()=>{v(),g.stop()},setLoadEvent:_=>{d&&(d=!1,h.push(_),y())}}}function WL(){let e;const t=window.visualViewport;return t?e=t.pageTop-t.offsetTop:window.scrollY!==void 0?e=window.scrollY:e=window.pageYOffset||0,Math.round(e)}let Im;function JL(e){return Im||(Im=QL(e)),Im}function QL(e){return new Oe(t=>{const{throttled:n}=xd(()=>{t.notify(Gg())},200);return yt(e,window,"resize",n,{capture:!0,passive:!0}).stop})}function Gg(){const e=window.visualViewport;return e?{width:Number(e.width*e.scale),height:Number(e.height*e.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}const ZL=qt;function eU(e,t,n,i=nU(e)){let a=0,l=0,u=0;const d=i.subscribe(({scrollDepth:f,scrollTop:h,scrollHeight:g})=>{let y=!1;if(f>a&&(a=f,y=!0),g>l){l=g;const v=gn();u=xt(t.relative,v),y=!0}y&&n({maxDepth:Math.min(a,l),maxDepthScrollTop:h,maxScrollHeight:l,maxScrollHeightTime:u})});return{stop:()=>d.unsubscribe()}}function tU(){const e=WL(),{height:t}=Gg(),n=Math.round((document.scrollingElement||document.documentElement).scrollHeight),i=Math.round(t+e);return{scrollHeight:n,scrollDepth:i,scrollTop:e}}function nU(e,t=ZL){return new Oe(n=>{function i(){n.notify(tU())}if(window.ResizeObserver){const a=xd(i,t,{leading:!1,trailing:!0}),l=document.scrollingElement||document.documentElement,u=new ResizeObserver(le(a.throttled));l&&u.observe(l);const d=yt(e,window,"scroll",a.throttled,{passive:!0});return()=>{a.cancel(),u.disconnect(),d.stop()}}})}function rU(e,t,n,i,a,l,u){const d={},{stop:f,setLoadEvent:h}=XL(e,t,n,i,l,u,E=>{d.loadingTime=E,a()}),{stop:g}=eU(i,u,E=>{d.scroll=E}),{stop:y}=IL(i,u.relative,E=>{d.cumulativeLayoutShift=E,a()}),{stop:v,getInteractionToNextPaint:_,setViewEnd:S}=FL(i,u.relative,l);return{stop:()=>{f(),y(),g()}
9,stopINPTracking:v,setLoadEvent:h,setViewEnd:S,getCommonViewMetrics:()=>(d.interactionToNextPaint=_(),d)}}function iU(e,t){const{stop:n}=yt(e,window,"pageshow",i=>{i.persisted&&t(i)},{capture:!0});return n}function sU(e,t,n){AL(e.relative,i=>{t.firstContentfulPaint=i,t.largestContentfulPaint={value:i},n()})}const aU=3e3,oU=5*Ft,lU=5*Ft;function uU(e,t,n,i,a,l,u,d){const f=new Set;let h=v(Rr.INITIAL_LOAD,iT(),d),g;_();let y;u&&(y=S(l),a.trackBfcacheViews&&(g=iU(a,E=>{h.end();const x=Ed(E.timeStamp);h=v(Rr.BF_CACHE,x,void 0)})));function v(E,x,A){const N=cU(t,n,i,a,e,E,x,A);return f.add(N),N.stopObservable.subscribe(()=>{f.delete(N)}),N}function _(){t.subscribe(10,()=>{h=v(Rr.ROUTE_CHANGE,void 0,{name:h.name,service:h.service,version:h.version,context:h.contextManager.getContext()})}),t.subscribe(9,()=>{h.end({sessionIsActive:!1})})}function S(E){return E.subscribe(({oldLocation:x,newLocation:A})=>{fU(x,A)&&(h.end(),h=v(Rr.ROUTE_CHANGE))})}return{addTiming:(E,x=Dt())=>{h.addTiming(E,x)},startView:(E,x)=>{h.end({endClocks:x}),h=v(Rr.ROUTE_CHANGE,x,E)},setViewContext:E=>{h.contextManager.setContext(E)},setViewContextProperty:(E,x)=>{h.contextManager.setContextProperty(E,x)},setViewName:E=>{h.setViewName(E)},getViewContext:()=>h.contextManager.getContext(),stop:()=>{y&&y.unsubscribe(),g&&g(),h.end(),f.forEach(E=>E.stop())}}}function cU(e,t,n,i,a,l,u=wt(),d){const f=It(),h=new Oe,g={};let y=0,v;const _=El(a),S=Gl();let E=!0,x=d?.name;const A=d?.service||i.service,N=d?.version||i.version,R=d?.context;R&&S.setContext(R);const M={id:f,name:x,startClocks:u,service:A,version:N,context:R};e.notify(1,M),e.notify(2,M);const{throttled:$,cancel:B}=xd(fe,aU,{leading:!1}),{setLoadEvent:G,setViewEnd:X,stop:se,stopINPTracking:te,getCommonViewMetrics:he}=rU(e,t,n,i,ue,l,u),{stop:Le,initialViewMetrics:vt}=l===Rr.INITIAL_LOAD?LL(i,u,G,ue):{stop:Me,initialViewMetrics:{}};l===Rr.BF_CACHE&&sU(u,vt,ue);const{stop:Ke,eventCounts:Ye}=EL(e,f,ue),V=qa(fe,oU),K=e.subscribe(11,C=>{C.reason===Oa.UNLOADING&&fe()});fe(),S.changeObservable.subscribe(ue);function J(){e.notify(3,{id:f,name:x,context:S.getContext(),startClocks:u,sessionIsActive:E})}function ue(){J(),$()}function fe(){B(),J(),y+=1;const C=v===void 0?Dt():v.timeStamp;e.notify(4,{customTimings:g,documentVersion:y,id:f,name:x,service:A,version:N,context:S.getContext(),loadingType:l,location:_,startClocks:u,commonViewMetrics:he(),initialViewMetrics:vt,duration:xt(u.timeStamp,C),isActive:v===void 0,sessionIsActive:E,eventCounts:Ye})}return{get name(){return x},service:A,version:N,contextManager:S,stopObservable:h,end(C={}){var H,Y;v||(v=(H=C.endClocks)!==null&&H!==void 0?H:wt(),E=(Y=C.sessionIsActive)!==null&&Y!==void 0?Y:!0,e.notify(5,{endClocks:v}),e.notify(6,{endClocks:v}),wd(V),X(v.relative),se(),K.unsubscribe(),fe(),en(()=>{this.stop()},lU))},stop(){Le(),Ke(),te(),h.notify()},addTiming(C,H){if(v)return;const Y=qk(H)?H:xt(u.timeStamp,H);g[dU(C)]=Y,ue()},setViewName(C){x=C,fe()}}}function dU(e){const t=e.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return t!==e&&be.warn(`Invalid timing name: ${e}, sanitized to: ${t}`),t}function fU(e,t){return e.pathname!==t.pathname||!hU(t.hash)&&_S(t.hash)!==_S(e.hash)}function hU(e){const t=e.substring(1);return t!==""&&!!document.getElementById(t)}function _S(e){const t=e.indexOf("?");return t<0?e:e.slice(0,t)}function mU(e,t,n,i,a,l,u,d,f,h){return e.subscribe(4,g=>e.notify(12,pU(g,n,d))),t.register(0,({startTime:g,eventType:y})=>{const v=f.findView(g);return v?{type:y,service:v.service,version:v.version,context:v.context,view:{id:v.id,name:v.name}}:Yn}),t.register(1,({startTime:g})=>{var y;return{view:{id:(y=f.findView(g))===null||y===void 0?void 0:y.id}}}),uU(i,e,a,l,n,u,!n.trackViewsManually,h)}function pU(e,t,n){var i,a,l,u,d,f,h,g,y,v,_,S,E,x,A,N,R,M;const $=n.getReplayStats(e.id),B=(a=(i=e.commonViewMetrics)===null||i===void 0?void 0:i.cumulativeLayoutShift)===null||a===void 0?void 0:a.devicePixelRatio,G={_oo:{document_version:e.documentVersion,replay_stats:$,cls:B?{device_pixel_ratio:B}:void 0,configuration:{start_session_replay_recording_manually:t.startSessionReplayRecordingManually}},date:e.startClocks.timeStamp,type:_e.VIEW,view:{action:{count:e.eventCounts.actionCount},frustration:{count:e.eventCounts.frustrationCount},cumulative_layout_shift:(l=e.commonViewMetrics.cumulativeLayoutShift)===null||l===void 0?void 0:l.value,cumulative_layout_shift_time:ve((u=e.commonViewMetrics.cumulativeLayoutShift)===null||u===void 0?void 0:u.time),cumulative_layout_shift_target_selector:(d=e.commonViewMetrics.cumulativeLayoutShift)===null||d===void 0?void 0:d.targetSelector,first_byte:ve((f=e.initialViewMetrics.navigationTimings)===null||f===void 0?void 0:f.firstByte),dom_complete:ve((h=e.initialViewMetrics.navigationTimings)===null||h===void 0?void 0:h.domComplete),dom_content_loaded:ve((g=e.initialViewMetrics.navigationTimings)===null||g===void 0?void 0:g.domContentLoaded),dom_interactive:ve((y=e.initialViewMetrics.navigationTimings)===null||y===void 0?void 0:y.domInteractive),error:{count:e.eventCounts.errorCount},first_contentful_paint:ve(e.initialViewMetrics.firstContentfulPaint),first_input_delay:ve((v=e.initialViewMetrics.firstInput)===null||v===void 0?void 0:v.delay),first_input_time:ve((_=e.initialViewMetrics.firstInput)===null||_===void 0?void 0:_.time),first_input_target_selector:(S=e.initialViewMetrics.firstInput)===null||S===void 0?void 0:S.targetSelector,interaction_to_next_paint:ve((E=e.commonViewMetrics.interactionToNextPaint)===null||E===void 0?void 0:E.value),interaction_to_next_paint_time:ve((x=e.commonViewMetrics.interactionToNextPaint)===null||x===void 0?void 0:x.time),interaction_to_next_paint_target_selector:(A=e.commonViewMetrics.interactionToNextPaint)===null||A===void 0?void 0:A.targetSelector,is_active:e.isActive,name:e.name,largest_contentful_paint:ve((N=e.initialViewMetrics.largestContentfulPaint)===null||N===void 0?void 0:N.value),largest_contentful_paint_target_selector:(R=e.initialViewMetrics.largestContentfulPaint)===null||R===void 0?void 0:R.targetSelector,load_event:ve((M=e.initialViewMetrics.navigationTimings)===null||M===void 0?void 0:M.loadEvent),loading_time:Ox(ve(e.commonViewMetrics.loadingTime)),loading_type:e.loadingType,long_task:{count:e.eventCounts.longTaskCount},performance:gU(e.commonViewMetrics,e.initialViewMetrics),resource:{count:e.eventCounts.resourceCount},time_spent:ve(e.duration)},display:e.commonViewMetrics.scroll?{scroll:{max_depth:e.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:e.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:e.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:ve(e.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,privacy:{replay_level:t.defaultPrivacyLevel},device:{locale:navigator.language,locales:navigator.languages,time_zone:P2()}};return Ti(e.customTimings)||(G.view.custom_timings=QE(e.customTimings,ve)),{rawRumEvent:G,startTime:e.startClocks.relative,duration:e.duration,domainContext:{location:e.location}}}function gU({cumulativeLayoutShift:e,interactionToNextPaint:t},{firstContentfulPaint:n,firstInput:i,largestContentfulPaint:a}){return{cls:e&&{score:e.value,timestamp:ve(e.time),target_selector:e.targetSelector,previous_rect:e.previousRect,current_rect:e.currentRect},fcp:n&&{timestamp:ve(n)},fid:i&&{duration:ve(i.delay),timestamp:ve(i.time),target_selector:i.targetSelector},inp:t&&{duration:ve(t.value),timestamp:ve(t.time),target_selector:t.targetSelector},lcp:a&&{timestamp:ve(a.value),target_selector:a.targetSelector,resource_url:a.resourceUrl}}}const yU="rum";
9function vU(e,t,n){const i=tx(e,yU,a=>_U(e,a),n);return i.expireObservable.subscribe(()=>{t.notify(9)}),i.renewObservable.subscribe(()=>{t.notify(10)}),i.sessionStateUpdateObservable.subscribe(({previousState:a,newState:l})=>{if(!a.forcedReplay&&l.forcedReplay){const u=i.findSession();u&&(u.isReplayForced=!0)}}),{findTrackedSession:a=>{const l=i.findSession(a);if(!(!l||l.trackingType==="0"))return{id:l.id,sessionReplay:l.trackingType==="1"?1:l.isReplayForced?2:0,anonymousId:l.anonymousId}},expire:i.expire,expireObservable:i.expireObservable,setForcedReplay:()=>i.updateSessionState({forcedReplay:"1"})}}function bU(){const e={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:Bj("records")?1:0};return{findTrackedSession:()=>e,expire:Me,expireObservable:new Oe,setForcedReplay:Me}}function _U(e,t){return SU(t)?t:hi(e.sessionSampleRate)?hi(e.sessionReplaySampleRate)?"1":"2":"0"}function SU(e){return e==="0"||e==="1"||e==="2"}function wU(e,t,n,i,a,l){const u=[e.rumEndpointBuilder];e.replica&&u.push(e.replica.rumEndpointBuilder);const d=Mg({encoder:l(2),request:Dg(u,n),flushController:Lg({pageMayExitObservable:i,sessionExpireObservable:a})});return t.subscribe(13,f=>{f.type===_e.VIEW?d.upsert(f,f.view.id):d.add(f)}),d}function EU(e){const t=Ya();e.subscribe(13,n=>{t.send("rum",n)})}const TU=ys;function xU(e,t,n,i){const a=Wa({expireDelay:TU});let l;e.subscribe(1,({startClocks:f})=>{const h=i.href;a.add(d({url:h,referrer:l||document.referrer}),f.relative),l=h}),e.subscribe(6,({endClocks:f})=>{a.closeActive(f.relative)});const u=n.subscribe(({newLocation:f})=>{const h=a.find();if(h){const g=gn();a.closeActive(g),a.add(d({url:f.href,referrer:h.referrer}),g)}});function d({url:f,referrer:h}){return{url:f,referrer:h}}return t.register(0,({startTime:f,eventType:h})=>{const g=a.find(f);return g?{type:h,view:{url:g.url,referrer:g.referrer}}:Yn}),{findUrl:f=>a.find(f),stop:()=>{u.unsubscribe(),a.stop()}}}function AU(e,t){let n=El(t);return new Oe(i=>{const{stop:a}=OU(e,u),{stop:l}=CU(e,u);function u(){if(n.href===t.href)return;const d=El(t);i.notify({newLocation:d,oldLocation:n}),n=d}return()=>{a(),l()}})}function OU(e,t){const{stop:n}=nr(SS("pushState"),"pushState",({onPostCall:l})=>{l(t)}),{stop:i}=nr(SS("replaceState"),"replaceState",({onPostCall:l})=>{l(t)}),{stop:a}=yt(e,window,"popstate",t);return{stop:()=>{n(),i(),a()}}}function CU(e,t){return yt(e,window,"hashchange",t)}function SS(e){return Object.prototype.hasOwnProperty.call(history,e)?history:History.prototype}const RU=ys;function kU(e,t,n){const i=Wa({expireDelay:RU});return e.subscribe(1,({startClocks:a})=>{i.add({},a.relative)}),e.subscribe(6,({endClocks:a})=>{i.closeActive(a.relative)}),t.register(0,({startTime:a,eventType:l})=>{if(!n.trackFeatureFlagsForEvents.concat([_e.VIEW,_e.ERROR]).includes(l))return Pt;const d=i.find(a);return!d||Ti(d)?Pt:{type:l,feature_flags:d}}),{addFeatureFlagEvaluation:(a,l)=>{const u=i.find();u&&(u[a]=l)}}}const NU=10*qt;let Ca,Oc;function jU(e,t,n){e.metricsEnabled&&(Xx(),Oc=!1,t.subscribe(13,()=>{Oc=!0}),n.subscribe(({bytesCount:i,messagesCount:a})=>{Oc&&(Oc=!1,Ca.batchCount+=1,ES(Ca.batchBytesCount,i),ES(Ca.batchMessagesCount,a))}),qa(DU,NU))}function DU(){Ca.batchCount!==0&&(Ug("Customer data measures",Ca),Xx())}function wS(){return{min:1/0,max:0,sum:0}}function ES(e,t){e.sum+=t,e.min=Math.min(e.min,t),e.max=Math.max(e.max,t)}function Xx(){Ca={batchCount:0,batchBytesCount:wS(),batchMessagesCount:wS()}}const MU=4e3,LU=500,UU=ys;function IU(e,t,n=LU){const i=Wa({expireDelay:UU,maxEntries:MU});let a;_s(je.VISIBILITY_STATE)&&performance.getEntriesByType(je.VISIBILITY_STATE).forEach(h=>{const g=h.name==="hidden"?"hidden":"active";u(g,h.startTime)}),u(Wx(),gn());const{stop:l}=bi(t,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],f=>{u(BU(f),f.timeStamp)},{capture:!0});function u(f,h=gn()){f!==a&&(a=f,i.closeActive(h),i.add({state:a,startTime:h},h))}function d(f,h,g){return i.findAll(h,g).some(y=>y.state===f)}return e.register(0,({startTime:f,duration:h=0,eventType:g})=>{if(g===_e.VIEW){const y=i.findAll(f,h);return{type:g,_oo:{page_states:PU(y,f,n)}}}return g===_e.ACTION||g===_e.ERROR?{type:g,view:{in_foreground:d("active",f,0)}}:Pt}),{wasInPageStateDuringPeriod:d,addPageState:u,stop:()=>
9{l(),i.stop()}}}function PU(e,t,n){if(e.length!==0)return e.slice(-n).reverse().map(({state:i,startTime:a})=>({state:i,start:ve(xt(t,a))}))}function BU(e){return e.type==="freeze"?"frozen":e.type==="pagehide"?e.persisted?"frozen":"terminated":Wx()}function Wx(){return document.visibilityState==="hidden"?"hidden":document.hasFocus()?"active":"passive"}function VU(e,t){let n;const i=requestAnimationFrame(le(()=>{n=Gg()})),a=JL(t).subscribe(l=>{n=l}).unsubscribe;return e.register(0,({eventType:l})=>({type:l,display:n?{viewport:n}:void 0})),{stop:()=>{a(),i&&cancelAnimationFrame(i)}}}function zU(e,t){const n=window.cookieStore?$U(e):qU;return new Oe(i=>n(t,a=>i.notify(a)))}function $U(e){return(t,n)=>yt(e,window.cookieStore,"change",a=>{const l=a.changed.find(u=>u.name===t)||a.deleted.find(u=>u.name===t);l&&n(l.value)}).stop}const HU=qt;function qU(e,t){const n=Tl(document.cookie,e),i=qa(()=>{const a=Tl(document.cookie,e);a!==n&&t(a)},HU);return()=>{wd(i)}}const TS="datadog-ci-visibility-test-execution-id";function FU(e,t,n=zU(e,TS)){var i;let a=mi(TS)||((i=window.Cypress)===null||i===void 0?void 0:i.env("traceId"));const l=n.subscribe(u=>{a=u});return t.register(0,({eventType:u})=>typeof a!="string"?Pt:{type:u,session:{type:"ci_test"},ci_test:{test_execution_id:a}}),{stop:()=>{l.unsubscribe()}}}function GU(e,t){const n=sr(t,{type:je.LONG_ANIMATION_FRAME,buffered:!0}).subscribe(i=>{for(const a of i){const l=Ed(a.startTime),u={date:l.timeStamp,long_task:{id:It(),entry_type:hx.LONG_ANIMATION_FRAME,duration:ve(a.duration),blocking_duration:ve(a.blockingDuration),first_ui_event_timestamp:ve(a.firstUIEventTimestamp),render_start:ve(a.renderStart),style_and_layout_start:ve(a.styleAndLayoutStart),start_time:ve(a.startTime),scripts:a.scripts.map(d=>({duration:ve(d.duration),pause_duration:ve(d.pauseDuration),forced_style_and_layout_duration:ve(d.forcedStyleAndLayoutDuration),start_time:ve(d.startTime),execution_start:ve(d.executionStart),source_url:d.sourceURL,source_function_name:d.sourceFunctionName,source_char_position:d.sourceCharPosition,invoker:d.invoker,invoker_type:d.invokerType,window_attribution:d.windowAttribution}))},type:_e.LONG_TASK,_oo:{discarded:!1}};e.notify(12,{rawRumEvent:u,startTime:l.relative,duration:a.duration,domainContext:{performanceEntry:a}})}});return{stop:()=>n.unsubscribe()}}function KU(e,t){const n=sr(t,{type:je.LONG_TASK,buffered:!0}).subscribe(i=>{for(const a of i){if(a.entryType!==je.LONG_TASK||!t.trackLongTasks)break;const l=Ed(a.startTime),u={date:l.timeStamp,long_task:{id:It(),entry_type:hx.LONG_TASK,duration:ve(a.duration)},type:_e.LONG_TASK,_oo:{discarded:!1}};e.notify(12,{rawRumEvent:u,startTime:l.relative,duration:a.duration,domainContext:{performanceEntry:a}})}});return{stop(){n.unsubscribe()}}}function YU(e){e.register(0,({eventType:t})=>{if(!ex())return Pt;const n=QT(),i=ZT();return{type:t,session:{type:"synthetics"},synthetics:{test_id:n,result_id:i,injected:Ud()}}})}function XU(e,t,n){const i=Ld(e),a=n(i);return Cg(t).forEach(([l,u])=>Up(e,i,l.split(/\.|(?=\[\])/),u)),a}function Up(e,t,n,i){const[a,...l]=n;if(a==="[]"){Array.isArray(e)&&Array.isArray(t)&&e.forEach((u,d)=>Up(u,t[d],l,i));return}if(!(!xS(e)||!xS(t))){if(l.length>0)return Up(e[a],t[a],l,i);WU(e,a,t[a],i)}}function WU(e,t,n,i){const a=vs(n);a===i?e[t]=ze(n):i==="object"&&(a==="undefined"||a==="null")&&(e[t]={})}function xS(e){return vs(e)==="object"}const aa={"view.name":"string","view.url":"string","view.referrer":"string"},oa={context:"object"},la={service:"string",version:"string"};let Jx;function JU(e,t,n,i,a){Jx={[_e.VIEW]:{"view.performance.lcp.resource_url":"string",...oa,...aa,...la},[_e.ERROR]:{"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string",...oa,...aa,...la},[_e.RESOURCE]:{"resource.url":"string","resource.graphql.variables":"string",...oa,...aa,...la},[_e.ACTION]:{"action.target.name":"string",...oa,...aa,...la},[_e.LONG_TASK]:{"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string",...oa,...aa,...la},[_e.VITAL]:{...oa,...aa,...la}};const l={[_e.ERROR]:Gc(_e.ERROR,i,a),[_e.ACTION]:Gc(_e.ACTION,i,a),[_e.VITAL]:Gc(_e.VITAL,i,a)};t.subscribe(12,({startTime:u,duration:d,rawRumEvent:f,domainContext:h})=>{const g=n.triggerHook(0,{eventType:f.type,startTime:u,duration:d});if(g===Yn)return;const y=Mn(g,f,{ootags:Ng(e).join(",")});QU(y,e.beforeSend,h,l)&&(Ti(y.context)&&delete y.context,t.notify(13,y))})}function QU(e,t,n,i){var a;if(t){const u=XU(e,Jx[e.type],d=>t(d,n));if(u===!1&&e.type!==_e.VIEW)return!1;u===!1&&be.warn("Can't dismiss view events using beforeSend!")}return!((a=i[e.type])===null||a===void 0?void 0:a.isLimitReached())}function ZU(e,t,n,i){e.register(0,({eventType:a,startTime:l})=>{const u=t.findTrackedSession(l),d=i.findView(l);if(!u||!d)return Yn;let f,h,g;return a===_e.VIEW?(f=n.getReplayStats(d.id)?!0:void 0,h=u.sessionReplay===1,g=d.sessionIsActive?void 0:!1):f=n.isRecording()?!0:void 0,{type:a,session:{id:u.id,type:"user",has_replay:f,sampled_for_replay:h,is_active:g}}}),e.register(1,({startTime:a})=>{const l=t.findTrackedSession(a);return l?{session:{id:l.id}}:Pt})}function eI(e){e.register(0,({eventType:t})=>({type:t,connectivity:PT()}))}function tI(e,t,n){e.register(0,({eventType:i})=>{const a=t.source;return{type:i,_oo:{format_version:2,drift:$k(),configuration:{session_sample_rate:va(t.sessionSampleRate,3),session_replay_sample_rate:va(t.sessionReplaySampleRate,3),profiling_sample_rate:va(t.profilingSampleRate,3),trace_sample_rate:va(t.traceSampleRate,3),beta_encode_cookie_options:t.betaEncodeCookieOptions},browser_sdk_version:_i()?"0.3.1":void 0,sdk_name:n},application:{id:t.applicationId},date:Dt(),source:a}}),e.register(1,()=>({application:{id:t.applicationId}}))}function nI(e,t){e.register(1,()=>t.isGranted()?Pt:Yn)}const rI=YT,iI=[_e.ACTION,_e.ERROR,_e.LONG_TASK,_e.RESOURCE,_e.VITAL];function sI(e){return{addEvent:(t,n,i,a)=>
9{iI.includes(n.type)&&e.notify(12,{startTime:t,rawRumEvent:n,domainContext:i,duration:a})}}}function aI(e,t){if(!t.metricsEnabled)return{stop:Me};const{unsubscribe:n}=e.subscribe(4,({initialViewMetrics:i})=>{!i.largestContentfulPaint||!i.navigationTimings||(Ug("Initial view metrics",{metrics:oI(i.largestContentfulPaint,i.navigationTimings)}),n())});return{stop:n}}function oI(e,t){return{lcp:{value:e.value},navigation:{domComplete:t.domComplete,domContentLoaded:t.domContentLoaded,domInteractive:t.domInteractive,firstByte:t.firstByte,loadEvent:t.loadEvent}}}function lI(e,t,n,i,a,l,u,d,f){const h=[],g=new jD,y=rI();g.subscribe(13,Pe=>jg("rum",Pe));const v=Pe=>{g.notify(14,{error:Pe}),Fl("Error reported to customer",{"error.message":Pe.message})},_=KT(e),S=_.subscribe(Pe=>{g.notify(11,Pe)});h.push(()=>S.unsubscribe());const E=XT("browser-rum-sdk",e,y,v,_,a);h.push(E.stop);const x=_i()?bU():vU(e,g,l);if(_i())EU(g);else{const Pe=wU(e,g,v,_,x.expireObservable,a);h.push(()=>Pe.stop()),jU(E,g,Pe.flushController.flushObservable)}const A=CD(),N=AU(e,location),{observable:R,stop:M}=kD();h.push(M),tI(y,e,f);const $=IU(y,e),B=MD(g);h.push(()=>B.stop());const G=xU(g,y,N,location);h.push(()=>G.stop());const X=kU(g,y,e);ZU(y,x,t,B),eI(y),nI(y,l);const se=cx(y,e,"rum",!0),te=dx(y,e,x,"rum"),he=ux(y,e,"rum"),{actionContexts:Le,addAction:vt,addEvent:Ke,stop:Ye}=uI(g,y,e,$,A,R,v);h.push(Ye);const{addTiming:V,startView:K,setViewName:J,setViewContext:ue,setViewContextProperty:fe,getViewContext:C,stop:H}=mU(g,y,e,location,A,R,N,t,B,i);h.push(H);const{stop:Y}=aI(g,E);h.push(Y);const{stop:ee}=mL(g,e,$);if(h.push(ee),e.trackLongTasks)if(_s(je.LONG_ANIMATION_FRAME)){const{stop:Pe}=GU(g,e);h.push(Pe)}else KU(g,e);const{addError:ce}=eL(g,e,d);d.unbuffer(),JD(g,e,x,te,he);const me=V2(g,$,u),Re=ND(e.applicationId,x,B,Le,G);return h.push(()=>n.stop()),{addAction:vt,addEvent:Ke,addError:ce,addTiming:V,addFeatureFlagEvaluation:X.addFeatureFlagEvaluation,startView:K,setViewContext:ue,setViewContextProperty:fe,getViewContext:C,setViewName:J,lifeCycle:g,viewHistory:B,session:x,stopSession:()=>x.expire(),getInternalContext:Re.get,startDurationVital:me.startDurationVital,stopDurationVital:me.stopDurationVital,addDurationVital:me.addDurationVital,addOperationStepVital:me.addOperationStepVital,globalContext:se,userContext:te,accountContext:he,telemetry:E,stop:()=>{h.forEach(Pe=>Pe())},hooks:y}}function uI(e,t,n,i,a,l,u){const d=JM(e,t,a,l,n),f=sI(e),h=VU(t,n),g=FU(n,t);return YU(t),JU(n,e,t,u),{pageStateHistory:i,addAction:d.addAction,addEvent:f.addEvent,actionContexts:d.actionContexts,stop:()=>{d.stop(),g.stop(),h.stop(),i.stop()}}}function cI(e,{session:t,viewContext:n,errorType:i}){const a=t?t.id:"no-session-id",l=[];l.push(`error-type=${i}`),n&&(l.push(`seed=${n.id}`),l.push(`from=${n.startClocks.timeStamp}`));const u=dI(e),d=`/rum/replay/sessions/${a}`;return`${u}${d}?${l.join("&")}`}function dI(e){const t=e.site,n=e.subdomain||fI(e);return`https://${n?`${n}.`:""}${t}`}function fI(e){switch(e.site){case jd:case jN:return"";case _T:return"";default:return}}function hI(e){return cI(e,{errorType:"slim-package"})}function mI(){let e=Me;return{start:Me,stop:Me,onRumStart(t,n){e=()=>hI(n)},isRecording:()=>!1,getReplayStats:()=>{},getSessionReplayLink:()=>e()}}function pI(){return{onRumStart:Me,stop:Me}}const Qx=AD(lI,mI(),pI(),{sdkName:"rum-slim"});DT(Un(),"OO_RUM",Qx);function ld(e,t,n){const i=n.getHandler(),a=Array.isArray(i)?i:[i];return AS[e]>=AS[n.getLevel()]&&a.includes(t)}const ge={ok:"ok",debug:"debug",info:"info",notice:"notice",warn:"warn",error:"error",critical:"critical",alert:"alert",emerg:"emerg"},AS={[ge.ok]:0,[ge.debug]:1,[ge.info]:2,[ge.notice]:4,[ge.warn]:5,[ge.error]:6,[ge.critical]:7,[ge.alert]:8,[ge.emerg]:9};function zd(e,{includeMessage:t=!1}={}){return{stack:e.stack,kind:e.type,message:t?e.message:void 0,causes:e.causes,fingerprint:e.fingerprint,handling:e.handling}}var gI=function(e,t,n,i){var a=arguments.length,l=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,t,n,i);else for(var d=e.length-1;d>=0;d--)(u=e[d])&&(l=(a<3?u(l):a>3?u(t,n,l):u(t,n))||l);return a>3&&l&&Object.defineProperty(t,n,l),l};const Ol={console:"console",http:"http"},yI=Object.keys(ge);class Ln{constructor(t,n,i=Ol.http,a=ge.debug,l={}){this.handleLogStrategy=t,this.handlerType=i,this.level=a,this.contextManager=Gl("logger"),this.tags=[],this.contextManager.setContext(l),n&&this.contextManager.setContextProperty("logger",{name:n})}logImplementation(t,n,i=ge.info,a,l){const u=ze(n);let d;if(a!=null){const f=Dd({originalError:a,nonErrorPrefix:"Provided",source:tn.LOGGER,handling:"handled",startClocks:wt()});d=Mn({error:zd(f,{includeMessage:!0})},f.context,u)}else d=u;this.handleLogStrategy({message:ze(t),context:d,status:i},this,l)}log(t,n,i=ge.info,a){let l;ld(i,Ol.http,this)&&(l=Pa("log")),this.logImplementation(t,n,i,a,l)}setContext(t){this.contextManager.setContext(t)}
9getContext(){return this.contextManager.getContext()}setContextProperty(t,n){this.contextManager.setContextProperty(t,n)}removeContextProperty(t){this.contextManager.removeContextProperty(t)}clearContext(){this.contextManager.clearContext()}addTag(t,n){this.tags.push(Qi(t,n))}removeTagsWithKey(t){const n=IT(t);this.tags=this.tags.filter(i=>i!==n&&!i.startsWith(`${n}:`))}getTags(){return this.tags.slice()}setHandler(t){this.handlerType=t}getHandler(){return this.handlerType}setLevel(t){this.level=t}getLevel(){return this.level}}gI([Pk],Ln.prototype,"logImplementation",null);Ln.prototype.ok=Ur(ge.ok);Ln.prototype.debug=Ur(ge.debug);Ln.prototype.info=Ur(ge.info);Ln.prototype.notice=Ur(ge.notice);Ln.prototype.warn=Ur(ge.warn);Ln.prototype.error=Ur(ge.error);Ln.prototype.critical=Ur(ge.critical);Ln.prototype.alert=Ur(ge.alert);Ln.prototype.emerg=Ur(ge.emerg);function Ur(e){return function(t,n,i){let a;ld(e,Ol.http,this)&&(a=Pa("log")),this.logImplementation(t,n,e,i,a)}}function OS(){return gs?{}:{view:{referrer:document.referrer,url:window.location.href}}}const vI=32*xi;function bI(e,t){e.usePciIntake===!0&&e.site&&e.site!=="datadoghq.com"&&be.warn("PCI compliance for Logs is only available for Datadog organizations in the US1 site. Default intake will be used.");const n=ET(e,t),i=CS(e.forwardConsoleLogs,sd(ct),"Forward Console Logs"),a=CS(e.forwardReports,sd(Ba),"Forward Reports");if(!(!n||!i||!a))return e.forwardErrorsToLogs&&!i.includes(ct.error)&&i.push(ct.error),{forwardErrorsToLogs:e.forwardErrorsToLogs!==!1,forwardConsoleLogs:i,forwardReports:a,requestErrorResponseLengthLimit:vI,...n}}function CS(e,t,n){if(e===void 0)return[];if(!(e==="all"||Array.isArray(e)&&e.every(i=>t.includes(i)))){be.error(`${n} should be "all" or an array with allowed values "${t.join('", "')}"`);return}return e==="all"?t:t2(e)}function _I(e){const t=TT(e);return{forward_errors_to_logs:e.forwardErrorsToLogs,forward_console_logs:e.forwardConsoleLogs,forward_reports:e.forwardReports,use_pci_intake:e.usePciIntake,...t}}function SI(e,t,n){const i=lx(),a=zg();Nm(a,xe.globalContext,i);const l=Vg();Nm(l,xe.accountContext,i);const u=$g();Nm(u,xe.userContext,i);let d,f;const h=t.observable.subscribe(g);function g(){if(!f||!d||!t.isGranted())return;h.unsubscribe();const y=n(d,f);i.drain(y)}return{init(y,v){if(!y){be.error("Missing configuration");return}if(xT(y.enableExperimentalFeatures),_i()&&(y=wI(y)),d=y,WT(_I(y)),f){Md("OO_LOGS",y);return}const _=bI(y,v);_&&(f=_,Id().subscribe(Me),t.tryToInit(_.trackingConsent),g())},get initConfiguration(){return d},globalContext:a,accountContext:l,userContext:u,getInternalContext:Me,handleLog(y,v,_,S=e(),E=Dt()){i.add(x=>x.handleLog(y,v,_,S,E))}}}function wI(e){return{...e,clientToken:"empty"}}function EI(e){const t=bT(),n=fx().observable;let i=SI(OS,t,(d,f)=>{const h=e(f,OS,t,n);return i=TI(d,h),h});const a=()=>i,l={},u=new Ln((...d)=>i.handleLog(...d));return jT({logger:u,init:d=>{const f=new Error().stack;jr(()=>i.init(d,f))},setTrackingConsent:le(d=>{t.update(d),_t({feature:"set-tracking-consent",tracking_consent:d})}),getGlobalContext:Ue(a,xe.globalContext,Ie.getContext),setGlobalContext:Ue(a,xe.globalContext,Ie.setContext),setGlobalContextProperty:Ue(a,xe.globalContext,Ie.setContextProperty),removeGlobalContextProperty:Ue(a,xe.globalContext,Ie.removeContextProperty),clearGlobalContext:Ue(a,xe.globalContext,Ie.clearContext),createLogger:le((d,f={})=>(l[d]=new Ln((...h)=>i.handleLog(...h),ze(d),f.handler,f.level,ze(f.context)),l[d])),getLogger:le(d=>l[d]),getInitConfiguration:le(()=>Ld(i.initConfiguration)),getInternalContext:le(d=>i.getInternalContext(d)),setUser:Ue(a,xe.userContext,Ie.setContext),getUser:Ue(a,xe.userContext,Ie.getContext),setUserProperty:Ue(a,xe.userContext,Ie.setContextProperty),removeUserProperty:Ue(a,xe.userContext,Ie.removeContextProperty),clearUser:Ue(a,xe.userContext,Ie.clearContext),setAccount:Ue(a,xe.accountContext,Ie.setContext),getAccount:Ue(a,xe.accountContext,Ie.getContext),setAccountProperty:Ue(a,xe.accountContext,Ie.setContextProperty),removeAccountProperty:Ue(a,xe.accountContext,Ie.removeContextProperty),clearAccount:Ue(a,xe.accountContext,Ie.clearContext)})}function TI(e,t){return{init:n=>{Md("OO_LOGS",n)}
9,initConfiguration:e,...t}}const xI="logs";function AI(e,t){const n=tx(e,xI,i=>Zx(e,i),t);return{findTrackedSession:(i,a={returnInactive:!1})=>{const l=n.findSession(i,a);return l&&l.trackingType==="1"?{id:l.id,anonymousId:l.anonymousId}:void 0},expireObservable:n.expireObservable}}function OI(e){const n=Zx(e)==="1"?{}:void 0;return{findTrackedSession:()=>n,expireObservable:new Oe}}function Zx(e,t){return CI(t)?t:hi(e.sessionSampleRate)?"1":"0"}function CI(e){return e==="0"||e==="1"}function RI(e,t,n,i,a,l){const u=yI.concat(["custom"]),d={};u.forEach(f=>{d[f]=Gc(f,a,l)}),t.subscribe(0,({rawLogsEvent:f,messageContext:h=void 0,savedCommonContext:g=void 0,domainContext:y,ootags:v=[]})=>{var _,S;const E=Td(f.date),x=g||i(),A=n.triggerHook(0,{startTime:E});if(A===Yn)return;const N=Ng(e),R=Mn({view:x.view},A,f,h,{ootags:N.concat(v).join(",")});((_=e.beforeSend)===null||_===void 0?void 0:_.call(e,R,y))===!1||R.origin!==tn.AGENT&&((S=d[R.status])!==null&&S!==void 0?S:d.custom).isLimitReached()||t.notify(1,R)})}const kI={[ct.log]:ge.info,[ct.debug]:ge.debug,[ct.info]:ge.info,[ct.warn]:ge.warn,[ct.error]:ge.error};function NI(e,t){const n=ox(e.forwardConsoleLogs).subscribe(i=>{var a;const l={rawLogsEvent:{date:Dt(),message:i.message,origin:tn.CONSOLE,error:i.error&&zd(i.error),status:kI[i.api]},messageContext:(a=i.error)===null||a===void 0?void 0:a.context,domainContext:{handlingStack:i.handlingStack}};t.notify(0,l)});return{stop:()=>{n.unsubscribe()}}}function jI(e,t){const n=MT(e,e.forwardReports).subscribe(i=>{let a=i.message,l;const u=i.originalError.type==="deprecation"?ge.warn:ge.error;u===ge.error?l=zd(i):i.stack&&(a+=` Found in ${pj(i.stack)}`),t.notify(0,{rawLogsEvent:{date:Dt(),message:a,origin:tn.REPORT,error:l,status:u}})});return{stop:()=>{n.unsubscribe()}}}function DI(e,t){if(!e.forwardErrorsToLogs)return{stop:Me};const n=(gs?new Oe:sx(e)).subscribe(u=>{u.state==="complete"&&l(ps.XHR,u)}),i=Id({responseBodyAction:u=>a(u)?2:0}).subscribe(u=>{u.state==="resolve"&&l(ps.FETCH,u)});function a(u){return!wT(u.url)&&(MI(u)||BT(u.status))}function l(u,d){if(!a(d))return;const f="error"in d&&d.error?Ka(Ga(d.error)):d.responseBody||"Failed to load",h={isAborted:d.isAborted,handlingStack:d.handlingStack};t.notify(0,{rawLogsEvent:{message:`${LI(u)} error ${d.method} ${d.url}`,date:d.startClocks.timeStamp,error:{stack:Ad(f,e.requestErrorResponseLengthLimit,"..."),handling:void 0},http:{method:d.method,status_code:d.status,url:d.url},status:ge.error,origin:tn.NETWORK},domainContext:h})}return{stop:()=>{n.unsubscribe(),i.unsubscribe()}}}function MI(e){return e.status===0&&e.responseType!=="opaque"}function LI(e){return ps.XHR===e?"XHR":"Fetch"}function UI(e,t,n){if(!e.forwardErrorsToLogs)return{stop:Me};const i=n.subscribe(a=>{if(a.type===0){const l=a.error;t.notify(0,{rawLogsEvent:{message:l.message,date:l.startClocks.timeStamp,error:zd(l),origin:tn.SOURCE,status:ge.error},messageContext:l.context})}});return{stop:()=>{i.unsubscribe()}}}const II=rx;function PI(e){function t(n,i,a,l,u){const d=Mn(i.getContext(),n.context);if(ld(n.status,Ol.console,i)&&VI(n,d),ld(n.status,Ol.http,i)){const f={rawLogsEvent:{date:u||Dt(),message:n.message,status:n.status,origin:tn.LOGGER},messageContext:d,savedCommonContext:l,ootags:i.getTags()};a&&(f.domainContext={handlingStack:a}),e.notify(0,f)}}return{handleLog:t}}const BI={[ge.ok]:ct.debug,[ge.debug]:ct.debug,[ge.info]:ct.info,[ge.notice]:ct.info,[ge.warn]:ct.warn,[ge.error]:ct.error,[ge.critical]:ct.error,[ge.alert]:ct.error,[ge.emerg]:ct.error};function VI({status:e,message:t},n){ns[BI[e]].call(tr,t,n)}function zI(e,t,n,i,a){const l=[e.logsEndpointBuilder];e.replica&&l.push(e.replica.logsEndpointBuilder);const u=Mg({encoder:Ig(),request:Dg(l,n),flushController:Lg({pageMayExitObservable:i,sessionExpireObservable:a.expireObservable})});return t.subscribe(1,d=>{u.add(d)}),u}function $I(e){const t=Ya();e.subscribe(1,n=>{t.send("log",n)})}function HI(e){return{get:t=>{const n=e.findTrackedSession(t);if(n)return{session_id:n.id}}}}function qI(e){return t=>{e.notify(0,{rawLogsEvent:{message:t.message,date:t.startClocks.timeStamp,origin:tn.AGENT,status:ge.error}}),Fl("Error reported to customer",{"error.message":t.message})}}const FI=YT;function GI(e){const t=Kn;e.register(0,({startTime:a})=>{const l=n(a);return l||Pt}),e.register(1,({startTime:a})=>{var l,u;const d=n(a);return d?{application:{id:d.application_id},view:{id:(l=d.view)===null||l===void 0?void 0:l.id},action:{id:(u=d.user_action)===null||u===void 0?void 0:u.id}}:Pt});function n(a){const u=Ud()?t.OO_RUM_SYNTHETICS:t.OO_RUM,d=i(a,u);if(d)return d}function i(a,l){if(l&&l.getInternalContext)return l.getInternalContext(a)}}function KI(e,t,n){e.register(0,({startTime:i})=>{const a=n.findTrackedSession(i);return n.findTrackedSession(i,{returnInactive:!0})?{service:t.service,session_id:a?a.id:void 0,session:a?{id:a.id}:void 0}:Yn}),e.register(1,({startTime:i})=>{const a=n.findTrackedSession(i);return!a||!a.id?Pt:{session:{id:a.id}}})}function YI(e,t){function n(){return t.isGranted()?Pt:Yn}e.register(0,n),e.register(1,n)}const Pm="logs";function XI(e,t,n,i){const a=new II,l=FI(),u=[];a.subscribe(1,x=>jg("logs",x));const d=qI(a),f=gs?new Oe:KT(e),h=XT("browser-logs-sdk",e,l,d,f,Ig);u.push(h.stop);const g=e.sessionStoreStrategyType&&!_i()&&!Ud()?AI(e,n):OI(e);YI(l,n),KI(l,e,g);const y=ux(l,e,Pm),v=dx(l,e,g,Pm),_=cx(l,e,Pm,!1);GI(l),DI(e,a),UI(e,a,i),i.unbuffer(),NI(e,a),jI(e,a);const{handleLog:S}=PI(a);if(RI(e,a,l,t,d),_i())$I(a);else{const{stop:x}=zI(e,a,d,f,g);u.push(()=>x())}const E=HI(g);return{handleLog:S,getInternalContext:E.get,accountContext:y,globalContext:_,userContext:v,stop:()=>{u.forEach(x=>x())}}}const eA=EI(XI);DT(Un(),"OO_LOGS",eA);try{Qx.init({applicationId:"b813435440b03a83",clientToken:"rum8BDEKeQKnl9dpbIe",site:"api.openobserve.ai",organizationIdentifier:"3CPrd7RqxHiP0ieo419hGsI3hJ3",service:"opportunitythroughsport.org",env:"production",version:"0.0.32",trackResources:!0,trackLongTasks:!0,trackUserInteractions:!0,insecureHTTP:!1,apiVersion:"v1",defaultPrivacyLevel:"allow",sessionSampleRate:100}),eA.init({clientToken:"rum8BDEKeQKnl9dpbIe",site:"api.openobserve.ai",organizationIdentifier:"3CPrd7RqxHiP0ieo419hGsI3hJ3",service:"opportunitythroughsport.org",env:"production",version:"0.0.32",forwardErrorsToLogs:!0,insecureHTTP:!1,apiVersion:"v1"})}catch(e){console.warn("RemixerObserve failed to initialize",e)}
vendor: 9,312 bytes, lines 9-25
9function Ja(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function WI(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,a.get?a:{enumerable:!0,get:function(){return e[i]}})}),n}var Bm={exports:{}},il={};/**
10 * @license React
11 * react-jsx-runtime.production.js
12 *
13 * Copyright (c) Meta Platforms, Inc. and affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var RS;function JI(){if(RS)return il;RS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,a,l){var u=null;if(l!==void 0&&(u=""+l),a.key!==void 0&&(u=""+a.key),"key"in a){l={};for(var d in a)d!=="key"&&(l[d]=a[d])}else l=a;return a=l.ref,{$$typeof:e,type:i,key:u,ref:a!==void 0?a:null,props:l}}return il.Fragment=t,il.jsx=n,il.jsxs=n,il}var kS;function QI(){return kS||(kS=1,Bm.exports=JI()),Bm.exports}var T=QI(),Vm={exports:{}},de={};/**
18 * @license React
19 * react.production.js
20 *
21 * Copyright (c) Meta Platforms, Inc. and affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var NS;function ZI(){if(NS)return de;NS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),v=Symbol.iterator;function _(C){return C===null||typeof C!="object"?null:(C=v&&C[v]||C["@@iterator"],typeof C=="function"?C:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,x={};function A(C,H,Y){this.props=C,this.context=H,this.refs=x,this.updater=Y||S}A.prototype.isReactComponent={},A.prototype.setState=function(C,H){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,H,"setState")},A.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function N(){}N.prototype=A.prototype;function R(C,H,Y){this.props=C,this.context=H,this.refs=x,this.updater=Y||S}var M=R.prototype=new N;M.constructor=R,E(M,A.prototype),M.isPureReactComponent=!0;var $=Array.isArray;function B(){}var G={H:null,A:null,T:null,S:null},X=Object.prototype.hasOwnProperty;function se(C,H,Y){var ee=Y.ref;return{$$typeof:e,type:C,key:H,ref:ee!==void 0?ee:null,props:Y}}function te(C,H){return se(C.type,H,C.props)}function he(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function Le(C){var H={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(Y){return H[Y]})}var vt=/\/+/g;function Ke(C,H){return typeof C=="object"&&C!==null&&C.key!=null?Le(""+C.key):H.toString(36)}function Ye(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(B,B):(C.status="pending",C.then(function(H){C.status==="pending"&&(C.status="fulfilled",C.value=H)},function(H){C.status==="pending"&&(C.status="rejected",C.reason=H)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function V(C,H,Y,ee,ce){var me=typeof C;(me==="undefined"||me==="boolean")&&(C=null);var Re=!1;if(C===null)Re=!0;else switch(me){case"bigint":case"string":case"number":Re=!0;break;case"object":switch(C.$$typeof){case e:case t:Re=!0;break;case g:return Re=C._init,V(Re(C._payload),H,Y,ee,ce)}}if(Re)return ce=ce(C),Re=ee===""?"."+Ke(C,0):ee,$(ce)?(Y="",Re!=null&&(Y=Re.replace(vt,"$&/")+"/"),V(ce,H,Y,"",function(so){return so})):ce!=null&&(he(ce)&&(ce=te(ce,Y+(ce.key==null||C&&C.key===ce.key?"":(""+ce.key).replace(vt,"$&/")+"/")+Re)),H.push(ce)),1;Re=0;var Pe=ee===""?".":ee+":";if($(C))for(var at=0;at<C.length;at++)ee=C[at],me=Pe+Ke(ee,at),Re+=V(ee,H,Y,me,ce);else if(at=_(C),typeof at=="function")for(C=at.call(C),at=0;!(ee=C.next()).done;)ee=ee.value,me=Pe+Ke(ee,at++),Re+=V(ee,H,Y,me,ce);else if(me==="object"){if(typeof C.then=="function")return V(Ye(C),H,Y,ee,ce);throw H=String(C),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return Re}function K(C,H,Y){if(C==null)return C;var ee=[],ce=0;return V(C,ee,"","",function(me){return H.call(Y,me,ce++)}),ee}function J(C){if(C._status===-1){var H=C._result;H=H(),H.then(function(Y){(C._status===0||C._status===-1)&&(C._status=1,C._result=Y)},function(Y){(C._status===0||C._status===-1)&&(C._status=2,C._result=Y)}),C._status===-1&&(C._status=0,C._result=H)}if(C._status===1)return C._result.default;throw C._result}var ue=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},fe={map:K,forEach:function(C,H,Y){K(C,function(){H.apply(this,arguments)},Y)},count:function(C){var H=0;return K(C,function(){H++}),H},toArray:function(C){return K(C,function(H){return H})||[]},only:function(C){if(!he(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return de.Activity=y,de.Children=fe,de.Component=A,de.Fragment=n,de.Profiler=a,de.PureComponent=R,de.StrictMode=i,de.Suspense=f,de.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=G,de.__COMPILER_RUNTIME={__proto__:null,c:function(C){return G.H.useMemoCache(C)}},de.cache=function(C){return function(){return C.apply(null,arguments)}},de.cacheSignal=function(){return null},de.cloneElement=function(C,H,Y){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var ee=E({},C.props),ce=C.key;if(H!=null)for(me in H.key!==void 0&&(ce=""+H.key),H)!X.call(H,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&H.ref===void 0||(ee[me]=H[me]);var me=arguments.length-2;if(me===1)ee.children=Y;else if(1<me){for(var Re=Array(me),Pe=0;Pe<me;Pe++)Re[Pe]=arguments[Pe+2];ee.children=Re}return se(C.type,ce,ee)},de.createContext=function(C){return C={$$typeof:u,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:l,_context:C},C},de.createElement=function(C,H,Y){var ee,ce={},me=null;if(H!=null)for(ee in H.key!==void 0&&(me=""+H.key),H)X.call(H,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(ce[ee]=H[ee]);var Re=arguments.length-2;if(Re===1)ce.children=Y;else if(1<Re){for(var Pe=Array(Re),at=0;at<Re;at++)Pe[at]=arguments[at+2];ce.children=Pe}if(C&&C.defaultProps)for(ee in Re=C.defaultProps,Re)ce[ee]===void 0&&(ce[ee]=Re[ee]);return se(C,me,ce)},de.createRef=function(){return{current:null}},de.forwardRef=function(C){return{$$typeof:d,render:C}},de.isValidElement=he,de.lazy=function(C){return{$$typeof:g,_payload:{_status:-1,_result:C},_init:J}},de.memo=function(C,H){return{$$typeof:h,type:C,compare:H===void 0?null:H}},de.startTransition=function(C){var H=G.T,Y={};G.T=Y;try{var ee=C(),ce=G.S;ce!==null&&ce(Y,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(B,ue)}catch(me){ue(me)}finally{H!==null&&Y.types!==null&&(H.types=Y.types),G.T=H}},de.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},de.use=function(C){return G.H.use(C)},de.useActionState=function(C,H,Y){return G.H.useActionState(C,H,Y)},de.useCallback=function(C,H){return G.H.useCallback(C,H)},de.useContext=function(C){return G.H.useContext(C)},de.useDebugValue=function(){},de.useDeferredValue=function(C,H){return G.H.useDeferredValue(C,H)},de.useEffect=function(C,H){return G.H.useEffect(C,H)},de.useEffectEvent=function(C){return G.H.useEffectEvent(C)},de.useId=function(){return G.H.useId()},de.useImperativeHandle=function(C,H,Y){return G.H.useImperativeHandle(C,H,Y)},de.useInsertionEffect=function(C,H){return G.H.useInsertionEffect(C,H)},de.useLayoutEffect=function(C,H){return G.H.useLayoutEffect(C,H)},de.useMemo=function(C,H){return G.H.useMemo(C,H)},de.useOptimistic=function(C,H){return G.H.useOptimistic(C,H)},de.useReducer=function(C,H,Y){return G.H.useReducer(C,H,Y)},de.useRef=function(C){return G.H.useRef(C)},de.useState=function(C){return G.H.useState(C)},de.useSyncExternalStore=function(C,H,Y){return G.H.useSyncExternalStore(C,H,Y)},de.useTransition=function(){return G.H.useTransition()},de.version="19.2.0",de}var jS;
vendor: 9,192 bytes, lines 25-49
25function Kg(){return jS||(jS=1,Vm.exports=ZI()),Vm.exports}var D=Kg();const st=Ja(D);var zm={exports:{}},sl={},$m={exports:{}},Hm={};/**
26 * @license React
27 * scheduler.production.js
28 *
29 * Copyright (c) Meta Platforms, Inc. and affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var DS;function eP(){return DS||(DS=1,(function(e){function t(V,K){var J=V.length;V.push(K);e:for(;0<J;){var ue=J-1>>>1,fe=V[ue];if(0<a(fe,K))V[ue]=K,V[J]=fe,J=ue;else break e}}function n(V){return V.length===0?null:V[0]}function i(V){if(V.length===0)return null;var K=V[0],J=V.pop();if(J!==K){V[0]=J;e:for(var ue=0,fe=V.length,C=fe>>>1;ue<C;){var H=2*(ue+1)-1,Y=V[H],ee=H+1,ce=V[ee];if(0>a(Y,J))ee<fe&&0>a(ce,Y)?(V[ue]=ce,V[ee]=J,ue=ee):(V[ue]=Y,V[H]=J,ue=H);else if(ee<fe&&0>a(ce,J))V[ue]=ce,V[ee]=J,ue=ee;else break e}}return K}function a(V,K){var J=V.sortIndex-K.sortIndex;return J!==0?J:V.id-K.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var f=[],h=[],g=1,y=null,v=3,_=!1,S=!1,E=!1,x=!1,A=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function M(V){for(var K=n(h);K!==null;){if(K.callback===null)i(h);else if(K.startTime<=V)i(h),K.sortIndex=K.expirationTime,t(f,K);else break;K=n(h)}}function $(V){if(E=!1,M(V),!S)if(n(f)!==null)S=!0,B||(B=!0,Le());else{var K=n(h);K!==null&&Ye($,K.startTime-V)}}var B=!1,G=-1,X=5,se=-1;function te(){return x?!0:!(e.unstable_now()-se<X)}function he(){if(x=!1,B){var V=e.unstable_now();se=V;var K=!0;try{e:{S=!1,E&&(E=!1,N(G),G=-1),_=!0;var J=v;try{t:{for(M(V),y=n(f);y!==null&&!(y.expirationTime>V&&te());){var ue=y.callback;if(typeof ue=="function"){y.callback=null,v=y.priorityLevel;var fe=ue(y.expirationTime<=V);if(V=e.unstable_now(),typeof fe=="function"){y.callback=fe,M(V),K=!0;break t}y===n(f)&&i(f),M(V)}else i(f);y=n(f)}if(y!==null)K=!0;else{var C=n(h);C!==null&&Ye($,C.startTime-V),K=!1}}break e}finally{y=null,v=J,_=!1}K=void 0}}finally{K?Le():B=!1}}}var Le;if(typeof R=="function")Le=function(){R(he)};else if(typeof MessageChannel<"u"){var vt=new MessageChannel,Ke=vt.port2;vt.port1.onmessage=he,Le=function(){Ke.postMessage(null)}}else Le=function(){A(he,0)};function Ye(V,K){G=A(function(){V(e.unstable_now())},K)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(V){V.callback=null},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(V){switch(v){case 1:case 2:case 3:var K=3;break;default:K=v}var J=v;v=K;try{return V()}finally{v=J}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(V,K){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var J=v;v=V;try{return K()}finally{v=J}},e.unstable_scheduleCallback=function(V,K,J){var ue=e.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?ue+J:ue):J=ue,V){case 1:var fe=-1;break;case 2:fe=250;break;case 5:fe=1073741823;break;case 4:fe=1e4;break;default:fe=5e3}return fe=J+fe,V={id:g++,callback:K,priorityLevel:V,startTime:J,expirationTime:fe,sortIndex:-1},J>ue?(V.sortIndex=J,t(h,V),n(f)===null&&V===n(h)&&(E?(N(G),G=-1):E=!0,Ye($,J-ue))):(V.sortIndex=fe,t(f,V),S||_||(S=!0,B||(B=!0,Le()))),V},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(V){var K=v;return function(){var J=v;v=K;try{return V.apply(this,arguments)}finally{v=J}}}})(Hm)),Hm}var MS;function tP(){return MS||(MS=1,$m.exports=eP()),$m.exports}var qm={exports:{}},Mt={};/**
34 * @license React
35 * react-dom.production.js
36 *
37 * Copyright (c) Meta Platforms, Inc. and affiliates.
38 *
39 * This source code is licensed under the MIT license found in the
40 * LICENSE file in the root directory of this source tree.
41 */var LS;function nP(){if(LS)return Mt;LS=1;var e=Kg();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)h+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function l(f,h,g){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:y==null?null:""+y,children:f,containerInfo:h,implementation:g}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Mt.createPortal=function(f,h){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return l(f,h,null,g)},Mt.flushSync=function(f){var h=u.T,g=i.p;try{if(u.T=null,i.p=2,f)return f()}finally{u.T=h,i.p=g,i.d.f()}},Mt.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(f,h))},Mt.prefetchDNS=function(f){typeof f=="string"&&i.d.D(f)},Mt.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var g=h.as,y=d(g,h.crossOrigin),v=typeof h.integrity=="string"?h.integrity:void 0,_=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;g==="style"?i.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:v,fetchPriority:_}):g==="script"&&i.d.X(f,{crossOrigin:y,integrity:v,fetchPriority:_,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Mt.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var g=d(h.as,h.crossOrigin);i.d.M(f,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(f)},Mt.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var g=h.as,y=d(g,h.crossOrigin);i.d.L(f,g,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Mt.preloadModule=function(f,h){if(typeof f=="string")if(h){var g=d(h.as,h.crossOrigin);i.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(f)},Mt.requestFormReset=function(f){i.d.r(f)},Mt.unstable_batchedUpdates=function(f,h){return f(h)},Mt.useFormState=function(f,h,g){return u.H.useFormState(f,h,g)},Mt.useFormStatus=function(){return u.H.useHostTransitionStatus()},Mt.version="19.2.0",Mt}var US;function rP(){if(US)return qm.exports;US=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),qm.exports=nP(),qm.exports}/**
42 * @license React
43 * react-dom-client.production.js
44 *
45 * Copyright (c) Meta Platforms, Inc. and affiliates.
46 *
47 * This source code is licensed under the MIT license found in the
48 * LICENSE file in the root directory of this source tree.
49 */var IS;function iP(){if(IS)return sl;IS=1;var e=tP(),t=Kg(),n=rP();function i(r){var s="https://react.dev/errors/"+r;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)s+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+r+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function l(r){var s=r,o=r;if(r.alternate)for(;s.return;)s=s.return;else{r=s;do s=r,(s.flags&4098)!==0&&(o=s.return),r=s.return;while(r)}return s.tag===3?o:null}function u(r){if(r.tag===13){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function d(r){if(r.tag===31){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function f(r){if(l(r)!==r)throw Error(i(188))}function h(r){var s=r.alternate;
vendor: 10,376 bytes, lines 49-56
49if(!s){if(s=l(r),s===null)throw Error(i(188));return s!==r?null:r}for(var o=r,c=s;;){var m=o.return;if(m===null)break;var p=m.alternate;if(p===null){if(c=m.return,c!==null){o=c;continue}break}if(m.child===p.child){for(p=m.child;p;){if(p===o)return f(m),r;if(p===c)return f(m),s;p=p.sibling}throw Error(i(188))}if(o.return!==c.return)o=m,c=p;else{for(var b=!1,w=m.child;w;){if(w===o){b=!0,o=m,c=p;break}if(w===c){b=!0,c=m,o=p;break}w=w.sibling}if(!b){for(w=p.child;w;){if(w===o){b=!0,o=p,c=m;break}if(w===c){b=!0,c=p,o=m;break}w=w.sibling}if(!b)throw Error(i(189))}}if(o.alternate!==c)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?r:s}function g(r){var s=r.tag;if(s===5||s===26||s===27||s===6)return r;for(r=r.child;r!==null;){if(s=g(r),s!==null)return s;r=r.sibling}return null}var y=Object.assign,v=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),R=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),te=Symbol.for("react.memo_cache_sentinel"),he=Symbol.iterator;function Le(r){return r===null||typeof r!="object"?null:(r=he&&r[he]||r["@@iterator"],typeof r=="function"?r:null)}var vt=Symbol.for("react.client.reference");function Ke(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===vt?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case E:return"Fragment";case A:return"Profiler";case x:return"StrictMode";case $:return"Suspense";case B:return"SuspenseList";case se:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case S:return"Portal";case R:return r.displayName||"Context";case N:return(r._context.displayName||"Context")+".Consumer";case M:var s=r.render;return r=r.displayName,r||(r=s.displayName||s.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case G:return s=r.displayName||null,s!==null?s:Ke(r.type)||"Memo";case X:s=r._payload,r=r._init;try{return Ke(r(s))}catch{}}return null}var Ye=Array.isArray,V=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},ue=[],fe=-1;function C(r){return{current:r}}function H(r){0>fe||(r.current=ue[fe],ue[fe]=null,fe--)}function Y(r,s){fe++,ue[fe]=r.current,r.current=s}var ee=C(null),ce=C(null),me=C(null),Re=C(null);function Pe(r,s){switch(Y(me,s),Y(ce,r),Y(ee,null),s.nodeType){case 9:case 11:r=(r=s.documentElement)&&(r=r.namespaceURI)?c_(r):0;break;default:if(r=s.tagName,s=s.namespaceURI)s=c_(s),r=d_(s,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}H(ee),Y(ee,r)}function at(){H(ee),H(ce),H(me)}function so(r){r.memoizedState!==null&&Y(Re,r);var s=ee.current,o=d_(s,r.type);s!==o&&(Y(ce,r),Y(ee,o))}function iu(r){ce.current===r&&(H(ee),H(ce)),Re.current===r&&(H(Re),Xo._currentValue=J)}var Zd,Vy;function Ci(r){if(Zd===void 0)try{throw Error()}catch(o){var s=o.stack.trim().match(/\n( *(at )?)/);Zd=s&&s[1]||"",Vy=-1<o.stack.indexOf(`
50    at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
51`+Zd+r+Vy}var ef=!1;function tf(r,s){if(!r||ef)return"";ef=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(s){var F=function(){throw Error()};if(Object.defineProperty(F.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(F,[])}catch(P){var I=P}Reflect.construct(r,[],F)}else{try{F.call()}catch(P){I=P}r.call(F.prototype)}}else{try{throw Error()}catch(P){I=P}(F=r())&&typeof F.catch=="function"&&F.catch(function(){})}}catch(P){if(P&&I&&typeof P.stack=="string")return[P.stack,I.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=c.DetermineComponentFrameRoot(),b=p[0],w=p[1];if(b&&w){var O=b.split(`
52`),U=w.split(`
53`);for(m=c=0;c<O.length&&!O[c].includes("DetermineComponentFrameRoot");)c++;for(;m<U.length&&!U[m].includes("DetermineComponentFrameRoot");)m++;if(c===O.length||m===U.length)for(c=O.length-1,m=U.length-1;1<=c&&0<=m&&O[c]!==U[m];)m--;for(;1<=c&&0<=m;c--,m--)if(O[c]!==U[m]){if(c!==1||m!==1)do if(c--,m--,0>m||O[c]!==U[m]){var z=`
54`+O[c].replace(" at new "," at ");return r.displayName&&z.includes("<anonymous>")&&(z=z.replace("<anonymous>",r.displayName)),z}while(1<=c&&0<=m);break}}}finally{ef=!1,Error.prepareStackTrace=o}return(o=r?r.displayName||r.name:"")?Ci(o):""}function cC(r,s){switch(r.tag){case 26:case 27:case 5:return Ci(r.type);case 16:return Ci("Lazy");case 13:return r.child!==s&&s!==null?Ci("Suspense Fallback"):Ci("Suspense");case 19:return Ci("SuspenseList");case 0:case 15:return tf(r.type,!1);case 11:return tf(r.type.render,!1);case 1:return tf(r.type,!0);case 31:return Ci("Activity");default:return""}}function zy(r){try{var s="",o=null;do s+=cC(r,o),o=r,r=r.return;while(r);return s}catch(c){return`
55Error generating stack: `+c.message+`
56`+c.stack}}var nf=Object.prototype.hasOwnProperty,rf=e.unstable_scheduleCallback,sf=e.unstable_cancelCallback,dC=e.unstable_shouldYield,fC=e.unstable_requestPaint,nn=e.unstable_now,hC=e.unstable_getCurrentPriorityLevel,$y=e.unstable_ImmediatePriority,Hy=e.unstable_UserBlockingPriority,su=e.unstable_NormalPriority,mC=e.unstable_LowPriority,qy=e.unstable_IdlePriority,pC=e.log,gC=e.unstable_setDisableYieldValue,ao=null,rn=null;function Br(r){if(typeof pC=="function"&&gC(r),rn&&typeof rn.setStrictMode=="function")try{rn.setStrictMode(ao,r)}catch{}}var sn=Math.clz32?Math.clz32:bC,yC=Math.log,vC=Math.LN2;function bC(r){return r>>>=0,r===0?32:31-(yC(r)/vC|0)|0}var au=256,ou=262144,lu=4194304;function Ri(r){var s=r&42;if(s!==0)return s;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function uu(r,s,o){var c=r.pendingLanes;if(c===0)return 0;var m=0,p=r.suspendedLanes,b=r.pingedLanes;r=r.warmLanes;var w=c&134217727;return w!==0?(c=w&~p,c!==0?m=Ri(c):(b&=w,b!==0?m=Ri(b):o||(o=w&~r,o!==0&&(m=Ri(o))))):(w=c&~p,w!==0?m=Ri(w):b!==0?m=Ri(b):o||(o=c&~r,o!==0&&(m=Ri(o)))),m===0?0:s!==0&&s!==m&&(s&p)===0&&(p=m&-m,o=s&-s,p>=o||p===32&&(o&4194048)!==0)?s:m}function oo(r,s){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&s)===0}function _C(r,s){switch(r){case 1:case 2:case 4:case 8:case 64:return s+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Fy(){var r=lu;return lu<<=1,(lu&62914560)===0&&(lu=4194304),r}function af(r){for(var s=[],o=0;31>o;o++)s.push(r);return s}function lo(r,s){r.pendingLanes|=s,s!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function SC(r,s,o,c,m,p){var b=r.pendingLanes;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=o,r.entangledLanes&=o,r.errorRecoveryDisabledLanes&=o,r.shellSuspendCounter=0;var w=r.entanglements,O=r.expirationTimes,U=r.hiddenUpdates;for(o=b&~o;0<o;){var z=31-sn(o),F=1<<z;w[z]=0,O[z]=-1;var I=U[z];if(I!==null)for(U[z]=null,z=0;z<I.length;z++){var P=I[z];P!==null&&(P.lane&=-536870913)}o&=~F}c!==0&&Gy(r,c,0),p!==0&&m===0&&r.tag!==0&&(r.suspendedLanes|=p&~(b&~s))}function Gy(r,s,o){r.pendingLanes|=s,r.suspendedLanes&=~s;var c=31-sn(s);r.entangledLanes|=s,r.entanglements[c]=r.entanglements[c]|1073741824|o&261930}function Ky(r,s){var o=r.entangledLanes|=s;for(r=r.entanglements;o;){var c=31-sn(o),m=1<<c;m&s|r[c]&s&&(r[c]|=s),o&=~m}}function Yy(r,s){var o=s&-s;return o=(o&42)!==0?1:of(o),(o&(r.suspendedLanes|s))!==0?0:o}function of(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function lf(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function Xy(){var r=K.p;return r!==0?r:(r=window.event,r===void 0?32:M_(r.type))}function Wy(r,s){var o=K.p;try{return K.p=r,s()}finally{K.p=o}}var Vr=Math.random().toString(36).slice(2),At="__reactFiber$"+Vr,Kt="__reactProps$"+Vr,Ss="__reactContainer$"+Vr,uf="__reactEvents$"+Vr,wC="__reactListeners$"+Vr,EC="__reactHandles$"+Vr,Jy="__reactResources$"+Vr,uo="__reactMarker$"+Vr;function cf(r){delete r[At],delete r[Kt],delete r[uf],delete r[wC],delete r[EC]}function ws(r){var s=r[At];if(s)return s;for(var o=r.parentNode;o;){if(s=o[Ss]||o[At]){if(o=s.alternate,s.child!==null||o!==null&&o.child!==null)for(r=v_(r);r!==null;){if(o=r[At])return o;r=v_(r)}return s}r=o,o=r.parentNode}return null}function Es(r){if(r=r[At]||r[Ss]){var s=r.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return r}return null}function co(r){var s=r.tag;if(s===5||s===26||s===27||s===6)return r.stateNode;throw Error(i(33))}function Ts(r){var s=r[Jy];return s||(s=r[Jy]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Et(r){r[uo]=!0}var Qy=new Set,Zy={};function ki(r,s){xs(r,s),xs(r+"Capture",s)}function xs(r,s){for(Zy[r]=s,r=0;r<s.length;r++)Qy.add(s[r])}var TC=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
vendor: 6,765 bytes, line 56
56037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ev={},tv={};function xC(r){return nf.call(tv,r)?!0:nf.call(ev,r)?!1:TC.test(r)?tv[r]=!0:(ev[r]=!0,!1)}function cu(r,s,o){if(xC(s))if(o===null)r.removeAttribute(s);else{switch(typeof o){case"undefined":case"function":case"symbol":r.removeAttribute(s);return;case"boolean":var c=s.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){r.removeAttribute(s);return}}r.setAttribute(s,""+o)}}function du(r,s,o){if(o===null)r.removeAttribute(s);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(s);return}r.setAttribute(s,""+o)}}function lr(r,s,o,c){if(c===null)r.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(o);return}r.setAttributeNS(s,o,""+c)}}function yn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function nv(r){var s=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function AC(r,s,o){var c=Object.getOwnPropertyDescriptor(r.constructor.prototype,s);if(!r.hasOwnProperty(s)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var m=c.get,p=c.set;return Object.defineProperty(r,s,{configurable:!0,get:function(){return m.call(this)},set:function(b){o=""+b,p.call(this,b)}}),Object.defineProperty(r,s,{enumerable:c.enumerable}),{getValue:function(){return o},setValue:function(b){o=""+b},stopTracking:function(){r._valueTracker=null,delete r[s]}}}}function df(r){if(!r._valueTracker){var s=nv(r)?"checked":"value";r._valueTracker=AC(r,s,""+r[s])}}function rv(r){if(!r)return!1;var s=r._valueTracker;if(!s)return!0;var o=s.getValue(),c="";return r&&(c=nv(r)?r.checked?"true":"false":r.value),r=c,r!==o?(s.setValue(r),!0):!1}function fu(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var OC=/[\n"\\]/g;function vn(r){return r.replace(OC,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function ff(r,s,o,c,m,p,b,w){r.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?r.type=b:r.removeAttribute("type"),s!=null?b==="number"?(s===0&&r.value===""||r.value!=s)&&(r.value=""+yn(s)):r.value!==""+yn(s)&&(r.value=""+yn(s)):b!=="submit"&&b!=="reset"||r.removeAttribute("value"),s!=null?hf(r,b,yn(s)):o!=null?hf(r,b,yn(o)):c!=null&&r.removeAttribute("value"),m==null&&p!=null&&(r.defaultChecked=!!p),m!=null&&(r.checked=m&&typeof m!="function"&&typeof m!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?r.name=""+yn(w):r.removeAttribute("name")}function iv(r,s,o,c,m,p,b,w){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(r.type=p),s!=null||o!=null){if(!(p!=="submit"&&p!=="reset"||s!=null)){df(r);return}o=o!=null?""+yn(o):"",s=s!=null?""+yn(s):o,w||s===r.value||(r.value=s),r.defaultValue=s}c=c??m,c=typeof c!="function"&&typeof c!="symbol"&&!!c,r.checked=w?r.checked:!!c,r.defaultChecked=!!c,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(r.name=b),df(r)}function hf(r,s,o){s==="number"&&fu(r.ownerDocument)===r||r.defaultValue===""+o||(r.defaultValue=""+o)}function As(r,s,o,c){if(r=r.options,s){s={};for(var m=0;m<o.length;m++)s["$"+o[m]]=!0;for(o=0;o<r.length;o++)m=s.hasOwnProperty("$"+r[o].value),r[o].selected!==m&&(r[o].selected=m),m&&c&&(r[o].defaultSelected=!0)}else{for(o=""+yn(o),s=null,m=0;m<r.length;m++){if(r[m].value===o){r[m].selected=!0,c&&(r[m].defaultSelected=!0);return}s!==null||r[m].disabled||(s=r[m])}s!==null&&(s.selected=!0)}}function sv(r,s,o){if(s!=null&&(s=""+yn(s),s!==r.value&&(r.value=s),o==null)){r.defaultValue!==s&&(r.defaultValue=s);return}r.defaultValue=o!=null?""+yn(o):""}function av(r,s,o,c){if(s==null){if(c!=null){if(o!=null)throw Error(i(92));if(Ye(c)){if(1<c.length)throw Error(i(93));c=c[0]}o=c}o==null&&(o=""),s=o}o=yn(s),r.defaultValue=o,c=r.textContent,c===o&&c!==""&&c!==null&&(r.value=c),df(r)}function Os(r,s){if(s){var o=r.firstChild;if(o&&o===r.lastChild&&o.nodeType===3){o.nodeValue=s;return}}r.textContent=s}var CC=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function ov(r,s,o){var c=s.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?c?r.setProperty(s,""):s==="float"?r.cssFloat="":r[s]="":c?r.setProperty(s,o):typeof o!="number"||o===0||CC.has(s)?s==="float"?r.cssFloat=o:r[s]=(""+o).trim():r[s]=o+"px"}function lv(r,s,o){if(s!=null&&typeof s!="object")throw Error(i(62));if(r=r.style,o!=null){for(var c in o)!o.hasOwnProperty(c)||s!=null&&s.hasOwnProperty(c)||(c.indexOf("--")===0?r.setProperty(c,""):c==="float"?r.cssFloat="":r[c]="");for(var m in s)c=s[m],s.hasOwnProperty(m)&&o[m]!==c&&ov(r,m,c)}else for(var p in s)s.hasOwnProperty(p)&&ov(r,p,s[p])}function mf(r){if(r.indexOf("-")===-1)return!1;switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var RC=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
56dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),kC=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function hu(r){return kC.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function ur(){}var pf=null;function gf(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Cs=null,Rs=null;function uv(r){var s=Es(r);if(s&&(r=s.stateNode)){var o=r[Kt]||null;e:switch(r=s.stateNode,s.type){case"input":if(ff(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),s=o.name,o.type==="radio"&&s!=null){for(o=r;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+vn(""+s)+'"][type="radio"]'),s=0;s<o.length;s++){var c=o[s];if(c!==r&&c.form===r.form){var m=c[Kt]||null;if(!m)throw Error(i(90));ff(c,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(s=0;s<o.length;s++)c=o[s],c.form===r.form&&rv(c)}break e;case"textarea":sv(r,o.value,o.defaultValue);break e;case"select":s=o.value,s!=null&&As(r,!!o.multiple,s,!1)}}}var yf=!1;function cv(r,s,o){if(yf)return r(s,o);yf=!0;try{var c=r(s);return c}finally{if(yf=!1,(Cs!==null||Rs!==null)&&(ec(),Cs&&(s=Cs,r=Rs,Rs=Cs=null,uv(s),r)))for(s=0;s<r.length;s++)uv(r[s])}}function fo(r,s){var o=r.stateNode;if(o===null)return null;var c=o[Kt]||null;if(c===null)return null;o=c[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break e;default:r=!1}if(r)return null;if(o&&typeof o!="function")throw Error(i(231,s,typeof o));return o}var cr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vf=!1;if(cr)try{var ho={};Object.defineProperty(ho,"passive",{get:function(){vf=!0}}),window.addEventListener("test",ho,ho),window.removeEventListener("test",ho,ho)}catch{vf=!1}var zr=null,bf=null,mu=null;function dv(){if(mu)return mu;var r,s=bf,o=s.length,c,m="value"in zr?zr.value:zr.textContent,p=m.length;for(r=0;r<o&&s[r]===m[r];r++);var b=o-r;for(c=1;c<=b&&s[o-c]===m[p-c];c++);return mu=m.slice(r,1<c?1-c:void 0)}function pu(r){var s=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&s===13&&(r=13)):r=s,r===10&&(r=13),32<=r||r===13?r:0}function gu(){return!0}function fv(){return!1}function Yt(r){function s(o,c,m,p,b){this._reactName=o,this._targetInst=m,this.type=c,this.nativeEvent=p,this.target=b,this.currentTarget=null;for(var w in r)r.hasOwnProperty(w)&&(o=r[w],this[w]=o?o(p):p[w]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?gu:fv,this.isPropagationStopped=fv,this}return y(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=gu)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=gu)},persist:function(){},isPersistent:gu}),s}var Ni={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yu=Yt(Ni),mo=y({},Ni,{view:0,detail:0}),NC=Yt(mo),_f,Sf,po,vu=y({},mo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ef,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==po&&
vendor: 4,913 bytes, line 56
56(po&&r.type==="mousemove"?(_f=r.screenX-po.screenX,Sf=r.screenY-po.screenY):Sf=_f=0,po=r),_f)},movementY:function(r){return"movementY"in r?r.movementY:Sf}}),hv=Yt(vu),jC=y({},vu,{dataTransfer:0}),DC=Yt(jC),MC=y({},mo,{relatedTarget:0}),wf=Yt(MC),LC=y({},Ni,{animationName:0,elapsedTime:0,pseudoElement:0}),UC=Yt(LC),IC=y({},Ni,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),PC=Yt(IC),BC=y({},Ni,{data:0}),mv=Yt(BC),VC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zC={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},$C={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function HC(r){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(r):(r=$C[r])?!!s[r]:!1}function Ef(){return HC}var qC=y({},mo,{key:function(r){if(r.key){var s=VC[r.key]||r.key;if(s!=="Unidentified")return s}return r.type==="keypress"?(r=pu(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?zC[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ef,charCode:function(r){return r.type==="keypress"?pu(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?pu(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),FC=Yt(qC),GC=y({},vu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pv=Yt(GC),KC=y({},mo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ef}),YC=Yt(KC),XC=y({},Ni,{propertyName:0,elapsedTime:0,pseudoElement:0}),WC=Yt(XC),JC=y({},vu,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),QC=Yt(JC),ZC=y({},Ni,{newState:0,oldState:0}),eR=Yt(ZC),tR=[9,13,27,32],Tf=cr&&"CompositionEvent"in window,go=null;cr&&"documentMode"in document&&(go=document.documentMode);var nR=cr&&"TextEvent"in window&&!go,gv=cr&&(!Tf||go&&8<go&&11>=go),yv=" ",vv=!1;function bv(r,s){switch(r){case"keyup":return tR.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _v(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var ks=!1;function rR(r,s){switch(r){case"compositionend":return _v(s);case"keypress":return s.which!==32?null:(vv=!0,yv);case"textInput":return r=s.data,r===yv&&vv?null:r;default:return null}}function iR(r,s){if(ks)return r==="compositionend"||!Tf&&bv(r,s)?(r=dv(),mu=bf=zr=null,ks=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return gv&&s.locale!=="ko"?null:s.data;default:return null}}var sR={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Sv(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s==="input"?!!sR[r.type]:s==="textarea"}function wv(r,s,o,c){Cs?Rs?Rs.push(c):Rs=[c]:Cs=c,s=oc(s,"onChange"),0<s.length&&(o=new yu("onChange","change",null,o,c),r.push({event:o,listeners:s}))}var yo=null,vo=null;function aR(r){i_(r,0)}function bu(r){var s=co(r);if(rv(s))return r}function Ev(r,s){if(r==="change")return s}var Tv=!1;if(cr){var xf;if(cr){var Af="oninput"in document;if(!Af){var xv=document.createElement("div");xv.setAttribute("oninput","return;"),Af=typeof xv.oninput=="function"}xf=Af}else xf=!1;Tv=xf&&(!document.documentMode||9<document.documentMode)}function Av(){yo&&(yo.detachEvent("onpropertychange",Ov),vo=yo=null)}function Ov(r){if(r.propertyName==="value"&&bu(vo)){var s=[];wv(s,vo,r,gf(r)),cv(aR,s)}}function oR(r,s,o){r==="focusin"?(Av(),yo=s,vo=o,yo.attachEvent("onpropertychange",Ov)):r==="focusout"&&Av()}function lR(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return bu(vo)}function uR(r,s){if(r==="click")return bu(s)}function cR(r,s){if(r==="input"||r==="change")return bu(s)}function dR(r,s){return r===s&&(r!==0||1/r===1/s)||r!==r&&s!==s}var an=typeof Object.is=="function"?Object.is:dR;function bo(r,s){if(an(r,s))return!0;
vendor: 22,253 bytes, line 56
56if(typeof r!="object"||r===null||typeof s!="object"||s===null)return!1;var o=Object.keys(r),c=Object.keys(s);if(o.length!==c.length)return!1;for(c=0;c<o.length;c++){var m=o[c];if(!nf.call(s,m)||!an(r[m],s[m]))return!1}return!0}function Cv(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Rv(r,s){var o=Cv(r);r=0;for(var c;o;){if(o.nodeType===3){if(c=r+o.textContent.length,r<=s&&c>=s)return{node:o,offset:s-r};r=c}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Cv(o)}}function kv(r,s){return r&&s?r===s?!0:r&&r.nodeType===3?!1:s&&s.nodeType===3?kv(r,s.parentNode):"contains"in r?r.contains(s):r.compareDocumentPosition?!!(r.compareDocumentPosition(s)&16):!1:!1}function Nv(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var s=fu(r.document);s instanceof r.HTMLIFrameElement;){try{var o=typeof s.contentWindow.location.href=="string"}catch{o=!1}if(o)r=s.contentWindow;else break;s=fu(r.document)}return s}function Of(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s&&(s==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||s==="textarea"||r.contentEditable==="true")}var fR=cr&&"documentMode"in document&&11>=document.documentMode,Ns=null,Cf=null,_o=null,Rf=!1;function jv(r,s,o){var c=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Rf||Ns==null||Ns!==fu(c)||(c=Ns,"selectionStart"in c&&Of(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),_o&&bo(_o,c)||(_o=c,c=oc(Cf,"onSelect"),0<c.length&&(s=new yu("onSelect","select",null,s,o),r.push({event:s,listeners:c}),s.target=Ns)))}function ji(r,s){var o={};return o[r.toLowerCase()]=s.toLowerCase(),o["Webkit"+r]="webkit"+s,o["Moz"+r]="moz"+s,o}var js={animationend:ji("Animation","AnimationEnd"),animationiteration:ji("Animation","AnimationIteration"),animationstart:ji("Animation","AnimationStart"),transitionrun:ji("Transition","TransitionRun"),transitionstart:ji("Transition","TransitionStart"),transitioncancel:ji("Transition","TransitionCancel"),transitionend:ji("Transition","TransitionEnd")},kf={},Dv={};cr&&(Dv=document.createElement("div").style,"AnimationEvent"in window||(delete js.animationend.animation,delete js.animationiteration.animation,delete js.animationstart.animation),"TransitionEvent"in window||delete js.transitionend.transition);function Di(r){if(kf[r])return kf[r];if(!js[r])return r;var s=js[r],o;for(o in s)if(s.hasOwnProperty(o)&&o in Dv)return kf[r]=s[o];return r}var Mv=Di("animationend"),Lv=Di("animationiteration"),Uv=Di("animationstart"),hR=Di("transitionrun"),mR=Di("transitionstart"),pR=Di("transitioncancel"),Iv=Di("transitionend"),Pv=new Map,Nf="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Nf.push("scrollEnd");function In(r,s){Pv.set(r,s),ki(s,[r])}var _u=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},bn=[],Ds=0,jf=0;function Su(){for(var r=Ds,s=jf=Ds=0;s<r;){var o=bn[s];bn[s++]=null;var c=bn[s];bn[s++]=null;var m=bn[s];bn[s++]=null;var p=bn[s];if(bn[s++]=null,c!==null&&m!==null){var b=c.pending;b===null?m.next=m:(m.next=b.next,b.next=m),c.pending=m}p!==0&&Bv(o,m,p)}}function wu(r,s,o,c){bn[Ds++]=r,bn[Ds++]=s,bn[Ds++]=o,bn[Ds++]=c,jf|=c,r.lanes|=c,r=r.alternate,r!==null&&(r.lanes|=c)}function Df(r,s,o,c){return wu(r,s,o,c),Eu(r)}function Mi(r,s){return wu(r,null,null,s),Eu(r)}function Bv(r,s,o){r.lanes|=o;var c=r.alternate;c!==null&&(c.lanes|=o);for(var m=!1,p=r.return;p!==null;)p.childLanes|=o,c=p.alternate,c!==null&&(c.childLanes|=o),p.tag===22&&(r=p.stateNode,r===null||r._visibility&1||(m=!0)),r=p,p=p.return;return r.tag===3?(p=r.stateNode,m&&s!==null&&(m=31-sn(o),r=p.hiddenUpdates,c=r[m],c===null?r[m]=[s]:c.push(s),s.lane=o|536870912),p):null}function Eu(r){if(50<$o)throw $o=0,$h=null,Error(i(185));for(var s=r.return;s!==null;)r=s,s=r.return;return r.tag===3?r.stateNode:null}var Ms={};function gR(r,s,o,c){this.tag=r,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function on(r,s,o,c){return new gR(r,s,o,c)}function Mf(r){return r=r.prototype,!(!r||!r.isReactComponent)}function dr(r,s){var o=r.alternate;return o===null?(o=on(r.tag,s,r.key,r.mode),o.elementType=r.elementType,o.type=r.type,o.stateNode=r.stateNode,o.alternate=r,r.alternate=o):(o.pendingProps=s,o.type=r.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=r.flags&65011712,o.childLanes=r.childLanes,o.lanes=r.lanes,o.child=r.child,o.memoizedProps=r.memoizedProps,o.memoizedState=r.memoizedState,o.updateQueue=r.updateQueue,s=r.dependencies,o.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},o.sibling=r.sibling,o.index=r.index,o.ref=r.ref,o.refCleanup=r.refCleanup,o}function Vv(r,s){r.flags&=65011714;var o=r.alternate;return o===null?(r.childLanes=0,r.lanes=s,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=o.childLanes,r.lanes=o.lanes,r.child=o.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=o.memoizedProps,r.memoizedState=o.memoizedState,r.updateQueue=o.updateQueue,r.type=o.type,s=o.dependencies,r.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),r}function Tu(r,s,o,c,m,p){var b=0;if(c=r,typeof r=="function")Mf(r)&&(b=1);else if(typeof r=="string")b=Sk(r,o,ee.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case se:return r=on(31,o,s,m),r.elementType=se,r.lanes=p,r;case E:return Li(o.children,m,p,s);case x:b=8,m|=24;break;case A:return r=on(12,o,s,m|2),r.elementType=A,r.lanes=p,r;case $:return r=on(13,o,s,m),r.elementType=$,r.lanes=p,r;case B:return r=on(19,o,s,m),r.elementType=B,r.lanes=p,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case R:b=10;break e;case N:b=9;break e;case M:b=11;break e;case G:b=14;break e;case X:b=16,c=null;break e}b=29,o=Error(i(130,r===null?"null":typeof r,"")),c=null}return s=on(b,o,s,m),s.elementType=r,s.type=c,s.lanes=p,s}function Li(r,s,o,c){return r=on(7,r,c,s),r.lanes=o,r}function Lf(r,s,o){return r=on(6,r,null,s),r.lanes=o,r}function zv(r){var s=on(18,null,null,0);return s.stateNode=r,s}function Uf(r,s,o){return s=on(4,r.children!==null?r.children:[],r.key,s),s.lanes=o,s.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},s}var $v=new WeakMap;function _n(r,s){if(typeof r=="object"&&r!==null){var o=$v.get(r);return o!==void 0?o:(s={value:r,source:s,stack:zy(s)},$v.set(r,s),s)}return{value:r,source:s,stack:zy(s)}}var Ls=[],Us=0,xu=null,So=0,Sn=[],wn=0,$r=null,Jn=1,Qn="";function fr(r,s){Ls[Us++]=So,Ls[Us++]=xu,xu=r,So=s}function Hv(r,s,o){Sn[wn++]=Jn,Sn[wn++]=Qn,Sn[wn++]=$r,$r=r;var c=Jn;r=Qn;var m=32-sn(c)-1;c&=~(1<<m),o+=1;var p=32-sn(s)+m;if(30<p){var b=m-m%5;p=(c&(1<<b)-1).toString(32),c>>=b,m-=b,Jn=1<<32-sn(s)+m|o<<m|c,Qn=p+r}else Jn=1<<p|o<<m|c,Qn=r}function If(r){r.return!==null&&(fr(r,1),Hv(r,1,0))}function Pf(r){for(;r===xu;)xu=Ls[--Us],Ls[Us]=null,So=Ls[--Us],Ls[Us]=null;for(;r===$r;)$r=Sn[--wn],Sn[wn]=null,Qn=Sn[--wn],Sn[wn]=null,Jn=Sn[--wn],Sn[wn]=null}function qv(r,s){Sn[wn++]=Jn,Sn[wn++]=Qn,Sn[wn++]=$r,Jn=s.id,Qn=s.overflow,$r=r}var Ot=null,Xe=null,Ce=!1,Hr=null,En=!1,Bf=Error(i(519));function qr(r){var s=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw wo(_n(s,r)),Bf}function Fv(r){var s=r.stateNode,o=r.type,c=r.memoizedProps;switch(s[At]=r,s[Kt]=c,o){case"dialog":we("cancel",s),we("close",s);break;case"iframe":case"object":case"embed":we("load",s);break;case"video":case"audio":for(o=0;o<qo.length;o++)we(qo[o],s);break;case"source":we("error",s);break;case"img":case"image":case"link":we("error",s),we("load",s);break;case"details":we("toggle",s);break;case"input":we("invalid",s),iv(s,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":we("invalid",s);break;case"textarea":we("invalid",s),av(s,c.value,c.defaultValue,c.children)}o=c.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||s.textContent===""+o||c.suppressHydrationWarning===!0||l_(s.textContent,o)?(c.popover!=null&&(we("beforetoggle",s),we("toggle",s)),c.onScroll!=null&&we("scroll",s),c.onScrollEnd!=null&&we("scrollend",s),c.onClick!=null&&(s.onclick=ur),s=!0):s=!1,s||qr(r,!0)}function Gv(r){for(Ot=r.return;Ot;)switch(Ot.tag){case 5:case 31:case 13:En=!1;return;case 27:case 3:En=!0;return;default:Ot=Ot.return}}function Is(r){if(r!==Ot)return!1;if(!Ce)return Gv(r),Ce=!0,!1;var s=r.tag,o;if((o=s!==3&&s!==27)&&((o=s===5)&&(o=r.type,o=!(o!=="form"&&o!=="button")||rm(r.type,r.memoizedProps)),o=!o),o&&Xe&&qr(r),Gv(r),s===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));Xe=y_(r)}else if(s===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));Xe=y_(r)}else s===27?(s=Xe,ii(r.type)?(r=lm,lm=null,Xe=r):Xe=s):Xe=Ot?xn(r.stateNode.nextSibling):null;return!0}function Ui(){Xe=Ot=null,Ce=!1}function Vf(){var r=Hr;return r!==null&&(Qt===null?Qt=r:Qt.push.apply(Qt,r),Hr=null),r}function wo(r){Hr===null?Hr=[r]:Hr.push(r)}var zf=C(null),Ii=null,hr=null;function Fr(r,s,o){Y(zf,s._currentValue),s._currentValue=o}function mr(r){r._currentValue=zf.current,H(zf)}function $f(r,s,o){for(;r!==null;){var c=r.alternate;if((r.childLanes&s)!==s?(r.childLanes|=s,c!==null&&(c.childLanes|=s)):c!==null&&(c.childLanes&s)!==s&&(c.childLanes|=s),r===o)break;r=r.return}}function Hf(r,s,o,c){var m=r.child;for(m!==null&&(m.return=r);m!==null;){var p=m.dependencies;if(p!==null){var b=m.child;p=p.firstContext;e:for(;p!==null;){var w=p;p=m;for(var O=0;O<s.length;O++)if(w.context===s[O]){p.lanes|=o,w=p.alternate,w!==null&&(w.lanes|=o),$f(p.return,o,r),c||(b=null);break e}p=w.next}}else if(m.tag===18){if(b=m.return,b===null)throw Error(i(341));b.lanes|=o,p=b.alternate,p!==null&&(p.lanes|=o),$f(b,o,r),b=null}else b=m.child;if(b!==null)b.return=m;else for(b=m;b!==null;){if(b===r){b=null;break}if(m=b.sibling,m!==null){m.return=b.return,b=m;break}b=b.return}m=b}}function Ps(r,s,o,c){r=null;for(var m=s,p=!1;m!==null;){if(!p){if((m.flags&524288)!==0)p=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var b=m.alternate;if(b===null)throw Error(i(387));if(b=b.memoizedProps,b!==null){var w=m.type;an(m.pendingProps.value,b.value)||(r!==null?r.push(w):r=[w])}}else if(m===Re.current){if(b=m.alternate,b===null)throw Error(i(387));b.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(r!==null?r.push(Xo):r=[Xo])}m=m.return}r!==null&&Hf(s,r,o,c),s.flags|=262144}function Au(r){for(r=r.firstContext;r!==null;){if(!an(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function Pi(r){Ii=r,hr=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Ct(r){return Kv(Ii,r)}function Ou(r,s){return Ii===null&&Pi(r),Kv(r,s)}function Kv(r,s){var o=s._currentValue;if(s={context:s,memoizedValue:o,next:null},hr===null){if(r===null)throw Error(i(308));hr=s,r.dependencies={lanes:0,firstContext:s},r.flags|=524288}else hr=hr.next=s;return o}var yR=typeof AbortController<"u"?AbortController:function(){var r=[],s=this.signal={aborted:!1,addEventListener:function(o,c){r.push(c)}};this.abort=function(){s.aborted=!0,r.forEach(function(o){return o()})}},vR=e.unstable_scheduleCallback,bR=e.unstable_NormalPriority,dt={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function qf(){return{controller:new yR,data:new Map,refCount:0}}function Eo(r){r.refCount--,r.refCount===0&&vR(bR,function(){r.controller.abort()})}var To=null,Ff=0,Bs=0,Vs=null;function _R(r,s){if(To===null){var o=To=[];Ff=0,Bs=Yh(),Vs={status:"pending",value:void 0,then:function(c){o.push(c)}}}return Ff++,s.then(Yv,Yv),s}function Yv(){if(--Ff===0&&To!==null){Vs!==null&&(Vs.status="fulfilled");var r=To;To=null,Bs=0,Vs=null;for(var s=0;s<r.length;s++)(0,r[s])()}}function SR(r,s){var o=[],c={status:"pending",value:null,reason:null,then:function(m){o.push(m)}};return r.then(function(){c.status="fulfilled",c.value=s;for(var m=0;m<o.length;m++)(0,o[m])(s)},function(m){for(c.status="rejected",c.reason=m,m=0;m<o.length;m++)(0,o[m])(void 0)}),c}var Xv=V.S;V.S=function(r,s){j0=nn(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&_R(r,s),Xv!==null&&Xv(r,s)};var Bi=C(null);function Gf(){var r=Bi.current;return r!==null?r:Fe.pooledCache}function Cu(r,s){s===null?Y(Bi,Bi.current):Y(Bi,s.pool)}function Wv(){var r=Gf();return r===null?null:{parent:dt._currentValue,pool:r}}var zs=Error(i(460)),Kf=Error(i(474)),Ru=Error(i(542)),ku={then:function(){}};function Jv(r){return r=r.status,r==="fulfilled"||r==="rejected"}function Qv(r,s,o){switch(o=r[o],o===void 0?r.push(s):o!==s&&(s.then(ur,ur),s=o),s.status){case"fulfilled":return s.value;case"rejected":throw r=s.reason,eb(r),r;default:if(typeof s.status=="string")s.then(ur,ur);else{if(r=Fe,r!==null&&100<r.shellSuspendCounter)throw Error(i(482));r=s,r.status="pending",r.then(function(c){if(s.status==="pending"){var m=s;m.status="fulfilled",m.value=c}},function(c){if(s.status==="pending"){var m=s;m.status="rejected",m.reason=c}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw r=s.reason,eb(r),r}throw zi=s,zs}}function Vi(r){try{var s=r._init;return s(r._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(zi=o,zs):o}}var zi=null;function Zv(){if(zi===null)throw Error(i(459));var r=zi;return zi=null,r}function eb(r){if(r===zs||r===Ru)throw Error(i(483))}var $s=null,xo=0;function Nu(r){var s=xo;return xo+=1,$s===null&&($s=[]),Qv($s,r,s)}function Ao(r,s){s=s.props.ref,r.ref=s!==void 0?s:null}function ju(r,s){throw s.$$typeof===v?Error(i(525)):(r=Object.prototype.toString.call(s),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":r)))}function tb(r){function s(j,k){if(r){var L=j.deletions;L===null?(j.deletions=[k],j.flags|=16):L.push(k)}}function o(j,k){if(!r)return null;for(;k!==null;)s(j,k),k=k.sibling;return null}function c(j){for(var k=new Map;j!==null;)j.key!==null?k.set(j.key,j):k.set(j.index,j),j=j.sibling;return k}function m(j,k){return j=dr(j,k),j.index=0,j.sibling=null,j}function p(j,k,L){return j.index=L,r?(L=j.alternate,L!==null?(L=L.index,L<k?(j.flags|=67108866,k):L):(j.flags|=67108866,k)):(j.flags|=1048576,k)}function b(j){return r&&j.alternate===null&&(j.flags|=67108866),j}function w(j,k,L,q){return k===null||k.tag!==6?(k=Lf(L,j.mode,q),k.return=j,k):(k=m(k,L),k.return=j,k)}function O(j,k,L,q){var ie=L.type;return ie===E?z(j,k,L.props.children,q,L.key):k!==null&&(k.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===X&&Vi(ie)===k.type)?(k=m(k,L.props),Ao(k,L),k.return=j,k):(k=Tu(L.type,L.key,L.props,null,j.mode,q),Ao(k,L),k.return=j,k)}function U(j,k,L,q){return k===null||k.tag!==4||k.stateNode.containerInfo!==L.containerInfo||k.stateNode.implementation!==L.implementation?(k=Uf(L,j.mode,q),k.return=j,k):(k=m(k,L.children||[]),k.return=j,k)}function z(j,k,L,q,ie){return k===null||k.tag!==7?(k=Li(L,j.mode,q,ie),k.return=j,k):(k=m(k,L),k.return=j,k)}function F(j,k,L){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return k=Lf(""+k,j.mode,L),k.return=j,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case _:return L=Tu(k.type,k.key,k.props,null,j.mode,L),Ao(L,k),L.return=j,L;case S:return k=Uf(k,j.mode,L),k.return=j,k;case X:return k=Vi(k),F(j,k,L)}if(Ye(k)||Le(k))return k=Li(k,j.mode,L,null),k.return=j,k;if(typeof k.then=="function")return F(j,Nu(k),L);if(k.$$typeof===R)return F(j,Ou(j,k),L);ju(j,k)}return null}function I(j,k,L,q){var ie=k!==null?k.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return ie!==null?null:w(j,k,""+L,q);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case _:return L.key===ie?O(j,k,L,q):null;case S:return L.key===ie?U(j,k,L,q):null;case X:return L=Vi(L),I(j,k,L,q)}if(Ye(L)||Le(L))return ie!==null?null:z(j,k,L,q,null);if(typeof L.then=="function")return I(j,k,Nu(L),q);if(L.$$typeof===R)return I(j,k,Ou(j,L),q);ju(j,L)}return null}function P(j,k,L,q,ie){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return j=j.get(L)||null,w(k,j,""+q,ie);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case _:return j=j.get(q.key===null?L:q.key)||null,O(k,j,q,ie);case S:return j=j.get(q.key===null?L:q.key)||null,U(k,j,q,ie);case X:return q=Vi(q),P(j,k,L,q,ie)}if(Ye(q)||Le(q))return j=j.get(L)||null,z(k,j,q,ie,null);if(typeof q.then=="function")return P(j,k,L,Nu(q),ie);if(q.$$typeof===R)return P(j,k,L,Ou(k,q),ie);ju(k,q)}return null}function Q(j,k,L,q){for(var ie=null,ke=null,ne=k,ye=k=0,Te=null;ne!==null&&ye<L.length;ye++){ne.index>ye?(Te=ne,ne=null):Te=ne.sibling;var Ne=I(j,ne,L[ye],q);if(Ne===null){ne===null&&(ne=Te);break}r&&ne&&Ne.alternate===null&&s(j,ne),k=p(Ne,k,ye),ke===null?ie=Ne:ke.sibling=Ne,ke=Ne,ne=Te}if(ye===L.length)return o(j,ne),Ce&&fr(j,ye),ie;if(ne===null){for(;ye<L.length;ye++)ne=F(j,L[ye],q),ne!==null&&(k=p(ne,k,ye),ke===null?ie=ne:ke.sibling=ne,ke=ne);return Ce&&fr(j,ye),ie}for(ne=c(ne);ye<L.length;ye++)Te=P(ne,j,ye,L[ye],q),Te!==null&&(r&&Te.alternate!==null&&ne.delete(Te.key===null?ye:Te.key),k=p(Te,k,ye),ke===null?ie=Te:ke.sibling=Te,ke=Te);return r&&ne.forEach(function(ui){return s(j,ui)}),Ce&&fr(j,ye),ie}function ae(j,k,L,q){if(L==null)throw Error(i(151));for(var ie=null,ke=null,ne=k,ye=k=0,Te=null,Ne=L.next();ne!==null&&!Ne.done;ye++,Ne=L.next()){ne.index>ye?(Te=ne,ne=null):Te=ne.sibling;var ui=I(j,ne,Ne.value,q);if(ui===null){ne===null&&(ne=Te);break}r&&ne&&ui.alternate===null&&s(j,ne),k=p(ui,k,ye),ke===null?ie=ui:ke.sibling=ui,ke=ui,ne=Te}if(Ne.done)return o(j,ne),Ce&&fr(j,ye),ie;if(ne===null){for(;!Ne.done;ye++,Ne=L.next())Ne=F(j,Ne.value,q),Ne!==null&&(k=p(Ne,k,ye),ke===null?ie=Ne:ke.sibling=Ne,ke=Ne);return Ce&&fr(j,ye),ie}for(ne=c(ne);!Ne.done;ye++,Ne=L.next())Ne=P(ne,j,ye,Ne.value,q),Ne!==null&&(r&&Ne.alternate!==null&&ne.delete(Ne.key===null?ye:Ne.key),k=p(Ne,k,ye),ke===null?ie=Ne:ke.sibling=Ne,ke=Ne);return r&&ne.forEach(function(jk){return s(j,jk)}),Ce&&fr(j,ye),ie}function qe(j,k,L,q){if(typeof L=="object"&&L!==null&&L.type===E&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case _:e:{for(var ie=L.key;k!==null;){if(k.key===ie){if(ie=L.type,ie===E){if(k.tag===7){o(j,k.sibling),q=m(k,L.props.children),q.return=j,j=q;break e}}else if(k.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===X&&Vi(ie)===k.type){o(j,k.sibling),q=m(k,L.props),Ao(q,L),q.return=j,j=q;break e}o(j,k);break}else s(j,k);k=k.sibling}L.type===E?(q=Li(L.props.children,j.mode,q,L.key),q.return=j,j=q):(q=Tu(L.type,L.key,L.props,null,j.mode,q),Ao(q,L),q.return=j,j=q)}return b(j);case S:e:{for(ie=L.key;k!==null;){if(k.key===ie)if(k.tag===4&&k.stateNode.containerInfo===L.containerInfo&&k.stateNode.implementation===L.implementation){o(j,k.sibling),q=m(k,L.children||[]),q.return=j,j=q;break e}else{o(j,k);break}else s(j,k);k=k.sibling}q=Uf(L,j.mode,q),q.return=j,j=q}return b(j);case X:return L=Vi(L),qe(j,k,L,q)}if(Ye(L))return Q(j,k,L,q);if(Le(L)){if(ie=Le(L),typeof ie!="function")throw Error(i(150));return L=ie.call(L),ae(j,k,L,q)}if(typeof L.then=="function")return qe(j,k,Nu(L),q);if(L.$$typeof===R)return qe(j,k,Ou(j,L),q);ju(j,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,k!==null&&k.tag===6?(o(j,k.sibling),q=m(k,L),q.return=j,j=q):(o(j,k),q=Lf(L,j.mode,q),q.return=j,j=q),b(j)):o(j,k)}return function(j,k,L,q){try{xo=0;var ie=qe(j,k,L,q);return $s=null,ie}catch(ne){if(ne===zs||ne===Ru)throw ne;var ke=on(29,ne,null,j.mode);return ke.lanes=q,ke.return=j,ke}finally{}}}var $i=tb(!0),nb=tb(!1),Gr=!1;function Yf(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xf(r,s){r=r.updateQueue,s.updateQueue===r&&(s.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function Kr(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function Yr(r,s,o){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(De&2)!==0){var m=c.pending;return m===null?s.next=s:(s.next=m.next,m.next=s),c.pending=s,s=Eu(r),Bv(r,null,o),s}return wu(r,c,s,o),Eu(r)}function Oo(r,s,o){if(s=s.updateQueue,s!==null&&(s=s.shared,(o&4194048)!==0)){var c=s.lanes;c&=r.pendingLanes,o|=c,s.lanes=o,Ky(r,o)}}function Wf(r,s){var o=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,o===c)){var m=null,p=null;if(o=o.firstBaseUpdate,o!==null){do{var b={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};p===null?m=p=b:p=p.next=b,o=o.next}while(o!==null);p===null?m=p=s:p=p.next=s}else m=p=s;o={baseState:c.baseState,firstBaseUpdate:m,lastBaseUpdate:p,shared:c.shared,callbacks:c.callbacks},r.updateQueue=o;return}
vendor: 4,185 bytes, line 56
56r=o.lastBaseUpdate,r===null?o.firstBaseUpdate=s:r.next=s,o.lastBaseUpdate=s}var Jf=!1;function Co(){if(Jf){var r=Vs;if(r!==null)throw r}}function Ro(r,s,o,c){Jf=!1;var m=r.updateQueue;Gr=!1;var p=m.firstBaseUpdate,b=m.lastBaseUpdate,w=m.shared.pending;if(w!==null){m.shared.pending=null;var O=w,U=O.next;O.next=null,b===null?p=U:b.next=U,b=O;var z=r.alternate;z!==null&&(z=z.updateQueue,w=z.lastBaseUpdate,w!==b&&(w===null?z.firstBaseUpdate=U:w.next=U,z.lastBaseUpdate=O))}if(p!==null){var F=m.baseState;b=0,z=U=O=null,w=p;do{var I=w.lane&-536870913,P=I!==w.lane;if(P?(Ee&I)===I:(c&I)===I){I!==0&&I===Bs&&(Jf=!0),z!==null&&(z=z.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var Q=r,ae=w;I=s;var qe=o;switch(ae.tag){case 1:if(Q=ae.payload,typeof Q=="function"){F=Q.call(qe,F,I);break e}F=Q;break e;case 3:Q.flags=Q.flags&-65537|128;case 0:if(Q=ae.payload,I=typeof Q=="function"?Q.call(qe,F,I):Q,I==null)break e;F=y({},F,I);break e;case 2:Gr=!0}}I=w.callback,I!==null&&(r.flags|=64,P&&(r.flags|=8192),P=m.callbacks,P===null?m.callbacks=[I]:P.push(I))}else P={lane:I,tag:w.tag,payload:w.payload,callback:w.callback,next:null},z===null?(U=z=P,O=F):z=z.next=P,b|=I;if(w=w.next,w===null){if(w=m.shared.pending,w===null)break;P=w,w=P.next,P.next=null,m.lastBaseUpdate=P,m.shared.pending=null}}while(!0);z===null&&(O=F),m.baseState=O,m.firstBaseUpdate=U,m.lastBaseUpdate=z,p===null&&(m.shared.lanes=0),Zr|=b,r.lanes=b,r.memoizedState=F}}function rb(r,s){if(typeof r!="function")throw Error(i(191,r));r.call(s)}function ib(r,s){var o=r.callbacks;if(o!==null)for(r.callbacks=null,r=0;r<o.length;r++)rb(o[r],s)}var Hs=C(null),Du=C(0);function sb(r,s){r=Er,Y(Du,r),Y(Hs,s),Er=r|s.baseLanes}function Qf(){Y(Du,Er),Y(Hs,Hs.current)}function Zf(){Er=Du.current,H(Hs),H(Du)}var ln=C(null),Tn=null;function Xr(r){var s=r.alternate;Y(ot,ot.current&1),Y(ln,r),Tn===null&&(s===null||Hs.current!==null||s.memoizedState!==null)&&(Tn=r)}function eh(r){Y(ot,ot.current),Y(ln,r),Tn===null&&(Tn=r)}function ab(r){r.tag===22?(Y(ot,ot.current),Y(ln,r),Tn===null&&(Tn=r)):Wr()}function Wr(){Y(ot,ot.current),Y(ln,ln.current)}function un(r){H(ln),Tn===r&&(Tn=null),H(ot)}var ot=C(0);function Mu(r){for(var s=r;s!==null;){if(s.tag===13){var o=s.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||am(o)||om(o)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var pr=0,pe=null,$e=null,ft=null,Lu=!1,qs=!1,Hi=!1,Uu=0,ko=0,Fs=null,wR=0;function nt(){throw Error(i(321))}function th(r,s){if(s===null)return!1;for(var o=0;o<s.length&&o<r.length;o++)if(!an(r[o],s[o]))return!1;return!0}function nh(r,s,o,c,m,p){return pr=p,pe=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,V.H=r===null||r.memoizedState===null?Hb:yh,Hi=!1,p=o(c,m),Hi=!1,qs&&(p=lb(s,o,c,m)),ob(r),p}function ob(r){V.H=Do;var s=$e!==null&&$e.next!==null;if(pr=0,ft=$e=pe=null,Lu=!1,ko=0,Fs=null,s)throw Error(i(300));r===null||ht||(r=r.dependencies,r!==null&&Au(r)&&(ht=!0))}function lb(r,s,o,c){pe=r;var m=0;do{if(qs&&(Fs=null),ko=0,qs=!1,25<=m)throw Error(i(301));if(m+=1,ft=$e=null,r.updateQueue!=null){var p=r.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}V.H=qb,p=s(o,c)}while(qs);return p}function ER(){var r=V.H,s=r.useState()[0];return s=typeof s.then=="function"?No(s):s,r=r.useState()[0],($e!==null?$e.memoizedState:null)!==r&&(pe.flags|=1024),s}function rh(){var r=Uu!==0;return Uu=0,r}function ih(r,s,o){s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~o}function sh(r){if(Lu){for(r=r.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Lu=!1}pr=0,ft=$e=pe=null,qs=!1,ko=Uu=0,Fs=null}function Bt(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ft===null?pe.memoizedState=ft=r:ft=ft.next=r,ft}
vendor: 15,494 bytes, line 56
56function lt(){if($e===null){var r=pe.alternate;r=r!==null?r.memoizedState:null}else r=$e.next;var s=ft===null?pe.memoizedState:ft.next;if(s!==null)ft=s,$e=r;else{if(r===null)throw pe.alternate===null?Error(i(467)):Error(i(310));$e=r,r={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},ft===null?pe.memoizedState=ft=r:ft=ft.next=r}return ft}function Iu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function No(r){var s=ko;return ko+=1,Fs===null&&(Fs=[]),r=Qv(Fs,r,s),s=pe,(ft===null?s.memoizedState:ft.next)===null&&(s=s.alternate,V.H=s===null||s.memoizedState===null?Hb:yh),r}function Pu(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return No(r);if(r.$$typeof===R)return Ct(r)}throw Error(i(438,String(r)))}function ah(r){var s=null,o=pe.updateQueue;if(o!==null&&(s=o.memoCache),s==null){var c=pe.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(s={data:c.data.map(function(m){return m.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),o===null&&(o=Iu(),pe.updateQueue=o),o.memoCache=s,o=s.data[s.index],o===void 0)for(o=s.data[s.index]=Array(r),c=0;c<r;c++)o[c]=te;return s.index++,o}function gr(r,s){return typeof s=="function"?s(r):s}function Bu(r){var s=lt();return oh(s,$e,r)}function oh(r,s,o){var c=r.queue;if(c===null)throw Error(i(311));c.lastRenderedReducer=o;var m=r.baseQueue,p=c.pending;if(p!==null){if(m!==null){var b=m.next;m.next=p.next,p.next=b}s.baseQueue=m=p,c.pending=null}if(p=r.baseState,m===null)r.memoizedState=p;else{s=m.next;var w=b=null,O=null,U=s,z=!1;do{var F=U.lane&-536870913;if(F!==U.lane?(Ee&F)===F:(pr&F)===F){var I=U.revertLane;if(I===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),F===Bs&&(z=!0);else if((pr&I)===I){U=U.next,I===Bs&&(z=!0);continue}else F={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},O===null?(w=O=F,b=p):O=O.next=F,pe.lanes|=I,Zr|=I;F=U.action,Hi&&o(p,F),p=U.hasEagerState?U.eagerState:o(p,F)}else I={lane:F,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},O===null?(w=O=I,b=p):O=O.next=I,pe.lanes|=F,Zr|=F;U=U.next}while(U!==null&&U!==s);if(O===null?b=p:O.next=w,!an(p,r.memoizedState)&&(ht=!0,z&&(o=Vs,o!==null)))throw o;r.memoizedState=p,r.baseState=b,r.baseQueue=O,c.lastRenderedState=p}return m===null&&(c.lanes=0),[r.memoizedState,c.dispatch]}function lh(r){var s=lt(),o=s.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=r;var c=o.dispatch,m=o.pending,p=s.memoizedState;if(m!==null){o.pending=null;var b=m=m.next;do p=r(p,b.action),b=b.next;while(b!==m);an(p,s.memoizedState)||(ht=!0),s.memoizedState=p,s.baseQueue===null&&(s.baseState=p),o.lastRenderedState=p}return[p,c]}function ub(r,s,o){var c=pe,m=lt(),p=Ce;if(p){if(o===void 0)throw Error(i(407));o=o()}else o=s();var b=!an(($e||m).memoizedState,o);if(b&&(m.memoizedState=o,ht=!0),m=m.queue,dh(fb.bind(null,c,m,r),[r]),m.getSnapshot!==s||b||ft!==null&&ft.memoizedState.tag&1){if(c.flags|=2048,Gs(9,{destroy:void 0},db.bind(null,c,m,o,s),null),Fe===null)throw Error(i(349));p||(pr&127)!==0||cb(c,s,o)}return o}function cb(r,s,o){r.flags|=16384,r={getSnapshot:s,value:o},s=pe.updateQueue,s===null?(s=Iu(),pe.updateQueue=s,s.stores=[r]):(o=s.stores,o===null?s.stores=[r]:o.push(r))}function db(r,s,o,c){s.value=o,s.getSnapshot=c,hb(s)&&mb(r)}function fb(r,s,o){return o(function(){hb(s)&&mb(r)})}function hb(r){var s=r.getSnapshot;r=r.value;try{var o=s();return!an(r,o)}catch{return!0}}function mb(r){var s=Mi(r,2);s!==null&&Zt(s,r,2)}function uh(r){var s=Bt();if(typeof r=="function"){var o=r;if(r=o(),Hi){Br(!0);try{o()}finally{Br(!1)}}}return s.memoizedState=s.baseState=r,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:r},s}function pb(r,s,o,c){return r.baseState=o,oh(r,$e,typeof c=="function"?c:gr)}function TR(r,s,o,c,m){if($u(r))throw Error(i(485));if(r=s.action,r!==null){var p={payload:m,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){p.listeners.push(b)}};V.T!==null?o(!0):p.isTransition=!1,c(p),o=s.pending,o===null?(p.next=s.pending=p,gb(s,p)):(p.next=o.next,s.pending=o.next=p)}}function gb(r,s){var o=s.action,c=s.payload,m=r.state;if(s.isTransition){var p=V.T,b={};V.T=b;try{var w=o(m,c),O=V.S;O!==null&&O(b,w),yb(r,s,w)}catch(U){ch(r,s,U)}finally{p!==null&&b.types!==null&&(p.types=b.types),V.T=p}}else try{p=o(m,c),yb(r,s,p)}catch(U){ch(r,s,U)}}function yb(r,s,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(c){vb(r,s,c)},function(c){return ch(r,s,c)}):vb(r,s,o)}function vb(r,s,o){s.status="fulfilled",s.value=o,bb(s),r.state=o,s=r.pending,s!==null&&(o=s.next,o===s?r.pending=null:(o=o.next,s.next=o,gb(r,o)))}function ch(r,s,o){var c=r.pending;if(r.pending=null,c!==null){c=c.next;do s.status="rejected",s.reason=o,bb(s),s=s.next;while(s!==c)}r.action=null}function bb(r){r=r.listeners;for(var s=0;s<r.length;s++)(0,r[s])()}function _b(r,s){return s}function Sb(r,s){if(Ce){var o=Fe.formState;if(o!==null){e:{var c=pe;if(Ce){if(Xe){t:{for(var m=Xe,p=En;m.nodeType!==8;){if(!p){m=null;break t}if(m=xn(m.nextSibling),m===null){m=null;break t}}p=m.data,m=p==="F!"||p==="F"?m:null}if(m){Xe=xn(m.nextSibling),c=m.data==="F!";break e}}qr(c)}c=!1}c&&(s=o[0])}}return o=Bt(),o.memoizedState=o.baseState=s,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_b,lastRenderedState:s},o.queue=c,o=Vb.bind(null,pe,c),c.dispatch=o,c=uh(!1),p=gh.bind(null,pe,!1,c.queue),c=Bt(),m={state:s,dispatch:null,action:r,pending:null},c.queue=m,o=TR.bind(null,pe,m,p,o),m.dispatch=o,c.memoizedState=r,[s,o,!1]}function wb(r){var s=lt();return Eb(s,$e,r)}function Eb(r,s,o){if(s=oh(r,s,_b)[0],r=Bu(gr)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var c=No(s)}catch(b){throw b===zs?Ru:b}else c=s;s=lt();var m=s.queue,p=m.dispatch;return o!==s.memoizedState&&(pe.flags|=2048,Gs(9,{destroy:void 0},xR.bind(null,m,o),null)),[c,p,r]}function xR(r,s){r.action=s}function Tb(r){var s=lt(),o=$e;if(o!==null)return Eb(s,o,r);lt(),s=s.memoizedState,o=lt();var c=o.queue.dispatch;return o.memoizedState=r,[s,c,!1]}function Gs(r,s,o,c){return r={tag:r,create:o,deps:c,inst:s,next:null},s=pe.updateQueue,s===null&&(s=Iu(),pe.updateQueue=s),o=s.lastEffect,o===null?s.lastEffect=r.next=r:(c=o.next,o.next=r,r.next=c,s.lastEffect=r),r}function xb(){return lt().memoizedState}function Vu(r,s,o,c){var m=Bt();pe.flags|=r,m.memoizedState=Gs(1|s,{destroy:void 0},o,c===void 0?null:c)}function zu(r,s,o,c){var m=lt();c=c===void 0?null:c;var p=m.memoizedState.inst;$e!==null&&c!==null&&th(c,$e.memoizedState.deps)?m.memoizedState=Gs(s,p,o,c):(pe.flags|=r,m.memoizedState=Gs(1|s,p,o,c))}function Ab(r,s){Vu(8390656,8,r,s)}function dh(r,s){zu(2048,8,r,s)}function AR(r){pe.flags|=4;var s=pe.updateQueue;if(s===null)s=Iu(),pe.updateQueue=s,s.events=[r];else{var o=s.events;o===null?s.events=[r]:o.push(r)}}function Ob(r){var s=lt().memoizedState;return AR({ref:s,nextImpl:r}),function(){if((De&2)!==0)throw Error(i(440));return s.impl.apply(void 0,arguments)}}function Cb(r,s){return zu(4,2,r,s)}function Rb(r,s){return zu(4,4,r,s)}function kb(r,s){if(typeof s=="function"){r=r();var o=s(r);return function(){typeof o=="function"?o():s(null)}}if(s!=null)return r=r(),s.current=r,function(){s.current=null}}function Nb(r,s,o){o=o!=null?o.concat([r]):null,zu(4,4,kb.bind(null,s,r),o)}function fh(){}function jb(r,s){var o=lt();s=s===void 0?null:s;var c=o.memoizedState;return s!==null&&th(s,c[1])?c[0]:(o.memoizedState=[r,s],r)}function Db(r,s){var o=lt();s=s===void 0?null:s;var c=o.memoizedState;if(s!==null&&th(s,c[1]))return c[0];if(c=r(),Hi){Br(!0);try{r()}finally{Br(!1)}}return o.memoizedState=[c,s],c}function hh(r,s,o){return o===void 0||(pr&1073741824)!==0&&(Ee&261930)===0?r.memoizedState=s:(r.memoizedState=o,r=M0(),pe.lanes|=r,Zr|=r,o)}function Mb(r,s,o,c){return an(o,s)?o:Hs.current!==null?(r=hh(r,o,c),an(r,s)||(ht=!0),r):(pr&42)===0||(pr&1073741824)!==0&&(Ee&261930)===0?(ht=!0,r.memoizedState=o):(r=M0(),pe.lanes|=r,Zr|=r,s)}function Lb(r,s,o,c,m){var p=K.p;K.p=p!==0&&8>p?p:8;var b=V.T,w={};V.T=w,gh(r,!1,s,o);try{var O=m(),U=V.S;if(U!==null&&U(w,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var z=SR(O,c);jo(r,s,z,fn(r))}else jo(r,s,c,fn(r))}catch(F){jo(r,s,{then:function(){},status:"rejected",reason:F},fn())}finally{K.p=p,b!==null&&w.types!==null&&(b.types=w.types),V.T=b}}function OR(){}function mh(r,s,o,c){if(r.tag!==5)throw Error(i(476));var m=Ub(r).queue;Lb(r,m,s,J,o===null?OR:function(){return Ib(r),o(c)})}function Ub(r){var s=r.memoizedState;if(s!==null)return s;s={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:J},next:null};var o={};return s.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:o},next:null},r.memoizedState=s,r=r.alternate,r!==null&&(r.memoizedState=s),s}function Ib(r){var s=Ub(r);s.next===null&&(s=r.alternate.memoizedState),jo(r,s.next.queue,{},fn())}function ph(){return Ct(Xo)}function Pb(){return lt().memoizedState}function Bb(){return lt().memoizedState}function CR(r){for(var s=r.return;s!==null;){switch(s.tag){case 24:case 3:var o=fn();r=Kr(o);var c=Yr(s,r,o);c!==null&&(Zt(c,s,o),Oo(c,s,o)),s={cache:qf()},r.payload=s;return}s=s.return}}function RR(r,s,o){var c=fn();o={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},$u(r)?zb(s,o):(o=Df(r,s,o,c),o!==null&&(Zt(o,r,c),$b(o,s,c)))}function Vb(r,s,o){var c=fn();jo(r,s,o,c)}function jo(r,s,o,c){var m={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if($u(r))zb(s,m);else{var p=r.alternate;if(r.lanes===0&&(p===null||p.lanes===0)&&(p=s.lastRenderedReducer,p!==null))try{var b=s.lastRenderedState,w=p(b,o);if(m.hasEagerState=!0,m.eagerState=w,an(w,b))return wu(r,s,m,0),Fe===null&&Su(),!1}catch{}finally{}if(o=Df(r,s,m,c),o!==null)return Zt(o,r,c),$b(o,s,c),!0}return!1}function gh(r,s,o,c){if(c={lane:2,revertLane:Yh(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},$u(r)){if(s)throw Error(i(479))}else s=Df(r,o,c,2),s!==null&&Zt(s,r,2)}function $u(r){var s=r.alternate;return r===pe||s!==null&&s===pe}function zb(r,s){qs=Lu=!0;var o=r.pending;o===null?s.next=s:(s.next=o.next,o.next=s),r.pending=s}function $b(r,s,o){if((o&4194048)!==0){var c=s.lanes;c&=r.pendingLanes,o|=c,s.lanes=o,Ky(r,o)}}var Do={readContext:Ct,use:Pu,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useLayoutEffect:nt,useInsertionEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useSyncExternalStore:nt,useId:nt,useHostTransitionStatus:nt,useFormState:nt,useActionState:nt,useOptimistic:nt,useMemoCache:nt,useCacheRefresh:nt};Do.useEffectEvent=nt;var Hb={readContext:Ct,use:Pu,useCallback:function(r,s){return Bt().memoizedState=[r,s===void 0?null:s],r},useContext:Ct,useEffect:Ab,useImperativeHandle:function(r,s,o){o=o!=null?o.concat([r]):null,Vu(4194308,4,kb.bind(null,s,r),o)},useLayoutEffect:function(r,s){return Vu(4194308,4,r,s)},useInsertionEffect:function(r,s){Vu(4,2,r,s)},useMemo:function(r,s){var o=Bt();s=s===void 0?null:s;var c=r();if(Hi){Br(!0);try{r()}finally{Br(!1)}}return o.memoizedState=[c,s],c},useReducer:function(r,s,o){var c=Bt();if(o!==void 0){var m=o(s);if(Hi){Br(!0);try{o(s)}finally{Br(!1)}}}else m=s;return c.memoizedState=c.baseState=m,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:m},c.queue=r,r=r.dispatch=RR.bind(null,pe,r),[c.memoizedState,r]},useRef:function(r){var s=Bt();return r={current:r},s.memoizedState=r},useState:function(r){r=uh(r);var s=r.queue,o=Vb.bind(null,pe,s);return s.dispatch=o,[r.memoizedState,o]},useDebugValue:fh,useDeferredValue:function(r,s){var o=Bt();return hh(o,r,s)},useTransition:function(){var r=uh(!1);return r=Lb.bind(null,pe,r.queue,!0,!1),Bt().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,s,o){var c=pe,m=Bt();if(Ce){if(o===void 0)throw Error(i(407));o=o()}else{if(o=s(),Fe===null)throw Error(i(349));(Ee&127)!==0||cb(c,s,o)}m.memoizedState=o;var p={value:o,getSnapshot:s};return m.queue=p,Ab(fb.bind(null,c,p,r),[r]),c.flags|=2048,Gs(9,{destroy:void 0},db.bind(null,c,p,o,s),null),o},useId:function(){var r=Bt(),s=Fe.identifierPrefix;if(Ce){var o=Qn,c=Jn;o=(c&~(1<<32-sn(c)-1)).toString(32)+o,s="_"+s+"R_"+o,o=Uu++,0<o&&(s+="H"+o.toString(32)),s+="_"}else o=wR++,s="_"+s+"r_"+o.toString(32)+"_";return r.memoizedState=s},useHostTransitionStatus:ph,useFormState:Sb,useActionState:Sb,useOptimistic:function(r){var s=Bt();s.memoizedState=s.baseState=r;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=o,s=gh.bind(null,pe,!0,o),o.dispatch=s,[r,s]},useMemoCache:ah,useCacheRefresh:function(){return Bt().memoizedState=CR.bind(null,pe)},useEffectEvent:function(r){var s=Bt(),o={impl:r};return s.memoizedState=o,function(){if((De&2)!==0)throw Error(i(440));return o.impl.apply(void 0,arguments)}}},yh={readContext:Ct,use:Pu,useCallback:jb,useContext:Ct,useEffect:dh,useImperativeHandle:Nb,useInsertionEffect:Cb,useLayoutEffect:Rb,useMemo:Db,useReducer:Bu,useRef:xb,useState:function(){return Bu(gr)},useDebugValue:fh,useDeferredValue:function(r,s){var o=lt();return Mb(o,$e.memoizedState,r,s)},useTransition:function(){var r=Bu(gr)[0],s=lt().memoizedState;return[typeof r=="boolean"?r:No(r),s]},useSyncExternalStore:ub,useId:Pb,useHostTransitionStatus:ph,useFormState:wb,useActionState:wb,useOptimistic:function(r,s){var o=lt();return pb(o,$e,r,s)},useMemoCache:ah,useCacheRefresh:Bb};yh.useEffectEvent=Ob;var qb={readContext:Ct,use:Pu,useCallback:jb,useContext:Ct,useEffect:dh,useImperativeHandle:Nb,useInsertionEffect:Cb,useLayoutEffect:Rb,useMemo:Db,useReducer:lh,useRef:xb,useState:function(){return lh(gr)},useDebugValue:fh,useDeferredValue:function(r,s){var o=lt();return $e===null?hh(o,r,s):Mb(o,$e.memoizedState,r,s)},useTransition:function(){var r=lh(gr)[0],s=lt().memoizedState;return[typeof r=="boolean"?r:No(r),s]},useSyncExternalStore:ub,useId:Pb,useHostTransitionStatus:ph,useFormState:Tb,useActionState:Tb,useOptimistic:function(r,s){var o=lt();return $e!==null?pb(o,$e,r,s):(o.baseState=r,[r,o.queue.dispatch])},useMemoCache:ah,useCacheRefresh:Bb};qb.useEffectEvent=Ob;function vh(r,s,o,c){s=r.memoizedState,o=o(c,s),o=o==null?s:y({},s,o),r.memoizedState=o,r.lanes===0&&(r.updateQueue.baseState=o)}var bh={enqueueSetState:function(r,s,o){r=r._reactInternals;var c=fn(),m=Kr(c);m.payload=s,o!=null&&(m.callback=o),s=Yr(r,m,c),s!==null&&(Zt(s,r,c),Oo(s,r,c))},enqueueReplaceState:function(r,s,o){r=r._reactInternals;var c=fn(),m=Kr(c);m.tag=1,m.payload=s,o!=null&&(m.callback=o),s=Yr(r,m,c),s!==null&&(Zt(s,r,c),Oo(s,r,c))},enqueueForceUpdate:function(r,s){r=r._reactInternals;var o=fn(),c=Kr(o);c.tag=2,s!=null&&(c.callback=s),s=Yr(r,c,o),s!==null&&(Zt(s,r,o),Oo(s,r,o))}};function Fb(r,s,o,c,m,p,b){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,p,b):s.prototype&&s.prototype.isPureReactComponent?!bo(o,c)||!bo(m,p):!0}function Gb(r,s,o,c){r=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(o,c
vendor: 14,646 bytes, line 56
56),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(o,c),s.state!==r&&bh.enqueueReplaceState(s,s.state,null)}function qi(r,s){var o=s;if("ref"in s){o={};for(var c in s)c!=="ref"&&(o[c]=s[c])}if(r=r.defaultProps){o===s&&(o=y({},o));for(var m in r)o[m]===void 0&&(o[m]=r[m])}return o}function Kb(r){_u(r)}function Yb(r){console.error(r)}function Xb(r){_u(r)}function Hu(r,s){try{var o=r.onUncaughtError;o(s.value,{componentStack:s.stack})}catch(c){setTimeout(function(){throw c})}}function Wb(r,s,o){try{var c=r.onCaughtError;c(o.value,{componentStack:o.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function _h(r,s,o){return o=Kr(o),o.tag=3,o.payload={element:null},o.callback=function(){Hu(r,s)},o}function Jb(r){return r=Kr(r),r.tag=3,r}function Qb(r,s,o,c){var m=o.type.getDerivedStateFromError;if(typeof m=="function"){var p=c.value;r.payload=function(){return m(p)},r.callback=function(){Wb(s,o,c)}}var b=o.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(r.callback=function(){Wb(s,o,c),typeof m!="function"&&(ei===null?ei=new Set([this]):ei.add(this));var w=c.stack;this.componentDidCatch(c.value,{componentStack:w!==null?w:""})})}function kR(r,s,o,c,m){if(o.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(s=o.alternate,s!==null&&Ps(s,o,m,!0),o=ln.current,o!==null){switch(o.tag){case 31:case 13:return Tn===null?tc():o.alternate===null&&rt===0&&(rt=3),o.flags&=-257,o.flags|=65536,o.lanes=m,c===ku?o.flags|=16384:(s=o.updateQueue,s===null?o.updateQueue=new Set([c]):s.add(c),Fh(r,c,m)),!1;case 22:return o.flags|=65536,c===ku?o.flags|=16384:(s=o.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([c])},o.updateQueue=s):(o=s.retryQueue,o===null?s.retryQueue=new Set([c]):o.add(c)),Fh(r,c,m)),!1}throw Error(i(435,o.tag))}return Fh(r,c,m),tc(),!1}if(Ce)return s=ln.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=m,c!==Bf&&(r=Error(i(422),{cause:c}),wo(_n(r,o)))):(c!==Bf&&(s=Error(i(423),{cause:c}),wo(_n(s,o))),r=r.current.alternate,r.flags|=65536,m&=-m,r.lanes|=m,c=_n(c,o),m=_h(r.stateNode,c,m),Wf(r,m),rt!==4&&(rt=2)),!1;var p=Error(i(520),{cause:c});if(p=_n(p,o),zo===null?zo=[p]:zo.push(p),rt!==4&&(rt=2),s===null)return!0;c=_n(c,o),o=s;do{switch(o.tag){case 3:return o.flags|=65536,r=m&-m,o.lanes|=r,r=_h(o.stateNode,c,r),Wf(o,r),!1;case 1:if(s=o.type,p=o.stateNode,(o.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(ei===null||!ei.has(p))))return o.flags|=65536,m&=-m,o.lanes|=m,m=Jb(m),Qb(m,r,o,c),Wf(o,m),!1}o=o.return}while(o!==null);return!1}var Sh=Error(i(461)),ht=!1;function Rt(r,s,o,c){s.child=r===null?nb(s,null,o,c):$i(s,r.child,o,c)}function Zb(r,s,o,c,m){o=o.render;var p=s.ref;if("ref"in c){var b={};for(var w in c)w!=="ref"&&(b[w]=c[w])}else b=c;return Pi(s),c=nh(r,s,o,b,p,m),w=rh(),r!==null&&!ht?(ih(r,s,m),yr(r,s,m)):(Ce&&w&&If(s),s.flags|=1,Rt(r,s,c,m),s.child)}function e0(r,s,o,c,m){if(r===null){var p=o.type;return typeof p=="function"&&!Mf(p)&&p.defaultProps===void 0&&o.compare===null?(s.tag=15,s.type=p,t0(r,s,p,c,m)):(r=Tu(o.type,null,c,s,s.mode,m),r.ref=s.ref,r.return=s,s.child=r)}if(p=r.child,!Rh(r,m)){var b=p.memoizedProps;if(o=o.compare,o=o!==null?o:bo,o(b,c)&&r.ref===s.ref)return yr(r,s,m)}return s.flags|=1,r=dr(p,c),r.ref=s.ref,r.return=s,s.child=r}function t0(r,s,o,c,m){if(r!==null){var p=r.memoizedProps;if(bo(p,c)&&r.ref===s.ref)if(ht=!1,s.pendingProps=c=p,Rh(r,m))(r.flags&131072)!==0&&(ht=!0);else return s.lanes=r.lanes,yr(r,s,m)}return wh(r,s,o,c,m)}function n0(r,s,o,c){var m=c.children,p=r!==null?r.memoizedState:null;if(r===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((s.flags&128)!==0){if(p=p!==null?p.baseLanes|o:o,r!==null){for(c=s.child=r.child,m=0;c!==null;)m=m|c.lanes|c.childLanes,c=c.sibling;c=m&~p}else c=0,s.child=null;return r0(r,s,p,o,c)}if((o&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},r!==null&&Cu(s,p!==null?p.cachePool:null),p!==null?sb(s,p):Qf(),ab(s);else return c=s.lanes=536870912,r0(r,s,p!==null?p.baseLanes|o:o,o,c)}else p!==null?(Cu(s,p.cachePool),sb(s,p),Wr(),s.memoizedState=null):(r!==null&&Cu(s,null),Qf(),Wr());return Rt(r,s,m,o),s.child}function Mo(r,s){return r!==null&&r.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function r0(r,s,o,c,m){var p=Gf();return p=p===null?null:{parent:dt._currentValue,pool:p},s.memoizedState={baseLanes:o,cachePool:p},r!==null&&Cu(s,null),Qf(),ab(s),r!==null&&Ps(r,s,c,!0),s.childLanes=m,null}function qu(r,s){return s=Gu({mode:s.mode,children:s.children},r.mode),s.ref=r.ref,r.child=s,s.return=r,s}function i0(r,s,o){return $i(s,r.child,null,o),r=qu(s,s.pendingProps),r.flags|=2,un(s),s.memoizedState=null,r}function NR(r,s,o){var c=s.pendingProps,m=(s.flags&128)!==0;if(s.flags&=-129,r===null){if(Ce){if(c.mode==="hidden")return r=qu(s,c),s.lanes=536870912,Mo(null,r);if(eh(s),(r=Xe)?(r=g_(r,En),r=r!==null&&r.data==="&"?r:null,r!==null&&(s.memoizedState={dehydrated:r,treeContext:$r!==null?{id:Jn,overflow:Qn}:null,retryLane:536870912,hydrationErrors:null},o=zv(r),o.return=s,s.child=o,Ot=s,Xe=null)):r=null,r===null)throw qr(s);return s.lanes=536870912,null}return qu(s,c)}var p=r.memoizedState;if(p!==null){var b=p.dehydrated;if(eh(s),m)if(s.flags&256)s.flags&=-257,s=i0(r,s,o);else if(s.memoizedState!==null)s.child=r.child,s.flags|=128,s=null;else throw Error(i(558));else if(ht||Ps(r,s,o,!1),m=(o&r.childLanes)!==0,ht||m){if(c=Fe,c!==null&&(b=Yy(c,o),b!==0&&b!==p.retryLane))throw p.retryLane=b,Mi(r,b),Zt(c,r,b),Sh;tc(),s=i0(r,s,o)}else r=p.treeContext,Xe=xn(b.nextSibling),Ot=s,Ce=!0,Hr=null,En=!1,r!==null&&qv(s,r),s=qu(s,c),s.flags|=4096;return s}return r=dr(r.child,{mode:c.mode,children:c.children}),r.ref=s.ref,s.child=r,r.return=s,r}function Fu(r,s){var o=s.ref;if(o===null)r!==null&&r.ref!==null&&(s.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(i(284));(r===null||r.ref!==o)&&(s.flags|=4194816)}}function wh(r,s,o,c,m){return Pi(s),o=nh(r,s,o,c,void 0,m),c=rh(),r!==null&&!ht?(ih(r,s,m),yr(r,s,m)):(Ce&&c&&If(s),s.flags|=1,Rt(r,s,o,m),s.child)}function s0(r,s,o,c,m,p){return Pi(s),s.updateQueue=null,o=lb(s,c,o,m),ob(r),c=rh(),r!==null&&!ht?(ih(r,s,p),yr(r,s,p)):(Ce&&c&&If(s),s.flags|=1,Rt(r,s,o,p),s.child)}function a0(r,s,o,c,m){if(Pi(s),s.stateNode===null){var p=Ms,b=o.contextType;typeof b=="object"&&b!==null&&(p=Ct(b)),p=new o(c,p),s.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=bh,s.stateNode=p,p._reactInternals=s,p=s.stateNode,p.props=c,p.state=s.memoizedState,p.refs={},Yf(s),b=o.contextType,p.context=typeof b=="object"&&b!==null?Ct(b):Ms,p.state=s.memoizedState,b=o.getDerivedStateFromProps,typeof b=="function"&&(vh(s,o,b,c),p.state=s.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(b=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),b!==p.state&&bh.enqueueReplaceState(p,p.state,null),Ro(s,c,p,m),Co(),p.state=s.memoizedState),typeof p.componentDidMount=="function"&&(s.flags|=4194308),c=!0}else if(r===null){p=s.stateNode;var w=s.memoizedProps,O=qi(o,w);p.props=O;var U=p.context,z=o.contextType;b=Ms,typeof z=="object"&&z!==null&&(b=Ct(z));var F=o.getDerivedStateFromProps;z=typeof F=="function"||typeof p.getSnapshotBeforeUpdate=="function",w=s.pendingProps!==w,z||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(w||U!==b)&&Gb(s,p,c,b),Gr=!1;var I=s.memoizedState;p.state=I,Ro(s,c,p,m),Co(),U=s.memoizedState,w||I!==U||Gr?(typeof F=="function"&&(vh(s,o,F,c),U=s.memoizedState),(O=Gr||Fb(s,o,O,c,I,U,b))?(z||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(s.flags|=4194308)):(typeof p.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=c,s.memoizedState=U),p.props=c,p.state=U,p.context=b,c=O):(typeof p.componentDidMount=="function"&&(s.flags|=4194308),c=!1)}else{p=s.stateNode,Xf(r,s),b=s.memoizedProps,z=qi(o,b),p.props=z,F=s.pendingProps,I=p.context,U=o.contextType,O=Ms,typeof U=="object"&&U!==null&&(O=Ct(U)),w=o.getDerivedStateFromProps,(U=typeof w=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(b!==F||I!==O)&&Gb(s,p,c,O),Gr=!1,I=s.memoizedState,p.state=I,Ro(s,c,p,m),Co();var P=s.memoizedState;b!==F||I!==P||Gr||r!==null&&r.dependencies!==null&&Au(r.dependencies)?(typeof w=="function"&&(vh(s,o,w,c),P=s.memoizedState),(z=Gr||Fb(s,o,z,c,I,P,O)||r!==null&&r.dependencies!==null&&Au(r.dependencies))?(U||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(c,P,O),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(c,P,O)),typeof p.componentDidUpdate=="function"&&(s.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof p.componentDidUpdate!="function"||b===r.memoizedProps&&I===r.memoizedState||(s.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||b===r.memoizedProps&&I===r.memoizedState||(s.flags|=1024),s.memoizedProps=c,s.memoizedState=P),p.props=c,p.state=P,p.context=O,c=z):(typeof p.componentDidUpdate!="function"||b===r.memoizedProps&&I===r.memoizedState||(s.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||b===r.memoizedProps&&I===r.memoizedState||(s.flags|=1024),c=!1)}return p=c,Fu(r,s),c=(s.flags&128)!==0,p||c?(p=s.stateNode,o=c&&typeof o.getDerivedStateFromError!="function"?null:p.render(),s.flags|=1,r!==null&&c?(s.child=$i(s,r.child,null,m),s.child=$i(s,null,o,m)):Rt(r,s,o,m),s.memoizedState=p.state,r=s.child):r=yr(r,s,m),r}function o0(r,s,o,c){return Ui(),s.flags|=256,Rt(r,s,o,c),s.child}var Eh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Th(r){return{baseLanes:r,cachePool:Wv()}}function xh(r,s,o){return r=r!==null?r.childLanes&~o:0,s&&(r|=dn),r}function l0(r,s,o){var c=s.pendingProps,m=!1,p=(s.flags&128)!==0,b;if((b=p)||(b=r!==null&&r.memoizedState===null?!1:(ot.current&2)!==0),b&&(m=!0,s.flags&=-129),b=(s.flags&32)!==0,s.flags&=-33,r===null){if(Ce){if(m?Xr(s):Wr(),(r=Xe)?(r=g_(r,En),r=r!==null&&r.data!=="&"?r:null,r!==null&&(s.memoizedState={dehydrated:r,treeContext:$r!==null?{id:Jn,overflow:Qn}:null,retryLane:536870912,hydrationErrors:null},o=zv(r),o.return=s,s.child=o,Ot=s,Xe=null)):r=null,r===null)throw qr(s);return om(r)?s.lanes=32:s.lanes=536870912,null}var w=c.children;return c=c.fallback,m?(Wr(),m=s.mode,w=Gu({mode:"hidden",children:w},m),c=Li(c,m,o,null),w.return=s,c.return=s,w.sibling=c,s.child=w,c=s.child,c.memoizedState=Th(o),c.childLanes=xh(r,b,o),s.memoizedState=Eh,Mo(null,c)):(Xr(s),Ah(s,w))}var O=r.memoizedState;if(O!==null&&(w=O.dehydrated,w!==null)){if(p)s.flags&256?(Xr(s),s.flags&=-257,s=Oh(r,s,o)):s.memoizedState!==null?(Wr(),s.child=r.child,s.flags|=128,s=null):(Wr(),w=c.fallback,m=s.mode,c=Gu({mode:"visible",children:c.children},m),w=Li(w,m,o,null),w.flags|=2,c.return=s,w.return=s,c.sibling=w,s.child=c,$i(s,r.child,null,o),c=s.child,c.memoizedState=Th(o),c.childLanes=xh(r,b,o),s.memoizedState=Eh,s=Mo(null,c));else if(Xr(s),om(w)){if(b=w.nextSibling&&w.nextSibling.dataset,b)var U=b.dgst;b=U,c=Error(i(419)),c.stack="",c.digest=b,wo({value:c,source:null,stack:null}),s=Oh(r,s,o)}else if(ht||Ps(r,s,o,!1),b=(o&r.childLanes)!==0,ht||b){if(b=Fe,b!==null&&(c=Yy(b,o),c!==0&&c!==O.retryLane))throw O.retryLane=c,Mi(r,c),Zt(b,r,c),Sh;am(w)||tc(),s=Oh(r,s,o)}else am(w)?(s.flags|=192,s.child=r.child,s=null):(r=O.treeContext,Xe=xn(w.nextSibling),Ot=s,Ce=!0,Hr=null,En=!1,r!==null&&qv(s,r),s=Ah(s,c.children),s.flags|=4096);return s}return m?(Wr(),w=c.fallback,m=s.mode,O=r.child,U=O.sibling,c=dr(O,{mode:"hidden",children:c.children}),c.subtreeFlags=O.subtreeFlags&65011712,U!==null?w=dr(U,w):(w=Li(w,m,o,null),w.flags|=2),w.return=s,c.return=s,c.sibling=w,s.child=c,Mo(null,c),c=s.child,w=r.child.memoizedState,w===null?w=Th(o):(m=w.cachePool,m!==null?(O=dt._currentValue,m=m.parent!==O?{parent:O,pool:O}:m):m=Wv(),w={baseLanes:w.baseLanes|o,cachePool:m}),c.memoizedState=w,c.childLanes=xh(r,b,o),s.memoizedState=Eh,Mo(r.child,c)):(Xr(s),o=r.child,r=o.sibling,o=dr(o,{mode:"visible",children:c.children}),o.return=s,o.sibling=null,r!==null&&(b=s.deletions,b===null?(s.deletions=[r],s.flags|=16):b.push(r)),s.child=o,s.memoizedState=null,o)}function Ah(r,s){return s=Gu({mode:"visible",children:s},r.mode),s.return=r,r.child=s}function Gu(r,s){return r=on(22,r,null,s),r.lanes=0,r}function Oh(r,s,o){return $i(s,r.child,null,o),r=Ah(s,s.pendingProps.children),r.flags|=2,s.memoizedState=null,r}function u0(r,s,o){r.lanes|=s;var c=r.alternate;c!==null&&(c.lanes|=s),$f(r.return,s,o)}function Ch(r,s,o,c,m,p){var b=r.memoizedState;b===null?r.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:c,tail:o,tailMode:m,treeForkCount:p}:(b.isBackwards=s,b.rendering=null,b.renderingStartTime=0,b.last=c,b.tail=o,b.tailMode=m,b.treeForkCount=p)}function c0(r,s,o){var c=s.pendingProps,m=c.revealOrder,p=c.tail;c=c.children;var b=ot.current,w=(b&2)!==0;if(w?(b=b&1|2,s.flags|=128):b&=1,Y(ot,b),Rt(r,s,c,o),c=Ce?So:0,!w&&r!==null&&(r.flags&128)!==0)e:for(r=s.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&u0(r,o,s);else if(r.tag===19)u0(r,o,s);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===s)break e;for(;r.sibling===null;){if(r.return===null||r.return===s)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(m){case"forwards":for(o=s.child,m=null;o!==null;)r=o.alternate,r!==null&&Mu(r)===null&&(m=o),o=o.sibling;o=m,o===null?(m=s.child,s.child=null):(m=o.sibling,o.sibling=null),Ch(s,!1,m,o,p,c);break;case"backwards":case"unstable_legacy-backwards":for(o=null,m=s.child,s.child=null;m!==null;){if(r=m.alternate,r!==null&&Mu(r)===null){s.child=m;break}r=m.sibling,m.sibling=o,o=m,m=r}Ch(s,!0,o,null,p,c);break;case"together":Ch(s,!1,null,null,void 0,c);break;default:s.memoizedState=null}return s.child}
vendor: 4,080 bytes, line 56
56function yr(r,s,o){if(r!==null&&(s.dependencies=r.dependencies),Zr|=s.lanes,(o&s.childLanes)===0)if(r!==null){if(Ps(r,s,o,!1),(o&s.childLanes)===0)return null}else return null;if(r!==null&&s.child!==r.child)throw Error(i(153));if(s.child!==null){for(r=s.child,o=dr(r,r.pendingProps),s.child=o,o.return=s;r.sibling!==null;)r=r.sibling,o=o.sibling=dr(r,r.pendingProps),o.return=s;o.sibling=null}return s.child}function Rh(r,s){return(r.lanes&s)!==0?!0:(r=r.dependencies,!!(r!==null&&Au(r)))}function jR(r,s,o){switch(s.tag){case 3:Pe(s,s.stateNode.containerInfo),Fr(s,dt,r.memoizedState.cache),Ui();break;case 27:case 5:so(s);break;case 4:Pe(s,s.stateNode.containerInfo);break;case 10:Fr(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,eh(s),null;break;case 13:var c=s.memoizedState;if(c!==null)return c.dehydrated!==null?(Xr(s),s.flags|=128,null):(o&s.child.childLanes)!==0?l0(r,s,o):(Xr(s),r=yr(r,s,o),r!==null?r.sibling:null);Xr(s);break;case 19:var m=(r.flags&128)!==0;if(c=(o&s.childLanes)!==0,c||(Ps(r,s,o,!1),c=(o&s.childLanes)!==0),m){if(c)return c0(r,s,o);s.flags|=128}if(m=s.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),Y(ot,ot.current),c)break;return null;case 22:return s.lanes=0,n0(r,s,o,s.pendingProps);case 24:Fr(s,dt,r.memoizedState.cache)}return yr(r,s,o)}function d0(r,s,o){if(r!==null)if(r.memoizedProps!==s.pendingProps)ht=!0;else{if(!Rh(r,o)&&(s.flags&128)===0)return ht=!1,jR(r,s,o);ht=(r.flags&131072)!==0}else ht=!1,Ce&&(s.flags&1048576)!==0&&Hv(s,So,s.index);switch(s.lanes=0,s.tag){case 16:e:{var c=s.pendingProps;if(r=Vi(s.elementType),s.type=r,typeof r=="function")Mf(r)?(c=qi(r,c),s.tag=1,s=a0(null,s,r,c,o)):(s.tag=0,s=wh(null,s,r,c,o));else{if(r!=null){var m=r.$$typeof;if(m===M){s.tag=11,s=Zb(null,s,r,c,o);break e}else if(m===G){s.tag=14,s=e0(null,s,r,c,o);break e}}throw s=Ke(r)||r,Error(i(306,s,""))}}return s;case 0:return wh(r,s,s.type,s.pendingProps,o);case 1:return c=s.type,m=qi(c,s.pendingProps),a0(r,s,c,m,o);case 3:e:{if(Pe(s,s.stateNode.containerInfo),r===null)throw Error(i(387));c=s.pendingProps;var p=s.memoizedState;m=p.element,Xf(r,s),Ro(s,c,null,o);var b=s.memoizedState;if(c=b.cache,Fr(s,dt,c),c!==p.cache&&Hf(s,[dt],o,!0),Co(),c=b.element,p.isDehydrated)if(p={element:c,isDehydrated:!1,cache:b.cache},s.updateQueue.baseState=p,s.memoizedState=p,s.flags&256){s=o0(r,s,c,o);break e}else if(c!==m){m=_n(Error(i(424)),s),wo(m),s=o0(r,s,c,o);break e}else{switch(r=s.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(Xe=xn(r.firstChild),Ot=s,Ce=!0,Hr=null,En=!0,o=nb(s,null,c,o),s.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(Ui(),c===m){s=yr(r,s,o);break e}Rt(r,s,c,o)}s=s.child}return s;case 26:return Fu(r,s),r===null?(o=w_(s.type,null,s.pendingProps,null))?s.memoizedState=o:Ce||(o=s.type,r=s.pendingProps,c=lc(me.current).createElement(o),c[At]=s,c[Kt]=r,kt(c,o,r),Et(c),s.stateNode=c):s.memoizedState=w_(s.type,r.memoizedProps,s.pendingProps,r.memoizedState),null;case 27:return so(s),r===null&&Ce&&(c=s.stateNode=b_(s.type,s.pendingProps,me.current),Ot=s,En=!0,m=Xe,ii(s.type)?(lm=m,Xe=xn(c.firstChild)):Xe=m),Rt(r,s,s.pendingProps.children,o),Fu(r,s),r===null&&(s.flags|=4194304),s.child;case 5:return r===null&&Ce&&((m=c=Xe)&&(c=lk(c,s.type,s.pendingProps,En),c!==null?(s.stateNode=c,Ot=s,Xe=xn(c.firstChild),En=!1,m=!0):m=!1),m||qr(s)),so(s),m=s.type,p=s.pendingProps,b=r!==null?r.memoizedProps:null,c=p.children,rm(m,p)?c=null:b!==null&&rm(m,b)&&(s.flags|=32),s.memoizedState!==null&&(m=nh(r,s,ER,null,null,o),Xo._currentValue=m),Fu(r,s),Rt(r,s,c,o),s.child;case 6:return r===null&&Ce&&((r=o=Xe)&&(o=uk(o,s.pendingProps,En),o!==null?(s.stateNode=o,Ot=s,Xe=null,r=!0):r=!1),r||qr(s)),null;case 13:return l0(r,s,o);case 4:return Pe(s,s.stateNode.containerInfo),c=s.pendingProps,r===null?s.child=$i(s,null,c,o):Rt(r,s,c,o),s.child;case 11:return Zb(r,s,s.type,s.pendingProps,o);case 7:return Rt(r,s,s.pendingProps,o),s.child;case 8:return Rt(r,s,s.pendingProps.children,o),s.child;
vendor: 4,460 bytes, line 56
56case 12:return Rt(r,s,s.pendingProps.children,o),s.child;case 10:return c=s.pendingProps,Fr(s,s.type,c.value),Rt(r,s,c.children,o),s.child;case 9:return m=s.type._context,c=s.pendingProps.children,Pi(s),m=Ct(m),c=c(m),s.flags|=1,Rt(r,s,c,o),s.child;case 14:return e0(r,s,s.type,s.pendingProps,o);case 15:return t0(r,s,s.type,s.pendingProps,o);case 19:return c0(r,s,o);case 31:return NR(r,s,o);case 22:return n0(r,s,o,s.pendingProps);case 24:return Pi(s),c=Ct(dt),r===null?(m=Gf(),m===null&&(m=Fe,p=qf(),m.pooledCache=p,p.refCount++,p!==null&&(m.pooledCacheLanes|=o),m=p),s.memoizedState={parent:c,cache:m},Yf(s),Fr(s,dt,m)):((r.lanes&o)!==0&&(Xf(r,s),Ro(s,null,null,o),Co()),m=r.memoizedState,p=s.memoizedState,m.parent!==c?(m={parent:c,cache:c},s.memoizedState=m,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=m),Fr(s,dt,c)):(c=p.cache,Fr(s,dt,c),c!==m.cache&&Hf(s,[dt],o,!0))),Rt(r,s,s.pendingProps.children,o),s.child;case 29:throw s.pendingProps}throw Error(i(156,s.tag))}function vr(r){r.flags|=4}function kh(r,s,o,c,m){if((s=(r.mode&32)!==0)&&(s=!1),s){if(r.flags|=16777216,(m&335544128)===m)if(r.stateNode.complete)r.flags|=8192;else if(P0())r.flags|=8192;else throw zi=ku,Kf}else r.flags&=-16777217}function f0(r,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!O_(s))if(P0())r.flags|=8192;else throw zi=ku,Kf}function Ku(r,s){s!==null&&(r.flags|=4),r.flags&16384&&(s=r.tag!==22?Fy():536870912,r.lanes|=s,Ws|=s)}function Lo(r,s){if(!Ce)switch(r.tailMode){case"hidden":s=r.tail;for(var o=null;s!==null;)s.alternate!==null&&(o=s),s=s.sibling;o===null?r.tail=null:o.sibling=null;break;case"collapsed":o=r.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?s||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function We(r){var s=r.alternate!==null&&r.alternate.child===r.child,o=0,c=0;if(s)for(var m=r.child;m!==null;)o|=m.lanes|m.childLanes,c|=m.subtreeFlags&65011712,c|=m.flags&65011712,m.return=r,m=m.sibling;else for(m=r.child;m!==null;)o|=m.lanes|m.childLanes,c|=m.subtreeFlags,c|=m.flags,m.return=r,m=m.sibling;return r.subtreeFlags|=c,r.childLanes=o,s}function DR(r,s,o){var c=s.pendingProps;switch(Pf(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(s),null;case 1:return We(s),null;case 3:return o=s.stateNode,c=null,r!==null&&(c=r.memoizedState.cache),s.memoizedState.cache!==c&&(s.flags|=2048),mr(dt),at(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(r===null||r.child===null)&&(Is(s)?vr(s):r===null||r.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Vf())),We(s),null;case 26:var m=s.type,p=s.memoizedState;return r===null?(vr(s),p!==null?(We(s),f0(s,p)):(We(s),kh(s,m,null,c,o))):p?p!==r.memoizedState?(vr(s),We(s),f0(s,p)):(We(s),s.flags&=-16777217):(r=r.memoizedProps,r!==c&&vr(s),We(s),kh(s,m,r,c,o)),null;case 27:if(iu(s),o=me.current,m=s.type,r!==null&&s.stateNode!=null)r.memoizedProps!==c&&vr(s);else{if(!c){if(s.stateNode===null)throw Error(i(166));return We(s),null}r=ee.current,Is(s)?Fv(s):(r=b_(m,c,o),s.stateNode=r,vr(s))}return We(s),null;case 5:if(iu(s),m=s.type,r!==null&&s.stateNode!=null)r.memoizedProps!==c&&vr(s);else{if(!c){if(s.stateNode===null)throw Error(i(166));return We(s),null}if(p=ee.current,Is(s))Fv(s);else{var b=lc(me.current);switch(p){case 1:p=b.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:p=b.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":p=b.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":p=b.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":p=b.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof c.is=="string"?b.createElement("select",{is:c.is}):b.createElement("select"),c.multiple?p.multiple=!0:c.size&&(p.size=c.size);break;default:p=typeof c.is=="string"?b.createElement(m,{is:c.is}):b.createElement(m)}}p[At]=s,p[Kt]=c;e:for(b=s.child;b!==null;){if(b.tag===5||b.tag===6)p.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===s)break e;for(;b.sibling===null;){if(b.return===null||b.return===s)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}s.stateNode=p;e:switch(kt(p,m,c),m){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}
vendor: 21,620 bytes, line 56
56c&&vr(s)}}return We(s),kh(s,s.type,r===null?null:r.memoizedProps,s.pendingProps,o),null;case 6:if(r&&s.stateNode!=null)r.memoizedProps!==c&&vr(s);else{if(typeof c!="string"&&s.stateNode===null)throw Error(i(166));if(r=me.current,Is(s)){if(r=s.stateNode,o=s.memoizedProps,c=null,m=Ot,m!==null)switch(m.tag){case 27:case 5:c=m.memoizedProps}r[At]=s,r=!!(r.nodeValue===o||c!==null&&c.suppressHydrationWarning===!0||l_(r.nodeValue,o)),r||qr(s,!0)}else r=lc(r).createTextNode(c),r[At]=s,s.stateNode=r}return We(s),null;case 31:if(o=s.memoizedState,r===null||r.memoizedState!==null){if(c=Is(s),o!==null){if(r===null){if(!c)throw Error(i(318));if(r=s.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(557));r[At]=s}else Ui(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;We(s),r=!1}else o=Vf(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=o),r=!0;if(!r)return s.flags&256?(un(s),s):(un(s),null);if((s.flags&128)!==0)throw Error(i(558))}return We(s),null;case 13:if(c=s.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(m=Is(s),c!==null&&c.dehydrated!==null){if(r===null){if(!m)throw Error(i(318));if(m=s.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(i(317));m[At]=s}else Ui(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;We(s),m=!1}else m=Vf(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=m),m=!0;if(!m)return s.flags&256?(un(s),s):(un(s),null)}return un(s),(s.flags&128)!==0?(s.lanes=o,s):(o=c!==null,r=r!==null&&r.memoizedState!==null,o&&(c=s.child,m=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(m=c.alternate.memoizedState.cachePool.pool),p=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(p=c.memoizedState.cachePool.pool),p!==m&&(c.flags|=2048)),o!==r&&o&&(s.child.flags|=8192),Ku(s,s.updateQueue),We(s),null);case 4:return at(),r===null&&Qh(s.stateNode.containerInfo),We(s),null;case 10:return mr(s.type),We(s),null;case 19:if(H(ot),c=s.memoizedState,c===null)return We(s),null;if(m=(s.flags&128)!==0,p=c.rendering,p===null)if(m)Lo(c,!1);else{if(rt!==0||r!==null&&(r.flags&128)!==0)for(r=s.child;r!==null;){if(p=Mu(r),p!==null){for(s.flags|=128,Lo(c,!1),r=p.updateQueue,s.updateQueue=r,Ku(s,r),s.subtreeFlags=0,r=o,o=s.child;o!==null;)Vv(o,r),o=o.sibling;return Y(ot,ot.current&1|2),Ce&&fr(s,c.treeForkCount),s.child}r=r.sibling}c.tail!==null&&nn()>Qu&&(s.flags|=128,m=!0,Lo(c,!1),s.lanes=4194304)}else{if(!m)if(r=Mu(p),r!==null){if(s.flags|=128,m=!0,r=r.updateQueue,s.updateQueue=r,Ku(s,r),Lo(c,!0),c.tail===null&&c.tailMode==="hidden"&&!p.alternate&&!Ce)return We(s),null}else 2*nn()-c.renderingStartTime>Qu&&o!==536870912&&(s.flags|=128,m=!0,Lo(c,!1),s.lanes=4194304);c.isBackwards?(p.sibling=s.child,s.child=p):(r=c.last,r!==null?r.sibling=p:s.child=p,c.last=p)}return c.tail!==null?(r=c.tail,c.rendering=r,c.tail=r.sibling,c.renderingStartTime=nn(),r.sibling=null,o=ot.current,Y(ot,m?o&1|2:o&1),Ce&&fr(s,c.treeForkCount),r):(We(s),null);case 22:case 23:return un(s),Zf(),c=s.memoizedState!==null,r!==null?r.memoizedState!==null!==c&&(s.flags|=8192):c&&(s.flags|=8192),c?(o&536870912)!==0&&(s.flags&128)===0&&(We(s),s.subtreeFlags&6&&(s.flags|=8192)):We(s),o=s.updateQueue,o!==null&&Ku(s,o.retryQueue),o=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),c=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(c=s.memoizedState.cachePool.pool),c!==o&&(s.flags|=2048),r!==null&&H(Bi),null;case 24:return o=null,r!==null&&(o=r.memoizedState.cache),s.memoizedState.cache!==o&&(s.flags|=2048),mr(dt),We(s),null;case 25:return null;case 30:return null}throw Error(i(156,s.tag))}function MR(r,s){switch(Pf(s),s.tag){case 1:return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 3:return mr(dt),at(),r=s.flags,(r&65536)!==0&&(r&128)===0?(s.flags=r&-65537|128,s):null;case 26:case 27:case 5:return iu(s),null;case 31:if(s.memoizedState!==null){if(un(s),s.alternate===null)throw Error(i(340));Ui()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 13:if(un(s),r=s.memoizedState,r!==null&&r.dehydrated!==null){if(s.alternate===null)throw Error(i(340));Ui()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 19:return H(ot),null;case 4:return at(),null;case 10:return mr(s.type),null;case 22:case 23:return un(s),Zf(),r!==null&&H(Bi),r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 24:return mr(dt),null;case 25:return null;default:return null}}function h0(r,s){switch(Pf(s),s.tag){case 3:mr(dt),at();break;case 26:case 27:case 5:iu(s);break;case 4:at();break;case 31:s.memoizedState!==null&&un(s);break;case 13:un(s);break;case 19:H(ot);break;case 10:mr(s.type);break;case 22:case 23:un(s),Zf(),r!==null&&H(Bi);break;case 24:mr(dt)}}function Uo(r,s){try{var o=s.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var m=c.next;o=m;do{if((o.tag&r)===r){c=void 0;var p=o.create,b=o.inst;c=p(),b.destroy=c}o=o.next}while(o!==m)}}catch(w){Ve(s,s.return,w)}}function Jr(r,s,o){try{var c=s.updateQueue,m=c!==null?c.lastEffect:null;if(m!==null){var p=m.next;c=p;do{if((c.tag&r)===r){var b=c.inst,w=b.destroy;if(w!==void 0){b.destroy=void 0,m=s;var O=o,U=w;try{U()}catch(z){Ve(m,O,z)}}}c=c.next}while(c!==p)}}catch(z){Ve(s,s.return,z)}}function m0(r){var s=r.updateQueue;if(s!==null){var o=r.stateNode;try{ib(s,o)}catch(c){Ve(r,r.return,c)}}}function p0(r,s,o){o.props=qi(r.type,r.memoizedProps),o.state=r.memoizedState;try{o.componentWillUnmount()}catch(c){Ve(r,s,c)}}function Io(r,s){try{var o=r.ref;if(o!==null){switch(r.tag){case 26:case 27:case 5:var c=r.stateNode;break;case 30:c=r.stateNode;break;default:c=r.stateNode}typeof o=="function"?r.refCleanup=o(c):o.current=c}}catch(m){Ve(r,s,m)}}function Zn(r,s){var o=r.ref,c=r.refCleanup;if(o!==null)if(typeof c=="function")try{c()}catch(m){Ve(r,s,m)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(m){Ve(r,s,m)}else o.current=null}function g0(r){var s=r.type,o=r.memoizedProps,c=r.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":o.autoFocus&&c.focus();break e;case"img":o.src?c.src=o.src:o.srcSet&&(c.srcset=o.srcSet)}}catch(m){Ve(r,r.return,m)}}function Nh(r,s,o){try{var c=r.stateNode;nk(c,r.type,o,s),c[Kt]=s}catch(m){Ve(r,r.return,m)}}function y0(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&ii(r.type)||r.tag===4}function jh(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||y0(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&ii(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Dh(r,s,o){var c=r.tag;if(c===5||c===6)r=r.stateNode,s?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(r,s):(s=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,s.appendChild(r),o=o._reactRootContainer,o!=null||s.onclick!==null||(s.onclick=ur));else if(c!==4&&(c===27&&ii(r.type)&&(o=r.stateNode,s=null),r=r.child,r!==null))for(Dh(r,s,o),r=r.sibling;r!==null;)Dh(r,s,o),r=r.sibling}function Yu(r,s,o){var c=r.tag;if(c===5||c===6)r=r.stateNode,s?o.insertBefore(r,s):o.appendChild(r);else if(c!==4&&(c===27&&ii(r.type)&&(o=r.stateNode),r=r.child,r!==null))for(Yu(r,s,o),r=r.sibling;r!==null;)Yu(r,s,o),r=r.sibling}function v0(r){var s=r.stateNode,o=r.memoizedProps;try{for(var c=r.type,m=s.attributes;m.length;)s.removeAttributeNode(m[0]);kt(s,c,o),s[At]=r,s[Kt]=o}catch(p){Ve(r,r.return,p)}}var br=!1,mt=!1,Mh=!1,b0=typeof WeakSet=="function"?WeakSet:Set,Tt=null;function LR(r,s){if(r=r.containerInfo,tm=pc,r=Nv(r),Of(r)){if("selectionStart"in r)var o={start:r.selectionStart,end:r.selectionEnd};else e:{o=(o=r.ownerDocument)&&o.defaultView||window;var c=o.getSelection&&o.getSelection();if(c&&c.rangeCount!==0){o=c.anchorNode;var m=c.anchorOffset,p=c.focusNode;c=c.focusOffset;try{o.nodeType,p.nodeType}catch{o=null;break e}var b=0,w=-1,O=-1,U=0,z=0,F=r,I=null;t:for(;;){for(var P;F!==o||m!==0&&F.nodeType!==3||(w=b+m),F!==p||c!==0&&F.nodeType!==3||(O=b+c),F.nodeType===3&&(b+=F.nodeValue.length),(P=F.firstChild)!==null;)I=F,F=P;for(;;){if(F===r)break t;if(I===o&&++U===m&&(w=b),I===p&&++z===c&&(O=b),(P=F.nextSibling)!==null)break;F=I,I=F.parentNode}F=P}o=w===-1||O===-1?null:{start:w,end:O}}else o=null}o=o||{start:0,end:0}}else o=null;for(nm={focusedElem:r,selectionRange:o},pc=!1,Tt=s;Tt!==null;)if(s=Tt,r=s.child,(s.subtreeFlags&1028)!==0&&r!==null)r.return=s,Tt=r;else for(;Tt!==null;){switch(s=Tt,p=s.alternate,r=s.flags,s.tag){case 0:if((r&4)!==0&&(r=s.updateQueue,r=r!==null?r.events:null,r!==null))for(o=0;o<r.length;o++)m=r[o],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&p!==null){r=void 0,o=s,m=p.memoizedProps,p=p.memoizedState,c=o.stateNode;try{var Q=qi(o.type,m);r=c.getSnapshotBeforeUpdate(Q,p),c.__reactInternalSnapshotBeforeUpdate=r}catch(ae){Ve(o,o.return,ae)}}break;case 3:if((r&1024)!==0){if(r=s.stateNode.containerInfo,o=r.nodeType,o===9)sm(r);else if(o===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":sm(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(i(163))}if(r=s.sibling,r!==null){r.return=s.return,Tt=r;break}Tt=s.return}}function _0(r,s,o){var c=o.flags;switch(o.tag){case 0:case 11:case 15:Sr(r,o),c&4&&Uo(5,o);break;case 1:if(Sr(r,o),c&4)if(r=o.stateNode,s===null)try{r.componentDidMount()}catch(b){Ve(o,o.return,b)}else{var m=qi(o.type,s.memoizedProps);s=s.memoizedState;try{r.componentDidUpdate(m,s,r.__reactInternalSnapshotBeforeUpdate)}catch(b){Ve(o,o.return,b)}}c&64&&m0(o),c&512&&Io(o,o.return);break;case 3:if(Sr(r,o),c&64&&(r=o.updateQueue,r!==null)){if(s=null,o.child!==null)switch(o.child.tag){case 27:case 5:s=o.child.stateNode;break;case 1:s=o.child.stateNode}try{ib(r,s)}catch(b){Ve(o,o.return,b)}}break;case 27:s===null&&c&4&&v0(o);case 26:case 5:Sr(r,o),s===null&&c&4&&g0(o),c&512&&Io(o,o.return);break;case 12:Sr(r,o);break;case 31:Sr(r,o),c&4&&E0(r,o);break;case 13:Sr(r,o),c&4&&T0(r,o),c&64&&(r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(o=qR.bind(null,o),ck(r,o))));break;case 22:if(c=o.memoizedState!==null||br,!c){s=s!==null&&s.memoizedState!==null||mt,m=br;var p=mt;br=c,(mt=s)&&!p?wr(r,o,(o.subtreeFlags&8772)!==0):Sr(r,o),br=m,mt=p}break;case 30:break;default:Sr(r,o)}}function S0(r){var s=r.alternate;s!==null&&(r.alternate=null,S0(s)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(s=r.stateNode,s!==null&&cf(s)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var Je=null,Xt=!1;function _r(r,s,o){for(o=o.child;o!==null;)w0(r,s,o),o=o.sibling}function w0(r,s,o){if(rn&&typeof rn.onCommitFiberUnmount=="function")try{rn.onCommitFiberUnmount(ao,o)}catch{}switch(o.tag){case 26:mt||Zn(o,s),_r(r,s,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:mt||Zn(o,s);var c=Je,m=Xt;ii(o.type)&&(Je=o.stateNode,Xt=!1),_r(r,s,o),Go(o.stateNode),Je=c,Xt=m;break;case 5:mt||Zn(o,s);case 6:if(c=Je,m=Xt,Je=null,_r(r,s,o),Je=c,Xt=m,Je!==null)if(Xt)try{(Je.nodeType===9?Je.body:Je.nodeName==="HTML"?Je.ownerDocument.body:Je).removeChild(o.stateNode)}catch(p){Ve(o,s,p)}else try{Je.removeChild(o.stateNode)}catch(p){Ve(o,s,p)}break;case 18:Je!==null&&(Xt?(r=Je,m_(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,o.stateNode),ia(r)):m_(Je,o.stateNode));break;case 4:c=Je,m=Xt,Je=o.stateNode.containerInfo,Xt=!0,_r(r,s,o),Je=c,Xt=m;break;case 0:case 11:case 14:case 15:Jr(2,o,s),mt||Jr(4,o,s),_r(r,s,o);break;case 1:mt||(Zn(o,s),c=o.stateNode,typeof c.componentWillUnmount=="function"&&p0(o,s,c)),_r(r,s,o);break;case 21:_r(r,s,o);break;case 22:mt=(c=mt)||o.memoizedState!==null,_r(r,s,o),mt=c;break;default:_r(r,s,o)}}function E0(r,s){if(s.memoizedState===null&&(r=s.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{ia(r)}catch(o){Ve(s,s.return,o)}}}function T0(r,s){if(s.memoizedState===null&&(r=s.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{ia(r)}catch(o){Ve(s,s.return,o)}}function UR(r){switch(r.tag){case 31:case 13:case 19:var s=r.stateNode;return s===null&&(s=r.stateNode=new b0),s;case 22:return r=r.stateNode,s=r._retryCache,s===null&&(s=r._retryCache=new b0),s;default:throw Error(i(435,r.tag))}}function Xu(r,s){var o=UR(r);s.forEach(function(c){if(!o.has(c)){o.add(c);var m=FR.bind(null,r,c);c.then(m,m)}})}function Wt(r,s){var o=s.deletions;if(o!==null)for(var c=0;c<o.length;c++){var m=o[c],p=r,b=s,w=b;e:for(;w!==null;){switch(w.tag){case 27:if(ii(w.type)){Je=w.stateNode,Xt=!1;break e}break;case 5:Je=w.stateNode,Xt=!1;break e;case 3:case 4:Je=w.stateNode.containerInfo,Xt=!0;break e}w=w.return}if(Je===null)throw Error(i(160));w0(p,b,m),Je=null,Xt=!1,p=m.alternate,p!==null&&(p.return=null),m.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)x0(s,r),s=s.sibling}var Pn=null;function x0(r,s){var o=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:Wt(s,r),Jt(r),c&4&&(Jr(3,r,r.return),Uo(3,r),Jr(5,r,r.return));break;case 1:Wt(s,r),Jt(r),c&512&&(mt||o===null||Zn(o,o.return)),c&64&&br&&(r=r.updateQueue,r!==null&&(c=r.callbacks,c!==null&&(o=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=o===null?c:o.concat(c))));break;case 26:var m=Pn;if(Wt(s,r),Jt(r),c&512&&(mt||o===null||Zn(o,o.return)),c&4){var p=o!==null?o.memoizedState:null;if(c=r.memoizedState,o===null)if(c===null)if(r.stateNode===null){e:{c=r.type,o=r.memoizedProps,m=m.ownerDocument||m;t:switch(c){case"title":p=m.getElementsByTagName("title")[0],(!p||p[uo]||p[At]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=m.createElement(c),m.head.insertBefore(p,m.querySelector("head > title"))),kt(p,c,o),p[At]=r,Et(p),c=p;break e;case"link":var b=x_("link","href",m).get(c+(o.href||""));if(b){for(var w=0;w<b.length;w++)if(p=b[w],p.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&p.getAttribute("rel")===(o.rel==null?null:o.rel)&&p.getAttribute("title")===(o.title==null?null:o.title)&&p.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){b.splice(w,1);break t}}p=m.createElement(c),kt(p,c,o),m.head.appendChild(p);break;case"meta":if(b=x_("meta","content",m).get(c+(o.content||""))){for(w=0;w<b.length;w++)if(p=b[w],p.getAttribute("content")===(o.content==null?null:""+o.content)&&p.getAttribute("name")===(o.name==null?null:o.name)&&p.getAttribute("property")===(o.property==null?null:o.property)&&p.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&p.getAttribute("charset")===(o.charSet==null?null:o.charSet)){b.splice(w,1);break t}}p=m.createElement(c),kt(p,c,o),m.head.appendChild(p);break;default:throw Error(i(468,c))}p[At]=r,Et(p),c=p}r.stateNode=c}else A_(m,r.type,r.stateNode);else r.stateNode=T_(m,c,r.memoizedProps);else p!==c?(p===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):p.count--,c===null?A_(m,r.type,r.stateNode):T_(m,c,r.memoizedProps)):c===null&&r.stateNode!==null&&Nh(r,r.memoizedProps,o.memoizedProps)}break;case 27:Wt(s,r),Jt(r),c&512&&(mt||o===null||Zn(o,o.return)),o!==null&&c&4&&Nh(r,r.memoizedProps,o.memoizedProps);break;case 5:if(Wt(s,r),Jt(r),c&512&&(mt||o===null||Zn(o,o.return)),r.flags&32){m=r.stateNode;try{Os(m,"")}catch(Q){Ve(r,r.return,Q)}}c&4&&r.stateNode!=null&&(m=r.memoizedProps,Nh(r,m,o!==null?o.memoizedProps:m)),c&1024&&(Mh=!0);break;case 6:if(Wt(s,r),Jt(r),c&4){if(r.stateNode===null)throw Error(i(162));c=r.memoizedProps,o=r.stateNode;try{o.nodeValue=c}catch(Q){Ve(r,r.return,Q)}}break;case 3:if(dc=null,m=Pn,Pn=uc(s.containerInfo),Wt(s,r),Pn=m,Jt(r),c&4&&o!==null&&o.memoizedState.isDehydrated)try{ia(s.containerInfo)}catch(Q){Ve(r,r.return,Q)}Mh&&(Mh=!1,A0(r));break;case 4:c=Pn,Pn=uc(r.stateNode.containerInfo),Wt(s,r),Jt(r),Pn=c;break;case 12:Wt(s,r),Jt(r);break;case 31:Wt(s,r),Jt(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,Xu(r,c)));break;case 13:Wt(s,r),Jt(r),r.child.flags&8192&&r.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Ju=nn()),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,Xu(r,c)));break;case 22:m=r.memoizedState!==null;var O=o!==null&&o.memoizedState!==null,U=br,z=mt;if(br=U||m,mt=z||O,Wt(s,r),mt=z,br=U,Jt(r),c&8192)e:for(s=r.stateNode,s._visibility=m?s._visibility&-2:s._visibility|1,m&&(o===null||O||br||mt||Fi(r)),o=null,s=r;;){if(s.tag===5||s.tag===26){if(o===null){O=o=s;try{if(p=O.stateNode,m)b=p.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{w=O.stateNode;var F=O.memoizedProps.style,I=F!=null&&F.hasOwnProperty("display")?F.display:null;w.style.display=I==null||typeof I=="boolean"?"":(""+I).trim()}}catch(Q){Ve(O,O.return,Q)}}}else if(s.tag===6){if(o===null){O=s;try{O.stateNode.nodeValue=m?"":O.memoizedProps}catch(Q){Ve(O,O.return,Q)}}}else if(s.tag===18){if(o===null){O=s;try{var P=O.stateNode;m?p_(P,!0):p_(O.stateNode,!1)}catch(Q){Ve(O,O.return,Q)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===r)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break e;for(;s.sibling===null;){if(s.return===null||s.return===r)break e;o===s&&(o=null),s=s.return}o===s&&(o=null),s.sibling.return=s.return,s=s.sibling}c&4&&(c=r.updateQueue,c!==null&&(o=c.retryQueue,o!==null&&(c.retryQueue=null,Xu(r,o))));break;case 19:Wt(s,r),Jt(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,Xu(r,c)));break;case 30:break;case 21:break;default:Wt(s,r),Jt(r)}}function Jt(r){var s=r.flags;if(s&2){try{for(var o,c=r.return;c!==null;){if(y0(c)){o=c;break}c=c.return}if(o==null)throw Error(i(160));switch(o.tag){case 27:var m=o.stateNode,p=jh(r);Yu(r,p,m);break;case 5:var b=o.stateNode;o.flags&32&&(Os(b,""),o.flags&=-33);var w=jh(r);Yu(r,w,b);break;case 3:case 4:var O=o.stateNode.containerInfo,U=jh(r);Dh(r,U,O);break;default:throw Error(i(161))}}catch(z){Ve(r,r.return,z)}r.flags&=-3}s&4096&&(r.flags&=-4097)}function A0(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var s=r;A0(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),r=r.sibling}}function Sr(r,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)_0(r,s.alternate,s),s=s.sibling}function Fi(r){for(r=r.child;r!==null;){var s=r;switch(s.tag){case 0:case 11:case 14:case 15:Jr(4,s,s.return),Fi(s);break;case 1:Zn(s,s.return);var o=s.stateNode;typeof o.componentWillUnmount=="function"&&p0(s,s.return,o),Fi(s);break;case 27:Go(s.stateNode);case 26:case 5:Zn(s,s.return),Fi(s);break;case 22:s.memoizedState===null&&Fi(s);break;case 30:Fi(s);break;default:Fi(s)}r=r.sibling}}function wr(r,s,o){for(o=o&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var c=s.alternate,m=r,p=s,b=p.flags;switch(p.tag){case 0:case 11:case 15:wr(m,p,o),Uo(4,p);break;case 1:if(wr(m,p,o),c=p,m=c.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(U){Ve(c,c.return,U)}if(c=p,m=c.updateQueue,m!==null){var w=c.stateNode;try{var O=m.shared.hiddenCallbacks;if(O!==null)for(m.shared.hiddenCallbacks=null,m=0;m<O.length;m++)rb(O[m],w)}catch(U){Ve(c,c.return,U)}}o&&b&64&&m0(p),Io(p,p.return);break;case 27:v0(p);case 26:case 5:wr(m,p,o),o&&c===null&&b&4&&g0(p),Io(p,p.return);break;case 12:wr(m,p,o);break;case 31:wr(m,p,o),o&&b&4&&E0(m,p);break;case 13:wr(m,p,o),o&&b&4&&T0(m,p);break;case 22:p.memoizedState===null&&wr(m,p,o),Io(p,p.return);break;case 30:break;default:wr(m,p,o)}s=s.sibling}}function Lh(r,s){var o=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),r=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(r=s.memoizedState.cachePool.pool),r!==o&&(r!=null&&r.refCount++,o!=null&&Eo(o))}function Uh(r,s){r=null,s.alternate!==null&&(r=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==r&&(s.refCount++,r!=null&&Eo(r))}function Bn(r,s,o,c){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)O0(r,s,o,c),s=s.sibling}function O0(r,s,o,c){var m=s.flags;switch(s.tag){case 0:case 11:case 15:Bn(r,s,o,c),m&2048&&Uo(9,s);break;case 1:Bn(r,s,o,c);break;case 3:Bn(r,s,o,c),m&2048&&(r=null,s.alternate!==null&&(r=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==r&&(s.refCount++,r!=null&&Eo(r)));break;case 12:if(m&2048){Bn(r,s,o,c),r=s.stateNode;try{var p=s.memoizedProps,b=p.id,w=p.onPostCommit;typeof w=="function"&&w(b,s.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(O){Ve(s,s.return,O)}}else Bn(r,s,o,c);break;case 31:Bn(r,s,o,c);break;case 13:Bn(r,s,o,c);break;case 23:break;case 22:p=s.stateNode,b=s.alternate,s.memoizedState!==null?p._visibility&2?Bn(r,s,o,c):Po(r,s):p._visibility&2?Bn(r,s,o,c):(p._visibility|=2,Ks(r,s,o,c,(s.subtreeFlags&10256)!==0||!1)),m&2048&&Lh(b,s);break;case 24:Bn(r,s,o,c),m&2048&&Uh(s.alternate,s);break;default:Bn(r,s,o,c)}}function Ks(r,s,o,c,m){for(m=m&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var p=r,b=s,w=o,O=c,U=b.flags;switch(b.tag){case 0:case 11:case 15:Ks(p,b,w,O,m),Uo(8,b);break;case 23:break;case 22:var z=b.stateNode;b.memoizedState!==null?z._visibility&2?Ks(p,b,w,O,m):Po(p,b):(z._visibility|=2,Ks(p,b,w,O,m)),m&&U&2048&&Lh(b.alternate,b);break;case 24:Ks(p,b,w,O,m),m&&U&2048&&Uh(b.alternate,b);break;default:Ks(p,b,w,O,m)}s=s.sibling}}function Po(r,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var o=r,c=s,m=c.flags;switch(c.tag){case 22:Po(o,c),m&2048&&Lh(c.alternate,c);break;case 24:Po(o,c),m&2048&&Uh(c.alternate,c);break;
vendor: 4,958 bytes, line 56
56default:Po(o,c)}s=s.sibling}}var Bo=8192;function Ys(r,s,o){if(r.subtreeFlags&Bo)for(r=r.child;r!==null;)C0(r,s,o),r=r.sibling}function C0(r,s,o){switch(r.tag){case 26:Ys(r,s,o),r.flags&Bo&&r.memoizedState!==null&&wk(o,Pn,r.memoizedState,r.memoizedProps);break;case 5:Ys(r,s,o);break;case 3:case 4:var c=Pn;Pn=uc(r.stateNode.containerInfo),Ys(r,s,o),Pn=c;break;case 22:r.memoizedState===null&&(c=r.alternate,c!==null&&c.memoizedState!==null?(c=Bo,Bo=16777216,Ys(r,s,o),Bo=c):Ys(r,s,o));break;default:Ys(r,s,o)}}function R0(r){var s=r.alternate;if(s!==null&&(r=s.child,r!==null)){s.child=null;do s=r.sibling,r.sibling=null,r=s;while(r!==null)}}function Vo(r){var s=r.deletions;if((r.flags&16)!==0){if(s!==null)for(var o=0;o<s.length;o++){var c=s[o];Tt=c,N0(c,r)}R0(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)k0(r),r=r.sibling}function k0(r){switch(r.tag){case 0:case 11:case 15:Vo(r),r.flags&2048&&Jr(9,r,r.return);break;case 3:Vo(r);break;case 12:Vo(r);break;case 22:var s=r.stateNode;r.memoizedState!==null&&s._visibility&2&&(r.return===null||r.return.tag!==13)?(s._visibility&=-3,Wu(r)):Vo(r);break;default:Vo(r)}}function Wu(r){var s=r.deletions;if((r.flags&16)!==0){if(s!==null)for(var o=0;o<s.length;o++){var c=s[o];Tt=c,N0(c,r)}R0(r)}for(r=r.child;r!==null;){switch(s=r,s.tag){case 0:case 11:case 15:Jr(8,s,s.return),Wu(s);break;case 22:o=s.stateNode,o._visibility&2&&(o._visibility&=-3,Wu(s));break;default:Wu(s)}r=r.sibling}}function N0(r,s){for(;Tt!==null;){var o=Tt;switch(o.tag){case 0:case 11:case 15:Jr(8,o,s);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var c=o.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Eo(o.memoizedState.cache)}if(c=o.child,c!==null)c.return=o,Tt=c;else e:for(o=r;Tt!==null;){c=Tt;var m=c.sibling,p=c.return;if(S0(c),c===o){Tt=null;break e}if(m!==null){m.return=p,Tt=m;break e}Tt=p}}}var IR={getCacheForType:function(r){var s=Ct(dt),o=s.data.get(r);return o===void 0&&(o=r(),s.data.set(r,o)),o},cacheSignal:function(){return Ct(dt).controller.signal}},PR=typeof WeakMap=="function"?WeakMap:Map,De=0,Fe=null,Se=null,Ee=0,Be=0,cn=null,Qr=!1,Xs=!1,Ih=!1,Er=0,rt=0,Zr=0,Gi=0,Ph=0,dn=0,Ws=0,zo=null,Qt=null,Bh=!1,Ju=0,j0=0,Qu=1/0,Zu=null,ei=null,bt=0,ti=null,Js=null,Tr=0,Vh=0,zh=null,D0=null,$o=0,$h=null;function fn(){return(De&2)!==0&&Ee!==0?Ee&-Ee:V.T!==null?Yh():Xy()}function M0(){if(dn===0)if((Ee&536870912)===0||Ce){var r=ou;ou<<=1,(ou&3932160)===0&&(ou=262144),dn=r}else dn=536870912;return r=ln.current,r!==null&&(r.flags|=32),dn}function Zt(r,s,o){(r===Fe&&(Be===2||Be===9)||r.cancelPendingCommit!==null)&&(Qs(r,0),ni(r,Ee,dn,!1)),lo(r,o),((De&2)===0||r!==Fe)&&(r===Fe&&((De&2)===0&&(Gi|=o),rt===4&&ni(r,Ee,dn,!1)),er(r))}function L0(r,s,o){if((De&6)!==0)throw Error(i(327));var c=!o&&(s&127)===0&&(s&r.expiredLanes)===0||oo(r,s),m=c?zR(r,s):qh(r,s,!0),p=c;do{if(m===0){Xs&&!c&&ni(r,s,0,!1);break}else{if(o=r.current.alternate,p&&!BR(o)){m=qh(r,s,!1),p=!1;continue}if(m===2){if(p=s,r.errorRecoveryDisabledLanes&p)var b=0;else b=r.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){s=b;e:{var w=r;m=zo;var O=w.current.memoizedState.isDehydrated;if(O&&(Qs(w,b).flags|=256),b=qh(w,b,!1),b!==2){if(Ih&&!O){w.errorRecoveryDisabledLanes|=p,Gi|=p,m=4;break e}p=Qt,Qt=m,p!==null&&(Qt===null?Qt=p:Qt.push.apply(Qt,p))}m=b}if(p=!1,m!==2)continue}}if(m===1){Qs(r,0),ni(r,s,0,!0);break}e:{switch(c=r,p=m,p){case 0:case 1:throw Error(i(345));case 4:if((s&4194048)!==s)break;case 6:ni(c,s,dn,!Qr);break e;case 2:Qt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((s&62914560)===s&&(m=Ju+300-nn(),10<m)){if(ni(c,s,dn,!Qr),uu(c,0,!0)!==0)break e;Tr=s,c.timeoutHandle=f_(U0.bind(null,c,o,Qt,Zu,Bh,s,dn,Gi,Ws,Qr,p,"Throttled",-0,0),m);break e}U0(c,o,Qt,Zu,Bh,s,dn,Gi,Ws,Qr,p,null,-0,0)}}break}while(!0);er(r)}function U0(r,s,o,c,m,p,b,w,O,U,z,F,I,P){if(r.timeoutHandle=-1,F=s.subtreeFlags,F&8192||(F&16785408)===16785408){F={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ur},C0(s,p,F);var Q=(p&62914560)===p?Ju-nn():(p&4194048)===p?j0-nn():0;if(Q=Ek(F,Q),Q!==null){Tr=p,r.cancelPendingCommit=Q(q0.bind(null,r,s,p,o,c,m,b,w,O,z,F,null,I,P)),ni(r,p,b,!U);return}}q0(r,s,p,o,c,m,b,w,O)}function BR(r){for(var s=r;;){var o=s.tag;if((o===0||o===11||o===15)&&s.flags&16384&&(o=s.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var c=0;c<o.length;c++){var m=o[c],p=m.getSnapshot;m=m.value;try{if(!an(p(),m))return!1}catch{return!1}}if(o=s.child,s.subtreeFlags&16384&&o!==null)o.return=s,s=o;else{if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function ni(r,s,o,c){s&=~Ph,s&=~Gi,r.suspendedLanes|=s,r.pingedLanes&=~s,c&&(r.warmLanes|=s),c=r.expirationTimes;for(var m=s;0<m;){var p=31-sn(m),b=1<<p;c[p]=-1,m&=~b}o!==0&&Gy(r,o,s)}function ec(){return(De&6)===0?(Ho(0),!1):!0}
vendor: 5,794 bytes, line 56
56function Hh(){if(Se!==null){if(Be===0)var r=Se.return;else r=Se,hr=Ii=null,sh(r),$s=null,xo=0,r=Se;for(;r!==null;)h0(r.alternate,r),r=r.return;Se=null}}function Qs(r,s){var o=r.timeoutHandle;o!==-1&&(r.timeoutHandle=-1,sk(o)),o=r.cancelPendingCommit,o!==null&&(r.cancelPendingCommit=null,o()),Tr=0,Hh(),Fe=r,Se=o=dr(r.current,null),Ee=s,Be=0,cn=null,Qr=!1,Xs=oo(r,s),Ih=!1,Ws=dn=Ph=Gi=Zr=rt=0,Qt=zo=null,Bh=!1,(s&8)!==0&&(s|=s&32);var c=r.entangledLanes;if(c!==0)for(r=r.entanglements,c&=s;0<c;){var m=31-sn(c),p=1<<m;s|=r[m],c&=~p}return Er=s,Su(),o}function I0(r,s){pe=null,V.H=Do,s===zs||s===Ru?(s=Zv(),Be=3):s===Kf?(s=Zv(),Be=4):Be=s===Sh?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,cn=s,Se===null&&(rt=1,Hu(r,_n(s,r.current)))}function P0(){var r=ln.current;return r===null?!0:(Ee&4194048)===Ee?Tn===null:(Ee&62914560)===Ee||(Ee&536870912)!==0?r===Tn:!1}function B0(){var r=V.H;return V.H=Do,r===null?Do:r}function V0(){var r=V.A;return V.A=IR,r}function tc(){rt=4,Qr||(Ee&4194048)!==Ee&&ln.current!==null||(Xs=!0),(Zr&134217727)===0&&(Gi&134217727)===0||Fe===null||ni(Fe,Ee,dn,!1)}function qh(r,s,o){var c=De;De|=2;var m=B0(),p=V0();(Fe!==r||Ee!==s)&&(Zu=null,Qs(r,s)),s=!1;var b=rt;e:do try{if(Be!==0&&Se!==null){var w=Se,O=cn;switch(Be){case 8:Hh(),b=6;break e;case 3:case 2:case 9:case 6:ln.current===null&&(s=!0);var U=Be;if(Be=0,cn=null,Zs(r,w,O,U),o&&Xs){b=0;break e}break;default:U=Be,Be=0,cn=null,Zs(r,w,O,U)}}VR(),b=rt;break}catch(z){I0(r,z)}while(!0);return s&&r.shellSuspendCounter++,hr=Ii=null,De=c,V.H=m,V.A=p,Se===null&&(Fe=null,Ee=0,Su()),b}function VR(){for(;Se!==null;)z0(Se)}function zR(r,s){var o=De;De|=2;var c=B0(),m=V0();Fe!==r||Ee!==s?(Zu=null,Qu=nn()+500,Qs(r,s)):Xs=oo(r,s);e:do try{if(Be!==0&&Se!==null){s=Se;var p=cn;t:switch(Be){case 1:Be=0,cn=null,Zs(r,s,p,1);break;case 2:case 9:if(Jv(p)){Be=0,cn=null,$0(s);break}s=function(){Be!==2&&Be!==9||Fe!==r||(Be=7),er(r)},p.then(s,s);break e;case 3:Be=7;break e;case 4:Be=5;break e;case 7:Jv(p)?(Be=0,cn=null,$0(s)):(Be=0,cn=null,Zs(r,s,p,7));break;case 5:var b=null;switch(Se.tag){case 26:b=Se.memoizedState;case 5:case 27:var w=Se;if(b?O_(b):w.stateNode.complete){Be=0,cn=null;var O=w.sibling;if(O!==null)Se=O;else{var U=w.return;U!==null?(Se=U,nc(U)):Se=null}break t}}Be=0,cn=null,Zs(r,s,p,5);break;case 6:Be=0,cn=null,Zs(r,s,p,6);break;case 8:Hh(),rt=6;break e;default:throw Error(i(462))}}$R();break}catch(z){I0(r,z)}while(!0);return hr=Ii=null,V.H=c,V.A=m,De=o,Se!==null?0:(Fe=null,Ee=0,Su(),rt)}function $R(){for(;Se!==null&&!dC();)z0(Se)}function z0(r){var s=d0(r.alternate,r,Er);r.memoizedProps=r.pendingProps,s===null?nc(r):Se=s}function $0(r){var s=r,o=s.alternate;switch(s.tag){case 15:case 0:s=s0(o,s,s.pendingProps,s.type,void 0,Ee);break;case 11:s=s0(o,s,s.pendingProps,s.type.render,s.ref,Ee);break;case 5:sh(s);default:h0(o,s),s=Se=Vv(s,Er),s=d0(o,s,Er)}r.memoizedProps=r.pendingProps,s===null?nc(r):Se=s}function Zs(r,s,o,c){hr=Ii=null,sh(s),$s=null,xo=0;var m=s.return;try{if(kR(r,m,s,o,Ee)){rt=1,Hu(r,_n(o,r.current)),Se=null;return}}catch(p){if(m!==null)throw Se=m,p;rt=1,Hu(r,_n(o,r.current)),Se=null;return}s.flags&32768?(Ce||c===1?r=!0:Xs||(Ee&536870912)!==0?r=!1:(Qr=r=!0,(c===2||c===9||c===3||c===6)&&(c=ln.current,c!==null&&c.tag===13&&(c.flags|=16384))),H0(s,r)):nc(s)}function nc(r){var s=r;do{if((s.flags&32768)!==0){H0(s,Qr);return}r=s.return;var o=DR(s.alternate,s,Er);if(o!==null){Se=o;return}if(s=s.sibling,s!==null){Se=s;return}Se=s=r}while(s!==null);rt===0&&(rt=5)}function H0(r,s){do{var o=MR(r.alternate,r);if(o!==null){o.flags&=32767,Se=o;return}if(o=r.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!s&&(r=r.sibling,r!==null)){Se=r;return}Se=r=o}while(r!==null);rt=6,Se=null}function q0(r,s,o,c,m,p,b,w,O){r.cancelPendingCommit=null;do rc();while(bt!==0);if((De&6)!==0)throw Error(i(327));if(s!==null){if(s===r.current)throw Error(i(177));if(p=s.lanes|s.childLanes,p|=jf,SC(r,o,p,b,w,O),r===Fe&&(Se=Fe=null,Ee=0),Js=s,ti=r,Tr=o,Vh=p,zh=m,D0=c,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,GR(su,function(){return X0(),null})):(r.callbackNode=null,r.callbackPriority=0),c=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||c){c=V.T,V.T=null,m=K.p,K.p=2,b=De,De|=4;try{LR(r,s,o)}finally{De=b,K.p=m,V.T=c}}bt=1,F0(),G0(),K0()}}function F0(){if(bt===1){bt=0;var r=ti,s=Js,o=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||o){o=V.T,V.T=null;var c=K.p;K.p=2;var m=De;De|=4;try{x0(s,r);var p=nm,b=Nv(r.containerInfo),w=p.focusedElem,O=p.selectionRange;if(b!==w&&w&&w.ownerDocument&&kv(w.ownerDocument.documentElement,w)){if(O!==null&&Of(w)){var U=O.start,z=O.end;if(z===void 0&&(z=U),"selectionStart"in w)w.selectionStart=U,w.selectionEnd=Math.min(z,w.value.length);else{var F=w.ownerDocument||document,I=F&&F.defaultView||window;if(I.getSelection){var P=I.getSelection(),Q=w.textContent.length,ae=Math.min(O.start,Q),qe=O.end===void 0?ae:Math.min(O.end,Q);!P.extend&&ae>qe&&(b=qe,qe=ae,ae=b);var j=Rv(w,ae),k=Rv(w,qe);if(j&&k&&(P.rangeCount!==1||P.anchorNode!==j.node||P.anchorOffset!==j.offset||P.focusNode!==k.node||P.focusOffset!==k.offset)){var L=F.createRange();L.setStart(j.node,j.offset),P.removeAllRanges(),ae>qe?(P.addRange(L),P.extend(k.node,k.offset)):(L.setEnd(k.node,k.offset),P.addRange(L))}}}}for(F=[],P=w;P=P.parentNode;)P.nodeType===1&&F.push({element:P,left:P.scrollLeft,top:P.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<F.length;w++){var q=F[w];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}pc=!!tm,nm=tm=null}finally{De=m,K.p=c,V.T=o}}r.current=s,bt=2}}function G0(){if(bt===2){bt=0;var r=ti,s=Js,o=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||o){o=V.T,V.T=null;var c=K.p;K.p=2;var m=De;De|=4;try{_0(r,s.alternate,s)}finally{De=m,K.p=c,V.T=o}}bt=3}}
vendor: 6,130 bytes, line 56
56function K0(){if(bt===4||bt===3){bt=0,fC();var r=ti,s=Js,o=Tr,c=D0;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?bt=5:(bt=0,Js=ti=null,Y0(r,r.pendingLanes));var m=r.pendingLanes;if(m===0&&(ei=null),lf(o),s=s.stateNode,rn&&typeof rn.onCommitFiberRoot=="function")try{rn.onCommitFiberRoot(ao,s,void 0,(s.current.flags&128)===128)}catch{}if(c!==null){s=V.T,m=K.p,K.p=2,V.T=null;try{for(var p=r.onRecoverableError,b=0;b<c.length;b++){var w=c[b];p(w.value,{componentStack:w.stack})}}finally{V.T=s,K.p=m}}(Tr&3)!==0&&rc(),er(r),m=r.pendingLanes,(o&261930)!==0&&(m&42)!==0?r===$h?$o++:($o=0,$h=r):$o=0,Ho(0)}}function Y0(r,s){(r.pooledCacheLanes&=s)===0&&(s=r.pooledCache,s!=null&&(r.pooledCache=null,Eo(s)))}function rc(){return F0(),G0(),K0(),X0()}function X0(){if(bt!==5)return!1;var r=ti,s=Vh;Vh=0;var o=lf(Tr),c=V.T,m=K.p;try{K.p=32>o?32:o,V.T=null,o=zh,zh=null;var p=ti,b=Tr;if(bt=0,Js=ti=null,Tr=0,(De&6)!==0)throw Error(i(331));var w=De;if(De|=4,k0(p.current),O0(p,p.current,b,o),De=w,Ho(0,!1),rn&&typeof rn.onPostCommitFiberRoot=="function")try{rn.onPostCommitFiberRoot(ao,p)}catch{}return!0}finally{K.p=m,V.T=c,Y0(r,s)}}function W0(r,s,o){s=_n(o,s),s=_h(r.stateNode,s,2),r=Yr(r,s,2),r!==null&&(lo(r,2),er(r))}function Ve(r,s,o){if(r.tag===3)W0(r,r,o);else for(;s!==null;){if(s.tag===3){W0(s,r,o);break}else if(s.tag===1){var c=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(ei===null||!ei.has(c))){r=_n(o,r),o=Jb(2),c=Yr(s,o,2),c!==null&&(Qb(o,c,s,r),lo(c,2),er(c));break}}s=s.return}}function Fh(r,s,o){var c=r.pingCache;if(c===null){c=r.pingCache=new PR;var m=new Set;c.set(s,m)}else m=c.get(s),m===void 0&&(m=new Set,c.set(s,m));m.has(o)||(Ih=!0,m.add(o),r=HR.bind(null,r,s,o),s.then(r,r))}function HR(r,s,o){var c=r.pingCache;c!==null&&c.delete(s),r.pingedLanes|=r.suspendedLanes&o,r.warmLanes&=~o,Fe===r&&(Ee&o)===o&&(rt===4||rt===3&&(Ee&62914560)===Ee&&300>nn()-Ju?(De&2)===0&&Qs(r,0):Ph|=o,Ws===Ee&&(Ws=0)),er(r)}function J0(r,s){s===0&&(s=Fy()),r=Mi(r,s),r!==null&&(lo(r,s),er(r))}function qR(r){var s=r.memoizedState,o=0;s!==null&&(o=s.retryLane),J0(r,o)}function FR(r,s){var o=0;switch(r.tag){case 31:case 13:var c=r.stateNode,m=r.memoizedState;m!==null&&(o=m.retryLane);break;case 19:c=r.stateNode;break;case 22:c=r.stateNode._retryCache;break;default:throw Error(i(314))}c!==null&&c.delete(s),J0(r,o)}function GR(r,s){return rf(r,s)}var ic=null,ea=null,Gh=!1,sc=!1,Kh=!1,ri=0;function er(r){r!==ea&&r.next===null&&(ea===null?ic=ea=r:ea=ea.next=r),sc=!0,Gh||(Gh=!0,YR())}function Ho(r,s){if(!Kh&&sc){Kh=!0;do for(var o=!1,c=ic;c!==null;){if(r!==0){var m=c.pendingLanes;if(m===0)var p=0;else{var b=c.suspendedLanes,w=c.pingedLanes;p=(1<<31-sn(42|r)+1)-1,p&=m&~(b&~w),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(o=!0,t_(c,p))}else p=Ee,p=uu(c,c===Fe?p:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(p&3)===0||oo(c,p)||(o=!0,t_(c,p));c=c.next}while(o);Kh=!1}}function KR(){Q0()}function Q0(){sc=Gh=!1;var r=0;ri!==0&&ik()&&(r=ri);for(var s=nn(),o=null,c=ic;c!==null;){var m=c.next,p=Z0(c,s);p===0?(c.next=null,o===null?ic=m:o.next=m,m===null&&(ea=o)):(o=c,(r!==0||(p&3)!==0)&&(sc=!0)),c=m}bt!==0&&bt!==5||Ho(r),ri!==0&&(ri=0)}function Z0(r,s){for(var o=r.suspendedLanes,c=r.pingedLanes,m=r.expirationTimes,p=r.pendingLanes&-62914561;0<p;){var b=31-sn(p),w=1<<b,O=m[b];O===-1?((w&o)===0||(w&c)!==0)&&(m[b]=_C(w,s)):O<=s&&(r.expiredLanes|=w),p&=~w}if(s=Fe,o=Ee,o=uu(r,r===s?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c=r.callbackNode,o===0||r===s&&(Be===2||Be===9)||r.cancelPendingCommit!==null)return c!==null&&c!==null&&sf(c),r.callbackNode=null,r.callbackPriority=0;if((o&3)===0||oo(r,o)){if(s=o&-o,s===r.callbackPriority)return s;switch(c!==null&&sf(c),lf(o)){case 2:case 8:o=Hy;break;case 32:o=su;break;case 268435456:o=qy;break;default:o=su}return c=e_.bind(null,r),o=rf(o,c),r.callbackPriority=s,r.callbackNode=o,s}return c!==null&&c!==null&&sf(c),r.callbackPriority=2,r.callbackNode=null,2}function e_(r,s){if(bt!==0&&bt!==5)return r.callbackNode=null,r.callbackPriority=0,null;var o=r.callbackNode;if(rc()&&r.callbackNode!==o)return null;var c=Ee;return c=uu(r,r===Fe?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c===0?null:(L0(r,c,s),Z0(r,nn()),r.callbackNode!=null&&r.callbackNode===o?e_.bind(null,r):null)}function t_(r,s){if(rc())return null;L0(r,s,!0)}function YR(){ak(function(){(De&6)!==0?rf($y,KR):Q0()})}function Yh(){if(ri===0){var r=Bs;r===0&&(r=au,au<<=1,(au&261888)===0&&(au=256)),ri=r}return ri}function n_(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:hu(""+r)}function r_(r,s){var o=s.ownerDocument.createElement("input");return o.name=s.name,o.value=s.value,r.id&&o.setAttribute("form",r.id),s.parentNode.insertBefore(o,s),r=new FormData(r),o.parentNode.removeChild(o),r}function XR(r,s,o,c,m){if(s==="submit"&&o&&o.stateNode===m){var p=n_((m[Kt]||null).action),b=c.submitter;b&&(s=(s=b[Kt]||null)?n_(s.formAction):b.getAttribute("formAction"),s!==null&&(p=s,b=null));var w=new yu("action","action",null,c,m);r.push({event:w,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(ri!==0){var O=b?r_(m,b):new FormData(m);mh(o,{pending:!0,data:O,method:m.method,action:p},null,O)}}else typeof p=="function"&&(w.preventDefault(),O=b?r_(m,b):new FormData(m),mh(o,{pending:!0,data:O,method:m.method,action:p},p,O))},currentTarget:m}]})}}for(var Xh=0;Xh<Nf.length;Xh++){var Wh=Nf[Xh],WR=Wh.toLowerCase(),JR=Wh[0].toUpperCase()+Wh.slice(1);In(WR,"on"+JR)}In(Mv,"onAnimationEnd"),In(Lv,"onAnimationIteration"),In(Uv,"onAnimationStart"),In("dblclick","onDoubleClick"),In("focusin","onFocus"),In("focusout","onBlur"),In(hR,"onTransitionRun"),In(mR,"onTransitionStart"),In(pR,"onTransitionCancel"),In(Iv,"onTransitionEnd"),xs("onMouseEnter",["mouseout","mouseover"]),xs("onMouseLeave",["mouseout","mouseover"]),xs("onPointerEnter",["pointerout","pointerover"]),xs("onPointerLeave",["pointerout","pointerover"]),ki("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ki("onSelect","focusout contextmenu dragend focu
56sin keydown keyup mousedown mouseup selectionchange".split(" ")),ki("onBeforeInput",["compositionend","keypress","textInput","paste"]),ki("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ki("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ki("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),QR=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(qo));function i_(r,s){s=(s&4)!==0;for(var o=0;o<r.length;o++){var c=r[o],m=c.event;c=c.listeners;e:{var p=void 0;if(s)for(var b=c.length-1;0<=b;b--){var w=c[b],O=w.instance,U=w.currentTarget;if(w=w.listener,O!==p&&m.isPropagationStopped())break e;p=w,m.currentTarget=U;try{p(m)}catch(z){_u(z)}m.currentTarget=null,p=O}else for(b=0;b<c.length;b++){if(w=c[b],O=w.instance,U=w.currentTarget,w=w.listener,O!==p&&m.isPropagationStopped())break e;p=w,m.currentTarget=U;try{p(m)}catch(z){_u(z)}m.currentTarget=null,p=O}}}}function we(r,s){var o=s[uf];o===void 0&&(o=s[uf]=new Set);var c=r+"__bubble";o.has(c)||(s_(s,r,2,!1),o.add(c))}function Jh(r,s,o){var c=0;s&&(c|=4),s_(o,r,c,s)}var ac="_reactListening"+Math.random().toString(36).slice(2);function Qh(r){if(!r[ac]){r[ac]=!0,Qy.forEach(function(o){o!=="selectionchange"&&(QR.has(o)||Jh(o,!1,r),Jh(o,!0,r))});var s=r.nodeType===9?r:r.ownerDocument;s===null||s[ac]||(s[ac]=!0,Jh("selectionchange",!1,s))}}function s_(r,s,o,c){switch(M_(s)){case 2:var m=Ak;break;case 8:m=Ok;break;default:m=hm}o=m.bind(null,s,o,r),m=void 0,!vf||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(m=!0),c?m!==void 0?r.addEventListener(s,o,{capture:!0,passive:m}):r.addEventListener(s,o,!0):m!==void 0?r.addEventListener(s,o,{passive:m}):r.addEventListener(s,o,!1)}function Zh(r,s,o,c,m){var p=c;if((s&1)===0&&(s&2)===0&&c!==null)e:for(;;){if(c===null)return;var b=c.tag;if(b===3||b===4){var w=c.stateNode.containerInfo;if(w===m)break;if(b===4)for(b=c.return;b!==null;){var O=b.tag;if((O===3||O===4)&&b.stateNode.containerInfo===m)return;b=b.return}for(;w!==null;){if(b=ws(w),b===null)return;if(O=b.tag,O===5||O===6||O===26||O===27){c=p=b;continue e}w=w.parentNode}}c=c.return}cv(function(){var U=p,z=gf(o),F=[];e:{var I=Pv.get(r);if(I!==void 0){var P=yu,Q=r;switch(r){case"keypress":if(pu(o)===0)break e;case"keydown":case"keyup":P=FC;break;case"focusin":Q="focus",P=wf;break;case"focusout":Q="blur",P=wf;break;case"beforeblur":case"afterblur":P=wf;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":P=hv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=DC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=YC;break;case Mv:case Lv:case Uv:P=UC;break;case Iv:P=WC;break;case"scroll":case"scrollend":P=NC;break;case"wheel":P=QC;break;case"copy":case"cut":case"paste":P=PC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=pv;break;case"toggle":case"beforetoggle":P=eR}var ae=(s&4)!==0,qe=!ae&&(r==="scroll"||r==="scrollend"),j=ae?I!==null?I+"Capture":null:I;ae=[];for(var k=U,L;k!==null;){var q=k;if(L=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||L===null||j===null||(q=fo(k,j),q!=null&&ae.push(Fo(k,q,L))),qe)break;k=k.return}0<ae.length&&(I=new P(I,Q,null,o,z),F.push({event:I,listeners:ae}))}}if((s&7)===0){e:{if(I=r==="mouseover"||r==="pointerover",P=r==="mouseout"||r==="pointerout",I&&o!==pf&&(Q=o.relatedTarget||o.fromElement)&&(ws(Q)||Q[Ss]))break e;if((P||I)&&(I=z.window===z?z:(I=z.ownerDocument)?I.defaultView||I.parentWindow:window,P?(Q=o.relatedTarget||o.toElement,P=U,Q=Q?ws(Q):null,Q!==null&&(qe=l(Q),ae=Q.tag,Q!==qe||ae!==5&&ae!==27&&ae!==6)&&(Q=null)):(P=null,Q=U),P!==Q)){if(ae=hv,q="onMouseLeave",j="onMouseEnter",k="mouse",(r==="pointerout"||r==="pointerover")&&(ae=pv,q="onPointerLeave",j="onPointerEnter",k="pointer"),qe=P==null?I:co(P),L=Q==null?I:co(Q),I=new ae(q,k+"leave",P,o,z),I.target=qe,I.relatedTarget=L,q=null,ws(z)===U&&(ae=new ae(j,k+"enter",Q,o,z),ae.target=L,ae.relatedTarget=qe,q=ae),qe=q,P&&Q)t:{for(ae=ZR,j=P,k=Q,L=0,q=j;q;q=ae(q))L++;q=0;for(var ie=k;ie;ie=ae(ie))q++;for(;0<L-q;)j=ae(j),L--;for(;0<q-L;)k=ae(k),q--;for(;L--;){if(j===k||k!==null&&j===k.alternate){ae=j;break t}j=ae(j),k=ae(k)}ae=null}else ae=null;P!==null&&a_(F,I,P,ae,!1),Q!==null&&qe!==null&&a_(F,qe,Q,ae,!0)}}
vendor: 5,189 bytes, lines 56-57
56e:{if(I=U?co(U):window,P=I.nodeName&&I.nodeName.toLowerCase(),P==="select"||P==="input"&&I.type==="file")var ke=Ev;else if(Sv(I))if(Tv)ke=cR;else{ke=lR;var ne=oR}else P=I.nodeName,!P||P.toLowerCase()!=="input"||I.type!=="checkbox"&&I.type!=="radio"?U&&mf(U.elementType)&&(ke=Ev):ke=uR;if(ke&&(ke=ke(r,U))){wv(F,ke,o,z);break e}ne&&ne(r,I,U),r==="focusout"&&U&&I.type==="number"&&U.memoizedProps.value!=null&&hf(I,"number",I.value)}switch(ne=U?co(U):window,r){case"focusin":(Sv(ne)||ne.contentEditable==="true")&&(Ns=ne,Cf=U,_o=null);break;case"focusout":_o=Cf=Ns=null;break;case"mousedown":Rf=!0;break;case"contextmenu":case"mouseup":case"dragend":Rf=!1,jv(F,o,z);break;case"selectionchange":if(fR)break;case"keydown":case"keyup":jv(F,o,z)}var ye;if(Tf)e:{switch(r){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else ks?bv(r,o)&&(Te="onCompositionEnd"):r==="keydown"&&o.keyCode===229&&(Te="onCompositionStart");Te&&(gv&&o.locale!=="ko"&&(ks||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&ks&&(ye=dv()):(zr=z,bf="value"in zr?zr.value:zr.textContent,ks=!0)),ne=oc(U,Te),0<ne.length&&(Te=new mv(Te,r,null,o,z),F.push({event:Te,listeners:ne}),ye?Te.data=ye:(ye=_v(o),ye!==null&&(Te.data=ye)))),(ye=nR?rR(r,o):iR(r,o))&&(Te=oc(U,"onBeforeInput"),0<Te.length&&(ne=new mv("onBeforeInput","beforeinput",null,o,z),F.push({event:ne,listeners:Te}),ne.data=ye)),XR(F,r,U,o,z)}i_(F,s)})}function Fo(r,s,o){return{instance:r,listener:s,currentTarget:o}}function oc(r,s){for(var o=s+"Capture",c=[];r!==null;){var m=r,p=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||p===null||(m=fo(r,o),m!=null&&c.unshift(Fo(r,m,p)),m=fo(r,s),m!=null&&c.push(Fo(r,m,p))),r.tag===3)return c;r=r.return}return[]}function ZR(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function a_(r,s,o,c,m){for(var p=s._reactName,b=[];o!==null&&o!==c;){var w=o,O=w.alternate,U=w.stateNode;if(w=w.tag,O!==null&&O===c)break;w!==5&&w!==26&&w!==27||U===null||(O=U,m?(U=fo(o,p),U!=null&&b.unshift(Fo(o,U,O))):m||(U=fo(o,p),U!=null&&b.push(Fo(o,U,O)))),o=o.return}b.length!==0&&r.push({event:s,listeners:b})}var ek=/\r\n?/g,tk=/\u0000|\uFFFD/g;function o_(r){return(typeof r=="string"?r:""+r).replace(ek,`
57`).replace(tk,"")}function l_(r,s){return s=o_(s),o_(r)===s}function He(r,s,o,c,m,p){switch(o){case"children":typeof c=="string"?s==="body"||s==="textarea"&&c===""||Os(r,c):(typeof c=="number"||typeof c=="bigint")&&s!=="body"&&Os(r,""+c);break;case"className":du(r,"class",c);break;case"tabIndex":du(r,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":du(r,o,c);break;case"style":lv(r,c,p);break;case"data":if(s!=="object"){du(r,"data",c);break}case"src":case"href":if(c===""&&(s!=="a"||o!=="href")){r.removeAttribute(o);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(o);break}c=hu(""+c),r.setAttribute(o,c);break;case"action":case"formAction":if(typeof c=="function"){r.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(o==="formAction"?(s!=="input"&&He(r,s,"name",m.name,m,null),He(r,s,"formEncType",m.formEncType,m,null),He(r,s,"formMethod",m.formMethod,m,null),He(r,s,"formTarget",m.formTarget,m,null)):(He(r,s,"encType",m.encType,m,null),He(r,s,"method",m.method,m,null),He(r,s,"target",m.target,m,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(o);break}c=hu(""+c),r.setAttribute(o,c);break;case"onClick":c!=null&&(r.onclick=ur);break;case"onScroll":c!=null&&we("scroll",r);break;case"onScrollEnd":c!=null&&we("scrollend",r);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(o=c.__html,o!=null){if(m.children!=null)throw Error(i(60));r.innerHTML=o}}break;case"multiple":r.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":r.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){r.removeAttribute("xlink:href");break}o=hu(""+c),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(o,""+c):r.removeAttribute(o);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
57ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(o,""):r.removeAttribute(o);break;case"capture":case"download":c===!0?r.setAttribute(o,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(o,c):r.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?r.setAttribute(o,c):r.removeAttribute(o);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?r.removeAttribute(o):r.setAttribute(o,c);break;case"popover":we("beforetoggle",r),we("toggle",r),cu(r,"popover",c);break;case"xlinkActuate":lr(r,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":lr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":lr(r,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":lr(r,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":lr(r,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":lr(r,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":lr(r,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":lr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":lr(r,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":cu(r,"is",c);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=RC.get(o)||o,cu(r,o,c))}}function em(r,s,o,c,m,p){switch(o){case"style":lv(r,c,p);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(o=c.__html,o!=null){if(m.children!=null)throw Error(i(60));r.innerHTML=o}}break;case"children":typeof c=="string"?Os(r,c):(typeof c=="number"||typeof c=="bigint")&&Os(r,""+c);break;case"onScroll":c!=null&&we("scroll",r);break;case"onScrollEnd":c!=null&&we("scrollend",r);break;case"onClick":c!=null&&(r.onclick=ur);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Zy.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(m=o.endsWith("Capture"),s=o.slice(2,m?o.length-7:void 0),p=r[Kt]||null,p=p!=null?p[o]:null,typeof p=="function"&&r.removeEventListener(s,p,m),typeof c=="function")){typeof p!="function"&&p!==null&&(o in r?r[o]=null:r.hasAttribute(o)&&r.removeAttribute(o)),r.addEventListener(s,c,m);break e}o in r?r[o]=c:c===!0?r.setAttribute(o,""):cu(r,o,c)}}}function kt(r,s,o){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":we("error",r),we("load",r);var c=!1,m=!1,p;for(p in o)if(o.hasOwnProperty(p)){var b=o[p];if(b!=null)switch(p){case"src":c=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,s));default:He(r,s,p,b,o,null)}}m&&He(r,s,"srcSet",o.srcSet,o,null),c&&He(r,s,"src",o.src,o,null);return;case"input":we("invalid",r);var w=p=b=m=null,O=null,U=null;for(c in o)if(o.hasOwnProperty(c)){var z=o[c];if(z!=null)switch(c){case"name":m=z;break;case"type":b=z;break;case"checked":O=z;break;case"defaultChecked":U=z;break;case"value":p=z;break;case"defaultValue":w=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(i(137,s));break;default:He(r,s,c,z,o,null)}}iv(r,p,w,O,U,b,m,!1);return;case"select":we("invalid",r),c=b=p=null;for(m in o)if(o.hasOwnProperty(m)&&(w=o[m],w!=null))switch(m){case"value":p=w;break;case"defaultValue":b=w;break;case"multiple":c=w;default:He(r,s,m,w,o,null)}s=p,o=b,r.multiple=!!c,s!=null?As(r,!!c,s,!1):o!=null&&As(r,!!c,o,!0);return;case"textarea":we("invalid",r),p=m=c=null;for(b in o)if(o.hasOwnProperty(b)&&(w=o[b],w!=null))switch(b){case"value":c=w;break;case"defaultValue":m=w;break;case"children":p=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(i(91));break;default:He(r,s,b,w,o,null)}av(r,c,m,p);return;case"option":for(O in o)if(o.hasOwnProperty(O)&&(c=o[O],c!=null))switch(O){case"selected":r.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:He(r,s,O,c,o,null)}return;case"dialog":we("beforetoggle",r),we("toggle",r),we("cancel",r),we("close",r);break;case"iframe":case"object":we("load",r);break;case"video":case"audio":for(c=0;c<qo.length;c++)we(qo[c],r);break;case"image":we("error",r),we("load",r);break;case"details":we("toggle",r);break;case"embed":case"source":case"link":we("error",r),we("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(U in o)if(o.hasOwnProperty(U)&&(c=o[U],c!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,s));default:He(r,s,U,c,o,null)}return;
vendor: 5,844 bytes, line 57
57default:if(mf(s)){for(z in o)o.hasOwnProperty(z)&&(c=o[z],c!==void 0&&em(r,s,z,c,o,void 0));return}}for(w in o)o.hasOwnProperty(w)&&(c=o[w],c!=null&&He(r,s,w,c,o,null))}function nk(r,s,o,c){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,p=null,b=null,w=null,O=null,U=null,z=null;for(P in o){var F=o[P];if(o.hasOwnProperty(P)&&F!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":O=F;default:c.hasOwnProperty(P)||He(r,s,P,null,c,F)}}for(var I in c){var P=c[I];if(F=o[I],c.hasOwnProperty(I)&&(P!=null||F!=null))switch(I){case"type":p=P;break;case"name":m=P;break;case"checked":U=P;break;case"defaultChecked":z=P;break;case"value":b=P;break;case"defaultValue":w=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(i(137,s));break;default:P!==F&&He(r,s,I,P,c,F)}}ff(r,b,w,O,U,z,p,m);return;case"select":P=b=w=I=null;for(p in o)if(O=o[p],o.hasOwnProperty(p)&&O!=null)switch(p){case"value":break;case"multiple":P=O;default:c.hasOwnProperty(p)||He(r,s,p,null,c,O)}for(m in c)if(p=c[m],O=o[m],c.hasOwnProperty(m)&&(p!=null||O!=null))switch(m){case"value":I=p;break;case"defaultValue":w=p;break;case"multiple":b=p;default:p!==O&&He(r,s,m,p,c,O)}s=w,o=b,c=P,I!=null?As(r,!!o,I,!1):!!c!=!!o&&(s!=null?As(r,!!o,s,!0):As(r,!!o,o?[]:"",!1));return;case"textarea":P=I=null;for(w in o)if(m=o[w],o.hasOwnProperty(w)&&m!=null&&!c.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:He(r,s,w,null,c,m)}for(b in c)if(m=c[b],p=o[b],c.hasOwnProperty(b)&&(m!=null||p!=null))switch(b){case"value":I=m;break;case"defaultValue":P=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(i(91));break;default:m!==p&&He(r,s,b,m,c,p)}sv(r,I,P);return;case"option":for(var Q in o)if(I=o[Q],o.hasOwnProperty(Q)&&I!=null&&!c.hasOwnProperty(Q))switch(Q){case"selected":r.selected=!1;break;default:He(r,s,Q,null,c,I)}for(O in c)if(I=c[O],P=o[O],c.hasOwnProperty(O)&&I!==P&&(I!=null||P!=null))switch(O){case"selected":r.selected=I&&typeof I!="function"&&typeof I!="symbol";break;default:He(r,s,O,I,c,P)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ae in o)I=o[ae],o.hasOwnProperty(ae)&&I!=null&&!c.hasOwnProperty(ae)&&He(r,s,ae,null,c,I);for(U in c)if(I=c[U],P=o[U],c.hasOwnProperty(U)&&I!==P&&(I!=null||P!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(i(137,s));break;default:He(r,s,U,I,c,P)}return;default:if(mf(s)){for(var qe in o)I=o[qe],o.hasOwnProperty(qe)&&I!==void 0&&!c.hasOwnProperty(qe)&&em(r,s,qe,void 0,c,I);for(z in c)I=c[z],P=o[z],!c.hasOwnProperty(z)||I===P||I===void 0&&P===void 0||em(r,s,z,I,c,P);return}}for(var j in o)I=o[j],o.hasOwnProperty(j)&&I!=null&&!c.hasOwnProperty(j)&&He(r,s,j,null,c,I);for(F in c)I=c[F],P=o[F],!c.hasOwnProperty(F)||I===P||I==null&&P==null||He(r,s,F,I,c,P)}function u_(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function rk(){if(typeof performance.getEntriesByType=="function"){for(var r=0,s=0,o=performance.getEntriesByType("resource"),c=0;c<o.length;c++){var m=o[c],p=m.transferSize,b=m.initiatorType,w=m.duration;if(p&&w&&u_(b)){for(b=0,w=m.responseEnd,c+=1;c<o.length;c++){var O=o[c],U=O.startTime;if(U>w)break;var z=O.transferSize,F=O.initiatorType;z&&u_(F)&&(O=O.responseEnd,b+=z*(O<w?1:(w-U)/(O-U)))}if(--c,s+=8*(p+b)/(m.duration/1e3),r++,10<r)break}}if(0<r)return s/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var tm=null,nm=null;function lc(r){return r.nodeType===9?r:r.ownerDocument}function c_(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function d_(r,s){if(r===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&s==="foreignObject"?0:r}function rm(r,s){return r==="textarea"||r==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var im=null;function ik(){var r=window.event;return r&&r.type==="popstate"?r===im?!1:(im=r,!0):(im=null,!1)}var f_=typeof setTimeout=="function"?setTimeout:void 0,sk=typeof clearTimeout=="function"?clearTimeout:void 0,h_=typeof Promise=="function"?Promise:void 0,ak=typeof queueMicrotask=="function"?queueMicrotask:typeof h_<"u"?function(r){return h_.resolve(null).then(r).catch(ok)}:f_;function ok(r){setTimeout(function(){throw r})}function ii(r){return r==="head"}function m_(r,s){var o=s,c=0;do{var m=o.nextSibling;if(r.removeChild(o),m&&m.nodeType===8)if(o=m.data,o==="/$"||o==="/&"){if(c===0){r.removeChild(m),ia(s);return}c--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")c++;else if(o==="html")Go(r.ownerDocument.documentElement);else if(o==="head"){o=r.ownerDocument.head,Go(o);for(var p=o.firstChild;p;){var b=p.nextSibling,w=p.nodeName;p[uo]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&p.rel.toLowerCase()==="stylesheet"||o.removeChild(p),p=b}}else o==="body"&&Go(r.ownerDocument.body);o=m}while(o);ia(s)}function p_(r,s){var o=r;r=0;do{var c=o.nextSibling;if(o.nodeType===1?s?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(s?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),c&&c.nodeType===8)if(o=c.data,o==="/$"){if(r===0)break;r--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||r++;o=c}while(o)}function sm(r){var s=r.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var o=s;
vendor: 12,552 bytes, line 57
57switch(s=s.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":sm(o),cf(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}r.removeChild(o)}}function lk(r,s,o,c){for(;r.nodeType===1;){var m=o;if(r.nodeName.toLowerCase()!==s.toLowerCase()){if(!c&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(c){if(!r[uo])switch(s){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(p=r.getAttribute("rel"),p==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(p!==m.rel||r.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||r.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||r.getAttribute("title")!==(m.title==null?null:m.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(p=r.getAttribute("src"),(p!==(m.src==null?null:m.src)||r.getAttribute("type")!==(m.type==null?null:m.type)||r.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&p&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(s==="input"&&r.type==="hidden"){var p=m.name==null?null:""+m.name;if(m.type==="hidden"&&r.getAttribute("name")===p)return r}else return r;if(r=xn(r.nextSibling),r===null)break}return null}function uk(r,s,o){if(s==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!o||(r=xn(r.nextSibling),r===null))return null;return r}function g_(r,s){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!s||(r=xn(r.nextSibling),r===null))return null;return r}function am(r){return r.data==="$?"||r.data==="$~"}function om(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function ck(r,s){var o=r.ownerDocument;if(r.data==="$~")r._reactRetry=s;else if(r.data!=="$?"||o.readyState!=="loading")s();else{var c=function(){s(),o.removeEventListener("DOMContentLoaded",c)};o.addEventListener("DOMContentLoaded",c),r._reactRetry=c}}function xn(r){for(;r!=null;r=r.nextSibling){var s=r.nodeType;if(s===1||s===3)break;if(s===8){if(s=r.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return r}var lm=null;function y_(r){r=r.nextSibling;for(var s=0;r;){if(r.nodeType===8){var o=r.data;if(o==="/$"||o==="/&"){if(s===0)return xn(r.nextSibling);s--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||s++}r=r.nextSibling}return null}function v_(r){r=r.previousSibling;for(var s=0;r;){if(r.nodeType===8){var o=r.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(s===0)return r;s--}else o!=="/$"&&o!=="/&"||s++}r=r.previousSibling}return null}function b_(r,s,o){switch(s=lc(o),r){case"html":if(r=s.documentElement,!r)throw Error(i(452));return r;case"head":if(r=s.head,!r)throw Error(i(453));return r;case"body":if(r=s.body,!r)throw Error(i(454));return r;default:throw Error(i(451))}}function Go(r){for(var s=r.attributes;s.length;)r.removeAttributeNode(s[0]);cf(r)}var An=new Map,__=new Set;function uc(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var xr=K.d;K.d={f:dk,r:fk,D:hk,C:mk,L:pk,m:gk,X:vk,S:yk,M:bk};function dk(){var r=xr.f(),s=ec();return r||s}function fk(r){var s=Es(r);s!==null&&s.tag===5&&s.type==="form"?Ib(s):xr.r(r)}var ta=typeof document>"u"?null:document;function S_(r,s,o){var c=ta;if(c&&typeof s=="string"&&s){var m=vn(s);m='link[rel="'+r+'"][href="'+m+'"]',typeof o=="string"&&(m+='[crossorigin="'+o+'"]'),__.has(m)||(__.add(m),r={rel:r,crossOrigin:o,href:s},c.querySelector(m)===null&&(s=c.createElement("link"),kt(s,"link",r),Et(s),c.head.appendChild(s)))}}function hk(r){xr.D(r),S_("dns-prefetch",r,null)}function mk(r,s){xr.C(r,s),S_("preconnect",r,s)}function pk(r,s,o){xr.L(r,s,o);var c=ta;if(c&&r&&s){var m='link[rel="preload"][as="'+vn(s)+'"]';s==="image"&&o&&o.imageSrcSet?(m+='[imagesrcset="'+vn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(m+='[imagesizes="'+vn(o.imageSizes)+'"]')):m+='[href="'+vn(r)+'"]';var p=m;switch(s){case"style":p=na(r);break;case"script":p=ra(r)}An.has(p)||(r=y({rel:"preload",href:s==="image"&&o&&o.imageSrcSet?void 0:r,as:s},o),An.set(p,r),c.querySelector(m)!==null||s==="style"&&c.querySelector(Ko(p))||s==="script"&&c.querySelector(Yo(p))||(s=c.createElement("link"),kt(s,"link",r),Et(s),c.head.appendChild(s)))}}function gk(r,s){xr.m(r,s);var o=ta;if(o&&r){var c=s&&typeof s.as=="string"?s.as:"script",m='link[rel="modulepreload"][as="'+vn(c)+'"][href="'+vn(r)+'"]',p=m;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=ra(r)}if(!An.has(p)&&(r=y({rel:"modulepreload",href:r},s),An.set(p,r),o.querySelector(m)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Yo(p)))return}c=o.createElement("link"),kt(c,"link",r),Et(c),o.head.appendChild(c)}}}function yk(r,s,o){xr.S(r,s,o);var c=ta;if(c&&r){var m=Ts(c).hoistableStyles,p=na(r);s=s||"default";var b=m.get(p);if(!b){var w={loading:0,preload:null};if(b=c.querySelector(Ko(p)))w.loading=5;else{r=y({rel:"stylesheet",href:r,"data-precedence":s},o),(o=An.get(p))&&um(r,o);var O=b=c.createElement("link");Et(O),kt(O,"link",r),O._p=new Promise(function(U,z){O.onload=U,O.onerror=z}),O.addEventListener("load",function(){w.loading|=1}),O.addEventListener("error",function(){w.loading|=2}),w.loading|=4,cc(b,s,c)}b={type:"stylesheet",instance:b,count:1,state:w},m.set(p,b)}}}function vk(r,s){xr.X(r,s);var o=ta;if(o&&r){var c=Ts(o).hoistableScripts,m=ra(r),p=c.get(m);p||(p=o.querySelector(Yo(m)),p||(r=y({src:r,async:!0},s),(s=An.get(m))&&cm(r,s),p=o.createElement("script"),Et(p),kt(p,"link",r),o.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},c.set(m,p))}}function bk(r,s){xr.M(r,s);var o=ta;if(o&&r){var c=Ts(o).hoistableScripts,m=ra(r),p=c.get(m);p||(p=o.querySelector(Yo(m)),p||(r=y({src:r,async:!0,type:"module"},s),(s=An.get(m))&&cm(r,s),p=o.createElement("script"),Et(p),kt(p,"link",r),o.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},c.set(m,p))}}function w_(r,s,o,c){var m=(m=me.current)?uc(m):null;if(!m)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(s=na(o.href),o=Ts(m).hoistableStyles,c=o.get(s),c||(c={type:"style",instance:null,count:0,state:null},o.set(s,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){r=na(o.href);var p=Ts(m).hoistableStyles,b=p.get(r);if(b||(m=m.ownerDocument||m,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(r,b),(p=m.querySelector(Ko(r)))&&!p._p&&(b.instance=p,b.state.loading=5),An.has(r)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},An.set(r,o),p||_k(m,r,o,b.state))),s&&c===null)throw Error(i(528,""));return b}if(s&&c!==null)throw Error(i(529,""));return null;case"script":return s=o.async,o=o.src,typeof o=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=ra(o),o=Ts(m).hoistableScripts,c=o.get(s),c||(c={type:"script",instance:null,count:0,state:null},o.set(s,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function na(r){return'href="'+vn(r)+'"'}function Ko(r){return'link[rel="stylesheet"]['+r+"]"}function E_(r){return y({},r,{"data-precedence":r.precedence,precedence:null})}function _k(r,s,o,c){r.querySelector('link[rel="preload"][as="style"]['+s+"]")?c.loading=1:(s=r.createElement("link"),c.preload=s,s.addEventListener("load",function(){return c.loading|=1}),s.addEventListener("error",function(){return c.loading|=2}),kt(s,"link",o),Et(s),r.head.appendChild(s))}function ra(r){return'[src="'+vn(r)+'"]'}function Yo(r){return"script[async]"+r}function T_(r,s,o){if(s.count++,s.instance===null)switch(s.type){case"style":var c=r.querySelector('style[data-href~="'+vn(o.href)+'"]');if(c)return s.instance=c,Et(c),c;var m=y({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return c=(r.ownerDocument||r).createElement("style"),Et(c),kt(c,"style",m),cc(c,o.precedence,r),s.instance=c;case"stylesheet":m=na(o.href);var p=r.querySelector(Ko(m));if(p)return s.state.loading|=4,s.instance=p,Et(p),p;c=E_(o),(m=An.get(m))&&um(c,m),p=(r.ownerDocument||r).createElement("link"),Et(p);var b=p;return b._p=new Promise(function(w,O){b.onload=w,b.onerror=O}),kt(p,"link",c),s.state.loading|=4,cc(p,o.precedence,r),s.instance=p;case"script":return p=ra(o.src),(m=r.querySelector(Yo(p)))?(s.instance=m,Et(m),m):(c=o,(m=An.get(p))&&(c=y({},o),cm(c,m)),r=r.ownerDocument||r,m=r.createElement("script"),Et(m),kt(m,"link",c),r.head.appendChild(m),s.instance=m);case"void":return null;default:throw Error(i(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(c=s.instance,s.state.loading|=4,cc(c,o.precedence,r));return s.instance}function cc(r,s,o){for(var c=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=c.length?c[c.length-1]:null,p=m,b=0;b<c.length;b++){var w=c[b];if(w.dataset.precedence===s)p=w;else if(p!==m)break}p?p.parentNode.insertBefore(r,p.nextSibling):(s=o.nodeType===9?o.head:o,s.insertBefore(r,s.firstChild))}function um(r,s){r.crossOrigin==null&&(r.crossOrigin=s.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=s.referrerPolicy),r.title==null&&(r.title=s.title)}function cm(r,s){r.crossOrigin==null&&(r.crossOrigin=s.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=s.referrerPolicy),r.integrity==null&&(r.integrity=s.integrity)}var dc=null;function x_(r,s,o){if(dc===null){var c=new Map,m=dc=new Map;m.set(o,c)}else m=dc,c=m.get(o),c||(c=new Map,m.set(o,c));if(c.has(r))return c;for(c.set(r,null),o=o.getElementsByTagName(r),m=0;m<o.length;m++){var p=o[m];if(!(p[uo]||p[At]||r==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var b=p.getAttribute(s)||"";b=r+b;var w=c.get(b);w?w.push(p):c.set(b,[p])}}return c}function A_(r,s,o){r=r.ownerDocument||r,r.head.insertBefore(o,s==="title"?r.querySelector("head > title"):null)}function Sk(r,s,o){if(o===1||s.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return r=s.disabled,typeof s.precedence=="string"&&r==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function O_(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function wk(r,s,o,c){if(o.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var m=na(c.href),p=s.querySelector(Ko(m));if(p){s=p._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(r.count++,r=fc.bind(r),s.then(r,r)),o.state.loading|=4,o.instance=p,Et(p);return}p=s.ownerDocument||s,c=E_(c),(m=An.get(m))&&um(c,m),p=p.createElement("link"),Et(p);var b=p;b._p=new Promise(function(w,O){b.onload=w,b.onerror=O}),kt(p,"link",c),o.instance=p}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(o,s),(s=o.state.preload)&&(o.state.loading&3)===0&&(r.count++,o=fc.bind(r),s.addEventListener("load",o),s.addEventListener("error",o))}}var dm=0;function Ek(r,s){return r.stylesheets&&r.count===0&&mc(r,r.stylesheets),0<r.count||0<r.imgCount?function(o){var c=setTimeout(function(){if(r.stylesheets&&mc(r,r.stylesheets),r.unsuspend){var p=r.unsuspend;r.unsuspend=null,p()}},6e4+s);0<r.imgBytes&&dm===0&&(dm=62500*rk());var m=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&mc(r,r.stylesheets),r.unsuspend)){var p=r.unsuspend;r.unsuspend=null,p()}},(r.imgBytes>dm?50:800)+s);return r.unsuspend=o,function(){r.unsuspend=null,clearTimeout(c),clearTimeout(m)}}:null}function fc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)mc(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var hc=null;function mc(r,s){r.stylesheets=null,r.unsuspend!==null&&(r.count++,hc=new Map,s.forEac
vendor: 9,854 bytes, line 57
57h(Tk,r),hc=null,fc.call(r))}function Tk(r,s){if(!(s.state.loading&4)){var o=hc.get(r);if(o)var c=o.get(null);else{o=new Map,hc.set(r,o);for(var m=r.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<m.length;p++){var b=m[p];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(o.set(b.dataset.precedence,b),c=b)}c&&o.set(null,c)}m=s.instance,b=m.getAttribute("data-precedence"),p=o.get(b)||c,p===c&&o.set(null,m),o.set(b,m),this.count++,c=fc.bind(this),m.addEventListener("load",c),m.addEventListener("error",c),p?p.parentNode.insertBefore(m,p.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(m,r.firstChild)),s.state.loading|=4}}var Xo={$$typeof:R,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function xk(r,s,o,c,m,p,b,w,O){this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=af(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=af(0),this.hiddenUpdates=af(null),this.identifierPrefix=c,this.onUncaughtError=m,this.onCaughtError=p,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function C_(r,s,o,c,m,p,b,w,O,U,z,F){return r=new xk(r,s,o,b,O,U,z,F,w),s=1,p===!0&&(s|=24),p=on(3,null,null,s),r.current=p,p.stateNode=r,s=qf(),s.refCount++,r.pooledCache=s,s.refCount++,p.memoizedState={element:c,isDehydrated:o,cache:s},Yf(p),r}function R_(r){return r?(r=Ms,r):Ms}function k_(r,s,o,c,m,p){m=R_(m),c.context===null?c.context=m:c.pendingContext=m,c=Kr(s),c.payload={element:o},p=p===void 0?null:p,p!==null&&(c.callback=p),o=Yr(r,c,s),o!==null&&(Zt(o,r,s),Oo(o,r,s))}function N_(r,s){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var o=r.retryLane;r.retryLane=o!==0&&o<s?o:s}}function fm(r,s){N_(r,s),(r=r.alternate)&&N_(r,s)}function j_(r){if(r.tag===13||r.tag===31){var s=Mi(r,67108864);s!==null&&Zt(s,r,67108864),fm(r,67108864)}}function D_(r){if(r.tag===13||r.tag===31){var s=fn();s=of(s);var o=Mi(r,s);o!==null&&Zt(o,r,s),fm(r,s)}}var pc=!0;function Ak(r,s,o,c){var m=V.T;V.T=null;var p=K.p;try{K.p=2,hm(r,s,o,c)}finally{K.p=p,V.T=m}}function Ok(r,s,o,c){var m=V.T;V.T=null;var p=K.p;try{K.p=8,hm(r,s,o,c)}finally{K.p=p,V.T=m}}function hm(r,s,o,c){if(pc){var m=mm(c);if(m===null)Zh(r,s,c,gc,o),L_(r,c);else if(Rk(m,r,s,o,c))c.stopPropagation();else if(L_(r,c),s&4&&-1<Ck.indexOf(r)){for(;m!==null;){var p=Es(m);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var b=Ri(p.pendingLanes);if(b!==0){var w=p;for(w.pendingLanes|=2,w.entangledLanes|=2;b;){var O=1<<31-sn(b);w.entanglements[1]|=O,b&=~O}er(p),(De&6)===0&&(Qu=nn()+500,Ho(0))}}break;case 31:case 13:w=Mi(p,2),w!==null&&Zt(w,p,2),ec(),fm(p,2)}if(p=mm(c),p===null&&Zh(r,s,c,gc,o),p===m)break;m=p}m!==null&&c.stopPropagation()}else Zh(r,s,c,null,o)}}function mm(r){return r=gf(r),pm(r)}var gc=null;function pm(r){if(gc=null,r=ws(r),r!==null){var s=l(r);if(s===null)r=null;else{var o=s.tag;if(o===13){if(r=u(s),r!==null)return r;r=null}else if(o===31){if(r=d(s),r!==null)return r;r=null}else if(o===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;r=null}else s!==r&&(r=null)}}return gc=r,null}function M_(r){switch(r){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(hC()){case $y:return 2;case Hy:return 8;case su:case mC:return 32;case qy:return 268435456;default:return 32}default:return 32}}var gm=!1,si=null,ai=null,oi=null,Wo=new Map,Jo=new Map,li=[],Ck="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function L_(r,s){switch(r){case"focusin":case"focusout":si=null;break;case"dragenter":case"dragleave":ai=null;break;case"mouseover":case"mouseout":oi=null;break;case"pointerover":case"pointerout":Wo.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Jo.delete(s.pointerId)}}function Qo(r,s,o,c,m,p){return r===null||r.nativeEvent!==p?(r={blockedOn:s,domEventName:o,eventSystemFlags:c,nativeEvent:p,targetContainers:[m]},s!==null&&(s=Es(s),s!==null&&j_(s)),r):(r.eventSystemFlags|=c,s=r.targetContainers,m!==null&&s.indexOf(m)===-1&&s.push(m),r)}function Rk(r,s,o,c,m){switch(s){case"focusin":return si=Qo(si,r,s,o,c,m),!0;case"dragenter":return ai=Qo(ai,r,s,o,c,m),!0;case"mouseover":return oi=Qo(oi,r,s,o,c,m),!0;case"pointerover":var p=m.pointerId;return Wo.set(p,Qo(Wo.get(p)||null,r,s,o,c,m)),!0;case"gotpointercapture":return p=m.pointerId,Jo.set(p,Qo(Jo.get(p)||null,r,s,o,c,m)),!0}return!1}function U_(r){var s=ws(r.target);if(s!==null){var o=l(s);if(o!==null){if(s=o.tag,s===13){if(s=u(o),s!==null){r.blockedOn=s,Wy(r.priority,function(){D_(o)});return}}else if(s===31){if(s=d(o),s!==null){r.blockedOn=s,Wy(r.priority,function(){D_(o)});return}}else if(s===3&&o.stateNode.current.memoizedState.isDehydrated){r.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}r.blockedOn=null}function yc(r){if(r.blockedOn!==null)return!1;for(var s=r.targetContainers;0<s.length;){var o=mm(r.nativeEvent);if(o===null){o=r.nativeEvent;var c=new o.constructor(o.type,o);pf=c,o.target.dispatchEvent(c),pf=null}else return s=Es(o),s!==null&&j_(s),r.blockedOn=o,!1;s.shift()}return!0}function I_(r,s,o){yc(r)&&o.delete(s)}function kk(){gm=!1,si!==null&&yc(si)&&(si=null),ai!==null&&yc(ai)&&(ai=null),oi!==null&&yc(oi)&&(oi=null),Wo.forEach(I_),Jo.forEach(I_)}function vc(r,s){r.blockedOn===s&&(r.blockedOn=null,gm||(gm=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,kk)))}var bc=null;function P_(r){bc!==r&&(bc=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){bc===r&&(bc=null);for(var s=0;s<r.length;s+=3){var o=r[s],c=r[s+1],m=r[s+2];if(typeof c!="function"){if(pm(c||o)===null)continue;break}var p=Es(o);p!==null&&(r.splice(s,3),s-=3,mh(p,{pending:!0,data:m,method:o.method,action:c},c,m))}}))}function ia(r){function s(O){return vc(O,r)}si!==null&&vc(si,r),ai!==null&&vc(ai,r),oi!==null&&vc(oi,r),Wo.forEach(s),Jo.forEach(s);for(var o=0;o<li.length;o++){var c=li[o];c.blockedOn===r&&(c.blockedOn=null)}for(;0<li.length&&(o=li[0],o.blockedOn===null);)U_(o),o.blockedOn===null&&li.shift();if(o=(r.ownerDocument||r).$$reactFormReplay,o!=null)for(c=0;c<o.length;c+=3){var m=o[c],p=o[c+1],b=m[Kt]||null;if(typeof p=="function")b||P_(o);else if(b){var w=null;if(p&&p.hasAttribute("formAction")){if(m=p,b=p[Kt]||null)w=b.formAction;else if(pm(m)!==null)continue}else w=b.action;typeof w=="function"?o[c+1]=w:(o.splice(c,3),c-=3),P_(o)}}}function B_(){function r(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(b){return m=b})},focusReset:"manual",scroll:"manual"})}function s(){m!==null&&(m(),m=null),c||setTimeout(o,20)}function o(){if(!c&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,m=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(o,100),function(){c=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),m!==null&&(m(),m=null)}}}function ym(r){this._internalRoot=r}_c.prototype.render=ym.prototype.render=function(r){var s=this._internalRoot;if(s===null)throw Error(i(409));var o=s.current,c=fn();k_(o,c,r,s,null,null)},_c.prototype.unmount=ym.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var s=r.containerInfo;k_(r.current,2,null,r,null,null),ec(),s[Ss]=null}};function _c(r){this._internalRoot=r}_c.prototype.unstable_scheduleHydration=function(r){if(r){var s=Xy();r={blockedOn:null,target:r,priority:s};for(var o=0;o<li.length&&s!==0&&s<li[o].priority;o++);li.splice(o,0,r),o===0&&U_(r)}};var V_=t.version;if(V_!=="19.2.0")throw Error(i(527,V_,"19.2.0"));K.findDOMNode=function(r){var s=r._reactInternals;if(s===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=h(s),r=r!==null?g(r):null,r=r===null?null:r.stateNode,r};var Nk={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.0"};
57if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Sc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sc.isDisabled&&Sc.supportsFiber)try{ao=Sc.inject(Nk),rn=Sc}catch{}}return sl.createRoot=function(r,s){if(!a(r))throw Error(i(299));var o=!1,c="",m=Kb,p=Yb,b=Xb;return s!=null&&(s.unstable_strictMode===!0&&(o=!0),s.identifierPrefix!==void 0&&(c=s.identifierPrefix),s.onUncaughtError!==void 0&&(m=s.onUncaughtError),s.onCaughtError!==void 0&&(p=s.onCaughtError),s.onRecoverableError!==void 0&&(b=s.onRecoverableError)),s=C_(r,1,!1,null,null,o,c,null,m,p,b,B_),r[Ss]=s.current,Qh(r),new ym(s)},sl.hydrateRoot=function(r,s,o){if(!a(r))throw Error(i(299));var c=!1,m="",p=Kb,b=Yb,w=Xb,O=null;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(m=o.identifierPrefix),o.onUncaughtError!==void 0&&(p=o.onUncaughtError),o.onCaughtError!==void 0&&(b=o.onCaughtError),o.onRecoverableError!==void 0&&(w=o.onRecoverableError),o.formState!==void 0&&(O=o.formState)),s=C_(r,1,!0,s,o??null,c,m,O,p,b,w,B_),s.context=R_(null),o=s.current,c=fn(),c=of(c),m=Kr(c),m.callback=null,Yr(o,m,c),o=c,s.current.lanes=o,lo(s,o),er(s),r[Ss]=s.current,Qh(r),new _c(s)},sl.version="19.2.0",sl}var PS;function sP(){if(PS)return zm.exports;PS=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),zm.exports=iP(),zm.exports}var aP=sP();const oP=Ja(aP);var Fm,BS;function lP(){if(BS)return Fm;BS=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",i=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function a(l,u){if(l===u)return!0;if(l&&u&&typeof l=="object"&&typeof u=="object"){if(l.constructor!==u.constructor)return!1;var d,f,h;if(Array.isArray(l)){if(d=l.length,d!=u.length)return!1;for(f=d;f--!==0;)if(!a(l[f],u[f]))return!1;return!0}var g;if(t&&l instanceof Map&&u instanceof Map){if(l.size!==u.size)return!1;for(g=l.entries();!(f=g.next()).done;)if(!u.has(f.value[0]))return!1;for(g=l.entries();!(f=g.next()).done;)if(!a(f.value[1],u.get(f.value[0])))return!1;return!0}if(n&&l instanceof Set&&u instanceof Set){if(l.size!==u.size)return!1;for(g=l.entries();!(f=g.next()).done;)if(!u.has(f.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(l)&&ArrayBuffer.isView(u)){if(d=l.length,d!=u.length)return!1;for(f=d;f--!==0;)if(l[f]!==u[f])return!1;return!0}if(l.constructor===RegExp)return l.source===u.source&&l.flags===u.flags;if(l.valueOf!==Object.prototype.valueOf&&typeof l.valueOf=="function"&&typeof u.valueOf=="function")return l.valueOf()===u.valueOf();if(l.toString!==Object.prototype.toString&&typeof l.toString=="function"&&typeof u.toString=="function")return l.toString()===u.toString();if(h=Object.keys(l),d=h.length,d!==Object.keys(u).length)return!1;for(f=d;f--!==0;)if(!Object.prototype.hasOwnProperty.call(u,h[f]))return!1;if(e&&l instanceof Element)return!1;for(f=d;f--!==0;)if(!((h[f]==="_owner"||h[f]==="__v"||h[f]==="__o")&&l.$$typeof)&&!a(l[h[f]],u[h[f]]))return!1;return!0}return l!==l&&u!==u}return Fm=function(u,d){try{return a(u,d)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},Fm}var uP=lP();const cP=Ja(uP);var Gm,VS;function dP(){if(VS)return Gm;VS=1;var e=function(t,n,i,a,l,u,d,f){if(!t){var h;if(n===void 0)h=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var g=[i,a,l,u,d,f],y=0;h=new Error(n.replace(/%s/g,function(){return g[y++]})),h.name="Invariant Violation"}throw h.framesToPop=1,h}};return Gm=e,Gm}var fP=dP();const zS=Ja(fP);var Km,$S;function hP(){return $S||($S=1,Km=function(t,n,i,a){var l=i?i.call(a,t,n):void 0;if(l!==void 0)return!!l;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var u=Object.keys(t),d=Object.keys(n);if(u.length!==d.length)return!1;for(var f=Object.prototype.hasOwnProperty.bind(n),h=0;h<u.length;h++){var g=u[h];if(!f(g))return!1;var y=t[g],v=n[g];
57if(l=i?i.call(a,y,v,g):void 0,l===!1||l===void 0&&y!==v)return!1}return!0}),Km}var mP=hP();const pP=Ja(mP);var tA=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(tA||{}),Ym={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},HS=Object.values(tA),$d={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},nA=Object.entries($d).reduce((e,[t,n])=>(e[n]=t,e),{}),qn="data-rh",Ra={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},ka=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const i=e[n];if(Object.prototype.hasOwnProperty.call(i,t))return i[t]}return null},gP=e=>{let t=ka(e,"title");const n=ka(e,Ra.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const i=ka(e,Ra.DEFAULT_TITLE);return t||i||void 0},yP=e=>ka(e,Ra.ON_CHANGE_CLIENT_STATE)||(()=>{}),Xm=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,i)=>({...n,...i}),{}),vP=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,i)=>{if(!n.length){const a=Object.keys(i);for(let l=0;l<a.length;l+=1){const d=a[l].toLowerCase();if(e.indexOf(d)!==-1&&i[d])return n.concat(i)}}return n},[]),bP=e=>console&&typeof console.warn=="function"&&console.warn(e),al=(e,t,n)=>{const i={};return n.filter(a=>Array.isArray(a[e])?!0:(typeof a[e]<"u"&&bP(`Helmet: ${e} should be of type "Array". Instead found type "${typeof a[e]}"`),!1)).map(a=>a[e]).reverse().reduce((a,l)=>{const u={};l.filter(f=>{let h;const g=Object.keys(f);for(let v=0;v<g.length;v+=1){const _=g[v],S=_.toLowerCase();t.indexOf(S)!==-1&&!(h==="rel"&&f[h].toLowerCase()==="canonical")&&!(S==="rel"&&f[S].toLowerCase()==="stylesheet")&&(h=S),t.indexOf(_)!==-1&&(_==="innerHTML"||_==="cssText"||_==="itemprop")&&(h=_)}if(!h||!f[h])return!1;const y=f[h].toLowerCase();return i[h]||(i[h]={}),u[h]||(u[h]={}),i[h][y]?!1:(u[h][y]=!0,!0)}).reverse().forEach(f=>a.push(f));const d=Object.keys(u);for(let f=0;f<d.length;f+=1){const h=d[f],g={...i[h],...u[h]};i[h]=g}return a},[]).reverse()},_P=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},SP=e=>({baseTag:vP(["href"],e),bodyAttributes:Xm("bodyAttributes",e),defer:ka(e,Ra.DEFER),encode:ka(e,Ra.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Xm("htmlAttributes",e),linkTags:al("link",["rel","href"],e),metaTags:al("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:al("noscript",["innerHTML"],e),onChangeClientState:yP(e),scriptTags:al("script",["src","innerHTML"],e),styleTags:al("style",["cssText"],e),title:gP(e),titleAttributes:Xm("titleAttributes",e),prioritizeSeoTags:_P(e,Ra.PRIORITIZE_SEO_TAGS)}),rA=e=>Array.isArray(e)?e.join(""):e,wP=(e,t)=>{const n=Object.keys(e);for(let i=0;i<n.length;i+=1)if(t[n[i]]&&t[n[i]].includes(e[n[i]]))return!0;return!1},Wm=(e,t)=>Array.isArray(e)?e.reduce((n,i)=>(wP(i,t)?n.priority.push(i):n.default.push(i),n),{priority:[],default:[]}):{default:e,priority:[]},qS=(e,t)=>({...e,[t]:void 0}),EP=["noscript","script","style"],Ip=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),iA=e=>Object.keys(e).reduce((t,n)=>{const i=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${i}`:i},""),TP=(e,t,n,i)=>{const a=iA(n),l=rA(t);return a?`<${e} ${qn}="true" ${a}>${Ip(l,i)}</${e}>`:`<${e} ${qn}="true">${Ip(l,i)}</${e}>`},xP=(e,t,n=!0)=>t.reduce((i,a)=>{const l=a,u=Object.keys(l).filter(h=>!(h==="innerHTML"||h==="cssText")).reduce((h,g)=>{const y=typeof l[g]>"u"?g:`${g}="${Ip(l[g],n)}"`;return h?`${h} ${y}`:y},""),d=l.innerHTML||l.cssText||"",f=EP.indexOf(e)===-1;return`${i}<${e} ${qn}="true" ${u}${f?"/>":`>${d}</${e}>`}`},""),sA=(e,t={})=>Object.keys(e).reduce((n,i)=>{const a=$d[i];return n[a||i]=e[i],n},t),AP=(e,t,n)=>{const i={key:t,[qn]:!0},a=sA(n,i);return[st.createElement("title",a,t)]},Xc=(e,t)=>t.map((n,i)=>{const a={key:i,[qn]:!0};
57return Object.keys(n).forEach(l=>{const d=$d[l]||l;if(d==="innerHTML"||d==="cssText"){const f=n.innerHTML||n.cssText;a.dangerouslySetInnerHTML={__html:f}}else a[d]=n[l]}),st.createElement(e,a)}),Rn=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>AP(e,t.title,t.titleAttributes),toString:()=>TP(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>sA(t),toString:()=>iA(t)};default:return{toComponent:()=>Xc(e,t),toString:()=>xP(e,t,n)}}},OP=({metaTags:e,linkTags:t,scriptTags:n,encode:i})=>{const a=Wm(e,Ym.meta),l=Wm(t,Ym.link),u=Wm(n,Ym.script);return{priorityMethods:{toComponent:()=>[...Xc("meta",a.priority),...Xc("link",l.priority),...Xc("script",u.priority)],toString:()=>`${Rn("meta",a.priority,i)} ${Rn("link",l.priority,i)} ${Rn("script",u.priority,i)}`},metaTags:a.default,linkTags:l.default,scriptTags:u.default}},CP=e=>{const{baseTag:t,bodyAttributes:n,encode:i=!0,htmlAttributes:a,noscriptTags:l,styleTags:u,title:d="",titleAttributes:f,prioritizeSeoTags:h}=e;let{linkTags:g,metaTags:y,scriptTags:v}=e,_={toComponent:()=>[],toString:()=>""};return h&&({priorityMethods:_,linkTags:g,metaTags:y,scriptTags:v}=OP(e)),{priority:_,base:Rn("base",t,i),bodyAttributes:Rn("bodyAttributes",n,i),htmlAttributes:Rn("htmlAttributes",a,i),link:Rn("link",g,i),meta:Rn("meta",y,i),noscript:Rn("noscript",l,i),script:Rn("script",v,i),style:Rn("style",u,i),title:Rn("title",{title:d,titleAttributes:f},i)}},Pp=CP,Cc=[],Yg=!!(typeof window<"u"&&window.document&&window.document.createElement),Bp=class{instances=[];canUseDOM=Yg;context;value={setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Cc:this.instances,add:e=>{(this.canUseDOM?Cc:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Cc:this.instances).indexOf(e);(this.canUseDOM?Cc:this.instances).splice(t,1)}}};constructor(e,t){this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Pp({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},RP=parseInt(st.version.split(".")[0],10),Vp=RP>=19,kP={},aA=st.createContext(kP),oA=class lA extends D.Component{static canUseDOM=Yg;helmetData;constructor(t){super(t),Vp?this.helmetData=null:this.helmetData=new Bp(this.props.context||{},lA.canUseDOM)}render(){return Vp?st.createElement(st.Fragment,null,this.props.children):st.createElement(aA.Provider,{value:this.helmetData.value},this.props.children)}},ua=(e,t)=>{const n=document.head||document.querySelector("head"),i=n.querySelectorAll(`${e}[${qn}]`),a=[].slice.call(i),l=[];let u;return t&&t.length&&t.forEach(d=>{const f=document.createElement(e);for(const h in d)if(Object.prototype.hasOwnProperty.call(d,h))if(h==="innerHTML")f.innerHTML=d.innerHTML;else if(h==="cssText"){const g=d.cssText;f.appendChild(document.createTextNode(g))}else{const g=h,y=typeof d[g]>"u"?"":d[g];f.setAttribute(h,y)}f.setAttribute(qn,"true"),a.some((h,g)=>(u=g,f.isEqualNode(h)))?a.splice(u,1):l.push(f)}),a.forEach(d=>d.parentNode?.removeChild(d)),l.forEach(d=>n.appendChild(d)),{oldTags:a,newTags:l}},zp=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const i=n.getAttribute(qn),a=i?i.split(","):[],l=[...a],u=Object.keys(t);for(const d of u){const f=t[d]||"";n.getAttribute(d)!==f&&n.setAttribute(d,f),a.indexOf(d)===-1&&a.push(d);const h=l.indexOf(d);h!==-1&&l.splice(h,1)}for(let d=l.length-1;d>=0;d-=1)n.removeAttribute(l[d]);a.length===l.length?n.removeAttribute(qn):n.getAttribute(qn)!==u.join(",")&&n.setAttribute(qn,u.join(","))},NP=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=rA(e)),zp("title",t)},FS=(e,t)=>{const{baseTag:n,bodyAttributes:i,htmlAttributes:a,linkTags:l,metaTags:u,noscriptTags:d,onChangeClientState:f,scriptTags:h,styleTags:g,title:y,titleAttributes:v}=e;zp("body",i),zp("html",a),NP(y,v);const _={baseTag:ua("base",n),linkTags:ua("link",l),metaTags:ua("meta",u),noscriptTags:ua("noscript",d),scriptTags:ua("script",h),styleTags:ua("style",g)},S={},E={};Object.keys(_).forEach(x=>{const{newTags:A,oldTags:N}=_[x];A.length&&(S[x]=A),N.length&&(E[x]=_[x].oldTags)}),t&&t(),f(e,S,E)},ol=null,jP=e=>{ol&&cancelAnimationFrame(ol),e.defer?ol=requestAnimationFrame(()=>{FS(e,()=>{ol=null})}):(FS(e),ol=null)},DP=jP,GS=class extends D.Component{rendered=!1;shouldComponentUpdate(e){return!pP(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let n=null;const i=SP(e.get().map(a=>{const{context:l,...u}=a.props;return u}));oA.canUseDOM?DP(i):Pp&&(n=Pp(i)),t(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},Wc=[],KS=e=>{const t={};for(const n of Object.keys(e))t[nA[n]||n]=e[n];return t},Yi=e=>{const t={};for(const n of Object.keys(e)){const i=$d[n];t[i||n]=e[n]}return t},YS=(e,t)=>{if(!Yg)return;const n=document.getElementsByTagName(e)[0];if(!n)return;const i="data-rh-managed",a=n.getAttribute(i),l=a?a.split(","):[],u=Object.keys(t);for(const d of l)u.includes(d)||n.removeAttribute(d);
57for(const d of u){const f=t[d];f==null||f===!1?n.removeAttribute(d):f===!0?n.setAttribute(d,""):n.setAttribute(d,String(f))}u.length>0?n.setAttribute(i,u.join(",")):n.removeAttribute(i)},Jm=()=>{const e={},t={};for(const n of Wc){const{htmlAttributes:i,bodyAttributes:a}=n.props;i&&Object.assign(e,KS(i)),a&&Object.assign(t,KS(a))}YS("html",e),YS("body",t)},MP=class extends D.Component{componentDidMount(){Wc.push(this),Jm()}componentDidUpdate(){Jm()}componentWillUnmount(){const e=Wc.indexOf(this);e!==-1&&Wc.splice(e,1),Jm()}resolveTitle(){const{title:e,titleTemplate:t,defaultTitle:n}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||n||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const t=this.props.titleAttributes||{};return st.createElement("title",Yi(t),e)}renderBase(){const{base:e}=this.props;return e?st.createElement("base",Yi(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>st.createElement("meta",{key:n,...Yi(t)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>st.createElement("link",{key:n,...Yi(t)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:i,...a}=t,l=Yi(a);return i&&(l.dangerouslySetInnerHTML={__html:i}),st.createElement("script",{key:n,...l})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{cssText:i,...a}=t,l=Yi(a);return i&&(l.dangerouslySetInnerHTML={__html:i}),st.createElement("style",{key:n,...l})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:i,...a}=t,l=Yi(a);return i&&(l.dangerouslySetInnerHTML={__html:i}),st.createElement("noscript",{key:n,...l})})}render(){return st.createElement(st.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},uA=class extends D.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(e){return!cP(qS(this.props,"helmetData"),qS(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,i){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,i)}]}}mapObjectTypeChildren(e,t,n,i){switch(e.type){case"title":return{...t,[e.type]:i,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(i=>{n={...n,[i]:e[i]}}),n}warnOnInvalidChildren(e,t){return zS(HS.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${HS.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),zS(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return st.Children.forEach(e,i=>{if(!i||!i.props)return;const{children:a,...l}=i.props,u=Object.keys(l).reduce((f,h)=>(f[nA[h]||h]=l[h],f),{});let{type:d}=i;
57switch(typeof d=="symbol"?d=d.toString():this.warnOnInvalidChildren(i,a),d){case"Symbol(react.fragment)":t=this.mapChildrenToProps(a,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(i,n,u,a);break;default:t=this.mapObjectTypeChildren(i,t,u,a);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:i}=t;if(e&&(n=this.mapChildrenToProps(e,n)),i&&!(i instanceof Bp)){const a=i;i=new Bp(a.context,!0),delete n.helmetData}return Vp?st.createElement(MP,{...n}):i?st.createElement(GS,{...n,context:i.value}):st.createElement(aA.Consumer,null,a=>st.createElement(GS,{...n,context:a}))}};const LP={theme:{extend:{colors:{background:"color-mix(in srgb, var(--color-background) calc(100% * <alpha-value>), transparent)",foreground:"color-mix(in srgb, var(--color-foreground) calc(100% * <alpha-value>), transparent)",surface:"color-mix(in srgb, var(--color-surface) calc(100% * <alpha-value>), transparent)","surface-foreground":"color-mix(in srgb, var(--color-surface-foreground) calc(100% * <alpha-value>), transparent)",border:"color-mix(in srgb, var(--color-border) calc(100% * <alpha-value>), transparent)","border-foreground":"color-mix(in srgb, var(--color-border-foreground) calc(100% * <alpha-value>), transparent)",muted:"color-mix(in srgb, var(--color-muted) calc(100% * <alpha-value>), transparent)","muted-foreground":"color-mix(in srgb, var(--color-muted-foreground) calc(100% * <alpha-value>), transparent)",accent:"color-mix(in srgb, var(--color-accent) calc(100% * <alpha-value>), transparent)","accent-foreground":"color-mix(in srgb, var(--color-accent-foreground) calc(100% * <alpha-value>), transparent)","accent-soft":"color-mix(in srgb, var(--color-accent-soft) calc(100% * <alpha-value>), transparent)","accent-soft-foreground":"color-mix(in srgb, var(--color-accent-soft-foreground) calc(100% * <alpha-value>), transparent)"},fontFamily:{heading:["var(--font-heading)"],sans:["var(--font-sans)"]},borderRadius:{pill:"var(--radius-pill)",card:"var(--radius-card)"},spacing:{"section-spacing":"var(--section-spacing)","section-spacing-mobile":"var(--section-spacing-mobile)","container-px":"var(--container-px)"}}}};/**
58 * react-router v7.9.6
59 *
60 * Copyright (c) Remix Software Inc.
61 *
62 * This source code is licensed under the MIT license found in the
63 * LICENSE.md file in the root directory of this source tree.
64 *
65 * @license MIT
66 */var XS="popstate";function UP(e={}){function t(i,a){let{pathname:l,search:u,hash:d}=i.location;return $p("",{pathname:l,search:u,hash:d},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(i,a){return typeof a=="string"?a:Cl(a)}return PP(t,n,null,e)}function tt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Xn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function IP(){return Math.random().toString(36).substring(2,10)}function WS(e,t){return{usr:e.state,key:e.key,idx:t}}function $p(e,t,n=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Qa(t):t,state:n,key:t&&t.key||i||IP()}}function Cl({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Qa(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substring(i),e=e.substring(0,i)),e&&(t.pathname=e)}return t}function PP(e,t,n,i={}){let{window:a=document.defaultView,v5Compat:l=!1}=i,u=a.history,d="POP",f=null,h=g();h==null&&(h=0,u.replaceState({...u.state,idx:h},""));function g(){return(u.state||{idx:null}).idx}function y(){d="POP";let x=g(),A=x==null?null:x-h;h=x,f&&f({action:d,location:E.location,delta:A})}function v(x,A){d="PUSH";let N=$p(E.location,x,A);h=g()+1;let R=WS(N,h),M=E.createHref(N);try{u.pushState(R,"",M)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;a.location.assign(M)}l&&f&&f({action:d,location:E.location,delta:1})}function _(x,A){d="REPLACE";let N=$p(E.location,x,A);h=g();let R=WS(N,h),M=E.createHref(N);u.replaceState(R,"",M),l&&f&&f({action:d,location:E.location,delta:0})}function S(x){return BP(x)}let E={get action(){return d},get location(){return e(a,u)}
66,listen(x){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(XS,y),f=x,()=>{a.removeEventListener(XS,y),f=null}},createHref(x){return t(a,x)},createURL:S,encodeLocation(x){let A=S(x);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:v,replace:_,go(x){return u.go(x)}};return E}function BP(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),tt(n,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:Cl(e);return i=i.replace(/ $/,"%20"),!t&&i.startsWith("//")&&(i=n+i),new URL(i,n)}function cA(e,t,n="/"){return VP(e,t,n,!1)}function VP(e,t,n,i){let a=typeof t=="string"?Qa(t):t,l=Lr(a.pathname||"/",n);if(l==null)return null;let u=dA(e);zP(u);let d=null;for(let f=0;d==null&&f<u.length;++f){let h=QP(l);d=WP(u[f],h,i)}return d}function dA(e,t=[],n=[],i="",a=!1){let l=(u,d,f=a,h)=>{let g={relativePath:h===void 0?u.path||"":h,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(i)&&f)return;tt(g.relativePath.startsWith(i),`Absolute route path "${g.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(i.length)}let y=Dr([i,g.relativePath]),v=n.concat(g);u.children&&u.children.length>0&&(tt(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),dA(u.children,t,v,y,f)),!(u.path==null&&!u.index)&&t.push({path:y,score:YP(y,u.index),routesMeta:v})};return e.forEach((u,d)=>{if(u.path===""||!u.path?.includes("?"))l(u,d);else for(let f of fA(u.path))l(u,d,!0,f)}),t}function fA(e){let t=e.split("/");if(t.length===0)return[];let[n,...i]=t,a=n.endsWith("?"),l=n.replace(/\?$/,"");if(i.length===0)return a?[l,""]:[l];let u=fA(i.join("/")),d=[];return d.push(...u.map(f=>f===""?l:[l,f].join("/"))),a&&d.push(...u),d.map(f=>e.startsWith("/")&&f===""?"/":f)}function zP(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:XP(t.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}var $P=/^:[\w-]+$/,HP=3,qP=2,FP=1,GP=10,KP=-2,JS=e=>e==="*";function YP(e,t){let n=e.split("/"),i=n.length;return n.some(JS)&&(i+=KP),t&&(i+=qP),n.filter(a=>!JS(a)).reduce((a,l)=>a+($P.test(l)?HP:l===""?FP:GP),i)}function XP(e,t){return e.length===t.length&&e.slice(0,-1).every((i,a)=>i===t[a])?e[e.length-1]-t[t.length-1]:0}function WP(e,t,n=!1){let{routesMeta:i}=e,a={},l="/",u=[];for(let d=0;d<i.length;++d){let f=i[d],h=d===i.length-1,g=l==="/"?t:t.slice(l.length)||"/",y=ud({path:f.relativePath,caseSensitive:f.caseSensitive,end:h},g),v=f.route;if(!y&&h&&n&&!i[i.length-1].route.index&&(y=ud({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},g)),!y)return null;
66Object.assign(a,y.params),u.push({params:a,pathname:Dr([l,y.pathname]),pathnameBase:rB(Dr([l,y.pathnameBase])),route:v}),y.pathnameBase!=="/"&&(l=Dr([l,y.pathnameBase]))}return u}function ud(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,i]=JP(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let l=a[0],u=l.replace(/(.)\/+$/,"$1"),d=a.slice(1);return{params:i.reduce((h,{paramName:g,isOptional:y},v)=>{if(g==="*"){let S=d[v]||"";u=l.slice(0,l.length-S.length).replace(/(.)\/+$/,"$1")}const _=d[v];return y&&!_?h[g]=void 0:h[g]=(_||"").replace(/%2F/g,"/"),h},{}),pathname:l,pathnameBase:u,pattern:e}}function JP(e,t=!1,n=!0){Xn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let i=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,d,f)=>(i.push({paramName:d,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),i]}function QP(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Xn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Lr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&i!=="/"?null:e.slice(n)||"/"}var ZP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,eB=e=>ZP.test(e);function tB(e,t="/"){let{pathname:n,search:i="",hash:a=""}=typeof e=="string"?Qa(e):e,l;if(n)if(eB(n))l=n;else{if(n.includes("//")){let u=n;n=n.replace(/\/\/+/g,"/"),Xn(!1,`Pathnames cannot have embedded double slashes - normalizing ${u} -> ${n}`)}n.startsWith("/")?l=QS(n.substring(1),"/"):l=QS(n,t)}else l=t;return{pathname:l,search:iB(i),hash:sB(a)}}function QS(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Qm(e,t,n,i){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(i)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function nB(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function hA(e){let t=nB(e);return t.map((n,i)=>i===t.length-1?n.pathname:n.pathnameBase)}function mA(e,t,n,i=!1){let a;typeof e=="string"?a=Qa(e):(a={...e},tt(!a.pathname||!a.pathname.includes("?"),Qm("?","pathname","search",a)),tt(!a.pathname||!a.pathname.includes("#"),Qm("#","pathname","hash",a)),tt(!a.search||!a.search.includes("#"),Qm("#","search","hash",a)));let l=e===""||a.pathname==="",u=l?"/":a.pathname,d;if(u==null)d=n;else{let y=t.length-1;if(!i&&u.startsWith("..")){let v=u.split("/");for(;v[0]==="..";)v.shift(),y-=1;a.pathname=v.join("/")}d=y>=0?t[y]:"/"}let f=tB(a,d),h=u&&u!=="/"&&u.endsWith("/"),g=(l||u===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||g)&&(f.pathname+="/"),f}var Dr=e=>e.join("/").replace(/\/\/+/g,"/"),rB=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),iB=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,sB=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function aB(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var pA=["POST","PUT","PATCH","DELETE"];new Set(pA);var oB=["GET",...pA];new Set(oB);var Za=D.createContext(null);Za.displayName="DataRouter";var Hd=D.createContext(null);Hd.displayName="DataRouterState";D.createContext(!1);var gA=D.createContext({isTransitioning:!1});gA.displayName="ViewTransition";var lB=D.createContext(new Map);lB.displayName="Fetchers";var uB=D.createContext(null);uB.displayName="Await";var or=D.createContext(null);or.displayName="Navigation";var Yl=D.createContext(null);Yl.displayName="Location";var Ir=D.createContext({outlet:null,matches:[],isDataRoute:!1});Ir.displayName="Route";var Xg=D.createContext(null);Xg.displayName="RouteError";function cB(e,{relative:t}={}){tt(Xl(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:i}=D.useContext(or),{hash:a,pathname:l,search:u}=Wl(e,{relative:t}),d=l;return n!=="/"&&(d=l==="/"?n:Dr([n,l])),i.createHref({pathname:d,search:u,hash:a})}function Xl(){return D.useContext(Yl)!=null}function Pr(){return tt(Xl(),"useLocation() may be used only in the context of a <Router> component."),D.useContext(Yl).location}var yA="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function vA(e){D.useContext(or).static||D.useLayoutEffect(e)}function dB(){let{isDataRoute:e}=D.useContext(Ir);return e?TB():fB()}function fB(){tt(Xl(),"useNavigate() may be used only in the context of a <Router> component.");let e=D.useContext(Za),{basename:t,navigator:n}=D.useContext(or),{matches:i}=D.useContext(Ir),{pathname:a}=Pr(),l=JSON.stringify(hA(i)),u=D.useRef(!1);return vA(()=>{u.current=!0}),D.useCallback((f,h={})=>
66{if(Xn(u.current,yA),!u.current)return;if(typeof f=="number"){n.go(f);return}let g=mA(f,JSON.parse(l),a,h.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:Dr([t,g.pathname])),(h.replace?n.replace:n.push)(g,h.state,h)},[t,n,l,a,e])}D.createContext(null);function Wl(e,{relative:t}={}){let{matches:n}=D.useContext(Ir),{pathname:i}=Pr(),a=JSON.stringify(hA(n));return D.useMemo(()=>mA(e,JSON.parse(a),i,t==="path"),[e,a,i,t])}function hB(e,t){return bA(e,t)}function bA(e,t,n,i,a){tt(Xl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=D.useContext(or),{matches:u}=D.useContext(Ir),d=u[u.length-1],f=d?d.params:{},h=d?d.pathname:"/",g=d?d.pathnameBase:"/",y=d&&d.route;{let N=y&&y.path||"";_A(h,!y||N.endsWith("*")||N.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${N}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
67
68Please change the parent <Route path="${N}"> to <Route path="${N==="/"?"*":`${N}/*`}">.`)}let v=Pr(),_;if(t){let N=typeof t=="string"?Qa(t):t;tt(g==="/"||N.pathname?.startsWith(g),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${N.pathname}" was given in the \`location\` prop.`),_=N}else _=v;let S=_.pathname||"/",E=S;if(g!=="/"){let N=g.replace(/^\//,"").split("/");E="/"+S.replace(/^\//,"").split("/").slice(N.length).join("/")}let x=cA(e,{pathname:E});Xn(y||x!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),Xn(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${_.pathname}${_.search}${_.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let A=vB(x&&x.map(N=>Object.assign({},N,{params:Object.assign({},f,N.params),pathname:Dr([g,l.encodeLocation?l.encodeLocation(N.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?g:Dr([g,l.encodeLocation?l.encodeLocation(N.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathnameBase])})),u,n,i,a);return t&&A?D.createElement(Yl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",..._},navigationType:"POP"}},A):A}function mB(){let e=EB(),t=aB(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:i},l={padding:"2px 4px",backgroundColor:i},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=D.createElement(D.Fragment,null,D.createElement("p",null,"💿 Hey developer 👋"),D.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",D.createElement("code",{style:l},"ErrorBoundary")," or"," ",D.createElement("code",{style:l},"errorElement")," prop on your route.")),D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},t),n?D.createElement("pre",{style:a},n):null,u)}var pB=D.createElement(mB,null),gB=class extends D.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?D.createElement(Ir.Provider,{value:this.props.routeContext},D.createElement(Xg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function yB({routeContext:e,match:t,children:n}){let i=D.useContext(Za);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),D.createElement(Ir.Provider,{value:e},n)}function vB(e,t=[],n=null,i=null,a=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,u=n?.errors;if(u!=null){let g=l.findIndex(y=>y.route.id&&u?.[y.route.id]!==void 0);tt(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),l=l.slice(0,Math.min(l.length,g+1))}let d=!1,f=-1;if(n)for(let g=0;g<l.length;g++){let y=l[g];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(f=g),y.route.id){let{loaderData:v,errors:_}
68=n,S=y.route.loader&&!v.hasOwnProperty(y.route.id)&&(!_||_[y.route.id]===void 0);if(y.route.lazy||S){d=!0,f>=0?l=l.slice(0,f+1):l=[l[0]];break}}}let h=n&&i?(g,y)=>{i(g,{location:n.location,params:n.matches?.[0]?.params??{},errorInfo:y})}:void 0;return l.reduceRight((g,y,v)=>{let _,S=!1,E=null,x=null;n&&(_=u&&y.route.id?u[y.route.id]:void 0,E=y.route.errorElement||pB,d&&(f<0&&v===0?(_A("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,x=null):f===v&&(S=!0,x=y.route.hydrateFallbackElement||null)));let A=t.concat(l.slice(0,v+1)),N=()=>{let R;return _?R=E:S?R=x:y.route.Component?R=D.createElement(y.route.Component,null):y.route.element?R=y.route.element:R=g,D.createElement(yB,{match:y,routeContext:{outlet:g,matches:A,isDataRoute:n!=null},children:R})};return n&&(y.route.ErrorBoundary||y.route.errorElement||v===0)?D.createElement(gB,{location:n.location,revalidation:n.revalidation,component:E,error:_,children:N(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:h}):N()},null)}function Wg(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function bB(e){let t=D.useContext(Za);return tt(t,Wg(e)),t}function _B(e){let t=D.useContext(Hd);return tt(t,Wg(e)),t}function SB(e){let t=D.useContext(Ir);return tt(t,Wg(e)),t}function Jg(e){let t=SB(e),n=t.matches[t.matches.length-1];return tt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function wB(){return Jg("useRouteId")}function EB(){let e=D.useContext(Xg),t=_B("useRouteError"),n=Jg("useRouteError");return e!==void 0?e:t.errors?.[n]}function TB(){let{router:e}=bB("useNavigate"),t=Jg("useNavigate"),n=D.useRef(!1);return vA(()=>{n.current=!0}),D.useCallback(async(a,l={})=>{Xn(n.current,yA),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...l}))},[e,t])}var ZS={};function _A(e,t,n){!t&&!ZS[e]&&(ZS[e]=!0,Xn(!1,n))}D.memo(xB);function xB({routes:e,future:t,state:n,unstable_onError:i}){return bA(e,void 0,n,i,t)}function Zi(e){tt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function AB({basename:e="/",children:t=null,location:n,navigationType:i="POP",navigator:a,static:l=!1}){tt(!Xl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),d=D.useMemo(()=>({basename:u,navigator:a,static:l,future:{}}),[u,a,l]);typeof n=="string"&&(n=Qa(n));let{pathname:f="/",search:h="",hash:g="",state:y=null,key:v="default"}=n,_=D.useMemo(()=>{let S=Lr(f,u);return S==null?null:{location:{pathname:S,search:h,hash:g,state:y,key:v},navigationType:i}},[u,f,h,g,y,v,i]);return Xn(_!=null,`<Router basename="${u}"> is not able to match the URL "${f}${h}${g}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:D.createElement(or.Provider,{value:d},D.createElement(Yl.Provider,{children:t,value:_}))}function OB({children:e,location:t}){return hB(Hp(e),t)}function Hp(e,t=[]){let n=[];return D.Children.forEach(e,(i,a)=>{if(!D.isValidElement(i))return;let l=[...t,a];if(i.type===D.Fragment){n.push.apply(n,Hp(i.props.children,l));return}tt(i.type===Zi,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),tt(!i.props.index||!i.props.children,"An index route cannot have child routes.");let u={id:i.props.id||l.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(u.children=Hp(i.props.children,l)),n.push(u)}),n}var Jc="get",Qc="application/x-www-form-urlencoded";function qd(e){return e!=null&&typeof e.tagName=="string"}function CB(e){return qd(e)&&e.tagName.toLowerCase()==="button"}function RB(e){return qd(e)&&e.tagName.toLowerCase()==="form"}function kB(e){return qd(e)&&e.tagName.toLowerCase()==="input"}function NB(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function jB(e,t){return e.button===0&&(!t||t==="_self")&&!NB(e)}var Rc=null;function DB(){if(Rc===null)try{new FormData(document.createElement("form"),0),Rc=!1}catch{Rc=!0}return Rc}var MB=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Zm(e){return e!=null&&!MB.has(e)?(Xn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Qc}"`),null):e}function LB(e,t){let n,i,a,l,u;if(RB(e)){let d=e.getAttribute("action");i=d?Lr(d,t):null,n=e.getAttribute("method")||Jc,a=Zm(e.getAttribute("enctype"))||Qc,l=new FormData(e)}else if(CB(e)||kB(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||d.getAttribute("action");if(i=f?Lr(f,t):null,n=e.getAttribute("formmethod")||d.getAttribute("method")||Jc,a=Zm(e.getAttribute("formenctype"))||Zm(d.getAttribute("enctype"))||Qc,l=new FormData(d,e),!DB()){let{name:h,type:g,value:y}=e;if(g==="image"){let v=h?`${h}.`:"";l.append(`${v}x`,"0"),l.append(`${v}y`,"0")}
68else h&&l.append(h,y)}}else{if(qd(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Jc,i=null,a=Qc,u=e}return l&&a==="text/plain"&&(u=l,l=void 0),{action:i,method:n.toLowerCase(),encType:a,formData:l,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Qg(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function UB(e,t,n){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return i.pathname==="/"?i.pathname=`_root.${n}`:t&&Lr(i.pathname,t)==="/"?i.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${n}`,i}async function IB(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function PB(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function BB(e,t,n){let i=await Promise.all(e.map(async a=>{let l=t.routes[a.route.id];if(l){let u=await IB(l,n);return u.links?u.links():[]}return[]}));return HB(i.flat(1).filter(PB).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function ew(e,t,n,i,a,l){let u=(f,h)=>n[h]?f.route.id!==n[h].route.id:!0,d=(f,h)=>n[h].pathname!==f.pathname||n[h].route.path?.endsWith("*")&&n[h].params["*"]!==f.params["*"];return l==="assets"?t.filter((f,h)=>u(f,h)||d(f,h)):l==="data"?t.filter((f,h)=>{let g=i.routes[f.route.id];if(!g||!g.hasLoader)return!1;if(u(f,h)||d(f,h))return!0;if(f.route.shouldRevalidate){let y=f.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function VB(e,t,{includeHydrateFallback:n}={}){return zB(e.map(i=>{let a=t.routes[i.route.id];if(!a)return[];let l=[a.module];return a.clientActionModule&&(l=l.concat(a.clientActionModule)),a.clientLoaderModule&&(l=l.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(l=l.concat(a.hydrateFallbackModule)),a.imports&&(l=l.concat(a.imports)),l}).flat(1))}function zB(e){return[...new Set(e)]}function $B(e){let t={},n=Object.keys(e).sort();for(let i of n)t[i]=e[i];return t}function HB(e,t){let n=new Set;return new Set(t),e.reduce((i,a)=>{let l=JSON.stringify($B(a));return n.has(l)||(n.add(l),i.push({key:l,link:a})),i},[])}function SA(){let e=D.useContext(Za);return Qg(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function qB(){let e=D.useContext(Hd);return Qg(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Zg=D.createContext(void 0);Zg.displayName="FrameworkContext";function wA(){let e=D.useContext(Zg);return Qg(e,"You must render this element inside a <HydratedRouter> element"),e}function FB(e,t){let n=D.useContext(Zg),[i,a]=D.useState(!1),[l,u]=D.useState(!1),{onFocus:d,onBlur:f,onMouseEnter:h,onMouseLeave:g,onTouchStart:y}=t,v=D.useRef(null);D.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let E=A=>{A.forEach(N=>{u(N.isIntersecting)})},x=new IntersectionObserver(E,{threshold:.5});return v.current&&x.observe(v.current),()=>{x.disconnect()}}},[e]),D.useEffect(()=>{if(i){let E=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(E)}}},[i]);let _=()=>{a(!0)},S=()=>{a(!1),u(!1)};return n?e!=="intent"?[l,v,{}]:[l,v,{onFocus:ll(d,_),onBlur:ll(f,S),onMouseEnter:ll(h,_),onMouseLeave:ll(g,S),onTouchStart:ll(y,_)}]:[!1,v,{}]}function ll(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function GB({page:e,...t}){let{router:n}=SA(),i=D.useMemo(()=>cA(n.routes,e,n.basename),[n.routes,e,n.basename]);return i?D.createElement(YB,{page:e,matches:i,...t}):null}function KB(e){let{manifest:t,routeModules:n}=wA(),[i,a]=D.useState([]);return D.useEffect(()=>{let l=!1;
68return BB(e,t,n).then(u=>{l||a(u)}),()=>{l=!0}},[e,t,n]),i}function YB({page:e,matches:t,...n}){let i=Pr(),{manifest:a,routeModules:l}=wA(),{basename:u}=SA(),{loaderData:d,matches:f}=qB(),h=D.useMemo(()=>ew(e,t,f,a,i,"data"),[e,t,f,a,i]),g=D.useMemo(()=>ew(e,t,f,a,i,"assets"),[e,t,f,a,i]),y=D.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let S=new Set,E=!1;if(t.forEach(A=>{let N=a.routes[A.route.id];!N||!N.hasLoader||(!h.some(R=>R.route.id===A.route.id)&&A.route.id in d&&l[A.route.id]?.shouldRevalidate||N.hasClientLoader?E=!0:S.add(A.route.id))}),S.size===0)return[];let x=UB(e,u,"data");return E&&S.size>0&&x.searchParams.set("_routes",t.filter(A=>S.has(A.route.id)).map(A=>A.route.id).join(",")),[x.pathname+x.search]},[u,d,i,a,h,t,e,l]),v=D.useMemo(()=>VB(g,a),[g,a]),_=KB(g);return D.createElement(D.Fragment,null,y.map(S=>D.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...n})),v.map(S=>D.createElement("link",{key:S,rel:"modulepreload",href:S,...n})),_.map(({key:S,link:E})=>D.createElement("link",{key:S,nonce:n.nonce,...E})))}function XB(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var EA=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{EA&&(window.__reactRouterVersion="7.9.6")}catch{}function WB({basename:e,children:t,window:n}){let i=D.useRef();i.current==null&&(i.current=UP({window:n,v5Compat:!0}));let a=i.current,[l,u]=D.useState({action:a.action,location:a.location}),d=D.useCallback(f=>{D.startTransition(()=>u(f))},[u]);return D.useLayoutEffect(()=>a.listen(d),[a,d]),D.createElement(AB,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:a})}var TA=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kr=D.forwardRef(function({onClick:t,discover:n="render",prefetch:i="none",relative:a,reloadDocument:l,replace:u,state:d,target:f,to:h,preventScrollReset:g,viewTransition:y,...v},_){let{basename:S}=D.useContext(or),E=typeof h=="string"&&TA.test(h),x,A=!1;if(typeof h=="string"&&E&&(x=h,EA))try{let se=new URL(window.location.href),te=h.startsWith("//")?new URL(se.protocol+h):new URL(h),he=Lr(te.pathname,S);te.origin===se.origin&&he!=null?h=he+te.search+te.hash:A=!0}catch{Xn(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let N=cB(h,{relative:a}),[R,M,$]=FB(i,v),B=ZB(h,{replace:u,state:d,target:f,preventScrollReset:g,relative:a,viewTransition:y});function G(se){t&&t(se),se.defaultPrevented||B(se)}let X=D.createElement("a",{...v,...$,href:x||N,onClick:A||l?t:G,ref:XB(_,M),target:f,"data-discover":!E&&n==="render"?"true":void 0});return R&&!E?D.createElement(D.Fragment,null,X,D.createElement(GB,{page:N})):X});kr.displayName="Link";var qp=D.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:i="",end:a=!1,style:l,to:u,viewTransition:d,children:f,...h},g){let y=Wl(u,{relative:h.relative}),v=Pr(),_=D.useContext(Hd),{navigator:S,basename:E}=D.useContext(or),x=_!=null&&i3(y)&&d===!0,A=S.encodeLocation?S.encodeLocation(y).pathname:y.pathname,N=v.pathname,R=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;n||(N=N.toLowerCase(),R=R?R.toLowerCase():null,A=A.toLowerCase()),R&&E&&(R=Lr(R,E)||R);const M=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let $=N===A||!a&&N.startsWith(A)&&N.charAt(M)==="/",B=R!=null&&(R===A||!a&&R.startsWith(A)&&R.charAt(A.length)==="/"),G={isActive:$,isPending:B,isTransitioning:x},X=$?t:void 0,se;typeof i=="function"?se=i(G):se=[i,$?"active":null,B?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let te=typeof l=="function"?l(G):l;return D.createElement(kr,{...h,"aria-current":X,className:se,ref:g,style:te,to:u,viewTransition:d},typeof f=="function"?f(G):f)});qp.displayName="NavLink";var JB=D.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:i,replace:a,state:l,method:u=Jc,action:d,onSubmit:f,relative:h,preventScrollReset:g,viewTransition:y,...v},_)=>{let S=n3(),E=r3(d,{relative:h}),x=u.toLowerCase()==="get"?"get":"post",A=typeof d=="string"&&TA.test(d),N=R=>
68{if(f&&f(R),R.defaultPrevented)return;R.preventDefault();let M=R.nativeEvent.submitter,$=M?.getAttribute("formmethod")||u;S(M||R.currentTarget,{fetcherKey:t,method:$,navigate:n,replace:a,state:l,relative:h,preventScrollReset:g,viewTransition:y})};return D.createElement("form",{ref:_,method:x,action:E,onSubmit:i?f:N,...v,"data-discover":!A&&e==="render"?"true":void 0})});JB.displayName="Form";function QB(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function xA(e){let t=D.useContext(Za);return tt(t,QB(e)),t}function ZB(e,{target:t,replace:n,state:i,preventScrollReset:a,relative:l,viewTransition:u}={}){let d=dB(),f=Pr(),h=Wl(e,{relative:l});return D.useCallback(g=>{if(jB(g,t)){g.preventDefault();let y=n!==void 0?n:Cl(f)===Cl(h);d(e,{replace:y,state:i,preventScrollReset:a,relative:l,viewTransition:u})}},[f,d,h,n,i,t,e,a,l,u])}var e3=0,t3=()=>`__${String(++e3)}__`;function n3(){let{router:e}=xA("useSubmit"),{basename:t}=D.useContext(or),n=wB();return D.useCallback(async(i,a={})=>{let{action:l,method:u,encType:d,formData:f,body:h}=LB(i,t);if(a.navigate===!1){let g=a.fetcherKey||t3();await e.fetch(g,n,a.action||l,{preventScrollReset:a.preventScrollReset,formData:f,body:h,formMethod:a.method||u,formEncType:a.encType||d,flushSync:a.flushSync})}else await e.navigate(a.action||l,{preventScrollReset:a.preventScrollReset,formData:f,body:h,formMethod:a.method||u,formEncType:a.encType||d,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function r3(e,{relative:t}={}){let{basename:n}=D.useContext(or),i=D.useContext(Ir);tt(i,"useFormAction must be used inside a RouteContext");let[a]=i.matches.slice(-1),l={...Wl(e||".",{relative:t})},u=Pr();if(e==null){l.search=u.search;let d=new URLSearchParams(l.search),f=d.getAll("index");if(f.some(g=>g==="")){d.delete("index"),f.filter(y=>y).forEach(y=>d.append("index",y));let g=d.toString();l.search=g?`?${g}`:""}}return(!e||e===".")&&a.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:Dr([n,l.pathname])),Cl(l)}function i3(e,{relative:t}={}){let n=D.useContext(gA);tt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=xA("useViewTransitionState"),a=Wl(e,{relative:t});if(!n.isTransitioning)return!1;let l=Lr(n.currentLocation.pathname,i)||n.currentLocation.pathname,u=Lr(n.nextLocation.pathname,i)||n.nextLocation.pathname;return ud(a.pathname,u)!=null||ud(a.pathname,l)!=null}function s3(){const{pathname:e,hash:t}=Pr();return D.useEffect(()=>{if(t){const n=t.replace("#",""),i=document.getElementById(n);i&&setTimeout(()=>i.scrollIntoView({behavior:"smooth"}),80)}else window.scrollTo({top:0,left:0,behavior:"instant"})},[e,t]),null}/**
69 * @license lucide-react v0.554.0 - ISC
70 *
71 * This source code is licensed under the ISC license.
72 * See the LICENSE file in the root directory of this source tree.
73 */const a3=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o3=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,i)=>i?i.toUpperCase():n.toLowerCase()),tw=e=>{const t=o3(e);return t.charAt(0).toUpperCase()+t.slice(1)},AA=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim(),l3=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
74 * @license lucide-react v0.554.0 - ISC
75 *
76 * This source code is licensed under the ISC license.
77 * See the LICENSE file in the root directory of this source tree.
78 */var u3={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
79 * @license lucide-react v0.554.0 - ISC
80 *
81 * This source code is licensed under the ISC license.
82 * See the LICENSE file in the root directory of this source tree.
83 */const c3=D.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:a="",children:l,iconNode:u,...d},f)=>D.createElement("svg",{ref:f,...u3,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:AA("lucide",a),...!l&&!l3(
vendor: 4,992 bytes, lines 83-148
83d)&&{"aria-hidden":"true"},...d},[...u.map(([h,g])=>D.createElement(h,g)),...Array.isArray(l)?l:[l]]));/**
84 * @license lucide-react v0.554.0 - ISC
85 *
86 * This source code is licensed under the ISC license.
87 * See the LICENSE file in the root directory of this source tree.
88 */const Gt=(e,t)=>{const n=D.forwardRef(({className:i,...a},l)=>D.createElement(c3,{ref:l,iconNode:t,className:AA(`lucide-${a3(tw(e))}`,`lucide-${e}`,i),...a}));return n.displayName=tw(e),n};/**
89 * @license lucide-react v0.554.0 - ISC
90 *
91 * This source code is licensed under the ISC license.
92 * See the LICENSE file in the root directory of this source tree.
93 */const d3=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],nw=Gt("arrow-right",d3);/**
94 * @license lucide-react v0.554.0 - ISC
95 *
96 * This source code is licensed under the ISC license.
97 * See the LICENSE file in the root directory of this source tree.
98 */const f3=[["path",{d:"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5",key:"1u7htd"}],["path",{d:"M15 12h.01",key:"1k8ypt"}],["path",{d:"M19.38 6.813A9 9 0 0 1 20.8 10.2a2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1",key:"11xh7x"}],["path",{d:"M9 12h.01",key:"157uk2"}]],h3=Gt("baby",f3);/**
99 * @license lucide-react v0.554.0 - ISC
100 *
101 * This source code is licensed under the ISC license.
102 * See the LICENSE file in the root directory of this source tree.
103 */const m3=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],p3=Gt("briefcase",m3);/**
104 * @license lucide-react v0.554.0 - ISC
105 *
106 * This source code is licensed under the ISC license.
107 * See the LICENSE file in the root directory of this source tree.
108 */const g3=[["path",{d:"M11 20H2",key:"nlcfvz"}],["path",{d:"M11 4.562v16.157a1 1 0 0 0 1.242.97L19 20V5.562a2 2 0 0 0-1.515-1.94l-4-1A2 2 0 0 0 11 4.561z",key:"au4z13"}],["path",{d:"M11 4H8a2 2 0 0 0-2 2v14",key:"74r1mk"}],["path",{d:"M14 12h.01",key:"1jfl7z"}],["path",{d:"M22 20h-3",key:"vhrsz"}]],y3=Gt("door-open",g3);/**
109 * @license lucide-react v0.554.0 - ISC
110 *
111 * This source code is licensed under the ISC license.
112 * See the LICENSE file in the root directory of this source tree.
113 */const v3=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],b3=Gt("facebook",v3);/**
114 * @license lucide-react v0.554.0 - ISC
115 *
116 * This source code is licensed under the ISC license.
117 * See the LICENSE file in the root directory of this source tree.
118 */const _3=[["path",{d:"M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2 0 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762",key:"17lmqv"}]],S3=Gt("heart-handshake",_3);/**
119 * @license lucide-react v0.554.0 - ISC
120 *
121 * This source code is licensed under the ISC license.
122 * See the LICENSE file in the root directory of this source tree.
123 */const w3=[["path",{d:"M6 16c5 0 7-8 12-8a4 4 0 0 1 0 8c-5 0-7-8-12-8a4 4 0 1 0 0 8",key:"18ogeb"}]],E3=Gt("infinity",w3);/**
124 * @license lucide-react v0.554.0 - ISC
125 *
126 * This source code is licensed under the ISC license.
127 * See the LICENSE file in the root directory of this source tree.
128 */const T3=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],x3=Gt("instagram",T3);/**
129 * @license lucide-react v0.554.0 - ISC
130 *
131 * This source code is licensed under the ISC license.
132 * See the LICENSE file in the root directory of this source tree.
133 */const A3=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]],O3=Gt("linkedin",A3);/**
134 * @license lucide-react v0.554.0 - ISC
135 *
136 * This source code is licensed under the ISC license.
137 * See the LICENSE file in the root directory of this source tree.
138 */const C3=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],OA=Gt("mail",C3);/**
139 * @license lucide-react v0.554.0 - ISC
140 *
141 * This source code is licensed under the ISC license.
142 * See the LICENSE file in the root directory of this source tree.
143 */const R3=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],k3=Gt("menu",R3);/**
144 * @license lucide-react v0.554.0 - ISC
145 *
146 * This source code is licensed under the ISC license.
147 * See the LICENSE file in the root directory of this source tree.
148 */const N3=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 
1480 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],CA=Gt("phone",N3);/**
149 * @license lucide-react v0.554.0 - ISC
150 *
151 * This source code is licensed under the ISC license.
152 * See the LICENSE file in the root directory of this source tree.
153 */const j3=[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],D3=Gt("user-check",j3);/**
154 * @license lucide-react v0.554.0 - ISC
155 *
156 * This source code is licensed under the ISC license.
157 * See the LICENSE file in the root directory of this source tree.
158 */const M3=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],L3=Gt("users",M3);/**
159 * @license lucide-react v0.554.0 - ISC
160 *
161 * This source code is licensed under the ISC license.
162 * See the LICENSE file in the root directory of this source tree.
163 */const U3=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],I3=Gt("x",U3),P3={"brand.short":"OTS","brand.full":"Opportunity Through Sport","nav.mission":"Mission","nav.programs":"Programs","nav.impact":"Impact","nav.involved":"Get Involved","nav.request":"Request Assistance","nav.donate":"Donate","nav.contact":"Contact","home.meta.title":"Home","home.meta.description":"A 501(c)(3) nonprofit opening the door to participation for people at all stages of life — removing the cost, access, and confidence barriers that keep people on the sidelines.","home.hero.badge":"501(c)(3) NONPROFIT · SPORT FOR ALL STAGES OF LIFE","home.hero.title.part1":"Sport for","home.hero.title.highlight":"All Stages","home.hero.title.part2":"of Life.","home.hero.body":"Opportunity Through Sport opens the door to participation for people at all stages of life — removing the cost, access, and confidence barriers that keep people on the sidelines.","home.hero.cta.primary":"Donate Today","home.hero.cta.secondary":"Get Involved","home.hero.footnote":"","home.hero.badge.athletes":"4,800+ Participants","home.hero.badge.programs":"14 Active Programs","home.hero.badge.verified":"501(c)(3) Verified","home.pillars.kicker":"WHAT WE BELIEVE","home.pillars.title":"Sport belongs to everyone — at every age, on every budget.","home.pillars.subtitle":"Three commitments that shape every program we run and every dollar we raise.","home.pillars.access.title":"Open Access","home.pillars.access.body":"Need-based financial support, free equipment, and partnerships with local clubs remove the financial wall around organized sport.","home.pillars.lifetime.title":"A Lifetime in Motion","home.pillars.lifetime.body":"From assisting at-risk y
163outh to senior participation assistance, our programming follows people across decades — not just one season.","home.pillars.belonging.title":"Belonging First","home.pillars.belonging.body":"Frontline nonprofit workers pour themselves into their communities every day, often leaving little room for anything else. We help these individuals overcome financial barriers so they can attend live sporting events, recharge, and keep doing the work that matters.","home.programs.kicker":"WHAT WE DO","home.programs.title":"Programs that meet people where they are.","home.programs.subtitle":"Three pathways into sport, designed around the realities of real life.","home.programs.cta":"Explore All Programs","home.programs.opportunity.title":"Opportunity For All","home.programs.opportunity.body":"Helping youth and elders attend live sporting events by removing financial, transportation, and mobility barriers — because the stands belong to everyone.","home.programs.play.title":"Participate Through Play","home.programs.play.body":"Helping kids overcome cost barriers to sport through equipment support, financial assistance, and access to the gear and resources they need to play.","home.programs.warriors.title":"Community Champions","home.programs.warriors.body":"Helping frontline community workers at small local charities attend live sporting events. These individuals make enormous sacrifices for little pay — we give them a night at the game to breathe, recharge, and remember why the work matters.","home.impact.kicker":"BY THE NUMBERS","home.impact.title":"Real budgets. Real seasons. Real people.","home.impact.subtitle":"Every dollar is audited, public, and tied to a participant served.","home.impact.stat1.value":"4,800+","home.impact.stat1.label":"Participants since 2018","home.impact.stat2.value":"92¢","home.impact.stat2.label":"of every dollar to programs","home.impact.stat3.value":"14","home.impact.stat3.label":"Active programs","home.impact.stat4.value":"230","home.impact.stat4.label":"Certified volunteer coaches","home.story.kicker":"A STORY FROM THE FIELD","home.story.quote":"I hadn't run since I was nineteen. The Sport for Life league didn't ask me to be fast — it asked me to show up. Two years later I'm coaching the Saturday group.","home.story.author":"Lenore J., Sport for Life 55+ participant turned volunteer coach","home.cta.title":"A season is a small thing. Until it isn't.","home.cta.body":"","home.cta.primary":"Donate Now","home.cta.secondary":"Volunteer With Us","mission.meta.title":"Mission","mission.meta.description":"Our mission is to help people at all stages of life participate in sport — through access, programming, and belonging.","mission.hero.kicker":"OUR MISSION","mission.hero.title":"Impacting lives through the power of sport.","mission.hero.body":"Opportunity Through Sport'
163s mission is to impact lives by enabling individuals, families and communities to grow through the power of sports.","mission.vision.kicker":"OUR VISION","mission.vision.title":"A world where sport grows lives — not just athletes.","mission.vision.body":"We envision communities where individuals and families at every stage of life have access to the transformative power of sport — where a child's first game, a parent's first team, and a senior's first league all become moments that strengthen people, strengthen families, and strengthen the places they call home.","mission.values.title":"What we hold ourselves to.","mission.values.subtitle":"Five operating principles we audit ourselves against every year.","mission.values.v1.title":"Participation over performance.","mission.values.v1.body":"We are not in the talent-identification business. Every program is designed to keep more people in sport — not to find the ones who are best at it.","mission.values.v2.title":"Level the playing field.","mission.values.v2.body":"Everyone deserves an equal shot at participating in sport. We actively identify and remove the financial, logistical, and structural barriers that keep people on the sidelines — so opportunity is not determined by circumstance.","mission.values.v3.title":"100% volunteer-run.","mission.values.v3.body":"OTS has no paid staff. Every dollar donated goes directly to programming — not salaries. Our all-volunteer team is proof that community trust is earned through action, not overhead.","mission.values.v4.title":"Recharge the champions.","mission.values.v4.body":"The people staffing small local charities pour themselves into their communities every day, often for little pay. Community Champions removes the financial barrier so these individuals can attend a live sporting event, step away from the weight of the work, and return to it mentally restored and ready to give more.","mission.values.v5.title":"Lifetime, not season.","mission.values.v5.body":"We measure success in years a participant stays in sport — not in trophies, championships, or single-year enrollment spikes.","mission.history.title":"How we got here.","mission.history.y1.year":"2018","mission.history.y1.body":"Founded as a single after-school basketball clinic in a borrowed gym — twenty-two kids, four volunteers, one donated bag of basketballs.","mission.history.y2.year":"2020","mission.history.y2.body":"Pandemic-era pivot to outdoor walking soccer and aquatic conditioning for older adults locked out of group activity.","mission.history.y3.year":"2022","mission.history.y3.body":"Granted 501(c)(3) status. Adaptive sport division opens in partnership with two regional adaptive-sport coaches.","mission.history.y4.year":"2024","mission.history.y4.body":"Coach the Next Coach launches — 47 community members certified in year one.","mission.history.y5.year":"2026","mission.history.y5.body":"4,800+ participants across 14 programs and 6 metro regions. Audited Charity Navigator score: four stars.","programs.meta.title":"Programs","programs.meta.description":"Three programs built to open sport to everyone — children, families, working adults, veterans, and adaptive athletes.","programs.hero.kicker":"OUR PROGRAMS","programs.hero.title":"Three ways in. One door for everyone.","programs.hero.body":"Three programs built around one belief: that cost, age, and circumstance should never be the reason someone misses out on sport.","programs.list.opportunity.title":"Opportunity For All","programs.list.opportunity.ages":"All ages · need-based","programs.list.opportunity.body":"Opportunity For All helps people at all stages of life attend live sporting events — removing the financial, transportation, and mobility barriers that too often keep them on the outside looking in. For youth, we partner with families facing financial hardship to provide tickets, transportation, and everything needed for a first game-day memory. For older adults and seniors, we go further — arranging accessible seating, door-to-door coordination, and support staff so that age and mobility are never the reason someone misses out.","programs.list.opportunity.cta":"Apply for Support","programs.list.opportunity.cta.donate":"Donate to supp
163ort","programs.list.play.title":"Participate Through Play","programs.list.play.ages":"Youth · need-based","programs.list.play.body":"Participate Through Play helps kids get into the game by removing the cost barriers that too often keep them on the sidelines. Through equipment donations, financial assistance, and direct support for families, we make sure that no child sits out because of what they can't afford — from cleats and jerseys to registration fees and league costs.","programs.list.play.cta":"Help a kid in need","programs.list.play.cta.assist":"Request assistance for someone","programs.list.warriors.title":"Community Champions","programs.list.warriors.ages":"Frontline community workers","programs.list.warriors.body":"The people staffing small local charities pour themselves into their communities every day — often for wages that leave little room for anything else. Community Champions removes the financial barrier so these unsung heroes can attend a live sporting event, de-stress, and come back to the work recharged. Because the people who give the most deserve a night off too.","programs.list.warriors.cta":"Join the Program","programs.list.warriors.cta.donate":"Donate to support","impact.meta.title":"Impact","impact.meta.description":"Audited financials, participant outcomes, and the public record of how Opportunity Through Sport spends every donated dollar.","impact.hero.kicker":"THE PUBLIC LEDGER","impact.hero.title":"Every dollar. Every season. Every participant.","impact.hero.body":"We publish our audited financials, program outcomes, and board records so that no donor — small or large — wonders where their gift went.","impact.numbers.title":"By the numbers (FY 2025).","impact.numbers.s1.value":"$1.42M","impact.numbers.s1.label":"Total revenue, audited","impact.numbers.s2.value":"92.4%","impact.numbers.s2.label":"Spent on programs","impact.numbers.s3.value":"4,812","impact.numbers.s3.label":"Participants served","impact.numbers.s4.value":"230","impact.numbers.s4.label":"Certified community coaches","impact.numbers.s5.value":"94%","impact.numbers.s5.label":"Participants returning year over year","impact.numbers.s6.value":"$84","impact.numbers.s6.label":"Average cost per participant-season","impact.allocation.title":"Where each donated dollar goes.","impact.allocation.a1.label":"Direct program delivery","impact.allocation.a1.value":"67¢","impact.allocation.a2.label":"Coach training & pay","impact.allocation.a2.value":"18¢","impact.allocation.a3.label":"Equipment & facilities","impact.allocation.a3.value":"7¢","impact.allocation.a4.label":"Operations & audit","impact.allocation.a4.value":"6¢","impact.allocation.a5.label":"Fundraising","impact.allocation.a5.value":"2¢","impact.stories.title":"What changed for the people inside the numbers.","impact.stories.s1.quote":"My son hadn't smiled since his dad left. The Tuesday clinic changed that more than the therapist ever did.","impact.stories.s1.author":"Marisol R., parent, Youth Foundations","impact.stories.s2.quote":"I'm sixty-eight and I have a team. I haven't been able to say that since the seventies.","impact.stories.s2.author":"Howard D., Sport for Life 55+","impact.stories.s3.quote":"Adaptive sport gave me a sport I get to be good at, not a sport I'm tolerated in. That distinction is everything.","impact.stories.s3.author":"Riya P., wheelchair basketball, age 24","impact.audit.title":"Public records.","impact.audit.body":"Our annual report, Form 990, audited financial statements, and board meeting minutes are available for download by anyone — donor or not.","impact.audit.cta":"Email Our Finance Team","involved.meta.title":"Get Involved","involved.meta.description":"Volunteer, coach, partner, or refer a participant — there is a way in for every schedule and every skill set.","involved.hero.kicker":"GET INVOLVED","involved.hero.title":"A few hours a month changes a season for someone else.","involved.hero.body":"We are always recruiting volunteers, certified coaches, community partners, and people willing to make introductions. Tell us how you want to help and we will follow up within three business days.","involved.ways.title":"Four ways in.","involved.ways.w1.title":"Volunteer at a session","involved.ways.w1.body":"Help run a Saturday clinic, transport gear, set up the gym, or sit on the sideline of the senior pickleball league. No prior experience needed.","involved.ways.w2.title":"Coach a program","involved.ways.w2.body":"If you already coach — youth, adult, or adaptive — we will pair you with a program that needs you. If you don't yet, our Coach the Next Coach program will train and certify you.","involved.ways.w3.title":"Partner with us","involved.ways.w3.body":"Community organizations, faith communities, schools, clinics, and clubs — we work with anyone who has a gym, a field, or a roster of people who w
163ould benefit from sport.","involved.ways.w4.title":"Refer a participant","involved.ways.w4.body":"Social workers, teachers, doctors, parents, friends — if you know someone who would benefit from one of our programs, refer them. We follow up within forty-eight hours.","involved.form.title":"Tell us how you'd like to help.","involved.form.subtitle":"We read every message. Replies usually come within three business days.","involved.form.name":"Full name","involved.form.email":"Email","involved.form.phone":"Phone (optional)","involved.form.interest":"I'm interested in","involved.form.interest.volunteer":"Volunteering at a session","involved.form.interest.coach":"Coaching a program","involved.form.interest.partner":"Partnering with my organization","involved.form.interest.refer":"Referring a participant","involved.form.interest.other":"Something else","involved.form.message":"Anything you'd like us to know","involved.form.submit":"Send Message","involved.form.success":"Thank you — we received your message and will follow up within three business days.","involved.form.error":"Something went wrong. Please try again or email us directly.","donate.meta.title":"Donate","donate.meta.description":"Donate to Opportunity Through Sport — every dollar is audited, every gift is tied to a participant served.","donate.hero.kicker":"MAKE A GIFT","donate.hero.title":"A season costs $84. A lifetime costs less than you think.","donate.hero.body":"Your gift covers gear, transportation, coaching, and a team for one participant for one season. Recurring gifts let us plan a whole year of programming with confidence.","donate.tiers.title":"Choose an amount.","donate.tiers.t1.amount":"$25","donate.tiers.t1.label":"One pair of cleats and a team jersey for one child.","donate.tiers.t2.amount":"$84","donate.tiers.t2.label":"A full season for one participant — gear, transport, coaching.","donate.tiers.t3.amount":"$250","donate.tiers.t3.label":"Three seasons, or one teen scholarship to a competitive league.","donate.tiers.t4.amount":"$1,000","donate.tiers.t4.label":"One adaptive sport program for a quarter — coach + equipment.","donate.tiers.cta":"Donate This Amount","donate.ways.title":"Other ways to give.","donate.ways.w1.title":"Monthly Giving Circle","donate.ways.w1.body":"Recurring donations of any amount fund a year of programming and lower our fundraising costs. Members receive a quarterly impact report.","donate.ways.w2.title":"Employer Matching","donate.ways.w2.body":"Many employers match charitable gifts dollar-for-dollar. We will help you submit the paperwork — it takes about ten minutes.","donate.ways.w3.title":"Stock & DAF Gifts","donate.ways.w3.body":"Gifts of appreciated stock or from a Donor Advised Fund are tax-efficient and often double the size of the gift the participant receives.","donate.ways.w4.title":"Planned Giving","donate.ways.w4.body":"Leave a legacy of participation. A bequest of any size funds programs for years after the gift is made.","donate.ways.cta":"Speak With Development","donate.note.title":"501(c)(3) confirmation.","donate.note.body":"Opportunity Through Sport is a registered 501(c)(3) nonprofit. All gifts are tax-deductible to the extent allowed by law. EIN available on request.","assist.meta.title":"Request Assistance","assist.meta.description":"Know someone who needs support to participate in sport? Fill out this form and the OTS team will reach out within 48 hours.","assist.hero.kicker":"REQUEST ASSISTANCE","assist.hero.title":"Know someone who needs a way in?","assist.hero.body":"Whether you're reaching out for yourself or on behalf of someone else — a child, a neighbor, a client — fill out this form and our team will follow up within 48 hours to find the right program.","assist.form.title":"Tell us about the person you'd like us to help.","assist.form.subtitle":"All fields marked optional are truly optional. The more you share, the faster we can connect them to the right program.","assist.form.requester.name":"Your full name","assist.form.requester.email":"Your email","assist.form.requester.phone":"Your phone (optional)","assist.form.relationship":"Your relationship to the person in need","assist.form.relationship.self":"This is for me","assist.form.relationship.parent":"Parent or guardian","assist.form.relationship.social":"Social worker or case worker","assist.form.relationship.teacher":"Teacher or school staff","assist.form.relationship.friend":"Friend or family member","assist.form.relationship.other":"Other","assist.form.participant.name":"Person in need — name (optional)","assist.form.participant.age":"Their approximate age or age group","assist.form.participant.age.child":"Child (under 12)","assist.form.participant.age.teen":"Teen (12–17)","assist.form.participant.age.adult":"Adult (18–54)","assist.form.participant.age.senior":"Older adult (55+)","assist.form.participant.age.unsure":"Not sure","assist.form.barriers":"What barriers are they facing? (optional)","assist.form.sport":"Sport or activity interest (optional)","assist.form.message":"Anything else we should know","assist.form.submit":"Submit Request","assist.form.success":"Thank y
163ou — we received your request and will follow up within 48 hours.","assist.form.error":"Something went wrong. Please try again or email us directly.","assist.ways.title":"Who we help.","assist.ways.w1.title":"Youth in need","assist.ways.w1.body":"Children whose families can't cover the cost of cleats, registration fees, or equipment — we remove those barriers so they can play.","assist.ways.w2.title":"Older adults","assist.ways.w2.body":"Adults and seniors who want to attend a live game or join a walking league — we handle tickets, transport, and accessible coordination.","assist.ways.w3.title":"Frontline workers","assist.ways.w3.body":"People working at small local charities who need a night to decompress — we get them to a game, on us.","assist.ways.w4.title":"Anyone on the sidelines","assist.ways.w4.body":"If the reason someone isn't playing is financial, logistical, or structural — reach out. We'll find a way.","contact.meta.title":"Contact","contact.meta.description":"Get in touch with Opportunity Through Sport — program inquiries, donor questions, press, and partnerships.","contact.hero.kicker":"CONTACT","contact.hero.title":"We answer every message.","contact.hero.body":"Program enrollment, donor questions, press inquiries, or partnership ideas — there is a real person on the other end of every form.","contact.info.email.label":"Email","contact.info.email.value":"[email protected]","contact.info.phone.label":"Phone","contact.info.phone.value":"812-276-7504","contact.info.hours.label":"Office hours","contact.
163info.hours.value":"Monday–Friday, 9am–6pm Pacific","contact.form.title":"Send us a note.","contact.form.name":"Full name","contact.form.email":"Email","contact.form.subject":"Subject","contact.form.message":"Message","contact.form.submit":"Send Message","contact.form.success":"Thank you — we received your message and will respond within two business days.","contact.form.error":"Something went wrong. Please try again or email us directly.","footer.tagline":"Helping people at all stages of life participate in sport.","footer.explore":"Explore","footer.support":"Support","footer.connect":"Connect","footer.copyright":"Opportunity Through Sport. A registered 501(c)(3) nonprofit.","footer.cta":"Become a Supporter"},B3={en:P3},RA=D.createContext(void 0),V3=({children:e})=>{const[t,n]=D.useState("en"),i=a=>B3[t][a]||a;return T.jsx(RA.Provider,{value:{language:t,setLanguage:n,t:i},children:e})},Wn=()=>{const e=D.useContext(RA);if(!e)throw new Error("useLanguage must be used within a LanguageProvider");return e},z3=({variant:e="default"})=>{const{t}=Wn();return T.jsxs(kr,{to:"/",className:"flex items-center gap-3 group","aria-label":"Opportunity Through Sport home",children:[T.jsx("span",{className:"font-heading font-extrabold text-[1.5rem] leading-none tracking-tight text-accent transition-transform duration-300 group-hover:-translate-y-[1px]","data-text-id":"brand.short",children:t("brand.short")}),e==="default"&&T.jsx("span",{className:"font-heading font-semibold text-[0.95rem] text-foreground hidden sm:inline","data-text-id":"brand.full",children:t("brand.full")})]})},rw="https://funraise.org/give/Opportunity-Through-Sport/0a1a968c-0600-4570-8f3c-bed9d7d4cda5/",$3=()=>{const{t:e}=Wn(),[t,n]=D.useState(!1),[i,a]=D.useState(!1),l=Pr();D.useEffect(()=>{const d=()=>a(window.scrollY>8);return d(),window.addEventListener("scroll",d),()=>window.removeEventListener("scroll",d)},[]),D.useEffect(()=>{n(!1)},[l.pathname]);const u=[{to:"/mission",key:"nav.mission"},{to:"/programs",key:"nav.programs"},{to:"/request-assistance",key:"nav.request"}];return T.jsxs("header",{className:`sticky top-0 z-40 border-b transition-colors duration-300 ${i?"bg-background border-border/60":"bg-background border-transparent"}`,children:[T.jsxs("div",{className:"mx-auto max-w-[1320px] px-container-px flex items-center justify-between h-[76px] md:h-[88px]",children:[T.jsx(z3,{}),T.jsx("nav",{className:"hidden lg:flex items-center gap-9","aria-label":"Primary",children:u.map(d=>T.jsx(qp,{to:d.to,className:({isActive:f})=>`text-[0.95rem] font-medium transition-colors duration-200 ${f?"text-accent":"text-foreground/85 hover:text-foreground"}`,"data-text-id":d.key,children:e(d.key)},d.to))}),T.jsxs("div",{className:"flex items-center gap-3",children:[T.jsx("a",{href:rw,target:"_blank",rel:"noopener noreferrer",className:"hidden md:inline-flex items-center justify-center rounded-pill bg-accent text-accent-foreground font-semibold text-[0.95rem] px-6 py-3 transition-all duration-200 hover:brightness-95 active:translate-y-[1px] shadow-[0_8px_30px_-12px_rgba(37,207,254,0.5)]","data-text-id":"nav.donate",children:e("nav.donate")}),T.jsx("button",{type:"button",onClick:()=>n(d=>!d),className:"lg:hidden inline-flex items-center justify-center w-11 h-11 rounded-full border border-border/60 text-foreground","aria-label":"Toggle menu","aria-expanded":t,children:t?T.jsx(I3,{size:20}):T.jsx(k3,{size:20})})]})]}),t&&T.jsx("div",{className:"lg:hidden border-t border-border/60 bg-background",children:T.jsxs("nav",{className:"px-container-px py-6 flex flex-col gap-1","aria-label":"Mobile",children:[u.map(d=>T.jsx(qp,{to:d.to,className:({isActive:f})=>`block py-3 text-[1.05rem] font-medium ${f?"text-accent":"text-foreground/85"}`,"data-text-id":d.key,children:e(d.key)},d.to)),T.jsx(kr,{to:"/contact",className:"block py-3 text-[1.05rem] font-medium text-foreground/85","data-text-id":"nav.contact",children:e("nav.contact")}),T.jsx("a",{href:rw,target:"_blank",rel:"noopener noreferrer",className:"mt-4 inline-flex items-center justify-center rounded-pill bg-accent text-accent-foreground font-semibold px-6 py-3","data-text-id":"nav.donate",children:e("nav.donate")})]})})]})},iw="https://funraise.org/give/Opportunity-Through-Sport/0a1a968c-0600-4570-8f3c-bed9d7d4cda5/",H3=()=>{const{t:e}=Wn(),t=new Date().getFullYear();return T.jsx("footer",{className:"bg-surface border-t border-border/60 mt-auto",children:T.jsxs("div",{className:"mx-auto max-w-[1320px] px-container-px py-20",children:[T.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-12",children:[T.jsxs("div",{className:"md:col-span-5",children:[T.jsxs("div",{className:"flex items-baseline gap-3",children:[T.jsx("span",{className:"font-heading font-extrabold text-accent text-[2rem] tracking-tight","data-text-id":"brand.short",children:e("brand.short")}),T.jsx("span",{className:"font-heading font-semibold text-foreground text-[1rem]","data-text-id":"brand.full",children:e("brand.full")})]}
163),T.jsx("p",{className:"mt-6 text-foreground/70 max-w-md leading-relaxed text-[0.98rem]","data-text-id":"footer.tagline",children:e("footer.tagline")}),T.jsx("a",{href:iw,target:"_blank",rel:"noopener noreferrer",className:"mt-8 inline-flex items-center gap-2 rounded-pill bg-accent text-accent-foreground font-semibold px-6 py-3 hover:brightness-95 transition-all","data-text-id":"footer.cta",children:e("footer.cta")})]}),T.jsxs("div",{className:"md:col-span-2",children:[T.jsx("h4",{className:"font-heading font-bold text-foreground text-[0.85rem] uppercase tracking-[0.15em] mb-5","data-text-id":"footer.explore",children:e("footer.explore")}),T.jsxs("ul",{className:"space-y-3",children:[T.jsx("li",{children:T.jsx(kr,{to:"/mission",className:"text-foreground/70 hover:text-accent text-[0.95rem] transition-colors","data-text-id":"nav.mission",children:e("nav.mission")})}),T.jsx("li",{children:T.jsx(kr,{to:"/programs",className:"text-foreground/70 hover:text-accent text-[0.95rem] transition-colors","data-text-id":"nav.programs",children:e("nav.programs")})}),T.jsx("li",{children:T.jsx(kr,{to:"/request-assistance",className:"text-foreground/70 hover:text-accent text-[0.95rem] transition-colors","data-text-id":"nav.request",children:e("nav.request")})})]})]}),T.jsxs("div",{className:"md:col-span-2",children:[T.jsx("h4",{className:"font-heading font-bold text-foreground text-[0.85rem] uppercase tracking-[0.15em] mb-5","data-text-id":"footer.support",children:e("footer.support")}),T.jsxs("ul",{className:"space-y-3",children:[T.jsx("li",{children:T.jsx("a",{href:iw,target:"_blank",rel:"noopener noreferrer",className:"text-foreground/70 hover:text-accent text-[0.95rem] transition-colors","data-text-id":"nav.donate",children:e("nav.donate")})}),T.jsx("li",{children:T.jsx(kr,{to:"/contact",className:"text-foreground/70 hover:text-accent text-[0.95rem] transition-colors","data-text-id":"nav.contact",children:e("nav.contact")})})]})]}),T.jsxs("div",{className:"md:col-span-3",children:[T.jsx("h4",{className:"font-heading font-bold text-foreground text-[0.85rem] uppercase tracking-[0.15em] mb-5","data-text-id":"footer.connect",children:e("footer.connect")}),T.jsxs("ul",{className:"space-y-3 text-[0.95rem]",children:[T.jsxs("li",{className:"flex items-center gap-3 text-foreground/70",children:[T.jsx(OA,{size:16,className:"text-accent shrink-0"}),T.jsx("a",{href:`mailto:${e("contact.info.email.value")}`,className:"hover:text-accent transition-colors","data-text-id":"contact.info.email.value",children:e("contact.info.email.value")})]}),T.jsxs("li",{className:"flex items-center gap-3 text-foreground/70",children:[T.jsx(CA,{size:16,className:"text-accent shrink-0"}),T.jsx("span",{"data-text-id":"contact.info.phone.value",children:e("contact.info.phone.value")})]})]}),T.jsxs("div",{className:"flex items-center gap-3 mt-6",children:[T.jsx("a",{href:"https://instagram.com",target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",className:"w-10 h-10 rounded-full border border-border/60 flex items-center justify-center text-foreground/70 hover:text-accent hover:border-accent transition-colors",children:T.jsx(x3,{size:16})}),T.jsx("a",{href:"https://facebook.com",target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook",className:"w-10 h-10 rounded-full border border-border/60 flex items-center justify-center text-foreground/70 hover:text-accent hover:border-accent transition-colors",children:T.jsx(b3,{size:16})}),T.jsx("a",{href:"https://linkedin.com",target:"_blank",rel:"noopener noreferrer","aria-label":"LinkedIn",className:"w-10 h-10 rounded-full border border-border/60 flex items-center justify-center text-foreground/70 hover:text-accent hover:border-accent transition-colors",children:T.jsx(O3,{size:16})})]})]})]}),T.jsxs("div",{className:"mt-16 pt-8 border-t border-border/40 flex flex-col md:flex-row md:items-center md:justify-between gap-4",children:[T.jsxs("p",{className:"text-foreground/50 text-[0.85rem]",children:[T.jsxs("span",{children:["© ",t," "]}),T.jsx("span",{"data-text-id":"footer.copyright",children:e("footer.copyright")})]}
163),T.jsx("p",{className:"text-foreground/50 text-[0.85rem]",children:"EIN 88-3409079"})]})]})})},Jl=({titleKey:e,descriptionKey:t})=>{const{t:n}=Wn(),i="Opportunity Through Sport",a="A 501(c)(3) nonprofit helping people at every stage of life participate in sport — programs, partnerships, and pathways into play.",l=e?`${n(e)} | ${i}`:i,u=t?n(t):a;return T.jsxs(uA,{children:[T.jsx("title",{children:l}),T.jsx("meta",{name:"description",content:u}),T.jsx("meta",{property:"og:title",content:l}),T.jsx("meta",{property:"og:description",content:u}),T.jsx("meta",{property:"og:image",content:"https://images.remixer.ai/ai/2463428/og_image/opportunity-through-sport-nonprofit-community-sport"}),T.jsx("meta",{name:"twitter:card",content:"summary_large_image"})]})},kA=D.createContext({});function q3(e){const t=D.useRef(null);return t.current===null&&(t.current=e()),t.current}const ey=typeof window<"u",F3=ey?D.useLayoutEffect:D.useEffect,ty=D.createContext(null);function ny(e,t){e.indexOf(t)===-1&&e.push(t)}function ry(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ar=(e,t,n)=>n>t?t:n<e?e:n;let iy=()=>{};const wi={},NA=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function jA(e){return typeof e=="object"&&e!==null}const DA=e=>/^0[^.\s]+$/u.test(e);function MA(e){let t;return()=>(t===void 0&&(t=e()),t)}const Dn=e=>e,G3=(e,t)=>n=>t(e(n)),Ql=(...e)=>e.reduce(G3),Rl=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i};class sy{constructor(){this.subscriptions=[]}add(t){return ny(this.subscriptions,t),()=>ry(this.subscriptions,t)}notify(t,n,i){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,i);else for(let l=0;l<a;l++){const u=this.subscriptions[l];u&&u(t,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Fn=e=>e*1e3,jn=e=>e/1e3;function LA(e,t){return t?e*(1e3/t):0}const UA=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,K3=1e-7,Y3=12;function X3(e,t,n,i,a){let l,u,d=0;do u=t+(n-t)/2,l=UA(u,i,a)-e,l>0?n=u:t=u;while(Math.abs(l)>K3&&++d<Y3);return u}function Zl(e,t,n,i){if(e===t&&n===i)return Dn;const a=l=>X3(l,0,1,e,n);return l=>l===0||l===1?l:UA(a(l),t,i)}const IA=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,PA=e=>t=>1-e(1-t),BA=Zl(.33,1.53,.69,.99),ay=PA(BA),VA=IA(ay),zA=e=>e>=1?1:(e*=2)<1?.5*ay(e):.5*(2-Math.pow(2,-10*(e-1))),oy=e=>1-Math.sin(Math.acos(e)),$A=PA(oy),HA=IA(oy),W3=Zl(.42,0,1,1),J3=Zl(0,0,.58,1),qA=Zl(.42,0,.58,1),Q3=e=>Array.isArray(e)&&typeof e[0]!="number",FA=e=>Array.isArray(e)&&typeof e[0]=="number",Z3={linear:Dn,easeIn:W3,easeInOut:qA,easeOut:J3,circIn:oy,circInOut:HA,circOut:$A,backIn:ay,backInOut:VA,backOut:BA,anticipate:zA},eV=e=>typeof e=="string",sw=e=>{if(FA(e)){iy(e.length===4);const[t,n,i,a]=e;return Zl(t,n,i,a)}else if(eV(e))return Z3[e];return e},kc=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tV(e,t){let n=new Set,i=new Set,a=!1,l=!1;const u=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};
vendor: 26,569 bytes, line 163
163function f(g){u.has(g)&&(h.schedule(g),e()),g(d)}const h={schedule:(g,y=!1,v=!1)=>{const S=v&&a?n:i;return y&&u.add(g),S.add(g),g},cancel:g=>{i.delete(g),u.delete(g)},process:g=>{if(d=g,a){l=!0;return}a=!0;const y=n;n=i,i=y,n.forEach(f),n.clear(),a=!1,l&&(l=!1,h.process(g))}};return h}const nV=40;function GA(e,t){let n=!1,i=!0;const a={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,u=kc.reduce((R,M)=>(R[M]=tV(l),R),{}),{setup:d,read:f,resolveKeyframes:h,preUpdate:g,update:y,preRender:v,render:_,postRender:S}=u,E=()=>{const R=wi.useManualTiming,M=R?a.timestamp:performance.now();n=!1,R||(a.delta=i?1e3/60:Math.max(Math.min(M-a.timestamp,nV),1)),a.timestamp=M,a.isProcessing=!0,d.process(a),f.process(a),h.process(a),g.process(a),y.process(a),v.process(a),_.process(a),S.process(a),a.isProcessing=!1,n&&t&&(i=!1,e(E))},x=()=>{n=!0,i=!0,a.isProcessing||e(E)};return{schedule:kc.reduce((R,M)=>{const $=u[M];return R[M]=(B,G=!1,X=!1)=>(n||x(),$.schedule(B,G,X)),R},{}),cancel:R=>{for(let M=0;M<kc.length;M++)u[kc[M]].cancel(R)},state:a,steps:u}}const{schedule:Qe,cancel:Ei,state:jt,steps:ep}=GA(typeof requestAnimationFrame<"u"?requestAnimationFrame:Dn,!0);let Zc;function rV(){Zc=void 0}const zt={now:()=>(Zc===void 0&&zt.set(jt.isProcessing||wi.useManualTiming?jt.timestamp:performance.now()),Zc),set:e=>{Zc=e,queueMicrotask(rV)}},KA=e=>t=>typeof t=="string"&&t.startsWith(e),ly=KA("--"),iV=KA("var(--"),uy=e=>iV(e)?sV.test(e.split("/*")[0].trim()):!1,sV=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function aw(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const eo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},kl={...eo,transform:e=>ar(0,1,e)},Nc={...eo,default:1},pl=e=>Math.round(e*1e5)/1e5,cy=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function aV(e){return e==null}const oV=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,dy=(e,t)=>n=>!!(typeof n=="string"&&oV.test(n)&&n.startsWith(e)||t&&!aV(n)&&Object.prototype.hasOwnProperty.call(n,t)),YA=(e,t,n)=>i=>{if(typeof i!="string")return i;const[a,l,u,d]=i.match(cy);return{[e]:parseFloat(a),[t]:parseFloat(l),[n]:parseFloat(u),alpha:d!==void 0?parseFloat(d):1}},lV=e=>ar(0,255,e),tp={...eo,transform:e=>Math.round(lV(e))},cs={test:dy("rgb","red"),parse:YA("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+tp.transform(e)+", "+tp.transform(t)+", "+tp.transform(n)+", "+pl(kl.transform(i))+")"};function uV(e){let t="",n="",i="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,i+=i,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:a?parseInt(a,16)/255:1}}const Fp={test:dy("#"),parse:uV,transform:cs.transform},eu=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),di=eu("deg"),rr=eu("%"),W=eu("px"),cV=eu("vh"),dV=eu("vw"),ow={...rr,parse:e=>rr.parse(e)/100,transform:e=>rr.transform(e*100)},wa={test:dy("hsl","hue"),parse:YA("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+rr.transform(pl(t))+", "+rr.transform(pl(n))+", "+pl(kl.transform(i))+")"},gt={test:e=>cs.test(e)||Fp.test(e)||wa.test(e),parse:e=>cs.test(e)?cs.parse(e):wa.test(e)?wa.parse(e):Fp.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?cs.transform(e):wa.transform(e),getAnimatableNone:e=>{const t=gt.parse(e);return t.alpha=0,gt.transform(t)}},fV=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function hV(e){return isNaN(e)&&typeof e=="string"&&(e.match(cy)?.length||0)+(e.match(fV)?.length||0)>0}const XA="number",WA="color",mV="var",pV="var(",lw="${}",gV=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Va(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},a=[];let l=0;const d=t.replace(gV,f=>(gt.test(f)?(i.color.push(l),a.push(WA),n.push(gt.parse(f))):f.startsWith(pV)?(i.var.push(l),a.push(mV),n.push(f)):(i.number.push(l),a.push(XA),n.push(parseFloat(f))),++l,lw)).split(lw);return{values:n,split:d,indexes:i,types:a}}function yV(e){return Va(e).values}function JA({split:e,types:t}){const n=e.length;return i=>{let a="";for(let l=0;l<n;l++)if(a+=e[l],i[l]!==void 0){const u=t[l];u===XA?a+=pl(i[l]):u===WA?a+=gt.transform(i[l]):a+=i[l]}return a}}function vV(e){return JA(Va(e))}const bV=e=>typeof e=="number"?0:gt.test(e)?gt.getAnimatableNone(e):e,_V=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:bV(e);function SV(e){const t=Va(e);return JA(t)(t.values.map((i,a)=>_V(i,t.split[a])))}const Gn={test:hV,parse:yV,createTransformer:vV,getAnimatableNone:SV};function np(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function wV({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let a=0,l=0,u=0;if(!t)a=l=u=n;else{const d=n<.5?n*(1+t):n+t-n*t,f=2*n-d;a=np(f,d,e+1/3),l=np(f,d,e),u=np(f,d,e-1/3)}return{red:Math.round(a*255),green:Math.round(l*255),blue:Math.round(u*255),alpha:i}}function cd(e,t){return n=>n>0?t:e}const et=(e,t,n)=>e+(t-e)*n,rp=(e,t,n)=>{const i=e*e,a=n*(t*t-i)+i;return a<0?0:Math.sqrt(a)},EV=[Fp,cs,wa],TV=e=>EV.find(t=>t.test(e));function uw(e){const t=TV(e);if(!t)return!1;let n=t.parse(e);return t===wa&&(n=wV(n)),n}const cw=(e,t)=>{const n=uw(e),i=uw(t);if(!n||!i)return cd(e,t);const a={...n};return l=>(a.red=rp(n.red,i.red,l),a.green=rp(n.green,i.green,l),a.blue=rp(n.blue,i.blue,l),a.alpha=et(n.alpha,i.alpha,l),cs.transform(a))},Gp=new Set(["none","hidden"]);function xV(e,t){return Gp.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function AV(e,t){return n=>et(e,t,n)}function fy(e){return typeof e=="number"?AV:typeof e=="string"?uy(e)?cd:gt.test(e)?cw:RV:Array.isArray(e)?QA:typeof e=="object"?gt.test(e)?cw:OV:cd}function QA(e,t){const n=[...e],i=n.length,a=e.map((l,u)=>fy(l)(l,t[u]));return l=>{for(let u=0;u<i;u++)n[u]=a[u](l);return n}}function OV(e,t){const n={...e,...t},i={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(i[a]=fy(e[a])(e[a],t[a]));return a=>{for(const l in i)n[l]=i[l](a);return n}}function CV(e,t){const n=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const l=t.types[a],u=e.indexes[l][i[l]],d=e.values[u]??0;n[a]=d,i[l]++}return n}const RV=(e,t)=>{const n=Gn.createTransformer(t),i=Va(e),a=Va(t);return i.indexes.var.length===a.indexes.var.length&&i.indexes.color.length===a.indexes.color.length&&i.indexes.number.length>=a.indexes.number.length?Gp.has(e)&&!a.values.length||Gp.has(t)&&!i.values.length?xV(e,t):Ql(QA(CV(i,a),a.values),n):cd(e,t)};function ZA(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?et(e,t,n):fy(e)(e,t)}const kV=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Qe.update(t,n),stop:()=>Ei(t),now:()=>jt.isProcessing?jt.timestamp:zt.now()}},e1=(e,t,n=10)=>{let i="";const a=Math.max(Math.round(t/n),2);for(let l=0;l<a;l++)i+=Math.round(e(l/(a-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},dd=2e4;function hy(e){let t=0;const n=50;let i=e.next(t);for(;!i.done&&t<dd;)t+=n,i=e.next(t);return t>=dd?1/0:t}function NV(e,t=100,n){const i=n({...e,keyframes:[0,t]}),a=Math.min(hy(i),dd);return{type:"keyframes",ease:l=>i.next(a*l).value/t,duration:jn(a)}}const it={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Kp(e,t){return e*Math.sqrt(1-t*t)}const jV=12;function DV(e,t,n){let i=n;for(let a=1;a<jV;a++)i=i-e(i)/t(i);return i}const ip=.001;function MV({duration:e=it.duration,bounce:t=it.bounce,velocity:n=it.velocity,mass:i=it.mass}){let a,l,u=1-t;u=ar(it.minDamping,it.maxDamping,u),e=ar(it.minDuration,it.maxDuration,jn(e)),u<1?(a=h=>{const g=h*u,y=g*e,v=g-n,_=Kp(h,u),S=Math.exp(-y);return ip-v/_*S},l=h=>{const y=h*u*e,v=y*n+n,_=Math.pow(u,2)*Math.pow(h,2)*e,S=Math.exp(-y),E=Kp(Math.pow(h,2),u);return(-a(h)+ip>0?-1:1)*((v-_)*S)/E}):(a=h=>{const g=Math.exp(-h*e),y=(h-n)*e+1;return-ip+g*y},l=h=>{const g=Math.exp(-h*e),y=(n-h)*(e*e);return g*y});const d=5/e,f=DV(a,l,d);if(e=Fn(e),isNaN(f))return{stiffness:it.stiffness,damping:it.damping,duration:e};{const h=Math.pow(f,2)*i;return{stiffness:h,damping:u*2*Math.sqrt(i*h),duration:e}}}const LV=["duration","bounce"],UV=["stiffness","damping","mass"];function dw(e,t){return t.some(n=>e[n]!==void 0)}function IV(e){let t={velocity:it.velocity,stiffness:it.stiffness,damping:it.damping,mass:it.mass,isResolvedFromDuration:!1,...e};if(!dw(e,UV)&&dw(e,LV))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,i=2*Math.PI/(n*1.2),a=i*i,l=2*ar(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:it.mass,stiffness:a,damping:l}}else{const n=MV({...e,velocity:0});t={...t,...n,mass:it.mass},t.isResolvedFromDuration=!0}return t}function fd(e=it.visualDuration,t=it.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:a}=n;const l=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],d={done:!1,value:l},{stiffness:f,damping:h,mass:g,duration:y,velocity:v,isResolvedFromDuration:_}=IV({...n,velocity:-jn(n.velocity||0)}),S=v||0,E=h/(2*Math.sqrt(f*g)),x=u-l,A=jn(Math.sqrt(f/g)),N=Math.abs(x)<5;i||(i=N?it.restSpeed.granular:it.restSpeed.default),a||(a=N?it.restDelta.granular:it.restDelta.default);let R,M,$,B,G,X;if(E<1)$=Kp(A,E),B=(S+E*A*x)/$,R=te=>{const he=Math.exp(-E*A*te);return u-he*(B*Math.sin($*te)+x*Math.cos($*te))},G=E*A*B+x*$,X=E*A*x-B*$,M=te=>Math.exp(-E*A*te)*(G*Math.sin($*te)+X*Math.cos($*te));else if(E===1){R=he=>u-Math.exp(-A*he)*(x+(S+A*x)*he);const te=S+A*x;M=he=>Math.exp(-A*he)*(A*te*he-S)}else{const te=A*Math.sqrt(E*E-1);R=Ke=>{const Ye=Math.exp(-E*A*Ke),V=Math.min(te*Ke,300);return u-Ye*((S+E*A*x)*Math.sinh(V)+te*x*Math.cosh(V))/te};const he=(S+E*A*x)/te,Le=E*A*he-x*te,vt=E*A*x-he*te;M=Ke=>{const Ye=Math.exp(-E*A*Ke),V=Math.min(te*Ke,300);return Ye*(Le*Math.sinh(V)+vt*Math.cosh(V))}}const se={calculatedDuration:_&&y||null,velocity:te=>Fn(M(te)),next:te=>{if(!_&&E<1){const Le=Math.exp(-E*A*te),vt=Math.sin($*te),Ke=Math.cos($*te),Ye=u-Le*(B*vt+x*Ke),V=Fn(Le*(G*vt+X*Ke));return d.done=Math.abs(V)<=i&&Math.abs(u-Ye)<=a,d.value=d.done?u:Ye,d}const he=R(te);if(_)d.done=te>=y;else{const Le=Fn(M(te));d.done=Math.abs(Le)<=i&&Math.abs(u-he)<=a}return d.value=d.done?u:he,d},toString:()=>{const te=Math.min(hy(se),dd),he=e1(Le=>se.next(te*Le).value,te,30);return te+"ms "+he},toTransition:()=>{}};return se}fd.applyToOptions=e=>{const t=NV(e,100,fd);return e.ease=t.ease,e.duration=Fn(t.duration),e.type="keyframes",e};const PV=5;function t1(e,t,n){const i=Math.max(t-PV,0);return LA(n-e(i),t-i)}function Yp({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:u,min:d,max:f,restDelta:h=.5,restSpeed:g}){const y=e[0],v={done:!1,value:y},_=X=>d!==void 0&&X<d||f!==void 0&&X>f,S=X=>d===void 0?f:f===void 0||Math.abs(d-X)<Math.abs(f-X)?d:f;let E=n*t;const x=y+E,A=u===void 0?x:u(x);A!==x&&(E=A-y);const N=X=>-E*Math.exp(-X/i),R=X=>A+N(X),M=X=>{const se=N(X),te=R(X);v.done=Math.abs(se)<=h,v.value=v.done?A:te};let $,B;const G=X=>{_(v.value)&&($=X,B=fd({keyframes:[v.value,S(v.value)],velocity:t1(R,X,v.value),damping:a,stiffness:l,restDelta:h,restSpeed:g}))};return G(0),{calculatedDuration:null,next:X=>{let se=!1;return!B&&$===void 0&&(se=!0,M(X),G(X)),$!==void 0&&X>=$?B.next(X-$):(!se&&M(X),v)}}}function BV(e,t,n){const i=[],a=n||wi.mix||ZA,l=e.length-1;for(let u=0;u<l;u++){let d=a(e[u],e[u+1]);if(t){const f=Array.isArray(t)?t[u]||Dn:t;d=Ql(f,d)}i.push(d)}return i}function VV(e,t,{clamp:n=!0,ease:i,mixer:a}={}){const l=e.length;if(iy(l===t.length),l===1)return()=>t[0];if(l===2&&t[0]===t[1])return()=>t[1];const u=e[0]===e[1];e[0]>e[l-1]&&(e=[...e].reverse(),t=[...t].reverse());const d=BV(t,i,a),f=d.length,h=g=>{if(u&&g<e[0])return t[0];let y=0;if(f>1)for(;y<e.length-2&&!(g<e[y+1]);y++);const v=Rl(e[y],e[y+1],g);return d[y](v)};return n?g=>h(ar(e[0],e[l-1],g)):h}function zV(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const a=Rl(0,t,i);e.push(et(n,1,a))}}function $V(e){const t=[0];return zV(t,e.length-1),t}function HV(e,t){return e.map(n=>n*t)}function qV(e,t){return e.map(()=>t||qA).splice(0,e.length-1)}function gl({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const a=Q3(i)?i.map(sw):sw(i),l={done:!1,value:t[0]},u=HV(n&&n.length===t.length?n:$V(t),e),d=VV(u,t,{ease:Array.isArray(a)?a:qV(t,a)});return{calculatedDuration:e,next:f=>(l.value=d(f),l.done=f>=e,l)}}const FV=e=>e!==null;function my(e,{repeat:t,repeatType:n="loop"},i,a=1){const l=e.filter(FV),d=a<0||t&&n!=="loop"&&t%2===1?0:l.length-1;return!d||i===void 0?l[d]:i}const GV={decay:Yp,inertia:Yp,tween:gl,keyframes:gl,spring:fd};function n1(e){typeof e.type=="string"&&(e.type=GV[e.type])}class py{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const KV=e=>e/100;class hd extends py{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==zt.now()&&this.tick(zt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;n1(t);const{type:n=gl,repeat:i=0,repeatDelay:a=0,repeatType:l,velocity:u=0}=t;let{keyframes:d}=t;const f=n||gl;f!==gl&&typeof d[0]!="number"&&(this.mixKeyframes=Ql(KV,ZA(d[0],d[1])),d=[0,100]);const h=f({...t,keyframes:d});l==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...d].reverse(),velocity:-u})),h.calculatedDuration===null&&(h.calculatedDuration=hy(h));const{calculatedDuration:g}=h;this.calculatedDuration=g,this.resolvedDuration=g+a,this.totalDuration=this.resolvedDuration*(i+1)-a,this.generator=h}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:i,totalDuration:a,mixKeyframes:l,mirroredGenerator:u,resolvedDuration:d,calculatedDuration:f}=this;if(this.startTime===null)return i.next(0);const{delay:h=0,keyframes:g,repeat:y,repeatType:v,repeatDelay:_,type:S,onUpdate:E,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const A=this.currentTime-h*(this.playbackSpeed>=0?1:-1),N=this.playbackSpeed>=0?A<0:A>a;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let R=this.currentTime,M=i;if(y){const X=Math.min(this.currentTime,a)/d;let se=Math.floor(X),te=X%1;!te&&X>=1&&(te=1),te===1&&se--,se=Math.min(se,y+1),!!(se%2)&&(v==="reverse"?(te=1-te,_&&(te-=_/d)):v==="mirror"&&(M=u)),R=ar(0,1,te)*d}let $;N?(this.delayState.value=g[0],$=this.delayState):$=M.next(R),l&&!N&&($.value=l($.value));let{done:B}=$;!N&&f!==null&&(B=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const G=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&B);return G&&S!==Yp&&($.value=my(g,this.options,x,this.speed)),E&&E($.value),G&&this.finish(),$}then(t,n){return this.finished.then(t,n)}get duration(){return jn(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+jn(t)}get time(){return jn(this.currentTime)}set time(t){t=Fn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return t1(i=>this.generator.next(i).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(zt.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=jn(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=kV,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),this.options.onPlay?.();const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=n??i),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(zt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function YV(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const ds=e=>e*180/Math.PI,Xp=e=>{const t=ds(Math.atan2(e[1],e[0]));return Wp(t)},XV={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Xp,rotateZ:Xp,skewX:e=>ds(Math.atan(e[1])),skewY:e=>ds(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Wp=e=>(e=e%360,e<0&&(e+=360),e),fw=Xp,hw=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),mw=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),WV={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:hw,scaleY:mw,scale:e=>(hw(e)+mw(e))/2,rotateX:e=>Wp(ds(Math.atan2(e[6],e[5]))),rotateY:e=>Wp(ds(Math.atan2(-e[2],e[0]))),rotateZ:fw,rotate:fw,skewX:e=>ds(Math.atan(e[4])),skewY:e=>ds(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Jp(e){return e.includes("scale")?1:0}function Qp(e,t){if(!e||e==="none")return Jp(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,a;if(n)i=WV,a=n;else{const d=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=XV,a=d}if(!a)return Jp(t);const l=i[t],u=a[1].split(",").map(QV);return typeof l=="function"?l(u):u[l]}const JV=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Qp(n,t)};function QV(e){return parseFloat(e.trim())}const to=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],no=new Set(to),pw=e=>e===eo||e===W,ZV=new Set(["x","y","z"]),e4=to.filter(e=>!ZV.has(e));function t4(e){const t=[];return e4.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}const pi={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:i})=>{const a=e.max-e.min;return i==="border-box"?a:a-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:i})=>{const a=e.max-e.min;return i==="border-box"?a:a-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Qp(t,"x"),y:(e,{transform:t})=>Qp(t,"y")};pi.translateX=pi.x;pi.translateY=pi.y;const ms=new Set;let Zp=!1,eg=!1,tg=!1;function r1(){if(eg){const e=Array.from(ms).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{const a=t4(i);a.length&&(n.set(i,a),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const a=n.get(i);a&&a.forEach(([l,u])=>{i.getValue(l)?.set(u)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}eg=!1,Zp=!1,ms.forEach(e=>e.complete(tg)),ms.clear()}function i1(){ms.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eg=!0)})}function n4(){tg=!0,i1(),r1(),tg=!1}class gy{constructor(t,n,i,a,l,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=i,this.motionValue=a,this.element=l,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(ms.add(this),Zp||(Zp=!0,Qe.read(i1),Qe.resolveKeyframes(r1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:i,motionValue:a}=this;if(t[0]===null){const l=a?.get(),u=t[t.length-1];if(l!==void 0)t[0]=l;else if(i&&n){const d=i.readValue(n,u);d!=null&&(t[0]=d)}t[0]===void 0&&(t[0]=u),a&&l===void 0&&a.set(t[0])}YV(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ms.delete(this)}cancel(){this.state==="scheduled"&&(ms.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const r4=e=>e.startsWith("--");function s1(e,t,n){r4(t)?e.style.setProperty(t,n):e.style[t]=n}const i4={};function a1(e,t){const n=MA(e);return()=>i4[t]??n()}const s4=a1(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),o1=a1(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),cl=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,gw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cl([0,.65,.55,1]),circOut:cl([.55,0,1,.45]),backIn:cl([.31,.01,.66,-.59]),backOut:cl([.33,1.53,.69,.99])};function l1(e,t){if(e)return typeof e=="function"?o1()?e1(e,t):"ease-out":FA(e)?cl(e):Array.isArray(e)?e.map(n=>l1(n,t)||gw.easeOut):gw[e]}function a4(e,t,n,{delay:i=0,duration:a=300,repeat:l=0,repeatType:u="loop",ease:d="easeOut",times:f}={},h=void 0){const g={[t]:n};f&&(g.offset=f);const y=l1(d,a);Array.isArray(y)&&(g.easing=y);const v={delay:i,duration:a,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:l+1,direction:u==="reverse"?"alternate":"normal"};return h&&(v.pseudoElement=h),e.animate(g,v)}function u1(e){return typeof e=="function"&&"applyToOptions"in e}function o4({type:e,...t}){return u1(e)&&o1()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class l4 extends py{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:i,keyframes:a,pseudoElement:l,allowFlatten:u=!1,finalKeyframe:d,onComplete:f}=t;this.isPseudoElement=!!l,this.allowFlatten=u,this.options=t,iy(typeof t.type!="string");const h=o4(t);this.animation=a4(n,i,a,h,l),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!l){const g=my(a,this.options,d,this.speed);this.updateMotionValue&&this.updateMotionValue(g),s1(n,i,g),this.animation.cancel()}f?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return jn(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+jn(t)}get time(){return jn(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Fn(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:i,observe:a}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&s4()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),i&&(this.animation.rangeEnd=i),Dn):a(this)}}const c1={anticipate:zA,backInOut:VA,circInOut:HA};function u4(e){return e in c1}function c4(e){typeof e.ease=="string"&&u4(e.ease)&&(e.ease=c1[e.ease])}const sp=10;class d4 extends l4{constructor(t){c4(t),n1(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:i,onComplete:a,element:l,...u}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const d=new hd({...u,autoplay:!1}),f=Math.max(sp,zt.now()-this.startTime),h=ar(0,sp,f-sp),g=d.sample(f).value,{name:y}=this.options;l&&y&&s1(l,y,g),n.setWithVelocity(d.sample(Math.max(0,f-h)).value,g,h),d.stop()}}const yw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Gn.test(e)||e==="0")&&!e.startsWith("url("));function f4(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function h4(e,t,n,i){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const l=e[e.length-1],u=yw(a,t),d=yw(l,t);return!u||!d?!1:f4(e)||(n==="spring"||u1(n))&&i}function ng(e){e.duration=0,e.type="keyframes"}const m4=new Set(["opacity","clipPath","filter","transform"]),p4=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function g4(e){for(let t=0;t<e.length;
vendor: 7,179 bytes, line 163
163t++)if(typeof e[t]=="string"&&p4.test(e[t]))return!0;return!1}const y4=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),v4=MA(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function b4(e){const{motionValue:t,name:n,repeatDelay:i,repeatType:a,damping:l,type:u,keyframes:d}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:g}=t.owner.getProps();return v4()&&n&&(m4.has(n)||y4.has(n)&&g4(d))&&(n!=="transform"||!g)&&!h&&!i&&a!=="mirror"&&l!==0&&u!=="inertia"}const _4=40;class S4 extends py{constructor({autoplay:t=!0,delay:n=0,type:i="keyframes",repeat:a=0,repeatDelay:l=0,repeatType:u="loop",keyframes:d,name:f,motionValue:h,element:g,...y}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=zt.now();const v={autoplay:t,delay:n,type:i,repeat:a,repeatDelay:l,repeatType:u,name:f,motionValue:h,element:g,...y},_=g?.KeyframeResolver||gy;this.keyframeResolver=new _(d,(S,E,x)=>this.onKeyframesResolved(S,E,v,!x),f,h,g),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,i,a){this.keyframeResolver=void 0;const{name:l,type:u,velocity:d,delay:f,isHandoff:h,onUpdate:g}=i;this.resolvedAt=zt.now();let y=!0;h4(t,l,u,d)||(y=!1,(wi.instantAnimations||!f)&&g?.(my(t,i,n)),t[0]=t[t.length-1],ng(i),i.repeat=0);const _={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>_4?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...i,keyframes:t},S=y&&!h&&b4(_),E=_.motionValue?.owner?.current;let x;if(S)try{x=new d4({..._,element:E})}catch{x=new hd(_)}else x=new hd(_);x.finished.then(()=>{this.notifyFinished()}).catch(Dn),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),n4()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const w4=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function E4(e){const t=w4.exec(e);if(!t)return[,];const[,n,i,a]=t;return[`--${n??i}`,a]}function d1(e,t,n=1){const[i,a]=E4(e);if(!i)return;const l=window.getComputedStyle(t).getPropertyValue(i);if(l){const u=l.trim();return NA(u)?parseFloat(u):u}return uy(a)?d1(a,t,n+1):a}function T4(e,t){if(e?.inherit&&t){const{inherit:n,...i}=e;return{...t,...i}}return e}function yy(e,t){const n=e?.[t]??e?.default??e;return n!==e?T4(n,e):n}const f1=new Set(["width","height","top","left","right","bottom",...to]),vw=30,x4=e=>!isNaN(parseFloat(e));class A4{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{const a=zt.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=zt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=x4(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new sy);const i=this.events[t].add(n);return t==="change"?()=>{i(),Qe.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=zt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>vw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,vw);return LA(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function za(e,t){return new A4(e,t)}const Ut=e=>!!(e&&e.getVelocity),O4={test:e=>e==="auto",parse:e=>e},h1=e=>t=>t.test(e),m1=[eo,W,rr,di,dV,cV,O4],bw=e=>m1.find(h1(e));function C4(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||DA(e):!0}const R4=new Set(["brightness","contrast","saturate","opacity"]);function k4(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(cy)||[];if(!i)return e;const a=n.replace(i,"");let l=R4.has(t)?1:0;return i!==n&&(l*=100),t+"("+l+a+")"}const N4=/\b([a-z-]*)\(.*?\)/gu,rg={...Gn,getAnimatableNone:e=>{const t=e.match(N4);return t?t.map(k4).join(" "):e}},ig={...Gn,getAnimatableNone:e=>{const t=Gn.parse(e);return Gn.createTransformer(e)(t.map(i=>typeof i=="number"?0:typeof i=="object"?{...i,alpha:1}:i))}},_w={...eo,transform:Math.round},j4={rotate:di,rotateX:di,rotateY:di,rotateZ:di,scale:Nc,scaleX:Nc,scaleY:Nc,scaleZ:Nc,skew:di,skewX:di,skewY:di,distance:W,translateX:W,translateY:W,translateZ:W,x:W,y:W,z:W,perspective:W,transformPerspective:W,opacity:kl,originX:ow,originY:ow,originZ:W},vy={borderWidth:W,borderTopWidth:W,borderRightWidth:W,borderBottomWidth:W,borderLeftWidth:W,borderRadius:W,borderTopLeftRadius:W,borderTopRightRadius:W,borderBottomRightRadius:W,borderBottomLeftRadius:W,width:W,maxWidth:W,height:W,maxHeight:W,top:W,right:W,bottom:W,left:W,
vendor: 9,349 bytes, line 163
163inset:W,insetBlock:W,insetBlockStart:W,insetBlockEnd:W,insetInline:W,insetInlineStart:W,insetInlineEnd:W,padding:W,paddingTop:W,paddingRight:W,paddingBottom:W,paddingLeft:W,paddingBlock:W,paddingBlockStart:W,paddingBlockEnd:W,paddingInline:W,paddingInlineStart:W,paddingInlineEnd:W,margin:W,marginTop:W,marginRight:W,marginBottom:W,marginLeft:W,marginBlock:W,marginBlockStart:W,marginBlockEnd:W,marginInline:W,marginInlineStart:W,marginInlineEnd:W,fontSize:W,backgroundPositionX:W,backgroundPositionY:W,...j4,zIndex:_w,fillOpacity:kl,strokeOpacity:kl,numOctaves:_w},D4={...vy,color:gt,backgroundColor:gt,outlineColor:gt,fill:gt,stroke:gt,borderColor:gt,borderTopColor:gt,borderRightColor:gt,borderBottomColor:gt,borderLeftColor:gt,filter:rg,WebkitFilter:rg,mask:ig,WebkitMask:ig},p1=e=>D4[e],M4=new Set([rg,ig]);function g1(e,t){let n=p1(e);return M4.has(n)||(n=Gn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const L4=new Set(["auto","none","0"]);function U4(e,t,n){let i=0,a;for(;i<e.length&&!a;){const l=e[i];typeof l=="string"&&!L4.has(l)&&Va(l).values.length&&(a=e[i]),i++}if(a&&n)for(const l of t)e[l]=g1(n,a)}class I4 extends gy{constructor(t,n,i,a,l){super(t,n,i,a,l,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let g=0;g<t.length;g++){let y=t[g];if(typeof y=="string"&&(y=y.trim(),uy(y))){const v=d1(y,n.current);v!==void 0&&(t[g]=v),g===t.length-1&&(this.finalKeyframe=y)}}if(this.resolveNoneKeyframes(),!f1.has(i)||t.length!==2)return;const[a,l]=t,u=bw(a),d=bw(l),f=aw(a),h=aw(l);if(f!==h&&pi[i]){this.needsMeasurement=!0;return}if(u!==d)if(pw(u)&&pw(d))for(let g=0;g<t.length;g++){const y=t[g];typeof y=="string"&&(t[g]=parseFloat(y))}else pi[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,i=[];for(let a=0;a<t.length;a++)(t[a]===null||C4(t[a]))&&i.push(a);i.length&&U4(t,i,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=pi[i](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(i,a).jump(a,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:i}=this;if(!t||!t.current)return;const a=t.getValue(n);a&&a.jump(this.measuredOrigin,!1);const l=i.length-1,u=i[l];i[l]=pi[n](t.measureViewportBox(),window.getComputedStyle(t.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),this.removedTransforms?.length&&this.removedTransforms.forEach(([d,f])=>{t.getValue(d).set(f)}),this.resolveNoneKeyframes()}}function P4(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const a=n?.[e]??i.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e).filter(i=>i!=null)}const y1=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function B4(e){return jA(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:by}=GA(queueMicrotask,!1),zn={x:!1,y:!1};function v1(){return zn.x||zn.y}function V4(e){return e==="x"||e==="y"?zn[e]?null:(zn[e]=!0,()=>{zn[e]=!1}):zn.x||zn.y?null:(zn.x=zn.y=!0,()=>{zn.x=zn.y=!1})}function b1(e,t){const n=P4(e),i=new AbortController,a={passive:!0,...t,signal:i.signal};return[n,a,()=>i.abort()]}function z4(e){return!(e.pointerType==="touch"||v1())}function $4(e,t,n={}){const[i,a,l]=b1(e,n);return i.forEach(u=>{let d=!1,f=!1,h;const g=()=>{u.removeEventListener("pointerleave",S)},y=x=>{h&&(h(x),h=void 0),g()},v=x=>{d=!1,window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",v),f&&(f=!1,y(x))},_=()=>{d=!0,window.addEventListener("pointerup",v,a),window.addEventListener("pointercancel",v,a)},S=x=>{if(x.pointerType!=="touch"){if(d){f=!0;return}y(x)}},E=x=>{if(!z4(x))return;f=!1;const A=t(u,x);typeof A=="function"&&(h=A,u.addEventListener("pointerleave",S,a))};u.addEventListener("pointerenter",E,a),u.addEventListener("pointerdown",_,a)}),l}const _1=(e,t)=>t?e===t?!0:_1(e,t.parentElement):!1,_y=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,H4=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function q4(e){return H4.has(e.tagName)||e.isContentEditable===!0}const ed=new WeakSet;function Sw(e){return t=>{t.key==="Enter"&&e(t)}}function ap(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const F4=(e,t)=>{const n=e.currentTarget;if(!n)return;const i=Sw(()=>{if(ed.has(n))return;ap(n,"down");const a=Sw(()=>{ap(n,"up")}),l=()=>ap(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",l,t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)};function ww(e){return _y(e)&&!v1()}const Ew=new WeakSet;function G4(e,t,n={}){const[i,a,l]=b1(e,n),u=d=>{const f=d.currentTarget;if(!ww(d)||Ew.has(d))return;ed.add(f),n.stopPropagation&&Ew.add(d);const h=t(f,d),g=(_,S)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",v),ed.has(f)&&ed.delete(f),ww(_)&&typeof h=="function"&&h(_,{success:S})},y=_=>{g(_,f===window||f===document||n.useGlobalTarget||_1(f,_.target))},v=_=>{g(_,!1)};window.addEventListener("pointerup",y,a),window.addEventListener("pointercancel",v,a)};return i.forEach(d=>{(n.useGlobalTarget?window:d).addEventListener("pointerdown",u,a),B4(d)&&(d.addEventListener("focus",h=>F4(h,a)),!q4(d)&&!d.hasAttribute("tabindex")&&(d.tabIndex=0))}),l}function S1(e){return jA(e)&&"ownerSVGElement"in e}function K4(e){return S1(e)&&e.tagName==="svg"}const Y4=[...m1,gt,Gn],X4=e=>Y4.find(h1(e)),w1=D.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function W4(e=!0){const t=D.useContext(ty);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:a}=t,l=D.useId();D.useEffect(()=>{if(e)return a(l)},[e]);const u=D.useCallback(()=>e&&i&&i(l),[l,i,e]);return!n&&i?[!1,u]:[!0]}const E1=D.createContext({strict:!1}),Tw={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},$a={};for(const e in Tw)$a[e]={isEnabled:t=>Tw[e].some(n=>!!t[n])};function J4(e){for(const t in e)$a[t]={...$a[t],...e[t]}}const Q4=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function md(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Q4.has(e)}let T1=e=>!md(e);function Z4(e){typeof e=="function"&&(T1=t=>t.startsWith("on")?!md(t):e(t))}try{Z4(require("@emotion/is-prop-valid").default)}catch{}function e5(e,t,n){const i={};for(const a in e)a==="values"&&typeof e.values=="object"||(T1(a)||n===!0&&md(a)||!t&&!md(a)||e.draggable&&a.startsWith("onDrag"))&&(i[a]=e[a]);return i}const Fd=D.createContext({});function Gd(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Nl(e){return typeof e=="string"||Array.isArray(e)}const Sy=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wy=["initial",...Sy];function Kd(e){return Gd(e.animate)||wy.some(t=>Nl(e[t]))}function x1(e){return!!(Kd(e)||e.variants)}function t5(e,t){if(Kd(e)){const{initial:n,animate:i}=e;return{initial:n===!1||Nl(n)?n:void 0,animate:Nl(i)?i:void 0}}return e.inherit!==!1?t:{}}function n5(e){const{initial:t,animate:n}=t5(e,D.useContext(Fd));return D.useMemo(()=>({initial:t,animate:n}),[xw(t),xw(n)])}function xw(e){return Array.isArray(e)?e.join(" "):e}const jl={};function r5(e){for(const t in e)jl[t]=e[t],ly(t)&&(jl[t].isCSSVariable=!0)}function A1(e,{layout:t,layoutId:n}){return no.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!jl[e]||e==="opacity")}const i5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},s5=to.length;function a5(e,t,n){let i="",a=!0;for(let l=0;l<s5;l++){const u=to[l],d=e[u];if(d===void 0)continue;let f=!0;if(typeof d=="number"?f=d===(u.startsWith("scale")?1:0):f=parseFloat(d)===0,!f||n){const h=y1(d,vy[u]);if(!f){a=!1;const g=i5[u]||u;i+=`${g}(${h}) `}n&&(t[u]=h)}}return i=i.trim(),n?i=n(t,a?"":i):a&&(i="none"),i}function Ey(e,t,n){const{style:i,vars:a,transformOrigin:l}=e;let u=!1,d=!1;for(const f in t){const h=t[f];if(no.has(f)){u=!0;continue}else if(ly(f)){a[f]=h;continue}else{const g=y1(h,vy[f]);f.startsWith("origin")?(d=!0,l[f]=g):i[f]=g}}if(t.transform||(u||n?i.transform=a5(t,e.transform,n):i.transform&&(i.transform="none")),d){const{originX:f="50%",originY:h="50%",originZ:g=0}=l;i.transformOrigin=`${f} ${h} ${g}`}}const Ty=()=>({style:{},transform:{},transformOrigin:{},vars:{}});
163function O1(e,t,n){for(const i in t)!Ut(t[i])&&!A1(i,n)&&(e[i]=t[i])}function o5({transformTemplate:e},t){return D.useMemo(()=>{const n=Ty();return Ey(n,t,e),Object.assign({},n.vars,n.style)},[t])}function l5(e,t){const n=e.style||{},i={};return O1(i,n,e),Object.assign(i,o5(e,t)),i}function u5(e,t){const n={},i=l5(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const c5={offset:"stroke-dashoffset",array:"stroke-dasharray"},d5={offset:"strokeDashoffset",array:"strokeDasharray"};function f5(e,t,n=1,i=0,a=!0){e.pathLength=1;const l=a?c5:d5;e[l.offset]=W.transform(-i);const u=W.transform(t),d=W.transform(n);e[l.array]=`${u} ${d}`}function C1(e,{attrX:t,attrY:n,attrScale:i,pathLength:a,pathSpacing:l=1,pathOffset:u=0,...d},f,h,g){if(Ey(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:y,style:v}=e;y.transform&&(v.transform=y.transform,delete y.transform),(v.transform||y.transformOrigin)&&(v.transformOrigin=y.transformOrigin??"50% 50%",delete y.transformOrigin),v.transform&&(v.transformBox=g?.transformBox??"fill-box",delete y.transformBox),t!==void 0&&(y.x=t),n!==void 0&&(y.y=n),i!==void 0&&(y.scale=i),a!==void 0&&f5(y,a,l,u,!1)}const R1=()=>({...Ty(),attrs:{}}),k1=e=>typeof e=="string"&&e.toLowerCase()==="svg";function h5(e,t,n,i){const a=D.useMemo(()=>{const l=R1();return C1(l,t,k1(i),e.transformTemplate,e.style),{...l.attrs,style:{...l.style}}},[t]);if(e.style){const l={};O1(l,e.style,e),a.style={...l,...a.style}}return a}const m5=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function xy(e){return typeof e!="string"||e.includes("-")?!1:!!(m5.indexOf(e)>-1||/[A-Z]/u.test(e))}function p5(e,t,n,{latestValues:i},a,l=!1){const d=(xy(e)?h5:u5)(t,i,a,e),f=e5(t,typeof e=="string",l),h=e!==D.Fragment?{...f,...d,ref:n}:{},{children:g}=t,y=D.useMemo(()=>Ut(g)?g.get():g,[g]);return D.createElement(e,{...h,children:y})}function Aw(e){const t=[{},{}];return e?.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function Ay(e,t,n,i){if(typeof t=="function"){const[a,l]=Aw(i);t=t(n!==void 0?n:e.custom,a,l)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,l]=Aw(i);t=t(n!==void 0?n:e.custom,a,l)}return t}function td(e){return Ut(e)?e.get():e}function g5({scrapeMotionValuesFromProps:e,createRenderState:t},n,i,a){return{latestValues:y5(n,i,a,e),renderState:t()}}function y5(e,t,n,i){const a={},l=i(e,{});for(const v in l)a[v]=td(l[v]);let{initial:u,animate:d}=e;const f=Kd(e),h=x1(e);t&&h&&!f&&e.inherit!==!1&&(u===void 0&&(u=t.initial),d===void 0&&(d=t.animate));let g=n?n.initial===!1:!1;g=g||u===!1;const y=g?d:u;if(y&&typeof y!="boolean"&&!Gd(y)){const v=Array.isArray(y)?y:[y];for(let _=0;_<v.length;_++){const S=Ay(e,v[_]);if(S){const{transitionEnd:E,transition:x,...A}=S;for(const N in A){let R=A[N];if(Array.isArray(R)){const M=g?R.length-1:0;R=R[M]}R!==null&&(a[N]=R)}for(const N in E)a[N]=E[N]}}}return a}const N1=e=>(t,n)=>{const i=D.useContext(Fd),a=D.useContext(ty),l=()=>g5(e,t,i,a);return n?l():q3(l)};function Oy(e,t,n){const{style:i}=e,a={};for(const l in i)(Ut(i[l])||t.style&&Ut(t.style[l])||A1(l,e)||n?.getValue(l)?.liveStyle!==void 0)&&(a[l]=i[l]);return a}const v5=N1({scrapeMotionValuesFromProps:Oy,createRenderState:Ty});function j1(e,t,n){const i=Oy(e,t,n);for(const a in e)if(Ut(e[a])||Ut(t[a])){const l=to.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;i[l]=e[a]}return i}const b5=N1({scrapeMotionValuesFromProps:j1,createRenderState:R1}),_5=Symbol.for("motionComponentSymbol");function Ea(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function S5(e,t,n){return D.useCallback(i=>{i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),n&&(typeof n=="function"?n(i):Ea(n)&&(n.current=i))},[t])}const Cy=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),w5="framerAppearId",D1="data-"+Cy(w5),M1=D.createContext({});function E5(e,t,n,i,a){const{visualElement:l}=D.useContext(Fd),u=D.useContext(E1),d=D.useContext(ty),f=D.useContext(w1).reducedMotion,h=D.useRef(null);i=i||u.renderer,!h.current&&i&&(h.current=i(e,{visualState:t,parent:l,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const g=h.current,y=D.useContext(M1);g&&!g.projection&&a&&(g.type==="html"||g.type==="svg")&&T5(h.current,n,a,y);const v=D.useRef(!1);D.useInsertionEffect(()=>{g&&v.current&&g.update(n,d)});const _=n[D1],S=D.useRef(!!_&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return F3(()=>{g&&(v.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),S.current&&g.animationState&&g.animationState.animateChanges())}),D.useEffect(()=>{g&&(!S.current&&g.animationState&&g.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),S.current=!1),g.enteringChildren=void 0)}),g}function T5(e,t,n,i){const{layoutId:a,layout:l,drag:u,dragConstraints:d,layoutScroll:f,layoutRoot:h,layoutCrossfade:g}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:L1(e.parent)),e.projection.setOptions({layoutId:a,layout:l,alwaysMeasureLayout:!!u||d&&Ea(d),visualElement:e,animationType:typeof l=="string"?l:"both",initialPromotionConfig:i,crossfade:g,layoutScroll:f,layoutRoot:h})}function L1(e){if(e)return e.options.allowProjection!==!1?e.projection:L1(e.parent)}function op(e,{forwardMotionProps:t=!1}={},n,i){n&&J4(n);const a=xy(e)?b5:v5;function l(d,f){let h;const g={...D.useContext(w1),...d,layoutId:x5(d)},{isStatic:y}=g,v=n5(d),_=a(d,y);if(!y&&ey){A5();const S=O5(g);
vendor: 20,032 bytes, line 163
163h=S.MeasureLayout,v.visualElement=E5(e,_,g,i,S.ProjectionNode)}return T.jsxs(Fd.Provider,{value:v,children:[h&&v.visualElement?T.jsx(h,{visualElement:v.visualElement,...g}):null,p5(e,d,S5(_,v.visualElement,f),_,y,t)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=D.forwardRef(l);return u[_5]=e,u}function x5({layoutId:e}){const t=D.useContext(kA).id;return t&&e!==void 0?t+"-"+e:e}function A5(e,t){D.useContext(E1).strict}function O5(e){const{drag:t,layout:n}=$a;if(!t&&!n)return{};const i={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function C5(e,t){if(typeof Proxy>"u")return op;const n=new Map,i=(l,u)=>op(l,u,e,t),a=(l,u)=>i(l,u);return new Proxy(a,{get:(l,u)=>u==="create"?i:(n.has(u)||n.set(u,op(u,void 0,e,t)),n.get(u))})}function U1({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function R5({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function k5(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function lp(e){return e===void 0||e===1}function sg({scale:e,scaleX:t,scaleY:n}){return!lp(e)||!lp(t)||!lp(n)}function es(e){return sg(e)||I1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function I1(e){return Ow(e.x)||Ow(e.y)}function Ow(e){return e&&e!=="0%"}function pd(e,t,n){const i=e-n,a=t*i;return n+a}function Cw(e,t,n,i,a){return a!==void 0&&(e=pd(e,a,i)),pd(e,n,i)+t}function ag(e,t=0,n=1,i,a){e.min=Cw(e.min,t,n,i,a),e.max=Cw(e.max,t,n,i,a)}function P1(e,{x:t,y:n}){ag(e.x,t.translate,t.scale,t.originPoint),ag(e.y,n.translate,n.scale,n.originPoint)}const Rw=.999999999999,kw=1.0000000000001;function N5(e,t,n,i=!1){const a=n.length;if(!a)return;t.x=t.y=1;let l,u;for(let d=0;d<a;d++){l=n[d],u=l.projectionDelta;const{visualElement:f}=l.options;f&&f.props.style&&f.props.style.display==="contents"||(i&&l.options.layoutScroll&&l.scroll&&l!==l.root&&xa(e,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,P1(e,u)),i&&es(l.latestValues)&&xa(e,l.latestValues))}t.x<kw&&t.x>Rw&&(t.x=1),t.y<kw&&t.y>Rw&&(t.y=1)}function Ta(e,t){e.min=e.min+t,e.max=e.max+t}function Nw(e,t,n,i,a=.5){const l=et(e.min,e.max,a);ag(e,t,n,l,i)}function xa(e,t){Nw(e.x,t.x,t.scaleX,t.scale,t.originX),Nw(e.y,t.y,t.scaleY,t.scale,t.originY)}function B1(e,t){return U1(k5(e.getBoundingClientRect(),t))}function j5(e,t,n){const i=B1(e,n),{scroll:a}=t;return a&&(Ta(i.x,a.offset.x),Ta(i.y,a.offset.y)),i}const jw=()=>({translate:0,scale:1,origin:0,originPoint:0}),Aa=()=>({x:jw(),y:jw()}),Dw=()=>({min:0,max:0}),ut=()=>({x:Dw(),y:Dw()}),og={current:null},V1={current:!1};function D5(){if(V1.current=!0,!!ey)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>og.current=e.matches;e.addEventListener("change",t),t()}else og.current=!1}const M5=new WeakMap;function L5(e,t,n){for(const i in t){const a=t[i],l=n[i];if(Ut(a))e.addValue(i,a);else if(Ut(l))e.addValue(i,za(a,{owner:e}));else if(l!==a)if(e.hasValue(i)){const u=e.getValue(i);u.liveStyle===!0?u.jump(a):u.hasAnimated||u.set(a)}else{const u=e.getStaticValue(i);e.addValue(i,za(u!==void 0?u:a,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const Mw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class U5{scrapeMotionValuesFromProps(t,n,i){return{}}constructor({parent:t,props:n,presenceContext:i,reducedMotionConfig:a,blockInitialAnimation:l,visualState:u},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=gy,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const v=zt.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,Qe.render(this.render,!1,!0))};const{latestValues:f,renderState:h}=u;this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=d,this.blockInitialAnimation=!!l,this.isControllingVariants=Kd(n),this.isVariantNode=x1(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:g,...y}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in y){const _=y[v];f[v]!==void 0&&Ut(_)&&_.set(f[v])}}mount(t){this.current=t,M5.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),V1.current||D5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:og.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ei(this.notifyUpdate),Ei(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const i=no.has(t);i&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Qe.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),l&&l(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in $a){const n=$a[t];if(!n)continue;const{isEnabled:i,Feature:a}=n;if(!this.features[t]&&a&&i(this.props)&&(this.features[t]=new a(this)),this.features[t]){const l=this.features[t];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ut()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<Mw.length;i++){const a=Mw[i];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const l="on"+a,u=t[l];u&&(this.propEventSubscriptions[a]=this.on(a,u))}this.prevMotionValues=L5(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const i=this.values.get(t);n!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&n!==void 0&&(i=za(n===null?void 0:n,{owner:this}),this.addValue(t,i)),i}readValue(t,n){let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(NA(i)||DA(i))?i=parseFloat(i):!X4(i)&&Gn.test(n)&&(i=g1(t,n)),this.setBaseTarget(t,Ut(i)?i.get():i)),Ut(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const l=Ay(this.props,n,this.presenceContext?.custom);l&&(i=l[t])}if(n&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Ut(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new sy),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){by.render(this.render)}}class z1 extends U5{constructor(){super(...arguments),this.KeyframeResolver=I4}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:i}){delete n[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ut(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function $1(e,{style:t,vars:n},i,a){const l=e.style;let u;for(u in t)l[u]=t[u];a?.applyProjectionStyles(l,i);for(u in n)l.setProperty(u,n[u])}function I5(e){return window.getComputedStyle(e)}class P5 extends z1{constructor(){super(...arguments),this.type="html",this.renderInstance=$1}readValueFromInstance(t,n){if(no.has(n))return this.projection?.isProjecting?Jp(n):JV(t,n);{const i=I5(t),a=(ly(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return B1(t,n)}build(t,n,i){Ey(t,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,i){return Oy(t,n,i)}}const H1=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function B5(e,t,n,i){$1(e,t,void 0,i);for(const a in t.attrs)e.setAttribute(H1.has(a)?a:Cy(a),t.attrs[a])}class V5 extends z1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ut}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(no.has(n)){const i=p1(n);return i&&i.default||0}return n=H1.has(n)?n:Cy(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,i){return j1(t,n,i)}build(t,n,i){C1(t,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,n,i,a){B5(t,n,i,a)}mount(t){this.isSVGTag=k1(t.tagName),super.mount(t)}}const z5=(e,t)=>xy(e)?new V5(t):new P5(t,{allowProjection:e!==D.Fragment});function Na(e,t,n){const i=e.getProps();return Ay(i,t,n!==void 0?n:i.custom,e)}const lg=e=>Array.isArray(e);function $5(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,za(n))}function H5(e){return lg(e)?e[e.length-1]||0:e}function q5(e,t){const n=Na(e,t);let{transitionEnd:i={},transition:a={},...l}=n||{};l={...l,...i};for(const u in l){const d=H5(l[u]);$5(e,u,d)}}function F5(e){return!!(Ut(e)&&e.add)}function ug(e,t){const n=e.getValue("willChange");if(F5(n))return n.add(t);if(!n&&wi.WillChange){const i=new wi.WillChange("auto");e.addValue("willChange",i),i.add(t)}}function q1(e){return e.props[D1]}const G5=e=>e!==null;function K5(e,{repeat:t,repeatType:n="loop"},i){const a=e.filter(G5),l=t&&n!=="loop"&&t%2===1?0:a.length-1;return a[l]}const Y5={type:"spring",stiffness:500,damping:25,restSpeed:10},X5=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),W5={type:"keyframes",duration:.8},J5={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Q5=(e,{keyframes:t})=>t.length>2?W5:no.has(e)?e.startsWith("scale")?X5(t[1]):Y5:J5;function Z5({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:a,repeat:l,repeatType:u,repeatDelay:d,from:f,elapsed:h,...g}){return!!Object.keys(g).length}const Ry=(e,t,n,i={},a,l)=>u=>{const d=yy(i,e)||{},f=d.delay||i.delay||0;let{elapsed:h=0}=i;h=h-Fn(f);const g={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-h,onUpdate:v=>{t.set(v),d.onUpdate&&d.onUpdate(v)},onComplete:()=>{u(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:l?void 0:a};Z5(d)||Object.assign(g,Q5(e,g)),g.duration&&(g.duration=Fn(g.duration)),g.repeatDelay&&(g.repeatDelay=Fn(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let y=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(ng(g),g.delay===0&&(y=!0)),(wi.instantAnimations||wi.skipAnimations)&&(y=!0,ng(g),g.delay=0),g.allowFlatten=!d.type&&!d.ease,y&&!l&&t.get()!==void 0){const v=K5(g.keyframes,d);if(v!==void 0){Qe.update(()=>{g.onUpdate(v),g.onComplete()});return}}return d.isSync?new hd(g):new S4(g)};function ez({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function F1(e,t,{delay:n=0,transitionOverride:i,type:a}={}){let{transition:l=e.getDefaultTransition(),transitionEnd:u,...d}=t;i&&(l=i);const f=[],h=a&&e.animationState&&e.animationState.getState()[a];for(const g in d){const y=e.getValue(g,e.latestValues[g]??null),v=d[g];if(v===void 0||h&&ez(h,g))continue;const _={delay:n,...yy(l||{},g)},S=y.get();if(S!==void 0&&!y.isAnimating&&!Array.isArray(v)&&v===S&&!_.velocity)continue;let E=!1;if(window.MotionHandoffAnimation){const A=q1(e);if(A){const N=window.MotionHandoffAnimation(A,g,Qe);N!==null&&(_.startTime=N,E=!0)}}ug(e,g),y.start(Ry(g,y,v,e.shouldReduceMotion&&f1.has(g)?{type:!1}:_,e,E));const x=y.animation;x&&f.push(x)}return u&&Promise.all(f).then(()=>{Qe.update(()=>{u&&q5(e,u)})}),f}function G1(e,t,n,i=0,a=1){const l=Array.from(e).sort((h,g)=>h.sortNodePosition(g)).indexOf(t),u=e.size,d=(u-1)*i;return typeof n=="function"?n(l,u):a===1?l*i:d-l*i}function cg(e,t,n={}){const i=Na(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const l=i?()=>Promise.all(F1(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:g,staggerDirection:y}=a;return tz(e,t,f,h,g,y,n)}:()=>Promise.resolve(),{when:d}=a;if(d){const[f,h]=d==="beforeChildren"?[l,u]:[u,l];return f().then(()=>h())}else return Promise.all([l(),u(n.delay)])}function tz(e,t,n=0,i=0,a=0,l=1,u){const d=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),d.push(cg(f,t,{...u,delay:n+(typeof i=="function"?0:i)+G1(e.variantChildren,f,i,a,l)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(d)}function nz(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const a=t.map(l=>cg(e,l,n));i=Promise.all(a)}else if(typeof t=="string")i=cg(e,t,n);else{const a=typeof t=="function"?Na(e,t,n.custom):t;i=Promise.all(F1(e,a,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}function K1(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}const rz=wy.length;function Y1(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Y1(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<rz;n++){const i=wy[n],a=e.props[i];(Nl(a)||a===!1)&&(t[i]=a)}return t}const iz=[...Sy].reverse(),sz=Sy.length;function az(e){return t=>Promise.all(t.map(({animation:n,options:i})=>nz(e,n,i)))}function oz(e){let t=az(e),n=Lw(),i=!0;const a=f=>(h,g)=>{const y=Na(e,g,f==="exit"?e.presenceContext?.custom:void 0);if(y){const{transition:v,transitionEnd:_,...S}=y;h={...h,...S,..._}}return h};function l(f){t=f(e)}function u(f){const{props:h}=e,g=Y1(e.parent)||{},y=[],v=new Set;let _={},S=1/0;for(let x=0;x<sz;x++){const A=iz[x],N=n[A],R=h[A]!==void 0?h[A]:g[A],M=Nl(R),$=A===f?N.isActive:null;$===!1&&(S=x);let B=R===g[A]&&R!==h[A]&&M;if(B&&i&&e.manuallyAnimateOnMount&&(B=!1),N.protectedKeys={..._},!N.isActive&&$===null||!R&&!N.prevProp||Gd(R)||typeof R=="boolean")continue;const G=lz(N.prevProp,R);let X=G||A===f&&N.isActive&&!B&&M||x>S&&M,se=!1;const te=Array.isArray(R)?R:[R];let he=te.reduce(a(A),{});$===!1&&(he={});const{prevResolvedValues:Le={}}=N,vt={...Le,...he},Ke=K=>{X=!0,v.has(K)&&(se=!0,v.delete(K)),N.needsAnimating[K]=!0;const J=e.getValue(K);J&&(J.liveStyle=!1)};for(const K in vt){const J=he[K],ue=Le[K];if(_.hasOwnProperty(K))continue;let fe=!1;lg(J)&&lg(ue)?fe=!K1(J,ue):fe=J!==ue,fe?J!=null?Ke(K):v.add(K):J!==void 0&&v.has(K)?Ke(K):N.protectedKeys[K]=!0}N.prevProp=R,N.prevResolvedValues=he,N.isActive&&(_={..._,...he}),i&&e.blockInitialAnimation&&(X=!1);const Ye=B&&G;X&&(!Ye||se)&&y.push(...te.map(K=>{const J={type:A};if(typeof K=="string"&&i&&!Ye&&e.manuallyAnimateOnMount&&e.parent){const{parent:ue}=e,fe=Na(ue,K);if(ue.enteringChildren&&fe){const{delayChildren:C}=fe.transition||{};J.delay=G1(ue.enteringChildren,e,C)}}return{animation:K,options:J}}))}if(v.size){const x={};if(typeof h.initial!="boolean"){const A=Na(e,Array.isArray(h.initial)?h.initial[0]:h.initial);A&&A.transition&&(x.transition=A.transition)}v.forEach(A=>{const N=e.getBaseTarget(A),R=e.getValue(A);R&&(R.liveStyle=!0),x[A]=N??null}),y.push({animation:x})}let E=!!y.length;return i&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(E=!1),i=!1,E?t(y):Promise.resolve()}function d(f,h){if(n[f].isActive===h)return Promise.resolve();e.variantChildren?.forEach(y=>y.animationState?.setActive(f,h)),n[f].isActive=h;const g=u(f);for(const y in n)n[y].protectedKeys={};return g}return{animateChanges:u,setActive:d,setAnimateFunction:l,getState:()=>n,reset:()=>{n=Lw()}}}function lz(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!K1(t,e):!1}function Xi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Lw(){return{animate:Xi(!0),whileInView:Xi(),whileHover:Xi(),whileTap:Xi(),whileDrag:Xi(),whileFocus:Xi(),exit:Xi()}}class Ai{constructor(t){this.isMounted=!1,this.node=t}update(){}}class uz extends Ai{constructor(t){super(t),t.animationState||(t.animationState=oz(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Gd(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let cz=0;class dz extends Ai{constructor(){super(...arguments),this.id=cz++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};
vendor: 5,155 bytes, line 163
163n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const fz={animation:{Feature:uz},exit:{Feature:dz}};function Dl(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}function tu(e){return{point:{x:e.pageX,y:e.pageY}}}const hz=e=>t=>_y(t)&&e(t,tu(t));function yl(e,t,n,i){return Dl(e,t,hz(n),i)}const X1=1e-4,mz=1-X1,pz=1+X1,W1=.01,gz=0-W1,yz=0+W1;function $t(e){return e.max-e.min}function vz(e,t,n){return Math.abs(e-t)<=n}function Uw(e,t,n,i=.5){e.origin=i,e.originPoint=et(t.min,t.max,e.origin),e.scale=$t(n)/$t(t),e.translate=et(n.min,n.max,e.origin)-e.originPoint,(e.scale>=mz&&e.scale<=pz||isNaN(e.scale))&&(e.scale=1),(e.translate>=gz&&e.translate<=yz||isNaN(e.translate))&&(e.translate=0)}function vl(e,t,n,i){Uw(e.x,t.x,n.x,i?i.originX:void 0),Uw(e.y,t.y,n.y,i?i.originY:void 0)}function Iw(e,t,n){e.min=n.min+t.min,e.max=e.min+$t(t)}function bz(e,t,n){Iw(e.x,t.x,n.x),Iw(e.y,t.y,n.y)}function Pw(e,t,n){e.min=t.min-n.min,e.max=e.min+$t(t)}function bl(e,t,n){Pw(e.x,t.x,n.x),Pw(e.y,t.y,n.y)}function Cn(e){return[e("x"),e("y")]}const J1=({current:e})=>e?e.ownerDocument.defaultView:null,Bw=(e,t)=>Math.abs(e-t);function _z(e,t){const n=Bw(e.x,t.x),i=Bw(e.y,t.y);return Math.sqrt(n**2+i**2)}class Q1{constructor(t,n,{transformPagePoint:i,contextWindow:a=window,dragSnapToOrigin:l=!1,distanceThreshold:u=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=cp(this.lastMoveEventInfo,this.history),_=this.startEvent!==null,S=_z(v.offset,{x:0,y:0})>=this.distanceThreshold;if(!_&&!S)return;const{point:E}=v,{timestamp:x}=jt;this.history.push({...E,timestamp:x});const{onStart:A,onMove:N}=this.handlers;_||(A&&A(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),N&&N(this.lastMoveEvent,v)},this.handlePointerMove=(v,_)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=up(_,this.transformPagePoint),Qe.update(this.updatePoint,!0)},this.handlePointerUp=(v,_)=>{this.end();const{onEnd:S,onSessionEnd:E,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const A=cp(v.type==="pointercancel"?this.lastMoveEventInfo:up(_,this.transformPagePoint),this.history);this.startEvent&&S&&S(v,A),E&&E(v,A)},!_y(t))return;this.dragSnapToOrigin=l,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=u,this.contextWindow=a||window;const d=tu(t),f=up(d,this.transformPagePoint),{point:h}=f,{timestamp:g}=jt;this.history=[{...h,timestamp:g}];const{onSessionStart:y}=n;y&&y(t,cp(f,this.history)),this.removeListeners=Ql(yl(this.contextWindow,"pointermove",this.handlePointerMove),yl(this.contextWindow,"pointerup",this.handlePointerUp),yl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ei(this.updatePoint)}}function up(e,t){return t?{point:t(e.point)}:e}function Vw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function cp({point:e},t){return{point:e,delta:Vw(e,Z1(t)),offset:Vw(e,Sz(t)),velocity:wz(t,.1)}}function Sz(e){return e[0]}function Z1(e){return e[e.length-1]}function wz(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const a=Z1(e);for(;n>=0&&(i=e[n],!(a.timestamp-i.timestamp>Fn(t)));)n--;if(!i)return{x:0,y:0};const l=jn(a.timestamp-i.timestamp);if(l===0)return{x:0,y:0};const u={x:(a.x-i.x)/l,y:(a.y-i.y)/l};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function Ez(e,{min:t,max:n},i){return t!==void 0&&e<t?e=i?et(t,e,i.min):Math.max(e,t):n!==void 0&&e>n&&(e=i?et(n,e,i.max):Math.min(e,n)),e}function zw(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Tz(e,{top:t,left:n,bottom:i,right:a}){return{x:zw(e.x,n,a),y:zw(e.y,t,i)}}function $w(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function xz(e,t){return{x:$w(e.x,t.x),y:$w(e.y,t.y)}}function Az(e,t){let n=.5;const i=$t(e),a=$t(t);return a>i?n=Rl(t.min,t.max-i,e.min):i>a&&(n=Rl(e.min,e.max-a,t.min)),ar(0,1,n)}function Oz(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const dg=.35;function Cz(e=dg){return e===!1?e=0:e===!0&&(e=dg),{x:Hw(e,"left","right"),y:Hw(e,"top","bottom")}}function Hw(e,t,n){return{min:qw(e,t),max:qw(e,n)}}function qw(e,t){return typeof e=="number"?e:e[t]||0}const Rz=new WeakMap;class kz{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ut(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:i}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const l=y=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(tu(y).point)},u=(y,v)=>{const{drag:_,dragPropagation:S,onDragStart:E}=this.getProps();if(_&&!S&&(this.openDragLock&&this.openDragLock(),this.openDragLock=V4
vendor: 7,668 bytes, line 163
163(_),!this.openDragLock))return;this.latestPointerEvent=y,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Cn(A=>{let N=this.getAxisMotionValue(A).get()||0;if(rr.test(N)){const{projection:R}=this.visualElement;if(R&&R.layout){const M=R.layout.layoutBox[A];M&&(N=$t(M)*(parseFloat(N)/100))}}this.originPoint[A]=N}),E&&Qe.postRender(()=>E(y,v)),ug(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},d=(y,v)=>{this.latestPointerEvent=y,this.latestPanInfo=v;const{dragPropagation:_,dragDirectionLock:S,onDirectionLock:E,onDrag:x}=this.getProps();if(!_&&!this.openDragLock)return;const{offset:A}=v;if(S&&this.currentDirection===null){this.currentDirection=Nz(A),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",v.point,A),this.updateAxis("y",v.point,A),this.visualElement.render(),x&&x(y,v)},f=(y,v)=>{this.latestPointerEvent=y,this.latestPanInfo=v,this.stop(y,v),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>Cn(y=>this.getAnimationState(y)==="paused"&&this.getAxisMotionValue(y).animation?.play()),{dragSnapToOrigin:g}=this.getProps();this.panSession=new Q1(t,{onSessionStart:l,onStart:u,onMove:d,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:i,contextWindow:J1(this.visualElement)})}stop(t,n){const i=t||this.latestPointerEvent,a=n||this.latestPanInfo,l=this.isDragging;if(this.cancel(),!l||!a||!i)return;const{velocity:u}=a;this.startAnimation(u);const{onDragEnd:d}=this.getProps();d&&Qe.postRender(()=>d(i,a))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,i){const{drag:a}=this.getProps();if(!i||!jc(t,a,this.currentDirection))return;const l=this.getAxisMotionValue(t);let u=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(u=Ez(u,this.constraints[t],this.elastic[t])),l.set(u)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,a=this.constraints;t&&Ea(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=Tz(i.layoutBox,t):this.constraints=!1,this.elastic=Cz(n),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Cn(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=Oz(i.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ea(t))return!1;const i=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const l=j5(i,a.root,this.visualElement.getTransformPagePoint());let u=xz(a.layout.layoutBox,l);if(n){const d=n(R5(u));this.hasMutatedConstraints=!!d,d&&(u=U1(d))}return u}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:a,dragTransition:l,dragSnapToOrigin:u,onDragTransitionEnd:d}=this.getProps(),f=this.constraints||{},h=Cn(g=>{if(!jc(g,n,this.currentDirection))return;let y=f&&f[g]||{};u&&(y={min:0,max:0});const v=a?200:1e6,_=a?40:1e7,S={type:"inertia",velocity:i?t[g]:0,bounceStiffness:v,bounceDamping:_,timeConstant:750,restDelta:1,restSpeed:10,...l,...y};return this.startAxisValueAnimation(g,S)});return Promise.all(h).then(d)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return ug(this.visualElement,t),i.start(Ry(t,i,0,n,this.visualElement,!1))}stopAnimation(){Cn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Cn(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),a=i[n];return a||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){Cn(n=>{const{drag:i}=this.getProps();if(!jc(n,i,this.currentDirection))return;const{projection:a}=this.visualElement,l=this.getAxisMotionValue(n);if(a&&a.layout){const{min:u,max:d}=a.layout.layoutBox[n];l.set(t[n]-et(u,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Ea(n)||!i||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Cn(u=>{const d=this.getAxisMotionValue(u);if(d&&this.constraints!==!1){const f=d.get();a[u]=Az({min:f,max:f},this.constraints[u])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Cn(u=>{if(!jc(u,t,null))return;const d=this.getAxisMotionValue(u),{min:f,max:h}=this.constraints[u];d.set(et(f,h,a[u]))})}addListeners(){if(!this.visualElement.current)return;Rz.set(this.visualElement,this);const t=this.visualElement.current,n=yl(t,"pointerdown",f=>{const{drag:h,dragListener:g=!0}=this.getProps();h&&g&&this.start(f)}),i=()=>{const{dragConstraints:f}=this.getProps();Ea(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,l=a.addEventListener("measure",i);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),Qe.read(i);const u=Dl(window,"resize",()=>this.scalePositionWithinConstraints()),d=a.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:h})=>{this.isDragging&&h&&(Cn(g=>{const y=this.getAxisMotionValue(g);y&&(this.originPoint[g]+=f[g].translate,y.set(y.get()+f[g].translate))}),this.visualElement.render())}));return()=>{u(),n(),l(),d&&d()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:a=!1,dragConstraints:l=!1,dragElastic:u=dg,dragMomentum:d=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:a,dragConstraints:l,dragElastic:u,dragMomentum:d}}}function jc(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Nz(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class jz extends Ai{constructor(t){super(t),this.removeGroupControls=Dn,this.removeListeners=Dn,this.controls=new kz(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Dn}unmount(){this.removeGroupControls(),this.removeListeners()}}const Fw=e=>(t,n)=>{e&&Qe.postRender(()=>e(t,n))};class Dz extends Ai{constructor(){super(...arguments),this.removePointerDownListener=Dn}onPointerDown(t){this.session=new Q1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:J1(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:i,onPanEnd:a}=this.node.getProps();return{onSessionStart:Fw(t),onStart:Fw(n),onMove:i,onEnd:(l,u)=>{delete this.session,a&&Qe.postRender(()=>a(l,u))}}}mount(){this.removePointerDownListener=yl(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const nd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Gw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ul={correct:(e,t)=>
vendor: 5,273 bytes, line 163
163{if(!t.target)return e;if(typeof e=="string")if(W.test(e))e=parseFloat(e);else return e;const n=Gw(e,t.target.x),i=Gw(e,t.target.y);return`${n}% ${i}%`}},Mz={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,a=Gn.parse(e);if(a.length>5)return i;const l=Gn.createTransformer(e),u=typeof a[0]!="number"?1:0,d=n.x.scale*t.x,f=n.y.scale*t.y;a[0+u]/=d,a[1+u]/=f;const h=et(d,f,.5);return typeof a[2+u]=="number"&&(a[2+u]/=h),typeof a[3+u]=="number"&&(a[3+u]/=h),l(a)}};let dp=!1;class Lz extends D.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:a}=this.props,{projection:l}=t;r5(Uz),l&&(n.group&&n.group.add(l),i&&i.register&&a&&i.register(l),dp&&l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,onExitComplete:()=>this.safeToRemove()})),nd.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:a,isPresent:l}=this.props,{projection:u}=i;return u&&(u.isPresent=l,dp=!0,a||t.layoutDependency!==n||n===void 0||t.isPresent!==l?u.willUpdate():this.safeToRemove(),t.isPresent!==l&&(l?u.promote():u.relegate()||Qe.postRender(()=>{const d=u.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),by.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:a}=t;dp=!0,a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),i&&i.deregister&&i.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function eO(e){const[t,n]=W4(),i=D.useContext(kA);return T.jsx(Lz,{...e,layoutGroup:i,switchLayoutGroup:D.useContext(M1),isPresent:t,safeToRemove:n})}const Uz={borderRadius:{...ul,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ul,borderTopRightRadius:ul,borderBottomLeftRadius:ul,borderBottomRightRadius:ul,boxShadow:Mz};function Iz(e,t,n){const i=Ut(e)?e:za(e);return i.start(Ry("",i,t,n)),i.animation}const Pz=(e,t)=>e.depth-t.depth;class Bz{constructor(){this.children=[],this.isDirty=!1}add(t){ny(this.children,t),this.isDirty=!0}remove(t){ry(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Pz),this.isDirty=!1,this.children.forEach(t)}}function Vz(e,t){const n=zt.now(),i=({timestamp:a})=>{const l=a-n;l>=t&&(Ei(i),e(l-t))};return Qe.setup(i,!0),()=>Ei(i)}const tO=["TopLeft","TopRight","BottomLeft","BottomRight"],zz=tO.length,Kw=e=>typeof e=="string"?parseFloat(e):e,Yw=e=>typeof e=="number"||W.test(e);function $z(e,t,n,i,a,l){a?(e.opacity=et(0,n.opacity??1,Hz(i)),e.opacityExit=et(t.opacity??1,0,qz(i))):l&&(e.opacity=et(t.opacity??1,n.opacity??1,i));for(let u=0;u<zz;u++){const d=`border${tO[u]}Radius`;let f=Xw(t,d),h=Xw(n,d);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||Yw(f)===Yw(h)?(e[d]=Math.max(et(Kw(f),Kw(h),i),0),(rr.test(h)||rr.test(f))&&(e[d]+="%")):e[d]=h}(t.rotate||n.rotate)&&(e.rotate=et(t.rotate||0,n.rotate||0,i))}function Xw(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Hz=nO(0,.5,$A),qz=nO(.5,.95,Dn);function nO(e,t,n){return i=>i<e?0:i>t?1:n(Rl(e,t,i))}function Ww(e,t){e.min=t.min,e.max=t.max}function On(e,t){Ww(e.x,t.x),Ww(e.y,t.y)}function Jw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Qw(e,t,n,i,a){return e-=t,e=pd(e,1/n,i),a!==void 0&&(e=pd(e,1/a,i)),e}function Fz(e,t=0,n=1,i=.5,a,l=e,u=e){if(rr.test(t)&&(t=parseFloat(t),t=et(u.min,u.max,t/100)-u.min),typeof t!="number")return;let d=et(l.min,l.max,i);e===l&&(d-=t),e.min=Qw(e.min,t,n,d,a),e.max=Qw(e.max,t,n,d,a)}function Zw(e,t,[n,i,a],l,u){Fz(e,t[n],t[i],t[a],t.scale,l,u)}const Gz=["x","scaleX","originX"],Kz=["y","scaleY","originY"];function eE(e,t,n,i){Zw(e.x,t,Gz,n?n.x:void 0,i?i.x:void 0),Zw(e.y,t,Kz,n?n.y:void 0,i?i.y:void 0)}function tE(e){return e.translate===0&&e.scale===1}function rO(e){return tE(e.x)&&tE(e.y)}function nE(e,t){return e.min===t.min&&e.max===t.max}function Yz(e,t){return nE(e.x,t.x)&&nE(e.y,t.y)}function rE(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function iO(e,t){return rE(e.x,t.x)&&rE(e.y,t.y)}function iE(e){return $t(e.x)/$t(e.y)}function sE(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Xz{constructor(){this.members=[]}add(t){ny(this.members,t),t.scheduleRender()}remove(t){if(ry(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(a=>t===a);if(n===0)return!1;let i;for(let a=n;a>=0;a--){const l=this.members[a];if(l.isPresent!==!1){i=l;break}}return i?(this.promote(i),!0):!1}promote(t,n){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}
vendor: 9,428 bytes, line 163
163=t.options;a===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:i}=t;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Wz(e,t,n){let i="";const a=e.x.translate/t.x,l=e.y.translate/t.y,u=n?.z||0;if((a||l||u)&&(i=`translate3d(${a}px, ${l}px, ${u}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:g,rotateX:y,rotateY:v,skewX:_,skewY:S}=n;h&&(i=`perspective(${h}px) ${i}`),g&&(i+=`rotate(${g}deg) `),y&&(i+=`rotateX(${y}deg) `),v&&(i+=`rotateY(${v}deg) `),_&&(i+=`skewX(${_}deg) `),S&&(i+=`skewY(${S}deg) `)}const d=e.x.scale*t.x,f=e.y.scale*t.y;return(d!==1||f!==1)&&(i+=`scale(${d}, ${f})`),i||"none"}const fp=["","X","Y","Z"],Jz=1e3;let Qz=0;function hp(e,t,n,i){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),i&&(i[e]=0))}function sO(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=q1(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:l}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Qe,!(a||l))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&sO(i)}function aO({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:a}){return class{constructor(u={},d=t?.()){this.id=Qz++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(t$),this.nodes.forEach(s$),this.nodes.forEach(a$),this.nodes.forEach(n$)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new Bz)}addEventListener(u,d){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new sy),this.eventHandlers.get(u).add(d)}notifyListeners(u,...d){const f=this.eventHandlers.get(u);f&&f.notify(...d)}hasListeners(u){return this.eventHandlers.has(u)}mount(u){if(this.instance)return;this.isSVG=S1(u)&&!K4(u),this.instance=u;const{layoutId:d,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||d)&&(this.isLayoutDirty=!0),e){let g,y=0;const v=()=>this.root.updateBlockedByResize=!1;Qe.read(()=>{y=window.innerWidth}),e(u,()=>{const _=window.innerWidth;_!==y&&(y=_,this.root.updateBlockedByResize=!0,g&&g(),g=Vz(v,250),nd.hasAnimatedSinceResize&&(nd.hasAnimatedSinceResize=!1,this.nodes.forEach(lE)))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&h&&(d||f)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:y,hasRelativeLayoutChanged:v,layout:_})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||h.getDefaultTransition()||d$,{onLayoutAnimationStart:E,onLayoutAnimationComplete:x}=h.getProps(),A=!this.targetLayout||!iO(this.targetLayout,_),N=!y&&v;if(this.options.layoutRoot||this.resumeFrom||N||y&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const R={...yy(S,"layout"),onPlay:E,onComplete:x};(h.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R),this.setAnimationOrigin(g,N)}else y||lE(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=_})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ei(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(o$),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&sO(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const y=this.path[g];y.shouldResetTransform=!0,y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:d,layout:f}=this.options;if(d===void 0&&!f)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(aE);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(oE);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(i$),this.nodes.forEach(Zz),this.nodes.forEach(e$)):this.nodes.forEach(oE),this.clearAllSnapshots();const d=zt.now();jt.delta=ar(0,1e3/60,d-jt.timestamp),jt.timestamp=d,jt.isProcessing=!0,ep.update.process(jt),ep.preRender.process(jt),ep.render.process(jt),jt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,by.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(r$),this.sharedNodes.forEach(l$)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Qe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Qe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!$t(this.snapshot.measuredBox.x)&&!$t(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ut(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(d=!1),d&&this.instance){const f=i(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!a)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!rO(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,g=h!==this.prevTransformTemplateValue;u&&this.instance&&(d||es(this.latestValues)||g)&&(a(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const d=this.measurePageBox();let f=this.removeElementScroll(d);return u&&(f=this.removeTransform(f)),f$(f),{animationId:this.root.animationId,measuredBox:d,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:u}=this.options;if(!u)return ut();const d=u.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(h$))){const{scroll:h}=this.root;h&&(Ta(d.x,h.offset.x),Ta(d.y,h.offset.y))}return d}removeElementScroll(u){const d=ut();if(On(d,u),this.scroll?.wasRoot)return d;for(let f=0;f<this.path.length;f++){const h=this.path[f],{scroll:g,options:y}=h;h!==this.root&&g&&y.layoutScroll&&(g.wasRoot&&On(d,u),Ta(d.x,g.offset.x),Ta(d.y,g.offset.y))}return d}applyTransform(u,d=!1){const f=ut();On(f,u);for(let h=0;h<this.path.length;h++){const g=this.path[h];!d&&g.options.layoutScroll&&g.scroll&&g!==g.root&&xa(f,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),es(g.latestValues)&&xa(f,g.latestValues)}return es(this.latestValues)&&xa(f,this.latestValues),f}removeTransform(u){const d=ut();On(d,u);for(let f=0;f<this.path.length;f++){const h=this.path[f];
vendor: 7,924 bytes, line 163
163if(!h.instance||!es(h.latestValues))continue;sg(h.latestValues)&&h.updateSnapshot();const g=ut(),y=h.measurePageBox();On(g,y),eE(d,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,g)}return es(this.latestValues)&&eE(d,this.latestValues),d}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==jt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==d;if(!(u||f&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:y}=this.options;if(!(!this.layout||!(g||y))){if(this.resolvedRelativeTargetAt=jt.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ut(),this.relativeTargetOrigin=ut(),bl(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),On(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ut(),this.targetWithTransforms=ut()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),bz(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):On(this.target,this.layout.layoutBox),P1(this.target,this.targetDelta)):On(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ut(),this.relativeTargetOrigin=ut(),bl(this.relativeTargetOrigin,this.target,v.target),On(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||sg(this.parent.latestValues)||I1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const u=this.getLead(),d=!!this.resumingFrom||this!==u;let f=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(f=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===jt.timestamp&&(f=!1),f)return;const{layout:h,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||g))return;On(this.layoutCorrected,this.layout.layoutBox);const y=this.treeScale.x,v=this.treeScale.y;N5(this.layoutCorrected,this.treeScale,this.path,d),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=ut());const{target:_}=u;if(!_){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Jw(this.prevProjectionDelta.x,this.projectionDelta.x),Jw(this.prevProjectionDelta.y,this.projectionDelta.y)),vl(this.projectionDelta,this.layoutCorrected,_,this.latestValues),(this.treeScale.x!==y||this.treeScale.y!==v||!sE(this.projectionDelta.x,this.prevProjectionDelta.x)||!sE(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",_))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){if(this.options.visualElement?.scheduleRender(),u){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Aa(),this.projectionDelta=Aa(),this.projectionDeltaWithTransform=Aa()}setAnimationOrigin(u,d=!1){const f=this.snapshot,h=f?f.latestValues:{},g={...this.latestValues},y=Aa();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const v=ut(),_=f?f.source:void 0,S=this.layout?this.layout.source:void 0,E=_!==S,x=this.getStack(),A=!x||x.members.length<=1,N=!!(E&&!A&&this.options.crossfade===!0&&!this.path.some(c$));this.animationProgress=0;let R;this.mixTargetDelta=M=>{const $=M/1e3;uE(y.x,u.x,$),uE(y.y,u.y,$),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(bl(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),u$(this.relativeTarget,this.relativeTargetOrigin,v,$),R&&Yz(this.relativeTarget,R)&&(this.isProjectionDirty=!1),R||(R=ut()),On(R,this.relativeTarget)),E&&(this.animationValues=g,$z(g,h,this.latestValues,$,N,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=$},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ei(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Qe.update(()=>{nd.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=za(0)),this.currentAnimation=Iz(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),u.onUpdate&&u.onUpdate(d)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Jz),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:d,target:f,layout:h,latestValues:g}=u;if(!(!d||!f||!h)){if(this!==u&&this.layout&&h&&oO(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||ut();const y=$t(this.layout.layoutBox.x);f.x.min=u.target.x.min,f.x.max=f.x.min+y;const v=$t(this.layout.layoutBox.y);f.y.min=u.target.y.min,f.y.max=f.y.min+v}On(d,f),xa(d,g),vl(this.projectionDeltaWithTransform,this.layoutCorrected,d,g)}}registerSharedNode(u,d){this.sharedNodes.has(u)||this.sharedNodes.set(u,new Xz),this.sharedNodes.get(u).add(d);const h=d.options.initialPromotionConfig;d.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(d):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){const{layoutId:u}=this.options;
vendor: 4,583 bytes, line 163
163return u?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:u}=this.options;return u?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:d,preserveFollowOpacity:f}={}){const h=this.getStack();h&&h.promote(this,f),u&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let d=!1;const{latestValues:f}=u;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(d=!0),!d)return;const h={};f.z&&hp("z",u,h,this.animationValues);for(let g=0;g<fp.length;g++)hp(`rotate${fp[g]}`,u,h,this.animationValues),hp(`skew${fp[g]}`,u,h,this.animationValues);u.render();for(const g in h)u.setStaticValue(g,h[g]),this.animationValues&&(this.animationValues[g]=h[g]);u.scheduleRender()}applyProjectionStyles(u,d){if(!this.instance||this.isSVG)return;if(!this.isVisible){u.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,u.visibility="",u.opacity="",u.pointerEvents=td(d?.pointerEvents)||"",u.transform=f?f(this.latestValues,""):"none";return}const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){this.options.layoutId&&(u.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,u.pointerEvents=td(d?.pointerEvents)||""),this.hasProjected&&!es(this.latestValues)&&(u.transform=f?f({},""):"none",this.hasProjected=!1);return}u.visibility="";const g=h.animationValues||h.latestValues;this.applyTransformsToTarget();let y=Wz(this.projectionDeltaWithTransform,this.treeScale,g);f&&(y=f(g,y)),u.transform=y;const{x:v,y:_}=this.projectionDelta;u.transformOrigin=`${v.origin*100}% ${_.origin*100}% 0`,h.animationValues?u.opacity=h===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:u.opacity=h===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const S in jl){if(g[S]===void 0)continue;const{correct:E,applyTo:x,isCSSVariable:A}=jl[S],N=y==="none"?g[S]:E(g[S],h);if(x){const R=x.length;for(let M=0;M<R;M++)u[x[M]]=N}else A?this.options.visualElement.renderState.vars[S]=N:u[S]=N}this.options.layoutId&&(u.pointerEvents=h===this?td(d?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>u.currentAnimation?.stop()),this.root.nodes.forEach(aE),this.root.sharedNodes.clear()}}}function Zz(e){e.updateLayout()}function e$(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=e.layout,{animationType:a}=e.options,l=t.source!==e.layout.source;a==="size"?Cn(g=>{const y=l?t.measuredBox[g]:t.layoutBox[g],v=$t(y);y.min=n[g].min,y.max=y.min+v}):oO(a,t.layoutBox,n)&&Cn(g=>{const y=l?t.measuredBox[g]:t.layoutBox[g],v=$t(n[g]);y.max=y.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+v)});const u=Aa();vl(u,n,t.layoutBox);const d=Aa();l?vl(d,e.applyTransform(i,!0),t.measuredBox):vl(d,n,t.layoutBox);const f=!rO(u);let h=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:y,layout:v}=g;if(y&&v){const _=ut();bl(_,t.layoutBox,y.layoutBox);const S=ut();bl(S,n,v.layoutBox),iO(_,S)||(h=!0),g.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=_,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:d,layoutDelta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function t$(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function n$(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function r$(e){e.clearSnapshot()}function aE(e){e.clearMeasurements()}function oE(e){e.isLayoutDirty=!1}function i$(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function lE(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function s$(e){e.resolveTargetDelta()}function a$(e){e.calcProjection()}
vendor: 5,929 bytes, line 163
163function o$(e){e.resetSkewAndRotation()}function l$(e){e.removeLeadSnapshot()}function uE(e,t,n){e.translate=et(t.translate,0,n),e.scale=et(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function cE(e,t,n,i){e.min=et(t.min,n.min,i),e.max=et(t.max,n.max,i)}function u$(e,t,n,i){cE(e.x,t.x,n.x,i),cE(e.y,t.y,n.y,i)}function c$(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const d$={duration:.45,ease:[.4,0,.1,1]},dE=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),fE=dE("applewebkit/")&&!dE("chrome/")?Math.round:Dn;function hE(e){e.min=fE(e.min),e.max=fE(e.max)}function f$(e){hE(e.x),hE(e.y)}function oO(e,t,n){return e==="position"||e==="preserve-aspect"&&!vz(iE(t),iE(n),.2)}function h$(e){return e!==e.root&&e.scroll?.wasRoot}const m$=aO({attachResizeListener:(e,t)=>Dl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),mp={current:void 0},lO=aO({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!mp.current){const e=new m$({});e.mount(window),e.setOptions({layoutScroll:!0}),mp.current=e}return mp.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),p$={pan:{Feature:Dz},drag:{Feature:jz,ProjectionNode:lO,MeasureLayout:eO}};function mE(e,t,n){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,l=i[a];l&&Qe.postRender(()=>l(t,tu(t)))}class g$ extends Ai{mount(){const{current:t}=this.node;t&&(this.unmount=$4(t,(n,i)=>(mE(this.node,i,"Start"),a=>mE(this.node,a,"End"))))}unmount(){}}class y$ extends Ai{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ql(Dl(this.node.current,"focus",()=>this.onFocus()),Dl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function pE(e,t,n){const{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),l=i[a];l&&Qe.postRender(()=>l(t,tu(t)))}class v$ extends Ai{mount(){const{current:t}=this.node;t&&(this.unmount=G4(t,(n,i)=>(pE(this.node,i,"Start"),(a,{success:l})=>pE(this.node,a,l?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const fg=new WeakMap,pp=new WeakMap,b$=e=>{const t=fg.get(e.target);t&&t(e)},_$=e=>{e.forEach(b$)};function S$({root:e,...t}){const n=e||document;pp.has(n)||pp.set(n,{});const i=pp.get(n),a=JSON.stringify(t);return i[a]||(i[a]=new IntersectionObserver(_$,{root:e,...t})),i[a]}function w$(e,t,n){const i=S$(t);return fg.set(e,n),i.observe(e),()=>{fg.delete(e),i.unobserve(e)}}const E$={some:0,all:1};class T$ extends Ai{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:i,amount:a="some",once:l}=t,u={root:n?n.current:void 0,rootMargin:i,threshold:typeof a=="number"?a:E$[a]},d=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,l&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:g,onViewportLeave:y}=this.node.getProps(),v=h?g:y;v&&v(f)};return w$(this.node.current,u,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(x$(t,n))&&this.startObserver()}unmount(){}}function x$({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const A$={inView:{Feature:T$},tap:{Feature:v$},focus:{Feature:y$},hover:{Feature:g$}},O$={layout:{ProjectionNode:lO,MeasureLayout:eO}},C$={...fz,...A$,...p$,...O$},ir=C5(C$,z5),ja={"hero.field":"https://images.remixer.ai/ai/2463428/hero/diverse-group-running-on-outdoor-track-at-golden-hour-warm-cinematic-light-dark-moody-background","pillars.kids":"https://images.remixer.ai/ai/2463428/content/group-of-children-laughing-during-after-school-basketball-clinic-warm-natural-light","pillars.lifetime":"https://images.remixer.ai/ai/2463428/content/elderly-adults-playing-walking-soccer-on-grass-field-candid-documentary-photo","pillars.belonging":"https://images.remixer.ai/ai/2463428/content/young-adults-in-their-20s-and-30s-cheering-at-nba-game-courtside-excited-crowd-arena-lights","story.portrait":"https://images.remixer.ai/ai/2463428/portrait/older-woman-coach-smiling-on-running-track-warm-soft-light-documentary","mission.field":"https://images.remixer.ai/ai/2463428/hero/community-baseball-field-at-golden-hour-cinematic-wide-shot-warm-light","programs.opportunity":"https://images.remixer.ai/ai/2463428/content/elderly-person-and-youth-arriving-at-stadium-entrance-smiling-warm-candid-documentary","programs.play":"https://images.remixer.ai/ai/2463428/content/kids-playing-baseball-and-softball-on-sunny-outdoor-diamond-action-candid-documentary","programs.warriors":"https://images.remixer.ai/ai/2463428/content/dedicated-community-workers-smiling-together-outside-local-charity-office-warm-candid-documentary","programs.youth":"https://images.remixer.ai/ai/2463428/content/young-kids-running-drills-basketball-court-action-photo-documentary","programs.teen":"https://images.remixer.ai/ai/2463428/content/teenage-athletes-huddled-together-on-soccer-field-determination","programs.adaptive":"https://images.remixer.ai/ai/2463428/content/wheelchair-basketball-player
163-shooting-on-indoor-court-action-shot","programs.adult":"https://images.remixer.ai/ai/2463428/content/adults-playing-pickleball-on-outdoor-court-evening-light","programs.senior":"https://images.remixer.ai/ai/2463428/content/seniors-playing-table-tennis-in-community-center-candid","programs.coach":"https://images.remixer.ai/ai/2463428/content/coach-clipboard-talking-to-youth-team-on-sideline-documentary","impact.field":"https://images.remixer.ai/ai/2463428/hero/empty-running-track-stadium-at-dawn-cinematic-wide-shot","stories.s1":"https://images.remixer.ai/ai/2463428/portrait/latina-mother-with-young-son-smiling-on-basketball-court-warm-light","stories.s2":"https://images.remixer.ai/ai/2463428/portrait/older-african-american-man-smiling-on-pickleball-court-portrait","stories.s3":"https://images.remixer.ai/ai/2463428/portrait/young-south-asian-woman-in-wheelchair-on-basketball-court-portrait","involved.field":"https://images.remixer.ai/ai/2463428/hero/community-volunteers-setting-up-tables-on-grass-field-warm-light","donate.field":"https://images.remixer.ai/ai/2463428/hero/team-huddle-from-above-on-basketball-court-cinematic-light","contact.field":"https://images.remixer.ai/ai/2463428/hero/quiet-empty-gymnasium-with-light-streaming-through-windows"},R$="https://funraise.org/give/Opportunity-Through-Sport/0a1a968c-0600-4570-8f3c-bed9d7d4cda5/",k$=()=>{const{t:e}=Wn();return T.jsxs("section",{className:"relative min-h-screen flex items-center overflow-hidden bg-background",children:[T.jsxs("div",{className:"absolute inset-0 z-0",children:[T.jsx("img",{src:ja["hero.field"],"data-image-id":"hero.field",alt:"",className:"w-full h-full object-cover object-center opacity-30"}),T.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-background via-background/80 to-background/30"})]}),T.jsx("div",{className:"relative z-10 mx-auto max-w-[1320px] px-container-px w-full py-32 md:py-40",children:T.jsxs(ir.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7,ease:[.22,1,.36,1]},className:"max-w-[680px]",children:[T.jsx("p",{className:"inline-block text-accent text-[0.72rem] font-bold tracking-[0.22em] mb-8","data-text-id":"home.hero.badge",children:e("home.hero.badge")}),T.jsxs("h1",{className:"font-heading font-extrabold text-foreground text-[clamp(2.8rem,6vw,5rem)] leading-[1.02] tracking-[-0.02em]",children:[T.jsxs("span",{"data-text-id":"home.hero.title.part1",children:[e("home.hero.title.part1")," "]}),T.jsx("span",{className:"text-accent","data-text-id":"home.hero.title.highlight",children:e("home.hero.title.highlight")}),T.jsx("br",{}),T.jsx("span",{"data-text-id":"home.hero.title.part2",children:e("home.hero.title.part2")})]}),T.jsx("p",{className:"mt-7 text-foreground/70 text-[1.1rem] leading-relaxed max-w-[540px]","data-text-id":"home.hero.body",children:e("home.hero.body")}),T.jsx(ir.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.6,delay:.3,ease:[.22,1,.36,1]},className:"mt-10 flex flex-wrap gap-4 items-center",children:T.jsx("a",{href:R$,target:"_blank",rel:"noopener noreferrer",className:"bg-accent text-accent-foreground font-bold text-[0.95rem] tracking-wide px-8 py-4 rounded-none hover:bg-accent/85 transition-colors","data-text-id":"home.hero.cta.primary",children:e("home.hero.cta.primary")})}),T.jsx(ir.div,{initial:{opacity:0}
163,animate:{opacity:1},transition:{duration:.6,delay:.55},className:"mt-10 flex flex-wrap gap-6 items-center",children:T.jsx("span",{className:"text-foreground/45 text-[0.78rem] tracking-widest font-semibold","data-text-id":"home.hero.badge.verified",children:e("home.hero.badge.verified")})})]})})]})},N$=()=>{const{t:e}=Wn(),t=[{icon:y3,key:"access",img:ja["pillars.kids"],imgKey:"pillars.kids"},{icon:E3,key:"lifetime",img:ja["pillars.lifetime"],imgKey:"pillars.lifetime"},{icon:S3,key:"belonging",img:ja["pillars.belonging"],imgKey:"pillars.belonging"}];return T.jsx("section",{className:"bg-background py-section-spacing-mobile md:py-section-spacing",children:T.jsxs("div",{className:"mx-auto max-w-[1320px] px-container-px",children:[T.jsxs("div",{className:"max-w-[820px]",children:[T.jsx("p",{className:"text-accent text-[0.78rem] font-bold tracking-[0.22em]","data-text-id":"home.pillars.kicker",children:e("home.pillars.kicker")}),T.jsx("h2",{className:"mt-5 font-heading font-extrabold text-foreground text-[clamp(2rem,4.5vw,3.5rem)] tracking-[-0.02em] leading-[1.05]","data-text-id":"home.pillars.title",children:e("home.pillars.title")}),T.jsx("p",{className:"mt-5 text-foreground/65 text-[1.05rem] max-w-[640px] leading-relaxed","data-text-id":"home.pillars.subtitle",children:e("home.pillars.subtitle")})]}),T.jsx("div",{className:"mt-14 grid grid-cols-1 md:grid-cols-3 gap-6",children:t.map((n,i)=>{const a=n.icon;return T.jsxs(ir.article,{initial:{opacity:0,y:28},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.55,delay:i*.08},className:"group bg-surface border border-border/60 rounded-card overflow-hidden hover:border-accent/50 transition-colors",children:[T.jsxs("div",{className:"relative aspect-[4/3] overflow-hidden",children:[T.jsx("img",{src:n.img,alt:e(`home.pillars.${n.key}.title`),"data-image-id":n.imgKey,className:"absolute inset-0 w-full h-full object-cover transition-transform duration-700 group-hover:scale-105"}),T.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-surface via-surface/30 to-transparent","aria-hidden":"true"}),T.jsx("div",{className:"absolute top-5 left-5 w-12 h-12 rounded-full bg-accent text-accent-foreground flex items-center justify-center",children:T.jsx(a,{size:22})})]}),T.jsxs("div",{className:"p-7",children:[T.jsx("h3",{className:"font-heading font-bold text-foreground text-[1.35rem] tracking-tight","data-text-id":`home.pillars.${n.key}.title`,children:e(`home.pillars.${n.key}.title`)}),T.jsx("p",{className:"mt-3 text-foreground/65 leading-relaxed text-[0.98rem]","data-text-id":`home.pillars.${n.key}.body`,children:e(`home.pillars.${n.key}.body`)})]})]},n.key)})})]})})},j$="https://funraise.org/give/Opportunity-Through-Sport/0a1a968c-0600-4570-8f3c-bed9d7d4cda5/",D$=()=>{const{t:e}=Wn();return T.jsx("section",{className:"bg-accent py-section-spacing-mobile md:py-section-spacing",children:T.jsxs("div",{className:"max-w-3xl mx-auto px-page text-center",children:[T.jsx(ir.h2,{className:"font-heading text-4xl md:text-5xl font-bold text-accent-foreground mb-8 leading-tight",initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},"data-text-id":"home.cta.title",children:e("home.cta.title")}),T.jsxs(ir.div,{className:"flex flex-col sm:flex-row gap-4 justify-center",initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.15},children:[T.jsx("a",{href:j$,target:"_blank",rel:"noopener noreferrer",className:"inline-block bg-background text-foreground font-heading font-bold px-8 py-4 text-sm tracking-widest uppercase hover:bg-background/90 transition-colors","data-text-id":"home.cta.primary",children:e("home.cta.primary")}),T.jsx("a",{href:"/contact",className:"inline-block border-2 border-background text-accent-foreground font-heading font-bold px-8 py-4 text-sm tracking-widest uppercase hover:bg-background/10 transition-colors","data-text-id":"home.cta.secondary",children:e("home.cta.secondary")})]})]})})},gE=()=>T.jsxs(T.Fragment,{children:[T.jsx(Jl,{titleKey:"home.meta.title",descriptionKey:"home.meta.description"}),T.jsxs("main",{className:"flex flex-col gap-section-spacing-mobile md:gap-section-spacing",children:[T.jsx(k$,{}),T.jsx(N$,{}),T.jsx(D$,{})]})]}),M$=()=>{const{t:e}=Wn(),t=["v1","v2","v3","v4","v5"];return T.jsxs(T.Fragment,{children:[T.jsx(Jl,{titleKey:"mission.meta.title",descriptionKey:"mission.meta.description"}),T.jsxs("main",{children:[T.jsx("section",{className:"bg-background pt-20 md:pt-28 pb-20 md:pb-24",children:T.jsx("div",{className:"mx-auto max-w-[1320px] px-container-px",children:T.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-12 items-center",children:[T.jsxs("div",{className:"lg:col-span-7",children:[T.jsx("p",{className:"text-accent text-[0.78rem] font-bold tracking-[0.22em]","data-text-id":"mission.hero.kicker",children:e("mission.hero.kicker")}),T.jsx("h1",{className:"mt-5 font-heading font-extrabold text-foreground text-[clamp(2.4rem,5.5vw,4.6rem)] leading-[1.02] tracking-[-0.03em]","data-text-id":"mission.hero.title",children:e("mission.hero.title")}
163),T.jsx("p",{className:"mt-7 text-foreground/70 text-[1.15rem] leading-relaxed max-w-[560px]","data-text-id":"mission.hero.body",children:e("mission.hero.body")})]}),T.jsx(ir.div,{initial:{opacity:0,scale:.96},animate:{opacity:1,scale:1},transition:{duration:.7},className:"lg:col-span-5",children:T.jsx("div",{className:"relative aspect-square rounded-card overflow-hidden border border-border/60",children:T.jsx("img",{src:ja["mission.field"],alt:"Community soccer pitch","data-image-id":"mission.field",className:"absolute inset-0 w-full h-full object-cover"})})})]})})}),T.jsx("section",{className:"bg-surface py-section-spacing-mobile md:py-section-spacing border-y border-border/40",children:T.jsx("div",{className:"mx-auto max-w-[1320px] px-container-px",children:T.jsxs("div",{className:"max-w-[860px] mx-auto text-center",children:[T.jsx("p",{className:"text-accent text-[0.78rem] font-bold tracking-[0.22em]","data-text-id":"mission.vision.kicker",children:e("mission.vision.kicker")}),T.jsx("h2",{className:"mt-5 font-heading font-extrabold text-foreground text-[clamp(2rem,4.5vw,3.6rem)] leading-[1.05] tracking-[-0.02em]","data-text-id":"mission.vision.title",children:e("mission.vision.title")}),T.jsx("p",{className:"mt-7 text-foreground/70 text-[1.1rem] leading-relaxed","data-text-id":"mission.vision.body",children:e("mission.vision.body")})]})})}),T.jsx("section",{className:"bg-background py-section-spacing-mobile md:py-section-spacing",children:T.jsxs("div",{className:"mx-auto max-w-[1320px] px-container-px",children:[T.jsxs("div",{className:"max-w-[720px]",children:[T.jsx("h2",{className:"font-heading font-extrabold text-foreground text-[clamp(1.8rem,4vw,3rem)] tracking-[-0.02em] leading-[1.1]","data-text-id":"mission.values.title",children:e("mission.values.title")}),T.jsx("p",{className:"mt-5 text-foreground/65 text-[1.05rem]","data-text-id":"mission.values.subtitle",children:e("mission.values.subtitle")})]}),T.jsx("div",{className:"mt-14 grid grid-cols-1 md:grid-cols-2 gap-x-12 gap-y-10",children:t.map((n,i)=>T.jsxs(ir.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:i*.06},className:"flex gap-5",children:[T.jsxs("span",{className:"font-heading font-extrabold text-accent text-[1.8rem] leading-none w-12 shrink-0",children:["0",i+1]}),T.jsxs("div",{children:[T.jsx("h3",{className:"font-heading font-bold text-foreground text-[1.25rem]","data-text-id":`mission.values.${n}.title`,children:e(`mission.values.${n}.title`)}),T.jsx("p",{className:"mt-3 text-foreground/65 leading-relaxed","data-text-id":`mission.values.${n}.body`,children:e(`mission.values.${n}.body`)})]})]},n))})]})})]})]})},L$=()=>{const{t:e}=Wn(),t=[{key:"play",imgKey:"programs.play"},{key:"opportunity",imgKey:"programs.opportunity"},{key:"warriors",imgKey:"programs.warriors"}];return T.jsxs(T.Fragment,{children:[T.jsx(Jl,{titleKey:"programs.meta.title",descriptionKey:"programs.meta.description"}),T.jsxs("main",{children:[T.jsx("section",{className:"bg-background pt-20 md:pt-28 pb-16 md:pb-20 border-b border-border/40",children:T.jsx("div",{className:"mx-auto max-w-[1320px] px-container-px",children:T.jsxs("div",{className:"max-w-[860px]",children:[T.jsx("p",{className:"text-accent text-[0.78rem] font-bold tracking-[0.22em]","data-text-id":"programs.hero.kicker",children:e("programs.hero.kicker")}),T.jsx("h1",{className:"mt-5 font-heading font-extrabold text-foreground text-[clamp(2.4rem,5.5vw,4.6rem)] leading-[1.02] tracking-[-0.03em]","data-text-id":"programs.hero.title",children:e("programs.hero.title")}),T.jsx("p",{className:"mt-7 text-foreground/70 text-[1.1rem] leading-relaxed max-w-[680px]","data-text-id":"programs.hero.body",children:e("programs.hero.body")})]})})}),T.jsx("section",{className:"bg-background py-section-spacing-mobile md:py-section-spacing",children:T.jsx("div",{className:"mx-auto max-w-[1320px] px-container-px flex flex-col gap-16 md:gap-24",children:t.map((n,i)=>T.jsxs(ir.article,{initial:{opacity:0,y:28},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.6},className:`grid grid-cols-1 lg:grid-cols-12 gap-10 lg:gap-16 items-center ${i%2===1?"lg:[direction:rtl]":""}`,children:[T.jsx("div",{className:"lg:col-span-6 lg:[direction:ltr]",children:T.jsx("div",{className:"relative aspect-[4/3] rounded-card overflow-hidden border border-border/60",children:T.jsx("img",{src:ja[n.imgKey],alt:e(`programs.list.${n.key}.title`),"data-image-id":n.imgKey,className:"absolute inset-0 w-full h-full object-cover"})})}),T.jsxs("div",{className:"lg:col-span-6 lg:[direction:ltr]",children:[T.jsx("span",{className:"inline-flex items-center rounded-pill bg-accent-soft text-accent border border-accent/30 px-4 py-1.5 text-[0.72rem] font-bold tracking-[0.18em]","data-text-id":`programs.list.${n.key}.ages`,children:e(`programs.list.${n.key}.ages`)}),T.jsx("h2",{className:"mt-6 font-heading font-extrabold text-foreground text-[clamp(1.8rem,3.5vw,2.8rem)] tracking-[-0.02em] leading-[1.1]","data-text-id":`programs.list.${n.key}.title`,children:e(`programs.list.${n.key}.title`)}
163),T.jsx("p",{className:"mt-5 text-foreground/70 text-[1.02rem] leading-relaxed","data-text-id":`programs.list.${n.key}.body`,children:e(`programs.list.${n.key}.body`)}),T.jsx("div",{className:"mt-7 flex flex-wrap gap-3",children:T.jsxs(T.Fragment,{children:[T.jsxs("a",{href:"https://funraise.org/give/Opportunity-Through-Sport/0a1a968c-0600-4570-8f3c-bed9d7d4cda5/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 rounded-pill bg-accent text-accent-foreground font-semibold px-6 py-3 hover:brightness-95 transition-all","data-text-id":`programs.list.${n.key}.cta${n.key==="play"?"":".donate"}`,children:[e(`programs.list.${n.key}.cta${n.key==="play"?"":".donate"}`),T.jsx(nw,{size:18})]}),T.jsxs(kr,{to:"/request-assistance",className:"inline-flex items-center gap-2 rounded-pill border border-accent text-accent font-semibold px-6 py-3 hover:bg-accent/10 transition-all","data-text-id":n.key==="play"?"programs.list.play.cta.assist":`programs.list.${n.key}.cta`,children:[e(n.key==="play"?"programs.list.play.cta.assist":`programs.list.${n.key}.cta`),T.jsx(nw,{size:18})]})]})})]})]},n.key))})})]})]})};function Yd(e,t){const n=e[t];if(!n)throw new Error(`Remixer context is missing ${String(t)}`);return n}function nu(){if(typeof window>"u"||!window.__REMIXER_CTX__)throw new Error("Remixer context is not available");return window.__REMIXER_CTX__}function uO(){return Yd(nu(),"supabaseUrl")}function U$(){return Yd(nu(),"supabaseAnonKey")}function cO(){return Yd(nu(),"projectId")}function gd(){return Yd(nu(),"authBrokerBaseUrl").replace(/\/+$/,"")}function ky(){return(nu().runtimeUrl||`${uO().replace(/\/+$/,"")}/functions/v1`).replace(/\/+$/,"")}var hg=function(e,t){return hg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},hg(e,t)};function dO(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");hg(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var yd=function(){return yd=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++){n=arguments[i];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},yd.apply(this,arguments)};function ro(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]]);return n}function fO(e,t,n,i){var a=arguments.length,l=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,t,n,i);else for(var d=e.length-1;d>=0;d--)(u=e[d])&&(l=(a<3?u(l):a>3?u(t,n,l):u(t,n))||l);return a>3&&l&&Object.defineProperty(t,n,l),l}function hO(e,t){return function(n,i){t(n,i,e)}}function mO(e,t,n,i,a,l){function u(A){if(A!==void 0&&typeof A!="function")throw new TypeError("Function expected");return A}for(var d=i.kind,f=d==="getter"?"get":d==="setter"?"set":"value",h=!t&&e?i.static?e:e.prototype:null,g=t||(h?Object.getOwnPropertyDescriptor(h,i.name):{}),y,v=!1,_=n.length-1;_>=0;_--){var S={};for(var E in i)S[E]=E==="access"?{}:i[E];for(var E in i.access)S.access[E]=i.access[E];S.addInitializer=function(A){if(v)throw new TypeError("Cannot add initializers after decoration has completed");l.push(u(A||null))};var x=(0,n[_])(d==="accessor"?{get:g.get,set:g.set}:g[f],S);if(d==="accessor"){if(x===void 0)continue;if(x===null||typeof x!="object")throw new TypeError("Object expected");(y=u(x.get))&&(g.get=y),(y=u(x.set))&&(g.set=y),(y=u(x.init))&&a.unshift(y)}else(y=u(x))&&(d==="field"?a.unshift(y):g[f]=y)}h&&Object.defineProperty(h,i.name,g),v=!0}function pO(e,t,n){for(var i=arguments.length>2,a=0;a<t.length;a++)n=i?t[a].call(e,n):t[a].call(e);return i?n:void 0}function gO(e){return typeof e=="symbol"?e:"".concat(e)}function yO(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function vO(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Z(e,t,n,i){function a(l){return l instanceof n?l:new n(function(u){u(l)})}
vendor: 7,593 bytes, line 163
163return new(n||(n=Promise))(function(l,u){function d(g){try{h(i.next(g))}catch(y){u(y)}}function f(g){try{h(i.throw(g))}catch(y){u(y)}}function h(g){g.done?l(g.value):a(g.value).then(d,f)}h((i=i.apply(e,t||[])).next())})}function bO(e,t){var n={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},i,a,l,u=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return u.next=d(0),u.throw=d(1),u.return=d(2),typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function d(h){return function(g){return f([h,g])}}function f(h){if(i)throw new TypeError("Generator is already executing.");for(;u&&(u=0,h[0]&&(n=0)),n;)try{if(i=1,a&&(l=h[0]&2?a.return:h[0]?a.throw||((l=a.return)&&l.call(a),0):a.next)&&!(l=l.call(a,h[1])).done)return l;switch(a=0,l&&(h=[h[0]&2,l.value]),h[0]){case 0:case 1:l=h;break;case 4:return n.label++,{value:h[1],done:!1};case 5:n.label++,a=h[1],h=[0];continue;case 7:h=n.ops.pop(),n.trys.pop();continue;default:if(l=n.trys,!(l=l.length>0&&l[l.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!l||h[1]>l[0]&&h[1]<l[3])){n.label=h[1];break}if(h[0]===6&&n.label<l[1]){n.label=l[1],l=h;break}if(l&&n.label<l[2]){n.label=l[2],n.ops.push(h);break}l[2]&&n.ops.pop(),n.trys.pop();continue}h=t.call(e,n)}catch(g){h=[6,g],a=0}finally{i=l=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}var Xd=Object.create?(function(e,t,n,i){i===void 0&&(i=n);var a=Object.getOwnPropertyDescriptor(t,n);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,a)}):(function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]});function _O(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Xd(t,e,n)}function vd(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ny(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),a,l=[],u;try{for(;(t===void 0||t-- >0)&&!(a=i.next()).done;)l.push(a.value)}catch(d){u={error:d}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(u)throw u.error}}return l}function SO(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ny(arguments[t]));return e}function wO(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var i=Array(e),a=0,t=0;t<n;t++)for(var l=arguments[t],u=0,d=l.length;u<d;u++,a++)i[a]=l[u];return i}function EO(e,t,n){if(n||arguments.length===2)for(var i=0,a=t.length,l;i<a;i++)(l||!(i in t))&&(l||(l=Array.prototype.slice.call(t,0,i)),l[i]=t[i]);return e.concat(l||Array.prototype.slice.call(t))}function Ha(e){return this instanceof Ha?(this.v=e,this):new Ha(e)}function TO(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n.apply(e,t||[]),a,l=[];return a=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),d("next"),d("throw"),d("return",u),a[Symbol.asyncIterator]=function(){return this},a;function u(_){return function(S){return Promise.resolve(S).then(_,y)}}function d(_,S){i[_]&&(a[_]=function(E){return new Promise(function(x,A){l.push([_,E,x,A])>1||f(_,E)})},S&&(a[_]=S(a[_])))}function f(_,S){try{h(i[_](S))}catch(E){v(l[0][3],E)}}function h(_){_.value instanceof Ha?Promise.resolve(_.value.v).then(g,y):v(l[0][2],_)}function g(_){f("next",_)}function y(_){f("throw",_)}function v(_,S){_(S),l.shift(),l.length&&f(l[0][0],l[0][1])}}function xO(e){var t,n;return t={},i("next"),i("throw",function(a){throw a}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(a,l){t[a]=e[a]?function(u){return(n=!n)?{value:Ha(e[a](u)),done:!1}:l?l(u):u}:l}}function AO(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof vd=="function"?vd(e):e[Symbol.iterator](),n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n);function i(l){n[l]=e[l]&&function(u){return new Promise(function(d,f){u=e[l](u),a(d,f,u.done,u.value)})}}function a(l,u,d,f){Promise.resolve(f).then(function(h){l({value:h,done:d})},u)}}function OO(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var I$=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t},mg=function(e){return mg=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},mg(e)};function CO(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=mg(e),i=0;i<n.length;i++)n[i]!=="default"&&Xd(t,e,n[i]);return I$(t,e),t}function RO(e){return e&&e.__esModule?e:{default:e}}function kO(e,t,n,i){if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(e):i?i.value:t.get(e)}function NO(e,t,n,i,a){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?a.call(e,n):a?a.value=n:t.set(e,n),n}function jO(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function DO(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var i,a;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=t[Symbol.asyncDispose]}if(i===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=t[Symbol.dispose],n&&(a=i)}if(typeof i!="function")throw new TypeError("Object not disposable.");a&&(i=function(){try{a.call(this)}catch(l){return Promise.reject(l)}}),e.stack.push({value:t,dispose:i,async:n})}else n&&e.stack.push({async:!0});return t}var P$=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var i=new Error(n);return i.name="SuppressedError",i.error=e,i.suppressed=t,i};function MO(e){function t(l){e.error=e.hasError?new P$(l,e.error,"An error was suppressed during disposal."):l,e.hasError=!0}var n,i=0;function a(){for(;n=e.stack.pop();)try{if(!n.async&&i===1)return i=0,e.stack.push(n),Promise.resolve().then(a);if(n.dispose){var l=n.dispose.call(n.value);if(n.async)return i|=2,Promise.resolve(l).then(a,function(u){return t(u),a()})}else i|=1}catch(u){t(u)}if(i===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return a()}function LO(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,i,a,l,u){return i?t?".jsx":".js":a&&(!l||!u)?n:a+l+"."+u.toLowerCase()+"js"}):e}const B$={__extends:dO,__assign:yd,__rest:ro,__decorate:fO,__param:hO,__esDecorate:mO,__runInitializers:pO,__propKey:gO,__setFunctionName:yO,__metadata:vO,__awaiter:Z,__generator:bO,__createBinding:Xd,__exportStar:_O,__values:vd,__read:Ny,__spread:SO,__spreadArrays:wO,__spreadArray:EO,__await:Ha,__asyncGenerator:TO,__asyncDelegator:xO,__asyncValues:AO,__makeTemplateOb
163ject:OO,__importStar:CO,__importDefault:RO,__classPrivateFieldGet:kO,__classPrivateFieldSet:NO,__classPrivateFieldIn:jO,__addDisposableResource:DO,__disposeResources:MO,__rewriteRelativeImportExtension:LO},V$=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:DO,get __assign(){return yd},__asyncDelegator:xO,__asyncGenerator:TO,__asyncValues:AO,__await:Ha,__awaiter:Z,__classPrivateFieldGet:kO,__classPrivateFieldIn:jO,__classPrivateFieldSet:NO,__createBinding:Xd,__decorate:fO,__disposeResources:MO,__esDecorate:mO,__exportStar:_O,__extends:dO,__generator:bO,__importDefault:RO,__importStar:CO,__makeTemplateObject:OO,__metadata:vO,__param:hO,__propKey:gO,__read:Ny,__rest:ro,__rewriteRelativeImportExtension:LO,__runInitializers:pO,__setFunctionName:yO,__spread:SO,__spreadArray:EO,__spreadArrays:wO,__values:vd,default:B$},Symbol.toStringTag,{value:"Module"})),z$=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class jy extends Error{constructor(t,n="FunctionsError",i){super(t),this.name=n,this.context=i}}class $$ extends jy{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class yE extends jy{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class vE extends jy{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var pg;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(pg||(pg={}));class H${constructor(t,{headers:n={},customFetch:i,region:a=pg.Any}={}){this.url=t,this.headers=n,this.region=a,this.fetch=z$(i)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return Z(this,arguments,void 0,function*(n,i={}){var a;let l,u;try{const{headers:d,method:f,body:h,signal:g,timeout:y}=i;let v={},{region:_}=i;_||(_=this.region);const S=new URL(`${this.url}/${n}`);_&&_!=="any"&&(v["x-region"]=_,S.searchParams.set("forceFunctionRegion",_));let E;h&&(d&&!Object.prototype.hasOwnProperty.call(d,"Content-Type")||!d)?typeof Blob<"u"&&h instanceof Blob||h instanceof ArrayBuffer?(v["Content-Type"]="application/octet-stream",E=h):typeof h=="string"?(v["Content-Type"]="text/plain",E=h):typeof FormData<"u"&&h instanceof FormData?E=h:(v["Content-Type"]="application/json",E=JSON.stringify(h)):E=h;let x=g;y&&(u=new AbortController,l=setTimeout(()=>u.abort(),y),g?(x=u.signal,g.addEventListener("abort",()=>u.abort())):x=u.signal);const A=yield this.fetch(S.toString(),{method:f||"POST",headers:Object.assign(Object.assign(Object.assign({},v),this.headers),d),body:E,signal:x}).catch($=>{throw new $$($)}),N=A.headers.get("x-relay-error");if(N&&N==="true")throw new yE(A);if(!A.ok)throw new vE(A);let R=((a=A.headers.get("Content-Type"))!==null&&a!==void 0?a:"text/plain").split(";")[0].trim(),M;return R==="application/json"?M=yield A.json():R==="application/octet-stream"||R==="application/pdf"?M=yield A.blob():R==="text/event-stream"?M=A:R==="multipart/form-data"?M=yield A.formData():M=yield A.text(),{data:M,error:null,response:A}}catch(d){return{data:null,error:d,response:d instanceof vE||d instanceof yE?d.context:void 0}}finally{l&&clearTimeout(l)}})}}var Lt={};const io=WI(V$);var Dc={},Mc={},Lc={},Uc={},Ic={},Pc={},bE;function UO(){if(bE)return Pc;bE=1,Object.defineProperty(Pc,"__esModule",{value:!0});class e extends Error{constructor(n){super(n.message),this.name="PostgrestError",this.details=n.details,this.hint=n.hint,this.co
163de=n.code}}return Pc.default=e,Pc}var _E;function IO(){if(_E)return Ic;_E=1,Object.defineProperty(Ic,"__esModule",{value:!0});const t=io.__importDefault(UO());class n{constructor(a){var l,u;this.shouldThrowOnError=!1,this.method=a.method,this.url=a.url,this.headers=new Headers(a.headers),this.schema=a.schema,this.body=a.body,this.shouldThrowOnError=(l=a.shouldThrowOnError)!==null&&l!==void 0?l:!1,this.signal=a.signal,this.isMaybeSingle=(u=a.isMaybeSingle)!==null&&u!==void 0?u:!1,a.fetch?this.fetch=a.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(a,l){return this.headers=new Headers(this.headers),this.headers.set(a,l),this}then(a,l){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const u=this.fetch;let d=u(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async f=>{var h,g,y,v;let _=null,S=null,E=null,x=f.status,A=f.statusText;if(f.ok){if(this.method!=="HEAD"){const $=await f.text();$===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((h=this.headers.get("Accept"))===null||h===void 0)&&h.includes("application/vnd.pgrst.plan+text"))?S=$:S=JSON.parse($))}const R=(g=this.headers.get("Prefer"))===null||g===void 0?void 0:g.match(/count=(exact|planned|estimated)/),M=(y=f.headers.get("content-range"))===null||y===void 0?void 0:y.split("/");R&&M&&M.length>1&&(E=parseInt(M[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(S)&&(S.length>1?(_={code:"PGRST116",details:`Results contain ${S.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},S=null,E=null,x=406,A="Not Acceptable"):S.length===1?S=S[0]:S=null)}else{const R=await f.text();try{_=JSON.parse(R),Array.isArray(_)&&f.status===404&&(S=[],_=null,x=200,A="OK")}catch{f.status===404&&R===""?(x=204,A="No Content"):_={message:R}}if(_&&this.isMaybeSingle&&(!((v=_?.details)===null||v===void 0)&&v.includes("0 rows"))&&(_=null,x=200,A="OK"),_&&this.shouldThrowOnError)throw new t.default(_)}return{error:_,data:S,count:E,status:x,statusText:A}});return this.shouldThrowOnError||(d=d.catch(f=>{var h,g,y,v,_,S;let E="";const x=f?.cause;if(x){const A=(h=x?.message)!==null&&h!==void 0?h:"",N=(g=x?.code)!==null&&g!==void 0?g:"";E=`${(y=f?.name)!==null&&y!==void 0?y:"FetchError"}: ${f?.message}`,E+=`
164
165Caused by: ${(v=x?.name)!==null&&v!==void 0?v:"Error"}: ${A}`,N&&(E+=` (${N})`),x?.stack&&(E+=`
166${x.stack}`)}else E=(_=f?.stack)!==null&&_!==void 0?_:"";return{error:{message:`${(S=f?.name)!==null&&S!==void 0?S:"FetchError"}: ${f?.message}`,details:E,hint:"",code:""},data:null,count:null,status:0,statusText:""}})),d.then(a,l)}returns(){return this}overrideTypes(){return this}}return Ic.default=n,Ic}var SE;function PO(){if(SE)return Uc;SE=1,Object.defineProperty(Uc,"__esModule",{value:!0});const t=io.__importDefault(IO());class n extends t.default{select(a){let l=!1;const u=(a??"*").split("").map(d=>/\s/.test(d)&&!l?"":(d==='"'&&(l=!l),d)).join("");return this.url.searchParams.set("select",u),this.headers.append("Prefer","return=representation"),this}order(a,{ascending:l=!0,nullsFirst:u,foreignTable:d,referencedTable:f=d}={}){const h=f?`${f}.order`:"order",g=this.url.searchParams.get(h);return this.url.searchParams.set(h,`${g?`${g},`:""}${a}.${l?"asc":"desc"}${u===void 0?"":u?".nullsfirst":".nullslast"}`),this}limit(a,{foreignTable:l,referencedTable:u=l}={}){const d=typeof u>"u"?"limit":`${u}.limit`;return this.url.searchParams.set(d,`${a}`),this}range(a,l,{foreignTable:u,referencedTable:d=u}={}){const f=typeof d>"u"?"offset":`${d}.offset`,h=typeof d>"u"?"limit":`${d}.limit`;return this.url.searchParams.set(f,`${a}`),this.url.searchParams.set(h,`${l-a+1}`),this}abortSignal(a){return this.signal=a,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
166explain({analyze:a=!1,verbose:l=!1,settings:u=!1,buffers:d=!1,wal:f=!1,format:h="text"}={}){var g;const y=[a?"analyze":null,l?"verbose":null,u?"settings":null,d?"buffers":null,f?"wal":null].filter(Boolean).join("|"),v=(g=this.headers.get("Accept"))!==null&&g!==void 0?g:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${h}; for="${v}"; options=${y};`),h==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(a){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${a}`),this}}return Uc.default=n,Uc}var wE;function Dy(){if(wE)return Lc;wE=1,Object.defineProperty(Lc,"__esModule",{value:!0});const t=io.__importDefault(PO()),n=new RegExp("[,()]");class i extends t.default{eq(l,u){return this.url.searchParams.append(l,`eq.${u}`),this}neq(l,u){return this.url.searchParams.append(l,`neq.${u}`),this}gt(l,u){return this.url.searchParams.append(l,`gt.${u}`),this}gte(l,u){return this.url.searchParams.append(l,`gte.${u}`),this}lt(l,u){return this.url.searchParams.append(l,`lt.${u}`),this}lte(l,u){return this.url.searchParams.append(l,`lte.${u}`),this}like(l,u){return this.url.searchParams.append(l,`like.${u}`),this}likeAllOf(l,u){return this.url.searchParams.append(l,`like(all).{${u.join(",")}}`),this}likeAnyOf(l,u){return this.url.searchParams.append(l,`like(any).{${u.join(",")}}`),this}ilike(l,u){return this.url.searchParams.append(l,`ilike.${u}`),this}ilikeAllOf(l,u){return this.url.searchParams.append(l,`ilike(all).{${u.join(",")}}`),this}ilikeAnyOf(l,u){return this.url.searchParams.append(l,`ilike(any).{${u.join(",")}}`),this}regexMatch(l,u){return this.url.searchParams.append(l,`match.${u}`),this}regexIMatch(l,u){return this.url.searchParams.append(l,`imatch.${u}`),this}is(l,u){return this.url.searchParams.append(l,`is.${u}`),this}isDistinct(l,u){return this.url.searchParams.append(l,`isdistinct.${u}`),this}in(l,u){const d=Array.from(new Set(u)).map(f=>typeof f=="string"&&n.test(f)?`"${f}"`:`${f}`).join(",");return this.url.searchParams.append(l,`in.(${d})`),this}contains(l,u){return typeof u=="string"?this.url.searchParams.append(l,`cs.${u}`):Array.isArray(u)?this.url.searchParams.append(l,`cs.{${u.join(",")}}`):this.url.searchParams.append(l,`cs.${JSON.stringify(u)}`),this}containedBy(l,u){return typeof u=="string"?this.url.searchParams.append(l,`cd.${u}`):Array.isArray(u)?this.url.searchParams.append(l,`cd.{${u.join(",")}}`):this.url.searchParams.append(l,`cd.${JSON.stringify(u)}`),this}rangeGt(l,u){return this.url.searchParams.append(l,`sr.${u}`),this}rangeGte(l,u){return this.url.searchParams.append(l,`nxl.${u}`),this}rangeLt(l,u){return this.url.searchParams.append(l,`sl.${u}`),this}rangeLte(l,u){return this.url.searchParams.append(l,`nxr.${u}`),this}rangeAdjacent(l,u){return this.url.searchParams.append(l,`adj.${u}`),this}overlaps(l,u){return typeof u=="string"?this.url.searchParams.append(l,`ov.${u}`):this.url.searchParams.append(l,`ov.{${u.join(",")}}`),this}textSearch(l,u,{config:d,type:f}={}){let h="";
166f==="plain"?h="pl":f==="phrase"?h="ph":f==="websearch"&&(h="w");const g=d===void 0?"":`(${d})`;return this.url.searchParams.append(l,`${h}fts${g}.${u}`),this}match(l){return Object.entries(l).forEach(([u,d])=>{this.url.searchParams.append(u,`eq.${d}`)}),this}not(l,u,d){return this.url.searchParams.append(l,`not.${u}.${d}`),this}or(l,{foreignTable:u,referencedTable:d=u}={}){const f=d?`${d}.or`:"or";return this.url.searchParams.append(f,`(${l})`),this}filter(l,u,d){return this.url.searchParams.append(l,`${u}.${d}`),this}}return Lc.default=i,Lc}var EE;function BO(){if(EE)return Mc;EE=1,Object.defineProperty(Mc,"__esModule",{value:!0});const t=io.__importDefault(Dy());class n{constructor(a,{headers:l={},schema:u,fetch:d}){this.url=a,this.headers=new Headers(l),this.schema=u,this.fetch=d}select(a,l){const{head:u=!1,count:d}=l??{},f=u?"HEAD":"GET";let h=!1;const g=(a??"*").split("").map(y=>/\s/.test(y)&&!h?"":(y==='"'&&(h=!h),y)).join("");return this.url.searchParams.set("select",g),d&&this.headers.append("Prefer",`count=${d}`),new t.default({method:f,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(a,{count:l,defaultToNull:u=!0}={}){var d;const f="POST";if(l&&this.headers.append("Prefer",`count=${l}`),u||this.headers.append("Prefer","missing=default"),Array.isArray(a)){const h=a.reduce((g,y)=>g.concat(Object.keys(y)),[]);if(h.length>0){const g=[...new Set(h)].map(y=>`"${y}"`);this.url.searchParams.set("columns",g.join(","))}}return new t.default({method:f,url:this.url,headers:this.headers,schema:this.schema,body:a,fetch:(d=this.fetch)!==null&&d!==void 0?d:fetch})}upsert(a,{onConflict:l,ignoreDuplicates:u=!1,count:d,defaultToNull:f=!0}={}){var h;const g="POST";if(this.headers.append("Prefer",`resolution=${u?"ignore":"merge"}-duplicates`),l!==void 0&&this.url.searchParams.set("on_conflict",l),d&&this.headers.append("Prefer",`count=${d}`),f||this.headers.append("Prefer","missing=default"),Array.isArray(a)){const y=a.reduce((v,_)=>v.concat(Object.keys(_)),[]);if(y.length>0){const v=[...new Set(y)].map(_=>`"${_}"`);this.url.searchParams.set("columns",v.join(","))}}return new t.default({method:g,url:this.url,headers:this.headers,schema:this.schema,body:a,fetch:(h=this.fetch)!==null&&h!==void 0?h:fetch})}update(a,{count:l}={}){var u;const d="PATCH";return l&&this.headers.append("Prefer",`count=${l}`),new t.default({method:d,url:this.url,headers:this.headers,schema:this.schema,body:a,fetch:(u=this.fetch)!==null&&u!==void 0?u:fetch})}delete({count:a}={}){var l;const u="DELETE";return a&&this.headers.append("Prefer",`count=${a}`),new t.default({method:u,url:this.url,headers:this.headers,schema:this.schema,fetch:(l=this.fetch)!==null&&l!==void 0?l:fetch})}}return Mc.default=n,Mc}var TE;function q$(){if(TE)return Dc;TE=1,Object.defineProperty(Dc,"__esModule",{value:!0});const e=io,t=e.__importDefault(BO()),n=e.__importDefault(Dy());class i{constructor(l,{headers:u={},schema:d,fetch:f}={}){this.url=l,this.headers=new Headers(u),this.schemaName=d,this.fetch=f}from(l){if(!l||typeof l!="string"||l.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");const u=new URL(`${this.url}/${l}`);return new t.default(u,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(l){return new i(this.url,{headers:this.headers,schema:l,fetch:this.fetch})}rpc(l,u={},{head:d=!1,get:f=!1,count:h}={}){var g;let y;const v=new URL(`${this.url}/rpc/${l}`);let _;d||f?(y=d?"HEAD":"GET",Object.entries(u).filter(([E,x])=>x!==void 0).map(([E,x])=>[E,Array.isArray(x)?`{${x.join(",")}}`:`${x}`]).forEach(([E,x])=>{v.searchParams.append(E,x)})):(y="POST",_=u);const S=new Headers(this.headers);return h&&S.set("Prefer",`count=${h}`),new n.default({method:y,url:v,headers:S,schema:this.schemaName,body:_,fetch:(g=this.fetch)!==null&&g!==void 0?g:fetch})}}return Dc.default=i,Dc}var xE;function F$(){if(xE)return Lt;xE=1,Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.PostgrestError=Lt.PostgrestBuilder=Lt.PostgrestTransformBuilder=Lt.PostgrestFilterBuilder=Lt.PostgrestQueryBuilder=Lt.PostgrestClient=void 0;const e=io,t=e.__importDefault(q$());Lt.PostgrestClient=t.default;const n=e.__importDefault(BO());Lt.PostgrestQueryBuilder=n.default;const i=e.__importDefault(Dy());Lt.PostgrestFilterBuilder=i.default;const a=e.__importDefault(PO());Lt.PostgrestTransformBuilder=a.default;const l=e.__importDefault(IO());Lt.PostgrestBuilder=l.default;const u=e.__importDefault(UO());return Lt.PostgrestError=u.default,Lt.default={PostgrestClient:t.default,PostgrestQueryBuilder:n.default,PostgrestFilterBuilder:i.default,PostgrestTransformBuilder:
166a.default,PostgrestBuilder:l.default,PostgrestError:u.default},Lt}var VO=F$();const zO=Ja(VO),G$=Dk({__proto__:null,default:zO},[VO]),{PostgrestClient:K$,PostgrestQueryBuilder:YH,PostgrestFilterBuilder:XH,PostgrestTransformBuilder:WH,PostgrestBuilder:JH,PostgrestError:QH}=zO||G$;class Y${constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if(typeof process<"u"){const n=process.versions;if(n&&n.node){const i=n.node,a=parseInt(i.replace(/^v/,"").split(".")[0]);return a>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${a} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${a} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
167import ws from "ws"
168new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=`
169
170Suggested solution: ${t.workaround}`),new Error(n)}static createWebSocket(t,n){const i=this.getWebSocketConstructor();return new i(t,n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const X$="2.86.0",W$=`realtime-js/${X$}`,$O="1.0.0",J$="2.0.0",AE=$O,gg=1e4,Q$=1e3,Z$=100;var os;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(os||(os={}));var St;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(St||(St={}));var Hn;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(Hn||(Hn={}));var yg;(function(e){e.websocket="websocket"})(yg||(yg={}));var ls;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(ls||(ls={}));class e6{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let i=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(i))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,i;const a=(i=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&i!==void 0?i:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,a)}_encodeJsonUserBroadcastPush(t){var n,i;const a=(i=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&i!==void 0?i:{},u=new TextEncoder().encode(JSON.stringify(a)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,u)}_encodeUserBroadcastPush(t,n,i){var a,l;const u=t.topic,d=(a=t.ref)!==null&&a!==void 0?a:"",f=(l=t.join_ref)!==null&&l!==void 0?l:"",h=t.payload.event,g=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},y=Object.keys(g).length===0?"":JSON.stringify(g);if(f.length>255)throw new Error(`joinRef length ${f.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`ref length ${d.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`topic length ${u.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`userEvent length ${h.length} exceeds maximum of 255`);if(y.length>255)throw new Error(`metadata length ${y.length} exceeds maximum of 255`);const v=this.USER_BROADCAST_PUSH_META_LENGTH+f.length+d.length+u.length+h.length+y.length,_=new ArrayBuffer(this.HEADER_LENGTH+v);let S=new DataView(_),E=0;S.setUint8(E++,this.KINDS.userBroadcastPush),S.setUint8(E++,f.length),S.setUint8(E++,d.length),S.setUint8(E++,u.length),S.setUint8(E++,h.length),S.setUint8(E++,y.length),S.setUint8(E++,n),Array.from(f,A=>S.setUint8(E++,A.charCodeAt(0))),Array.from(d,A=>S.setUint8(E++,A.charCodeAt(0))),Array.from(u,A=>S.setUint8(E++,A.charCodeAt(0))),Array.from(h,A=>S.setUint8(E++,A.charCodeAt(0))),Array.from(y,A=>S.setUint8(E++,A.charCodeAt(0)));var x=new Uint8Array(_.byteLength+i.byteLength);return x.set(new Uint8Array(_),0),x.set(new Uint8Array(i),_.byteLength),x.buffer}decode(t,n){if(this._isArrayBuffer(t)){let i=this._binaryDecode(t);return n(i)}if(typeof t=="string"){const i=JSON.parse(t),[a,l,u,d,f]=i;
170return n({join_ref:a,ref:l,topic:u,event:d,payload:f})}return n({})}_binaryDecode(t){const n=new DataView(t),i=n.getUint8(0),a=new TextDecoder;switch(i){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,n,a)}}_decodeUserBroadcast(t,n,i){const a=n.getUint8(1),l=n.getUint8(2),u=n.getUint8(3),d=n.getUint8(4);let f=this.HEADER_LENGTH+4;const h=i.decode(t.slice(f,f+a));f=f+a;const g=i.decode(t.slice(f,f+l));f=f+l;const y=i.decode(t.slice(f,f+u));f=f+u;const v=t.slice(f,t.byteLength),_=d===this.JSON_ENCODING?JSON.parse(i.decode(v)):v,S={type:this.BROADCAST_EVENT,event:g,payload:_};return u>0&&(S.meta=JSON.parse(y)),{join_ref:null,ref:null,topic:h,event:this.BROADCAST_EVENT,payload:S}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t?.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([i])=>n.includes(i)))}}class HO{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var Ge;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(Ge||(Ge={}));const OE=(e,t,n={})=>{var i;const a=(i=n.skipTypes)!==null&&i!==void 0?i:[];return t?Object.keys(t).reduce((l,u)=>(l[u]=t6(u,e,t,a),l),{}):{}},t6=(e,t,n,i)=>{const a=t.find(d=>d.name===e),l=a?.type,u=n[e];return l&&!i.includes(l)?qO(l,u):vg(u)},qO=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return s6(t,n)}switch(e){case Ge.bool:return n6(t);case Ge.float4:case Ge.float8:case Ge.int2:case Ge.int4:case Ge.int8:case Ge.numeric:case Ge.oid:return r6(t);case Ge.json:case Ge.jsonb:return i6(t);case Ge.timestamp:return a6(t);case Ge.abstime:case Ge.date:case Ge.daterange:case Ge.int4range:case Ge.int8range:case Ge.money:case Ge.reltime:case Ge.text:case Ge.time:case Ge.timestamptz:case Ge.timetz:case Ge.tsrange:case Ge.tstzrange:return vg(t);default:return vg(t)}},vg=e=>e,n6=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},r6=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},i6=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},s6=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,i=e[n];if(e[0]==="{"&&i==="}"){let l;const u=e.slice(1,n);try{l=JSON.parse("["+u+"]")}catch{l=u?u.split(","):[]}return l.map(d=>qO(t,d))}return e},a6=e=>typeof e=="string"?e.replace(" ","T"):e,FO=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};class gp{constructor(t,n,i={},a=gg){this.channel=t,this.event=n,this.payload=i,this.timeout=a,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var i;return this._hasReceived(t)&&n((i=this.receivedResp)===null||i===void 0?void 0:i.response),this.recHo
170oks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(i=>i.status===t).forEach(i=>i.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var CE;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(CE||(CE={}));class _l{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const i=n?.events||{state:"presence_state",diff:"presence_diff"};this.channel._on(i.state,{},a=>{const{onJoin:l,onLeave:u,onSync:d}=this.caller;this.joinRef=this.channel._joinRef(),this.state=_l.syncState(this.state,a,l,u),this.pendingDiffs.forEach(f=>{this.state=_l.syncDiff(this.state,f,l,u)}),this.pendingDiffs=[],d()}),this.channel._on(i.diff,{},a=>{const{onJoin:l,onLeave:u,onSync:d}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(a):(this.state=_l.syncDiff(this.state,a,l,u),d())}),this.onJoin((a,l,u)=>{this.channel._trigger("presence",{event:"join",key:a,currentPresences:l,newPresences:u})}),this.onLeave((a,l,u)=>{this.channel._trigger("presence",{event:"leave",key:a,currentPresences:l,leftPresences:u})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,i,a){const l=this.cloneDeep(t),u=this.transformState(n),d={},f={};return this.map(l,(h,g)=>{u[h]||(f[h]=g)}),this.map(u,(h,g)=>{const y=l[h];if(y){const v=g.map(x=>x.presence_ref),_=y.map(x=>x.presence_ref),S=g.filter(x=>_.indexOf(x.presence_ref)<0),E=y.filter(x=>v.indexOf(x.presence_ref)<0);S.length>0&&(d[h]=S),E.length>0&&(f[h]=E)}else d[h]=g}),this.syncDiff(l,{joins:d,leaves:f},i,a)}static syncDiff(t,n,i,a){const{joins:l,leaves:u}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return i||(i=()=>{}),a||(a=()=>{}),this.map(l,(d,f)=>{var h;const g=(h=t[d])!==null&&h!==void 0?h:[];if(t[d]=this.cloneDeep(f),g.length>0){const y=t[d].map(_=>_.presence_ref),v=g.filter(_=>y.indexOf(_.presence_ref)<0);t[d].unshift(...v)}i(d,g,f)}),this.map(u,(d,f)=>{let h=t[d];if(!h)return;const g=f.map(y=>y.presence_ref);h=h.filter(y=>g.indexOf(y.presence_ref)<0),t[d]=h,a(d,h,f),h.length===0&&delete t[d]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(i=>n(i,t[i]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,i)=>{const a=t[i];return"metas"in a?n[i]=a.metas.map(l=>(l.presence_ref=l.phx_ref,delete l.phx_ref,delete l.phx_ref_prev,l)):n[i]=a,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var RE;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(RE||(RE={}));var Sl;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Sl||(Sl={}));var Cr;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Cr||(Cr={}));class My{constructor(t,n={config:{}},i){var a,l;if(this.topic=t,this.params=n,this.socket=i,this.bindings={},this.state=St.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new gp(this,Hn.join,this.params,this.timeout),this.rejoinTimer=new HO(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=St.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(u=>u.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=St.closed,this.socket._remove(this)}),this._onError(u=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,u),this.state=St.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=St.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",u=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,u),this.state=St.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Hn.reply,{},(u,d)=>{this._trigger(this._replyEventName(d),u)}),this.presence=new _l(this),this.broadcastEndpointURL=FO(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((l=(a=this.params.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,n=this.timeout){var i,a,l;if(this.socket.isConnected()||this.socket.connect(),this.state==St.closed){const{config:{broadcast:u,presence:d,private:f}}=this.params,h=(a=(i=this.bindings.postgres_changes)===null||i===void 0?void 0:i.map(_=>_.filter))!==null&&a!==void 0?a:[],g=!!this.bindings[Sl.PRESENCE]&&this.bindings[Sl.PRESENCE].length>0||((l=this.params.config.presence)===null||l===void 0?void 0:l.enabled)===!0,y={},v={broadcast:u,presence:Object.assign(Object.assign({},d),{enabled:g}),postgres_changes:h,private:f};this.socket.accessTokenValue&&(y.access_token=this.socket.accessTokenValue),this._onError(_=>t?.(Cr.CHANNEL_ERROR,_)),this._onClose(()=>t?.(Cr.CLOSED)),this.updateJoinPayload(Object.assign({config:v},y)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:_})=>{var S;if(this.socket.setAuth(),_===void 0){t?.(Cr.SUBSCRIBED);return}else{const E=this.bindings.postgres_changes,x=(S=E?.length)!==null&&S!==void 0?S:0,A=[];for(let N=0;N<x;N++){const R=E[N],{filter:{event:M,schema:$,table:B,filter:G}}=R,X=_&&_[N];if(X&&X.event===M&&X.schema===$&&X.table===B&&X.filter===G)A.push(Object.assign(Object.assign({},R),{id:X.id}));else{this.unsubscribe(),this.state=St.errored,t?.(Cr.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=A,t&&t(Cr.SUBSCRIBED);return}}).receive("error",_=>{this.state=St.errored,t?.(Cr.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(_).join(", ")||"error")))}).receive("timeout",()=>{t?.(Cr.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,i){return this.state===St.joined&&t===Sl.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(()=>this.subscribe())),this._on(t,n,i)}async httpSend(t,n,i={}){var a;const l=this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"";if(n==null)return Promise.reject("Payload is required for httpSend()");const u={method:"POST",headers:{Authorization:l,apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:n,private:this.private}]})},d=await this._fetchWithTimeout(this.broadcastEndpointURL,u,(a=i.timeout)!==null&&a!==void 0?a:this.timeout);if(d.status===202)return{success:!0};let f=d.statusText;
170try{const h=await d.json();f=h.error||h.message||f}catch{}return Promise.reject(new Error(f))}async send(t,n={}){var i,a;if(!this._canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:l,payload:u}=t,f={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:l,payload:u,private:this.private}]})};try{const h=await this._fetchWithTimeout(this.broadcastEndpointURL,f,(i=n.timeout)!==null&&i!==void 0?i:this.timeout);return await((a=h.body)===null||a===void 0?void 0:a.cancel()),h.ok?"ok":"error"}catch(h){return h.name==="AbortError"?"timed out":"error"}}else return new Promise(l=>{var u,d,f;const h=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((f=(d=(u=this.params)===null||u===void 0?void 0:u.config)===null||d===void 0?void 0:d.broadcast)===null||f===void 0)&&f.ack)&&l("ok"),h.receive("ok",()=>l("ok")),h.receive("error",()=>l("error")),h.receive("timeout",()=>l("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=St.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Hn.close,"leave",this._joinRef())};this.joinPush.destroy();let i=null;return new Promise(a=>{i=new gp(this,Hn.leave,{},t),i.receive("ok",()=>{n(),a("ok")}).receive("timeout",()=>{n(),a("timed out")}).receive("error",()=>{a("error")}),i.send(),this._canPush()||i.trigger("ok",{})}).finally(()=>{i?.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=St.closed,this.bindings={}}async _fetchWithTimeout(t,n,i){const a=new AbortController,l=setTimeout(()=>a.abort(),i),u=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:a.signal}));return clearTimeout(l),u}_push(t,n,i=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let a=new gp(this,t,n,i);return this._canPush()?a.send():this._addToPushBuffer(a),a}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>Z$){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(t,n,i){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,i){var a,l;const u=t.toLocaleLowerCase(),{close:d,error:f,leave:h,join:g}=Hn;if(i&&[d,f,h,g].indexOf(u)>=0&&i!==this._joinRef())return;let v=this._onMessage(u,n,i);if(n&&!v)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(u)?(a=this.bindings.postgres_changes)===null||a===void 0||a.filter(_=>{var S,E,x;return((S=_.filter)===null||S===void 0?void 0:S.event)==="*"||((x=(E=_.filter)===null||E===void 0?void 0:E.event)===null||x===void 0?void 0:x.toLocaleLowerCase())===u}).map(_=>_.callback(v,i)):(l=this.bindings[u])===null||l===void 0||l.filter(_=>{var S,E,x,A,N,R;if(["broadcast","presence","postgres_changes"].includes(u))if("id"in _){const M=_.id,$=(S=_.filter)===null||S===void 0?void 0:S.event;return M&&((E=n.ids)===null||E===void 0?void 0:E.includes(M))&&($==="*"||$?.toLocaleLowerCase()===((x=n.data)===null||x===void 0?void 0:x.type.toLocaleLowerCase()))}else{const M=(N=(A=_?.filter)===null||A===void 0?void 0:A.event)===null||N===void 0?void 0:N.toLocaleLowerCase();return M==="*"||M===((R=n?.event)===null||R===void 0?void 0:R.toLocaleLowerCase())}else return _.type.toLocaleLowerCase()===u}).map(_=>{if(typeof v=="object"&&"ids"in v){const S=v.data,{schema:E,table:x,commit_timestamp:A,type:N,errors:R}=S;v=Object.assign(Object.assign({},{schema:E,table:x,commit_timestamp:A,eventType:N,new:{},old:{},errors:R}),this._getPayloadRecords(S))}_.callback(v,i)})}_isClosed(){return this.state===St.closed}_isJoined(){return this.state===St.joined}_isJoining(){return this.state===St.joining}_isLeaving(){return this.state===St.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,i){const a=t.toLocaleLowerCase(),l={type:a,filter:n,callback:i};return this.bindings[a]?this.bindings[a].push(l):this.bindings[a]=[l],this}_off(t,n){const i=t.toLocaleLowerCase();return this.bindings[i]&&(this.bindings[i]=this.bindings[i].filter(a=>{var l;return!(((l=a.type)===null||l===void 0?void 0:l.toLocaleLowerCase())===i&&My.isEqual(a.filter,n))})),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const i in t)if(t[i]!==n[i])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(Hn.close,{},t)}_onError(t){this._on(Hn.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=St.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=OE(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=OE(t.columns,t.old_record)),n}}const yp=()=>{},Bc={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},o6=[1e3,2e3,5e3,1e4],l6=1e4,u6=`
171  addEventListener("message", (e) => {
172    if (e.data.event === "start") {
173      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
174    }
175  });`;class c6{constructor(t,n){var i;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=gg,this.transport=null,this.heartbeatIntervalMs=Bc.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=yp,this.ref=0,this.reconnectTimer=null,this.vsn=AE,this.logger=yp,this.conn=null,this.sendBuffer=[],this.serializer
175=new e6,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=a=>a?(...l)=>a(...l):(...l)=>fetch(...l),!(!((i=n?.params)===null||i===void 0)&&i.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${t}/${yg.websocket}`,this.httpEndpoint=FO(t),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n?.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=Y$.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n}
176
177To use Realtime in Node.js, you need to provide a WebSocket implementation:
178
179Option 1: Use Node.js 22+ which has native WebSocket support
180Option 2: Install and provide the "ws" package:
181
182  npm install ws
183
184  import ws from "ws"
185  const client = new RealtimeClient(url, {
186    ...options,
187    transport: ws
188  })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(t,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const i=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(i),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(t?this.conn.close(t,n??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,i){this.logger(t,n,i)}connectionState(){switch(this.conn&&this.conn.readyState){case os.connecting:return ls.Connecting;case os.open:return ls.Open;case os.closing:return ls.Closing;default:return ls.Closed}}isConnected(){return this.connectionState()===ls.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,n={config:{}}){const i=`realtime:${t}`,a=this.getChannels().find(l=>l.topic===i);if(a)return a;{const l=new My(`realtime:${t}`,n,this);return this.channels.push(l),l}}push(t){const{topic:n,event:i,payload:a,ref:l}=t,u=()=>{this.encode(t,d=>{var f;(f=this.conn)===null||f===void 0||f.send(d)})};this.log("push",`${n} ${i} (${l})`,a),this.isConnected()?u():this.sendBuffer.push(u)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(Q$,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},Bc.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(i=>i.topic===t&&(i._isJoined()||i._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,n=>
188{if(n.topic==="phoenix"&&n.event==="phx_reply")try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error")}catch(h){this.log("error","error in heartbeat callback",h)}n.ref&&n.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:i,event:a,payload:l,ref:u}=n,d=u?`(${u})`:"",f=l.status||"";this.log("receive",`${f} ${i} ${a} ${d}`.trim(),l),this.channels.filter(h=>h._isMember(i)).forEach(h=>h._trigger(a,l,u)),this._triggerStateCallbacks("message",n)})}_clearTimer(t){var n;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t))}_teardownConnection(){if(this.conn){if(this.conn.readyState===os.open||this.conn.readyState===os.connecting)try{this.conn.close()}catch(t){this.log("error","Error closing connection",t)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(n=>{this.log("error","error waiting for auth on connect",n),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this.workerRef.terminate()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(t){var n;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t)}_triggerChanError(){this.channels.forEach(t=>t._trigger(Hn.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const i=t.match(/\?/)?"&":"?",a=new URLSearchParams(n);return`${t}${i}${a}`}_workerObjectUrl(t){let n;if(t)n=t;else{const i=new Blob([u6],{type:"application/javascript"});n=URL.createObjectURL(i)}return n}_setConnectionState(t,n=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(t=null){let n;t?n=t:this.accessToken?n=await this.accessToken():n=this.accessTokenValue,this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(i=>{const a={access_token:n,version:W$};n&&i.updateJoinPayload(a),i.joinedOnce&&i._isJoined()&&i._push(Hn.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this.setAuth().catch(n=>{this.log("error",`error setting auth in ${t}`,n)})}_triggerStateCallbacks(t,n){try{this.stateChangeCallbacks[t].forEach(i=>{try{i(n)}catch(a){this.log("error",`error in ${t} callback`,a)}})}catch(i){this.log("error",`error triggering ${t} callbacks`,i)}}_setupReconnectionTimer(){this.reconnectTimer=new HO(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Bc.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,i,a,l,u,d,f,h,g,y,v,_;switch(this.transport=(n=t?.transport)!==null&&n!==void 0?n:null,this.timeout=(i=t?.timeout)!==null&&i!==void 0?i:gg,this.heartbeatIntervalMs=(a=t?.heartbeatIntervalMs)!==null&&a!==void 0?a:Bc.HEARTBEAT_INTERVAL,this.worker=(l
188=t?.worker)!==null&&l!==void 0?l:!1,this.accessToken=(u=t?.accessToken)!==null&&u!==void 0?u:null,this.heartbeatCallback=(d=t?.heartbeatCallback)!==null&&d!==void 0?d:yp,this.vsn=(f=t?.vsn)!==null&&f!==void 0?f:AE,t?.params&&(this.params=t.params),t?.logger&&(this.logger=t.logger),(t?.logLevel||t?.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(h=t?.reconnectAfterMs)!==null&&h!==void 0?h:(S=>o6[S-1]||l6),this.vsn){case $O:this.encode=(g=t?.encode)!==null&&g!==void 0?g:((S,E)=>E(JSON.stringify(S))),this.decode=(y=t?.decode)!==null&&y!==void 0?y:((S,E)=>E(JSON.parse(S)));break;case J$:this.encode=(v=t?.encode)!==null&&v!==void 0?v:this.serializer.encode.bind(this.serializer),this.decode=(_=t?.decode)!==null&&_!==void 0?_:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t?.workerUrl}}}class Wd extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function Ze(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class d6 extends Wd{constructor(t,n,i){super(t),this.name="StorageApiError",this.status=n,this.statusCode=i}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class bg extends Wd{constructor(t,n){super(t),this.name="StorageUnknownError",this.originalError=n}}const Ly=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),f6=()=>Response,_g=e=>{if(Array.isArray(e))return e.map(n=>_g(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,i])=>{const a=n.replace(/([-_][a-z])/gi,l=>l.toUpperCase().replace(/[-_]/g,""));t[a]=_g(i)}),t},h6=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},m6=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),vp=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},p6=(e,t,n)=>Z(void 0,void 0,void 0,function*(){const i=yield f6();e instanceof i&&!n?.noResolveJson?e.json().then(a=>{const l=e.status||500,u=a?.statusCode||l+"";t(new d6(vp(a),l,u))}).catch(a=>{t(new bg(vp(a),a))}):t(new bg(vp(e),e))}),g6=(e,t,n,i)=>{const a={method:e,headers:t?.headers||{}};return e==="GET"||!i?a:(h6(i)?(a.headers=Object.assign({"Content-Type":"application/json"},t?.headers),a.body=JSON.stringify(i)):a.body=i,t?.duplex&&(a.duplex=t.duplex),Object.assign(Object.assign({},a),n))};function ru(e,t,n,i,a,l){return Z(this,void 0,void 0,function*(){return new Promise((u,d)=>{e(n,g6(t,i,a,l)).then(f=>{if(!f.ok)throw f;return i?.noResolveJson?f:f.json()}).then(f=>u(f)).catch(f=>p6(f,d,i))})})}function Ml(e,t,n,i){return Z(this,void 0,void 0,function*(){return ru(e,"GET",t,n,i)})}function $n(e,t,n,i,a){return Z(this,void 0,void 0,function*(){return ru(e,"POST",t,i,a,n)})}function Sg(e,t,n,i,a){return Z(this,void 0,void 0,function*(){return ru(e,"PUT",t,i,a,n)})}function y6(e,t,n,i){return Z(this,void 0,void 0,function*(){return ru(e,"HEAD",t,Object.assign(Object.assign({},n),{noResolveJson:!0}),i)})}function Uy(e,t,n,i,a){return Z(this,void 0,void 0,function*(){return ru(e,"DELETE",t,i,a,n)})}class v6{constructor(t,n){this.downloadFn=t,this.shouldThrowOnError=n}then(t,n){return this.execute().then(t,n)}execute(){return Z(this,void 0,void 0,function*(){try{return{data:(yield this.downloadFn()).body,error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(Ze(t))return{data:null,error:t};throw t}})}}var GO;class b6{constructor(t,n){this.downloadFn=t,this.shouldThrowOnError=n,this[GO]="BlobDownloadBuilder",this.promise=null}asStream(){return new v6(this.downloadFn,this.shouldThrowOnError)}then(t,n){return this.getPromise().then(t,n)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}execute(){return Z(this,void 0,void 0,function*(){try{return{data:yield(yield this.downloadFn()).blob(),error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(Ze(t))return{data:null,error:t};throw t}})}}GO=Symbol.toStringTag;const _6={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},kE={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class S6{constructor(t,n={},i,a){this.shouldThrowOnError=!1,this.url=t,this.headers=n,this.bucketId=i,this.fetch=Ly(a)}throwOnError(){return this.shouldThrowOnError=!0,this}uploadOrUpdate(t,n,i,a){return Z(this,void 0,void 0,function*(){try{let l;const u=Object.assign(Object.assign({},kE),a);let d=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(u.upsert)});const f=u.metadata;typeof Blob<"u"&&i instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),f&&l.append("metadata",this.encodeMetadata(f)),l.append("",i)):typeof FormData<"u"&&i instanceof FormData?(l=i,l.has("cacheControl")||l.append("cacheControl",u.cacheControl),f&&!l.has("metadata")&&l.a
188ppend("metadata",this.encodeMetadata(f))):(l=i,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType,f&&(d["x-metadata"]=this.toBase64(this.encodeMetadata(f))),(typeof ReadableStream<"u"&&l instanceof ReadableStream||l&&typeof l=="object"&&"pipe"in l&&typeof l.pipe=="function")&&!u.duplex&&(u.duplex="half")),a?.headers&&(d=Object.assign(Object.assign({},d),a.headers));const h=this._removeEmptyFolders(n),g=this._getFinalPath(h),y=yield(t=="PUT"?Sg:$n)(this.fetch,`${this.url}/object/${g}`,l,Object.assign({headers:d},u?.duplex?{duplex:u.duplex}:{}));return{data:{path:h,id:y.Id,fullPath:y.Key},error:null}}catch(l){if(this.shouldThrowOnError)throw l;if(Ze(l))return{data:null,error:l};throw l}})}upload(t,n,i){return Z(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,n,i)})}uploadToSignedUrl(t,n,i,a){return Z(this,void 0,void 0,function*(){const l=this._removeEmptyFolders(t),u=this._getFinalPath(l),d=new URL(this.url+`/object/upload/sign/${u}`);d.searchParams.set("token",n);try{let f;const h=Object.assign({upsert:kE.upsert},a),g=Object.assign(Object.assign({},this.headers),{"x-upsert":String(h.upsert)});typeof Blob<"u"&&i instanceof Blob?(f=new FormData,f.append("cacheControl",h.cacheControl),f.append("",i)):typeof FormData<"u"&&i instanceof FormData?(f=i,f.append("cacheControl",h.cacheControl)):(f=i,g["cache-control"]=`max-age=${h.cacheControl}`,g["content-type"]=h.contentType);const y=yield Sg(this.fetch,d.toString(),f,{headers:g});return{data:{path:l,fullPath:y.Key},error:null}}catch(f){if(this.shouldThrowOnError)throw f;if(Ze(f))return{data:null,error:f};throw f}})}createSignedUploadUrl(t,n){return Z(this,void 0,void 0,function*(){try{let i=this._getFinalPath(t);const a=Object.assign({},this.headers);n?.upsert&&(a["x-upsert"]="true");const l=yield $n(this.fetch,`${this.url}/object/upload/sign/${i}`,{},{headers:a}),u=new URL(this.url+l.url),d=u.searchParams.get("token");if(!d)throw new Wd("No token returned by API");return{data:{signedUrl:u.toString(),path:t,token:d},error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(Ze(i))return{data:null,error:i};throw i}})}update(t,n,i){return Z(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,n,i)})}move(t,n,i){return Z(this,void 0,void 0,function*(){try{return{data:yield $n(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:i?.destinationBucket},{headers:this.headers}),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(Ze(a))return{data:null,error:a};throw a}})}copy(t,n,i){return Z(this,void 0,void 0,function*(){try{return{data:{path:(yield $n(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:i?.destinationBucket},{headers:this.headers})).Key},error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(Ze(a))return{data:null,error:a};throw a}})}createSignedUrl(t,n,i){return Z(this,void 0,void 0,function*(){try{let a=this._getFinalPath(t),l=yield $n(this.fetch,`${this.url}/object/sign/${a}`,Object.assign({expiresIn:n},i?.transform?{transform:i.transform}:{}),{headers:this.headers});const u=i?.download?`&download=${i.download===!0?"":i.download}`:"";return l={signedUrl:encodeURI(`${this.url}${l.signedURL}${u}`)},{data:l,error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(Ze(a))return{data:null,error:a};throw a}})}createSignedUrls(t,n,i){return Z(this,void 0,void 0,function*(){try{const a=yield $n(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:t},{headers:this.headers}),l=i?.download?`&download=${i.download===!0?"":i.download}`:"";return{data:a.map(u=>Object.assign(Object.assign({},u),{signedUrl:u.signedURL?encodeURI(`${this.url}${u.signedURL}${l}`):null})),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(Ze(a))return{data:null,error:a};throw a}})}download(t,n){const a=typeof n?.transform<"u"?"render/image/authenticated":"object",l=this.transformOptsToQueryString(n?.transform||{}),u=l?`?${l}`:"",d=this._getFinalPath(t),f=()=>Ml(this.fetch,`${this.url}/${a}/${d}${u}`,{headers:this.headers,noResolveJson:!0});return new b6(f,this.shouldThrowOnError)}info(t){return Z(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{const i=yield Ml(this.fetch,`${this.url}/object/info/${n}`,{headers:this.headers});return{data:_g(i),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(Ze(i))return{data:null,error:i};throw i}})}exists(t){return Z(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{return yield y6(this.fetch,`${this.url}/object/${n}`,{headers:this.headers}),{data:!0,error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(Ze(i)&&i instanceof bg){const a=i.originalError;if([400,404].includes(a?.status))return{data:!1,error:i}}throw i}})}getPublicUrl(t,n){const i=this._getFinalPath(t),a=[],l=n?.download?`download=${n.download===!0?"":n.download}`:"";l!==""&&a.push(l);const d=typeof n?.transform<"u"?"render/image":"object",f=this.transformOptsToQueryString(n?.transform||{});f!==""&&a.push(f);let h=a.join("&");return h!==""&&(h=`?${h}`),{data:{publicUrl:encodeURI(`${this.url}/${d}/public/${i}${h}`)}}}remove(t){return Z(this,void 0,void 0,function*(){try{return{data:yield Uy(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ze(n))return{data:null,error:n};throw n}})}list(t,n,i){return Z(this,void 0,void 0,function*(){try{const a=Object.assign(Object.assign(Object.assign({},_6),n),{prefix:t||""});return{data:yield $n(this.fetch,`${this.url}/object/list/${this.bucketId}`,a,{headers:this.headers},i),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(Ze(a))return{data:null,error:a};throw a}})}listV2(t,n){return Z(this,void 0,void 0,function*(){try{const i=Object.assign({},t);return{data:yield $n(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,i,{headers:this.headers},n),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(Ze(i))return{data:null,error:i};throw i}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const n=[];return t.width&&n.push(`width=${t.width}`),t.height&&n.push(`height=${t.height}`),t.resize&&n.push(`resize=${t.resize}`),t.format&&n.push(`format=${t.format}`),t.quality&&n.push(`quality=${t.quality}`),n.join("&")}}const KO="2.86.0",YO={"X-Client-Info":`storage-js/${KO}`};class w6{constructor(t,n={},i,a){this.shouldThrowOnError=!1;const l=new URL(t);a?.useNewHostname&&/supabase\.(co|in|red)$/.test(l.hostname)&&!l.hostname.includes("storage.supabase.")&&(l.hostname=l.hostname.replace("supabase.","storage.supabase.")),this.url=l.href.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},YO),n),this.fetch=Ly(i)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(t){return Z(this,void 0,void 0,function*(){try{const n=this.listBucketOptionsToQueryString(t);return{data:yield Ml(this.fetch,`${this.url}/bucket${n}`,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ze(n))return{data:null,error:n};throw n}})}getBucket(t){return Z(this,void 0,void 0,function*(){try{return{data:yield Ml(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ze(n))return{data:null,error:n};throw n}})}createBucket(t){return Z(this,arguments,void 0,function*(n,i={public:!1}){try{return{data:yield $n(this.fetch,`${this.url}/bucket`,{id:n,name:n,type:i.type,public:i.public,file_size_limit:i.fileSizeLimit,allowed_mime_types:i.allowedMimeTypes},{headers:this.headers}),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(Ze(a))return{data:null,error:a};throw a}})}updateBucket(t,n){return Z(this,void 0,void 0,function*(){try{return{data:yield Sg(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(Ze(i))return{data:null,error:i};throw i}})}emptyBucket(t){return Z(this,void 0,void 0,function*(){try{return{data:yield $n(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ze(n))return{data:null,error:n};throw n}})}deleteBucket(t){return Z(this,void 0,void 0,function*(){try{return{data:yield Uy(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ze(n))return{data:null,error:n};throw n}})}listBucketOptionsToQueryString(t){const n={};return t&&("limit"in t&&(n.limit=String(t.limit)),"offset"in t&&(n.offset=String(t.offset)),t.search&&(n.search=t.search),t.sortColumn&&(n.sortColumn=t.sortColumn),t.sortOrder&&(n.sortOrder=t.sortOrder)),Object.keys(n).length>0?"?"+new URLSearchParams(n).toString():""}}
188var Ll=class extends Error{constructor(e,t){super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&t.icebergType?.includes("CommitState")===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function E6(e,t,n){const i=new URL(t,e);if(n)for(const[a,l]of Object.entries(n))l!==void 0&&i.searchParams.set(a,l);return i.toString()}async function T6(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function x6(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:i,query:a,body:l,headers:u}){const d=E6(e.baseUrl,i,a),f=await T6(e.auth),h=await t(d,{method:n,headers:{...l?{"Content-Type":"application/json"}:{},...f,...u},body:l?JSON.stringify(l):void 0}),g=await h.text(),y=(h.headers.get("content-type")||"").includes("application/json"),v=y&&g?JSON.parse(g):g;if(!h.ok){const _=y?v:void 0,S=_?.error;throw new Ll(S?.message??`Request failed with status ${h.status}`,{status:h.status,icebergType:S?.type,icebergCode:S?.code,details:_})}return{status:h.status,headers:h.headers,data:v}}}}function Vc(e){return e.join("�")}var A6=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Vc(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(i=>({namespace:i}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Vc(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Vc(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Vc(e.namespace)}`}),!0}catch(t){if(t instanceof Ll&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof Ll&&n.status===409)return;throw n}}};function ca(e){return e.join("�")}var O6=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ca(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ca(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ca(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${ca(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String(t?.purge??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ca(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${ca(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof Ll&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof Ll&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},C6=class{constructor(e){let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=x6({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=e.accessDelegation?.join(","),this.namespaceOps=new A6(this.client,t),this.tableOps=new O6(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
188async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}};class R6{constructor(t,n={},i){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},YO),n),this.fetch=Ly(i)}throwOnError(){return this.shouldThrowOnError=!0,this}createBucket(t){return Z(this,void 0,void 0,function*(){try{return{data:yield $n(this.fetch,`${this.url}/bucket`,{name:t},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ze(n))return{data:null,error:n};throw n}})}listBuckets(t){return Z(this,void 0,void 0,function*(){try{const n=new URLSearchParams;t?.limit!==void 0&&n.set("limit",t.limit.toString()),t?.offset!==void 0&&n.set("offset",t.offset.toString()),t?.sortColumn&&n.set("sortColumn",t.sortColumn),t?.sortOrder&&n.set("sortOrder",t.sortOrder),t?.search&&n.set("search",t.search);const i=n.toString(),a=i?`${this.url}/bucket?${i}`:`${this.url}/bucket`;return{data:yield Ml(this.fetch,a,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ze(n))return{data:null,error:n};throw n}})}deleteBucket(t){return Z(this,void 0,void 0,function*(){try{return{data:yield Uy(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ze(n))return{data:null,error:n};throw n}})}from(t){if(!m6(t))throw new Wd("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");return new C6({baseUrl:this.url,catalogName:t,auth:{type:"custom",getHeaders:()=>Z(this,void 0,void 0,function*(){return this.headers})},fetch:this.fetch})}}const Iy={"X-Client-Info":`storage-js/${KO}`,"Content-Type":"application/json"};class XO extends Error{constructor(t){super(t),this.__isStorageVectorsError=!0,this.name="StorageVectorsError"}}function mn(e){return typeof e=="object"&&e!==null&&"__isStorageVectorsError"in e}class bp extends XO{constructor(t,n,i){super(t),this.name="StorageVectorsApiError",this.status=n,this.statusCode=i}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class k6 extends XO{constructor(t,n){super(t),this.name="StorageVectorsUnknownError",this.originalError=n}}var NE;(function(e){e.InternalError="InternalError",e.S3VectorConflictException="S3VectorConflictException",e.S3VectorNotFoundException="S3VectorNotFoundException",e.S3VectorBucketNotEmpty="S3VectorBucketNotEmpty",e.S3VectorMaxBucketsExceeded="S3VectorMaxBucketsExceeded",e.S3VectorMaxIndexesExceeded="S3VectorMaxIndexesExceeded"})(NE||(NE={}));const Py=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),N6=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},jE=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),j6=(e,t,n)=>Z(void 0,void 0,void 0,function*(){if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"&&!n?.noResolveJson){const a=e.status||500,l=e;if(typeof l.json=="function")l.json().then(u=>{const d=u?.statusCode||u?.code||a+"";t(new bp(jE(u),a,d))}).catch(()=>{const u=a+"",d=l.statusText||`HTTP ${a} error`;t(new bp(d,a,u))});else{const u=a+"",d=l.statusText||`HTTP ${a} error`;t(new bp(d,a,u))}}else t(new k6(jE(e),e))}),D6=(e,t,n,i)=>{const a={method:e,headers:t?.headers||{}};return i?(N6(i)?(a.headers=Object.assign({"Content-Type":"application/json"},t?.headers),a.body=JSON.stringify(i)):a.body=i,Object.assign(Object.assign({},a),n)):a};function M6(e,t,n,i,a,l){return Z(this,void 0,void 0,function*(){return new Promise((u,d)=>{e(n,D6(t,i,a,l)).then(f=>{if(!f.ok)throw f;if(i?.noResolveJson)return f;const h=f.headers.get("content-type");return!h||!h.includes("application/json")?{}:f.json()}).then(f=>u(f)).catch(f=>j6(f,d,i))})})}function pn(e,t,n,i,a){return Z(this,void 0,void 0,function*(){return M6(e,"POST",t,i,a,n)})}class L6{constructor(t,n={},i){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},Iy),n),this.fetch=Py(i)}throwOnError(){return this.shouldThrowOnError=!0,this}createIndex(t){return Z(this,void 0,void 0,function*(){try{return{data:(yield pn(this.fetch,`${this.url}/CreateIndex`,t,{headers:this.headers}))||{},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(mn(n))return{data:null,error:n};throw n}})}getIndex(t,n){return Z(this,void 0,void 0,function*(){try{return{data:yield pn(this.fetch,`${this.url}/GetIndex`,{vectorBucketName:t,indexName:n},{headers:this.headers}),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(mn(i))return{data:null,error:i};throw i}})}listIndexes(t){return Z(this,void 0,void 0,function*(){try{return{data:yield pn(this.fetch,`${this.url}/ListIndexes`,t,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(mn(n))return{data:null,error:n};throw n}})}deleteIndex(t,n){return Z(this,void 0,void 0,function*(){try{return{data:(yield pn(this.fetch,`${this.url}/DeleteIndex`,{vectorBucketName:t,indexName:n},{headers:this.headers}))||{},error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(mn(i))return{data:null,error:i};throw i}})}}class U6{constructor(t,n={},i){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},Iy),n),this.fetch=Py(i)}throwOnError(){return this.shouldThrowOnError=!0,this}putVectors(t){return Z(this,void 0,void 0,function*(){try{if(t.vectors.length<1||t.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return{data:(yield pn(this.fetch,`${this.url}/PutVectors`,t,{headers:this.headers}))||{},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(mn(n))return{data:null,error:n};throw n}})}getVectors(t){return Z(this,void 0,void 0,function*(){try{return{data:yield pn(this.fetch,`${this.url}/GetVectors`,t,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(mn(n))return{data:null,error:n};throw n}})}listVectors(t){return Z(this,void 0,void 0,function*(){try{if(t.segmentCount!==void 0){if(t.segmentCount<1||t.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
188if(t.segmentIndex!==void 0&&(t.segmentIndex<0||t.segmentIndex>=t.segmentCount))throw new Error(`segmentIndex must be between 0 and ${t.segmentCount-1}`)}return{data:yield pn(this.fetch,`${this.url}/ListVectors`,t,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(mn(n))return{data:null,error:n};throw n}})}queryVectors(t){return Z(this,void 0,void 0,function*(){try{return{data:yield pn(this.fetch,`${this.url}/QueryVectors`,t,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(mn(n))return{data:null,error:n};throw n}})}deleteVectors(t){return Z(this,void 0,void 0,function*(){try{if(t.keys.length<1||t.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return{data:(yield pn(this.fetch,`${this.url}/DeleteVectors`,t,{headers:this.headers}))||{},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(mn(n))return{data:null,error:n};throw n}})}}class I6{constructor(t,n={},i){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},Iy),n),this.fetch=Py(i)}throwOnError(){return this.shouldThrowOnError=!0,this}createBucket(t){return Z(this,void 0,void 0,function*(){try{return{data:(yield pn(this.fetch,`${this.url}/CreateVectorBucket`,{vectorBucketName:t},{headers:this.headers}))||{},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(mn(n))return{data:null,error:n};throw n}})}getBucket(t){return Z(this,void 0,void 0,function*(){try{return{data:yield pn(this.fetch,`${this.url}/GetVectorBucket`,{vectorBucketName:t},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(mn(n))return{data:null,error:n};throw n}})}listBuckets(){return Z(this,arguments,void 0,function*(t={}){try{return{data:yield pn(this.fetch,`${this.url}/ListVectorBuckets`,t,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(mn(n))return{data:null,error:n};throw n}})}deleteBucket(t){return Z(this,void 0,void 0,function*(){try{return{data:(yield pn(this.fetch,`${this.url}/DeleteVectorBucket`,{vectorBucketName:t},{headers:this.headers}))||{},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(mn(n))return{data:null,error:n};throw n}})}}class P6 extends I6{constructor(t,n={}){super(t,n.headers||{},n.fetch)}from(t){return new B6(this.url,this.headers,t,this.fetch)}createBucket(t){const n=Object.create(null,{createBucket:{get:()=>super.createBucket}});return Z(this,void 0,void 0,function*(){return n.createBucket.call(this,t)})}getBucket(t){const n=Object.create(null,{getBucket:{get:()=>super.getBucket}});return Z(this,void 0,void 0,function*(){return n.getBucket.call(this,t)})}listBuckets(){const t=Object.create(null,{listBuckets:{get:()=>super.listBuckets}});return Z(this,arguments,void 0,function*(n={}){return t.listBuckets.call(this,n)})}deleteBucket(t){const n=Object.create(null,{deleteBucket:{get:()=>super.deleteBucket}});return Z(this,void 0,void 0,function*(){return n.deleteBucket.call(this,t)})}}class B6 extends L6{constructor(t,n,i,a){super(t,n,a),this.vectorBucketName=i}createIndex(t){const n=Object.create(null,{createIndex:{get:()=>super.createIndex}});return Z(this,void 0,void 0,function*(){return n.createIndex.call(this,Object.assign(Object.assign({},t),{vectorBucketName:this.vectorBucketName}))})}listIndexes(){const t=Object.create(null,{listIndexes:{get:()=>super.listIndexes}});return Z(this,arguments,void 0,function*(n={}){return t.listIndexes.call(this,Object.assign(Object.assign({},n),{vectorBucketName:this.vectorBucketName}))})}getIndex(t){const n=Object.create(null,{getIndex:{get:()=>super.getIndex}});return Z(this,void 0,void 0,function*(){return n.getIndex.call(this,this.vectorBucketName,t)})}deleteIndex(t){const n=Object.create(null,{deleteIndex:{get:()=>super.deleteIndex}});return Z(this,void 0,void 0,function*(){return n.deleteIndex.call(this,this.vectorBucketName,t)})}index(t){return new V6(this.url,this.headers,this.vectorBucketName,t,this.fetch)}}class V6 extends U6{constructor(t,n,i,a,l){super(t,n,l),this.vectorBucketName=i,this.indexName=a}putVectors(t){const n=Object.create(null,{putVectors:{get:()=>super.putVectors}});return Z(this,void 0,void 0,function*(){return n.putVectors.call(this,Object.assign(Object.assign({},t),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}getVectors(t){const n=Object.create(null,{getVectors:{get:()=>super.getVectors}});return Z(this,void 0,void 0,function*(){return n.getVectors.call(this,Object.assign(Object.assign({},t),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}listVectors(){const t=Object.create(null,{listVectors:{get:()=>super.listVectors}});return Z(this,arguments,void 0,function*(n={}){return t.listVectors.call(this,Object.assign(Object.assign({},n),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}queryVectors(t){const n=Object.create(null,{queryVectors:{get:()=>super.queryVectors}});return Z(this,void 0,void 0,function*(){return n.queryVectors.call(this,Object.assign(Object.assign({},t),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}deleteVectors(t){const n=Object.create(null,{deleteVectors:{get:()=>super.deleteVectors}});return Z(this,void 0,void 0,function*(){return n.deleteVectors.call(this,Object.assign(Object.assign({},t),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}}class z6 extends w6{constructor(t,n={},i,a){super(t,n,i,a)}from(t){return new S6(this.url,this.headers,t,this.fetch)}get vectors(){return new P6(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new R6(this.url+"/iceberg",this.headers,this.fetch)}}const $6="2.86.0";let dl="";typeof Deno<"u"?dl="deno":typeof document<"u"?dl="web":typeof navigator<"u"&&navigator.product==="ReactNative"?dl="react-native":dl="node";const H6={"X-Client-Info":`supabase-js-${dl}/${$6}`},q6={headers:H6},F6={schema:"public"},G6={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},K6={},Y6=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),X6=()=>Headers,W6=(e,t,n)=>{const i=Y6(n),a=X6();return async(l,u)=>{var d;const f=(d=await t())!==null&&d!==void 0?d:e;let h=new a(u?.headers);return h.has("apikey")||h.set("apikey",e),h.has("Authorization")||h.set("Authorization",`Bearer ${f}`),i(l,Object.assign(Object.assign({},u),{headers:h}))}};function J6(e){return e.endsWith("/")?e:e+"/"}function Q6(e,t){var n,i;const{db:a,auth:l,realtime:u,global:d}=e,{db:f,auth:h,realtime:g,global:y}=t,v={db:Object.assign(Object.assign({},f),a),auth:Object.assign(Object.assign({},h),l),realtime:Object.assign(Object.assign({},g),u),storage:{},global:Object.assign(Object.assign(Object.assign({},y),d),{headers:Object.assign(Object.assign({},(n=y?.headers)!==null&&n!==void 0?n:{}),(i=d?.headers)!==null&&i!==void 0?i:{})}),accessToken:async()=>""};return e.accessToken?v.accessToken=e.accessToken:delete v.accessToken,v}function Z6(e){const t=e?.trim();if(!t)throw new Error("supabaseUrl is required.");
188if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(J6(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}const WO="2.86.0",ga=30*1e3,wg=3,_p=wg*ga,e8="http://localhost:9999",t8="supabase.auth.token",n8={"X-Client-Info":`gotrue-js/${WO}`},Eg="X-Supabase-Api-Version",JO={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},r8=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,i8=600*1e3;class Ul extends Error{constructor(t,n,i){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=i}}function re(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class s8 extends Ul{constructor(t,n,i){super(t,n,i),this.name="AuthApiError",this.status=n,this.code=i}}function a8(e){return re(e)&&e.name==="AuthApiError"}class us extends Ul{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class Oi extends Ul{constructor(t,n,i,a){super(t,i,a),this.name=n,this.status=i}}class hn extends Oi{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function o8(e){return re(e)&&e.name==="AuthSessionMissingError"}class da extends Oi{constructor(){super("Auth session or user missing","AuthInvalidToken
188ResponseError",500,void 0)}}class zc extends Oi{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class $c extends Oi{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function l8(e){return re(e)&&e.name==="AuthImplicitGrantRedirectError"}class DE extends Oi{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Tg extends Oi{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Sp(e){return re(e)&&e.name==="AuthRetryableFetchError"}class ME extends Oi{constructor(t,n,i){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=i}}class xg extends Oi{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const bd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),LE=` 	
189\r=`.split(""),u8=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<LE.length;t+=1)e[LE[t].charCodeAt(0)]=-2;for(let t=0;t<bd.length;t+=1)e[bd[t].charCodeAt(0)]=t;return e})();function UE(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const i=t.queue>>t.queuedBits-6&63;n(bd[i]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const i=t.queue>>t.queuedBits-6&63;n(bd[i]),t.queuedBits-=6}}function QO(e,t,n){const i=u8[e];if(i>-1)for(t.queue=t.queue<<6|i,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(i===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function IE(e){const t=[],n=u=>{t.push(String.fromCodePoint(u))},i={utf8seq:0,codepoint:0},a={queue:0,queuedBits:0},l=u=>{f8(u,i,n)};for(let u=0;u<e.length;u+=1)QO(e.charCodeAt(u),a,l);return t.join("")}function c8(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function d8(e,t){for(let n=0;n<e.length;n+=1){let i=e.charCodeAt(n);if(i>55295&&i<=56319){const a=(i-55296)*1024&65535;i=(e.charCodeAt(n+1)-56320&65535|a)+65536,n+=1}c8(i,t)}}function f8(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let i=1;i<6;i+=1)if((e>>7-i&1)===0){t.utf8seq=i;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function Da(e){const t=[],n={queue:0,queuedBits:0},i=a=>{t.push(a)};for(let a=0;a<e.length;a+=1)QO(e.charCodeAt(a),n,i);return new Uint8Array(t)}function h8(e){const t=[];return d8(e,n=>t.push(n)),new Uint8Array(t)}function fs(e){const t=[],n={queue:0,queuedBits:0},i=a=>{t.push(a)};return e.forEach(a=>UE(a,n,i)),UE(null,n,i),t.join("")}function m8(e){return Math.round(Date.now()/1e3)+e}function p8(){return Symbol("auth-callback")}const Nt=()=>typeof window<"u"&&typeof document<"u",Wi={tested:!1,writable:!1},ZO=()=>{if(!Nt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Wi.tested)return Wi.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Wi.tested=!0,Wi.writable=!0}catch{Wi.tested=!0,Wi.writable=!1}return Wi.writable};function g8(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((a,l)=>{t[l]=a})}catch{}return n.searchParams.forEach((i,a)=>{t[a]=i}),t}const eC=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),y8=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",ya=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Ji=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},ci=async(e,t)=>{await e.removeItem(t)};class Jd{constructor(){this.promise=new Jd.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Jd.promiseConstructor=Promise;function wp(e){const t=e.split(".");if(t.length!==3)throw new xg("Invalid JWT structure");for(let i=0;i<t.length;i++)if(!r8.test(t[i]))throw new xg("JWT not in base64url format");return{header:JSON.parse(IE(t[0])),payload:JSON.parse(IE(t[1])),signature:Da(t[2]),raw:{header:t[0],payload:t[1]}}}async function v8(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function b8(e,t){return new Promise((i,a)=>{(async()=>{for(let l=0;l<1/0;l++)try{const u=await e(l);if(!t(l,null,u)){i(u);return}}catch(u){if(!t(l,u)){a(u);return}}})()})}function _8(e){return("0"+e.toString(16)).substr(-2)}function S8(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",i=n.length;let a="";for(let l=0;l<56;l++)a+=n.charAt(Math.floor(Math.random()*i));return a}return crypto.getRandomValues(t),Array.from(t,_8).join("")}async function w8(e){const n=new TextEncoder().encode(e),i=await crypto.subtle.digest("SHA-256",
189n),a=new Uint8Array(i);return Array.from(a).map(l=>String.fromCharCode(l)).join("")}async function E8(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await w8(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function fa(e,t,n=!1){const i=S8();let a=i;n&&(a+="/PASSWORD_RECOVERY"),await ya(e,`${t}-code-verifier`,a);const l=await E8(i);return[l,i===l?"plain":"s256"]}const T8=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function x8(e){const t=e.headers.get(Eg);if(!t||!t.match(T8))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function A8(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function O8(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const C8=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function ha(e){if(!C8.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Ep(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const i=n.toString();if(i==="Symbol(Symbol.toPrimitive)"||i==="Symbol(Symbol.toStringTag)"||i==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function R8(e,t){return new Proxy(e,{get:(n,i,a)=>{if(i==="__isInsecureUserWarningProxy")return!0;if(typeof i=="symbol"){const l=i.toString();if(l==="Symbol(Symbol.toPrimitive)"||l==="Symbol(Symbol.toStringTag)"||l==="Symbol(util.inspect.custom)"||l==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,i,a)}return!t.value&&typeof i=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(n,i,a)}})}function PE(e){return JSON.parse(JSON.stringify(e))}const ts=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),k8=[502,503,504];async function BE(e){var t;if(!y8(e))throw new Tg(ts(e),0);if(k8.includes(e.status))throw new Tg(ts(e),e.status);let n;try{n=await e.json()}catch(l){throw new us(ts(l),l)}let i;const a=x8(e);if(a&&a.getTime()>=JO["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?i=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(i=n.error_code),i){if(i==="weak_password")throw new ME(ts(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(i==="session_not_found")throw new hn}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((l,u)=>l&&typeof u=="string",!0))throw new ME(ts(n),e.status,n.weak_password.reasons);throw new s8(ts(n),e.status||500,i)}const N8=(e,t,n,i)=>{const a={method:e,headers:t?.headers||{}};return e==="GET"?a:(a.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"}
189,t?.headers),a.body=JSON.stringify(i),Object.assign(Object.assign({},a),n))};async function oe(e,t,n,i){var a;const l=Object.assign({},i?.headers);l[Eg]||(l[Eg]=JO["2024-01-01"].name),i?.jwt&&(l.Authorization=`Bearer ${i.jwt}`);const u=(a=i?.query)!==null&&a!==void 0?a:{};i?.redirectTo&&(u.redirect_to=i.redirectTo);const d=Object.keys(u).length?"?"+new URLSearchParams(u).toString():"",f=await j8(e,t,n+d,{headers:l,noResolveJson:i?.noResolveJson},{},i?.body);return i?.xform?i?.xform(f):{data:Object.assign({},f),error:null}}async function j8(e,t,n,i,a,l){const u=N8(t,i,a,l);let d;try{d=await e(n,Object.assign({},u))}catch(f){throw console.error(f),new Tg(ts(f),0)}if(d.ok||await BE(d),i?.noResolveJson)return d;try{return await d.json()}catch(f){await BE(f)}}function Vn(e){var t;let n=null;L8(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=m8(e.expires_in)));const i=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:i},error:null}}function VE(e){const t=Vn(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,i)=>n&&typeof i=="string",!0)&&(t.data.weak_password=e.weak_password),t}function fi(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function D8(e){return{data:e,error:null}}function M8(e){const{action_link:t,email_otp:n,hashed_token:i,redirect_to:a,verification_type:l}=e,u=ro(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),d={action_link:t,email_otp:n,hashed_token:i,redirect_to:a,verification_type:l},f=Object.assign({},u);return{data:{properties:d,user:f},error:null}}function zE(e){return e}function L8(e){return e.access_token&&e.refresh_token&&e.expires_in}const Tp=["global","local","others"];class U8{constructor({url:t="",headers:n={},fetch:i}){this.url=t,this.headers=n,this.fetch=eC(i),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(t,n=Tp[0]){if(Tp.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Tp.join(", ")}`);try{return await oe(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(i){if(re(i))return{data:null,error:i};throw i}}async inviteUserByEmail(t,n={}){try{return await oe(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:fi})}catch(i){if(re(i))return{data:{user:null},error:i};throw i}}async generateLink(t){try{const{options:n}=t,i=ro(t,["options"]),a=Object.assign(Object.assign({},i),n);return"newEmail"in i&&(a.new_email=i?.newEmail,delete a.newEmail),await oe(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:a,headers:this.headers,xform:M8,redirectTo:n?.redirectTo})}catch(n){if(re(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await oe(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:fi})}catch(n){if(re(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,i,a,l,u,d,f;try{const h={nextPage:null,lastPage:0,total:0},g=await oe(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(i=(n=t?.page)===null||n===void 0?void 0:n.toString())!==null&&i!==void 0?i:"",per_page:(l=(a=t?.perPage)===null||a===void 0?void 0:a.toString())!==null&&l!==void 0?l:""},xform:zE});if(g.error)throw g.error;const y=await g.json(),v=(u=g.headers.get("x-total-count"))!==null&&u!==void 0?u:0,_=(f=(d=g.headers.get("link"))===null||d===void 0?void 0:d.split(","))!==null&&f!==void 0?f:[];return _.length>0&&(_.forEach(S=>{const E=parseInt(S.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(S.split(";")[1].split("=")[1]);h[`${x}Page`]=E}),h.total=parseInt(v)),{data:Object.assign(Object.assign({},y),h),error:null}}catch(h){if(re(h))return{data:{users:[]},error:h};throw h}}async getUserById(t){ha(t);try{return await oe(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:fi})}catch(n){if(re(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){ha(t);try{return await oe(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:fi})}catch(i){if(re(i))return{data:{user:null},error:i};throw i}}async deleteUser(t,n=!1){ha(t);
189try{return await oe(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:fi})}catch(i){if(re(i))return{data:{user:null},error:i};throw i}}async _listFactors(t){ha(t.userId);try{const{data:n,error:i}=await oe(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:a=>({data:{factors:a},error:null})});return{data:n,error:i}}catch(n){if(re(n))return{data:null,error:n};throw n}}async _deleteFactor(t){ha(t.userId),ha(t.id);try{return{data:await oe(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(re(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,i,a,l,u,d,f;try{const h={nextPage:null,lastPage:0,total:0},g=await oe(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(i=(n=t?.page)===null||n===void 0?void 0:n.toString())!==null&&i!==void 0?i:"",per_page:(l=(a=t?.perPage)===null||a===void 0?void 0:a.toString())!==null&&l!==void 0?l:""},xform:zE});if(g.error)throw g.error;const y=await g.json(),v=(u=g.headers.get("x-total-count"))!==null&&u!==void 0?u:0,_=(f=(d=g.headers.get("link"))===null||d===void 0?void 0:d.split(","))!==null&&f!==void 0?f:[];return _.length>0&&(_.forEach(S=>{const E=parseInt(S.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(S.split(";")[1].split("=")[1]);h[`${x}Page`]=E}),h.total=parseInt(v)),{data:Object.assign(Object.assign({},y),h),error:null}}catch(h){if(re(h))return{data:{clients:[]},error:h};throw h}}async _createOAuthClient(t){try{return await oe(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(re(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await oe(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(re(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await oe(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(re(i))return{data:null,error:i};throw i}}async _deleteOAuthClient(t){try{return await oe(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(re(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await oe(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(re(n))return{data:null,error:n};throw n}}}function $E(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const ma={debug:!!(globalThis&&ZO()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class tC extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class I8 extends tC{}async function P8(e,t,n){ma.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const i=new globalThis.AbortController;return t>0&&setTimeout(()=>{i.abort(),ma.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:i.signal},async a=>{if(a){ma.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,a.name);try{return await n()}finally{ma.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,a.name)}}else{if(t===0)throw ma.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new I8(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(ma.debug)try{const l=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(l,null,"  "))}catch(l){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",l)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}function B8(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function nC(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}
189" is invalid.`);return e.toLowerCase()}function V8(e){return parseInt(e,16)}function z8(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,i=>i.toString(16).padStart(2,"0")).join("")}function $8(e){var t;const{chainId:n,domain:i,expirationTime:a,issuedAt:l=new Date,nonce:u,notBefore:d,requestId:f,resources:h,scheme:g,uri:y,version:v}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!i)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(u&&u.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${u}`);if(!y)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(v!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${v}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(`
190`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const _=nC(e.address),S=g?`${g}://${i}`:i,E=e.statement?`${e.statement}
191`:"",x=`${S} wants you to sign in with your Ethereum account:
192${_}
193
194${E}`;let A=`URI: ${y}
195Version: ${v}
196Chain ID: ${n}${u?`
197Nonce: ${u}`:""}
198Issued At: ${l.toISOString()}`;if(a&&(A+=`
199Expiration Time: ${a.toISOString()}`),d&&(A+=`
200Not Before: ${d.toISOString()}`),f&&(A+=`
201Request ID: ${f}`),h){let N=`
202Resources:`;for(const R of h){if(!R||typeof R!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${R}`);N+=`
203- ${R}`}A+=N}return`${x}
204${A}`}class pt extends Error{constructor({message:t,code:n,cause:i,name:a}){var l;super(t,{cause:i}),this.__isWebAuthnError=!0,this.name=(l=a??(i instanceof Error?i.name:void 0))!==null&&l!==void 0?l:"Unknown Error",this.code=n}}class _d extends pt{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function H8({error:e,options:t}){var n,i,a;const{publicKey:l}=t;if(!l)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new pt({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=l.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new pt({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((i=l.authenticatorSelection)===null||i===void 0?void 0:i.userVerification)==="required")return new pt({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((a=l.authenticatorSelection)===null||a===void 0?void 0:a.userVerification)==="required")return new pt({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new pt({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new pt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return l.pubKeyCredParams.filter(d=>d.type==="public-key").length===0?new pt({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new pt({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const u=window.location.hostname;
204if(rC(u)){if(l.rp.id!==u)return new pt({message:`The RP ID "${l.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new pt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(l.user.id.byteLength<1||l.user.id.byteLength>64)return new pt({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new pt({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new pt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function q8({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new pt({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new pt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const i=window.location.hostname;if(rC(i)){if(n.rpId!==i)return new pt({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new pt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new pt({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new pt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class F8{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const G8=new F8;function K8(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:i}=e,a=ro(e,["challenge","user","excludeCredentials"]),l=Da(t).buffer,u=Object.assign(Object.assign({},n),{id:Da(n.id).buffer}),d=Object.assign(Object.assign({},a),{challenge:l,user:u});if(i&&i.length>0){d.excludeCredentials=new Array(i.length);for(let f=0;f<i.length;f++){const h=i[f];d.excludeCredentials[f]=Object.assign(Object.assign({},h),{id:Da(h.id).buffer,type:h.type||"public-key",transports:h.transports})}}return d}function Y8(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,i=ro(e,["challenge","allowCredentials"]),a=Da(t).buffer,l=Object.assign(Object.assign({},i),{challenge:a});if(n&&n.length>0){l.allowCredentials=new Array(n.length);for(let u=0;u<n.length;u++){const d=n[u];l.allowCredentials[u]=Object.assign(Object.assign({},d),{id:Da(d.id).buffer,type:d.type||"public-key",transports:d.transports})}}return l}function X8(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:fs(new Uint8Array(e.response.attestationObject)),clientDataJSON:fs(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function W8(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,i=e.getClientExtensionResults(),a=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:fs(new Uint8Array(a.authenticatorData)),clientDataJSON:fs(new Uint8Array(a.clientDataJSON)),signature:fs(new Uint8Array(a.signature)),userHandle:a.userHandle?fs(new Uint8Array(a.userHandle)):void 0},type:"public-key",clientExtensionResults:i,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function rC(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function HE(){var e,t;return!!(Nt()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator?.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator?.credentials)===null||t===void 0?void 0:t.get)=="function")}async function J8(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new _d("Browser returned unexpected credential type",t)}:{data:null,error:new _d("Empty credential response",t)}}
204catch(t){return{data:null,error:H8({error:t,options:e})}}}async function Q8(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new _d("Browser returned unexpected credential type",t)}:{data:null,error:new _d("Empty credential response",t)}}catch(t){return{data:null,error:q8({error:t,options:e})}}}const Z8={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},eH={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Sd(...e){const t=a=>a!==null&&typeof a=="object"&&!Array.isArray(a),n=a=>a instanceof ArrayBuffer||ArrayBuffer.isView(a),i={};for(const a of e)if(a)for(const l in a){const u=a[l];if(u!==void 0)if(Array.isArray(u))i[l]=u;else if(n(u))i[l]=u;else if(t(u)){const d=i[l];t(d)?i[l]=Sd(d,u):i[l]=Sd(u)}else i[l]=u}return i}function tH(e,t){return Sd(Z8,e,t||{})}function nH(e,t){return Sd(eH,e,t||{})}class rH{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:n,friendlyName:i,signal:a},l){try{const{data:u,error:d}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!u)return{data:null,error:d};const f=a??G8.createNewAbortSignal();if(u.webauthn.type==="create"){const{user:h}=u.webauthn.credential_options.publicKey;h.name||(h.name=`${h.id}:${i}`),h.displayName||(h.displayName=h.name)}switch(u.webauthn.type){case"create":{const h=tH(u.webauthn.credential_options.publicKey,l?.create),{data:g,error:y}=await J8({publicKey:h,signal:f});return g?{data:{factorId:t,challengeId:u.id,webauthn:{type:u.webauthn.type,credential_response:g}},error:null}:{data:null,error:y}}case"request":{const h=nH(u.webauthn.credential_options.publicKey,l?.request),{data:g,error:y}=await Q8(Object.assign(Object.assign({},u.webauthn.credential_options),{publicKey:h,signal:f}));return g?{data:{factorId:t,challengeId:u.id,webauthn:{type:u.webauthn.type,credential_response:g}},error:null}:{data:null,error:y}}}}catch(u){return re(u)?{data:null,error:u}:{data:null,error:new us("Unexpected error in challenge",u)}}}async _verify({challengeId:t,factorId:n,webauthn:i}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:i})}async _authenticate({factorId:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:i=typeof window<"u"?[window.location.origin]:void 0,signal:a}={}},l){if(!n)return{data:null,error:new Ul("rpId is required for WebAuthn authentication")};try{if(!HE())return{data:null,error:new us("Browser does not support WebAuthn",null)};const{data:u,error:d}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:i},signal:a},{request:l});if(!u)return{data:null,error:d};const{webauthn:f}=u;return this._verify({factorId:t,challengeId:u.challengeId,webauthn:{type:f.type,rpId:n,rpOrigins:i,credential_response:f.credential_response}})}catch(u){return re(u)?{data:null,error:u}:{data:null,error:new us("Unexpected error in authenticate",u)}}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:i=typeof window<"u"?[window.location.origin]:void 0,signal:a}={}},l){if(!n)return{data:null,error:new Ul("rpId is required for WebAuthn registration")};try{if(!HE())return{data:null,error:new us("Browser does not support WebAuthn",null)};const{data:u,error:d}=await this._enroll({friendlyName:t});if(!u)return await this.client.mfa.listFactors().then(g=>{var y;return(y=g.data)===null||y===void 0?void 0:y.all.find(v=>v.factor_type==="webauthn"&&v.friendly_name===t&&v.status!=="unverified")}).then(g=>g?this.client.mfa.unenroll({factorId:g?.id}):void 0),{data:null,error:d};const{data:f,error:h}=await this._challenge({factorId:u.id,friendlyName:u.friendly_name,webauthn:{rpId:n,rpOrigins:i},signal:a},{create:l});return f?this._verify({factorId:u.id,challengeId:f.challengeId,webauthn:{rpId:n,rpOrigins:i,type:f.webauthn.type,credential_response:f.webauthn.credential_response}}):{data:null,error:h}}catch(u){return re(u)?{data:null,error:u}:{data:null,error:new us("Unexpected error in register",u)}}}}B8();const iH={url:e8,storageKey:t8,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:n8,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1};
204async function qE(e,t,n){return await n()}const pa={};class Il{get jwks(){var t,n;return(n=(t=pa[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){pa[this.storageKey]=Object.assign(Object.assign({},pa[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=pa[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){pa[this.storageKey]=Object.assign(Object.assign({},pa[this.storageKey]),{cachedAt:t})}constructor(t){var n,i,a;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const l=Object.assign(Object.assign({},iH),t);if(this.storageKey=l.storageKey,this.instanceID=(n=Il.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Il.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!l.debug,typeof l.debug=="function"&&(this.logger=l.debug),this.instanceID>0&&Nt()){const u=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(u),this.logDebugMessages&&console.trace(u)}if(this.persistSession=l.persistSession,this.autoRefreshToken=l.autoRefreshToken,this.admin=new U8({url:l.url,headers:l.headers,fetch:l.fetch}),this.url=l.url,this.headers=l.headers,this.fetch=eC(l.fetch),this.lock=l.lock||qE,this.detectSessionInUrl=l.detectSessionInUrl,this.flowType=l.flowType,this.hasCustomAuthorizationHeader=l.hasCustomAuthorizationHeader,this.throwOnError=l.throwOnError,l.lock?this.lock=l.lock:Nt()&&(!((i=globalThis?.navigator)===null||i===void 0)&&i.locks)?this.lock=P8:this.lock=qE,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new rH(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(l.storage?this.storage=l.storage:ZO()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=$E(this.memoryStorage)),l.userStorage&&(this.userStorage=l.userStorage)):(this.memoryStorage={},this.storage=$E(this.memoryStorage)),Nt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(u){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",u)}(a=this.broadcastChannel)===null||a===void 0||a.addEventListener("message",async u=>{this._debug("received broadcast notification from other tab or client",u),await this._notifyAllSubscribers(u.data.event,u.data.session,!1)})}this.initialize()}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${WO}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let n={},i="none";if(Nt()&&(n=g8(window.location.href),this._isImplicitGrantCallback(n)?i="implicit":await this._isPKCECallback(n)&&(i="pkce")),Nt()&&this.detectSessionInUrl&&i!=="none"){const{data:a,error:l}=await this._getSessionFromURL(n,i);if(l){if(this._debug("#_initialize()","error detecting session from URL",l),l8(l)){const f=(t=l.details)===null||t===void 0?void 0:t.code;if(f==="identity_already_exists"||f==="identity_not_found"||f==="single_identity_not_deletable")return{error:l}}return await this._removeSession(),{error:l}}const{session:u,redirectType:d}=a;return this._debug("#_initialize()","detected session in URL",u,"redirect type",d),await this._saveSession(u),setTimeout(async()=>{d==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",u):await this._notifyAllSubscribers("SIGNED_IN",u)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return re(n)?this._returnResult({error:n}):this._returnResult({error:new us("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,i,a;try{const l=await oe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(i=(n=t?.options)===null||n===void 0?void 0:n.data)!==null&&i!==void 0?i:{}
204,gotrue_meta_security:{captcha_token:(a=t?.options)===null||a===void 0?void 0:a.captchaToken}},xform:Vn}),{data:u,error:d}=l;if(d||!u)return this._returnResult({data:{user:null,session:null},error:d});const f=u.session,h=u.user;return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",f)),this._returnResult({data:{user:h,session:f},error:null})}catch(l){if(re(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async signUp(t){var n,i,a;try{let l;if("email"in t){const{email:g,password:y,options:v}=t;let _=null,S=null;this.flowType==="pkce"&&([_,S]=await fa(this.storage,this.storageKey)),l=await oe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:v?.emailRedirectTo,body:{email:g,password:y,data:(n=v?.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:v?.captchaToken},code_challenge:_,code_challenge_method:S},xform:Vn})}else if("phone"in t){const{phone:g,password:y,options:v}=t;l=await oe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:g,password:y,data:(i=v?.data)!==null&&i!==void 0?i:{},channel:(a=v?.channel)!==null&&a!==void 0?a:"sms",gotrue_meta_security:{captcha_token:v?.captchaToken}},xform:Vn})}else throw new zc("You must provide either an email or phone number and a password");const{data:u,error:d}=l;if(d||!u)return this._returnResult({data:{user:null,session:null},error:d});const f=u.session,h=u.user;return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",f)),this._returnResult({data:{user:h,session:f},error:null})}catch(l){if(re(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async signInWithPassword(t){try{let n;if("email"in t){const{email:l,password:u,options:d}=t;n=await oe(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:l,password:u,gotrue_meta_security:{captcha_token:d?.captchaToken}},xform:VE})}else if("phone"in t){const{phone:l,password:u,options:d}=t;n=await oe(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:l,password:u,gotrue_meta_security:{captcha_token:d?.captchaToken}},xform:VE})}else throw new zc("You must provide either an email or phone number and a password");const{data:i,error:a}=n;if(a)return this._returnResult({data:{user:null,session:null},error:a});if(!i||!i.session||!i.user){const l=new da;return this._returnResult({data:{user:null,session:null},error:l})}return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),this._returnResult({data:Object.assign({user:i.user,session:i.session},i.weak_password?{weakPassword:i.weak_password}:null),error:a})}catch(n){if(re(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,i,a,l;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(i=t.options)===null||i===void 0?void 0:i.scopes,queryParams:(a=t.options)===null||a===void 0?void 0:a.queryParams,skipBrowserRedirect:(l=t.options)===null||l===void 0?void 0:l.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,i,a,l,u,d,f,h,g,y,v;let _,S;if("message"in t)_=t.message,S=t.signature;else{const{chain:E,wallet:x,statement:A,options:N}=t;let R;if(Nt())if(typeof x=="object")R=x;else{const se=window;if("ethereum"in se&&typeof se.ethereum=="object"&&"request"in se.ethereum&&typeof se.ethereum.request=="function")R=se.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof x!="object"||!N?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");R=x}const M=new URL((n=N?.url)!==null&&n!==void 0?n:window.location.href),$=await R.request({method:"eth_requestAccounts"}).then(se=>se).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!$||$.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const B=nC($[0]);let G=(i=N?.signInWithEthereum)===null||i===void 0?void 0:i.chainId;if(!G){const se=await R.request({method:"eth_chainId"});G=V8(se)}const X={domain:M.host,address:B,statement:A,uri:M.href,version:"1",chainId:G,nonce:(a=N?.signInWithEthereum)===null||a===void 0?void 0:a.nonce,issuedAt:(u=(l=N?.signInWithEthereum)===null||l===void 0?void 0:l.issuedAt)!==null&&u!==void 0?u:new Date,expirationTime:(d=N?.signInWithEthereum)===null||d===void 0?void 0:d.expirationTime,notBefore:(f=N?.signInWithEthereum)===null||f===void 0?void 0:f.notBefore,requestId:(h=N?.signInWithEthereum)===null||h===void 0?void 0:h.requestId,resources:(g=N?.signInWithEthereum)===null||g===void 0?void 0:g.resources};_=$8(X),S=await R.request({method:"personal_sign",params:[z8(_),B]})}try{const{data:E,error:x}=await oe(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:_,signature:S},!((y=t.options)===null||y===void 0)&&y.captchaToken?{gotrue_meta_security:{captcha_token:(v=t.options)===null||v===void 0?void 0:v.captchaToken}}:null),xform:Vn});if(x)throw x;if(!E||!E.session||!E.user){const A=new da;return this._returnResult({data:{user:null,session:null},error:A})}return E.session&&(await this._saveSession(E.session),await this._notifyAllSubscribers("SIGNED_IN",E.session)),this._returnResult({data:Object.assign({},E),error:x})}
204catch(E){if(re(E))return this._returnResult({data:{user:null,session:null},error:E});throw E}}async signInWithSolana(t){var n,i,a,l,u,d,f,h,g,y,v,_;let S,E;if("message"in t)S=t.message,E=t.signature;else{const{chain:x,wallet:A,statement:N,options:R}=t;let M;if(Nt())if(typeof A=="object")M=A;else{const B=window;if("solana"in B&&typeof B.solana=="object"&&("signIn"in B.solana&&typeof B.solana.signIn=="function"||"signMessage"in B.solana&&typeof B.solana.signMessage=="function"))M=B.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof A!="object"||!R?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");M=A}const $=new URL((n=R?.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in M&&M.signIn){const B=await M.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},R?.signInWithSolana),{version:"1",domain:$.host,uri:$.href}),N?{statement:N}:null));let G;if(Array.isArray(B)&&B[0]&&typeof B[0]=="object")G=B[0];else if(B&&typeof B=="object"&&"signedMessage"in B&&"signature"in B)G=B;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in G&&"signature"in G&&(typeof G.signedMessage=="string"||G.signedMessage instanceof Uint8Array)&&G.signature instanceof Uint8Array)S=typeof G.signedMessage=="string"?G.signedMessage:new TextDecoder().decode(G.signedMessage),E=G.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in M)||typeof M.signMessage!="function"||!("publicKey"in M)||typeof M!="object"||!M.publicKey||!("toBase58"in M.publicKey)||typeof M.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");S=[`${$.host} wants you to sign in with your Solana account:`,M.publicKey.toBase58(),...N?["",N,""]:[""],"Version: 1",`URI: ${$.href}`,`Issued At: ${(a=(i=R?.signInWithSolana)===null||i===void 0?void 0:i.issuedAt)!==null&&a!==void 0?a:new Date().toISOString()}`,...!((l=R?.signInWithSolana)===null||l===void 0)&&l.notBefore?[`Not Before: ${R.signInWithSolana.notBefore}`]:[],...!((u=R?.signInWithSolana)===null||u===void 0)&&u.expirationTime?[`Expiration Time: ${R.signInWithSolana.expirationTime}`]:[],...!((d=R?.signInWithSolana)===null||d===void 0)&&d.chainId?[`Chain ID: ${R.signInWithSolana.chainId}`]:[],...!((f=R?.signInWithSolana)===null||f===void 0)&&f.nonce?[`Nonce: ${R.signInWithSolana.nonce}`]:[],...!((h=R?.signInWithSolana)===null||h===void 0)&&h.requestId?[`Request ID: ${R.signInWithSolana.requestId}`]:[],...!((y=(g=R?.signInWithSolana)===null||g===void 0?void 0:g.resources)===null||y===void 0)&&y.length?["Resources",...R.signInWithSolana.resources.map(G=>`- ${G}`)]:[]].join(`
205`);const B=await M.signMessage(new TextEncoder().encode(S),"utf8");if(!B||!(B instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");E=B}}try{const{data:x,error:A}=await oe(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:S,signature:fs(E)},!((v=t.options)===null||v===void 0)&&v.captchaToken?{gotrue_meta_security:{captcha_token:(_=t.options)===null||_===void 0?void 0:_.captchaToken}}:null),xform:Vn});if(A)throw A;if(!x||!x.session||!x.user){const N=new da;return this._returnResult({data:{user:null,session:null},error:N})}return x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),this._returnResult({data:Object.assign({},x),error:A})}catch(x){if(re(x))return this._returnResult({data:{user:null,session:null},error:x});throw x}}async _exchangeCodeForSession(t){const n=await Ji(this.storage,`${this.storageKey}-code-verifier`),[i,a]=(n??"").split("/");try{const{data:l,error:u}=await oe(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:i},xform:Vn});if(await ci(this.storage,`${this.storageKey}-code-verifier`),u)throw u;if(!l||!l.session||!l.user){const d=new da;return this._returnResult({data:{user:null,session:null,redirectType:null},error:d})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:Object.assign(Object.assign({},l),{redirectType:a??null}),error:u})}catch(l){if(re(l))return this._returnResult({data:{user:null,session:null,redirectType:null},error:l});throw l}}async signInWithIdToken(t){try{const{options:n,provider:i,token:a,access_token:l,nonce:u}=t,d=await oe(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:i,id_token:a,access_token:l,nonce:u,gotrue_meta_security:{captcha_token:n?.captchaToken}},xform:Vn}),{data:f,error:h}=d;if(h)return this._returnResult({data:{user:null,session:null},error:h});if(!f||!f.session||!f.user){const g=new da;return this._returnResult({data:{user:null,session:null},error:g})}return f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("SIGNED_IN",f.session)),this._returnResult({data:f,error:h})}catch(n){if(re(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,i,a,l,u;try{if("email"in t){const{email:d,options:f}=t;let h=null,g=null;this.flowType==="pkce"&&([h,g]=await fa(this.storage,this.storageKey));const{error:y}=await oe(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:d,data:(n=f?.data)!==null&&n!==void 0?n:{},create_user:(i=f?.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:f?.captchaToken},code_challenge:h,code_challenge_method:g},redirectTo:f?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:y})}if("phone"in t){const{phone:d,options:f}=t,{data:h,error:g}=await oe(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:d,data:(a=f?.data)!==null&&a!==void 0?a:{},create_user:(l=f?.shouldCreateUser)!==null&&l!==void 0?l:!0,gotrue_meta_security:{captcha_token:f?.captchaToken},channel:(u=f?.channel)!==null&&u!==void 0?u:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:h?.message_id},error:g})}throw new zc("You must provide either an email or phone number.")}catch(d){if(re(d))return this._returnResult({data:{user:null,session:null},error:d});throw d}}async verifyOtp(t){var n,i;try{let a,l;"options"in t&&(a=(n=t.options)===null||n===void 0?void 0:n.redirectTo,l=(i=t.options)===null||i===void 0?void 0:i.captchaToken);const{data:u,error:d}=await oe(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:l}}),redirectTo:a,xform:Vn});if(d)throw d;if(!u)throw new Error("An error occurred on token verification.");const f=u.session,h=u.user;return f?.access_token&&(await this._saveSession(f),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",f)),this._returnResult({data:{user:h,session:f},error:null})}catch(a){if(re(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signInWithSSO(t){var n,i,a,l,u;try{let d=null,f=null;this.flowType==="pkce"&&([d,f]=await fa(this.storage,this.storageKey));const h=await oe(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(i=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&i!==void 0?i:void 0}
205),!((a=t?.options)===null||a===void 0)&&a.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:d,code_challenge_method:f}),headers:this.headers,xform:D8});return!((l=h.data)===null||l===void 0)&&l.url&&Nt()&&!(!((u=t.options)===null||u===void 0)&&u.skipBrowserRedirect)&&window.location.assign(h.data.url),this._returnResult(h)}catch(d){if(re(d))return this._returnResult({data:null,error:d});throw d}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:i}=t;if(i)throw i;if(!n)throw new hn;const{error:a}=await oe(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:a})})}catch(t){if(re(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:i,type:a,options:l}=t,{error:u}=await oe(this.fetch,"POST",n,{headers:this.headers,body:{email:i,type:a,gotrue_meta_security:{captcha_token:l?.captchaToken}},redirectTo:l?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:u})}else if("phone"in t){const{phone:i,type:a,options:l}=t,{data:u,error:d}=await oe(this.fetch,"POST",n,{headers:this.headers,body:{phone:i,type:a,gotrue_meta_security:{captcha_token:l?.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:u?.message_id},error:d})}throw new zc("You must provide either an email or phone number and a type")}catch(n){if(re(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const i=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),a=(async()=>(await i,await n()))();return this.pendingInLock.push((async()=>{try{await a}catch{}})()),a}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const i=n();for(this.pendingInLock.push((async()=>{try{await i}catch{}})()),await i;this.pendingInLock.length;){const a=[...this.pendingInLock];await Promise.all(a),this.pendingInLock.splice(0,a.length)}return await i}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await Ji(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const i=t.expires_at?t.expires_at*1e3-Date.now()<_p:!1;if(this._debug("#__loadSession()",`session has${i?"":" not"} expired`,"expires_at",t.expires_at),!i){if(this.userStorage){const u=await Ji(this.userStorage,this.storageKey+"-user");u?.user?t.user=u.user:t.user=Ep()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const u={value:this.suppressGetSessionWarning};t.user=R8(t.user,u),u.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:a,error:l}=await this._callRefreshToken(t.refresh_token);return l?this._returnResult({data:{session:null},error:l}):this._returnResult({data:{session:a},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await oe(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:fi}):await this._useSession(async n=>{var i,a,l;const{data:u,error:d}=n;
205if(d)throw d;return!(!((i=u.session)===null||i===void 0)&&i.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new hn}:await oe(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(l=(a=u.session)===null||a===void 0?void 0:a.access_token)!==null&&l!==void 0?l:void 0,xform:fi})})}catch(n){if(re(n))return o8(n)&&(await this._removeSession(),await ci(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async i=>{const{data:a,error:l}=i;if(l)throw l;if(!a.session)throw new hn;const u=a.session;let d=null,f=null;this.flowType==="pkce"&&t.email!=null&&([d,f]=await fa(this.storage,this.storageKey));const{data:h,error:g}=await oe(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n?.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:d,code_challenge_method:f}),jwt:u.access_token,xform:fi});if(g)throw g;return u.user=h.user,await this._saveSession(u),await this._notifyAllSubscribers("USER_UPDATED",u),this._returnResult({data:{user:u.user},error:null})})}catch(i){if(re(i))return this._returnResult({data:{user:null},error:i});throw i}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new hn;const n=Date.now()/1e3;let i=n,a=!0,l=null;const{payload:u}=wp(t.access_token);if(u.exp&&(i=u.exp,a=i<=n),a){const{data:d,error:f}=await this._callRefreshToken(t.refresh_token);if(f)return this._returnResult({data:{user:null,session:null},error:f});if(!d)return{data:{user:null,session:null},error:null};l=d}else{const{data:d,error:f}=await this._getUser(t.access_token);if(f)throw f;l={access_token:t.access_token,refresh_token:t.refresh_token,user:d.user,token_type:"bearer",expires_in:i-n,expires_at:i},await this._saveSession(l),await this._notifyAllSubscribers("SIGNED_IN",l)}return this._returnResult({data:{user:l.user,session:l},error:null})}catch(n){if(re(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var i;if(!t){const{data:u,error:d}=n;if(d)throw d;t=(i=u.session)!==null&&i!==void 0?i:void 0}if(!t?.refresh_token)throw new hn;const{data:a,error:l}=await this._callRefreshToken(t.refresh_token);return l?this._returnResult({data:{user:null,session:null},error:l}):a?this._returnResult({data:{user:a.user,session:a},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(re(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){try{if(!Nt())throw new $c("No browser detected.");if(t.error||t.error_description||t.error_code)throw new $c(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new DE("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new $c("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new DE("No code detected.");const{data:N,error:R}=await this._exchangeCodeForSession(t.code);if(R)throw R;const M=new URL(window.location.href);return M.searchParams.delete("code"),window.history.replaceState(window.history.state,"",M.toString()),{data:{session:N.session,redirectType:null},error:null}}const{provider_token:i,provider_refresh_token:a,access_token:l,refresh_token:u,expires_in:d,expires_at:f,token_type:h}=t;if(!l||!d||!u||!h)throw new $c("No session defined in URL");const g=Math.round(Date.now()/1e3),y=parseInt(d);let v=g+y;f&&(v=parseInt(f));const _=v-g;
205_*1e3<=ga&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${_}s, should have been closer to ${y}s`);const S=v-y;g-S>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",S,v,g):g-S<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",S,v,g);const{data:E,error:x}=await this._getUser(l);if(x)throw x;const A={provider_token:i,provider_refresh_token:a,access_token:l,expires_in:y,expires_at:v,refresh_token:u,token_type:h,user:E.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:A,redirectType:t.type},error:null})}catch(i){if(re(i))return this._returnResult({data:{session:null,redirectType:null},error:i});throw i}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await Ji(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var i;const{data:a,error:l}=n;if(l)return this._returnResult({error:l});const u=(i=a.session)===null||i===void 0?void 0:i.access_token;if(u){const{error:d}=await this.admin.signOut(u,t);if(d&&!(a8(d)&&(d.status===404||d.status===401||d.status===403)))return this._returnResult({error:d})}return t!=="others"&&(await this._removeSession(),await ci(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=p8(),i={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,i),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:i}}}async _emitInitialSession(t){return await this._useSession(async n=>{var i,a;try{const{data:{session:l},error:u}=n;if(u)throw u;await((i=this.stateChangeEmitters.get(t))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",l)),this._debug("INITIAL_SESSION","callback id",t,"session",l)}catch(l){await((a=this.stateChangeEmitters.get(t))===null||a===void 0?void 0:a.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",l),console.error(l)}})}async resetPasswordForEmail(t,n={}){let i=null,a=null;this.flowType==="pkce"&&([i,a]=await fa(this.storage,this.storageKey,!0));try{return await oe(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:i,code_challenge_method:a,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(l){if(re(l))return this._returnResult({data:null,error:l});throw l}}async getUserIdentities(){var t;try{const{data:n,error:i}=await this.getUser();if(i)throw i;return this._returnResult({data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(n){if(re(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var n;try{const{data:i,error:a}=await this._useSession(async l=>{var u,d,f,h,g;const{data:y,error:v}=l;if(v)throw v;const _=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(u=t.options)===null||u===void 0?void 0:u.redirectTo,scopes:(d=t.options)===null||d===void 0?void 0:d.scopes,queryParams:(f=t.options)===null||f===void 0?void 0:f.queryParams,skipBrowserRedirect:!0});return await oe(this.fetch,"GET",_,{headers:this.headers,jwt:(g=(h=y.session)===null||h===void 0?void 0:h.access_token)!==null&&g!==void 0?g:void 0})});if(a)throw a;return Nt()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(i?.url),this._returnResult({data:{provider:t.provider,url:i?.url},error:null})}catch(i){if(re(i))return this._returnResult({data:{provider:t.provider,url:null},error:i});throw i}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var i;try{const{error:a,data:{session:l}}=n;if(a)throw a;const{options:u,provider:d,token:f,access_token:h,nonce:g}=t,y=await oe(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(i=l?.access_token)!==null&&i!==void 0?i:void 0,body:{provider:d,id_token:f,access_token:h,nonce:g,link_identity:!0,gotrue_meta_security:{captcha_token:u?.captchaToken}},xform:Vn}),{data:v,error:_}=y;return _?this._returnResult({data:{user:null,session:null},error:_}):!v||!v.session||!v.user?this._returnResult({data:{user:null,session:null},error:new da}):(v.session&&(await this._saveSession(v.session),await this._notifyAllSubscribers("USER_UPDATED",v.session)),this._returnResult({data:v,error:_}))}catch(a){if(re(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var i,a;const{data:l,error:u}=n;if(u)throw u;
205return await oe(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(a=(i=l.session)===null||i===void 0?void 0:i.access_token)!==null&&a!==void 0?a:void 0})})}catch(n){if(re(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const i=Date.now();return await b8(async a=>(a>0&&await v8(200*Math.pow(2,a-1)),this._debug(n,"refreshing attempt",a),await oe(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Vn})),(a,l)=>{const u=200*Math.pow(2,a);return l&&Sp(l)&&Date.now()+u-i<ga})}catch(i){if(this._debug(n,"error",i),re(i))return this._returnResult({data:{session:null,user:null},error:i});throw i}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const i=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",i),Nt()&&!n.skipBrowserRedirect&&window.location.assign(i),{data:{provider:t,url:i},error:null}}async _recoverAndRefresh(){var t,n;const i="#_recoverAndRefresh()";this._debug(i,"begin");try{const a=await Ji(this.storage,this.storageKey);if(a&&this.userStorage){let u=await Ji(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!u&&(u={user:a.user},await ya(this.userStorage,this.storageKey+"-user",u)),a.user=(t=u?.user)!==null&&t!==void 0?t:Ep()}else if(a&&!a.user&&!a.user){const u=await Ji(this.storage,this.storageKey+"-user");u&&u?.user?(a.user=u.user,await ci(this.storage,this.storageKey+"-user"),await ya(this.storage,this.storageKey,a)):a.user=Ep()}if(this._debug(i,"session from storage",a),!this._isValidSession(a)){this._debug(i,"session is not valid"),a!==null&&await this._removeSession();return}const l=((n=a.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<_p;if(this._debug(i,`session has${l?"":" not"} expired with margin of ${_p}s`),l){if(this.autoRefreshToken&&a.refresh_token){const{error:u}=await this._callRefreshToken(a.refresh_token);u&&(console.error(u),Sp(u)||(this._debug(i,"refresh failed with a non-retryable error, removing the session",u),await this._removeSession()))}}else if(a.user&&a.user.__isUserNotAvailableProxy===!0)try{const{data:u,error:d}=await this._getUser(a.access_token);!d&&u?.user?(a.user=u.user,await this._saveSession(a),await this._notifyAllSubscribers("SIGNED_IN",a)):this._debug(i,"could not get user data, skipping SIGNED_IN notification")}catch(u){console.error("Error getting user data:",u),this._debug(i,"error getting user data, skipping SIGNED_IN notification",u)}else await this._notifyAllSubscribers("SIGNED_IN",a)}catch(a){this._debug(i,"error",a),console.error(a);return}finally{this._debug(i,"end")}}async _callRefreshToken(t){var n,i;if(!t)throw new hn;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const a=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(a,"begin");try{this.refreshingDeferred=new Jd;const{data:l,error:u}=await this._refreshAccessToken(t);if(u)throw u;if(!l.session)throw new hn;await this._saveSession(l.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",l.session);const d={data:l.session,error:null};return this.refreshingDeferred.resolve(d),d}catch(l){if(this._debug(a,"error",l),re(l)){const u={data:null,error:l};return Sp(l)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(u),u}throw(i=this.refreshingDeferred)===null||i===void 0||i.reject(l),l}finally{this.refreshingDeferred=null,this._debug(a,"end")}}async _notifyAllSubscribers(t,n,i=!0){const a=`#_notifyAllSubscribers(${t})`;this._debug(a,"begin",n,`broadcast = ${i}`);try{this.broadcastChannel&&i&&this.broadcastChannel.postMessage({event:t,session:n});const l=[],u=Array.from(this.stateChangeEmitters.values()).map(async d=>{try{await d.callback(t,n)}catch(f){l.push(f)}});if(await Promise.all(u),l.length>0){for(let d=0;d<l.length;d+=1)console.error(l[d]);throw l[0]}}finally{this._debug(a,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0;const n=Object.assign({},t),i=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!i&&n.user&&await ya(this.userStorage,this.storageKey+"-user",{user:n.user});const a=Object.assign({},n);delete a.user;const l=PE(a);await ya(this.storage,this.storageKey,l)}else{const a=PE(n);await ya(this.storage,this.storageKey,a)}}async _removeSession(){this._debug("#_removeSession()"),await ci(this.storage,this.storageKey),await ci(this.storage,this.storageKey+"-code-verifier"),await ci(this.storage,this.storageKey+"-user"),this.userStorage&&await ci(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Nt()&&window?.removeEventListener&&window.removeEventListener("visibilitychange",t)}
205catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),ga);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:i}}=n;if(!i||!i.refresh_token||!i.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const a=Math.floor((i.expires_at*1e3-t)/ga);this._debug("#_autoRefreshTokenTick()",`access token expires in ${a} ticks, a tick lasts ${ga}ms, refresh threshold is ${wg} ticks`),a<=wg&&await this._callRefreshToken(i.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof tC)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Nt()||!window?.addEventListener)return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window?.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,i){const a=[`provider=${encodeURIComponent(n)}`];if(i?.redirectTo&&a.push(`redirect_to=${encodeURIComponent(i.redirectTo)}`),i?.scopes&&a.push(`scopes=${encodeURIComponent(i.scopes)}`),this.flowType==="pkce"){const[l,u]=await fa(this.storage,this.storageKey),d=new URLSearchParams({code_challenge:`${encodeURIComponent(l)}`,code_challenge_method:`${encodeURIComponent(u)}`});a.push(d.toString())}if(i?.queryParams){const l=new URLSearchParams(i.queryParams);a.push(l.toString())}return i?.skipBrowserRedirect&&a.push(`skip_http_redirect=${i.skipBrowserRedirect}`),`${t}?${a.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var i;const{data:a,error:l}=n;return l?this._returnResult({data:null,error:l}):await oe(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(i=a?.session)===null||i===void 0?void 0:i.access_token})})}catch(n){if(re(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var i,a;const{data:l,error:u}=n;if(u)return this._returnResult({data:null,error:u});const d=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:f,error:h}=await oe(this.fetch,"POST",`${this.url}/factors`,{body:d,headers:this.headers,jwt:(i=l?.session)===null||i===void 0?void 0:i.access_token});return h?this._returnResult({data:null,error:h}):(t.factorType==="totp"&&f.type==="totp"&&(!((a=f?.totp)===null||a===void 0)&&a.qr_code)&&(f.totp.qr_code=`data:image/svg+xml;utf-8,${f.totp.qr_code}`),this._returnResult({data:f,error:null}))})}catch(n){if(re(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var i;const{data:a,error:l}=n;if(l)return this._returnResult({data:null,error:l});const u=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?X8(t.webauthn.credential_response):W8(t.webauthn.credential_response)})}:{code:t.code}),{data:d,error:f}=await oe(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:u,headers:this.headers,jwt:(i=a?.session)===null||i===void 0?void 0:i.access_token});return f?this._returnResult({data:null,error:f}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+d.expires_in},d)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",d),this._returnResult({data:d,error:f}))})}catch(n){if(re(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var i;const{data:a,error:l}=n;if(l)return this._returnResult({data:null,error:l});const u=await oe(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(i=a?.session)===null||i===void 0?void 0:i.access_token});if(u.error)return u;const{data:d}=u;if(d.type!=="webauthn")return{data:d,error:null};switch(d.webauthn.type){case"create":return{data:Object.assign(Object.assign({},d),{webauthn:Object.assign(Object.assign({},d.webauthn),{credential_options:Object.assign(Object.assign({},d.webauthn.credential_options),{publicKey:K8(d.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},d),{webauthn:Object.assign(Object.assign({},d.webauthn),{credential_options:Object.assign(Object.assign({},d.webauthn.credential_options),{publicKey:Y8(d.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(re(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(t){const{data:n,error:i}=await this._challenge({factorId:t.factorId});return i?this._returnResult({data:null,error:i}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:i}=await this.getUser();if(i)return{data:null,error:i};const a={all:[],phone:[],totp:[],webauthn:[]};for(const l of(t=n?.factors)!==null&&t!==void 0?t:[])a.all.push(l),l.status==="verified"&&a[l.factor_type].push(l);return{data:a,error:null}}async _getAuthenticatorAssuranceLevel(){var t,n;const{data:{session:i},error:a}
205=await this.getSession();if(a)return this._returnResult({data:null,error:a});if(!i)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:l}=wp(i.access_token);let u=null;l.aal&&(u=l.aal);let d=u;((n=(t=i.user.factors)===null||t===void 0?void 0:t.filter(g=>g.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(d="aal2");const h=l.amr||[];return{data:{currentLevel:u,nextLevel:d,currentAuthenticationMethods:h},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:i},error:a}=n;return a?this._returnResult({data:null,error:a}):i?await oe(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:i.access_token,xform:l=>({data:l,error:null})}):this._returnResult({data:null,error:new hn})})}catch(n){if(re(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async i=>{const{data:{session:a},error:l}=i;if(l)return this._returnResult({data:null,error:l});if(!a)return this._returnResult({data:null,error:new hn});const u=await oe(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:a.access_token,body:{action:"approve"},xform:d=>({data:d,error:null})});return u.data&&u.data.redirect_url&&Nt()&&!n?.skipBrowserRedirect&&window.location.assign(u.data.redirect_url),u})}catch(i){if(re(i))return this._returnResult({data:null,error:i});throw i}}async _denyAuthorization(t,n){try{return await this._useSession(async i=>{const{data:{session:a},error:l}=i;if(l)return this._returnResult({data:null,error:l});if(!a)return this._returnResult({data:null,error:new hn});const u=await oe(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:a.access_token,body:{action:"deny"},xform:d=>({data:d,error:null})});return u.data&&u.data.redirect_url&&Nt()&&!n?.skipBrowserRedirect&&window.location.assign(u.data.redirect_url),u})}catch(i){if(re(i))return this._returnResult({data:null,error:i});throw i}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:n},error:i}=t;return i?this._returnResult({data:null,error:i}):n?await oe(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:a=>({data:a,error:null})}):this._returnResult({data:null,error:new hn})})}catch(t){if(re(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async n=>{const{data:{session:i},error:a}=n;return a?this._returnResult({data:null,error:a}):i?(await oe(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:i.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new hn})})}catch(n){if(re(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let i=n.keys.find(d=>d.kid===t);if(i)return i;const a=Date.now();if(i=this.jwks.keys.find(d=>d.kid===t),i&&this.jwks_cached_at+i8>a)return i;const{data:l,error:u}=await oe(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(u)throw u;return!l.keys||l.keys.length===0||(this.jwks=l,this.jwks_cached_at=a,i=l.keys.find(d=>d.kid===t),!i)?null:i}async getClaims(t,n={}){try{let i=t;if(!i){const{data:_,error:S}
205=await this.getSession();if(S||!_.session)return this._returnResult({data:null,error:S});i=_.session.access_token}const{header:a,payload:l,signature:u,raw:{header:d,payload:f}}=wp(i);n?.allowExpired||A8(l.exp);const h=!a.alg||a.alg.startsWith("HS")||!a.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(a.kid,n?.keys?{keys:n.keys}:n?.jwks);if(!h){const{error:_}=await this.getUser(i);if(_)throw _;return{data:{claims:l,header:a,signature:u},error:null}}const g=O8(a.alg),y=await crypto.subtle.importKey("jwk",h,g,!0,["verify"]);if(!await crypto.subtle.verify(g,y,u,h8(`${d}.${f}`)))throw new xg("Invalid JWT signature");return{data:{claims:l,header:a,signature:u},error:null}}catch(i){if(re(i))return this._returnResult({data:null,error:i});throw i}}}Il.nextInstanceID={};const sH=Il;class aH extends sH{constructor(t){super(t)}}class oH{constructor(t,n,i){var a,l,u;this.supabaseUrl=t,this.supabaseKey=n;const d=Z6(t);if(!n)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",d),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",d),this.storageUrl=new URL("storage/v1",d),this.functionsUrl=new URL("functions/v1",d);const f=`sb-${d.hostname.split(".")[0]}-auth-token`,h={db:F6,realtime:K6,auth:Object.assign(Object.assign({},G6),{storageKey:f}),global:q6},g=Q6(i??{},h);this.storageKey=(a=g.auth.storageKey)!==null&&a!==void 0?a:"",this.headers=(l=g.global.headers)!==null&&l!==void 0?l:{},g.accessToken?(this.accessToken=g.accessToken,this.auth=new Proxy({},{get:(y,v)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(v)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((u=g.auth)!==null&&u!==void 0?u:{},this.headers,g.global.fetch),this.fetch=W6(n,this._getAccessToken.bind(this),g.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},g.realtime)),this.accessToken&&this.accessToken().then(y=>this.realtime.setAuth(y)).catch(y=>console.warn("Failed to set initial Realtime auth token:",y)),this.rest=new K$(new URL("rest/v1",d).href,{headers:this.headers,schema:g.db.schema,fetch:this.fetch}),this.storage=new z6(this.storageUrl.href,this.headers,this.fetch,i?.storage),g.accessToken||this._listenForAuthEvents()}get functions(){return new H$(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,n={},i={head:!1,get:!1,count:void 0}){return this.rest.rpc(t,n,i)}channel(t,n={config:{}}){return this.realtime.channel(t,n)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var t,n;if(this.accessToken)return await this.accessToken();const{data:i}=await this.auth.getSession();return(n=(t=i.session)===null||t===void 0?void 0:t.access_token)!==null&&n!==void 0?n:this.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:n,detectSessionInUrl:i,storage:a,userStorage:l,storageKey:u,flowType:d,lock:f,debug:h,throwOnError:g},y,v){const _={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new aH({url:this.authUrl.href,headers:Object.assign(Object.assign({},_),y),storageKey:u,autoRefreshToken:t,persistSession:n,detectSessionInUrl:i,storage:a,userStorage:l,flowType:d,lock:f,debug:h,throwOnError:g,fetch:v,hasCustomAuthorizationHeader:Object.keys(this.headers).some(S=>S.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new c6(this.realtimeUrl.href,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t?.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,i)=>{this._handleTokenChanged(n,"CLIENT",i?.access_token)})}_handleTokenChanged(t,n,i){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==i?(this.changedAccessToken=i,this.realtime.setAuth(i)):t==="SIGNED_OUT"&&(this.realtime.setAuth(),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const lH=(e,t,n)=>new oH(e,t,n);function uH(){if(typeof window<"u"||typeof process>"u")return!1;const e=process.version;if(e==null)return!1;const t=e.match(/^v(\d+)\./);return t?parseInt(t[1],10)<=18:!1}uH()&&console.warn("⚠️  Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to N
205ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const cH="remixer-dpop",Pl="keys",FE="default";let xp=null,Ap=null;function iC(){return new Promise((e,t)=>{const n=indexedDB.open(cH,1);n.onupgradeneeded=()=>{n.result.createObjectStore(Pl)},n.onsuccess=()=>e(n.result),n.onerror=()=>t(n.error)})}async function dH(e){const t=await iC();return new Promise((n,i)=>{const a=t.transaction(Pl,"readonly"),l=a.objectStore(Pl).get(e);l.onsuccess=()=>n(l.result),l.onerror=()=>i(l.error),a.oncomplete=()=>t.close()})}async function fH(e,t){const n=await iC();return new Promise((i,a)=>{const l=n.transaction(Pl,"readwrite"),u=l.objectStore(Pl).put(t,e);u.onsuccess=()=>i(),u.onerror=()=>a(u.error),l.oncomplete=()=>n.close()})}function Op(e){let t="";for(const n of new Uint8Array(e))t+=String.fromCharCode(n);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,"")}function hH(e){return{crv:e.crv,kty:e.kty,x:e.x,y:e.y}}async function mH(){return crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},!1,["sign","verify"])}async function sC(){return xp||(xp=(async()=>{const e=await dH(FE);if(e?.privateKey&&e?.publicKey)return e;const t=await mH(),n={privateKey:t.privateKey,publicKey:t.publicKey};return await fH(FE,n),n})()),xp}async function aC(){return Ap||(Ap=(async()=>{const{publicKey:e}=await sC(),t=await crypto.subtle.exportKey("jwk",e);return hH(t)})()),Ap}async function pH(e,t){const{privateKey:n}=await sC(),a={typ:"dpop+jwt",alg:"ES256",jwk:await aC()},l={htm:t.toUpperCase(),htu:e,iat:Math.floor(Date.now()/1e3),jti:crypto.randomUUID()},u=`${Op(new TextEncoder().encode(JSON.stringify(a)))}.${Op(new TextEncoder().encode(JSON.stringify(l)))}`,d=await crypto.subtle.sign({name:"ECDSA",hash:"SHA-256"},n,new TextEncoder().encode(u));return`${u}.${Op(d)}`}let wl=null,fl=null;function By(){return`remixer:${cO()}:anonymous-token`}function GE(e){return!!(e?.token&&e.expiresAt-Math.floor(Date.now()/1e3)>300)}function gH(){try{const e=sessionStorage.getItem(By());return e?JSON.parse(e):null}catch{return null}}function yH(e){try{sessionStorage.setItem(By(),JSON.stringify(e))}catch{}}function vH(){wl=null,fl=null;try{sessionStorage.removeItem(By())}catch{}}async function bH(){const e=await aC(),t=await fetch(`${gd()}/anonymous/bootstrap`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publicJwk:e})}),n=await t.json().catch(()=>({}));if(!t.ok)throw new Error(n.message||n.error||`Anonymous bootstrap failed (${t.status})`);const i={token:n.token,expiresAt:n.expiresAt};return wl=i,yH(i),i.token}async function _H(){if(GE(wl))return wl.token;const e=gH();return GE(e)?(wl=e,e.token):(fl||(fl=bH().finally(()=>{fl=null})),fl)}const Nr=lH(uO(),U$());function oC(e){return e?e?.user?.app_metadata?.project_id===cO():!0}async function Ag(){const{data:{session:e}}=await Nr.auth.getSession();return oC(e)?e:(await Nr.auth.signOut({scope:"local"}),null)}async function SH(e,t){const n=await Ag(),i=n?.access_token?"session":"anonymous";return{headers:{Authorization:`Bearer ${n?.access_token??await _H()}`,DPoP:await pH(e,t)},tokenSource:i}}async function Qd(e,t,n,i=!0){const{headers:a,tokenSource:l}=await SH(e,t),u=await fetch(e,{method:t,headers:{...a,"Content-Type":"application/json"},body:n?JSON.stringify(n):void 0});return u.status===401&&i&&l==="anonymous"?(vH(),Qd(e,t,n,!1)):u}async function kn(e,t){const n=`${ky()}/${e}`,a=await Qd(n,"POST",t);if(!a.ok){const l=await a.json().catch(()=>({}));throw new Error(l.message||l.error||`Remixer data request failed (${a.status})`)}return a.json()}async function wH(e,t={}){const n=new URL(`${ky()}/${e}`);Object.entries(t.query||{}).forEach(([l,u])=>{u!==void 0&&n.searchParams.set(l,String(u))});const i=t.method||"POST",a=await Qd(n.toString(),i,t.body);if(!a.ok){const l=await a.json().catch(()=>({}));throw new Error(l.message||l.error||`Remixer request failed (${a.status})`)}return a.json()}async function EH(e){const t=await crypto.subtle.digest("SHA-256",await e.arrayBuffer());return Array.from(new Uint8Array(t)).map(n=>n.toString(16).padStart(2,"0")).join("")}async function Bl(e,t){const n=`${ky()}/${e}`,a=await Qd(n,"POST",t);if(!a.ok){const l=await a.json().catch(()=>({}));throw new Error(l.message||l.error||`Remixer runtime request failed (${a.status})`)}return a.json()}async function TH(e,t={}){return Bl("remixer-runtime/action",{actionName:e,payload:t})}async function xH({bucketSlug:e,file:t,objectKey:n}){const i=t.type||"application/octet-stream",a=await EH(t),l=await Bl("remixer-runtime/storage/upload-url",{bucketSlug:e,filename:t.name,contentType:i,sizeBytes:t.size,sha256:a,objectKey:n}),u=new FormData;
205Object.entries(l.fields).forEach(([f,h])=>u.append(f,h)),u.append("file",t);const d=await fetch(l.url,{method:"POST",body:u});if(!d.ok)throw new Error(`File upload failed (${d.status})`);return Bl("remixer-runtime/storage/complete-upload",{bucketSlug:e,objectId:l.objectId,filename:t.name,contentType:i,sizeBytes:t.size,sha256:a,objectKey:l.objectKey,s3Key:l.s3Key})}async function AH(e,t={}){return Bl("remixer-runtime/storage/objects",{bucketSlug:e,...t})}async function OH(e,t){return Bl("remixer-runtime/storage/read-url",{bucketSlug:e,...t})}const CH={run:TH};async function KE(e,t,n,i){const a=await fetch(`${gd()}/auth/email/${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,password:n,metadata:i,return_to:window.location.origin})});if(!a.ok){const u=await a.json().catch(()=>({}));throw new Error(u.error||`Email auth failed (${a.status})`)}const l=await a.json();if(l.access_token&&l.refresh_token){const{error:u}=await Nr.auth.setSession({access_token:l.access_token,refresh_token:l.refresh_token});if(u)throw u}return l}const RH={getSession:Ag,async getUser(){return(await Ag())?.user??null},isValidProjectSession:oC,onAuthStateChange(e){return Nr.auth.onAuthStateChange(e)},setSession(e,t){return Nr.auth.setSession({access_token:e,refresh_token:t})},signInWithGoogle(e={}){const t=new URL(`${gd()}/auth/start`);t.searchParams.set("return_to",e.returnTo||`${window.location.origin}/account`),t.searchParams.set("nonce",crypto.randomUUID()),window.location.href=t.toString()},signInWithEmail(e,t){return KE("signin",e,t)},signUpWithEmail(e,t,n){return KE("signup",e,t,n)},async completeAuthExchange(e){const t=await fetch(`${gd()}/auth/exchange`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({exchange_code:e})});if(!t.ok){const i=await t.json().catch(()=>({}));throw new Error(i.error||`Exchange failed (${t.status})`)}const n=await t.json();return Nr.auth.setSession({access_token:n.access_token,refresh_token:n.refresh_token})},signOut(){return Nr.auth.signOut()}};function kH(e){return{id:e.id,projectId:e.project_id,entityType:e.entity_type,userId:e.user_id,data:e.data||{},status:e.status,createdAt:e.created_at,updatedAt:e.updated_at}}function NH(e,t){return t.startsWith("data.")?e.data[t.slice(5)]:e[t]}function jH(e,t){const n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(`^${n.replace(/%/g,".*").replace(/_/g,".")}$`,"i").test(String(e??""))}function YE(e,t){const n=NH(e,t.field);if(t.op==="isNull")return n==null;if(t.value===void 0||t.value===null)return!1;if(t.op==="in")return Array.isArray(t.value)&&t.value.map(String).includes(String(n));if(t.op==="contains")return String(n??"").toLowerCase().includes(String(t.value).toLowerCase());if(t.op==="startsWith")return String(n??"").toLowerCase().startsWith(String(t.value).toLowerCase());if(t.op==="ilike")return jH(n,String(t.value));if(t.type==="number"){const i=Number(n),a=Number(t.value);return!Number.isFinite(i)||!Number.isFinite(a)?!1:t.op==="neq"?i!==a:t.op==="lt"?i<a:t.op==="lte"?i<=a:t.op==="gt"?i>a:t.op==="gte"?i>=a:i===a}if(t.type==="boolean"){const i=n===!0||n==="true",a=t.value===!0||t.value==="true";return t.op==="neq"?i!==a:i===a}return t.op==="neq"?String(n)!==String(t.value):t.op==="lt"?String(n)<String(t.value):t.op==="lte"?String(n)<=String(t.value):t.op==="gt"?String(n)>String(t.value):t.op==="gte"?String(n)>=String(t.value):String(n)===String(t.value)}function DH(e,t){return"or"in t?t.or.some(n=>YE(e,n)):YE(e,t)}function MH(e,t={}){return(t.filters||[]).every(n=>DH(e,n))}const LH={list(e,t={}){return kn("remixer-runtime/data/records/list",{entityType:e,...t})},get(e,t){return kn("remixer-runtime/data/records/get",{entityType:e,id:t})},maybeOne(e,t={}){return kn("remixer-runtime/data/records/get",{entityType:e,...t,maybe:!0})},create(e,t,n={}){return kn("remixer-runtime/data/records/create",{entityType:e,data:t,...n})},update(e,t,n,i={}){return kn("remixer-runtime/data/records/update",{entityType:e,id:t,data:n,...i})},delete(e,t){return kn("remixer-runtime/data/records/delete",{entityType:e,id:t})},subscribe(e,t,n={}){const i=Nr.channel(`remixer-data-${e}-${crypto.randomUUID()}`).on("postgres_changes",{event:"*",schema:"public",table:"entity_records",filter:`entity_type=eq.${e}`},a=>{const l=a.new&&Object.keys(a.new).length?a.new:a.old,u=kH(l);
205MH(u,n)&&t(u)}).subscribe();return()=>{Nr.removeChannel(i)}}};function UH(e){return{length:e.length,width:e.width,height:e.height,distance_unit:e.distanceUnit,weight:e.weight,mass_unit:e.massUnit}}function IH(e){return{quantity:e.quantity,total_price:e.totalPrice,currency:e.currency,weight:e.weight,weight_unit:e.weightUnit,title:e.title,sku:e.sku}}const PH={createCheckoutSession(e){return kn("remixer-runtime/ecommerce/checkout-session",{line_items:e.items.map(t=>({price_id:t.priceId,quantity:t.quantity})),mode:e.mode,success_url:e.successUrl,cancel_url:e.cancelUrl,guest_email:e.guestEmail,shipping_rate_id:e.shippingRateId,shipping_cost:e.shippingCost,shipping_label:e.shippingLabel,shipping_address:e.shippingAddress})},listOrders(){return kn("remixer-runtime/ecommerce/orders",{})},getSubscription(){return kn("remixer-runtime/ecommerce/subscription",{})},shipping:{getRates(e){return kn("remixer-runtime/shipping/rates",{address_to:e.addressTo,address_from:e.addressFrom,parcel:e.parcel?UH(e.parcel):void 0,line_items:e.lineItems?e.lineItems.map(IH):void 0})},validateAddress(e){return kn("remixer-runtime/shipping/validate-address",e)},getTracking(e,t){return kn("remixer-runtime/shipping/tracking",{carrier:e,tracking_number:t})}}},BH={submit(e){return wH("remixer-runtime/forms/submit",{method:"POST",body:e})}},VH={upload:xH,list:AH,getReadUrl:OH},lC={actions:CH,auth:RH,data:LH,ecommerce:PH,forms:BH,storage:VH},zH=()=>{const{t:e}=Wn(),[t,n]=D.useState({name:"",email:"",subject:"",message:""}),[i,a]=D.useState(!1),[l,u]=D.useState(!1),[d,f]=D.useState(""),h=async g=>{g.preventDefault(),a(!0),f("");try{await lC.forms.submit({recipientEmail:"[email protected]",templateType:"Contact Form",subject:t.subject||"New Contact Message",replyTo:t.email,...t}),u(!0),setTimeout(()=>u(!1),7e3),n({name:"",email:"",subject:"",message:""})}catch{f(e("contact.form.error"))}finally{a(!1)}};return T.jsxs(T.Fragment,{children:[T.jsx(Jl,{titleKey:"contact.meta.title",descriptionKey:"contact.meta.description"}),T.jsxs("main",{children:[T.jsx("section",{className:"bg-background pt-20 md:pt-28 pb-16 border-b border-border/40",children:T.jsx("div",{className:"mx-auto max-w-[1320px] px-container-px",children:T.jsxs("div",{className:"max-w-[680px]",children:[T.jsx("p",{className:"text-accent text-[0.78rem] font-bold tracking-[0.22em]","data-text-id":"contact.hero.kicker",children:e("contact.hero.kicker")}),T.jsx("h1",{className:"mt-5 font-heading font-extrabold text-foreground text-[clamp(2.4rem,5.5vw,4.6rem)] leading-[1.02] tracking-[-0.03em]","data-text-id":"contact.hero.title",children:e("contact.hero.title")}),T.jsx("p",{className:"mt-7 text-foreground/70 text-[1.1rem] leading-relaxed","data-text-id":"contact.hero.body",children:e("contact.hero.body")})]})})}),T.jsx("section",{className:"bg-background py-section-spacing-mobile md:py-section-spacing",children:T.jsxs("div",{className:"mx-auto max-w-[1320px] px-container-px grid grid-cols-1 lg:grid-cols-12 gap-12",children:[T.jsx("div",{className:"lg:col-span-5 flex flex-col gap-10",children:T.jsx("div",{className:"flex flex-col gap-7",children:[{icon:OA,label:"contact.info.email.label",value:"contact.info.email.value"},{icon:CA,label:"contact.info.phone.label",value:"contact.info.phone.value"}].map(({icon:g,label:y,value:v})=>T.jsxs("div",{className:"flex gap-5",children:[T.jsx("div",{className:"w-11 h-11 rounded-full bg-accent-soft flex items-center justify-center shrink-0",children:T.jsx(g,{size:20,className:"text-accent"})}),T.jsxs("div",{children:[T.jsx("p",{className:"text-foreground/50 text-[0.8rem] font-semibold uppercase tracking-[0.15em]","data-text-id":y,children:e(y)}),T.jsx("p",{className:"mt-1 text-foreground/85 text-[1rem]","data-text-id":v,children:e(v)})]})]},y))})}),T.jsxs("div",{className:"lg:col-span-7",children:[T.jsx("h2",{className:"font-heading font-extrabold text-foreground text-[clamp(1.6rem,3.5vw,2.5rem)] tracking-[-0.02em]","data-text-id":"contact.form.title",children:e("contact.form.title")}),l&&T.jsx("div",{className:"mt-6 rounded-card bg-accent-soft border border-accent/30 text-accent px-6 py-4 text-[0.97rem]","data-text-id":"contact.form.success",children:e("contact.form.success")}),d&&T.jsx("div",{className:"mt-6 rounded-card bg-red-900/20 border border-red-500/30 text-red-400 px-6 py-4 text-[0.97rem]",children:d}),T.jsxs("form",{onSubmit:h,className:"mt-8 flex flex-col gap-5",children:[T.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:[T.jsxs("div",{children:[T.jsx("label",{className:"block text-foreground
205/80 text-[0.88rem] font-semibold mb-2",htmlFor:"ct-name","data-text-id":"contact.form.name",children:e("contact.form.name")}),T.jsx("input",{id:"ct-name",type:"text",required:!0,value:t.name,onChange:g=>n(y=>({...y,name:g.target.value})),className:"w-full bg-surface border border-border/60 rounded-card px-4 py-3 text-foreground text-[0.97rem] focus:outline-none focus:border-accent transition-colors"})]}),T.jsxs("div",{children:[T.jsx("label",{className:"block text-foreground/80 text-[0.88rem] font-semibold mb-2",htmlFor:"ct-email","data-text-id":"contact.form.email",children:e("contact.form.email")}),T.jsx("input",{id:"ct-email",type:"email",required:!0,value:t.email,onChange:g=>n(y=>({...y,email:g.target.value})),className:"w-full bg-surface border border-border/60 rounded-card px-4 py-3 text-foreground text-[0.97rem] focus:outline-none focus:border-accent transition-colors"})]})]}),T.jsxs("div",{children:[T.jsx("label",{className:"block text-foreground/80 text-[0.88rem] font-semibold mb-2",htmlFor:"ct-subject","data-text-id":"contact.form.subject",children:e("contact.form.subject")}),T.jsx("input",{id:"ct-subject",type:"text",value:t.subject,onChange:g=>n(y=>({...y,subject:g.target.value})),className:"w-full bg-surface border border-border/60 rounded-card px-4 py-3 text-foreground text-[0.97rem] focus:outline-none focus:border-accent transition-colors"})]}),T.jsxs("div",{children:[T.jsx("label",{className:"block text-foreground/80 text-[0.88rem] font-semibold mb-2",htmlFor:"ct-message","data-text-id":"contact.form.message",children:e("contact.form.message")}),T.jsx("textarea",{id:"ct-message",rows:6,required:!0,value:t.message,onChange:g=>n(y=>({...y,message:g.target.value})),className:"w-full bg-surface border border-border/60 rounded-card px-4 py-3 text-foreground text-[0.97rem] focus:outline-none focus:border-accent transition-colors resize-none"})]}),T.jsx("button",{type:"submit",disabled:i,className:"self-start inline-flex items-center justify-center rounded-pill bg-accent text-accent-foreground font-semibold px-8 py-4 text-[1rem] hover:brightness-95 disabled:opacity-60 transition-all","data-text-id":"contact.form.submit",children:e("contact.form.submit")})]})]})]})})]})]})},$H=[{id:"youth",icon:h3,titleKey:"assist.ways.w1.title",bodyKey:"assist.ways.w1.body"},{id:"older",icon:L3,titleKey:"assist.ways.w2.title",bodyKey:"assist.ways.w2.body"},{id:"frontline",icon:p3,titleKey:"assist.ways.w3.title",bodyKey:"assist.ways.w3.body"},{id:"anyone",icon:D3,titleKey:"assist.ways.w4.title",bodyKey:"assist.ways.w4.body"}],Ar="w-full bg-surface border border-border/60 rounded-card px-4 py-3 text-foreground text-[0.97rem] focus:outline-none focus:border-accent transition-colors",Or="block text-foreground/80 text-[0.88rem] font-semibold mb-2",HH=()=>{const{t:e}=Wn(),[t,n]=D.useState({requesterName:"",requesterEmail:"",requesterPhone:"",relationship:"",participantName:"",participantAge:"",barriers:"",sport:"",message:""}),[i,a]=D.useState(!1),[l,u]=D.useState(!1),[d,f]=D.useState(""),h=y=>v=>n(_=>({..._,[y]:v.target.value})),g=async y=>{y.preventDefault(),a(!0),f("");try{await lC.forms.submit({templateType:"Assistance Request",subject:"New Assistance Request",replyTo:t.requesterEmail,...t}),u(!0),setTimeout(()=>u(!1),8e3),n({requesterName:"",requesterEmail:"",requesterPhone:"",relationship:"",participantName:"",participantAge:"",barriers:"",sport:"",message:""})}catch{f(e("assist.form.error"))}finally{a(!1)}};return T.jsxs(T.Fragment,{children:[T.jsx(Jl,{titleKey:"assist.meta.title",descriptionKey:"assist.meta.description"}),T.jsxs("main",{children:[T.jsx("section",{className:"bg-background pt-20 md:pt-28 pb-16 border-b border-border/40",children:T.jsx("div",{className:"mx-auto max-w-[1320px] px-container-px",children:T.jsxs("div",{className:"max-w-[680px]",children:[T.jsx("p",{className:"text-accent text-[0.78rem] font-bold tracking-[0.22em]","data-text-id":"assist.hero.kicker",children:e("assist.hero.kicker")}),T.jsx("h1",{className:"mt-5 font-heading font-extrabold text-foreground text-[clamp(2.4rem,5.5vw,4.6rem)] leading-[1.02] tracking-[-0.03em]","data-text-id":"assist.hero.title",children:e("assist.hero.title")}
205),T.jsx("p",{className:"mt-7 text-foreground/70 text-[1.1rem] leading-relaxed","data-text-id":"assist.hero.body",children:e("assist.hero.body")})]})})}),T.jsx("section",{className:"bg-surface py-section-spacing-mobile md:py-section-spacing border-b border-border/40",children:T.jsxs("div",{className:"mx-auto max-w-[1320px] px-container-px",children:[T.jsx("h2",{className:"font-heading font-extrabold text-foreground text-[clamp(1.5rem,3vw,2.2rem)] tracking-[-0.02em] mb-10","data-text-id":"assist.ways.title",children:e("assist.ways.title")}),T.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6",children:$H.map(({id:y,icon:v,titleKey:_,bodyKey:S},E)=>T.jsxs(ir.div,{initial:{opacity:0,y:18},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.45,delay:E*.08},className:"bg-background rounded-card p-7 border border-border/40 flex flex-col gap-4",children:[T.jsx("div",{className:"w-11 h-11 rounded-full bg-accent-soft flex items-center justify-center shrink-0",children:T.jsx(v,{size:20,className:"text-accent"})}),T.jsx("h3",{className:"font-heading font-bold text-foreground text-[1.05rem]","data-text-id":_,children:e(_)}),T.jsx("p",{className:"text-foreground/65 text-[0.93rem] leading-relaxed","data-text-id":S,children:e(S)})]},y))})]})}),T.jsx("section",{className:"bg-background py-section-spacing-mobile md:py-section-spacing",children:T.jsxs("div",{className:"mx-auto max-w-[1320px] px-container-px grid grid-cols-1 lg:grid-cols-12 gap-14",children:[T.jsxs("div",{className:"lg:col-span-4",children:[T.jsx("h2",{className:"font-heading font-extrabold text-foreground text-[clamp(1.6rem,3.5vw,2.5rem)] tracking-[-0.02em]","data-text-id":"assist.form.title",children:e("assist.form.title")}),T.jsx("p",{className:"mt-5 text-foreground/65 text-[0.97rem] leading-relaxed","data-text-id":"assist.form.subtitle",children:e("assist.form.subtitle")})]}),T.jsxs("div",{className:"lg:col-span-8",children:[l&&T.jsx("div",{className:"mb-7 rounded-card bg-accent-soft border border-accent/30 text-accent px-6 py-4 text-[0.97rem]","data-text-id":"assist.form.success",children:e("assist.form.success")}),d&&T.jsx("div",{className:"mb-7 rounded-card bg-red-900/20 border border-red-500/30 text-red-400 px-6 py-4 text-[0.97rem]",children:d}),T.jsxs("form",{onSubmit:g,className:"flex flex-col gap-6",children:[T.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:[T.jsxs("div",{children:[T.jsx("label",{className:Or,htmlFor:"ra-name","data-text-id":"assist.form.requester.name",children:e("assist.form.requester.name")}),T.jsx("input",{id:"ra-name",type:"text",required:!0,value:t.requesterName,onChange:h("requesterName"),className:Ar})]}),T.jsxs("div",{children:[T.jsx("label",{className:Or,htmlFor:"ra-email","data-text-id":"assist.form.requester.email",children:e("assist.form.requester.email")}),T.jsx("input",{id:"ra-email",type:"email",required:!0,value:t.requesterEmail,onChange:h("requesterEmail"),className:Ar})]})]}),T.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:[T.jsxs("div",{children:[T.jsx("label",{className:Or,htmlFor:"ra-phone","data-text-id":"assist.form.requester.phone",children:e("assist.form.requester.phone")}),T.jsx("input",{id:"ra-phone",type:"tel",value:t.requesterPhone,onChange:h("requesterPhone"),className:Ar})]}),T.jsxs("div",{children:[T.jsx("label",{className:Or,htmlFor:"ra-relationship","data-text-id":"assist.form.relationship",children:e("assist.form.relationship")}),T.jsxs("select",{id:"ra-relationship",required:!0,value:t.relationship,onChange:h("relationship"),className:Ar,children:[T.jsx("option",{value:"",disabled:!0}),[{val:"self",key:"assist.form.relationship.self"},{val:"parent",key:"assist.form.relationship.parent"},{val:"social",key:"assist.form.relationship.social"},{val:"teacher",key:"assist.form.relationship.teacher"},{val:"friend",key:"assist.form.relationship.friend"},{val:"other",key:"assist.form.relationship.other"}].map(({val:y,key:v})=>T.jsx("option",{value:y,children:e(v)},y))]})]})]}),T.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:[T.jsxs("div",{children:[T.jsx("label",{className:Or,htmlFor:"ra-pname","data-text-id":"assist.form.participant.name",children:e("assist.form.participant.name")}),T.jsx("input",{id:"ra-pname",type:"text",value:t.participantName,onChange:h("participantName"),className:Ar})]}),T.jsxs("div",{children:[T.jsx("label",{className:Or,htmlFor:"ra-age","data-text-id":"assist.form.participant.age",children:e("assist.form.participant.age")}),T.jsxs("select",{id:"ra-age",value:t.participantAge,onChange:h("participantAge"),className:Ar,children:[T.jsx("option",{value:""}),[{val:"child",key:"assist.form.participant.age.child"},{val:"teen",key:"assist.form.participant.age.teen"},{val:"adult",key:"assist.form.participant.age.adult"},{val:"senior",key:"assist.form.participant.age.senior"}
205,{val:"unsure",key:"assist.form.participant.age.unsure"}].map(({val:y,key:v})=>T.jsx("option",{value:y,children:e(v)},y))]})]})]}),T.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:[T.jsxs("div",{children:[T.jsx("label",{className:Or,htmlFor:"ra-sport","data-text-id":"assist.form.sport",children:e("assist.form.sport")}),T.jsx("input",{id:"ra-sport",type:"text",value:t.sport,onChange:h("sport"),className:Ar})]}),T.jsxs("div",{children:[T.jsx("label",{className:Or,htmlFor:"ra-barriers","data-text-id":"assist.form.barriers",children:e("assist.form.barriers")}),T.jsx("input",{id:"ra-barriers",type:"text",placeholder:"e.g. cost, transportation, equipment",value:t.barriers,onChange:h("barriers"),className:Ar})]})]}),T.jsxs("div",{children:[T.jsx("label",{className:Or,htmlFor:"ra-message","data-text-id":"assist.form.message",children:e("assist.form.message")}),T.jsx("textarea",{id:"ra-message",rows:5,value:t.message,onChange:h("message"),className:`${Ar} resize-none`})]}),T.jsx("button",{type:"submit",disabled:i,className:"self-start inline-flex items-center justify-center rounded-pill bg-accent text-accent-foreground font-semibold px-8 py-4 text-[1rem] hover:brightness-95 disabled:opacity-60 transition-all","data-text-id":"assist.form.submit",children:e("assist.form.submit")})]})]})]})})]})]})},qH=()=>T.jsxs(WB,{children:[T.jsxs(uA,{children:[T.jsx("html",{lang:"en"}),T.jsx("meta",{name:"theme-color",content:"#0A0E14"})]}),T.jsx(s3,{}),T.jsxs("div",{className:"min-h-screen flex flex-col bg-background text-foreground",children:[T.jsx($3,{}),T.jsxs(OB,{children:[T.jsx(Zi,{path:"/",element:T.jsx(gE,{})}),T.jsx(Zi,{path:"/mission",element:T.jsx(M$,{})}),T.jsx(Zi,{path:"/programs",element:T.jsx(L$,{})}),T.jsx(Zi,{path:"/contact",element:T.jsx(zH,{})}),T.jsx(Zi,{path:"/request-assistance",element:T.jsx(HH,{})}),T.jsx(Zi,{path:"*",element:T.jsx(gE,{})})]}),T.jsx(H3,{})]})]}),FH="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Manrope:wght@400;500;600;700&display=swap";if(typeof window<"u"&&window.document){const e=document.createElement("link");e.href=FH,e.rel="stylesheet",document.head.appendChild(e)}typeof window<"u"&&window.tailwind&&(window.tailwind.config=LP);const uC=document.getElementById("root");if(!uC)throw new Error("Could not find root element to mount to");const GH=oP.createRoot(uC);GH.render(T.jsx(st.StrictMode,{children:T.jsx(oA,{children:T.jsx(V3,{children:T.jsx(qH,{})})})}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.