vendor: 17,312 bytes, lines 1-9
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/sectors-BURIHufm.js","assets/jsx-runtime-DGeXAQPT.js","assets/button-BO_KIucz.js","assets/useRouter-Dxp5njYH.js","assets/createLucideIcon-OAReEtOZ.js","assets/select-DcxZERrM.js","assets/link-Bpr2op2c.js","assets/useStore-D3k2uwmM.js","assets/arrow-right-kNV4C1d1.js","assets/droplets-Df0fEWmE.js","assets/recycle-DZaePmvn.js","assets/privacy-policy-Dj923s21.js","assets/cookie-policy-EUN9d2KX.js","assets/routes-CSHZ-Z0J.js","assets/sparkles-9vvq9xjv.js","assets/trending-down-BCFPNcZk.js","assets/zap--WYFRS7e.js","assets/products.index-BQHvDiH9.js","assets/biogas-hero-B1WQ6Shk.js","assets/hero-etar-1-D2bXU2bG.js","assets/resources.news-VQvCMdS3.js","assets/resources.case-studies-VQvCMdS3.js","assets/products.upwater-BvRP_yxG.js","assets/deployment-step3-DRdlr_KV.js","assets/rocket-DPbydWk9.js","assets/trending-up-D4-psk7q.js","assets/products.upwaste-B7GtiFoD.js","assets/gauge-C8Dm8OQu.js","assets/about.story-Dbhz7Jzz.js","assets/graduation-cap-HS59nDF9.js","assets/about.partners-Yj83HMii.js","assets/about.contact-C-FQ6JAs.js","assets/map-pin-CP9jKn_2.js","assets/newspaper-hoaQM58T.js","assets/resources.news.index-BacYptFB.js","assets/arrow-up-right-BO0ktpW5.js","assets/resources.news._slug-BotFI9Ze.js","assets/arrow-left-CfXzdxsx.js","assets/share-2-C9wciiSz.js","assets/quote-CLiJRZ2D.js","assets/resources.news._slug-XX7CKAKh.js","assets/resources.case-studies.index-BqQ10OpI.js","assets/resources.case-studies._slug--NJMU8s_.js","assets/resources.case-studies._slug-pLwZ36CB.js"])))=>i.map(i=>d[i]); 2import{n as e,r as t,t as n}from"./jsx-runtime-DGeXAQPT.js";import{i as r,n as i,r as a,t as o}from"./useRouter-Dxp5njYH.js";import{n as s,t as c}from"./createLucideIcon-OAReEtOZ.js";import{A as l,B as u,C as d,D as f,E as p,F as m,I as h,L as g,M as _,N as v,O as y,P as b,R as x,S,T as C,_ as ee,b as te,c as ne,f as re,g as ie,h as ae,i as oe,j as se,k as ce,l as le,n as ue,p as w,r as E,s as de,t as D,u as fe,v as pe,w as me,x as O,y as he,z as ge}from"./useStore-D3k2uwmM.js";import{a as _e,i as ve,n as ye,o as k,r as be,s as xe,t as Se}from"./redirect-Coy-z-9D.js";import{n as Ce,r as we,t as Te}from"./matchContext-G-MytvR5.js";import{t as Ee}from"./link-Bpr2op2c.js";import{_ as De,a as Oe,c as ke,d as Ae,f as je,g as Me,h as Ne,l as A,m as Pe,n as Fe,o as Ie,p as Le,s as Re,t as ze,u as Be}from"./button-BO_KIucz.js";var Ve=e((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,ie());else{var t=n(l);t!==null&&se(x,t.startTime-e)}}var S=!1,C=-1,ee=5,te=-1;function ne(){return g?!0:!(e.unstable_now()-te<ee)}function re(){if(g=!1,S){var t=e.unstable_now();te=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ne());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&se(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?ie():S=!1}}}var ie;if(typeof y==`function`)ie=function(){y(re)};else if(typeof MessageChannel<`u`){var ae=new MessageChannel,oe=ae.port2;ae.port1.onmessage=re,ie=function(){oe.postMessage(null)}}else ie=function(){_(re,0)};function se(t,n){C=_(function(){t(e.unstable_now())},n)}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(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):ee=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,se(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,ie()))),r},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),He=e(((e,t)=>{t.exports=Ve()})),Ue=e((e=>{var t=He(),n=r(),i=s();function a(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function l(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(c(e)!==e)throw Error(a(188))}function f(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(a(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return d(i),e;if(o===r)return d(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var m=Object.assign,h=Symbol.for(`react.element`),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),S=Symbol.for(`react.context`),C=Symbol.for(`react.forward_ref`),ee=Symbol.for(`react.suspense`),te=Symbol.for(`react.suspense_list`),ne=Symbol.for(`react.memo`),re=Symbol.for(`react.lazy`),ie=Symbol.for(`react.activity`),ae=Symbol.for(`react.memo_cache_sentinel`),oe=Symbol.iterator;function se(e){return typeof e!=`object`||!e?null:(e=oe&&e[oe]||e[`@@iterator`],typeof e==`function`?e:null)}var ce=Symbol.for(`react.client.reference`);function le(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case ee:return`Suspense`;case te:return`SuspenseList`;case ie:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ne:return t=e.displayName||null,t===null?le(e.type)||`Memo`:t;case re:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}var ue=Array.isArray,w=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,E=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de={pending:!1,data:null,method:null,action:null},D=[],fe=-1;function pe(e){return{current:e}}function me(e){0>fe||(e.current=D[fe],D[fe]=null,fe--)}function O(e,t){fe++,D[fe]=e.current,e.current=t}var he=pe(null),ge=pe(null),_e=pe(null),ve=pe(null);function ye(e,t){switch(O(_e,t),O(ge,e),O(he,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hd(t),e=Ud(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}me(he),O(he,e)}function k(){me(he),me(ge),me(_e)}function be(e){e.memoizedState!==null&&O(ve,e);var t=he.current,n=Ud(t,e.type);t!==n&&(O(ge,e),O(he,n))}function xe(e){ge.current===e&&(me(he),me(ge)),ve.current===e&&(me(ve),$f._currentValue=de)}var Se,Ce;function we(e){if(Se===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Se=t&&t[1]||``,Ce=-1<e.stack.indexOf(` 3 at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return` 4`+Se+e+Ce}var Te=!1;function Ee(e,t){if(!e||Te)return``;Te=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(` 5`),l=s.split(` 6`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=` 7`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Te=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?we(n):``}function De(e,t){switch(e.tag){case 26:case 27:case 5:return we(e.type);case 16:return we(`Lazy`);case 13:return e.child!==t&&t!==null?we(`Suspense Fallback`):we(`Suspense`);case 19:return we(`SuspenseList`);case 0:case 15:return Ee(e.type,!1);case 11:return Ee(e.type.render,!1);case 1:return Ee(e.type,!0);case 31:return we(`Activity`);default:return``}}function Oe(e){try{var t=``,n=null;do t+=De(e,n),n=e,e=e.return;while(e);return t}catch(e){return` 8Error generating stack: `+e.message+` 9`+e.stack}}var ke=Object.prototype.hasOwnProperty,Ae=t.unstable_scheduleCallback,je=t.unstable_cancelCallback,Me=t.unstable_shouldYield,Ne=t.unstable_requestPaint,A=t.unstable_now,Pe=t.unstable_getCurrentPriorityLevel,Fe=t.unstable_ImmediatePriority,Ie=t.unstable_UserBlockingPriority,Le=t.unstable_NormalPriority,Re=t.unstable_LowPriority,ze=t.unstable_IdlePriority,Be=t.log,Ve=t.unstable_setDisableYieldValue,Ue=null,We=null;function Ge(e){if(typeof Be==`function`&&Ve(e),We&&typeof We.setStrictMode==`function`)try{We.setStrictMode(Ue,e)}catch{}}var Ke=Math.clz32?Math.clz32:Ye,qe=Math.log,Je=Math.LN2;function Ye(e){return e>>>=0,e===0?32:31-(qe(e)/Je|0)|0}var Xe=256,Ze=262144,Qe=4194304;function $e(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function et(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=$e(n))):i=$e(o):i=$e(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=$e(n))):i=$e(o)):i=$e(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function tt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function nt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 rt(){var e=Qe;return Qe<<=1,!(Qe&62914560)&&(Qe=4194304),e}function it(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function at(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ot(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ke(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&st(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function st(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ke(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ct(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ke(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function lt(e,t){var n=t&-t;return n=n&42?1:ut(n),(n&(e.suspendedLanes|t))===0?n:0}function ut(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function dt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function ft(){var e=E.p;return e===0?(e=window.event,e===void 0?32:hp(e.type)):e}function pt(e,t){var n=E.p;try{return E.p=e,t()}finally{E.p=n}}var mt=Math.random().toString(36).slice(2),ht=`__reactFiber$`+mt,gt=`__reactProps$`+mt,_t=`__reactContainer$`+mt,vt=`__reactEvents$`+mt,yt=`__reactListeners$`+mt,bt=`__reactHandles$`+mt,xt=`__reactResources$`+mt,St=`__reactMarker$`+mt;function Ct(e){delete e[ht],delete e[gt],delete e[vt],delete e[yt],delete e[bt]}function wt(e){var t=e[ht];if(t)return t;for(var n=e.parentNode;n;){if(t=n[_t]||n[ht]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ff(e);e!==null;){if(n=e[ht])return n;e=ff(e)}return t}e=n,n=e.parentNode}return null}function Tt(e){if(e=e[ht]||e[_t]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Et(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(a(33))}function Dt(e){var t=e[xt];return t||=e[xt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Ot(e){e[St]=!0}var kt=new Set,At={};function jt(e,t){Mt(e,t),Mt(e+`Capture`,t)}function Mt(e,t){for(At[e]=t,e=0;e<t.length;e++)kt.add(t[e])}var Nt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
9037D\\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]*$`),Pt={},Ft={};function It(e){return ke.call(Ft,e)?!0:ke.call(Pt,e)?!1:Nt.test(e)?Ft[e]=!0:(Pt[e]=!0,!1)}function Lt(e,t,n){if(It(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Rt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function zt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Bt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Vt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Ht(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ut(e){if(!e._valueTracker){var t=Vt(e)?`checked`:`value`;e._valueTracker=Ht(e,t,``+e[t])}}function Wt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Vt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Gt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Kt=/[\n"\\]/g;function qt(e){return e.replace(Kt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Jt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Bt(t)):e.value!==``+Bt(t)&&(e.value=``+Bt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Xt(e,o,Bt(n)):Xt(e,o,Bt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Bt(s):e.removeAttribute(`name`)}function Yt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Ut(e);return}n=n==null?``:``+Bt(n),t=t==null?n:``+Bt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Ut(e)}function Xt(e,t,n){t===`number`&&Gt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Zt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Bt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Qt(e,t,n){if(t!=null&&(t=``+Bt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Bt(n)}function $t(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(a(92));if(ue(r)){if(1<r.length)throw Error(a(93));r=r[0]}n=r}n??=``,t=n}
vendor: 87,275 bytes, line 9
9n=Bt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Ut(e)}function en(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var tn=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 nn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||tn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function rn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(a(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&nn(e,i,r)}else for(var o in t)t.hasOwnProperty(o)&&nn(e,o,t[o])}function an(e){if(e.indexOf(`-`)===-1)return!1;switch(e){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 on=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`],[`colorRendering`,`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`]]),sn=/^[\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 cn(e){return sn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function ln(){}var un=null;function dn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fn=null,pn=null;function mn(e){var t=Tt(e);if(t&&(e=t.stateNode)){var n=e[gt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Jt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+qt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[gt]||null;if(!i)throw Error(a(90));Jt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Wt(r)}break a;case`textarea`:Qt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Zt(e,!!n.multiple,t,!1)}}}var hn=!1;function gn(e,t,n){if(hn)return e(t,n);hn=!0;try{return e(t)}finally{if(hn=!1,(fn!==null||pn!==null)&&(xu(),fn&&(t=fn,e=pn,pn=fn=null,mn(t),e)))for(t=0;t<e.length;t++)mn(e[t])}}function _n(e,t){var n=e.stateNode;if(n===null)return null;var r=n[gt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(a(231,t,typeof n));return n}var vn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),yn=!1;if(vn)try{var bn={};Object.defineProperty(bn,"passive",{get:function(){yn=!0}}),window.addEventListener(`test`,bn,bn),window.removeEventListener(`test`,bn,bn)}catch{yn=!1}var xn=null,Sn=null,Cn=null;function wn(){if(Cn)return Cn;var e,t=Sn,n=t.length,r,i=`value`in xn?xn.value:xn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Cn=i.slice(e,1<r?1-r:void 0)}function Tn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function En(){return!0}function Dn(){return!1}function On(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?En:Dn,this.isPropagationStopped=Dn,this}return m(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=En)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=En)},persist:function(){},isPersistent:En}),t}var kn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},An=On(kn),jn=m({},kn,{view:0,detail:0}),Mn=On(jn),Nn,Pn,Fn,In=m({},jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Fn&&(Fn&&e.type===`mousemove`?(Nn=e.screenX-Fn.screenX,Pn=e.screenY-Fn.screenY):Pn=Nn=0,Fn=e),Nn)},movementY:function(e){return`movementY`in e?e.movementY:Pn}}),Ln=On(In),Rn=On(m({},In,{dataTransfer:0})),zn=On(m({},jn,{relatedTarget:0})),Bn=On(m({},kn,{animationName:0,elapsedTime:0,pseudoElement:0})),Vn=On(m({},kn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),j=On(m({},kn,{data:0})),Hn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Un={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`},Wn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function M(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Wn[e])?!!t[e]:!1}function Gn(){return M}var Kn=On(m({},jn,{key:function(e){if(e.key){var t=Hn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Tn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Un[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gn,charCode:function(e){return e.type===`keypress`?Tn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Tn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),qn=On(m({},In,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Jn=On(m({},jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gn})),Yn=On(m({},kn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Xn=On(m({},In,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Zn=On(m({},kn,{newState:0,oldState:0})),Qn=[9,13,27,32],$n=vn&&`CompositionEvent`in window,er=null;vn&&`documentMode`in document&&(er=document.documentMode);var tr=vn&&`TextEvent`in window&&!er,nr=vn&&(!$n||er&&8<er&&11>=er),rr=` `,ir=!1;function ar(e,t){switch(e){case`keyup`:return Qn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function or(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var sr=!1;function cr(e,t){switch(e){case`compositionend`:return or(t);case`keypress`:return t.which===32?(ir=!0,rr):null;case`textInput`:return e=t.data,e===rr&&ir?null:e;default:return null}}function lr(e,t){if(sr)return e===`compositionend`||!$n&&ar(e,t)?(e=wn(),Cn=Sn=xn=null,sr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return nr&&t.locale!==`ko`?null:t.data;default:return null}}var ur={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 dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!ur[e.type]:t===`textarea`}function fr(e,t,n,r){fn?pn?pn.push(r):pn=[r]:fn=r,t=Dd(t,`onChange`),0<t.length&&(n=new An(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var pr=null,mr=null;function hr(e){bd(e,0)}function gr(e){if(Wt(Et(e)))return e}function _r(e,t){if(e===`change`)return t}var vr=!1;if(vn){var yr;if(vn){var br=`oninput`in document;if(!br){var xr=document.createElement(`div`);xr.setAttribute(`oninput`,`return;`),br=typeof xr.oninput==`function`}yr=br}else yr=!1;vr=yr&&(!document.documentMode||9<document.documentMode)}function Sr(){pr&&(pr.detachEvent(`onpropertychange`,Cr),mr=pr=null)}function Cr(e){if(e.propertyName===`value`&&gr(mr)){var t=[];fr(t,mr,e,dn(e)),gn(hr,t)}}function wr(e,t,n){e===`focusin`?(Sr(),pr=t,mr=n,pr.attachEvent(`onpropertychange`,Cr)):e===`focusout`&&Sr()}function Tr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return gr(mr)}function Er(e,t){if(e===`click`)return gr(t)}function Dr(e,t){if(e===`input`||e===`change`)return gr(t)}function Or(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var kr=typeof Object.is==`function`?Object.is:Or;function Ar(e,t){if(kr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ke.call(t,i)||!kr(e[i],t[i]))return!1}return!0}function jr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mr(e,t){var n=jr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=jr(n)}}function Nr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Gt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Gt(e.document)}return t}function Fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Ir=vn&&`documentMode`in document&&11>=document.documentMode,Lr=null,Rr=null,zr=null,Br=!1;function Vr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Br||Lr==null||Lr!==Gt(r)||(r=Lr,`selectionStart`in r&&Fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),zr&&Ar(zr,r)||(zr=r,r=Dd(Rr,`onSelect`),0<r.length&&(t=new An(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Lr)))}function Hr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Ur={animationend:Hr(`Animation`,`AnimationEnd`),animationiteration:Hr(`Animation`,`AnimationIteration`),animationstart:Hr(`Animation`,`AnimationStart`),transitionrun:Hr(`Transition`,`TransitionRun`),transitionstart:Hr(`Transition`,`TransitionStart`),transitioncancel:Hr(`Transition`,`TransitionCancel`),transitionend:Hr(`Transition`,`TransitionEnd`)},Wr={},Gr={};vn&&(Gr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Ur.animationend.animation,delete Ur.animationiteration.animation,delete Ur.animationstart.animation),`TransitionEvent`in window||delete Ur.transitionend.transition);function Kr(e){if(Wr[e])return Wr[e];if(!Ur[e])return e;var t=Ur[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Gr)return Wr[e]=t[n];return e}var qr=Kr(`animationend`),Jr=Kr(`animationiteration`),Yr=Kr(`animationstart`),Xr=Kr(`transitionrun`),Zr=Kr(`transitionstart`),Qr=Kr(`transitioncancel`),$r=Kr(`transitionend`),ei=new Map,ti=`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(` `);ti.push(`scrollEnd`);function ni(e,t){ei.set(e,t),jt(t,[e])}var ri=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ii=[],ai=0,oi=0;function si(){for(var e=ai,t=oi=ai=0;t<e;){var n=ii[t];ii[t++]=null;var r=ii[t];ii[t++]=null;var i=ii[t];ii[t++]=null;var a=ii[t];if(ii[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&di(n,i,a)}}function ci(e,t,n,r){ii[ai++]=e,ii[ai++]=t,ii[ai++]=n,ii[ai++]=r,oi|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function li(e,t,n,r){return ci(e,t,n,r),fi(e)}function ui(e,t){return ci(e,null,null,t),fi(e)}function di(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ke(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function fi(e){if(50<fu)throw fu=0,pu=null,Error(a(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var pi={};function mi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hi(e,t,n,r){return new mi(e,t,n,r)}function gi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _i(e,t){var n=e.alternate;return n===null?(n=hi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function vi(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function yi(e,t,n,r,i,o){var s=0;if(r=e,typeof e==`function`)gi(e)&&(s=1);else if(typeof e==`string`)s=Wf(e,n,he.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case ie:return e=hi(31,n,t,i),e.elementType=ie,e.lanes=o,e;case v:return bi(n.children,i,o,t);case y:s=8,i|=24;break;case b:return e=hi(12,n,t,i|2),e.elementType=b,e.lanes=o,e;case ee:return e=hi(13,n,t,i),e.elementType=ee,e.lanes=o,e;case te:return e=hi(19,n,t,i),e.elementType=te,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case S:s=10;break a;case x:s=9;break a;case C:s=11;break a;case ne:s=14;break a;case re:s=16,r=null;break a}s=29,n=Error(a(130,e===null?`null`:typeof e,``)),r=null}return t=hi(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function bi(e,t,n,r){return e=hi(7,e,r,t),e.lanes=n,e}function xi(e,t,n){return e=hi(6,e,null,t),e.lanes=n,e}function Si(e){var t=hi(18,null,null,0);return t.stateNode=e,t}function Ci(e,t,n){return t=hi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var wi=new WeakMap;function Ti(e,t){if(typeof e==`object`&&e){var n=wi.get(e);return n===void 0?(t={value:e,source:t,stack:Oe(t)},wi.set(e,t),t):n}return{value:e,source:t,stack:Oe(t)}}var Ei=[],Di=0,Oi=null,ki=0,Ai=[],ji=0,Mi=null,Ni=1,Pi=``;function Fi(e,t){Ei[Di++]=ki,Ei[Di++]=Oi,Oi=e,ki=t}function Ii(e,t,n){Ai[ji++]=Ni,Ai[ji++]=Pi,Ai[ji++]=Mi,Mi=e;var r=Ni;e=Pi;var i=32-Ke(r)-1;r&=~(1<<i),n+=1;var a=32-Ke(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ni=1<<32-Ke(t)+i|n<<i|r,Pi=a+e}else Ni=1<<a|n<<i|r,Pi=e}function Li(e){e.return!==null&&(Fi(e,1),Ii(e,1,0))}function Ri(e){for(;e===Oi;)Oi=Ei[--Di],Ei[Di]=null,ki=Ei[--Di],Ei[Di]=null;for(;e===Mi;)Mi=Ai[--ji],Ai[ji]=null,Pi=Ai[--ji],Ai[ji]=null,Ni=Ai[--ji],Ai[ji]=null}function zi(e,t){Ai[ji++]=Ni,Ai[ji++]=Pi,Ai[ji++]=Mi,Ni=t.id,Pi=t.overflow,Mi=e}var Bi=null,N=null,P=!1,Vi=null,Hi=!1,Ui=Error(a(519));function Wi(e){throw Xi(Ti(Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Ui}function Gi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ht]=e,t[gt]=r,n){case`dialog`:Q(`cancel`,t),Q(`close`,t);break;case`iframe`:case`object`:case`embed`:Q(`load`,t);break;case`video`:case`audio`:for(n=0;n<vd.length;n++)Q(vd[n],t);break;case`source`:Q(`error`,t);break;case`img`:case`image`:case`link`:Q(`error`,t),Q(`load`,t);break;case`details`:Q(`toggle`,t);break;case`input`:Q(`invalid`,t),Yt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Q(`invalid`,t);break;case`textarea`:Q(`invalid`,t),$t(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Nd(t.textContent,n)?(r.popover!=null&&(Q(`beforetoggle`,t),Q(`toggle`,t)),r.onScroll!=null&&Q(`scroll`,t),r.onScrollEnd!=null&&Q(`scrollend`,t),r.onClick!=null&&(t.onclick=ln),t=!0):t=!1,t||Wi(e,!0)}function Ki(e){for(Bi=e.return;Bi;)switch(Bi.tag){case 5:case 31:case 13:Hi=!1;return;case 27:case 3:Hi=!0;return;default:Bi=Bi.return}}function qi(e){if(e!==Bi)return!1;if(!P)return Ki(e),P=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Wd(e.type,e.memoizedProps)),n=!n),n&&N&&Wi(e),Ki(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(317));N=df(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(317));N=df(e)}else t===27?(t=N,Qd(e.type)?(e=uf,uf=null,N=e):N=t):N=Bi?lf(e.stateNode.nextSibling):null;return!0}function Ji(){N=Bi=null,P=!1}function Yi(){var e=Vi;return e!==null&&(Ql===null?Ql=e:Ql.push.apply(Ql,e),Vi=null),e}function Xi(e){Vi===null?Vi=[e]:Vi.push(e)}var Zi=pe(null),Qi=null,F=null;function $i(e,t,n){O(Zi,t._currentValue),t._currentValue=n}function ea(e){e._currentValue=Zi.current,me(Zi)}function ta(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function na(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var s=i.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=i;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ta(o.return,n,e),r||(s=null);break a}o=c.next}}else if(i.tag===18){if(s=i.return,s===null)throw Error(a(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),ta(s,n,e),s=null}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}}function ra(e,t,n,r){e=null;for(var i=t,o=!1;i!==null;){if(!o){if(i.flags&524288)o=!0;else if(i.flags&262144)break}if(i.tag===10){var s=i.alternate;if(s===null)throw Error(a(387));if(s=s.memoizedProps,s!==null){var c=i.type;kr(i.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(i===ve.current){if(s=i.alternate,s===null)throw Error(a(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[$f]:e.push($f))}i=i.return}e!==null&&na(t,e,n,r),t.flags|=262144}function ia(e){for(e=e.firstContext;e!==null;){if(!kr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function aa(e){Qi=e,F=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function oa(e){return ca(Qi,e)}function sa(e,t){return Qi===null&&aa(e),ca(e,t)}function ca(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},F===null){if(e===null)throw Error(a(308));F=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else F=F.next=t;return n}var la=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ua=t.unstable_scheduleCallback,da=t.unstable_NormalPriority,fa={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function pa(){return{controller:new la,data:new Map,refCount:0}}function ma(e){e.refCount--,e.refCount===0&&ua(da,function(){e.controller.abort()})}var ha=null,ga=0,_a=0,va=null;function ya(e,t){if(ha===null){var n=ha=[];ga=0,_a=fd(),va={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ga++,t.then(ba,ba),t}function ba(){if(--ga===0&&ha!==null){va!==null&&(va.status=`fulfilled`);var e=ha;ha=null,_a=0,va=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function xa(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Sa=w.S;w.S=function(e,t){tu=A(),typeof t==`object`&&t&&typeof t.then==`function`&&ya(e,t),Sa!==null&&Sa(e,t)};var Ca=pe(null);function wa(){var e=Ca.current;return e===null?K.pooledCache:e}function Ta(e,t){t===null?O(Ca,Ca.current):O(Ca,t.pool)}function Ea(){var e=wa();return e===null?null:{parent:fa._currentValue,pool:e}}var Da=Error(a(460)),Oa=Error(a(474)),ka=Error(a(542)),Aa={then:function(){}};function ja(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ma(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(ln,ln),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ia(e),e;default:if(typeof t.status==`string`)t.then(ln,ln);else{if(e=K,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ia(e),e}throw Pa=t,Da}}function Na(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Pa=e,Da):e}}var Pa=null;function Fa(){if(Pa===null)throw Error(a(459));var e=Pa;return Pa=null,e}function Ia(e){if(e===Da||e===ka)throw Error(a(483))}var La=null,Ra=0;function za(e){var t=Ra;return Ra+=1,La===null&&(La=[]),Ma(La,e,t)}function Ba(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Va(e,t){throw t.$$typeof===h?Error(a(525)):(e=Object.prototype.toString.call(t),Error(a(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ha(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=_i(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=xi(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function l(e,t,n,r){var a=n.type;return a===v?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===re&&Na(a)===t.type)?(t=i(t,n.props),Ba(t,n),t.return=e,t):(t=yi(n.type,n.key,n.props,null,e.mode,r),Ba(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Ci(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,a){return t===null||t.tag!==7?(t=bi(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=xi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case g:return n=yi(t.type,t.key,t.props,null,e.mode,n),Ba(n,t),n.return=e,n;case _:return t=Ci(t,e.mode,n),t.return=e,t;case re:return t=Na(t),f(e,t,n)}if(ue(t)||se(t))return t=bi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,za(t),n);if(t.$$typeof===S)return f(e,sa(e,t),n);Va(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case g:return n.key===i?l(e,t,n,r):null;case _:return n.key===i?u(e,t,n,r):null;case re:return n=Na(n),p(e,t,n,r)}if(ue(n)||se(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,za(n),r);if(n.$$typeof===S)return p(e,t,sa(e,n),r);Va(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case g:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case _:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case re:return r=Na(r),m(e,t,n,r,i)}if(ue(r)||se(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,za(r),i);if(r.$$typeof===S)return m(e,t,n,sa(t,r),i);Va(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),P&&Fi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return P&&Fi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),P&&Fi(i,h),l}function y(i,s,c,l){if(c==null)throw Error(a(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),P&&Fi(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return P&&Fi(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),P&&Fi(i,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===v&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case g:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===v){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===re&&Na(l)===r.type){n(e,r.sibling),c=i(r,o.props),Ba(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===v?(c=bi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=yi(o.type,o.key,o.props,null,e.mode,c),Ba(c,o),c.return=e,e=c)}return s(e);case _:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=i(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=Ci(o,e.mode,c),c.return=e,e=c}return s(e);case re:return o=Na(o),b(e,r,o,c)}if(ue(o))return h(e,r,o,c);if(se(o)){if(l=se(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,za(o),c);if(o.$$typeof===S)return b(e,r,sa(e,o),c);Va(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,o),c.return=e,e=c):(n(e,r),c=xi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ra=0;var i=b(e,t,n,r);return La=null,i}catch(t){if(t===Da||t===ka)throw t;var a=hi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ua=Ha(!0),Wa=Ha(!1),Ga=!1;function Ka(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ja(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ya(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,G&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=fi(e),di(e,null,n),t}return ci(e,r,t,n),fi(e)}function Xa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ct(e,n)}}function Za(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Qa=!1;function I(){if(Qa){var e=va;if(e!==null)throw e}}function $a(e,t,n,r){Qa=!1;var i=e.updateQueue;Ga=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(J&f)===f:(r&f)===f){f!==0&&f===_a&&(Qa=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=m({},d,f);break a;case 2:Ga=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Kl|=o,e.lanes=o,e.memoizedState=d}}function eo(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function to(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)eo(n[e],t)}var no=pe(null),ro=pe(0);function io(e,t){e=Gl,O(ro,e),O(no,t),Gl=e|t.baseLanes}function ao(){O(ro,Gl),O(no,no.current)}function oo(){Gl=ro.current,me(no),me(ro)}var so=pe(null),co=null;function lo(e){var t=e.alternate;O(ho,ho.current&1),O(so,e),co===null&&(t===null||no.current!==null||t.memoizedState!==null)&&(co=e)}function uo(e){O(ho,ho.current),O(so,e),co===null&&(co=e)}function fo(e){e.tag===22?(O(ho,ho.current),O(so,e),co===null&&(co=e)):po(e)}function po(){O(ho,ho.current),O(so,so.current)}function mo(e){me(so),co===e&&(co=null),me(ho)}var ho=pe(0);function go(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||of(n)||sf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var _o=0,L=null,R=null,vo=null,yo=!1,bo=!1,xo=!1,So=0,Co=0,wo=null,To=0;function Eo(){throw Error(a(321))}function Do(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!kr(e[n],t[n]))return!1;return!0}function Oo(e,t,n,r,i,a){return _o=a,L=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,w.H=e===null||e.memoizedState===null?Hs:Us,xo=!1,a=n(r,i),xo=!1,bo&&(a=Ao(t,n,r,i)),ko(e),a}function ko(e){w.H=Vs;var t=R!==null&&R.next!==null;if(_o=0,vo=R=L=null,yo=!1,Co=0,wo=null,t)throw Error(a(300));e===null||oc||(e=e.dependencies,e!==null&&ia(e)&&(oc=!0))}function Ao(e,t,n,r){L=e;var i=0;do{if(bo&&(wo=null),Co=0,bo=!1,25<=i)throw Error(a(301));if(i+=1,vo=R=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}w.H=Ws,o=t(n,r)}while(bo);return o}function jo(){var e=w.H,t=e.useState()[0];return t=typeof t.then==`function`?Ro(t):t,e=e.useState()[0],(R===null?null:R.memoizedState)!==e&&(L.flags|=1024),t}function Mo(){var e=So!==0;return So=0,e}function No(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Po(e){if(yo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}yo=!1}_o=0,vo=R=L=null,bo=!1,Co=So=0,wo=null}function Fo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vo===null?L.memoizedState=vo=e:vo=vo.next=e,vo}function Io(){if(R===null){var e=L.alternate;e=e===null?null:e.memoizedState}else e=R.next;var t=vo===null?L.memoizedState:vo.next;if(t!==null)vo=t,R=e;else{if(e===null)throw L.alternate===null?Error(a(467)):Error(a(310));R=e,e={memoizedState:R.memoizedState,baseState:R.baseState,baseQueue:R.baseQueue,queue:R.queue,next:null},vo===null?L.memoizedState=vo=e:vo=vo.next=e}return vo}function Lo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ro(e){var t=Co;return Co+=1,wo===null&&(wo=[]),e=Ma(wo,e,t),t=L,(vo===null?t.memoizedState:vo.next)===null&&(t=t.alternate,w.H=t===null||t.memoizedState===null?Hs:Us),e}function zo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Ro(e);if(e.$$typeof===S)return oa(e)}throw Error(a(438,String(e)))}function Bo(e){var t=null,n=L.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=L.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Lo(),L.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=ae;return t.index++,n}function Vo(e,t){return typeof t==`function`?t(e):t}function Ho(e){return Uo(Io(),R,e)}function Uo(e,t,n){var r=e.queue;if(r===null)throw Error(a(311));r.lastRenderedReducer=n;var i=e.baseQueue,o=r.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}t.baseQueue=i=o,r.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(_o&f)===f:(J&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===_a&&(d=!0);else if((_o&p)===p){u=u.next,p===_a&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,L.lanes|=p,Kl|=p;f=u.action,xo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,L.lanes|=f,Kl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!kr(o,e.memoizedState)&&(oc=!0,d&&(n=va,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Wo(e){var t=Io(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);kr(o,t.memoizedState)||(oc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Go(e,t,n){var r=L,i=Io(),o=P;if(o){if(n===void 0)throw Error(a(407));n=n()}else n=t();var s=!kr((R||i).memoizedState,n);if(s&&(i.memoizedState=n,oc=!0),i=i.queue,ps(Jo.bind(null,r,i,e),[e]),i.getSnapshot!==t||s||vo!==null&&vo.memoizedState.tag&1){if(r.flags|=2048,cs(9,{destroy:void 0},qo.bind(null,r,i,n,t),null),K===null)throw Error(a(349));o||_o&127||Ko(r,t,n)}return n}function Ko(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=L.updateQueue,t===null?(t=Lo(),L.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function qo(e,t,n,r){t.value=n,t.getSnapshot=r,Yo(t)&&Xo(e)}function Jo(e,t,n){return n(function(){Yo(t)&&Xo(e)})}function Yo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!kr(e,n)}catch{return!0}}function Xo(e){var t=ui(e,2);t!==null&&gu(t,e,2)}function Zo(e){var t=Fo();if(typeof e==`function`){var n=e;if(e=n(),xo){Ge(!0);try{n()}finally{Ge(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vo,lastRenderedState:e},t}function z(e,t,n,r){return e.baseState=n,Uo(e,R,typeof r==`function`?r:Vo)}function B(e,t,n,r,i){if(Rs(e))throw Error(a(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};w.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Qo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Qo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=w.T,o={};w.T=o;try{var s=n(i,r),c=w.S;c!==null&&c(o,s),$o(e,t,s)}catch(n){ts(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),w.T=a}}else try{a=n(i,r),$o(e,t,a)}catch(n){ts(e,t,n)}}function $o(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){es(e,t,n)},function(n){return ts(e,t,n)}):es(e,t,n)}function es(e,t,n){t.status=`fulfilled`,t.value=n,ns(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Qo(e,n)))}function ts(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ns(t),t=t.next;while(t!==r)}e.action=null}function ns(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function rs(e,t){return t}function V(e,t){if(P){var n=K.formState;if(n!==null){a:{var r=L;if(P){if(N){b:{for(var i=N,a=Hi;i.nodeType!==8;){if(!a){i=null;break b}if(i=lf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){N=lf(i.nextSibling),r=i.data===`F!`;break a}}Wi(r)}r=!1}r&&(t=n[0])}}return n=Fo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rs,lastRenderedState:t},n.queue=r,n=Fs.bind(null,L,r),r.dispatch=n,r=Zo(!1),a=Ls.bind(null,L,!1,r.queue),r=Fo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=B.bind(null,L,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function is(e){return as(Io(),R,e)}function as(e,t,n){if(t=Uo(e,t,rs)[0],e=Ho(Vo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Ro(t)}catch(e){throw e===Da?ka:e}else r=t;t=Io();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(L.flags|=2048,cs(9,{destroy:void 0},os.bind(null,i,n),null)),[r,a,e]}function os(e,t){e.action=t}function ss(e){var t=Io(),n=R;if(n!==null)return as(t,n,e);Io(),t=t.memoizedState,n=Io();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function cs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=L.updateQueue,t===null&&(t=Lo(),L.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ls(){return Io().memoizedState}function us(e,t,n,r){var i=Fo();L.flags|=e,i.memoizedState=cs(1|t,{destroy:void 0},n,r===void 0?null:r)}function ds(e,t,n,r){var i=Io();r=r===void 0?null:r;var a=i.memoizedState.inst;R!==null&&r!==null&&Do(r,R.memoizedState.deps)?i.memoizedState=cs(t,a,n,r):(L.flags|=e,i.memoizedState=cs(1|t,a,n,r))}function fs(e,t){us(8390656,8,e,t)}function ps(e,t){ds(2048,8,e,t)}function ms(e){L.flags|=4;var t=L.updateQueue;if(t===null)t=Lo(),L.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function hs(e){var t=Io().memoizedState;return ms({ref:t,nextImpl:e}),function(){if(G&2)throw Error(a(440));return t.impl.apply(void 0,arguments)}}function gs(e,t){return ds(4,2,e,t)}function _s(e,t){return ds(4,4,e,t)}function vs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ys(e,t,n){n=n==null?null:n.concat([e]),ds(4,4,vs.bind(null,t,e),n)}function bs(){}function xs(e,t){var n=Io();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Do(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ss(e,t){var n=Io();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Do(t,r[1]))return r[0];if(r=e(),xo){Ge(!0);try{e()}finally{Ge(!1)}}return n.memoizedState=[r,t],r}function Cs(e,t,n){return n===void 0||_o&1073741824&&!(J&261930)?e.memoizedState=t:(e.memoizedState=n,e=hu(),L.lanes|=e,Kl|=e,n)}function ws(e,t,n,r){return kr(n,t)?n:no.current===null?!(_o&42)||_o&1073741824&&!(J&261930)?(oc=!0,e.memoizedState=n):(e=hu(),L.lanes|=e,Kl|=e,t):(e=Cs(e,n,r),kr(e,t)||(oc=!0),e)}function Ts(e,t,n,r,i){var a=E.p;E.p=a!==0&&8>a?a:8;var o=w.T,s={};w.T=s,Ls(e,!1,t,n);try{var c=i(),l=w.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Is(e,t,xa(c,r),mu(e)):Is(e,t,r,mu(e))}catch(n){Is(e,t,{then:function(){},status:`rejected`,reason:n},mu())}finally{E.p=a,o!==null&&s.types!==null&&(o.types=s.types),w.T=o}}function Es(){}function Ds(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=Os(e).queue;Ts(e,i,t,de,n===null?Es:function(){return ks(e),n(r)})}function Os(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:de,baseState:de,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vo,lastRenderedState:de},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ks(e){var t=Os(e);t.next===null&&(t=e.alternate.memoizedState),Is(e,t.next.queue,{},mu())}function As(){return oa($f)}function js(){return Io().memoizedState}function Ms(){return Io().memoizedState}function Ns(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=mu();e=Ja(n);var r=Ya(t,e,n);r!==null&&(gu(r,t,n),Xa(r,t,n)),t={cache:pa()},e.payload=t;return}t=t.return}}function Ps(e,t,n){var r=mu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Rs(e)?zs(t,n):(n=li(e,t,n,r),n!==null&&(gu(n,e,r),Bs(n,t,r)))}function Fs(e,t,n){Is(e,t,n,mu())}function Is(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Rs(e))zs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,kr(s,o))return ci(e,t,i,0),K===null&&si(),!1}catch{}if(n=li(e,t,i,r),n!==null)return gu(n,e,r),Bs(n,t,r),!0}return!1}function Ls(e,t,n,r){if(r={lane:2,revertLane:fd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Rs(e)){if(t)throw Error(a(479))}else t=li(e,n,r,2),t!==null&&gu(t,e,2)}function Rs(e){var t=e.alternate;return e===L||t!==null&&t===L}function zs(e,t){bo=yo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ct(e,n)}}var Vs={readContext:oa,use:zo,useCallback:Eo,useContext:Eo,useEffect:Eo,useImperativeHandle:Eo,useLayoutEffect:Eo,useInsertionEffect:Eo,useMemo:Eo,useReducer:Eo,useRef:Eo,useState:Eo,useDebugValue:Eo,useDeferredValue:Eo,useTransition:Eo,useSyncExternalStore:Eo,useId:Eo,useHostTransitionStatus:Eo,useFormState:Eo,useActionState:Eo,useOptimistic:Eo,useMemoCache:Eo,useCacheRefresh:Eo};Vs.useEffectEvent=Eo;var Hs={readContext:oa,use:zo,useCallback:function(e,t){return Fo().memoizedState=[e,t===void 0?null:t],e},useContext:oa,useEffect:fs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),us(4194308,4,vs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return us(4194308,4,e,t)},useInsertionEffect:function(e,t){us(4,2,e,t)},useMemo:function(e,t){var n=Fo();t=t===void 0?null:t;var r=e();if(xo){Ge(!0);try{e()}finally{Ge(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Fo();if(n!==void 0){var i=n(t);if(xo){Ge(!0);try{n(t)}finally{Ge(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ps.bind(null,L,e),[r.memoizedState,e]},useRef:function(e){var t=Fo();return e={current:e},t.memoizedState=e},useState:function(e){e=Zo(e);var t=e.queue,n=Fs.bind(null,L,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:bs,useDeferredValue:function(e,t){return Cs(Fo(),e,t)},useTransition:function(){var e=Zo(!1);return e=Ts.bind(null,L,e.queue,!0,!1),Fo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=L,i=Fo();if(P){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),K===null)throw Error(a(349));J&127||Ko(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,fs(Jo.bind(null,r,o,e),[e]),r.flags|=2048,cs(9,{destroy:void 0},qo.bind(null,r,o,n,t),null),n},useId:function(){var e=Fo(),t=K.identifierPrefix;if(P){var n=Pi,r=Ni;n=(r&~(1<<32-Ke(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=So++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=To++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:As,useFormState:V,useActionState:V,useOptimistic:function(e){var t=Fo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ls.bind(null,L,!0,n),n.dispatch=t,[e,t]},useMemoCache:Bo,useCacheRefresh:function(){return Fo().memoizedState=Ns.bind(null,L)},useEffectEvent:function(e){var t=Fo(),n={impl:e};return t.memoizedState=n,function(){if(G&2)throw Error(a(440));return n.impl.apply(void 0,arguments)}}},Us={readContext:oa,use:zo,useCallback:xs,useContext:oa,useEffect:ps,useImperativeHandle:ys,useInsertionEffect:gs,useLayoutEffect:_s,useMemo:Ss,useReducer:Ho,useRef:ls,useState:function(){return Ho(Vo)},useDebugValue:bs,useDeferredValue:function(e,t){return ws(Io(),R.memoizedState,e,t)},useTransition:function(){var e=Ho(Vo)[0],t=Io().memoizedState;return[typeof e==`boolean`?e:Ro(e),t]},useSyncExternalStore:Go,useId:js,useHostTransitionStatus:As,useFormState:is,useActionState:is,useOptimistic:function(e,t){return z(Io(),R,e,t)},useMemoCache:Bo,useCacheRefresh:Ms};Us.useEffectEvent=hs;var Ws={readContext:oa,use:zo,useCallback:xs,useContext:oa,useEffect:ps,useImperativeHandle:ys,useInsertionEffect:gs,useLayoutEffect:_s,useMemo:Ss,useReducer:Wo,useRef:ls,useState:function(){return Wo(Vo)},useDebugValue:bs,useDeferredValue:function(e,t){var n=Io();return R===null?Cs(n,e,t):ws(n,R.memoizedState,e,t)},useTransition:function(){var e=Wo(Vo)[0],t=Io().memoizedState;return[typeof e==`boolean`?e:Ro(e),t]},useSyncExternalStore:Go,useId:js,useHostTransitionStatus:As,useFormState:ss,useActionState:ss,useOptimistic:function(e,t){var n=Io();return R===null?(n.baseState=e,[e,n.queue.dispatch]):z(n,R,e,t)},useMemoCache:Bo,useCacheRefresh:Ms};Ws.useEffectEvent=hs;function Gs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:m({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ks={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=mu(),i=Ja(r);i.payload=t,n!=null&&(i.callback=n),t=Ya(e,i,r),t!==null&&(gu(t,e,r),Xa(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=mu(),i=Ja(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ya(e,i,r),t!==null&&(gu(t,e,r),Xa(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=mu(),r=Ja(n);r.tag=2,t!=null&&(r.callback=t),t=Ya(e,r,n),t!==null&&(gu(t,e,n),Xa(t,e,n))}};function qs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Ar(n,r)||!Ar(i,a):!0}function Js(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ks.enqueueReplaceState(t,t.state,null)}function Ys(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=m({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Xs(e){ri(e)}function Zs(e){console.error(e)}function Qs(e){ri(e)}function $s(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function ec(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function tc(e,t,n){return n=Ja(n),n.tag=3,n.payload={element:null},n.callback=function(){$s(e,t)},n}function nc(e){return e=Ja(e),e.tag=3,e}function rc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){ec(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){ec(t,n,r),typeof i!=`function`&&(iu===null?iu=new Set([this]):iu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function ic(e,t,n,r,i){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ra(t,n,i,!0),n=so.current,n!==null){switch(n.tag){case 31:case 13:return co===null?Ou():n.alternate===null&&X===0&&(X=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Aa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Ku(e,r,i)),!1;case 22:return n.flags|=65536,r===Aa?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Ku(e,r,i)),!1}throw Error(a(435,n.tag))}return Ku(e,r,i),Ou(),!1}if(P)return t=so.current,t===null?(r!==Ui&&(t=Error(a(423),{cause:r}),Xi(Ti(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=Ti(r,n),i=tc(e.stateNode,r,i),Za(e,i),X!==4&&(X=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==Ui&&(e=Error(a(422),{cause:r}),Xi(Ti(e,n)))),!1;var o=Error(a(520),{cause:r});if(o=Ti(o,n),Zl===null?Zl=[o]:Zl.push(o),X!==4&&(X=2),t===null)return!0;r=Ti(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=tc(n.stateNode,r,e),Za(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(iu===null||!iu.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=nc(i),rc(i,e,n,r),Za(n,i),!1}n=n.return}while(n!==null);return!1}var ac=Error(a(461)),oc=!1;function sc(e,t,n,r){t.child=e===null?Wa(t,null,n,r):Ua(t,e.child,n,r)}function cc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return aa(t),r=Oo(e,t,n,o,a,i),s=Mo(),e!==null&&!oc?(No(e,t,i),Mc(e,t,i)):(P&&s&&Li(t),t.flags|=1,sc(e,t,r,i),t.child)}function lc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!gi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,uc(e,t,a,r,i)):(e=yi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Nc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Ar:n,n(o,r)&&e.ref===t.ref)return Mc(e,t,i)}return t.flags|=1,e=_i(a,r),e.ref=t.ref,e.return=t,t.child=e}function uc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Ar(a,r)&&e.ref===t.ref)if(oc=!1,t.pendingProps=r=a,Nc(e,i))e.flags&131072&&(oc=!0);else return t.lanes=e.lanes,Mc(e,t,i)}return vc(e,t,n,r,i)}function dc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return pc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ta(t,a===null?null:a.cachePool),a===null?ao():io(t,a),fo(t);else return r=t.lanes=536870912,pc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ta(t,null),ao(),po(t)):(Ta(t,a.cachePool),io(t,a),po(t),t.memoizedState=null);return sc(e,t,i,n),t.child}function fc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function pc(e,t,n,r,i){var a=wa();return a=a===null?null:{parent:fa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ta(t,null),ao(),fo(t),e!==null&&ra(e,t,r,!0),t.childLanes=i,null}function mc(e,t){return t=Dc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function hc(e,t,n){return Ua(t,e.child,null,n),e=mc(t,t.pendingProps),e.flags|=2,mo(t),t.memoizedState=null,e}function gc(e,t,n){var r=t.pendingProps,i=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(P){if(r.mode===`hidden`)return e=mc(t,r),t.lanes=536870912,fc(null,e);if(uo(t),(e=N)?(e=af(e,Hi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Mi===null?null:{id:Ni,overflow:Pi},retryLane:536870912,hydrationErrors:null},n=Si(e),n.return=t,t.child=n,Bi=t,N=null)):e=null,e===null)throw Wi(t);return t.lanes=536870912,null}return mc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(uo(t),i)if(t.flags&256)t.flags&=-257,t=hc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(a(558));else if(oc||ra(e,t,n,!1),i=(n&e.childLanes)!==0,oc||i){if(r=K,r!==null&&(s=lt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ui(e,s),gu(r,e,s),ac;Ou(),t=hc(e,t,n)}else e=o.treeContext,N=lf(s.nextSibling),Bi=t,P=!0,Vi=null,Hi=!1,e!==null&&zi(t,e),t=mc(t,r),t.flags|=4096;return t}return e=_i(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function _c(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(a(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function vc(e,t,n,r,i){return aa(t),n=Oo(e,t,n,r,void 0,i),r=Mo(),e!==null&&!oc?(No(e,t,i),Mc(e,t,i)):(P&&r&&Li(t),t.flags|=1,sc(e,t,n,i),t.child)}function yc(e,t,n,r,i,a){return aa(t),t.updateQueue=null,n=Ao(t,r,n,i),ko(e),r=Mo(),e!==null&&!oc?(No(e,t,a),Mc(e,t,a)):(P&&r&&Li(t),t.flags|=1,sc(e,t,n,a),t.child)}function bc(e,t,n,r,i){if(aa(t),t.stateNode===null){var a=pi,o=n.contextType;typeof o==`object`&&o&&(a=oa(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ks,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ka(t),o=n.contextType,a.context=typeof o==`object`&&o?oa(o):pi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Gs(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ks.enqueueReplaceState(a,a.state,null),$a(t,r,a,i),I(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Ys(n,s);a.props=c;var l=a.context,u=n.contextType;o=pi,typeof u==`object`&&u&&(o=oa(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Js(t,a,r,o),Ga=!1;var f=t.memoizedState;a.state=f,$a(t,r,a,i),I(),l=t.memoizedState,s||f!==l||Ga?(typeof d==`function`&&(Gs(t,n,d,r),l=t.memoizedState),(c=Ga||qs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,qa(e,t),o=t.memoizedProps,u=Ys(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=pi,typeof l==`object`&&l&&(c=oa(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Js(t,a,r,c),Ga=!1,f=t.memoizedState,a.state=f,$a(t,r,a,i),I();var p=t.memoizedState;o!==d||f!==p||Ga||e!==null&&e.dependencies!==null&&ia(e.dependencies)?(typeof s==`function`&&(Gs(t,n,s,r),p=t.memoizedState),(u=Ga||qs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ia(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,_c(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ua(t,e.child,null,i),t.child=Ua(t,null,n,i)):sc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Mc(e,t,i),e}function xc(e,t,n,r){return Ji(),t.flags|=256,sc(e,t,n,r),t.child}var Sc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cc(e){return{baseLanes:e,cachePool:Ea()}}function wc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Yl),e}function Tc(e,t,n){var r=t.pendingProps,i=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(ho.current&2)!=0),s&&(i=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(P){if(i?lo(t):po(t),(e=N)?(e=af(e,Hi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Mi===null?null:{id:Ni,overflow:Pi},retryLane:536870912,hydrationErrors:null},n=Si(e),n.return=t,t.child=n,Bi=t,N=null)):e=null,e===null)throw Wi(t);return sf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,i?(po(t),i=t.mode,c=Dc({mode:`hidden`,children:c},i),r=bi(r,i,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=Cc(n),r.childLanes=wc(e,s,n),t.memoizedState=Sc,fc(null,r)):(lo(t),Ec(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(lo(t),t.flags&=-257,t=Oc(e,t,n)):t.memoizedState===null?(po(t),c=r.fallback,i=t.mode,r=Dc({mode:`visible`,children:r.children},i),c=bi(c,i,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ua(t,e.child,null,n),r=t.child,r.memoizedState=Cc(n),r.childLanes=wc(e,s,n),t.memoizedState=Sc,t=fc(null,r)):(po(t),t.child=e.child,t.flags|=128,t=null);else if(lo(t),sf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(a(419)),r.stack=``,r.digest=s,Xi({value:r,source:null,stack:null}),t=Oc(e,t,n)}else if(oc||ra(e,t,n,!1),s=(n&e.childLanes)!==0,oc||s){if(s=K,s!==null&&(r=lt(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ui(e,r),gu(s,e,r),ac;of(c)||Ou(),t=Oc(e,t,n)}else of(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,N=lf(c.nextSibling),Bi=t,P=!0,Vi=null,Hi=!1,e!==null&&zi(t,e),t=Ec(t,r.children),t.flags|=4096);return t}return i?(po(t),c=r.fallback,i=t.mode,l=e.child,u=l.sibling,r=_i(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=bi(c,i,n,null),c.flags|=2):c=_i(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,fc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=Cc(n):(i=c.cachePool,i===null?i=Ea():(l=fa._currentValue,i=i.parent===l?i:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:i}),r.memoizedState=c,r.childLanes=wc(e,s,n),t.memoizedState=Sc,fc(e.child,r)):(lo(t),n=e.child,e=n.sibling,n=_i(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Ec(e,t){return t=Dc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Dc(e,t){return e=hi(22,e,null,t),e.lanes=0,e}function Oc(e,t,n){return Ua(t,e.child,null,n),e=Ec(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function kc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ta(e.return,t,n)}function Ac(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function jc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=ho.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,O(ho,o),sc(e,t,r,n),r=P?ki:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&kc(e,n,t);else if(e.tag===19)kc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&go(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ac(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&go(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ac(t,!0,n,null,a,r);break;case`together`:Ac(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Mc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ra(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(a(153));if(t.child!==null){for(e=t.child,n=_i(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=_i(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Nc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&ia(e))):!0}function Pc(e,t,n){switch(t.tag){case 3:ye(t,t.stateNode.containerInfo),$i(t,fa,e.memoizedState.cache),Ji();break;case 27:case 5:be(t);break;case 4:ye(t,t.stateNode.containerInfo);break;case 10:$i(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,uo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(lo(t),e=Mc(e,t,n),e===null?null:e.sibling):Tc(e,t,n):(lo(t),t.flags|=128,null);lo(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(ra(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return jc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),O(ho,ho.current),r)break;return null;case 22:return t.lanes=0,dc(e,t,n,t.pendingProps);case 24:$i(t,fa,e.memoizedState.cache)}return Mc(e,t,n)}function Fc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)oc=!0;else{if(!Nc(e,n)&&!(t.flags&128))return oc=!1,Pc(e,t,n);oc=!!(e.flags&131072)}else oc=!1,P&&t.flags&1048576&&Ii(t,ki,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Na(t.elementType),t.type=e,typeof e==`function`)gi(e)?(r=Ys(e,r),t.tag=1,t=bc(null,t,e,r,n)):(t.tag=0,t=vc(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===C){t.tag=11,t=cc(null,t,e,r,n);break a}else if(i===ne){t.tag=14,t=lc(null,t,e,r,n);break a}}throw t=le(e)||e,Error(a(306,t,``))}}return t;case 0:return vc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Ys(r,t.pendingProps),bc(e,t,r,i,n);case 3:a:{if(ye(t,t.stateNode.containerInfo),e===null)throw Error(a(387));r=t.pendingProps;var o=t.memoizedState;i=o.element,qa(e,t),$a(t,r,null,n);var s=t.memoizedState;if(r=s.cache,$i(t,fa,r),r!==o.cache&&na(t,[fa],n,!0),I(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=xc(e,t,r,n);break a}else if(r!==i){i=Ti(Error(a(424)),t),Xi(i),t=xc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(N=lf(e.firstChild),Bi=t,P=!0,Vi=null,Hi=!0,n=Wa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ji(),r===i){t=Mc(e,t,n);break a}sc(e,t,r,n)}t=t.child}return t;case 26:return _c(e,t),e===null?(n=Af(t.type,null,t.pendingProps,null))?t.memoizedState=n:P||(n=t.type,e=t.pendingProps,r=Vd(_e.current).createElement(n),r[ht]=t,r[gt]=e,Fd(r,n,e),Ot(r),t.stateNode=r):t.memoizedState=Af(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return be(t),e===null&&P&&(r=t.stateNode=pf(t.type,t.pendingProps,_e.current),Bi=t,Hi=!0,i=N,Qd(t.type)?(uf=i,N=lf(r.firstChild)):N=i),sc(e,t,t.pendingProps.children,n),_c(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&P&&((i=r=N)&&(r=nf(r,t.type,t.pendingProps,Hi),r===null?i=!1:(t.stateNode=r,Bi=t,N=lf(r.firstChild),Hi=!1,i=!0)),i||Wi(t)),be(t),i=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Wd(i,o)?r=null:s!==null&&Wd(i,s)&&(t.flags|=32),t.memoizedState!==null&&(i=Oo(e,t,jo,null,null,n),$f._currentValue=i),_c(e,t),sc(e,t,r,n),t.child;case 6:return e===null&&P&&((e=n=N)&&(n=rf(n,t.pendingProps,Hi),n===null?e=!1:(t.stateNode=n,Bi=t,N=null,e=!0)),e||Wi(t)),null;case 13:return Tc(e,t,n);case 4:return ye(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ua(t,null,r,n):sc(e,t,r,n),t.child;case 11:return cc(e,t,t.type,t.pendingProps,n);case 7:return sc(e,t,t.pendingProps,n),t.child;case 8:return sc(e,t,t.pendingProps.children,n),t.child;case 12:return sc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,$i(t,t.type,r.value),sc(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,aa(t),i=oa(i),r=r(i),t.flags|=1,sc(e,t,r,n),t.child;case 14:return lc(e,t,t.type,t.pendingProps,n);case 15:return uc(e,t,t.type,t.pendingProps,n);case 19:return jc(e,t,n);case 31:return gc(e,t,n);case 22:return dc(e,t,n,t.pendingProps);case 24:return aa(t),r=oa(fa),e===null?(i=wa(),i===null&&(i=K,o=pa(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:r,cache:i},Ka(t),$i(t,fa,i)):((e.lanes&n)!==0&&(qa(e,t),$a(t,null,null,n),I()),i=e.memoizedState,o=t.memoizedState,i.parent===r?(r=o.cache,$i(t,fa,r),r!==i.cache&&na(t,[fa],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),$i(t,fa,r))),sc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(a(156,t.tag))}function Ic(e){e.flags|=4}function Lc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Tu())e.flags|=8192;else throw Pa=Aa,Oa}else e.flags&=-16777217}function Rc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Gf(t))if(Tu())e.flags|=8192;else throw Pa=Aa,Oa}function zc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:rt(),e.lanes|=t,Xl|=t)}function Bc(e,t){if(!P)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function H(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Vc(e,t,n){var r=t.pendingProps;switch(Ri(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return H(t),null;case 1:return H(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ea(fa),k(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(qi(t)?Ic(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Yi())),H(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(Ic(t),o===null?(H(t),Lc(t,i,null,r,n)):(H(t),Rc(t,o))):o?o===e.memoizedState?(H(t),t.flags&=-16777217):(Ic(t),H(t),Rc(t,o)):(e=e.memoizedProps,e!==r&&Ic(t),H(t),Lc(t,i,e,r,n)),null;case 27:if(xe(t),n=_e.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ic(t);else{if(!r){if(t.stateNode===null)throw Error(a(166));return H(t),null}e=he.current,qi(t)?Gi(t,e):(e=pf(i,r,n),t.stateNode=e,Ic(t))}return H(t),null;case 5:if(xe(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ic(t);else{if(!r){if(t.stateNode===null)throw Error(a(166));return H(t),null}if(o=he.current,qi(t))Gi(t,o);else{var s=Vd(_e.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;default:switch(i){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}o[ht]=t,o[gt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Fd(o,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Ic(t)}}return H(t),Lc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ic(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=_e.current,qi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Bi,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[ht]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Nd(e.nodeValue,n)),e||Wi(t,!0)}else e=Vd(e).createTextNode(r),e[ht]=t,t.stateNode=e}return H(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=qi(t),n!==null){if(e===null){if(!r)throw Error(a(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(557));e[ht]=t}else Ji(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;H(t),e=!1}else n=Yi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(mo(t),t):(mo(t),null);if(t.flags&128)throw Error(a(558))}return H(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=qi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));i[ht]=t}else Ji(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;H(t),i=!1}else i=Yi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(mo(t),t):(mo(t),null)}return mo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),zc(t,t.updateQueue),H(t),null);case 4:return k(),e===null&&Cd(t.stateNode.containerInfo),H(t),null;case 10:return ea(t.type),H(t),null;case 19:if(me(ho),r=t.memoizedState,r===null)return H(t),null;if(i=(t.flags&128)!=0,o=r.rendering,o===null)if(i)Bc(r,!1);else{if(X!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=go(e),o!==null){for(t.flags|=128,Bc(r,!1),e=o.updateQueue,t.updateQueue=e,zc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)vi(n,e),n=n.sibling;return O(ho,ho.current&1|2),P&&Fi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&A()>nu&&(t.flags|=128,i=!0,Bc(r,!1),t.lanes=4194304)}else{if(!i)if(e=go(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,zc(t,e),Bc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!P)return H(t),null}else 2*A()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,i=!0,Bc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(H(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=A(),e.sibling=null,n=ho.current,O(ho,i?n&1|2:n&1),P&&Fi(t,r.treeForkCount),e);case 22:case 23:return mo(t),oo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(H(t),t.subtreeFlags&6&&(t.flags|=8192)):H(t),n=t.updateQueue,n!==null&&zc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&me(Ca),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ea(fa),H(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function Hc(e,t){switch(Ri(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ea(fa),k(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xe(t),null;case 31:if(t.memoizedState!==null){if(mo(t),t.alternate===null)throw Error(a(340));Ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(mo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(ho),null;case 4:return k(),null;case 10:return ea(t.type),null;case 22:case 23:return mo(t),oo(),e!==null&&me(Ca),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ea(fa),null;case 25:return null;default:return null}}function Uc(e,t){switch(Ri(t),t.tag){case 3:ea(fa),k();break;case 26:case 27:case 5:xe(t);break;case 4:k();break;case 31:t.memoizedState!==null&&mo(t);break;case 13:mo(t);break;case 19:me(ho);break;case 10:ea(t.type);break;case 22:case 23:mo(t),oo(),e!==null&&me(Ca);break;case 24:ea(fa)}}function Wc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Z(t,t.return,e)}}function Gc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Z(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Z(t,t.return,e)}}function Kc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{to(t,n)}catch(t){Z(e,e.return,t)}}}function qc(e,t,n){n.props=Ys(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(e,t,n)}}function Jc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Z(e,t,n)}}function Yc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Z(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Z(e,t,n)}else n.current=null}function Xc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Z(e,e.return,t)}}function Zc(e,t,n){try{var r=e.stateNode;Id(r,e.type,n,t),r[gt]=t}catch(t){Z(e,e.return,t)}}function Qc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qd(e.type)||e.tag===4}function $c(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Qc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Qd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function el(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ln));else if(r!==4&&(r===27&&Qd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(el(e,t,n),e=e.sibling;e!==null;)el(e,t,n),e=e.sibling}function tl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Qd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(tl(e,t,n),e=e.sibling;e!==null;)tl(e,t,n),e=e.sibling}function nl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Fd(t,r,n),t[ht]=e,t[gt]=n}catch(t){Z(e,e.return,t)}}var rl=!1,U=!1,il=!1,al=typeof WeakSet==`function`?WeakSet:Set,ol=null;function sl(e,t){if(e=e.containerInfo,zd=cp,e=Pr(e),Fr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Bd={focusedElem:e,selectionRange:n},cp=!1,ol=t;ol!==null;)if(t=ol,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,ol=e;else for(;ol!==null;){switch(t=ol,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Ys(n.type,i);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Z(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)tf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:tf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(a(163))}if(e=t.sibling,e!==null){e.return=t.return,ol=e;break}ol=t.return}}function cl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Sl(e,n),r&4&&Wc(5,n);break;case 1:if(Sl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Z(n,n.return,e)}else{var i=Ys(n.type,t.memoizedProps);t=t.memoizedState;
vendor: 5,367 bytes, line 9
9try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Z(n,n.return,e)}}r&64&&Kc(n),r&512&&Jc(n,n.return);break;case 3:if(Sl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{to(e,t)}catch(e){Z(n,n.return,e)}}break;case 27:t===null&&r&4&&nl(n);case 26:case 5:Sl(e,n),t===null&&r&4&&Xc(n),r&512&&Jc(n,n.return);break;case 12:Sl(e,n);break;case 31:Sl(e,n),r&4&&pl(e,n);break;case 13:Sl(e,n),r&4&&ml(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Yu.bind(null,n),cf(e,n))));break;case 22:if(r=n.memoizedState!==null||rl,!r){t=t!==null&&t.memoizedState!==null||U,i=rl;var a=U;rl=r,(U=t)&&!a?wl(e,n,(n.subtreeFlags&8772)!=0):Sl(e,n),rl=i,U=a}break;case 30:break;default:Sl(e,n)}}function ll(e){var t=e.alternate;t!==null&&(e.alternate=null,ll(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ct(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var W=null,ul=!1;function dl(e,t,n){for(n=n.child;n!==null;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(We&&typeof We.onCommitFiberUnmount==`function`)try{We.onCommitFiberUnmount(Ue,n)}catch{}switch(n.tag){case 26:U||Yc(n,t),dl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:U||Yc(n,t);var r=W,i=ul;Qd(n.type)&&(W=n.stateNode,ul=!1),dl(e,t,n),mf(n.stateNode),W=r,ul=i;break;case 5:U||Yc(n,t);case 6:if(r=W,i=ul,W=null,dl(e,t,n),W=r,ul=i,W!==null)if(ul)try{(W.nodeType===9?W.body:W.nodeName===`HTML`?W.ownerDocument.body:W).removeChild(n.stateNode)}catch(e){Z(n,t,e)}else try{W.removeChild(n.stateNode)}catch(e){Z(n,t,e)}break;case 18:W!==null&&(ul?(e=W,$d(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Pp(e)):$d(W,n.stateNode));break;case 4:r=W,i=ul,W=n.stateNode.containerInfo,ul=!0,dl(e,t,n),W=r,ul=i;break;case 0:case 11:case 14:case 15:Gc(2,n,t),U||Gc(4,n,t),dl(e,t,n);break;case 1:U||(Yc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&qc(n,t,r)),dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:U=(r=U)||n.memoizedState!==null,dl(e,t,n),U=r;break;default:dl(e,t,n)}}function pl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Pp(e)}catch(e){Z(t,t.return,e)}}}function ml(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Pp(e)}catch(e){Z(t,t.return,e)}}function hl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new al),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new al),t;default:throw Error(a(435,e.tag))}}function gl(e,t){var n=hl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Xu.bind(null,e,t);t.then(r,r)}})}function _l(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(Qd(c.type)){W=c.stateNode,ul=!1;break a}break;case 5:W=c.stateNode,ul=!1;break a;case 3:case 4:W=c.stateNode.containerInfo,ul=!0;break a}c=c.return}if(W===null)throw Error(a(160));fl(o,s,i),W=null,ul=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)yl(t,e),t=t.sibling}var vl=null;function yl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:_l(t,e),bl(e),r&4&&(Gc(3,e,e.return),Wc(3,e),Gc(5,e,e.return));break;case 1:_l(t,e),bl(e),r&512&&(U||n===null||Yc(n,n.return)),r&64&&rl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=vl;if(_l(t,e),bl(e),r&512&&(U||n===null||Yc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;b:switch(r){case`title`:o=i.getElementsByTagName(`title`)[0],(!o||o[St]||o[ht]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=i.createElement(r),i.head.insertBefore(o,i.querySelector(`head > title`))),Fd(o,r,n),o[ht]=e,Ot(o),r=o;break a;case`link`:var s=Hf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=i.createElement(r),Fd(o,r,n),i.head.appendChild(o);break;case`meta`:if(s=Hf(`meta`,`content`,i).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=i.createElement(r),Fd(o,r,n),i.head.appendChild(o);break;default:throw Error(a(468,r))}o[ht]=e,Ot(o),r=o}e.stateNode=r}else Uf(i,e.type,e.stateNode);else e.stateNode=Lf(i,r,e.memoizedProps);
vendor: 40,439 bytes, lines 9-10
9else o===r?r===null&&e.stateNode!==null&&Zc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Uf(i,e.type,e.stateNode):Lf(i,r,e.memoizedProps))}break;case 27:_l(t,e),bl(e),r&512&&(U||n===null||Yc(n,n.return)),n!==null&&r&4&&Zc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(_l(t,e),bl(e),r&512&&(U||n===null||Yc(n,n.return)),e.flags&32){i=e.stateNode;try{en(i,``)}catch(t){Z(e,e.return,t)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,Zc(e,i,n===null?i:n.memoizedProps)),r&1024&&(il=!0);break;case 6:if(_l(t,e),bl(e),r&4){if(e.stateNode===null)throw Error(a(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Z(e,e.return,t)}}break;case 3:if(Vf=null,i=vl,vl=_f(t.containerInfo),_l(t,e),vl=i,bl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Pp(t.containerInfo)}catch(t){Z(e,e.return,t)}il&&(il=!1,xl(e));break;case 4:r=vl,vl=_f(e.stateNode.containerInfo),_l(t,e),bl(e),vl=r;break;case 12:_l(t,e),bl(e);break;case 31:_l(t,e),bl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 13:_l(t,e),bl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(eu=A()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 22:i=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=rl,d=U;if(rl=u||i,U=d||l,_l(t,e),U=d,rl=u,bl(e),r&8192)a:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||l||rl||U||Cl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,i)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Z(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=i?``:l.memoizedProps}catch(e){Z(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;i?ef(m,!0):ef(l.stateNode,!1)}catch(e){Z(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,gl(e,n))));break;case 19:_l(t,e),bl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 30:break;case 21:break;default:_l(t,e),bl(e)}}function bl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Qc(r)){n=r;break}r=r.return}if(n==null)throw Error(a(160));switch(n.tag){case 27:var i=n.stateNode;tl(e,$c(e),i);break;case 5:var o=n.stateNode;n.flags&32&&(en(o,``),n.flags&=-33),tl(e,$c(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;el(e,$c(e),s);break;default:throw Error(a(161))}}catch(t){Z(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Sl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)cl(e,t.alternate,t),t=t.sibling}function Cl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Gc(4,t,t.return),Cl(t);break;case 1:Yc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&qc(t,t.return,n),Cl(t);break;case 27:mf(t.stateNode);case 26:case 5:Yc(t,t.return),Cl(t);break;case 22:t.memoizedState===null&&Cl(t);break;case 30:Cl(t);break;default:Cl(t)}e=e.sibling}}function wl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:wl(i,a,n),Wc(4,a);break;case 1:if(wl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Z(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)eo(c[i],s)}catch(e){Z(r,r.return,e)}}n&&o&64&&Kc(a),Jc(a,a.return);break;case 27:nl(a);case 26:case 5:wl(i,a,n),n&&r===null&&o&4&&Xc(a),Jc(a,a.return);break;case 12:wl(i,a,n);break;case 31:wl(i,a,n),n&&o&4&&pl(i,a);break;case 13:wl(i,a,n),n&&o&4&&ml(i,a);break;case 22:a.memoizedState===null&&wl(i,a,n),Jc(a,a.return);break;case 30:break;default:wl(i,a,n)}t=t.sibling}}function Tl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ma(n))}function El(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ma(e))}function Dl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ol(e,t,n,r),t=t.sibling}function Ol(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Dl(e,t,n,r),i&2048&&Wc(9,t);break;case 1:Dl(e,t,n,r);break;case 3:Dl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ma(e)));break;case 12:if(i&2048){Dl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Z(t,t.return,e)}}else Dl(e,t,n,r);break;case 31:Dl(e,t,n,r);break;case 13:Dl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Dl(e,t,n,r):(a._visibility|=2,kl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Dl(e,t,n,r):Al(e,t),i&2048&&Tl(o,t);break;case 24:Dl(e,t,n,r),i&2048&&El(t.alternate,t);break;default:Dl(e,t,n,r)}}function kl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:kl(a,o,s,c,i),Wc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,kl(a,o,s,c,i)):u._visibility&2?kl(a,o,s,c,i):Al(a,o),i&&l&2048&&Tl(o.alternate,o);break;case 24:kl(a,o,s,c,i),i&&l&2048&&El(o.alternate,o);break;default:kl(a,o,s,c,i)}t=t.sibling}}function Al(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Al(n,r),i&2048&&Tl(r.alternate,r);break;case 24:Al(n,r),i&2048&&El(r.alternate,r);break;default:Al(n,r)}t=t.sibling}}var jl=8192;function Ml(e,t,n){if(e.subtreeFlags&jl)for(e=e.child;e!==null;)Nl(e,t,n),e=e.sibling}function Nl(e,t,n){switch(e.tag){case 26:Ml(e,t,n),e.flags&jl&&e.memoizedState!==null&&Kf(n,vl,e.memoizedState,e.memoizedProps);break;case 5:Ml(e,t,n);break;case 3:case 4:var r=vl;vl=_f(e.stateNode.containerInfo),Ml(e,t,n),vl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=jl,jl=16777216,Ml(e,t,n),jl=r):Ml(e,t,n));break;default:Ml(e,t,n)}}function Pl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Fl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ol=r,Rl(r,e)}Pl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Il(e),e=e.sibling}function Il(e){switch(e.tag){case 0:case 11:case 15:Fl(e),e.flags&2048&&Gc(9,e,e.return);break;case 3:Fl(e);break;case 12:Fl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ll(e)):Fl(e);break;default:Fl(e)}}function Ll(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ol=r,Rl(r,e)}Pl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Gc(8,t,t.return),Ll(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ll(t));break;default:Ll(t)}e=e.sibling}}function Rl(e,t){for(;ol!==null;){var n=ol;switch(n.tag){case 0:case 11:case 15:Gc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ma(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,ol=r;else a:for(n=e;ol!==null;){r=ol;var i=r.sibling,a=r.return;if(ll(r),r===n){ol=null;break a}if(i!==null){i.return=a,ol=i;break a}ol=a}}}var zl={getCacheForType:function(e){var t=oa(fa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return oa(fa).controller.signal}},Bl=typeof WeakMap==`function`?WeakMap:Map,G=0,K=null,q=null,J=0,Y=0,Vl=null,Hl=!1,Ul=!1,Wl=!1,Gl=0,X=0,Kl=0,ql=0,Jl=0,Yl=0,Xl=0,Zl=null,Ql=null,$l=!1,eu=0,tu=0,nu=1/0,ru=null,iu=null,au=0,ou=null,su=null,cu=0,lu=0,uu=null,du=null,fu=0,pu=null;function mu(){return G&2&&J!==0?J&-J:w.T===null?ft():fd()}function hu(){if(Yl===0)if(!(J&536870912)||P){var e=Ze;Ze<<=1,!(Ze&3932160)&&(Ze=262144),Yl=e}else Yl=536870912;return e=so.current,e!==null&&(e.flags|=32),Yl}function gu(e,t,n){(e===K&&(Y===2||Y===9)||e.cancelPendingCommit!==null)&&(Cu(e,0),bu(e,J,Yl,!1)),at(e,n),(!(G&2)||e!==K)&&(e===K&&(!(G&2)&&(ql|=n),X===4&&bu(e,J,Yl,!1)),id(e))}function _u(e,t,n){if(G&6)throw Error(a(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||tt(e,t),i=r?ju(e,t):ku(e,t,!0),o=r;do{if(i===0){Ul&&!r&&bu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!yu(n)){i=ku(e,t,!1),o=!1;continue}if(i===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;i=Zl;var l=c.current.memoizedState.isDehydrated;if(l&&(Cu(c,s).flags|=256),s=ku(c,s,!1),s!==2){if(Wl&&!l){c.errorRecoveryDisabledLanes|=o,ql|=o,i=4;break a}o=Ql,Ql=i,o!==null&&(Ql===null?Ql=o:Ql.push.apply(Ql,o))}i=s}if(o=!1,i!==2)continue}}if(i===1){Cu(e,0),bu(e,t,0,!0);break}a:{switch(r=e,o=i,o){case 0:case 1:throw Error(a(345));case 4:if((t&4194048)!==t)break;case 6:bu(r,t,Yl,!Hl);break a;case 2:Ql=null;break;case 3:case 5:break;default:throw Error(a(329))}if((t&62914560)===t&&(i=eu+300-A(),10<i)){if(bu(r,t,Yl,!Hl),et(r,0,!0)!==0)break a;cu=t,r.timeoutHandle=qd(vu.bind(null,r,n,Ql,ru,$l,t,Yl,ql,Xl,Hl,o,`Throttled`,-0,0),i);break a}vu(r,n,Ql,ru,$l,t,Yl,ql,Xl,Hl,o,null,-0,0)}}break}while(1);id(e)}function vu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ln},Nl(t,a,d);var m=(a&62914560)===a?eu-A():(a&4194048)===a?tu-A():0;if(m=Jf(d,m),m!==null){cu=a,e.cancelPendingCommit=m(Ru.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),bu(e,a,o,!l);return}}Ru(e,t,a,n,r,i,o,s,c)}function yu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!kr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function bu(e,t,n,r){t&=~Jl,t&=~ql,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ke(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&st(e,n,t)}function xu(){return G&6?!0:(ad(0,!1),!1)}function Su(){if(q!==null){if(Y===0)var e=q.return;else e=q,F=Qi=null,Po(e),La=null,Ra=0,e=q;for(;e!==null;)Uc(e.alternate,e),e=e.return;q=null}}function Cu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Jd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),cu=0,Su(),K=e,q=n=_i(e.current,null),J=t,Y=0,Vl=null,Hl=!1,Ul=tt(e,t),Wl=!1,Xl=Yl=Jl=ql=Kl=X=0,Ql=Zl=null,$l=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ke(r),a=1<<i;t|=e[i],r&=~a}return Gl=t,si(),n}function wu(e,t){L=null,w.H=Vs,t===Da||t===ka?(t=Fa(),Y=3):t===Oa?(t=Fa(),Y=4):Y=t===ac?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Vl=t,q===null&&(X=1,$s(e,Ti(t,e.current)))}function Tu(){var e=so.current;return e===null?!0:(J&4194048)===J?co===null:(J&62914560)===J||J&536870912?e===co:!1}function Eu(){var e=w.H;return w.H=Vs,e===null?Vs:e}function Du(){var e=w.A;return w.A=zl,e}function Ou(){X=4,Hl||(J&4194048)!==J&&so.current!==null||(Ul=!0),!(Kl&134217727)&&!(ql&134217727)||K===null||bu(K,J,Yl,!1)}function ku(e,t,n){var r=G;G|=2;var i=Eu(),a=Du();(K!==e||J!==t)&&(ru=null,Cu(e,t)),t=!1;var o=X;a:do try{if(Y!==0&&q!==null){var s=q,c=Vl;switch(Y){case 8:Su(),o=6;break a;case 3:case 2:case 9:case 6:so.current===null&&(t=!0);var l=Y;if(Y=0,Vl=null,Fu(e,s,c,l),n&&Ul){o=0;break a}break;default:l=Y,Y=0,Vl=null,Fu(e,s,c,l)}}Au(),o=X;break}catch(t){wu(e,t)}while(1);return t&&e.shellSuspendCounter++,F=Qi=null,G=r,w.H=i,w.A=a,q===null&&(K=null,J=0,si()),o}function Au(){for(;q!==null;)Nu(q)}function ju(e,t){var n=G;G|=2;var r=Eu(),i=Du();K!==e||J!==t?(ru=null,nu=A()+500,Cu(e,t)):Ul=tt(e,t);a:do try{if(Y!==0&&q!==null){t=q;var o=Vl;b:switch(Y){case 1:Y=0,Vl=null,Fu(e,t,o,1);break;case 2:case 9:if(ja(o)){Y=0,Vl=null,Pu(t);break}t=function(){Y!==2&&Y!==9||K!==e||(Y=7),id(e)},o.then(t,t);break a;case 3:Y=7;break a;case 4:Y=5;break a;case 7:ja(o)?(Y=0,Vl=null,Pu(t)):(Y=0,Vl=null,Fu(e,t,o,7));break;case 5:var s=null;switch(q.tag){case 26:s=q.memoizedState;case 5:case 27:var c=q;if(s?Gf(s):c.stateNode.complete){Y=0,Vl=null;var l=c.sibling;if(l!==null)q=l;else{var u=c.return;u===null?q=null:(q=u,Iu(u))}break b}}Y=0,Vl=null,Fu(e,t,o,5);break;case 6:Y=0,Vl=null,Fu(e,t,o,6);break;case 8:Su(),X=6;break a;default:throw Error(a(462))}}Mu();break}catch(t){wu(e,t)}while(1);return F=Qi=null,w.H=r,w.A=i,G=n,q===null?(K=null,J=0,si(),X):0}function Mu(){for(;q!==null&&!Me();)Nu(q)}function Nu(e){var t=Fc(e.alternate,e,Gl);e.memoizedProps=e.pendingProps,t===null?Iu(e):q=t}function Pu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=yc(n,t,t.pendingProps,t.type,void 0,J);break;case 11:t=yc(n,t,t.pendingProps,t.type.render,t.ref,J);break;case 5:Po(t);default:Uc(n,t),t=q=vi(t,Gl),t=Fc(n,t,Gl)}e.memoizedProps=e.pendingProps,t===null?Iu(e):q=t}function Fu(e,t,n,r){F=Qi=null,Po(t),La=null,Ra=0;var i=t.return;try{if(ic(e,i,t,n,J)){X=1,$s(e,Ti(n,e.current)),q=null;return}}catch(t){if(i!==null)throw q=i,t;X=1,$s(e,Ti(n,e.current)),q=null;return}t.flags&32768?(P||r===1?e=!0:Ul||J&536870912?e=!1:(Hl=e=!0,(r===2||r===9||r===3||r===6)&&(r=so.current,r!==null&&r.tag===13&&(r.flags|=16384))),Lu(t,e)):Iu(t)}function Iu(e){var t=e;do{if(t.flags&32768){Lu(t,Hl);return}e=t.return;var n=Vc(t.alternate,t,Gl);if(n!==null){q=n;return}if(t=t.sibling,t!==null){q=t;return}q=t=e}while(t!==null);X===0&&(X=5)}function Lu(e,t){do{var n=Hc(e.alternate,e);if(n!==null){n.flags&=32767,q=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){q=e;return}q=e=n}while(e!==null);X=6,q=null}function Ru(e,t,n,r,i,o,s,c,l){e.cancelPendingCommit=null;do Uu();while(au!==0);if(G&6)throw Error(a(327));if(t!==null){if(t===e.current)throw Error(a(177));if(o=t.lanes|t.childLanes,o|=oi,ot(e,n,o,s,c,l),e===K&&(q=K=null,J=0),su=t,ou=e,cu=n,lu=o,uu=i,du=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Zu(Le,function(){return Wu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=w.T,w.T=null,i=E.p,E.p=2,s=G,G|=4;try{sl(e,t,n)}finally{G=s,E.p=i,w.T=r}}au=1,zu(),Bu(),Vu()}}function zu(){if(au===1){au=0;var e=ou,t=su,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=w.T,w.T=null;var r=E.p;E.p=2;var i=G;G|=4;try{yl(t,e);var a=Bd,o=Pr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Nr(s.ownerDocument.documentElement,s)){if(c!==null&&Fr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Mr(s,h),v=Mr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}cp=!!zd,Bd=zd=null}finally{G=i,E.p=r,w.T=n}}e.current=t,au=2}}function Bu(){if(au===2){au=0;var e=ou,t=su,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=w.T,w.T=null;var r=E.p;E.p=2;var i=G;G|=4;try{cl(e,t.alternate,t)}finally{G=i,E.p=r,w.T=n}}au=3}}function Vu(){if(au===4||au===3){au=0,Ne();var e=ou,t=su,n=cu,r=du;t.subtreeFlags&10256||t.flags&10256?au=5:(au=0,su=ou=null,Hu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(iu=null),dt(n),t=t.stateNode,We&&typeof We.onCommitFiberRoot==`function`)try{We.onCommitFiberRoot(Ue,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=w.T,i=E.p,E.p=2,w.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{w.T=t,E.p=i}}cu&3&&Uu(),id(e),i=e.pendingLanes,n&261930&&i&42?e===pu?fu++:(fu=0,pu=e):fu=0,ad(0,!1)}}function Hu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ma(t)))}function Uu(){return zu(),Bu(),Vu(),Wu()}function Wu(){if(au!==5)return!1;var e=ou,t=lu;lu=0;var n=dt(cu),r=w.T,i=E.p;try{E.p=32>n?32:n,w.T=null,n=uu,uu=null;var o=ou,s=cu;if(au=0,su=ou=null,cu=0,G&6)throw Error(a(331));var c=G;if(G|=4,Il(o.current),Ol(o,o.current,s,n),G=c,ad(0,!1),We&&typeof We.onPostCommitFiberRoot==`function`)try{We.onPostCommitFiberRoot(Ue,o)}catch{}return!0}finally{E.p=i,w.T=r,Hu(e,t)}}function Gu(e,t,n){t=Ti(n,t),t=tc(e.stateNode,t,2),e=Ya(e,t,2),e!==null&&(at(e,2),id(e))}function Z(e,t,n){if(e.tag===3)Gu(e,e,n);else for(;t!==null;){if(t.tag===3){Gu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=Ti(n,e),n=nc(2),r=Ya(t,n,2),r!==null&&(rc(n,r,t,e),at(r,2),id(r));break}}t=t.return}}function Ku(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Bl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Wl=!0,i.add(n),e=qu.bind(null,e,t,n),t.then(e,e))}function qu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,K===e&&(J&n)===n&&(X===4||X===3&&(J&62914560)===J&&300>A()-eu?!(G&2)&&Cu(e,0):Jl|=n,Xl===J&&(Xl=0)),id(e)}function Ju(e,t){t===0&&(t=rt()),e=ui(e,t),e!==null&&(at(e,t),id(e))}function Yu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ju(e,n)}function Xu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}r!==null&&r.delete(t),Ju(e,n)}function Zu(e,t){return Ae(e,t)}var Qu=null,$u=null,ed=!1,td=!1,nd=!1,rd=0;function id(e){e!==$u&&e.next===null&&($u===null?Qu=$u=e:$u=$u.next=e),td=!0,ed||(ed=!0,dd())}function ad(e,t){if(!nd&&td){nd=!0;do for(var n=!1,r=Qu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ke(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ud(r,a))}else a=J,a=et(r,r===K?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||tt(r,a)||(n=!0,ud(r,a));r=r.next}while(n);nd=!1}}function od(){sd()}function sd(){td=ed=!1;var e=0;rd!==0&&Kd()&&(e=rd);for(var t=A(),n=null,r=Qu;r!==null;){var i=r.next,a=cd(r,t);a===0?(r.next=null,n===null?Qu=i:n.next=i,i===null&&($u=n)):(n=r,(e!==0||a&3)&&(td=!0)),r=i}au!==0&&au!==5||ad(e,!1),rd!==0&&(rd=0)}function cd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ke(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=nt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=K,n=J,n=et(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Y===2||Y===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&je(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||tt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&je(r),dt(n)){case 2:case 8:n=Ie;break;case 32:n=Le;break;case 268435456:n=ze;break;default:n=Le}return r=ld.bind(null,e),n=Ae(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&je(r),e.callbackPriority=2,e.callbackNode=null,2}function ld(e,t){if(au!==0&&au!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Uu()&&e.callbackNode!==n)return null;var r=J;return r=et(e,e===K?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(_u(e,r,t),cd(e,A()),e.callbackNode!=null&&e.callbackNode===n?ld.bind(null,e):null)}function ud(e,t){if(Uu())return null;_u(e,t,!0)}function dd(){Xd(function(){G&6?Ae(Fe,od):sd()})}function fd(){if(rd===0){var e=_a;e===0&&(e=Xe,Xe<<=1,!(Xe&261888)&&(Xe=256)),rd=e}return rd}function pd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:cn(``+e)}function md(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function hd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=pd((i[gt]||null).action),o=r.submitter;o&&(t=(t=o[gt]||null)?pd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new An(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(rd!==0){var e=o?md(i,o):new FormData(i);Ds(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?md(i,o):new FormData(i),Ds(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var gd=0;gd<ti.length;gd++){var _d=ti[gd];ni(_d.toLowerCase(),`on`+(_d[0].toUpperCase()+_d.slice(1)))}ni(qr,`onAnimationEnd`),ni(Jr,`onAnimationIteration`),ni(Yr,`onAnimationStart`),ni(`dblclick`,`onDoubleClick`),ni(`focusin`,`onFocus`),ni(`focusout`,`onBlur`),ni(Xr,`onTransitionRun`),ni(Zr,`onTransitionStart`),ni(Qr,`onTransitionCancel`),ni($r,`onTransitionEnd`),Mt(`onMouseEnter`,[`mouseout`,`mouseover`]),Mt(`onMouseLeave`,[`mouseout`,`mouseover`]),Mt(`onPointerEnter`,[`pointerout`,`pointerover`]),Mt(`onPointerLeave`,[`pointerout`,`pointerover`]),jt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),jt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),jt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),jt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),jt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),jt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var vd=`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(` `),yd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(vd));function bd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ri(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ri(e)}i.currentTarget=null,a=c}}}}function Q(e,t){var n=t[vt];n===void 0&&(n=t[vt]=new Set);var r=e+`__bubble`;n.has(r)||(wd(t,e,2,!1),n.add(r))}function xd(e,t,n){var r=0;t&&(r|=4),wd(n,e,r,t)}var Sd=`_reactListening`+Math.random().toString(36).slice(2);function Cd(e){if(!e[Sd]){e[Sd]=!0,kt.forEach(function(t){t!==`selectionchange`&&(yd.has(t)||xd(t,!1,e),xd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Sd]||(t[Sd]=!0,xd(`selectionchange`,!1,t))}}function wd(e,t,n,r){switch(hp(t)){case 2:var i=lp;break;case 8:i=up;break;default:i=dp}n=i.bind(null,t,n,e),i=void 0,!yn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Td(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=wt(s),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue a}s=s.parentNode}}r=r.return}gn(function(){var r=a,i=dn(n),o=[];a:{var s=ei.get(e);if(s!==void 0){var l=An,u=e;switch(e){case`keypress`:if(Tn(n)===0)break a;case`keydown`:case`keyup`:l=Kn;break;case`focusin`:u=`focus`,l=zn;break;case`focusout`:u=`blur`,l=zn;break;case`beforeblur`:case`afterblur`:l=zn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Ln;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Rn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Jn;break;case qr:case Jr:case Yr:l=Bn;break;case $r:l=Yn;break;case`scroll`:case`scrollend`:l=Mn;break;case`wheel`:l=Xn;break;case`copy`:case`cut`:case`paste`:l=Vn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=qn;break;case`toggle`:case`beforetoggle`:l=Zn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?s===null?null:s+`Capture`:s;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=_n(m,p),g!=null&&d.push(Ed(m,g,h))),f)break;m=m.return}0<d.length&&(s=new l(s,u,null,n,i),o.push({event:s,listeners:d}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,s&&n!==un&&(u=n.relatedTarget||n.fromElement)&&(wt(u)||u[_t]))break a;if((l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?wt(u):null,u!==null&&(f=c(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Ln,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=qn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?s:Et(l),h=u==null?s:Et(u),s=new d(g,m+`leave`,l,n,i),s.target=f,s.relatedTarget=h,g=null,wt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Od,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&kd(o,s,l,d,!1),u!==null&&f!==null&&kd(o,f,u,d,!0)}}a:{if(s=r?Et(r):window,l=s.nodeName&&s.nodeName.toLowerCase(),l===`select`||l===`input`&&s.type===`file`)var v=_r;else if(dr(s))if(vr)v=Dr;else{v=Tr;var y=wr}else l=s.nodeName,!l||l.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&an(r.elementType)&&(v=_r):v=Er;if(v&&=v(e,r)){fr(o,v,n,i);break a}y&&y(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&Xt(s,`number`,s.value)}switch(y=r?Et(r):window,e){case`focusin`:(dr(y)||y.contentEditable===`true`)&&(Lr=y,Rr=r,zr=null);break;case`focusout`:zr=Rr=Lr=null;break;case`mousedown`:Br=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Br=!1,Vr(o,n,i);break;case`selectionchange`:if(Ir)break;case`keydown`:case`keyup`:Vr(o,n,i)}var b;if($n)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else sr?ar(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(nr&&n.locale!==`ko`&&(sr||x!==`onCompositionStart`?x===`onCompositionEnd`&&sr&&(b=wn()):(xn=i,Sn=`value`in xn?xn.value:xn.textContent,sr=!0)),y=Dd(r,x),0<y.length&&(x=new j(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=or(n),b!==null&&(x.data=b)))),(b=tr?cr(e,n):lr(e,n))&&(x=Dd(r,`onBeforeInput`),0<x.length&&(y=new j(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),hd(o,e,r,n,i)}bd(o,t)})}function Ed(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Dd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=_n(e,n),i!=null&&r.unshift(Ed(e,i,a)),i=_n(e,t),i!=null&&r.push(Ed(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Od(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function kd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=_n(n,a),l!=null&&o.unshift(Ed(n,l,c))):i||(l=_n(n,a),l!=null&&o.push(Ed(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Ad=/\r\n?/g,jd=/\u0000|\uFFFD/g;function Md(e){return(typeof e==`string`?e:``+e).replace(Ad,` 10`).replace(jd,``)}function Nd(e,t){return t=Md(t),Md(e)===t}function $(e,t,n,r,i,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||en(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&en(e,``+r);break;case`className`:Rt(e,`class`,r);break;case`tabIndex`:Rt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Rt(e,n,r);break;case`style`:rn(e,r,o);break;case`data`:if(t!==`object`){Rt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=cn(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`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 o==`function`&&(n===`formAction`?(t!==`input`&&$(e,t,`name`,i.name,i,null),$(e,t,`formEncType`,i.formEncType,i,null),$(e,t,`formMethod`,i.formMethod,i,null),$(e,t,`formTarget`,i.formTarget,i,null)):($(e,t,`encType`,i.encType,i,null),$(e,t,`method`,i.method,i,null),$(e,t,`target`,i.target,i,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=cn(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=ln);break;case`onScroll`:r!=null&&Q(`scroll`,e);break;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(a(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(a(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=cn(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);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`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Q(`beforetoggle`,e),Q(`toggle`,e),Lt(e,`popover`,r);break;case`xlinkActuate`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:zt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:zt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:zt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Lt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=on.get(n)||n,Lt(e,n,r))}}function Pd(e,t,n,r,i,o){switch(n){case`style`:rn(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(a(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(a(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?en(e,r):(typeof r==`number`||typeof r==`bigint`)&&en(e,``+r);break;case`onScroll`:r!=null&&Q(`scroll`,e);break;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=ln);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!At.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),o=e[gt]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,i),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Lt(e,n,r)}}}function Fd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Q(`error`,e),Q(`load`,e);var r=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(a(137,t));default:$(e,t,o,s,n,null)}}i&&$(e,t,`srcSet`,n.srcSet,n,null),r&&$(e,t,`src`,n.src,n,null);return;case`input`:Q(`invalid`,e);var c=o=s=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:i=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(a(137,t));break;default:$(e,t,r,d,n,null)}}Yt(e,o,c,l,u,s,i,!1);return;case`select`:for(i in Q(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:$(e,t,i,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Zt(e,!!r,n,!0):Zt(e,!!r,t,!1);return;case`textarea`:for(s in Q(`invalid`,e),o=i=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:i=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(a(91));break;default:$(e,t,s,c,n,null)}$t(e,r,i,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:$(e,t,l,r,n,null)}return;case`dialog`:Q(`beforetoggle`,e),Q(`toggle`,e),Q(`cancel`,e),Q(`close`,e);break;case`iframe`:case`object`:Q(`load`,e);break;case`video`:case`audio`:for(r=0;r<vd.length;r++)Q(vd[r],e);break;case`image`:Q(`error`,e),Q(`load`,e);break;case`details`:Q(`toggle`,e);break;case`embed`:case`source`:case`link`:Q(`error`,e),Q(`load`,e);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 n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(a(137,t));default:$(e,t,u,r,n,null)}return;default:if(an(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Pd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&$(e,t,c,r,n,null))}function Id(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||$(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:i=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(a(137,t));break;default:m!==f&&$(e,t,p,m,r,f)}}Jt(e,s,c,l,u,d,o,i);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||$(e,t,o,null,r,l)}for(i in r)if(o=r[i],l=n[i],r.hasOwnProperty(i)&&(o!=null||l!=null))switch(i){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&$(e,t,i,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Zt(e,!!n,n?[]:``,!1):Zt(e,!!n,t,!0)):Zt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(i=n[c],n.hasOwnProperty(c)&&i!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:$(e,t,c,null,r,i)}for(s in r)if(i=r[s],o=n[s],r.hasOwnProperty(s)&&(i!=null||o!=null))switch(s){case`value`:p=i;break;case`defaultValue`:m=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error(a(91));break;default:i!==o&&$(e,t,s,i,r,o)}Qt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:$(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:$(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&$(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(a(137,t));break;default:$(e,t,u,p,r,m)}return;default:if(an(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Pd(e,t,_,void 0,r,p);
vendor: 4,461 bytes, line 10
10for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Pd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&$(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||$(e,t,f,p,r,m)}function Ld(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Rd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Ld(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Ld(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var zd=null,Bd=null;function Vd(e){return e.nodeType===9?e:e.ownerDocument}function Hd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Ud(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Wd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Gd=null;function Kd(){var e=window.event;return e&&e.type===`popstate`?e===Gd?!1:(Gd=e,!0):(Gd=null,!1)}var qd=typeof setTimeout==`function`?setTimeout:void 0,Jd=typeof clearTimeout==`function`?clearTimeout:void 0,Yd=typeof Promise==`function`?Promise:void 0,Xd=typeof queueMicrotask==`function`?queueMicrotask:Yd===void 0?qd:function(e){return Yd.resolve(null).then(e).catch(Zd)};function Zd(e){setTimeout(function(){throw e})}function Qd(e){return e===`head`}function $d(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Pp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)mf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,mf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[St]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&mf(e.ownerDocument.body);n=i}while(n);Pp(t)}function ef(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function tf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:tf(n),Ct(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function nf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[St])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=lf(e.nextSibling),e===null)break}return null}function rf(e,t,n){if(t===``)return null;for(;
vendor: 20,904 bytes, line 10
10e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=lf(e.nextSibling),e===null))return null;return e}function af(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=lf(e.nextSibling),e===null))return null;return e}function of(e){return e.data===`$?`||e.data===`$~`}function sf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function cf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function lf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var uf=null;function df(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return lf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function ff(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function pf(e,t,n){switch(t=Vd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(a(452));return e;case`head`:if(e=t.head,!e)throw Error(a(453));return e;case`body`:if(e=t.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function mf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ct(e)}var hf=new Map,gf=new Set;function _f(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var vf=E.d;E.d={f:yf,r:bf,D:Cf,C:wf,L:Tf,m:Ef,X:Of,S:Df,M:kf};function yf(){var e=vf.f(),t=xu();return e||t}function bf(e){var t=Tt(e);t!==null&&t.tag===5&&t.type===`form`?ks(t):vf.r(e)}var xf=typeof document>`u`?null:document;function Sf(e,t,n){var r=xf;if(r&&typeof t==`string`&&t){var i=qt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),gf.has(i)||(gf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Fd(t,`link`,e),Ot(t),r.head.appendChild(t)))}}function Cf(e){vf.D(e),Sf(`dns-prefetch`,e,null)}function wf(e,t){vf.C(e,t),Sf(`preconnect`,e,t)}function Tf(e,t,n){vf.L(e,t,n);var r=xf;if(r&&e&&t){var i=`link[rel="preload"][as="`+qt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+qt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+qt(n.imageSizes)+`"]`)):i+=`[href="`+qt(e)+`"]`;var a=i;switch(t){case`style`:a=jf(e);break;case`script`:a=Ff(e)}hf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),hf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Mf(a))||t===`script`&&r.querySelector(If(a))||(t=r.createElement(`link`),Fd(t,`link`,e),Ot(t),r.head.appendChild(t)))}}function Ef(e,t){vf.m(e,t);var n=xf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+qt(r)+`"][href="`+qt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Ff(e)}if(!hf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),hf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(If(a)))return}r=n.createElement(`link`),Fd(r,`link`,e),Ot(r),n.head.appendChild(r)}}}function Df(e,t,n){vf.S(e,t,n);var r=xf;if(r&&e){var i=Dt(r).hoistableStyles,a=jf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Mf(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=hf.get(a))&&zf(e,n);var c=o=r.createElement(`link`);Ot(c),Fd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Rf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Of(e,t){vf.X(e,t);var n=xf;if(n&&e){var r=Dt(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=m({src:e,async:!0},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),Ot(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t){vf.M(e,t);var n=xf;if(n&&e){var r=Dt(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),Ot(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t,n,r){var i=(i=_e.current)?_f(i):null;if(!i)throw Error(a(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=jf(n.href),n=Dt(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=jf(n.href);var o=Dt(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.querySelector(Mf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),hf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},hf.set(e,n),o||Pf(i,e,n,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Ff(n),n=Dt(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function jf(e){return`href="`+qt(e)+`"`}function Mf(e){return`link[rel="stylesheet"][`+e+`]`}function Nf(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Pf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Fd(t,`link`,n),Ot(t),e.head.appendChild(t))}function Ff(e){return`[src="`+qt(e)+`"]`}function If(e){return`script[async]`+e}function Lf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+qt(n.href)+`"]`);if(r)return t.instance=r,Ot(r),r;var i=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ot(r),Fd(r,`style`,i),Rf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=jf(n.href);var o=e.querySelector(Mf(i));if(o)return t.state.loading|=4,t.instance=o,Ot(o),o;r=Nf(n),(i=hf.get(i))&&zf(r,i),o=(e.ownerDocument||e).createElement(`link`),Ot(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Fd(o,`link`,r),t.state.loading|=4,Rf(o,n.precedence,e),t.instance=o;case`script`:return o=Ff(n.src),(i=e.querySelector(If(o)))?(t.instance=i,Ot(i),i):(r=n,(i=hf.get(o))&&(r=m({},n),Bf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),Ot(i),Fd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Rf(r,n.precedence,e));return t.instance}function Rf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Bf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Vf=null;function Hf(e,t,n){if(Vf===null){var r=new Map,i=Vf=new Map;i.set(n,r)}else i=Vf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[St]||a[ht]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Uf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Wf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Gf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Kf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=jf(r.href),a=t.querySelector(Mf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Yf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ot(a);return}a=t.ownerDocument||t,r=Nf(r),(i=hf.get(i))&&zf(r,i),a=a.createElement(`link`),Ot(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Fd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Yf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var qf=0;function Jf(e,t){return e.stylesheets&&e.count===0&&Zf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&qf===0&&(qf=62500*Rd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>qf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Yf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xf=null;function Zf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xf=new Map,t.forEach(Qf,e),Xf=null,Yf.call(e))}function Qf(e,t){if(!(t.state.loading&4)){var n=Xf.get(e);if(n)var r=n.get(null);else{n=new Map,Xf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Yf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var $f={$$typeof:S,Provider:null,Consumer:null,_currentValue:de,_currentValue2:de,_threadCount:0};function ep(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,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=it(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=it(0),this.hiddenUpdates=it(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function tp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ep(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=hi(3,null,null,t),e.current=a,a.stateNode=e,t=pa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ka(a),e}function np(e){return e?(e=pi,e):pi}function rp(e,t,n,r,i,a){i=np(i),r.context===null?r.context=i:r.pendingContext=i,r=Ja(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ya(e,r,t),n!==null&&(gu(n,e,t),Xa(n,e,t))}function ip(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ap(e,t){ip(e,t),(e=e.alternate)&&ip(e,t)}function op(e){if(e.tag===13||e.tag===31){var t=ui(e,67108864);t!==null&&gu(t,e,67108864),ap(e,67108864)}}function sp(e){if(e.tag===13||e.tag===31){var t=mu();t=ut(t);var n=ui(e,t);n!==null&&gu(n,e,t),ap(e,t)}}var cp=!0;function lp(e,t,n,r){var i=w.T;w.T=null;var a=E.p;try{E.p=2,dp(e,t,n,r)}finally{E.p=a,w.T=i}}function up(e,t,n,r){var i=w.T;w.T=null;var a=E.p;try{E.p=8,dp(e,t,n,r)}finally{E.p=a,w.T=i}}function dp(e,t,n,r){if(cp){var i=fp(r);if(i===null)Td(e,t,r,pp,n),wp(e,r);else if(Ep(i,e,t,n,r))r.stopPropagation();else if(wp(e,r),t&4&&-1<Cp.indexOf(e)){for(;i!==null;){var a=Tt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=$e(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ke(o);s.entanglements[1]|=c,o&=~c}id(a),!(G&6)&&(nu=A()+500,ad(0,!1))}}break;case 31:case 13:s=ui(a,2),s!==null&&gu(s,a,2),xu(),ap(a,2)}if(a=fp(r),a===null&&Td(e,t,r,pp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Td(e,t,r,null,n)}}function fp(e){return e=dn(e),mp(e)}var pp=null;function mp(e){if(pp=null,e=wt(e),e!==null){var t=c(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=l(t),e!==null)return e;e=null}else if(n===31){if(e=u(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return pp=e,null}function hp(e){switch(e){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(Pe()){case Fe:return 2;case Ie:return 8;case Le:case Re:return 32;case ze:return 268435456;default:return 32}default:return 32}}var gp=!1,_p=null,vp=null,yp=null,bp=new Map,xp=new Map,Sp=[],Cp=`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 wp(e,t){switch(e){case`focusin`:case`focusout`:_p=null;break;case`dragenter`:case`dragleave`:vp=null;break;case`mouseover`:case`mouseout`:yp=null;break;case`pointerover`:case`pointerout`:bp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:xp.delete(t.pointerId)}}function Tp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Tt(t),t!==null&&op(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ep(e,t,n,r,i){switch(t){case`focusin`:return _p=Tp(_p,e,t,n,r,i),!0;case`dragenter`:return vp=Tp(vp,e,t,n,r,i),!0;case`mouseover`:return yp=Tp(yp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return bp.set(a,Tp(bp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,xp.set(a,Tp(xp.get(a)||null,e,t,n,r,i)),!0}return!1}function Dp(e){var t=wt(e.target);if(t!==null){var n=c(t);if(n!==null){if(t=n.tag,t===13){if(t=l(n),t!==null){e.blockedOn=t,pt(e.priority,function(){sp(n)});return}}else if(t===31){if(t=u(n),t!==null){e.blockedOn=t,pt(e.priority,function(){sp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Op(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=fp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);un=r,n.target.dispatchEvent(r),un=null}else return t=Tt(n),t!==null&&op(t),e.blockedOn=n,!1;t.shift()}return!0}function kp(e,t,n){Op(e)&&n.delete(t)}function Ap(){gp=!1,_p!==null&&Op(_p)&&(_p=null),vp!==null&&Op(vp)&&(vp=null),yp!==null&&Op(yp)&&(yp=null),bp.forEach(kp),xp.forEach(kp)}function jp(e,n){e.blockedOn===n&&(e.blockedOn=null,gp||(gp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ap)))}var Mp=null;function Np(e){Mp!==e&&(Mp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Mp===e&&(Mp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(mp(r||n)===null)continue;break}var a=Tt(n);a!==null&&(e.splice(t,3),t-=3,Ds(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Pp(e){function t(t){return jp(t,e)}_p!==null&&jp(_p,e),vp!==null&&jp(vp,e),yp!==null&&jp(yp,e),bp.forEach(t),xp.forEach(t);for(var n=0;n<Sp.length;n++){var r=Sp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Sp.length&&(n=Sp[0],n.blockedOn===null);)Dp(n),n.blockedOn===null&&Sp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[gt]||null;if(typeof a==`function`)o||Np(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[gt]||null)s=o.formAction;else if(mp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Np(n)}}}function Fp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Ip(e){this._internalRoot=e}Lp.prototype.render=Ip.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));var n=t.current;rp(n,mu(),e,t,null,null)},Lp.prototype.unmount=Ip.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rp(e.current,2,null,e,null,null),xu(),t[_t]=null}};function Lp(e){this._internalRoot=e}Lp.prototype.unstable_scheduleHydration=function(e){if(e){var t=ft();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Sp.length&&t!==0&&t<Sp[n].priority;n++);Sp.splice(n,0,e),n===0&&Dp(e)}};var Rp=n.version;if(Rp!==`19.2.5`)throw Error(a(527,Rp,`19.2.5`));E.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(a(188)):(e=Object.keys(e).join(`,`),Error(a(268,e)));return e=f(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var zp={bundleType:0,version:`19.2.5`,rendererPackageName:`react-dom`,currentDispatcherRef:w,reconcilerVersion:`19.2.5`};
10if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Bp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bp.isDisabled&&Bp.supportsFiber)try{Ue=Bp.inject(zp),We=Bp}catch{}}e.hydrateRoot=function(e,t,n){if(!o(e))throw Error(a(299));var r=!1,i=``,s=Xs,c=Zs,l=Qs,u=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=tp(e,1,!0,t,n??null,r,i,u,s,c,l,Fp),t.context=np(null),n=t.current,r=mu(),r=ut(r),i=Ja(r),i.callback=null,Ya(n,i,r),n=r,t.current.lanes=n,at(t,n),id(t),e[_t]=t.current,Cd(e),new Lp(t)}})),We=e(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Ue()})),Ge=`__TSS_CONTEXT`,Ke=Symbol.for(`TSS_SERVER_FUNCTION`),qe=Symbol.for(`TSS_SERVER_FUNCTION_FACTORY`),Je=`application/x-tss-framed`,Ye={JSON:0,CHUNK:1,END:2,ERROR:3};`${Je}`;var Xe=/;\s*v=(\d+)/;function Ze(e){let t=e.match(Xe);return t?parseInt(t[1],10):void 0}function Qe(e){let t=Ze(e);if(t!==void 0&&t!==1)throw Error(`Incompatible framed protocol version: server=${t}, client=1. Please ensure client and server are using compatible versions.`)}var $e=()=>window.__TSS_START_OPTIONS__,et=nt(JSON.parse),tt=rt(JSON.stringify,JSON.parse);function nt(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=ve(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function rt(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=_e(e,r);return t?`?${t}`:``}}var it=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},at=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),ot=(e,t)=>
10!!(e.preload&&!e.router.stores.matchStores.has(t)),st=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},ct=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},lt=(e,t,n)=>{if(!(!Se(n)&&!k(n)))throw Se(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:Se(n)?`redirected`:k(n)?`notFound`:r.status===`pending`?`success`:r.status,context:st(e,t.index),isFetching:!1,error:n})),k(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),Se(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},ut=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},dt=(e,t,n)=>{let r=st(e,n);e.updateMatch(t,e=>({...e,context:r}))},ft=(e,t,n)=>{let{id:r,routeId:i}=e.matches[t],a=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,lt(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,lt(e,e.router.getMatch(r),n)}e.updateMatch(r,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!Se(n)&&!k(n)&&(e.serialError??=n)},pt=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!ot(e,t)&&(n.options.loader||n.options.beforeLoad||wt(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{it(e)},i);r._nonReactive.pendingTimeout=t}},mt=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;pt(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&<(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},ht=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=y(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&ft(e,n,o),s&&ft(e,n,s),pt(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},d=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),d()});return}i._nonReactive.beforeLoadPromise=y();let f={...st(e,n,!1),...i.__routeContext},{search:p,params:m,cause:h}=i,_=ot(e,t),v={search:p,abortController:c,params:m,preload:_,context:f,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:_?`preload`:h,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},b=r=>{if(r===void 0){e.router.batch(()=>{u(),d()});return}(Se(r)||k(r))&&(u(),ft(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},x;try{if(x=r.options.beforeLoad(v),g(x))return u(),x.catch(t=>{ft(e,n,t)}).then(b)}catch(t){u(),ft(e,n,t)}b(x)},gt=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>ht(e,n,t,i),s=()=>{if(ut(e,n))return;let t=mt(e,n,i);return g(t)?t.then(o):o()};return a()},_t=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},vt=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=st(e,r),d=ot(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},yt=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{Ct(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(vt(e,t,n,r,i)),l=!!s&&g(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;lt(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:st(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>
10({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:st(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,k(t)&&await i.options.notFoundComponent?.preload?.(),lt(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,lt(e,e.router.getMatch(n),t)}!Se(o)&&!k(o)&&await Ct(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:st(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),lt(e,r,t)}},bt=async(e,t,n)=>{async function r(r,a,c,l,d){let f=Date.now()-a.updatedAt,p=r?d.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.router.options.defaultStaleTime??0,m=d.options.shouldReload,h=typeof m==`function`?m(vt(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await yt(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){Se(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await yt(e,t,i,n,d):dt(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a],l=c.options.loader,u=((typeof l==`function`?void 0:l?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(ut(e,i)){if(!e.router.getMatch(i))return e.matches[n];dt(e,i,n)}else{let t=e.router.getMatch(i),o=e.router.stores.matchesId.get()[n],s=(o&&e.router.stores.matchStores.get(o)||null)?.routeId===a?o:e.router.stores.matches.get().find(e=>e.routeId===a)?.id,l=ot(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&u)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&<(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=y(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let d=e.router.getMatch(i);s||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve(),d._nonReactive.loadPromise=void 0),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,s||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;let f=s?d.isFetching:!1;return f!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):d};async function xt(e){let t=e,n=[];at(t.router)&&it(t);let r;for(let e=0;e<t.matches.length;e++){try{let n=gt(t,e);g(n)&&await n}catch(e){if(Se(e))throw e;if(k(e))r=e;else if(!t.preload)throw e;break}if(t.serialError||t.firstBadMatchIndex!=null)break}let i=t.firstBadMatchIndex??t.matches.length,o=r&&!t.preload?ct(t,r):void 0,s=r&&t.preload?0:o===void 0?i:Math.min(o+1,i),c,l;for(let e=0;e<s;e++)n.push(bt(t,n,e));try{await Promise.all(n)}catch{let e=await Promise.allSettled(n);for(let t of e){if(t.status!==`rejected`)continue;let e=t.reason;if(Se(e))throw e;k(e)?c??=e:l??=e}if(l!==void 0)throw l}let u=c??(r&&!t.preload?r:void 0),d=t.firstBadMatchIndex===void 0?t.matches.length-1:t.firstBadMatchIndex;if(!u&&r&&t.preload)return t.matches;if(u){let e=ct(t,u);e===void 0&&a();let n=t.matches[e],r=t.router.looseRoutesById[n.routeId],i=t.router.options?.defaultNotFoundComponent;!r.options.notFoundComponent&&i&&(r.options.notFoundComponent=i),u.routeId=n.routeId;let o=n.routeId===t.router.routeTree.id;t.updateMatch(n.id,e=>({...e,...o?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:u},isFetching:!1})),d=e,await Ct(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await Ct(e,[`errorComponent`])}for(let e=0;e<=d;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=_t(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let f=it(t);if(g(f)&&await f,u)throw u;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function St(e,t){let n=t.map(t=>
10e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function Ct(e,t=Tt){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===Tt?(()=>{if(e._componentsPromise===void 0){let t=St(e,Tt);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():St(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function wt(e){for(let t of Tt)if(e.options[t]?.preload)return!0;return!1}var Tt=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function Et(e){return{input:({url:t})=>{for(let n of e)t=Ot(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=kt(e[n],t);return t}}}function Dt(e){let t=ie(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=w([`/`,t,e.pathname]),e)}}function Ot(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function kt(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function At(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>jt(o,_.get())),x=r(()=>jt(s,v.get())),S=r(()=>jt(c,y.get())),ee=r(()=>_.get()[0]),te=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),ne=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),re=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),ie=C(64);function ae(e){let t=ie.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),ie.set(e,t)),t}let oe={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:S,firstId:ee,hasPending:te,matchRouteDeps:ne,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:re,getRouteMatchStore:ae,setMatches:se,setPending:ce,setCached:le};se(e.matches),a?.(oe);function se(e){Mt(e,o,_,n,i)}function ce(e){Mt(e,s,v,n,i)}function le(e){Mt(e,c,y,n,i)}return oe}function jt(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function Mt(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}f(n.get(),a)||n.set(a)})}var Nt=`__TSR_index`,Pt=`popstate`,Ft=`beforeunload`;function It(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=Bt(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[Nt];i=Lt(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[Nt];i=Lt(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[Nt]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function Lt(e,t){t||={};let n=Vt();return{...t,key:n,__TSR_key:n,[Nt]:e}}function Rt(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>Bt(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=Vt(
10);t.history.replaceState({[Nt]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=Bt(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[Nt]-l.state[Nt],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=It({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(Ft,S,{capture:!0}),t.removeEventListener(Pt,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(Ft,S,{capture:!0}),t.addEventListener(Pt,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function zt(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function Bt(e,t){let n=zt(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=Vt();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[Nt]:0,key:a,__TSR_key:a}}}function Vt(){return(Math.random()+1).toString(36).substring(7)}function Ht(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function Ut(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var Wt=new WeakMap,Gt=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=fe(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Rt()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=C(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=At(Jt(this.latestLocation),e),hn(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=ie(o);t&&t!==`/`&&e.push(Dt({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:Et(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=me(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&d(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>
10{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:ce(e).path,external:!1,searchStr:o,search:ge(t?.search,i),hash:ce(r.slice(1)).path,state:u(t?.state,a)}}let o=new URL(i,this.origin),s=Ot(this.rewrite,o),c=this.options.parseSearch(s.search),l=this.options.stringifySearch(c);return s.search=l,{href:s.href.replace(s.origin,``),publicHref:i,pathname:ce(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:ge(t?.search,c),hash:ce(s.hash.slice(1)).path,state:u(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>ae({base:e,to:t.includes(`//`)?le(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>Xt({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,s=Object.assign(Object.create(null),r.params),c=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),l=a?this.resolvePathWithBase(c,a):c,d=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?s:Object.assign(s,v(t.params,s)),f=this.routesByPath[pe(l)],p;if(f)p=this.getRouteBranch(f);else if(l.includes(`$`))p=[];else{let e=this.getMatchedRoutes(l);p=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(p=[...p,this.options.notFoundRoute])}if(p.length&&b(d))for(let e of p){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(d,t(d))}catch{}}let m=e.leaveParams?l:ce(re({path:l,params:d,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,h=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};p.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,Yt(t.options.validateSearch,{...e,...h}))}catch{}}),h=e}h=Zt({search:h,dest:t,destRoutes:p,_includeValidateSearch:e._includeValidateSearch}),h=ge(o,h);let g=this.options.stringifySearch(h),_=t.hash===!0?n.hash:t.hash?v(t.hash,n.hash):void 0,y=_?`#${_}`:``,x=t.state===!0?n.state:t.state?v(t.state,n.state):{};x=u(n.state,x);let S=`${m}${g}${y}`,C,ee,te=!1;if(this.rewrite){let e=new URL(S,this.origin),t=kt(this.rewrite,e);C=e.href.replace(e.origin,``),t.origin===this.origin?ee=t.pathname+t.search+t.hash:(ee=t.href,te=!0)}else C=se(S),ee=C;return{publicHref:ee,href:C,pathname:m,search:h,searchStr:g,state:x,hash:_??``,external:te,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=te(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,v(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];
10e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=l(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=pe(this.latestLocation.href)===pe(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=y(()=>{o?.resolve(),o=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this._scroll.next=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=Bt(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=Ot(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(m(t,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,n,r,i,a=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(o=>{this.startTransition(async()=>{try{this.beforeLoad(),t?Wt.set(this.latestLocation,t):Wt.delete(this.latestLocation);let n=this.latestLocation,r=Ut(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await xt({router:this,sync:e?.sync,forceStaleReload:a.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){Se(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):k(e)&&(r=e);let t=n?n.status:r?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(n)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let o;this.hasNotFoundMatch()?o=404:this.stores.matches.get().some(e=>e.status===`error`)&&(o=500),o!==void 0&&this.stores.statusCode.set(o)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(Ut(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>
10{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&m(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=Ct,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await xt({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(Se(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});k(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=S(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!l(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?l(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??tt,parseSearch:e.parseSearch??et,protocolAllowlist:e.protocolAllowlist??p}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=he(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParam
10s:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:pe(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?$t(this.options.notFoundMode,a):void 0,c=Array(a.length),l=new Map;for(let e of this.stores.matchStores.values())e.routeId&&l.set(e.routeId,e.get());for(let n=0;n<a.length;n++){let r=a[n],o=c[n-1],d,f,p;{let n=o?.search??e.search,i=o?._strictSearch??void 0;try{let e=Yt(r.options.validateSearch,{...n})??void 0;d={...n,...e},f={...i,...e},p=void 0}catch(e){let r=e;if(e instanceof Kt||(r=new Kt(e.message,{cause:e})),t?.throwOnError)throw r;d=n,f={},p=r}}let m=r.options.loaderDeps?.({search:d})??``,h=m?JSON.stringify(m):``,{interpolatedPath:g,usedParams:_}=re({path:r.fullPath,params:i,decoder:this.pathParamsDecoder,server:this.isServer}),v=r.id+g+h,b=this.getMatch(v),x=l.get(r.id),S=b?._strictParams??_,C;if(!b)try{en(r,S)}catch(e){if(C=k(e)||Se(e)?e:new qt(e.message,{cause:e}),t?.throwOnError)throw C}Object.assign(i,S);let ee=x?`stay`:`enter`,te;if(b)te={...b,cause:ee,params:x?.params??i,_strictParams:S,search:ge(x?x.search:b.search,d),_strictSearch:f};else{let e=r.options.loader||r.options.beforeLoad||r.lazyFn||wt(r)?`pending`:`success`;te={id:v,ssr:r.options.ssr,index:n,routeId:r.id,params:x?.params??i,_strictParams:S,pathname:g,updatedAt:Date.now(),search:x?ge(x.search,d):d,_strictSearch:f,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:C,__routeContext:void 0,_nonReactive:{loadPromise:y()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:ee,loaderDeps:x?u(x.loaderDeps,m):m,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:r.options.staticData||{},fullPath:r.fullPath}}t?.preload||(te.globalNotFound=s===r.id),te.searchError=p;let ne=this.getParentContext(o);te.context={...ne,...te.__routeContext,...te.__beforeLoadContext},c[n]=te}for(let t=0;t<c.length;t++){let n=c[t],r=this.looseRoutesById[n.routeId],a=this.getMatch(n.id),o=l.get(n.routeId);if(n.params=o?ge(o.params,i):i,!a){let i=c[t-1],a=this.getParentContext(i);if(r.options.context){let t={deps:n.loaderDeps,params:n.params,context:a??{},location:e,navigate:t=>this.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:c,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return c}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),r=x(t),i={...e.search};for(let e of t)try{Object.assign(i,Yt(e.options.validateSearch,i))}catch{}let a=x(this.stores.matchesId.get()),o=a&&this.stores.matchStores.get(a)?.get(),s=o&&o.routeId===r.id&&o.pathname===e.pathname,c;if(s)c=o.params;else{let e=Object.assign(Object.create(null),n);for(let n of t)try{en(n,e)}catch{}c=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:c}}},Kt=class extends Error{},qt=class extends Error{};function Jt(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function Yt(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new Kt(`Async validation not supported`);if(n.issues)throw new Kt(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function Xt({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=pe(e),a,o=O(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function Zt({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return Qt(n)(e,t,r??!1)}function Qt(e){let t,n,r=[];for(let t of e){let e=t.options;`search`in e?e.search?.middlewares&&r.push(...e.search.middlewares):(e.preSearchFilters||e.postSearchFilters)&&r.push(({search:t,next:n})=>{let r=n(e.preSearchFilters?e.preSearchFilters.reduce((e,t)=>t(e),t):t);return e.postSearchFilters?e.postSearchFilters.reduce((e,t)=>
10t(e),r):r});let i=e.validateSearch;i&&r.push(({search:e,next:t,meta:r})=>{let a=t(e);if(n)try{let e=Yt(i,a);if(r&&e)for(let t in e)t in a||(r.defaulted||=new Map).set(t,e[t]);return{...a,...e}}catch{}return a})}let i=(e,n,a)=>{if(e>=r.length){if(!t.search)return{};if(t.search===!0)return n;let e=v(t.search,n);return a&&(a.explicit=e),e}return r[e]({search:n,next:(t,n)=>{if(n){let n=a||{};return{search:i(e+1,t,n),meta:n}}return i(e+1,t,a)},meta:a})};return function(e,r,a){return t=r,n=a,i(0,e)}}function $t(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return we}function en(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}function tn(){try{return sessionStorage}catch{return}}var nn=`tsr-scroll-restoration-v1_3`,rn=tn();function an(){try{return JSON.parse(rn?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function on(){try{rn?.setItem(nn,JSON.stringify(sn))}catch{}}var sn=an(),cn=`data-scroll-restoration-id`,ln=e=>e.state.__TSR_key||e.href;function un(e){let t=e.getAttribute(cn);if(t)return`[${cn}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var dn=!1,fn=`window`;function pn(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function mn(e){let t=[];for(let n of e){if(n===fn)continue;let e=pn(n);e&&t.push(e)}return t}function hn(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||ln,a=new Map,o=(e,t,n)=>{let r=a.get(e)||{};r.scrollX=t,r.scrollY=n,a.set(e,r)},s=e=>{if(!(dn||!r.restoring))if(e.target===document)o(fn,scrollX,scrollY);else{let t=e.target;o(t,t.scrollLeft,t.scrollTop)}},c=e=>{if(!r.restoring)return;let t=sn[e]||={};for(let[e,n]of a)e===fn?t[fn]=n:e.isConnected&&(t[un(e)]=n)};n&&!r.restoration&&(r.restoration=!0,dn=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,s,!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&c(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{c(i(e.stores.resolvedLocation.get()??e.stores.location.get())),on()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c;if(a.clear(),s||(r.next=!0),typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let l=i(t.toLocation),u=t.fromLocation&&i(t.fromLocation);if(r.restoring&&u&&u!==l){let e=sn[u];if(e){let t=sn[l];for(let n in e){if(n===fn){if(s)continue}else{let e=pn(n);if(!e||s&&o&&(c??=mn(o),c.includes(e)))continue}t||=sn[l]={},t[n]??=e[n]}}}dn=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){let s=Wt.get(t.toLocation),u=e&&i&&(s===`PUSH`||s===`REPLACE`),d=r.restoring?sn[l]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:r}=d[e];if(e===fn){if(u)continue;scrollTo({top:r,left:t,behavior:n}),a=!0}else{let n=pn(e);n&&(n.scrollLeft=t,n.scrollTop=r)}}if(!a&&!e){let e={top:0,left:0,behavior:n};if(scrollTo(e),o){c??=mn(o);for(let t of c)t.scrollTo(e)}}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{dn=!1}
10}))}var gn=Symbol.for(`TSR_DEFERRED_PROMISE`);function _n(e,t){let n=e;return n[gn]?n:(n[gn]={status:`pending`},n.then(e=>{n[gn].status=`success`,n[gn].data=e}).catch(e=>{n[gn].status=`error`,n[gn].error={data:(t?.serializeError??Ht)(e),__isServerError:!0}}),n)}function vn(e,t){if(e)return typeof e==`string`?e:e[t]}function yn(e){return e?.scriptFormat??`module`}function bn(e,t,n){let r=xn(t),i=vn(n,`script`)??r.crossOrigin;return{...yn(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function xn(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function Sn(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function Cn(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}var wn=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=we:this.parentRoute||a();let r=n?we:t?.path;r&&r!==`/`&&(r=ee(r));let i=t?.id||r,o=n?we:w([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),o!==`__root__`&&(o=w([`/`,o]));let s=o===`__root__`?`/`:w([this.parentRoute.fullPath,r]);this._path=r,this._id=o,this._fullPath=s,this._to=pe(s)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>be({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},Tn=class extends wn{constructor(e){super(e)}},En=(e=>(e[e.AggregateError=1]=`AggregateError`,e[e.ArrowFunction=2]=`ArrowFunction`,e[e.ErrorPrototypeStack=4]=`ErrorPrototypeStack`,e[e.ObjectAssign=8]=`ObjectAssign`,e[e.BigIntTypedArray=16]=`BigIntTypedArray`,e[e.RegExp=32]=`RegExp`,e))(En||{}),Dn=Symbol.asyncIterator,On=Symbol.hasInstance,kn=Symbol.isConcatSpreadable,An=Symbol.iterator,jn=Symbol.match,Mn=Symbol.matchAll,Nn=Symbol.replace,Pn=Symbol.search,Fn=Symbol.species,In=Symbol.split,Ln=Symbol.toPrimitive,Rn=Symbol.toStringTag,zn=Symbol.unscopables,Bn={[Dn]:0,[On]:1,[kn]:2,[An]:3,[jn]:4,[Mn]:5,[Nn]:6,[Pn]:7,[Fn]:8,[In]:9,[Ln]:10,[Rn]:11,[zn]:12},Vn={0:Dn,1:On,2:kn,3:An,4:jn,5:Mn,6:Nn,7:Pn,8:Fn,9:In,10:Ln,11:Rn,12:zn},j=void 0,Hn={2:!0,3:!1,1:j,0:null,4:-0,5:1/0,6:-1/0,7:NaN},Un={0:`Error`,1:`EvalError`,2:`RangeError`,3:`ReferenceError`,4:`SyntaxError`,5:`TypeError`,6:`URIError`},Wn={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function M(e,t,n,r,i,a,o,s,c,l,u,d){return{t:e,i:t,s:n,c:r,m:i,p:a,e:o,a:s,f:c,b:l,o:u,l:d}}function Gn(e){return M(2,j,e,j,j,j,j,j,j,j,j,j)}var Kn=Gn(2),qn=Gn(3),Jn=Gn(1),Yn=Gn(0),Xn=Gn(4),Zn=Gn(5),Qn=Gn(6),$n=Gn(7);function er(e){switch(e){case`"`:return`\\"`;case`\\`:return`\\\\`;case` 11`:return`\\n`;case`\r`:return`\\r`;case`\b`:return`\\b`;case` `:return`\\t`;case`\f`:return`\\f`;case`<`:return`\\x3C`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:return j}}function tr(e){let t=``,n=0,r;for(let i=0,a=e.length;i<a;i++)r=er(e[i]),r&&(t+=e.slice(n,i)+r,n=i+1);return n===0?t=e:t+=e.slice(n),t}function nr(e){switch(e){case`\\\\`:return`\\`;case`\\"`:return`"`;case`\\n`:return` 12`;case`\\r`:return`\r`;case`\\b`:return`\b`;case`\\t`:return` `;case`\\f`:return`\f`;case`\\x3C`:return`<`;case`\\u2028`:return`\u2028`;case`\\u2029`:return`\u2029`;default:return e}}function rr(e){return e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,nr)}var ir=`__SEROVAL_REFS__`,ar=new Map,or=new Map;function sr(e){return ar.has(e)}function cr(e){return or.has(e)}function lr(e){if(sr(e))return ar.get(e);throw new Zr(e)}function ur(e){if(cr(e))return or.get(e);throw new Qr(e)}typeof globalThis<`u`?Object.defineProperty(globalThis,ir,{value:or,configurable:!0,writable:!1,enumerable:!1}):typeof window<`u`?Object.defineProperty(window,ir,{value:or,configurable:!0,writable:!1,enumerable:!1}):typeof self<`u`?Object.defineProperty(self,ir,{value:or,configurable:!0,writable:!1,enumerable:!1}):typeof global<`u`&&Object.defineProperty(global,ir,{value:or,configurable:!0,writable:!1,enumerable:!1});function dr(e){return e instanceof EvalError?1:e instanceof RangeError?2:e instanceof ReferenceError?3:e instanceof SyntaxError?4:e instanceof TypeError?5:e instanceof URIError?6:0}function fr(e){let t=Un[dr(e)];return e.name===t?e.constructor.name===t?{}:{name:e.constructor.name}:{name:e.name}}function pr(e,t){let n=fr(e),r=Object.getOwnPropertyNames(e);for(let i=0,a=r.length,o;i<a;i++)o=r[i],o!==`name`&&o!==`message`&&(o===`stack`?t&4&&(n||={},n[o]=e[o]):(n||={},n[o]=e[o]));return n}function mr(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:+!Object.isExtensible(e)}function hr(e){switch(e){case 1/0:return Zn;case-1/0:return Qn}return e===e?Object.is(e,-0)?Xn:M(0,j,e,j,j,j,j,j,j,j,j,j):$n}function gr(e){return M(1,j,tr(e),j,j,j,j,j,j,j,j,j)}function _r(e){return M(3,j,``+e,j,j,j,j,j,j,j,j,j)}function vr(e){return M(4,e,j,j,j,j,j,j,j,j,j,j)}function yr(e,t){let n=t.valueOf();return M(5,e,n===n?t.toISOString():``,j,j,j,j,j,j,j,j,j)}function br(e,t){return M(6,e,j,tr(t.source),t.flags,j,j,j,j,j,j,j)}function xr(e,t){return M(17,e,Bn[t],j,j,j,j,j,j,j,j,j)}function Sr(e,t){return M(18,e,tr(lr(t)),j,j,j,j,j,j,j,j,j)}function Cr(e,t,n){return M(25,e,n,tr(t),j,j,j,j,j,j,j,j)}function wr(e,t,n){return M(9,e,j,j,j,j,j,n,j,j,mr(t),j)}function Tr(e,t){return M(21,e,j,j,j,j,j,j,t,j,j,j)}function Er(e,t,n){return M(15,e,j,t.constructor.name,j,j,j,j,n,t.byteOffset,j,t.length)}function Dr(e,t,n){return M(16,e,j,t.constructor.name,j,j,j,j,n,t.byteOffset,j,t.byteLength)}function Or(e,t,n){return M(20,e,j,j,j,j,j,j,n,t.byteOffset,j,t.byteLength)}function kr(e,t,n){return M(13,e,dr(t),j,tr(t.message),n,j,j,j,j,j,j)}function Ar(e,t,n){return M(14,e,dr(t),j,tr(t.message),n,j,j,j,j,j,j)}function jr(e,t){return M(7,e,j,j,j,j,j,t,j,j,j,j)}function Mr(e,t){return M(28,j,j,j,j,j,j,[e,t],j,j,j,j)}function Nr(e,t){return M(30,j,j,j,j,j,j,[e,t],j,j,j,j)}function Pr(e,t,n){return M(31,e,j,j,j,j,j,n,t,j,j,j)}function Fr(e,t){return M(32,e,j,j,j,j,j,j,t,j,j,j)}function Ir(e,t){return M(33,e,j,j,j,j,j,j,t,j,j,j)}function Lr(e,t){return M(34,e,j,j,j,j,j,j,t,j,j,j)}function Rr(e,t,n,r){return M(35,e,n,j,j,j,j,t,j,j,j,r)}var{toString:zr}
12=Object.prototype,Br={parsing:1,serialization:2,deserialization:3};function Vr(e){return`Seroval Error (step: ${Br[e]})`}var Hr=(e,t)=>Vr(e),Ur=class extends Error{constructor(e,t){super(Hr(e,t)),this.cause=t}},Wr=class extends Ur{constructor(e){super(`parsing`,e)}},Gr=class extends Ur{constructor(e){super(`deserialization`,e)}};function Kr(e){return`Seroval Error (specific: ${e})`}var qr=class extends Error{constructor(e){super(Kr(1)),this.value=e}},Jr=class extends Error{constructor(e){super(Kr(2))}},Yr=class extends Error{constructor(e){super(Kr(3))}},Xr=class extends Error{constructor(e){super(Kr(4))}},Zr=class extends Error{constructor(e){super(Kr(5)),this.value=e}},Qr=class extends Error{constructor(e){super(Kr(6))}},$r=class extends Error{constructor(e){super(Kr(7))}},ei=class extends Error{constructor(e){super(Kr(8))}},ti=class extends Error{constructor(e){super(Kr(9))}},ni=class{constructor(e,t){this.value=e,this.replacement=t}},ri=()=>{let e={p:0,s:0,f:0};return e.p=new Promise((t,n)=>{e.s=t,e.f=n}),e};ri.toString(),((e,t)=>{e.s(t),e.p.s=1,e.p.v=t}).toString(),((e,t)=>{e.f(t),e.p.s=2,e.p.v=t}).toString();var ii=()=>{let e=[],t=[],n=!0,r=!1,i=0,a=(e,n,r)=>{for(r=0;r<i;r++)t[r]&&t[r][n](e)},o=(t,i,a,o)=>{for(i=0,a=e.length;i<a;i++)o=e[i],!n&&i===a-1?t[r?`return`:`throw`](o):t.next(o)},s=(e,r)=>(n&&(r=i++,t[r]=e),o(e),()=>{n&&(t[r]=t[i],t[i--]=void 0)});return{__SEROVAL_STREAM__:!0,on:e=>s(e),next:t=>{n&&(e.push(t),a(t,`next`))},throw:i=>{n&&(e.push(i),a(i,`throw`),n=!1,r=!1,t.length=0)},return:i=>{n&&(e.push(i),a(i,`return`),n=!1,r=!0,t.length=0)}}};ii.toString();var ai=e=>t=>()=>{let n=0,r={[e]:()=>r,next:()=>{if(n>t.d)return{done:!0,value:void 0};let e=n++,r=t.v[e];if(e===t.t)throw r;return{done:e===t.d,value:r}}};return r};ai.toString();var oi=(e,t)=>n=>()=>{let r=0,i=-1,a=!1,o=[],s=[],c=(e=0,t=s.length)=>{for(;e<t;e++)s[e].s({done:!0,value:void 0})};n.on({next:e=>{let t=s.shift();t&&t.s({done:!1,value:e}),o.push(e)},throw:e=>{let t=s.shift();t&&t.f(e),c(),i=o.length,a=!0,o.push(e)},return:e=>{let t=s.shift();t&&t.s({done:!0,value:e}),c(),i=o.length,o.push(e)}});let l={[e]:()=>l,next:()=>{if(i===-1){let e=r++;if(e>=o.length){let e=t();return s.push(e),e.p}return{done:!1,value:o[e]}}if(r>i)return{done:!0,value:void 0};let e=r++,n=o[e];if(e!==i)return{done:!1,value:n};if(a)throw n;return{done:!0,value:n}}};return l};oi.toString();var si=e=>{let t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r.buffer};si.toString();function ci(e){return`__SEROVAL_SEQUENCE__`in e}function li(e,t,n){return{__SEROVAL_SEQUENCE__:!0,v:e,t,d:n}}function ui(e){let t=[],n=-1,r=-1,i=e[An]();for(;;)try{let e=i.next();if(t.push(e.value),e.done){r=t.length-1;break}}catch(e){n=t.length,t.push(e)}return li(t,n,r)}var di=ai(An);function fi(e){return di(e)}var pi={},mi={},hi={0:{},1:{},2:{},3:{},4:{},5:{}};function gi(e){return`__SEROVAL_STREAM__`in e}function _i(){return ii()}function vi(e){let t=_i(),n=e[Dn]();async function r(){try{let e=await n.next();e.done?t.return(e.value):(t.next(e.value),await r())}catch(e){t.throw(e)}}return r().catch(()=>{}),t}var yi=oi(Dn,ri);function bi(e){return yi(e)}async function xi(e){try{return[1,await e]}catch(e){return[0,e]}}function Si(e,t){return{plugins:t.plugins,mode:e,marked:new Set,features:63^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3}}function Ci(e,t){e.marked.add(t)}function wi(e,t){let n=e.refs.size;return e.refs.set(t,n),n}function Ti(e,t){let n=e.refs.get(t);return n==null?{type:0,value:wi(e,t)}:(Ci(e,n),{type:1,value:vr(n)})}function Ei(e,t){let n=Ti(e,t);return n.type===1?n:sr(t)?{type:2,value:Sr(n.value,t)}:n}function Di(e,t){let n=Ei(e,t);if(n.type!==0)return n.value;if(t in Bn)return xr(n.value,t);throw new qr(t)}function Oi(e,t){let n=Ti(e,hi[t]);return n.type===1?n.value:M(26,n.value,t,j,j,j,j,j,j,j,j,j)}function ki(e){let t=Ti(e,pi);return t.type===1?t.value:M(27,t.value,j,j,j,j,j,j,Di(e,An),j,j,j)}function Ai(e){let t=Ti(e,mi);return t.type===1?t.value:M(29,t.value,j,j,j,j,j,[Oi(e,1),Di(e,Dn)],j,j,j,j)}function ji(e,t,n,r){return M(n?11:10,e,j,j,j,r,j,j,j,j,mr(t),j)}function Mi(e,t,n,r){return M(8,t,j,j,j,j,{k:n,v:r},j,Oi(e,0),j,j,j)}function Ni(e,t,n){let r=new Uint8Array(n),i=``;for(let e=0,t=r.length;e<t;e++)i+=String.fromCharCode(r[e]);return M(19,t,tr(btoa(i)),j,j,j,j,j,Oi(e,5),j,j,j)}function Pi(e,t){return{base:Si(e,t),child:void 0}}var Fi=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return F(this._p,this.depth,e)}};async function Ii(e,t,n){let r=[];for(let i=0,a=n.length;i<a;i++)i in n?r[i]=await F(e,t,n[i]):r[i]=0;return r}async function Li(e,t,n,r){return wr(n,r,await Ii(e,t,r))}async function Ri(e,t,n){let r=Object.entries(n),i=[],a=[];for(let n=0,o=r.length;n<o;n++)i.push(tr(r[n][0])),a.push(await F(e,t,r[n][1]));return An in n&&(i.push(Di(e.base,An)),a.push(Mr(ki(e.base),await F(e,t,ui(n))))),Dn in n&&(i.push(Di(e.base,Dn)),a.push(Nr(Ai(e.base),await F(e,t,vi(n))))),Rn in n&&(i.push(Di(e.base,Rn)),a.push(gr(n[Rn]))),kn in n&&(i.push(Di(e.base,kn)),a.push(n[kn]?Kn:qn)),{k:i,v:a}}async function zi(e,t,n,r,i){return ji(n,r,i,await Ri(e,t,r))}async function Bi(e,t,n,r){return Tr(n,await F(e,t,r.valueOf()))}async function N(e,t,n,r){return Er(n,r,await F(e,t,r.buffer))}async function P(e,t,n,r){return Dr(n,r,await F(e,t,r.buffer))}async function Vi(e,t,n,r){return Or(n,r,await F(e,t,r.buffer))}async function Hi(e,t,n,r){let i=pr(r,e.base.features);return kr(n,r,i?await Ri(e,t,i):j)}async function Ui(e,t,n,r){let i=pr(r,e.base.features);return Ar(n,r,i?await Ri(e,t,i):j)}async function Wi(e,t,n,r){let i=[],a=[];for(let[n,o]of r.entries())i.push(await F(e,t,n)),a.push(await F(e,t,o));return Mi(e.base,n,i,a)}async function Gi(e,t,n,r){let i=[];for(let n of r.keys())i.push(await F(e,t,n));return jr(n,i)}async function Ki(e,t,n,r){let i=e.base.plugins;if(i)for(let a=0,o=i.length;a<o;a++){let o=i[a];if(o.parse.async&&o.test(r))return Cr(n,o.tag,await o.parse.async(r,new Fi(e,t),{id:n}))}return j}async function qi(e,t,n,r){let[i,a]=await xi(r);return M(12,n,i,j,j,j,j,j,await F(e,t,a),j,j,j)}function Ji(e,t,n,r,i){let a=[],o=n.on({next:n=>{Ci(this.base,t),F(this,e,n).then(e=>{a.push(Fr(t,e))},e=>{i(e),o()})},throw:n=>{Ci(this.base,t),F(this,e,n).then(e=>{a.push(Ir(t,e)),r(a),o()},e=>{i(e),o()})},return:n=>{Ci(this.base,t),F(this,e,n).then(e=>{a.push(Lr(t,e)),r(a),o()},e=>{i(e),o()})}})}async function Yi(e,t,n,r){return Pr(n,Oi(e.base,4),await new Promise(Ji.bind(e,t,n,r)))}async function Xi(e,t,n,r){let i=[];for(let n=0,a=r.v.length;n<a;n++)i[n]=await F(e,t,r.v[n]);return Rr(n,i,r.t,r.d)}async function Zi(e,t,n,r){if(Array.isArray(r))return Li(e,t,n,r);if(gi(r))return Yi(e,t,n,r);if(ci(r))return Xi(e,t,n,r);let i=r.constructor;if(i===ni)return F(e,t,r.replacement);let a=await Ki(e,t,n,r);if(a)return a;switch(i){case Object:return zi(e,t,n,r,!1);case j:return zi(e,t,n,r,!0);case Date:return yr(n,r);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return Hi(e,t,n,r);case Number:case Boolean:case String:case BigInt:return Bi(e,t,n,r);case ArrayBuffer:return Ni(e.base,n,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return N(e,t,n,r);case DataView:return Vi(e,t,n,r);case Map:return Wi(e,t,n,r);case Set:return Gi(e,t,n,r);default:break}if(i===Promise||r instanceof Promise)return qi(e,t,n,r);let o=e.base.features;if(o&32&&i===RegExp)return br(n,r);if(o&16)switch(i){case BigInt64Array:case BigUint64Array:return P(e,t,n,r);default:break}if(o&1&&typeof AggregateError<`u`&&(i===AggregateError||r instanceof AggregateError))return Ui(e,t,n,r);if(r instanceof Error)return Hi(e,t,n,r);if(An in r||Dn in r)return zi(e,t,n,r,!!i);throw new qr(r)}async function Qi(e,t,n){let r=Ei(e.base,n);if(r.type!==0)return r.value;let i=await Ki(e,t,r.value,n);if(i)return i;throw new qr(n)}async function F(e,t,n){switch(typeof n){case`boolean`:return n?Kn:qn;case`undefined`:return Jn;case`string`:return gr(n);case`number`:return hr(n);case`bigint`:return _r(n);case`object`:if(n){let r=Ei(e.base,n);return r.type===0?await Zi(e,t+1,r.value,n):r.value}return Yn;case`symbol`:return Di(e.base,n);case`function`:return Qi(e,t,n);default:throw new qr(n)}}async function $i(e,t){try{return await F(e,0,t)}catch(e){throw e instanceof Wr?e:new Wr(e)}}var ea=(e=>(e[e.Vanilla=1]=`Vanilla`,e[e.Cross=2]=`Cross`,e))(ea||{});function ta(e){return e}function na(e,t){for(let n=0,r=t.length;n<r;n++){let r=t[n];e.has(r)||(e.add(r),r.extends&&na(e,r.extends))}}function ra(e){if(e){let t=new Set;return na(t,e),[...t]}}function ia(e){switch(e){case`Int8Array`:return Int8Array;case`Int16Array`:return Int16Array;case`Int32Array`:return Int32Array;case`Uint8Array`:return Uint8Array;case`Uint16Array`:return Uint16Array;case`Uint32Array`:return Uint32Array;case`Uint8ClampedArray`:return Uint8ClampedArray;case`Float32Array`:return Float32Array;case`Float64Array`:return Float64Array;case`BigInt64Array`:return BigInt64Array;case`BigUint64Array`:return BigUint64Array;default:throw new $r(e)}}var aa=1e6,oa=1e4,sa=2e4;function ca(e,t){switch(t){case 3:return Object.freeze(e);case 1:return Object.preventExtensions(e);case 2:return Object.seal(e);default:return e}}var la=1e3;function ua(e,t){let n=t.refs||new Map;return`types`in n||Object.assign(n,{types:new Map}),{mode:e,plugins:t.plugins,refs:n,features:t.features??63^(t.disabledFeatures||0),depthLimit:t.depthLimit||la}}
12function da(e){return{mode:2,base:ua(2,e),child:j}}var fa=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return I(this._p,this.depth,e)}};function pa(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new ei({t:4,i:t});if(e.refs.has(t))throw Error(`Conflicted ref id: `+t)}function ma(e,t,n){return pa(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,n),n}function ha(e,t,n){return pa(e.base,t),e.base.refs.set(t,n),n}function ga(e,t,n){return e.mode===1?ma(e,t,n):ha(e,t,n)}function _a(e,t,n){if(Object.hasOwn(t,n))return t[n];throw new ei(e)}function va(e,t){return ga(e,t.i,ur(rr(t.s)))}function ya(e,t,n){let r=n.a,i=r.length,a=ga(e,n.i,Array(i));for(let n=0,o;n<i;n++)o=r[n],o&&(a[n]=I(e,t,o));return ca(a,n.o),a}function ba(e){switch(e){case`constructor`:case`__proto__`:case`prototype`:case`__defineGetter__`:case`__defineSetter__`:case`__lookupGetter__`:case`__lookupSetter__`:return!1;default:return!0}}function xa(e){switch(e){case Dn:case kn:case Rn:case An:return!0;default:return!1}}function Sa(e,t,n){ba(t)?e[t]=n:Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!0,writable:!0})}function Ca(e,t,n,r,i){if(typeof r==`string`)Sa(n,rr(r),I(e,t,i));else{let a=I(e,t,r);switch(typeof a){case`string`:Sa(n,a,I(e,t,i));break;case`symbol`:xa(a)&&(n[a]=I(e,t,i));break;default:throw new ei(r)}}}function wa(e,t,n){e.base.refs.types.set(t,n)}function Ta(e,t,n,r){if(e.base.refs.types.get(n)!==r)throw new ei(t)}function Ea(e,t,n,r){let i=n.k;if(i.length>0)for(let a=0,o=n.v,s=i.length;a<s;a++)Ca(e,t,r,i[a],o[a]);return r}function Da(e,t,n){let r=ga(e,n.i,n.t===10?{}:Object.create(null));return Ea(e,t,n.p,r),ca(r,n.o),r}function Oa(e,t){return ga(e,t.i,new Date(t.s))}function ka(e,t){if(e.base.features&32){let n=rr(t.c);if(n.length>sa)throw new ei(t);return ga(e,t.i,new RegExp(n,t.m))}throw new Jr(t)}function Aa(e,t,n){let r=ga(e,n.i,new Set);for(let i=0,a=n.a,o=a.length;i<o;i++)r.add(I(e,t,a[i]));return r}function ja(e,t,n){let r=ga(e,n.i,new Map);for(let i=0,a=n.e.k,o=n.e.v,s=a.length;i<s;i++)r.set(I(e,t,a[i]),I(e,t,o[i]));return r}function Ma(e,t){if(t.s.length>aa)throw new ei(t);return ga(e,t.i,si(rr(t.s)))}function Na(e,t,n){let r=ia(n.c),i=I(e,t,n.f),a=n.b??0;if(a<0||a>i.byteLength)throw new ei(n);return ga(e,n.i,new r(i,a,n.l))}function Pa(e,t,n){let r=I(e,t,n.f),i=n.b??0;if(i<0||i>r.byteLength)throw new ei(n);return ga(e,n.i,new DataView(r,i,n.l))}function Fa(e,t,n,r){if(n.p){let i=Ea(e,t,n.p,{});Object.defineProperties(r,Object.getOwnPropertyDescriptors(i))}return r}function Ia(e,t,n){return Fa(e,t,n,ga(e,n.i,AggregateError([],rr(n.m))))}function La(e,t,n){let r=_a(n,Wn,n.s);return Fa(e,t,n,ga(e,n.i,new r(rr(n.m))))}function Ra(e,t,n){let r=ri(),i=ga(e,n.i,r.p),a=I(e,t,n.f);return n.s?r.s(a):r.f(a),i}function za(e,t,n){return ga(e,n.i,Object(I(e,t,n.f)))}function Ba(e,t,n){let r=e.base.plugins;if(r){let i=rr(n.c);for(let a=0,o=r.length;a<o;a++){let o=r[a];if(o.tag===i)return ga(e,n.i,o.deserialize(n.s,new fa(e,t),{id:n.i}))}}throw new Yr(n.c)}function Va(e,t){let n=ga(e,t.i,ga(e,t.s,ri()).p);return wa(e,t.s,22),n}function Ha(e,t,n){let r=e.base.refs.get(n.i);if(r)return Ta(e,n,n.i,22),r.s(I(e,t,n.a[1])),j;throw new Xr(`Promise`)}function Ua(e,t,n){let r=e.base.refs.get(n.i);if(r)return Ta(e,n,n.i,22),r.f(I(e,t,n.a[1])),j;throw new Xr(`Promise`)}function Wa(e,t,n){return I(e,t,n.a[0]),fi(I(e,t,n.a[1]))}function Ga(e,t,n){return I(e,t,n.a[0]),bi(I(e,t,n.a[1]))}function Ka(e,t,n){let r=ga(e,n.i,_i());wa(e,n.i,31);let i=n.a,a=i.length;if(a)for(let n=0;n<a;n++)I(e,t,i[n]);return r}function qa(e,t,n){let r=e.base.refs.get(n.i);if(r)return Ta(e,n,n.i,31),r.next(I(e,t,n.f)),j;throw new Xr(`Stream`)}function Ja(e,t,n){let r=e.base.refs.get(n.i);if(r)return Ta(e,n,n.i,31),r.throw(I(e,t,n.f)),j;throw new Xr(`Stream`)}function Ya(e,t,n){let r=e.base.refs.get(n.i);if(r)return Ta(e,n,n.i,31),r.return(I(e,t,n.f)),j;throw new Xr(`Stream`)}function Xa(e,t,n){return I(e,t,n.f),j}function Za(e,t,n){return I(e,t,n.a[1]),j}function Qa(e,t,n){let r=ga(e,n.i,li([],n.s,n.l));for(let i=0,a=n.a.length;i<a;i++)r.v[i]=I(e,t,n.a[i]);return r}function I(e,t,n){if(t>e.base.depthLimit)throw new ti(e.base.depthLimit);switch(t+=1,n.t){case 2:return _a(n,Hn,n.s);case 0:return Number(n.s);case 1:return rr(String(n.s));case 3:if(String(n.s).length>oa)throw new ei(n);return BigInt(n.s);case 4:return e.base.refs.get(n.i);case 18:return va(e,n);case 9:return ya(e,t,n);
12case 10:case 11:return Da(e,t,n);case 5:return Oa(e,n);case 6:return ka(e,n);case 7:return Aa(e,t,n);case 8:return ja(e,t,n);case 19:return Ma(e,n);case 16:case 15:return Na(e,t,n);case 20:return Pa(e,t,n);case 14:return Ia(e,t,n);case 13:return La(e,t,n);case 12:return Ra(e,t,n);case 17:return _a(n,Vn,n.s);case 21:return za(e,t,n);case 25:return Ba(e,t,n);case 22:return Va(e,n);case 23:return Ha(e,t,n);case 24:return Ua(e,t,n);case 28:return Wa(e,t,n);case 30:return Ga(e,t,n);case 31:return Ka(e,t,n);case 32:return qa(e,t,n);case 33:return Ja(e,t,n);case 34:return Ya(e,t,n);case 27:return Xa(e,t,n);case 29:return Za(e,t,n);case 35:return Qa(e,t,n);default:throw new Jr(n)}}function $a(e,t){try{return I(e,0,t)}catch(e){throw new Gr(e)}}var eo=(()=>T).toString();/=>/.test(eo);function to(e,t){return $a(da({plugins:ra(t.plugins),refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit}),e)}async function no(e,t={}){let n=Pi(1,{plugins:ra(t.plugins),disabledFeatures:t.disabledFeatures});return{t:await $i(n,e),f:n.base.features,m:Array.from(n.base.marked)}}function ro(e){return e}function io(e){return ta({tag:`$TSR/t/`+e.key,test:e.test,parse:{sync(t,n,r){return{v:n.parse(e.toSerializable(t))}},async async(t,n,r){return{v:await n.parse(e.toSerializable(t))}},stream(t,n,r){return{v:n.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,n,r){return e.fromSerializable(n.deserialize(t.v))}})}var ao=class{constructor(e,t){this.stream=e,this.hint=t?.hint??`binary`}},oo=globalThis.Buffer,so=!!oo&&typeof oo.from==`function`;function co(e){if(e.length===0)return``;if(so)return oo.from(e).toString(`base64`);let t=32768,n=[];for(let r=0;r<e.length;r+=t){let i=e.subarray(r,r+t);n.push(String.fromCharCode.apply(null,i))}return btoa(n.join(``))}function lo(e){if(e.length===0)return new Uint8Array;
12if(so){let t=oo.from(e,`base64`);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var uo=Object.create(null),fo=Object.create(null),po=e=>new ReadableStream({start(t){e.on({next(e){try{t.enqueue(lo(e))}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),mo=new TextEncoder,ho=e=>new ReadableStream({start(t){e.on({next(e){try{typeof e==`string`?t.enqueue(mo.encode(e)):t.enqueue(lo(e.$b64))}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),go=`(s=>new ReadableStream({start(c){s.on({next(b){try{const d=atob(b),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}catch(_){}},throw(e){c.error(e)},return(){try{c.close()}catch(_){}}})}}))`,_o=`(s=>{const e=new TextEncoder();return new ReadableStream({start(c){s.on({next(v){try{if(typeof v==='string'){c.enqueue(e.encode(v))}else{const d=atob(v.$b64),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}}catch(_){}},throw(x){c.error(x)},return(){try{c.close()}catch(_){}}})}})})`;function L(e){let t=_i(),n=e.getReader();return(async()=>{try{for(;;){let{done:e,value:r}=await n.read();if(e){t.return(void 0);break}t.next(co(r))}}catch(e){t.throw(e)}finally{n.releaseLock()}})(),t}function R(e){let t=_i(),n=e.getReader(),r=new TextDecoder(`utf-8`,{fatal:!0});return(async()=>{try{for(;;){let{done:e,value:i}=await n.read();if(e){try{let e=r.decode();e.length>0&&t.next(e)}catch{}t.return(void 0);break}try{let e=r.decode(i,{stream:!0});e.length>0&&t.next(e)}catch{t.next({$b64:co(i)})}}}catch(e){t.throw(e)}finally{n.releaseLock()}})(),t}var vo=ta({tag:`tss/RawStream`,extends:[ta({tag:`tss/RawStreamFactory`,test(e){return e===uo},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return go},deserialize(e,t,n){return uo}}),ta({tag:`tss/RawStreamFactoryText`,test(e){return e===fo},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return _o},deserialize(e,t,n){return fo}})],test(e){return e instanceof ao},parse:{sync(e,t,n){let r=e.hint===`text`?fo:uo;return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(_i())}},async async(e,t,n){let r=e.hint===`text`?fo:uo,i=e.hint===`text`?R(e.stream):L(e.stream);return{hint:await t.parse(e.hint),factory:await t.parse(r),stream:await t.parse(i)}},stream(e,t,n){let r=e.hint===`text`?fo:uo,i=e.hint===`text`?R(e.stream):L(e.stream);return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(i)}}},serialize(e,t,n){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t,n){let r=t.deserialize(e.stream);return t.deserialize(e.hint)===`text`?ho(r):po(r)}});function yo(e){return ta({tag:`tss/RawStream`,test:()=>!1,parse:{},serialize(){throw Error(`RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.`)},deserialize(t,n,r){return e(typeof n?.deserialize==`function`?n.deserialize(t.streamId):t.streamId)}})}var bo=ta({tag:`$TSR/Error`,test(e){return e instanceof Error},parse:{sync(e,t){return{message:t.parse(e.message)}},async async(e,t){return{message:await t.parse(e.message)}},stream(e,t){return{message:t.parse(e.message)}}},serialize(e,t){return`new Error(`+t.serialize(e.message)+`)`},deserialize(e,t){return Error(t.deserialize(e.message))}}),xo={},So=e=>new ReadableStream({start:t=>{e.on({next:e=>{try{t.enqueue(e)}catch{}},throw:e=>{t.error(e)},return:()=>{try{t.close()}catch{}}})}}),Co=ta({tag:`seroval-plugins/web/ReadableStreamFactory`,test(e){return e===xo},parse:{sync(){return xo},async async(){return await Promise.resolve(xo)},stream(){return xo}},serialize(){return So.toString()},deserialize(){return xo}});function wo(e){let t=_i(),n=e.getReader();async function r(){try{let e=await n.read();e.done?t.return(e.value):(t.next(e.value),await r())}catch(e){t.throw(e)}}return r().catch(()=>{}),t}var To=[bo,vo,ta({tag:`seroval/plugins/web/ReadableStream`,extends:[Co],test(e){return typeof ReadableStream>`u`?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(xo),stream:t.parse(_i())}},async async(e,t){return{factory:await t.parse(xo),stream:await t.parse(wo(e))}},stream(e,t){return{factory:t.parse(xo),stream:t.parse(wo(e))}}},serialize(e,t){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t){return So(t.deserialize(e.stream))}})];function Eo(){return[...($e()?.serializationAdapters)?.map(io)??[],...To]}var Do=new TextDecoder,Oo=new Uint8Array,ko=16*1024*1024,Ao=32*1024*1024,jo=1024,Mo=1e5;function No(e){let t=new Map,n=new Map,r=new Set,i=!1,a=null,o=0,s,c=new ReadableStream({start(e){s=e},cancel(){i=!0;try{a?.cancel()}catch{}
12t.forEach(e=>{try{e.error(Error(`Framed response cancelled`))}catch{}}),t.clear(),n.clear(),r.clear()}});function l(e){let i=n.get(e);if(i)return i;if(r.has(e))return new ReadableStream({start(e){e.close()}});if(n.size>=jo)throw Error(`Too many raw streams in framed response (max ${jo})`);let a=new ReadableStream({start(n){t.set(e,n)},cancel(){r.add(e),t.delete(e),n.delete(e)}});return n.set(e,a),a}function u(e){return l(e),t.get(e)}return(async()=>{let n=e.getReader();a=n;let c=[],l=0;function d(){if(l<9)return null;let e=c[0];if(e.length>=9)return{type:e[0],streamId:(e[1]<<24|e[2]<<16|e[3]<<8|e[4])>>>0,length:(e[5]<<24|e[6]<<16|e[7]<<8|e[8])>>>0};let t=new Uint8Array(9),n=0,r=9;for(let e=0;e<c.length&&r>0;e++){let i=c[e],a=Math.min(i.length,r);t.set(i.subarray(0,a),n),n+=a,r-=a}return{type:t[0],streamId:(t[1]<<24|t[2]<<16|t[3]<<8|t[4])>>>0,length:(t[5]<<24|t[6]<<16|t[7]<<8|t[8])>>>0}}function f(e){if(e===0)return Oo;let t=new Uint8Array(e),n=0,r=e;for(;r>0&&c.length>0;){let e=c[0];if(!e)break;let i=Math.min(e.length,r);t.set(e.subarray(0,i),n),n+=i,r-=i,i===e.length?c.shift():c[0]=e.subarray(i)}return l-=e,t}try{for(;;){let{done:e,value:a}=await n.read();if(i||e)break;if(a){if(l+a.length>Ao)throw Error(`Framed response buffer exceeded ${Ao} bytes`);for(c.push(a),l+=a.length;;){let e=d();if(!e)break;let{type:n,streamId:i,length:a}=e;if(n!==Ye.JSON&&n!==Ye.CHUNK&&n!==Ye.END&&n!==Ye.ERROR)throw Error(`Unknown frame type: ${n}`);if(n===Ye.JSON){if(i!==0)throw Error(`Invalid JSON frame streamId (expected 0)`)}else if(i===0)throw Error(`Invalid raw frame streamId (expected non-zero)`);if(a>ko)throw Error(`Frame payload too large: ${a} bytes (max ${ko})`);let c=9+a;if(l<c)break;if(++o>Mo)throw Error(`Too many frames in framed response (max ${Mo})`);f(9);let p=f(a);switch(n){case Ye.JSON:try{s.enqueue(Do.decode(p))}catch{}break;case Ye.CHUNK:{let e=u(i);e&&e.enqueue(p);break}case Ye.END:{let e=u(i);if(r.add(i),e){try{e.close()}catch{}t.delete(i)}break}case Ye.ERROR:{let e=u(i);if(r.add(i),e){let n=Do.decode(p);e.error(Error(n)),t.delete(i)}break}}}}}if(l!==0)throw Error(`Incomplete frame at end of framed response`);try{s.close()}catch{}t.forEach(e=>{try{e.close()}catch{}}),t.clear()}catch(e){try{s.error(e)}catch{}t.forEach(t=>{try{t.error(e)}catch{}}),t.clear()}finally{try{n.releaseLock()}catch{}a=null}})(),{getOrCreateStream:l,jsonChunks:c}}var Po=null;async function Fo(e){e.length>0&&await Promise.allSettled(e)}var Io=Object.prototype.hasOwnProperty;function Lo(e){for(let t in e)if(Io.call(e,t))return!0;return!1}async function Ro(e,t,n){Po||=Eo();let r=t[0],i=r.fetch??n,a=r.data instanceof FormData?`formData`:`payload`,o=r.headers?new Headers(r.headers):new Headers;if(o.set(`x-tsr-serverFn`,`true`),a===`payload`&&o.set(`accept`,`${Je}, application/x-ndjson, application/json`),r.method===`GET`){if(a===`formData`)throw Error(`FormData is not supported with GET requests`);let t=await zo(r);if(t!==void 0){let n=_e({payload:t});e.includes(`?`)?e+=`&${n}`:e+=`?${n}`}}let s;if(r.method===`POST`){let e=await Vo(r);e?.contentType&&o.set(`content-type`,e.contentType),s=e?.body}return await Ho(async()=>i(e,{method:r.method,headers:o,signal:r.signal,body:s}))}async function zo(e){let t=!1,n={};if(e.data!==void 0&&(t=!0,n.data=e.data),e.context&&Lo(e.context)&&(t=!0,n.context=e.context),t)return Bo(n)}async function Bo(e){return JSON.stringify(await Promise.resolve(no(e,{plugins:Po})))}async function Vo(e){if(e.data instanceof FormData){let t;return e.context&&Lo(e.context)&&(t=await Bo(e.context)),t!==void 0&&e.data.set(Ge,t),{body:e.data}}let t=await zo(e);if(t)return{body:t,contentType:`application/json`}}async function Ho(e){let t;try{t=await e()}catch(e){if(e instanceof Response)t=e;else throw console.log(e),e}if(t.headers.get(`x-tss-raw`)===`true`)return t;let n=t.headers.get(`content-type`);if(n||a(),t.headers.get(`x-tss-serialized`)){let e;if(n.includes(`application/x-tss-framed`)){if(Qe(n),!t.body)throw Error(`No response body for framed response`);
12let{getOrCreateStream:r,jsonChunks:i}=No(t.body),a=[yo(r),...Po||[]],o=new Map;e=await Uo({jsonStream:i,onMessage:e=>to(e,{refs:o,plugins:a}),onError(e,t){console.error(e,t)}})}else if(n.includes(`application/json`)){let n=await t.json(),r=[];try{e=to(n,{plugins:Po})}finally{}await Fo(r)}if(e||a(),e instanceof Error)throw e;return e}if(n.includes(`application/json`)){let e=await t.json(),n=ye(e);if(n)throw n;if(k(e))throw e;return e}if(!t.ok)throw Error(await t.text());return t}async function Uo({jsonStream:e,onMessage:t,onError:n}){let r=e.getReader(),{value:i,done:a}=await r.read();if(a||!i)throw Error(`Stream ended before first object`);let o=JSON.parse(i),s=!1,c=(async()=>{try{for(;;){let{value:e,done:i}=await r.read();if(i)break;if(e)try{let n=[];try{t(JSON.parse(e))}finally{}await Fo(n)}catch(t){n?.(`Invalid JSON: ${e}`,t)}}}catch(e){s||n?.(`Stream processing error:`,e)}})(),l,u=[];try{l=t(o)}catch(e){throw s=!0,r.cancel().catch(()=>{}),e}return await Fo(u),Promise.resolve(l).catch(()=>{s=!0,r.cancel().catch(()=>{})}),c.finally(()=>{try{r.releaseLock()}catch{}}),l}function Wo(e){let t=`/_serverFn/`+e;return Object.assign((...e)=>{let n=$e()?.serverFns?.fetch;return Ro(t,e,n??fetch)},{url:t,serverFnMeta:{id:e},[Ke]:!0})}var Go=ro({key:`$TSS/serverfn`,test:e=>typeof e!=`function`||!(Ke in e)?!1:!!e[Ke],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>Wo(e)});function Ko(e){if(Array.isArray(e))return e.flatMap(e=>Ko(e));if(typeof e!=`string`)return[];let t=[],n=0,r,i,a,o,s,c=()=>{for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n<e.length},l=()=>(i=e.charAt(n),i!==`=`&&i!==`;`&&i!==`,`);for(;n<e.length;){for(r=n,s=!1;c();)if(i=e.charAt(n),i===`,`){for(a=n,n+=1,c(),o=n;n<e.length&&l();)n+=1;n<e.length&&e.charAt(n)===`=`?(s=!0,n=o,t.push(e.slice(r,a)),r=n):n=a+1}else n+=1;(!s||n>=e.length)&&t.push(e.slice(r))}return t}function qo(e){return e instanceof Headers?e:Array.isArray(e)||typeof e==`object`?new Headers(e):null}function Jo(...e){return e.reduce((e,t)=>{let n=qo(t);if(!n)return e;for(let[t,r]of n.entries())t===`set-cookie`?Ko(r).forEach(t=>e.append(`set-cookie`,t)):e.set(t,r);return e},new Headers)}function Yo(e){return e.replaceAll(`\0`,`/`).replaceAll(`�`,`/`)}function Xo(e,t){e.id=t.i,e.__beforeLoadContext=t.b,e.loaderData=t.l,e.status=t.s,e.ssr=t.ssr,e.updatedAt=t.u,e.error=t.e,t.g!==void 0&&(e.globalNotFound=t.g)}async function Zo(e){window.$_TSR||a();let t=e.options.serializationAdapters;if(t?.length){let e=new Map;t.forEach(t=>{e.set(t.key,t.fromSerializable)}),window.$_TSR.t=e,window.$_TSR.buffer.forEach(e=>e())}window.$_TSR.initialized=!0,window.$_TSR.router||a();let n=window.$_TSR.router;n.matches.forEach(e=>{e.i=Yo(e.i)}),n.lastMatchId&&=Yo(n.lastMatchId);let{manifest:r,dehydratedData:i,lastMatchId:o}=n;e.ssr={manifest:r};let s=document.querySelector(`meta[property="csp-nonce"]`)?.content;e.options.ssr={nonce:s},await e.options.hydrate?.(i);let c=e.matchRoutes(e.stores.location.get()),l=Promise.all(c.map(t=>e.loadRouteChunk(e.looseRoutesById[t.routeId])));function u(t){let n=e.looseRoutesById[t.routeId].options.pendingMinMs??e.options.defaultPendingMinMs;if(n){let r=y();t._nonReactive.minPendingPromise=r,t._forcePending=!0,setTimeout(()=>{r.resolve(),e.updateMatch(t.id,e=>(e._nonReactive.minPendingPromise=void 0,{...e,_forcePending:void 0}))},n)}}function d(t){let n=e.looseRoutesById[t.routeId];n&&(n.options.ssr=t.ssr)}let f;c.forEach(e=>{let t=n.matches.find(t=>t.i===e.id);if(!t){e._nonReactive.dehydrated=!1,e.ssr=!1,d(e);return}Xo(e,t),d(e),e._nonReactive.dehydrated=e.ssr!==!1,(e.ssr===`data-only`||e.ssr===!1)&&f===void 0&&(f=e.index,u(e))}),e.stores.setMatches(c);let p=e.stores.matches.get(),m=e.stores.location.get();await Promise.all(p.map(async t=>{try{let n=e.looseRoutesById[t.routeId],r=p[t.index-1]?.context??e.options.context;if(n.options.context){let i={deps:t.loaderDeps,params:t.params,context:r??{},location:m,navigate:t=>e.navigate({...t,_fromLocation:m}),buildLocation:e.buildLocation,cause:t.cause,abortController:t.abortController,preload:!1,matches:c,routeId:n.id};
12t.__routeContext=n.options.context(i)??void 0}t.context={...r,...t.__routeContext,...t.__beforeLoadContext};let i={ssr:e.options.ssr,matches:p,match:t,params:t.params,loaderData:t.loaderData},a=await n.options.head?.(i),o=await n.options.scripts?.(i);t.meta=a?.meta,t.links=a?.links,t.headScripts=a?.scripts,t.styles=a?.styles,t.scripts=o}catch(e){if(k(e))t.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${t.routeId}`,e);else throw t.error=e,console.error(`Error during hydration for route ${t.routeId}:`,e),e}}));let h=c[c.length-1].id!==o;if(!c.some(e=>e.ssr===!1)&&!h)return c.forEach(e=>{e._nonReactive.dehydrated=void 0}),e.stores.resolvedLocation.set(e.stores.location.get()),l;let g=Promise.resolve().then(()=>e.load()).catch(e=>{console.error(`Error during router hydration:`,e)});if(h){let t=c[1];t||a(),u(t),t._displayPending=!0,t._nonReactive.displayPendingPromise=g,g.then(()=>{e.batch(()=>{e.stores.status.get()===`pending`&&(e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())),e.updateMatch(t.id,e=>({...e,_displayPending:void 0,displayPendingPromise:void 0}))})})}return l}var z=t(r(),1),B=n();function Qo({promise:e}){if(oe)return oe(e);let t=_n(e);if(t[gn].status===`pending`)throw t;if(t[gn].status===`error`)throw t[gn].error;return t[gn].data}function $o(e){let t=(0,B.jsx)(es,{...e});return e.fallback?(0,B.jsx)(z.Suspense,{fallback:e.fallback,children:t}):t}function es(e){let t=Qo(e);return e.children(t)}function ts(e){let t=e.errorComponent??rs;return(0,B.jsx)(ns,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?z.createElement(t,{error:n,reset:r}):e.children})}var ns=class extends z.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function rs({error:e}){let[t,n]=z.useState(!1);return(0,B.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,B.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,B.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,B.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,B.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,B.jsx)(`div`,{children:(0,B.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,B.jsx)(`code`,{children:e.message}):null})}):null]})}var V=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(V||{});function is({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function as(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var os=[],ss=0,{link:cs,unlink:ls,propagate:us,checkDirty:ds,shallowPropagate:fs}=is({update(e){return e._update()},notify(e){os[ms++]=e,e.flags&=~V.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=V.Mutable|V.Dirty,vs(e))}}),ps=0,ms=0,hs,gs=0;function _s(e){try{++gs,e()}finally{--gs||ys()}}function vs(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=ls(n,e)}function ys(){if(!(gs>0)){for(;ps<ms;){let e=os[ps];os[ps++]=void 0,e.notify()}ps=0,ms=0}}function bs(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?V.None:V.Mutable,get(){return hs!==void 0&&cs(i,hs,ss),i._snapshot},subscribe(e){let t=as(e),n={current:!1},r=xs(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=hs,o=t?.compare??Object.is;if(n)hs=i,++ss,i.depsTail=void 0;else if(e===void 0)return!1;
12n&&(i.flags=V.Mutable|V.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{hs=a,n&&(i.flags&=~V.RecursedCheck),vs(i)}}};return n?(i.flags=V.Mutable|V.Dirty,i.get=function(){let e=i.flags;if(e&V.Dirty||e&V.Pending&&ds(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&fs(e)}}else e&V.Pending&&(i.flags=e&~V.Pending);return hs!==void 0&&cs(i,hs,ss),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(us(e),fs(e),ys())}},i}function xs(e){let t=()=>{let t=hs;hs=n,++ss,n.depsTail=void 0,n.flags=V.Watching|V.RecursedCheck;try{return e()}finally{hs=t,n.flags&=~V.RecursedCheck,vs(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:V.Watching|V.RecursedCheck,notify(){let e=this.flags;e&V.Dirty||e&V.Pending&&ds(this.deps,this)?t():this.flags=V.Watching},stop(){this.flags=V.None,this.depsTail=void 0,vs(this)}};return t(),n}var Ss={get(){},subscribe(){return{unsubscribe(){}}}};function Cs(e,t){let n=z.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=u(n.current,i):i}}function ws(e){let t=o(),n=z.useContext(e.from?Te:Ce),r=e.from?t.stores.getRouteMatchStore(e.from):t.stores.matchStores.get(n),i=Cs(e,t),s=D(r??Ss,e=>e?i(e):Ss);if(s!==Ss)return s;(e.shouldThrow??!0)&&a()}function Ts(e){return ws({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Es(e){let{select:t,...n}=e;return ws({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Ds(e){return ws({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Os(e){return ws({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function ks(e){let t=o();return z.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function As(e){return ws({...e,select:t=>e.select?e.select(t.context):t.context})}var js=class extends wn{constructor(e){super(e),this.useMatch=e=>ws({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>As({...e,from:this.id}),this.useSearch=e=>Os({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>Ds({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Es({...e,from:this.id}),this.useLoaderData=e=>Ts({...e,from:this.id}),this.useNavigate=()=>ks({from:this.fullPath}),this.Link=z.forwardRef((e,t)=>(0,B.jsx)(Ee,{ref:t,from:this.fullPath,...e}))}};function Ms(e){return new js(e)}function Ns(){return e=>Fs(e)}var Ps=class extends Tn{constructor(e){super(e),this.useMatch=e=>ws({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>As({...e,from:this.id}),this.useSearch=e=>Os({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>Ds({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Es({...e,from:this.id}),this.useLoaderData=e=>Ts({...e,from:this.id}),this.useNavigate=()=>ks({from:this.fullPath}),this.Link=z.forwardRef((e,t)=>(0,B.jsx)(Ee,{ref:t,from:this.fullPath,...e}))}};function Fs(e){return new Ps(e)}function Is(e){return new Ls(e,{silent:!0}).createRoute}var Ls=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=Ms(e);return t.isRoot=!1,t},this.silent=t?.silent}};function Rs(e,t){let n,r,i,a,o=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,h(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),s=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(oe)oe(o());else throw o();return z.createElement(r,e)};return s.preload=o,s}function zs(e){let t=o(),n=`not-found-${D(t.stores.location,e=>e.pathname)}-${D(t.stores.status,e=>e)}`;return(0,B.jsx)(ts,{getResetKey:()=>n,onCatch:(t,n)=>{if(k(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(k(t))return e.fallback?.(t);throw t},children:e.children})}function Bs(){return(0,B.jsx)(`p`,{children:`Not Found`})}function Vs(e){return(0,B.jsx)(B.Fragment,{children:e.children})}function Hs(e,t,n){return t.options.notFoundComponent?(0,B.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,B.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,B.jsx)(Bs,{})}var Us=(e,t)=>e.routeId===t.routeId&&e._displayPending===t._displayPending,Ws=(e,t)=>
12e[0]===t[0]&&e[1]===t[1],Gs=z.memo(function({matchId:e}){let t=o(),n=t.stores.matchStores.get(e);n||a();let r=D(t.stores.loadedAt,e=>e),i=D(n,e=>e,Us);return(0,B.jsx)(Ks,{router:t,matchId:e,resetKey:r,matchState:z.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function Ks({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,B.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?z.Suspense:Vs,f=s?ts:Vs,p=l?zs:Vs;return(0,B.jsxs)(i.isRoot?i.options.shellComponent??Vs:Vs,{children:[(0,B.jsx)(Ce.Provider,{value:t,children:(0,B.jsx)(d,{fallback:o,children:(0,B.jsx)(f,{getResetKey:()=>n,errorComponent:s||rs,onCatch:(e,t)=>{if(k(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,B.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return z.createElement(l,e)},children:u||r._displayPending?(0,B.jsx)(ue,{fallback:o,children:(0,B.jsx)(Js,{matchId:t})}):(0,B.jsx)(Js,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(qs,{}),(e.options.scrollRestoration,null)]}):null]})}function qs(){let e=o(),t=z.useRef();return de(()=>{let n=e.stores.resolvedLocation.get(),r=t.current;n&&(!r||r.href!==n.href)&&e.emit({type:`onRendered`,...Ut(e.stores.location.get(),r??n)}),t.current=n},[D(e.stores.resolvedLocation,e=>e?.state.__TSR_key),e]),null}var Js=z.memo(function({matchId:e}){let t=o(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||a();let i=D(r,e=>e),s=i.routeId,c=t.routesById[s],l=z.useMemo(()=>{let e=(t.routesById[s].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:s,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[s,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),u=z.useMemo(()=>{let e=c.options.component??t.options.defaultComponent;return e?(0,B.jsx)(e,{},l):(0,B.jsx)(Ys,{})},[l,c.options.component,t.options.defaultComponent]);if(i._displayPending)throw n(i,`displayPendingPromise`);if(i._forcePending)throw n(i,`minPendingPromise`);if(i.status===`pending`){let e=c.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=y();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return k(i.error)||a(),Hs(t,c,i.error);if(i.status===`redirected`)throw Se(i.error)||a(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return u}),Ys=z.memo(function(){let e=o(),t=z.useContext(Ce),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=D(a,e=>[e?.routeId,e?.globalNotFound??!1],Ws),i=D(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let s=n?e.routesById[n]:void 0,c=e.options.defaultPendingComponent?(0,B.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return s||a(),Hs(e,s,void 0);if(!i)return null;let l=(0,B.jsx)(Gs,{matchId:i});return n===`__root__`?(0,B.jsx)(z.Suspense,{fallback:c,children:l}):l});function Xs(){let e=o(),t=z.useRef({router:e,mounted:!1}),[n,r]=z.useState(!1),i=D(e.stores.isLoading,e=>e),a=D(e.stores.hasPending,e=>e),s=ne(i),c=i||n||a,l=ne(c),u=i||a,d=ne(u);return e.startTransition=e=>{r(!0),z.startTransition(()=>{e(),r(!1)})},z.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return pe(e.latestLocation.publicHref)!==pe(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),de(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),de(()=>{s&&!i&&e.emit({type:`onLoad`,...Ut(e.stores.location.get(),e.stores.resolvedLocation.get())})},[s,e,i]),de(()=>{d&&!u&&e.emit({type:`onBeforeRouteMount`,...Ut(e.stores.location.get(),e.stores.resolvedLocation.get())})},[u,d,e]),de(()=>{if(l&&!c){let t=Ut(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),_s(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[c,l,e]),null}function Zs(){let e=o(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,B.jsx)(t,{}):null,r=(0,B.jsxs)(typeof document<`u`&&e.ssr?Vs:z.Suspense,{fallback:n,children:[(0,B.jsx)(Xs,{}),(0,B.jsx)(Qs,{})]});return e.options.InnerWrap?(0,B.jsx)(e.options.InnerWrap,{children:r}):r}function Qs(){let e=o(),t=D(e.stores.firstId,e=>e),n=D(e.stores.loadedAt,e=>e),r=t?(0,B.jsx)(Gs,{matchId:t}):null;return(0,B.jsx)(Ce.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,B.jsx)(ts,{getResetKey:()=>n,errorComponent:rs,onCatch:void 0,children:r})})}var $s=e=>({createMutableStore:bs,createReadonlyStore:bs,batch:_s}),ec=e=>
12new tc(e),tc=class extends Gt{constructor(e){super(e,$s)}};function nc({router:e,children:t,...n}){b(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,B.jsx)(i.Provider,{value:e,children:t});return e.options.Wrap?(0,B.jsx)(e.options.Wrap,{children:r}):r}function rc({router:e,...t}){return(0,B.jsx)(nc,{router:e,...t,children:(0,B.jsx)(Zs,{})})}function ic(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function ac(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,B.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,B.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,B.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,B.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,B.jsx)(oc,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function oc({attrs:e,children:t,preventScriptHoist:n}){o();let r=E(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(z.useEffect(()=>{if(!i){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();for(let e of document.querySelectorAll(`script[src]`))if(e.src===t)return;let n=document.createElement(`script`);return ic(n,e),document.head.appendChild(n),()=>n.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.querySelectorAll(`script:not([src])`)){if(!(e instanceof HTMLScriptElement))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,ic(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,B.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,B.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,B.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var sc=e=>{let t=o(),n=t.options.ssr?.nonce,r=D(t.stores.matches,e=>e.map(e=>e.meta).filter(e=>e!==void 0),l),i=z.useMemo(()=>{let e=[],t={},i;for(let a=r.length-1;a>=0;a--){let o=r[a];for(let r=o.length-1;r>=0;r--){let a=o[r];if(a)if(a.title)i||={tag:`title`,children:a.title};else if(`script:ld+json`in a)try{let t=JSON.stringify(a[`script:ld+json`]);e.push({tag:`script`,attrs:{type:`application/ld+json`},children:_(t)})}catch{}else{let r=a.name??a.property;if(r){if(t[r])continue;t[r]=!0}e.push({tag:`meta`,attrs:{...a,nonce:n}})}}}return i&&e.push(i),n&&e.push({tag:`meta`,attrs:{property:`csp-nonce`,content:n}}),e.reverse(),e},[r,n]),a=D(t.stores.matches,e=>e.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:n}})),l),s=D(t.stores.matches,r=>{let i=t.ssr?.manifest,a=[];return i?(r.forEach(t=>{i.routes[t.routeId]?.css?.forEach(t=>{let r=Cn(t);a.push({tag:`link`,attrs:{rel:`stylesheet`,...r,crossOrigin:vn(e,`stylesheet`)??r.crossOrigin,suppressHydrationWarning:!0,nonce:n}})})}),i.inlineStyle&&a.push({tag:`style`,attrs:{...i.inlineStyle.attrs,nonce:n},children:i.inlineStyle.children,inlineCss:!0}),a):a},l),c=D(t.stores.matches,r=>{let i=[],a=t.ssr?.manifest;return a&&r.forEach(t=>{a.routes[t.routeId]?.preloads?.forEach(t=>{i.push({tag:`link`,attrs:{...bn(a,t,e),nonce:n}})})}),i},l),u=D(t.stores.matches,e=>e.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`style`,attrs:{...t,nonce:n},children:e})),l),d=D(t.stores.matches,e=>e.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`script`,attrs:{...t,nonce:n},children:e})),l),f=[];return Sn(f,i),f.push(...c),Sn(f,a),f.push(...s),Sn(f,u),Sn(f,d),f};function cc(e){let t=sc(e.assetCrossOrigin),n=o().options.ssr?.nonce;return(0,B.jsx)(B.Fragment,{children:t.map(e=>(0,z.createElement)(ac,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var lc=()=>{let e=o(),t=e.options.ssr?.nonce,n=n=>{let r=[],i=e.ssr?.manifest;if(!i)return[];for(let e of n){let n=i.routes[e.routeId]?.scripts;if(n)for(let e of n)r.push({tag:`script`,attrs:{...e.attrs,nonce:t},children:e.children,...typeof e.attrs?.src==`string`?{preventScriptHoist:!0}:{}})}return r},r=e=>e.map(e=>
12e.scripts).flat(1).filter(Boolean).map(({children:e,...n})=>({tag:`script`,attrs:{...n,suppressHydrationWarning:!0,nonce:t},children:e})),i=D(e.stores.matches,n,l);return uc(e,D(e.stores.matches,r,l),i)};function uc(e,t,n){let r=[...t,...n];return(0,B.jsx)(B.Fragment,{children:r.map((e,t)=>(0,z.createElement)(ac,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}function dc(e){let t=o();return z.useCallback(async(...n)=>{try{let t=await e(...n);if(Se(t))throw t;return t}catch(e){if(Se(e))return e.options._fromLocation=t.stores.location.get(),t.navigate(t.resolveRedirect(e).options);throw e}},[t,e])}function fc(e){return e!==`__proto__`&&e!==`constructor`&&e!==`prototype`}function pc(e,t){let n=Object.create(null);if(e)for(let t of Object.keys(e))fc(t)&&(n[t]=e[t]);if(t&&typeof t==`object`)for(let e of Object.keys(t))fc(e)&&(n[e]=t[e]);return n}function mc(e){if(!e)return Object.create(null);let t=Object.create(null);for(let n of Object.keys(e))fc(n)&&(t[n]=e[n]);return t}var hc=()=>{throw Error(`createServerOnlyFn() functions can only be called on the server!`)},gc=(e,t)=>{let n=t||e||{};n.method===void 0&&(n.method=`GET`);let r=e=>gc(void 0,{...n,validator:e,inputValidator:e});return Object.assign(e=>gc(void 0,{...n,...e}),{options:n,middleware:e=>{let t=[...n.middleware||[]];e.map(e=>{qe in e?e.options.middleware&&t.push(...e.options.middleware):t.push(e)});let r=gc(void 0,{...n,middleware:t});return r[qe]=!0,r},validator:r,inputValidator:r,handler:(...e)=>{let[t,r]=e,i={...n,extractedFn:t,serverFn:r},a=[...i.middleware||[],bc(i)];return t.method=n.method,Object.assign(async e=>{let n=await _c(a,`client`,{...t,...i,data:e?.data,headers:e?.headers,signal:e?.signal,fetch:e?.fetch,context:mc()}),r=ye(n.error);if(r)throw r;if(n.error)throw n.error;return n.result},{...t,method:n.method,__executeServer:async e=>{let n=hc(),r=n.contextAfterGlobalMiddlewares;return await _c(a,`server`,{...t,...e,serverFnMeta:t.serverFnMeta,context:pc(e.context,r),request:n.request}).then(e=>({result:e.result,error:e.error,context:e.sendContext}))}})}})};async function _c(e,t,n){let r=vc([...$e()?.functionMiddleware||[],...e]);if(t===`server`){let e=hc({throwIfNotFound:!1});e?.executedRequestMiddlewares&&(r=r.filter(t=>!e.executedRequestMiddlewares.has(t)))}let i=async e=>{let n=r.shift();if(!n)return e;try{let r=`validator`in n.options?n.options.validator:void 0;!r&&`inputValidator`in n.options&&(r=n.options.inputValidator),r&&t===`server`&&(e.data=await yc(r,e.data));let a;if(t===`client`?`client`in n.options&&(a=n.options.client):`server`in n.options&&(a=n.options.server),a){let t=async(t={})=>{let n=await i({...e,...t,context:pc(e.context,t.context),sendContext:pc(e.sendContext,t.sendContext),headers:Jo(e.headers,t.headers),_callSiteFetch:e._callSiteFetch,fetch:e._callSiteFetch??t.fetch??e.fetch,result:t.result===void 0?t instanceof Response?t:e.result:t.result,error:t.error??e.error});if(n.error)throw n.error;return n},n=await a({...e,next:t});if(Se(n))return{...e,error:n};if(n instanceof Response)return{...e,result:n};if(!n)throw Error(`User middleware returned undefined. You must call next() or return a result in your middlewares.`);return n}return i(e)}catch(t){return{...e,error:t}}};return i({...n,headers:n.headers||{},sendContext:n.sendContext||{},context:n.context||mc(),_callSiteFetch:n.fetch})}function vc(e,t=100){let n=new Set,r=[],i=(e,a)=>{if(a>t)throw Error(`Middleware nesting depth exceeded maximum of ${t}. Check for circular references.`);e.forEach(e=>{e.options.middleware&&i(e.options.middleware,a+1),n.has(e)||(n.add(e),r.push(e))})};return i(e,0),r}async function yc(e,t){if(e==null)return{};if(`~standard`in e){let n=await e[`~standard`].validate(t);if(n.issues)throw Error(JSON.stringify(n.issues,void 0,2));return n.value}if(`parse`in e)return e.parse(t);if(typeof e==`function`)return e(t);throw Error(`Invalid validator type!`)}function bc(e){return{"~types":void 0,options:{inputValidator:e.validator??e.inputValidator,client:async({next:t,sendContext:n,fetch:r,...i})=>{let a={...i,context:n,fetch:r};return t(await e.extractedFn?.(a))},server:async({next:t,...n})=>{let r=await e.serverFn?.(n);return t({...n,result:r})}}}}var xc=(e,t)=>{let n={type:`request`,...t||e},r=e=>xc({},Object.assign(n,{validator:e,inputValidator:e}));return{options:n,middleware:e=>xc({},Object.assign(n,{middleware:e})),validator:r,inputValidator:r,client:e=>xc({},Object.assign(n,{client:e})),server:e=>xc({},Object.assign(n,{server:e}))}};function Sc(e,t){for(let n=0,r=t.length;n<r;n++){let r=t[n];e.has(r)||(e.add(r),r.extends&&Sc(e,r.extends))}}var Cc=e=>({getOptions:async()=>{let t=await e();if(t.serializationAdapters){let e=new Set;Sc(e,t.serializationAdapters),t.serializationAdapters=Array.from(e)}return t},createMiddleware:xc}),wc=xc(),Tc=Cc(()=>({requestMiddleware:[wc]})),Ec=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}
12,Dc=new class extends Ec{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},Oc={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},kc=new class{#e=Oc;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function Ac(e){setTimeout(e,0)}var jc=typeof window>`u`||`Deno`in globalThis;function Mc(){}function Nc(e,t){return typeof e==`function`?e(t):e}function Pc(e){return typeof e==`number`&&e>=0&&e!==1/0}function Fc(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ic(e,t){return typeof e==`function`?e(t):e}function Lc(e,t){return typeof e==`function`?e(t):e}function Rc(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Bc(o,t.options))return!1}else if(!Vc(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function zc(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(H(t.options.mutationKey)!==H(a))return!1}else if(!Vc(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Bc(e,t){return(t?.queryKeyHashFn||H)(e)}function H(e){return JSON.stringify(e,(e,t)=>Gc(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Vc(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>Vc(e[n],t[n])):!1}var Hc=Object.prototype.hasOwnProperty;function Uc(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=Wc(e)&&Wc(t);if(!r&&!(Gc(e)&&Gc(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:Hc.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=Uc(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function Wc(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Gc(e){if(!Kc(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!Kc(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function Kc(e){return Object.prototype.toString.call(e)===`[object Object]`}function qc(e){return new Promise(t=>{kc.setTimeout(t,e)})}function Jc(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:Uc(e,t)}function Yc(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Xc(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Zc=Symbol();function Qc(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Zc?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function $c(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var el=(()=>{let e=()=>jc;return{isServer(){return e()},setIsServer(t){e=t}}})();function tl(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var nl=Ac;function rl(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=nl,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>
12{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var U=rl(),il=new class extends Ec{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function al(e){return Math.min(1e3*2**e,3e4)}function ol(e){return(e??`online`)===`online`?il.isOnline():!0}var sl=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function cl(e){let t=!1,n=0,r,i=tl(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new sl(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>Dc.isFocused()&&(e.networkMode===`always`||il.isOnline())&&e.canRun(),u=()=>ol(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(el.isServer()?0:3),o=e.retryDelay??al,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),qc(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var ll=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Pc(this.gcTime)&&(this.#e=kc.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(el.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(kc.clearTimeout(this.#e),this.#e=void 0)}};function W(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{$c(e,()=>t.signal,()=>n=!0)},u=Qc(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?Xc:Yc;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?dl:ul,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:ul(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function ul(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function dl(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var fl=class extends ll{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=hl(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=hl(this.options);e.data!==void 0&&(this.setState(ml(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=Jc(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Mc).catch(Mc):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Lc(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Zc||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
12Count>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Ic(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!Fc(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=Qc(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?W(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=cl({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof sl&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof sl){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...pl(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...ml(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),U.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function pl(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ol(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function ml(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function hl(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdate
12Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var gl=class extends ll{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||_l(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=cl({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),U.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function _l(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var vl=class extends Ec{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new gl({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=yl(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=yl(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=yl(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>
12e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=yl(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){U.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>zc(t,e))}findAll(e={}){return this.getAll().filter(t=>zc(e,t))}notify(e){U.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return U.batch(()=>Promise.all(e.map(e=>e.continue().catch(Mc))))}};function yl(e){return e.options.scope?.id}var bl=class extends Ec{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??Bc(r,t),a=this.get(i);return a||(a=new fl({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){U.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Rc(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Rc(e,t)):t}notify(e){U.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){U.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){U.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},xl=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new bl,this.#t=e.mutationCache||new vl,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Dc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=il.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ic(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=Nc(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return U.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;U.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return U.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=U.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(Mc).catch(Mc)}invalidateQueries(e,t={}){return U.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=U.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Mc)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(Mc)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(Ic(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Mc).catch(Mc)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Mc).catch(Mc)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return il.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(H(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{Vc(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(H(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{Vc(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=Bc(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===Zc&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Sl=z.createContext(void 0),Cl=({client:e,children:t})=>(z.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,B.jsx)(Sl.Provider,{value:e,children:t})),wl=`/assets/styles-CTqJdJM1.css`;function Tl(e,t={}){typeof window>`u`||window.__lovableEvents?.captureException?.(e,{source:`react_error_boundary`,route:window.location.pathname,...t},{mechanism:`react_error_boundary`,handled:!1,severity:`error`})}var El=c(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Dl=c(`linkedin`,[[`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`}]]),Ol=c(`mail`,[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}
12],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]),kl=c(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),Al=c(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),jl={Products:`Produtos`,Sectors:`Setores`,Resources:`Recursos`,About:`Sobre`,"Wastewater Treatment":`Tratamento de Ãguas Residuais`,"Organic Waste & Biogas":`ResÃduos Orgânicos & Biogás`,"Case Studies":`Casos de Estudo`,"Case studies":`Casos de estudo`,"News & press":`NotÃcias & imprensa`,"Result:":`Resultado:`,"Challenge:":`Desafio:`,"Solution:":`Solução:`,"Improved amonia removal at lower energy consumption; Environmental compliance consistently achieved.":`Melhoria na remoção de amónia com menor consumo de energia; Conformidade ambiental alcançada consistentemente.`,"Demonstrate UPWATER⢠effectiveness in an industrial wastewater facility.":`Demonstrar a eficácia da UPWATER⢠numa instalação de águas residuais industriais.`,"UPWATER⢠deployed for predictive process optimisation.":`UPWATER⢠implementada para otimização preditiva de processos.`,"Proven results. Real plants.":`Resultados comprovados. Instalações reais.`,"Measurable impact.":`Impacto mensurável.`,"See how utilities and industrial operators are using AIS to cut costs, reduce risk, and improve operational performance.":`Veja como as concessionárias e operadores industriais estão a usar a AIS para reduzir custos, diminuir riscos e melhorar o desempenho operacional.`,"Featured deployments":`Implementações em destaque.`,"Read full case study":`Ler caso de estudo completo`,"Ready to optimise your":`Pronto para otimizar a sua`,"plant?":`instalação?`,"What partners say":`O que dizem os parceiros`,"Industrial Wastewater · Portugal":`Ãguas Residuais Industriais · Portugal`,"Industrial Wastewater · Spain · Food & Beverage":`Ãguas Residuais Industriais · Espanha · Alimentação e Bebidas`,"UPWATER⢠pilot in industrial wastewater with a chemical company.":`Projeto-piloto UPWATER⢠em águas residuais industriais com uma empresa quÃmica.`,"UPWATER⢠pilot deployment.":`Implementação de projeto-piloto UPWATERâ¢.`,"News &":`NotÃcias &`,Press:`Imprensa`,"Announcements, awards and media coverage from AIS - building the digital backbone of the circular bioeconomy.":`Anúncios, prémios e cobertura mediática da AIS - a construir a base digital da bioeconomia circular.`,All:`Todos`,"Press Releases":`Comunicados de Imprensa`,Awards:`Prémios`,Projects:`Projetos`,Media:`Media`,"Press Release":`Comunicado de Imprensa`,Award:`Prémio`,Project:`Projeto`,"Read more â":`Ler mais â`,"Stay updated on":`Mantenha-se atualizado sobre a`,"water innovation":`inovação na água`,"join our bi-monthly newsletter.":`e junte-se à nossa newsletter bimestral.`,"Thanks â you're on the list. Check your inbox to confirm.":`Obrigado â já está na lista. Verifique a sua caixa de entrada para confirmar.`,Subscribe:`Subscrever`,"and consent to receive the AIS newsletter.":`e consinto receber a newsletter da AIS.`,"July 2026":`Julho 2026`,"June 2026":`Junho 2026`,"May 2026":`Maio 2026`,"November 2023":`Novembro 2023`,"July 2023":`Julho 2023`,"May 2023":`Maio 2023`,"March 2023":`Março 2023`,"February 2023":`Fevereiro 2023`,"October 2022":`Outubro 2022`,"July 2022":`Julho 2022`,"June 2022":`Junho 2022`,"April 2022":`Abril 2022`,"March 2022":`Março 2022`,"September 2021":`Setembro 2021`,"May 2019":`Maio 2019`,"September 2018":`Setembro 2018`,"AIS to lead digital intelligence layer in a â¬23.19M Horizon Europe flagship biorefinery project":`AIS lidera camada de inteligência digital em projeto emblemático de biorrefinaria da Horizon Europe de 23,19 Mâ¬`,"AIS will design the AI-powered predictive control system for Europe's first industrial-scale biorefinery converting urban waste into bioplastics and cellulose.":`A AIS irá projetar o sistema de controlo preditivo alimentado por IA para a primeira biorrefinaria à escala industrial da Europa a converter resÃduos urbanos em bioplásticos e celulose.`,"AIS joins Horizon Europe PHACTUS Consortium to advance biodegradable bioplastics":`AIS junta-se ao Consórcio PHACTUS da Horizon Europe para avançar com bioplásticos biodegradáveis`,"AIS brings digital intelligence to a European project transforming PHA bioplastic production from batch to continuous manufacturing.":`A AIS traz inteligência digital a um projeto europeu que transforma a produção de bioplásticos PHA de fabrico por lotes em fabrico contÃnuo.`,"AIS secures â¬200K grant to accelerate AI integration into UPWATERâ¢":`AIS garante subvenção de 200 mil euros para acelerar a integração da IA na UPWATERâ¢`,"Portuguese national funding under the PRR / NextGenerationEU backs AIS's transition to a fully scalable SaaS digital twin platform.":`Financiamento nacional português ao abrigo do PRR / NextGenerationEU apoia a transição da AIS para uma plataforma de gémeos digitais SaaS totalmente escalável.`,"Altice Innovation â Finalist":`Altice Innovation â Finalista`,'(PT) Featured on Antena 1 â "90 Segundos de Ciência"':`Destaque na Antena 1 â "90 Segundos de Ciência"`,"Featured by Impact Shakers on Pioneers Post":`Destaque da Impact Shakers no Pioneers Post`,"Press release â Impact Shakers spotlight":`Comunicado de imprensa â destaque da Impact Shakers`,"Winner â DIT Business Award (Business Development category)":`Vencedor â DIT Business Award (categoria de Desenvolvimento de Negócios)`,"Winner â DYDAS EU Call for Ideas Contest":`Vencedor â DYDAS EU Call for Ideas Contest`,"Winner â Crédito AgrÃcola Prize (Circular Economy & Sustainable Biotechnology) with Phos2Recycle":`Vencedor â Prémio Crédito AgrÃcola (Economia Circular e Biotecnologia Sustentável) com o Phos2Recycle`,"Winner â Metabuilding 2nd Seed Call":`Vencedor â Metabuilding 2nd Seed Call`,'Winner â Prémios Verdes da Visão (special "PALOP" category) with Phos-Value':`Vencedor â Prémios Verdes da Visão (categoria especial "PALOP") com o Phos-Value`,"(PT) Press release in Ambiente Magazine":`Comunicado de imprensa na Ambiente Magazine`,"Winner â DIT Business Award (Scientific Innovation category)":`Vencedor â DIT Business Award (categoria de Inovação CientÃfica)`,"3rd place â Ãguas de Portugal Innovation Challenge":`3º lugar â Ãguas de Portugal Innovation Challenge`,'(PT) Winner â "O Melhor do Portugal Tecnológico" (Exame Informática), Softw
12are category':`Vencedor â "O Melhor do Portugal Tecnológico" (Exame Informática), categoria de Software`,"(PT) Press release in Exame Informática â Visão":`Comunicado de imprensa na Exame Informática â Visão`,"News & Press":`NotÃcias & Imprensa`,"Our Story":`A Nossa História`,Partners:`Parceiros`,Contact:`Contactos`,"Talk to an Expert":`Falar com um Especialista`,"Explore products":`Explorar produtos`,"Learn more":`Saber mais`,"Read more":`Ler mais`,"Get in touch":`Fale connosco`,"Contact us":`Contacte-nos`,Home:`InÃcio`,"Privacy Policy":`PolÃtica de Privacidade`,"Cookie Policy":`PolÃtica de Cookies`,"Email address *":`Endereço de email *`,"I have read the":`Li a`,"Please enter a valid email address.":`Introduza um endereço de email válido.`,"Something went wrong. Please try again.":`Algo correu mal. Por favor, tente novamente.`,"Sendingâ¦":`A enviarâ¦`,"Predictive intelligence for wastewater treatment and resource recovery.":`Inteligência preditiva para o tratamento de águas residuais e recuperação de recursos.`},Ml={"Trusted by leading utilities and operators":`Utilizadas por operadores e empresas de água de referência`,"<10 weeks":`<10 semanas`,"Predictive Water & Resource Recovery Intelligence":`Inteligência Preditiva para Ãgua e Recursos`,"Predictive intelligence for":`Inteligência preditiva para`,wastewater:`águas residuais`,optimization:`otimização`,"& resource":`& recursos`,"recovery.":`recuperação.`,"AIS turns complex biological processes into controlled, profitable operations. Lower costs, full compliance, from week one.":`A AIS transforma processos biológicos complexos em operações controladas e rentáveis. Custos mais baixos, conformidade total, des
12de a primeira semana.`,"Talk to an Expert":`Falar com um Especialista`,"Explore products":`Explorar produtos`,"Live digital twin":`Gémeo digital em tempo real`,"Year 1, per plant":`Ano 1, por instalação`,"OPEX reduction":`Redução do OPEX`,"Aeration energy":`Energia de arejamento`,"Time to value":`Tempo até ao valor`,"See what AIS can deliver at":`Veja o que a AIS pode oferecer à `,"your facility.":`sua instalação.`,"30-minute tailored walkthrough. No commitment. Talk with an engineer who's deployed on plants like yours.":`Apresentação personalizada de 30 minutos. Sem compromisso. Fale com um engenheiro que já implementou soluções em instalações como a sua.`,"Why AIS":`Porquê a AIS`,"Traditional approach vs":`Abordagem tradicional vs`,"AIS Intelligence":`Inteligência AIS`,"Traditional approach":`Abordagem tradicional`,"PROCESS MONITORING\xA0&\xA0CONTROL":`MONITORIZAÃÃO\xA0&\xA0CONTROLO DE PROCESSO`,"Fragmented data and single points monitoring. Reactive process control, addressing issues only after occuring":`Dados fragmentados e monitorização em pontos isolados. Controlo reativo do processo, resolvendo problemas apenas depois de ocorrerem`,"Actionable insights and continuous predictive optimization, catching instability early, before routine sampling detects it":`Informação acionável e otimização preditiva contÃnua, detetando instabilidade precocemente, antes de a amostragem de rotina a identificar`,Sensors:`Sensores`,"Dependent on costly multiple probes":`Dependente de múltiplas sondas dispendiosas`,"Detects the life and reliability of existing sensors, detecting faults via virtual sensing":`Deteta a vida útil e fiabilidade dos sensores existentes, identificando falhas através de sensorização virtual`,Expertise:`Conhecimento especializado`,"Institutional knowledge walks out the door with staff turnover":`O conhecimento institucional perde-se com a rotatividade de pessoal`,"Turns know-how into actionable KPIs, so expertise stays with the plant, not just the operator":`Transforma o know-how em KPIs acionáveis, para que o conhecimento fique na instalação e não apenas no operador`,"Resource recovery":`Recuperação de recursos`,"Limited by process instability":`Limitada pela instabilidade do processo`,"Ensures process stability, leading to consistent higher-quality biogas, biofertilisers and bioplastics recovery":`Garante a estabilidade do processo, resultando numa recuperação consistente de biogás, biofertilizantes e bioplásticos de maior qualidade`,"Energy efficiency":`Eficiência energética`,"Manual, energy-intensive adjustments with no continuous optimization":`Ajustes manuais e energeticamente intensivos, sem otimização contÃnua`,"Reduces energy usage through continuous optimization, without manual retuning":`Reduz o consumo de energia através de otimização contÃnua, sem necessidade de reajustes manuais`,Compliance:`Conformidade`,"Retrospective reporting and full compliance struggles at peak events":`Relatórios retrospetivos e dificuldades em garantir a conformidade total em picos de carga`,"Allows early warning detection, giving operators time to act before a peak event compromises compliance":`Permite a deteção precoce de alertas, dando tempo aos operadores para agir antes que um pico comprometa a conformidade`,"Deployed in weeks, working alongside existing infrastructure":`Implementado em semanas, funcionando em conjunto com a infraestrutura existente`,"Powered by proprietary models backed by 30+ years of scientific research.":`Suportado por modelos proprietários baseados em mais de 30 anos de investigação cientÃfica.`,"Thank you!":`Obrigado!`,"Our team will be in touch within 2 business days.":`A nossa equipa entrará em contacto no prazo de 2 dias úteis.`,Close:`Fechar`,"Tell us about your facility and we'll set up a tailored walkthrough.":`Conte-nos sobre a sua instalação e organizaremos uma apresentação personalizada.`,"First name *":`Primeiro nome *`,"Last name *":`Ãltimo nome *`,"Work email *":`Email profissional *`,"Company *":`Empresa *`,"Facility type *":`Tipo de instalação *`,"Selectâ¦":`Selecionarâ¦`,"Urban WWTP":`ETAR Urbana`,"Industrial WWTP":`ETAR Industrial`,"Biogas Facility":`Instalação de Biogás`,"Food & Beverage":`Alimentar & Bebidas`,Other:`Outro`,"Country *":`PaÃs *`,Message:`Mensagem`,"Describe your facility or question":`Descreva a sua instalação ou questão`,"I agree to the":`Concordo com a`,"Privacy Policy":`PolÃtica de Privacidade`,"and consent to my data being used to schedule a demo.":`e consinto a utilização dos meus dados para agendar uma demonstração.`,"Book My Demo":`Marcar a Minha Demonstração`,"Your brochure is on its way!":`A sua brochura está a caminho!`,"Check your inbox.":`Verifique a sua caixa de correio.`,"See how UPWATER⢠works":`Veja como funciona a UPWATERâ¢`,"Fill in your details and we'll send you the product brochure.":`Preencha os seus dados e enviaremos a brochura do produto.`,"Name *":`Nome *`,"and consent to receive the requested document.":`e consinto receber o documento solicitado.`,"I agree to re
12ceive the AIS newsletter and updates.":`Concordo em receber a newsletter e atualizações da AIS.`,"Download Brochure":`Descarregar Brochura`,"We use cookies to improve your experience and analyse site traffic. You can accept all cookies or manage your preferences.":`Utilizamos cookies para melhorar a sua experiência e analisar o tráfego do site. Pode aceitar todos os cookies ou gerir as suas preferências.`,"Accept All":`Aceitar Todos`,"Manage Preferences":`Gerir Preferências`,"Improved amonia removal at lower energy consumption; Environmental compliance consistently achieved.":`Remoção de amónia melhorada com menor consumo de energia; Conformidade ambiental consistentemente alcançada.`,"Reduced energy consumption in aeration; Resource efficiency supporting circular economy goals.":`Redução do consumo de energia na arejamento; Eficiência de recursos apoiando objetivos de economia circular.`},Nl={Products:`Produtos`,"Two platforms.":`Duas plataformas.`,"One mission.":`Uma missão.`,"AIS builds predictive intelligence platforms that turn complex biological processes into controlled, profitable operations, tailored for wastewater treatment and resource recovery.":`A AIS cria plataformas de inteligência preditiva que transformam processos biológicos complexos em operações controladas e rentáveis, adaptadas ao tratamento de águas residuais e à recuperação de recursos.`,"Predictive intelligence for wastewater plants":`Inteligência preditiva para ETARs`,"The digital twin platform that optimises treatment plant performance using data you already have. No new sensors. Deployed in weeks.":`A plataforma de gémeo digital que otimiza o desempenho da estação de tratamento com os dados que já possui. Sem novos sensores. Implementada em semanas.`,"Cut OPEX by up to 50%":`Reduza o OPEX em até 50%`,"20â70% aeration energy reduction":`Redução de 20â70% na energia de arejamento`,"100% regulatory compliance":`100% de conformidade regulamentar`,"Predictive intelligence for resource recovery":`Inteligência preditiva para recuperação de recursos`,"Maximise biomethane yield and stabilise anaerobic digestion using data your facility already generates. Deployed in weeks.":`Maximize o rendimento de biometano e estabilize a digestão anaeróbia com os dados que a sua instalação já gera. Implementada em semanas.`,"Higher biomethane yields":`Maiores rendimentos de biometano`,"Stable, predictable digestion":`Digestão estável e previsÃvel`,"Reduced downtime and risk":`Menos paragens e risco`,"Learn more":`Saiba mais`,"UPWATERâ¢":`UPWATERâ¢`,"Cut water management costs by up to":`Reduza os custos de gestão da água em até`,"50%":`50%`,"- deployed in weeks.":`- implementado em semanas.`,"UPWATER⢠is the digital twin platform that optimises treatment plant performance using data you already have. No new sensors. No lengthy implementation.":`A UPWATER⢠é a plataforma de gémeo digital que otimiza o desempenho da estação de tratamento com os dados que já possui. Sem novos sensores. Sem implementações demoradas.`,"See how it works":`Veja como funciona`,"THE CHALLENGE":`O DESAFIO`,"Wastewater operations are under unprecedented pressurebeing pushed to their limit":`As operações de águas residuais enfrentam uma pressão sem precedentes levadas ao seu limite`,"Six structural pressures are reshaping every facility.":`Seis pressões estruturais estão a transformar cada instalação.`,"Wastewater treatment infrastru
12cture":`Infraestrutura de tratamento de águas residuais`,"Today on the plant floor":`Hoje, no terreno da ETAR`,"Decisions made on lagging data, harder to retain specialised expertise, under tighter rules.":`Decisões tomadas com dados desatualizados, maior dificuldade em reter especialização técnica, sob regras mais rigorosas.`,"Rising operational costs":`Aumento dos custos operacionais`,"Energy and chemicals costs climbing year over year.":`Os custos de energia e reagentes quÃmicos sobem ano após ano.`,"Tighter regulations":`Regulamentação mais rigorosa`,"Stricter limits on pollutant discharge concentrations.":`Limites mais rigorosos nas concentrações de descarga de poluentes.`,"Technician shortage":`Escassez de técnicos`,"Specialised expertise is not always easy to find.":`A especialização técnica nem sempre é fácil de encontrar.`,"Reactive monitoring":`Monitorização reativa`,"Operational deviations are only detected after they impact the process.":`Os desvios operacionais só são detetados depois de impactarem o processo.`,"Energy intensive":`Elevado consumo energético`,"Aeration dominates plant energy use.":`O arejamento domina o consumo energético da estação.`,"Resource recovery":`Recuperação de recursos`,"Growing regulatory obligations for nutrient and resource recovery.":`Obrigações regulamentares crescentes para a recuperação de nutrientes e recursos.`,"Traditional monitoring is reactive.":`A monitorização tradicional é reativa.`,"turns it predictive.":`torna-a preditiva.`,"What UPWATER⢠Delivers":`O que a UPWATER⢠Oferece`,"A complete platform for predictable, profitable operations.":`Uma plataforma completa para operações previsÃveis e rentáveis.`,"Digital Tools & Process Intelligence":`Ferramentas Digitais e Inteligência de Processo`,"Data-driven and mechanistic models integrating biological, chemical and physical mechanisms":`Modelos orientados por dados e mecanÃsticos, integrando mecanismos biológicos, quÃmicos e fÃsicos`,"Makes processes predictable and controllable":`Torna os processos previsÃveis e controláveis`,"Virtual sensors reduce dependency on costly hardware probes":`Sensores virtuais reduzem a dependência de sondas de hardware dispendiosas`,"Process Optimisation & Control":`Otimização e Controlo de Processos`,"15â50% OPEX reduction":`Redução de 15â50% no OPEX`,"20â70% energy reduction (aeration)":`Redução de 20â70% na energia (arejamento)`,"Biomethane yields >0.28 Nm³ CHâ per kg COD removed":`Rendimentos de biometano >0,28 Nm³ CHâ por kg de CQO removido`,"Continuous regulatory compliance monitoring":`Monitorização contÃnua de conformidade regulamentar`,"De-risking Scale-up":`Redução de Risco na Expansão`,"â¬4M avoided in premature plant expansion":`4M⬠evitados em expansões prematuras da instalação`,"Actionable insights within 8 to 10 weeks":`Resultados concretos em 8 a 10 semanas`,"Ready to optimise your plant?":`Pronto para otimizar a sua ETAR?`,"Talk to an Expert":`Falar com um Especialista`,Deployment:`Implementação`,"From data to decisions in three guided steps.":`Dos dados à s decisões em três etapas guiadas.`,"Data collection & fine-tuning":`Recolha de dados e afinação`,"Historical operational data is analysed, cleaned and validated using advanced algorithms, without disrupting ongoing operations.":`Os dados operacionais históricos são analisados, limpos e validados através de algoritmos avançados, sem interromper as operações em curso.`,"Weeks 1â4":`Semanas 1â4`,"Flow rate":`Caudal`,pH:`pH`,Temperature:`Temperatura`,COD:`CQO`,TKN:`NTK`,"Total phosphorus":`Fósforo total`,"Configuration & start-up":`Configuração e arranque`,"UPWATER⢠digitally replicates existing treatment infrastru
12cture and starts simulations using historical and online operational data.":`A UPWATER⢠replica digitalmente a infraestrutura de tratamento existente e inicia simulações com dados operacionais históricos e online.`,"Weeks 5â8":`Semanas 5â8`,"Digital twin calibration":`Calibração do gémeo digital`,"Live data ingestion":`Ingestão de dados em tempo real`,"Model validation":`Validação do modelo`,"SCADA integration":`Integração com SCADA`,"Step-by-step guidance":`Orientação passo a passo`,"Operators receive dashboards, scenario simulations and clear operational recommendations to improve performance daily.":`Os operadores recebem painéis de controlo, simulações de cenários e recomendações operacionais claras para melhorar o desempenho diariamente.`,Ongoing:`ContÃnuo`,"Operational dashboards":`Painéis operacionais`,"Predictive alerts":`Alertas preditivos`,"Prescriptive actions":`Ações prescritivas`,"Continuous tuning":`Afinação contÃnua`,"Ready to optimise your":`Pronto para otimizar a sua`,"plant?":`ETAR?`,UPWASTE:`UPWASTE`,"Predictive intelligence for":`Inteligência preditiva para`,"resource recovery.":`recuperação de recursos.`,"Stabilise anaerobic digestion, maximise biogas yield and reduce downtime, using the data your facility already generates.":`Estabilize a digestão anaeróbia, maximize o rendimento de biogás e reduza as paragens, com os dados que a sua instalação já gera.`,"See how UPWASTE works":`Veja como funciona a UPWASTE`,"Anaerobic digestion plants are leaving biogas yield on the table, every day.":`As centrais de digestão anaeróbia perdem rendimento de biogás todos os dias.`,"Four structural challenges are limiting recovery potential in anaerobic digestion.":`Quatro desafios estruturais estão a limitar o potencial de recuperação na digestão anaeróbia.`,"Biogas facility infrastructure":`Infraestrutura de instalação de biogás`,"Today in the facility":`Hoje, na instalação`,"Unpredictable feedstock availability, reactive control, and untapped recovery potential.":`Disponibilidade imprevisÃvel de matéria-prima, controlo reativo e potencial de recuperação por explorar.`,"Feedstock composition":`Composição da matéria-prima`,"Anaerobic digestion is highly sensitive to feedstock composition. Small variations cause significant yield loss, increase operational risk and impact revenues.":`A digestão anaeróbia é altamente sensÃvel à composição da matéria-prima. Pequenas variações causam perdas significativas de rendimento, aumentam o risco operacional e impactam as receitas.`,"Blind spot monitoring":`Monitorização de pontos cegos`,"Microbial community shifts are invisible in real time. Most AD plants only detect problems once quality control analyses confirm them, by which point yield loss has already occurred.":`As mudanças na comunidade microbiana são invisÃveis em tempo real. A maioria das centrais de DA só deteta problemas quando as análises de controlo de qualidade os confirmam, altura em que a perda de rendimento já ocorreu.`,"Regulatory pressure":`Pressão regulamentar`,"Growing requirements for resource recovery, renewable energy contribution and biomethane quality standards.":`Requisitos crescentes para a recuperação de recursos, contribuição de energia renovável e padrões de qualidade do biometano.`,"Performance benchmarking":`Benchmarking de desempenho`,"No current performance benchmarking. Every digester runs on a different waste mix, making it harder to know how much yield is achievable, let alone how much is being left behind.":`Sem benchmarking de desempenho atual. Cada digestor funciona com uma mistura de resÃduos diferente, dificultando saber qual o rendimento alcançável, quanto mais o que está a ser desperdiçado.`,"Even well-run digesters leave revenue on the table. UPWASTE\xA0shows you where.\xA0":`Mesmo digestores bem geridos perdem receita. A UPWASTE\xA0mostra onde.\xA0`,"What UPWASTE Delivers":`O que a UPWASTE Oferece`,"A complete platform for predictable, profitable biogas, PHA and other high value operations.":`Uma plataforma completa para operações previsÃveis e rentáveis de biogás, PHA e outros produtos de elevado valor.`,"Predictive Process Intelligence":`Inteligência Preditiva de Processo`,"Data-driven and mechanistic models calibrated for anaerobic digestion processes":`Modelos orientados por dados e mecanÃsticos calibrados para processos de digestão anaeróbia`,"Integrates biological, chemical and physical mechanisms specific to biogas production":`Integra mecanismos biológicos, quÃmicos e fÃsicos especÃficos da produção de biogás`,"Makes feedstock variability predictable and manageable":`Torna a variabilidade da matéria-prima previsÃvel e gerÃvel`,"Yield Optimisation & Control":`Otimização e Controlo do Rendimento`,"Maximises biomethane yield: >0.28 Nm³ CHâ per kg COD removed":`Maximiza o rendimento de biometano: >0,28 Nm³ CHâ por kg de CQO removido`,"Optimises feeding strategies based on online feedstock variability":`Otimiza as estratég
12ias de alimentação com base na variabilidade da matéria-prima online`,"Stabilises digestion and reduces process instability":`Estabiliza a digestão e reduz a instabilidade do processo`,"Operational Resilience":`Resiliência Operacional`,"Reduces downtime through predictive maintenance and anomaly detection":`Reduz paragens através de manutenção preditiva e deteção de anomalias`,"Supports regulatory compliance for biomethane injection and sustainability reporting":`Apoia a conformidade regulamentar para injeção de biometano e relatórios de sustentabilidade`,"Additional client metrics coming soon":`Métricas adicionais de clientes brevemente`,"From data to optimised yield in three guided steps.":`Dos dados ao rendimento otimizado em três etapas guiadas.`,"UPWASTE digitally replicates existing anaerobic digestion infrastructure and starts simulations using historical and online operational data.":`A UPWASTE replica digitalmente a infraestrutura de digestão anaeróbia existente e inicia simulações com dados operacionais históricos e online.`,"Operators receive dashboards, scenario simulations and clear operational recommendations to maximise yield and recovery daily.":`Os operadores recebem painéis de controlo, simulações de cenários e recomendações operacionais claras para maximizar o rendimento e a recuperação diariamente.`,"Ready to maximise your":`Pronto para maximizar o seu`,"resource recovery?":`recuperação de recursos?`,"WEEKS 1â4":`SEMANAS 1â4`,"WEEKS 5â8":`SEMANAS 5â8`,ONGOING:`CONTÃNUO`},Pl={Sectors:`Setores`,"Built for the operators shaping Europe's water and resource recovery.":`ConstruÃdo para os operadores que moldam a água e a valorização de recursos na Europa.`,"For different sectors and its challenges, AIS provides different solutions and tailor made approaches.":`Para diferentes setores e os seus desafios, a AIS disponibiliza soluções distintas e abordagens à medida.`,"Talk to an expert":`Falar com um especialista`,"Tell us about your facility. Our team will be in touch within 2 business days.":`Fale-nos sobre a sua instalação. A nossa equipa entrará em contacto no prazo de 2 dias úteis.`,"The challenge":`O desafio`,"AIS solution":`Solução AIS`,Industries:`Indústrias`,"Municipal utilities":`Serviços municipais`,"Food & beverage":`Alimentação e bebidas`,Dairy:`LaticÃnios`,"Animal by-products":`Subprodutos animais`,"Pulp & paper":`Pasta e papel`,Chemicals:`QuÃmica`,"Agri-food waste":`ResÃduos agroalimentares`,"Manure & livestock":`Estrume e pecuária`,"Sewage sludge":`Lamas de ETAR`,"Municipal organic waste":`ResÃduos orgânicos municipais`,"Breweries & distilleries":`Cervejeiras e destilarias`,"Case study:":`Caso de estudo:`,"Talk to an Expert":`Falar com um Especialista`,"I agree to the":`Concordo com a`,"Privacy Policy":`PolÃtica de Privacidade`,"and consent to my data being used to schedule a demo.":`e consinto que os meus dados sejam utilizados para agendar uma demonstração.`,"Wastewater Treatment":`Tratamento de Ãguas Residuais`,"Smarter operations for urban and industrial wastewater operators":`Operações mais inteligentes para operadores de águas residuais urbanas e industriais`,"Discharge compliance under tightening regulation":`Conformidade das descargas face a uma regulamentação cada vez mais exigente`,"Rising OPEX and energy costs":`Aumento dos custos operacionais e de energia`,"Operator shortage and knowledge loss":`Escassez de operadores e perda de conhecimento`,"Ageing infrastructure":`Infraestruturas envelhecidas`,"Predictive control, virtual sensors and a plant-wide digital twin that keep discharge within limits while cutting energy and reagent spend.":`Controlo preditivo, sensores virtuais e um gémeo digital de toda a instalação que mantêm as descargas dentro dos limites, reduzindo os gastos com energia e reagentes.`,"Explore UPWATERâ¢":`Explorar a UPWATERâ¢`,"ETSA pilot (2025)":`Projeto-piloto ETSA (2025)`,"Organic Waste & Biogas":`ResÃduos Orgânicos e Biogás`,"Turn organic waste into measurable value":`Transforme resÃduos orgânicos em valor mensurável`,"Feedstock variability across different seasons":`Variabilidade da matéria-prima ao longo das estações`,"Yield unpredictability and unstable biogas output":`Imprevisibilidade do rendimento e produção instável de biogás`,"Scale-up and commissioning risk":`Risco de escalonamento e arranque`,"Regulatory and sustainability reporting":`Relato regulatório e de sustentabilidade`,"Predictive digestion control and yield optimisation that stabilise output, protect the digester and turn variability into a controllable input.":`Controlo preditivo da digestão e otimização do rendimento que estabilizam a produção, protegem o digestor e transformam a variabilidade num fator controlável.`,"Explore UPWASTE":`Explorar a UPWASTE`,"Case study â coming soon":`Caso de estudo â brevemente`,"Thank you!":`Obrigado!`,"Our team will be in touch within 2 business days.":`A nossa equipa entrará em contacto no prazo de 2 dias úteis.`,Close:`Fechar`,"First name":`Nome próprio`,"Last name":`Apelido`,"Work email":`Email profissional`,Company:`Empresa`,"Facility type":`Tipo de instalação`,"Selectâ¦":`Selecionarâ¦`,"Urban WWTP":`ETAR urbana`,"Industrial WWTP":`ETAR industrial`,"Biogas Facility":`Instalação de biogás`,"Food & Beverage":`Alimentação e bebidas`,Other:`Outro`,Country:`PaÃs`,"Message (optional)":`Mensagem (opcional)`,"Describe your facility or question":`Descreva a sua instalação ou questão`,"Book My Demo":`Marcar a Minha Demonstração`,"Please enter your first name.":`Por favor, indique o seu nome próprio.`,"Please enter your last name.":`Por favor, indique o seu apelido.`,"Please enter a valid work email.":`Por favor, indique um email profissional válido.`,"Please enter your company.":`Por favor, indique a sua empresa.`,"Please select a facility type.":`Por favor, selecione o tipo de instalação.`,"Please enter your country.":`Por favor, indique o seu paÃs.`,"Message is too long (max 1000 characters).":`A mensagem é demasiado longa (máximo de 1000 caracteres).`,"Please accept the Privacy Policy to continue."
12:`Por favor, aceite a PolÃtica de Privacidade para continuar.`},Fl={"Our Story":`A Nossa História`,"Built on":`ConstruÃdo sobre`,science:`ciência`,"Driven by impact.":`Impulsionado pelo impacto.`,"We turn 30+ years of environmental bioengineering research into AI-powered digital twins that make wastewater treatment and bioproducst recovery predictable, efficient and profitable.":`Transformamos mais de 30 anos de investigação em bioengenharia ambiental em gémeos digitais com inteligência artificial que tornam o tratamento de águas residuais e a recuperação de bioprodutos previsÃveis, eficientes e rentáveis.`,Founded:`Fundação`,Headquartered:`Sede`,"Backed by":`Apoiado por`,"Scientific foundation":`Base cientÃfica`,"Sectors served":`Setores servidos`,"Urban WW · Industrial WW · Organic waste":`Ãguas Residuais Urbanas · Ãguas Residuais Industriais · ResÃduos orgânicos`,"Who we are":`Quem somos`,"A deep-tech company":`Uma empresa deep-tech`,"born inside a lab":`nascida dentro de um laboratório`,"The AIS team in the lab where our models were born.":`A equipa da AIS no laboratório onde os nossos modelos nasceram.`,"was founded in":`foi fundada em`,"as a spin-off from":`como spin-off da`,"co-founded with":`co-fundada com`,"a specialist in turning deep-tech science into scalable intellectual property.":`uma especialista em transformar ciência deep-tech em propriedade intelectual escalável.`,"The company brings together a multidisciplinary team with more than":`A empresa reúne uma equipa multidisciplinar com mais de`,"30 years of combined experience":`30 anos de experiência combinada`,"in environmental and industrial bioengineering, and mathematical modelling of biological processes.":`em bioengenharia ambiental e industrial, e modelação matemática de processos biológicos.`,"Our technology is the commercial expression of":`A nossa tecnologia é a expressão comercial de`,"30+ years of scientific research":`mais de 30 anos de investigação cientÃfica`,"and more than":`e mais de`,"15,000 peer-reviewed citations":`15.000 citações revistas por pares`,and:`e`,"bring that scientific depth into the operational reality of water treatment plants and biogas facilities, making complex biological processes predictable, efficient and profitable.":`trazem essa profundidade cientÃfica para a realidade operacional de estações de tratamento de água e instalações de biogás, tornando processos biológicos complexos previsÃveis, eficientes e rentáveis.`,"Today, AIS works with leading utilities and industrial operators across":`Atualmente, a AIS trabalha com as principais entidades gestoras e operadores industriais em`,"Europe and Africa":`Europa e Ãfrica`,"with a growing pipeline across urban, industrial and food & beverage sectors.":`com um pipeline crescente nos setores urbano, industrial e alimentar e de bebidas.`,"What sets us apart":`O que nos distingue`,"Science, engineered into every deployment.":`Ciência, incorporada em cada implementação.`,"Rooted in academia":`Enraizada na academia`,"A spin-off from NOVA University Lisbon, born inside one of Europe's leading environmental bioengineering research groups.":`Um spin-off da NOVA University Lisbon, nascido num dos principais grupos de investigação em bioengenharia ambiental da Europa.`,"Backed by science":`Apoiada pela ciência`,"30+ years of research and more than 15,000 peer-reviewed citations underpin every model we deploy.":`Mais de 30 anos de investigação e mais de 15.000 citações revistas por pares sustentam cada modelo que implementamos.`,"Engineered for impact":`Concebida para gerar impacto`,"Co-founded with Frontier IP Group to translate deep-tech science into scalable, commercial-grade intellectual property.":`Co-fundada com a Frontier IP Group para traduzir ciência deep-tech em propriedade intelectual escalável e de nÃvel comercial.`,"Operating at scale":`A operar em escala`,"Working with leading utilities and industrial operators across Europe and Africa, with a growing urban, industrial and F&B pipeline.":`A trabalhar com as principais entidades gestoras e operadores industriais na Europa e em Ãfrica, com um pipeline crescente nos setores urbano, industrial e alimentar e de bebidas.`,"Our journey":`O nosso percurso`,"From peer-reviewed research to plants across two continents.":`Da investigação revista por pares a instalações em dois continentes.`,"1990s â today":`Anos 90 â hoje`,"Three decades of research":`Três décadas de investigação`,"Deep research on biological wastewater treatment and anaerobic digestion at NOVA University Lisbon,\xA0culminating in the development of the META-ASM mathematical models.\xA0":`Investigação profunda em tratamento biológico de águas residuais e digestão anaeróbia na NOVA University Lisbon,\xA0culminando no desenvolvimento dos modelos matemáticos META-ASM.\xA0`,"AIS is founded":`A AIS é fundada`,"Spin-off from NOVA University Lisbon, co-founded with Frontier IP Group to commercialise decades of environmental bioengineering IP.":`Spin-off da NOVA University Lisbon, co-fundada com a Frontier IP Group para comercializar décadas de propriedade intelectual em bioengenharia ambiental.`,"UPWATER⢠goes live":`UPWATER⢠entra em funcionamento`,"First AI-powered digital twins deployed in wastewater facilities, turning complex biological processes into predictable operations and reducing operational and energy costs.":`Primeiros gémeos digitais com inteligência artificial implementados em instalações de águas residuais, transformando processos biológicos complexos em operações previsÃveis e reduzindo os custos operacionais e energéticos.`,"UPWASTE goes live":`UPWASTE entra em funcionamento`,"Expansion into organic waste and resource recovery, with digital twins deployed in biogas facilities to maximise yield and stability.":`Expansão para a recuperação de resÃduos orgânicos e recursos, com gémeos digitais implementados em instalações de biogás para maximizar o rendimento e a estabilidade.`,"Scaling across Europe & Africa":`Expansão pela Europa e
12Ãfrica`,"Serving leading utilities and industrial operators, with a growing pipeline treating wastewater across urban, industrial and food & beverage sectors.\xA0\n":`Ao serviço das principais entidades gestoras e operadores industriais, com um pipeline crescente de tratamento de águas residuais nos setores urbano, industrial e alimentar e de bebidas.\xA0 13`,"Extending resource recovery":`Extensão da recuperação de recursos`,"Now extending toward bioplastics (PHA) recovery through 2 EU-funded research projects, building on our work in anaerobic digestion and biogas yield optimisation.\xA0\n":`Agora em fase de extensão para a recuperação de bioplásticos (PHA) através de 2 projetos de investigação financiados pela UE, com base no nosso trabalho em digestão anaeróbia e otimização do rendimento de biogás.\xA0 14`,"The people behind the science":`As pessoas por detrás da ciência`,"Meet the multidisciplinary team turning decades of research into real-world impact.":`Conheça a equipa multidisciplinar que transforma décadas de investigação em impacto real.`,"The AIS team at the NOVA University Lisbon laboratory.":`A equipa da AIS no laboratório da NOVA University Lisbon.`,"Want to see the technology in action?":`Quer ver a tecnologia em ação?`,"Explore how":`Descubra como`,"are transforming plants across Europe and Africa.":`estão a transformar instalações em toda a Europa e Ãfrica.`,"See case studies":`Ver casos de estudo`,"Talk to an expert":`Falar com um especialista`,"Partners & Investors":`Parceiros e Investidores`,"Built on three decades of":`ConstruÃda sobre três décadas de`,"Backed by Europe's best.":`Apoiada pelos melhores da Europa.`,"Institutional partners, blue-chip clients and a rare investment opportunity in the digitalisation of water and added value resource recovery.":`Parceiros institucionais, clientes de referência e uma rara oportunidade de investimento na digitalização da água e da recuperação de recursos de valor acrescentado.`,"Institutional Partners":`Parceiros Institucionais`,"Not built in a garage,":`Não construÃda numa garagem,`,"built in a lab":`construÃda num laboratório`,"AIS is the commercial expression of 30+ years of research at":`A AIS é a expressão comercial de mais de 30 anos de investigação na`,"NOVA University Lisbon":`NOVA University Lisbon`,", co-developed with":`, co-desenvolvida com`,"- a specialist in turning deep-tech science into scalable IP. Today, AIS is trusted by leading European utilities and industrial operators, and selected by the":`- uma especialista em transformar ciência deep-tech em propriedade intelectual escalável. Atualmente, a AIS é a escolha de confiança de importantes entidades gestoras e operadores industriais europeus, e foi selecionada pela`,"European Commission":`Comissão Europeia`,"in a EIC Pathfinder project and as a partner in two active Horizon Europe programmes.":`num projeto EIC Pathfinder e como parceira em dois programas ativos da Horizon Europe.`,"Become a partner":`Torne-se parceiro`,"Scientific foundation.":`Base cientÃfica.`,"Co-founder & IP partner":`Co-fundador e parceiro de PI`,"Specialist in turning deep-tech science into scalable, commercial intellectual property.":`Especialista em transformar ciência deep-tech em propriedade intelectual escalável e comercial.`,"Partcipated in a EIC Pathfinder project, and in 2026 is part of two major European consortia under the Circular Bio-based Europe Joint Undertaking - SOWISE+ and PHACTUS.":`Participou num projeto EIC Pathfinder e, em 2026, faz parte de dois grandes consórcios europeus ao abrigo da Circular Bio-based Europe Joint Undertaking - SOWISE+ e PHACTUS.`,"Industrial partners":`Parceiros industriais`,"Arla & ETSA":`Arla e ETSA`,"Working with leading industrial operators across dairy processing and food & beverage sectors.":`A trabalhar com operadores industriais de referência nos setores de processamento de lacticÃnios e alimentar e de bebidas.`,"Let's build the digital backbone of water together.":`Vamos construir juntos a espinha dorsal digital da água.`,"For utilities, research institutions, te
14chnology integrators and consortium partners looking to collaborate with AIS.":`Para entidades gestoras, instituições de investigação, integradores tecnológicos e parceiros de consórcio que pretendam colaborar com a AIS.`,"Investment Opportunity":`Oportunidade de Investimento`,"A rare entry point into the":`Um ponto de entrada raro na`,"digitalisation of water and resource recovery":`digitalização da água e da recuperação de recursos`,"at the moment regulation makes it inevitable.":`no momento em que a regulamentação a torna inevitável.`,"Market size":`Dimensão de mercado`,"Global wastewater treatment services market.":`Mercado global de serviços de tratamento de águas residuais.`,"Across Europe, the revised":`Em toda a Europa, a revisão da`,"Urban Wastewater Treatment Directive":`Diretiva relativa ao Tratamento de Ãguas Residuais Urbanas`,"is introducing stricter discharge limits, energy efficiency mandates and compliance traceability requirements - creating urgent and non-discretionary demand for exactly what AIS delivers.":`está a introduzir limites de descarga mais rigorosos, exigências de eficiência energética e requisitos de rastreabilidade de conformidade - criando uma procura urgente e não discricionária exatamente pelo que a AIS oferece.`,"Operators who are not compliant today face growing financial and legal exposure.":`Os operadores que hoje não estão em conformidade enfrentam uma exposição financeira e legal crescente.`,"Wastewater plants served":`Instalações de águas residuais servidas`,"Across Europe and Africa, serving urban and industrial operators.":`Na Europa e em Ãfrica, ao serviço de operadores urbanos e industriais.`,"Sectors with proven experience":`Setores com experiência comprovada`,"Municipal wastewater treatment, food and beverage processing, dairy processing and recovery of animal by-products.":`Tratamento de águas residuais urbanas, processamento de alimentos e bebidas, processamento de lacticÃnios e recuperação de subprodutos de origem animal.`,"SCALABLE SAAS MODEL":`MODELO SAAS ESCALÃVEL`,"INDUSTRIAL SCALE PHA PLANT":`FÃBRICA DE PHA EM ESCALA INDUSTRIAL`,"Land with one solution, expand through cross-sellable modules, and scale recurring revenue through usage-based pricing.":`Entrar com uma solução, expandir através de módulos de venda cruzada e escalar a receita recorrente através de preços baseados na utilização.`,"Blue-chip clients & institutions":`Clientes e instituições de referência`,"AIS technology integrated into a â¬32M industrial PHA production project, creating a pathway for replication across European biorefineries.":`Tecnologia AIS integrada num projeto de produção industrial de PHA de 32 milhões de euros, criando um caminho para a replicação em biorrefinarias europeias.`,"ROI for investors":`ROI para investidores`,"Measurable, defensible value creation.":`Criação de valor mensurável e defensável.`,"UPWATER⢠and UPWASTE\xA0have the capability to\xA0deliver return on investment to clients within the first year of deployment - per plant.\xA0":`A UPWATER⢠e a UPWASTE têm a capacidade de proporcionar o retorno do investimento aos clientes já no primeiro ano de implementação â por instalação.`,"ROI within year one":`ROI no primeiro ano`,"Client can unlock savings as soon as AIS recommendations are implemented, with pricing designed to preserve a compelling ROI.":`O cliente pode obter poupanças assim que as recomendações da AIS forem implementadas, com preços concebidos para preservar um ROI apelativo.`,"No hardware. Weeks to deploy.":`Sem hardware. Implementação em semanas.`,"Software-only platform that immediately reduces the three largest operational cost lines: energy, chemicals and waste disposal.":`Plataforma exclusivamente de software que reduz de imediato as três maiores linhas de custo operacional: energia, produtos quÃmicos e eliminação de resÃduos.`,"Stickier every year":`Cada vez mais fidelizada`,"SaaS recurring revenue model with a client base that compounds in value as operational data accumulates.":`Modelo de receita recorrente SaaS com uma base de clientes cujo valor se acumula à medida que os dados operacionais se acumulam.`,"Talk to us":`Fale connosco`,"Explore the investment opportunity.":`Explore a oportunidade de investimento.`,"For VCs, family offices and corporates evaluating AIS. Share a few details and our team will follow up within 2 business days.":`Para VCs, family offices e empresas que estejam a avaliar a AIS. Partilhe alguns detalhes e a nossa equipa entrará em contacto no prazo de 2 dias úteis.`,Contact:`Contacto`,"Get in touch":`Entre em contacto`,"Select the type of enquiry that best describes your needs.":`Selecione o tipo de pedido que melhor descreve as suas necessidades.`,"Talk to an Expert"
14:`Fale com um Especialista`,"For utilities and industrial operators looking to learn more about UPWATER⢠or UPWASTE, request a demonstration, or discuss a specific operational challenge.":`Para entidades gestoras e operadores industriais que pretendam saber mais sobre a UPWATER⢠ou a UPWASTE, solicitar uma demonstração ou discutir um desafio operacional especÃfico.`,"from our technical team within 1 business day.":`da nossa equipa técnica no prazo de 1 dia útil.`,"Partnerships & Collaboration":`Parcerias e Colaboração`,"For research institutions, technology providers, project consortia or organisations interested in exploring a partnership or joint project with AIS.":`Para instituições de investigação, fornecedores de tecnologia, consórcios de projetos ou organizações interessadas em explorar uma parceria ou projeto conjunto com a AIS.`,"within 2 business days.":`no prazo de 2 dias úteis.`,"Media & Press":`Media e Imprensa`,"For journalists and content creators seeking information about AIS, UPWATERâ¢, or UpWaste. Press kit available on request.":`Para jornalistas e criadores de conteúdos que pretendam obter informação sobre a AIS, UPWATER⢠ou UPWASTE. Kit de imprensa disponÃvel a pedido.`,"within 1 business day.":`no prazo de 1 dia útil.`,"Send a message":`Enviar uma mensagem`,"We will point you to the right team.":`Encaminhá-lo-emos para a equipa certa.`,"Fill in the form below and choose the enquiry type that matches your request. Our team typically replies within 1â2 business days.":`Preencha o formulário abaixo e escolha o tipo de pedido que corresponde à sua solicitação. A nossa equipa costuma responder no prazo de 1 a 2 dias úteis.`,Email:`Email`,LinkedIn:`LinkedIn`,"AIS headquarters":`Sede da AIS`,"AIS Lisbon office":`Escritório da AIS em Lisboa`,"Thank you!":`Obrigado!`,"We have received your message and will be in touch shortly.":`Recebemos a sua mensagem e entraremos em contacto brevemente.`,"Name *":`Nome *`,"Organisation *":`Organização *`,"Work email *":`Email profissional *`,"Enquiry type *":`Tipo de pedido *`,"Selectâ¦":`Selecionarâ¦`,"Message *":`Mensagem *`,"Send Message":`Enviar Mensagem`,"Please enter your name (max 100 characters).":`Introduza o seu nome (máx. 100 caracteres).`,"Please enter your organisation (max 150 characters).":`Introduza a sua organização (máx. 150 caracteres).`,"Please enter your work email.":`Introduza o seu email profissional.`,"Please enter a valid email address.":`Introduza um endereço de email válido.`,"Please select an enquiry type.":`Selecione um tipo de pedido.`,"Please enter a message (max 1000 characters).":`Introduza uma mensagem (máx. 1000 caracteres).`,"Please enter your country (max 100 characters).":`Introduza o seu paÃs (máx. 100 caracteres).`,"Please accept the Privacy Policy to continue.":`Aceite a PolÃtica de Privacidade para continuar.`,"I agree to the":`Concordo com a`,"Privacy Policy":`PolÃtica de Privacidade`,"and consent to my data being used to respond to this enquiry.":`e consinto que os meus dados sejam usados para responder a este pedido.`,"Please select an investor type.":`Selecione um tipo de investidor.`,"Investor type *":`Tipo de investidor *`,"Our partnerships team will be in touch within 2 business days.":`A nossa equipa de parcerias entrará em contacto no prazo de 2 dias úteis.`,"Our investor relations team will be in touch within 2 business days.":`A nossa equipa de relações com investidores entrará em contacto no prazo de 2 dias úteis.`,VC:`VC`,"Family Office":`Family Office`,Corporate:`Empresa`,Other:`Outro`,"Predictive intelligence for wastewater treatment and resource recovery.":`Inteligência preditiva para o tratamento de águas residuais e recuperação de recursos.`,Explore:`Explorar`,Products:`Produtos`,Sectors:`Setores`,Resources:`Recursos`,About:`Sobre`,Newsletter:`Newsletter`,"Trends and updates from the wastewater and resource recovery world.\xA0":`Tendências e atualizações do mundo das águas residuais e da recuperação de recursos.\xA0`,"Email address":`Endereço de email`,Subscribe:`Subscrever`,Connect:`Ligar-se`,"© 2026 Aqua
14in Silico. All rights reserved.":`© 2026 Aqua in Silico. Todos os direitos reservados.`,Investors:`Investidores`,"Cookie Policy":`PolÃtica de Cookies`},Il={...jl,...Ml,...Nl,...Pl,...Fl},Ll=`ais_language`,Rl=(0,z.createContext)({language:`en`,setLanguage:()=>{}});function zl({children:e}){let[t,n]=(0,z.useState)(`en`);(0,z.useEffect)(()=>{try{let e=localStorage.getItem(Ll);(e===`pt`||e===`en`)&&n(e)}catch{}},[]);let r=(0,z.useCallback)(e=>{n(e);try{localStorage.setItem(Ll,e)}catch{}typeof document<`u`&&(document.documentElement.lang=e)},[]),i=(0,z.useMemo)(()=>({language:t,setLanguage:r}),[t,r]);return(0,B.jsx)(Rl.Provider,{value:i,children:e})}function Bl(){return(0,z.useContext)(Rl)}function G(){let{language:e}=Bl();return(0,z.useCallback)(t=>e===`pt`?Il[t]??t:t,[e])}var K=z.useId||(()=>void 0),q=0;function J(e){let[t,n]=z.useState(K());return je(()=>{e||n(e=>e??String(q++))},[e]),e||(t?`radix-${t}`:``)}function Y(e){let t=z.useRef(e);return z.useEffect(()=>{t.current=e}),z.useMemo(()=>(...e)=>t.current?.(...e),[])}function Vl(e,t=globalThis?.document){let n=Y(e);z.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var Hl=`DismissableLayer`,Ul=`dismissableLayer.update`,Wl=`dismissableLayer.pointerDownOutside`,Gl=`dismissableLayer.focusOutside`,X,Kl=z.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ql=z.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...c}=e,l=z.useContext(Kl),[u,d]=z.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=z.useState({}),m=Me(t,e=>d(e)),h=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),_=h.indexOf(g),v=u?h.indexOf(u):-1,y=l.layersWithOutsidePointerEventsDisabled.size>0,b=v>=_,x=Xl(e=>{let t=e.target,n=[...l.branches].some(e=>e.contains(t));!b||n||(i?.(e),o?.(e),e.defaultPrevented||s?.())},f),S=Zl(e=>{let t=e.target;[...l.branches].some(e=>e.contains(t))||(a?.(e),o?.(e),e.defaultPrevented||s?.())},f);return Vl(e=>{v===l.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},f),z.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(X=f.body.style.pointerEvents,f.body.style.pointerEvents=`none`),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Ql(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=X)}},[u,f,n,l]),z.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Ql())},[u,l]),z.useEffect(()=>{let e=()=>p({});return document.addEventListener(Ul,e),()=>document.removeEventListener(Ul,e)},[]),(0,B.jsx)(A.div,{...c,ref:m,style:{pointerEvents:y?b?`auto`:`none`:void 0,...e.style},onFocusCapture:De(e.onFocusCapture,S.onFocusCapture),onBlurCapture:De(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:De(e.onPointerDownCapture,x.onPointerDownCapture)})});ql.displayName=Hl;var Jl=`DismissableLayerBranch`,Yl=z.forwardRef((e,t)=>{let n=z.useContext(Kl),r=z.useRef(null),i=Me(t,r);return z.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,B.jsx)(A.div,{...e,ref:i})});Yl.displayName=Jl;function Xl(e,t=globalThis?.document){let n=Y(e),r=z.useRef(!1),i=z.useRef(()=>{});return z.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){$l(Wl,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Zl(e,t=globalThis?.document){let n=Y(e),r=z.useRef(!1);return z.useEffect(()=>{let e=e=>{e.target&&!r.current&&$l(Gl,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ql(){let e=new CustomEvent(Ul);document.dispatchEvent(e)}function $l(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Be(i,a):i.dispatchEvent(a)}var eu=`focusScope.autoFocusOnMount`,tu=`focusScope.autoFocusOnUnmount`,nu={bubbles:!1,cancelable:!0},ru=`FocusScope`,iu=z.forwardRef((e,t)=>
vendor: 13,299 bytes, lines 14-54
14{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=z.useState(null),l=Y(i),u=Y(a),d=z.useRef(null),f=Me(t,e=>c(e)),p=z.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;z.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:du(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||du(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&du(s)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),z.useEffect(()=>{if(s){fu.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(eu,nu);s.addEventListener(eu,l),s.dispatchEvent(t),t.defaultPrevented||(au(hu(su(s)),{select:!0}),document.activeElement===e&&du(s))}return()=>{s.removeEventListener(eu,l),setTimeout(()=>{let t=new CustomEvent(tu,nu);s.addEventListener(tu,u),s.dispatchEvent(t),t.defaultPrevented||du(e??document.body,{select:!0}),s.removeEventListener(tu,u),fu.remove(p)},0)}}},[s,l,u,p]);let m=z.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=ou(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&du(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&du(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,B.jsx)(A.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})});iu.displayName=ru;function au(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(du(r,{select:t}),document.activeElement!==n)return}function ou(e){let t=su(e);return[cu(t,e),cu(t.reverse(),e)]}function su(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function cu(e,t){for(let n of e)if(!lu(n,{upTo:t}))return n}function lu(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function uu(e){return e instanceof HTMLInputElement&&`select`in e}function du(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&uu(e)&&t&&e.select()}}var fu=pu();function pu(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=mu(e,t),e.unshift(t)},remove(t){e=mu(e,t),e[0]?.resume()}}}function mu(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function hu(e){return e.filter(e=>e.tagName!==`A`)}var gu=t(s(),1),_u=`Portal`,vu=z.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=z.useState(!1);je(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?gu.createPortal((0,B.jsx)(A.div,{...r,ref:t}),o):null});vu.displayName=_u;var yu=0;function bu(){z.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??xu()),document.body.insertAdjacentElement(`beforeend`,e[1]??xu()),yu++,()=>{yu===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),yu--}},[])}function xu(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var Su=function(){return Su=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Su.apply(this,arguments)};function Cu(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function wu(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Tu=`right-scroll-bar-position`,Eu=`width-before-scroll-bar`,Du=`with-scroll-bars-hidden`,Ou=`--removed-body-scroll-bar-size`;function ku(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Au(e,t){var n=(0,z.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var ju=typeof window<`u`?z.useLayoutEffect:z.useEffect,Mu=new WeakMap;function Nu(e,t){var n=Au(t||null,function(t){return e.forEach(function(e){return ku(e,t)})});return ju(function(){var t=Mu.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||ku(e,null)}),i.forEach(function(e){r.has(e)||ku(e,a)})}Mu.set(n,e)},[e]),n}function Pu(e){return e}function Fu(e,t){t===void 0&&(t=Pu);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Iu(e){e===void 0&&(e={});var t=Fu(null);return t.options=Su({async:!0,ssr:!1},e),t}var Lu=function(e){var t=e.sideCar,n=Cu(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return z.createElement(r,Su({},n))};Lu.isSideCarExport=!0;function Ru(e,t){return e.useMedium(t),Lu}var zu=Iu(),Bu=function(){},Vu=z.forwardRef(function(e,t){var n=z.useRef(null),r=z.useState({onScrollCapture:Bu,onWheelCapture:Bu,onTouchMoveCapture:Bu}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=Cu(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=Nu([n,t]),C=Su(Su({},b),i);return z.createElement(z.Fragment,null,u&&z.createElement(x,{sideCar:zu,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?z.cloneElement(z.Children.only(s),Su(Su({},C),{ref:S})):z.createElement(v,Su({},C,{className:c,ref:S}),s))});Vu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Vu.classNames={fullWidth:Eu,zeroRight:Tu};var Hu,Uu=function(){if(Hu)return Hu;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Wu(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Uu();return t&&e.setAttribute(`nonce`,t),e}function Gu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Z(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Ku=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Wu())&&(Gu(t,n),Z(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},qu=function(){var e=Ku();return function(t,n){z.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ju=function(){var e=qu();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Yu={left:0,top:0,right:0,gap:0},Xu=function(e){return parseInt(e||``,10)||0},Zu=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Xu(n),Xu(r),Xu(i)]},Qu=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Yu;var t=Zu(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},$u=Ju(),ed=`data-scroll-locked`,td=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),` 15 .${Du} { 16 overflow: hidden ${r}; 17 padding-right: ${s}px ${r}; 18 } 19 body[${ed}] { 20 overflow: hidden ${r}; 21 overscroll-behavior: contain; 22 ${[t&&`position: relative ${r};`,n===`margin`&&` 23 padding-left: ${i}px; 24 padding-top: ${a}px; 25 padding-right: ${o}px; 26 margin-left:0; 27 margin-top:0; 28 margin-right: ${s}px ${r}; 29 `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)} 30 } 31 32 .${Tu} { 33 right: ${s}px ${r}; 34 } 35 36 .${Eu} { 37 margin-right: ${s}px ${r}; 38 } 39 40 .${Tu} .${Tu} { 41 right: 0 ${r}; 42 } 43 44 .${Eu} .${Eu} { 45 margin-right: 0 ${r}; 46 } 47 48 body[${ed}] { 49 ${Ou}: ${s}px; 50 } 51`},nd=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},rd=function(){z.useEffect(function(){return document.body.setAttribute(ed,(nd()+1).toString()),function(){var e=nd()-1;e<=0?document.body.removeAttribute(ed):document.body.setAttribute(ed,e.toString())}},[])},id=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;rd();var a=z.useMemo(function(){return Qu(i)},[i]);return z.createElement($u,{styles:td(a,!t,i,n?``:`!important`)})},ad=!1;if(typeof window<`u`)try{var od=Object.defineProperty({},"passive",{get:function(){return ad=!0,!0}});window.addEventListener(`test`,od,od),window.removeEventListener(`test`,od,od)}catch{ad=!1}var sd=ad?{passive:!1}:!1,cd=function(e){return e.tagName===`TEXTAREA`},ld=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!cd(e)&&n[t]===`visible`)},ud=function(e){return ld(e,`overflowY`)},dd=function(e){return ld(e,`overflowX`)},fd=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),hd(e,r)){var i=gd(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},pd=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},md=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},hd=function(e,t){return e===`v`?ud(t):dd(t)},gd=function(e,t){return e===`v`?pd(t):md(t)},_d=function(e,t){return e===`h`&&t===`rtl`?-1:1},vd=function(e,t,n,r,i){var a=_d(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=gd(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&hd(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},yd=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},bd=function(e){return[e.deltaX,e.deltaY]},Q=function(e){return e&&`current`in e?e.current:e},xd=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Sd=function(e){return` 52 .block-interactivity-${e} {pointer-events: none;} 53 .allow-interactivity-${e} {pointer-events: all;} 54`},Cd=0,wd=[];function Td(e){var t=z.useRef([]),n=z.useRef([0,0]),r=z.useRef(),i=z.useState(Cd++)[0],a=z.useState(Ju)[0],o=z.useRef(e);z.useEffect(function(){o.current=e},[e]),z.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=wu([e.lockRef.current],(e.shards||[]).map(Q),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=z.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=yd(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=fd(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=fd(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return vd(h,t,e,h===`h`?s:c,!0)},[]),c=z.useCallback(function(e){var n=e;if(!(!wd.length||wd[wd.length-1]!==a)){var r=`deltaY`in n?bd(n):yd(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&xd(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}
vendor: 4,790 bytes, line 54
54if(!i){var c=(o.current.shards||[]).map(Q).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=z.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Ed(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=z.useCallback(function(e){n.current=yd(e),r.current=void 0},[]),d=z.useCallback(function(t){l(t.type,bd(t),t.target,s(t,e.lockRef.current))},[]),f=z.useCallback(function(t){l(t.type,yd(t),t.target,s(t,e.lockRef.current))},[]);z.useEffect(function(){return wd.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,sd),document.addEventListener(`touchmove`,c,sd),document.addEventListener(`touchstart`,u,sd),function(){wd=wd.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,sd),document.removeEventListener(`touchmove`,c,sd),document.removeEventListener(`touchstart`,u,sd)}},[]);var p=e.removeScrollBar,m=e.inert;return z.createElement(z.Fragment,null,m?z.createElement(a,{styles:Sd(i)}):null,p?z.createElement(id,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ed(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Dd=Ru(zu,Td),Od=z.forwardRef(function(e,t){return z.createElement(Vu,Su({},e,{ref:t,sideCar:Dd}))});Od.classNames=Vu.classNames;var kd=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Ad=new WeakMap,jd=new WeakMap,Md={},Nd=0,$=function(e){return e&&(e.host||$(e.parentNode))},Pd=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=$(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Fd=function(e,t,n,r){var i=Pd(t,Array.isArray(e)?e:[e]);Md[n]||(Md[n]=new WeakMap);var a=Md[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Ad.get(e)||0)+1,l=(a.get(e)||0)+1;Ad.set(e,c),a.set(e,l),o.push(e),c===1&&i&&jd.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Nd++,function(){o.forEach(function(e){var t=Ad.get(e)-1,i=a.get(e)-1;Ad.set(e,t),a.set(e,i),t||(jd.has(e)||e.removeAttribute(r),jd.delete(e)),i||e.removeAttribute(n)}),Nd--,Nd||(Ad=new WeakMap,Ad=new WeakMap,jd=new WeakMap,Md={})}},Id=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||kd(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Fd(r,i,n,`aria-hidden`)):function(){return null}};function Ld(e){let t=Rd(e),n=z.forwardRef((e,n)=>{let{children:r,...i}=e,a=z.Children.toArray(r),o=a.find(Bd);if(o){let e=o.props.children,r=a.map(t=>t===o?z.Children.count(e)>1?z.Children.only(null):z.isValidElement(e)?e.props.children:null:t);return(0,B.jsx)(t,{...i,ref:n,children:z.isValidElement(e)?z.cloneElement(e,void 0,r):null})}return(0,B.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Rd(e){let t=z.forwardRef((e,t)=>{let{children:n,...r}=e;if(z.isValidElement(n)){let e=Hd(n),i=Vd(r,n.props);return n.type!==z.Fragment&&(i.ref=t?Ne(t,e):e),z.cloneElement(n,i)}return z.Children.count(n)>1?z.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var zd=Symbol(`radix.slottable`);function Bd(e){return z.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===zd}function Vd(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Hd(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ud=`Dialog`,[Wd,Gd]=Pe(Ud),[Kd,qd]=Wd(Ud),Jd=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=z.useRef(null),c=z.useRef(null),[l,u]=Ae({prop:r,defaultProp:i??!1,onChange:a,caller:Ud});return(0,B.jsx)(Kd,{scope:t,triggerRef:s,contentRef:c,contentId:J(),titleId:J(),descriptionId:J(),open:l,onOpenChange:u,onOpenToggle:z.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})};Jd.displayName=Ud;var Yd=`DialogTrigger`,Xd=z.forwardRef((e,t)=>
54{let{__scopeDialog:n,...r}=e,i=qd(Yd,n),a=Me(t,i.triggerRef);return(0,B.jsx)(A.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":_f(i.open),...r,ref:a,onClick:De(e.onClick,i.onOpenToggle)})});Xd.displayName=Yd;var Zd=`DialogPortal`,[Qd,$d]=Wd(Zd,{forceMount:void 0}),ef=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=qd(Zd,t);return(0,B.jsx)(Qd,{scope:t,forceMount:n,children:z.Children.map(r,e=>(0,B.jsx)(ke,{present:n||a.open,children:(0,B.jsx)(vu,{asChild:!0,container:i,children:e})}))})};ef.displayName=Zd;var tf=`DialogOverlay`,nf=z.forwardRef((e,t)=>{let n=$d(tf,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=qd(tf,e.__scopeDialog);return a.modal?(0,B.jsx)(ke,{present:r||a.open,children:(0,B.jsx)(af,{...i,ref:t})}):null});nf.displayName=tf;var rf=Ld(`DialogOverlay.RemoveScroll`),af=z.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=qd(tf,n);return(0,B.jsx)(Od,{as:rf,allowPinchZoom:!0,shards:[i.contentRef],children:(0,B.jsx)(A.div,{"data-state":_f(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),of=`DialogContent`,sf=z.forwardRef((e,t)=>{let n=$d(of,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=qd(of,e.__scopeDialog);return(0,B.jsx)(ke,{present:r||a.open,children:a.modal?(0,B.jsx)(cf,{...i,ref:t}):(0,B.jsx)(lf,{...i,ref:t})})});sf.displayName=of;var cf=z.forwardRef((e,t)=>{let n=qd(of,e.__scopeDialog),r=z.useRef(null),i=Me(t,n.contentRef,r);return z.useEffect(()=>{let e=r.current;if(e)return Id(e)},[]),(0,B.jsx)(uf,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:De(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:De(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:De(e.onFocusOutside,e=>e.preventDefault())})}),lf=z.forwardRef((e,t)=>{let n=qd(of,e.__scopeDialog),r=z.useRef(!1),i=z.useRef(!1);return(0,B.jsx)(uf,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),uf=z.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=qd(of,n),c=z.useRef(null),l=Me(t,c);return bu(),(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(iu,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,B.jsx)(ql,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":_f(s.open),...o,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(xf,{titleId:s.titleId}),(0,B.jsx)(Cf,{contentRef:c,descriptionId:s.descriptionId})]})]})}),df=`DialogTitle`,ff=z.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=qd(df,n);return(0,B.jsx)(A.h2,{id:i.titleId,...r,ref:t})});ff.displayName=df;var pf=`DialogDescription`,mf=z.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=qd(pf,n);return(0,B.jsx)(A.p,{id:i.descriptionId,...r,ref:t})});mf.displayName=pf;var hf=`DialogClose`,gf=z.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=qd(hf,n);return(0,B.jsx)(A.button,{type:`button`,...r,ref:t,onClick:De(e.onClick,()=>i.onOpenChange(!1))})});gf.displayName=hf;function _f(e){return e?`open`:`closed`}var vf=`DialogTitleWarning`,[yf,bf]=Le(vf,{contentName:of,titleName:df,docsSlug:`dialog`}),xf=({titleId:e})=>{let t=bf(vf),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 55 56If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 57 58For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return z.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Sf=`DialogDescriptionWarning`,Cf=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${bf(Sf).contentName}}.`;return z.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},wf=Jd,Tf=Xd,Ef=ef,Df=nf,Of=sf,kf=ff,Af=mf,jf=gf,Mf=wf,Nf=Tf,Pf=Ef,Ff=z.forwardRef(({className:e,...t},n)=>(0,B.jsx)(Df,{ref:n,className:Re(`fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e),...t}));Ff.displayName=Df.displayName;var If=z.forwardRef(({className:e,children:t,...n},r)=>(0,B.jsxs)(Pf,{children:[(0,B.jsx)(Ff,{}),(0,B.jsxs)(Of,{ref:r,className:Re(`fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg`,e),...n,children:[t,(0,B.jsxs)(jf,{className:`absolute right-4 top-4 roun
58ded-sm opacity-70 ring-offset-background cursor-pointer transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground`,children:[(0,B.jsx)(Al,{className:`h-4 w-4`}),(0,B.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]}));If.displayName=Of.displayName;var Lf=({className:e,...t})=>(0,B.jsx)(`div`,{className:Re(`flex flex-col space-y-1.5 text-center sm:text-left`,e),...t});Lf.displayName=`DialogHeader`;var Rf=({className:e,...t})=>(0,B.jsx)(`div`,{className:Re(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,e),...t});Rf.displayName=`DialogFooter`;var zf=z.forwardRef(({className:e,...t},n)=>(0,B.jsx)(kf,{ref:n,className:Re(`text-lg font-semibold leading-none tracking-tight`,e),...t}));zf.displayName=kf.displayName;var Bf=z.forwardRef(({className:e,...t},n)=>(0,B.jsx)(Af,{ref:n,className:Re(`text-sm text-muted-foreground`,e),...t}));Bf.displayName=Af.displayName;var Vf=z.forwardRef(({className:e,...t},n)=>(0,B.jsx)(`textarea`,{className:Re(`flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,e),ref:n,...t}));Vf.displayName=`Textarea`;var Hf=gc({method:`POST`}).handler(Wo(`c07b77115b825159fc6c733b1607464121c124e258a3234494fd775a495484c8`));function Uf(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var Wf=e=>{switch(e){case`success`:return qf;case`info`:return Yf;case`warning`:return Jf;case`error`:return Xf;default:return null}},Gf=Array(12).fill(0),Kf=({visible:e,className:t})=>z.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},z.createElement(`div`,{className:`sonner-spinner`},Gf.map((e,t)=>z.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),qf=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},z.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),Jf=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`},z.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),Yf=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},z.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),Xf=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},z.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),Zf=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},z.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),z.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),Qf=()=>{let[e,t]=z.useState(document.hidden);return z.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>window.removeEventListener(`visibilitychange`,e)},[]),e},$f=1,ep=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>
58{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id?.length>0?e.id:$f++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>
58this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],z.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(np(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!z.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!z.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!z.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!z.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=t?.id||$f++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},tp=(e,t)=>{let n=t?.id||$f++;return ep.addToast({title:e,...t,id:n}),n},np=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,rp=Object.assign(tp,{success:ep.success,info:ep.info,warning:ep.warning,error:ep.error,custom:ep.custom,message:ep.message,promise:ep.promise,dismiss:ep.dismiss,loading:ep.loading},{getHistory:()=>ep.toasts,getToasts:()=>ep.getActiveToasts()});Uf(`
vendor: 14,859 bytes, line 58
58[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
58`);function ip(e){return e.label!==void 0}var ap=3,op=`24px`,sp=`16px`,cp=4e3,lp=356,up=14,dp=45,fp=200;function pp(...e){return e.filter(Boolean).join(` `)}function mp(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var hp=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:p,style:m,cancelButtonStyle:h,actionButtonStyle:g,className:_=``,descriptionClassName:v=``,duration:y,position:b,gap:x,expandByDefault:S,classNames:C,icons:ee,closeButtonAriaLabel:te=`Close toast`}=e,[ne,re]=z.useState(null),[ie,ae]=z.useState(null),[oe,se]=z.useState(!1),[ce,le]=z.useState(!1),[ue,w]=z.useState(!1),[E,de]=z.useState(!1),[D,fe]=z.useState(!1),[pe,me]=z.useState(0),[O,he]=z.useState(0),ge=z.useRef(n.duration||y||cp),_e=z.useRef(null),ve=z.useRef(null),ye=c===0,k=c+1<=o,be=n.type,xe=n.dismissible!==!1,Se=n.className||``,Ce=n.descriptionClassName||``,we=z.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),Te=z.useMemo(()=>n.closeButton??p,[n.closeButton,p]),Ee=z.useMemo(()=>n.duration||y||cp,[n.duration,y]),De=z.useRef(0),Oe=z.useRef(0),ke=z.useRef(0),Ae=z.useRef(null),[je,Me]=b.split(`-`),Ne=z.useMemo(()=>
58s.reduce((e,t,n)=>n>=we?e:e+t.height,0),[s,we]),A=Qf(),Pe=n.invert||t,Fe=be===`loading`;Oe.current=z.useMemo(()=>we*x+Ne,[we,Ne]),z.useEffect(()=>{ge.current=Ee},[Ee]),z.useEffect(()=>{se(!0)},[]),z.useEffect(()=>{let e=ve.current;if(e){let t=e.getBoundingClientRect().height;return he(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),z.useLayoutEffect(()=>{if(!oe)return;let e=ve.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,he(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[oe,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let Ie=z.useCallback(()=>{le(!0),me(Oe.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},fp)},[n,d,a,Oe]);z.useEffect(()=>{if(n.promise&&be===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||A?(()=>{if(ke.current<De.current){let e=new Date().getTime()-De.current;ge.current-=e}ke.current=new Date().getTime()})():ge.current!==1/0&&(De.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),Ie()},ge.current)),()=>clearTimeout(e)},[u,i,n,be,A,Ie]),z.useEffect(()=>{n.delete&&(Ie(),n.onDismiss==null||n.onDismiss.call(n,n))},[Ie,n.delete]);function Le(){return ee?.loading?z.createElement(`div`,{className:pp(C?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":be===`loading`},ee.loading):z.createElement(Kf,{className:pp(C?.loader,n?.classNames?.loader),visible:be===`loading`})}let Re=n.icon||ee?.[be]||Wf(be);return z.createElement(`li`,{tabIndex:0,ref:ve,className:pp(_,Se,C?.toast,n?.classNames?.toast,C?.default,C?.[be],n?.classNames?.[be]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":oe,"data-promise":!!n.promise,"data-swiped":D,"data-removed":ce,"data-visible":k,"data-y-position":je,"data-x-position":Me,"data-index":c,"data-front":ye,"data-swiping":ue,"data-dismissible":xe,"data-type":be,"data-invert":Pe,"data-swipe-out":E,"data-swipe-direction":ie,"data-expanded":!!(u||S&&oe),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${ce?pe:Oe.current}px`,"--initial-height":S?`auto`:`${O}px`,...m,...n.style},onDragEnd:()=>{w(!1),re(null),Ae.current=null},onPointerDown:e=>{e.button!==2&&(Fe||!xe||(_e.current=new Date,me(Oe.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(w(!0),Ae.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{if(E||!xe)return;Ae.current=null;let e=Number(ve.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(ve.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-_e.current?.getTime(),i=ne===`x`?e:t,a=Math.abs(i)/r;if(Math.abs(i)>=dp||a>.11){me(Oe.current),n.onDismiss==null||n.onDismiss.call(n,n),ae(ne===`x`?e>0?`right`:`left`:t>0?`down`:`up`),Ie(),de(!0);return}else{var o,s;(o=ve.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=ve.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`)}fe(!1),w(!1),re(null)},onPointerMove:t=>{var n,r;if(!Ae.current||!xe||window.getSelection()?.toString().length>0)return;let i=t.clientY-Ae.current.y,a=t.clientX-Ae.current.x,o=e.swipeDirections??mp(b);!ne&&(Math.abs(a)>1||Math.abs(i)>1)&&re(Math.abs(a)>Math.abs(i)?`x`:`y`);let s={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if(ne===`y`){if(o.includes(`top`)||o.includes(`bottom`))if(o.includes(`top`)&&i<0||o.includes(`bottom`)&&i>0)s.y=i;else{let e=i*c(i);s.y=Math.abs(e)<Math.abs(i)?e:i}}else if(ne===`x`&&(o.includes(`left`)||o.includes(`right`)))if(o.includes(`left`)&&a<0||o.includes(`right`)&&a>0)s.x=a;else{let e=a*c(a);s.x=Math.abs(e)<Math.abs(a)?e:a}(Math.abs(s.x)>0||Math.abs(s.y)>0)&&fe(!0),(n=ve.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=ve.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},Te&&!n.jsx&&be!==`loading`?z.createElement(`button`,{"aria-label":te,"data-disabled":Fe,"data-close-button":!0,onClick:Fe||!xe?()=>{}:()=>{Ie(),n.onDismiss==null||n.onDismiss.call(n,n)},className:pp(C?.closeButton,n?.classNames?.closeButton)},ee?.close??Zf):null,(be||n.icon||n.promise)&&n.icon!==null&&(ee?.[be]!==null||n.icon)?z.createElement(`div`,{"data-icon":``,className:pp(C?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||Le():null,n.type===`loading`?null:Re):null,z.createElement(`div`,{"data-content":``,className:pp(C?.content,n?.classNames?.content)},z.createElement(`div`,{"data-title":``,className:pp(C?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?z.createElement(`div`,{"data-description":``,className:pp(v,Ce,C?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),z.isValidElement(n.cancel)?n.c
58ancel:n.cancel&&ip(n.cancel)?z.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{ip(n.cancel)&&xe&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),Ie())},className:pp(C?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,z.isValidElement(n.action)?n.action:n.action&&ip(n.action)?z.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{ip(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&Ie())},className:pp(C?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function gp(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function _p(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?sp:op;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var vp=z.forwardRef(function(e,t){let{id:n,invert:r,position:i=`bottom-right`,hotkey:a=[`altKey`,`KeyT`],expand:o,closeButton:s,className:c,offset:l,mobileOffset:u,theme:d=`light`,richColors:f,duration:p,style:m,visibleToasts:h=ap,toastOptions:g,dir:_=gp(),gap:v=up,icons:y,containerAriaLabel:b=`Notifications`}=e,[x,S]=z.useState([]),C=z.useMemo(()=>n?x.filter(e=>e.toasterId===n):x.filter(e=>!e.toasterId),[x,n]),ee=z.useMemo(()=>Array.from(new Set([i].concat(C.filter(e=>e.position).map(e=>e.position)))),[C,i]),[te,ne]=z.useState([]),[re,ie]=z.useState(!1),[ae,oe]=z.useState(!1),[se,ce]=z.useState(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),le=z.useRef(null),ue=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),w=z.useRef(null),E=z.useRef(!1),de=z.useCallback(e=>{S(t=>(t.find(t=>t.id===e.id)?.delete||ep.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return z.useEffect(()=>ep.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{S(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});return}setTimeout(()=>{gu.flushSync(()=>{S(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[x]),z.useEffect(()=>{if(d!==`system`){ce(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?ce(`dark`):ce(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{ce(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{ce(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),z.useEffect(()=>{x.length<=1&&ie(!1)},[x]),z.useEffect(()=>{let e=e=>{if(a.every(t=>e[t]||e.code===t)){var t;ie(!0),(t=le.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===le.current||le.current?.contains(document.activeElement))&&ie(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),z.useEffect(()=>{if(le.current)return()=>{w.current&&(w.current.focus({preventScroll:!0}),w.current=null,E.current=!1)}},[le.current]),z.createElement(`section`,{ref:t,"aria-label":`${b} ${ue}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0},ee.map((t,n)=>{let[i,a]=t.split(`-`);return C.length?z.createElement(`ol`,{key:t,dir:_===`auto`?gp():_,tabIndex:-1,ref:le,className:c,"data-sonner-toaster":!0,"data-sonner-theme":se,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${te[0]?.height||0}px`,"--width":`${lp}px`,"--gap":`${v}px`,...m,..._p(l,u)},onBlur:e=>{E.current&&!e.currentTarget.contains(e.relatedTarget)&&(E.current=!1,w.current&&=(w.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`fal
58se`||E.current||(E.current=!0,w.current=e.relatedTarget)},onMouseEnter:()=>ie(!0),onMouseMove:()=>ie(!0),onMouseLeave:()=>{ae||ie(!1)},onDragEnd:()=>ie(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||oe(!0)},onPointerUp:()=>oe(!1)},C.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>z.createElement(hp,{key:n.id,icons:y,index:i,toast:n,defaultRichColors:f,duration:g?.duration??p,className:g?.className,descriptionClassName:g?.descriptionClassName,invert:r,visibleToasts:h,closeButton:g?.closeButton??s,interacting:ae,position:t,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:de,toasts:C.filter(e=>e.position==n.position),heights:te.filter(e=>e.position==n.position),setHeights:ne,expandByDefault:o,gap:v,expanded:re,swipeDirections:e.swipeDirections}))):null}))}),yp=[{value:`Urban WW`,label:`Urban WWTP`},{value:`Industrial WW`,label:`Industrial WWTP`},{value:`Food & Beverage WW`,label:`Food & Beverage`},{value:`Other`,label:`Other`}];function bp({trigger:e,variant:t=`general`}){let n=G(),[r,i]=(0,z.useState)(!1),[a,o]=(0,z.useState)(!1),[s,c]=(0,z.useState)(!1),[l,u]=(0,z.useState)(!1),d=dc(Hf),f=t===`upwater`?`expert-upwater`:t===`upwaste`?`expert-upwaste`:`expert-general`;async function p(e){if(e.preventDefault(),!s||l)return;let t=e.currentTarget,r=new FormData(t);u(!0);try{await d({data:{formKey:f,fields:{firstname:String(r.get(`firstName`)??``),lastname:String(r.get(`lastName`)??``),email:String(r.get(`email`)??``),company:String(r.get(`company`)??``),country:String(r.get(`country`)??``),facility_type:String(r.get(`facility`)??``),message:String(r.get(`message`)??``),privacy_policy:`true`},pageUri:typeof window<`u`?window.location.href:``,pageName:typeof document<`u`?document.title:``}}),o(!0)}catch(e){console.error(e),rp.error(n(`Something went wrong. Please try again.`))}finally{u(!1)}}return(0,B.jsxs)(Mf,{open:r,onOpenChange:e=>{i(e),e||setTimeout(()=>{o(!1),c(!1)},200)},children:[(0,B.jsx)(Nf,{asChild:!0,children:e}),(0,B.jsx)(If,{className:`max-h-[90vh] overflow-y-auto sm:max-w-lg`,children:a?(0,B.jsxs)(`div`,{className:`py-8 text-center`,children:[(0,B.jsx)(zf,{className:`text-[var(--navy)]`,children:n(`Thank you!`)}),(0,B.jsx)(`p`,{className:`mt-3 text-[var(--secondary-text)]`,children:n(`Our team will be in touch within 2 business days.`)}),(0,B.jsx)(ze,{className:`mt-6`,onClick:()=>i(!1),children:n(`Close`)})]}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(Lf,{children:[(0,B.jsx)(zf,{className:`text-[var(--navy)]`,children:n(`Talk to an Expert`)}),(0,B.jsx)(Bf,{children:n(`Tell us about your facility and we'll set up a tailored walkthrough.`)})]}),(0,B.jsxs)(`form`,{onSubmit:p,className:`mt-2 grid gap-4`,children:[(0,B.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,B.jsxs)(`div`,{className:`grid gap-2`,children:[(0,B.jsx)(Oe,{htmlFor:`firstName`,children:n(`First name *`)}),(0,B.jsx)(Ie,{id:`firstName`,name:`firstName`,required:!0})]}),(0,B.jsxs)(`div`,{className:`grid gap-2`,children:[(0,B.jsx)(Oe,{htmlFor:`lastName`,children:n(`Last name *`)}),(0,B.jsx)(Ie,{id:`lastName`,name:`lastName`,required:!0})]})]}),(0,B.jsxs)(`div`,{className:`grid gap-2`,children:[(0,B.jsx)(Oe,{htmlFor:`email`,children:n(`Work email *`)}),(0,B.jsx)(Ie,{id:`email`,name:`email`,type:`email`,required:!0})]}),(0,B.jsxs)(`div`,{className:`grid gap-2`,children:[(0,B.jsx)(Oe,{htmlFor:`company`,children:n(`Company *`)}),(0,B.jsx)(Ie,{id:`company`,name:`company`,required:!0})]}),(0,B.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,B.jsxs)(`div`,{className:`grid gap-2`,children:[(0,B.jsx)(Oe,{htmlFor:`facility`,children:n(`Facility type *`)}),(0,B.jsxs)(`select`,{id:`facility`,name:`facility`,required:!0,defaultValue:``,className:`flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:[(0,B.jsx)(`option`,{value:``,disabled:!0,children:n(`Selectâ¦`)}),yp.map(e=>(0,B.jsx)(`option`,{value:e.value,children:n(e.label)},e.value))]})]}),(0,B.jsxs)(`div`,{className:`grid gap-2`,children:[(0,B.jsx)(Oe,{htmlFor:`country`,children:n(`Country *`)}),(0,B.jsx)(Ie,{id:`country`,name:`country`,required:!0})]})]}),(0,B.jsxs)(`div`,{className:`grid gap-2`,children:[(0,B.jsx)(Oe,{htmlFor:`message`,children:n(`Message *`)}),(0,B.jsx)(Vf,{id:`message`,name:`message`,rows:3,required:!0,placeholder:n(`Describe your facility or question`)})]}),(0,B.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,B.jsx)(Fe,{id:`gdpr`,checked:s,onCheckedChange:e=>c(e===!0),required:!0}),(0,B.jsxs)(Oe,{htmlFor:`gdpr`,className:`text-sm font-normal leading-snug text-[var(--secondary-text)]`,children:[n(`I agree to the`),` `,(0,B.jsx)(`a`,{href:`/privacy-policy`,className:`underline`,children:n(`Privacy Policy`)}),` `,n(`and consent to my data being used to schedule a demo.`)]})]}),(0,B.jsx)(ze,{type:`submit`,disabled:!s||l,className:`w-full`,children:n(l?`Sendingâ¦`:`Talk to an Expert`)})]})]})})]})}function xp(){let{language:e,setLanguage:t}=Bl();return(0,B.jsx)(`div`,{className:`flex items-center rounded-md border border-border p-0.5`,role:`group`,"aria-label":`Language`,children:[`en`,`pt`].map(n=>(0,B.jsx)(`button`,{type:`button`,onClick:()=>t(n),"aria-pressed":e===n,className:`rounded px-2 py-1 text-xs font-semibold uppercase transition-colors ${e===n?`bg-primary text-primary-foreground`:`text-[var(--secondary-text)] hover:text-[var(--primary)]`}`,children:n},n))})}var Sp=[{label:`Products`,items:[{label:`UPWATERâ¢`,href:`/products/upwater`},{label:`UPWASTE`,href:`/products/upwaste`}]},{label:`Sectors`,href:`/sectors`},{label:`Case Studies`,href:`/resources/case-studies`},{label:`News & Press`,href:`/resources/news`},{label:`About`,items:[{label:`Our Story`,href:`/about/story`},{label:`Partners & Investors`,href:`/about/partners`},{label:`Contact`,href:`/about/contact`}]}];function Cp({group:e}){let t=G();return e.items?(0,B.jsxs)(`div`,{className:`group relative`,children:[(0,B.jsxs)(`button`,{type:`button`,className:`inline-flex items-center gap-1 px-3 py-2 text-[15px] font-medium text-[var(--navy)] transition-colors hover:text-[var(--primary)]`,children:[t(e.label),(0,B.jsx)(El,{className:`size-4 opacity-70 transition-transform group-hover:rotate-180`})]}),(0,B.jsx)(`div`,{className:`invisible absolute left-1/2 top-full z-50 min-w-56 -translate-x-1/2 pt-2 opacity-0 transition-all group-hover:visible group-hover:opacity-100 group-focus-within:visible group-focus-within:opacity-100`,children:(0,B.jsx)(`div`,{className:`overflow-hidden rounded-lg border bg-card shadow-[var(--shadow-card)]`,children:e.items.map(e=>(0,B.jsx)(`a`,{href:e.href,className:`block px-4 py-2.5 text-sm text-[var(--navy)] transition-colors hover:bg-[var(--light-blue)] hover:text-[var(--primary)]`,children:t(e.label)},e.href))})})]}):(0,B.jsx)(Ee,{to:e.href,className:`inline-flex items-center px-3 py-2 text-[15px] font-medium text-[var(--navy)] transition-colors hover:text-[var(--primary)]`,activeProps:{className:`text-[var(--primary)]`},children:t(e.label)})}function wp(){let e=G(),[t,n]=(0,z.useState)(!1),[r,i]=(0,z.useState)(null);return(0,B.jsxs)(`header`,{className:`sticky top-0 z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/80`,children:[(0,B.jsxs)(`nav`,{className:`container-page flex h-16 items-center justify-between gap-6 md:h-20`,children:[(0,B.jsx)(Ee,{to:`/`,className:`flex items-center`,"aria-label":`Aqua
58in Silico â Home`,children:(0,B.jsx)(`img`,{src:`/ais-logo-transparent.png`,alt:`Aqua in Silico`,className:`h-11 w-auto md:h-14`})}),(0,B.jsx)(`div`,{className:`hidden items-center gap-1 lg:flex`,children:Sp.map(e=>(0,B.jsx)(Cp,{group:e},e.label))}),(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(xp,{}),(0,B.jsx)(bp,{trigger:(0,B.jsx)(`button`,{type:`button`,className:`hidden h-10 items-center justify-center rounded-md bg-primary px-4 text-sm font-semibold text-primary-foreground shadow-sm transition-all hover:brightness-110 lg:inline-flex`,children:e(`Talk to an Expert`)})}),(0,B.jsx)(`button`,{type:`button`,onClick:()=>n(e=>!e),"aria-label":`Toggle menu`,"aria-expanded":t,className:`inline-flex size-10 items-center justify-center rounded-md text-[var(--navy)] hover:bg-[var(--light-blue)] lg:hidden`,children:t?(0,B.jsx)(Al,{className:`size-5`}):(0,B.jsx)(kl,{className:`size-5`})})]})]}),t&&(0,B.jsx)(`div`,{className:`border-t bg-background lg:hidden`,children:(0,B.jsxs)(`div`,{className:`container-page py-3`,children:[Sp.map(t=>{if(!t.items)return(0,B.jsx)(`div`,{className:`border-b border-border/60 last:border-b-0`,children:(0,B.jsx)(Ee,{to:t.href,onClick:()=>n(!1),className:`block py-3 text-[15px] font-medium text-[var(--navy)]`,activeProps:{className:`text-[var(--primary)]`},children:e(t.label)})},t.label);let a=r===t.label;return(0,B.jsxs)(`div`,{className:`border-b border-border/60 last:border-b-0`,children:[(0,B.jsxs)(`button`,{type:`button`,onClick:()=>i(a?null:t.label),className:`flex w-full items-center justify-between py-3 text-left text-[15px] font-medium text-[var(--navy)]`,children:[e(t.label),(0,B.jsx)(El,{className:`size-4 transition-transform ${a?`rotate-180`:``}`})]}),a&&(0,B.jsx)(`div`,{className:`pb-3 pl-3`,children:t.items.map(t=>(0,B.jsx)(`a`,{href:t.href,onClick:()=>n(!1),className:`block py-2 text-sm text-[var(--secondary-text)] hover:text-[var(--primary)]`,children:e(t.label)},t.href))})]},t.label)}),(0,B.jsx)(bp,{trigger:(0,B.jsx)(`button`,{type:`button`,className:`mt-4 inline-flex h-11 w-full items-center justify-center rounded-md bg-primary px-4 text-sm font-semibold text-primary-foreground shadow-sm transition-all hover:brightness-110`,children:e(`Talk to an Expert`)})})]})})]})}var Tp=[{label:`Products`,href:`/products/upwater`},{label:`Sectors`,href:`/sectors`},{label:`News & Press`,href:`/resources/news`},{label:`Partners & Investors`,href:`/about/partners`},{label:`Contact`,href:`/about/contact`}];function Ep(){let e=G(),t=dc(Hf),[n,r]=(0,z.useState)(``),[i,a]=(0,z.useState)(!1),[o,s]=(0,z.useState)(!1),[c,l]=(0,z.useState)(!1),[u,d]=(0,z.useState)(null);async function f(o){if(o.preventDefault(),d(null),!i||c)return;let u=n.trim();if(!u||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(u)){d(e(`Please enter a valid email address.`));return}l(!0);try{await t({data:{formKey:`newsletter`,fields:{email:u,privacy_policy:`true`},pageUri:typeof window<`u`?window.location.href:``,pageName:typeof document<`u`?document.title:``}}),s(!0),r(``),a(!1)}catch(t){console.error(`Newsletter subscription failed:`,t),rp.error(e(`Something went wrong. Please try again.`)),d(e(`Something went wrong. Please try again.`))}finally{l(!1)}}return o?(0,B.jsx)(`p`,{className:`text-xs text-[var(--secondary-text)]`,children:e(`Thanks â you're on the list. Check your inbox to confirm.`)}):(0,B.jsxs)(`form`,{onSubmit:f,className:`space-y-2`,children:[(0,B.jsx)(`div`,{children:(0,B.jsx)(Ie,{type:`email`,name:`email`,placeholder:e(`Email address *`),value:n,onChange:e=>r(e.target.value),required:!0,className:`h-9 bg-white text-xs placeholder:text-[var(--secondary-text)]`})}),(0,B.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,B.jsx)(Fe,{id:`newsletter-consent`,checked:i,onCheckedChange:e=>a(e===!0),required:!0,className:`mt-0.5`}),(0,B.jsxs)(Oe,{htmlFor:`newsletter-consent`,className:`text-[11px] font-normal leading-snug text-[var(--secondary-text)]`,children:[e(`I have read the`),` `,(0,B.jsx)(`a`,{href:`/privacy-policy`,className:`underline hover:text-[var(--primary)]`,children:e(`Privacy Policy`)}),` `,e(`and consent to receive the AIS newsletter.`)]})]}),u&&(0,B.jsx)(`p`,{className:`text-[11px] text-red-600`,role:`alert`,children:u}),(0,B.jsx)(ze,{type:`submit`,disabled:!i||c,className:`h-9 w-full text-xs`,children:e(c?`Sendingâ¦`:`Subscribe`)})]})}function Dp(){let e=G();return(0,B.jsxs)(`footer`,{className:`mt-16 border-t bg-[var(--light-blue)]`,children:[(0,B.jsxs)(`div`,{className:`container-page grid gap-6 py-8 md:grid-cols-2 lg:grid-cols-4`,children:[(0,B.jsxs)(`div`,{className:`space-y-2`,children:[(0,B.jsx)(`img`,{src:`/ais-logo-transparent.png`,alt:`Aqua
58in Silico`,className:`h-9 w-auto`}),(0,B.jsx)(`p`,{className:`max-w-xs text-xs text-[var(--secondary-text)]`,children:e(`Predictive intelligence for wastewater treatment and resource recovery.`)})]}),(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`p`,{className:`label-caption mb-2`,children:e(`Explore`)}),(0,B.jsx)(`ul`,{className:`space-y-1.5`,children:Tp.map(t=>(0,B.jsx)(`li`,{children:(0,B.jsx)(`a`,{href:t.href,className:`text-xs text-[var(--navy)] transition-colors hover:text-[var(--primary)]`,children:e(t.label)})},t.href))})]}),(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`p`,{className:`label-caption mb-2`,children:e(`Newsletter`)}),(0,B.jsx)(`p`,{className:`mb-2 text-xs text-[var(--secondary-text)]`,children:e(`Trends and updates from the wastewater and resource recovery world.\xA0`)}),(0,B.jsx)(Ep,{})]}),(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`p`,{className:`label-caption mb-2`,children:e(`Connect`)}),(0,B.jsxs)(`ul`,{className:`space-y-1.5 text-xs`,children:[(0,B.jsx)(`li`,{children:(0,B.jsxs)(`a`,{href:`https://www.linkedin.com/company/aquainsilico`,target:`_blank`,rel:`noreferrer`,className:`inline-flex items-center gap-2 text-[var(--navy)] hover:text-[var(--primary)]`,children:[(0,B.jsx)(Dl,{className:`size-4`}),`@Aquainsilico`]})}),(0,B.jsx)(`li`,{children:(0,B.jsxs)(`a`,{href:`mailto:[email protected]`,className:`inline-flex items-center gap-2 text-[var(--navy)] hover:text-[var(--primary)]`,children:[(0,B.jsx)(Ol,{className:`size-4`}),`[email protected]`]})})]})]})]}),(0,B.jsx)(`div`,{className:`border-t border-border/70`,children:(0,B.jsxs)(`div`,{className:`container-page flex flex-col items-start justify-between gap-2 py-3 text-[11px] text-[var(--secondary-text)] md:flex-row md:items-center`,children:[(0,B.jsx)(`p`,{className:`text-[10px]`,children:e(`© 2026 Aqua in Silico. All rights reserved.`)}),(0,B.jsxs)(`nav`,{className:`flex flex-wrap items-center gap-x-4 gap-y-1`,children:[(0,B.jsx)(Ee,{to:`/about/partners`,hash:`investors`,className:`hover:text-[var(--primary)]`,children:e(`Investors`)}),(0,B.jsx)(`span`,{"aria-hidden":!0,children:`·`}),(0,B.jsx)(Ee,{to:`/privacy-policy`,className:`hover:text-[var(--primary)]`,children:e(`Privacy Policy`)}),(0,B.jsx)(`span`,{"aria-hidden":!0,children:`·`}),(0,B.jsx)(Ee,{to:`/cookie-policy`,className:`hover:text-[var(--primary)]`,children:e(`Cookie Policy`)})]})]})})]})}var Op=`ais_cookie_consent`;function kp(){let e=G(),[t,n]=(0,z.useState)(!1);return(0,z.useEffect)(()=>{try{localStorage.getItem(Op)||n(!0)}catch{}},[]),t?(0,B.jsx)(`div`,{role:`dialog`,"aria-live":`polite`,"aria-label":`Cookie consent`,className:`fixed inset-x-0 bottom-0 z-[100] px-4 pb-4 sm:px-6 sm:pb-6`,children:(0,B.jsxs)(`div`,{className:`mx-auto flex max-w-5xl flex-col gap-4 roun
58ded-xl border border-white/10 bg-neutral-900/95 p-5 text-white shadow-2xl backdrop-blur md:flex-row md:items-center md:justify-between md:gap-6`,children:[(0,B.jsx)(`p`,{className:`text-sm leading-relaxed text-white/85`,children:e(`We use cookies to improve your experience and analyse site traffic. You can accept all cookies or manage your preferences.`)}),(0,B.jsxs)(`div`,{className:`flex flex-shrink-0 flex-col gap-2 sm:flex-row`,children:[(0,B.jsx)(`button`,{type:`button`,onClick:()=>{try{localStorage.setItem(Op,JSON.stringify({status:`accepted_all`,date:new Date().toISOString()}))}catch{}n(!1)},className:`inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-semibold text-white transition-colors hover:opacity-90`,style:{backgroundColor:`#0076B6`},children:e(`Accept All`)}),(0,B.jsx)(Ee,{to:`/privacy-policy`,className:`inline-flex items-center justify-center rounded-md border border-white/40 bg-transparent px-4 py-2 text-sm font-semibold text-white transition-colors hover:bg-white/10`,children:e(`Manage Preferences`)})]})]})}):null}var Ap=({...e})=>(0,B.jsx)(vp,{className:`toaster group`,toastOptions:{classNames:{toast:`group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg`,description:`group-[.toast]:text-muted-foreground`,actionButton:`group-[.toast]:bg-primary group-[.toast]:text-primary-foreground`,cancelButton:`group-[.toast]:bg-muted group-[.toast]:text-muted-foreground`}},...e});function jp(){return(0,B.jsx)(`div`,{className:`flex min-h-screen items-center justify-center bg-background px-4`,children:(0,B.jsxs)(`div`,{className:`max-w-md text-center`,children:[(0,B.jsx)(`h1`,{className:`text-7xl font-bold text-foreground`,children:`404`}),(0,B.jsx)(`h2`,{className:`mt-4 text-xl font-semibold text-foreground`,children:`Page not found`}),(0,B.jsx)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:`The page you're looking for doesn't exist or has been moved.`}),(0,B.jsx)(`div`,{className:`mt-6`,children:(0,B.jsx)(Ee,{to:`/`,className:`inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90`,children:`Go home`})})]})})}function Mp({error:e,reset:t}){console.error(e);let n=o();return(0,z.useEffect)(()=>{Tl(e,{boundary:`tanstack_root_error_component`})},[e]),(0,B.jsx)(`div`,{className:`flex min-h-screen items-center justify-center bg-background px-4`,children:(0,B.jsxs)(`div`,{className:`max-w-md text-center`,children:[(0,B.jsx)(`h1`,{className:`text-xl font-semibold tracking-tight text-foreground`,children:`This page didn't load`}),(0,B.jsx)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:`Something went wrong on our end. You can try refreshing or head back home.`}),(0,B.jsxs)(`div`,{className:`mt-6 flex flex-wrap justify-center gap-2`,children:[(0,B.jsx)(`button`,{onClick:()=>{n.invalidate(),t()},className:`inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90`,children:`Try again`}),(0,B.jsx)(`a`,{href:`/`,className:`inline-flex items-center justify-center rounded-md border border-input bg-background px-4 py-2 text-sm font-medium text-foreground transition-colors hover:bg-accent`,children:`Go home`})]})]})})}var Np=Ns()({head:()=>({meta:[{charSet:`utf-8`},{name:`viewport`,content:`width=device-width, initial-scale=1`},{title:`Aqua in Silico â Predictive intelligence for wastewater & biogas`},{name:`description`,content:`AIS turns complex biological processes into controlled, profitable operations. UPWATER⢠and UPWASTE deploy in weeks.`},{name:`author`,content:`Aqua in Silico`},{property:`og:title`,content:`Aqua in Silico â Predictive intelligence for wastewater & biogas`},{property:`og:description`,content:`AIS turns complex biological processes into controlled, profitable operations. UPWATER⢠and UPWASTE deploy in weeks.`},{property:`og:type`,content:`website`},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:`Aqua in Silico â Predictive intelligence for wastewater & biogas`},{name:`twitter:description`,content:`AIS turns complex biological processes into controlled, profitable operations. UPWATER⢠and UPWASTE deploy in weeks.`},{property:`og:image`,content:`https://pub-bb2e103a32db4e198524a2e9ed8f35b4.r2.dev/2ea3d138-ec1f-4dd4-b9b1-28a97a42f106/id-preview-b40609d1--7fe7aa69-0a89-43df-aeaf-b00b7ece6518.lovable.app-1783725912056.png`},{name:`twitter:image`,content:`https://pub-bb2e103a32db4e198524a2e9ed8f35b4.r2.dev/2ea3d138-ec1f-4dd4-b9b1-28a97a42f106/id-preview-b40609d1--7fe7aa69-0a89-43df-aeaf-b00b7ece6518.lovable.app-1783725912056.png`}],links:[{rel:`stylesheet`,href:wl},{rel:`preconnect`,href:`https://fonts.googleapis.com`}
58,{rel:`preconnect`,href:`https://fonts.gstatic.com`,crossOrigin:`anonymous`},{rel:`stylesheet`,href:`https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap`},{rel:`icon`,href:`/favicon.svg`,type:`image/svg+xml`}]}),shellComponent:Pp,component:Fp,notFoundComponent:jp,errorComponent:Mp});function Pp({children:e}){return(0,B.jsxs)(`html`,{lang:`en`,children:[(0,B.jsx)(`head`,{children:(0,B.jsx)(cc,{})}),(0,B.jsxs)(`body`,{children:[e,(0,B.jsx)(lc,{})]})]})}function Fp(){let{queryClient:e}=Np.useRouteContext();return(0,B.jsx)(Cl,{client:e,children:(0,B.jsx)(zl,{children:(0,B.jsxs)(`div`,{className:`flex min-h-screen flex-col overflow-x-clip bg-background`,children:[(0,B.jsx)(wp,{}),(0,B.jsx)(`main`,{className:`flex-1`,children:(0,B.jsx)(Ys,{})}),(0,B.jsx)(Dp,{}),(0,B.jsx)(kp,{}),(0,B.jsx)(Ap,{})]})})})}var Ip=`modulepreload`,Lp=function(e){return`/`+e},Rp={},zp=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Lp(t,n),t in Rp)return;Rp[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:Ip,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Bp=Is(`/sectors`)({component:Rs(()=>zp(()=>import(`./sectors-BURIHufm.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])),`component`),head:()=>({meta:[{title:`Sectors â Aqua in Silico`},{name:`description`,content:`AIS solutions for wastewater treatment and organic waste & biogas operators â predictive control, digital twins and yield optimisation.`},{property:`og:title`,content:`Sectors â Aqua in Silico`},{property:`og:description`,content:`AIS solutions across wastewater and biogas â predictive control, digital twins and yield optimisation.`},{property:`og:type`,content:`website`},{name:`twitter:card`,content:`summary_large_image`}],links:[{rel:`canonical`,href:`/sectors`}]})}),Vp=Is(`/privacy-policy`)({component:Rs(()=>zp(()=>import(`./privacy-policy-Dj923s21.js`),__vite__mapDeps([11,1])),`component`),head:()=>({meta:[{title:`Privacy Policy â Aqua in Silico`},{name:`description`,content:`Aqua in Silico privacy policy: how we collect, use, and protect your personal data.`},{property:`og:title`,content:`Privacy Policy â Aqua in Silico`},{property:`og:description`,content:`Aqua in Silico privacy policy: how we collect, use, and protect your personal data.`},{property:`og:type`,content:`website`},{property:`og:url`,content:`/privacy-policy`},{name:`twitter:card`,content:`summary`}],links:[{rel:`canonical`,href:`/privacy-policy`}]})}),Hp=Is(`/cookie-policy`)({component:Rs(()=>zp(()=>import(`./cookie-policy-EUN9d2KX.js`),__vite__mapDeps([12,1])),`component`),head:()=>({meta:[{title:`Cookie Policy â Aqua in Silico`},{name:`description`,content:`Aqua in Silico cookie policy: what cookies we use and how to manage your preferences.`},{property:`og:title`,content:`Cookie Policy â Aqua in Silico`},{property:`og:description`,content:`Aqua in Silico cookie policy: what cookies we use and how to manage your preferences.`},{property:`og:type`,content:`website`},{property:`og:url`,content:`/cookie-policy`},{name:`twitter:card`,content:`summary`}],links:[{rel:`canonical`,href:`/cookie-policy`}]})}),Up=Is(`/`)({component:Rs(()=>zp(()=>import(`./routes-CSHZ-Z0J.js`),__vite__mapDeps([13,1,2,3,4,8,14,15,16])),`component`),head:()=>({meta:[{title:`Aqua in Silico â Predictive intelligence for wastewater & biogas`},{name:`description`,content:`AIS turns complex biological processes into controlled, profitable operations. UPWATER⢠and UPWASTE deploy in weeks.`},{property:`og:title`,content:`Aqua in Silico â Predictive intelligence for wastewater & biogas`},{property:`og:description`,content:`AIS turns complex biological processes into controlled, profitable operations. UPWATER⢠and UPWASTE deploy in weeks.`},{property:`og:url`,content:`/`}],links:[{rel:`canonical`,href:`/`}]})}),Wp=Is(`/products/`)({component:Rs(()=>zp(()=>import(`./products.index-BQHvDiH9.js`),__vite__mapDeps([17,1,18,19,6,7,3,4,8,9,10])),`component`),head:()=>({meta:[{title:`Products â UPWATER⢠& UPWASTE | Aqua in Silico`},{name:`description`,content:`Explore AIS products: UPWATER⢠for wastewater treatment optimisation and UPWASTE for resource recovery. Deployed in weeks, no new sensors.`},{property:`og:title`,content:`Products â UPWATER⢠& UPWASTE`},{property:`og:description`,content:`Predictive intelligence platforms for wastewater and biogas operations.`},{property:`og:type`,content:`website`}],links:[{rel:`canonical`,href:`/products`}]})}),Gp=Is(`/resources/news`)({component:Rs(()=>zp(()=>import(`./resources.news-VQvCMdS3.js`),__vite__mapDeps([20,1])),`component`)}),Kp=Is(`/resources/case-studies`)({component:Rs(()=>zp(()=>import(`./resources.case-studies-VQvCMdS3.js`),__vite__mapDeps([21,1])),`component`)}),qp=Is(`/products/upwater`)({component:Rs(()=>zp(()=>import(`./products.upwater-BvRP_yxG.js`),__vite__mapDeps([22,1,23,2,3,4,19,8,10,24,25,16])),`component`),head:()=>({meta:[{title:`UPWATER⢠â Cut water management costs by up to 50% | Aqua in Silico`},{name:`description`,content:`UPWATER⢠is the digital twin platform that optimises treatment plant performance using data you already have. No new sensors. Deployed in weeks.`},{property:`og:title`,content:`UPWATER⢠â Predictive intelligence for wastewater plants`},{property:`og:description`,content:`Cut OPEX by up to 50%, reduce aeration energy by 20â70%, and stay 100% compliant. Deployed in weeks.`},{property:`og:type`,content:`website`}],links:[{rel:`canonical`,href:`/products/upwater`}]})}),Jp=Is(`/products/upwaste`)({component:Rs(()=>zp(()=>import(`./products.upwaste-B7GtiFoD.js`),__vite__mapDeps([26,1,18,23,2,3,4,8,27,15])),`component`),head:()=>({meta:[{title:`UPWASTE â Predictive Intelligence for Biogas Recovery | Aqua in Silico`},{name:`description`,content:`UPWASTE maximises biogas yield, stabilises digestion and reduces downtime using data your facility already generates.`},{property:`og:title`,content:`UPWASTE â Predictive Intelligence for Biogas Recovery`},{property:`og:description`,content:`Maximise biomethane yield and stabilise anaerobic digestion â deployed in weeks.`},{property:`og:type`,content:`website`}],links:[{rel:`canonical`,href:`/products/upwaste`}]})}),Yp=Is(`/about/story`)({component:Rs(()=>zp(()=>import(`./about.story-Dbhz7Jzz.js`),__vite__mapDeps([28,1,6,7,3,4,8,29,24])),`component`),head:()=>({meta:[{title:`Our Story â Aqua in Silico`}
58,{name:`description`,content:`Built on science, driven by impact. Aqua in Silico turns 30+ years of environmental bioengineering research into AI-powered digital twins for water and biogas plants.`},{property:`og:title`,content:`Our Story â Aqua in Silico`},{property:`og:description`,content:`A deep-tech spin-off from NOVA University Lisbon, co-founded with Frontier IP Group, bringing scientific depth into the operational reality of water and biogas plants.`},{property:`og:type`,content:`website`},{name:`twitter:card`,content:`summary_large_image`}],links:[{rel:`canonical`,href:`/about/story`}]})}),Xp=Is(`/about/partners`)({component:Rs(()=>zp(()=>import(`./about.partners-Yj83HMii.js`),__vite__mapDeps([30,1,2,3,4,5,8,27,29,14,25])),`component`),head:()=>({meta:[{title:`Partners & Investors â Aqua in Silico`},{name:`description`,content:`Institutional partners and investment opportunity: 30+ years of NOVA University Lisbon research, backed by Frontier IP Group, deployed with Veolia, ANAS, Aguas de Portugal and more.`},{property:`og:title`,content:`Partners & Investors â Aqua in Silico`},{property:`og:description`,content:`A rare entry point into the digitalisation of water and resource recovery\xA0-\xA0at the moment regulation makes it inevitable.`},{property:`og:type`,content:`website`},{name:`twitter:card`,content:`summary_large_image`}],links:[{rel:`canonical`,href:`/about/partners`}]})}),Zp=Is(`/about/contact`)({component:Rs(()=>zp(()=>import(`./about.contact-C-FQ6JAs.js`),__vite__mapDeps([31,1,2,3,4,5,32,33])),`component`),head:()=>({meta:[{title:`Contact â Aqua in Silico`},{name:`description`,content:`Get in touch with Aqua in Silico. Talk to an expert, explore partnerships, or reach our press team.`},{property:`og:title`,content:`Contact â Aqua in Silico`},{property:`og:description`,content:`Get in touch with Aqua in Silico. Talk to an expert, explore partnerships, or reach our press team.`},{property:`og:type`,content:`website`},{name:`twitter:card`,content:`summary_large_image`}],links:[{rel:`canonical`,href:`/about/contact`}]})}),Qp=Is(`/resources/news/`)({component:Rs(()=>zp(()=>import(`./resources.news.index-BacYptFB.js`),__vite__mapDeps([34,1,2,3,4,6,7,35,33])),`component`),head:()=>({meta:[{title:`News & Press â Aqua in Silico`},{name:`description`,content:`Press releases, awards, projects and media coverage from Aqua in Silico â AI-powered digital twins for wastewater and biogas.`},{property:`og:title`,content:`News & Press â Aqua in Silico`},{property:`og:description`,content:`Press releases, awards, projects and media coverage from Aqua in Silico.`},{property:`og:type`,content:`website`}],links:[{rel:`canonical`,href:`/resources/news`}]})}),$p={version:1,asset_id:`b01935b5-8919-4184-aba5-3d7a2d679d21`,project_id:`a8e35c57-d163-4c32-a350-3826bf94381a`,url:`/__l5e/assets-v1/b01935b5-8919-4184-aba5-3d7a2d679d21/sowise.jpg`,r2_key:`a/v1/a8e35c57-d163-4c32-a350-3826bf94381a/b01935b5-8919-4184-aba5-3d7a2d679d21/sowise.jpg`,original_filename:`sowise.jpg`,size:49478,content_type:`image/jpeg`,created_at:`2026-09-04T23:05:50Z`},em=[{src:{version:1,asset_id:`d0415a54-02ee-40fd-a46e-c288ae177143`,project_id:`a8e35c57-d163-4c32-a350-3826bf94381a`,url:`/__l5e/assets-v1/d0415a54-02ee-40fd-a46e-c288ae177143/cbe.jpg`,r2_key:`a/v1/a8e35c57-d163-4c32-a350-3826bf94381a/d0415a54-02ee-40fd-a46e-c288ae177143/cbe.jpg`,original_filename:`cbe.jpg`,size:44059,content_type:`image/jpeg`,created_at:`2026-09-04T23:05:53Z`}.url,alt:`Circular Bio-based Europe Joint Undertaking`},{src:{version:1,asset_id:`0bb5636e-5cb0-4511-9542-61202c7ab1d2`,project_id:`a8e35c57-d163-4c32-a350-3826bf94381a`,url:`/__l5e/assets-v1/0bb5636e-5cb0-4511-9542-61202c7ab1d2/bic.jpg`,r2_key:`a/v1/a8e35c57-d163-4c32-a350-3826bf94381a/0bb5636e-5cb0-4511-9542-61202c7ab1d2/bic.jpg`,original_filename:`bic.jpg`,size:15376,content_type:`image/jpeg`,created_at:`2026-09-04T23:05:58Z`}.url,alt:`Bio-based Industries Consortium`},{src:{version:1,asset_id:`dfcc2b73-1c14-4cb2-89fd-d3537d4fe0af`,project_id:`a8e35c57-d163-4c32-a350-3826bf94381a`,url:`/__l5e/assets-v1/dfcc2b73-1c14-4cb2-89fd-d3537d4fe0af/eu-cofunded.jpg`,r2_key:`a/v1/a8e35c57-d163-4c32-a350-3826bf94381a/dfcc2b73-1c14-4cb2-89fd-d3537d4fe0af/eu-cofunded.jpg`,original_filename:`eu-cofunded.jpg`,size:20729,content_type:`image/jpeg`,created_at:`2026-09-04T23:06:02Z`}.url,alt:`Co-funded by the European Union`}],tm=`The project is supported by the Circular Bio-based Europe Joint Undertaking and its members.`,nm=`Funded by the European Union. Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or CBE JU. Neither the European Union nor the CBE JU can be held responsible for them.`,rm=[{slug:`sowise-plus-biorefinery`,eyebrowTags:[`Horizon Europe`,`Circular Bioeconomy`,`Digital Control`,`Bioplastics`],title:`AIS to lead digital intelligence layer in a â¬23.19M Horizon Europe flagship biorefinery project`,deck:`AIS will develop and deploy a next-generation AI-powered predictive control system for Europe's first industrial-scale biorefinery convert
58ing urban waste into bioplastics and cellulose.`,location:`Lisbon, Portugal`,date:`June 2026`,sortKey:`2026-07`,body:[{type:`p`,text:`AquaInSilico (AIS) is a consortium partner in SOWISE+ (Solid Organic Waste Into Sustainable End-Products), a flagship Horizon Europe Innovation Action project selected for funding. The project brings together 25 partners from 9 European countries and has a total budget of approximately â¬23.19 million.`},{type:`h2`,text:`SOWISE+ project`},{type:`p`,text:`SOWISE+ will establish Europe's first fully integrated, industrial-scale multipurpose biorefinery, converting urban biowaste into bioplastics and recovering cellulose from post-consumer absorbent hygiene products. Hosted by Contarina S.p.A. â an urban waste management company in Italy â the facility will produce up to 230 tonnes per year of PHBV biodegradable bioplastic and up to 700 tonnes per year of virgin-like cellulose, demonstrating a new circular model for urban waste valorisation at TRL 8 and establishing a reference model for integrated urban-industrial symbiosis that can be replicated across Europe.`},{type:`h2`,text:`AIS's role`},{type:`p`,text:`Within SOWISE+, AIS holds sole responsibility for designing, developing and deploying the next-generation digital monitoring and predictive control system for the biowaste-to-PHBV production line. AIS will build and implement a Model Predictive Control (MPC) system combining mechanistic process models with machine learning techniques including principal component analysis (PCA) and artificial neural networks (ANN), IoT monitoring, and continuous model calibration. The system will enable real-time prediction of critical process parameters, multi-objective optimisation to maximise PHBV yield, and predictive maintenance through anomaly detection.`},{type:`quote`,text:`SOWISE+ demonstrates the tangible value of our UPWATER⢠platform in advancing bio-based resource recovery. This highlights a significant opportunity for both utilities and industrial stakeholders to embrace more sustainable, circular systems along with additional revenue streams. We are proud to provide the digital backbone for what will become Europe's most advanced circular biorefinery.`,author:`Jorge Santos`,role:`CEO, Aqua in Silico`}],facts:[{label:`Programme`,value:`Horizon Europe / CBE JU`},{label:`Total consortium budget`,value:`â¬23.19M`},{label:`Consortium`,value:`25 partners · 9 EU countries`},{label:`Coordinator`,value:`Contarina SPA, Treviso, Italy`},{label:`AIS grant`,value:`â¬309,279 (non-reimbursable)`},{label:`Execution period`,value:`7 Jun 2026 â 7 Jun 2031`}],funding:{logos:[{src:$p.url,alt:`SOWISE+`},...em],acknowledgement:tm,disclaimer:nm}},{slug:`phactus-consortium`,eyebrowTags:[`Horizon Europe`,`Circular Bioeconomy`,`Bio-based Industries`,`Bioplastics`],title:`AIS joins Horizon Europe PHACTUS Consortium to advance the production of biodegradable bioplastics`,deck:`AIS is a consortium partner in a European-funded project bringing digital intelligence capabilities to a cutting-edge circular bioeconomy research and innovation initiative.`,location:`Lisbon, Portugal`,date:`June 2026`,sortKey:`2026-06`,body:[{type:`p`,text:`AquaInSilico (AIS) is pleased to announce its participation in PHACTUS (PHA through Continuous, Tunable, Safe and Sustainable Production), a project selected for funding under the Horizon Europe Circular Bio-based Europe Joint Undertaking (CBE JU). As one of the consortium partners, AIS joins a consortium of leading European research institutions, universities and innovative enterprises committed to advancing circular bio-based solutions across the European Union.`},{type:`h2`,text:`PHACTUS project`},{type:`p`,text:`PHACTUS's goal is to transform the way bioplastic polyhydroxyalkanoates (PHAs) are produced from urban organic waste and wastewater treatment sludge, by replacing today's batch-based manufacturing process with continuous production. This breakthrough has the potential to make the production of biodegradable bioplastics more efficient, consistent and cost-effective, accelerating their adoption as a sustainable alternative to fossil-based plastics.`},{type:`h2`,text:`AIS's role in PHACTUS`},{type:`p`,text:`AIS participates in PHACTUS as a specialist in digital intelligence and process optimisation for bio-based systems. AIS will implement predictive modelling and develop an AI-driven process control to supp
58ort the operation and optimisation of a continuous PHA production process that effectively maintains the desired productivity and composition within a specific range, independently of the residue's composition.`},{type:`h2`,text:`Why this matters`},{type:`p`,text:`Participation in a Horizon Europe CBE JU project is a significant validation of AIS's scientific and technological capabilities. It places AIS alongside leading European research and industrial organisations and opens the opportunity to expand the application of its AI and digital twin technologies beyond wastewater treatment into the broader bioeconomy sector. Through PHACTUS, AIS will demonstrate how UPWATER⢠can improve the reliability, efficiency and scalability of next-generation bio-based production processes.`},{type:`quote`,text:`For AIS, PHACTUS is an opportunity to push the boundaries of process modelling for continuous bioprocesses. By contributing to the optimisation of a novel waste-to-value bioprocess, we are demonstrating how advanced digital intelligence can accelerate the development and scale-up of the next generation of bio-based products derived from waste streams.`,author:`Jorge Santos`,role:`CEO, AquaInSilico`}],facts:[{label:`Programme`,value:`Horizon Europe / CBE JU`},{label:`Call`,value:`Horizon-JU-CBE-2025-IA-04`},{label:`Total consortium budget`,value:`~â¬8.46M`},{label:`Coordinator`,value:`Sapienza University of Rome, Italy`},{label:`AIS grant`,value:`â¬204,780 (non-reimbursable)`},{label:`Execution period`,value:`3 Sep 2026 â 2 Sep 2029`}],funding:{logos:em,acknowledgement:tm,disclaimer:nm}},{slug:`ai-in-smes-grant`,eyebrowTags:[`Investment & Innovation`,`Digital Transformation`,`Water Technology`],title:`Aqua in Silico secures â¬200K grant to accelerate AI integration into UPWATERâ¢`,deck:`Portuguese national funding backs AIS's transition to a fully scalable SaaS digital twin platform for wastewater management.`,location:`Lisbon, Portugal`,date:`March 2026`,sortKey:`2026-05`,body:[{type:`p`,text:`AquaInSilico (AIS) has been awarded a non-reimbursable grant of â¬202,499.69 under the programme line "AI in SMEs" (Notice No. 03/C05-i14-.01/2025), managed by Banco Português de Fomento within Portugal's Recovery and Resilience Plan (PRR) and co-financed by NextGenerationEU. The grant covers 75% of the total eligible investment of â¬269,999.59 and will fund the project AquaInSilico.AI, running from February 2026 to September 2027.`},{type:`h2`,text:`Funding impact`},{type:`p`,text:`The AquaInSilico.AI project marks a decisive step in scaling AquaInSilico's expertise from project-by-project delivery into a continuous, scalable SaaS platform. This investment embeds advanced AI and automation directly into UPWATERâ¢, enabling seamless, automatic connectivity between simulation outputs and client infrastru
58cture, allowing operators and managers to see the real-time impact of different operational strategies on environmental and economic KPIs â with no manual setup required from AIS. Expected outcomes: 40% reduction in project execution time, 30% increase in simultaneous client capacity, and 2 new specialist hires in AI and data science.`},{type:`h2`,text:`Strategic context`},{type:`p`,text:`The global wastewater treatment services market is valued at approximately â¬95 billion. UPWATER⢠already demonstrates overall operational cost reductions of 20 to 50%, and nutrient removal improvements exceeding 50% in deployed facilities. The AquaInSilico.AI project accelerates the delivery of these outcomes at scale, enabling AIS to serve a significantly larger number of utilities.`},{type:`quote`,text:`This investment is a turning point for AIS. The AI integration funded by this grant brings our company to a next level of digital transformation that will bring more value to our clients. Furthermore, this funding will remove one of the key constraints on our growth, enabling us to transition from delivering bespoke solutions to operating a scalable digital platform that can serve many clients simultaneously.`,author:`Jorge Santos`,role:`CEO, AquaInSilico`}],facts:[{label:`Programme`,value:`Linha IA nas PME (C05-i14.01)`},{label:`Managing entity`,value:`Banco Português de Fomento`},{label:`Framework`,value:`Portugal PRR / NextGenerationEU`},{label:`Grant amount`,value:`â¬202,499.69`},{label:`Execution period`,value:`1 Feb 2026 â 30 Sep 2027`}]}],im=Is(`/resources/news/$slug`)({loader:({params:e})=>{let t=rm.find(t=>t.slug===e.slug);if(!t)throw xe();return{release:t}},head:({loaderData:e})=>{if(!e)return{meta:[{title:`Press release not found â Aqua in Silico`},{name:`robots`,content:`noindex`}]};let{release:t}=e,n=`${t.title} | Aqua in Silico`;return{meta:[{title:n},{name:`description`,content:t.deck},{property:`og:title`,content:n},{property:`og:description`,content:t.deck},{property:`og:type`,content:`article`},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:n},{name:`twitter:description`,content:t.deck}]}},component:Rs(()=>zp(()=>import(`./resources.news._slug-BotFI9Ze.js`),__vite__mapDeps([36,1,2,3,4,6,7,37,8,38,32,39])),`component`),notFoundComponent:Rs(()=>zp(()=>import(`./resources.news._slug-XX7CKAKh.js`),__vite__mapDeps([40,1,6,7,3,4,37])),`notFoundComponent`)}),am=Is(`/resources/case-studies/`)({component:Rs(()=>zp(()=>import(`./resources.case-studies.index-BqQ10OpI.js`),__vite__mapDeps([41,1,2,3,4,6,7,8,35,39])),`component`),head:()=>({meta:[{title:`Case Studies â Proven Results | Aqua in Silico`},{name:`description`,content:`Real plants. Measurable impact. Explore how Aqua in Silico's UPWATER⢠platform is delivering predictive intelligence for wastewater and biogas facilities.`},{property:`og:title`,content:`Case Studies â Proven Results | Aqua in Silico`},{property:`og:description`,content:`Real plants. Measurable impact. Explore how Aqua in Silico's UPWATER⢠platform is delivering predictive intelligence for wastewater and biogas facilities.`},{property:`og:type`,content:`website`}],links:[{rel:`canonical`,href:`/resources/case-studies`}]})}),om=()=>zp(()=>import(`./resources.case-studies._slug--NJMU8s_.js`),__vite__mapDeps([42,1,6,7,3,4,37])),sm=()=>zp(()=>import(`./resources.case-studies._slug-pLwZ36CB.js`),__vite__mapDeps([43,1,2,3,4,6,7,37,8,38,32,39])),cm={back:`Case Studies`,caseStudy:`Case Study`,keyFacts:`Key facts`,share:`Share this case study`,about:`About AIS`,aboutBody:`AIS is a Portuguese deep-tech company and spin-off from NOVA University Lisbon, co-founded with Frontier IP Group. AIS powers UPWATER⢠and UPWASTE â AI-powered digital twin platforms for wastewater and organic waste treatment facilities, turning complex biological processes into predictable, efficient and profitable operations.`,ctaEyebrow:`Ready to see it on your plant?`,ctaTitle:`Book a tailored walkthrough with our engineering team.`,ctaButton:`Talk to an Expert`},lm={back:`Casos de Estudo`,caseStudy:`Caso de Estudo`,keyFacts:`Factos-chave`,share:`Partilhar este caso de estudo`,about:`Sobre a AIS`,aboutBody:`A AIS é uma empresa deep-tech portuguesa e spin-off da NOVA University Lisbon, co-fundada com a Frontier IP Group. A AIS desenvolve as plataformas UPWATER⢠e UPWASTE â gémeos digitais com inteligência artificial para
58instalações de tratamento de águas residuais e de resÃduos orgânicos, tornando processos biológicos complexos previsÃveis, eficientes e rentáveis.`,ctaEyebrow:`Quer ver isto na sua instalação?`,ctaTitle:`Marque uma apresentação personalizada com a nossa equipa de engenharia.`,ctaButton:`Marcar uma Demonstração`},um=[{slug:`etsa-industrial-wastewater`,en:{tags:[`Industrial Wastewater`,`UPWATERâ¢`,`Nitrogen Removal`,`Data4All`],title:`UPWATER⢠demonstrates its effectiveness in an industrial wastewater facility with ETSA`,deck:`A six-month demonstration at ETSA's Coruche plant showed how UPWATER⢠improves total nitrogen removal and reduces energy consumption in a complex industrial context.`,location:`Coruche, Portugal`,date:`18 November 2025`,body:[{type:`p`,text:`AquaInSilico successfully completed a project in partnership with ETSA, a company of the SEMAPA Group. The initiative demonstrated the capabilities of UPWATERâ¢, the digital platform created by AquaInSilico, at an industrial wastewater treatment plant located at ETSA's facilities in Coruche, Portugal, where animal by-products are transformed into feed, proteins and oils.`},{type:`p`,text:`The project was both a high-impact technical application and a strategic milestone for AquaInSilico. Launched in early 2025 and supported by the Data4All test bed, it aimed to optimise total nitrogen removal in a complex industrial setting.`},{type:`h2`,text:`What was done`},{type:`p`,text:`UPWATER⢠was used to simulate multiple operational scenarios, providing tailored, data-driven strategies to improve the removal of ammonia, nitrates and nitrites across different production campaigns. The pilot focused on identifying key performance indicators to ensure robust operation throughout the year.`},{type:`p`,text:`During the six-month demonstration, UPWATER⢠made it possible to evaluate eight operational strategies, leading to the identification of the most effective approaches, including:`},{type:`list`,items:[`Essential control parameters, such as macronutrient concentrations, pH or temperature, to ensure stable nitrification;`,`Control strategies, such as regulating aeration based on DO or ammonia concentrations, improving ammonia removal and reducing energy consumption;`,`Optimised operating conditions, including flow distribution and carbon dosing, to consistently meet total nitrogen discharge limits.`]},{type:`p`,text:`Using advanced intelligence algorithms, UPWATER⢠delivered forecasts and supported preventive actions, helping the plant management team handle the variability typical of industrial effluents caused by changes in production.`},{type:`h2`,text:`Why it matters`},{type:`p`,text:`This pilot reinforced the value of the collaboration between AquaInSilico and ETSA, demonstrating the adaptability of digital tools in demanding industrial environments and highlighting the role of digitalisation in building a more efficient and sustainable wastewater sector.`},{type:`quote`,text:`ETSA trusted AquaInSilico, and it was a pleasure to work with a team so genuinely committed to improving sustainability at the Coruche treatment plant. We are proud to demonstrate the potential of UPWATER⢠and the broad applicability of our algorithms, which adapted seamlessly to ETSA's operation. Whether in conventional activated sludge systems or advanced technologies such as MBBR reactors, UPWATER⢠helps reduce the time needed to identify and overcome process disturbances.`,author:`Jorge Santos`,role:`CEO, AquaInSilico`},{type:`quote`,text:`The project developed over the past months within the test bed allowed us to quickly and efficiently understand the impacts that changes in the operating parameters of our plant can have â not only on final effluent quality, but also on our operational strategy. Being able to simulate different scenarios through software gives us the advantage of making faster decisions, anticipating potential problems and optimising the plant's energy consumption.`,author:`João Oliva`,role:`Environmental Technician, ETSA`},{type:`quote`,text:`This successful demonstration within the Data4All test bed shows how collaborative innovation can turn data into real value for industry and for sustainability. The UPWATER⢠pilot with ETSA is a solid example of how AI and digital technologies can improve operational efficiency, reduce environmental impact and support a more resilient and competitive industrial ecosystem.`,author:`Raquel Sousa`,role:`Head of Unit, INOVA+ and Data4All project lead`},{type:`h2`,text:`About Data4All`},{type:`p`,text:`Data4All is one of more than 30 national Test Beds approved under Portugal's Recovery and Resilience Plan (PRR). Promoted by INOVA+ and Dectech, the project offers a technology validation ecosystem for startups and SMEs with products and services based on artificial intelligence and advanced digital technologies. In collaboration with ETSA, under the Sustainability Challenge, the goal of promoting cooperation between startups and established companies by providing access to industrial infrastru
58cture was achieved with excellent results.`},{type:`p`,text:`The initiative further strengthens AquaInSilico's ability to demonstrate the adaptability of its digital solutions across different client profiles and operating contexts. The successful conclusion of this project confirms that AquaInSilico is well positioned to support not only urban utilities but also industrial operators, accelerating the transition to smarter and more sustainable wastewater treatment.`}],facts:[{label:`Client`,value:`ETSA (SEMAPA Group)`},{label:`Site`,value:`Industrial WWTP, Coruche, Portugal`},{label:`Platform`,value:`UPWATERâ¢`},{label:`Duration`,value:`6-month demonstration, 2025`},{label:`Strategies evaluated`,value:`8 operational strategies`},{label:`Programme`,value:`Data4All test bed (PRR)`}],labels:cm},pt:{tags:[`Ãguas Residuais Industriais`,`UPWATERâ¢`,`Remoção de Azoto`,`Data4All`],title:`O UPWATER⢠demonstra a sua eficácia numa instalação industrial de tratamento de águas residuais com a ETSA`,deck:`Uma demonstração de seis meses na instalação da ETSA em Coruche mostrou como o UPWATER⢠melhora a remoção de azoto total e reduz o consumo energético num contexto industrial
58complexo.`,location:`Coruche, Portugal`,date:`18/11/2025`,body:[{type:`p`,text:`A AquaInSilico concluiu com sucesso um projeto em parceria com a ETSA, uma empresa do Grupo SEMAPA. A iniciativa demonstrou as capacidades do UPWATERâ¢, a plataforma digital criada pela AquaInSilico, numa estação de tratamento de águas residuais industriais localizada nas instalações da ETSA em Coruche, Portugal, onde subprodutos animais são transformados em rações, proteÃnas e óleos.`},{type:`p`,text:`Este projeto representou simultaneamente uma aplicação técnica de elevado impacto e um marco estratégico para a AquaInSilico. Lançado no inÃcio de 2025, o projeto, apoiado pelo test bed Data4All, teve como objetivo otimizar a remoção total de azoto num contexto industrial complexo.`},{type:`h2`,text:`O que foi feito`},{type:`p`,text:`O UPWATER⢠foi utilizado para simular múltiplos cenários operacionais, fornecendo estratégias personalizadas e orientadas por dados para melhorar a remoção de amónia, nitratos e nitritos ao longo das diferentes campanhas de produção. O piloto centrou-se na identificação de indicadores chave de desempenho para garantir uma operação robusta durante todo o ano.`},{type:`p`,text:`Durante os seis meses de demonstração, o UPWATER⢠permitiu avaliar oito estratégias operacionais, conduzindo à identificação das abordagens mais eficazes, incluindo:`},{type:`list`,items:[`Parâmetros de controlo essenciais, como concentrações de macronutrientes, pH ou temperatura, para assegurar uma nitrificação estável;`,`Estratégias de controlo, como a regulação da aeração com base em DO ou concentrações de amónia, permitindo melhorar a remoção de amónia e reduzir o consumo energético;`,`Condições operacionais otimizadas, incluindo distribuição de caudal ou fornecimento de carbono, para cumprir consistentemente os limites de descarga de azoto total.`]},{type:`p`,text:`Recorrendo a algoritmos avançados de inteligência, o UPWATER⢠forneceu previsões e suportou ações preventivas, ajudando os responsáveis pela gestão da ETAR a gerir a variabilidade tÃpica dos efluentes industriais causada por alterações na produção.`},{type:`h2`,text:`Porque é relevante`},{type:`p`,text:`Este piloto reforçou o valor da colaboração entre a AquaInSilico e a ETSA, demonstrando a adaptabilidade das ferramentas digitais em ambientes industriais exigentes e destacando o papel da digitalização na construção de um setor de águas residuais mais eficiente e sustentável.`},{type:`quote`,text:`A ETSA confiou na AquaInSilico, e foi um gosto trabalhar com uma equipa tão genuinamente empenhada em melhorar a sustentabilidade na estação de tratamento de Coruche. Orgulhamo-nos de demonstrar o potencial do UPWATER⢠e a ampla aplicabilidade dos nossos algoritmos, que se adaptaram de forma fluida à operação da ETSA. Quer em sistemas convencionais de lamas ativadas, quer em tecnologias avançadas como os reatores MBBR, o UPWATER⢠ajuda a reduzir o tempo necessário para identificar e ultrapassar perturbações no processo.`,author:`Jorge Santos`,role:`CEO, AquaInSilico`},{type:`quote`,text:`O projeto desenvolvido nos últimos meses no âmbito do test bed permitiu-nos compreender de forma rápida e eficiente os impactos que alterações nos parâmetros de operação da nossa ETAR podem ter â não só na qualidade do efluente final, mas também na nossa estratégia operacional. A capacidade de simular diferentes cenários através de software dá-nos a vantagem de tomar decisões mais rápidas, antecipar potenciais problemas e otimizar o consumo energético da estação.`,author:`João Oliva`,role:`Técnico Ambiental, ETSA`},{type:`quote`,text:`Esta demonstração bem-sucedida no âmbito do test bed Data4All evidencia como a inovação colaborativa pode transformar dados em valor real para a indústria e para a sustentabilidade. O piloto do UPWATER⢠com a ETSA é um exemplo sólido de como a IA e as tecnologias digitais podem melhorar a eficiência operacional, reduzir o impacto ambiental e apoiar um ecossistema industrial mais resiliente e competitivo.`,author:`Raquel Sousa`,role:`Head of Unit na INOVA+ e lÃder do projeto Data4All`},{type:`h2`,text:`Sobre o Data4All`},{type:`p`,text:`O Data4All é um dos mais de 30 Test Beds nacionais aprovados no Plano de Recuperação e Resiliência (PRR). Promovido pela INOVA+ e pela Dectech, o projeto oferece um ecossistema de validação tecnológica para startups e PME com produtos e serviços baseados em inteligência artificial e tecnologias digitais avançadas. Em colaboração com a ETSA, no âmbito do Sustainability Challenge, o objetivo de promover a cooperação entre startups e empresas estabelecidas, disponibilizando acesso a infraestruturas industriais, foi alcançado com excelentes resultados.`},{type:`p`,text:`A iniciativa reforça ainda mais a capacidade da AquaInSilico para demonstrar a adaptabilidade das suas soluções digitais em diferentes perfis de clientes e contextos operacionais. A conclusão bem-sucedida deste projeto confirma que a AquaInSilico está bem posicionada para apoiar não só entidades urbanas, mas também operadores industriais, acelerando a transição para um tratamento de águas residuais mais inteligente e sustentável.`}],facts:[{label:`Cliente`,value:`ETSA (Grupo SEMAPA)`},{label:`Instalação`,value:`ETAR industrial, Coruche, Portugal`},{label:`Plataforma`,value:`UPWATERâ¢`},{label:`Duração`,value:`Demonstração de 6 meses, 2025`}
58,{label:`Estratégias avaliadas`,value:`8 estratégias operacionais`},{label:`Programa`,value:`Test bed Data4All (PRR)`}],labels:lm}},{slug:`bondalti-water-industrial-pilot`,en:{tags:[`Industrial Wastewater`,`UPWATERâ¢`,`Green Vouchers`,`Energy Efficiency`],title:`AquaInSilico demonstrates UPWATER⢠at an industrial WWTP in a pilot with Bondalti Water`,deck:`A demonstrator project at a large-scale industrial wastewater treatment plant in Navarre, Spain, showed how UPWATER⢠improves process control, reduces aeration energy and supports circular-economy goals.`,location:`Navarre, Spain`,date:`3 October 2025`,body:[{type:`p`,text:`AquaInSilico is pleased to announce the completion of a demonstrator project with Bondalti Water, supported by the Green Vouchers programme, funded under Portugal's Recovery and Resilience Plan.`},{type:`p`,text:`The initiative highlighted the potential of UPWATERâ¢, AquaInSilico's proprietary digital platform, at a large-scale industrial wastewater treatment plant in Navarre, Spain, operated by Bondalti Water and serving several food-processing industries.`},{type:`p`,text:`For AquaInSilico, this project represented both a significant challenge and an important milestone. Started in 2024, it began with the processing and reconciliation of extensive data from a large industrial pilot, demonstrating not only the robustness of the technology but also its adaptability to complex and variable industrial conditions.`},{type:`h2`,text:`What was done`},{type:`p`,text:`UPWATER⢠was used to simulate multiple operational scenarios, providing tailored, data-driven strategies to optimise plant performance. As a demonstrator project, the focus was on showcasing core functionalities, identifying key performance indicators that ensure robust operation, maximising pollutant removal at lower cost and assessing adaptability to industrial
58conditions. Throughout the project, UPWATER⢠enabled the detailed study of six operational strategies, leading to the identification of the most effective approaches to:`},{type:`list`,items:[`Improve the control of critical parameters such as dissolved oxygen, solids concentration or recirculation in the activated sludge process;`,`Reduce energy consumption, especially that associated with aeration of the aerobic reactors in the activated sludge system;`,`Ensure sustainability, contributing to the development of resource-efficiency strategies within a Circular Economy production model.`]},{type:`p`,text:`UPWATER⢠uses advanced algorithms to deliver predictive insights and enable preventive actions, helping managers and operators handle disturbances, reduce operating costs and explore the valorisation potential of wastewater.`},{type:`h2`,text:`Why it matters`},{type:`p`,text:`This demonstrator project highlights the value of the collaboration between AquaInSilico and Bondalti Water. The partnership provided a valuable opportunity to demonstrate UPWATERâ¢'s capabilities in a demanding industrial context, while also reinforcing the role of digital platforms in building a more efficient and sustainable wastewater sector.`},{type:`quote`,text:`This collaboration demonstrates the power of UPWATER⢠to transform industrial wastewater management. By enabling smarter and more efficient decision-making, we are helping partners such as Bondalti Water achieve significant economic and environmental impact.`,author:`Jorge Santos`,role:`CEO, AquaInSilico`},{type:`quote`,text:`The project illustrates the added value of advanced simulations, as well as the strong scientific and technical competence of AquaInSilico. It reinforces Bondalti Water's commitment to innovation through smart water solutions and digitalisation.`,author:`José B. Carbajo`,role:`Head of R&D Department, Bondalti Water`},{type:`h2`,text:`About the Green Vouchers programme`},{type:`p`,text:`This project was made possible by the Green Vouchers initiative of Portugal's Recovery and Resilience Plan, which supports startup pilot projects by funding the early demonstration of innovative technologies. The 18-month initiative strengthens AquaInSilico's ability to demonstrate the adaptability of green digital products across different client profiles and operating contexts.`}],facts:[{label:`Client`,value:`Bondalti Water`},{label:`Site`,value:`Industrial WWTP, Navarre, Spain`},{label:`Platform`,value:`UPWATERâ¢`},{label:`Duration`,value:`18-month initiative, from 2024`},{label:`Strategies evaluated`,value:`6 operational strategies`},{label:`Programme`,value:`Green Vouchers (PRR)`}],labels:cm},pt:{tags:[`Ãguas Residuais Industriais`,`UPWATERâ¢`,`Vouchers Verdes`,`Eficiência Energética`],title:`AquaInSilico demonstra o UPWATER⢠numa ETAR industrial num piloto com a Bondalti Water`,deck:`Um projeto demonstrador numa estação de tratamento de águas residuais industriais de grande escala em Navarra, Espanha, mostrou como o UPWATER⢠melhora o controlo do processo, reduz a energia de aeração e apoia objetivos de economia circular.`,location:`Navarra, Espanha`,date:`03/10/2025`,body:[{type:`p`,text:`A AquaInSilico tem o prazer de anunciar a conclusão de um projeto demonstrador com a Bondalti Water, apoiado pelos Green Vouchers, um financiamento do Plano de Recuperação e Resiliência Português.`},{type:`p`,text:`A iniciativa destacou o potencial do UPWATERâ¢, a plataforma digital proprietária da AquaInSilico, numa estação de tratamento de águas residuais industriais de grande escala em Navarra, Espanha, operada pela Bondalti Water e que serve várias indústrias de processamento de alimentos.`},{type:`p`,text:`Para a AquaInSilico, este projeto representou um desafio significativo e um marco importante. Iniciado em 2024, o projeto começou com o processamento e reconciliação de dados extensivos provenientes de um piloto industrial de grande dimensão, demonstrando não só a robustez da tecnologia, como também a sua adaptabilidade a condições industriais complexas e variáveis.`},{type:`h2`,text:`O que foi feito`},{type:`p`,text:`O UPWATER⢠foi utilizado para simular múltiplos cenários operacionais, fornecendo estratég
58ias personalizadas e baseadas em dados para otimizar o desempenho da instalação. Enquanto projeto demonstrador, o foco esteve na apresentação das funcionalidades principais, na identificação de indicadores-chave de desempenho que garantem uma operação robusta, na maximização da remoção de poluentes com menor custo e na avaliação da adaptabilidade à s condições industriais. Ao longo do projeto, o UPWATER⢠permitiu o estudo detalhado de seis estratégias operacionais, conduzindo à identificação das abordagens mais eficazes para:`},{type:`list`,items:[`Melhorar o controlo de parâmetros crÃticos como o oxigénio dissolvido, a concentração de sólidos ou a recirculação no processo de lamas ativadas;`,`Reduzir o consumo energético, especialmente o associado à aeração dos reatores aeróbios no sistema de lamas ativadas;`,`Assegurar a sustentabilidade, contribuindo para o desenvolvimento de estratégias de eficiência de recursos dentro de um modelo de produção baseado na Economia Circular.`]},{type:`p`,text:`O UPWATER⢠recorre a algoritmos avançados para fornecer insights preditivos e facilitar ações preventivas, ajudando gestores e operadores a lidar com perturbações, reduzir custos operacionais e explorar o potencial de valorização das águas residuais.`},{type:`h2`,text:`Porque é relevante`},{type:`p`,text:`Este projeto demonstrador evidencia o valor da colaboração entre a AquaInSilico e a Bondalti Water. A parceria proporcionou uma oportunidade valiosa para demonstrar as capacidades do UPWATER⢠num contexto industrial exigente, reforçando também o papel das plataformas digitais na construção de um setor de águas residuais mais eficiente e sustentável.`},{type:`quote`,text:`Esta colaboração demonstra o poder do UPWATER⢠para transformar a gestão de águas residuais industriais. Ao permitir uma tomada de decisão mais inteligente e eficiente, estamos a ajudar parceiros como a Bondalti Water a alcançar um impacto económico e ambiental significativo.`,author:`Jorge Santos`,role:`CEO, AquaInSilico`},{type:`quote`,text:`O projeto ilustra o valor acrescentado das simulações avançadas, bem como a forte competência cientÃfica e técnica da AquaInSilico. Reforça o compromisso da Bondalti Water com a inovação através de soluções inteligentes para a água e da digitalização.`,author:`José B. Carbajo`,role:`Diretor do Departamento de I&D, Bondalti Water`},{type:`h2`,text:`Sobre os Vouchers Verdes`},{type:`p`,text:`Este projeto foi possÃvel graças à iniciativa Vouchers Verdes do Plano de Recuperação e Resiliência de Portugal, que apoia projetos piloto de startups, financiando a demonstração inicial de tecnologias inovadoras. A iniciativa, com duração de 18 meses, reforça a capacidade da AquaInSilico para demonstrar a adaptabilidade de produtos digitais verdes a diferentes perfis de clientes e contextos operacionais.`}],facts:[{label:`Cliente`,value:`Bondalti Water`},{label:`Instalação`,value:`ETAR industrial, Navarra, Espanha`},{label:`Plataforma`,value:`UPWATERâ¢`},{label:`Duração`,value:`Iniciativa de 18 meses, desde 2024`},{label:`Estratégias avaliadas`,value:`6 estratégias operacionais`},{label:`Programa`,value:`Vouchers Verdes (PRR)`}],labels:lm}}],dm=Is(`/resources/case-studies/$slug`)({loader:({params:e})=>{let t=um.find(t=>t.slug===e.slug);if(!t)throw xe();return{study:t}},head:({loaderData:e})=>{if(!e)return{meta:[{title:`Case study not found â Aqua in Silico`},{name:`robots`,content:`noindex`}]};let{en:t}=e.study,n=`${t.title} | Aqua in Silico`;return{meta:[{title:n},{name:`description`,content:t.deck},{property:`og:title`,content:n},{property:`og:description`,content:t.deck},{property:`og:type`,content:`article`},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:n},{name:`twitter:description`,content:t.deck}]}},component:Rs(sm,`component`),notFoundComponent:Rs(om,`notFoundComponent`)}),fm=Bp.update({id:`/sectors`,path:`/sectors`,getParentRoute:()=>Np}),pm=Vp.update({id:`/privacy-policy`,path:`/privacy-policy`,getParentRoute:()=>Np}),mm=Hp.update({id:`/cookie-policy`,path:`/cookie-policy`,getParentRoute:()=>Np}),hm=Up.update({id:`/`,path:`/`,getParentRoute:()=>Np}),gm=Wp.update({id:`/products/`,path:`/products/`,getParentRoute:()=>Np}),_m=Gp.update({id:`/resources/news`,path:`/resources/news`,getParentRoute:()=>Np}),vm=Kp.update({id:`/resources/case-studies`,path:`/resources/case-studies`,getParentRoute:()=>Np}),ym=qp.update({id:`/products/upwater`,path:`/products/upwater`,getParentRoute:()=>Np}),bm=Jp.update({id:`/products/upwaste`,path:`/products/upwaste`,getParentRoute:()=>Np}),xm=Yp.update({id:`/about/story`,path:`/about/story`,getParentRoute:()=>Np}),Sm=Xp.update({id:`/about/partners`,path:`/about/partners`,getParentRoute:()=>Np}),Cm=Zp.update({id:`/about/contact`,path:`/about/contact`,getParentRoute:()=>Np}),wm=Qp.update({id:`/`,path:`/`,getParentRoute:()=>_m}),Tm=im.update({id:`/$slug`,path:`/$slug`,getParentRoute:()=>_m}),Em=am.update({id:`/`,path:`/`,getParentRoute:()=>vm}),Dm={ResourcesCaseStudiesSlugRoute:dm.update({id:`/$slug`,path:`/$slug`,getParentRoute:()=>vm}),ResourcesCaseStudiesIndexRoute:Em}
58,Om=vm._addFileChildren(Dm),km={ResourcesNewsSlugRoute:Tm,ResourcesNewsIndexRoute:wm},Am={IndexRoute:hm,CookiePolicyRoute:mm,PrivacyPolicyRoute:pm,SectorsRoute:fm,AboutContactRoute:Cm,AboutPartnersRoute:Sm,AboutStoryRoute:xm,ProductsUpwasteRoute:bm,ProductsUpwaterRoute:ym,ResourcesCaseStudiesRoute:Om,ResourcesNewsRoute:_m._addFileChildren(km),ProductsIndexRoute:gm},jm=Np._addFileChildren(Am),Mm=()=>ec({routeTree:jm,context:{queryClient:new xl},scrollRestoration:!0,defaultPreloadStaleTime:0});async function Nm(){let e=await Mm(),t;if(Tc){let n=await Tc.getOptions();n.serializationAdapters=n.serializationAdapters??[],window.__TSS_START_OPTIONS__=n,t=n.serializationAdapters,e.options.defaultSsr=n.defaultSsr}else t=[],window.__TSS_START_OPTIONS__={serializationAdapters:t};return t.push(Go),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:``,serializationAdapters:t}),e.stores.matchesId.get().length||await Zo(e),e}var Pm=Nm;async function Fm(){let e=await Pm();return window.$_TSR?.h(),e}var Im;function Lm(){return Im||=Fm(),(0,B.jsx)($o,{promise:Im,children:e=>(0,B.jsx)(rc,{router:e})})}var Rm=We();(0,z.startTransition)(()=>{(0,Rm.hydrateRoot)(document,(0,B.jsx)(z.StrictMode,{children:(0,B.jsx)(Lm,{})}))});export{G as C,El as D,Dl as E,dc as O,Bl as S,Ol as T,vu as _,rp as a,Y as b,Mf as c,Lf as d,zf as f,bu as g,Od as h,bp as i,Ys as k,If as l,Id as m,im as n,Hf as o,Nf as p,rm as r,Vf as s,dm as t,Bf as u,iu as v,Al as w,J as x,ql as y};
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.