vendor: 17,152 bytes, lines 1-9
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/routes-BlXUdK5m.js","assets/useStore-B9WcefOa.js","assets/link-CSxX31-N.js","assets/droplets-BARdyOmH.js","assets/CampaignVideoEmbed-BkwlN6XS.js","assets/Testimonials-lSjhhUs6.js","assets/sparkles-B20q0cYx.js","assets/gain.png.asset-DEmGOSdx.js","assets/gain-surface-pulses-CLcGWfKh.js","assets/about-Cm7cug9s.js","assets/PageHero-CqGqmnbg.js","assets/advisor-Cd1P8mHv.js","assets/textarea-BJ0HI1gj.js","assets/redirect-Dhm19zUi.js","assets/case-studies-DXY8g1TU.js","assets/check-DYQpJ2Mi.js","assets/topographic-scape-watermark-BTaiaqkL.js","assets/contact-DSes_sAk.js","assets/InquiryForm-CVhfm5Jo.js","assets/mail-Bea1PhGd.js","assets/deck-templates-CaRJoJzZ.js","assets/arrow-left-C2-iYHiQ.js","assets/download-Qg7fSOpf.js","assets/presentation-C2ZOV2__.js","assets/gain-DBk3tHS_.js","assets/OpenApiSection-CkGVv0cb.js","assets/smartphone-z7XsLRqM.js","assets/invest-DyjbXvdU.js","assets/legal-CFdujvpi.js","assets/news-svayyHs7.js","assets/arrow-up-right-BDc6r4oy.js","assets/platform-BNrqlZYw.js","assets/TurfCloudSpotlight-BMOV_UFZ.js","assets/press-DyjbXvdU.js","assets/privacy-C3NFMWEa.js","assets/resources-C-xFbhc4.js","assets/accordion-DHggHEgA.js","assets/shop-DyRuJpLb.js","assets/useQuery--XzxeO9v.js","assets/testimonials-rehhPb42.js","assets/blog.index-q09H2Xaq.js","assets/blog._slug-rHvH2JHW.js","assets/invest.index-D_MJeJob.js","assets/invest.contact-w4Nkr_FC.js","assets/press.index-CsoEmxfl.js","assets/press._slug-Bh4vwkIW.js","assets/product._handle-DJChkUeX.js","assets/solutions--MSLr2eK.js","assets/_slug-wW0k4awX.js","assets/_slug-BClnJ-Gm.js","assets/_slug-hO02CA0w.js"])))=>i.map(i=>d[i]); 2import{A as e,B as t,C as n,D as r,E as i,F as a,G as o,H as s,I as c,K as l,L as u,M as d,N as f,O as p,P as m,R as h,S as g,T as _,U as v,V as y,W as b,a as x,b as S,d as C,f as w,g as E,h as ee,i as te,j as ne,k as re,n as D,o as ie,p as ae,q as oe,r as O,s as k,t as A,u as se,v as ce,w as le,x as j,y as M,z as ue}from"./useStore-B9WcefOa.js";import{n as de,t as fe}from"./link-CSxX31-N.js";import{n as N,t as P}from"./not-found-i5RsCZif.js";import{t as pe}from"./root-DLTE-HSj.js";import{n as me,r as he,t as ge}from"./redirect-Dhm19zUi.js";import{n as _e,t as ve}from"./matchContext-BRN1Rnka.js";var ye=l((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,ne());else{var t=n(l);t!==null&&ie(x,t.startTime-e)}}var S=!1,C=-1,w=5,E=-1;function ee(){return g?!0:!(e.unstable_now()-E<w)}function te(){if(g=!1,S){var t=e.unstable_now();E=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&&ee());){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&&ie(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}}}finally{i?ne():S=!1}}}var ne;if(typeof y==`function`)ne=function(){y(te)};else if(typeof MessageChannel<`u`){var re=new MessageChannel,D=re.port2;re.port1.onmessage=te,ne=function(){D.postMessage(null)}}else ne=function(){_(te,0)};function ie(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`):w=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,ie(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,ne()))),r},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),be=l(((e,t)=>{t.exports=ye()})),xe=l((e=>{var t=be(),n=o(),r=de();function i(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 a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(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 c(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 l(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 u(e){if(s(e)!==e)throw Error(i(188))}function d(e){var t=e.alternate;if(!t){if(t=s(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return u(a),e;if(o===r)return u(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var c=!1,l=a.child;l;){if(l===n){c=!0,n=a,r=o;break}if(l===r){c=!0,r=a,n=o;break}l=l.sibling}if(!c){for(l=o.child;l;){if(l===n){c=!0,n=o,r=a;break}if(l===r){c=!0,r=o,n=a;break}l=l.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,m=Symbol.for(`react.element`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),E=Symbol.for(`react.memo`),ee=Symbol.for(`react.lazy`),te=Symbol.for(`react.activity`),ne=Symbol.for(`react.memo_cache_sentinel`),re=Symbol.iterator;function D(e){return typeof e!=`object`||!e?null:(e=re&&e[re]||e[`@@iterator`],typeof e==`function`?e:null)}var ie=Symbol.for(`react.client.reference`);function ae(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ie?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case w:return`SuspenseList`;case te:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case E:return t=e.displayName||null,t===null?ae(e.type)||`Memo`:t;case ee:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}var oe=Array.isArray,O=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A={pending:!1,data:null,method:null,action:null},se=[],ce=-1;function le(e){return{current:e}}function j(e){0>ce||(e.current=se[ce],se[ce]=null,ce--)}function M(e,t){ce++,se[ce]=e.current,e.current=t}var ue=le(null),fe=le(null),N=le(null),P=le(null);function pe(e,t){switch(M(N,t),M(fe,e),M(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Kd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Kd(t),e=qd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}j(ue),M(ue,e)}function me(){j(ue),j(fe),j(N)}function he(e){e.memoizedState!==null&&M(P,e);var t=ue.current,n=qd(t,e.type);t!==n&&(M(fe,e),M(ue,n))}function ge(e){fe.current===e&&(j(ue),j(fe)),P.current===e&&(j(P),np._currentValue=A)}var _e,ve;function ye(e){if(_e===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);_e=t&&t[1]||``,ve=-1<e.stack.indexOf(` 3 at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return` 4`+_e+e+ve}var xe=!1;function Se(e,t){if(!e||xe)return``;xe=!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{xe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ye(n):``}function Ce(e,t){switch(e.tag){case 26:case 27:case 5:return ye(e.type);case 16:return ye(`Lazy`);case 13:return e.child!==t&&t!==null?ye(`Suspense Fallback`):ye(`Suspense`);case 19:return ye(`SuspenseList`);case 0:case 15:return Se(e.type,!1);case 11:return Se(e.type.render,!1);case 1:return Se(e.type,!0);case 31:return ye(`Activity`);default:return``}}function we(e){try{var t=``,n=null;do t+=Ce(e,n),n=e,e=e.return;while(e);return t}catch(e){return` 8Error generating stack: `+e.message+` 9`+e.stack}}var Te=Object.prototype.hasOwnProperty,Ee=t.unstable_scheduleCallback,De=t.unstable_cancelCallback,Oe=t.unstable_shouldYield,ke=t.unstable_requestPaint,Ae=t.unstable_now,je=t.unstable_getCurrentPriorityLevel,Me=t.unstable_ImmediatePriority,Ne=t.unstable_UserBlockingPriority,Pe=t.unstable_NormalPriority,Fe=t.unstable_LowPriority,Ie=t.unstable_IdlePriority,Le=t.log,Re=t.unstable_setDisableYieldValue,ze=null,Be=null;function Ve(e){if(typeof Le==`function`&&Re(e),Be&&typeof Be.setStrictMode==`function`)try{Be.setStrictMode(ze,e)}catch{}}var He=Math.clz32?Math.clz32:Ge,Ue=Math.log,We=Math.LN2;function Ge(e){return e>>>=0,e===0?32:31-(Ue(e)/We|0)|0}var Ke=256,qe=262144,Je=4194304;function Ye(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 Xe(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=Ye(n))):i=Ye(o):i=Ye(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ye(n))):i=Ye(o)):i=Ye(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 Ze(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Qe(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 $e(){var e=Je;return Je<<=1,!(Je&62914560)&&(Je=4194304),e}function et(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function tt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function nt(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-He(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&&rt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function rt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-He(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function it(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-He(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function at(e,t){var n=t&-t;return n=n&42?1:ot(n),(n&(e.suspendedLanes|t))===0?n:0}function ot(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 st(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function ct(){var e=k.p;return e===0?(e=window.event,e===void 0?32:vp(e.type)):e}function lt(e,t){var n=k.p;try{return k.p=e,t()}finally{k.p=n}}var ut=Math.random().toString(36).slice(2),dt=`__reactFiber$`+ut,ft=`__reactProps$`+ut,pt=`__reactContainer$`+ut,mt=`__reactEvents$`+ut,ht=`__reactListeners$`+ut,gt=`__reactHandles$`+ut,_t=`__reactResources$`+ut,vt=`__reactMarker$`+ut;function yt(e){delete e[dt],delete e[ft],delete e[mt],delete e[ht],delete e[gt]}function bt(e){var t=e[dt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pt]||n[dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=gf(e);e!==null;){if(n=e[dt])return n;e=gf(e)}return t}e=n,n=e.parentNode}return null}function xt(e){if(e=e[dt]||e[pt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function St(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Ct(e){var t=e[_t];return t||=e[_t]={hoistableStyles:new Map,hoistableScripts:new Map},t}function wt(e){e[vt]=!0}var Tt=new Set,Et={};function Dt(e,t){Ot(e,t),Ot(e+`Capture`,t)}function Ot(e,t){for(Et[e]=t,e=0;e<t.length;e++)Tt.add(t[e])}var kt=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]*$`),At={},jt={};function Mt(e){return Te.call(jt,e)?!0:Te.call(At,e)?!1:kt.test(e)?jt[e]=!0:(At[e]=!0,!1)}function Nt(e,t,n){if(Mt(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 Pt(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 Ft(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 It(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Lt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Rt(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 zt(e){if(!e._valueTracker){var t=Lt(e)?`checked`:`value`;e._valueTracker=Rt(e,t,``+e[t])}}function Bt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Lt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function Vt(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 Ht=/[\n"\\]/g;function Ut(e){return e.replace(Ht,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Wt(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=``+It(t)):e.value!==``+It(t)&&(e.value=``+It(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Kt(e,o,It(n)):Kt(e,o,It(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=``+It(s):e.removeAttribute(`name`)}function Gt(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)){zt(e);return}n=n==null?``:``+It(n),t=t==null?n:``+It(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),zt(e)}function Kt(e,t,n){t===`number`&&Vt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function qt(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=``+It(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 Jt(e,t,n){if(t!=null&&(t=``+It(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+It(n)}function Yt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(oe(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}
vendor: 9,499 bytes, line 9
9n=It(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),zt(e)}function Xt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zt=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 Qt(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||Zt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function $t(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(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 a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Qt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Qt(e,o,t[o])}function en(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 tn=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`]]),nn=/^[\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 rn(e){return nn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function an(){}var on=null;function sn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cn=null,ln=null;function un(e){var t=xt(e);if(t&&(e=t.stateNode)){var n=e[ft]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Wt(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="`+Ut(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[ft]||null;if(!a)throw Error(i(90));Wt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Bt(r)}break a;case`textarea`:Jt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&qt(e,!!n.multiple,t,!1)}}}var dn=!1;function fn(e,t,n){if(dn)return e(t,n);dn=!0;try{return e(t)}finally{if(dn=!1,(cn!==null||ln!==null)&&(Eu(),cn&&(t=cn,e=ln,ln=cn=null,un(t),e)))for(t=0;t<e.length;t++)un(e[t])}}function pn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[ft]||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(i(231,t,typeof n));return n}var mn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),hn=!1;if(mn)try{var gn={};Object.defineProperty(gn,"passive",{get:function(){hn=!0}}),window.addEventListener(`test`,gn,gn),window.removeEventListener(`test`,gn,gn)}catch{hn=!1}var _n=null,vn=null,yn=null;function bn(){if(yn)return yn;var e,t=vn,n=t.length,r,i=`value`in _n?_n.value:_n.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 yn=i.slice(e,1<r?1-r:void 0)}function xn(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 F(){return!0}function Sn(){return!1}function Cn(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)?F:Sn,this.isPropagationStopped=Sn,this}return p(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=F)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=F)},persist:function(){},isPersistent:F}),t}var wn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},I=Cn(wn),Tn=p({},wn,{view:0,detail:0}),En=Cn(Tn),Dn,On,kn,An=p({},Tn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vn,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!==kn&&(kn&&e.type===`mousemove`?(Dn=e.screenX-kn.screenX,On=e.screenY-kn.screenY):On=Dn=0,kn=e),Dn)},movementY:function(e){return`movementY`in e?e.movementY:On}}),jn=Cn(An),Mn=Cn(p({},An,{dataTransfer:0})),Nn=Cn(p({},Tn,{relatedTarget:0})),Pn=Cn(p({},wn,{animationName:0,elapsedTime:0,pseudoElement:0})),Fn=Cn(p({},wn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),In=Cn(p({},wn,{data:0})),Ln={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Rn={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:`F
95`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},zn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Bn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=zn[e])?!!t[e]:!1}function Vn(){return Bn}var Hn=Cn(p({},Tn,{key:function(e){if(e.key){var t=Ln[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=xn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Rn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vn,charCode:function(e){return e.type===`keypress`?xn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?xn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Un=Cn(p({},An,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Wn=Cn(p({},Tn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vn})),Gn=Cn(p({},wn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Kn=Cn(p({},An,{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})),qn=Cn(p({},wn,{newState:0,oldState:0})),Jn=[9,13,27,32],Yn=mn&&`CompositionEvent`in window,Xn=null;mn&&`documentMode`in document&&(Xn=document.documentMode);var Zn=mn&&`TextEvent`in window&&!Xn,Qn=mn&&(!Yn||Xn&&8<Xn&&11>=Xn),$n=` `,er=!1;function tr(e,t){switch(e){case`keyup`:return Jn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function nr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var rr=!1;function ir(e,t){switch(e){case`compositionend`:return nr(t);case`keypress`:return t.which===32?(er=!0,$n):null;case`textInput`:return e=t.data,e===$n&&er?null:e;default:return null}}function ar(e,t){if(rr)return e===`compositionend`||!Yn&&tr(e,t)?(e=bn(),yn=vn=_n=null,rr=!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 Qn&&t.locale!==`ko`?null:t.data;default:return null}}var or={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 sr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!or[e.type]:t===`textarea`}function cr(e,t,n,r){cn?ln?ln.push(r):ln=[r]:cn=r,t=jd(t,`onChange`),0<t.length&&(n=new I(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var lr=null,ur=null;function dr(e){wd(e,0)}function fr(e){if(Bt(St(e)))return e}function pr(e,t){if(e===`change`)return t}var mr=!1;if(mn){var hr;if(mn){var gr=`oninput`in document;if(!gr){var _r=document.createElement(`div`);_r.setAttribute(`oninput`,`return;`),gr=typeof _r.oninput==`function`}hr=gr}else hr=!1;mr=hr&&(!document.documentMode||9<document.documentMode)}function vr(){lr&&(lr.detachEvent(`onpropertychange`,yr),ur=lr=null)}function yr(e){if(e.propertyName===`value`&&fr(ur)){var t=[];cr(t,ur,e,sn(e)),fn(dr,t)}}function br(e,t,n){e===`focusin`?(vr(),lr=t,ur=n,lr.attachEvent(`onpropertychange`,yr)):e===`focusout`&&vr()}function xr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return fr(ur)}function Sr(e,t){if(e===`click`)return fr(t)}function Cr(e,t){if(e===`input`||e===`change`)return fr(t)}function wr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Tr=typeof Object.is==`function`?Object.is:wr;function Er(e,t){if(Tr(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(!Te.call(t,i)||!Tr(e[i],t[i]))return!1}return!0}function Dr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Or(e,t){var n=Dr(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=Dr(n)}}function kr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ar(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Vt(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=Vt(e.document)}return t}function jr(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 Mr=mn&&`documentMode`in document&&11>=document.documentMode,Nr=null,Pr=null,Fr=null,Ir=!1;function Lr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ir||Nr==null||Nr!==Vt(r)||(r=Nr,`selectionStart`in r&&jr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 76,559 bytes, line 9
9sNode:r.focusNode,focusOffset:r.focusOffset}),Fr&&Er(Fr,r)||(Fr=r,r=jd(Pr,`onSelect`),0<r.length&&(t=new I(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Nr)))}function Rr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var zr={animationend:Rr(`Animation`,`AnimationEnd`),animationiteration:Rr(`Animation`,`AnimationIteration`),animationstart:Rr(`Animation`,`AnimationStart`),transitionrun:Rr(`Transition`,`TransitionRun`),transitionstart:Rr(`Transition`,`TransitionStart`),transitioncancel:Rr(`Transition`,`TransitionCancel`),transitionend:Rr(`Transition`,`TransitionEnd`)},Br={},Vr={};mn&&(Vr=document.createElement(`div`).style,`AnimationEvent`in window||(delete zr.animationend.animation,delete zr.animationiteration.animation,delete zr.animationstart.animation),`TransitionEvent`in window||delete zr.transitionend.transition);function Hr(e){if(Br[e])return Br[e];if(!zr[e])return e;var t=zr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Vr)return Br[e]=t[n];return e}var Ur=Hr(`animationend`),Wr=Hr(`animationiteration`),Gr=Hr(`animationstart`),Kr=Hr(`transitionrun`),qr=Hr(`transitionstart`),Jr=Hr(`transitioncancel`),Yr=Hr(`transitionend`),Xr=new Map,Zr=`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(` `);Zr.push(`scrollEnd`);function Qr(e,t){Xr.set(e,t),Dt(t,[e])}var $r=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)},ei=[],ti=0,ni=0;function ri(){for(var e=ti,t=ni=ti=0;t<e;){var n=ei[t];ei[t++]=null;var r=ei[t];ei[t++]=null;var i=ei[t];ei[t++]=null;var a=ei[t];if(ei[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&&si(n,i,a)}}function ii(e,t,n,r){ei[ti++]=e,ei[ti++]=t,ei[ti++]=n,ei[ti++]=r,ni|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ai(e,t,n,r){return ii(e,t,n,r),ci(e)}function oi(e,t){return ii(e,null,null,t),ci(e)}function si(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-He(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ci(e){if(50<_u)throw _u=0,vu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var li={};function ui(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 di(e,t,n,r){return new ui(e,t,n,r)}function fi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pi(e,t){var n=e.alternate;return n===null?(n=di(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 mi(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 hi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)fi(e)&&(s=1);else if(typeof e==`string`)s=qf(e,n,ue.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case te:return e=di(31,n,t,a),e.elementType=te,e.lanes=o,e;case _:return gi(n.children,a,o,t);case v:s=8,a|=24;break;case y:return e=di(12,n,t,a|2),e.elementType=y,e.lanes=o,e;case C:return e=di(13,n,t,a),e.elementType=C,e.lanes=o,e;case w:return e=di(19,n,t,a),e.elementType=w,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case x:s=10;break a;case b:s=9;break a;case S:s=11;break a;case E:s=14;break a;case ee:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=di(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function gi(e,t,n,r){return e=di(7,e,r,t),e.lanes=n,e}function _i(e,t,n){return e=di(6,e,null,t),e.lanes=n,e}function vi(e){var t=di(18,null,null,0);return t.stateNode=e,t}function yi(e,t,n){return t=di(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var bi=new WeakMap;function xi(e,t){if(typeof e==`object`&&e){var n=bi.get(e);return n===void 0?(t={value:e,source:t,stack:we(t)},bi.set(e,t),t):n}return{value:e,source:t,stack:we(t)}}var Si=[],Ci=0,wi=null,Ti=0,Ei=[],Di=0,Oi=null,ki=1,Ai=``;function ji(e,t){Si[Ci++]=Ti,Si[Ci++]=wi,wi=e,Ti=t}function Mi(e,t,n){Ei[Di++]=ki,Ei[Di++]=Ai,Ei[Di++]=Oi,Oi=e;var r=ki;e=Ai;var i=32-He(r)-1;r&=~(1<<i),n+=1;var a=32-He(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ki=1<<32-He(t)+i|n<<i|r,Ai=a+e}else ki=1<<a|n<<i|r,Ai=e}function Ni(e){e.return!==null&&(ji(e,1),Mi(e,1,0))}function Pi(e){for(;e===wi;)wi=Si[--Ci],Si[Ci]=null,Ti=Si[--Ci],Si[Ci]=null;for(;e===Oi;)Oi=Ei[--Di],Ei[Di]=null,Ai=Ei[--Di],Ei[Di]=null,ki=Ei[--Di],Ei[Di]=null}function Fi(e,t){Ei[Di++]=ki,Ei[Di++]=Ai,Ei[Di++]=Oi,ki=t.id,Ai=t.overflow,Oi=e}var Ii=null,Li=null,L=!1,Ri=null,zi=!1,Bi=Error(i(519));function Vi(e){throw qi(xi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Bi}function Hi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[dt]=e,t[ft]=r,n){case`dialog`:J(`cancel`,t),J(`close`,t);break;case`iframe`:case`object`:case`embed`:J(`load`,t);break;case`video`:case`audio`:for(n=0;n<Sd.length;n++)J(Sd[n],t);break;case`source`:J(`error`,t);break;case`img`:case`image`:case`link`:J(`error`,t),J(`load`,t);break;case`details`:J(`toggle`,t);break;case`input`:J(`invalid`,t),Gt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:J(`invalid`,t);break;case`textarea`:J(`invalid`,t),Yt(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||Ld(t.textContent,n)?(r.popover!=null&&(J(`beforetoggle`,t),J(`toggle`,t)),r.onScroll!=null&&J(`scroll`,t),r.onScrollEnd!=null&&J(`scrollend`,t),r.onClick!=null&&(t.onclick=an),t=!0):t=!1,t||Vi(e,!0)}function Ui(e){for(Ii=e.return;Ii;)switch(Ii.tag){case 5:case 31:case 13:zi=!1;return;case 27:case 3:zi=!0;return;default:Ii=Ii.return}}function Wi(e){if(e!==Ii)return!1;if(!L)return Ui(e),L=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||Jd(e.type,e.memoizedProps)),n=!n),n&&Li&&Vi(e),Ui(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Li=hf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Li=hf(e)}else t===27?(t=Li,nf(e.type)?(e=mf,mf=null,Li=e):Li=t):Li=Ii?pf(e.stateNode.nextSibling):null;return!0}function Gi(){Li=Ii=null,L=!1}function Ki(){var e=Ri;return e!==null&&(iu===null?iu=e:iu.push.apply(iu,e),Ri=null),e}function qi(e){Ri===null?Ri=[e]:Ri.push(e)}var Ji=le(null),Yi=null,Xi=null;function Zi(e,t,n){M(Ji,t._currentValue),t._currentValue=n}function Qi(e){e._currentValue=Ji.current,j(Ji)}function $i(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 ea(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),$i(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),$i(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function ta(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Tr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===P.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[np]:e.push(np))}a=a.return}e!==null&&ea(t,e,n,r),t.flags|=262144}function na(e){for(e=e.firstContext;e!==null;){if(!Tr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ra(e){Yi=e,Xi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ia(e){return oa(Yi,e)}function aa(e,t){return Yi===null&&ra(e),oa(e,t)}function oa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Xi===null){if(e===null)throw Error(i(308));Xi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Xi=Xi.next=t;return n}var sa=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()})}},ca=t.unstable_scheduleCallback,la=t.unstable_NormalPriority,ua={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function da(){return{controller:new sa,data:new Map,refCount:0}}function fa(e){e.refCount--,e.refCount===0&&ca(la,function(){e.controller.abort()})}var pa=null,ma=0,ha=0,ga=null;function _a(e,t){if(pa===null){var n=pa=[];ma=0,ha=gd(),ga={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ma++,t.then(va,va),t}function va(){if(--ma===0&&pa!==null){ga!==null&&(ga.status=`fulfilled`);var e=pa;pa=null,ha=0,ga=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ya(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 ba=O.S;O.S=function(e,t){su=Ae(),typeof t==`object`&&t&&typeof t.then==`function`&&_a(e,t),ba!==null&&ba(e,t)};var xa=le(null);function Sa(){var e=xa.current;return e===null?Wl.pooledCache:e}function Ca(e,t){t===null?M(xa,xa.current):M(xa,t.pool)}function wa(){var e=Sa();return e===null?null:{parent:ua._currentValue,pool:e}}var Ta=Error(i(460)),Ea=Error(i(474)),Da=Error(i(542)),Oa={then:function(){}};function ka(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Aa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(an,an),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Pa(e),e;default:if(typeof t.status==`string`)t.then(an,an);else{if(e=Wl,e!==null&&100<e.shellSuspendCounter)throw Error(i(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,Pa(e),e}throw Ma=t,Ta}}function ja(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Ma=e,Ta):e}}var Ma=null;function Na(){if(Ma===null)throw Error(i(459));var e=Ma;return Ma=null,e}function Pa(e){if(e===Ta||e===Da)throw Error(i(483))}var R=null,Fa=0;function Ia(e){var t=Fa;return Fa+=1,R===null&&(R=[]),Aa(R,e,t)}function La(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ra(e,t){throw t.$$typeof===m?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function za(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 a(e,t){return e=pi(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=_i(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===_?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===ee&&ja(i)===t.type)?(t=a(t,n.props),La(t,n),t.return=e,t):(t=hi(n.type,n.key,n.props,null,e.mode,r),La(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=yi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=gi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=_i(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case h:return n=hi(t.type,t.key,t.props,null,e.mode,n),La(n,t),n.return=e,n;case g:return t=yi(t,e.mode,n),t.return=e,t;case ee:return t=ja(t),f(e,t,n)}if(oe(t)||D(t))return t=gi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ia(t),n);if(t.$$typeof===x)return f(e,aa(e,t),n);Ra(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 h:return n.key===i?l(e,t,n,r):null;case g:return n.key===i?u(e,t,n,r):null;case ee:return n=ja(n),p(e,t,n,r)}if(oe(n)||D(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ia(n),r);if(n.$$typeof===x)return p(e,t,aa(e,n),r);Ra(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 h:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case g:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case ee:return r=ja(r),m(e,t,n,r,i)}if(oe(r)||D(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Ia(r),i);if(r.$$typeof===x)return m(e,t,n,aa(t,r),i);Ra(t,r)}return null}function v(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),L&&ji(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 L&&ji(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)}),L&&ji(i,h),l}function y(a,s,c,l){if(c==null)throw Error(i(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(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),L&&ji(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return L&&ji(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,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(a,e)}),L&&ji(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===_&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case h:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===_){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===ee&&ja(l)===r.type){n(e,r.sibling),c=a(r,o.props),La(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===_?(c=gi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=hi(o.type,o.key,o.props,null,e.mode,c),La(c,o),c.return=e,e=c)}return s(e);case g: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=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}t(e,r),r=r.sibling}c=yi(o,e.mode,c),c.return=e,e=c}return s(e);case ee:return o=ja(o),b(e,r,o,c)}if(oe(o))return v(e,r,o,c);if(D(o)){if(l=D(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Ia(o),c);if(o.$$typeof===x)return b(e,r,aa(e,o),c);Ra(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=a(r,o),c.return=e,e=c):(n(e,r),c=_i(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Fa=0;var i=b(e,t,n,r);return R=null,i}catch(t){if(t===Ta||t===Da)throw t;var a=di(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ba=za(!0),Va=za(!1),Ha=!1;function Ua(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wa(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 Ga(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ka(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,H&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ci(e),si(e,null,n),t}return ii(e,r,t,n),ci(e)}function qa(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,it(e,n)}}function Ja(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 Ya=!1;function Xa(){if(Ya){var e=ga;if(e!==null)throw e}}function Za(e,t,n,r){Ya=!1;var i=e.updateQueue;Ha=!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,m=f!==s.lane;if(m?(W&f)===f:(r&f)===f){f!==0&&f===ha&&(Ya=!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=p({},d,f);break a;case 2:Ha=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,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),Ql|=o,e.lanes=o,e.memoizedState=d}}function Qa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function $a(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Qa(n[e],t)}var eo=le(null),to=le(0);function no(e,t){e=Xl,M(to,e),M(eo,t),Xl=e|t.baseLanes}function ro(){M(to,Xl),M(eo,eo.current)}function io(){Xl=to.current,j(eo),j(to)}var ao=le(null),oo=null;function so(e){var t=e.alternate;M(po,po.current&1),M(ao,e),oo===null&&(t===null||eo.current!==null||t.memoizedState!==null)&&(oo=e)}function co(e){M(po,po.current),M(ao,e),oo===null&&(oo=e)}function lo(e){e.tag===22?(M(po,po.current),M(ao,e),oo===null&&(oo=e)):uo(e)}function uo(){M(po,po.current),M(ao,ao.current)}function fo(e){j(ao),oo===e&&(oo=null),j(po)}var po=le(0);function mo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||uf(n)||df(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 ho=0,z=null,go=null,_o=null,vo=!1,yo=!1,bo=!1,xo=0,So=0,Co=null,wo=0;function To(){throw Error(i(321))}function Eo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Tr(e[n],t[n]))return!1;return!0}function Do(e,t,n,r,i,a){return ho=a,z=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Hs:Us,bo=!1,a=n(r,i),bo=!1,yo&&(a=ko(t,n,r,i)),Oo(e),a}function Oo(e){O.H=Vs;var t=go!==null&&go.next!==null;if(ho=0,_o=go=z=null,vo=!1,So=0,Co=null,t)throw Error(i(300));e===null||oc||(e=e.dependencies,e!==null&&na(e)&&(oc=!0))}function ko(e,t,n,r){z=e;var a=0;do{if(yo&&(Co=null),So=0,yo=!1,25<=a)throw Error(i(301));if(a+=1,_o=go=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}O.H=Ws,o=t(n,r)}while(yo);return o}function Ao(){var e=O.H,t=e.useState()[0];return t=typeof t.then==`function`?Fo(t):t,e=e.useState()[0],(go===null?null:go.memoizedState)!==e&&(z.flags|=1024),t}function jo(){var e=xo!==0;return xo=0,e}function Mo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function No(e){if(vo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}vo=!1}ho=0,_o=go=z=null,yo=!1,So=xo=0,Co=null}function B(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _o===null?z.memoizedState=_o=e:_o=_o.next=e,_o}function V(){if(go===null){var e=z.alternate;e=e===null?null:e.memoizedState}else e=go.next;var t=_o===null?z.memoizedState:_o.next;if(t!==null)_o=t,go=e;else{if(e===null)throw z.alternate===null?Error(i(467)):Error(i(310));go=e,e={memoizedState:go.memoizedState,baseState:go.baseState,baseQueue:go.baseQueue,queue:go.queue,next:null},_o===null?z.memoizedState=_o=e:_o=_o.next=e}return _o}function Po(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Fo(e){var t=So;return So+=1,Co===null&&(Co=[]),e=Aa(Co,e,t),t=z,(_o===null?t.memoizedState:_o.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Hs:Us),e}function Io(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Fo(e);if(e.$$typeof===x)return ia(e)}throw Error(i(438,String(e)))}function Lo(e){var t=null,n=z.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=z.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=Po(),z.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]=ne;return t.index++,n}function Ro(e,t){return typeof t==`function`?t(e):t}function zo(e){return Bo(V(),go,e)}function Bo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(ho&f)===f:(W&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===ha&&(d=!0);else if((ho&p)===p){u=u.next,p===ha&&(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,z.lanes|=p,Ql|=p;f=u.action,bo&&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,z.lanes|=f,Ql|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Tr(o,e.memoizedState)&&(oc=!0,d&&(n=ga,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Vo(e){var t=V(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Tr(o,t.memoizedState)||(oc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ho(e,t,n){var r=z,a=V(),o=L;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Tr((go||a).memoizedState,n);if(s&&(a.memoizedState=n,oc=!0),a=a.queue,ps(Go.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||_o!==null&&_o.memoizedState.tag&1){if(r.flags|=2048,cs(9,{destroy:void 0},Wo.bind(null,r,a,n,t),null),Wl===null)throw Error(i(349));o||ho&127||Uo(r,t,n)}return n}function Uo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=z.updateQueue,t===null?(t=Po(),z.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wo(e,t,n,r){t.value=n,t.getSnapshot=r,Ko(t)&&qo(e)}function Go(e,t,n){return n(function(){Ko(t)&&qo(e)})}function Ko(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tr(e,n)}catch{return!0}}function qo(e){var t=oi(e,2);t!==null&&xu(t,e,2)}function Jo(e){var t=B();if(typeof e==`function`){var n=e;if(e=n(),bo){Ve(!0);try{n()}finally{Ve(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:e},t}function Yo(e,t,n,r){return e.baseState=n,Bo(e,go,typeof r==`function`?r:Ro)}function Xo(e,t,n,r,a){if(Rs(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};O.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Zo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Zo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=O.T,o={};O.T=o;try{var s=n(i,r),c=O.S;c!==null&&c(o,s),Qo(e,t,s)}catch(n){es(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),O.T=a}}else try{a=n(i,r),Qo(e,t,a)}catch(n){es(e,t,n)}}function Qo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){$o(e,t,n)},function(n){return es(e,t,n)}):$o(e,t,n)}function $o(e,t,n){t.status=`fulfilled`,t.value=n,ts(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Zo(e,n)))}function es(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ts(t),t=t.next;while(t!==r)}e.action=null}function ts(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ns(e,t){return t}function rs(e,t){if(L){var n=Wl.formState;if(n!==null){a:{var r=z;if(L){if(Li){b:{for(var i=Li,a=zi;i.nodeType!==8;){if(!a){i=null;break b}if(i=pf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Li=pf(i.nextSibling),r=i.data===`F!`;break a}}Vi(r)}r=!1}r&&(t=n[0])}}return n=B(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ns,lastRenderedState:t},n.queue=r,n=Fs.bind(null,z,r),r.dispatch=n,r=Jo(!1),a=Ls.bind(null,z,!1,r.queue),r=B(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Xo.bind(null,z,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function is(e){return as(V(),go,e)}function as(e,t,n){if(t=Bo(e,t,ns)[0],e=zo(Ro)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Fo(t)}catch(e){throw e===Ta?Da:e}else r=t;t=V();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(z.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=V(),n=go;if(n!==null)return as(t,n,e);V(),t=t.memoizedState,n=V();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=z.updateQueue,t===null&&(t=Po(),z.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 V().memoizedState}function us(e,t,n,r){var i=B();z.flags|=e,i.memoizedState=cs(1|t,{destroy:void 0},n,r===void 0?null:r)}function ds(e,t,n,r){var i=V();r=r===void 0?null:r;var a=i.memoizedState.inst;go!==null&&r!==null&&Eo(r,go.memoizedState.deps)?i.memoizedState=cs(t,a,n,r):(z.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){z.flags|=4;var t=z.updateQueue;if(t===null)t=Po(),z.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function hs(e){var t=V().memoizedState;return ms({ref:t,nextImpl:e}),function(){if(H&2)throw Error(i(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=V();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Eo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ss(e,t){var n=V();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Eo(t,r[1]))return r[0];if(r=e(),bo){Ve(!0);try{e()}finally{Ve(!1)}}return n.memoizedState=[r,t],r}function Cs(e,t,n){return n===void 0||ho&1073741824&&!(W&261930)?e.memoizedState=t:(e.memoizedState=n,e=bu(),z.lanes|=e,Ql|=e,n)}function ws(e,t,n,r){return Tr(n,t)?n:eo.current===null?!(ho&42)||ho&1073741824&&!(W&261930)?(oc=!0,e.memoizedState=n):(e=bu(),z.lanes|=e,Ql|=e,t):(e=Cs(e,n,r),Tr(e,t)||(oc=!0),e)}function Ts(e,t,n,r,i){var a=k.p;k.p=a!==0&&8>a?a:8;var o=O.T,s={};O.T=s,Ls(e,!1,t,n);try{var c=i(),l=O.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Is(e,t,ya(c,r),yu(e)):Is(e,t,r,yu(e))}catch(n){Is(e,t,{then:function(){},status:`rejected`,reason:n},yu())}finally{k.p=a,o!==null&&s.types!==null&&(o.types=s.types),O.T=o}}function Es(){}function Ds(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Os(e).queue;Ts(e,a,t,A,n===null?Es:function(){return ks(e),n(r)})}function Os(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:A,baseState:A,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:A},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,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,{},yu())}function As(){return ia(np)}function js(){return V().memoizedState}function Ms(){return V().memoizedState}function Ns(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=yu();e=Ga(n);var r=Ka(t,e,n);r!==null&&(xu(r,t,n),qa(r,t,n)),t={cache:da()},e.payload=t;return}t=t.return}}function Ps(e,t,n){var r=yu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Rs(e)?zs(t,n):(n=ai(e,t,n,r),n!==null&&(xu(n,e,r),Bs(n,t,r)))}function Fs(e,t,n){Is(e,t,n,yu())}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,Tr(s,o))return ii(e,t,i,0),Wl===null&&ri(),!1}catch{}if(n=ai(e,t,i,r),n!==null)return xu(n,e,r),Bs(n,t,r),!0}return!1}function Ls(e,t,n,r){if(r={lane:2,revertLane:gd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Rs(e)){if(t)throw Error(i(479))}else t=ai(e,n,r,2),t!==null&&xu(t,e,2)}function Rs(e){var t=e.alternate;return e===z||t!==null&&t===z}function zs(e,t){yo=vo=!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,it(e,n)}}var Vs={readContext:ia,use:Io,useCallback:To,useContext:To,useEffect:To,useImperativeHandle:To,useLayoutEffect:To,useInsertionEffect:To,useMemo:To,useReducer:To,useRef:To,useState:To,useDebugValue:To,useDeferredValue:To,useTransition:To,useSyncExternalStore:To,useId:To,useHostTransitionStatus:To,useFormState:To,useActionState:To,useOptimistic:To,useMemoCache:To,useCacheRefresh:To};Vs.useEffectEvent=To;var Hs={readContext:ia,use:Io,useCallback:function(e,t){return B().memoizedState=[e,t===void 0?null:t],e},useContext:ia,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=B();t=t===void 0?null:t;var r=e();if(bo){Ve(!0);try{e()}finally{Ve(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=B();if(n!==void 0){var i=n(t);if(bo){Ve(!0);try{n(t)}finally{Ve(!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,z,e),[r.memoizedState,e]},useRef:function(e){var t=B();return e={current:e},t.memoizedState=e},useState:function(e){e=Jo(e);var t=e.queue,n=Fs.bind(null,z,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:bs,useDeferredValue:function(e,t){return Cs(B(),e,t)},useTransition:function(){var e=Jo(!1);return e=Ts.bind(null,z,e.queue,!0,!1),B().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=z,a=B();if(L){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Wl===null)throw Error(i(349));W&127||Uo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,fs(Go.bind(null,r,o,e),[e]),r.flags|=2048,cs(9,{destroy:void 0},Wo.bind(null,r,o,n,t),null),n},useId:function(){var e=B(),t=Wl.identifierPrefix;if(L){var n=Ai,r=ki;n=(r&~(1<<32-He(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=xo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=wo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:As,useFormState:rs,useActionState:rs,useOptimistic:function(e){var t=B();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,z,!0,n),n.dispatch=t,[e,t]},useMemoCache:Lo,useCacheRefresh:function(){return B().memoizedState=Ns.bind(null,z)},useEffectEvent:function(e){var t=B(),n={impl:e};return t.memoizedState=n,function(){if(H&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Us={readContext:ia,use:Io,useCallback:xs,useContext:ia,useEffect:ps,useImperativeHandle:ys,useInsertionEffect:gs,useLayoutEffect:_s,useMemo:Ss,useReducer:zo,useRef:ls,useState:function(){return zo(Ro)},useDebugValue:bs,useDeferredValue:function(e,t){return ws(V(),go.memoizedState,e,t)},useTransition:function(){var e=zo(Ro)[0],t=V().memoizedState;return[typeof e==`boolean`?e:Fo(e),t]},useSyncExternalStore:Ho,useId:js,useHostTransitionStatus:As,useFormState:is,useActionState:is,useOptimistic:function(e,t){return Yo(V(),go,e,t)},useMemoCache:Lo,useCacheRefresh:Ms};Us.useEffectEvent=hs;var Ws={readContext:ia,use:Io,useCallback:xs,useContext:ia,useEffect:ps,useImperativeHandle:ys,useInsertionEffect:gs,useLayoutEffect:_s,useMemo:Ss,useReducer:Vo,useRef:ls,useState:function(){return Vo(Ro)},useDebugValue:bs,useDeferredValue:function(e,t){var n=V();return go===null?Cs(n,e,t):ws(n,go.memoizedState,e,t)},useTransition:function(){var e=Vo(Ro)[0],t=V().memoizedState;return[typeof e==`boolean`?e:Fo(e),t]},useSyncExternalStore:Ho,useId:js,useHostTransitionStatus:As,useFormState:ss,useActionState:ss,useOptimistic:function(e,t){var n=V();return go===null?(n.baseState=e,[e,n.queue.dispatch]):Yo(n,go,e,t)},useMemoCache:Lo,useCacheRefresh:Ms};Ws.useEffectEvent=hs;function Gs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:p({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ks={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=yu(),i=Ga(r);i.payload=t,n!=null&&(i.callback=n),t=Ka(e,i,r),t!==null&&(xu(t,e,r),qa(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=yu(),i=Ga(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ka(e,i,r),t!==null&&(xu(t,e,r),qa(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=yu(),r=Ga(n);r.tag=2,t!=null&&(r.callback=t),t=Ka(e,r,n),t!==null&&(xu(t,e,n),qa(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?!Er(n,r)||!Er(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=p({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Xs(e){$r(e)}function Zs(e){console.error(e)}function Qs(e){$r(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=Ga(n),n.tag=3,n.payload={element:null},n.callback=function(){$s(e,t)},n}function nc(e){return e=Ga(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`&&(G===null?G=new Set([this]):G.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function ic(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ta(t,n,a,!0),n=ao.current,n!==null){switch(n.tag){case 31:case 13:return oo===null?Nu():n.alternate===null&&Zl===0&&(Zl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Oa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Zu(e,r,a)),!1;case 22:return n.flags|=65536,r===Oa?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)),Zu(e,r,a)),!1}throw Error(i(435,n.tag))}return Zu(e,r,a),Nu(),!1}if(L)return t=ao.current,t===null?(r!==Bi&&(t=Error(i(423),{cause:r}),qi(xi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=xi(r,n),a=tc(e.stateNode,r,a),Ja(e,a),Zl!==4&&(Zl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Bi&&(e=Error(i(422),{cause:r}),qi(xi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=xi(o,n),ru===null?ru=[o]:ru.push(o),Zl!==4&&(Zl=2),t===null)return!0;r=xi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=tc(n.stateNode,r,e),Ja(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`&&(G===null||!G.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=nc(a),rc(a,e,n,r),Ja(n,a),!1}n=n.return}while(n!==null);return!1}var ac=Error(i(461)),oc=!1;function sc(e,t,n,r){t.child=e===null?Va(t,null,n,r):Ba(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 ra(t),r=Do(e,t,n,o,a,i),s=jo(),e!==null&&!oc?(Mo(e,t,i),Mc(e,t,i)):(L&&s&&Ni(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`&&!fi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,uc(e,t,a,r,i)):(e=hi(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?Er:n,n(o,r)&&e.ref===t.ref)return Mc(e,t,i)}return t.flags|=1,e=pi(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(Er(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&&Ca(t,a===null?null:a.cachePool),a===null?ro():no(t,a),lo(t);else return r=t.lanes=536870912,pc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ca(t,null),ro(),uo(t)):(Ca(t,a.cachePool),no(t,a),uo(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=Sa();return a=a===null?null:{parent:ua._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ca(t,null),ro(),lo(t),e!==null&&ta(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 Ba(t,e.child,null,n),e=mc(t,t.pendingProps),e.flags|=2,fo(t),t.memoizedState=null,e}function gc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(L){if(r.mode===`hidden`)return e=mc(t,r),t.lanes=536870912,fc(null,e);if(co(t),(e=Li)?(e=lf(e,zi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Oi===null?null:{id:ki,overflow:Ai},retryLane:536870912,hydrationErrors:null},n=vi(e),n.return=t,t.child=n,Ii=t,Li=null)):e=null,e===null)throw Vi(t);return t.lanes=536870912,null}return mc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(co(t),a)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(i(558));else if(oc||ta(e,t,n,!1),a=(n&e.childLanes)!==0,oc||a){if(r=Wl,r!==null&&(s=at(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,oi(e,s),xu(r,e,s),ac;Nu(),t=hc(e,t,n)}else e=o.treeContext,Li=pf(s.nextSibling),Ii=t,L=!0,Ri=null,zi=!1,e!==null&&Fi(t,e),t=mc(t,r),t.flags|=4096;return t}return e=pi(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(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function vc(e,t,n,r,i){return ra(t),n=Do(e,t,n,r,void 0,i),r=jo(),e!==null&&!oc?(Mo(e,t,i),Mc(e,t,i)):(L&&r&&Ni(t),t.flags|=1,sc(e,t,n,i),t.child)}function yc(e,t,n,r,i,a){return ra(t),t.updateQueue=null,n=ko(t,r,n,i),Oo(e),r=jo(),e!==null&&!oc?(Mo(e,t,a),Mc(e,t,a)):(L&&r&&Ni(t),t.flags|=1,sc(e,t,n,a),t.child)}function bc(e,t,n,r,i){if(ra(t),t.stateNode===null){var a=li,o=n.contextType;typeof o==`object`&&o&&(a=ia(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={},Ua(t),o=n.contextType,a.context=typeof o==`object`&&o?ia(o):li,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),Za(t,r,a,i),Xa(),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=li,typeof u==`object`&&u&&(o=ia(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),Ha=!1;var f=t.memoizedState;a.state=f,Za(t,r,a,i),Xa(),l=t.memoizedState,s||f!==l||Ha?(typeof d==`function`&&(Gs(t,n,d,r),l=t.memoizedState),(c=Ha||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,Wa(e,t),o=t.memoizedProps,u=Ys(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=li,typeof l==`object`&&l&&(c=ia(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),Ha=!1,f=t.memoizedState,a.state=f,Za(t,r,a,i),Xa();var p=t.memoizedState;o!==d||f!==p||Ha||e!==null&&e.dependencies!==null&&na(e.dependencies)?(typeof s==`function`&&(Gs(t,n,s,r),p=t.memoizedState),(u=Ha||qs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&na(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),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ba(t,e.child,null,i),t.child=Ba(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 Gi(),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:wa()}}function wc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=tu),e}function Tc(e,t,n){var r=t.pendingProps,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(po.current&2)),s&&(a=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(L){if(a?so(t):uo(t),(e=Li)?(e=lf(e,zi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Oi===null?null:{id:ki,overflow:Ai},retryLane:536870912,hydrationErrors:null},n=vi(e),n.return=t,t.child=n,Ii=t,Li=null)):e=null,e===null)throw Vi(t);return df(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(uo(t),a=t.mode,c=Dc({mode:`hidden`,children:c},a),r=gi(r,a,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)):(so(t),Ec(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(so(t),t.flags&=-257,t=Oc(e,t,n)):t.memoizedState===null?(uo(t),c=r.fallback,a=t.mode,r=Dc({mode:`visible`,children:r.children},a),c=gi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ba(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)):(uo(t),t.child=e.child,t.flags|=128,t=null);else if(so(t),df(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,qi({value:r,source:null,stack:null}),t=Oc(e,t,n)}else if(oc||ta(e,t,n,!1),s=(n&e.childLanes)!==0,oc||s){if(s=Wl,s!==null&&(r=at(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,oi(e,r),xu(s,e,r),ac;uf(c)||Nu(),t=Oc(e,t,n)}else uf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Li=pf(c.nextSibling),Ii=t,L=!0,Ri=null,zi=!1,e!==null&&Fi(t,e),t=Ec(t,r.children),t.flags|=4096);return t}return a?(uo(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=pi(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=gi(c,a,n,null),c.flags|=2):c=pi(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):(a=c.cachePool,a===null?a=wa():(l=ua._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=wc(e,s,n),t.memoizedState=Sc,fc(e.child,r)):(so(t),n=e.child,e=n.sibling,n=pi(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=di(22,e,null,t),e.lanes=0,e}function Oc(e,t,n){return Ba(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),$i(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=po.current,s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,M(po,o),sc(e,t,r,n),r=L?Ti: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&&mo(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&&mo(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),Ql|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ta(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=pi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=pi(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&&na(e)))}function Pc(e,t,n){switch(t.tag){case 3:pe(t,t.stateNode.containerInfo),Zi(t,ua,e.memoizedState.cache),Gi();break;case 27:case 5:he(t);break;case 4:pe(t,t.stateNode.containerInfo);break;case 10:Zi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,co(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(so(t),e=Mc(e,t,n),e===null?null:e.sibling):Tc(e,t,n):(so(t),t.flags|=128,null);so(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=(ta(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),M(po,po.current),r)break;return null;case 22:return t.lanes=0,dc(e,t,n,t.pendingProps);case 24:Zi(t,ua,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,L&&t.flags&1048576&&Mi(t,Ti,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=ja(t.elementType),t.type=e,typeof e==`function`)fi(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 a=e.$$typeof;if(a===S){t.tag=11,t=cc(null,t,e,r,n);break a}if(a===E){t.tag=14,t=lc(null,t,e,r,n);break a}}throw t=ae(e)||e,Error(i(306,t,``))}}return t;case 0:return vc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Ys(r,t.pendingProps),bc(e,t,r,a,n);case 3:a:{if(pe(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Wa(e,t),Za(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Zi(t,ua,r),r!==o.cache&&ea(t,[ua],n,!0),Xa(),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!==a){a=xi(Error(i(424)),t),qi(a),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(Li=pf(e.firstChild),Ii=t,L=!0,Ri=null,zi=!0,n=Va(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Gi(),r===a){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=Nf(t.type,null,t.pendingProps,null))?t.memoizedState=n:L||(n=t.type,e=t.pendingProps,r=Gd(N.current).createElement(n),r[dt]=t,r[ft]=e,zd(r,n,e),wt(r),t.stateNode=r):t.memoizedState=Nf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return he(t),e===null&&L&&(r=t.stateNode=_f(t.type,t.pendingProps,N.current),Ii=t,zi=!0,a=Li,nf(t.type)?(mf=a,Li=pf(r.firstChild)):Li=a),sc(e,t,t.pendingProps.children,n),_c(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&L&&((a=r=Li)&&(r=sf(r,t.type,t.pendingProps,zi),r===null?a=!1:(t.stateNode=r,Ii=t,Li=pf(r.firstChild),zi=!1,a=!0)),a||Vi(t)),he(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Jd(a,o)?r=null:s!==null&&Jd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Do(e,t,Ao,null,null,n),np._currentValue=a),_c(e,t),sc(e,t,r,n),t.child;case 6:return e===null&&L&&((e=n=Li)&&(n=cf(n,t.pendingProps,zi),n===null?e=!1:(t.stateNode=n,Ii=t,Li=null,e=!0)),e||Vi(t)),null;case 13:return Tc(e,t,n);case 4:return pe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ba(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,Zi(t,t.type,r.value),sc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ra(t),a=ia(a),r=r(a),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 ra(t),r=ia(ua),e===null?(a=Sa(),a===null&&(a=Wl,o=da(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ua(t),Zi(t,ua,a)):((e.lanes&n)!==0&&(Wa(e,t),Za(t,null,null,n),Xa()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Zi(t,ua,r),r!==a.cache&&ea(t,[ua],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Zi(t,ua,r))),sc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Ic(e){e.flags|=4}function Lc(e,t,n,r,i){if((t=!!(e.mode&32))&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Au())e.flags|=8192;else throw Ma=Oa,Ea}else e.flags&=-16777217}function Rc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Jf(t))if(Au())e.flags|=8192;else throw Ma=Oa,Ea}function zc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:$e(),e.lanes|=t,nu|=t)}function Bc(e,t){if(!L)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 Vc(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 Hc(e,t,n){var r=t.pendingProps;switch(Pi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vc(t),null;case 1:return Vc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Qi(ua),me(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Wi(t)?Ic(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ki())),Vc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Ic(t),o===null?(Vc(t),Lc(t,a,null,r,n)):(Vc(t),Rc(t,o))):o?o===e.memoizedState?(Vc(t),t.flags&=-16777217):(Ic(t),Vc(t),Rc(t,o)):(e=e.memoizedProps,e!==r&&Ic(t),Vc(t),Lc(t,a,e,r,n)),null;case 27:if(ge(t),n=N.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ic(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Vc(t),null}e=ue.current,Wi(t)?Hi(t,e):(e=_f(a,r,n),t.stateNode=e,Ic(t))}return Vc(t),null;case 5:if(ge(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ic(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Vc(t),null}if(o=ue.current,Wi(t))Hi(t,o);else{var s=Gd(N.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);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(a,{is:r.is}):s.createElement(a)}}o[dt]=t,o[ft]=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(zd(o,a,r),a){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 Vc(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(i(166));if(e=N.current,Wi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ii,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[dt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Ld(e.nodeValue,n)),e||Vi(t,!0)}else e=Gd(e).createTextNode(r),e[dt]=t,t.stateNode=e}return Vc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Wi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[dt]=t}else Gi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Vc(t),e=!1}else n=Ki(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(fo(t),t):(fo(t),null);if(t.flags&128)throw Error(i(558))}return Vc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Wi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[dt]=t}else Gi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Vc(t),a=!1}else a=Ki(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(fo(t),t):(fo(t),null)}return fo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),zc(t,t.updateQueue),Vc(t),null);case 4:return me(),e===null&&Dd(t.stateNode.containerInfo),Vc(t),null;case 10:return Qi(t.type),Vc(t),null;case 19:if(j(po),r=t.memoizedState,r===null)return Vc(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null)if(a)Bc(r,!1);else{if(Zl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=mo(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;)mi(n,e),n=n.sibling;return M(po,po.current&1|2),L&&ji(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ae()>cu&&(t.flags|=128,a=!0,Bc(r,!1),t.lanes=4194304)}else{if(!a)if(e=mo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,zc(t,e),Bc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!L)return Vc(t),null}else 2*Ae()-r.renderingStartTime>cu&&n!==536870912&&(t.flags|=128,a=!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?(Vc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ae(),e.sibling=null,n=po.current,M(po,a?n&1|2:n&1),L&&ji(t,r.treeForkCount),e);case 22:case 23:return fo(t),io(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Vc(t),t.subtreeFlags&6&&(t.flags|=8192)):Vc(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&&j(xa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Qi(ua),Vc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Uc(e,t){switch(Pi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qi(ua),me(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ge(t),null;case 31:if(t.memoizedState!==null){if(fo(t),t.alternate===null)throw Error(i(340));Gi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(fo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Gi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return j(po),null;case 4:return me(),null;case 10:return Qi(t.type),null;case 22:case 23:return fo(t),io(),e!==null&&j(xa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Qi(ua),null;case 25:return null;default:return null}}function Wc(e,t){switch(Pi(t),t.tag){case 3:Qi(ua),me();break;case 26:case 27:case 5:ge(t);break;case 4:me();break;case 31:t.memoizedState!==null&&fo(t);break;case 13:fo(t);break;case 19:j(po);break;case 10:Qi(t.type);break;case 22:case 23:fo(t),io(),e!==null&&j(xa);break;case 24:Qi(ua)}}function Gc(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){K(t,t.return,e)}}function Kc(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){K(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){K(t,t.return,e)}}function qc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{$a(t,n)}catch(t){K(e,e.return,t)}}}function Jc(e,t,n){n.props=Ys(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){K(e,t,n)}}function Yc(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){K(e,t,n)}}function Xc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){K(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){K(e,t,n)}else n.current=null}function Zc(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){K(e,e.return,t)}}function Qc(e,t,n){try{var r=e.stateNode;Bd(r,e.type,n,t),r[ft]=t}catch(t){K(e,e.return,t)}}function $c(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&nf(e.type)||e.tag===4}function el(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||$c(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&&nf(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 tl(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=an));else if(r!==4&&(r===27&&nf(e.type)&&(n=e.stateNode,t=null),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,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&&nf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(nl(e,t,n),e=e.sibling;e!==null;)nl(e,t,n),e=e.sibling}function rl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);zd(t,r,n),t[dt]=e,t[ft]=n}catch(t){K(e,e.return,t)}}var il=!1,al=!1,ol=!1,sl=typeof WeakSet==`function`?WeakSet:Set,cl=null;function ll(e,t){if(e=e.containerInfo,Ud=dp,e=Ar(e),jr(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 a=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||a!==0&&f.nodeType!==3||(c=s+a),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===a&&(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(Wd={focusedElem:e,selectionRange:n},dp=!1,cl=t;cl!==null;)if(t=cl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,cl=e;else for(;cl!==null;){switch(t=cl,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++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Ys(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){K(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)of(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:of(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(i(163))}if(e=t.sibling,e!==null){e.return=t.return,cl=e;break}cl=t.return}}function ul(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Tl(e,n),r&4&&Gc(5,n);break;case 1:if(Tl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){K(n,n.return,e)}else{var i=Ys(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){K(n,n.return,e)}}r&64&&qc(n),r&512&&Yc(n,n.return);break;case 3:if(Tl(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{$a(e,t)}catch(e){K(n,n.return,e)}}break;case 27:t===null&&r&4&&rl(n);case 26:case 5:Tl(e,n),t===null&&r&4&&Zc(n),r&512&&Yc(n,n.return);break;case 12:Tl(e,n);break;case 31:Tl(e,n),r&4&&gl(e,n);break;case 13:Tl(e,n),r&4&&_l(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=ed.bind(null,n),ff(e,n))));break;case 22:if(r=n.memoizedState!==null||il,!r){t=t!==null&&t.memoizedState!==null||al,i=il;var a=al;il=r,(al=t)&&!a?Dl(e,n,!!(n.subtreeFlags&8772)):Tl(e,n),il=i,al=a}break;case 30:break;default:Tl(e,n)}}function dl(e){var t=e.alternate;t!==null&&(e.alternate=null,dl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&yt(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 fl=null,pl=!1;function ml(e,t,n){for(n=n.child;n!==null;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(Be&&typeof Be.onCommitFiberUnmount==`function`)try{Be.onCommitFiberUnmount(ze,n)}catch{}switch(n.tag){case 26:al||Xc(n,t),ml(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:al||Xc(n,t);var r=fl,i=pl;nf(n.type)&&(fl=n.stateNode,pl=!1),ml(e,t,n),vf(n.stateNode),fl=r,pl=i;break;case 5:al||Xc(n,t);case 6:if(r=fl,i=pl,fl=null,ml(e,t,n),fl=r,pl=i,fl!==null)if(pl)try{(fl.nodeType===9?fl.body:fl.nodeName===`HTML`?fl.ownerDocument.body:fl).removeChild(n.stateNode)}catch(e){K(n,t,e)}else try{fl.removeChild(n.stateNode)}catch(e){K(n,t,e)}break;case 18:fl!==null&&(pl?(e=fl,rf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Lp(e)):rf(fl,n.stateNode));break;case 4:r=fl,i=pl,fl=n.stateNode.containerInfo,pl=!0,ml(e,t,n),fl=r,pl=i;break;case 0:case 11:case 14:case 15:Kc(2,n,t),al||Kc(4,n,t),ml(e,t,n);break;case 1:al||(Xc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Jc(n,t,r)),ml(e,t,n);break;case 21:ml(e,t,n);break;case 22:al=(r=al)||n.memoizedState!==null,ml(e,t,n),al=r;break;default:ml(e,t,n)}}function gl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Lp(e)}catch(e){K(t,t.return,e)}}}function _l(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Lp(e)}catch(e){K(t,t.return,e)}}function vl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new sl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new sl),t;default:throw Error(i(435,e.tag))}}function yl(e,t){var n=vl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=td.bind(null,e,t);t.then(r,r)}})}function bl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(nf(c.type)){fl=c.stateNode,pl=!1;break a}break;case 5:fl=c.stateNode,pl=!1;break a;case 3:case 4:fl=c.stateNode.containerInfo,pl=!0;break a}c=c.return}if(fl===null)throw Error(i(160));hl(o,s,a),fl=null,pl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Sl(t,e),t=t.sibling}var xl=null;function Sl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:bl(t,e),Cl(e),r&4&&(Kc(3,e,e.return),Gc(3,e),Kc(5,e,e.return));break;case 1:bl(t,e),Cl(e),r&512&&(al||n===null||Xc(n,n.return)),r&64&&il&&(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 a=xl;if(bl(t,e),Cl(e),r&512&&(al||n===null||Xc(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,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[vt]||o[dt]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head >
9 title`))),zd(o,r,n),o[dt]=e,wt(o),r=o;break a;case`link`:var s=Gf(`link`,`href`,a).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=a.createElement(r),zd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Gf(`meta`,`content`,a).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=a.createElement(r),zd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[dt]=e,wt(o),r=o}e.stateNode=r}else Kf(a,e.type,e.stateNode);else e.stateNode=Bf(a,r,e.memoizedProps);
vendor: 65,844 bytes, lines 9-10
9else o===r?r===null&&e.stateNode!==null&&Qc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Kf(a,e.type,e.stateNode):Bf(a,r,e.memoizedProps))}break;case 27:bl(t,e),Cl(e),r&512&&(al||n===null||Xc(n,n.return)),n!==null&&r&4&&Qc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(bl(t,e),Cl(e),r&512&&(al||n===null||Xc(n,n.return)),e.flags&32){a=e.stateNode;try{Xt(a,``)}catch(t){K(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Qc(e,a,n===null?a:n.memoizedProps)),r&1024&&(ol=!0);break;case 6:if(bl(t,e),Cl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){K(e,e.return,t)}}break;case 3:if(Wf=null,a=xl,xl=xf(t.containerInfo),bl(t,e),xl=a,Cl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Lp(t.containerInfo)}catch(t){K(e,e.return,t)}ol&&(ol=!1,wl(e));break;case 4:r=xl,xl=xf(e.stateNode.containerInfo),bl(t,e),Cl(e),xl=r;break;case 12:bl(t,e),Cl(e);break;case 31:bl(t,e),Cl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,yl(e,r)));break;case 13:bl(t,e),Cl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ou=Ae()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,yl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=il,d=al;if(il=u||a,al=d||l,bl(t,e),al=d,il=u,Cl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||il||al||El(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)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){K(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){K(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?af(m,!0):af(l.stateNode,!1)}catch(e){K(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,yl(e,n))));break;case 19:bl(t,e),Cl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,yl(e,r)));break;case 30:break;case 21:break;default:bl(t,e),Cl(e)}}function Cl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if($c(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;nl(e,el(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Xt(o,``),n.flags&=-33),nl(e,el(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;tl(e,el(e),s);break;default:throw Error(i(161))}}catch(t){K(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function wl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;wl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Tl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ul(e,t.alternate,t),t=t.sibling}function El(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Kc(4,t,t.return),El(t);break;case 1:Xc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Jc(t,t.return,n),El(t);break;case 27:vf(t.stateNode);case 26:case 5:Xc(t,t.return),El(t);break;case 22:t.memoizedState===null&&El(t);break;case 30:El(t);break;default:El(t)}e=e.sibling}}function Dl(e,t,n){for(n&&=!!(t.subtreeFlags&8772),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:Dl(i,a,n),Gc(4,a);break;case 1:if(Dl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){K(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++)Qa(c[i],s)}catch(e){K(r,r.return,e)}}n&&o&64&&qc(a),Yc(a,a.return);break;case 27:rl(a);case 26:case 5:Dl(i,a,n),n&&r===null&&o&4&&Zc(a),Yc(a,a.return);break;case 12:Dl(i,a,n);break;case 31:Dl(i,a,n),n&&o&4&&gl(i,a);break;case 13:Dl(i,a,n),n&&o&4&&_l(i,a);break;case 22:a.memoizedState===null&&Dl(i,a,n),Yc(a,a.return);break;case 30:break;default:Dl(i,a,n)}t=t.sibling}}function Ol(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&&fa(n))}function kl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fa(e))}function Al(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)jl(e,t,n,r),t=t.sibling}function jl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Al(e,t,n,r),i&2048&&Gc(9,t);break;case 1:Al(e,t,n,r);break;case 3:Al(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&&fa(e)));break;case 12:if(i&2048){Al(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){K(t,t.return,e)}}else Al(e,t,n,r);break;case 31:Al(e,t,n,r);break;case 13:Al(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Al(e,t,n,r):(a._visibility|=2,Ml(e,t,n,r,!!(t.subtreeFlags&10256)||!1)):a._visibility&2?Al(e,t,n,r):Nl(e,t),i&2048&&Ol(o,t);break;case 24:Al(e,t,n,r),i&2048&&kl(t.alternate,t);break;default:Al(e,t,n,r)}}function Ml(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!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:Ml(a,o,s,c,i),Gc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Ml(a,o,s,c,i)):u._visibility&2?Ml(a,o,s,c,i):Nl(a,o),i&&l&2048&&Ol(o.alternate,o);break;case 24:Ml(a,o,s,c,i),i&&l&2048&&kl(o.alternate,o);break;default:Ml(a,o,s,c,i)}t=t.sibling}}function Nl(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:Nl(n,r),i&2048&&Ol(r.alternate,r);break;case 24:Nl(n,r),i&2048&&kl(r.alternate,r);break;default:Nl(n,r)}t=t.sibling}}var Pl=8192;function Fl(e,t,n){if(e.subtreeFlags&Pl)for(e=e.child;e!==null;)Il(e,t,n),e=e.sibling}function Il(e,t,n){switch(e.tag){case 26:Fl(e,t,n),e.flags&Pl&&e.memoizedState!==null&&Yf(n,xl,e.memoizedState,e.memoizedProps);break;case 5:Fl(e,t,n);break;case 3:case 4:var r=xl;xl=xf(e.stateNode.containerInfo),Fl(e,t,n),xl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Pl,Pl=16777216,Fl(e,t,n),Pl=r):Fl(e,t,n));break;default:Fl(e,t,n)}}function Ll(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 Rl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];cl=r,Vl(r,e)}Ll(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)zl(e),e=e.sibling}function zl(e){switch(e.tag){case 0:case 11:case 15:Rl(e),e.flags&2048&&Kc(9,e,e.return);break;case 3:Rl(e);break;case 12:Rl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Bl(e)):Rl(e);break;default:Rl(e)}}function Bl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];cl=r,Vl(r,e)}Ll(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Kc(8,t,t.return),Bl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Bl(t));break;default:Bl(t)}e=e.sibling}}function Vl(e,t){for(;cl!==null;){var n=cl;switch(n.tag){case 0:case 11:case 15:Kc(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:fa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,cl=r;else a:for(n=e;cl!==null;){r=cl;var i=r.sibling,a=r.return;if(dl(r),r===n){cl=null;break a}if(i!==null){i.return=a,cl=i;break a}cl=a}}}var Hl={getCacheForType:function(e){var t=ia(ua),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ia(ua).controller.signal}},Ul=typeof WeakMap==`function`?WeakMap:Map,H=0,Wl=null,U=null,W=0,Gl=0,Kl=null,ql=!1,Jl=!1,Yl=!1,Xl=0,Zl=0,Ql=0,$l=0,eu=0,tu=0,nu=0,ru=null,iu=null,au=!1,ou=0,su=0,cu=1/0,lu=null,G=null,uu=0,du=null,fu=null,pu=0,mu=0,hu=null,gu=null,_u=0,vu=null;function yu(){return H&2&&W!==0?W&-W:O.T===null?ct():gd()}function bu(){if(tu===0)if(!(W&536870912)||L){var e=qe;qe<<=1,!(qe&3932160)&&(qe=262144),tu=e}else tu=536870912;return e=ao.current,e!==null&&(e.flags|=32),tu}function xu(e,t,n){(e===Wl&&(Gl===2||Gl===9)||e.cancelPendingCommit!==null)&&(Ou(e,0),Tu(e,W,tu,!1)),tt(e,n),(!(H&2)||e!==Wl)&&(e===Wl&&(!(H&2)&&($l|=n),Zl===4&&Tu(e,W,tu,!1)),cd(e))}function Su(e,t,n){if(H&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||Ze(e,t),a=r?Iu(e,t):Pu(e,t,!0),o=r;do{if(a===0){Jl&&!r&&Tu(e,t,0,!1);break}if(n=e.current.alternate,o&&!wu(n)){a=Pu(e,t,!1),o=!1;continue}if(a===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;a=ru;var l=c.current.memoizedState.isDehydrated;if(l&&(Ou(c,s).flags|=256),s=Pu(c,s,!1),s!==2){if(Yl&&!l){c.errorRecoveryDisabledLanes|=o,$l|=o,a=4;break a}o=iu,iu=a,o!==null&&(iu===null?iu=o:iu.push.apply(iu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Ou(e,0),Tu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Tu(r,t,tu,!ql);break a;case 2:iu=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=ou+300-Ae(),10<a)){if(Tu(r,t,tu,!ql),Xe(r,0,!0)!==0)break a;pu=t,r.timeoutHandle=Zd(Cu.bind(null,r,n,iu,lu,au,t,tu,$l,nu,ql,o,`Throttled`,-0,0),a);break a}Cu(r,n,iu,lu,au,t,tu,$l,nu,ql,o,null,-0,0)}break}while(1);cd(e)}function Cu(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:an},Il(t,a,d);var m=(a&62914560)===a?ou-Ae():(a&4194048)===a?su-Ae():0;if(m=Zf(d,m),m!==null){pu=a,e.cancelPendingCommit=m(Uu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Tu(e,a,o,!l);return}}Uu(e,t,a,n,r,i,o,s,c)}function wu(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(!Tr(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 Tu(e,t,n,r){t&=~eu,t&=~$l,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-He(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&rt(e,n,t)}function Eu(){return H&6?!0:(ld(0,!1),!1)}function Du(){if(U!==null){if(Gl===0)var e=U.return;else e=U,Xi=Yi=null,No(e),R=null,Fa=0,e=U;for(;e!==null;)Wc(e.alternate,e),e=e.return;U=null}}function Ou(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Qd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),pu=0,Du(),Wl=e,U=n=pi(e.current,null),W=t,Gl=0,Kl=null,ql=!1,Jl=Ze(e,t),Yl=!1,nu=tu=eu=$l=Ql=Zl=0,iu=ru=null,au=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-He(r),a=1<<i;t|=e[i],r&=~a}return Xl=t,ri(),n}function ku(e,t){z=null,O.H=Vs,t===Ta||t===Da?(t=Na(),Gl=3):t===Ea?(t=Na(),Gl=4):Gl=t===ac?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Kl=t,U===null&&(Zl=1,$s(e,xi(t,e.current)))}function Au(){var e=ao.current;return e===null?!0:(W&4194048)===W?oo===null:(W&62914560)===W||W&536870912?e===oo:!1}function ju(){var e=O.H;return O.H=Vs,e===null?Vs:e}function Mu(){var e=O.A;return O.A=Hl,e}function Nu(){Zl=4,ql||(W&4194048)!==W&&ao.current!==null||(Jl=!0),!(Ql&134217727)&&!($l&134217727)||Wl===null||Tu(Wl,W,tu,!1)}function Pu(e,t,n){var r=H;H|=2;var i=ju(),a=Mu();(Wl!==e||W!==t)&&(lu=null,Ou(e,t)),t=!1;var o=Zl;a:do try{if(Gl!==0&&U!==null){var s=U,c=Kl;switch(Gl){case 8:Du(),o=6;break a;case 3:case 2:case 9:case 6:ao.current===null&&(t=!0);var l=Gl;if(Gl=0,Kl=null,Bu(e,s,c,l),n&&Jl){o=0;break a}break;default:l=Gl,Gl=0,Kl=null,Bu(e,s,c,l)}}Fu(),o=Zl;break}catch(t){ku(e,t)}while(1);return t&&e.shellSuspendCounter++,Xi=Yi=null,H=r,O.H=i,O.A=a,U===null&&(Wl=null,W=0,ri()),o}function Fu(){for(;U!==null;)Ru(U)}function Iu(e,t){var n=H;H|=2;var r=ju(),a=Mu();Wl!==e||W!==t?(lu=null,cu=Ae()+500,Ou(e,t)):Jl=Ze(e,t);a:do try{if(Gl!==0&&U!==null){t=U;var o=Kl;b:switch(Gl){case 1:Gl=0,Kl=null,Bu(e,t,o,1);break;case 2:case 9:if(ka(o)){Gl=0,Kl=null,zu(t);break}t=function(){Gl!==2&&Gl!==9||Wl!==e||(Gl=7),cd(e)},o.then(t,t);break a;case 3:Gl=7;break a;case 4:Gl=5;break a;case 7:ka(o)?(Gl=0,Kl=null,zu(t)):(Gl=0,Kl=null,Bu(e,t,o,7));break;case 5:var s=null;switch(U.tag){case 26:s=U.memoizedState;case 5:case 27:var c=U;if(s?Jf(s):c.stateNode.complete){Gl=0,Kl=null;var l=c.sibling;if(l!==null)U=l;else{var u=c.return;u===null?U=null:(U=u,Vu(u))}break b}}Gl=0,Kl=null,Bu(e,t,o,5);break;case 6:Gl=0,Kl=null,Bu(e,t,o,6);break;case 8:Du(),Zl=6;break a;default:throw Error(i(462))}}Lu();break}catch(t){ku(e,t)}while(1);return Xi=Yi=null,O.H=r,O.A=a,H=n,U===null?(Wl=null,W=0,ri(),Zl):0}function Lu(){for(;U!==null&&!Oe();)Ru(U)}function Ru(e){var t=Fc(e.alternate,e,Xl);e.memoizedProps=e.pendingProps,t===null?Vu(e):U=t}function zu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=yc(n,t,t.pendingProps,t.type,void 0,W);break;case 11:t=yc(n,t,t.pendingProps,t.type.render,t.ref,W);break;case 5:No(t);default:Wc(n,t),t=U=mi(t,Xl),t=Fc(n,t,Xl)}e.memoizedProps=e.pendingProps,t===null?Vu(e):U=t}function Bu(e,t,n,r){Xi=Yi=null,No(t),R=null,Fa=0;var i=t.return;try{if(ic(e,i,t,n,W)){Zl=1,$s(e,xi(n,e.current)),U=null;return}}catch(t){if(i!==null)throw U=i,t;Zl=1,$s(e,xi(n,e.current)),U=null;return}t.flags&32768?(L||r===1?e=!0:Jl||W&536870912?e=!1:(ql=e=!0,(r===2||r===9||r===3||r===6)&&(r=ao.current,r!==null&&r.tag===13&&(r.flags|=16384))),Hu(t,e)):Vu(t)}function Vu(e){var t=e;do{if(t.flags&32768){Hu(t,ql);return}e=t.return;var n=Hc(t.alternate,t,Xl);if(n!==null){U=n;return}if(t=t.sibling,t!==null){U=t;return}U=t=e}while(t!==null);Zl===0&&(Zl=5)}function Hu(e,t){do{var n=Uc(e.alternate,e);if(n!==null){n.flags&=32767,U=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){U=e;return}U=e=n}while(e!==null);Zl=6,U=null}function Uu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Ju();while(uu!==0);if(H&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=ni,nt(e,n,o,s,c,l),e===Wl&&(U=Wl=null,W=0),fu=t,du=e,pu=n,mu=o,hu=a,gu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,nd(Pe,function(){return Yu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=O.T,O.T=null,a=k.p,k.p=2,s=H,H|=4;try{ll(e,t,n)}finally{H=s,k.p=a,O.T=r}}uu=1,Wu(),Gu(),Ku()}}function Wu(){if(uu===1){uu=0;var e=du,t=fu,n=!!(t.flags&13878);if(t.subtreeFlags&13878||n){n=O.T,O.T=null;var r=k.p;k.p=2;var i=H;H|=4;try{Sl(t,e);var a=Wd,o=Ar(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&kr(s.ownerDocument.documentElement,s)){if(c!==null&&jr(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 _=Or(s,h),v=Or(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}}dp=!!Ud,Wd=Ud=null}finally{H=i,k.p=r,O.T=n}}e.current=t,uu=2}}function Gu(){if(uu===2){uu=0;var e=du,t=fu,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=O.T,O.T=null;var r=k.p;k.p=2;var i=H;H|=4;try{ul(e,t.alternate,t)}finally{H=i,k.p=r,O.T=n}}uu=3}}function Ku(){if(uu===4||uu===3){uu=0,ke();var e=du,t=fu,n=pu,r=gu;t.subtreeFlags&10256||t.flags&10256?uu=5:(uu=0,fu=du=null,qu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(G=null),st(n),t=t.stateNode,Be&&typeof Be.onCommitFiberRoot==`function`)try{Be.onCommitFiberRoot(ze,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=O.T,i=k.p,k.p=2,O.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{O.T=t,k.p=i}}pu&3&&Ju(),cd(e),i=e.pendingLanes,n&261930&&i&42?e===vu?_u++:(_u=0,vu=e):_u=0,ld(0,!1)}}function qu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,fa(t)))}function Ju(){return Wu(),Gu(),Ku(),Yu()}function Yu(){if(uu!==5)return!1;var e=du,t=mu;mu=0;var n=st(pu),r=O.T,a=k.p;try{k.p=32>n?32:n,O.T=null,n=hu,hu=null;var o=du,s=pu;if(uu=0,fu=du=null,pu=0,H&6)throw Error(i(331));var c=H;if(H|=4,zl(o.current),jl(o,o.current,s,n),H=c,ld(0,!1),Be&&typeof Be.onPostCommitFiberRoot==`function`)try{Be.onPostCommitFiberRoot(ze,o)}catch{}return!0}finally{k.p=a,O.T=r,qu(e,t)}}function Xu(e,t,n){t=xi(n,t),t=tc(e.stateNode,t,2),e=Ka(e,t,2),e!==null&&(tt(e,2),cd(e))}function K(e,t,n){if(e.tag===3)Xu(e,e,n);else for(;t!==null;){if(t.tag===3){Xu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(G===null||!G.has(r))){e=xi(n,e),n=nc(2),r=Ka(t,n,2),r!==null&&(rc(n,r,t,e),tt(r,2),cd(r));break}}t=t.return}}function Zu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ul;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)||(Yl=!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,Wl===e&&(W&n)===n&&(Zl===4||Zl===3&&(W&62914560)===W&&300>Ae()-ou?!(H&2)&&Ou(e,0):eu|=n,nu===W&&(nu=0)),cd(e)}function $u(e,t){t===0&&(t=$e()),e=oi(e,t),e!==null&&(tt(e,t),cd(e))}function ed(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$u(e,n)}function td(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),$u(e,n)}function nd(e,t){return Ee(e,t)}var rd=null,id=null,ad=!1,od=!1,q=!1,sd=0;function cd(e){e!==id&&e.next===null&&(id===null?rd=id=e:id=id.next=e),od=!0,ad||(ad=!0,hd())}function ld(e,t){if(!q&&od){q=!0;do for(var n=!1,r=rd;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-He(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,md(r,a))}else a=W,a=Xe(r,r===Wl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ze(r,a)||(n=!0,md(r,a));r=r.next}while(n);q=!1}}function ud(){dd()}function dd(){od=ad=!1;var e=0;sd!==0&&Xd()&&(e=sd);for(var t=Ae(),n=null,r=rd;r!==null;){var i=r.next,a=fd(r,t);a===0?(r.next=null,n===null?rd=i:n.next=i,i===null&&(id=n)):(n=r,(e!==0||a&3)&&(od=!0)),r=i}uu!==0&&uu!==5||ld(e,!1),sd!==0&&(sd=0)}function fd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-He(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Qe(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Wl,n=W,n=Xe(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Gl===2||Gl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&De(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ze(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&De(r),st(n)){case 2:case 8:n=Ne;break;case 32:n=Pe;break;case 268435456:n=Ie;break;default:n=Pe}return r=pd.bind(null,e),n=Ee(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&De(r),e.callbackPriority=2,e.callbackNode=null,2}function pd(e,t){if(uu!==0&&uu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ju()&&e.callbackNode!==n)return null;var r=W;return r=Xe(e,e===Wl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Su(e,r,t),fd(e,Ae()),e.callbackNode!=null&&e.callbackNode===n?pd.bind(null,e):null)}function md(e,t){if(Ju())return null;Su(e,t,!0)}function hd(){ef(function(){H&6?Ee(Me,ud):dd()})}function gd(){if(sd===0){var e=ha;e===0&&(e=Ke,Ke<<=1,!(Ke&261888)&&(Ke=256)),sd=e}return sd}function _d(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:rn(``+e)}function vd(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 yd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=_d((i[ft]||null).action),o=r.submitter;o&&(t=(t=o[ft]||null)?_d(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new I(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(sd!==0){var e=o?vd(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?vd(i,o):new FormData(i),Ds(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var bd=0;bd<Zr.length;bd++){var xd=Zr[bd];Qr(xd.toLowerCase(),`on`+(xd[0].toUpperCase()+xd.slice(1)))}Qr(Ur,`onAnimationEnd`),Qr(Wr,`onAnimationIteration`),Qr(Gr,`onAnimationStart`),Qr(`dblclick`,`onDoubleClick`),Qr(`focusin`,`onFocus`),Qr(`focusout`,`onBlur`),Qr(Kr,`onTransitionRun`),Qr(qr,`onTransitionStart`),Qr(Jr,`onTransitionCancel`),Qr(Yr,`onTransitionEnd`),Ot(`onMouseEnter`,[`mouseout`,`mouseover`]),Ot(`onMouseLeave`,[`mouseout`,`mouseover`]),Ot(`onPointerEnter`,[`pointerout`,`pointerover`]),Ot(`onPointerLeave`,[`pointerout`,`pointerover`]),Dt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Dt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Dt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Dt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Dt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Dt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Sd=`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(` `),Cd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Sd));function wd(e,t){t=!!(t&4);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){$r(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){$r(e)}i.currentTarget=null,a=c}}}}function J(e,t){var n=t[mt];n===void 0&&(n=t[mt]=new Set);var r=e+`__bubble`;n.has(r)||(Od(t,e,2,!1),n.add(r))}function Td(e,t,n){var r=0;t&&(r|=4),Od(n,e,r,t)}var Ed=`_reactListening`+Math.random().toString(36).slice(2);function Dd(e){if(!e[Ed]){e[Ed]=!0,Tt.forEach(function(t){t!==`selectionchange`&&(Cd.has(t)||Td(t,!1,e),Td(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ed]||(t[Ed]=!0,Td(`selectionchange`,!1,t))}}function Od(e,t,n,r){switch(vp(t)){case 2:var i=fp;break;case 8:i=pp;break;default:i=mp}n=i.bind(null,t,n,e),i=void 0,!hn||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 kd(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 c=r.stateNode.containerInfo;if(c===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(;c!==null;){if(o=bt(c),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue a}c=c.parentNode}}r=r.return}fn(function(){var r=a,i=sn(n),o=[];a:{var c=Xr.get(e);if(c!==void 0){var l=I,u=e;switch(e){case`keypress`:if(xn(n)===0)break a;case`keydown`:case`keyup`:l=Hn;break;case`focusin`:u=`focus`,l=Nn;break;case`focusout`:u=`blur`,l=Nn;break;case`beforeblur`:case`afterblur`:l=Nn;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=jn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Mn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Wn;break;case Ur:case Wr:case Gr:l=Pn;break;case Yr:l=Gn;break;case`scroll`:case`scrollend`:l=En;break;case`wheel`:l=Kn;break;case`copy`:case`cut`:case`paste`:l=Fn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Un;break;case`toggle`:case`beforetoggle`:l=qn}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;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=pn(m,p),g!=null&&d.push(Ad(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),o.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==on&&(u=n.relatedTarget||n.fromElement)&&(bt(u)||u[pt]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?bt(u):null,u!==null&&(f=s(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=jn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Un,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:St(l),h=u==null?c:St(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,bt(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=Md,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&&Nd(o,c,l,d,!1),u!==null&&f!==null&&Nd(o,f,u,d,!0)}}a:{if(c=r?St(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=pr;else if(sr(c))if(mr)v=Cr;else{v=xr;var y=br}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&en(r.elementType)&&(v=pr):v=Sr;if(v&&=v(e,r)){cr(o,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Kt(c,`number`,c.value)}switch(y=r?St(r):window,e){case`focusin`:(sr(y)||y.contentEditable===`true`)&&(Nr=y,Pr=r,Fr=null);break;case`focusout`:Fr=Pr=Nr=null;break;case`mousedown`:Ir=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Ir=!1,Lr(o,n,i);break;case`selectionchange`:if(Mr)break;case`keydown`:case`keyup`:Lr(o,n,i)}var b;if(Yn)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 rr?tr(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Qn&&n.locale!==`ko`&&(rr||x!==`onCompositionStart`?x===`onCompositionEnd`&&rr&&(b=bn()):(_n=i,vn=`value`in _n?_n.value:_n.textContent,rr=!0)),y=jd(r,x),0<y.length&&(x=new In(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=nr(n),b!==null&&(x.data=b)))),(b=Zn?ir(e,n):ar(e,n))&&(x=jd(r,`onBeforeInput`),0<x.length&&(y=new In(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),yd(o,e,r,n,i)}wd(o,t)})}function Ad(e,t,n){return{instance:e,listener:t,currentTarget:n}}function jd(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=pn(e,n),i!=null&&r.unshift(Ad(e,i,a)),i=pn(e,t),i!=null&&r.push(Ad(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Md(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Nd(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=pn(n,a),l!=null&&o.unshift(Ad(n,l,c))):i||(l=pn(n,a),l!=null&&o.push(Ad(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Pd=/\r\n?/g,Fd=/\u0000|\uFFFD/g;function Id(e){return(typeof e==`string`?e:``+e).replace(Pd,` 10`).replace(Fd,``)}function Ld(e,t){return t=Id(t),Id(e)===t}function Y(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Xt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Xt(e,``+r);break;case`className`:Pt(e,`class`,r);break;case`tabIndex`:Pt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Pt(e,n,r);break;case`style`:$t(e,r,o);break;case`data`:if(t!==`object`){Pt(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=rn(``+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}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&Y(e,t,`name`,a.name,a,null),Y(e,t,`formEncType`,a.formEncType,a,null),Y(e,t,`formMethod`,a.formMethod,a,null),Y(e,t,`formTarget`,a.formTarget,a,null)):(Y(e,t,`encType`,a.encType,a,null),Y(e,t,`method`,a.method,a,null),Y(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=rn(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=an);break;case`onScroll`:r!=null&&J(`scroll`,e);break;case`onScrollEnd`:r!=null&&J(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(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=rn(``+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`:J(`beforetoggle`,e),J(`toggle`,e),Nt(e,`popover`,r);break;case`xlinkActuate`:Ft(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Ft(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Ft(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Ft(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Ft(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Ft(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Ft(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Ft(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Ft(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Nt(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=tn.get(n)||n,Nt(e,n,r))}}function Rd(e,t,n,r,a,o){switch(n){case`style`:$t(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Xt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Xt(e,``+r);break;case`onScroll`:r!=null&&J(`scroll`,e);break;case`onScrollEnd`:r!=null&&J(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=an);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!Et.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[ft]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Nt(e,n,r)}}}function zd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:J(`error`,e),J(`load`,e);var r=!1,a=!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`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Y(e,t,o,s,n,null)}}a&&Y(e,t,`srcSet`,n.srcSet,n,null),r&&Y(e,t,`src`,n.src,n,null);return;case`input`:J(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=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(i(137,t));break;default:Y(e,t,r,d,n,null)}}Gt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in J(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Y(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&qt(e,!!r,n,!0):qt(e,!!r,t,!1);return;case`textarea`:for(s in J(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Y(e,t,s,c,n,null)}Yt(e,r,a,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:Y(e,t,l,r,n,null)}return;case`dialog`:J(`beforetoggle`,e),J(`toggle`,e),J(`cancel`,e),J(`close`,e);break;case`iframe`:case`object`:J(`load`,e);break;case`video`:case`audio`:for(r=0;r<Sd.length;r++)J(Sd[r],e);break;case`image`:J(`error`,e),J(`load`,e);break;case`details`:J(`toggle`,e);break;case`embed`:case`source`:case`link`:J(`error`,e),J(`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(i(137,t));default:Y(e,t,u,r,n,null)}return;default:if(en(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Rd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Y(e,t,c,r,n,null))}function Bd(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 a=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)||Y(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`:a=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(i(137,t));break;default:m!==f&&Y(e,t,p,m,r,f)}}Wt(e,s,c,l,u,d,o,a);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)||Y(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Y(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?qt(e,!!n,n?[]:``,!1):qt(e,!!n,t,!0)):qt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Y(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Y(e,t,s,a,r,o)}Jt(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:Y(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:Y(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)&&Y(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(i(137,t));break;default:Y(e,t,u,p,r,m)}return;default:if(en(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Rd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Rd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Y(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||Y(e,t,f,p,r,m)}function Vd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Hd(){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&&Vd(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&&Vd(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 Ud=null,Wd=null;function Gd(e){return e.nodeType===9?e:e.ownerDocument}function Kd(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 qd(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 Jd(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 Yd=null;function Xd(){var e=window.event;return e&&e.type===`popstate`?e!==Yd&&(Yd=e,!0):(Yd=null,!1)}var Zd=typeof setTimeout==`function`?setTimeout:void 0,Qd=typeof clearTimeout==`function`?clearTimeout:void 0,$d=typeof Promise==`function`?Promise:void 0,ef=typeof queueMicrotask==`function`?queueMicrotask:$d===void 0?Zd:function(e){return $d.resolve(null).then(e).catch(tf)};function tf(e){setTimeout(function(){throw e})}function nf(e){return e===`head`}function rf(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),Lp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)vf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,vf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[vt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&vf(e.ownerDocument.body);n=i}while(n);Lp(t)}function af(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 of(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`:of(n),yt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function sf(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[vt])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=pf(e.nextSibling),e===null)break}return null}function cf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=pf(e.nextSibling),e===null))return null;return e}function lf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=pf(e.nextSibling),e===null))return null;return e}function uf(e){return e.data===`$?`||e.data===`$~`}function df(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function ff(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 pf(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 mf=null;function hf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return pf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function gf(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 _f(e,t,n){switch(t=Gd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function vf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);yt(e)}var yf=new Map,bf=new Set;function xf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Sf=k.d;k.d={f:Cf,r:wf,D:Df,C:X,L:Of,m:kf,X:jf,S:Af,M:Mf};function Cf(){var e=Sf.f(),t=Eu();return e||t}function wf(e){var t=xt(e);t!==null&&t.tag===5&&t.type===`form`?ks(t):Sf.r(e)}var Tf=typeof document>`u`?null:document;function Ef(e,t,n){var r=Tf;if(r&&typeof t==`string`&&t){var i=Ut(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),bf.has(i)||(bf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),zd(t,`link`,e),wt(t),r.head.appendChild(t)))}}function Df(e){Sf.D(e),Ef(`dns-prefetch`,e,null)}function X(e,t){Sf.C(e,t),Ef(`preconnect`,e,t)}function Of(e,t,n){Sf.L(e,t,n);var r=Tf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Ut(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Ut(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Ut(n.imageSizes)+`"]`)):i+=`[href="`+Ut(e)+`"]`;var a=i;switch(t){case`style`:a=Pf(e);break;case`script`:a=Rf(e)}yf.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),yf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Ff(a))||t===`script`&&r.querySelector(zf(a))||(t=r.createElement(`link`),zd(t,`link`,e),wt(t),r.head.appendChild(t)))}}function kf(e,t){Sf.m(e,t);var n=Tf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Ut(r)+`"][href="`+Ut(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rf(e)}if(!yf.has(a)&&(e=p({rel:`modulepreload`,href:e},t),yf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zf(a)))return}r=n.createElement(`link`),zd(r,`link`,e),wt(r),n.head.appendChild(r)}}}function Af(e,t,n){Sf.S(e,t,n);var r=Tf;if(r&&e){var i=Ct(r).hoistableStyles,a=Pf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Ff(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=yf.get(a))&&Hf(e,n);var c=o=r.createElement(`link`);wt(c),zd(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,Vf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jf(e,t){Sf.X(e,t);var n=Tf;if(n&&e){var r=Ct(n).hoistableScripts,i=Rf(e),a=r.get(i);a||(a=n.querySelector(zf(i)),a||(e=p({src:e,async:!0},t),(t=yf.get(i))&&Uf(e,t),a=n.createElement(`script`),wt(a),zd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mf(e,t){Sf.M(e,t);var n=Tf;if(n&&e){var r=Ct(n).hoistableScripts,i=Rf(e),a=r.get(i);a||(a=n.querySelector(zf(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=yf.get(i))&&Uf(e,t),a=n.createElement(`script`),wt(a),zd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nf(e,t,n,r){var a=(a=N.current)?xf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Pf(n.href),n=Ct(a).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=Pf(n.href);var o=Ct(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Ff(e)))&&!o._p&&(s.instance=o,s.state.loading=5),yf.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},yf.set(e,n),o||Lf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Rf(n),n=Ct(a).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(i(444,e))}}function Pf(e){return`href="`+Ut(e)+`"`}function Ff(e){return`link[rel="stylesheet"][`+e+`]`}function If(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Lf(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}),zd(t,`link`,n),wt(t),e.head.appendChild(t))}function Rf(e){return`[src="`+Ut(e)+`"]`}function zf(e){return`script[async]`+e}function Bf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Ut(n.href)+`"]`);if(r)return t.instance=r,wt(r),r;var a=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),wt(r),zd(r,`style`,a),Vf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Pf(n.href);var o=e.querySelector(Ff(a));if(o)return t.state.loading|=4,t.instance=o,wt(o),o;r=If(n),(a=yf.get(a))&&Hf(r,a),o=(e.ownerDocument||e).createElement(`link`),wt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),zd(o,`link`,r),t.state.loading|=4,Vf(o,n.precedence,e),t.instance=o;case`script`:return o=Rf(n.src),(a=e.querySelector(zf(o)))?(t.instance=a,wt(a),a):(r=n,(a=yf.get(o))&&(r=p({},n),Uf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),wt(a),zd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vf(r,n.precedence,e));return t.instance}function Vf(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 Hf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Uf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Wf=null;function Gf(e,t,n){if(Wf===null){var r=new Map,i=Wf=new Map;i.set(n,r)}else i=Wf,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[vt]||a[dt]||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 Kf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function qf(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 Jf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Yf(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=Pf(r.href),a=t.querySelector(Ff(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Qf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,wt(a);return}a=t.ownerDocument||t,r=If(r),(i=yf.get(i))&&Hf(r,i),a=a.createElement(`link`),wt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),zd(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=Qf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Xf=0;function Zf(e,t){return e.stylesheets&&e.count===0&&ep(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ep(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Xf===0&&(Xf=62500*Hd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ep(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Xf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Qf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ep(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var $f=null;function ep(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$f=new Map,t.forEach(tp,e),$f=null,Qf.call(e))}function tp(e,t){if(!(t.state.loading&4)){var n=$f.get(e);if(n)var r=n.get(null);else{n=new Map,$f.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=Qf.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 np={$$typeof:x,Provider:null,Consumer:null,_currentValue:A,_currentValue2:A,_threadCount:0};function rp(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=et(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=et(0),this.hiddenUpdates=et(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 ip(e,t,n,r,i,a,o,s,c,l,u,d){return e=new rp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=di(3,null,null,t),e.current=a,a.stateNode=e,t=da(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ua(a),e}function ap(e){return e?(e=li,e):li}function op(e,t,n,r,i,a){i=ap(i),r.context===null?r.context=i:r.pendingContext=i,r=Ga(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ka(e,r,t),n!==null&&(xu(n,e,t),qa(n,e,t))}function sp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function cp(e,t){sp(e,t),(e=e.alternate)&&sp(e,t)}function lp(e){if(e.tag===13||e.tag===31){var t=oi(e,67108864);t!==null&&xu(t,e,67108864),cp(e,67108864)}}function up(e){if(e.tag===13||e.tag===31){var t=yu();t=ot(t);var n=oi(e,t);n!==null&&xu(n,e,t),cp(e,t)}}var dp=!0;function fp(e,t,n,r){var i=O.T;O.T=null;var a=k.p;try{k.p=2,mp(e,t,n,r)}finally{k.p=a,O.T=i}}function pp(e,t,n,r){var i=O.T;O.T=null;var a=k.p;try{k.p=8,mp(e,t,n,r)}finally{k.p=a,O.T=i}}function mp(e,t,n,r){if(dp){var i=hp(r);if(i===null)kd(e,t,r,gp,n),Dp(e,r);else if(kp(i,e,t,n,r))r.stopPropagation();else if(Dp(e,r),t&4&&-1<Ep.indexOf(e)){for(;i!==null;){var a=xt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ye(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-He(o);s.entanglements[1]|=c,o&=~c}cd(a),!(H&6)&&(cu=Ae()+500,ld(0,!1))}}break;case 31:case 13:s=oi(a,2),s!==null&&xu(s,a,2),Eu(),cp(a,2)}if(a=hp(r),a===null&&kd(e,t,r,gp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else kd(e,t,r,null,n)}}function hp(e){return e=sn(e),_p(e)}var gp=null;function _p(e){if(gp=null,e=bt(e),e!==null){var t=s(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=c(t),e!==null)return e;e=null}else if(n===31){if(e=l(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 gp=e,null}function vp(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(je()){case Me:return 2;case Ne:return 8;case Pe:case Fe:return 32;case Ie:return 268435456;default:return 32}default:return 32}}var yp=!1,bp=null,xp=null,Sp=null,Cp=new Map,wp=new Map,Tp=[],Ep=`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 Dp(e,t){switch(e){case`focusin`:case`focusout`:bp=null;break;case`dragenter`:case`dragleave`:xp=null;break;case`mouseover`:case`mouseout`:Sp=null;break;case`pointerover`:case`pointerout`:Cp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:wp.delete(t.pointerId)}}function Op(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=xt(t),t!==null&&lp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function kp(e,t,n,r,i){switch(t){case`focusin`:return bp=Op(bp,e,t,n,r,i),!0;case`dragenter`:return xp=Op(xp,e,t,n,r,i),!0;case`mouseover`:return Sp=Op(Sp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Cp.set(a,Op(Cp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,wp.set(a,Op(wp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ap(e){var t=bt(e.target);if(t!==null){var n=s(t);if(n!==null){if(t=n.tag,t===13){if(t=c(n),t!==null){e.blockedOn=t,lt(e.priority,function(){up(n)});return}}else if(t===31){if(t=l(n),t!==null){e.blockedOn=t,lt(e.priority,function(){up(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 jp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=hp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);on=r,n.target.dispatchEvent(r),on=null}else return t=xt(n),t!==null&&lp(t),e.blockedOn=n,!1;t.shift()}return!0}function Mp(e,t,n){jp(e)&&n.delete(t)}function Np(){yp=!1,bp!==null&&jp(bp)&&(bp=null),xp!==null&&jp(xp)&&(xp=null),Sp!==null&&jp(Sp)&&(Sp=null),Cp.forEach(Mp),wp.forEach(Mp)}function Pp(e,n){e.blockedOn===n&&(e.blockedOn=null,yp||(yp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Np)))}var Fp=null;function Ip(e){Fp!==e&&(Fp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Fp===e&&(Fp=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(_p(r||n)===null)continue;break}var a=xt(n);a!==null&&(e.splice(t,3),t-=3,Ds(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Lp(e){function t(t){return Pp(t,e)}bp!==null&&Pp(bp,e),xp!==null&&Pp(xp,e),Sp!==null&&Pp(Sp,e),Cp.forEach(t),wp.forEach(t);for(var n=0;n<Tp.length;n++){var r=Tp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Tp.length&&(n=Tp[0],n.blockedOn===null);)Ap(n),n.blockedOn===null&&Tp.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[ft]||null;if(typeof a==`function`)o||Ip(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[ft]||null)s=o.formAction;else if(_p(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Ip(n)}}}function Rp(){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 zp(e){this._internalRoot=e}Bp.prototype.render=zp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;op(n,yu(),e,t,null,null)},Bp.prototype.unmount=zp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;op(e.current,2,null,e,null,null),Eu(),t[pt]=null}};function Bp(e){this._internalRoot=e}Bp.prototype.unstable_scheduleHydration=function(e){if(e){var t=ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tp.length&&t!==0&&t<Tp[n].priority;n++);Tp.splice(n,0,e),n===0&&Ap(e)}};var Vp=n.version;if(Vp!==`19.2.8`)throw Error(i(527,Vp,`19.2.8`));k.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=d(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var Hp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:O,reconcilerVersion:`19.2.8`};
10if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Up=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Up.isDisabled&&Up.supportsFiber)try{ze=Up.inject(Hp),Be=Up}catch{}}e.hydrateRoot=function(e,t,n){if(!a(e))throw Error(i(299));var r=!1,o=``,s=Xs,c=Zs,l=Qs,u=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(o=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=ip(e,1,!0,t,n??null,r,o,u,s,c,l,Rp),t.context=ap(null),n=t.current,r=yu(),r=ot(r),o=Ga(r),o.callback=null,Ka(n,o,r),n=r,t.current.lanes=n,tt(t,n),cd(t),e[pt]=t.current,Dd(e),new Bp(t)}})),Se=l(((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=xe()})),Ce=`__TSS_CONTEXT`,we=Symbol.for(`TSS_SERVER_FUNCTION`),Te=Symbol.for(`TSS_SERVER_FUNCTION_FACTORY`),Ee=`application/x-tss-framed`,De={JSON:0,CHUNK:1,END:2,ERROR:3};`${Ee}`;var Oe=/;\s*v=(\d+)/;function ke(e){let t=e.match(Oe);return t?parseInt(t[1],10):void 0}function Ae(e){let t=ke(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 je=()=>window.__TSS_START_OPTIONS__;function Me(){try{return sessionStorage}catch{return}}var Ne=`tsr-scroll-restoration-v1_3`,Pe=Me();function Fe(){try{return JSON.parse(Pe?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function Ie(){try{Pe?.setItem(Ne,JSON.stringify(Le))}catch{}}var Le=Fe(),Re=`data-scroll-restoration-id`,ze=e=>e.state.__TSR_key||e.href;function Be(e){let t=e.getAttribute(Re);if(t)return`[${Re}="${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 Ve=!1,He=`window`;function Ue(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function We(e){let t=new Set;for(let n of e){if(n===He)continue;let e=Ue(n);e&&t.add(e)}return t}function Ge(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||ze,a=new Set,o=e=>{let t=Le[e]||={};for(let e of a)e===document?t[He]={scrollX,scrollY}:e.isConnected&&(t[Be(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.restoration&&(r.restoration=!0,Ve=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{Ve||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{o(i(e.stores.resolvedLocation.get()??e.stores.location.get())),Ie()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c=r.hash,l;if(a.clear(),r.next=!0,r.hash=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.restoring&&d&&d!==u){let e=Le[d];if(e){let t=Le[u];for(let n in e){if(n===He){if(s)continue}else{let e=Ue(n);if(!e||s&&o&&(l??=We(o),l.has(e)))continue}t||=Le[u]={},t[n]??=e[n]}}}Ve=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=We(o));let t=e&&i&&c,s=r.restoring?Le[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===He){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=Ue(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{Ve=!1}}))}function Ke(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function qe(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function Je(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=qe(r):Array.isArray(t)?t.push(qe(r)):n[e]=[t,qe(r)]}return n}var Ye=Ze(JSON.parse),Xe=Qe(JSON.stringify,JSON.parse);function Ze(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=Je(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function Qe(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=Ke(e,r);return t?`?${t}`:``}}function $e(e){return{input:({url:t})=>{for(let n of e)t=tt(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=nt(e[n],t);return t}}}function et(e){let t=M(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=E([`/`,t,e.pathname]),e)}}function tt(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 nt(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 rt(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),m=n(e.location),h=n(e.resolvedLocation),g=n(e.statusCode),_=n(e.redirect),v=n([]),y=n([]),b=n([]),x=r
10(()=>it(o,v.get())),S=r(()=>it(s,y.get())),C=r(()=>it(c,b.get())),w=r(()=>v.get()[0]),E=r(()=>v.get().some(e=>o.get(e)?.get().status===`pending`)),ee=r(()=>({locationHref:m.get().href,resolvedLocationHref:h.get()?.href,status:l.get()})),te=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:x.get(),location:m.get(),resolvedLocation:h.get(),statusCode:g.get(),redirect:_.get()})),ne=p(64);function re(e){let t=ne.get(e);return t||(t=r(()=>{let t=v.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),ne.set(e,t)),t}let D={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:m,resolvedLocation:h,statusCode:g,redirect:_,matchesId:v,pendingIds:y,cachedIds:b,matches:x,pendingMatches:S,cachedMatches:C,firstId:w,hasPending:E,matchRouteDeps:ee,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:te,getRouteMatchStore:re,setMatches:ie,setPending:ae,setCached:oe};ie(e.matches),a?.(D);function ie(e){at(e,o,v,n,i)}function ae(e){at(e,s,y,n,i)}function oe(e){at(e,c,b,n,i)}return D}function it(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function at(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)}ne(n.get(),a)||n.set(a)})}var ot=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},st=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),ct=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),lt=(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);
10i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},ut=(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},dt=(e,t,n)=>{if(!(!ge(n)&&!P(n)))throw ge(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:ge(n)?`redirected`:P(n)?`notFound`:r.status===`pending`?`success`:r.status,context:lt(e,t.index),isFetching:!1,error:n})),P(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),ge(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},ft=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},pt=(e,t,n)=>{let r=lt(e,n);e.updateMatch(t,e=>({...e,context:r}))},mt=(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,dt(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,dt(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&&!ge(n)&&!P(n)&&(e.serialError??=n)},ht=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!ct(e,t)&&(n.options.loader||n.options.beforeLoad||Et(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{ot(e)},i);r._nonReactive.pendingTimeout=t}},gt=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;ht(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&dt(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},_t=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=d(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&mt(e,n,o),s&&mt(e,n,s),ht(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})))},f=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),f()});return}i._nonReactive.beforeLoadPromise=d();let p={...lt(e,n,!1),...i.__routeContext},{search:m,params:h,cause:g}=i,_=ct(e,t),v={search:m,abortController:c,params:h,preload:_,context:p,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:_?`preload`:g,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},b=r=>{if(r===void 0){e.router.batch(()=>{u(),f()});return}(ge(r)||P(r))&&(u(),mt(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),f()})},x;try{if(x=r.options.beforeLoad(v),y(x))return u(),x.catch(t=>{mt(e,n,t)}).then(b)}catch(t){u(),mt(e,n,t)}b(x)},vt=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>_t(e,n,t,i),s=()=>{if(ft(e,n))return;let t=gt(e,n,i);return y(t)?t.then(o):o()};return a()}
10,yt=(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}))},bt=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=lt(e,r),d=ct(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}},xt=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{Tt(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(bt(e,t,n,r,i)),l=!!s&&y(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;dt(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:lt(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=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:lt(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,P(t)&&await i.options.notFoundComponent?.preload?.(),dt(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,dt(e,e.router.getMatch(n),t)}!ge(o)&&!P(o)&&await Tt(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:lt(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),dt(e,r,t)}},St=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(bt(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 xt(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){ge(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await xt(e,t,i,n,d):pt(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(ft(e,i)){if(!e.router.getMatch(i))return e.matches[n];pt(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=ct(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&&dt(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=d(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let f=e.router.getMatch(i);s||(f._nonReactive.loaderPromise?.resolve(),f._nonReactive.loadPromise?.resolve(),f._nonReactive.loadPromise=void 0),clearTimeout(f._nonReactive.pendingTimeout),f._nonReactive.pendingTimeout=void 0,s||(f._nonReactive.loaderPromise=void 0),f._nonReactive.dehydrated=void 0;let p=s?f.isFetching:!1;return p!==f.isFetching||f.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:p,invalid:!1})),e.router.getMatch(i)):f};async function Ct(e){let t=e,n=[];st(t.router)&&ot(t);let r;for(let e=0;e<t.matches.length;e++){try{let n=vt(t,e);y(n)&&await n}catch(e){if(ge(e))throw e;if(P(e))r=e;else if(!t.preload)throw e;break}if(t.serialError||t.firstBadMatchIndex!=null)break}let i=t.firstBadMatchIndex??t.matches.length,a=r&&!t.preload?ut(t,r):void 0,o=r&&t.preload?0:a===void 0?i:Math.min(a+1,i),s,c;for(let e=0;e<o;e++)n.push(St(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(ge(e))throw e;P(e)?s??=e:c??=e}if(c!==void 0)throw c}let l=s??(r&&!t.preload?r:void 0),u=t.firstBadMatchIndex===void 0?t.matches.length-1:t.firstBadMatchIndex;if(!l&&r&&t.preload)return t.matches;if(l){let e=ut(t,l);e===void 0&&re();let n=t.matches[e],r=t.router.looseRoutesById[n.routeId],i=t.router.options?.defaultNotFoundComponent;!r.options.notFoundComponent&&i&&(r.options.notFoundComponent=i),l.routeId=n.routeId;let a=n.routeId===t.router.routeTree.id;t.updateMatch(n.id,e=>({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await Tt(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 Tt(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=yt(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 d=ot(t);if(y(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function wt(e,t){let n=t.map(t=>
10e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function Tt(e,t=Dt){!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===Dt?(()=>{if(e._componentsPromise===void 0){let t=wt(e,Dt);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():wt(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function Et(e){for(let t of Dt)if(e.options[t]?.preload)return!0;return!1}var Dt=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`],Ot=`__TSR_index`,kt=`popstate`,At=`beforeunload`;function jt(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=Ft(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[Ot];i=Mt(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[Ot];i=Mt(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[Ot]!==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 Mt(e,t){t||={};let n=It();return{...t,key:n,__TSR_key:n,[Ot]:e}}function Nt(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??(()=>Ft(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=It();t.history.replaceState({[Ot]: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=Ft(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[Ot]-l.state[Ot],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=jt({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(At,S,{capture:!0}),t.removeEventListener(kt,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(At,S,{capture:!0}),t.addEventListener(kt,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 Pt(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function Ft(e,t){let n=Pt(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=It();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||{[Ot]:0,key:a,__TSR_key:a}}}function It(){return(Math.random()+1).toString(36).substring(7)}function Lt(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function Rt(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 zt=class{constructor(t,o){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.lightweightCache=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=ae(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history?this.options.history:Nt()),this.origin=this.options.origin,this.origin||=window?.origin&&window.origin!==`null`?window.origin:`http://localhost`,this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=p(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);
10this.batch=e.batch,this.stores=rt(Ht(this.latestLocation),e),Ge(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=M(o);t&&t!==`/`&&e.push(et({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:$e(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=r(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&i(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{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:f(e).path,external:!1,searchStr:o,search:v(t?.search,i),hash:f(r.slice(1)).path,state:b(t?.state,a)}}let o=new URL(i,this.origin),s=tt(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:f(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:v(t?.search,c),hash:f(s.hash.slice(1)).path,state:b(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)=>ce({base:e,to:t.includes(`//`)?w(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=>Wt({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,o=t.to?`${t.to}`:void 0,s=r.search,c=Object.assign(Object.create(null),r.params),l=o?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),d=o?this.resolvePathWithBase(l,o):l,p=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?c:Object.assign(c,u(t.params,c)),m=this.routesByPath[j(d)],g;if(m)g=this.getRouteBranch(m);else if(d.includes(`$`))g=[];else{let e=this.getMatchedRoutes(d);g=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(g=[...g,this.options.notFoundRoute])}if(g.length&&h(p))for(let e of g){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(p,t(p))}catch{}}let _=e.leaveParams?d:f(ee({path:d,params:p,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,y=s;if(e._includeValidateSearch&&this.options.search?.strict){let e={};g.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,Ut(t.options.validateSearch,{...e,...y}))}catch{}}),y=e}y=Gt({search:y,dest:t,destRoutes:g,_includeValidateSearch:e._includeValidateSearch}),y=v(s,y);let x=this.options.stringifySearch(y),S=t.hash===!0?n.hash:t.hash?u(t.hash,n.hash):void 0,C=S?`#${S}`:``,w=t.state===!0?n.state:t.state?u(t.state,n.state):{};w=b(n.state,w);let E=`${_}${x}${C}`,te,ne,re=!1;if(this.rewrite){let e=new URL(E,this.origin),t=nt(this.rewrite,e);te=e.href.replace(e.origin,``),t.origin===this.origin?ne=t.pathname+t.search+t.hash:(ne=t.href,re=!0)}else te=a(E),ne=te;return{publicHref:ne,href:te,pathname:_,search:y,searchStr:x,state:w,hash:S??``,external:re,unmaskOnReload:t.unmaskOnReload}},r=(r={},i)=>{let a=t(r),o=i?t(i):void 0;if(!o){let r=Object.create(null);if(this.options.routeMasks){let s=n(a.pathname,this.processedTree);if(s){Object.assign(r,s.rawParams);let{from:n,params:a,...c}
10=s.route,l=a===!1||a===null?Object.create(null):(a??!0)===!0?r:Object.assign(r,u(a,r));i={from:e.from,...c,params:l},o=t(i)}}}return o&&(a.maskedLocation=o),a};return e.mask?r(e,{from:e.from,...e.mask}):r(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=m(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=j(this.latestLocation.href)===j(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=d(()=>{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=Ft(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=tt(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 queueMicrotask(()=>{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(ue(t,this.protocolAllowlist))return;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}i.replace?window.location.replace(t):window.location.href=t;return}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&&(this._scroll.hash=t===`PUSH`||t===`REPLACE`);let n=this.latestLocation,r=Rt(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await Ct({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){ge(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):P(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(Rt(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&&ue(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)??3e5;return t.status===`error`||e-t.updatedAt>=r}})},this.loadRouteChunk=Tt,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 Ct({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(ge(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});P(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=_(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!m(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?m(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=o,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??`fuzzy`,stringifySearch:t.stringifySearch??Xe,parseSearch:t.parseSearch??Ye,protocolAllowlist:t.protocolAllowlist??e}),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=g(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[`**`]:j(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?qt(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],u,f,p;{let n=o?.search??e.search,i=o?._strictSearch??void 0;try{let e=Ut(r.options.validateSearch,{...n})??void 0;u={...n,...e},f={...i,...e},p=void 0}catch(e){let r=e;if(e instanceof Bt||(r=new Bt(e.message,{cause:e})),t?.throwOnError)throw r;u=n,f={},p=r}}let m=r.options.loaderDeps?.({search:u})??``,h=m?JSON.stringify(m):``,{interpolatedPath:g,usedParams:_}=ee({path:r.fullPath,params:i,decoder:this.pathParamsDecoder,server:this.isServer}),y=r.id+g+h,x=this.getMatch(y),S=l.get(r.id),C=x?._strictParams??_,w;if(!x)try{Jt(r,C)}catch(e){if(w=P(e)||ge(e)?e:new Vt(e.message,{cause:e}),t?.throwOnError)throw w}Object.assign(i,C);let E=S?`stay`:`enter`,te;if(x)te={...x,cause:E,params:S?.params??i,_strictParams:C,search:v(S?S.search:x.search,u),_strictSearch:f};else{let e=r.options.loader||r.options.beforeLoad||r.lazyFn||Et(r)?`pending`:`success`;te={id:y,ssr:r.options.ssr,index:n,routeId:r.id,params:S?.params??i,_strictParams:C,pathname:g,updatedAt:Date.now(),search:S?v(S.search,u):u,_strictSearch:f,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:w,__routeContext:void 0,_nonReactive:{loadPromise:d()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:E,loaderDeps:S?b(S.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?v(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 t=s(this.stores.matchesId.get()),n=this.lightweightCache.get(e);if(n&&n[0]===t)return n[1];let{matchedRoutes:r,routeParams:i}=this.getMatchedRoutes(e.pathname),a=s(r),o={...e.search};for(let e of r)try{Object.assign(o,Ut(e.options.validateSearch,o))}catch{}let c=t&&this.stores.matchStores.get(t)?.get(),l=c&&c.routeId===a.id&&c.pathname===e.pathname,u;if(l)u=c.params;else{let e=Object.assign(Object.create(null),i);for(let t of r)try{Jt(t,e)}catch{}u=e}let d={matchedRoutes:r,fullPath:a.fullPath,search:o,params:u};return this.lightweightCache.set(e,[t,d]),d}},Bt=class extends Error{},Vt=class extends Error{};function Ht(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function Ut(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new Bt(`Async validation not supported`);if(n.issues)throw new Bt(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 Wt({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=j(e),a,o=le(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function Gt({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return Kt(n)(e,t,r??!1)}function Kt(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)=>
10t(e),t):t);return e.postSearchFilters?e.postSearchFilters.reduce((e,t)=>t(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=Ut(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=u(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 qt(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 pe}function Jt(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)}}var Yt=Symbol.for(`TSR_DEFERRED_PROMISE`);function Xt(e,t){let n=e;return n[Yt]?n:(n[Yt]={status:`pending`},n.then(e=>{n[Yt].status=`success`,n[Yt].data=e}).catch(e=>{n[Yt].status=`error`,n[Yt].error={data:(t?.serializeError??Lt)(e),__isServerError:!0}}),n)}function Zt(e,t){if(e)return typeof e==`string`?e:e[t]}function Qt(e){return e?.scriptFormat??`module`}function $t(e,t,n){let r=en(t),i=Zt(n,`script`)??r.crossOrigin;return{...Qt(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function en(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function tn(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 nn(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}var rn=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=pe:this.parentRoute||re();let r=n?pe:t?.path;r&&r!==`/`&&(r=S(r));let i=t?.id||r,a=n?pe:E([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=E([`/`,a]));let o=a===`__root__`?`/`:E([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=j(o)},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=>he({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.`)}},an=class extends rn{constructor(e){super(e)}},on=(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))(on||{}),sn=Symbol.asyncIterator,cn=Symbol.hasInstance,ln=Symbol.isConcatSpreadable,un=Symbol.iterator,dn=Symbol.match,fn=Symbol.matchAll,pn=Symbol.replace,mn=Symbol.search,hn=Symbol.species,gn=Symbol.split,_n=Symbol.toPrimitive,vn=Symbol.toStringTag,yn=Symbol.unscopables,bn={[sn]:0,[cn]:1,[ln]:2,[un]:3,[dn]:4,[fn]:5,[pn]:6,[mn]:7,[hn]:8,[gn]:9,[_n]:10,[vn]:11,[yn]:12},xn={0:sn,1:cn,2:ln,3:un,4:dn,5:fn,6:pn,7:mn,8:hn,9:gn,10:_n,11:vn,12:yn},F=void 0,Sn={2:!0,3:!1,1:F,0:null,4:-0,5:1/0,6:-1/0,7:NaN},Cn={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 I(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 Tn(e){return I(2,F,e,F,F,F,F,F,F,F,F,F)}var En=Tn(2),Dn=Tn(3),On=Tn(1),kn=Tn(0),An=Tn(4),jn=Tn(5),Mn=Tn(6),Nn=Tn(7);function Pn(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 F}}function Fn(e){let t=``,n=0,r;for(let i=0,a=e.length;i<a;i++)r=Pn(e[i]),r&&(t+=e.slice(n,i)+r,n=i+1);return n===0?t=e:t+=e.slice(n),t}function In(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 Ln(e){return e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,In)}var Rn=`__SEROVAL_REFS__`,zn=new Map,Bn=new Map;function Vn(e){return zn.has(e)}function Hn(e){return Bn.has(e)}function Un(e){if(Vn(e))return zn.get(e);throw new jr(e)}function Wn(e){if(Hn(e))return Bn.get(e);throw new Mr(e)}typeof globalThis<`u`?Object.defineProperty(globalThis,Rn,{value:Bn,configurable:!0,writable:!1,enumerable:!1}):typeof window<`u`?Object.defineProperty(window,Rn,{value:Bn,configurable:!0,writable:!1,enumerable:!1}):typeof self<`u`?Object.defineProperty(self,Rn,{value:Bn,configurable:!0,writable:!1,enumerable:!1}):typeof global<`u`&&Object.defineProperty(global,Rn,{value:Bn,configurable:!0,writable:!1,enumerable:!1});function Gn(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 Kn(e){let t=Cn[Gn(e)];return e.name===t?e.constructor.name===t?{}:{name:e.constructor.name}:{name:e.name}}function qn(e,t){let n=Kn(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 Jn(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:+!Object.isExtensible(e)}function Yn(e){switch(e){case 1/0:return jn;case-1/0:return Mn}return e===e?Object.is(e,-0)?An:I(0,F,e,F,F,F,F,F,F,F,F,F):Nn}function Xn(e){return I(1,F,Fn(e),F,F,F,F,F,F,F,F,F)}function Zn(e){return I(3,F,``+e,F,F,F,F,F,F,F,F,F)}function Qn(e){return I(4,e,F,F,F,F,F,F,F,F,F,F)}function $n(e,t){let n=t.valueOf();return I(5,e,n===n?t.toISOString():``,F,F,F,F,F,F,F,F,F)}function er(e,t){return I(6,e,F,Fn(t.source),t.flags,F,F,F,F,F,F,F)}function tr(e,t){return I(17,e,bn[t],F,F,F,F,F,F,F,F,F)}function nr(e,t){return I(18,e,Fn(Un(t)),F,F,F,F,F,F,F,F,F)}function rr(e,t,n){return I(25,e,n,Fn(t),F,F,F,F,F,F,F,F)}function ir(e,t,n){return I(9,e,F,F,F,F,F,n,F,F,Jn(t),F)}function ar(e,t){return I(21,e,F,F,F,F,F,F,t,F,F,F)}function or(e,t,n){return I(15,e,F,t.constructor.name,F,F,F,F,n,t.byteOffset,F,t.length)}function sr(e,t,n){return I(16,e,F,t.constructor.name,F,F,F,F,n,t.byteOffset,F,t.length)}function cr(e,t,n){return I(20,e,F,F,F,F,F,F,n,t.byteOffset,F,t.byteLength)}function lr(e,t,n){return I(13,e,Gn(t),F,Fn(t.message),n,F,F,F,F,F,F)}function ur(e,t,n){return I(14,e,Gn(t),F,Fn(t.message),n,F,F,F,F,F,F)}function dr(e,t){return I(7,e,F,F,F,F,F,t,F,F,F,F)}function fr(e,t){return I(28,F,F,F,F,F,F,[e,t],F,F,F,F)}function pr(e,t){return I(30,F,F,F,F,F,F,[e,t],F,F,F,F)}function mr(e,t,n){return I(31,e,F,F,F,F,F,n,t,F,F,F)}function hr(e,t){return I(32,e,F,F,F,F,F,F,t,F,F,F)}function gr(e,t){return I(33,e,F,F,F,F,F,F,t,F,F,F)}function _r(e,t){return I(34,e,F,F,F,F,F,F,t,F,F,F)}function vr(e,t,n,r){return I(35,e,n,F,F,F,F,t,F,F,F,r)}var{toString:yr}
12=Object.prototype,br={parsing:1,serialization:2,deserialization:3};function xr(e){return`Seroval Error (step: ${br[e]})`}var Sr=(e,t)=>xr(e),Cr=class extends Error{constructor(e,t){super(Sr(e,t)),this.cause=t}},wr=class extends Cr{constructor(e){super(`parsing`,e)}},Tr=class extends Cr{constructor(e){super(`deserialization`,e)}};function Er(e){return`Seroval Error (specific: ${e})`}var Dr=class extends Error{constructor(e){super(Er(1)),this.value=e}},Or=class extends Error{constructor(e){super(Er(2))}},kr=class extends Error{constructor(e){super(Er(3))}},Ar=class extends Error{constructor(e){super(Er(4))}},jr=class extends Error{constructor(e){super(Er(5)),this.value=e}},Mr=class extends Error{constructor(e){super(Er(6))}},Nr=class extends Error{constructor(e){super(Er(7))}},Pr=class extends Error{constructor(e){super(Er(8))}},Fr=class extends Error{constructor(e){super(Er(9))}},Ir=class{constructor(e,t){this.value=e,this.replacement=t}},Lr=()=>{let e={p:0,s:0,f:0};return e.p=new Promise((t,n)=>{e.s=t,e.f=n}),e};Lr.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 Rr=()=>{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)}}};Rr.toString();var zr=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};zr.toString();var Br=(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};Br.toString();var Vr=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};Vr.toString();function Hr(e){return`__SEROVAL_SEQUENCE__`in e}function Ur(e,t,n){return{__SEROVAL_SEQUENCE__:!0,v:e,t,d:n}}function Wr(e){let t=[],n=-1,r=-1,i=e[un]();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 Ur(t,n,r)}var Gr=zr(un);function Kr(e){return Gr(e)}var qr={},Jr={},Yr={0:{},1:{},2:{},3:{},4:{},5:{}};function Xr(e){return`__SEROVAL_STREAM__`in e}function Zr(){return Rr()}function Qr(e){let t=Zr(),n=e[sn]();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 $r=Br(sn,Lr);function ei(e){return $r(e)}async function ti(e){try{return[1,await e]}catch(e){return[0,e]}}function ni(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 ri(e,t){e.marked.add(t)}function ii(e,t){let n=e.refs.size;return e.refs.set(t,n),n}function ai(e,t){let n=e.refs.get(t);return n==null?{type:0,value:ii(e,t)}:(ri(e,n),{type:1,value:Qn(n)})}function oi(e,t){let n=ai(e,t);return n.type===1?n:Vn(t)?{type:2,value:nr(n.value,t)}:n}function si(e,t){let n=oi(e,t);if(n.type!==0)return n.value;if(t in bn)return tr(n.value,t);throw new Dr(t)}function ci(e,t){let n=ai(e,Yr[t]);return n.type===1?n.value:I(26,n.value,t,F,F,F,F,F,F,F,F,F)}function li(e){let t=ai(e,qr);return t.type===1?t.value:I(27,t.value,F,F,F,F,F,F,si(e,un),F,F,F)}function ui(e){let t=ai(e,Jr);return t.type===1?t.value:I(29,t.value,F,F,F,F,F,[ci(e,1),si(e,sn)],F,F,F,F)}function di(e,t,n,r){return I(n?11:10,e,F,F,F,r,F,F,F,F,Jn(t),F)}function fi(e,t,n,r){return I(8,t,F,F,F,F,{k:n,v:r},F,ci(e,0),F,F,F)}function pi(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 I(19,t,Fn(btoa(i)),F,F,F,F,F,ci(e,5),F,F,F)}function mi(e,t){return{base:ni(e,t),child:void 0}}var hi=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return Fi(this._p,this.depth,e)}};async function gi(e,t,n){let r=[];for(let i=0,a=n.length;i<a;i++)i in n?r[i]=await Fi(e,t,n[i]):r[i]=0;return r}async function _i(e,t,n,r){return ir(n,r,await gi(e,t,r))}
12async function vi(e,t,n){let r=Object.entries(n),i=[],a=[];for(let n=0,o=r.length;n<o;n++)i.push(Fn(r[n][0])),a.push(await Fi(e,t,r[n][1]));return un in n&&(i.push(si(e.base,un)),a.push(fr(li(e.base),await Fi(e,t,Wr(n))))),sn in n&&(i.push(si(e.base,sn)),a.push(pr(ui(e.base),await Fi(e,t,Qr(n))))),vn in n&&(i.push(si(e.base,vn)),a.push(Xn(n[vn]))),ln in n&&(i.push(si(e.base,ln)),a.push(n[ln]?En:Dn)),{k:i,v:a}}async function yi(e,t,n,r,i){return di(n,r,i,await vi(e,t,r))}async function bi(e,t,n,r){return ar(n,await Fi(e,t,r.valueOf()))}async function xi(e,t,n,r){return or(n,r,await Fi(e,t,r.buffer))}async function Si(e,t,n,r){return sr(n,r,await Fi(e,t,r.buffer))}async function Ci(e,t,n,r){return cr(n,r,await Fi(e,t,r.buffer))}async function wi(e,t,n,r){let i=qn(r,e.base.features);return lr(n,r,i?await vi(e,t,i):F)}async function Ti(e,t,n,r){let i=qn(r,e.base.features);return ur(n,r,i?await vi(e,t,i):F)}async function Ei(e,t,n,r){let i=[],a=[];for(let[n,o]of r.entries())i.push(await Fi(e,t,n)),a.push(await Fi(e,t,o));return fi(e.base,n,i,a)}async function Di(e,t,n,r){let i=[];for(let n of r.keys())i.push(await Fi(e,t,n));return dr(n,i)}async function Oi(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 rr(n,o.tag,await o.parse.async(r,new hi(e,t),{id:n}))}return F}async function ki(e,t,n,r){let[i,a]=await ti(r);return I(12,n,i,F,F,F,F,F,await Fi(e,t,a),F,F,F)}function Ai(e,t,n,r,i){let a=[],o=n.on({next:n=>{ri(this.base,t),Fi(this,e,n).then(e=>{a.push(hr(t,e))},e=>{i(e),o()})},throw:n=>{ri(this.base,t),Fi(this,e,n).then(e=>{a.push(gr(t,e)),r(a),o()},e=>{i(e),o()})},return:n=>{ri(this.base,t),Fi(this,e,n).then(e=>{a.push(_r(t,e)),r(a),o()},e=>{i(e),o()})}})}async function ji(e,t,n,r){return mr(n,ci(e.base,4),await new Promise(Ai.bind(e,t,n,r)))}async function Mi(e,t,n,r){let i=[];for(let n=0,a=r.v.length;n<a;n++)i[n]=await Fi(e,t,r.v[n]);return vr(n,i,r.t,r.d)}async function Ni(e,t,n,r){if(Array.isArray(r))return _i(e,t,n,r);if(Xr(r))return ji(e,t,n,r);if(Hr(r))return Mi(e,t,n,r);let i=r.constructor;if(i===Ir)return Fi(e,t,r.replacement);let a=await Oi(e,t,n,r);if(a)return a;switch(i){case Object:return yi(e,t,n,r,!1);case F:return yi(e,t,n,r,!0);case Date:return $n(n,r);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return wi(e,t,n,r);case Number:case Boolean:case String:case BigInt:return bi(e,t,n,r);case ArrayBuffer:return pi(e.base,n,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return xi(e,t,n,r);case DataView:return Ci(e,t,n,r);case Map:return Ei(e,t,n,r);case Set:return Di(e,t,n,r)}if(i===Promise||r instanceof Promise)return ki(e,t,n,r);let o=e.base.features;if(o&32&&i===RegExp)return er(n,r);if(o&16)switch(i){case BigInt64Array:case BigUint64Array:return Si(e,t,n,r);default:break}if(o&1&&typeof AggregateError<`u`&&(i===AggregateError||r instanceof AggregateError))return Ti(e,t,n,r);if(r instanceof Error)return wi(e,t,n,r);if(un in r||sn in r)return yi(e,t,n,r,!!i);throw new Dr(r)}async function Pi(e,t,n){let r=oi(e.base,n);if(r.type!==0)return r.value;let i=await Oi(e,t,r.value,n);if(i)return i;throw new Dr(n)}async function Fi(e,t,n){if(t>=e.base.depthLimit)throw new Fr(e.base.depthLimit);switch(typeof n){case`boolean`:return n?En:Dn;case`undefined`:return On;case`string`:return Xn(n);case`number`:return Yn(n);case`bigint`:return Zn(n);case`object`:if(n){let r=oi(e.base,n);return r.type===0?await Ni(e,t+1,r.value,n):r.value}return kn;case`symbol`:return si(e.base,n);case`function`:return Pi(e,t,n);default:throw new Dr(n)}}async function Ii(e,t){try{return await Fi(e,0,t)}catch(e){throw e instanceof wr?e:new wr(e)}}var Li=(e=>(e[e.Vanilla=1]=`Vanilla`,e[e.Cross=2]=`Cross`,e))(Li||{});function L(e){return e}function Ri(e,t){for(let n=0,r=t.length;n<r;n++){let r=t[n];e.has(r)||(e.add(r),r.extends&&Ri(e,r.extends))}}function zi(e){if(e){let t=new Set;return Ri(t,e),[...t]}}function Bi(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 Nr(e)}}function Vi(e){switch(e){case`constructor`:case`__proto__`:case`prototype`:case`__defineGetter__`:case`__defineSetter__`:case`__lookupGetter__`:case`__lookupSetter__`:return!1;default:return!0}}function Hi(e){switch(e){case sn:case ln:case vn:case un:return!0;default:return!1}}var Ui=1e6,Wi=1e4,Gi=2e4;function Ki(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 qi=1e3;function Ji(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||qi}}
12function Yi(e){return{mode:2,base:Ji(2,e),child:F}}var Xi=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return R(this._p,this.depth,e)}};function Zi(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new Pr({t:4,i:t});if(e.refs.has(t))throw Error(`Conflicted ref id: `+t)}function Qi(e,t,n){return Zi(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,n),n}function $i(e,t,n){return Zi(e.base,t),e.base.refs.set(t,n),n}function ea(e,t,n){return e.mode===1?Qi(e,t,n):$i(e,t,n)}function ta(e,t,n){if(Object.hasOwn(t,n))return t[n];throw new Pr(e)}function na(e,t){return ea(e,t.i,Wn(Ln(t.s)))}function ra(e,t,n){let r=n.a,i=r.length,a=ea(e,n.i,Array(i));for(let n=0,o;n<i;n++)o=r[n],o&&(a[n]=R(e,t,o));return Ki(a,n.o),a}function ia(e,t,n){Vi(t)?e[t]=n:Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!0,writable:!0})}function aa(e,t,n,r,i){if(typeof r==`string`)ia(n,Ln(r),R(e,t,i));else{let a=R(e,t,r);switch(typeof a){case`string`:ia(n,a,R(e,t,i));break;case`symbol`:Hi(a)&&(n[a]=R(e,t,i));break;default:throw new Pr(r)}}}function oa(e,t,n){e.base.refs.types.set(t,n)}function sa(e,t,n,r){if(e.base.refs.types.get(n)!==r)throw new Pr(t)}function ca(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++)aa(e,t,r,i[a],o[a]);return r}function la(e,t,n){let r=ea(e,n.i,n.t===10?{}:Object.create(null));return ca(e,t,n.p,r),Ki(r,n.o),r}function ua(e,t){return ea(e,t.i,new Date(t.s))}function da(e,t){if(e.base.features&32){let n=Ln(t.c);if(n.length>Gi)throw new Pr(t);return ea(e,t.i,new RegExp(n,t.m))}throw new Or(t)}function fa(e,t,n){let r=ea(e,n.i,new Set);for(let i=0,a=n.a,o=a.length;i<o;i++)r.add(R(e,t,a[i]));return r}function pa(e,t,n){let r=ea(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(R(e,t,a[i]),R(e,t,o[i]));return r}function ma(e,t){if(t.s.length>Ui)throw new Pr(t);return ea(e,t.i,Vr(Ln(t.s)))}function ha(e,t,n){let r=Bi(n.c),i=R(e,t,n.f),a=n.b??0;if(a<0||a>i.byteLength)throw new Pr(n);return ea(e,n.i,new r(i,a,n.l))}function ga(e,t,n){let r=R(e,t,n.f),i=n.b??0;if(i<0||i>r.byteLength)throw new Pr(n);return ea(e,n.i,new DataView(r,i,n.l))}function _a(e,t,n,r){if(n.p){let i=ca(e,t,n.p,{});Object.defineProperties(r,Object.getOwnPropertyDescriptors(i))}return r}function va(e,t,n){return _a(e,t,n,ea(e,n.i,AggregateError([],Ln(n.m))))}function ya(e,t,n){let r=ta(n,wn,n.s);return _a(e,t,n,ea(e,n.i,new r(Ln(n.m))))}function ba(e,t,n){let r=Lr(),i=ea(e,n.i,r.p),a=R(e,t,n.f);return n.s?r.s(a):r.f(a),i}function xa(e,t,n){return ea(e,n.i,Object(R(e,t,n.f)))}function Sa(e,t,n){let r=e.base.plugins;if(r){let i=Ln(n.c);for(let a=0,o=r.length;a<o;a++){let o=r[a];if(o.tag===i)return ea(e,n.i,o.deserialize(n.s,new Xi(e,t),{id:n.i}))}}throw new kr(n.c)}function Ca(e,t){let n=ea(e,t.i,ea(e,t.s,Lr()).p);return oa(e,t.s,22),n}function wa(e,t,n){let r=e.base.refs.get(n.i);if(r)return sa(e,n,n.i,22),r.s(R(e,t,n.a[1])),F;throw new Ar(`Promise`)}function Ta(e,t,n){let r=e.base.refs.get(n.i);if(r)return sa(e,n,n.i,22),r.f(R(e,t,n.a[1])),F;throw new Ar(`Promise`)}function Ea(e,t,n){return R(e,t,n.a[0]),Kr(R(e,t,n.a[1]))}function Da(e,t,n){return R(e,t,n.a[0]),ei(R(e,t,n.a[1]))}function Oa(e,t,n){let r=ea(e,n.i,Zr());oa(e,n.i,31);let i=n.a,a=i.length;if(a)for(let n=0;n<a;n++)R(e,t,i[n]);return r}function ka(e,t,n){let r=e.base.refs.get(n.i);if(r)return sa(e,n,n.i,31),r.next(R(e,t,n.f)),F;throw new Ar(`Stream`)}function Aa(e,t,n){let r=e.base.refs.get(n.i);if(r)return sa(e,n,n.i,31),r.throw(R(e,t,n.f)),F;throw new Ar(`Stream`)}function ja(e,t,n){let r=e.base.refs.get(n.i);if(r)return sa(e,n,n.i,31),r.return(R(e,t,n.f)),F;throw new Ar(`Stream`)}function Ma(e,t,n){return R(e,t,n.f),F}function Na(e,t,n){return R(e,t,n.a[1]),F}function Pa(e,t,n){let r=ea(e,n.i,Ur([],n.s,n.l));for(let i=0,a=n.a.length;i<a;i++)r.v[i]=R(e,t,n.a[i]);return r}function R(e,t,n){if(t>e.base.depthLimit)throw new Fr(e.base.depthLimit);switch(t+=1,n.t){case 2:return ta(n,Sn,n.s);case 0:return Number(n.s);case 1:return Ln(String(n.s));case 3:if(String(n.s).length>Wi)throw new Pr(n);return BigInt(n.s);case 4:return e.base.refs.get(n.i);case 18:return na(e,n);case 9:return ra(e,t,n);case 10:case 11:return la(e,t,n);case 5:return ua(e,n);case 6:return da(e,n);case 7:return fa(e,t,n);
12case 8:return pa(e,t,n);case 19:return ma(e,n);case 16:case 15:return ha(e,t,n);case 20:return ga(e,t,n);case 14:return va(e,t,n);case 13:return ya(e,t,n);case 12:return ba(e,t,n);case 17:return ta(n,xn,n.s);case 21:return xa(e,t,n);case 25:return Sa(e,t,n);case 22:return Ca(e,n);case 23:return wa(e,t,n);case 24:return Ta(e,t,n);case 28:return Ea(e,t,n);case 30:return Da(e,t,n);case 31:return Oa(e,t,n);case 32:return ka(e,t,n);case 33:return Aa(e,t,n);case 34:return ja(e,t,n);case 27:return Ma(e,t,n);case 29:return Na(e,t,n);case 35:return Pa(e,t,n);default:throw new Or(n)}}function Fa(e,t){try{return R(e,0,t)}catch(e){throw new Tr(e)}}var Ia=(()=>T).toString();/=>/.test(Ia);function La(e,t){return Fa(Yi({plugins:zi(t.plugins),refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit}),e)}async function Ra(e,t={}){let n=mi(1,{plugins:zi(t.plugins),disabledFeatures:t.disabledFeatures});return{t:await Ii(n,e),f:n.base.features,m:Array.from(n.base.marked)}}function za(e){return e}function Ba(e){return L({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 Va=class{constructor(e,t){this.stream=e,this.hint=t?.hint??`binary`}},Ha=globalThis.Buffer,Ua=!!Ha&&typeof Ha.from==`function`;function Wa(e){if(e.length===0)return``;if(Ua)return Ha.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 Ga(e){if(e.length===0)return new Uint8Array;
12if(Ua){let t=Ha.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 Ka=Object.create(null),qa=Object.create(null),Ja=e=>new ReadableStream({start(t){e.on({next(e){try{t.enqueue(Ga(e))}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),Ya=new TextEncoder,Xa=e=>new ReadableStream({start(t){e.on({next(e){try{typeof e==`string`?t.enqueue(Ya.encode(e)):t.enqueue(Ga(e.$b64))}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),Za=`(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(_){}}})}}))`,Qa=`(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 $a(e){let t=Zr(),n=e.getReader();return(async()=>{try{for(;;){let{done:e,value:r}=await n.read();if(e){t.return(void 0);break}t.next(Wa(r))}}catch(e){t.throw(e)}finally{n.releaseLock()}})(),t}function eo(e){let t=Zr(),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:Wa(i)})}}}catch(e){t.throw(e)}finally{n.releaseLock()}})(),t}var to=L({tag:`tss/RawStream`,extends:[L({tag:`tss/RawStreamFactory`,test(e){return e===Ka},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return Za},deserialize(e,t,n){return Ka}}),L({tag:`tss/RawStreamFactoryText`,test(e){return e===qa},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return Qa},deserialize(e,t,n){return qa}})],test(e){return e instanceof Va},parse:{sync(e,t,n){let r=e.hint===`text`?qa:Ka;return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(Zr())}},async async(e,t,n){let r=e.hint===`text`?qa:Ka,i=e.hint===`text`?eo(e.stream):$a(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`?qa:Ka,i=e.hint===`text`?eo(e.stream):$a(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`?Xa(r):Ja(r)}});function no(e){return L({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 ro=L({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))}}),io={},ao=e=>new ReadableStream({start:t=>{e.on({next:e=>{try{t.enqueue(e)}catch{}},throw:e=>{t.error(e)},return:()=>{try{t.close()}catch{}}})}}),oo=L({tag:`seroval-plugins/web/ReadableStreamFactory`,test(e){return e===io},parse:{sync(){return io},async async(){return await Promise.resolve(io)},stream(){return io}},serialize(){return ao.toString()},deserialize(){return io}});async function so(e,t){try{let n=await t.read();n.done?(e.return(n.value),t.releaseLock()):(e.next(n.value),await so(e,t))}catch(t){e.throw(t)}}function co(e){e.cancel().catch(()=>{}),e.releaseLock()}function lo(e){let t=Zr(),n=e.getReader(),r=co.bind(null,n);return so(t,n).catch(r),[t,r]}var uo=[ro,to,L({tag:`seroval/plugins/web/ReadableStream`,extends:[oo],test(e){return typeof ReadableStream>`u`?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(io),stream:t.parse(Zr())}},async async(e,t){return{factory:await t.parse(io),stream:await t.parse(lo(e)[0])}},stream(e,t){let[n,r]=lo(e);return t.addCleanup(r),{factory:t.parse(io),stream:t.parse(n)}}},serialize(e,t){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t){return ao(t.deserialize(e.stream))}})];function fo(){return[...(je()?.serializationAdapters)?.map(Ba)??[],...uo]}var po=new TextDecoder,mo=new Uint8Array,ho=16777216,z=33554432,go=1024,_o=1e5;function vo(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>=go)throw Error(`Too many raw streams in framed response (max ${go})`);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 mo;let t=c[0];if(t&&t.length>=e){let n=t.subarray(0,e);return t.length===e?c.shift():c[0]=t.subarray(e),l-=e,n}let n=new Uint8Array(e),r=0,i=e;for(;i>0&&c.length>0;){let e=c[0];if(!e)break;let t=Math.min(e.length,i);n.set(e.subarray(0,t),r),r+=t,i-=t,t===e.length?c.shift():c[0]=e.subarray(t)}return l-=e,n}try{for(;;){let{done:e,value:a}=await n.read();if(i||e)break;if(a){if(l+a.length>z)throw Error(`Framed response buffer exceeded ${z} bytes`);for(c.push(a),l+=a.length;;){let e=d();if(!e)break;let{type:n,streamId:i,length:a}=e;if(n!==De.JSON&&n!==De.CHUNK&&n!==De.END&&n!==De.ERROR)throw Error(`Unknown frame type: ${n}`);if(n===De.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>ho)throw Error(`Frame payload too large: ${a} bytes (max ${ho})`);let c=9+a;if(l<c)break;if(++o>_o)throw Error(`Too many frames in framed response (max ${_o})`);f(9);let p=f(a);switch(n){case De.JSON:try{s.enqueue(po.decode(p))}catch{}break;case De.CHUNK:{let e=u(i);e&&e.enqueue(p);break}case De.END:{let e=u(i);if(r.add(i),e){try{e.close()}catch{}t.delete(i)}break}case De.ERROR:{let e=u(i);if(r.add(i),e){let n=po.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 yo=null;async function bo(e){e.length>0&&await Promise.allSettled(e)}var xo=Object.prototype.hasOwnProperty;function So(e){for(let t in e)if(xo.call(e,t))return!0;return!1}async function Co(e,t,n){yo||=fo();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`,`${Ee}, application/x-ndjson, application/json`),r.method===`GET`){if(a===`formData`)throw Error(`FormData is not supported with GET requests`);let t=await wo(r);if(t!==void 0){let n=Ke({payload:t});e.includes(`?`)?e+=`&${n}`:e+=`?${n}`}}let s;if(r.method===`POST`){let e=await Eo(r);e?.contentType&&o.set(`content-type`,e.contentType),s=e?.body}return await Do(async()=>i(e,{method:r.method,headers:o,signal:r.signal,body:s}))}async function wo(e){let t=!1,n={};if(e.data!==void 0&&(t=!0,n.data=e.data),e.context&&So(e.context)&&(t=!0,n.context=e.context),t)return To(n)}async function To(e){return JSON.stringify(await Promise.resolve(Ra(e,{plugins:yo})))}async function Eo(e){if(e.data instanceof FormData){let t;return e.context&&So(e.context)&&(t=await To(e.context)),t!==void 0&&e.data.set(Ce,t),{body:e.data}}let t=await wo(e);if(t)return{body:t,contentType:`application/json`}}async function Do(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||re(),t.headers.get(`x-tss-serialized`)){let e;if(n.includes(`application/x-tss-framed`)){if(Ae(n),!t.body)throw Error(`No response body for framed response`);
12let{getOrCreateStream:r,jsonChunks:i}=vo(t.body),a=[no(r),...yo||[]],o=new Map;e=await Oo({jsonStream:i,onMessage:e=>La(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=La(n,{plugins:yo})}finally{}await bo(r)}if(e||re(),e instanceof Error)throw e;return e}if(n.includes(`application/json`)){let e=await t.json(),n=me(e);if(n)throw n;if(P(e))throw e;return e}if(!t.ok)throw Error(await t.text());return t}async function Oo({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 bo(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 bo(u),Promise.resolve(l).catch(()=>{s=!0,r.cancel().catch(()=>{})}),c.finally(()=>{try{r.releaseLock()}catch{}}),l}function ko(e){let t=`/_serverFn/`+e;return Object.assign((...e)=>{let n=je()?.serverFns?.fetch;return Co(t,e,n??fetch)},{url:t,serverFnMeta:{id:e},[we]:!0})}var Ao=za({key:`$TSS/serverfn`,test:e=>typeof e!=`function`||!(we in e)?!1:!!e[we],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>ko(e)});function jo(e){return e.replaceAll(`\0`,`/`).replaceAll(`�`,`/`)}function Mo(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 No(e){window.$_TSR||re();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||re();let n=window.$_TSR.router;n.matches.forEach(e=>{e.i=jo(e.i)}),n.lastMatchId&&=jo(n.lastMatchId);let{manifest:r,dehydratedData:i,lastMatchId:a}=n;e.ssr={manifest:r};let o=document.querySelector(`meta[property="csp-nonce"]`)?.content;e.options.ssr={nonce:o},await e.options.hydrate?.(i);let s=e.matchRoutes(e.stores.location.get()),c=Promise.all(s.map(t=>e.loadRouteChunk(e.looseRoutesById[t.routeId])));function l(t){let n=e.looseRoutesById[t.routeId].options.pendingMinMs??e.options.defaultPendingMinMs;if(n){let r=d();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 u(t){let n=e.looseRoutesById[t.routeId];n&&(n.options.ssr=t.ssr)}let f;s.forEach(e=>{let t=n.matches.find(t=>t.i===e.id);if(!t){e._nonReactive.dehydrated=!1,e.ssr=!1,u(e);return}Mo(e,t),u(e),e._nonReactive.dehydrated=e.ssr!==!1,(e.ssr===`data-only`||e.ssr===!1)&&f===void 0&&(f=e.index,l(e))}),e.stores.setMatches(s);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:s,routeId:n.id};t.__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(P(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=s[s.length-1].id!==a;if(!s.some(e=>e.ssr===!1)&&!h)return s.forEach(e=>{e._nonReactive.dehydrated=void 0}),e.stores.resolvedLocation.set(e.stores.location.get()),c;let g=Promise.resolve().then(()=>e.load()).catch(e=>{console.error(`Error during router hydration:`,e)});if(h){let t=s[1];t||re(),l(t),t._displayPending=!0,t._nonReactive.displayPendingPromise=g,g.then(()=>{e.batch(()=>
12{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 c}var B=oe(o(),1),V=ie();function Po({promise:e}){if(k)return k(e);let t=Xt(e);if(t[Yt].status===`pending`)throw t;if(t[Yt].status===`error`)throw t[Yt].error;return t[Yt].data}function Fo(e){let t=(0,V.jsx)(Io,{...e});return e.fallback?(0,V.jsx)(B.Suspense,{fallback:e.fallback,children:t}):t}function Io(e){let t=Po(e);return e.children(t)}function Lo(e){let t=e.errorComponent??zo;return(0,V.jsx)(Ro,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?B.createElement(t,{error:n,reset:r}):e.children})}var Ro=class extends B.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 zo({error:e}){let[t,n]=B.useState(!1);return(0,V.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,V.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,V.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,V.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,V.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,V.jsx)(`div`,{children:(0,V.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,V.jsx)(`code`,{children:e.message}):null})}):null]})}var Bo=(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))(Bo||{});function Vo({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 Ho(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 Uo=[],Wo=0,{link:Go,unlink:Ko,propagate:qo,checkDirty:Jo,shallowPropagate:Yo}=Vo({update(e){return e._update()},notify(e){Uo[Zo++]=e,e.flags&=~Bo.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=Bo.Mutable|Bo.Dirty,ts(e))}}),Xo=0,Zo=0,Qo,$o=0;function es(e){try{++$o,e()}finally{--$o||ns()}}function ts(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Ko(n,e)}function ns(){if(!($o>0)){for(;Xo<Zo;){let e=Uo[Xo];
12Uo[Xo++]=void 0,e.notify()}Xo=0,Zo=0}}function rs(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?Bo.None:Bo.Mutable,get(){return Qo!==void 0&&Go(i,Qo,Wo),i._snapshot},subscribe(e){let t=Ho(e),n={current:!1},r=is(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Qo,o=t?.compare??Object.is;if(n)Qo=i,++Wo,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=Bo.Mutable|Bo.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{Qo=a,n&&(i.flags&=~Bo.RecursedCheck),ts(i)}}};return n?(i.flags=Bo.Mutable|Bo.Dirty,i.get=function(){let e=i.flags;if(e&Bo.Dirty||e&Bo.Pending&&Jo(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Yo(e)}}else e&Bo.Pending&&(i.flags=e&~Bo.Pending);return Qo!==void 0&&Go(i,Qo,Wo),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(qo(e),Yo(e),ns())}},i}function is(e){let t=()=>{let t=Qo;Qo=n,++Wo,n.depsTail=void 0,n.flags=Bo.Watching|Bo.RecursedCheck;try{return e()}finally{Qo=t,n.flags&=~Bo.RecursedCheck,ts(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Bo.Watching|Bo.RecursedCheck,notify(){let e=this.flags;e&Bo.Dirty||e&Bo.Pending&&Jo(this.deps,this)?t():this.flags=Bo.Watching},stop(){this.flags=Bo.None,this.depsTail=void 0,ts(this)}};return t(),n}var as={get(){},subscribe(){return{unsubscribe(){}}}};function os(e,t){let n=B.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=b(n.current,i):i}}function ss(e){let t=D(),n=B.useContext(e.from?ve:_e),r=e.from?t.stores.getRouteMatchStore(e.from):t.stores.matchStores.get(n),i=os(e,t),a=A(r??as,e=>e?i(e):as);if(a!==as)return a;(e.shouldThrow??!0)&&re()}function cs(e){return ss({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function ls(e){let{select:t,...n}=e;return ss({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function us(e){return ss({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 ds(e){return ss({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function fs(e){let t=D();return B.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function ps(e){return ss({...e,select:t=>e.select?e.select(t.context):t.context})}var ms=class extends rn{constructor(e){super(e),this.useMatch=e=>ss({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>ps({...e,from:this.id}),this.useSearch=e=>ds({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>us({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>ls({...e,from:this.id}),this.useLoaderData=e=>cs({...e,from:this.id}),this.useNavigate=()=>fs({from:this.fullPath}),this.Link=B.forwardRef((e,t)=>(0,V.jsx)(fe,{ref:t,from:this.fullPath,...e}))}};function hs(e){return new ms(e)}function gs(){return e=>vs(e)}var _s=class extends an{constructor(e){super(e),this.useMatch=e=>ss({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>ps({...e,from:this.id}),this.useSearch=e=>ds({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>us({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>ls({...e,from:this.id}),this.useLoaderData=e=>cs({...e,from:this.id}),this.useNavigate=()=>fs({from:this.fullPath}),this.Link=B.forwardRef((e,t)=>(0,V.jsx)(fe,{ref:t,from:this.fullPath,...e}))}};function vs(e){return new _s(e)}function ys(e){return new bs(e,{silent:!0}).createRoute}var bs=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=hs(e);return t.isRoot=!1,t},this.silent=t?.silent}};function xs(e,n){let r,i,a,o,s=()=>(r||=e().then(e=>{r=void 0,i=e[n??`default`]}).catch(e=>{if(a=e,t(a)&&a instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${a.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),o=!0)}}),r),c=function(e){if(o)throw window.location.reload(),new Promise(()=>{});if(a)throw a;if(!i)if(k)k(s());else throw s();return B.createElement(i,e)};return c.preload=s,c}function Ss(e){let t=D(),n=`not-found-${A(t.stores.location,e=>e.pathname)}-${A(t.stores.status,e=>e)}`;return(0,V.jsx)(Lo,{getResetKey:()=>n,onCatch:(t,n)=>{if(P(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(P(t))return e.fallback?.(t);throw t},children:e.children})}function Cs(){return(0,V.jsx)(`p`,{children:`Not Found`})}function ws(e){return(0,V.jsx)(V.Fragment,{children:e.children})}
12function Ts(e,t,n){return t.options.notFoundComponent?(0,V.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,V.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,V.jsx)(Cs,{})}var Es=(e,t)=>e.routeId===t.routeId&&e._displayPending===t._displayPending,Ds=(e,t)=>e[0]===t[0]&&e[1]===t[1],Os=B.memo(function({matchId:e}){let t=D(),n=t.stores.matchStores.get(e);n||re();let r=A(t.stores.loadedAt,e=>e),i=A(n,e=>e,Es);return(0,V.jsx)(ks,{router:t,matchId:e,resetKey:r,matchState:B.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,V.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))?B.Suspense:ws,f=s?Lo:ws,p=l?Ss:ws;return(0,V.jsxs)(i.isRoot?i.options.shellComponent??ws:ws,{children:[(0,V.jsx)(_e.Provider,{value:t,children:(0,V.jsx)(d,{fallback:o,children:(0,V.jsx)(f,{getResetKey:()=>n,errorComponent:s||zo,onCatch:(e,t)=>{if(P(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,V.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return B.createElement(l,e)},children:u||r._displayPending?(0,V.jsx)(te,{fallback:o,children:(0,V.jsx)(js,{matchId:t})}):(0,V.jsx)(js,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(As,{}),(e.options.scrollRestoration,null)]}):null]})}function As(){let e=D(),t=B.useRef();return se(()=>{let n=e.stores.resolvedLocation.get(),r=t.current;n&&(!r||r.href!==n.href)&&e.emit({type:`onRendered`,...Rt(e.stores.location.get(),r??n)}),t.current=n},[A(e.stores.resolvedLocation,e=>e?.state.__TSR_key),e]),null}var js=B.memo(function({matchId:e}){let t=D(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||re();let i=A(r,e=>e),a=i.routeId,o=t.routesById[a],s=B.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),c=B.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,V.jsx)(e,{},s):(0,V.jsx)(Ms,{})},[s,o.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=o.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=d();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return P(i.error)||re(),Ts(t,o,i.error);if(i.status===`redirected`)throw ge(i.error)||re(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),Ms=B.memo(function(){let e=D(),t=B.useContext(_e),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=A(a,e=>[e?.routeId,e?.globalNotFound??!1],Ds),i=A(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,V.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||re(),Ts(e,a,void 0);if(!i)return null;let s=(0,V.jsx)(Os,{matchId:i});return n===`__root__`?(0,V.jsx)(B.Suspense,{fallback:o,children:s}):s});function Ns(){let e=D(),t=B.useRef({router:e,mounted:!1}),[n,r]=B.useState(!1),i=A(e.stores.isLoading,e=>e),a=A(e.stores.hasPending,e=>e),o=C(i),s=i||n||a,c=C(s),l=i||a,u=C(l);return e.startTransition=e=>{r(!0),B.startTransition(()=>{e(),r(!1)})},B.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 j(e.latestLocation.publicHref)!==j(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),se(()=>{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]),se(()=>{o&&!i&&e.emit({type:`onLoad`,...Rt(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),se(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...Rt(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),se(()=>{if(c&&!s){let t=Rt(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),es(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function Ps(){let e=D(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,V.jsx)(t,{}):null,r=(0,V.jsxs)(typeof document<`u`&&e.ssr?ws:B.Suspense,{fallback:n,children:[(0,V.jsx)(Ns,{}),(0,V.jsx)(Fs,{})]});return e.options.InnerWrap?(0,V.jsx)(e.options.InnerWrap,{children:r}):r}function Fs(){let e=D(),t=A(e.stores.firstId,e=>e),n=A(e.stores.loadedAt,e=>e),r=t?(0,V.jsx)(Os,{matchId:t}):null;return(0,V.jsx)(_e.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,V.jsx)(Lo,{getResetKey:()=>n,errorComponent:zo,onCatch:void 0,children:r})})}var Is=e=>({createMutableStore:rs,createReadonlyStore:rs,batch:es}),Ls=e=>new Rs(e),Rs=class extends zt{constructor(e){super(e,Is)}};function zs({router:e,children:t,...n}
12){h(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,V.jsx)(O.Provider,{value:e,children:t});return e.options.Wrap?(0,V.jsx)(e.options.Wrap,{children:r}):r}function Bs({router:e,...t}){return(0,V.jsx)(zs,{router:e,...t,children:(0,V.jsx)(Ps,{})})}function Vs(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 Hs(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,V.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,V.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,V.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,V.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,V.jsx)(Us,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function Us({attrs:e,children:t,preventScriptHoist:n}){D();let r=x(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(B.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 Vs(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,Vs(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,V.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,V.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,V.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var Ws=e=>{let t=D(),n=t.options.ssr?.nonce,r=A(t.stores.matches,e=>e.map(e=>e.meta).filter(e=>e!==void 0),m),i=B.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:c(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=A(t.stores.matches,e=>e.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:n}})),m),o=A(t.stores.matches,r=>{let i=t.ssr?.manifest,a=[];return i?(r.forEach(t=>{i.routes[t.routeId]?.css?.forEach(t=>{let r=nn(t);a.push({tag:`link`,attrs:{rel:`stylesheet`,...r,crossOrigin:Zt(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},m),s=A(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:{...$t(a,t,e),nonce:n}})})}),i},m),l=A(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})),m),u=A(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})),m),d=[];return tn(d,i),d.push(...s),tn(d,a),d.push(...o),tn(d,l),tn(d,u),d};function Gs(e){let t=Ws(e.assetCrossOrigin),n=D().options.ssr?.nonce;return(0,V.jsx)(V.Fragment,{children:t.map(e=>(0,B.createElement)(Hs,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var Ks=()=>{let e=D(),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=A(e.stores.matches,n,m);return qs(e,A(e.stores.matches,r,m),i)};function qs(e,t,n){let r=[...t,...n];return(0,V.jsx)(V.Fragment,{children:r.map((e,t)=>(0,B.createElement)(Hs,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var Js=(e,t)=>{let n={type:`request`,...t||e},r=e=>Js({},Object.assign(n,{validator:e,inputValidator:e}));return{options:n,middleware:e=>Js({},Object.assign(n,{middleware:e})),validator:r,inputValidator:r,client:e=>Js({},Object.assign(n,{client:e})),server:e=>Js({},Object.assign(n,{server:e}))}};function Ys(e,t){for(let n=0,r=t.length;n<r;n++){let r=t[n];e.has(r)||(e.add(r),r.extends&&Ys(e,r.extends))}}var Xs=e=>({getOptions:async()=>{let t=await e();if(t.serializationAdapters){let e=new Set;Ys(e,t.serializationAdapters),t.serializationAdapters=Array.from(e)}return t},createMiddleware:Js}),Zs=Symbol.for(`@supabase/supabase-js.traceContextExtractor`);function Qs(){return globalThis[Zs]}var $s=function(){return $s=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},$s.apply(this,arguments)};function ec(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 tc(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function nc(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 rc=e=>e?(...t)=>e(...t):(...e)=>fetch(...e),ic=class extends Error{constructor(e,t=`FunctionsError`,n){super(e),this.name=t,this.context=n}toJSON(){return{name:this.name,message:this.message,context:this.context}}},ac=class extends ic{constructor(e){super(`Failed to send a request to the Edge Function`,`FunctionsFetchError`,e)}},oc=class extends ic{constructor(e){super(`Relay Error invoking the Edge Function`,`FunctionsRelayError`,e)}},sc=class extends ic{constructor(e){super(`Edge Function returned a non-2xx status code`,`FunctionsHttpError`,e)}},cc;(function(e){e.Any=`any`,e.ApNortheast1=`ap-northeast-1`,e.ApNortheast2=`ap-northeast-2`,e.ApSouth1=`ap-south-1`,e.ApSoutheast1=`ap-southeast-1`,e.ApSoutheast2=`ap-southeast-2`,e.CaCentral1=`ca-central-1`,e.EuCentral1=`eu-central-1`,e.EuWest1=`eu-west-1`,e.EuWest2=`eu-west-2`,e.EuWest3=`eu-west-3`,e.SaEast1=`sa-east-1`,e.UsEast1=`us-east-1`,e.UsWest1=`us-west-1`,e.UsWest2=`us-west-2`})(cc||={});var lc=class{constructor(e,{headers:t={},customFetch:n,region:r=cc.Any}={}){this.url=e,this.headers=t,this.region=r,this.fetch=rc(n)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){return tc(this,arguments,void 0,function*(e,t={}){var n;let r,i,a;try{let{headers:n,method:o,body:s,signal:c,timeout:l}=t,u={},{region:d}=t;d||=this.region;let f=new URL(`${this.url}/${e}`);d&&d!==`any`&&(u[`x-region`]=d,f.searchParams.set(`forceFunctionRegion`,d));let p,m=!!n&&Object.keys(n).some(e=>e.toLowerCase()===`content-type`);s&&!m?typeof Blob<`u`&&s instanceof Blob||s instanceof ArrayBuffer?(u[`Content-Type`]=`application/octet-stream`,p=s):typeof s==`string`?(u[`Content-Type`]=`text/plain`,p=s):typeof FormData<`u`&&s instanceof FormData?p=s:(u[`Content-Type`]=`application/json`,p=JSON.stringify(s)):p=s&&typeof s!=`string`&&!(typeof Blob<`u`&&s instanceof Blob)&&!(s instanceof ArrayBuffer)&&!(typeof FormData<`u`&&s instanceof FormData)?JSON.stringify(s):s;let h=c;l&&(i=new AbortController,r=setTimeout(()=>i.abort(),l),c?(h=i.signal,a=()=>i.abort(),c.addEventListener(`abort`,a)):h=i.signal);let g=yield this.fetch(f.toString(),{method:o||`POST`,headers:Object.assign(Object.assign(Object.assign({},u),this.headers),n),body:p,signal:h}).catch(e=>{throw new ac(e)}),_=g.headers.get(`x-relay-error`);if(_&&_===`true`)throw new oc(g);if(!g.ok)throw new sc(g);let v=(g.headers.get(`Content-Type`)??`text/plain`).split(`;`)[0].trim().toLowerCase(),y;return y=v===`application/json`?yield g.json():v===`application/octet-stream`||v===`application/pdf`?yield g.blob():v===`text/event-stream`?g:v===`multipart/form-data`?yield g.formData():yield g.text(),{data:y,error:null,response:g}}catch(e){return{data:null,error:e,response:e instanceof sc||e instanceof oc?e.context:void 0}}finally{r&&clearTimeout(r),a&&((n=t.signal)==null||n.removeEventListener(`abort`,a))}})}}
vendor: 16,044 bytes, line 12
12,uc=class extends Error{constructor(e){super(e.message),this.name=`PostgrestError`,this.details=e.details,this.hint=e.hint,this.code=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}},dc=3,fc=e=>Math.min(1e3*2**e,3e4),pc=[520,503],mc=[`GET`,`HEAD`,`OPTIONS`];function hc(e){"@babel/helpers - typeof";return hc=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},hc(e)}function gc(e,t){if(hc(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(hc(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function _c(e){var t=gc(e,`string`);return hc(t)==`symbol`?t:t+``}function vc(e,t,n){return(t=_c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yc(Object(n),!0).forEach(function(t){vc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xc(e,t){return new Promise(n=>{if(t?.aborted){n();return}let r=setTimeout(()=>{t?.removeEventListener(`abort`,i),n()},e);function i(){clearTimeout(r),n()}t?.addEventListener(`abort`,i)})}function Sc(e,t,n,r){return!(!r||n>=dc||!mc.includes(e)||!pc.includes(t))}async function Cc(e,t,n,r){let i=0;for(;;){let a=bc({},n.headers);i>0&&(a[`X-Retry-Count`]=String(i));let o;try{o=await e(t,{method:n.method,headers:a,body:n.body,signal:n.signal})}catch(e){if(e?.name===`AbortError`||e?.code===`ABORT_ERR`||!mc.includes(n.method))throw e;if(r&&i<dc){let e=fc(i);i++,await xc(e,n.signal);continue}throw e}if(Sc(n.method,o.status,i,r)){let e=o.headers?.get(`Retry-After`)??null,t=e===null?fc(i):Math.max(0,parseInt(e,10)||0)*1e3;await o.text(),i++,await xc(t,n.signal);continue}return o}}var wc=class{constructor(e){this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=e.shouldThrowOnError??!1,this.signal=e.signal,this.isMaybeSingle=e.isMaybeSingle??!1,this.shouldStripNulls=e.shouldStripNulls??!1,this.urlLengthLimit=e.urlLengthLimit??8e3,this.retryEnabled=e.retry??!0,this.fetch=e.fetch?e.fetch:fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get(`Accept`)===`text/csv`)throw Error(`stripNulls() cannot be used with csv()`);return this.shouldStripNulls=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}retry(e){return this.retryEnabled=e,this}then(e,t){var n=this;if(this.schema===void 0||([`GET`,`HEAD`].includes(this.method)?this.headers.set(`Accept-Profile`,this.schema):this.headers.set(`Content-Profile`,this.schema)),this.method!==`GET`&&this.method!==`HEAD`&&this.headers.set(`Content-Type`,`application/json`),this.shouldStripNulls){let e=this.headers.get(`Accept`);e===`application/vnd.pgrst.object+json`?this.headers.set(`Accept`,`application/vnd.pgrst.object+json;nulls=stripped`):(!e||e===`application/json`)&&this.headers.set(`Accept`,`application/vnd.pgrst.array+json;nulls=stripped`)}let r=this.fetch,i=(async()=>{let e={};n.headers.forEach((t,n)=>{e[n]=t});let t=await Cc(r,n.url.toString(),{method:n.method,headers:e,body:JSON.stringify(n.body,(e,t)=>typeof t==`bigint`?t.toString():t),signal:n.signal},n.retryEnabled);return await n.processResponse(t)})();return this.shouldThrowOnError||(i=i.catch(e=>{let t=``,n=``,r=``,i=e?.cause;if(i){let n=i?.message??``,r=i?.code??``;t=`${e?.name??`FetchError`}: ${e?.message}`,t+=`\n\nCaused by: ${i?.name??`Error`}: ${n}`,r&&(t+=` (${r})`),i?.stack&&(t+=`\n${i.stack}`)}else t=e?.stack??``;let a=this.url.toString().length;return e?.name===`AbortError`||e?.code===`ABORT_ERR`?(r=``,n=`Request was aborted (timeout or manual cancellation)`,a>this.urlLengthLimit&&(n+=`. Note: Your request URL is ${a} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):(i?.name===`HeadersOverflowError`||i?.code===`UND_ERR_HEADERS_OVERFLOW`)&&(r=``,n=`HTTP headers exceeded server limits (typically 16KB)`,a>this.urlLengthLimit&&(n+=`. Your request URL is ${a} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${e?.name??`FetchError`}: ${e?.message}`,details:t,hint:n,code:r},data:null,count:null,status:0,statusText:``}})),i.then(e,t)}async processResponse(e){var t=this;let n=null,r=null,i=null,a=e.status,o=e.statusText;if(e.ok){if(t.method!==`HEAD`){let i=await e.text();if(i!==``)if(t.headers.get(`Accept`)===`text/csv`)r=i;else if(t.headers.get(`Accept`)&&t.headers.get(`Accept`)?.includes(`application/vnd.pgrst.plan+text`))r=i;else try{r=JSON.parse(i)}catch{if(n={message:i},r=null,t.shouldThrowOnError)throw new uc({message:i,details:``,hint:``,code:``})}}let s=t.headers.get(`Prefer`)?.match(/count=(exact|planned|estimated)/),c=e.headers.get(`content-range`)?.split(`/`);if(s&&c&&c.length>1&&(i=parseInt(c[1])),t.isMaybeSingle&&Array.isArray(r))if(r.length>1){if(n={code:`PGRST116`,details:`Results contain ${r.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:`JSON object requested, multiple (or no) rows returned`},r=null,i=null,a=406,o=`Not Acceptable`,t.shouldThrowOnError)throw new uc(bc(bc({},n),{},{hint:n.hint??``}))}else r=r.length===1?r[0]:null}else{let i=await e.text();try{n=JSON.parse(i),Array.isArray(n)&&e.status===404&&(r=[],n=null,a=200,o=`OK`)}catch{e.status===404&&i===``?(a=204,o=`No Content`):n={message:i}}if(n&&t.shouldThrowOnError)throw new uc(n)}return{success:n===null,error:n,data:r,count:i,status:a,statusText:o}}returns(){return this}overrideTypes(){return this}},Tc=class extends wc{throwOnError(){return super.throwOnError()}select(e){let t=!1,n=(e??`*`).split(``).map(e=>/\s/.test(e)&&!t?``:(e===`"`&&(t=!t),e)).join(``);return this.url.searchParams.set(`select`,n),this.headers.append(`Prefer`,`return=representation`),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:i=r}={}){let a=i?`${i}.order`:`order`,o=this.url.searchParams.get(a);return this.url.searchParams.set(a,`${o?`${o},`:``}${e}.${t?`asc`:`desc`}${n===void 0?``:n?`.nullsfirst`:`.nullslast`}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){let r=n===void 0?`limit`:`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){let i=r===void 0?`offset`:`${r}.offset`,a=r===void 0?`limit`:`${r}.limit`;return this.url.searchParams.set(i,`${e}`),this.url.searchParams.set(a,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set(`Accept`,`application/vnd.pgrst.object+json`),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set(`Accept`,`text/csv`),this}geojson(){return this.headers.set(`Accept`,`application/geo+json`),this}explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:i=!1,format:a=`text`}={}){let o=[e?`analyze`:null,t?`verbose`:null,n?`settings`:null,r?`buffers`:null,i?`wal`:null].filter(Boolean).join(`|`),s=this.headers.get(`Accept`)??`application/json`;return this.headers.set(`Accept`,`application/vnd.pgrst.plan+${a}; for="${s}"; options=${o};`),this}rollback(){return this.headers.append(`Prefer`,`tx=rollback`),this}returns(){return this}maxAffected(e){return this.headers.append(`Prefer`,`handling=strict`),this.headers.append(`Prefer`,`max-affected=${e}`),this}},Ec=RegExp(`[,()]`),Dc=class extends Tc{throwOnError(){return super.throwOnError()}eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(`,`)}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(`,`)}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(`,`)}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(`,`)}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){let n=Array.from(new Set(t)).map(e=>typeof e==`string`&&Ec.test(e)?`"${e}"`:`${e}`).join(`,`);return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){let n=Array.from(new Set(t)).map(e=>typeof e==`string`&&Ec.test(e)?`"${e}"`:`${e}`).join(`,`);return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return typeof t==`string`?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(`,`)}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t==`string`?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(`,`)}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t==`string`?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(`,`)}}`),this}textSearch(e,t,{config:n,type:r}={}){let i=``;r===`plain`?i=`pl`:r===`phrase`?i=`ph`:r===`websearch`&&(i=`w`);let a=n===void 0?``:`(${n})`;return this.url.searchParams.append(e,`${i}fts${a}.${t}`),this}match(e){return Object.entries(e).filter(([e,t])=>t!==void 0).forEach(([e,t])=>{this.url.searchParams.append(e,`eq.${t}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){let r=n?`${n}.or`:`or`;return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},Oc=class{constructor(e,{headers:t={},schema:n,fetch:r,urlLengthLimit:i=8e3,retry:a}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r,this.urlLengthLimit=i,this.retry=a}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){let{head:n=!1,count:r}=t??{},i=n?`HEAD`:`GET`,a=!1,o=(e??`*`).split(``).map(e=>/\s/.test(e)&&!a?``:(e===`"`&&(a=!a),e)).join(``),{url:s,headers:c}=this.cloneRequestState();return s.searchParams.set(`select`,o),r&&c.append(`Prefer`,`count=${r}`),new Dc({method:i,url:s,headers:c,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(e,{count:t,defaultToNull:n=!0}={}){let{url:r,headers:i}=this.cloneRequestState();if(t&&i.append(`Prefer`,`count=${t}`),n||i.append(`Prefer`,`missing=default`),Array.isArray(e)){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]);if(t.length>0){let e=[...new Set(t)].map(e=>`"${e}"`);r.searchParams.set(`columns`,e.join(`,`))}}return new Dc({method:`POST`,url:r,headers:i,schema:this.schema,body:e,fetch:this.fetch??fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:i=!0}={}){let{url:a,headers:o}=this.cloneRequestState();if(o.append(`Prefer`,`resolution=${n?`ignore`:`merge`}-duplicates`),t!==void 0&&a.searchParams.set(`on_conflict`,t),r&&o.append(`Prefer`,`count=${r}`),i||o.append(`Prefer`,`missing=default`),Array.isArray(e)){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]);if(t.length>0){let e=[...new Set(t)].map(e=>`"${e}"`);a.searchParams.set(`columns`,e.join(`,`))}}return new Dc({method:`POST`,url:a,headers:o,schema:this.schema,body:e,fetch:this.fetch??fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(e,{count:t}={}){let{url:n,headers:r}=this.cloneRequestState();return t&&r.append(`Prefer`,`count=${t}`),new Dc({method:`PATCH`,url:n,headers:r,schema:this.schema,body:e,fetch:this.fetch??fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:e}={}){let{url:t,headers:n}=this.cloneRequestState();return e&&n.append(`Prefer`,`count=${e}`),new Dc({method:`DELETE`,url:t,headers:n,schema:this.schema,fetch:this.fetch??fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function kc(e,t){try{let t=JSON.parse(e);if(t&&typeof t==`object`&&!Array.isArray(t))return new uc({message:String(t.message??e),details:t.details??``,hint:t.hint??``,code:t.code??``})}catch{}return new uc({message:e||t,details:``,hint:``,code:``})}function Ac(e,t,n){let r=e;return{success:!1,error:new uc({message:`${r?.name??`FetchError`}: ${r?.message}`,details:``,hint:``,code:``}),data:null,count:null,status:t,statusText:n}}var jc=class e{constructor(e,{headers:t={},schema:n,fetch:r,timeout:i,urlLengthLimit:a=8e3,retry:o}={}){this.url=e,this.headers=new Headers(t),this.schemaName=n,this.urlLengthLimit=a;let s=r??globalThis.fetch;this.fetch=i!==void 0&&i>0?(e,t)=>{let n=new AbortController,r=setTimeout(()=>n.abort(),i),a=t?.signal;if(a){if(a.aborted)return clearTimeout(r),s(e,t);let i=()=>{clearTimeout(r),n.abort()};return a.addEventListener(`abort`,i,{once:!0}),s(e,bc(bc({},t),{},{signal:n.signal})).finally(()=>{clearTimeout(r),a.removeEventListener(`abort`,i)})}return s(e,bc(bc({},t),{},{signal:n.signal})).finally(()=>clearTimeout(r))}:s,this.retry=o}from(e){if(!e||typeof e!=`string`||e.trim()===``)throw Error(`Invalid relation name: relation must be a non-empty string.`);return new Oc(new URL(`${this.url}/${e}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(t){return new e(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}async getOpenApiSpec(){var e=this;let t=new Headers(e.headers);t.set(`Accept`,`application/openapi+json`),e.schemaName&&t.set(`Accept-Profile`,e.schemaName);let n={};t.forEach((e,t)=>{n[t]=e});let r=e.fetch??globalThis.fetch,i;try{i=await Cc(r,`${e.url}/`,{method:`GET`,headers:n},e.retry??!0)}catch(e){return Ac(e,0,``)}let a;try{a=await i.text()}catch(e){return Ac(e,i.status,i.statusText)}if(i.ok)try{return{success:!0,error:null,data:JSON.parse(a),count:null,status:i.status,statusText:i.statusText}}catch{}return{success:!1,error:kc(a,i.statusText),data:null,count:null,status:i.status,statusText:i.statusText}}rpc(e,t={},{head:n=!1,get:r=!1,count:i}={}){let a,o=new URL(`${this.url}/rpc/${e}`),s,c=e=>typeof e==`object`&&!!e&&(!Array.isArray(e)||e.some(c)),l=n&&Object.values(t).some(c);l?(a=`POST`,s=t):n||r?(a=n?`HEAD`:`GET`,Object.entries(t).filter(([e,t])=>t!==void 0).map(([e,t])=>[e,Array.isArray(t)?`{${t.join(`,`)}}`:`${t}
12`]).forEach(([e,t])=>{o.searchParams.append(e,t)})):(a=`POST`,s=t);let u=new Headers(this.headers);return l?u.set(`Prefer`,i?`count=${i},return=minimal`:`return=minimal`):i&&u.set(`Prefer`,`count=${i}`),new Dc({method:a,url:o,headers:u,schema:this.schemaName,body:s,fetch:this.fetch??fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}},Mc=class{constructor(){}static detectEnvironment(){if(typeof WebSocket<`u`)return{type:`native`,wsConstructor:WebSocket};let e=globalThis;if(typeof globalThis<`u`&&e.WebSocket!==void 0)return{type:`native`,wsConstructor:e.WebSocket};let t=typeof global<`u`?global:void 0;if(t&&t.WebSocket!==void 0)return{type:`native`,wsConstructor:t.WebSocket};if(typeof globalThis<`u`&&e.WebSocketPair!==void 0&&globalThis.WebSocket===void 0)return{type:`cloudflare`,error:`Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.`,workaround:`Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime.`};if(typeof globalThis<`u`&&e.EdgeRuntime||typeof navigator<`u`&&navigator.userAgent?.includes(`Vercel-Edge`))return{type:`unsupported`,error:`Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.`,workaround:`Use serverless functions or a different deployment target for WebSocket functionality.`};let n=globalThis.process;if(n){let e=n.versions;if(e&&e.node)return{type:`unsupported`,error:`Node.js detected but native WebSocket not found.`,workaround:`Ensure you are running Node.js 22+ or provide a WebSocket implementation via the transport option.`}}return{type:`unsupported`,error:`Unknown JavaScript runtime without WebSocket support.`,workaround:`Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation.`}}static getWebSocketConstructor(){let e=this.detectEnvironment();if(e.wsConstructor)return e.wsConstructor;let t=e.error||`WebSocket not supported in this environment.`;throw e.workaround&&(t+=`\n\nSuggested solution: ${e.workaround}`),Error(t)}static isWebSocketSupported(){try{return this.detectEnvironment().type===`native`}catch{return!1}}},Nc=`realtime-js/2.116.0`,Pc=`1.0.0`,Fc=`2.0.0`,Ic=Fc,Lc=1e4,Rc=15e3,zc=1e4,Bc={closed:`closed`,errored:`errored`,joined:`joined`,joining:`joining`,leaving:`leaving`},Vc={close:`phx_close`,error:`phx_error`,join:`phx_join`,reply:`phx_reply`,leave:`phx_leave`,access_token:`access_token`},Hc={connecting:`connecting`,open:`open`,closing:`closing`,closed:`closed`},Uc=class{constructor(e){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT=`broadcast`,this.allowedMetadataKeys=[],this.allowedMetadataKeys=e??[]}encode(e,t){if(e.event===this.BROADCAST_EVENT&&!(e.payload instanceof ArrayBuffer)&&typeof e.payload.event==`string`)return t(this._binaryEncodeUserBroadcastPush(e));let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}_binaryEncodeUserBroadcastPush(e){return this._isArrayBuffer(e.payload?.payload)?this._encodeBinaryUserBroadcastPush(e):this._encodeJsonUserBroadcastPush(e)}_encodeBinaryUserBroadcastPush(e){let t=e.payload?.payload??new ArrayBuffer(0);return this._encodeUserBroadcastPush(e,this.BINARY_ENCODING,t)}_encodeJsonUserBroadcastPush(e){let t=e.payload?.payload??{},n=new TextEncoder().encode(JSON.stringify(t)).buffer;return this._encodeUserBroadcastPush(e,this.JSON_ENCODING,n)}_encodeUserBroadcastPush(e,t,n){let r=new TextEncoder,i=r.encode(e.topic),a=r.encode(e.ref??``),o=r.encode(e.join_ref??``),s=r.encode(e.payload.event),c=this.allowedMetadataKeys?this._pick(e.payload,this.allowedMetadataKeys):{},l=r.encode(Object.keys(c).length===0?``:JSON.stringify(c));if(o.length>255)throw Error(`joinRef length ${o.length} exceeds maximum of 255`);if(a.length>255)throw Error(`ref length ${a.length} exceeds maximum of 255`);if(i.length>255)throw Error(`topic length ${i.length} exceeds maximum of 255`);if(s.length>255)throw Error(`userEvent length ${s.length} exceeds maximum of 255`);if(l.length>255)throw Error(`metadata length ${l.length} exceeds maximum of 255`);let u=this.USER_BROADCAST_PUSH_META_LENGTH+o.length+a.length+i.length+s.length+l.length,d=new ArrayBuffer(this.HEADER_LENGTH+u),f=new DataView(d),p=new Uint8Array(d),m=0;f.setUint8(m++,this.KINDS.userBroadcastPush),f.setUint8(m++,o.length),f.setUint8(m++,a.length),f.setUint8(m++,i.length),f.setUint8(m++,s.length),f.setUint8(m++,l.length),f.setUint8(m++,t),p.set(o,m),m+=o.length,p.set(a,m),m+=a.length,p.set(i,m),m+=i.length,p.set(s,m),m+=s.length,p.set(l,m),m+=l.length;var h=new Uint8Array(d.byteLength+n.byteLength);return h.set(new Uint8Array(d),0),h.set(new Uint8Array(n),d.byteLength),h.buffer}decode(e,t){if(this._isArrayBuffer(e))return t(this._binaryDecode(e));if(typeof e==`string`){let[n,r,i,a,o]=JSON.parse(e);return t({join_ref:n,ref:r,topic:i,event:a,payload:o})}return t({})}_binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(e,t,r)}}_decodeUserBroadcast(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=t.getUint8(4),s=this.HEADER_LENGTH+4,c=n.decode(e.slice(s,s+r));s+=r;let l=n.decode(e.slice(s,s+i));s+=i;let u=n.decode(e.slice(s,s+a));s+=a;let d=e.slice(s,e.byteLength),f=o===this.JSON_ENCODING?JSON.parse(n.decode(d)):d,p={type:this.BROADCAST_EVENT,event:l,payload:f};return a>0&&(p.meta=JSON.parse(u)),{join_ref:null,ref:null,topic:c,event:this.BROADCAST_EVENT,payload:p}}_isArrayBuffer(e){return e instanceof ArrayBuffer||e?.constructor?.name===`ArrayBuffer`}_pick(e,t){return!e||typeof e!=`object`?{}:Object.fromEntries(Object.entries(e).filter(([e])=>t.includes(e)))}},Wc;(function(e){e.abstime=`abstime`,e.bool=`bool`,e.date=`date`,e.daterange=`daterange`,e.float4=`float4`,e.float8=`float8`,e.int2=`int2`,e.int4=`int4`,e.int4range=`int4range`,e.int8=`int8`,e.int8range=`int8range`,e.json=`json`,e.jsonb=`jsonb`,e.money=`money`,e.numeric=`numeric`,e.oid=`oid`,e.reltime=`reltime`,e.text=`text`,e.time=`time`,e.timestamp=`timestamp`,e.timestamptz=`timestamptz`,e.timetz=`timetz`,e.tsrange=`tsrange`,e.tstzrange=`tstzrange`})(Wc||={});var Gc=(e,t,n={})=>{let r=n.skipTypes??[];return t?Object.keys(t).reduce((n,i)=>(n[i]=Kc(i,e,t,r),n),{}):{}},Kc=(e,t,n,r)=>{let i=t.find(t=>t.name===e)?.type,a=n[e];return i&&!r.includes(i)?qc(i,a):Jc(a)},qc=(e,t)=>{if(e.charAt(0)===`_`)return Qc(t,e.slice(1,e.length));switch(e){case Wc.bool:return Yc(t);case Wc.float4:case Wc.float8:case Wc.int2:case Wc.int4:case Wc.int8:case Wc.numeric:case Wc.oid:return Xc(t);case Wc.json:case Wc.jsonb:return Zc(t);case Wc.timestamp:return $c(t);case Wc.abstime:case Wc.date:case Wc.daterange:case Wc.int4range:case Wc.int8range:case Wc.money:case Wc.reltime:case Wc.text:case Wc.time:case Wc.timestamptz:case Wc.timetz:case Wc.tsrange:case Wc.tstzrange:return Jc(t);default:return Jc(t)}},Jc=e=>e,Yc=e=>{switch(e){case`t`:return!0;case`f`:return!1;default:return e}},Xc=e=>{if(typeof e==`string`){let t=parseFloat(e);
vendor: 19,250 bytes, lines 12-13
12if(!Number.isNaN(t))return t}return e},Zc=e=>{if(typeof e==`string`)try{return JSON.parse(e)}catch{return e}return e},Qc=(e,t)=>{if(typeof e!=`string`)return e;let n=e.length-1,r=e[n];if(e[0]===`{`&&r===`}`){let r,i=e.slice(1,n);try{r=JSON.parse(`[`+i+`]`)}catch{r=i?i.split(`,`):[]}return r.map(e=>qc(t,e))}return e},$c=e=>typeof e==`string`?e.replace(` `,`T`):e,el=e=>{let t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,`http`),t.pathname=t.pathname.replace(/\/+$/,``).replace(/\/socket\/websocket$/i,``).replace(/\/socket$/i,``).replace(/\/websocket$/i,``),t.pathname===``||t.pathname===`/`?t.pathname=`/api/broadcast`:t.pathname+=`/api/broadcast`,t.href},tl=e=>typeof e==`function`?e:function(){return e},nl=typeof self<`u`?self:null,rl=typeof window<`u`?window:null,il=nl||rl||globalThis,al=`2.0.0`,ol=1e4,sl=1e3,cl=100,ll={connecting:0,open:1,closing:2,closed:3},ul={closed:`closed`,errored:`errored`,joined:`joined`,joining:`joining`,leaving:`leaving`},dl={close:`phx_close`,error:`phx_error`,join:`phx_join`,reply:`phx_reply`,leave:`phx_leave`},fl={longpoll:`longpoll`,websocket:`websocket`},pl={complete:4},ml=`base64url.bearer.phx.`,hl=class{constructor(e,t,n,r){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHooks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived(`timeout`)||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:e,response:t,_ref:n}){this.recHooks.filter(t=>t.status===e).forEach(e=>e.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger(`timeout`,{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},gl=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries+=1,this.callback()},this.timerCalc(this.tries+1))}},_l=class{constructor(e,t,n){this.state=ul.closed,this.topic=e,this.params=tl(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new hl(this,dl.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new gl(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive(`ok`,()=>{this.state=ul.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(e=>e.send()),this.pushBuffer=[]}),this.joinPush.receive(`error`,e=>{this.state=ul.errored,this.socket.hasLogger()&&this.socket.log(`channel`,`error ${this.topic}`,e),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log(`channel`,`close ${this.topic}`),this.state=ul.closed,this.socket.remove(this)}),this.onError(e=>{this.socket.hasLogger()&&this.socket.log(`channel`,`error ${this.topic}`,e),this.isJoining()&&this.joinPush.reset(),this.state=ul.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive(`timeout`,()=>{this.socket.hasLogger()&&this.socket.log(`channel`,`timeout ${this.topic}`,this.joinPush.timeout),new hl(this,dl.leave,tl({}),this.timeout).send(),this.state=ul.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(dl.reply,(e,t)=>{this.trigger(this.replyEventName(t),e)})}join(e=this.timeout){if(this.joinedOnce)throw Error(`tried to join multiple times. 'join' can only be called a single time per channel instance`);return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=ul.closed,this.bindings=[]}onClose(e){this.on(dl.close,e)}onError(e){return this.on(dl.error,t=>e(t))}on(e,t){let n=this.bindingRef++;return this.bindings.push({event:e,ref:n,callback:t}),n}off(e,t){this.bindings=this.bindings.filter(n=>n.event!==e||t!==void 0&&t!==n.ref)}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,n=this.timeout){if(t||={},!this.joinedOnce)throw Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new hl(this,e,function(){return t},n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=ul.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log(`channel`,`leave ${this.topic}`),this.trigger(dl.close,`leave`)},n=new hl(this,dl.leave,tl({}),e);return n.receive(`ok`,()=>t()).receive(`timeout`,()=>t()),n.send(),this.canPush()||n.trigger(`ok`,{}),n}onMessage(e,t,n){return t}filterBindings(e,t,n){return!0}isMember(e,t,n,r){return this.topic===e?r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log(`channel`,`dropping outdated message`,{topic:e,event:t,payload:n,joinRef:r}),!1):!0:!1}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=ul.joining,this.joinPush.resend(e))}trigger(e,t,n,r){let i=this.onMessage(e,t,n,r);if(t&&!i)throw Error(`channel onMessage callbacks must return the payload, modified or unmodified`);let a=this.bindings.filter(r=>r.event===e&&this.filterBindings(r,t,n));for(let e=0;e<a.length;e++)a[e].callback(i,n,r||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===ul.closed}isErrored(){return this.state===ul.errored}isJoined(){return this.state===ul.joined}isJoining(){return this.state===ul.joining}isLeaving(){return this.state===ul.leaving}},vl=class{static request(e,t,n,r,i,a,o){if(il.XDomainRequest){let n=new il.XDomainRequest;return this.xdomainRequest(n,e,t,r,i,a,o)}if(il.XMLHttpRequest){let s=new il.XMLHttpRequest;return this.xhrRequest(s,e,t,n,r,i,a,o)}if(il.fetch&&il.AbortController)return this.fetchRequest(e,t,n,r,i,a,o);throw Error(`No suitable XMLHttpRequest implementation found`)}static fetchRequest(e,t,n,r,i,a,o){let s={method:e,headers:n,body:r},c=null;return i&&(c=new AbortController,setTimeout(()=>c.abort(),i),s.signal=c.signal),il.fetch(t,s).then(e=>e.text()).then(e=>this.parseJSON(e)).then(e=>o&&o(e)).catch(e=>{e.name===`AbortError`&&a?a():o&&o(null)}),c}static xdomainRequest(e,t,n,r,i,a,o){return e.timeout=i,e.open(t,n),e.onload=()=>{let t=this.parseJSON(e.responseText);o&&o(t)},a&&(e.ontimeout=a),e.onprogress=()=>{},e.send(r),e}static xhrRequest(e,t,n,r,i,a,o,s){e.open(t,n,!0),e.timeout=a;for(let[t,n]of Object.entries(r))e.setRequestHeader(t,n);return e.onerror=()=>s&&s(null),e.onreadystatechange=()=>{e.readyState===pl.complete&&s&&s(this.parseJSON(e.responseText))},o&&(e.ontimeout=o),e.send(i),e}static parseJSON(e){if(!e||e===``)return null;try{return JSON.parse(e)}catch{return console&&console.log(`failed to parse JSON response`,e),null}}static serialize(e,t){let n=[];for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=t?`${t}[${r}]`:r,a=e[r];typeof a==`object`?n.push(this.serialize(a,i)):n.push(encodeURIComponent(i)+`=`+encodeURIComponent(a))}return n.join(`&`)}static appendParams(e,t){return Object.keys(t).length===0?e:`${e}${e.match(/\?/)?`&`:`?`}${this.serialize(t)}`}},yl=e=>{let t=``,n=new Uint8Array(e),r=n.byteLength;for(let e=0;e<r;e++)t+=String.fromCharCode(n[e]);return btoa(t)},bl=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(ml)&&(this.authToken=atob(t[1].slice(ml.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=ll.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace(`ws://`,`http://`).replace(`wss://`,`https://`).replace(RegExp(`(.*)/`+fl.websocket),`$1/`+fl.longpoll)}endpointURL(){return vl.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=ll.connecting}ontimeout(){this.onerror(`timeout`),this.closeAndRetry(1005,`timeout`,!1)}isActive(){return this.readyState===ll.open||this.readyState===ll.connecting}poll(){let e={Accept:`application/json`};this.authToken&&(e[`X-Phoenix-AuthToken`]=this.authToken),this.ajax(`GET`,e,null,()=>this.ontimeout(),e=>{if(e){var{status:t,token:n,messages:r}=e;if(t===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,`session_gone`,!1);return}this.token=n}else t=0;switch(t){case 200:r.forEach(e=>{setTimeout(()=>this.onmessage({data:e}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=ll.open,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,`forbidden`,!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,`internal server error`,500);break;default:throw Error(`unhandled poll status ${t}`)}})}send(e){typeof e!=`string`&&(e=yl(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e,t=0){this.awaitingBatchAck=!0;let n=t+cl,r=e.slice(t,n);this.ajax(`POST`,{"Content-Type":`application/x-ndjson`},r.join(` 13`),()=>this.onerror(`timeout`),t=>{!t||t.status!==200?(this.awaitingBatchAck=!1,this.onerror(t&&t.status),this.closeAndRetry(1011,`internal server error`,!1)):n<e.length?this.batchSend(e,n):this.batchBuffer.length>0?(this.batchSend(this.batchBuffer),this.batchBuffer=[]):this.awaitingBatchAck=!1})}close(e,t,n){for(let e of this.reqs)e.abort();this.readyState=ll.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<`u`?this.onclose(new CloseEvent(`close`,r)):this.onclose(r)}ajax(e,t,n,r,i){let a;a=vl.request(e,this.endpointURL(),t,n,this.timeout,()=>{this.reqs.delete(a),r()},e=>{this.reqs.delete(a),this.isActive()&&i(e)}),this.reqs.add(a)}},xl=class e{constructor(t,n={}){let r=n.events||{state:`presence_state`,diff:`presence_diff`};this.state=Object.create(null),this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(r.state,t=>{let{onJoin:n,onLeave:r,onSync:i}=this.caller;this.joinRef=this.channel.joinRef(),this.state=e.syncState(this.state,t,n,r),this.pendingDiffs.forEach(t=>{this.state=e.syncDiff(this.state,t,n,r)}),this.pendingDiffs=[],i()}),this.channel.on(r.diff,t=>{let{onJoin:n,onLeave:r,onSync:i}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(t):(this.state=e.syncDiff(this.state,t,n,r),i())})}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}list(t){return e.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(e,t,n,r){let i=this.toNullProtoObj(this.clone(e));t=this.toNullProtoObj(t);let a=Object.create(null),o=Object.create(null);return this.map(i,(e,n)=>{t[e]||(o[e]=n)}),this.map(t,(e,t)=>{let n=i[e];if(n){let r=t.metas.map(e=>e.phx_ref),i=n.metas.map(e=>e.phx_ref),s=t.metas.filter(e=>i.indexOf(e.phx_ref)<0),c=n.metas.filter(e=>r.indexOf(e.phx_ref)<0);s.length>0&&(a[e]=t,a[e].metas=s),c.length>0&&(o[e]=this.clone(n),o[e].metas=c)}else a[e]=t}),this.syncDiff(i,{joins:a,leaves:o},n,r)}static syncDiff(e,t,n,r){e=this.toNullProtoObj(e);let{joins:i,leaves:a}=this.clone(t);return n||=function(){},r||=function(){},this.map(i,(t,r)=>{let i=e[t];if(e[t]=this.clone(r),i){let n=e[t].metas.map(e=>e.phx_ref),r=i.metas.filter(e=>n.indexOf(e.phx_ref)<0);e[t].metas.unshift(...r)}n(t,i,r)}),this.map(a,(t,n)=>{let i=e[t];if(!i)return;let a=n.metas.map(e=>e.phx_ref);i.metas=i.metas.filter(e=>a.indexOf(e.phx_ref)<0),r(t,i,n),i.metas.length===0&&delete e[t]}),e}static list(e,t){return t||=function(e,t){return t},this.map(e,(e,n)=>t(e,n))}static map(e,t){return Object.getOwnPropertyNames(e).map(n=>t(n,e[n]))}static toNullProtoObj(e){if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(n=>{t[n]=e[n]}),t}static clone(e){return JSON.parse(JSON.stringify(e))}},Sl={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,r,i,a,o]=JSON.parse(e);return t({join_ref:n,ref:r,topic:i,event:a,payload:o})}},binaryEncode(e){let{join_ref:t,ref:n,event:r,topic:i,payload:a}=e,o=new TextEncoder,s=o.encode(t),c=o.encode(n),l=o.encode(i),u=o.encode(r);this.assertFieldSize(s.byteLength,`join_ref`),this.assertFieldSize(c.byteLength,`ref`),this.assertFieldSize(l.byteLength,`topic`),this.assertFieldSize(u.byteLength,`event`);let d=this.META_LENGTH+s.byteLength+c.byteLength+l.byteLength+u.byteLength,f=new ArrayBuffer(this.HEADER_LENGTH+d),p=new Uint8Array(f),m=new DataView(f),h=0;m.setUint8(h++,this.KINDS.push),m.setUint8(h++,s.byteLength),m.setUint8(h++,c.byteLength),m.setUint8(h++,l.byteLength),m.setUint8(h++,u.byteLength),p.set(s,h),h+=s.byteLength,p.set(c,h),h+=c.byteLength,p.set(l,h),h+=l.byteLength,p.set(u,h),h+=u.byteLength;var g=new Uint8Array(f.byteLength+a.byteLength);return g.set(p,0),g.set(new Uint8Array(a),f.byteLength),g.buffer},assertFieldSize(e,t){if(e>255)throw Error(`unable to convert ${t} to binary: must be less than or equal to 255 bytes, but is ${e} bytes`)},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}},decodePush(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,s=n.decode(e.slice(o,o+r));o+=r;let c=n.decode(e.slice(o,o+i));o+=i;let l=n.decode(e.slice(o,o+a));return o+=a,{join_ref:s,ref:null,topic:c,event:l,payload:e.slice(o,e.byteLength)}},decodeReply(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=t.getUint8(4),s=this.HEADER_LENGTH+this.META_LENGTH,c=n.decode(e.slice(s,s+r));s+=r;let l=n.decode(e.slice(s,s+i));s+=i;let u=n.decode(e.slice(s,s+a));s+=a;let d=n.decode(e.slice(s,s+o));s+=o;let f={status:d,response:e.slice(s,e.byteLength)};return{join_ref:c,ref:l,topic:u,event:dl.reply,payload:f}},decodeBroadcast(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=this.HEADER_LENGTH+2,o=n.decode(e.slice(a,a+r));a+=r;let s=n.decode(e.slice(a,a+i));return a+=i,{join_ref:null,ref:null,topic:o,event:s,payload:e.slice(a,e.byteLength)}}},Cl=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||ol,this.transport=t.transport||il.WebSocket||bl,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null;let n=null;try{n=il&&il.sessionStorage}catch{}this.sessionStore=t.sessionStorage||n,this.establishedConnections=0,this.defaultEncoder=Sl.encode.bind(Sl),this.defaultDecoder=Sl.decode.bind(Sl),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||`arraybuffer`,this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport===bl?(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder):(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder);let r=null;rl&&rl.addEventListener&&(rl.addEventListener(`pagehide`,e=>{this.conn&&(this.disconnect(),r=this.connectClock)}),rl.addEventListener(`pageshow`,e=>{r===this.connectClock&&(r=null,this.connect())}),rl.addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=e=>t.rejoinAfterMs?t.rejoinAfterMs(e):[1e3,2e3,5e3][e-1]||1e4,this.reconnectAfterMs=e=>t.reconnectAfterMs?t.reconnectAfterMs(e):[10,50,100,150,200,250,500,1e3,2e3][e-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(e,t,n)=>{console.log(`${e}: ${t}`,n)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=tl(t.params||{}),this.endPoint=`${e}/${fl.websocket}`,this.vsn=t.vsn||al,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new gl(()=>{if(this.pageHidden){this.log(`Not reconnecting as page is hidden!`),this.teardown();return}this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken&&tl(t.authToken)}getLongPollTransport(){return bl}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&=(this.conn.close(),null),this.transport=e}protocol(){return location.protocol.match(/^https/)?`wss`:`ws`}endPointURL(){let e=vl.appendParams(vl.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)===`/`?e.charAt(1)===`/`?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`:e}disconnect(e,t,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,n)}connect(e){e&&(console&&console.log(`passing params to connect is deprecated. Instead pass :params to the Socket constructor`),this.params=tl(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==bl?this.connectWithF
vendor: 4,375 bytes, line 13
13allback(bl,this.longPollFallbackMs):this.transportConnect())}log(e,t,n){this.logger&&this.logger(e,t,n)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),n=Date.now();this.push({topic:`phoenix`,event:`heartbeat`,payload:{},ref:t});let r=this.onMessage(i=>{i.ref===t&&(this.off([r]),e(Date.now()-n))});return!0}transportName(e){switch(e){case bl:return`LongPoll`;default:return e.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=[`phoenix`,`${ml}${btoa(this.authToken()).replace(/=/g,``)}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=e=>this.onConnError(e),this.conn.onmessage=e=>this.onConnMessage(e),this.conn.onclose=e=>this.onConnClose(e)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let n=!1,r=!0,i,a,o=this.transportName(e),s=t=>{this.log(`transport`,`falling back to ${o}...`,t),this.off([i,a]),r=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${o}`))return s(`memorized`);this.fallbackTimer=setTimeout(s,t),a=this.onError(e=>{this.log(`transport`,`error`,e),r&&!n&&(clearTimeout(this.fallbackTimer),s(e))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(n=!0,!r){let t=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${t}`,`true`),this.log(`transport`,`established ${t} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(s,t),this.ping(e=>{this.log(`transport`,`connected to primary after`,e),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log(`transport`,`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks(`open`)}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log(`transport`,`heartbeat timeout. Attempting to re-establish connection`);try{this.heartbeatCallback(`timeout`)}catch(e){this.log(`error`,`error in heartbeat callback`,e)}this.triggerChanError(Error(`heartbeat timeout`)),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),sl,`heartbeat timeout`)}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,n){if(!this.conn)return e&&e();let r=this.conn;this.waitForBufferDone(r,()=>{t?r.close(t,n||``):r.close(),this.waitForSocketClosed(r,()=>{this.conn===r&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,n=1){if(n===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,n+1)},150*n)}waitForSocketClosed(e,t,n=1){if(n===5||e.readyState===ll.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,n+1)},150*n)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log(`transport`,`close`,e),this.triggerChanError(e),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks(`close`,e)}onConnError(e){this.hasLogger()&&this.log(`transport`,`error`,e);let t=this.transport,n=this.establishedConnections;this.triggerStateCallbacks(`error`,e,t,n),(t===this.transport||n>0)&&this.triggerChanError(e)}
vendor: 11,845 bytes, line 13
13triggerChanError(e){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(dl.error,e)})}connectionState(){switch(this.conn&&this.conn.readyState){case ll.connecting:return`connecting`;case ll.open:return`open`;case ll.closing:return`closing`;default:return`closed`}}isConnected(){return this.connectionState()===`open`}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([t])=>e.indexOf(t)===-1)}channel(e,t={}){let n=new _l(e,t,this);return this.channels.push(n),n}push(e){if(this.hasLogger()){let{topic:t,event:n,payload:r,ref:i,join_ref:a}=e;this.log(`push`,`${t} ${n} (${a}, ${i})`,r)}this.isConnected()?this.encode(e,e=>this.conn.send(e)):this.sendBuffer.push(()=>this.encode(e,e=>this.conn.send(e)))}makeRef(){let e=this.ref+1;return this.ref=e===this.ref?0:e,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback(`disconnected`)}catch(e){this.log(`error`,`error in heartbeat callback`,e)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:`phoenix`,event:`heartbeat`,payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback(`sent`)}catch(e){this.log(`error`,`error in heartbeat callback`,e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,e=>{let{topic:t,event:n,payload:r,ref:i,join_ref:a}=e;if(i&&i===this.pendingHeartbeatRef){let e=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(r.status===`ok`?`ok`:`error`,e)}catch(e){this.log(`error`,`error in heartbeat callback`,e)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log(`receive`,`${r.status||``} ${t} ${n} ${i&&`(`+i+`)`||``}`.trim(),r);for(let e=0;e<this.channels.length;e++){let o=this.channels[e];o.isMember(t,n,r,a)&&o.trigger(n,r,i,a)}this.triggerStateCallbacks(`message`,e)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([n,r])=>{try{r(...t)}catch(t){this.log(`error`,`error in ${e} callback`,t)}})}catch(t){this.log(`error`,`error triggering ${e} callbacks`,t)}}leaveOpenTopic(e){let t=this.channels.find(t=>t.topic===e&&(t.isJoined()||t.isJoining()));t&&(this.hasLogger()&&this.log(`transport`,`leaving duplicate topic "${e}"`),t.leave())}},wl=class e{constructor(t,n){let r=Dl(n);this.presence=new xl(t.getChannel(),r),this.presence.onJoin((n,r,i)=>{let a=e.onJoinPayload(n,r,i);t.getChannel().trigger(`presence`,a)}),this.presence.onLeave((n,r,i)=>{let a=e.onLeavePayload(n,r,i);t.getChannel().trigger(`presence`,a)}),this.presence.onSync(()=>{t.getChannel().trigger(`presence`,{event:`sync`})})}get state(){return e.transformState(this.presence.state)}static transformState(e){return e=El(e),Object.getOwnPropertyNames(e).reduce((t,n)=>{let r=e[n];return t[n]=Tl(r),t},{})}static onJoinPayload(e,t,n){return{event:`join`,key:e,currentPresences:Ol(t),newPresences:Tl(n)}}static onLeavePayload(e,t,n){return{event:`leave`,key:e,currentPresences:Ol(t),leftPresences:Tl(n)}}};function Tl(e){return e.metas.map(e=>{let t=Object.getOwnPropertyDescriptors(e),n=Object.defineProperties({},t);return n.presence_ref=n.phx_ref,delete n.phx_ref,delete n.phx_ref_prev,n})}function El(e){return JSON.parse(JSON.stringify(e))}function Dl(e){return e?.events&&{events:e.events}}function Ol(e){return e?.metas?Tl(e):[]}var kl;(function(e){e.SYNC=`sync`,e.JOIN=`join`,e.LEAVE=`leave`})(kl||={});var Al=class{get state(){return this.presenceAdapter.state}constructor(e,t){this.channel=e,this.presenceAdapter=new wl(this.channel.channelAdapter,t)}};function jl(e){if(e instanceof Error)return e;if(typeof e==`string`)return Error(e);if(e&&typeof e==`object`){let t=e;if(typeof t.code==`number`){let n=typeof t.reason==`string`&&t.reason?` (${t.reason})`:``;return Error(`socket closed: ${t.code}${n}`,{cause:e})}return Error(`channel error: transport failure`,{cause:e})}return Error(`channel error: connection lost`)}var Ml=class{constructor(e,t,n){let r=Nl(n);this.channel=e.getSocket().channel(t,r),this.socket=e}get state(){return this.channel.state}set state(e){this.channel.state=e}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(e,t){return this.channel.on(e,t)}off(e,t){this.channel.off(e,t)}subscribe(e){return this.channel.join(e)}unsubscribe(e){return this.channel.leave(e)}teardown(){this.channel.teardown()}onClose(e){this.channel.onClose(e)}onError(e){return this.channel.onError(e)}push(e,t,n){let r;try{r=this.channel.push(e,t,n)}catch{throw Error(`tried to push '${e}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>100){let e=this.channel.pushBuffer.shift();e.cancelTimeout(),this.socket.log(`channel`,`discarded push due to buffer overflow: ${e.event}`,e.payload())}return r}updateJoinPayload(e){let t=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},t),e)}canPush(){return this.socket.isConnected()&&this.state===Bc.joined}isJoined(){return this.state===Bc.joined}isJoining(){return this.state===Bc.joining}isClosed(){return this.state===Bc.closed}isLeaving(){return this.state===Bc.leaving}updateFilterBindings(e){this.channel.filterBindings=e}updatePayloadTransform(e){this.channel.onMessage=e}getChannel(){return this.channel}};function Nl(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:``,enabled:!1},private:!1},e.config)}}var Pl=/[,()"\\]/,Fl=e=>Pl.test(e)||e!==e.trim(),Il=e=>`"${e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`)}"`,Ll=e=>{let t=e===null?`null`:String(e);return Fl(t)?Il(t):t},Rl=e=>e===null?`null`:String(e),zl=(e,t)=>{if(e===`in`){let e=Array.isArray(t)?t:[t];if(e.length===0)throw Error("Realtime `in` filter requires at least one value.");return`in.(${Array.from(new Set(e)).map(e=>Ll(e)).join(`,`)})`}return e===`is`?`is.${Rl(t)}`:`${e}.${Ll(t)}`},Bl=class{constructor(){this.filters=[]}add(e,t,n,r=!1){let i=r?`not.`:``;return this.filters.push(`${e}=${i}${zl(t,n)}`),this}eq(e,t){return this.add(e,`eq`,t)}neq(e,t){return this.add(e,`neq`,t)}gt(e,t){return this.add(e,`gt`,t)}gte(e,t){return this.add(e,`gte`,t)}lt(e,t){return this.add(e,`lt`,t)}lte(e,t){return this.add(e,`lte`,t)}in(e,t){return this.add(e,`in`,t)}like(e,t){return this.add(e,`like`,t)}ilike(e,t){return this.add(e,`ilike`,t)}match(e,t){return this.add(e,`match`,t)}imatch(e,t){return this.add(e,`imatch`,t)}is(e,t){return this.add(e,`is`,t)}isDistinct(e,t){return this.add(e,`isdistinct`,t)}not(e,t,n){return this.add(e,t,n,!0)}build(){return this.filters.join(`,`)}toString(){return this.build()}},Vl;(function(e){e.ALL=`*`,e.INSERT=`INSERT`,e.UPDATE=`UPDATE`,e.DELETE=`DELETE`})(Vl||={});var Hl;(function(e){e.BROADCAST=`broadcast`,e.PRESENCE=`presence`,e.POSTGRES_CHANGES=`postgres_changes`,e.SYSTEM=`system`})(Hl||={});var Ul;(function(e){e.SUBSCRIBED=`SUBSCRIBED`,e.TIMED_OUT=`TIMED_OUT`,e.CLOSED=`CLOSED`,e.CHANNEL_ERROR=`CHANNEL_ERROR`})(Ul||={});var H=class e{get state(){return this.channelAdapter.state}set state(e){this.channelAdapter.state=e}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(e,t={config:{}},n){if(this.topic=e,this.params=t,this.socket=n,this.bindings={},this.subTopic=e.replace(/^realtime:/i,``),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:``,enabled:!1},private:!1},t.config),this.channelAdapter=new Ml(this.socket.socketAdapter,e,this.params),this.presence=new Al(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=el(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&this.params.config?.broadcast?.replay)throw Error(`tried to use replay on public channel '${this.topic}'. It must be a private channel.`)}subscribe(e,t=this.timeout){if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){let{config:{broadcast:n,presence:r,private:i,postgres_changes_options:a}}=this.params,o=this.bindings.postgres_changes?.map(e=>e.filter)??[],s=!!this.bindings[Hl.PRESENCE]&&this.bindings[Hl.PRESENCE].length>0||this.params.config.presence?.enabled===!0,c={},l=Object.assign({broadcast:n,presence:Object.assign(Object.assign({},r),{enabled:s}),postgres_changes:o,private:i},a?{postgres_changes_options:a}:{});this.socket.accessTokenValue&&(c.access_token=this.socket.accessTokenValue),this._onError(t=>{e?.(Ul.CHANNEL_ERROR,jl(t))}),this._onClose(()=>e?.(Ul.CLOSED)),this.updateJoinPayload(Object.assign({config:l},c)),this._updateFilterMessage();let u=a?.wait&&o.length>0?Math.max(t,(a.timeout??Rc)+zc):t;this.channelAdapter.subscribe(u).receive(`ok`,async({postgres_changes:t})=>{if(this.socket._isManualToken()||this.socket.setAuth(),t===void 0){e?.(Ul.SUBSCRIBED);return}this._updatePostgresBindings(t,e)}).receive(`error`,t=>{this.state=Bc.errored;let n=Object.values(t).join(`, `)||`error`;e?.(Ul.CHANNEL_ERROR,Error(n,{cause:t}))}).receive(`timeout`,()=>{e?.(Ul.TIMED_OUT)})}return this}_updatePostgresBindings(t,n){let r=this.bindings.postgres_changes,i=r?.length??0,a=[];for(let o=0;o<i;o++){let i=r[o],{filter:{event:s,schema:c,table:l,filter:u}}=i,d=t&&t[o];if(d&&d.event===s&&e.isFilterValueEqual(d.schema,c)&&e.isFilterValueEqual(d.table,l)&&e.isFilterValueEqual(d.filter,u))a.push(Object.assign(Object.assign({},i),{id:d.id}));else{this.unsubscribe(),this.state=Bc.errored,n?.(Ul.CHANNEL_ERROR,Error(`mismatch between server and client bindings for postgres changes`));return}}this.bindings.postgres_changes=a,this.state!=Bc.errored&&n&&n(Ul.SUBSCRIBED)}presenceState(){return this.presence.state}async track(e,t={}){return await this.send({type:`presence`,event:`track`,payload:e},t)}async untrack(e={}){return await this.send({type:`presence`,event:`untrack`},e)}on(e,t,n){let r=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),i=e===Hl.PRESENCE||e===Hl.POSTGRES_CHANGES;if(r&&i)throw this.socket.log(`channel`,`cannot add \`${e}\` callbacks for ${this.topic} after \`subscribe()\`.`),Error(`cannot add \`${e}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(e,t,n)}async httpSend(e,t,n={}){if(t==null)return Promise.reject(Error(`Payload is required for httpSend()`));let r=t instanceof ArrayBuffer||ArrayBuffer.isView(t),i={apikey:this.socket.apiKey?this.socket.apiKey:``,"Content-Type":r?`application/octet-stream`:`application/json`};this.socket.accessTokenValue&&(i.Authorization=`Bearer ${this.socket.accessTokenValue}`);let a=new URL(this.broadcastEndpointURL);a.pathname+=`/${encodeURIComponent(this.subTopic)}/events/${encodeURIComponent(e)}`,this.private&&a.searchParams.set(`private`,`true`);let o={method:`POST`,headers:i,body:r?t:JSON.stringify(t)},s=await this._fetchWithTimeout(a.toString(),o,n.timeout??this.timeout);if(s.status===202)return{success:!0};if(s.status===404)return Promise.reject(Error(`httpSend() requires Realtime server v2.97.0 or newer; the endpoint returned 404. Update your Supabase CLI to a recent version, or upgrade the Realtime server in your self-hosted setup. See https://github.com/supabase/supabase-js/blob/master/packages/core/realt
13ime-js/migrations/httpsend-server-version.md`));let c=s.statusText;try{let e=await s.json();c=e.error||e.message||c}catch{}return Promise.reject(Error(c))}async send(e,t={}){if(!this.channelAdapter.canPush()&&e.type===`broadcast`){let n=`Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.`;this.socket.hasLogger()?this.socket.log(`channel`,n):console.warn(n);let{event:r,payload:i}=e,a={apikey:this.socket.apiKey?this.socket.apiKey:``,"Content-Type":`application/json`};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);let o={method:`POST`,headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:r,payload:i,private:this.private}]})};try{let e=await this._fetchWithTimeout(this.broadcastEndpointURL,o,t.timeout??this.timeout);return await e.body?.cancel(),e.ok?`ok`:`error`}catch(e){return e instanceof Error&&e.name===`AbortError`?`timed out`:`error`}}return new Promise(n=>{let r=this.channelAdapter.push(e.type,e,t.timeout||this.timeout);e.type===`broadcast`&&!this.params?.config?.broadcast?.ack&&n(`ok`),r.receive(`ok`,()=>n(`ok`)),r.receive(`error`,()=>n(`error`)),r.receive(`timeout`,()=>n(`timed out`))})}updateJoinPayload(e){this.channelAdapter.updateJoinPayload(e)}async unsubscribe(e=this.timeout){return new Promise(t=>{this.channelAdapter.unsubscribe(e).receive(`ok`,()=>t(`ok`)).receive(`timeout`,()=>t(`timed out`)).receive(`error`,()=>t(`error`))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(e,t,n){let r=new AbortController,i=setTimeout(()=>r.abort(),n),a=await this.socket.fetch(e,Object.assign(Object.assign({},t),{signal:r.signal}));return clearTimeout(i),a}_on(t,n,r){let i=t.toLocaleLowerCase(),a=n?.filter;if((a instanceof Bl||typeof a==`object`&&a&&typeof a.build==`function`)&&(n=Object.assign(Object.assign({},n),{filter:a.build()})),i===Hl.POSTGRES_CHANGES&&this.bindings[i]?.find(t=>e.isSamePostgresFilter(t.filter,n)))return this.socket.log(`error`,`duplicate \`postgres_changes\` binding for ${this.topic} ignored`,n),this;let o=this.channelAdapter.on(t,r),s={type:i,filter:n,callback:r,ref:o};return this.bindings[i]?this.bindings[i].push(s):this.bindings[i]=[s],this._updateFilterMessage(),this}_onClose(e){this.channelAdapter.onClose(e)}_onError(e){this.channelAdapter.onError(e)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((e,t,n)=>{let r=e.event.toLocaleLowerCase();if(this._notThisChannelEvent(r,n))return!1;let i=this.bindings[r]?.find(t=>t.ref===e.ref);if(!i)return!0;if([`broadcast`,`presence`,`postgres_changes`].includes(r))if(`id`in i){let e=i.id,n=i.filter?.event;return e&&t.ids?.includes(e)&&(n===`*`||n?.toLocaleLowerCase()===t.data?.type.toLocaleLowerCase())}else{let e=(i?.filter?.event)?.toLocaleLowerCase();return e===`*`||e===(t?.event)?.toLocaleLowerCase()}return i.type.toLocaleLowerCase()===r})}_notThisChannelEvent(e,t){let{close:n,error:r,leave:i,join:a}=Vc;return t&&[n,r,i,a].includes(e)&&t!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((e,t,n)=>{if(typeof t==`object`&&`ids`in t){let e=t.data,{schema:n,table:r,commit_timestamp:i,type:a,errors:o}=e;return Object.assign(Object.assign({},{schema:n,table:r,commit_timestamp:i,eventType:a,new:{},old:{},errors:o}),this._getPayloadRecords(e))}return t})}copyBindings(e){if(this.joinedOnce)throw Error(`cannot copy bindings into joined channel`);for(let t in e.bindings)for(let n of e.bindings[t])this._on(n.type,n.filter,n.callback)}static isFilterValueEqual(e,t){return(e??void 0)===(t??void 0)}static isSamePostgresFilter(t,n){let r=(t?.select)?.join()??void 0,i=(n?.select)?.join()??void 0;return t?.event===n?.event&&e.isFilterValueEqual(t?.schema,n?.schema)&&e.isFilterValueEqual(t?.table,n?.table)&&e.isFilterValueEqual(t?.filter,n?.filter)&&r===i}_getPayloadRecords(e){let t={new:{},old:{}};return(e.type===`INSERT`||e.type===`UPDATE`)&&(t.new=Gc(e.columns,e.record)),(e.type===`UPDATE`||e.type===`DELETE`)&&(t.old=Gc(e.columns,e.old_record)),t}},Wl=class{constructor(e,t){this.socket=new Cl(e,t)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(e){this.socket.heartbeatCallback=e}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(e,t,n,r=1e4){return new Promise(i=>{setTimeout(()=>i(`timeout`),r),this.socket.disconnect(()=>{e(),i(`ok`)},t,n)})}push(e){this.socket.push(e)}log(e,t,n){this.socket.log(e,t,n)}hasLogger(){return this.socket.hasLogger()}makeRef(){return this.socket.makeRef()}onOpen(e){this.socket.onOpen(e)}onClose(e){this.socket.onClose(e)}onError(e){this.socket.onError(e)}onMessage(e){this.socket.onMessage(e)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==Hc.connecting}isDisconnecting(){return this.socket.connectionState()==Hc.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}},U={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},W=[1e3,2e3,5e3,1e4],Gl=1e4;function Kl(){let e=new Map;return{get length(){return e.size},clear(){e.clear()},getItem(t){return e.has(t)?e.get(t):null},key(t){return Array.from(e.keys())[t]??null},removeItem(t){e.delete(t)},setItem(t,n){e.set(t,String(n))}}}function ql(){try{if(typeof globalThis<`u`&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return Kl()}var Jl=` 14 addEventListener("message", (e) => { 15 if (e.data.event === "start") { 16 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 17 } 18 });`,Yl=class{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(e,t){if(this.channels=[],this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint=``,this.headers={},this.params={}
18,this.ref=0,this.serializer=new Uc,this._manuallySetToken=!1,this._authPromise=null,this._authGeneration=0,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._pendingDisconnectTimer=null,this._disconnectOnEmptyChannelsAfterMs=0,this._resolveFetch=e=>e?(...t)=>e(...t):(...e)=>fetch(...e),!t?.params?.apikey)throw Error(`API key is required to connect to Realtime`);this.apiKey=t.params.apikey;let n=this._initializeOptions(t);this.socketAdapter=new Wl(e,n),this.httpEndpoint=el(e),this.fetch=this._resolveFetch(t?.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely(`connect`),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(e){let t=e.message;throw Error(`WebSocket not available: ${t}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(e,t){return this._cancelPendingDisconnect(),this.isDisconnecting()?`ok`:await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},e,t)}getChannels(){return this.channels}async removeChannel(e){let t=await e.unsubscribe();return t===`ok`&&e.teardown(),t}async removeAllChannels(){let e=this.channels.map(async e=>{let t=await e.unsubscribe();return e.teardown(),t}),t=await Promise.all(e);return await this.disconnect(),t}log(e,t,n){this.socketAdapter.log(e,t,n)}hasLogger(){return this.socketAdapter.hasLogger()}connectionState(){return this.socketAdapter.connectionState()||Hc.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(e,t={config:{}}){let n=`realtime:${e}`,r=this.getChannels().find(e=>e.topic===n);if(r)return r;{let n=new H(`realtime:${e}`,t,this);return this._cancelPendingDisconnect(),this.channels.push(n),n}}push(e){this.socketAdapter.push(e)}async setAuth(e=null){let t=++this._authGeneration,n=this._performAuth(e,t);t===this._authGeneration&&(this._authPromise=n);try{await n}finally{this._authPromise===n&&(this._authPromise=null)}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(e){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(e)}_makeRef(){return this.socketAdapter.makeRef()}_remove(e){this.channels=this.channels.filter(t=>t.topic!==e.topic),this.channels.length===0&&(this.log(`transport`,`no channels remaining, scheduling disconnect`),this._schedulePendingDisconnect())}_schedulePendingDisconnect(){if(this._cancelPendingDisconnect(),this._disconnectOnEmptyChannelsAfterMs===0){this.log(`transport`,`disconnecting immediately - no channels`),this.disconnect();return}
18this._pendingDisconnectTimer=setTimeout(()=>{this._pendingDisconnectTimer=null,this.channels.length===0&&(this.log(`transport`,`deferred disconnect fired - no channels, disconnecting`),this.disconnect())},this._disconnectOnEmptyChannelsAfterMs),this.log(`transport`,`deferred disconnect scheduled in ${this._disconnectOnEmptyChannelsAfterMs}ms`)}_cancelPendingDisconnect(){this._pendingDisconnectTimer!==null&&(this.log(`transport`,`pending disconnect cancelled - channel activity detected`),clearTimeout(this._pendingDisconnectTimer),this._pendingDisconnectTimer=null)}async _performAuth(e,t){let n,r=!1;if(e)n=e,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(e){this.log(`error`,`Error fetching access token from callback`,e),n=this.accessTokenValue}else n=this.accessTokenValue;t===this._authGeneration&&(this.accessToken?this._manuallySetToken=!1:r&&(this._manuallySetToken=!0),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(e=>{let t={access_token:n,version:Nc};e.updateJoinPayload(t),e.joinedOnce&&e.channelAdapter.isJoined()&&e.channelAdapter.push(Vc.access_token,{access_token:n})})))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e=`general`){this._isManualToken()||this.setAuth().catch(t=>{this.log(`error`,`Error setting auth in ${e}`,t)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(e=>{this.log(`error`,`error waiting for auth on connect`,e)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(e=>{e.ref&&e.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(e){return(t,n)=>{t!==`disconnected`&&(t==`sent`&&this._setAuthSafely(),e&&e(t,n))}}_startWorkerHeartbeat(){this.workerUrl?this.log(`worker`,`starting worker for from ${this.workerUrl}`):this.log(`worker`,`starting default worker`);let e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=e=>{this.log(`worker`,`worker error`,e.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=e=>{e.data.event===`keepAlive`&&this.sendHeartbeat()},this.workerRef.postMessage({event:`start`,interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&=(this.log(`worker`,`terminating worker`),this.workerRef.terminate(),void 0)}_workerObjectUrl(e){let t;if(e)t=e;else{let e=new Blob([Jl],{type:`application/javascript`});t=URL.createObjectURL(e)}return t}_initializeOptions(e){this.worker=e?.worker??!1,this.accessToken=e?.accessToken??null;let t={};t.timeout=e?.timeout??Lc,t.heartbeatIntervalMs=e?.heartbeatIntervalMs??U.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=e?.disconnectOnEmptyChannelsAfterMs??2*(e?.heartbeatIntervalMs??U.HEARTBEAT_INTERVAL),t.transport=e?.transport??Mc.getWebSocketConstructor(),t.params=e?.params,t.logger=e?.logger,t.heartbeatCallback=this._wrapHeartbeatCallback(e?.heartbeatCallback),t.sessionStorage=e?.sessionStorage??ql(),t.reconnectAfterMs=e?.reconnectAfterMs??(e=>W[e-1]||Gl);let n,r,i=e?.vsn??Ic;switch(i){case Pc:n=(e,t)=>t(JSON.stringify(e)),r=(e,t)=>t(JSON.parse(e));break;case Fc:n=this.serializer.encode.bind(this.serializer),r=this.serializer.decode.bind(this.serializer);break;default:throw Error(`Unsupported serializer version: ${t.vsn}`)}if(t.vsn=i,t.encode=e?.encode??n,t.decode=e?.decode??r,t.beforeReconnect=this._reconnectAuth.bind(this),(e?.logLevel||e?.log_level)&&(this.logLevel=e.logLevel||e.log_level,t.params=Object.assign(Object.assign({},t.params),{log_level:this.logLevel})),this.worker){if(typeof window<`u`&&!window.Worker)throw Error(`Web Worker is not supported`);this.workerUrl=e?.workerUrl,t.autoSendHeartbeat=!this.worker}return t}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
vendor: 4,836 bytes, line 18
18,Xl=class extends Error{constructor(e,t){super(e),this.name=`IcebergError`,this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType===`CommitStateUnknownException`||[500,502,504].includes(t.status)&&t.icebergType?.includes(`CommitState`)===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function Zl(e,t,n){let r=new URL(t,e);if(n)for(let[e,t]of Object.entries(n))t!==void 0&&r.searchParams.set(e,t);return r.toString()}async function Ql(e){return!e||e.type===`none`?{}:e.type===`bearer`?{Authorization:`Bearer ${e.token}`}:e.type===`header`?{[e.name]:e.value}:e.type===`custom`?await e.getHeaders():{}}function $l(e){let t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:i,body:a,headers:o}){let s=Zl(e.baseUrl,r,i),c=await Ql(e.auth),l=await t(s,{method:n,headers:{...a?{"Content-Type":`application/json`}:{},...c,...o},body:a?JSON.stringify(a):void 0}),u=await l.text(),d=(l.headers.get(`content-type`)||``).includes(`application/json`),f=d&&u?JSON.parse(u):u;if(!l.ok){let e=d?f:void 0,t=e?.error;throw new Xl(t?.message??`Request failed with status ${l.status}`,{status:l.status,icebergType:t?.type,icebergCode:t?.code,details:e})}return{status:l.status,headers:l.headers,data:f}}}}function eu(e){return e.join(`�`)}var tu=class{constructor(e,t=``){this.client=e,this.prefix=t}async listNamespaces(e){let t=e?{parent:eu(e.namespace)}:void 0;return(await this.client.request({method:`GET`,path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(e=>({namespace:e}))}async createNamespace(e,t){let n={namespace:e.namespace,properties:t?.properties};return(await this.client.request({method:`POST`,path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:`DELETE`,path:`${this.prefix}/namespaces/${eu(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:`GET`,path:`${this.prefix}/namespaces/${eu(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:`HEAD`,path:`${this.prefix}/namespaces/${eu(e.namespace)}`}),!0}catch(e){if(e instanceof Xl&&e.status===404)return!1;throw e}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(e){if(e instanceof Xl&&e.status===409)return;throw e}}};function nu(e){return e.join(`�`)}var ru=class{constructor(e,t=``,n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:`GET`,path:`${this.prefix}/namespaces/${nu(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){let n={};return this.accessDelegation&&(n[`X-Iceberg-Access-Delegation`]=this.accessDelegation),(await this.client.request({method:`POST`,path:`${this.prefix}/namespaces/${nu(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){let n=await this.client.request({method:`POST`,path:`${this.prefix}/namespaces/${nu(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data[`metadata-location`],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:`DELETE`,path:`${this.prefix}/namespaces/${nu(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String(t?.purge??!1)}})}async loadTable(e){let t={};return this.accessDelegation&&(t[`X-Iceberg-Access-Delegation`]=this.accessDelegation),(await this.client.request({method:`GET`,path:`${this.prefix}/namespaces/${nu(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){let t={};this.accessDelegation&&(t[`X-Iceberg-Access-Delegation`]=this.accessDelegation);try{return await this.client.request({method:`HEAD`,path:`${this.prefix}/namespaces/${nu(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(e){if(e instanceof Xl&&e.status===404)return!1;throw e}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof Xl&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},iu=class{constructor(e){let t=`v1`;e.catalogName&&(t+=`/${e.catalogName}`);let n=e.baseUrl.endsWith(`/`)?e.baseUrl:`${e.baseUrl}/`;this.client=$l({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=e.accessDelegation?.join(`,`),this.namespaceOps=new tu(this.client,t),this.tableOps=new ru(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
18async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}};function au(e){"@babel/helpers - typeof";return au=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},au(e)}function ou(e,t){if(au(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(au(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function su(e){var t=ou(e,`string`);return au(t)==`symbol`?t:t+``}function cu(e,t,n){return(t=su(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?lu(Object(n),!0).forEach(function(t){cu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var uu=class extends Error{constructor(e,t=`storage`,n,r){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t===`vectors`?`StorageVectorsError`:`StorageError`,this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function du(e){return typeof e==`object`&&!!e&&`__isStorageError`in e}var fu=class extends uu{constructor(e,t,n,r=`storage`,i){super(e,r,t,n),this.name=r===`vectors`?`StorageVectorsApiError`:`StorageApiError`,this.status=t,this.statusCode=n,this.code=i}toJSON(){return G(G({},super.toJSON()),{},{code:this.code})}},pu=class extends uu{constructor(e,t,n=`storage`){super(e,n),this.name=n===`vectors`?`StorageVectorsUnknownError`:`StorageUnknownError`,this.originalError=t}};function mu(e,t,n){let r=G({},e),i=t.toLowerCase();for(let e of Object.keys(r))e.toLowerCase()===i&&delete r[e];return r[i]=n,r}function hu(e){let t={};for(let[n,r]of Object.entries(e))t[n.toLowerCase()]=r;return t}var gu=e=>e?(...t)=>e(...t):(...e)=>fetch(...e),_u=e=>{if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},vu=e=>{if(Array.isArray(e))return e.map(e=>vu(e));if(typeof e==`function`||e!==Object(e))return e;let t={};return Object.entries(e).forEach(([e,n])=>{let r=e.replace(/([-_][a-z])/gi,e=>e.toUpperCase().replace(/[-_]/g,``));t[r]=vu(n)}),t},yu=e=>!e||typeof e!=`string`||e.length===0||e.length>100||e.trim()!==e||e.includes(`/`)||e.includes(`\\`)?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),bu=e=>e.split(`/`).map(encodeURIComponent).join(`/`),xu=e=>{if(typeof e==`object`&&e){let t=e;if(typeof t.msg==`string`)return t.msg;if(typeof t.message==`string`)return t.message;if(typeof t.error_description==`string`)return t.error_description;if(typeof t.error==`string`)return t.error;if(typeof t.error==`object`&&t.error!==null){let e=t.error;if(typeof e.message==`string`)return e.message}}return JSON.stringify(e)},Su=async(e,t,n,r)=>{if(typeof e==`object`&&e&&`json`in e&&typeof e.json==`function`){let n=e,i=parseInt(String(n.status),10);Number.isFinite(i)||(i=500),n.json().then(e=>{let n=e?.statusCode||e?.code||i+``;t(new fu(xu(e),i,n,r,e?.code))}).catch(()=>{let e=i+``;t(new fu(n.statusText||`HTTP ${i} error`,i,e,r))})}else t(new pu(xu(e),e,r))},Cu=(e,t,n,r)=>{let i={method:e,headers:t?.headers||{}};if(e===`GET`||e===`HEAD`||!r)return G(G({},i),n);if(_u(r)){let e=t?.headers||{},n;for(let[t,r]of Object.entries(e))t.toLowerCase()===`content-type`&&(n=r);i.headers=mu(e,`Content-Type`,n??`application/json`),i.body=JSON.stringify(r)}else i.body=r;return t?.duplex&&(i.duplex=t.duplex),G(G({},i),n)};async function wu(e,t,n,r,i,a,o){return new Promise((s,c)=>{e(n,Cu(t,r,i,a)).then(e=>{if(!e.ok)throw e;if(r?.noResolveJson)return e;if(o===`vectors`){let t=e.headers.get(`content-type`);if(e.headers.get(`content-length`)===`0`||e.status===204||!t||!t.includes(`application/json`))return{}}return e.json()}).then(e=>s(e)).catch(e=>Su(e,c,r,o))})}function Tu(e=`storage`){return{get:async(t,n,r,i)=>wu(t,`GET`,n,r,i,void 0,e),post:async(t,n,r,i,a)=>wu(t,`POST`,n,i,a,r,e),put:async(t,n,r,i,a)=>wu(t,`PUT`,n,i,a,r,e),head:async(t,n,r,i)=>wu(t,`HEAD`,n,G(G({},r),{},{noResolveJson:!0}),i,void 0,e),remove:async(t,n,r,i,a)=>wu(t,`DELETE`,n,i,a,r,e)}}var{get:Eu,post:Du,put:Ou,head:ku,remove:Au}=Tu(`storage`),ju=Tu(`vectors`),Mu=class{constructor(e,t={},n,r=`storage`){this.shouldThrowOnError=!1,this.url=e,this.headers=hu(t),this.fetch=gu(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=mu(this.headers,e,t),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(du(e))return{data:null,error:e};throw e}}},Nu=Symbol.toStringTag,Pu=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[Nu]=`StreamDownloadBuilder`,this.promise=null}
18then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||=this.execute(),this.promise}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(du(t))return{data:null,error:t};throw t}}},Fu=Symbol.toStringTag,Iu=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[Fu]=`BlobDownloadBuilder`,this.promise=null}asStream(){return new Pu(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||=this.execute(),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(du(t))return{data:null,error:t};throw t}}},Lu={limit:100,offset:0,sortBy:{column:`name`,order:`asc`}},Ru={cacheControl:`3600`,contentType:`text/plain;charset=UTF-8`,upsert:!1},zu=class extends Mu{constructor(e,t={},n,r){super(e,t,r,`storage`),this.bucketId=n}async uploadOrUpdate(e,t,n,r){var i=this;return i.handleOperation(async()=>{let a,o=G(G({},Ru),r),s=G(G({},i.headers),e===`POST`&&{"x-upsert":String(o.upsert)}),c=o.metadata;if(typeof Blob<`u`&&n instanceof Blob?(a=new FormData,a.append(`cacheControl`,o.cacheControl),c&&a.append(`metadata`,i.encodeMetadata(c)),a.append(``,n)):typeof FormData<`u`&&n instanceof FormData?(a=n,a.has(`cacheControl`)||a.append(`cacheControl`,o.cacheControl),c&&!a.has(`metadata`)&&a.append(`metadata`,i.encodeMetadata(c))):(a=n,s[`cache-control`]=`max-age=${o.cacheControl}`,s[`content-type`]=o.contentType,c&&(s[`x-metadata`]=i.toBase64(i.encodeMetadata(c))),(typeof ReadableStream<`u`&&a instanceof ReadableStream||a&&typeof a==`object`&&`pipe`in a&&typeof a.pipe==`function`)&&!o.duplex&&(o.duplex=`half`)),r?.headers)for(let[e,t]of Object.entries(r.headers))s=mu(s,e,t);let l=i._removeEmptyFolders(t),u=i._getFinalPath(l),d=await(e==`PUT`?Ou:Du)(i.fetch,`${i.url}/object/${u}`,a,G({headers:s},o?.duplex?{duplex:o.duplex}:{}));return{path:l,id:d.Id,fullPath:d.Key}})}async upload(e,t,n){return this.uploadOrUpdate(`POST`,e,t,n)}async uploadToSignedUrl(e,t,n,r){var i=this;let a=i._removeEmptyFolders(e),o=i._getFinalPath(a),s=new URL(i.url+`/object/upload/sign/${o}`);return s.searchParams.set(`token`,t),i.handleOperation(async()=>{let e,t=G(G({},Ru),r),o=G(G({},i.headers),{"x-upsert":String(t.upsert)}),c=t.metadata;if(typeof Blob<`u`&&n instanceof Blob?(e=new FormData,e.append(`cacheControl`,t.cacheControl),c&&e.append(`metadata`,i.encodeMetadata(c)),e.append(``,n)):typeof FormData<`u`&&n instanceof FormData?(e=n,e.has(`cacheControl`)||e.append(`cacheControl`,t.cacheControl),c&&!e.has(`metadata`)&&e.append(`metadata`,i.encodeMetadata(c))):(e=n,o[`cache-control`]=`max-age=${t.cacheControl}`,o[`content-type`]=t.contentType,c&&(o[`x-metadata`]=i.toBase64(i.encodeMetadata(c))),(typeof ReadableStream<`u`&&e instanceof ReadableStream||e&&typeof e==`object`&&`pipe`in e&&typeof e.pipe==`function`)&&!t.duplex&&(t.duplex=`half`)),r?.headers)for(let[e,t]of Object.entries(r.headers))o=mu(o,e,t);return{path:a,fullPath:(await Ou(i.fetch,s.toString(),e,G({headers:o},t?.duplex?{duplex:t.duplex}:{}))).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e),i=G({},n.headers);t?.upsert&&(i[`x-upsert`]=`true`);let a=await Du(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:i}),o=new URL(n.url+a.url),s=o.searchParams.get(`token`);if(!s)throw new uu(`No token returned by API`);return{signedUrl:o.toString(),path:e,token:s}})}async update(e,t,n){return this.uploadOrUpdate(`PUT`,e,t,n)}async move(e,t,n){var r=this;return r.handleOperation(async()=>await Du(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
18stinationBucket:n?.destinationBucket,sourceVersionId:n?.sourceVersionId},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await Du(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n?.destinationBucket,sourceVersionId:n?.sourceVersionId},{headers:r.headers})).Key}))}async createSignedUrl(e,t,n){var r=this;return r.handleOperation(async()=>{let i=r._getFinalPath(e),a=typeof n?.transform==`object`&&n.transform!==null&&Object.keys(n.transform).length>0,o=await Du(r.fetch,`${r.url}/object/sign/${i}`,G(G({expiresIn:t},a?{transform:n.transform}:{}),n?.versionId==null?{}:{versionId:n.versionId}),{headers:r.headers}),s=new URLSearchParams;n?.download&&s.set(`download`,n.download===!0?``:n.download),n?.cacheNonce!=null&&s.set(`cacheNonce`,String(n.cacheNonce));let c=s.toString();return{signedUrl:encodeURI(`${r.url}${o.signedURL}${c?`&${c}`:``}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{let i=await Du(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),a=new URLSearchParams;n?.download&&a.set(`download`,n.download===!0?``:n.download),n?.cacheNonce!=null&&a.set(`cacheNonce`,String(n.cacheNonce));let o=a.toString();return i.map(e=>G(G({},e),{},{signedUrl:e.signedURL?encodeURI(`${r.url}${e.signedURL}${o?`&${o}`:``}`):null}))})}download(e,t,n){let r=typeof t?.transform==`object`&&t.transform!==null&&Object.keys(t.transform).length>0?`render/image/authenticated`:`object`,i=new URLSearchParams;t?.transform&&this.applyTransformOptsToQuery(i,t.transform),t?.cacheNonce!=null&&i.set(`cacheNonce`,String(t.cacheNonce)),t?.versionId!=null&&i.set(`versionId`,String(t.versionId));let a=i.toString(),o=this._getFinalPath(e);return new Iu(()=>Eu(this.fetch,`${this.url}/${r}/${o}${a?`?${a}`:``}`,{headers:this.headers,noResolveJson:!0},n),this.shouldThrowOnError)}async info(e,t){var n=this;let r=n._getFinalPath(e),i=new URLSearchParams;t?.versionId!=null&&i.set(`versionId`,String(t.versionId));let a=i.toString();return n.handleOperation(async()=>vu(await Eu(n.fetch,`${n.url}/object/info/${r}${a?`?${a}`:``}`,{headers:n.headers})))}async exists(e){var t=this;let n=t._getFinalPath(e);try{return await ku(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(du(e)){let t=e instanceof fu?e.status:e instanceof pu?e.originalError?.status:void 0;if(t!==void 0&&[400,404].includes(t))return{data:!1,error:e}}throw e}}getPublicUrl(e,t){let n=this._getFinalPath(e),r=new URLSearchParams;t?.download&&r.set(`download`,t.download===!0?``:t.download),t?.transform&&this.applyTransformOptsToQuery(r,t.transform),t?.cacheNonce!=null&&r.set(`cacheNonce`,String(t.cacheNonce)),t?.versionId!=null&&r.set(`versionId`,String(t.versionId));let i=r.toString(),a=typeof t?.transform==`object`&&t.transform!==null&&Object.keys(t.transform).length>0?`render/image`:`object`;return{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${n}`)+(i?`?${i}`:``)}}}async remove(e){var t=this;return t.handleOperation(async()=>await Au(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async purgeCache(e,t,n){var r=this;return r.handleOperation(async()=>{let i=bu(r._getFinalPath(e)),a=new URLSearchParams;t?.transformations&&a.set(`transformations`,`true`);let o=a.toString();return await Au(r.fetch,`${r.url}/cdn/${i}${o?`?${o}`:``}`,{},{headers:r.headers},n)})}async list(e,t,n){var r=this;return r.handleOperation(async()=>{let i=t?.sortBy?G(G({},Lu.sortBy),t.sortBy):Lu.sortBy,a=G(G(G({},Lu),t),{},{sortBy:i,prefix:e||``});return await Du(r.fetch,`${r.url}/object/list/${r.bucketId}`,a,{headers:r.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{let r=G({},e);return await Du(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<`u`?Buffer.from(e).toString(`base64`):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,``)}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,``).replace(/\/+/g,`/`)}applyTransformOptsToQuery(e,t){return t.width&&e.set(`width`,t.width.toString()),t.height&&e.set(`height`,t.height.toString()),t.resize&&e.set(`resize`,t.resize),t.format&&e.set(`format`,t.format),t.quality&&e.set(`quality`,t.quality.toString()),e}},Bu={"X-Client-Info":`storage-js/2.116.0`},Vu=class extends Mu{constructor(e,t={},n,r){let i=new URL(e);r?.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes(`storage.supabase.`)&&(i.hostname=i.hostname.replace(`supabase.`,`storage.supabase.`));let a=i.href.replace(/\/$/,``),o=G(G({},Bu),t);super(a,o,n,`storage`)}async listBuckets(e){var t=this;return t.handleOperation(async()=>{let n=t.listBucketOptionsToQueryString(e);return await Eu(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Eu(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await Du(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes,versioning_status:t.ver
18sioningStatus},{headers:n.headers}))}async updateBucket(e,t){var n=this;return n.handleOperation(async()=>await Ou(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes,versioning_status:t.versioningStatus},{headers:n.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await Du(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Au(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}async getBucketLifecycle(e){var t=this;return t.handleOperation(async()=>await Eu(t.fetch,t.bucketLifecycleUrl(e),{headers:t.headers}))}async updateBucketLifecycle(e,t){var n=this;return n.handleOperation(async()=>await Ou(n.fetch,n.bucketLifecycleUrl(e),t,{headers:n.headers}))}async deleteBucketLifecycle(e){var t=this;return t.handleOperation(async()=>await Au(t.fetch,t.bucketLifecycleUrl(e),{},{headers:t.headers}))}async purgeBucketCache(e,t,n){var r=this;return r.handleOperation(async()=>{let i=new URLSearchParams;t?.transformations&&i.set(`transformations`,`true`);let a=i.toString();return await Au(r.fetch,`${r.url}/cdn/${bu(e)}${a?`?${a}`:``}`,{},{headers:r.headers},n)})}bucketLifecycleUrl(e){return`${this.url}/bucket/${bu(e)}/lifecycle`}listBucketOptionsToQueryString(e){let t={};return e&&(`limit`in e&&(t.limit=String(e.limit)),`offset`in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?`?`+new URLSearchParams(t).toString():``}},Hu=class extends Mu{constructor(e,t={},n){let r=e.replace(/\/$/,``),i=G(G({},Bu),t);super(r,i,n,`storage`)}async createBucket(e){var t=this;return t.handleOperation(async()=>await Du(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{let n=new URLSearchParams;e?.limit!==void 0&&n.set(`limit`,e.limit.toString()),e?.offset!==void 0&&n.set(`offset`,e.offset.toString()),e?.sortColumn&&n.set(`sortColumn`,e.sortColumn),e?.sortOrder&&n.set(`sortOrder`,e.sortOrder),e?.search&&n.set(`search`,e.search);let r=n.toString(),i=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await Eu(t.fetch,i,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Au(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!yu(e))throw new uu(`Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.`);let n=new iu({baseUrl:this.url,catalogName:e,auth:{type:`custom`,getHeaders:async()=>t.headers},fetch:this.fetch}),r=this.shouldThrowOnError;return new Proxy(n,{get(e,t){let n=e[t];return typeof n==`function`?async(...t)=>{try{return{data:await n.apply(e,t),error:null}}catch(e){if(r)throw e;return{data:null,error:e}}}:n}})}},Uu=class extends Mu{constructor(e,t={},n){let r=e.replace(/\/$/,``),i=G(G({},Bu),{},{"Content-Type":`application/json`},t);super(r,i,n,`vectors`)}async createIndex(e){var t=this;return t.handleOperation(async()=>await ju.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await ju.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await ju.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await ju.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},Wu=class extends Mu{constructor(e,t={},n){let r=e.replace(/\/$/,``),i=G(G({},Bu),{},{"Content-Type":`application/json`},t);super(r,i,n,`vectors`)}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw Error(`Vector batch size must be between 1 and 500 items`);return t.handleOperation(async()=>await ju.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await ju.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw Error(`segmentCount must be between 1 and 16`);if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await ju.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await ju.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw Error(`Keys batch size must be between 1 and 500 items`);return t.handleOperation(async()=>await ju.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},Gu=class extends Mu{constructor(e,t={},n){let r=e.replace(/\/$/,``),i=G(G({},Bu),{},{"Content-Type":`application/json`},t);super(r,i,n,`vectors`)}async createBucket(e){var t=this;return t.handleOperation(async()=>await ju.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await ju.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await ju.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await ju.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},Ku=class extends Gu{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new qu(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},qu=class extends Uu{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,G(G({},e),{},{vectorBucketName:n.vectorBucketName}))}
18async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,G(G({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new Ju(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},Ju=class extends Wu{constructor(e,t,n,r,i){super(e,t,i),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,G(G({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,G(G({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,G(G({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,G(G({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,G(G({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},Yu=class extends Vu{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new zu(this.url,this.headers,e,this.fetch)}get vectors(){return new Ku(this.url+`/vector`,{headers:this.headers,fetch:this.fetch})}get analytics(){return new Hu(this.url+`/iceberg`,this.headers,this.fetch)}},Xu=`2.116.0`,K=3e4,Zu=3*K,Qu=2*K,$u=`http://localhost:9999`,ed=`supabase.auth.token`,td={"X-Client-Info":`gotrue-js/${Xu}`},nd=`X-Supabase-Api-Version`,rd={"2024-01-01":{timestamp:Date.parse(`2024-01-01T00:00:00.0Z`),name:`2024-01-01`}},id=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,ad=`sb_flow_id`,od=class extends Error{constructor(e,t,n){super(e),this.__isAuthError=!0,this.name=`AuthError`,this.status=t,this.code=n}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}};function q(e){return typeof e==`object`&&!!e&&`__isAuthError`in e}var sd=class extends od{constructor(e,t,n){super(e,t,n),this.name=`AuthApiError`,this.status=t,this.code=n}};function cd(e){return q(e)&&e.name===`AuthApiError`}var ld=class extends od{constructor(e,t){super(e),this.name=`AuthUnknownError`,this.originalError=t}},ud=class extends od{constructor(e,t,n,r){super(e,n,r),this.name=t,this.status=n}},dd=class extends ud{constructor(){super(`Auth session missing!`,`AuthSessionMissingError`,400,void 0)}};function fd(e){return q(e)&&e.name===`AuthSessionMissingError`}var pd=class extends ud{constructor(){super(`Auth session or user missing`,`AuthInvalidToken
18ResponseError`,500,void 0)}},md=class extends ud{constructor(e){super(e,`AuthInvalidCredentialsError`,400,void 0)}},hd=class extends ud{constructor(e,t=null){super(e,`AuthImplicitGrantRedirectError`,500,void 0),this.details=null,this.details=t}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}};function gd(e){return q(e)&&e.name===`AuthImplicitGrantRedirectError`}var _d=class extends ud{constructor(e,t=null){super(e,`AuthPKCEGrantCodeExchangeError`,500,void 0),this.details=null,this.details=t}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}},vd=class extends ud{constructor(){super(`PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.`,`AuthPKCECodeVerifierMissingError`,400,`pkce_code_verifier_not_found`)}},yd=class extends ud{constructor(e,t){super(e,`AuthRetryableFetchError`,t,void 0)}};function bd(e){return q(e)&&e.name===`AuthRetryableFetchError`}var xd=class extends ud{constructor(e=`Refresh result discarded: session state changed mid-flight (e.g., concurrent signOut)`){super(e,`AuthRefreshDiscardedError`,409,void 0)}};function Sd(e){return q(e)&&e.name===`AuthRefreshDiscardedError`}var Cd=class extends ud{constructor(e,t,n){super(e,`AuthWeakPasswordError`,t,`weak_password`),this.reasons=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}},wd=class extends ud{constructor(e){super(e,`AuthInvalidJwtError`,400,`invalid_jwt`)}},J=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`.split(``),Td=` 19\r=`.split(``),Ed=(()=>{let e=Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Td.length;t+=1)e[Td[t].charCodeAt(0)]=-2;for(let t=0;t<J.length;t+=1)e[J[t].charCodeAt(0)]=t;return e})();function Dd(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;)n(J[t.queue>>t.queuedBits-6&63]),t.queuedBits-=6;else if(t.queuedBits>0)for(t.queue<<=6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;)n(J[t.queue>>t.queuedBits-6&63]),t.queuedBits-=6}function Od(e,t,n){let r=Ed[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else if(r===-2)return;else throw Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}function kd(e){let t=[],n=e=>{t.push(String.fromCodePoint(e))},r={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},a=e=>{Md(e,r,n)};for(let t=0;t<e.length;t+=1)Od(e.charCodeAt(t),i,a);return t.join(``)}function Ad(e,t){if(e<=127){t(e);return}if(e<=2047){t(192|e>>6),t(128|e&63);return}if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function jd(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){let t=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|t)+65536,n+=1}Ad(r,t)}}function Md(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let n=1;n<6;n+=1)if(!(e>>7-n&1)){t.utf8seq=n;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw Error(`Invalid UTF-8 sequence`);--t.utf8seq}else if(t.utf8seq>0){if(e<=127)throw Error(`Invalid UTF-8 sequence`);t.codepoint=t.codepoint<<6|e&63,--t.utf8seq,t.utf8seq===0&&n(t.codepoint)}}function Nd(e){let t=[],n={queue:0,queuedBits:0},r=e=>{t.push(e)};for(let t=0;t<e.length;t+=1)Od(e.charCodeAt(t),n,r);return new Uint8Array(t)}function Pd(e){let t=[];return jd(e,e=>t.push(e)),new Uint8Array(t)}function Fd(e){let t=[],n={queue:0,queuedBits:0},r=e=>{t.push(e)};return e.forEach(e=>Dd(e,n,r)),Dd(null,n,r),t.join(``)}function Id(e){return Math.round(Date.now()/1e3)+e}function Ld(){return Symbol(`auth-callback`)}var Y=()=>typeof window<`u`&&typeof document<`u`,Rd={tested:!1,writable:!1},zd=()=>{if(!Y())return!1;try{if(typeof globalThis.localStorage!=`object`)return!1}catch{return!1}if(Rd.tested)return Rd.writable;let e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Rd.tested=!0,Rd.writable=!0}catch{Rd.tested=!0,Rd.writable=!1}return Rd.writable};function Bd(e){let t={},n=new URL(e);if(n.hash&&n.hash[0]===`#`)try{new URLSearchParams(n.hash.substring(1)).forEac
19h((e,n)=>{t[n]=e})}catch{}return n.searchParams.forEach((e,n)=>{t[n]=e}),t}var Vd=e=>e?(...t)=>e(...t):(...e)=>fetch(...e),Hd=e=>typeof e==`object`&&!!e&&`status`in e&&`ok`in e&&`json`in e&&typeof e.json==`function`,Ud=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Wd=async(e,t)=>{let n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return null}},Gd=async(e,t)=>{await e.removeItem(t)},Kd=class e{constructor(){this.promise=new e.promiseConstructor((e,t)=>{this.resolve=e,this.reject=t})}};Kd.promiseConstructor=Promise;function qd(e){let t=e.split(`.`);if(t.length!==3)throw new wd(`Invalid JWT structure`);for(let e=0;e<t.length;e++)if(!id.test(t[e]))throw new wd(`JWT not in base64url format`);return{header:JSON.parse(kd(t[0])),payload:JSON.parse(kd(t[1])),signature:Nd(t[2]),raw:{header:t[0],payload:t[1]}}}async function Jd(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function Yd(e,t){return new Promise((n,r)=>{(async()=>{for(let i=0;i<1/0;i++)try{let r=await e(i);if(!t(i,null,r)){n(r);return}}catch(e){if(!t(i,e)){r(e);return}}})()})}function Xd(e){return(`0`+e.toString(16)).substr(-2)}function Zd(){let e=new Uint32Array(56);if(typeof crypto>`u`){let e=``;for(let t=0;t<56;t++)e+=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~`.charAt(Math.floor(Math.random()*66));return e}return crypto.getRandomValues(e),Array.from(e,Xd).join(``)}async function Qd(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest(`SHA-256`,t),r=new Uint8Array(n);return Array.from(r).map(e=>String.fromCharCode(e)).join(``)}async function $d(e){if(!(typeof crypto<`u`&&crypto.subtle!==void 0&&typeof TextEncoder<`u`))return console.warn(`WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256.`),e;let t=await Qd(e);return btoa(t).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``)}var ef=/^[a-zA-Z0-9_-]{8,64}$/;function tf(e){return typeof e==`string`&&ef.test(e)?e:null}function nf(){if(typeof crypto<`u`&&typeof crypto.getRandomValues==`function`){let e=new Uint8Array(16);return crypto.getRandomValues(e),Array.from(e,Xd).join(``)}let e=``;for(let t=0;t<32;t++)e+=Math.floor(Math.random()*16).toString(16);return e}var rf=(e,t)=>`${e}-flow-${t}-code-verifier`,af=e=>`${e}-flows-code-verifier`;async function of(e,t){let n=await Wd(e,af(t));return Array.isArray(n)?n.filter(e=>tf(e)!==null):[]}async function sf(e,t,n,r,i){await Ud(e,rf(t,n),r);let a=(await of(e,t)).filter(e=>e!==n);for(a.push(n);a.length>5;){let n=a.shift();await Gd(e,rf(t,n)),i?.(n)}await Ud(e,af(t),a),await Ud(e,`${t}-code-verifier`,r)}async function cf(e,t,n){if(n){let r=await Wd(e,rf(t,n));return{verifier:typeof r==`string`?r:null,flowId:n}}let r=await Wd(e,`${t}-code-verifier`);return{verifier:typeof r==`string`?r:null,flowId:null}}async function lf(e,t,n){let r=`${t}-code-verifier`;if(!n){await Gd(e,r);return}let i=rf(t,n),a=await Wd(e,i);await Gd(e,i);let o=await of(e,t),s=o.filter(e=>e!==n);s.length!==o.length&&(s.length>0?await Ud(e,af(t),s):await Gd(e,af(t))),a!=null&&a===await Wd(e,r)&&await Gd(e,r)}async function uf(e,t){let n=await of(e,t);for(let r of n)await Gd(e,rf(t,r));await Gd(e,af(t)),await Gd(e,`${t}-code-verifier`)}function df(e,t){let n=e.indexOf(`#`),r=n===-1?e:e.slice(0,n),i=n===-1?``:e.slice(n),a=r.indexOf(`?`);if(a!==-1){let e=r.slice(0,a),t=r.slice(a+1).split(`&`).filter(e=>e!==``&&e!==`sb_flow_id`&&!e.startsWith(`sb_flow_id=`));r=t.length>0?`${e}?${t.join(`&`)}`:e}let o=r.includes(`?`)?`&`:`?`;return`${r}${o}${ad}=${encodeURIComponent(t)}${i}`}async function ff(e,t,n=!1,r){let i=Zd(),a=i;n&&(a+=`/recovery`);let o=nf();await sf(e,t,o,a,r);let s=await $d(i);return[s,i===s?`plain`:`s256`,o]}var pf=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function mf(e){let t=e.headers.get(nd);if(!t||!t.match(pf))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function hf(e){if(!e)throw Error(`Missing exp claim`);if(e<=Math.floor(Date.now()/1e3))throw Error(`JWT has expired`)}function gf(e){switch(e){case`RS256`:return{name:`RSASSA-PKCS1-v1_5`,hash:{name:`
19SHA-256`}};case`ES256`:return{name:`ECDSA`,namedCurve:`P-256`,hash:{name:`SHA-256`}};default:throw Error(`Invalid alg claim`)}}var _f=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function vf(e){if(!_f.test(e))throw Error(`@supabase/auth-js: Expected parameter to be UUID but is not`)}function yf(e){if(!e.passkey)throw Error("@supabase/auth-js: the passkey API is experimental and disabled by default. Enable it by passing `auth: { experimental: { passkey: true } }` to createClient (or to the GoTrueClient constructor).")}function bf(e){if(!e.recoveryCodes)throw Error("@supabase/auth-js: the MFA recovery codes API is experimental and disabled by default. Enable it by passing `auth: { experimental: { recoveryCodes: true } }` to createClient (or to the GoTrueClient constructor).")}function xf(){return new Proxy({},{get:(e,t)=>{if(t===`__isUserNotAvailableProxy`)return!0;if(typeof t==`symbol`){let e=t.toString();if(e===`Symbol(Symbol.toPrimitive)`||e===`Symbol(Symbol.toStringTag)`||e===`Symbol(util.inspect.custom)`)return}throw Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${t}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,t)=>{throw Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${t}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,t)=>{throw Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${t}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function Sf(e,t){return new Proxy(e,{get:(e,n,r)=>{if(n===`__isInsecureUserWarningProxy`)return!0;if(typeof n==`symbol`){let t=n.toString();if(t===`Symbol(Symbol.toPrimitive)`||t===`Symbol(Symbol.toStringTag)`||t===`Symbol(util.inspect.custom)`||t===`Symbol(nodejs.util.inspect.custom)`)return Reflect.get(e,n,r)}return!t.value&&typeof n==`string`&&(console.warn(`Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server.`),t.value=!0),Reflect.get(e,n,r)}})}function Cf(e){return JSON.parse(JSON.stringify(e))}var wf=e=>{if(typeof e==`object`&&e){let t=e;if(typeof t.msg==`string`)return t.msg;if(typeof t.message==`string`)return t.message;if(typeof t.error_description==`string`)return t.error_description;if(typeof t.error==`string`)return t.error}return JSON.stringify(e)},Tf=[500,501,502,503,504,520,521,522,523,524,525,526,527,528,529,530];async function Ef(e){if(!Hd(e))throw new yd(wf(e),0);let t;try{t=await e.json()}catch(t){throw Tf.includes(e.status)?new yd(e.statusText||`HTTP ${e.status}`,e.status):new ld(wf(t),t)}if(Tf.includes(e.status))throw new yd(wf(t),e.status);let n,r=mf(e);if(r&&r.getTime()>=rd[`2024-01-01`].timestamp&&typeof t==`object`&&t&&typeof t.code==`string`?n=t.code:typeof t==`object`&&t&&typeof t.error_code==`string`&&(n=t.error_code),!n){if(typeof t==`object`&&t&&typeof t.weak_password==`object`&&t.weak_password&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.reasons.reduce((e,t)=>e&&typeof t==`string`,!0))throw new Cd(wf(t),e.status,t.weak_password.reasons)}else if(n===`weak_password`)throw new Cd(wf(t),e.status,t.weak_password?.reasons||[]);else if(n===`session_not_found`)throw new dd;throw new sd(wf(t),e.status||500,n)}var Df=(e,t,n,r)=>{let i={method:e,headers:t?.headers||{}};return e===`GET`?i:(i.headers=Object.assign({"Content-Type":`application/json;charset=UTF-8`},t?.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};async function X(e,t,n,r){let i=Object.assign({},r?.headers);i[`X-Supabase-Api-Version`]||(i[nd]=rd[`2024-01-01`].name),r?.jwt&&(i.Authorization=`Bearer ${r.jwt}`);let a=r?.query??{};r?.redirectTo&&(a.redirect_to=r.redirectTo);
19let o=await Of(e,t,n+(Object.keys(a).length?`?`+new URLSearchParams(a).toString():``),{headers:i,noResolveJson:r?.noResolveJson},{},r?.body);return r?.xform?r?.xform(o):{data:Object.assign({},o),error:null}}async function Of(e,t,n,r,i,a){let o=Df(t,r,i,a),s;try{s=await e(n,Object.assign({},o))}catch(e){throw new yd(wf(e),0)}if(s.ok||await Ef(s),r?.noResolveJson)return s;try{return await s.json()}catch(e){await Ef(e)}}function kf(e){let t=null;Ff(e)&&(t=Object.assign({},e),e.expires_at||(t.expires_at=Id(e.expires_in)));let n=e.user??(typeof e?.id==`string`?e:null);return{data:{session:t,user:n},error:null}}function Af(e){let t=kf(e);return!t.error&&e.weak_password&&typeof e.weak_password==`object`&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message==`string`&&e.weak_password.reasons.reduce((e,t)=>e&&typeof t==`string`,!0)&&(t.data.weak_password=e.weak_password),t}function jf(e){return{data:{user:e.user??e},error:null}}function Mf(e){return{data:e,error:null}}function Nf(e){let{action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:a}=e,o=ec(e,[`action_link`,`email_otp`,`hashed_token`,`redirect_to`,`verification_type`]);return{data:{properties:{action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:a},user:Object.assign({},o)},error:null}}function Pf(e){return e}function Ff(e){return!!e.access_token&&!!e.refresh_token&&!!e.expires_in}var If=[`global`,`local`,`others`],Lf=class{constructor({url:e=``,headers:t={},fetch:n,experimental:r}){this.url=e,this.headers=t,this.fetch=Vd(n),this.experimental=r??{},this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)},this.passkey={listPasskeys:this._adminListPasskeys.bind(this),deletePasskey:this._adminDeletePasskey.bind(this)}}async signOut(e,t=If[0]){if(If.indexOf(t)<0)throw Error(`@supabase/auth-js: Parameter scope must be one of ${If.join(`, `)}`);try{return await X(this.fetch,`POST`,`${this.url}/logout?scope=${t}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(e){if(q(e))return{data:null,error:e};throw e}}async inviteUserByEmail(e,t={}){try{return await X(this.fetch,`POST`,`${this.url}/invite`,{body:{email:e,data:t.data},headers:this.headers,redirectTo:t.redirectTo,xform:jf})}catch(e){if(q(e))return{data:{user:null},error:e};throw e}}async generateLink(e){try{let{options:t}=e,n=ec(e,[`options`]),r=Object.assign(Object.assign({},n),t);return`newEmail`in n&&(r.new_email=n?.newEmail,delete r.newEmail),await X(this.fetch,`POST`,`${this.url}/admin/generate_link`,{body:r,headers:this.headers,xform:Nf,redirectTo:t?.redirectTo})}catch(e){if(q(e))return{data:{properties:null,user:null},error:e};throw e}}async createUser(e){try{return await X(this.fetch,`POST`,`${this.url}/admin/users`,{body:e,headers:this.headers,xform:jf})}catch(e){if(q(e))return{data:{user:null},error:e};throw e}}async listUsers(e){try{let t={nextPage:null,lastPage:0,total:0},n=await X(this.fetch,`GET`,`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(e?.page)?.toString()??``,per_page:(e?.perPage)?.toString()??``},xform:Pf});if(n.error)throw n.error;let r=await n.json(),i=n.headers.get(`x-total-count`)??0,a=n.headers.get(`link`)?.split(`,`)??[];return a.length>0&&(a.forEach(e=>{let n=parseInt(e.split(`;`)[0].split(`=`)[1].substring(0,1)),r=JSON.parse(e.split(`;`)[1].split(`=`)[1]);t[`${r}Page`]=n}),t.total=parseInt(i)),{data:Object.assign(Object.assign({},r),t),error:null}}catch(e){if(q(e))return{data:{users:[]},error:e};throw e}}async getUserById(e){vf(e);try{return await X(this.fetch,`GET`,`${this.url}/admin/users/${e}`,{headers:this.headers,xform:jf})}catch(e){if(q(e))return{data:{user:null},error:e};throw e}}async updateUserById(e,t){vf(e);try{return await X(this.fetch,`PUT`,`${this.url}/admin/users/${e}`,{body:t,headers:this.headers,xform:jf})}catch(e){if(q(e))return{data:{user:null},error:e};throw e}}async deleteUser(e,t=!1){vf(e);try{return await X(this.fetch,`DELETE`,`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:t},xform:jf})}catch(e){if(q(e))return{data:{user:null},error:e};throw e}}async _listFactors(e){vf(e.userId);try{let{data:t,error:n}=await X(this.fetch,`GET`,`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:e=>({data:{factors:e},error:null})});return{data:t,error:n}}catch(e){if(q(e))return{data:null,error:e};throw e}}async _deleteFactor(e){vf(e.userId),vf(e.id);try{return{data:await X(this.fetch,`DELETE`,`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(e){if(q(e))return{data:null,error:e};throw e}}async _listOAuthClients(e){try{let t={nextPage:null,lastPage:0,total:0},n=await X(this.fetch,`GET`,`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(e?.page)?.toString()??``,per_page:(e?.perPage)?.toString()??``},xform:Pf});if(n.error)throw n.error;let r=await n.json(),i=n.headers.get(`x-total-count`)??0,a=n.headers.get(`link`)?.split(`,`)??[];return a.length>
190&&(a.forEach(e=>{let n=parseInt(e.split(`;`)[0].split(`=`)[1].substring(0,1)),r=JSON.parse(e.split(`;`)[1].split(`=`)[1]);t[`${r}Page`]=n}),t.total=parseInt(i)),{data:Object.assign(Object.assign({},r),t),error:null}}catch(e){if(q(e))return{data:{clients:[]},error:e};throw e}}async _createOAuthClient(e){try{return await X(this.fetch,`POST`,`${this.url}/admin/oauth/clients`,{body:e,headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(q(e))return{data:null,error:e};throw e}}async _getOAuthClient(e){try{return await X(this.fetch,`GET`,`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(q(e))return{data:null,error:e};throw e}}async _updateOAuthClient(e,t){try{return await X(this.fetch,`PUT`,`${this.url}/admin/oauth/clients/${e}`,{body:t,headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(q(e))return{data:null,error:e};throw e}}async _deleteOAuthClient(e){try{return await X(this.fetch,`DELETE`,`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(e){if(q(e))return{data:null,error:e};throw e}}async _regenerateOAuthClientSecret(e){try{return await X(this.fetch,`POST`,`${this.url}/admin/oauth/clients/${e}/regenerate_secret`,{headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(q(e))return{data:null,error:e};throw e}}async _listCustomProviders(e){try{let t={};return e?.type&&(t.type=e.type),await X(this.fetch,`GET`,`${this.url}/admin/custom-providers`,{headers:this.headers,query:t,xform:e=>({data:{providers:e?.providers??[]},error:null})})}catch(e){if(q(e))return{data:{providers:[]},error:e};throw e}}async _createCustomProvider(e){try{return await X(this.fetch,`POST`,`${this.url}/admin/custom-providers`,{body:e,headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(q(e))return{data:null,error:e};throw e}}async _getCustomProvider(e){try{return await X(this.fetch,`GET`,`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(q(e))return{data:null,error:e};throw e}}async _updateCustomProvider(e,t){try{return await X(this.fetch,`PUT`,`${this.url}/admin/custom-providers/${e}`,{body:t,headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(q(e))return{data:null,error:e};throw e}}async _deleteCustomProvider(e){try{return await X(this.fetch,`DELETE`,`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(e){if(q(e))return{data:null,error:e};throw e}}async _adminListPasskeys(e){yf(this.experimental),vf(e.userId);try{return await X(this.fetch,`GET`,`${this.url}/admin/users/${e.userId}/passkeys`,{headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(q(e))return{data:null,error:e};throw e}}async _adminDeletePasskey(e){yf(this.experimental),vf(e.userId),vf(e.passkeyId);try{return await X(this.fetch,`DELETE`,`${this.url}/admin/users/${e.userId}/passkeys/${e.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(e){if(q(e))return{data:null,error:e};throw e}}};function Rf(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}globalThis&&zd()&&globalThis.localStorage&&globalThis.localStorage.getItem(`supabase.gotrue-js.locks.debug`);var zf=class extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}};function Bf(){if(typeof globalThis!=`object`)try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<`u`&&(self.globalThis=self)}}function Vf(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function Hf(e){return parseInt(e,16)}function Uf(e){let t=new TextEncoder().encode(e);return`0x`+Array.from(t,e=>e.toString(16).padStart(2,`0`)).join(``)}function Wf(e){let{chainId:t,domain:n,expirationTime:r,issuedAt:i=new Date,nonce:a,notBefore:o,requestId:s,resources:c,scheme:l,uri:u,version:d}=e;if(!Number.isInteger(t))throw Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${t}`);if(!n)throw Error(`@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.`);if(a&&a.length<8)throw Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${a}`);if(!u)throw Error(`@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.`);if(d!==`1`)throw Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${d}`);if(e.statement?.includes(` 20`))throw Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`);let f=Vf(e.address),p=`${l?`${l}://${n}`:n} wants you to sign in with your Ethereum account:\n${f}\n\n${e.statement?`${e.statement}\n`:``}`,m=`URI: ${u}\nVersion: ${d}\nChain ID: ${t}${a?`\nNonce: ${a}`:``}\nIssued At: ${i.toISOString()}`;if(r&&(m+=`\nExpiration Time: ${r.toISOString()}`),o&&(m+=`\nNot Before: ${o.toISOString()}`),s&&(m+=`\nRequest ID: ${s}`),c){let e=` 21Resources:`;for(let t of c){if(!t||typeof t!=`string`)throw Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${t}`);e+=`\n- ${t}`}m+=e}return`${p}\n${m}`}
21var Gf=class extends Error{constructor({message:e,code:t,cause:n,name:r}){super(e,{cause:n}),this.__isWebAuthnError=!0,this.name=r??(n instanceof Error?n.name:void 0)??`Unknown Error`,this.code=t}toJSON(){return{name:this.name,message:this.message,code:this.code}}},Kf=class extends Gf{constructor(e,t){super({code:`ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY`,cause:t,message:e}),this.name=`WebAuthnUnknownError`,this.originalError=t}};function qf({error:e,options:t}){let{publicKey:n}=t;if(!n)throw Error(`options was missing required publicKey property`);if(e.name===`AbortError`){if(t.signal instanceof AbortSignal)return new Gf({message:`Registration ceremony was sent an abort signal`,code:`ERROR_CEREMONY_ABORTED`,cause:e})}else if(e.name===`ConstraintError`){if(n.authenticatorSelection?.requireResidentKey===!0)return new Gf({message:`Discoverable credentials were required but no available authenticator supported it`,code:`ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT`,cause:e});if(t.mediation===`conditional`&&n.authenticatorSelection?.userVerification===`required`)return new Gf({message:`User verification was required during automatic registration but it could not be performed`,code:`ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE`,cause:e});if(n.authenticatorSelection?.userVerification===`required`)return new Gf({message:`User verification was required but no available authenticator supported it`,code:`ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT`,cause:e})}else if(e.name===`InvalidStateError`)return new Gf({message:`The authenticator was previously registered`,code:`ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED`,cause:e});else if(e.name===`NotAllowedError`)return new Gf({message:e.message,code:`ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY`,cause:e});else if(e.name===`NotSupportedError`)return n.pubKeyCredParams.filter(e=>e.type===`public-key`).length===0?new Gf({message:`No entry in pubKeyCredParams was of type "public-key"`,code:`ERROR_MALFORMED_PUBKEYCREDPARAMS`,cause:e}):new Gf({message:`No available authenticator supported any of the specified pubKeyCredParams algorithms`,code:`ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG`,cause:e});else if(e.name===`SecurityError`){let t=window.location.hostname;if(!ep(t))return new Gf({message:`${window.location.hostname} is an invalid domain`,code:`ERROR_INVALID_DOMAIN`,cause:e});if(n.rp.id!==t)return new Gf({message:`The RP ID "${n.rp.id}" is invalid for this domain`,code:`ERROR_INVALID_RP_ID`,cause:e})}else if(e.name===`TypeError`){if(n.user.id.byteLength<1||n.user.id.byteLength>64)return new Gf({message:`User ID was not between 1 and 64 characters`,code:`ERROR_INVALID_USER_ID_LENGTH`,cause:e})}else if(e.name===`UnknownError`)return new Gf({message:`The authenticator was unable to process the specified options, or could not create a new credential`,code:`ERROR_AUTHENTICATOR_GENERAL_ERROR`,cause:e});return new Gf({message:`a Non-Webauthn related error has occurred`,code:`ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY`,cause:e})}function Jf({error:e,options:t}){let{publicKey:n}=t;if(!n)throw Error(`options was missing required publicKey property`);if(e.name===`AbortError`){if(t.signal instanceof AbortSignal)return new Gf({message:`Authentication ceremony was sent an abort signal`,code:`ERROR_CEREMONY_ABORTED`,cause:e})}else if(e.name===`NotAllowedError`)return new Gf({message:e.message,code:`ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY`,cause:e});else if(e.name===`SecurityError`){let t=window.location.hostname;if(!ep(t))return new Gf({message:`${window.location.hostname} is an invalid domain`,code:`ERROR_INVALID_DOMAIN`,cause:e});if(n.rpId!==t)return new Gf({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:`ERROR_INVALID_RP_ID`,cause:e})}else if(e.name===`UnknownError`)return new Gf({message:`The authenticator was unable to process the specified options, or could not create a new assertion signature`,code:`ERROR_AUTHENTICATOR_GENERAL_ERROR`,cause:e});return new Gf({message:`a Non-Webauthn related error has occurred`,code:`ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY`,cause:e})}var Yf=new class{createNewAbortSignal(){if(this.controller){let e=Error(`Cancelling existing WebAuthn API call for new one`);e.name=`AbortError`,this.controller.abort(e)}let e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){let e=Error(`Manually cancelling existing WebAuthn API call`);e.name=`AbortError`,this.controller.abort(e),this.controller=void 0}}};function Xf(e){if(!e)throw Error(`Credential creation options are required`);if(typeof PublicKeyCredential<`u`&&`parseCreationOptionsFromJSON`in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON==`function`)return PublicKeyCredential.parseCreationOptionsFromJSON(e);let{challenge:t,user:n,excludeCredentials:r}=e,i=ec(e,[`challenge`,`user`,`excludeCredentials`]),a=Nd(t).buffer,o=Object.assign(Object.assign({},n),{id:Nd(n.id).buffer}),s=Object.assign(Object.assign({},i),{challenge:a,user:o});if(r&&r.length>0){s.excludeCredentials=Array(r.length);for(let e=0;e<r.length;e++){let t=r[e];s.excludeCredentials[e]=Object.assign(Object.assign({},t),{id:Nd(t.id).buffer,type:t.type||`public-key`,transports:t.transports})}}return s}function Zf(e){if(!e)throw Error(`Credential request options are required`);if(typeof PublicKeyCredential<`u`&&`parseRequestOptionsFromJSON`in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON==`function`)return PublicKeyCredential.parseRequestOptionsFromJSON(e);let{challenge:t,allowCredentials:n}=e,r=ec(e,[`challenge`,`allowCredentials`]),i=Nd(t).buffer,a=Object.assign(Object.assign({},r),{challenge:i});if(n&&n.length>0){a.allowCredentials=Array(n.length);for(let e=0;e<n.length;e++){let t=n[e];a.allowCredentials[e]=Object.assign(Object.assign({},t),{id:Nd(t.id).buffer,type:t.type||`public-key`,transports:t.transports})}}return a}function Qf(e){if(`toJSON`in e&&typeof e.toJSON==`function`)return e.toJSON();let t=e;return{id:e.id,rawId:e.id,response:{attestationObject:Fd(new Uint8Array(e.response.attestationObject)),clientDataJSON:Fd(new Uint8Array(e.response.clientDataJSON))},type:`public-key`,clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:t.authenticatorAttachment??void 0}}function $f(e){if(`toJSON`in e&&typeof e.toJSON==`function`)return e.toJSON();let t=e,n=e.getClientExtensionResults(),r=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Fd(new Uint8Array(r.authenticatorData)),clientDataJSON:Fd(new Uint8Array(r.clientDataJSON)),signature:Fd(new Uint8Array(r.signature)),userHandle:r.userHandle?Fd(new Uint8Array(r.userHandle)):void 0},type:`public-key`,clientExtensionResults:n,authenticatorAttachment:t.authenticatorAttachment??void 0}}function ep(e){return e===`localhost`||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function tp(){return!!(Y()&&`PublicKeyCredential`in window&&window.PublicKeyCredential&&`credentials`in navigator&&typeof(navigator==null?void 0:navigator.credentials)?.create==`function`&&typeof(navigator==null?void 0:navigator.credentials)?.get==`function`)}async function np(e){try{let t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Kf(`Browser returned unexpected credential type`,t)}:{data:null,error:new Kf(`Empty credential response`,t)}}
21catch(t){return{data:null,error:qf({error:t,options:e})}}}async function rp(e){try{let t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Kf(`Browser returned unexpected credential type`,t)}:{data:null,error:new Kf(`Empty credential response`,t)}}catch(t){return{data:null,error:Jf({error:t,options:e})}}}var ip={hints:[`security-key`],authenticatorSelection:{authenticatorAttachment:`cross-platform`,requireResidentKey:!1,userVerification:`preferred`,residentKey:`discouraged`},attestation:`direct`},ap={userVerification:`preferred`,hints:[`security-key`],attestation:`direct`};function op(...e){let t=e=>typeof e==`object`&&!!e&&!Array.isArray(e),n=e=>e instanceof ArrayBuffer||ArrayBuffer.isView(e),r={};for(let i of e)if(i)for(let e in i){let a=i[e];if(a!==void 0)if(Array.isArray(a))r[e]=a;else if(n(a))r[e]=a;else if(t(a)){let n=r[e];r[e]=t(n)?op(n,a):op(a)}else r[e]=a}return r}function sp(e,t){return op(ip,e,t||{})}function cp(e,t){return op(ap,e,t||{})}var lp=class{constructor(e){this.client=e,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(e){return this.client.mfa.enroll(Object.assign(Object.assign({},e),{factorType:`webauthn`}))}async _challenge({factorId:e,webauthn:t,friendlyName:n,signal:r},i){try{let{data:a,error:o}=await this.client.mfa.challenge({factorId:e,webauthn:t});if(!a)return{data:null,error:o};let s=r??Yf.createNewAbortSignal();if(a.webauthn.type===`create`){let{user:e}=a.webauthn.credential_options.publicKey;if(!e.name){let t=n;if(t)e.name=`${e.id}:${t}`;else{let t=(await this.client.getUser()).data.user,n=t?.user_metadata?.name||t?.email||t?.id||`User`;e.name=`${e.id}:${n}`}}e.displayName||=e.name}switch(a.webauthn.type){case`create`:{let{data:t,error:n}=await np({publicKey:sp(a.webauthn.credential_options.publicKey,i?.create),signal:s});return t?{data:{factorId:e,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:t}},error:null}:{data:null,error:n}}case`request`:{let t=cp(a.webauthn.credential_options.publicKey,i?.request),{data:n,error:r}=await rp(Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:t,signal:s}));return n?{data:{factorId:e,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:n}},error:null}:{data:null,error:r}}}}catch(e){return q(e)?{data:null,error:e}:{data:null,error:new ld(`Unexpected error in challenge`,e)}}}async _verify({challengeId:e,factorId:t,webauthn:n}){return this.client.mfa.verify({factorId:t,challengeId:e,webauthn:n})}async _authenticate({factorId:e,webauthn:{rpId:t=typeof window<`u`?window.location.hostname:void 0,rpOrigins:n=typeof window<`u`?[window.location.origin]:void 0,signal:r}={}},i){if(!t)return{data:null,error:new od(`rpId is required for WebAuthn authentication`)};try{if(!tp())return{data:null,error:new ld(`Browser does not support WebAuthn`,null)};let{data:a,error:o}=await this.challenge({factorId:e,webauthn:{rpId:t,rpOrigins:n},signal:r},{request:i});if(!a)return{data:null,error:o};let{webauthn:s}=a;return this._verify({factorId:e,challengeId:a.challengeId,webauthn:{type:s.type,rpId:t,rpOrigins:n,credential_response:s.credential_response}})}catch(e){return q(e)?{data:null,error:e}:{data:null,error:new ld(`Unexpected error in authenticate`,e)}}}async _register({friendlyName:e,webauthn:{rpId:t=typeof window<`u`?window.location.hostname:void 0,rpOrigins:n=typeof window<`u`?[window.location.origin]:void 0,signal:r}={}},i){if(!t)return{data:null,error:new od(`rpId is required for WebAuthn registration`)};try{if(!tp())return{data:null,error:new ld(`Browser does not support WebAuthn`,null)};let{data:a,error:o}=await this._enroll({friendlyName:e});if(!a)return await this.client.mfa.listFactors().then(t=>t.data?.all.find(t=>t.factor_type===`webauthn`&&t.friendly_name===e&&t.status===`unverified`)).then(e=>e?this.client.mfa.unenroll({factorId:e?.id}):void 0),{data:null,error:o};let{data:s,error:c}=await this._challenge({factorId:a.id,friendlyName:a.friendly_name,webauthn:{rpId:t,rpOrigins:n},signal:r},{create:i});return s?this._verify({factorId:a.id,challengeId:s.challengeId,webauthn:{rpId:t,rpOrigins:n,type:s.webauthn.type,credential_response:s.webauthn.credential_response}}):{data:null,error:c}}catch(e){return q(e)?{data:null,error:e}:{data:null,error:new ld(`Unexpected error in register`,e)}}}};Bf();var up={url:$u,storageKey:ed,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:td,flowType:`implicit`,debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}},dp={},fp=!1,pp=class e{get jwks(){return dp[this.storageKey]?.jwks??{keys:[]}}set jwks(e){dp[this.storageKey]=Object.assign(Object.assign({},dp[this.storageKey]),{jwks:e})}get jwks_cached_at(){return dp[this.storageKey]?.cachedAt??-(2**53-1)}set jwks_cached_at(e){dp[this.storageKey]=Object.assign(Object.assign({},dp[this.storageKey]),{cachedAt:e})}constructor(t){var n;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.lastRefreshFailure=null,this._sessionRemovalEpoch=0,this.initializePromise=null,this._pendingInitNotifications=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lock=null,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;let r=Object.assign(Object.assign({},up),t);
21if(this.storageKey=r.storageKey,this.instanceID=e.nextInstanceID[this.storageKey]??0,e.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!r.debug,typeof r.debug==`function`&&(this.logger=r.debug),this.instanceID>0&&Y()){let e=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(e),this.logDebugMessages&&console.trace(e)}if(this.persistSession=r.persistSession,this.autoRefreshToken=r.autoRefreshToken,this.experimental=r.experimental??{},this.admin=new Lf({url:r.url,headers:r.headers,fetch:r.fetch,experimental:this.experimental}),this.url=r.url,this.headers=r.headers,this.fetch=Vd(r.fetch),this.detectSessionInUrl=r.detectSessionInUrl,this.flowType=r.flowType,this.hasCustomAuthorizationHeader=r.hasCustomAuthorizationHeader,this.throwOnError=r.throwOnError,this.lockAcquireTimeout=r.lockAcquireTimeout,r.lock!=null&&(this.lock=r.lock,fp||(fp=!0,console.warn(`${this._logPrefix()} The "lock" option is deprecated and will be removed in v3. The client now coordinates session refreshes without a lock, so most apps can drop the option. See https://github.com/supabase/supabase-js/blob/master/packages/core/auth-js/migrations/lockless-coordination.md`))),this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=-(2**53-1)),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new lp(this),recoveryCodes:{getStatus:this._getRecoveryCodesStatus.bind(this),generate:this._generateRecoveryCodes.bind(this),verify:this._verifyRecoveryCode.bind(this),regenerate:this._regenerateRecoveryCodes.bind(this),unenroll:this._unenrollRecoveryCodes.bind(this)}},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.passkey={startRegistration:this._startPasskeyRegistration.bind(this),verifyRegistration:this._verifyPasskeyRegistration.bind(this),startAuthentication:this._startPasskeyAuthentication.bind(this),verifyAuthentication:this._verifyPasskeyAuthentication.bind(this),list:this._listPasskeys.bind(this),update:this._updatePasskey.bind(this),delete:this._deletePasskey.bind(this)},this.persistSession?(r.storage?this.storage=r.storage:zd()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Rf(this.memoryStorage)),r.userStorage&&(this.userStorage=r.userStorage)):(this.memoryStorage={},this.storage=Rf(this.memoryStorage)),Y()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(e){console.error(`Failed to create a new BroadcastChannel, multi-tab state changes will not be available`,e)}(n=this.broadcastChannel)==null||n.addEventListener(`message`,async e=>{this._debug(`received broadcast notification from other tab or client`,e),(e.data.event===`TOKEN_REFRESHED`||e.data.event===`SIGNED_IN`)&&(this.lastRefreshFailure=null);try{await this._notifyAllSubscribers(e.data.event,e.data.session,!1)}catch(e){this._debug(`#broadcastChannel`,`error`,e)}})}r.skipAutoInitialize||this.initialize().catch(e=>{this._debug(`#initialize()`,`error`,e)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(e){if(this.throwOnError&&e&&e.error)throw e.error;return e}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${Xu}) ${new Date().toISOString()}`}_debug(...e){return this.logDebugMessages&&this.logger(this._logPrefix(),...e),this}async initialize(){if(this.initializePromise)return await this.initializePromise;this._pendingInitNotifications=[],this.initializePromise=(async()=>this.lock==null?await this._initialize():await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))();
21let e=await this.initializePromise,t=this._pendingInitNotifications??[];this._pendingInitNotifications=null;for(let e of t)await this._notifyAllSubscribers(e.event,e.session,e.broadcast);return e}async _initialize(){try{let e={},t=`none`;if(Y()&&(e=Bd(window.location.href),this._isImplicitGrantCallback(e)?t=`implicit`:await this._isPKCECallback(e)&&(t=`pkce`)),Y()&&this.detectSessionInUrl&&t!==`none`){let{data:n,error:r}=await this._getSessionFromURL(e,t);if(r){if(this._debug(`#_initialize()`,`error detecting session from URL`,r),gd(r)){let e=r.details?.code;if(e===`identity_already_exists`||e===`identity_not_found`||e===`single_identity_not_deletable`)return{error:r}}return{error:r}}let{session:i,redirectType:a}=n;return this._debug(`#_initialize()`,`detected session in URL`,i,`redirect type`,a),await this._saveSession(i),setTimeout(async()=>{a===`recovery`?await this._notifyAllSubscribers(`PASSWORD_RECOVERY`,i):await this._notifyAllSubscribers(`SIGNED_IN`,i)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(e){return q(e)?this._returnResult({error:e}):this._returnResult({error:new ld(`Unexpected error during initialization`,e)})}finally{await this._handleVisibilityChange(),this._debug(`#_initialize()`,`end`)}}async signInAnonymously(e){try{let{data:t,error:n}=await X(this.fetch,`POST`,`${this.url}/signup`,{headers:this.headers,body:{data:e?.options?.data??{},gotrue_meta_security:{captcha_token:e?.options?.captchaToken}},xform:kf});if(n||!t)return this._returnResult({data:{user:null,session:null},error:n});let r=t.session,i=t.user;return t.session&&(await this._saveSession(t.session),await this._notifyAllSubscribers(`SIGNED_IN`,r)),this._returnResult({data:{user:i,session:r},error:null})}catch(e){if(q(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signUp(e){let t=null;try{let n;if(`email`in e){let{email:r,password:i,options:a}=e,o=null,s=null;this.flowType===`pkce`&&([o,s,t]=await this._getCodeChallengeAndMethod()),n=await X(this.fetch,`POST`,`${this.url}/signup`,{headers:this.headers,redirectTo:this._maybeAppendFlowIdToRedirect(a?.emailRedirectTo,t),body:{email:r,password:i,data:a?.data??{},gotrue_meta_security:{captcha_token:a?.captchaToken},code_challenge:o,code_challenge_method:s},xform:kf})}else if(`phone`in e){let{phone:t,password:r,options:i}=e;n=await X(this.fetch,`POST`,`${this.url}/signup`,{headers:this.headers,body:{phone:t,password:r,data:i?.data??{},channel:i?.channel??`sms`,gotrue_meta_security:{captcha_token:i?.captchaToken}},xform:kf})}else throw new md(`You must provide either an email or phone number and a password`);let{data:r,error:i}=n;if(i||!r)return await lf(this.storage,this.storageKey,t),this._returnResult({data:{user:null,session:null},error:i});let a=r.session,o=r.user;return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers(`SIGNED_IN`,a)),this._returnResult({data:{user:o,session:a},error:null})}catch(e){if(await lf(this.storage,this.storageKey,t),q(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signInWithPassword(e){try{let t;if(`email`in e){let{email:n,password:r,options:i}=e;t=await X(this.fetch,`POST`,`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:n,password:r,gotrue_meta_security:{captcha_token:i?.captchaToken}},xform:Af})}else if(`phone`in e){let{phone:n,password:r,options:i}=e;t=await X(this.fetch,`POST`,`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:n,password:r,gotrue_meta_security:{captcha_token:i?.captchaToken}},xform:Af})}else throw new md(`You must provide either an email or phone number and a password`);let{data:n,error:r}=t;if(r)return this._returnResult({data:{user:null,session:null},error:r});if(!n||!n.session||!n.user){let e=new pd;return this._returnResult({data:{user:null,session:null},error:e})}return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers(`SIGNED_IN`,n.session)),this._returnResult({data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:r})}catch(e){if(q(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signInWithOAuth(e){return await this._handleProviderSignIn(e.provider,{redirectTo:e.options?.redirectTo,scopes:e.options?.scopes,queryParams:e.options?.queryParams,skipBrowserRedirect:e.options?.skipBrowserRedirect})}async exchangeCodeForSession(e,t){return await this.initializePromise,this.lock==null?this._exchangeCodeForSession(e,t):this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(e,t))}async signInWithWeb3(e){let{chain:t}=e;switch(t){case`ethereum`:return await this.signInWithEthereum(e);case`solana`:return await this.signInWithSolana(e);default:throw Error(`@supabase/auth-js: Unsupported chain "${t}"`)}}async signInWithEthereum(e){let t,n;if(`message`in e)t=e.message,n=e.signature;else{let{chain:r,wallet:i,statement:a,options:o}=e,s;if(!Y()){if(typeof i!=`object`||!o?.url)throw Error(`@supabase/auth-js: Both wallet and url must be specified in non-browser environments.`);s=i}else if(typeof i==`object`)s=i;else{let e=window;if(`ethereum`in e&&typeof e.ethereum==`object`&&`request`in e.ethereum&&typeof e.ethereum.request==`function`)s=e.ethereum;else throw Error(`@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.`)}let c=new URL(o?.url??window.location.href),l=await s.request({method:`eth_requestAccounts`}).then(e=>e).catch(()=>{throw Error(`@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid`)});if(!l||l.length===0)throw Error(`@supabase/auth-js: No accounts available. Please ensure the wallet is connected.`);let u=Vf(l[0]),d=o?.signInWithEthereum?.chainId;d||=Hf(await s.request({method:`eth_chainId`})),t=Wf({domain:c.host,address:u,statement:a,uri:c.href,version:`1`,chainId:d,nonce:o?.signInWithEthereum?.nonce,issuedAt:o?.signInWithEthereum?.issuedAt??new Date,expirationTime:o?.signInWithEthereum?.expirationTime,notBefore:o?.signInWithEthereum?.notBefore,requestId:o?.signInWithEthereum?.requestId,resources:o?.signInWithEthereum?.resources}),n=await s.request({method:`personal_sign`,params:[Uf(t),u]})}try{let{data:r,error:i}=await X(this.fetch,`POST`,`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:`ethereum`,message:t,signature:n},e.options?.captchaToken?{gotrue_meta_security:{captcha_token:e.options?.captchaToken}}:null),xform:kf});if(i)throw i;if(!r||!r.session||!r.user){let e=new pd;return this._returnResult({data:{user:null,session:null},error:e})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers(`SIGNED_IN`,r.session)),this._returnResult({data:Object.assign({},r),error:i})}catch(e){if(q(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signInWithSolana(e){let t,n;if(`message`in e)t=e.message,n=e.signature;else{let{chain:r,wallet:i,statement:a,options:o}=e,s;if(!Y()){if(typeof i!=`object`||!o?.url)throw Error(`@supabase/auth-js: Both wallet and url must be specified in non-browser environments.`);s=i}else if(typeof i==`object`)s=i;else{let e=window;if(`solana`in e&&typeof e.solana==`object`&&(`signIn`in e.solana&&typeof e.solana.signIn==`function`||`signMessage`in e.
21solana&&typeof e.solana.signMessage==`function`))s=e.solana;else throw Error(`@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.`)}let c=new URL(o?.url??window.location.href);if(`signIn`in s&&s.signIn){let e=await s.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},o?.signInWithSolana),{version:`1`,domain:c.host,uri:c.href}),a?{statement:a}:null)),r;if(Array.isArray(e)&&e[0]&&typeof e[0]==`object`)r=e[0];else if(e&&typeof e==`object`&&`signedMessage`in e&&`signature`in e)r=e;else throw Error(`@supabase/auth-js: Wallet method signIn() returned unrecognized value`);if(`signedMessage`in r&&`signature`in r&&(typeof r.signedMessage==`string`||r.signedMessage instanceof Uint8Array)&&r.signature instanceof Uint8Array)t=typeof r.signedMessage==`string`?r.signedMessage:new TextDecoder().decode(r.signedMessage),n=r.signature;else throw Error(`@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields`)}else{if(!(`signMessage`in s)||typeof s.signMessage!=`function`||!(`publicKey`in s)||typeof s!=`object`||!s.publicKey||!(`toBase58`in s.publicKey)||typeof s.publicKey.toBase58!=`function`)throw Error(`@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API`);t=[`${c.host} wants you to sign in with your Solana account:`,s.publicKey.toBase58(),...a?[``,a,``]:[``],`Version: 1`,`URI: ${c.href}`,`Issued At: ${o?.signInWithSolana?.issuedAt??new Date().toISOString()}`,...o?.signInWithSolana?.notBefore?[`Not Before: ${o.signInWithSolana.notBefore}`]:[],...o?.signInWithSolana?.expirationTime?[`Expiration Time: ${o.signInWithSolana.expirationTime}`]:[],...o?.signInWithSolana?.chainId?[`Chain ID: ${o.signInWithSolana.chainId}`]:[],...o?.signInWithSolana?.nonce?[`Nonce: ${o.signInWithSolana.nonce}`]:[],...o?.signInWithSolana?.requestId?[`Request ID: ${o.signInWithSolana.requestId}`]:[],...o?.signInWithSolana?.resources?.length?[`Resources`,...o.signInWithSolana.resources.map(e=>`- ${e}`)]:[]].join(` 22`);let e=await s.signMessage(new TextEncoder().encode(t),`utf8`);if(!e||!(e instanceof Uint8Array))throw Error(`@supabase/auth-js: Wallet signMessage() API returned an recognized value`);n=e}}try{let{data:r,error:i}=await X(this.fetch,`POST`,`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:`solana`,message:t,signature:Fd(n)},e.options?.captchaToken?{gotrue_meta_security:{captcha_token:e.options?.captchaToken}}:null),xform:kf});if(i)throw i;if(!r||!r.session||!r.user){let e=new pd;return this._returnResult({data:{user:null,session:null},error:e})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers(`SIGNED_IN`,r.session)),this._returnResult({data:Object.assign({},r),error:i})}catch(e){if(q(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async _exchangeCodeForSession(e,t){let n=t?.flowId!=null,r=n?tf(t?.flowId):Y()?tf(Bd(window.location.href)[ad]):null;n&&!r&&this._debug(`#_exchangeCodeForSession()`,`provided flowId is not a valid flow id`,t?.flowId);let{verifier:i,flowId:a}=n&&!r?{verifier:null,flowId:null}:await cf(this.storage,this.storageKey,r),[o,s]=(i??``).split(`/`);try{if(!o&&this.flowType===`pkce`)throw new vd;let{data:t,error:n}=await X(this.fetch,`POST`,`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:o},xform:kf});if(await lf(this.storage,this.storageKey,a),n)throw n;if(!t||!t.session||!t.user){let e=new pd;return this._returnResult({data:{user:null,session:null,redirectType:null},error:e})}return t.session&&(await this._saveSession(t.session),await this._notifyAllSubscribers(s===`recovery`?`PASSWORD_RECOVERY`:`SIGNED_IN`,t.session)),this._returnResult({data:Object.assign(Object.assign({},t),{redirectType:s??null}),error:n})}catch(e){if(await lf(this.storage,this.storageKey,a),q(e))return this._returnResult({data:{user:null,session:null,redirectType:null},error:e});throw e}}async signInWithIdToken(e){try{let{options:t,provider:n,token:r,access_token:i,nonce:a}=e,{data:o,error:s}=await X(this.fetch,`POST`,`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:r,access_token:i,nonce:a,gotrue_meta_security:{captcha_token:t?.captchaToken}},xform:kf});if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!o||!o.session||!o.user){let e=new pd;return this._returnResult({data:{user:null,session:null},error:e})}return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers(`SIGNED_IN`,o.session)),this._returnResult({data:o,error:s})}catch(e){if(q(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signInWithOtp(e){let t=null;try{if(`email`in e){let{email:n,options:r}=e,i=null,a=null;this.flowType===`pkce`&&([i,a,t]=await this._getCodeChallengeAndMethod());let{error:o}=await X(this.fetch,`POST`,`${this.url}/otp`,{headers:this.headers,body:{email:n,data:r?.data??{},create_user:r?.shouldCreateUser??!0,gotrue_meta_security:{captcha_token:r?.captchaToken},code_challenge:i,code_challenge_method:a},redirectTo:this._maybeAppendFlowIdToRedirect(r?.emailRedirectTo,t)});return this._returnResult({data:{user:null,session:null},error:o})}if(`phone`in e){let{phone:t,options:n}=e,{data:r,error:i}=await X(this.fetch,`POST`,`${this.url}/otp`,{headers:this.headers,body:{phone:t,data:n?.data??{},create_user:n?.shouldCreateUser??!0,gotrue_meta_security:{captcha_token:n?.captchaToken},channel:n?.channel??`sms`}});return this._returnResult({data:{user:null,session:null,messageId:r?.message_id},error:i})}throw new md(`You must provide either an email or phone number.`)}
22catch(e){if(await lf(this.storage,this.storageKey,t),q(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async verifyOtp(e){try{let t,n;`options`in e&&(t=e.options?.redirectTo,n=e.options?.captchaToken);let{data:r,error:i}=await X(this.fetch,`POST`,`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:n}}),redirectTo:t,xform:kf});if(i)throw i;if(!r)throw Error(`An error occurred on token verification.`);let a=r.session,o=r.user;return a?.access_token&&(await this._saveSession(a),await this._notifyAllSubscribers(e.type==`recovery`?`PASSWORD_RECOVERY`:`SIGNED_IN`,a)),this._returnResult({data:{user:o,session:a},error:null})}catch(e){if(q(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signInWithSSO(e){let t=null;try{let n=null,r=null;this.flowType===`pkce`&&([n,r,t]=await this._getCodeChallengeAndMethod());let i=await X(this.fetch,`POST`,`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},`providerId`in e?{provider_id:e.providerId}:null),`domain`in e?{domain:e.domain}:null),{redirect_to:this._maybeAppendFlowIdToRedirect(e.options?.redirectTo,t)}),e?.options?.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:n,code_challenge_method:r}),headers:this.headers,xform:Mf});return i.data?.url&&Y()&&!e.options?.skipBrowserRedirect&&window.location.assign(i.data.url),this._returnResult(i)}catch(e){if(await lf(this.storage,this.storageKey,t),q(e))return this._returnResult({data:null,error:e});throw e}}async reauthenticate(){return await this.initializePromise,this.lock==null?await this._reauthenticate():await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{let{data:{session:t},error:n}=e;if(n)throw n;if(!t)throw new dd;let{error:r}=await X(this.fetch,`GET`,`${this.url}/reauthenticate`,{headers:this.headers,jwt:t.access_token});return this._returnResult({data:{user:null,session:null},error:r})})}catch(e){if(q(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async resend(e){let t=null;try{let n=`${this.url}/resend`;if(`email`in e){let{email:r,type:i,options:a}=e,o=null,s=null;this.flowType===`pkce`&&([o,s,t]=await this._getCodeChallengeAndMethod());let{error:c}=await X(this.fetch,`POST`,n,{headers:this.headers,body:{email:r,type:i,gotrue_meta_security:{captcha_token:a?.captchaToken},code_challenge:o,code_challenge_method:s},redirectTo:this._maybeAppendFlowIdToRedirect(a?.emailRedirectTo,t)});return c&&await lf(this.storage,this.storageKey,t),this._returnResult({data:{user:null,session:null},error:c})}if(`phone`in e){let{phone:t,type:r,options:i}=e,{data:a,error:o}=await X(this.fetch,`POST`,n,{headers:this.headers,body:{phone:t,type:r,gotrue_meta_security:{captcha_token:i?.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:a?.message_id},error:o})}throw new md(`You must provide either an email or phone number and a type`)}catch(e){if(await lf(this.storage,this.storageKey,t),q(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async getSession(){return await this.initializePromise,this.lock==null?await this._useSession(async e=>e):await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async e=>e))}async _acquireLock(e,t){this._debug(`#_acquireLock`,`begin`,e);try{if(this.lockAcquired){let e=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),n=(async()=>(await e,await t()))();return this.pendingInLock.push((async()=>{try{await n}catch{}})()),n}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug(`#_acquireLock`,`lock acquired for storage key`,this.storageKey);try{this.lockAcquired=!0;let e=t();for(this.pendingInLock.push((async()=>{try{await e}catch{}})()),await e;this.pendingInLock.length;){let e=[...this.pendingInLock];await Promise.all(e),this.pendingInLock.splice(0,e.length)}return await e}finally{this._debug(`#_acquireLock`,`lock released for storage key`,this.storageKey),this.lockAcquired=!1}})}finally{this._debug(`#_acquireLock`,`end`)}}async _useSession(e){this._debug(`#_useSession`,`begin`);try{return await e(await this.__loadSession())}finally{this._debug(`#_useSession`,`end`)}}async __loadSession(){this._debug(`#__loadSession()`,`begin`),this.lock!=null&&!this.lockAcquired&&this._debug(`#__loadSession()`,`used outside of an acquired lock!`,Error().stack);try{let e=null,t=await Wd(this.storage,this.storageKey);if(this._debug(`#getSession()`,`session from storage`,t),t!==null&&(this._isValidSession(t)?e=t:(this._debug(`#getSession()`,`session from storage is not val
22id`),await this._removeSession())),!e)return{data:{session:null},error:null};let n=e.expires_at?e.expires_at*1e3-Date.now()<Zu:!1;if(this._debug(`#__loadSession()`,`session has${n?``:` not`} expired`,`expires_at`,e.expires_at),!n){if(this.userStorage){let t=await Wd(this.userStorage,this.storageKey+`-user`);t?.user?e.user=t.user:e.user=xf()}if(this.storage.isServer&&e.user&&!e.user.__isUserNotAvailableProxy){let t={value:this.suppressGetSessionWarning};e.user=Sf(e.user,t),t.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:e},error:null}}let{data:r,error:i}=await this._callRefreshToken(e.refresh_token);if(i){if(e.expires_at&&e.expires_at*1e3>Date.now()){let t=await Wd(this.storage,this.storageKey);if(t&&t.refresh_token===e.refresh_token)return this._returnResult({data:{session:e},error:null})}return this._returnResult({data:{session:null},error:i})}return this._returnResult({data:{session:r},error:null})}finally{this._debug(`#__loadSession()`,`end`)}}async getUser(e){if(e)return await this._getUser(e);await this.initializePromise;let t;return t=this.lock==null?await this._getUser():await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser()),t.data.user&&(this.suppressGetSessionWarning=!0),t}async _getUser(e){try{return e?await X(this.fetch,`GET`,`${this.url}/user`,{headers:this.headers,jwt:e,xform:jf}):await this._useSession(async e=>{let{data:t,error:n}=e;if(n)throw n;return!t.session?.access_token&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new dd}:await X(this.fetch,`GET`,`${this.url}/user`,{headers:this.headers,jwt:t.session?.access_token??void 0,xform:jf})})}catch(e){if(q(e))return fd(e)&&await this._removeSession(),this._returnResult({data:{user:null},error:e});throw e}}async updateUser(e,t={}){return await this.initializePromise,this.lock==null?await this._updateUser(e,t):await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(e,t))}async _updateUser(e,t={}){let n=null;try{return await this._useSession(async r=>{let{data:i,error:a}=r;if(a)throw a;if(!i.session)throw new dd;let o=i.session,s=null,c=null;this.flowType===`pkce`&&e.email!=null&&([s,c,n]=await this._getCodeChallengeAndMethod());let{data:l,error:u}=await X(this.fetch,`PUT`,`${this.url}/user`,{headers:this.headers,redirectTo:this._maybeAppendFlowIdToRedirect(t?.emailRedirectTo,n),body:Object.assign(Object.assign({},e),{code_challenge:s,code_challenge_method:c}),jwt:o.access_token,xform:jf});if(u)throw u;return o.user=l.user,await this._saveSession(o),await this._notifyAllSubscribers(`USER_UPDATED`,o),this._returnResult({data:{user:o.user},error:null})})}catch(e){if(await lf(this.storage,this.storageKey,n),q(e))return this._returnResult({data:{user:null},error:e});throw e}}async setSession(e){return await this.initializePromise,this.lock==null?await this._setSession(e):await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new dd;let t=Date.now()/1e3,n=t,r=!0,i=null,{payload:a}=qd(e.access_token);if(a.exp&&(n=a.exp,r=n<=t),r){let{data:t,error:n}=await this._callRefreshToken(e.refresh_token);if(n)return this._returnResult({data:{user:null,session:null},error:n});if(!t)return{data:{user:null,session:null},error:null};i=t}else{let{data:r,error:a}=await this._getUser(e.access_token);if(a)return this._returnResult({data:{user:null,session:null},error:a});i={access_token:e.access_token,refresh_token:e.refresh_token,user:r.user,token_type:`bearer`,expires_in:n-t,expires_at:n},await this._saveSession(i),await this._notifyAllSubscribers(`SIGNED_IN`,i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(e){if(q(e))return this._returnResult({data:{session:null,user:null},error:e});throw e}}async refreshSession(e){return await this.initializePromise,this.lock==null?await this._refreshSession(e):await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async t=>{if(!e){let{data:n,error:r}=t;if(r)throw r;e=n.session??void 0}if(!e?.refresh_token)throw new dd;let{data:n,error:r}=await this._callRefreshToken(e.refresh_token);return r?this._returnResult({data:{user:null,session:null},error:r}):n?this._returnResult({data:{user:n.user,session:n},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(e){if(q(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async _getSessionFromURL(e,t){try{if(!Y())throw new hd(`No browser detected.`);if(e.error||e.error_description||e.error_code)throw new hd(e.error_description||`Error in URL with unspecified error_description`,{error:e.error||`unspecified_error`,code:e.error_code||`unspecified_code`});switch(t){case`implicit`:if(this.flowType===`pkce`)throw new _d(`Not a valid PKCE flow url.`);break;case`pkce`:if(this.flowType===`implicit`)throw new hd(`Not a valid implicit grant flow url.`)}if(t===`pkce`){if(this._debug(`#_initialize()`,`begin`,`is PKCE flow`,!0),!e.code)throw new _d(`No code detected.`);let{data:t,error:n}=await this._exchangeCodeForSession(e.code,{flowId:e[ad]});if(n)throw n;let r=new URL(window.location.href);return r.searchParams.delete(`code`),r.searchParams.delete(ad),window.history.replaceState(window.history.state,``,r.toString()),{data:{session:t.session,redirectType:t.redirectType??null},error:null}}let{provider_token:n,provider_refresh_token:r,access_token:i,refresh_token:a,expires_in:o,expires_at:s,token_type:c}=e;if(!i||!o||!a||!c)throw new hd(`No session defined in URL`);let l=Math.round(Date.now()/1e3),u=parseInt(o),d=l+u;s&&(d=parseInt(s));let f=d-l;
22f*1e3<=3e4&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${u}s`);let p=d-u;l-p>=120?console.warn(`@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale`,p,d,l):l-p<0&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew`,p,d,l);let{data:m,error:h}=await this._getUser(i);if(h)throw h;let g={provider_token:n,provider_refresh_token:r,access_token:i,expires_in:u,expires_at:d,refresh_token:a,token_type:c,user:m.user};return window.location.hash=``,this._debug(`#_getSessionFromURL()`,`clearing window.location.hash`),this._returnResult({data:{session:g,redirectType:e.type},error:null})}catch(e){if(q(e))return this._returnResult({data:{session:null,redirectType:null},error:e});throw e}}_isImplicitGrantCallback(e){return typeof this.detectSessionInUrl==`function`?this.detectSessionInUrl(new URL(window.location.href),e):!!(e.access_token||e.error||e.error_description||e.error_code)}async _isPKCECallback(e){if(!e.code)return!1;let t=tf(e[ad]);return t&&await Wd(this.storage,rf(this.storageKey,t))?!0:!!await Wd(this.storage,`${this.storageKey}-code-verifier`)}async signOut(e={scope:`global`}){return await this.initializePromise,this.lock==null?await this._signOut(e):await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:`global`}){return await this._useSession(async t=>{let n=async()=>{await this._removeSession()},{data:r,error:i}=t;if(i&&!fd(i))return this._returnResult({error:i});let a=r.session?.access_token;if(a){let{error:t}=await this.admin.signOut(a,e);if(t&&!(cd(t)&&(t.status===404||t.status===401||t.status===403)||fd(t)))return e!==`others`&&await n(),this._returnResult({error:t})}return e!==`others`&&await n(),this._returnResult({error:null})})}onAuthStateChange(e){let t=Ld(),n={id:t,callback:e,unsubscribe:()=>{this._debug(`#unsubscribe()`,`state change callback with id removed`,t),this.stateChangeEmitters.delete(t)}};return this._debug(`#onAuthStateChange()`,`registered callback with id`,t),this.stateChangeEmitters.set(t,n),(async()=>{await this.initializePromise,this.lock==null?await this._emitInitialSession(t):await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(t)})})(),{data:{subscription:n}}}async _emitInitialSession(e){return await this._useSession(async t=>{try{let{data:{session:n},error:r}=t;if(r)throw r;await this.stateChangeEmitters.get(e)?.callback(`INITIAL_SESSION`,n),this._debug(`INITIAL_SESSION`,`callback id`,e,`session`,n)}catch(t){if(await this.stateChangeEmitters.get(e)?.callback(`INITIAL_SESSION`,null),this._debug(`INITIAL_SESSION`,`callback id`,e,`error`,t),Sd(t))return;fd(t)||bd(t)||cd(t)&&(t.code===`refresh_token_not_found`||t.code===`refresh_token_already_used`||t.code===`session_expired`)?console.warn(t):console.error(t)}})}async resetPasswordForEmail(e,t={}){let n=null,r=null,i=null;this.flowType===`pkce`&&([n,r,i]=await this._getCodeChallengeAndMethod(!0));try{return await X(this.fetch,`POST`,`${this.url}/recover`,{body:{email:e,code_challenge:n,code_challenge_method:r,gotrue_meta_security:{captcha_token:t.captchaToken}},headers:this.headers,redirectTo:this._maybeAppendFlowIdToRedirect(t.redirectTo,i)})}catch(e){if(await lf(this.storage,this.storageKey,i),q(e))return this._returnResult({data:null,error:e});throw e}}async getUserIdentities(){try{let{data:e,error:t}=await this.getUser();if(t)throw t;return this._returnResult({data:{identities:e.user.identities??[]},error:null})}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}}async linkIdentity(e){return`token`in e?this.linkIdentityIdToken(e):this.linkIdentityOAuth(e)}async linkIdentityOAuth(e){let t=null;try{let{data:n,error:r}=await this._useSession(async n=>{let{data:r,error:i}=n;if(i)throw i;let{url:a,flowId:o}=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:e.options?.redirectTo,scopes:e.options?.scopes,queryParams:e.options?.queryParams,skipBrowserRedirect:!0});return t=o,await X(this.fetch,`GET`,a,{headers:this.headers,jwt:r.session?.access_token??void 0})});if(r)throw r;return Y()&&!e.options?.skipBrowserRedirect&&window.location.assign(n?.url),this._returnResult({data:{provider:e.provider,url:n?.url,flowId:t},error:null})}catch(n){if(q(n))return this._returnResult({data:{provider:e.provider,url:null,flowId:t},error:n});throw n}}async linkIdentityIdToken(e){return await this._useSession(async t=>{try{let{error:n,data:{session:r}}=t;if(n)throw n;let{options:i,provider:a,token:o,access_token:s,nonce:c}=e,{data:l,error:u}=await X(this.fetch,`POST`,`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:r?.access_token??void 0,body:{provider:a,id_token:o,access_token:s,nonce:c,link_identity:!0,gotrue_meta_security:{captcha_token:i?.captchaToken}},xform:kf});return u?this._returnResult({data:{user:null,session:null},error:u}):!l||!l.session||!l.user?this._returnResult({data:{user:null,session:null},error:new pd}):(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers(`USER_UPDATED`,l.session)),this._returnResult({data:l,error:u}))}catch(e){if(await lf(this.storage,this.storageKey,null),q(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}})}async unlinkIdentity(e){try{return await this._useSession(async t=>{let{data:n,error:r}=t;if(r)throw r;return await X(this.fetch,`DELETE`,`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:n.session?.access_token??void 0})})}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}}async _refreshAccessToken(e){let t=`#_refreshAccessToken()`;this._debug(t,`begin`);try{let n=Date.now();return await Yd(async n=>(n>0&&await Jd(200*2**(n-1)),this._debug(t,`refreshing attempt`,n),await X(this.fetch,`POST`,`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:kf})),(e,t)=>{let r=200*2**e;return t&&bd(t)&&Date.now()+r-n<3e4})}catch(e){if(this._debug(t,`error`,e),q(e))return this._returnResult({data:{session:null,user:null},error:e});throw e}finally{this._debug(t,`end`)}}_isValidSession(e){return typeof e==`object`&&!!e&&`access_token`in e&&`refresh_token`in e&&`expires_at`in e}async _handleProviderSignIn(e,t){let{url:n,flowId:r}=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:t.redirectTo,scopes:t.scopes,queryParams:t.queryParams});return this._debug(`#_handleProviderSignIn()`,`provider`,e,`options`,t,`url`,n),Y()&&!t.skipBrowserRedirect&&window.location.assign(n),{data:{provider:e,url:n,flowId:r},error:null}}async _recoverAndRefresh(){let e=`#_recoverAndRefresh()`;this._debug(e,`begin`);try{let t=await Wd(this.storage,this.storageKey);if(t&&this.userStorage){let e=await Wd(this.userStorage,this.storageKey+`-user`);!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!e&&(e={user:t.user},await Ud(this.userStorage,this.storageKey+`-user`,e)),t.user=e?.user??xf()}else if(t&&!t.user&&!t.user){let e=await Wd(this.storage,this.storageKey+`-user`);e&&e?.user?(t.user=e.user,await Gd(this.storage,this.storageKey+`-user`),await Ud(this.storage,this.storageKey,t)):t.user=xf()}if(this._debug(e,`session from storage`,t),!this._isValidSession(t)){this._debug(e,`session is not val
22id`),t!==null&&await this._removeSession();return}let n=(t.expires_at??1/0)*1e3-Date.now()<Zu;if(this._debug(e,`session has${n?``:` not`} expired with margin of ${Zu}s`),n){if(this.autoRefreshToken&&t.refresh_token){let{error:n}=await this._callRefreshToken(t.refresh_token);n&&(Sd(n)?this._debug(e,`refresh discarded by commit guard`,n):this._debug(e,`refresh failed`,n))}}else if(t.user&&t.user.__isUserNotAvailableProxy===!0)try{let{data:n,error:r}=await this._getUser(t.access_token);!r&&n?.user?(t.user=n.user,await this._saveSession(t),await this._notifyAllSubscribers(`SIGNED_IN`,t)):this._debug(e,`could not get user data, skipping SIGNED_IN notification`)}catch(t){console.error(`Error getting user data:`,t),this._debug(e,`error getting user data, skipping SIGNED_IN notification`,t)}else await this._notifyAllSubscribers(`SIGNED_IN`,t)}catch(t){this._debug(e,`error`,t),bd(t)?console.warn(t):console.error(t);return}finally{this._debug(e,`end`)}}async _callRefreshToken(e){var t,n;if(!e)throw new dd;if(this.refreshingDeferred)return this.refreshingDeferred.promise;if(this.lastRefreshFailure&&this.lastRefreshFailure.refreshToken===e&&Date.now()<this.lastRefreshFailure.expiresAt)return this._debug(`#_callRefreshToken()`,`returning cached failure (cooldown active)`),this.lastRefreshFailure.result;let r=`#_callRefreshToken()`;this._debug(r,`begin`);try{this.refreshingDeferred=new Kd,this.refreshingDeferred.promise.then(void 0,()=>{});let t=await Wd(this.storage,this.storageKey),{data:n,error:i}=await this._refreshAccessToken(e);if(i)throw i;if(!n.session)throw new dd;let a=await Wd(this.storage,this.storageKey);if(t!==null&&(a===null||a.refresh_token!==t.refresh_token)){this._debug(r,`commit guard: storage changed since refresh started, discarding rotated tokens`,{startedWith:`present`,nowHolds:a?`replaced`:`cleared`});let e={data:null,error:new xd};return this.refreshingDeferred.resolve(e),e}let o=this._sessionRemovalEpoch;if(await this._saveSession(n.session),this._sessionRemovalEpoch!==o){this._debug(r,`commit guard (post-save): _removeSession ran during _saveSession, undoing write`),await Gd(this.storage,this.storageKey),this.userStorage&&await Gd(this.userStorage,this.storageKey+`-user`);let e={data:null,error:new xd};return this.refreshingDeferred.resolve(e),e}await this._notifyAllSubscribers(`TOKEN_REFRESHED`,n.session);let s={data:n.session,error:null};return this.lastRefreshFailure=null,this.refreshingDeferred.resolve(s),s}catch(i){if(this._debug(r,`error`,i),q(i)){let n={data:null,error:i};if(!bd(i)){let e=await Wd(this.storage,this.storageKey);e?.expires_at&&e.expires_at*1e3>Date.now()?this._debug(r,`proactive refresh failed, access token still valid â preserving session`):await this._removeSession()}return this.lastRefreshFailure={refreshToken:e,result:n,expiresAt:Date.now()+Qu},(t=this.refreshingDeferred)==null||t.resolve(n),n}throw(n=this.refreshingDeferred)==null||n.reject(i),i}finally{this.refreshingDeferred=null,this._debug(r,`end`)}}async _notifyAllSubscribers(e,t,n=!0){if(this._pendingInitNotifications!==null&&n){this._pendingInitNotifications.push({event:e,session:t,broadcast:n});return}let r=`#_notifyAllSubscribers(${e})`;this._debug(r,`begin`,t,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:e,session:t});let r=[],i=Array.from(this.stateChangeEmitters.values()).map(async n=>{try{await n.callback(e,t)}catch(e){r.push(e)}});if(await Promise.all(i),r.length>0){for(let e=0;e<r.length;e+=1)console.error(r[e]);throw r[0]}}finally{this._debug(r,`end`)}}async _saveSession(e){this._debug(`#_saveSession()`,e),this.suppressGetSessionWarning=!0;let t=Object.assign({},e),n=t.user&&t.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&t.user&&await Ud(this.userStorage,this.storageKey+`-user`,{user:t.user});let e=Object.assign({},t);delete e.user;let r=Cf(e);await Ud(this.storage,this.storageKey,r)}else{let e=Cf(t);await Ud(this.storage,this.storageKey,e)}}async _removeSession(){this._sessionRemovalEpoch+=1,this._debug(`#_removeSession()`),this.lastRefreshFailure=null,this.suppressGetSessionWarning=!1,await Gd(this.storage,this.storageKey),await uf(this.storage,this.storageKey),await Gd(this.storage,this.storageKey+`-user`),this.userStorage&&await Gd(this.userStorage,this.storageKey+`-user`),await this._notifyAllSubscribers(`SIGNED_OUT`,null)}_removeVisibilityChangedCallback(){this._debug(`#_removeVisibilityChangedCallback()`);let e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&Y()&&window!=null&&window.removeEventListener&&window.removeEventListener(`visibilitychange`,e)}
22catch(e){console.error(`removing visibilitychange callback failed`,e)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug(`#_startAutoRefresh()`);let e=setInterval(()=>this._autoRefreshTokenTick(),K);this.autoRefreshTicker=e,e&&typeof e==`object`&&typeof e.unref==`function`?e.unref():typeof Deno<`u`&&typeof Deno.unrefTimer==`function`&&Deno.unrefTimer(e);let t=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=t,t&&typeof t==`object`&&typeof t.unref==`function`?t.unref():typeof Deno<`u`&&typeof Deno.unrefTimer==`function`&&Deno.unrefTimer(t)}async _stopAutoRefresh(){this._debug(`#_stopAutoRefresh()`);let e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e);let t=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,t&&clearTimeout(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async dispose(){var e;this._removeVisibilityChangedCallback(),await this._stopAutoRefresh(),(e=this.broadcastChannel)==null||e.close(),this.broadcastChannel=null,this.stateChangeEmitters.clear()}async _autoRefreshTokenTick(){if(this._debug(`#_autoRefreshTokenTick()`,`begin`),this.lock!=null){try{await this._acquireLock(0,async()=>{try{let e=Date.now();try{return await this._useSession(async t=>{let{data:{session:n}}=t;if(!n||!n.refresh_token||!n.expires_at){this._debug(`#_autoRefreshTokenTick()`,`no session`);return}let r=Math.floor((n.expires_at*1e3-e)/K);this._debug(`#_autoRefreshTokenTick()`,`access token expires in ${r} ticks, a tick lasts ${K}ms, refresh threshold is 3 ticks`),r<=3&&await this._callRefreshToken(n.refresh_token)})}catch(e){console.error(`Auto refresh tick failed with error. This is likely a transient error.`,e)}}finally{this._debug(`#_autoRefreshTokenTick()`,`end`)}})}catch(e){if(e instanceof zf)this._debug(`auto refresh token tick lock not available`);else throw e}return}if(this.refreshingDeferred!==null){this._debug(`#_autoRefreshTokenTick()`,`refresh already in flight, skipping`);return}try{let e=Date.now();try{await this._useSession(async t=>{let{data:{session:n}}=t;if(!n||!n.refresh_token||!n.expires_at){this._debug(`#_autoRefreshTokenTick()`,`no session`);return}let r=Math.floor((n.expires_at*1e3-e)/K);this._debug(`#_autoRefreshTokenTick()`,`access token expires in ${r} ticks, a tick lasts ${K}ms, refresh threshold is 3 ticks`),r<=3&&await this._callRefreshToken(n.refresh_token)})}catch(e){console.error(`Auto refresh tick failed with error. This is likely a transient error.`,e)}}finally{this._debug(`#_autoRefreshTokenTick()`,`end`)}}async _handleVisibilityChange(){if(this._debug(`#_handleVisibilityChange()`),!Y()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(e){this._debug(`#visibilityChangedCallback`,`error`,e)}},window==null||window.addEventListener(`visibilitychange`,this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error(`_handleVisibilityChange`,e)}}async _onVisibilityChanged(e){let t=`#_onVisibilityChanged(${e})`;if(this._debug(t,`visibilityState`,document.visibilityState),document.visibilityState===`visible`){if(this.autoRefreshToken&&this._startAutoRefresh(),!e)if(await this.initializePromise,this.lock!=null)await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!==`visible`){this._debug(t,`acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting`);return}await this._recoverAndRefresh()});else{if(document.visibilityState!==`visible`){this._debug(t,`visibilityState is no longer visible, skipping recovery`);return}await this._recoverAndRefresh()}}else document.visibilityState===`hidden`&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,t,n){let r=n?.redirectTo,i=null,a=null,o=null;this.flowType===`pkce`&&([i,a,o]=await this._getCodeChallengeAndMethod(),r=this._maybeAppendFlowIdToRedirect(r,o));let s=[`provider=${encodeURIComponent(t)}`];if(r&&s.push(`redirect_to=${encodeURIComponent(r)}`),n?.scopes&&s.push(`scopes=${encodeURIComponent(n.scopes)}`),i!=null&&a!=null){let e=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(a)}`});s.push(e.toString())}if(n?.queryParams){let e=new URLSearchParams(n.queryParams);s.push(e.toString())}return n?.skipBrowserRedirect&&s.push(`skip_http_redirect=${n.skipBrowserRedirect}`),{url:`${e}?${s.join(`&`)}`,flowId:o}}_maybeAppendFlowIdToRedirect(e,t){return!e||!t||!this.experimental.appendPkceFlowIdToRedirects?e??void 0:df(e,t)}async _getCodeChallengeAndMethod(e=!1){return ff(this.storage,this.storageKey,e,e=>this._debug(`#_getCodeChallengeAndMethod()`,`evicted oldest pending PKCE verifier slot`,e))}async _unenroll(e){try{return await this._useSession(async t=>{let{data:n,error:r}=t;return r?this._returnResult({data:null,error:r}):await X(this.fetch,`DELETE`,`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:n?.session?.access_token})})}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}}async _enroll(e){try{return await this._useSession(async t=>{let{data:n,error:r}=t;if(r)return this._returnResult({data:null,error:r});let i=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType===`phone`?{phone:e.phone}:e.factorType===`totp`?{issuer:e.issuer}:{}),{data:a,error:o}=await X(this.fetch,`POST`,`${this.url}/factors`,{body:i,headers:this.headers,jwt:n?.session?.access_token});return o?this._returnResult({data:null,error:o}):(e.factorType===`totp`&&a.type===`totp`&&a?.totp?.qr_code&&(a.totp.qr_code=`data:image/svg+xml;utf-8,${a.totp.qr_code}`),this._returnResult({data:a,error:null}))})}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}}async _verify(e){let t=async()=>{try{return await this._useSession(async t=>{let{data:n,error:r}=t;if(r)return this._returnResult({data:null,error:r});let i=Object.assign({challenge_id:e.challengeId},`webauthn`in e?{webauthn:Object.assign(Object.assign({},e.webauthn),{credential_response:e.webauthn.type===`create`?Qf(e.webauthn.credential_response):$f(e.webauthn.credential_response)})}:{code:e.code}),{data:a,error:o}=await X(this.fetch,`POST`,`${this.url}/factors/${e.factorId}/verify`,{body:i,headers:this.headers,jwt:n?.session?.access_token});return o?this._returnResult({data:null,error:o}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers(`MFA_CHALLENGE_VERIFIED`,a),this._returnResult({data:a,error:o}))})}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}};return this.lock==null?t():this._acquireLock(this.lockAcquireTimeout,t)}async _challenge(e){let t=async()=>{try{return await this._useSession(async t=>{let{data:n,error:r}=t;if(r)return this._returnResult({data:null,error:r});let i=await X(this.fetch,`POST`,`${this.url}/factors/${e.factorId}/challenge`,{body:e,headers:this.headers,jwt:n?.session?.access_token});if(i.error)return i;let{data:a}=i;if(a.type!==`webauthn`)return{data:a,error:null};switch(a.webauthn.type){case`create`:return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:Xf(a.webauthn.credential_options.publicKey)})})}),error:null};case`request`:return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:Zf(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}};return this.lock==null?t():this._acquireLock(this.lockAcquireTimeout,t)}async _challengeAndVerify(e){let{data:t,error:n}=await this._challenge({factorId:e.factorId});return n?this._returnResult({data:null,error:n}):await this._verify({factorId:e.factorId,challengeId:t.id,code:e.code})}async _listFactors(){let{data:{user:e},error:t}=await this.getUser();if(t)return{data:null,error:t};let n={all:[],phone:[],totp:[],webauthn:[],recovery_code:[]};for(let t of e?.factors??[])n.all.push(t),t.status===`verified`&&t.factor_type in n&&Array.isArray(n[t.factor_type])&&n[t.factor_type].push(t);return{data:n,error:null}}async _getAuthenticatorAssuranceLevel(e){if(e)try{let{payload:t}=qd(e),n=null;t.aal&&(n=t.aal);let r=n,{data:{user:i},error:a}=await this.getUser(e);if(a)return this._returnResult({data:null,error:a});((i?.factors)?.filter(e=>e.status===`verified`)??[]).length>0&&(r=`aal2`);let o=t.amr||[];return{data:{currentLevel:n,nextLevel:r,currentAuthenticationMethods:o},error:null}}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}let{data:{session:t},error:n}
22=await this.getSession();if(n)return this._returnResult({data:null,error:n});if(!t)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};let{payload:r}=qd(t.access_token),i=null;r.aal&&(i=r.aal);let a=i;(t.user.factors?.filter(e=>e.status===`verified`)??[]).length>0&&(a=`aal2`);let o=r.amr||[];return{data:{currentLevel:i,nextLevel:a,currentAuthenticationMethods:o},error:null}}async _getRecoveryCodesStatus(){bf(this.experimental);try{return await this._useSession(async e=>{let{data:t,error:n}=e;if(n)return this._returnResult({data:null,error:n});let{data:r,error:i}=await X(this.fetch,`GET`,`${this.url}/factors/recovery-codes`,{headers:this.headers,jwt:t?.session?.access_token});return i?this._returnResult({data:null,error:i}):this._returnResult({data:r,error:null})})}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}}async _generateRecoveryCodes(e){bf(this.experimental);try{return await this._useSession(async t=>{let{data:n,error:r}=t;if(r)return this._returnResult({data:null,error:r});let{data:i,error:a}=await X(this.fetch,`POST`,`${this.url}/factors/recovery-codes`,{body:e?.friendlyName?{friendly_name:e.friendlyName}:void 0,headers:this.headers,jwt:n?.session?.access_token});return a?this._returnResult({data:null,error:a}):this._returnResult({data:i,error:null})})}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}}async _verifyRecoveryCode(e){bf(this.experimental);let t=async()=>{try{return await this._useSession(async t=>{let{data:n,error:r}=t;if(r)return this._returnResult({data:null,error:r});let{data:i,error:a}=await X(this.fetch,`POST`,`${this.url}/factors/recovery-codes/verify`,{body:{code:e.code},headers:this.headers,jwt:n?.session?.access_token});if(a)return this._returnResult({data:null,error:a});let o=Object.assign({expires_at:Id(i.expires_in)},i);return await this._saveSession(o),await this._notifyAllSubscribers(`MFA_CHALLENGE_VERIFIED`,o),this._returnResult({data:i,error:null})})}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}};return this.lock==null?t():this._acquireLock(this.lockAcquireTimeout,t)}async _regenerateRecoveryCodes(){bf(this.experimental);try{return await this._useSession(async e=>{let{data:t,error:n}=e;if(n)return this._returnResult({data:null,error:n});let{data:r,error:i}=await X(this.fetch,`POST`,`${this.url}/factors/recovery-codes/regenerate`,{headers:this.headers,jwt:t?.session?.access_token});return i?this._returnResult({data:null,error:i}):this._returnResult({data:r,error:null})})}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}}async _unenrollRecoveryCodes(){bf(this.experimental);try{return await this._useSession(async e=>{let{data:t,error:n}=e;if(n)return this._returnResult({data:null,error:n});let{data:r,error:i}=await X(this.fetch,`DELETE`,`${this.url}/factors/recovery-codes`,{headers:this.headers,jwt:t?.session?.access_token});return i?this._returnResult({data:null,error:i}):this._returnResult({data:r,error:null})})}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}}async _getAuthorizationDetails(e){try{return await this._useSession(async t=>{let{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await X(this.fetch,`GET`,`${this.url}/oauth/authorizations/${e}`,{headers:this.headers,jwt:n.access_token,xform:e=>({data:e,error:null})}):this._returnResult({data:null,error:new dd})})}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}}async _approveAuthorization(e,t){try{return await this._useSession(async n=>{let{data:{session:r},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!r)return this._returnResult({data:null,error:new dd});let a=await X(this.fetch,`POST`,`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:r.access_token,body:{action:`approve`},xform:e=>({data:e,error:null})});return a.data&&a.data.redirect_url&&Y()&&!t?.skipBrowserRedirect&&window.location.assign(a.data.redirect_url),a})}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}}async _denyAuthorization(e,t){try{return await this._useSession(async n=>{let{data:{session:r},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!r)return this._returnResult({data:null,error:new dd});let a=await X(this.fetch,`POST`,`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:r.access_token,body:{action:`deny`},xform:e=>({data:e,error:null})});return a.data&&a.data.redirect_url&&Y()&&!t?.skipBrowserRedirect&&window.location.assign(a.data.redirect_url),a})}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}}async _listOAuthGrants(){try{return await this._useSession(async e=>{let{data:{session:t},error:n}=e;return n?this._returnResult({data:null,error:n}):t?await X(this.fetch,`GET`,`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:t.access_token,xform:e=>({data:e,error:null})}):this._returnResult({data:null,error:new dd})})}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}}async _revokeOAuthGrant(e){try{return await this._useSession(async t=>{let{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?(await X(this.fetch,`DELETE`,`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,query:{client_id:e.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new dd})})}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}}async fetchJwk(e,t={keys:[]}){let n=t.keys.find(t=>t.kid===e);if(n)return n;let r=Date.now();if(n=this.jwks.keys.find(t=>t.kid===e),n&&this.jwks_cached_at+6e5>r)return n;let{data:i,error:a}=await X(this.fetch,`GET`,`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(a)throw a;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=r,n=i.keys.find(t=>t.kid===e),!n)?null:n}async getClaims(e,t={}){try{let n=e;if(!n){let{data:e,error:t}
22=await this.getSession();if(t||!e.session)return this._returnResult({data:null,error:t});n=e.session.access_token}let{header:r,payload:i,signature:a,raw:{header:o,payload:s}}=qd(n);if(!t?.allowExpired)try{hf(i.exp)}catch(e){throw new wd(e instanceof Error?e.message:`JWT validation failed`)}let c=!r.alg||r.alg.startsWith(`HS`)||!r.kid||!(`crypto`in globalThis&&`subtle`in globalThis.crypto)?null:await this.fetchJwk(r.kid,t?.keys?{keys:t.keys}:t?.jwks);if(!c){let{error:e}=await this.getUser(n);if(e)throw e;return{data:{claims:i,header:r,signature:a},error:null}}let l=gf(r.alg),u=await crypto.subtle.importKey(`jwk`,c,l,!0,[`verify`]);if(!await crypto.subtle.verify(l,u,a,Pd(`${o}.${s}`)))throw new wd(`Invalid JWT signature`);return{data:{claims:i,header:r,signature:a},error:null}}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}}async signInWithPasskey(e){yf(this.experimental);try{if(!tp())return this._returnResult({data:null,error:new ld(`Browser does not support WebAuthn`,null)});let{data:t,error:n}=await this._startPasskeyAuthentication({options:{captchaToken:e?.options?.captchaToken}});if(n||!t)return this._returnResult({data:null,error:n});let{data:r,error:i}=await rp({publicKey:Zf(t.options),signal:e?.options?.signal??Yf.createNewAbortSignal()});if(i||!r)return this._returnResult({data:null,error:i??new ld(`WebAuthn ceremony failed`,null)});let a=$f(r);return this._verifyPasskeyAuthentication({challengeId:t.challenge_id,credential:a})}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}}async registerPasskey(e){yf(this.experimental);try{if(!tp())return this._returnResult({data:null,error:new ld(`Browser does not support WebAuthn`,null)});let{data:t,error:n}=await this._startPasskeyRegistration();if(n||!t)return this._returnResult({data:null,error:n});let{data:r,error:i}=await np({publicKey:Xf(t.options),signal:e?.options?.signal??Yf.createNewAbortSignal()});if(i||!r)return this._returnResult({data:null,error:i??new ld(`WebAuthn ceremony failed`,null)});let a=Qf(r);return this._verifyPasskeyRegistration({challengeId:t.challenge_id,credential:a})}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}}async _startPasskeyRegistration(){yf(this.experimental);try{return await this._useSession(async e=>{let{data:{session:t},error:n}=e;if(n)return this._returnResult({data:null,error:n});if(!t)return this._returnResult({data:null,error:new dd});let{data:r,error:i}=await X(this.fetch,`POST`,`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:t.access_token,body:{}});return i?this._returnResult({data:null,error:i}):this._returnResult({data:r,error:null})})}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}}async _verifyPasskeyRegistration(e){yf(this.experimental);try{return await this._useSession(async t=>{let{data:{session:n},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new dd});let{data:i,error:a}=await X(this.fetch,`POST`,`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:n.access_token,body:{challenge_id:e.challengeId,credential:e.credential}});return a?this._returnResult({data:null,error:a}):this._returnResult({data:i,error:null})})}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}}async _startPasskeyAuthentication(e){yf(this.experimental);try{let{data:t,error:n}=await X(this.fetch,`POST`,`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:e?.options?.captchaToken}}});return n?this._returnResult({data:null,error:n}):this._returnResult({data:t,error:null})}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}}async _verifyPasskeyAuthentication(e){yf(this.experimental);try{let{data:t,error:n}=await X(this.fetch,`POST`,`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:e.challengeId,credential:e.credential},xform:kf});return n?this._returnResult({data:null,error:n}):(t.session&&(await this._saveSession(t.session),await this._notifyAllSubscribers(`SIGNED_IN`,t.session)),this._returnResult({data:t,error:null}))}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}}async _listPasskeys(){yf(this.experimental);try{return await this._useSession(async e=>{let{data:{session:t},error:n}=e;if(n)return this._returnResult({data:null,error:n});if(!t)return this._returnResult({data:null,error:new dd});let{data:r,error:i}=await X(this.fetch,`GET`,`${this.url}/passkeys`,{headers:this.headers,jwt:t.access_token,xform:e=>({data:e,error:null})});return i?this._returnResult({data:null,error:i}):this._returnResult({data:r,error:null})})}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}}
22async _updatePasskey(e){yf(this.experimental);try{return await this._useSession(async t=>{let{data:{session:n},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new dd});let{data:i,error:a}=await X(this.fetch,`PATCH`,`${this.url}/passkeys/${e.passkeyId}`,{headers:this.headers,jwt:n.access_token,body:{friendly_name:e.friendlyName}});return a?this._returnResult({data:null,error:a}):this._returnResult({data:i,error:null})})}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}}async _deletePasskey(e){yf(this.experimental);try{return await this._useSession(async t=>{let{data:{session:n},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new dd});let{error:i}=await X(this.fetch,`DELETE`,`${this.url}/passkeys/${e.passkeyId}`,{headers:this.headers,jwt:n.access_token,noResolveJson:!0});return i?this._returnResult({data:null,error:i}):this._returnResult({data:null,error:null})})}catch(e){if(q(e))return this._returnResult({data:null,error:e});throw e}}};pp.nextInstanceID={};var mp=pp,hp=`2.116.0`,gp=``,_p;if(typeof Deno<`u`)gp=`deno`,_p=Deno.version?.deno;else if(typeof document<`u`)gp=`web`;else if(typeof navigator<`u`&&navigator.product===`ReactNative`)gp=`react-native`;else{var vp;gp=`node`;let e=globalThis.process;_p=e==null||(vp=e.version)==null?void 0:vp.replace(/^v/,``)}var yp=[`runtime=${gp}`];_p&&yp.push(`runtime-version=${_p}`);var bp={headers:{"X-Client-Info":`supabase-js/${hp}; ${yp.join(`; `)}`}},xp={schema:`public`},Sp={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:`implicit`},Cp={},wp={enabled:!1,respectSamplingDecision:!0};function Tp(e){if(!e||typeof e!=`string`)return null;let t=e.split(`-`);if(t.length!==4)return null;let[n,r,i,a]=t;if(n.length!==2||r.length!==32||i.length!==16||a.length!==2)return null;let o=/^[0-9a-f]+$/i;return!o.test(n)||!o.test(r)||!o.test(i)||!o.test(a)||r===`00000000000000000000000000000000`||i===`0000000000000000`?null:{version:n,traceId:r,parentId:i,traceFlags:a,isSampled:(parseInt(a,16)&1)==1}}function Ep(e,t){if(!e||!t||t.length===0)return!1;let n;if(e instanceof URL)n=e;else try{n=new URL(e)}catch{return!1}for(let e of t)try{if(typeof e==`string`){if(Dp(n.hostname,e))return!0}else if(e instanceof RegExp){if(e.test(n.hostname))return!0}else if(typeof e==`function`&&e(n))return!0}catch{continue}return!1}function Dp(e,t){if(t===e)return!0;if(t.startsWith(`*.`)){let n=t.slice(2);if(e.endsWith(n)&&(e===n||e.endsWith(`.`+n)))return!0}return!1}function Op(e){let t=[];try{let n=new URL(e);t.push(n.hostname)}catch{}return t.push(`*.supabase.co`,`*.supabase.in`),t.push(`localhost`,`127.0.0.1`,`[::1]`),t}function kp(e){"@babel/helpers - typeof";return kp=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},kp(e)}function Ap(e,t){if(kp(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(kp(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function jp(e){var t=Ap(e,`string`);return kp(t)==`symbol`?t:t+``}function Mp(e,t,n){return(t=jp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Np(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Np(Object(n),!0).forEach(function(t){Mp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Np(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Fp=e=>e?(...t)=>e(...t):(...e)=>fetch(...e),Ip=()=>Headers,Lp=e=>e.startsWith(`sb_publishable_`)||e.startsWith(`sb_secret_`),Rp=`sb_temp_`,zp=new Set,Bp=e=>{if(!e.startsWith(`sb_`)||Lp(e)||e.startsWith(Rp))return;let t=e.match(/^sb_[a-zA-Z0-9]+_/)?.[0]??`unknown`;
22zp.has(t)||(zp.add(t),console.warn(`@supabase/supabase-js: Unrecognized Supabase API key format. The client will proceed and send this key as-is; if you see authentication errors you may need to upgrade @supabase/supabase-js to a version that recognizes this key type.`))},Vp=(e,t,n,r,i,a)=>{let o=Fp(r),s=Ip(),c=i?.enabled===!0,l=i?.respectSamplingDecision!==!1,u=c?Op(t):null,d=!(a?.omitApiKeyAsBearer&&Lp(e));return async(t,r)=>{let i=await n(),a=new s(r?.headers);if(a.has(`apikey`)||a.set(`apikey`,e),!a.has(`Authorization`)){let t=i??(d?e:null);t&&a.set(`Authorization`,`Bearer ${t}`)}if(u){let e=Wp(t,u,l);e&&(e.traceparent&&!a.has(`traceparent`)&&a.set(`traceparent`,e.traceparent),e.tracestate&&!a.has(`tracestate`)&&a.set(`tracestate`,e.tracestate),e.baggage&&!a.has(`baggage`)&&a.set(`baggage`,e.baggage))}return o(t,Pp(Pp({},r),{},{headers:a}))}},Hp=!1,Up=!1;function Wp(e,t,n){let r=Qs();if(!r)return Hp||(Hp=!0,console.warn("@supabase/supabase-js: tracePropagation is enabled but the tracing runtime is not loaded, so trace headers will not be attached. Add `import '@supabase/supabase-js/tracing'` at your application entry point (requires the OpenTelemetry API package to be installed). The CDN/UMD build does not support trace propagation.")),null;if(!Ep(typeof e==`string`||e instanceof URL?e:e.url,t))return null;let i=r();if(!i||!i.traceparent){var a;if(i!=null&&(a=i.carrierKeys)!=null&&a.length&&!Up){Up=!0;let e=i.carrierKeys.includes(`sentry-trace`)?" Sentry detected: set `propagateTraceparent: true` in Sentry.init() to emit it.":` Configure your tracing SDK to emit W3C trace context on outgoing requests.`;console.warn(`@supabase/supabase-js: tracePropagation is enabled and a tracing SDK is active, but its propagator wrote [${i.carrierKeys.join(`, `)}] and no W3C traceparent header, so trace headers will not be attached.`+e)}return null}if(n){let e=Tp(i.traceparent);if(e&&!e.isSampled)return{traceparent:i.traceparent}}return i}function Gp(e){return typeof e==`boolean`?{enabled:e}:e}function Kp(e){return e.endsWith(`/`)?e:e+`/`}var qp=!1;function Jp(e){qp||typeof e!=`object`||!e||!(`schema`in e)||e.schema===void 0||(qp=!0,console.warn(`@supabase/supabase-js: The "schema" option must be nested under "db", e.g. createClient(url, key, { db: { schema: 'myschema' } }). A top-level "schema" is ignored and queries go to the default schema.`))}function Yp(e,t){let{db:n,auth:r,realtime:i,global:a}=e,{db:o,auth:s,realtime:c,global:l}=t,u=Gp(e.tracePropagation),d=Gp(t.tracePropagation),f={db:Pp(Pp({},o),n),auth:Pp(Pp({},s),r),realtime:Pp(Pp({},c),i),storage:{},global:Pp(Pp(Pp({},l),a),{},{headers:Pp(Pp({},l?.headers??{}),a?.headers??{})}),tracePropagation:{enabled:u?.enabled??d?.enabled??!1,respectSamplingDecision:u?.respectSamplingDecision??d?.respectSamplingDecision??!0},accessToken:async()=>``};return e.accessToken?f.accessToken=e.accessToken:delete f.accessToken,f}function Xp(e){let t=e?.trim();if(!t)throw Error(`supabaseUrl is required.`);if(!t.match(/^https?:\/\//i))throw Error(`Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.`);try{return new URL(Kp(t))}catch{throw Error(`Invalid supabaseUrl: Provided URL is malformed.`)}}var Zp=class extends mp{constructor(e){super(e)}},Qp=class{constructor(e,t,n){this.supabaseUrl=e,this.supabaseKey=t;let r=Xp(e);if(!t)throw Error(`supabaseKey is required.`);Bp(t),Jp(n),this.realtimeUrl=new URL(`realtime/v1`,r),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace(`http`,`ws`),this.authUrl=new URL(`auth/v1`,r),this.storageUrl=new URL(`storage/v1`,r),this.functionsUrl=new URL(`functions/v1`,r);let i=`sb-${r.hostname.split(`.`)[0]}-auth-token`,a={db:xp,realtime:Cp,auth:Pp(Pp({},Sp),{},{storageKey:i}),global:bp,tracePropagation:wp},o=Yp(n??{},a);this.settings=o,this.storageKey=o.auth.storageKey??``,this.headers=o.global.headers??{},o.accessToken?(this.accessToken=o.accessToken,this.auth=new Proxy({},{get:(e,t)=>{throw Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(t)} is not possible`)}})):this.auth=this._initSupabaseAuthClient(o.auth??{},this.headers,o.global.fetch),this.fetch=Vp(t,e,this._getSessionToken.bind(this),o.global.fetch,o.tracePropagation),this.functionsFetch=Vp(t,e,this._getSessionToken.bind(this),o.global.fetch,o.tracePropagation,{omitApiKeyAsBearer
22:!0}),this.realtime=this._initRealtimeClient(Pp({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},o.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(e=>this.realtime.setAuth(e)).catch(e=>console.warn(`Failed to set initial Realtime auth token:`,e)),this.rest=new jc(new URL(`rest/v1`,r).href,{headers:this.headers,schema:o.db.schema,fetch:this.fetch,timeout:o.db.timeout,urlLengthLimit:o.db.urlLengthLimit,retry:o.db.retry}),this.storage=new Yu(this.storageUrl.href,this.headers,this.fetch,n?.storage),o.accessToken||this._listenForAuthEvents()}get functions(){return new lc(this.functionsUrl.href,{headers:this.headers,customFetch:this.functionsFetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}getOpenApiSpec(){return this.rest.getOpenApiSpec()}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getSessionToken(){var e=this;if(e.accessToken)return await e.accessToken();let{data:t}=await e.auth.getSession();return t.session?.access_token??null}async _getAccessToken(){var e=this;return await e._getSessionToken()??e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:i,storageKey:a,flowType:o,lock:s,debug:c,throwOnError:l,experimental:u,lockAcquireTimeout:d,skipAutoInitialize:f},p,m){let h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new Zp({url:this.authUrl.href,headers:Pp(Pp({},h),p),storageKey:a,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:i,flowType:o,lock:s,debug:c,throwOnError:l,experimental:u,fetch:m,lockAcquireTimeout:d,skipAutoInitialize:f,hasCustomAuthorizationHeader:Object.keys(this.headers).some(e=>e.toLowerCase()===`authorization`)})}_initRealtimeClient(e){return new Yl(this.realtimeUrl.href,Pp(Pp({},e),{},{params:Pp(Pp({},{apikey:this.supabaseKey}),e?.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,`CLIENT`,t?.access_token)})}_handleTokenChanged(e,t,n){(e===`TOKEN_REFRESHED`||e===`SIGNED_IN`||e===`INITIAL_SESSION`)&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e===`SIGNED_OUT`&&(this.realtime.setAuth(),t==`STORAGE`&&this.auth.signOut(),this.changedAccessToken=void 0)}},$p=(e,t,n)=>new Qp(e,t,n);function em(){if(typeof window<`u`||globalThis.Deno!==void 0)return!1;let e=globalThis.process;if(!e)return!1;let t=e.version;if(t==null)return!1;let n=t.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=20:!1}em()&&console.warn(`â ï¸ Node.js 20 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 22 or later. For more information, visit: https://github.com/orgs/supabase/discussions/45715`);function tm(){if(typeof window>`u`)return;let e=location.hostname,t=[`lovableproject.com`,`lovableproject-dev.com`,`lovable.app`,`gpt-eng.com`,`gptengineer.run`].some(t=>e===t||e.endsWith(`.`+t))?e.match(RegExp(`^(?:id-preview(?:-[a-z0-9]+)?|project)--([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})(?:-dev)?(?=\\.|$)`,`i`))?.[1]??e.match(RegExp(`^([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})(?=[.-])`,`i`))?.[1]:void 0,n=window.parent&&window.parent!==window;if(!t||!n)return localStorage;let r=e.endsWith(`.lovableproject-dev.com`)||e.endsWith(`.gpt-eng.com`),i=r?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,a=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:``),o=a&&i.test(a)?[a]:r?[`https://lovable.dev`,`http://localhost:3000`]:[`https://lovable.dev`],s=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),c=(e,n,r)=>new Promise(i=>{let a=s(),c=!1,l,u=e=>{c||(c=!0,clearTimeout(l),window.removeEventListener(`message`,d),i(e))},d=e=>{if(o.indexOf(e.origin)<0)return;let t=e.data;t&&t.type===`lovable-preview-auth:result`&&t.requestId===a&&u(t)}
22;window.addEventListener(`message`,d);let f={type:e,requestId:a,projectId:t,key:n};r!==void 0&&(f.value=r);for(let e of o)window.parent.postMessage(f,e);l=setTimeout(()=>u(null),2e3)}),l=!0;return{getItem:async e=>{let t=await c(`lovable-preview-auth:get`,e);return!t&&l&&(await new Promise(e=>setTimeout(e,250)),t=await c(`lovable-preview-auth:get`,e)),l=!1,t&&t.ok&&typeof t.value==`string`?t.value===``?(localStorage.removeItem(e),null):t.value:localStorage.getItem(e)},setItem:(e,t)=>(localStorage.setItem(e,t),c(`lovable-preview-auth:set`,e,t).then(()=>void 0)),removeItem:e=>(localStorage.removeItem(e),c(`lovable-preview-auth:remove`,e).then(()=>void 0))}}function nm(e){return e.startsWith(`sb_publishable_`)||e.startsWith(`sb_secret_`)}function rm(e){return(t,n)=>{let r=new Headers(typeof Request<`u`&&t instanceof Request?t.headers:void 0);return n?.headers&&new Headers(n.headers).forEach((e,t)=>r.set(t,e)),nm(e)&&r.get(`Authorization`)===`Bearer ${e}`&&r.delete(`Authorization`),r.set(`apikey`,e),fetch(t,{...n,headers:r})}}function im(){let e={BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,TSS_DEV_SERVER:`false`,TSS_DEV_SSR_STYLES_BASEPATH:`/`,TSS_DEV_SSR_STYLES_ENABLED:`true`,TSS_DISABLE_CSRF_MIDDLEWARE_WARNING:`false`,TSS_INLINE_CSS_ENABLED:`false`,TSS_ROUTER_BASEPATH:``,TSS_SERVER_FN_BASE:`/_serverFn/`,VITE_SUPABASE_PROJECT_ID:`rbdmcufwdqhjstcdcmbl`,VITE_SUPABASE_PUBLISHABLE_KEY:`sb_publishable_LcsVOgWCpwFCUlsr-0VaOQ_vRszevIg`,VITE_SUPABASE_URL:`https://rbdmcufwdqhjstcdcmbl.supabase.co`}.VITE_SUPABASE_URL||{}.SUPABASE_URL,t={BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,TSS_DEV_SERVER:`false`,TSS_DEV_SSR_STYLES_BASEPATH:`/`,TSS_DEV_SSR_STYLES_ENABLED:`true`,TSS_DISABLE_CSRF_MIDDLEWARE_WARNING:`false`,TSS_INLINE_CSS_ENABLED:`false`,TSS_ROUTER_BASEPATH:``,TSS_SERVER_FN_BASE:`/_serverFn/`,VITE_SUPABASE_PROJECT_ID:`rbdmcufwdqhjstcdcmbl`,VITE_SUPABASE_PUBLISHABLE_KEY:`sb_publishable_LcsVOgWCpwFCUlsr-0VaOQ_vRszevIg`,VITE_SUPABASE_URL:`https://rbdmcufwdqhjstcdcmbl.supabase.co`}.VITE_SUPABASE_PUBLISHABLE_KEY||{}.SUPABASE_PUBLISHABLE_KEY;if(!e||!t){let n=`Missing Supabase environment variable(s): ${[...e?[]:[`SUPABASE_URL`],...t?[]:[`SUPABASE_PUBLISHABLE_KEY`]].join(`, `)}. Connect Supabase in Lovable Cloud.`;throw console.error(`[Supabase] ${n}`),Error(n)}return $p(e,t,{global:{fetch:rm(t)},auth:{storage:tm(),persistSession:!0,autoRefreshToken:!0}})}var am,om=new Proxy({},{get(e,t,n){return am||=im(),Reflect.get(am,t,n)}}),sm=Js({type:`function`}).client(async({next:e})=>{let{data:t}=await om.auth.getSession(),n=t.session?.access_token;return e({headers:n?{Authorization:`Bearer ${n}`}:{}})}),cm=Js(),lm=void 0,um=Xs(()=>({functionMiddleware:[sm],requestMiddleware:[cm,lm]})),dm=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(){}},fm=new class extends dm{#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`}},pm={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},mm=new class{#e=pm;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 hm(e){setTimeout(e,0)}var gm=typeof window>`u`||`Deno`in globalThis;function _m(){}function vm(e,t){return typeof e==`function`?e(t):e}function ym(e){return typeof e==`number`&&e>=0&&e!==1/0}function bm(e,t){return Math.max(e+(t||0)-Date.now(),0)}function xm(e,t){return typeof e==`function`?e(t):e}function Sm(e,t){return typeof e==`function`?e(t):e}function Cm(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Tm(o,t.options))return!1}else if(!Dm(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 wm(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Em(t.options.mutationKey)!==Em(a))return!1}else if(!Dm(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Tm(e,t){return(t?.queryKeyHashFn||Em)(e)}function Em(e){return JSON.stringify(e,(e,t)=>Mm(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Dm(e,t){if(e===t)return!0;
22if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<t.length;n++)if(!Dm(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!Dm(e[r],t[r]))return!1;return!0}return!1}var Om=Object.prototype.hasOwnProperty;function km(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=jm(e)&&jm(t);if(!r&&!(Mm(e)&&Mm(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:Om.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=km(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function Am(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function jm(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Mm(e){if(!Nm(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!Nm(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function Nm(e){return Object.prototype.toString.call(e)===`[object Object]`}function Pm(e){return new Promise(t=>{mm.setTimeout(t,e)})}function Fm(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:km(e,t)}function Im(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Lm(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Rm=Symbol();function zm(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Rm?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Bm(e,t){return typeof e==`function`?e(...t):!!e}function Vm(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 Hm=(()=>{let e=()=>gm;return{isServer(){return e()},setIsServer(t){e=t}}})();function Um(){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 Wm=hm;function Gm(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Wm,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{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 Km=Gm(),qm=new class extends dm{#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 Jm(e){return Math.min(1e3*2**e,3e4)}function Ym(e){return(e??`online`)!==`online`||qm.isOnline()}var Xm=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Zm(e){let t=!1,n=0,r,i=Um(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Xm(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>fm.isFocused()&&(e.networkMode===`always`||qm.isOnline())&&e.canRun(),u=()=>Ym(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??(Hm.isServer()?0:3),o=e.retryDelay??Jm,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),Pm(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 Qm=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ym(this.gcTime)&&(this.#e=mm.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Hm.isServer()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(mm.clearTimeout(this.#e),this.#e=void 0)}};function $m(e){return{onFetch:(t,n)=>
22{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=>{Vm(e,()=>t.signal,()=>n=!0)},u=zm(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=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?Lm:Im;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?th:eh,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:eh(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function eh(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 th(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var nh=class extends Qm{#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=ah(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=ah(this.options);e.data!==void 0&&(this.setState(ih(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=Fm(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(_m).catch(_m):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=>Sm(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Rm||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>xm(e.options.staleTime,this)===`static`)}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:!bm(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)}
22)},i=()=>{let e=zm(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`?$m(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=Zm({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Xm&&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 Xm){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,...rh(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...ih(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),Km.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function rh(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ym(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function ih(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function ah(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,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var oh=class extends Qm{#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||sh(),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=Zm({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)});
22let 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),Km.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function sh(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var ch=class extends dm{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 oh({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=lh(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=lh(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=lh(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=lh(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>
22t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Km.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=>wm(t,e))}findAll(e={}){return this.getAll().filter(t=>wm(e,t))}notify(e){Km.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Km.batch(()=>Promise.all(e.map(e=>e.continue().catch(_m))))}};function lh(e){return e.options.scope?.id}var uh=class extends dm{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??Tm(r,t),a=this.get(i);return a||(a=new nh({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(){Km.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=>Cm(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Cm(e,t)):t}notify(e){Km.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Km.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Km.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},dh=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new uh,this.#t=e.mutationCache||new ch,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=fm.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=qm.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(xm(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=vm(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Km.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;Km.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Km.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Km.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(_m).catch(_m)}invalidateQueries(e,t={}){return Km.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=Km.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(_m)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(_m)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(xm(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(_m).catch(_m)}
22fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(_m).catch(_m)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return qm.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(Em(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{Dm(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(Em(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{Dm(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||=Tm(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===Rm&&(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()}},fh=B.createContext(void 0),ph=e=>{let t=B.useContext(fh);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},mh=({client:e,children:t})=>(B.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,V.jsx)(fh.Provider,{value:e,children:t})),hh=`/assets/styles-CeQq0MkD.css`;function gh(e,t={}){if(typeof window>`u`)return;window.__lovableEvents?.captureException?.(e,{source:`react_error_boundary`,route:window.location.pathname,...t},{mechanism:`react_error_boundary`,handled:!1,severity:`error`});let n=e instanceof Response?`Response ${e.status}${e.url?` at ${e.url}`:``}`:e instanceof Error?e.message:String(e),r=e instanceof Error?e.stack:void 0;window.__lovableReportRuntimeError?.({message:n,...r!==void 0&&{stack:r},filename:window.location.pathname})}var _h=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),vh=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),yh=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),bh=e=>{let t=yh(e);return t.charAt(0).toUpperCase()+t.slice(1)},xh={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},Sh=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Ch=(0,B.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,B.createElement)(`svg`,{ref:c,...xh,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:_h(`lucide`,i),...!a&&!Sh(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,B.createElement)(e,t)),...Array.isArray(a)?a:[a]])),wh=(e,t)=>{let n=(0,B.forwardRef)(({className:n,...r},i)=>(0,B.createElement)(Ch,{ref:i,iconNode:t,className:_h(`lucide-${vh(bh(e))}`,`lucide-${e}`,n),...r}));return n.displayName=bh(e),n},Th=wh(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),Eh=wh(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),Dh=wh(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),Oh=wh(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),kh=wh(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),Ah=wh(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),jh=wh(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),Mh=wh(`shopping-cart`,[[`circle`,{cx:`8`,cy:`21`,r:`1`,key:`jimo8o`}],[`circle`,{cx:`19`,cy:`21`,r:`1`,key:`13723u`}],[`path`,{d:`M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12`,key:`9zh506`}]]),Nh=wh(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),Ph=wh(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),Fh=wh(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Ih={version:1,asset_id:`a19a05ed-b47f-4e2b-a61c-b0f53ff83114`,project_id:`8df3c618-144c-4d3e-98f5-9ae1908350cf`,url:`/__l5e/assets-v1/a19a05ed-b47f-4e2b-a61c-b0f53ff83114/groun
22dworx-dark.png`,r2_key:`a/v1/8df3c618-144c-4d3e-98f5-9ae1908350cf/a19a05ed-b47f-4e2b-a61c-b0f53ff83114/groundworx-dark.png`,original_filename:`groundworx-dark.png`,size:91835,content_type:`image/png`,created_at:`2026-09-15T01:18:38Z`};function Lh(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Lh(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Rh(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Lh(e))&&(r&&(r+=` `),r+=t);return r}var zh=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Bh=Rh,Vh=(e,t)=>n=>{if(t?.variants==null)return Bh(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=zh(t)||zh(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Bh(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Hh=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Uh=(e,t)=>({classGroupId:e,validator:t}),Wh=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Gh=`-`,Kh=[],qh=`arbitrary..`,Jh=e=>{let t=Zh(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Xh(e);let n=e.split(Gh);return Yh(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Hh(i,t):t:i||Kh}return n[e]||Kh}}},Yh=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Yh(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Gh):e.slice(t).join(Gh),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Xh=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?qh+r:void 0})(),Zh=e=>{let{theme:t,classGroups:n}=e;return Qh(n,t)},Qh=(e,t)=>{let n=Wh();for(let r in e){let i=e[r];$h(i,n,r,t)}return n},$h=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];eg(i,t,n,r)}},eg=(e,t,n,r)=>{if(typeof e==`string`){tg(e,t,n);return}if(typeof e==`function`){ng(e,t,n,r);return}rg(e,t,n,r)},tg=(e,t,n)=>{let r=e===``?t:ig(t,e);r.classGroupId=n},ng=(e,t,n,r)=>{if(ag(e)){$h(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Uh(n,e))},rg=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];$h(o,ig(t,a),n,r)}},ig=(e,t)=>{let n=e,r=t.split(Gh),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Wh(),n.nextPart.set(t,i)),n=i}return n},ag=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,og=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},sg=`!`,cg=`:`,lg=[],ug=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),dg=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===cg){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(sg)?(c=s.slice(0,-1),l=!0):s.startsWith(sg)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return ug(t,l,c,u)};if(t){let e=t+cg,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):ug(lg,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},fg=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},pg=e=>
vendor: 10,007 bytes, line 22
22({cache:og(e.cacheSize),parseClassName:dg(e),sortModifiers:fg(e),postfixLookupClassGroupIds:mg(e),...Jh(e)}),mg=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},hg=/\s+/,gg=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(hg),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+sg:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},_g=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=vg(n))&&(i&&(i+=` `),i+=r);return i},vg=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=vg(e[r]))&&(n&&(n+=` `),n+=t);return n},yg=(e,...t)=>{let n,r,i,a,o=o=>(n=pg(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=gg(e,n);return i(e,a),a};return a=o,(...e)=>a(_g(...e))},bg=[],xg=e=>{let t=t=>t[e]||bg;return t.isThemeGetter=!0,t},Sg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Cg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,wg=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Tg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Eg=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Dg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Og=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,kg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ag=e=>wg.test(e),Z=e=>!!e&&!Number.isNaN(Number(e)),jg=e=>!!e&&Number.isInteger(Number(e)),Mg=e=>e.endsWith(`%`)&&Z(e.slice(0,-1)),Ng=e=>Tg.test(e),Pg=()=>!0,Fg=e=>Eg.test(e)&&!Dg.test(e),Ig=()=>!1,Lg=e=>Og.test(e),Rg=e=>kg.test(e),zg=e=>!Q(e)&&!$(e),Bg=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Vg=e=>n_(e,o_,Ig),Q=e=>Sg.test(e),Hg=e=>n_(e,s_,Fg),Ug=e=>n_(e,c_,Z),Wg=e=>n_(e,u_,Pg),Gg=e=>n_(e,l_,Ig),Kg=e=>n_(e,i_,Ig),qg=e=>n_(e,a_,Rg),Jg=e=>n_(e,d_,Lg),$=e=>Cg.test(e),Yg=e=>r_(e,s_),Xg=e=>r_(e,l_),Zg=e=>r_(e,i_),Qg=e=>r_(e,o_),$g=e=>r_(e,a_),e_=e=>r_(e,d_,!0),t_=e=>r_(e,u_,!0),n_=(e,t,n)=>{let r=Sg.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},r_=(e,t,n=!1)=>{let r=Cg.exec(e);return r?r[1]?t(r[1]):n:!1},i_=e=>e===`position`||e===`percentage`,a_=e=>e===`image`||e===`url`,o_=e=>e===`length`||e===`size`||e===`bg-size`,s_=e=>e===`length`,c_=e=>e===`number`,l_=e=>e===`family-name`,u_=e=>e===`number`||e===`weight`,d_=e=>e===`shadow`,f_=yg(()=>{let e=xg(`color`),t=xg(`font`),n=xg(`text`),r=xg(`font-weight`),i=xg(`tracking`),a=xg(`leading`),o=xg(`breakpoint`),s=xg(`container`),c=xg(`spacing`),l=xg(`radius`),u=xg(`shadow`),d=xg(`inset-shadow`),f=xg(`text-shadow`),p=xg(`drop-shadow`),m=xg(`blur`),h=xg(`perspective`),g=xg(`aspect`),_=xg(`ease`),v=xg(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),$,Q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[$,Q,c],E=()=>[Ag,`full`,`auto`,...w()],ee=()=>[jg,`none`,`subgrid`,$,Q],te=()=>[`auto`,{span:[`full`,jg,$,Q]},jg,$,Q],ne=()=>[jg,`auto`,$,Q],re=()=>[`auto`,`min`,`max`,`fr`,$,Q],D=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],ie=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],ae=()=>[`auto`,...w()],oe=()=>[Ag,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],O=()=>[Ag,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],k=()=>[Ag,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],A=()=>[e,$,Q],se=()=>[...b(),Zg,Kg,{position:[$,Q]}],ce=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],le=()=>[`auto`,`cover`,`contain`,Qg,Vg,{size:[$,Q]}],j=()=>[Mg,Yg,Hg],M=()=>[``,`none`,`full`,l,$,Q],ue=()=>[``,Z,Yg,Hg],de=()=>[`solid`,`dashed`,`dotted`,`double`],fe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],N=()=>[Z,Mg,Zg,Kg],P=()=>[``,`none`,m,$,Q],pe=()=>[`none`,Z,$,Q],me=()=>[`none`,Z,$,Q],he=()=>[Z,$,Q],ge=()=>[Ag,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Ng],breakpoint:[Ng],color:[Pg],container:[Ng],"drop-shadow":[Ng],ease:[`in`,`out`,`in-out`],font:[zg],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Ng],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Ng],shadow:[Ng],spacing:[`px`,Z],text:[Ng],"text-shadow":[Ng],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Ag,Q,$,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,$,Q]}],"container-named":[Bg],columns:[{columns:[Z,Q,$,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{"inset-s":E(),start:E()}],end:[{"inset-e":E(),end:E()}],"inset-bs":[{"inset-bs":E()}],"inset-be":[{"inset-be":E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[jg,`auto`,$,Q]}],basis:[{basis:[Ag,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Z,Ag,`auto`,`initial`,`none`,Q]}],grow:[{grow:[``,Z,$,Q]}],shrink:[{shrink:[``,Z,$,Q]}],order:[{order:[jg,`first`,`last`,`none`,$,Q]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":re()}],"auto-rows":[{"auto-rows":re()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...D(),`normal`]}],"justify-items":[{"justify-items":[...ie(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...ie()]}],"align-content":[{content:[`normal`,...D()]}],"align-items":[{items:[...ie(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...ie(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[...ie(),`baseline`]}],"place-self":[{"place-self":[`auto`,...ie()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:ae()}],mx:[{mx:ae()}],my:[{my:ae()}],ms:[{ms:ae()}],me:[{me:ae()}],mbs:[{mbs:ae()}],mbe:[{mbe:ae()}],mt:[{mt:ae()}],mr:[{mr:ae()}],mb:[{mb:ae()}],ml:[{ml:ae()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:oe()}],"inline-size":[{inline:[`auto`,...O()]}],"min-inline-size":[{"min-inline":[`auto`,...O()]}],"max-inline-size":[{"max-inline":[`none`,...O()]}],"block-size":[{block:[`auto`,...k()]}],"min-block-size":[{"min-block":[`auto`,...k()]}],"max-block-size":[{"max-block":[`none`,...k()]}],w:[{w:[s,`screen`,...oe()]}],"min-w":[{"min-w":[s,`screen`,`none`,...oe()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...oe()]}],h:[{h:[`screen`,`lh`,...oe()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...oe()]}],"max-h":[{"max-h":[`screen`,`lh`,...oe()]}],"font-size":[{text:[`base`,n,Yg,Hg]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,t_,Wg]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Mg,Q]}],"font-family":[{font:[Xg,Gg,t]}],"font-features":[{"font-features":[Q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,$,Q]}
vendor: 9,489 bytes, line 22
22],"line-clamp":[{"line-clamp":[Z,`none`,$,Ug]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,$,Q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,$,Q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...de(),`wavy`]}],"text-decoration-thickness":[{decoration:[Z,`from-font`,`auto`,$,Hg]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[Z,`auto`,$,Q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[jg,$,Q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,$,Q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,$,Q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:se()}],"bg-repeat":[{bg:ce()}],"bg-size":[{bg:le()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},jg,$,Q],radial:[``,$,Q],conic:[jg,$,Q]},$g,qg]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:j()}],"gradient-via-pos":[{via:j()}],"gradient-to-pos":[{to:j()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:ue()}],"border-w-x":[{"border-x":ue()}],"border-w-y":[{"border-y":ue()}],"border-w-s":[{"border-s":ue()}],"border-w-e":[{"border-e":ue()}],"border-w-bs":[{"border-bs":ue()}],"border-w-be":[{"border-be":ue()}],"border-w-t":[{"border-t":ue()}],"border-w-r":[{"border-r":ue()}],"border-w-b":[{"border-b":ue()}],"border-w-l":[{"border-l":ue()}],"divide-x":[{"divide-x":ue()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":ue()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...de(),`hidden`,`none`]}],"divide-style":[{divide:[...de(),`hidden`,`none`]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...de(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Z,$,Q]}],"outline-w":[{outline:[``,Z,Yg,Hg]}],"outline-color":[{outline:A()}],shadow:[{shadow:[``,`none`,u,e_,Jg]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":[`none`,d,e_,Jg]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:ue()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[Z,Hg]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":ue()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":[`none`,f,e_,Jg]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[Z,$,Q]}],"mix-blend":[{"mix-blend":[...fe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":fe()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[Z]}],"mask-image-linear-from-pos":[{"mask-linear-from":N()}],"mask-image-linear-to-pos":[{"mask-linear-to":N()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":N()}],"mask-image-t-to-pos":[{"mask-t-to":N()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":N()}],"mask-image-r-to-pos":[{"mask-r-to":N()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":N()}],"mask-image-b-to-pos":[{"mask-b-to":N()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":N()}],"mask-image-l-to-pos":[{"mask-l-to":N()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":N()}],"mask-image-x-to-pos":[{"mask-x-to":N()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":N()}],"mask-image-y-to-pos":[{"mask-y-to":N()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[$,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":N()}],"mask-image-radial-to-pos":[{"mask-radial-to":N()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[Z]}],"mask-image-conic-from-pos":[{"mask-conic-from":N()}],"mask-image-conic-to-pos":[{"mask-conic-to":N()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:se()}],"mask-repeat":[{mask:ce()}],"mask-size":[{mask:le()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,$,Q]}],filter:[{filter:[``,`none`,$,Q]}],blur:[{blur:P()}],brightness:[{brightness:[Z,$,Q]}],contrast:[{contrast:[Z,$,Q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,e_,Jg]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:[``,Z,$,Q]}],"hue-rotate":[{"hue-rotate":[Z,$,Q]}],invert:[{invert:[``,Z,$,Q]}],saturate:[{saturate:[Z,$,Q]}],sepia:[{sepia:[``,Z,$,Q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,$,Q]}],"backdrop-blur":[{"backdrop-blur":P()}],"backdrop-brightness":[{"backdrop-brightness":[Z,$,Q]}],"backdrop-contrast":[{"backdrop-contrast":[Z,$,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Z,$,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z,$,Q]}],"backdrop-invert":[{"backdrop-invert":[``,Z,$,Q]}],"backdrop-opacity":[{"backdrop-opacity":[Z,$,Q]}],"backdrop-saturate":[{"backdrop-saturate":[Z,$,Q]}],"backdrop-sepia":[{"backdrop-sepia":[``,Z,$,Q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,$,Q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Z,`initial`,$,Q]}],ease:[{ease:[`linear`,`initial`,_,$,Q]}],delay:[{delay:[Z,$,Q]}],animate:[{animate:[`none`,v,$,Q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,$,Q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:me()}],"scale-x":[{"scale-x":me()}],"scale-y":[{"scale-y":me()}],"scale-z":[{"scale-z":me()}],"scale-3d":[`scale-3d`],skew:[{skew:he()}],"skew-x":[{"skew-x":he()}],"skew-y":[{"skew-y":he()}],transform:[{transform:[$,Q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ge()}],"translate-x":[{"translate-x":ge()}],"translate-y":[{"translate-y":ge()}],"translate-z":[{"translate-z":ge()}],"translate-none":[`translate-none`],zoom:[{zoom:[jg,$,Q]}],accent:[{accent:A()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom
22-in`,`zoom-out`,$,Q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":A()}],"scrollbar-track-color":[{"scrollbar-track":A()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}
22],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,$,Q]}],fill:[{fill:[`none`,...A()]}],"stroke-w":[{stroke:[Z,Yg,Hg,Ug]}],stroke:[{stroke:[`none`,...A()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function p_(...e){return f_(Rh(e))}var m_=Vh(`inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2`,{variants:{variant:{default:`border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80`,secondary:`border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80`,destructive:`border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80`,outline:`text-foreground`}},defaultVariants:{variant:`default`}});function h_({className:e,variant:t,...n}){return(0,V.jsx)(`div`,{className:p_(m_({variant:t}),e),...n})}var g_=Object.defineProperty,__=(e,t)=>g_(e,`name`,{value:t,configurable:!0});function v_(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}__(v_,`setRef`);function y_(...e){return t=>{let n=!1,r=e.map(e=>{let r=v_(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():v_(e[t],null)}}}}__(y_,`composeRefs`);function b_(...e){return B.useCallback(y_(...e),e)}__(b_,`useComposedRefs`);var x_=Object.defineProperty,S_=(e,t)=>x_(e,`name`,{value:t,configurable:!0});
22function C_(e){let t=B.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];M_(r)&&typeof I_==`function`&&(r=I_(r._payload)),B.Children.forEach(r,e=>{if(A_(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;M_(n)&&typeof I_==`function`&&(n=I_(n._payload)),a=D_(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=B.cloneElement(a,void 0,s):!o&&B.Children.count(r)===1&&B.isValidElement(r)&&(a=r);let c=a?k_(a):void 0,l=b_(n,c);if(!a){if(r||r===0)throw Error(o?F_(e):P_(e));return r}let u=O_(i,a.props??{});return a.type!==B.Fragment&&(u.ref=n?l:c),B.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}S_(C_,`createSlot`);var w_=C_(`Slot`),T_=Symbol.for(`radix.slottable`);function E_(e){let t=S_(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=T_,t}S_(E_,`createSlottable`);var D_=S_((e,t)=>{if(`child`in e.props){let t=e.props.child;return B.isValidElement(t)?B.cloneElement(t,void 0,e.props.children(t.props.children)):null}return B.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function O_(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}}S_(O_,`mergeProps`);function k_(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)}S_(k_,`getElementRef`);function A_(e){return B.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===T_}S_(A_,`isSlottable`);var j_=Symbol.for(`react.lazy`);function M_(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===j_&&`_payload`in e&&N_(e._payload)}S_(M_,`isLazyComponent`);function N_(e){return typeof e==`object`&&!!e&&`then`in e}S_(N_,`isPromiseLike`);var P_=S_(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),F_=S_(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),I_=B.use,L_=Vh(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow hover:bg-primary/90`,signal:`bg-primary text-primary-foreground shadow-signal hover:bg-primary-bright`,console:`border border-border-strong bg-surface-raised text-foreground hover:border-primary/50 hover:bg-accent`,destructive:`bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90`,outline:`border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground`,secondary:`bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2`,sm:`h-8 rounded-md px-3 text-xs`,lg:`h-12 rounded-md px-7 text-sm font-bold`,icon:`h-9 w-9`}},defaultVariants:{variant:`default`,size:`default`}}),R_=B.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>(0,V.jsx)(r?w_:`button`,{className:p_(L_({variant:t,size:n,className:e})),ref:a,...i}));R_.displayName=`Button`;var z_=Object.defineProperty,B_=(e,t)=>z_(e,`name`,{value:t,configurable:!0}),V_=!!(typeof window<`u`&&window.document&&window.document.createElement);function H_(e,t,{checkForDefaultPrevented:n=!0}={}){return B_(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}B_(H_,`composeEventHandlers`);function U_(e){if(!V_)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}B_(U_,`getOwnerWindow`);function W_(e){if(!V_)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}B_(W_,`getOwnerDocument`);function G_(e,t=!1){let{activeElement:n}=W_(e);if(!n?.nodeName)return null;if(K_(n)&&n.contentDocument)return G_(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=W_(n).getElementById(e);if(t)return t}}return n}B_(G_,`getActiveElement`);function K_(e){return e.tagName===`IFRAME`}B_(K_,`isFrame`);var q_=Object.defineProperty,J_=(e,t)=>
22q_(e,`name`,{value:t,configurable:!0});function Y_(e,t){let n=B.createContext(t);n.displayName=e+`Context`;let r=J_(e=>{let{children:t,...r}=e,i=B.useMemo(()=>r,Object.values(r));return(0,V.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=B.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return J_(i,`useContext`),[r,i]}J_(Y_,`createContext`);function X_(e,t=[]){let n=[];function r(t,r){let i=B.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=J_(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=B.useMemo(()=>o,Object.values(o));return(0,V.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=B.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return J_(s,`useContext`),[o,s]}J_(r,`createContext`);let i=J_(()=>{let t=n.map(e=>B.createContext(e));return J_(function(n){let r=n?.[e]||t;return B.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,Z_(i,...t)]}J_(X_,`createContextScope`);function Z_(...e){let t=e[0];if(e.length===1)return t;let n=J_(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return J_(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return B.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}J_(Z_,`composeContextScopes`);var Q_=globalThis?.document?B.useLayoutEffect:()=>{},$_=Object.defineProperty,ev=(e,t)=>$_(e,`name`,{value:t,configurable:!0}),tv=B.useId||(()=>void 0),nv=0;function rv(e){let[t,n]=B.useState(tv());return Q_(()=>{e||n(e=>e??String(nv++))},[e]),e||(t?`radix-${t}`:``)}ev(rv,`useId`);var iv=Object.defineProperty,av=(e,t)=>iv(e,`name`,{value:t,configurable:!0}),ov=B.useEffectEvent,sv=B.useInsertionEffect;function cv(e){if(typeof ov==`function`)return ov(e);let t=B.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof sv==`function`?sv(()=>{t.current=e}):Q_(()=>{t.current=e}),B.useMemo(()=>((...e)=>t.current?.(...e)),[])}av(cv,`useEffectEvent`);var lv=Object.defineProperty,uv=(e,t)=>
22lv(e,`name`,{value:t,configurable:!0}),dv=B.useInsertionEffect||Q_;function fv({prop:e,defaultProp:t,onChange:n=uv(()=>{},`onChange`),caller:r}){let[i,a,o]=pv({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,B.useCallback(t=>{if(s){let n=mv(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}uv(fv,`useControllableState`);function pv({defaultProp:e,onChange:t}){let[n,r]=B.useState(e),i=B.useRef(n),a=B.useRef(t);return dv(()=>{a.current=t},[t]),B.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}uv(pv,`useUncontrolledState`);function mv(e){return typeof e==`function`}uv(mv,`isFunction`);var hv=Symbol(`RADIX:SYNC_STATE`);function gv(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=cv(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=B.useReducer((t,n)=>{if(n.type===hv)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=B.useRef(p);B.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=B.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return B.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:hv,state:i})},[i,d.state,c]),[h,f]}uv(gv,`useControllableStateReducer`);var _v=oe(de(),1),vv=Object.defineProperty,yv=(e,t)=>vv(e,`name`,{value:t,configurable:!0}),bv=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=C_(`Primitive.${t}`),r=B.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,V.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function xv(e,t){e&&_v.flushSync(()=>e.dispatchEvent(t))}yv(xv,`dispatchDiscreteCustomEvent`);var Sv=Object.defineProperty,Cv=(e,t)=>Sv(e,`name`,{value:t,configurable:!0});function wv(e){let t=B.useRef(e);return B.useEffect(()=>{t.current=e}),B.useMemo(()=>((...e)=>t.current?.(...e)),[])}Cv(wv,`useCallbackRef`);var Tv=Object.defineProperty,Ev=(e,t)=>Tv(e,`name`,{value:t,configurable:!0}),Dv=`dismissableLayer.update`,Ov=`dismissableLayer.pointerDownOutside`,kv=`dismissableLayer.focusOutside`,Av,jv=B.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Mv=B.forwardRef(Ev(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=B.useContext(jv),[d,f]=B.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=B.useState({}),h=b_(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=_?g.indexOf(_):-1,y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=B.useRef(!1),C=Fv(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:B.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return x&&!t},[u.branches,x])}),w=Iv(e=>{if(r&&S.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),E=d?y===g.length-1:!1,ee=wv(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return B.useEffect(()=>{if(E)return p.addEventListener(`keydown`,ee,{capture:!0}),()=>p.removeEventListener(`keydown`,ee,{capture:!0})},[p,E,ee]),B.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Av=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Lv(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=Av))}},[d,p,n,u]),B.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Lv())},[d,u]),B.useEffect(()=>{let e=Ev(()=>m({}),`handleUpdate`);return document.addEventListener(Dv,e),()=>
22document.removeEventListener(Dv,e)},[]),(0,V.jsx)(bv.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:H_(e.onFocusCapture,w.onFocusCapture),onBlurCapture:H_(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:H_(e.onPointerDownCapture,C.onPointerDownCapture)})},`DismissableLayer`));function Nv(){let e=B.useContext(jv),[t,n]=B.useState(null);return B.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}Ev(Nv,`useDismissableLayerSurface`);var Pv=Ev(()=>!0,`IS_TRUE`);function Fv(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=Pv}=t,s=wv(e),c=B.useRef(!1),l=B.useRef(!1),u=B.useRef(new Map),d=B.useRef(()=>{});return B.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}Ev(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}Ev(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}Ev(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}Ev(p,`handleInteractionBubble`);let m=Ev(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||Rv(Ov,s,p,{discrete:!0})};if(Ev(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:Ev(()=>c.current=!0,`onPointerDownCapture`)}}Ev(Fv,`usePointerDownOutside`);function Iv(e,t=globalThis?.document){let n=wv(e),r=B.useRef(!1);return B.useEffect(()=>{let e=Ev(e=>{e.target&&!r.current&&Rv(kv,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:Ev(()=>r.current=!0,`onFocusCapture`),onBlurCapture:Ev(()=>r.current=!1,`onBlurCapture`)}}Ev(Iv,`useFocusOutside`);function Lv(){let e=new CustomEvent(Dv);document.dispatchEvent(e)}Ev(Lv,`dispatchUpdate`);function Rv(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?xv(i,a):i.dispatchEvent(a)}Ev(Rv,`handleAndDispatchCustomEvent`);var zv=Object.defineProperty,Bv=(e,t)=>zv(e,`name`,{value:t,configurable:!0}
22),Vv=`focusScope.autoFocusOnMount`,Hv=`focusScope.autoFocusOnUnmount`,Uv={bubbles:!1,cancelable:!0},Wv=B.forwardRef(Bv(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=B.useState(null),l=wv(i),u=wv(a),d=B.useRef(null),f=b_(t,c),p=B.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;B.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:Zv(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||Zv(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Zv(s)};Bv(e,`handleFocusIn`),Bv(t,`handleFocusOut`),Bv(n,`handleMutations`),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]),B.useEffect(()=>{if(s){Qv.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(Vv,Uv);s.addEventListener(Vv,l),s.dispatchEvent(t),t.defaultPrevented||(Gv(ty(qv(s)),{select:!0}),document.activeElement===e&&Zv(s))}return()=>{s.removeEventListener(Vv,l),setTimeout(()=>{let t=new CustomEvent(Hv,Uv);s.addEventListener(Hv,u),s.dispatchEvent(t),t.defaultPrevented||Zv(e??document.body,{select:!0}),s.removeEventListener(Hv,u),Qv.remove(p)},0)}}},[s,l,u,p]);let m=B.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]=Kv(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Zv(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Zv(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,V.jsx)(bv.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})},`FocusScope`));function Gv(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Zv(r,{select:t}),document.activeElement!==n)return}Bv(Gv,`focusFirst`);function Kv(e){let t=qv(e);return[Jv(t,e),Jv(t.reverse(),e)]}Bv(Kv,`getTabbableEdges`);function qv(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Bv(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},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}Bv(qv,`getTabbableCandidates`);function Jv(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Yv(r,{upTo:t})))return r}Bv(Jv,`findVisible`);function Yv(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}Bv(Yv,`isHidden`);function Xv(e){return e instanceof HTMLInputElement&&`select`in e}Bv(Xv,`isSelectableInput`);function Zv(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Xv(e)&&t&&e.select()}}Bv(Zv,`focus`);var Qv=$v();function $v(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=ey(e,t),e.unshift(t)},remove(t){e=ey(e,t),e[0]?.resume()}}}Bv($v,`createFocusScopesStack`);function ey(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}Bv(ey,`arrayRemove`);function ty(e){return e.filter(e=>e.tagName!==`A`)}Bv(ty,`removeLinks`);var ny=Object.defineProperty,ry=B.forwardRef(((e,t)=>ny(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=B.useState(!1);Q_(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?_v.createPortal((0,V.jsx)(bv.div,{...r,ref:t}),o):null},`Portal`)),iy=Object.defineProperty,ay=(e,t)=>iy(e,`name`,{value:t,configurable:!0});function oy(e,t){return B.useReducer((e,n)=>t[e][n]??e,e)}ay(oy,`useStateMachine`);var sy=ay(e=>{let{present:t,children:n}=e,r=cy(t),i=typeof n==`function`?n({present:r.isPresent}):B.Children.only(n),a=uy(r.ref,fy(i));return typeof n==`function`||r.isPresent?B.cloneElement(i,{ref:a}):null},`Presence`);function cy(e){let[t,n]=B.useState(),r=B.useRef(null),i=B.useRef(e),a=B.useRef(`none`),o=B.useRef(void 0),[s,c]=oy(e?`mounted`:`unmounted`,{mou
22nted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return B.useEffect(()=>{s===`mounted`?(a.current=o.current??dy(r.current),o.current=void 0):a.current=`none`},[s]),Q_(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=dy(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),Q_(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=ay(a=>{let o=dy(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=ay(e=>{e.target===t&&(a.current=dy(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:B.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=dy(t)}else r.current=null;n(e)},[])}}ay(cy,`usePresence`);function ly(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}ay(ly,`setRef`);function uy(...e){let t=B.useRef(e);return t.current=e,B.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=ly(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():ly(n[e],null)}}},[])}ay(uy,`useStableComposedRefs`);function dy(e){return e?.animationName||`none`}ay(dy,`getAnimationName`);function fy(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)}ay(fy,`getElementRef`);var py=Object.defineProperty,my=(e,t)=>py(e,`name`,{value:t,configurable:!0}),hy=0,gy=null;function _y(e){return vy(),e.children}my(_y,`FocusGuards`);function vy(){B.useEffect(()=>{gy||={start:yy(),end:yy()};let{start:e,end:t}=gy;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),hy++,()=>{hy===1&&(gy?.start.remove(),gy?.end.remove(),gy=null),hy=Math.max(0,hy-1)}},[])}my(vy,`useFocusGuards`);function yy(){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}my(yy,`createFocusGuard`);var by=`right-scroll-bar-position`,xy=`width-before-scroll-bar`,Sy=`with-scroll-bars-hidden`,Cy=`--removed-body-scroll-bar-size`;function wy(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Ty(e,t){var n=(0,B.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 Ey=typeof window<`u`?B.useLayoutEffect:B.useEffect,Dy=new WeakMap;function Oy(e,t){var n=Ty(t||null,function(t){return e.forEach(function(e){return wy(e,t)})});return Ey(function(){var t=Dy.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||wy(e,null)}),i.forEach(function(e){r.has(e)||wy(e,a)})}Dy.set(n,e)},[e]),n}function ky(e){return e}function Ay(e,t){t===void 0&&(t=ky);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;
vendor: 7,485 bytes, lines 22-62
22n=[],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 jy(e){e===void 0&&(e={});var t=Ay(null);return t.options=$s({async:!0,ssr:!1},e),t}var My=function(e){var t=e.sideCar,n=ec(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 B.createElement(r,$s({},n))};My.isSideCarExport=!0;function Ny(e,t){return e.useMedium(t),My}var Py=jy(),Fy=function(){},Iy=B.forwardRef(function(e,t){var n=B.useRef(null),r=B.useState({onScrollCapture:Fy,onWheelCapture:Fy,onTouchMoveCapture:Fy}),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=ec(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=Oy([n,t]),C=$s($s({},b),i);return B.createElement(B.Fragment,null,u&&B.createElement(x,{sideCar:Py,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?B.cloneElement(B.Children.only(s),$s($s({},C),{ref:S})):B.createElement(v,$s({},C,{className:c,ref:S}),s))});Iy.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Iy.classNames={fullWidth:xy,zeroRight:by};var Ly,Ry=function(){if(Ly)return Ly;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function zy(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Ry();return t&&e.setAttribute(`nonce`,t),e}function By(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Vy(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Hy=function(){var e=0,t=null;return{add:function(n){e==0&&(t=zy())&&(By(t,n),Vy(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Uy=function(){var e=Hy();return function(t,n){B.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Wy=function(){var e=Uy();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Gy={left:0,top:0,right:0,gap:0},Ky=function(e){return parseInt(e||``,10)||0},qy=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[Ky(n),Ky(r),Ky(i)]},Jy=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Gy;var t=qy(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])}},Yy=Wy(),Xy=`data-scroll-locked`,Zy=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),` 23 .${Sy} { 24 overflow: hidden ${r}; 25 padding-right: ${s}px ${r}; 26 } 27 body[${Xy}] { 28 overflow: hidden ${r}; 29 overscroll-behavior: contain; 30 ${[t&&`position: relative ${r};`,n===`margin`&&` 31 padding-left: ${i}px; 32 padding-top: ${a}px; 33 padding-right: ${o}px; 34 margin-left:0; 35 margin-top:0; 36 margin-right: ${s}px ${r}; 37 `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)} 38 } 39 40 .${by} { 41 right: ${s}px ${r}; 42 } 43 44 .${xy} { 45 margin-right: ${s}px ${r}; 46 } 47 48 .${by} .${by} { 49 right: 0 ${r}; 50 } 51 52 .${xy} .${xy} { 53 margin-right: 0 ${r}; 54 } 55 56 body[${Xy}] { 57 ${Cy}: ${s}px; 58 } 59`},Qy=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},$y=function(){B.useEffect(function(){return document.body.setAttribute(Xy,(Qy()+1).toString()),function(){var e=Qy()-1;e<=0?document.body.removeAttribute(Xy):document.body.setAttribute(Xy,e.toString())}},[])},eb=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;$y();var a=B.useMemo(function(){return Jy(i)},[i]);return B.createElement(Yy,{styles:Zy(a,!t,i,n?``:`!important`)})},tb=!1;if(typeof window<`u`)try{var nb=Object.defineProperty({},"passive",{get:function(){return tb=!0,!0}});window.addEventListener(`test`,nb,nb),window.removeEventListener(`test`,nb,nb)}catch{tb=!1}var rb=tb?{passive:!1}:!1,ib=function(e){return e.tagName===`TEXTAREA`},ab=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!ib(e)&&n[t]===`visible`)},ob=function(e){return ab(e,`overflowY`)},sb=function(e){return ab(e,`overflowX`)},cb=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),db(e,r)){var i=fb(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},lb=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},ub=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},db=function(e,t){return e===`v`?ob(t):sb(t)},fb=function(e,t){return e===`v`?lb(t):ub(t)},pb=function(e,t){return e===`h`&&t===`rtl`?-1:1},mb=function(e,t,n,r,i){var a=pb(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=fb(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&db(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},hb=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},gb=function(e){return[e.deltaX,e.deltaY]},_b=function(e){return e&&`current`in e?e.current:e},vb=function(e,t){return e[0]===t[0]&&e[1]===t[1]},yb=function(e){return` 60 .block-interactivity-${e} {pointer-events: none;} 61 .allow-interactivity-${e} {pointer-events: all;} 62`},bb=0,xb=[];function Sb(e){var t=B.useRef([]),n=B.useRef([0,0]),r=B.useRef(),i=B.useState(bb++)[0],a=B.useState(Wy)[0],o=B.useRef(e);B.useEffect(function(){o.current=e},[e]),B.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=nc([e.lockRef.current],(e.shards||[]).map(_b),!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=B.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=hb(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=cb(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=cb(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 mb(h,t,e,h===`h`?s:c,!0)},[]),c=B.useCallback(function(e){var n=e;if(!(!xb.length||xb[xb.length-1]!==a)){var r=`deltaY`in n?gb(n):hb(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&vb(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}
62if(!i){var c=(o.current.shards||[]).map(_b).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=B.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Cb(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=B.useCallback(function(e){n.current=hb(e),r.current=void 0},[]),d=B.useCallback(function(t){l(t.type,gb(t),t.target,s(t,e.lockRef.current))},[]),f=B.useCallback(function(t){l(t.type,hb(t),t.target,s(t,e.lockRef.current))},[]);B.useEffect(function(){return xb.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,rb),document.addEventListener(`touchmove`,c,rb),document.addEventListener(`touchstart`,u,rb),function(){xb=xb.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,rb),document.removeEventListener(`touchmove`,c,rb),document.removeEventListener(`touchstart`,u,rb)}},[]);var p=e.removeScrollBar,m=e.inert;return B.createElement(B.Fragment,null,m?B.createElement(a,{styles:yb(i)}):null,p?B.createElement(eb,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Cb(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var wb=Ny(Py,Sb),Tb=B.forwardRef(function(e,t){return B.createElement(Iy,$s({},e,{ref:t,sideCar:wb}))});Tb.classNames=Iy.classNames;var Eb=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Db=new WeakMap,Ob=new WeakMap,kb={},Ab=0,jb=function(e){return e&&(e.host||jb(e.parentNode))},Mb=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=jb(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})},Nb=function(e,t,n,r){var i=Mb(t,Array.isArray(e)?e:[e]);kb[n]||(kb[n]=new WeakMap);var a=kb[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=(Db.get(e)||0)+1,l=(a.get(e)||0)+1;Db.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Ob.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(),Ab++,function(){o.forEach(function(e){var t=Db.get(e)-1,i=a.get(e)-1;Db.set(e,t),a.set(e,i),t||(Ob.has(e)||e.removeAttribute(r),Ob.delete(e)),i||e.removeAttribute(n)}),Ab--,Ab||(Db=new WeakMap,Db=new WeakMap,Ob=new WeakMap,kb={})}},Pb=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Eb(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Nb(r,i,n,`aria-hidden`)):function(){return null}},Fb=Object.defineProperty,Ib=(e,t)=>Fb(e,`name`,{value:t,configurable:!0}),Lb=`Dialog`,[Rb,zb]=X_(Lb),[Bb,Vb]=Rb(Lb),Hb=Ib(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=B.useRef(null),c=B.useRef(null),[l,u]=fv({prop:r,defaultProp:i??!1,onChange:a,caller:Lb}),[d,f]=B.useState(0),[p,m]=B.useState(0);return(0,V.jsx)(Bb,{scope:t,triggerRef:s,contentRef:c,contentId:rv(),titleId:rv(),descriptionId:rv(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:f,setDescriptionCount:m,open:l,onOpenChange:u,onOpenToggle:B.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})},`Dialog`),Ub=`DialogTrigger`,Wb=B.forwardRef(Ib(function(e,t){let{__scopeDialog:n,...r}=e,i=Vb(Ub,n),a=b_(t,i.triggerRef);return(0,V.jsx)(bv.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":ux(i.open),...r,ref:a,onClick:H_(e.onClick,i.onOpenToggle)})},`DialogTrigger`)),Gb=`DialogPortal`,[Kb,qb]=Rb(Gb,{forceMount:void 0}),Jb=Ib(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Vb(Gb,t);return(0,V.jsx)(Kb,{scope:t,forceMount:n,children:B.Children.map(r,e=>(0,V.jsx)(sy,{present:n||a.open,children:(0,V.jsx)(ry,{asChild:!0,container:i,children:e})}))})}
62,`DialogPortal`),Yb=`DialogOverlay`,Xb=B.forwardRef(Ib(function(e,t){let n=qb(Yb,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Vb(Yb,e.__scopeDialog);return a.modal?(0,V.jsx)(sy,{present:r||a.open,children:(0,V.jsx)(Qb,{...i,ref:t})}):null},`DialogOverlay`)),Zb=C_(`DialogOverlay.RemoveScroll`),Qb=B.forwardRef(Ib(function(e,t){let{__scopeDialog:n,...r}=e,i=Vb(Yb,n),a=b_(t,Nv());return(0,V.jsx)(Tb,{as:Zb,allowPinchZoom:!0,shards:[i.contentRef],children:(0,V.jsx)(bv.div,{"data-state":ux(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),$b=`DialogContent`,ex=B.forwardRef(Ib(function(e,t){let n=qb($b,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Vb($b,e.__scopeDialog);return(0,V.jsx)(sy,{present:r||a.open,children:a.modal?(0,V.jsx)(tx,{...i,ref:t}):(0,V.jsx)(nx,{...i,ref:t})})},`DialogContent`)),tx=B.forwardRef(Ib(function(e,t){let n=Vb($b,e.__scopeDialog),r=B.useRef(null),i=b_(t,n.contentRef,r);return B.useEffect(()=>{let e=r.current;if(e)return Pb(e)},[]),(0,V.jsx)(rx,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:H_(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:H_(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:H_(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),nx=B.forwardRef(Ib(function(e,t){let n=Vb($b,e.__scopeDialog),r=B.useRef(!1),i=B.useRef(!1);return(0,V.jsx)(rx,{...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()}})},`DialogContentNonModal`)),rx=B.forwardRef(Ib(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=Vb($b,n);return vy(),(0,V.jsx)(V.Fragment,{children:(0,V.jsx)(Wv,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,V.jsx)(Mv,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":ux(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},`DialogContentImpl`)),ix=`DialogTitle`,ax=B.forwardRef(Ib(function(e,t){let{__scopeDialog:n,...r}=e,i=Vb(ix,n),{setTitleCount:a}=i;return Q_(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,V.jsx)(bv.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),ox=`DialogDescription`,sx=B.forwardRef(Ib(function(e,t){let{__scopeDialog:n,...r}=e,i=Vb(ox,n),{setDescriptionCount:a}=i;return Q_(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,V.jsx)(bv.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),cx=`DialogClose`,lx=B.forwardRef(Ib(function(e,t){let{__scopeDialog:n,...r}=e,i=Vb(cx,n);return(0,V.jsx)(bv.button,{type:`button`,...r,ref:t,onClick:H_(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function ux(e){return e?`open`:`closed`}Ib(ux,`getState`);var dx=Hb,fx=Wb,px=Jb,mx=B.forwardRef(({className:e,...t},n)=>(0,V.jsx)(Xb,{className:p_(`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,ref:n}));mx.displayName=Xb.displayName;var hx=Vh(`fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out`,{variants:{side:{top:`inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top`,bottom:`inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom`,left:`inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm`,right:`inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm`}},defaultVariants:{side:`right`}}),gx=B.forwardRef(({side:e=`right`,className:t,children:n,...r},i)=>(0,V.jsxs)(px,{children:[(0,V.jsx)(mx,{}),(0,V.jsxs)(ex,{ref:i,className:p_(hx({side:e}),t),...r,children:[(0,V.jsxs)(lx,{className:`absolute right-4 top-4 roun
62ded-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-secondary`,children:[(0,V.jsx)(Fh,{className:`h-4 w-4`}),(0,V.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),n]})]}));gx.displayName=ex.displayName;var _x=({className:e,...t})=>(0,V.jsx)(`div`,{className:p_(`flex flex-col space-y-2 text-center sm:text-left`,e),...t});_x.displayName=`SheetHeader`;var vx=B.forwardRef(({className:e,...t},n)=>(0,V.jsx)(ax,{ref:n,className:p_(`text-lg font-semibold text-foreground`,e),...t}));vx.displayName=ax.displayName;var yx=B.forwardRef(({className:e,...t},n)=>(0,V.jsx)(sx,{ref:n,className:p_(`text-sm text-muted-foreground`,e),...t}));yx.displayName=sx.displayName;var bx=`https://overhaul-hero-magic-uv3y8-dijrm0fd.myshopify.com/api/2025-07/graphql.json`,xx=`e8e7477c114cc107101498ce0a384481`,Sx=` 63 id 64 title 65 tags 66 description 67 handle 68 priceRange { minVariantPrice { amount currencyCode } } 69 images(first: 5) { edges { node { url altText } } } 70 variants(first: 10) { 71 edges { 72 node { 73 id 74 title 75 price { amount currencyCode } 76 availableForSale 77 selectedOptions { name value } 78 } 79 } 80 } 81 options { name values } 82`,Cx=` 83 query GetProducts($first: Int!, $query: String) { 84 products(first: $first, query: $query) { 85 edges { node { ${Sx} } } 86 } 87 } 88`,wx=` 89 query GetProduct($handle: String!) { 90 product(handle: $handle) { ${Sx} } 91 } 92`;async function Tx(e,t={}){let n=await fetch(bx,{method:`POST`,headers:{"Content-Type":`application/json`,"X-Shopify-Storefront-Access-Token":xx},body:JSON.stringify({query:e,variables:t})});if(n.status===402)return console.error(`Shopify storefront API returned 402 (billing required).`),null;if(!n.ok)throw Error(`HTTP error! status: ${n.status}`);let r=await n.json();if(r.errors)throw Error(`Error calling Shopify: ${r.errors.map(e=>e.message).join(`, `)}`);return r}async function Ex(e=24,t){return(await Tx(Cx,{first:e,query:t??null}))?.data?.products?.edges??[]}async function Dx(e){let t=(await Tx(wx,{handle:e}))?.data?.product;return t?{node:t}:null}function Ox(e,t){let n=Number.parseFloat(e);try{return new Intl.NumberFormat(`en-US`,{style:`currency`,currency:t}).format(n)}catch{return`${t} ${n.toFixed(2)}`}}var kx=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},Ax=(e=>e?kx(e):kx),jx=e=>e;function Mx(e,t=jx){let n=B.useSyncExternalStore(e.subscribe,B.useCallback(()=>t(e.getState()),[e,t]),B.useCallback(()=>t(e.getInitialState()),[e,t]));return B.useDebugValue(n),n}var Nx=e=>{let t=Ax(e),n=e=>Mx(t,e);return Object.assign(n,t),n},Px=(e=>e?Nx(e):Nx);function Fx(e,t){let n;try{n=e()}catch{return}return{getItem:e=>{let r=e=>e===null?null:JSON.parse(e,t?.reviver),i=n.getItem(e)??null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,t?.replacer)),removeItem:e=>n.removeItem(e)}}var Ix=e=>t=>{try{let n=e(t);return n instanceof Promise?n:{then(e){return Ix(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return Ix(t)(e)}}}},Lx=(e,t)=>(n,r,i)=>{let a={storage:Fx(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1,s=0,c=new Set,l=new Set,u=a.storage;if(!u)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)},r,i);let d=()=>{let e=a.partialize({...r()});return u.setItem(a.name,{state:e,version:a.version})},f=i.setState;i.setState=(e,t)=>(f(e,t),d());let p=e((...e)=>(n(...e),d()),r,i);i.getInitialState=()=>p;let m,h=()=>{if(!u)return;let e=++s;o=!1,c.forEach(e=>e(r()??p));let t=a.onRehydrateStorage?.call(a,r()??p)||void 0;return Ix(u.getItem.bind(u))(a.name).then(e=>
92{if(e)if(typeof e.version==`number`&&e.version!==a.version){if(a.migrate){let t=a.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error(`State loaded from storage couldn't be migrated since no migrate function was provided`)}else return[!1,e.state];return[!1,void 0]}).then(t=>{if(e!==s)return;let[i,o]=t;if(m=a.merge(o,r()??p),n(m,!0),i)return d()}).then(()=>{e===s&&(t?.(r(),void 0),m=r(),o=!0,l.forEach(e=>e(m)))}).catch(n=>{e===s&&t?.(void 0,n)})};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(u=e.storage)},clearStorage:()=>{++s,u?.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||h(),m||p},Rx=` 93 query cart($id: ID!) { 94 cart(id: $id) { id totalQuantity } 95 } 96`,zx=` 97 mutation cartCreate($input: CartInput!) { 98 cartCreate(input: $input) { 99 cart { 100 id 101 checkoutUrl 102 lines(first: 100) { edges { node { id merchandise { ... on ProductVariant { id } } } } } 103 } 104 userErrors { field message } 105 } 106 } 107`,Bx=` 108 mutation cartLinesAdd($cartId: ID!, $lines: [CartLineInput!]!) { 109 cartLinesAdd(cartId: $cartId, lines: $lines) { 110 cart { 111 id 112 lines(first: 100) { edges { node { id merchandise { ... on ProductVariant { id } } } } } 113 } 114 userErrors { field message } 115 } 116 } 117`,Vx=` 118 mutation cartLinesUpdate($cartId: ID!, $lines: [CartLineUpdateInput!]!) { 119 cartLinesUpdate(cartId: $cartId, lines: $lines) { 120 cart { id } 121 userErrors { field message } 122 } 123 } 124`,Hx=` 125 mutation cartLinesRemove($cartId: ID!, $lineIds: [ID!]!) { 126 cartLinesRemove(cartId: $cartId, lineIds: $lineIds) { 127 cart { id } 128 userErrors { field message } 129 } 130 } 131`;function Ux(e){try{let t=new URL(e);return t.searchParams.set(`channel`,`online_store`),t.toString()}catch{return e}}function Wx(e){return e.some(e=>e.message.toLowerCase().includes(`cart not found`)||e.message.toLowerCase().includes(`does not exist`))}async function Gx(e){let t=await Tx(zx,{input:{lines:[{quantity:e.quantity,merchandiseId:e.variantId}]}}),n=t?.data?.cartCreate?.userErrors??[];if(n.length>0)return console.error(`Cart creation failed:`,n),null;let r=t?.data?.cartCreate?.cart;if(!r?.checkoutUrl)return null;let i=r.lines.edges[0]?.node?.id;return i?{cartId:r.id,checkoutUrl:Ux(r.checkoutUrl),lineId:i}:null}async function Kx(e,t){let n=await Tx(Bx,{cartId:e,lines:[{quantity:t.quantity,merchandiseId:t.variantId}]}),r=n?.data?.cartLinesAdd?.userErrors??[];return Wx(r)?{success:!1,cartNotFound:!0}:r.length>0?(console.error(`Add line failed:`,r),{success:!1}):{success:!0,lineId:(n?.data?.cartLinesAdd?.cart?.lines?.edges??[]).find(e=>e.node.merchandise.id===t.variantId)?.node?.id}}async function qx(e,t,n){let r=(await Tx(Vx,{cartId:e,lines:[{id:t,quantity:n}]}))?.data?.cartLinesUpdate?.userErrors??[];return Wx(r)?{success:!1,cartNotFound:!0}:r.length>0?(console.error(`Update line failed:`,r),{success:!1}):{success:!0}}async function Jx(e,t){let n=(await Tx(Hx,{cartId:e,lineIds:[t]}))?.data?.cartLinesRemove?.userErrors??[];return Wx(n)?{success:!1,cartNotFound:!0}:n.length>0?(console.error(`Remove line failed:`,n),{success:!1}):{success:!0}}var Yx=Px()(Lx((e,t)=>({items:[],cartId:null,checkoutUrl:null,isLoading:!1,isSyncing:!1,addItem:async n=>{let{items:r,cartId:i,clearCart:a}=t(),o=r.find(e=>e.variantId===n.variantId);e({isLoading:!0});try{if(!i){let t=await Gx({...n,lineId:null});t&&e({cartId:t.cartId,checkoutUrl:t.checkoutUrl,items:[{...n,lineId:t.lineId}]})}else if(o){let r=o.quantity+n.quantity;if(!o.lineId){console.error(`Cannot update quantity for item without lineId:`,o);return}let s=await qx(i,o.lineId,r);if(s.success){let i=t().items;e({items:i.map(e=>e.variantId===n.variantId?{...e,quantity:r}:e)})}else s.cartNotFound&&a()}else{let r=await Kx(i,{...n,lineId:null});if(r.success){let i=t().items;e({items:[...i,{...n,lineId:r.lineId??null}]})}else r.cartNotFound&&a()}}catch(e){console.error(`Failed to add item:`,e)}finally{e({isLoading:!1})}},updateQuantity:async(n,r)=>{if(r<=0){await t().removeItem(n);return}let{items:i,cartId:a,clearCart:o}=t(),s=i.find(e=>e.variantId===n);if(!(!s?.lineId||!a)){e({isLoading:!0});try{let i=await qx(a,s.lineId,r);if(i.success){let i=t().items;e({items:i.map(e=>e.variantId===n?{...e,quantity:r}:e)})}else i.cartNotFound&&o()}catch(e){console.error(`Failed to update quantity:`,e)}finally{e({isLoading:!1})}}},removeItem:async n=>{let{items:r,cartId:i,clearCart:a}=t(),o=r.find(e=>e.variantId===n);if(!(!o?.lineId||!i)){e({isLoading:!0});try{let r=await Jx(i,o.lineId);if(r.success){let r=t().items.filter(e=>e.variantId!==n);r.length===0?a():e({items:r})}else r.cartNotFound&&a()}catch(e){console.error(`Failed to remove item:`,e)}finally{e({isLoading:!1})}}},clearCart:()=>e({items:[],cartId:null,checkoutUrl:null}),getCheckoutUrl:()=>t().checkoutUrl,syncCart:async()=>{let{cartId:n,isSyncing:r,clearCart:i}=t();if(!(!n||r)){e({isSyncing:!0});try{let e=await Tx(Rx,{id:n});if(!e)return;let t=e?.data?.cart;(!t||t.totalQuantity===0)&&i()}catch(e){console.error(`Failed to sync cart with Shopify:`,e)}finally{e({isSyncing:!1})}}}}),{name:`shopify-cart`,storage:Fx(()=>localStorage),partialize:e=>({items:e.items,cartId:e.cartId,checkoutUrl:e.checkoutUrl})}));function Xx(){let[e,t]=(0,B.useState)(!1),{items:n,isLoading:r,isSyncing:i,updateQuantity:a,removeItem:o,getCheckoutUrl:s,syncCart:c}=Yx(),l=n.reduce((e,t)=>
131e+t.quantity,0),u=n.reduce((e,t)=>e+Number.parseFloat(t.price.amount)*t.quantity,0),d=n[0]?.price.currencyCode??`USD`;return(0,B.useEffect)(()=>{e&&c()},[e,c]),(0,V.jsxs)(dx,{open:e,onOpenChange:t,children:[(0,V.jsx)(fx,{asChild:!0,children:(0,V.jsxs)(`button`,{type:`button`,"aria-label":`Open cart`,className:`relative flex h-9 w-9 items-center justify-center rounded-md border border-border text-muted-foreground transition-colors hover:text-foreground`,children:[(0,V.jsx)(Mh,{className:`size-4`}),l>0&&(0,V.jsx)(h_,{className:`absolute -right-2 -top-2 flex h-5 w-5 items-center justify-center rounded-full p-0 text-[10px]`,children:l})]})}),(0,V.jsxs)(gx,{className:`flex h-full w-full flex-col sm:max-w-lg`,children:[(0,V.jsxs)(_x,{className:`flex-shrink-0`,children:[(0,V.jsx)(vx,{children:`Your order`}),(0,V.jsx)(yx,{children:l===0?`Your cart is empty`:`${l} item${l===1?``:`s`} in your cart`})]}),(0,V.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col px-4 pb-4 pt-6`,children:n.length===0?(0,V.jsx)(`div`,{className:`flex flex-1 items-center justify-center`,children:(0,V.jsxs)(`div`,{className:`text-center`,children:[(0,V.jsx)(Mh,{className:`mx-auto mb-4 size-10 text-muted-foreground`}),(0,V.jsx)(`p`,{className:`text-muted-foreground`,children:`Your cart is empty`})]})}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto pr-2`,children:(0,V.jsx)(`div`,{className:`space-y-4`,children:n.map(e=>(0,V.jsxs)(`div`,{className:`flex gap-4 rounded-md border border-border p-3`,children:[(0,V.jsx)(`div`,{className:`size-16 flex-shrink-0 overflow-hidden rounded-md bg-secondary/20`,children:e.product.node.images?.edges?.[0]?.node&&(0,V.jsx)(`img`,{src:e.product.node.images.edges[0].node.url,alt:e.product.node.title,className:`size-full object-cover`,loading:`lazy`})}),(0,V.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,V.jsx)(`h4`,{className:`truncate font-semibold`,children:e.product.node.title}),(0,V.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:e.selectedOptions.map(e=>e.value).join(` ⢠`)}),(0,V.jsx)(`p`,{className:`font-semibold`,children:Ox(e.price.amount,e.price.currencyCode)})]}),(0,V.jsxs)(`div`,{className:`flex flex-shrink-0 flex-col items-end gap-2`,children:[(0,V.jsx)(R_,{variant:`ghost`,size:`icon`,className:`size-6`,onClick:()=>o(e.variantId),children:(0,V.jsx)(Ph,{className:`size-3`})}),(0,V.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,V.jsx)(R_,{variant:`outline`,size:`icon`,className:`size-6`,onClick:()=>a(e.variantId,e.quantity-1),children:(0,V.jsx)(kh,{className:`size-3`})}),(0,V.jsx)(`span`,{className:`w-8 text-center text-sm`,children:e.quantity}),(0,V.jsx)(R_,{variant:`outline`,size:`icon`,className:`size-6`,onClick:()=>a(e.variantId,e.quantity+1),children:(0,V.jsx)(jh,{className:`size-3`})})]})]})]},e.variantId))})}),(0,V.jsxs)(`div`,{className:`flex-shrink-0 space-y-4 border-t border-border pt-4`,children:[(0,V.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,V.jsx)(`span`,{className:`text-lg font-semibold`,children:`Total`}),(0,V.jsx)(`span`,{className:`text-xl font-bold`,children:Ox(String(u),d)})]}),(0,V.jsx)(R_,{onClick:()=>{let e=s();e&&(window.open(e,`_blank`),t(!1))},className:`w-full`,size:`lg`,variant:`signal`,disabled:n.length===0||r||i,children:r||i?(0,V.jsx)(Dh,{className:`size-4 animate-spin`}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Eh,{className:`mr-2 size-4`}),`Checkout`]})})]})]})})]})]})}var Zx={version:1,asset_id:`1bf5df9a-f217-44f1-b2c3-00994679538a`,project_id:`8df3c618-144c-4d3e-98f5-9ae1908350cf`,url:`/__l5e/assets-v1/1bf5df9a-f217-44f1-b2c3-00994679538a/groundworx-light.png`,r2_key:`a/v1/8df3c618-144c-4d3e-98f5-9ae1908350cf/1bf5df9a-f217-44f1-b2c3-00994679538a/groundworx-light.png`,original_filename:`groundworx-light.png`,size:106059,content_type:`image/png`,created_at:`2026-09-15T01:18:35Z`},Qx={version:1,asset_id:`5b5b0386-08e9-4400-91e1-3a906d6dc422`,project_id:`8df3c618-144c-4d3e-98f5-9ae1908350cf`,url:`/__l5e/assets-v1/5b5b0386-08e9-4400-91e1-3a906d6dc422/golf-root-zone.jpg`,r2_key:`a/v1/8df3c618-144c-4d3e-98f5-9ae1908350cf/5b5b0386-08e9-4400-91e1-3a906d6dc422/golf-root-zone.jpg`,original_filename:`golf-root-zone.jpg`,
131size:462787,content_type:`image/jpeg`,created_at:`2026-09-15T04:00:29Z`},$x={version:1,asset_id:`40d28208-986a-4578-b3e8-05ffafd86fea`,project_id:`8df3c618-144c-4d3e-98f5-9ae1908350cf`,url:`/__l5e/assets-v1/40d28208-986a-4578-b3e8-05ffafd86fea/sports-field-root-zone.jpg`,r2_key:`a/v1/8df3c618-144c-4d3e-98f5-9ae1908350cf/40d28208-986a-4578-b3e8-05ffafd86fea/sports-field-root-zone.jpg`,original_filename:`sports-field-root-zone.jpg`,size:315043,content_type:`image/jpeg`,created_at:`2026-09-15T04:00:41Z`},eS={version:1,asset_id:`a6a8e3cc-ff78-43bd-a441-85434d9b3a8f`,project_id:`8df3c618-144c-4d3e-98f5-9ae1908350cf`,url:`/__l5e/assets-v1/a6a8e3cc-ff78-43bd-a441-85434d9b3a8f/campus-root-zone.jpg`,r2_key:`a/v1/8df3c618-144c-4d3e-98f5-9ae1908350cf/a6a8e3cc-ff78-43bd-a441-85434d9b3a8f/campus-root-zone.jpg`,original_filename:`campus-root-zone.jpg`,size:2217138,content_type:`image/png`,created_at:`2026-09-15T04:06:12Z`},tS={version:1,asset_id:`9ac2efce-6f5b-4c91-a851-9e6fd83b4476`,project_id:`8df3c618-144c-4d3e-98f5-9ae1908350cf`,url:`/__l5e/assets-v1/9ac2efce-6f5b-4c91-a851-9e6fd83b4476/cityscape-intelligence-network.jpg`,r2_key:`a/v1/8df3c618-144c-4d3e-98f5-9ae1908350cf/9ac2efce-6f5b-4c91-a851-9e6fd83b4476/cityscape-intelligence-network.jpg`,original_filename:`cityscape-intelligence-network.jpg`,size:411225,content_type:`image/jpeg`,created_at:`2026-09-15T04:00:32Z`},nS={version:1,asset_id:`c00264f3-2997-4670-8422-cdbb64f49bc1`,project_id:`8df3c618-144c-4d3e-98f5-9ae1908350cf`,url:`/__l5e/assets-v1/c00264f3-2997-4670-8422-cdbb64f49bc1/ag-electric-roots.jpg`,r2_key:`a/v1/8df3c618-144c-4d3e-98f5-9ae1908350cf/c00264f3-2997-4670-8422-cdbb64f49bc1/ag-electric-roots.jpg`,original_filename:`ag-electric-roots.jpg`,size:1319344,content_type:`image/png`,created_at:`2026-09-15T04:17:36Z`},rS=`/assets/iq-fire-station-reimagined-BW6ziOGF.jpg`,iS=Qx.url,aS=$x.url,oS=eS.url,sS=tS.url,cS=nS.url,lS={name:`GroundWorx`,tagline:`The Intelligence Beneath Every Decisionâ¢`,email:`[email protected]`,portalUrl:`https://mygroundworx.com`,wefunderUrl:`https://wefunder.com/groundworx`,calendlyUrl:`https://calendly.com/groundworx`,appStoreUrl:`https://apps.apple.com/us/iphone/search?term=groundworx`,androidAppUrl:`https://mygroundworxapp.s3.us-east-1.amazonaws.com/application-28c84e41-5543-44d5-9712-368977b42090.apk`,social:{linkedin:`https://www.linkedin.com/company/groundworx`,facebook:`https://www.facebook.com/getgroundworx`,instagram:`https://www.instagram.com/getgroundworx`,x:`https://x.com/getgroundworx`}},uS=`[email protected]`,dS=[{label:`GAIN`,to:`/gain`},{label:`Advisor`,to:`/advisor`},{label:`GX-1 Network`,to:`/platform`},{label:`Solutions`,to:`/solutions`},{label:`Shop`,to:`/shop`},{label:`About`,to:`/about`},{label:`Resources`,to:`/resources`}],fS=[{slug:`golf`,name:`Golf`,eyebrow:`Championship conditions`,headline:`Firm, consistent surfaces without guessing at the hose.`,summary:`Superintendents run the tightest tolerance in turf. GroundWorx puts continuous root-zone data under every green, tee, and fairway so hand-watering, syringe cycles, and overnight run times are decided by measurement instead of memory.`,image:iS,pressures:[`Members judge the course on firmness and green speed every single day.`,`Water budgets and local restrictions tighten faster than crews can adapt.`,`Localized dry spot and salinity build-up show up long after the damage starts.`],outcomes:[{label:`Water`,text:`Cut irrigation run times where the root zone is already at target, instead of watering the whole zone to protect one corner.`},{label:`Playability`,text:`Hold firmness through tournament weeks with moisture trends per green rather than a single spot check.`},{label:`Labor`,text:`Send hand-watering crews to the locations that actually need attention each morning.`}],stack:[`GX-1A and GX-1F sensors in greens, approaches, and fairway hot spots`,`AI weather intelligence for site-specific ET, rainfall, and forecasts`,`GAIN alerts and recommendations in the field app`]},{slug:`sports`,name:`Sports Fields`,eyebrow:`Safe, playable surfaces`,headline:`Field safety you can document, not just feel underfoot.`,summary:`Game-day surfaces live between too wet and too hard. The GX-1S
131sports sensor sits below the play surface and reports root-zone conditions continuously â fully standalone, with no iQ SmartWell housing required â so grounds crews can defend a field decision with data.`,image:aS,pressures:[`Back-to-back events leave almost no recovery window.`,`Safety and surface-hardness questions arrive with no supporting record.`,`One crew often covers many fields across a district or complex.`],outcomes:[{label:`Safety`,text:`Track moisture trends that drive surface hardness ahead of a fixture instead of after a complaint.`},{label:`Scheduling`,text:`Decide play-or-postpone with current field conditions rather than a regional forecast.`},{label:`Coverage`,text:`Monitor every field from one screen and prioritize the crew's day.`}],stack:[`GX-1S sports sensor, side-buried below the play surface â standalone, no iQ SmartWell required`,`AI weather intelligence for each complex`,`GAIN multi-field dashboard and alerting`]},{slug:`universities`,name:`Schools, Universities & Smart Cities`,eyebrow:`Campus & municipal grounds at scale`,headline:`One grounds team. Hundreds of acres. Real visibility.`,summary:`Campus and municipal grounds span athletics, quads, formal landscape, parks, medians, and public green spaces â each with a different standard and a shared budget. GroundWorx gives facilities teams a single record of what every area is actually doing.`,image:oS,pressures:[`Sustainability commitments require measured water reduction, not estimates.`,`Grounds budgets are reviewed against outcomes the team cannot easily show.`,`Athletics, academic, ceremonial, and civic spaces have very different standards.`],outcomes:[{label:`Reporting`,text:`Produce water-use and turf-health records that support sustainability reporting.`},{label:`Budget`,text:`Justify equipment, staffing, and renovation requests with continuous field evidence.`},{label:`Teaching`,text:`Give turf and agronomy programs live data from their own campus.`}],stack:[`GX-1 Series sensors with iQ SmartWells across athletics, quads, parks, medians, and public green spaces`,`Advanced AI weather and forecasting across the campus and municipality`,`GAIN accounts by department with shared reporting`]},{slug:`commercial`,name:`Commercial Properties`,eyebrow:`Portfolio landscape`,headline:`Protect the curb appeal and the water bill at the same time.`,summary:`Corporate campuses, resorts, HOAs, and managed portfolios are judged on appearance and audited on cost. GroundWorx makes landscape performance measurable while helping protect irreplaceable living assets â including mature specimen trees, old-growth olives, and large, high-value date palms.`,image:sS,pressures:[`Landscape contracts are priced on schedules, not on conditions.`,`Water stress can stay hidden below valuable trees and palms until damage is visible in the canopy.`,`Ownership wants evidence before approving landscape spend.`],outcomes:[{label:`Cost`,text:`Find over-watered zones and stuck valves through moisture behavior instead of walk-throughs.`},{label:`Living assets`,text:`Catch root-zone stress before it becomes visible in the canopy of a valuable mature tree or palm.`},{label:`Oversight`,text:`Hold vendors to measured outcomes across the whole portfolio.`}],stack:[`Sensors in signature and high-risk zones per property`,`AI weather intelligence per site or region`,`GAIN portfolio view with per-property alerts`]},{slug:`agriculture`,name:`Agriculture`,eyebrow:`Field-scale irrigation`,headline:`Irrigate on root-zone truth across every block.`,summary:`The iQ SmartTowers extend GroundWorx into production agriculture and high-value perennial crops, reporting soil moisture, temperature, and salinity at depth across open acreage. From old-growth olive trees to large date palms, irrigation decisions follow the root zone â not the calendar.`,image:cS,pressures:[`Pumping and water costs move directly with every irrigation decision.`,`Salinity and moisture vary widely inside a single block, grove, or palm stand.`,`Crews cover long distances to check conditions by hand.`],outcomes:[{label:`Inputs`,text:`Time irrigation to measured depletion in the active root zone.`},{label:`Salinity`,text:`Watch salinity build-up at depth and plan leaching before yield is affected.`},{label:`Protection`,text:`Spot root-zone stress early around mature, high-value olives and date palms where replacement is costly and slow.`}],stack:[`iQ SmartTowers shipping on LTE Cat-1 with an elevation extension â an elevated antenna mast engineered for long-range cellular across large farmland and rural topography`,`Multi-depth soil profiles per block`,`GAIN block-level dashboard and alerting`,`Direct satellite NT
131N fallback is in development, not a shipping feature today`]},{slug:`fire-safety`,name:`iQ Fire Station`,eyebrow:`Emerging fire intelligence`,headline:`Early detection where fires start â on the forest floor.`,summary:`An emerging 32-element sensing network for wildfire prevention â monitoring fuel moisture below ground and air quality, smoke, flame, and atmospheric conditions above it, with autonomous alerts through GAIN. The same deep root-zone sensing protects historic olive groves and orchard assets on the property from drought stress and fire risk.`,image:rS,development:!0,pressures:[`Wildfire detection happens too late â after smoke is visible from a distance, the fire is already established.`,`Existing detection depends on human patrols or satellite passes with long gaps between readings.`,`Wildland-urban interface zones need always-on sensing, not seasonal coverage.`],outcomes:[{label:`Detection`,text:`Continuous 32-element sensing â smoke, flame, particulates, thermal imaging, and atmospheric readings â catches fire signatures in the minutes that matter.`},{label:`Fuel moisture`,text:`In-ground soil moisture and temperature readings track fuel conditions in real time, not from a weekly index.`},{label:`Resilience`,text:`Meshed mission-critical communications over satellite, LTE, LoRaWAN, and 900 MHz keep reporting when other networks go down.`}],stack:[`iQ Fire Station â 32-element SmartTower spokes (under development)`,`Dispersed Starlink Super Station hubs for satellite backhaul across WUI zones and timberlands (under development)`,`Air quality, smoke, flame, particulate, thermal imaging, and atmospheric sensing above ground`,`In-ground fuel-moisture sensing + multi-mode comms (direct satellite, Band 25 LTE, 900 MHz mesh, LoRaWAN)`]}],pS={hubs:{role:`The Hubs`,title:`Dispersed Starlink Super Stations`,text:`High-bandwidth, high-survivability satellite backhaul stations, strategically dispersed across wildland-urban interface zones, timberlands, and forest perimeters. Each hub carries the traffic of every tower meshed to it, so there is no single point of failure when regional grid power or terrestrial cell towers go down during an active wildfire event.`,points:[`Placed deliberately across WUI zones, timberland, and forest perimeters â coverage designed around the terrain, not the nearest tower.`,`Satellite backhaul independent of the regional grid and of terrestrial carrier infrastructure.`,`Redundant hubs mean the loss of any one station reroutes rather than blinds the network.`]},spokes:{role:`The Spokes`,title:`iQ Fire Station SmartTowers`,text:`32-element sensing edge towers deployed throughout the terrain, meshing directly into the nearest Starlink Super Station. Each tower is built with Band 25 canopy-penetrating spectrum, selected specifically for dense forest and heavy foliage, and carries multi-mode communications so a reading always has a path out.`,points:[`Band 25 LTE spectrum chosen for canopy and foliage penetration where higher bands fall apart.`,`Multi-mode comms: direct satellite capability, Band 25 LTE, 900 MHz long-range mesh, and LoRaWAN.`,`Continuous telemetry â thermal imaging, flame, smoke, air quality, atmospheric conditions, and in-ground fuel moisture.`,`Keeps reporting through total terrestrial network blackout by meshing to a hub or going direct to satellite.`]},topology:[{step:`Edge`,text:`32-element towers sense the forest floor and the air above it, every cycle, in every season.`},{step:`Mesh`,text:`Towers relay to each other over 900 MHz and LoRaWAN, so a tower without a clear path uses a neighbor's.`},{step:`Hub`,text:`The mesh terminates at the nearest Starlink Super Station for satellite backhaul.`},{step:`GAIN`,text:`Readings land in GAIN, where fuel-moisture, thermal, and air-quality signatures trigger autonomous alerts.`}]},mS=[{code:`iQ-SW`,name:`iQ SmartWell`,text:`The permanent in-ground housing that every GX-1A and GX-1F sensor installs into. Each SmartWell anchors a monitored location and lets sensors rotate between wells â so every visited point becomes a Ghost Location that keeps predicting after the sensor moves on.`,status:`Being Released Q4 2026`},{code:`GX-1A`,name:`GX-1A Soil Sensor`,text:`Root-zone sensing for turf, reporting moisture, temperature, and salinity from a 6 inch burial across a 2 to 8 inch profile. Installs into a permanent iQ SmartWell, so the sensor can rotate between locations while each learned location keeps contributing.`,status:`Available now`},{code:`GX-1F`,name:`GX-1F Flex Sensor â Tree Specialized`,text:`The GX-1F is the tree-specialized sensor in the GX-1 fam
131ily. Its 8 inch burial reads a 1 to 44 inch profile â deep enough to reach the expansive root zones of old-growth olive trees, large date palms, and other high-value specimen trees that shallower sensors miss. It also serves drainage studies and agricultural soils. Like the GX-1A, it installs into a permanent iQ SmartWell housing, and paired with GAIN it reveals developing root-zone stress before damage reaches the canopy.`,status:`Available now`},{code:`GX-1S`,name:`GX-1S Sports Sensor`,text:`A side-buried, omnidirectional sensor built with PURE Insight for athletic fields where nothing can sit under the play surface. Available until the iQ Capsule replaces it.`,status:`Available now`},{code:`iQ Capsule`,name:`iQ Capsule`,text:`Playing-surface intelligence for greens and athletic surfaces, delivered as an annual intelligence service rather than a hardware purchase. Succeeds the GX-1S.`,status:`Under development · Target Q1 2027`,development:!0},{code:`iQ1`,name:`iQ1 SmartTower`,text:`Field-scale soil intelligence for production agriculture and high-value perennial crops. The iQ1 carries one in-ground sensor array plus integrated AI weather, reporting moisture, temperature, and salinity at depth across open acreage, olive groves, and date-palm stands. Direct satellite NT
131N fallback is in development.`,status:`Available now`},{code:`iQ2`,name:`iQ2 SmartTower`,text:`Doubled ground-truth coverage for production agriculture and valuable mature trees. The iQ2 carries two in-ground sensor arrays plus integrated AI weather, reading multi-depth profiles across the broad root zones of old-growth olives and large date palms. Direct satellite NTN fallback is in development.`,status:`Available now`},{code:`iQ1-SAT`,name:`iQ1 SmartTower â Satellite`,text:`The iQ1 with direct satellite NTN connectivity â one in-ground sensor array plus integrated AI weather, reporting from anywhere on earth with no cellular coverage required. Price to be determined.`,status:`Coming soon · Price TBD`},{code:`iQ2-SAT`,name:`iQ2 SmartTower â Satellite`,text:`The iQ2 with direct satellite NTN connectivity â two in-ground sensor arrays plus integrated AI weather, reading multi-depth profiles across a wider root zone from anywhere on earth. Price to be determined.`,status:`Coming soon · Price TBD`}],hS=[{label:`Cellular by design`,text:`LTE Cat-1 connectivity means no gateways, no mesh, and no line-of-sight planning â each sensor reports on its own.`},{label:`Redundant global SIM`,text:`A multi-carrier eSIM engineered with KORE rides tier-1 networks â AT&T, Verizon, T-Mobile, Vodafone, Telstra and more â with automatic failover to whichever carrier is strongest at that spot in the ground.`},{label:`Works in 180+ countries`,text:`One SKU, one profile, no local SIM sourcing. Sensors connect out of the box wherever they land. For open acreage, iQ SmartTowers add an elevation extension for long-range cellular reach.`},{label:`Zero IT overhead`,text:`Nothing touches your network. No gateways, repeaters, mesh radios, property Wi-Fi, firewall rules, or IT tickets â the sensor talks straight to GAIN.`},{label:`Seven-year battery`,text:`Install once and leave it in the ground. No charging cycles, no seasonal retrieval.`},{label:`144 readings a day`,text:`A reading every ten minutes builds a continuous record instead of an occasional snapshot.`},{label:`Ten-minute install`,text:`Cut a plug, place the sensor, replace the plug. Most locations are live before the crew moves on.`},{label:`Made in the USA`,text:`Manufactured in partnership with Morey Corp, in production since 2021.`}],gS=[{value:`180+`,label:`Countries covered out of the box`},{value:`Multi-carrier`,label:`Tier-1 auto-failover on a single eSIM`},{value:`Zero`,label:`Gateways, repeaters, or Wi-Fi to install`},{value:`Elevated mast`,label:`Long-range LTE Cat-1 reach on iQ SmartTowers`}],_S=[`AT&T`,`Verizon`,`T-Mobile`,`Vodafone`,`Telstra`,`Orange`,`Telefónica`,`NTT Docomo`],vS=[{title:`Redundant global eSIM architecture`,text:`Every GX-1 sensor and iQ SmartTower ships with a redundant eSIM/SIM profile engineered with KORE. It is not locked to one operator â it negotiates across tier-1 networks and holds the strongest available path from inside a buried well.`},{title:`Automatic carrier failover`,text:`If a carrier degrades, congests, or drops during a tower outage, the sensor re-attaches to the next network in the profile on its own. No truck roll, no reconfiguration, no missed readings while someone swaps a SIM.`},{title:`Elevation extension for open acreage`,text:`iQ SmartTowers ship today on LTE Cat-1 with an elevation extension â an elevated antenna mast engineered for long-range cellular across large-scale farmland and rural topography, where the nearest tower can be miles from the block.`},{title:`No infrastructure, no IT project`,text:`There is nothing to hang on a pole, nothing to plug into a clubhouse switch, and nothing for your IT team to approve. Each sensor is an independent, self-connecting endpoint â which is why a property goes live in a day.`}
131,{title:`Direct satellite NTN fallback`,text:`On the roadmap for sites past the last cell tower: non-terrestrial network fallback so a reading still reaches GAIN with no terrestrial coverage at all. This is in active development and is not a shipping capability today.`,development:!0}],yS=[{label:`Central irrigation control`,text:`Toro Lynx, Rain Bird Cirrus and Nimbus, Hunter, and other central systems. Push root-zone moisture into your control platform and pull run times, flow, and station history back into GAIN so predictions know what was actually applied.`},{label:`Weather networks`,text:`Bring your own hyper-local weather station or third-party weather feed alongside GAIN's modeled AI weather. Both sources sit side by side in the record rather than one replacing the other.`},{label:`Agronomy & turf software`,text:`Sync locations, readings, and events into the agronomy, maintenance, and work-order platforms your team already runs â including GreenSight TurfCloud.`},{label:`GIS & mapping`,text:`Every SmartLocation carries coordinates, so readings publish into ArcGIS, QGIS, and property mapping layers as live geospatial data, not a spreadsheet export.`},{label:`Enterprise data lakes`,text:`Stream raw and derived telemetry into Snowflake, BigQuery, S3, or your own warehouse on a schedule, and run it through whatever BI or sustainability reporting you already use.`},{label:`Build your own`,text:`A documented REST API with webhooks and scoped API keys. If it can make an HTTP request, it can read GroundWorx data and write context back.`}],bS=[{label:`Below the surface`,text:`GroundWorx in-ground moisture, temperature, and salinity readings sync directly into TurfCloud, arriving every ten minutes against the same mapped locations.`},{label:`Above the surface`,text:`GreenSight drone flights add thermal and NDVI imagery, so canopy stress and root-zone conditions are read against each other instead of in separate tools.`},{label:`Across the property`,text:`Autonomous equipment and crew management live in the same operating picture, so what the ground says and what the crew does are never two systems apart.`}],xS=[{step:`Observe`,text:`Field sensors capture root-zone conditions with location, time, and depth attached to every reading.`},{step:`Contextualize`,text:`GAIN joins those readings to AI weather, irrigation history, maintenance activity, and the goals for each location.`},{step:`Predict`,text:`The model projects where conditions are heading, and states how strongly the evidence supports it.`},{step:`Decide`,text:`Your team acts. Recommendations carry the location, the action, the rationale, and a confidence level.`},{step:`Verify`,text:`What actually happened after the decision is captured and compared against what was predicted.`},{step:`Learn`,text:`Verified outcomes sharpen the next prediction. This is Intelligence Compoundingâ¢.`}],SS=[{value:`9 years`,label:`Research, engineering, and field deployment`},{value:`700M+`,label:`Environmental observations collected`},{value:`150+`,label:`Paid field trials across sectors`},{value:`11`,label:`Countries with deployments`}],CS=[{q:`What does a GroundWorx sensor measure?`,a:`Each sensor reports soil moisture, soil temperature, and salinity from the root zone, along with signal and battery health. Readings are taken roughly every ten minutes and sent over the cellular network.`},{q:`Do I need a gateway, repeater, or Wi-Fi?`,a:`No. Every sensor communicates over LTE Cat-1 cellular on its own. There is no base station to place, no mesh to plan, no mesh radios, and no property Wi-Fi to extend. Nothing touches your network, so there is no IT project and no firewall change.`},{q:`Which carrier do the sensors use?`,a:`All of them, effectively. Each sensor carries a redundant global eSIM engineered with KORE that roams across tier-1 carriers â AT&T, Verizon, T-Mobile, Vodafone, Telstra and others â and fails over automatically to whichever network is strongest at that location. You never buy, manage, or swap a SIM.`},{q:`Does GroundWorx work outside the United States?`,a:`Yes. The same sensor works out of the box in more than 180 countries with no local SIM sourcing or hardware variant. For large farmland and rural topography, iQ SmartTowers ship on LTE Cat-1 with an elevation extension for long-range reach. Direct satellite NT
131N fallback is in development and is not shipping today.`},{q:`Can GroundWorx data flow into the systems we already use?`,a:`Yes, in both directions. An open REST API with webhooks connects GAIN to central irrigation control (Toro Lynx, Rain Bird Cirrus and Nimbus, Hunter and others), weather stations, agronomy software, GIS mapping, and enterprise data lakes. No walled gardens â the data is yours and you can stream it anywhere.`},{q:`How long does installation take?`,a:`A typical location takes about ten to fifteen minutes: cut a plug, set the sensor at the specified depth, and replace the plug. Most properties are fully installed in a day.`},{q:`How long does the battery last?`,a:`Sensors are built for a seven-year service life in the ground with no charging or battery swaps.`},{q:`Can I mow, aerate, and topdress over the sensors?`,a:`Yes. Sensors are buried below normal cultural practice depth. We map every location so your crew knows exactly where each unit sits before aerification.`},{q:`How many sensors does a property need?`,a:`It depends on your soil variability and the decisions you want to make. A golf course typically starts with greens and known problem areas; sports complexes usually start with one per field. We build the layout with you during the site plan.`},{q:`What is GAIN?`,a:`GAIN is the GroundWorx Autonomous Intelligence Network â the software layer that reads every sensor reading alongside AI-modeled weather, learns how your site responds, and turns that into alerts, forecasts, and irrigation recommendations in the dashboard and mobile app.`},{q:`What is agentic AI, and how does GroundWorx use it?`,a:`Most people know generative AI as a system that answers a question or writes something for you. Agentic AI goes a step further: it works toward a defined goal. GroundWorx observes changing conditions, reasons through the evidence, determines what should happen next, and learns from the outcome â all within boundaries you set. Instead of telling a superintendent that an area is dry, GAIN helps answer a far more useful question: does this area need water tonight, how much, and what happens if we wait?`},{q:`Does the AI take control away from my team?`,a:`No. The operator stays in control. GroundWorx is built to support human judgment and, where appropriate, coordinate action only within defined permissions and boundaries. Every recommendation shows its evidence and a confidence level, so your team can accept it, adjust it, or override it. This is not AI replacing expertise â it is intelligence giving experts earlier, clearer, more actionable evidence.`},{q:`What does the AI actually learn from?`,a:`Repeated measurements of moisture, temperature, and salinity tied to a specific place and moment, combined with weather, site history, root-zone conditions, irrigation activity, and your operating goals. Machine learning recognizes patterns and improves its estimates as it sees more relevant examples; deeper models pick up more complex relationships across many variables and longer time spans.`},{q:`Why do two locations with the same reading get different recommendations?`,a:`Because every location behaves differently. Sandy soil can dry rapidly while another soil holds water far longer, and sun, shade, roots, irrigation, and tomorrow's weather all change what a reading means. As GroundWorx samples a location again and again, it learns that location's environmental signature â how quickly it gains or loses moisture, how it responds to irrigation and rainfall, how temperature moves the root zone, and which patterns tend to appear before visible stress. Over time the location moves from simply being measured to becoming predictive.`},{q:`What is Intelligence Compoundingâ¢?`,a:`When the actual outcome comes back â what was watered, how conditions changed, and whether the recommendation worked â that verified feedback can improve future intelligence. Every deployment, prediction, decision, and confirmed outcome has the potential to sharpen what GroundWorx understands next. Comparable evidence, governance, and feedback are what make that possible; volume alone does not.`},{q:`What makes the GroundWorx dataset hard to replicate?`,a:`A competitor can buy a sensor or build a dashboard. What cannot be reproduced overnight is nine years of environmental history, more than 700 million observations, the context connecting them, and the learning created through repeated deployments and verified outcomes. The value is not the size of the number â it is the structure behind it.`}
131,{q:`Is this just generic AI applied to turf?`,a:`No. Generic AI makes assumptions about the physical world. GroundWorx is predictive environmental intelligence grounded in real measured conditions, trained through repetition, enriched by weather and site context, and adapted to the specific place where the decision has to be made. Predictions are estimates carrying a stated confidence, never guarantees.`},{q:`What is AAEI?`,a:`AAEI stands for Aggregated Autonomous Environmental Intelligence. It is the reasoning layer that sits above GAIN. Where GAIN organizes millions of observations into trustworthy environmental evidence, AAEI reasons across that aggregated evidence to estimate likely future conditions, express how confident it is, and support better operating decisions. The combination â aggregated evidence, autonomous reasoning, and environmental intelligence â is what lets GroundWorx turn raw telemetry into a decision rather than just a number.`},{q:`Does GroundWorx control my irrigation system?`,a:`GroundWorx informs irrigation decisions and integrates with your existing process. Talk to us about your central control system and we will walk through how teams on that platform use GAIN today.`}],wS=[{name:`Brad David`,role:`Founder, Chairman & Chief Executive Officer`,bio:`A thirty-two year wireless veteran who has founded four companies and co-invented the GX-1 platform.`},{name:`Diego Borrego`,role:`President & Chief Technology Officer`,bio:`Thirty-plus years in wireless, MIT engineering, founder of Networkfleet, and holder of more than fifty US patents.`},{name:`Sandy Robertson`,role:`Chief Operating Officer`,bio:`Twenty-three years of Fortune 50 leadership, having scaled a technology startup to more than $100M in verified savings.`},{name:`Wade Williams`,role:`EVP & Chief Information Officer`,bio:`Leads information systems and enterprise data architecture.`},{name:`Craig Kirkpatrick`,role:`VP, Hardware`,bio:`Owns sensor mechanical design, durability, and manufacturing readiness.`},{name:`Steve Loudon`,role:`VP, Electrical & Firmware`,bio:`Leads sensor electronics and the embedded firmware behind every reading.`},{name:`Luis Saldana`,role:`VP, Software`,bio:`Leads the GAIN dashboard, mobile app, and data platform.`},{name:`Chris Bunnell`,role:`Director of Care & Learning`,bio:`Thirty years in agronomy, guiding customers from install through daily practice.`},{name:`Dennis Clark`,role:`Board Member`,bio:`Former Fairmont general manager with deep hospitality and resort operations experience.`},{name:`Vince Petrella`,role:`Board Member`,bio:`Former President of The Morey Corporation, where he led the electronics manufacturer â GroundWorx's US manufacturing partner â through its next phase of growth.`},{name:`Kelly Hill`,role:`Board Member`,bio:`Providing oversight in a Board position to corporate governance, capital raise, and capital management, business development, branding, strategic partnerships, acquisitions, and more.`},{name:`Lee Marshall`,role:`Co-Founder`,bio:`Co-founder and long-standing partner in the New Zealand market.`},{name:`Shawn Emerson`,role:`Advisor, Agronomy`,bio:`Thirty-four-plus years in golf operations and agronomy, consulting across private clubs and resorts through Ethos Club & Leisure and GSI Executive Search.`},{name:`Mark Woodward, CGCS, MBA`,role:`Advisor, Golf Operations`,bio:`Fifty-plus years in the golf industry, former CEO of the GCSAA â the first golf course superintendent to hold the role â and Director of Agronomy at Whisper Rock Golf Club.`},{name:`Gary Hallberg`,role:`Special Advisor`,bio:`Three-time PGA Tour winner and the first four-time first-team All-American in college golf history. 1979 NCAA individual champion at Wake Forest, 1980 PGA Tour Rookie of the Year, and a veteran of the PGA Tour Champions.`}],TS=[{name:`Morey Corp`,role:`Key Manufacturing Partnership`,key:!0,description:`Our key US manufacturing partner. Every GX-1 sensor and iQ SmartWell is built by The Morey Corporation â an American electronics manufacturer with nearly a century of engineering heritage â and GroundWorx hardware has been in production with Morey since 2021.`,quote:`At Morey, we work with a lot of companies â from early-stage innovators to established brands that need mission-critical hardware â and what stood out to us about GroundWorx is the clarity of their vision and the discipline behind how they've designed the product for Morey to build.`,quoteSource:`Ryne DeBoer, CEO, The Morey Corporation`},{name:`KORE`,role:`Connectivity`,description:`Our global IoT connectivity partner. KORE keeps every GroundWorx sensor and SmartTower connected across carriers and borders, so readings from a green in California or a field in New Zealand reach GAIN reliably, without customers managing a single SIM.`},{name:`2J Antennas`,role:`Antenna Engineering`,description:`Our antenna technology partner. 2J Antennas supplies the high-performance, low-profile embedded antennas that keep every GroundWorx sensor and SmartTower locked onto cellular and GNSS signals from inside a buried well or sealed housing.`},{name:`Acclima`,role:`Sensor Science`,description:`Our soil-moisture science partner. Acclima's TDR (time-domain reflectometry) measurement expertise underpins the accuracy of GroundWorx soil-moisture readings, bringing laboratory-grade precision to in-ground field sensors.`},{name:`PURE Insight`,role:`Sensor Science`,description:`Sensor development and advanced agronomy partner, collaborating with GroundWorx on next-generation autonomous soil sensors.`},{name:`Ethos Club & Leisure`,role:`Industry Partner`,description:`Club and leisure industry partner, extending GroundWorx into premium hospital
131ity and resort operations.`},{name:`Living Turf`,role:`Distribution â Australia & New Zealand`,description:`Leading supplier of turf management products and services across Australia and New Zealand, and the main distributor of GroundWorx sensors in the region.`},{name:`Ewing Outdoor Supply`,role:`Distribution â United States`,description:`One of the nation's top suppliers of landscape and irrigation products, and a primary distributor of GroundWorx sensors across the country.`,quote:`At Ewing, we're always seeking innovative products that deliver value to our customers. The GroundWorx autonomous soil monitoring sensors are a game-changer, providing precise data that helps optimize water use while maintaining healthy and vibrant landscapes.`,quoteSource:`Steve Sakurai, National Golf Segment Manager, Ewing Outdoor Supply`},{name:`GreenSight`,role:`Distribution & Integration â TurfCloud`,description:`Official distributor and integrator of GroundWorx solutions. GreenSight's TurfCloud platform unifies GroundWorx soil sensors with drone imagery, robotic mowers, and crew management â giving turf and property managers a single dashboard for their entire operation.`,quote:`We're excited to welcome GroundWorx into the TurfCloud ecosystem. This integration gives our users deeper insight into their soil and water management practices, and strengthens our shared mission of empowering proactive, sustainable turf care.`,quoteSource:`Stephen Ohlson, VP of Turf and Agriculture, GreenSight`}
131],ES=[{title:`GX-1 Sensor Installation Guide`,description:`Placement depth, plug technique, and site mapping for every sensor model.`},{title:`GAIN Platform Quick Start`,description:`Account setup, SmartLocation naming, alert thresholds, and mobile app basics.`}];function DS(){let[e,t]=(0,B.useState)(!1),[n,r]=(0,B.useState)(!1);return(0,B.useEffect)(()=>{r(document.documentElement.classList.contains(`dark`))},[]),(0,V.jsxs)(`header`,{className:`sticky top-0 z-50 border-b border-border bg-background/85 backdrop-blur-xl`,children:[(0,V.jsxs)(`div`,{className:`mx-auto flex h-16 max-w-7xl items-center justify-between gap-6 px-5 md:px-8`,children:[(0,V.jsxs)(fe,{to:`/`,"aria-label":`GroundWorx home`,className:`shrink-0`,children:[(0,V.jsx)(`img`,{src:Ih.url,alt:`GroundWorx`,width:1195,height:173,className:`h-7 w-auto dark:hidden`}),(0,V.jsx)(`img`,{src:Zx.url,alt:`GroundWorx`,width:1195,height:170,className:`hidden h-7 w-auto dark:block`})]}),(0,V.jsx)(`nav`,{className:`hidden items-center gap-7 lg:flex`,"aria-label":`Main`,children:dS.map(e=>(0,V.jsx)(fe,{to:e.to,className:`text-sm font-semibold text-muted-foreground transition-colors hover:text-foreground data-[status=active]:text-foreground`,children:e.label},e.to))}),(0,V.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,V.jsx)(`a`,{href:lS.portalUrl,target:`_blank`,rel:`noreferrer`,className:`hidden items-center gap-1.5 rounded-md border border-primary/40 px-3 py-1.5 text-xs font-semibold uppercase tracking-[0.12em] text-primary transition-colors hover:border-primary hover:bg-primary/10 sm:inline-flex`,children:`GAIN Login`}),(0,V.jsx)(Xx,{}),(0,V.jsx)(`button`,{type:`button`,onClick:()=>{let e=!n;r(e),document.documentElement.classList.toggle(`dark`,e);try{localStorage.setItem(`gw-theme`,e?`dark`:`light`)}catch{}},"aria-label":n?`Switch to light mode`:`Switch to dark mode`,className:`flex h-9 w-9 items-center justify-center rounded-md border border-border text-muted-foreground transition-colors hover:text-foreground`,children:n?(0,V.jsx)(Nh,{className:`size-4`}):(0,V.jsx)(Ah,{className:`size-4`})}),(0,V.jsx)(R_,{variant:`console`,size:`sm`,asChild:!0,className:`hidden md:inline-flex`,children:(0,V.jsx)(fe,{to:`/contact`,search:{type:`pilot`},children:`Start a paid pilot`})}),(0,V.jsx)(R_,{variant:`signal`,size:`sm`,asChild:!0,className:`hidden sm:inline-flex`,children:(0,V.jsx)(fe,{to:`/contact`,search:{type:`demo`},children:`Book a GAIN demo`})}),(0,V.jsx)(`button`,{type:`button`,onClick:()=>t(e=>!e),"aria-label":e?`Close menu`:`Open menu`,"aria-expanded":e,className:`flex h-9 w-9 items-center justify-center rounded-md border border-border text-muted-foreground lg:hidden`,children:e?(0,V.jsx)(Fh,{className:`size-4`}):(0,V.jsx)(Oh,{className:`size-4`})})]})]}),e?(0,V.jsx)(`div`,{className:`border-t border-border bg-background lg:hidden`,children:(0,V.jsxs)(`nav`,{className:`mx-auto flex max-w-7xl flex-col px-5 py-2`,"aria-label":`Mobile`,children:[dS.map(e=>(0,V.jsx)(fe,{to:e.to,onClick:()=>t(!1),className:`border-b border-border py-3 text-sm font-semibold text-muted-foreground last:border-b-0 hover:text-foreground`,children:e.label},e.to)),(0,V.jsx)(`a`,{href:lS.portalUrl,target:`_blank`,rel:`noreferrer`,onClick:()=>t(!1),className:`rounded-md border border-primary/40 px-3 py-2.5 text-center text-sm font-semibold uppercase tracking-[0.12em] text-primary`,children:`GAIN Login`}),(0,V.jsxs)(`div`,{className:`flex flex-col gap-2 py-4`,children:[(0,V.jsx)(R_,{variant:`signal`,asChild:!0,onClick:()=>t(!1),children:(0,V.jsx)(fe,{to:`/contact`,search:{type:`demo`},children:`Book a GAIN demo`})}),(0,V.jsx)(R_,{variant:`console`,asChild:!0,onClick:()=>t(!1),children:(0,V.jsx)(fe,{to:`/contact`,search:{type:`pilot`},children:`Start a paid pilot`})})]})]})}):null]})}function OS(){let e=Yx(e=>e.syncCart);(0,B.useEffect)(()=>{e();let t=()=>{document.visibilityState===`visible`&&e()};return document.addEventListener(`visibilitychange`,t),()=>document.removeEventListener(`visibilitychange`,t)},[e])}function kS(){return(0,V.jsxs)(`footer`,{className:`border-t border-border bg-surface-deep`,children:[(0,V.jsxs)(`div`,{className:`mx-auto grid max-w-7xl gap-10 px-5 py-14 md:grid-cols-[1.4fr_1fr_1fr_1fr] md:px-8`,children:[(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`img`,{src:Ih.url,alt:`GroundWorx`,loading:`lazy`,width:1195,height:173,className:`h-7 w-auto dark:hidden`}),(0,V.jsx)(`img`,{src:Zx.url,alt:`GroundWorx`,loading:`lazy`,width:1195,height:170,className:`hidden h-7 w-auto dark:block`}),(0,V.jsx)(`p`,{className:`mt-5 max-w-xs text-sm leading-relaxed text-muted-foreground`,children:lS.tagline}),(0,V.jsx)(`p`,{className:`mt-4 text-sm text-muted-foreground`,children:(0,V.jsx)(`a`,{className:`hover:text-foreground`,href:`mailto:${lS.email}`,children:lS.email})})]}),(0,V.jsxs)(AS,{title:`Platform`,children:[(0,V.jsx)(jS,{to:`/gain`,children:`GAIN`}),(0,V.jsx)(jS,{to:`/platform`,children:`GX-1 Network`}),(0,V.jsx)(jS,{to:`/resources`,children:`Resources`}),(0,V.jsx)(jS,{to:`/contact`,children:`Book a GAIN demo`})]}),(0,V.jsx)(AS,{title:`Solutions`,children:fS.map(e=>(0,V.jsx)(fe,{to:`/solutions/$slug`,params:{slug:e.slug},className:`hover:text-foreground`,children:e.name},e.slug))}),(0,V.jsxs)(AS,{title:`Company`,children:[(0,V.jsx)(jS,{to:`/about`,children:`About us`}),(0,V.jsx)(jS,{to:`/case-studies`,children:`Case studies`}),(0,V.jsx)(jS,{to:`/testimonials`,children:`Testimonials`}),(0,V.jsx)(jS,{to:`/blog`,children:`Blog`}),(0,V.jsx)(jS,{to:`/press`,children:`Press`}),(0,V.jsx)(jS,{to:`/news`,children:`Industry news`}),(0,V.jsx)(MS,{href:lS.portalUrl,children:`GAIN portal`}),(0,V.jsx)(MS,{href:lS.appStoreUrl,children:`Mobile app â iOS`}),(0,V.jsx)(MS,{href:lS.androidAppUrl,children:`Mobile app â Android`}),(0,V.jsx)(MS,{href:lS.wefunderUrl,children:`Invest`})]})]}),(0,V.jsx)(`div`,{className:`border-t border-border`,children:(0,V.jsxs)(`div`,{className:`mx-auto flex max-w-7xl flex-col gap-3 px-5 pt-6 pb-20 text-xs text-muted-foreground md:flex-row md:items-center md:justify-between md:px-8 lg:pb-6`,children:[(0,V.jsxs)(`span`,{children:[`© `,new Date().getFullYear(),` GroundWorx. All rights reserved.`]}),(0,V.jsxs)(`div`,{className:`flex flex-wrap gap-5`,children:[(0,V.jsx)(fe,{className:`hover:text-foreground`,to:`/legal`,children:`Legal`}),(0,V.jsx)(fe,{className:`hover:text-foreground`,to:`/privacy`,children:`Privacy`}),(0,V.jsx)(`a`,{className:`hover:text-foreground`,href:lS.social.linkedin,target:`_blank`,rel:`noreferrer`,children:`LinkedIn`}),(0,V.jsx)(`a`,{className:`hover:text-foreground`,href:lS.social.facebook,target:`_blank`,rel:`noreferrer`,children:`Facebook`}),(0,V.jsx)(`a`,{className:`hover:text-foreground`,href:lS.social.instagram,target:`_blank`,rel:`noreferrer`,children:`Instagram`})]})]})})]})}function AS({title:e,children:t}){return(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`p`,{className:`font-mono text-[10px] uppercase tracking-[0.18em] text-primary`,children:e}),(0,V.jsx)(`div`,{className:`mt-4 flex flex-col gap-3 text-sm text-muted-foreground`,children:t})]})}function jS(e){return(0,V.jsx)(fe,{...e,className:`hover:text-foreground`})}function MS({href:e,children:t}){return(0,V.jsx)(`a`,{href:e,target:`_blank`,rel:`noreferrer`,className:`hover:text-foreground`,children:t})}var NS=`gw-wefunder-banner-dismissed`;function PS(){let[e,t]=(0,B.useState)(!0);return(0,B.useEffect)(()=>{try{t(localStorage.getItem(NS)===`1`)}catch{t(!1)}},[]),e?null:(0,V.jsxs)(`div`,{className:`relative z-[60] border-b border-primary/30 bg-foreground text-foreground`,children:[(0,V.jsx)(`div`,{className:`pointer-events-none absolute inset-0 bg-primary/[0.07]`}),(0,V.jsxs)(`div`,{className:`relative mx-auto flex max-w-7xl items-center gap-3 px-5 py-2.5 md:px-8`,children:[(0,V.jsx)(`span`,{"aria-hidden":!0,
131className:`hidden size-2 shrink-0 rounded-full bg-primary shadow-[0_0_10px_2px] shadow-primary/70 md:block`}),(0,V.jsx)(`p`,{className:`flex-1 text-center text-xs font-medium leading-snug tracking-wide text-background/90 md:text-left md:text-sm`,children:`GroundWorx launches its community investment round on Wefunder â invest in the future of predictive environmental intelligence.`}),(0,V.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[(0,V.jsxs)(fe,{to:`/invest`,className:`inline-flex items-center gap-1.5 rounded-full bg-primary px-3.5 py-1.5 text-xs font-semibold text-primary-foreground shadow-[0_0_14px_-2px] shadow-primary/60 transition hover:brightness-110 md:text-sm`,children:[`Invest now `,(0,V.jsx)(Th,{className:`size-3.5`})]}),(0,V.jsx)(`button`,{type:`button`,onClick:()=>{t(!0);try{localStorage.setItem(NS,`1`)}catch{}},"aria-label":`Dismiss announcement`,className:`flex size-6 items-center justify-center rounded-full text-background/70 transition hover:bg-background/10 hover:text-background`,children:(0,V.jsx)(Fh,{className:`size-3.5`})})]})]})]})}function FS(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 IS=e=>{switch(e){case`success`:return zS;case`info`:return VS;case`warning`:return BS;case`error`:return HS;default:return null}},LS=Array(12).fill(0),RS=({visible:e,className:t})=>B.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},B.createElement(`div`,{className:`sonner-spinner`},LS.map((e,t)=>B.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),zS=B.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},B.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`})),BS=B.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`},B.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`})),VS=B.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},B.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`})),HS=B.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},B.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`})),US=B.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`},B.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),B.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),WS=()=>{let[e,t]=B.useState(document.hidden);return B.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>window.removeEventListener(`visibilitychange`,e)},[]),e},GS=1,KS=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{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:GS++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 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(()=>
131this.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)=>this.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],B.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(JS(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`&&!B.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`&&!B.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`&&!B.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`&&!B.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||GS++;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}},qS=(e,t)=>{let n=t?.id||GS++;return KS.addToast({title:e,...t,id:n}),n},JS=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,YS=Object.assign(qS,{success:KS.success,info:KS.info,warning:KS.warning,error:KS.error,custom:KS.custom,message:KS.message,promise:KS.promise,dismiss:KS.dismiss,loading:KS.loading},{getHistory:()=>KS.toasts,getToasts:()=>KS.getActiveToasts()});FS(`
vendor: 14,859 bytes, line 131
131[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%)}
131`);function XS(e){return e.label!==void 0}var ZS=3,QS=`24px`,$S=`16px`,eC=4e3,tC=356,nC=14,rC=45,iC=200;function aC(...e){return e.filter(Boolean).join(` `)}function oC(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var sC=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:w,closeButtonAriaLabel:E=`Close toast`}=e,[ee,te]=B.useState(null),[ne,re]=B.useState(null),[D,ie]=B.use
131State(!1),[ae,oe]=B.useState(!1),[O,k]=B.useState(!1),[A,se]=B.useState(!1),[ce,le]=B.useState(!1),[j,M]=B.useState(0),[ue,de]=B.useState(0),fe=B.useRef(n.duration||y||eC),N=B.useRef(null),P=B.useRef(null),pe=c===0,me=c+1<=o,he=n.type,ge=n.dismissible!==!1,_e=n.className||``,ve=n.descriptionClassName||``,ye=B.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),be=B.useMemo(()=>n.closeButton??p,[n.closeButton,p]),xe=B.useMemo(()=>n.duration||y||eC,[n.duration,y]),Se=B.useRef(0),Ce=B.useRef(0),we=B.useRef(0),Te=B.useRef(null),[Ee,De]=b.split(`-`),Oe=B.useMemo(()=>s.reduce((e,t,n)=>n>=ye?e:e+t.height,0),[s,ye]),ke=WS(),Ae=n.invert||t,je=he===`loading`;Ce.current=B.useMemo(()=>ye*x+Oe,[ye,Oe]),B.useEffect(()=>{fe.current=xe},[xe]),B.useEffect(()=>{ie(!0)},[]),B.useEffect(()=>{let e=P.current;if(e){let t=e.getBoundingClientRect().height;return de(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),B.useLayoutEffect(()=>{if(!D)return;let e=P.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,de(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])},[D,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let Me=B.useCallback(()=>{oe(!0),M(Ce.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},iC)},[n,d,a,Ce]);B.useEffect(()=>{if(n.promise&&he===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||ke?(()=>{if(we.current<Se.current){let e=new Date().getTime()-Se.current;fe.current-=e}we.current=new Date().getTime()})():fe.current!==1/0&&(Se.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),Me()},fe.current)),()=>clearTimeout(e)},[u,i,n,he,ke,Me]),B.useEffect(()=>{n.delete&&(Me(),n.onDismiss==null||n.onDismiss.call(n,n))},[Me,n.delete]);function Ne(){return w?.loading?B.createElement(`div`,{className:aC(C?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":he===`loading`},w.loading):B.createElement(RS,{className:aC(C?.loader,n?.classNames?.loader),visible:he===`loading`})}let Pe=n.icon||w?.[he]||IS(he);return B.createElement(`li`,{tabIndex:0,ref:P,className:aC(_,_e,C?.toast,n?.classNames?.toast,C?.default,C?.[he],n?.classNames?.[he]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":D,"data-promise":!!n.promise,"data-swiped":ce,"data-removed":ae,"data-visible":me,"data-y-position":Ee,"data-x-position":De,"data-index":c,"data-front":pe,"data-swiping":O,"data-dismissible":ge,"data-type":he,"data-invert":Ae,"data-swipe-out":A,"data-swipe-direction":ne,"data-expanded":!!(u||S&&D),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${ae?j:Ce.current}px`,"--initial-height":S?`auto`:`${ue}px`,...m,...n.style},onDragEnd:()=>{k(!1),te(null),Te.current=null},onPointerDown:e=>{e.button!==2&&(je||!ge||(N.current=new Date,M(Ce.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(k(!0),Te.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{if(A||!ge)return;Te.current=null;let e=Number(P.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(P.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-N.current?.getTime(),i=ee===`x`?e:t,a=Math.abs(i)/r;if(Math.abs(i)>=rC||a>.11){M(Ce.current),n.onDismiss==null||n.onDismiss.call(n,n),re(ee===`x`?e>0?`right`:`left`:t>0?`down`:`up`),Me(),se(!0);return}var o,s;(o=P.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=P.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`),le(!1),k(!1),te(null)},onPointerMove:t=>{var n,r;if(!Te.current||!ge||window.getSelection()?.toString().length>0)return;let i=t.clientY-Te.current.y,a=t.clientX-Te.current.x,o=e.swipeDirections??oC(b);!ee&&(Math.abs(a)>1||Math.abs(i)>1)&&te(Math.abs(a)>Math.abs(i)?`x`:`y`);let s={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if(ee===`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(ee===`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)&&le(!0),(n=P.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=P.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},be&&!n.jsx&&he!==`loading`?B.createElement(`button`,{"aria-label":E,"data-disabled":je,"data-close-button":!0,onClick:je||!ge?()=>{}:()=>{Me(),n.onDismiss==null||n.onDismiss.call(n,n)},className:aC(C?.closeButton,n?.classNames?.closeButton)},w?.close??US):null,(he||n.icon||n.promise)&&n.icon!==null&&(w?.[he]!==null||n.icon)?B.createElement(`div`,{"data-icon":``,className:aC(C?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||Ne():null,n.type===`loading`?null:Pe):null,B.createElement(`div`,{"data-content":``,className:aC(C?.content,n?.classNames?.content)},B.createElement(`div`,{"data-title":``,className:aC(C?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?B.createElement(`div`,{"data-description":``,className:aC(v,ve,C?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),B.isValidElement(n.cancel)?n.c
131ancel:n.cancel&&XS(n.cancel)?B.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{XS(n.cancel)&&ge&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),Me())},className:aC(C?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,B.isValidElement(n.action)?n.action:n.action&&XS(n.action)?B.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{XS(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&Me())},className:aC(C?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function cC(){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 lC(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?$S:QS;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 uC=B.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=ZS,toastOptions:g,dir:_=cC(),gap:v=nC,icons:y,containerAriaLabel:b=`Notifications`}=e,[x,S]=B.useState([]),C=B.useMemo(()=>n?x.filter(e=>e.toasterId===n):x.filter(e=>!e.toasterId),[x,n]),w=B.useMemo(()=>Array.from(new Set([i].concat(C.filter(e=>e.position).map(e=>e.position)))),[C,i]),[E,ee]=B.useState([]),[te,ne]=B.useState(!1),[re,D]=B.useState(!1),[ie,ae]=B.useState(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),oe=B.useRef(null),O=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),k=B.useRef(null),A=B.useRef(!1),se=B.useCallback(e=>{S(t=>(t.find(t=>t.id===e.id)?.delete||KS.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return B.useEffect(()=>KS.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{S(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});return}setTimeout(()=>{_v.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]),B.useEffect(()=>{if(d!==`system`){ae(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?ae(`dark`):ae(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{ae(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{ae(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),B.useEffect(()=>{x.length<=1&&ne(!1)},[x]),B.useEffect(()=>{let e=e=>{if(a.every(t=>e[t]||e.code===t)){var t;ne(!0),(t=oe.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===oe.current||oe.current?.contains(document.activeElement))&&ne(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),B.useEffect(()=>{if(oe.current)return()=>{k.current&&(k.current.focus({preventScroll:!0}),k.current=null,A.current=!1)}},[oe.current]),B.createElement(`section`,{ref:t,"aria-label":`${b} ${O}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0},w.map((t,n)=>{let[i,a]=t.split(`-`);return C.length?B.createElement(`ol`,{key:t,dir:_===`auto`?cC():_,tabIndex:-1,ref:oe,className:c,"data-sonner-toaster":!0,"data-sonner-theme":ie,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${E[0]?.height||0}px`,"--width":`${tC}px`,"--gap":`${v}px`,...m,...lC(l,u)},onBlur:e=>{A.current&&!e.currentTarget.contains(e.relatedTarget)&&(A.current=!1,k.current&&=(k.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`fal
131se`||A.current||(A.current=!0,k.current=e.relatedTarget)},onMouseEnter:()=>ne(!0),onMouseMove:()=>ne(!0),onMouseLeave:()=>{re||ne(!1)},onDragEnd:()=>ne(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||D(!0)},onPointerUp:()=>D(!1)},C.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>B.createElement(sC,{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:re,position:t,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:se,toasts:C.filter(e=>e.position==n.position),heights:E.filter(e=>e.position==n.position),setHeights:ee,expandByDefault:o,gap:v,expanded:te,swipeDirections:e.swipeDirections}))):null}))}),dC=({...e})=>(0,V.jsx)(uC,{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 fC(){return(0,V.jsx)(`div`,{className:`flex min-h-screen items-center justify-center bg-background px-4`,children:(0,V.jsxs)(`div`,{className:`max-w-md text-center`,children:[(0,V.jsx)(`h1`,{className:`text-7xl font-bold text-foreground`,children:`404`}),(0,V.jsx)(`h2`,{className:`mt-4 text-xl font-semibold text-foreground`,children:`Page not found`}),(0,V.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,V.jsx)(`div`,{className:`mt-6`,children:(0,V.jsx)(fe,{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 pC({error:e,reset:t}){console.error(e);let n=D();return(0,B.useEffect)(()=>{gh(e,{boundary:`tanstack_root_error_component`})},[e]),(0,V.jsx)(`div`,{className:`flex min-h-screen items-center justify-center bg-background px-4`,children:(0,V.jsxs)(`div`,{className:`max-w-md text-center`,children:[(0,V.jsx)(`h1`,{className:`text-xl font-semibold tracking-tight text-foreground`,children:`This page didn't load`}),(0,V.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,V.jsxs)(`div`,{className:`mt-6 flex flex-wrap justify-center gap-2`,children:[(0,V.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,V.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 mC=gs()({staticData:{sitemap:!1},head:()=>({meta:[{charSet:`utf-8`},{name:`viewport`,content:`width=device-width, initial-scale=1`},{name:`google-site-verification`,content:`QVw3VIsvPiL0OAeP7Y0p-vtKFYF3X7r3Z3aaYvZ74sA`},{name:`google-site-verification`,content:`eHHaT3FMsJlJ4GpEpT3xXrdqM2T96pZswgXOtvGQXCA`},{title:`GroundWorx â Autonomous Soil & Environmental Intelligence`},{name:`description`,content:`Autonomous environmental intelligence for precision irrigation and turf health.`},{name:`author`,content:`GroundWorx`},{property:`og:title`,content:`GroundWorx â Autonomous Soil & Environmental Intelligence`},{property:`og:description`,content:`Autonomous environmental intelligence for precision irrigation and turf health.`},{property:`og:type`,content:`website`},{property:`og:site_name`,content:`GroundWorx`},{name:`twitter:card`,content:`summary_large_image`}],links:[{rel:`stylesheet`,href:hh},{rel:`stylesheet`,href:`https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap`}
131,{rel:`icon`,type:`image/png`,href:`/favicon.png`},{rel:`canonical`,href:`https://getgroundworx.com/`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@graph":[{"@type":`Organization`,"@id":`https://getgroundworx.com/#organization`,name:`GroundWorx`,url:`https://getgroundworx.com/`,slogan:`The Intelligence Beneath Every Decisionâ¢`,description:`GroundWorx builds the GX-1 Network of wireless soil sensors and GAIN, the autonomous agentic intelligence layer that turns root-zone telemetry and AI-modeled weather into predictive irrigation and turf health decisions.`,email:`[email protected]`,sameAs:[`https://www.linkedin.com/company/groundworx`,`https://www.facebook.com/getgroundworx`,`https://www.instagram.com/getgroundworx`,`https://x.com/getgroundworx`]},{"@type":`WebSite`,"@id":`https://getgroundworx.com/#website`,url:`https://getgroundworx.com/`,name:`GroundWorx`,publisher:{"@id":`https://getgroundworx.com/#organization`}}]})}]}),shellComponent:hC,component:gC,notFoundComponent:fC,errorComponent:pC});function hC({children:e}){return(0,V.jsxs)(`html`,{lang:`en`,suppressHydrationWarning:!0,children:[(0,V.jsxs)(`head`,{children:[(0,V.jsx)(`script`,{dangerouslySetInnerHTML:{__html:`try{if(localStorage.getItem("gw-theme")==="dark"){document.documentElement.classList.add("dark")}}catch(e){}`}}),(0,V.jsx)(Gs,{})]}),(0,V.jsxs)(`body`,{children:[e,(0,V.jsx)(Ks,{})]})]})}function gC(){let{queryClient:e}=mC.useRouteContext();return OS(),(0,V.jsxs)(mh,{client:e,children:[(0,V.jsxs)(`div`,{className:`flex min-h-screen flex-col bg-background text-foreground`,children:[(0,V.jsx)(PS,{}),(0,V.jsx)(DS,{}),(0,V.jsx)(`main`,{className:`flex-1`,children:(0,V.jsx)(Ms,{})}),(0,V.jsx)(kS,{})]}),(0,V.jsx)(dC,{})]})}var _C=`modulepreload`,vC=function(e){return`/`+e},yC={},bC=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}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=vC(t,n),t=s(t),t in yC)return;yC[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:_C,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.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)})},xC=ys(`/`)({staticData:{sitemap:!0},head:()=>({meta:[{title:`GroundWorx | Autonomous Soil Intelligence for Turf & Agriculture`},{name:`description`,content:`GroundWorx wireless soil sensors and the GAIN intelligence network turn root-zone data and AI weather intelligence into predictive irrigation and turf health decisions.`},{property:`og:title`,content:`GroundWorx | Autonomous Soil Intelligence`},{property:`og:description`,content:`Root-zone sensing, AI weather intelligence, and the GAIN network for golf, sports fields, campuses, commercial landscape, and agriculture.`},{property:`og:type`,content:`website`},{name:`twitter:card`,content:`summary_large_image`}]}),component:xs(()=>bC(()=>import(`./routes-BlXUdK5m.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8])),`component`)}),SC=ys(`/about`)({staticData:{sitemap:!0},head:()=>({meta:[{title:`About GroundWorx | The Intelligence Beneath Every Decision`},{name:`description`,content:`GroundWorx builds wireless soil sensors and the GAIN intelligence network, made in the USA and deployed across golf, sports turf, campuses, commercial landscape, and agriculture.`},{property:`og:title`,content:`About GroundWorx`},{property:`og:description`,content:`The team, partners, and technology behind autonomous soil intelligence.`},{property:`og:type`,content:`website`},{name:`twitter:card`,content:`summary_large_image`}]}),component:xs(()=>bC(()=>import(`./about-Cm7cug9s.js`),__vite__mapDeps([9,1,2,10])),`component`)}),CC=ys(`/advisor`)({staticData:{sitemap:!0},head:()=>({meta:[{title:`GAIN Solution Advisor | Describe your turf or irrigation challenge`},{name:`description`,content:`Describe your turf, soil, or irrigation challenge and get a tailored GroundWorx sensor, GAIN, and pilot recommendation with clear next steps.`},{property:`og:title`,content:`GAIN Solution Advisor | GroundWorx`},{property:`og:description`,content:`Tell us about your property and challenge â get a tailored GroundWorx root-zone sensing and GAIN recommendation in seconds.`},{property:`og:type`,content:`website`},{name:`twitter:card`,content:`summary_large_image`}]}),component:xs(()=>bC(()=>import(`./advisor-Cd1P8mHv.js`),__vite__mapDeps([11,1,2,12,13,10,6])),`component`)}),wC=ys(`/case-studies`)({staticData:{sitemap:!0},head:()=>({meta:[{title:`Case Studies | Verified Water Savings | GroundWorx`},{name:`description`,content:`Documented results from GroundWorx deployments, including 2,447,141 gallons saved at the Cal Poly Arabian Horse Center â a 23% year-over-year reduction verified in metered utility records.`},{property:`og:title`,content:`GroundWorx case studies â savings
131you can verify`},{property:`og:description`,content:`Cal Poly Arabian Horse Center cut water use 23% year over year â 2.4 million gallons in five months.`},{property:`og:type`,content:`website`},{name:`twitter:card`,content:`summary_large_image`}]}),component:xs(()=>bC(()=>import(`./case-studies-DXY8g1TU.js`),__vite__mapDeps([14,1,2,10,15,3,16])),`component`)}),TC=ys(`/contact`)({staticData:{sitemap:!0},validateSearch:e=>({type:e.type===`pilot`?`pilot`:`demo`}),head:()=>({meta:[{title:`Book a GAIN Software Demo | GroundWorx`},{name:`description`,content:`Book a demo of the GAIN software or start a paid pilot. Tell us about your property and we will map where sensors belong and what GAIN would watch.`},{property:`og:title`,content:`Book a GAIN Software Demo`},{property:`og:description`,content:`Walk your property with our team and see what continuous soil intelligence would change.`},{property:`og:type`,content:`website`},{name:`twitter:card`,content:`summary_large_image`}]}),component:xs(()=>bC(()=>import(`./contact-DSes_sAk.js`),__vite__mapDeps([17,1,10,2,18,12,13,19])),`component`)}),EC=ys(`/deck-templates`)({staticData:{sitemap:!0},head:()=>({meta:[{title:`Investor Presentation Assets | GroundWorx`},{name:`description`,content:`Download GroundWorx GAIN investor pitch deck backgrounds for PowerPoint and Google Slides.`},{property:`og:title`,content:`GroundWorx Investor Presentation Assets`},{property:`og:description`,content:`Five high-resolution GAIN pitch deck backgrounds for the GroundWorx Wefunder presentation.`},{property:`og:type`,content:`website`},{name:`twitter:card`,content:`summary_large_image`}]}),component:xs(()=>bC(()=>import(`./deck-templates-CaRJoJzZ.js`),__vite__mapDeps([20,1,2,21,22,23])),`component`)}),DC=ys(`/gain`)({staticData:{sitemap:!0},head:()=>({meta:[{title:`GAIN | GroundWorx Autonomous Intelligence Network`},{name:`description`,content:`GAIN reads every GroundWorx sensor alongside AI weather intelligence, learns how your site responds, and turns it into alerts, forecasts, and irrigation recommendations.`},{property:`og:title`,content:`GAIN | GroundWorx Autonomous Intelligence Network`},{property:`og:description`,content:`The autonomous intelligence layer behind every GroundWorx irrigation and turf health decision.`},{property:`og:type`,content:`website`},{name:`twitter:card`,content:`summary_large_image`}]}),component:xs(()=>bC(()=>import(`./gain-DBk3tHS_.js`),__vite__mapDeps([24,1,2,10,25,26,16,7])),`component`)}),OC=ys(`/invest`)({staticData:{sitemap:!1},component:xs(()=>bC(()=>import(`./invest-DyjbXvdU.js`),__vite__mapDeps([27,1])),`component`)}),kC=ys(`/legal`)({staticData:{sitemap:!0},head:()=>({meta:[{title:`Legal | GroundWorx Terms of Service`},{name:`description`,content:`GroundWorx terms of service, intellectual property notice, and data ownership terms covering sensors, the GAIN platform, and customer data.`},{property:`og:title`,content:`GroundWorx Legal`},{property:`og:description`,content:`Terms of service, intellectual property, and data ownership.`},{property:`og:type`,content:`website`},{name:`twitter:card`,content:`summary_large_image`}]}),component:xs(()=>bC(()=>import(`./legal-CFdujvpi.js`),__vite__mapDeps([28,1,10,2])),`component`)}),AC=ys(`/news`)({staticData:{sitemap:!0},head:()=>({meta:[{title:`Industry News | Water, Drought & Wildfire Signals | GroundWorx`},{name:`description`,content:`Curated coverage of Colorado River policy, drought and turf water restrictions, and wildfire early detection â with what each story means for the ground you manage.`},{property:`og:title`,content:`Industry news the ground is reacting to`},{property:`og:description`,content:`Colorado River policy, drought restrictions, and wildfire detection â read through a root-zone lens.`},{property:`og:type`,content:`website`},{name:`twitter:card`,content:`summary_large_image`}]}),component:xs(()=>bC(()=>import(`./news-svayyHs7.js`),__vite__mapDeps([29,1,2,10,30,16])),`component`)}),jC=ys(`/platform`)({staticData:{sitemap:!0},head:()=>({meta:[{title:`GX-1 Network | The Sensor Layer That Trains GAIN`},{name:`description`,content:`The GX-1 network is the ground-truth sensor layer beneath GAIN â cellular soil sensors, the GX-1S
131sports sensor, and iQ SmartTowers reporting every ten minutes so GAIN learns your site.`},{property:`og:title`,content:`GX-1 Network | GroundWorx`},{property:`og:description`,content:`The cellular sensor network that feeds GAIN its ground truth â built for a seven-year field life in the USA.`},{property:`og:type`,content:`website`},{name:`twitter:card`,content:`summary_large_image`}]}),component:xs(()=>bC(()=>import(`./platform-BNrqlZYw.js`),__vite__mapDeps([31,1,2,10,25,32])),`component`)}),MC=ys(`/press`)({staticData:{sitemap:!1},component:xs(()=>bC(()=>import(`./press-DyjbXvdU.js`),__vite__mapDeps([33,1])),`component`)}),NC=ys(`/privacy`)({staticData:{sitemap:!0},head:()=>({meta:[{title:`Privacy Policy | GroundWorx`},{name:`description`,content:`How GroundWorx collects, uses, and protects personal information from website visitors, customers, and users of the GAIN platform and mobile app.`},{property:`og:title`,content:`GroundWorx Privacy Policy`},{property:`og:description`,content:`How we collect, use, and protect your information.`},{property:`og:type`,content:`website`},{name:`twitter:card`,content:`summary_large_image`}]}),component:xs(()=>bC(()=>import(`./privacy-C3NFMWEa.js`),__vite__mapDeps([34,1,10,2])),`component`)}),PC=ys(`/resources`)({staticData:{sitemap:!0},head:()=>({meta:[{title:`Resources | GroundWorx FAQs, Manuals & Support`},{name:`description`,content:`Answers to common GroundWorx questions, installation and platform guides, the customer portal, and the GroundWorx mobile app.`},{property:`og:title`,content:`GroundWorx Resources`},{property:`og:description`,content:`FAQs, installation and platform guides, customer portal, and mobile app.`},{property:`og:type`,content:`website`},{name:`twitter:card`,content:`summary_large_image`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`FAQPage`,mainEntity:CS.map(e=>({"@type":`Question`,name:e.q,acceptedAnswer:{"@type":`Answer`,text:e.a}}))})}]}),component:xs(()=>bC(()=>import(`./resources-C-xFbhc4.js`),__vite__mapDeps([35,1,2,10,36,23,26,16])),`component`)}),FC=ys(`/shop`)({staticData:{sitemap:!0},head:()=>({meta:[{title:`Shop | GroundWorx Sensors, Tools & GAIN Service`},{name:`description`,content:`Buy GroundWorx hardware direct â GX-1A, GX-1F, and GX-1S soil sensors plus the field tools crews need to install and service them.`},{property:`og:title`,content:`Shop GroundWorx hardware`},{property:`og:description`,content:`GX-1A, GX-1F, and GX-1S sensors and the field tools that go with them.`},{property:`og:type`,content:`website`},{name:`twitter:card`,content:`summary_large_image`}]}),component:xs(()=>bC(()=>import(`./shop-DyRuJpLb.js`),__vite__mapDeps([37,1,2,10,38])),`component`)}),IC=ys(`/sitemap.xml`)({staticData:{sitemap:!1}}),LC=ys(`/testimonials`)({staticData:{sitemap:!0},head:()=>({meta:[{title:`Testimonials | What Customers & Partners Say | GroundWorx`},{name:`description`,content:`What the people who build it, sell it, and run it say about GroundWorx â from manufacturing partners to distribution leaders to turf and water managers in the field.`},{property:`og:title`,content:`GroundWorx testimonials â the people who build it, sell it, and run it`},{property:`og:description`,content:`Quotes from the partners and customers putting GroundWorx and GAIN to work in the field.`},{property:`og:type`,content:`website`},{name:`twitter:card`,content:`summary_large_image`}]}),component:xs(()=>bC(()=>import(`./testimonials-rehhPb42.js`),__vite__mapDeps([39,1,2,10,5,16])),`component`)}),RC=ys(`/blog/`)({staticData:{sitemap:!0},head:()=>({meta:[{title:`Blog | GroundWorx Field Notes`},{name:`description`,content:`Field notes from GroundWorx on turf management, soil health, water conservation, and autonomous soil intelligence across golf, sports, agriculture, and commercial landscapes.`},{property:`og:title`,content:`GroundWorx Field Notes`},{property:`og:description`,content:`Turf management, soil health, water conservation, and autonomous soil intelligence.`},{property:`og:type`,content:`website`},{name:`twitter:card`,content:`summary_large_image`}]}),component:xs(()=>bC(()=>import(`./blog.index-q09H2Xaq.js`),__vite__mapDeps([40,1,2,10])),`component`)}),zC=[{slug:`groundworx-introduces-gain-autonomous-intelligence-network`,title:`GroundWorx Introduces GAIN: An Autonomous Intelligence Network Built to Transform Environmental Decision-Making`,date:`2026-09-22`,kind:`press`,excerpt:`SAN DIEGO, CA, UNITED STATES, September 22, 2026 / EINPresswire.com / -- GroundWorx Inc. today announced the launch of GAINâthe GroundWorx Autonomous Intelligence Networkâan Agentic AI / Deep Learning environmental intelligence platform designed to help organizations understand what is happening beneath the surface, anticipate what will happen next, and act before resources, money, or time are lost.`,paragraphs:[`SAN DIEGO, CA, UNITED STATES, September 22, 2026 / EINPresswire.com / -- GroundWorx Inc. today announced the launch of GAINâthe GroundWorx Autonomous Intelligence Networkâan Agentic AI / Deep Learning environmental intelligence platform designed to help organizations understand what is happening beneath the surface, anticipate what will happen next, and act before resources, money, or time are lost.`,`Most environmental decisions are still based on periodic measurements, visual inspections, generalized weather information, and human assumptions. GAIN replaces those isolated snapshots with continuously collected, location-specific intelligence from autonomous GroundWorx sensors operating directly in the environments they monitor.`,`âArtificial intelligence is only as valuable as the information it learns from,â said Brad David, founder and CEO of GroundWorx. âGAIN is being built on hundreds of millions of real-world observations collected from beneath the groundâwhere many of the most important environmental changes begin. We are giving AI access to a layer of the physical world that has historically been difficult to see, measure, and understand.â`,`From Observation to Prediction`,`GAIN combines autonomous field hardware, LTE Cat-1 connectivity, cloud infrastru
131cture, machine learning, and agentic AI to create a continuously learning Environmental Intelligence Network.`,`The GroundWorx network has already collected more than 700 million environmental data points and continues to add approximately one million new observations every three days. Each observation strengthens GAINâs ability to recognize patterns, establish environmental baselines, and develop increasingly accurate predictive models.`,`Unlike conventional monitoring platforms that simply display sensor readings, GAIN interprets what the data means, identifies emerging conditions, and recommends the next best action.`,`GAIN transforms: moisture readings into irrigation intelligence; root-zone conditions into plant-health predictions; salinity and temperature changes into early warnings; atmospheric observations into localized risk awareness; and individual locations into a continuously learning network. The result is a progression from reactive management to predictive environmental intelligence.`,`Intelligence Begins at the Source`,`GAIN is powered by GroundWorxâs GX-1 Platform and its portfolio of autonomous sensing infrastructure, including iQ SmartWells, GX-1 Series sensors, iQ Capsules, and iQ SmartTowers.`,`Each device independently transmits environmental observations from the field to the cloud through LTE Cat-1 connectivity. The network does not depend on local Wi-Fi, gateways, or sensor-to-sensor mesh communications, enabling operation across large, complex, and geographically distributed environments.`,`GroundWorx sensors can capture measurements including volumetric water content, soil temperature, salinity, dielectric conditions, and other environmental variables. GAIN can combine those observations with weather, geographic, operational, and historical information to develop a more complete understanding of each monitored location.`,`âGroundWorx has spent years solving one of the hardest parts of environmental AI: reliably moving high-quality information from the ground to the cloud,â said Diego Borrego, president and chief technology officer of GroundWorx. âGAIN is the intelligence layer that allows this data to compound in value.â`,`Creating a New Environmental Intelligence Layer`,`GAIN is initially focused on water-intensive and environmentally sensitive markets, including golf, sports turf, commercial landscapes, agriculture, universities, resorts, urban infrastructure, and wildfire-risk environments.`,`Potential applications include: predicting when and where irrigation is actually required; reducing unnecessary water use without compromising plant health; identifying developing root-zone problems before visible damage occurs; comparing environmental performance across multiple properties; supporting automated irrigation and maintenance decisions; detecting localized conditions associated with fire and environmental risk; and enabling software partners to build specialized applications on GroundWorx intelligence.`,`Organizations retain ownership of their identifiable site data. GAIN can use anonymized and aggregated environmental intelligence to improve its models without revealing a participantâs location-specific information.`,`As the network expands, GroundWorx expects intelligence generated across environments, climates, and applications to improve the value delivered to every network participantâa model the company calls Intelligence Compounding.`,`More Than a Sensor Platform`,`GAIN represents GroundWorxâs evolution from an environmental sensor company into an AI-driven data and intelligence company. The companyâs long-term vision is to create an autonomous environmental intelligence layer that can support people, machines and software systems responsible for managing the physical world.`,`âWe are not simply connecting devices,â David said. âWe are connecting environmental observations so they can become knowledge. GAIN will help organizations stop guessing, begin predicting, and make every decision with a clearer understanding of what is happening below the surface.â`,`About GroundWorx`,`GroundWorx Inc. is an environmental intelligence company developing autonomous infrastru
131cture that connects the physical world to artificial intelligence. Through its GX-1 sensing platform and GAINâthe GroundWorx Autonomous Intelligence Networkâthe company turns continuous, location-specific environmental observations into actionable, predictive intelligence. GroundWorx serves markets including golf, sports turf, commercial landscaping, agriculture, universities, resorts, smart cities, and environmental risk management.`,`The Intelligence Beneath Every Decisionâ¢`,`Media Contact: GroundWorx Inc. â Brad David, [email protected], +1 (425) 283-7600, www.getgroundworx.com`,`Read the full release on EINPresswire: https://www.einpresswire.com/article/938657172/groundworx-introduces-gain-an-autonomous-intelligence-network-built-to-transform-environmental-decision-making`]},{slug:`groundworx-launches-community-investment-offering-on-wefunder`,title:`GroundWorx Launches Community Investment Offering on Wefunder to Advance Predictive Environmental Intelligence`,date:`2026-09-15`,kind:`press`,excerpt:`SAN DIEGO, CA, UNITED STATES, September 14, 2026 / EINPresswire.com / -- GroundWorx today announced the launch of its community investment offering on Wefunder, opening an opportunity for individual investors to participate in the company's missionâ¦`,paragraphs:[`SAN DIEGO, CA, UNITED STATES, September 14, 2026 / EINPresswire.com / -- GroundWorx today announced the launch of its community investment offering on Wefunder, opening an opportunity for individual investors to participate in the company's mission to make environmental decisions more predictive, precise, and accountable.`,`Water and landscape decisions often rely on fragmented information: weather forecasts, visual inspections, historical reports, and isolated readings. These tools can describe what has happened or what is already visible, but they do not always reveal what is likely to happen next - or what action should be taken before stress, waste, or damage occurs.`,`GroundWorx is building a different kind of infrastructure: an Environmental Intelligence Network. Its field systems observe conditions such as soil moisture, temperature, salinity, weather, and site context. GAIN, the GroundWorx Autonomous Intelligence Network, organizes those observations into trustworthy environmental evidence. AAEI â Aggregated Autonomous Environmental Intelligence â reasons across that evidence to estimate likely future conditions, express confidence, and support better operating decisions.`,`"For nine years, we have been building at the point where many of the world's most important water decisions begin: beneath the surface, in the root zone," said Brad David, founder and CEO of GroundWorx. "Wefunder allows the people who believe water decisions should be informed before waste or visible damage occurs to join us in building the intelligence beneath every decision."`,`A field-tested foundation:`,`GroundWorx reports more than 150 paid field trials across 12 countries over four years of real-world deployment. The company is pre-revenue; it used those trials to validate the technology and customer use cases ahead of commercialization. The network has collected more than 700 million environmental observations. GroundWorx says this growing body of evidence helps strengthen its ability to interpret root-zone conditions across different climates, soil profiles, operating environments, and property types.`,`GroundWorx is beginning with golf and professionally managed landscapes, where water decisions are frequent, site conditions vary, and the operational consequences are immediate. The same core architecture is designed to extend to sports fields, resorts, campuses, commercial landscapes, agriculture, and cities.`,`Human judgment remains in control:`,`GroundWorx is designed to support operators, not replace them. The system distinguishes what it observed, what it inferred, what it predicts, what it recommends, and how confident it is. When verified outcomes return to the network as feedback, they can strengthen future predictions through what GroundWorx calls Intelligence Compounding.`,`In practical terms, the platform is intended to help operators answer questions such as where water is actually needed, which areas can safely wait, where stress may be developing before it becomes visible, and what happened after an operator acted.`,`"GroundWorx has been stockpiling data to train our machine learning models and deploy them through Agentic AI and Deep Learning AI technologies," said Diego Borrego, President & CTO of GroundWorx.`,`C
131ommunity participation through Wefunder. The offering is being conducted through Wefunder. Investment decisions and transactions should be made only through the live offering page, where investors can review the controlling offering terms, company disclosures, and risk factors: https://wefunder.com/groundworx`,`About GroundWorx:`,`GroundWorx creates Environmental Intelligence Networks. Its core platform, GAIN, transforms environmental observations into predictive intelligence designed to help organizations act earlier, intervene more precisely, reduce waste, and understand the consequences of their decisions. GroundWorx's corporate brand promise is The Intelligence Beneath Every Decision.`,`Media contact: Brad David - CEO, [email protected] | +1(425) 283-7600 | www.getgroundworx.com`,`###`,`Important notice: This communication is for informational purposes only and is not investment advice. Any offer or sale of securities will be made only through the Wefunder platform and the applicable offering materials. An investment in a private company is speculative, involves a high degree of risk, and may result in the loss of the entire investment. Prospective investors should review all offering materials and risk disclosures before investing.`,`Brad DavidGroundWorx+1 858-758-0758`,`Read the full release on EINPresswire: https://www.einpresswire.com/article/938820176/groundworx-launches-community-investment-offering-on-wefunder-to-advance-predictive-environmental-intelligence`]},{slug:`connection-between-fire-prevention-amp-soil-health`,title:`Connection Between Fire Prevention & Soil Health`,date:`2025-10-29`,kind:`blog`,excerpt:`Fire prevention is a critical aspect of environmental management, particularly in regions that are susceptible to wildfires. Wildfire can greatly harm ecosystems. One major effect is the loss of plants and trees. This loss of plant lifeâ¦`,paragraphs:[`Fire prevention is a critical aspect of environmental management, particularly in regions that are susceptible to wildfires. Wildfire can greatly harm ecosystems. One major effect is the loss of plants and trees. This loss of plant life affects the landscape and has serious effects on soil health and stability.`,`Vegetation serves several essential functions in maintaining soil integrity. Firstly, healthy plants act as a natural anchor for the soil. Their root systems penetrate the ground, binding soil particles together and creating a cohesive structure that resists erosion.`,`When a wildfire occurs, the intense heat can incinerate these plants, leaving the soil exposed and vulnerable. Without plants to protect it, soil can erode from wind and water. This erosion causes the loss of topsoil, which is rich in nutrients and important for plant growth.`,`In addition to erosion and water retention, vegetation contributes to soil fertility. Plants contribute organic matter to the soil through leaf litter, decaying roots, and other organic materials. This organic matter is important for keeping soil structure. It helps nutrients become available and supports many soil organisms, like bacteria, fungi, and earthworms.`,`Fire destroys plants, which disrupts the balance of the ecosystem. This leads to poorer soil health and less productivity.`,`After wildfires, a problem called "hydrophobic soil" can occur. This happens when the soil becomes water-repellent because of the fire's heat. This condition can prevent water from infiltrating the soil, leading to increased runoff and further erosion. The combination of these factors creates a cycle of degradation that can take years, if not decades, to reverse.`,`To mitigate these risks, fire prevention strategies are essential. These can include executing controlled burns, creating firebreaks, and implementing land management practices that promote healthy vegetation growth.`,`By focusing on fire prevention, we can protect the land now and help the soil in the future. This ensures that ecosystems stay strong and can support many types of plants and animals.`,`Additionally, after a fire, it is essential to assess and restore soil health. This can involve adding organic matter, such as compost or mulch, to improve soil structure and fertility. Implementing cover crops can also help in preventing erosion and enhancing soil quality.`,`GroundWorx provides advanced sensors and weather stations. These tools help improve soil health and enhance farming methods. Our innovative technology allows agricultural professionals to monitor and assess soil conditions accurately, ensuring that they nurture crops with the utmost care and attention.`,`#block-f09e175b579fe87b0f8c { --stroke-style: none;--stroke-thickness: 6px; } #block-f09e175b579fe87b0f8c .sqs-html-content { --tweak-text-block-padding: 6% 6% 6% 6%; --tweak-text-block-padding: initial; }
131 #block-f09e175b579fe87b0f8c { mix-blend-mode: var(--tweak-text-block-blend ); border-radius: var(--tweak-text-block-radius); } #block-f09e175b579fe87b0f8c { --tweak-text-block-radius: 0px 0px 0px 0px; } #block-f09e175b579fe87b0f8c { } @media screen and (max-width: 767px) { #block-f09e175b579fe87b0f8c { } } @media screen and (max-width: 767px) { #block-f09e175b579fe87b0f8c .sqs-html-content { } } @media screen and (max-width: 767px) { }`]},{slug:`tree-health-and-effective-management-strategies`,title:`Tree Health and Effective Management Strategies`,date:`2025-05-22`,kind:`blog`,excerpt:`Mature trees are living assets. For old-growth olive trees, large date palms, and other valuable specimens, root-zone intelligence can reveal water stress before damage reaches the canopy.`,paragraphs:[`Mature trees are living assets. Old-growth olive trees, large date palms, and other valuable specimens can represent decades of growth, cultural importance, and substantial replacement cost. Protecting them starts below the surface.`,`Canopy symptoms often appear after root-zone stress is already established. Continuous soil moisture, temperature, and salinity data gives growers and property teams earlier evidence for irrigation decisions without replacing professional arboricultural judgment.`,`Why Tree Health Matters`,`1. Environmental Benefits: Healthy trees contribute to cleaner air by absorbing carbon dioxide and releasing oxygen. They also help reduce soil erosion and manage stormwater. They provide shade, which can lower energy costs in nearby buildings.`,`2. Biodiversity Supp
131ort: Trees serve as habitats for various species of birds, insects, and other wildlife. Maintaining tree health ensures that these ecosystems remain vibrant and diverse.`,`3. Asset Value: Mature specimen trees can define a property, grove, or landscape. Large date palms and old-growth olives are costly and slow to replace, making early stress detection especially valuable.`,`4. Health Benefits: Studies show that being in green spaces with healthy trees can lower stress, boost mood, and encourage exercise.`,`Managing Tree Health`,`To ensure the longevity and vitality of trees, it is essential to adopt effective management practices. Here are some key strategies:`,`Root-Zone Monitoring: The foundation of tree health lies below the surface. GroundWorx tracks moisture, temperature, and salinity at depth, helping teams understand how water moves through the broad root zones of mature olives, date palms, and other high-value trees.`,`Regular Inspections: Conducting regular inspections of trees can help identify early signs of disease or pest infestations. Observe alterations in leaf hue, bark texture, and general growth trends.`,`Pruning and Maintenance: Proper pruning techniques can promote healthy growth and prevent the spread of diseases. Remove dead or diseased branches and ensure that the tree has a balanced structure.`,`Watering Practices: Trees require adequate water, especially during dry spells. However, overwatering can be just as harmful. Understanding the specific needs of your tree species is crucial.`,`Pest and Disease Management: Stay informed about common pests and diseases that affect trees in your area. Implementing integrated pest management (IPM) strategies can help control these threats without harming beneficial organisms..`,`Community Involvement: Getting involved with local tree care groups can keep trees healthy. You can also join community programs for extra support.`,`GroundWorx GX-1F â The Tree-Specialized Sensor`,`The GX-1F is the tree-specialized sensor in the GX-1 family. Its 8 inch burial reads a 1 to 44 inch profile â deep enough to reach the expansive root zones of old-growth olive trees, large date palms, and other high-value specimen trees. Paired with GAIN and AI weather intelligence, it helps teams identify developing root-zone stress and make more informed irrigation decisions before damage reaches the canopy.`,`GroundWorx supports monitoring and decision-making; diagnosis and treatment of tree disease, pests, or structural risk should remain with a qualified arborist.`,`#block-a1c44aba3168d25d9fe0 { --stroke-style: none;--stroke-thickness: 6px; } #block-a1c44aba3168d25d9fe0 .sqs-html-content { --tweak-text-block-padding: 6% 6% 6% 6%; --tweak-text-block-padding: initial; } #block-a1c44aba3168d25d9fe0 { mix-blend-mode: var(--tweak-text-block-blend ); border-radius: var(--tweak-text-block-radius); } #block-a1c44aba3168d25d9fe0 { --tweak-text-block-radius: 0px 0px 0px 0px; } #block-a1c44aba3168d25d9fe0 { } @media screen and (max-width: 767px) { #block-a1c44aba3168d25d9fe0 { } } @media screen and (max-width: 767px) { #block-a1c44aba3168d25d9fe0 .sqs-html-content { } } @media screen and (max-width: 767px) { }`]},{slug:`the-future-of-sports-turf-management-with-the-gx-1-platform`,title:`The Future of Sports Turf Management with the GX-1 Platform`,date:`2025-05-09`,kind:`blog`,excerpt:`In the world of sports turf management, efficiency and precision are paramount. The GX-1 platform is an innovative solution designed for managing sports turf effectively. It utilizes advanced machine learning algorithms to analyze data andâ¦`,paragraphs:[`In the world of sports turf management, efficiency and precision are paramount. The GX-1 platform is an innovative solution designed for managing sports turf effectively. It utilizes advanced machine learning algorithms to analyze data and optimize turf maintenance processes.`,`This platform lets users check different factors like soil moisture, grass health, and weather conditions. This platform uses technology to improve decision-making and resource use. This helps create healthier and stronger sports turf.`,`What is the GX-1 Platform?`,`The GX-1 platform is an innovative tool designed specifically for managing sports turf effectively. By utilizing advanced machine learning algorithms processes, groundskeepers can make informed decisions. They can base the
131ir decisions on real-time data, leading to healthier and more resilient sports fields.`,`Key Features of the GX-1 Platform`,`1. Data-Driven Insights: The GX-1 platform helps users track important factors like soil moisture, grass health, and weather. This comprehensive data collection covers every aspect of turf management.`,`2. Enhanced Decision-Making: With the integration of machine learning in sports turf, the platform improves decision-making processes. Looking at historical data and current conditions, users can allocate resources more effectively.`,`3. Resource Optimization: The GX-1 platform not only enhances turf health but also promotes sustainable practices.`,`GX-1 Platform Benefits`,`Improved Turf Quality: Healthier grass leads to better playing conditions, which is crucial for athletes' performance.`,`Cost Savings: By optimizing resource use, the platform can significantly reduce maintenance costs.`,`Time Efficiency: Automated data analyzing saves time, allowing groundskeepers to focus on other essential tasks.`,`The GX-1 platform from GroundWorx is a game-changer in the realm of sports turf management. By using machine learning, it gives groundskeepers the tools they need to keep athletic fields in great shape. As the need for better sports facilities grows, the GX-1 platform is a key resource for turf management.`,`#block-5e5a6a80d67f8d3e45b4 { --stroke-style: none;--stroke-thickness: 6px; } #block-5e5a6a80d67f8d3e45b4 .sqs-html-content { --tweak-text-block-padding: 6% 6% 6% 6%; --tweak-text-block-padding: initial; } #block-5e5a6a80d67f8d3e45b4 { mix-blend-mode: var(--tweak-text-block-blend ); border-radius: var(--tweak-text-block-radius); } #block-5e5a6a80d67f8d3e45b4 { --tweak-text-block-radius: 0px 0px 0px 0px; } #block-5e5a6a80d67f8d3e45b4 { } @media screen and (max-width: 767px) { #block-5e5a6a80d67f8d3e45b4 { } } @media screen and (max-width: 767px) { #block-5e5a6a80d67f8d3e45b4 .sqs-html-content { } } @media screen and (max-width: 767px) { }`]},{slug:`transforming-farming-for-a-sustainable-future`,title:`Transforming Farming for a Sustainable Future`,date:`2025-03-21`,kind:`blog`,excerpt:`Smart agriculture means using advanced technology in farming. This helps use resources better and increases cropâ¦`,paragraphs:[`Smart agriculture means using advanced technology in farming. This helps use resources better and increases crop yields.`,`One of the most notable advancements in smart agriculture is the use of IoT devices, such as sensors. These devices collect vast amounts of data on soil moisture, temperature, humidity, and crop health. Soil sensors give farmers real-time information about nutrients and moisture. This helps them use water and fertilizers more accurately.`,`Enhanced Efficiency and Productivity`,`Smart agriculture leverages advanced technologies such as IoT (Internet of Things), AI (Artificial Intelligence), and extensive data analytics to streamline farming operations. By utilizing sensors and drones, farmers can monitor crop health, soil conditions, and weather patterns in real-time. This data-driven approach allows for precise resource allocation, reducing waste and increasing overall productivity.`,`Sustainable Resource Management`,`With the growing concerns about climate change and resource depletion, smart farming practices promote sustainability. By using data analytics, farmers can make informed decisions that minimize environmental impact. Techniques such as precision agriculture help in conserving water, reducing chemical usage, and improving soil health. This not only benefits the environment but also ensures that farming remains viable for future generations.`,`Cost Reduction`,`Implementing smart agriculture technologies can lead to significant cost savings for farmers. By optimizing inputs like water, fertilizers, and pesticides, farmers can lower their operational costs. Additionally, predictive analytics can help in forecasting market trends and crop prices, allowing farmers to make better financial decisions. This financial stability is crucial for smallholder farmers who often operate on tight margins.`,`Improved Crop Quality`,`Smart agriculture technologies enable farmers to monitor and manage crop health more effectively. Farmers can use tools like remote sensing and soil moisture sensors.`,`These tools help them find problems early, like pest infestations or nutrient deficiencies. This proactive approach improves crop quality and lowers the chances of crop failure. This helps ensure a more reliable food supply.`,`Access to Market Information`,`Smart farming solutions often have platforms that link farmers directly to markets. These platforms give farmers important information about demand, pricing, and what consumers want. This access helps farmers decide what to plant and when to sell.`,`GroundWorx's Contribution`,`The importance of smart agriculture cannot be overstated. By embracing these innovative technologies, farmers can enhance efficiency, reduce costs, and promote sustainability. As the global population continues to grow, the need for smart farming practices will only become more critical.`,`GroundWorx offers products to help with smart agriculture. Our sensors use advanced AI technology to allow farmers to manage their crops and soil. We also have weather stations that can provide weather data.`,`#block-cdb76c3df567c41dc649 { --stroke-style: none;--stroke-thickness: 6px; } #block-cdb76c3df567c41dc649 .sqs-html-content { --tweak-text-block-padding: 6% 6% 6% 6%; --tweak-text-block-padding: initial; } #block-cdb76c3df567c41dc649 { mix-blend-mode: var(--tweak-text-block-blend ); border-radius: var(--tweak-text-block-radius); } #block-cdb76c3df567c41dc649 { --tweak-text-block-radius: 0px 0px 0px 0px; } #block-cdb76c3df567c41dc649 { } @media screen and (max-width: 767px) { #block-cdb76c3df567c41dc649 { } } @media screen and (max-width: 767px) { #block-cdb76c3df567c41dc649 .sqs-html-content { } } @media screen and (max-width: 767px) { }`]},{slug:`the-hidden-dangers-of-overwatering`,title:`The Hidden Dangers of Overwatering`,date:`2025-02-26`,kind:`blog`,excerpt:`Many people often consider water the lifeblood of agriculture and commercial enterprises. However, the problem of overwatering is a significant challenge that can lead to serious issues. While the goal is to help plants grow, too muchâ¦`,paragraphs:[`Many people often consider water the lifeblood of agriculture and commercial enterprises. However, the problem of overwatering is a significant challenge that can lead to serious issues. While the goal is to help plants grow, too much water can cause many problems. This can waste important resources and hurt productivity.`,`The Consequences of Overwatering`,`Overwatering is an ongoing problem that affects many aspects of plant care and gardening. It happens when plants get more water than they can take in or use. This can harm their health and growth in many ways. This issue can arise from several factors, including improper watering schedules, excessive rainfall, or poor drainage in the soil.`,`Resource Wastage`,`Draining local water supplies affects more than just farms and businesses. It can greatly impact whole communities as water shortages can cause many problems. This also adds to bigger problems of water scarcity. These issues can harm the health, economy, and social structure of whole communities.`,`Financial Losses`,`The financial impl
131ications of overwatering are substantial and multifaceted, impacting both agricultural operations and businesses that depend on healthy plant growth.`,`The financial implications of overwatering extend beyond immediate crop damage; they encompass a range of factors that can jeopardize the viability of agricultural enterprises. Overwatering can cause lower crop yields and poor quality. It can also raise management costs. These issues can lead to significant revenue losses.`,`Environmental Consequences`,`Overwatering is a common issue that can have significant negative impacts on the environment. When plants receive more water than they can absorb, the excess water begins to saturate the soil. This saturation can lead to the leaching of essential nutrients, such as nitrogen, phosphorus, and potassium, from the soil.`,`These nutrients are vital for plant growth and development, and their depletion can result in poor plant health. Plants that lack important nutrients may show stunted growth, yellow leaves, and fewer flowers or fruits. This can lower the overall productivity of gardens, farms, and natural ecosystems.`,`Overwatering poses a significant threat to the environment by depleting essential soil nutrients, promoting soil erosion, contaminating local waterways, and disrupting ecosystems. Gardeners, farmers, and land managers should use sustainable watering practices.`,`Increased Pest & Disease Risks`,`Wet conditions create an ideal environment for various pests and diseases that can significantly impact agricultural productivity. When the soil is wet and humidity is high, it is easier for fungi, bacteria, and viruses to grow. These organisms can infect crops, leading to a range of issues from reduced yields to complete crop failures.`,`Wet conditions, pests, and diseases create a significant challenge for farming. Farmers often rely on chemical treatments to manage these issues.`,`Recognizing Overwatering`,`Understanding the signs of overwatering is crucial in preventing further damage and conserving water. Key indicators include:`,`Yellowing Leaves: This is a common sign of stress in overwatered plants.`,`Wilting: When plant roots do not get enough oxygen because of too much water, plants droop.`,`Mold Growth: The appearance of mold can indicate excessive moisture levels in the soil.`,`Soggy Soil: Waterlogged soil clearly signals that someone needs to adjust water levels because of prolonged saturation.`,`Best Practices for Efficient Turf & Plant Management`,`To combat the dangers of overwatering, consider implementing these strategies:`,`Soil Testing: Regularly assess soil moisture content to tailor schedules.`,`Drip Irrigation: Consider investing in drip irrigation systems.`,`Scheduling: Make sure to stick to a regular watering schedule.`,`Soil Management Products: Use advanced products to help with soil management.`,`GroundWorx Products`,`GroundWorx offers a range of products to help with soil management:`,`GX-1A Wireless Soil Moisture Sensor`,`GX-1F Wireless Soil Moisture Sensor`,`GX-1FX (AG Extender) Wireless Soil Moisture Sensor`,`GX-1 Wireless MicroWeather - ATMOS 41 Station`,`GX-1 Wireless MicroWeather - ATMOS 41 W Station`,`GX-1 Sports Capsule`,`We encourage you to browse the selection of products at GroundWorx today. Our collection includes many high-quality products and services. These tools help with soil moisture management, ensuring you use the right amount of water.`,`If you have any questions or would like to learn more about what we offer, please do not hesitate to reach out. You can reach us by email, and our dedicated team will be more than happy to assist you. We are eager to engage in a conversation about our services and how we can help you achieve your goals.`,`#block-68777f749acfef25d539 { --stroke-style: none;--stroke-thickness: 6px; } #block-68777f749acfef25d539 .sqs-html-content { --tweak-text-block-padding: 6% 6% 6% 6%; --tweak-text-block-padding: initial; } #block-68777f749acfef25d539 { mix-blend-mode: var(--tweak-text-block-blend ); border-radius: var(--tweak-text-block-radius); } #block-68777f749acfef25d539 { --tweak-text-block-radius: 0px 0px 0px 0px; } #block-68777f749acfef25d539 { } @media screen and (max-width: 767px) { #block-68777f749acfef25d539 { } } @media screen and (max-width: 767px) { #block-68777f749acfef25d539 .sqs-html-content { } } @media screen and (max-width: 767px) { }`]},{slug:`groundworx-today-what-have-we-been-up-to-lately`,title:`GroundWorx Today - What Have We Been Up To Lately`,date:`2025-02-13`,kind:`blog`,excerpt:`GroundWorx is the leading smart Ground Intelligence Solution for soil management and water conservation. We help customers gather, analyze, and understand important data about soil and turf conditions. Our advanced technology supportsâ¦`,paragraphs:[`GroundWorx is the leading smart Ground Intelligence Solution for soil management and water conservation. We help customers gather, analyze, and understand important data about soil and turf conditions. Our advanced technology supports sustainable practices.`,`Our Partners`,`In the last year or so, we have been privileged enough to work with some of the best professionals in the industry. We have several new partners, including powerhouses such as Ewing, Living Turf, and PURE Insight.`,`Ewing Outdoor Supply`,`We are proud to announce our partnership with Ewing Outdoor Supply. They rank among the top suppliers of landscape and irrigation products nationwide. This strategic partnership appoints Ewing as a primary distributor of GroundWorx's advanced sensors, introducing groundbreaking soil monitoring technology to clients across the country.`,`Living Turf`,`Living Turf is the leading supplier of turf management products and services across Australia and New Zealand. Through this partnership, Living Turf will be a main distributor of GroundWorx soil monitoring sensors. This will help turf managers in the area improve soil health and manage water better.`,`PURE Insight`,`PURE Insight⢠is a new company that develops sensors and advanced farming solutions. The company aims to change how we monitor soil for golf courses, sports fields, and commercial properties. This collaboration merges GroundWorxâs expertise in sophisticated sensor communication with PURE Insightâs cutting-edge sensor technology. The aim is to provide industry experts with enhanced, real-time data on soil moisture, temperature, and salinity levels.`,`NEW Product`,`GroundWorx is excited to introduce the Sports Capsule, an autonomous wireless soil sensor for golf and sports fields. This new wireless sensor is powered by the GX-1 Platform® in partnership with PURE Insightâ¢.`,`The Sports Capsule helps golf course superintendents, turf managers, gardeners, and environmentalists. The device allows them to make smart choices. These choices save water and improve productivity, just like the earlier GX-1 Series sensors.`,`The GroundWorx Sports Capsule is set to launch in the late summer of 2025. Read the full press release here.`,`#block-e6192291f2d7cbab8f6c { --stroke-style: none;--stroke-thickness: 6px; } #block-e6192291f2d7cbab8f6c .sqs-html-content { --tweak-text-block-padding: 6% 6% 6% 6%; --tweak-text-block-padding: initial; } #block-e6192291f2d7cbab8f6c { mix-blend-mode: var(--tweak-text-block-blend ); border-radius: var(--tweak-text-block-radius); } #block-e6192291f2d7cbab8f6c { --tweak-text-block-radius: 0px 0px 0px 0px; } #block-e6192291f2d7cbab8f6c { } @media screen and (max-width: 767px) { #block-e6192291f2d7cbab8f6c { } } @media screen and (max-width: 767px) { #block-e6192291f2d7cbab8f6c .sqs-html-content { } } @media screen and (max-width: 767px) { }`]},{slug:`groundworx-to-launch-the-sports-capsule-an-autonomous-wireless-soil-sensor-for-golf-amp-sports-fields`,title:`GroundWorx to Launch the Sports Capsule - An Autonomous Wireless Soil Sensor for Golf & Sports Fields`,date:`2025-02-05`,kind:`press`,excerpt:`SAN DIEGO, CA, UNITED STATES, February 5, 2025 / EINPresswire.com / -- GroundWorx proudly unveils the newest autonomous wireless sensor powered by the GX-1 Platform® in partnership with PURE Insightâ¢. The GroundWorx Sports Capsule is anâ¦`,paragraphs:[`SAN DIEGO, CA, UNITED STATES, February 5, 2025 / EINPresswire.com / -- GroundWorx proudly unveils the newest autonomous wireless sensor powered by the GX-1 Platform® in partnership with PURE Insightâ¢. The GroundWorx Sports Capsule is an autonomous wireless soil sensor that assists with water management and conservation. A very advanced piece of technology developed to safeguard Earthâs most precious resource. The GroundWorx Sports Capsule is set to be released in late Summer 2025.The GroundWorx Sports Capsule becomes the third GX-1 Series sensor to be released since 2022 and brings unparalleled innovation to the golf, sports fields, commercial landscaping, and environmental management sectors. Designed by GroundWorx engineers in partnership with PURE Insight to optimize water use and manufactured by the Morey Corporation, it provides precise, real-time insights into soil moisture, temperature, and other critical data points. By doing so, the Sports Capsule, like the prior GX-1 Series sensors, empowers golf course superintendents, sports turf managers, gardeners, and environmentalists to make informed decisions that conserve water while enhancing productivity.Key Features of the GroundWorx Sports Capsule:⢠Autonomous Operation: Fully self-sufficient, the Sports Capsule requires minimal human intervention, making it ideal for large-scale deployment.⢠Sub terranean Wireless Connectivity: Seamlessly integrates with IoT platforms, smart controllers, and smart devices for effortless data monitoring and management.⢠Real-Time Data Insights: Offers accurate soil analysis to ensure optimal irrigation schedules, reducing water wastage.⢠Eco-Friendly Design: Built with sustainability in mind, the GroundWorx Sports Capsule supports the global mission to combat water scarcity.âWater conservation is not just a goal; itâs a necessity,â said Diego Borrego, President & CTO of GroundWorx. âThe Sports Capsule is next-level for industries and individuals alike, enabling them to reduce water usage without compromising results. This is more than technologyâit is a commitment to our planetâs future.ââI brought together a team that is now our PURE Insight company to advance our industry through precision data collection with great advances in sensor technology, simplifying thorough analysis, and offering guidance on solutions, products, and practices specific to operations around the world, regardless of budget and purpose,â said Carmen Magro, PhD CGCS (President & CEO of PURE Insightâ¢).âWe effectively are an extension of operations globally. Capturing data precisely is of utmost importance, and weâre proud to support GroundWorxâs efforts, presenting them with advanced sensor technology to offer the industry a supplemental autonomous option in its new Sports Capsule sensor for in-situ soil measurements. We hope this partnership will lead to further advances in our industry and an opportunity to assist customers further.âWith water scarcity affecting millions worldwide, the Sports Capsule joins the GX-1A (Soil & Turfgrass) and GX-1F (Soil, Turfgrass, & Mature Specimen Trees) models as an essential tool in the fight against this critical global challenge. GroundWorx invites stakeholders across industries to embrace this revolutionary autonomous wireless sensor and join the mission to conserve water and protect the planet.About GroundWorxGroundWorx® is a leading provider of autonomous wireless soil sensor solutions designed to optimize turf and landscape management through real-time data insights. The companyâs technology empowers golf courses, sports fields, and commercial properties to make informed decisions that enhance turf health, reduce water usage, and improve operational efficiency.About PURE InsightPURE Insight⢠specializes in providing three crucial components needed for optimizing turfgrass performance. Offering global consultative services, technological advances in sensor technology, and solutions with products and services that are economical and efficie
131nt, PURE Insight⢠is a leading global organization providing a unique value to the turfgrass industry.`,`Chad DinkinsGroundWorx+1 858-758-0758`,`#block-3e4d12ac351057f09f72 { --stroke-style: none;--stroke-thickness: 6px; } #block-3e4d12ac351057f09f72 .sqs-html-content { --tweak-text-block-padding: 6% 6% 6% 6%; --tweak-text-block-padding: initial; } #block-3e4d12ac351057f09f72 { mix-blend-mode: var(--tweak-text-block-blend ); border-radius: var(--tweak-text-block-radius); } #block-3e4d12ac351057f09f72 { --tweak-text-block-radius: 0px 0px 0px 0px; } #block-3e4d12ac351057f09f72 { } @media screen and (max-width: 767px) { #block-3e4d12ac351057f09f72 { } } @media screen and (max-width: 767px) { #block-3e4d12ac351057f09f72 .sqs-html-content { } } @media screen and (max-width: 767px) { }`]},{slug:`press-release-pure-insight-partners-with-groundworx-to-advance-next-generation-autonomous-soil-sensors-for-golf-courses`,title:`PURE Insight⢠Partners with GroundWorx® to Advance Next-Generation Autonomous Soil Sensors for Golf Courses`,date:`2025-02-04`,kind:`press`,excerpt:`SAN DIEGO, CA, UNITED STATES, February 4, 2025 / EINPresswire.com / -- GroundWorx®, a leader in autonomous wireless soil sensor technology, has announced a strategic partnership with PURE Insightâ¢, an innovative sensor development andâ¦`,paragraphs:[`SAN DIEGO, CA, UNITED STATES, February 4, 2025 / EINPresswire.com / -- GroundWorx®, a leader in autonomous wireless soil sensor technology, has announced a strategic partnership with PURE Insightâ¢, an innovative sensor development and advanced agronomic company, to revolutionize soil monitoring for golf courses, sports fields, and commercial real estate.This collaboration brings together GroundWorxâs expertise in advanced communications of autonomous sensors and data capture with PURE Insightâs cutting-edge sensor technology, aiming to provide industry professionals with more precise, real-time insights into soil moisture, temperature, and salinity.âWith sustainability and efficiency being top priorities for turf and landscape management, our partnership with PURE Insight will push the boundaries of autonomous soil monitoring,â said Brad David, CEO of GroundWorx. âBy integrating PURE Insightâs next-generation sensor technology, we are delivering a smarter, data-driven approach to optimizing irrigation, improving turf health, and reducing water waste.âPURE Insightâs new sensor is designed to provide unprecedented accuracy in measuring ground moisture and other soil conditions, ensuring that golf courses, sports facilities, and commercial properties can maintain optimal conditions with minimal environmental impact. The partnership will focus on seamlessly integrating these sensors into GroundWorxâs existing GX-1 Series sensor line-up, offering users an intuitive and highly efficient solution for soil monitoring and management.âGroundWorxâs expertise in autonomous wireless sensing aligns perfectly with our mission to develop the most advanced and reliable soil sensors on the market,â said Carmen Magro, PhD, CGCS (President & CEO) at PURE Insight. âTogether, we are creating a groundbreaking solution that will set a new industry standard for precision and efficiency.âThe partnership comes at a time when water conservation and sustainability are becoming increasingly important in turf and landscape management. By leveraging the latest advancements in sensor technology, GroundWorx, and PURE Insight are committed to providing actionable insights that help facilities optimize their irrigation strategies while reducing costs and environmental impact.About GroundWorxGroundWorx® is a leading provider of autonomous wireless soil sensor solutions designed to optimize turf and landscape management through real-time data insights. The companyâs technology empowers golf courses, sports fields, and commercial properties to make informed decisions that enhance turf health, reduce water usage, and improve operational efficiency.About PURE InsightPURE Insight⢠specializes in providing three crucial components needed for optimizing turfgrass performance. Offering global consultative services, technological advances in sensor technology, and solutions with products and services that are economical and efficie
131nt, PURE Insight⢠is a leading global organization providing a unique value to the turfgrass industry.`,`Chad DinkinsGroundWorx+1 858-758-0758`,`#block-d61bb072cabf215d02d8 { --stroke-style: none;--stroke-thickness: 6px; } #block-d61bb072cabf215d02d8 .sqs-html-content { --tweak-text-block-padding: 6% 6% 6% 6%; --tweak-text-block-padding: initial; } #block-d61bb072cabf215d02d8 { mix-blend-mode: var(--tweak-text-block-blend ); border-radius: var(--tweak-text-block-radius); } #block-d61bb072cabf215d02d8 { --tweak-text-block-radius: 0px 0px 0px 0px; } #block-d61bb072cabf215d02d8 { } @media screen and (max-width: 767px) { #block-d61bb072cabf215d02d8 { } } @media screen and (max-width: 767px) { #block-d61bb072cabf215d02d8 .sqs-html-content { } } @media screen and (max-width: 767px) { }`]},{slug:`press-release-groundworx-partners-with-living-turf-for-autonomous-soil-wireless-monitoring-in-australia-and-new-zealand`,title:`GroundWorx Partners with Living Turf for Autonomous Soil Wireless Monitoring in Australia and New Zealand`,date:`2025-02-04`,kind:`press`,excerpt:`SAN DIEGO, CA, UNITED STATES, February 4, 2025 / EINPresswire.com / -- GroundWorx, a global leader in autonomous soil monitoring technology, is thrilled to announce its partnership with Living Turf, the premier distributor of turfâ¦`,paragraphs:[`SAN DIEGO, CA, UNITED STATES, February 4, 2025 / EINPresswire.com / -- GroundWorx, a global leader in autonomous soil monitoring technology, is thrilled to announce its partnership with Living Turf, the premier distributor of turf management products and services in Australia and New Zealand. This strategic collaboration designates Living Turf as a key distributor of the GroundWorx advanced soil monitoring sensors, empowering turf managers across the region to optimize soil health and achieve unmatched efficiency in water management.The GroundWorx state-of-the-art soil monitoring sensors provide real-time, accurate data on critical soil metrics, including moisture, temperature, and salinity. This information enables turf professionals to make informed decisions that improve turf quality, conserve water, and reduce operating costsâa necessity in the diverse and challenging climates of Australia and New Zealand."We are delighted to partner with Living Turf, a company that shares our commitment to innovation and sustainability," said Brad David, CEO of GroundWorx. "Their reputation for delivering industry-leading solutions and their deep expertise in turf management makes them an ideal partner as we bring our cutting-edge soil monitoring technology to a new region. Together, weâre enabling turf professionals to achieve healthier landscapes and smarter resource use."Living Turf has been a trusted resource for golf course superintendents, sports field managers, and turf professionals for over two decades. With its extensive network and proven expertise, Living Turf will offer the GroundWorx innovative sensors alongside comprehensive support and training to ensure seamless adoption."Partnering with GroundWorx allows us to expand our offering of best-in-class solutions for turf professionals," said Martin OâMalley, Irrigation Technical Sales at Living Turf. "The GroundWorx autonomous soil monitoring system aligns perfectly with our mission to deliver smarter turf management solutions. This technology will help our customers conserve water, reduce inputs, and maintain top-quality playing surfaces across a variety of climates and conditions."The GroundWorx sensors are particularly well-suited for golf courses, sports fields, and other high-performance turf environments, where precision soil monitoring can make a measurable difference in turf health and water conservation. By leveraging these sensors, turf managers can proactively address soil issues, optimize irrigation schedules, and achieve sustainability goals with confidence.This partnership represents a significant step forward in the GroundWorx mission to transform turf management through data-driven innovation. Turf professionals in Australia and New Zealand can now access the GroundWorx solutions through Living Turfâs trusted network, supported by industry experts dedicated to their success.About GroundWorx:GroundWorx is a global innovator in autonomous soil monitoring technology, helping turf managers and landscape professionals optimize water use, enhance soil health, and achieve sustainability goals. Through its advanced sensors and data-driven solutions, GroundWorx empowers users to make smarter decisions for healthier, more sustainable landscapes.About Living TurfLiving Turf is Australia and New Zealandâs leading supplier of turf management products, solutions, and services. With a commitment to innovation and excellence, Living Turf partners with turf professionals to deliver sustainable outcomes for golf courses, sports fields, and high-performance turf environments.`,`Chad DinkinsGroun
131dWorx+1 858-758-0758`,`#block-c001820090c98adf8821 { --stroke-style: none;--stroke-thickness: 6px; } #block-c001820090c98adf8821 .sqs-html-content { --tweak-text-block-padding: 6% 6% 6% 6%; --tweak-text-block-padding: initial; } #block-c001820090c98adf8821 { mix-blend-mode: var(--tweak-text-block-blend ); border-radius: var(--tweak-text-block-radius); } #block-c001820090c98adf8821 { --tweak-text-block-radius: 0px 0px 0px 0px; } #block-c001820090c98adf8821 { } @media screen and (max-width: 767px) { #block-c001820090c98adf8821 { } } @media screen and (max-width: 767px) { #block-c001820090c98adf8821 .sqs-html-content { } } @media screen and (max-width: 767px) { }`]},{slug:`press-release-groundworx-partners-with-ewing-outdoor-supply-in-the-united-states`,title:`GroundWorx Partners with Ewing Outdoor Supply in the United States`,date:`2025-02-04`,kind:`press`,excerpt:`SAN DIEGO, CA, UNITED STATES, February 3, 2025 / EINPresswire.com / -- GroundWorx, a leader in advanced autonomous soil monitoring sensors, is proud to announce its partnership with Ewing Outdoor Supply, one of the nation's largestâ¦`,paragraphs:[`SAN DIEGO, CA, UNITED STATES, February 3, 2025 / EINPresswire.com / -- GroundWorx, a leader in advanced autonomous soil monitoring sensors, is proud to announce its partnership with Ewing Outdoor Supply, one of the nation's largest suppliers of landscape and irrigation products. This strategic collaboration designates Ewing as a key distributor of the GroundWorx cutting-edge sensors, bringing revolutionary soil monitoring technology to customers nationwide.`,`GroundWorxâs autonomous soil monitoring sensors provide real-time, accurate data on soil conditions, including moisture, temperature, and salinity. These sensors empower landscape professionals, sports turf managers, and agricultural stakeholders with actionable insights that enable smarter irrigation management, improved resource efficiency, and healthier, more sustainable landscapes.`,`"Partnering with Ewing Outdoor Supply is a significant milestone for GroundWorx," said Brad David, CEO of GroundWorx. "Their extensive network and decades of expertise in the landscape and irrigation industry make them the ideal partner to expand the reach of our innovative soil monitoring technology. Together, weâre empowering customers to make data-driven decisions that save water, reduce costs, and enhance environmental stewardship."With over 250 locations nationwide, Ewing Outdoor Supply is a trusted resource for irrigation professionals, golf course managers, municipalities, and commercial landscape contractors. By offering GroundWorxâs sensor line-up, Ewing reinforces its commitment to delivering best-in-class solutions that address todayâs critical water management and sustainability challenges."At Ewing, weâre always seeking innovative products that deliver value to our customers," said Steve Sakurai, National Golf Segment Manager at Ewing Outdoor Supply. "The GroundWorx autonomous soil monitoring sensors are a game-changer, providing precise data that helps optimize water use while maintaining healthy and vibrant landscapes. Weâre excited to bring this technology to our customers and be part of the movement toward smarter irrigation practices."The GroundWorx sensors are particularly valuable for golf courses, sports fields, and large commercial landscapes, where accurate soil monitoring can drastically reduce water consumption and improve turf health. By leveraging this technology, users can stay ahead of potential issues, reduce overwatering, and achieve long-term sustainability goals.This partnership underscores GroundWorxâs mission to transform soil monitoring and irrigation management through innovation and collaboration. Customers can now access GroundWorx sensors through Ewingâs extensive distribution network, backed by expert support and training to ensure successful implementation.About GroundWorx:GroundWorx Inc. is a leading innovator in autonomous soil monitoring technology, dedicated to helping customers achieve smarter irrigation management and sustainable landscapes. With precision and reliability at the core of its sensor designs, GroundWorx empowers users with the data they need to optimize water usage, reduce costs, and promote environmental stewardship.About Ewing Outdoor Supply:Celebrating over 100 years of service, Ewing Outdoor Supply is the largest family-owned national supplier in the green industry. Ewing provides irrigation, landscape, and turf products, along with solutions for outdoor living, sports fields, golf, and sustainable projects. With a nationwide network of knowledgeable staff, Ewing offers green industry professionals products and services that support their success, including the ProAdvantage Program and exceptional customer service at the Blue Counter. Whether in-store or online, Ewing is a trusted partner for all green industry needs.`,`Chad DinkinsGroun
131dWorx+1 858-758-0758`,`#block-b4eaf644def6f50f6ec7 { --stroke-style: none;--stroke-thickness: 6px; } #block-b4eaf644def6f50f6ec7 .sqs-html-content { --tweak-text-block-padding: 6% 6% 6% 6%; --tweak-text-block-padding: initial; } #block-b4eaf644def6f50f6ec7 { mix-blend-mode: var(--tweak-text-block-blend ); border-radius: var(--tweak-text-block-radius); } #block-b4eaf644def6f50f6ec7 { --tweak-text-block-radius: 0px 0px 0px 0px; } #block-b4eaf644def6f50f6ec7 { } @media screen and (max-width: 767px) { #block-b4eaf644def6f50f6ec7 { } } @media screen and (max-width: 767px) { #block-b4eaf644def6f50f6ec7 .sqs-html-content { } } @media screen and (max-width: 767px) { }`]},{slug:`the-benefits-of-water-conservation-save-water-save-money`,title:`The Benefits of Water Conservation: Save Water, Save Money`,date:`2025-01-20`,kind:`blog`,excerpt:`Water is an essential resource that sustains all forms of life on our planet. Despite its fundamental importance, many people tend to overlook the value of water in their daily lives. This oversight comes from having plenty of water inâ¦`,paragraphs:[`Water is an essential resource that sustains all forms of life on our planet. Despite its fundamental importance, many people tend to overlook the value of water in their daily lives. This oversight comes from having plenty of water in many areas. This can make people feel too relaxed about its availability.`,`As the global population grows, the demand for water is rising quickly. Climate change makes this demand worse as it disrupts our usual water supply systems. This causes more frequent and severe droughts in many parts of the world.`,`To address these challenges, it is imperative that we become more mindful of our water usage. Additionally, educating ourselves and others about the importance of water conservation can help foster a culture of sustainability.`,`Not only does water conservation help protect the environment, but it also offers significant financial benefits.`,`Lower Utility Bills`,`One of the most immediate benefits of water conservation is the significant reduction in your water bill. When you try to use less
131water in your daily activities, you will notice a drop in your water use. This includes things like showering, washing dishes, or watering your garden. This reduction directly translates to lower charges on your monthly utility statement.`,`Small changes, like fixing leaks and using low-flow fixtures, can save a lot of water. These actions can lead to substantial savings over time.`,`Increased Property Value`,`Homes that are equipped with water-efficient appliances and fixtures are often more attractive to potential buyers. Investing in water conservation measures can increase your property value and make your home more marketable.`,`Environmental Protection`,`Conserving water helps protect our natural ecosystems. Reducing water consumption decreases the demand on local water supplies, which can help preserve rivers, lakes, and wetlands. This, in turn, supports wildlife habitats and maintains biodiversity.`,`Sustainable Future`,`Water conservation is essential for ensuring a sustainable future. Water scarcity is becoming a bigger problem.`,`Using water-saving practices can help protect this important resource. This is essential for future generations. By conserving water today, we can contribute to a more sustainable and resilient environment.`,`Reduced Energy Consumption`,`Water conservation also leads to lower energy consumption. Treating and distributing water demands a considerable energy investment throughout the process. Using less water also reduces the energy needed for these processes. This can help lower your overall carbon footprint.`,`Community Benefits`,`When individuals and businesses conserve water, it benefits the entire community. Reduced water demand can lead to lower costs for water treatment and infrastructure maintenance, ultimately saving taxpayers money. Additionally, communities that prioritize water conservation are better equipped to handle droughts and other water-related challenges.`,`The GroundWorx Goal`,`Water conservation is not just an environmental issue; it is also an economic one. By using water-saving practices, you can lower your utility bills. This can also raise your property value and help the environment.`,`GroundWorx provides products to help customers improve their water conservation efforts. We pride ourselves on our advanced solutions and easy-to-use applications. Reach out today to learn more about how GroundWorx can help you along on this journey.`,`#block-58ebfcf8e474e9056dbe { --stroke-style: none;--stroke-thickness: 6px; } #block-58ebfcf8e474e9056dbe .sqs-html-content { --tweak-text-block-padding: 6% 6% 6% 6%; --tweak-text-block-padding: initial; } #block-58ebfcf8e474e9056dbe { mix-blend-mode: var(--tweak-text-block-blend ); border-radius: var(--tweak-text-block-radius); } #block-58ebfcf8e474e9056dbe { --tweak-text-block-radius: 0px 0px 0px 0px; } #block-58ebfcf8e474e9056dbe { } @media screen and (max-width: 767px) { #block-58ebfcf8e474e9056dbe { } } @media screen and (max-width: 767px) { #block-58ebfcf8e474e9056dbe .sqs-html-content { } } @media screen and (max-width: 767px) { }`]},{slug:`common-turf-diseases-in-sports`,title:`Common Turf Diseases in Sports`,date:`2025-01-09`,kind:`blog`,excerpt:`Maintaining the health of turf on sports fields and golf courses is crucial for optimal performance and aesthetics. Many diseases can harm the health of turf. These diseases can appear in different ways. They include fungal infections,â¦`,paragraphs:[`Maintaining the health of turf on sports fields and golf courses is crucial for optimal performance and aesthetics. Many diseases can harm the health of turf. These diseases can appear in different ways. They include fungal infections, bacterial problems, and environmental stress.`,`These diseases can cause ugly patches, discoloration, and thinning of the grass. This not only harms the beauty of the landscape but also makes the surface harder to play on.`,`For instance, a golf course with patchy greens can frustrate golfers, affecting their game and overall enjoyment. Similarly, sports fields with diseased turf can lead to unpredictable ball behavior, increasing the risk of injury for players.`,`Causes`,`Turf diseases have many causes. These can include poor soil health, bad drainage, and improper mowing.`,`Environmental conditions, like too much moisture or drought, also play a role. Groundkeepers and turf managers must watch the health of the grass closely. They should also use good management strategies. Preventative measures are key in maintaining healthy turf. This includes regular soil tests to check nutrient levels.`,`It also involves proper watering to prevent over
131watering or underwatering. Additionally, we use grass types that resist diseases. Implementing a comprehensive maintenance schedule that includes aeration, overseeding, and appropriate mowing techniques can significantly reduce the risk of turf diseases.`,`Types of Turf Disease`,`If turf diseases do occur, timely identification and intervention are critical. This may include using fungicides or other treatments. It also involves cultural practices to improve turf resilience. By fixing problems quickly and well, turf managers can improve the grass's health. This keeps sports fields and golf courses in great shape.`,`The health of turf on sports fields and golf courses is vital for both performance and aesthetics. Groundskeepers can keep playing surfaces healthy. They can do this by understanding the risks of turf diseases.`,`Dollar Spot`,`Dollar spot is a common turf disease. It appears as small, round patches of dead grass. These patches can be the size of a silver dollar or several inches wide.`,`Causes: The fungus (Sclerotinia homoeocarpa) causes this disease and thrives in warm, humid conditions. Poor air circulation and excessive nitrogen fertilization can exacerbate the problem.`,`Management: To manage dollar spot, ensure proper mowing practices, improve air circulation, and avoid over-fertilization. You can also apply fungicides as a preventive measure during high-risk periods.`,`Brown Patch`,`Brown patch appears as large, irregularly shaped brown areas on the turf, often surrounded by a dark ring. It can quickly spread, especially in warm, humid weather.`,`Causes: The fungus (Rhizoctonia solani) causes this disease and thrives in high temperatures and high humidity. Overwatering and excessive nitrogen can also contribute to its development.`,`Management: To combat brown patch, reduce watering frequency, improve drainage, and maintain proper mowing heights. Fungicides may be necessary for severe outbreaks.`,`Fusarium Blight`,`Fusarium blight manifests as yellowing and wilting of grass blades, often leading to large patches of dead turf.`,`Causes: The fungus (Fusarium spp) causes this disease. Environmental stress, like drought or extreme heat, often links to it.`,`Management: To manage fusarium blight, make sure to water plants well. Avoid mowing when it is hottest outside. If needed, think about using fungicides.`,`Powdery Mildew`,`Powdery mildew appears as a white, powdery coating on grass blades, which can lead to stunted growth and reduced turf health.`,`Causes: Various fungal species cause this disease, and high humidity and poor air circulation often exacerbate it.`,`Management: Improve air circulation by pruning surrounding vegetation, avoid overhead watering, and apply fungicides if the problem persists.`,`GroundWorx Products`,`GroundWorx provides a wide range of innovative products. These products measure different soil factors. By using these moisture sensors, groundskeepers can learn about the soil's moisture levels. This helps them make better choices about irrigation and watering schedules.`,`Our technology empowers groundskeepers to monitor potential disease outbreaks in real-time. By watching soil moisture and grass quality closely, they can spot early signs of stress or disease. This active monitoring is important for keeping lawns, sports fields, and other green areas looking good and working well.`,`GroundWorx's moisture sensors and soil measurement products are invaluable tools for groundskeepers. By leveraging our technology, groundskeepers can ensure that their outdoor environments remain vibrant, healthy, and resilient throughout the seasons.`,`#block-b59733a46071ba6efa14 { --stroke-style: none;--stroke-thickness: 6px; } #block-b59733a46071ba6efa14 .sqs-html-content { --tweak-text-block-padding: 6% 6% 6% 6%; --tweak-text-block-padding: initial; } #block-b59733a46071ba6efa14 { mix-blend-mode: var(--tweak-text-block-blend ); border-radius: var(--tweak-text-block-radius); } #block-b59733a46071ba6efa14 { --tweak-text-block-radius: 0px 0px 0px 0px; } #block-b59733a46071ba6efa14 { }
131 @media screen and (max-width: 767px) { #block-b59733a46071ba6efa14 { } } @media screen and (max-width: 767px) { #block-b59733a46071ba6efa14 .sqs-html-content { } } @media screen and (max-width: 767px) { }`]},{slug:`soil-health-the-foundation-of-successful-turf-management`,title:`Soil Health: The Foundation of Successful Turf Management`,date:`2025-01-06`,kind:`blog`,excerpt:`Healthy soil is more than just a place for plants to grow. It supports many organisms, helps retain water, and improves nutrient availability. Understanding the importance of soil health can lead to improved crop yields, better sportsâ¦`,paragraphs:[`Healthy soil is more than just a place for plants to grow. It supports many organisms, helps retain water, and improves nutrient availability. Understanding the importance of soil health can lead to improved crop yields, better sports field performance, and lush, vibrant turf.`,`The Importance of Soil Health in Farming`,`For farmers, soil health directly impacts productivity and sustainability. Healthy soil promotes robust root systems, which in turn leads to better nutrient uptake and water retention. This is especially important during droughts.`,`Soil moisture sensors can help monitor and manage water levels effectively. By using these sensors, farmers can make smart choices about watering. This helps crops get the right amount of moisture without too much water.`,`Soil Health in Sports Fields`,`In sports, the condition of the soil under the turf can greatly affect how athletes perform. It also impacts how long the playing surface lasts.`,`Healthy soil gives a strong base. It helps with drainage and air flow. This reduces the chance of injuries from uneven ground or bad footing.`,`Sports fields that are well-maintained with healthy soil can withstand heavy foot traffic and recover more quickly from wear and tear. Using soil health practices like regular aeration and organic amendments can improve sports fields. Also, the use of in-ground sensors can help with maintaining the turf quality.`,`Turf Management and Aesthetic Appeal`,`For homeowners and landscape managers, maintaining healthy soil is essential for achieving lush, green lawns and vibrant gardens. Healthy soil has many types of microbes. These microbes break down organic matter. This process releases nutrients that plants need to grow well.`,`Using soil moisture sensors can help homeowners manage their lawns better. These sensors let them check soil conditions. This helps with accurate watering and reduces water waste. This not only promotes a healthier lawn but also contributes to water conservation efforts.`,`Optimizing Soil Health Management with GroundWorx`,`We cannot overstate the importance of soil health. Whether in farming, sports fields, or general turf management, healthy soil is the foundation for success.`,`Because of constantly changing conditions, most operations experience overwatering and underwatering issues. GroundWorx offers smart solutions that help you get the information you need. This can reduce water run times and improve how you use chemicals and fertilizers.`,`Our advanced soil moisture sensors and monitoring systems help manage irrigation. They make sure your plants get the right amount of water at the right time. This not only enhances soil health but also promotes sustainable practices by minimizing water waste and reducing the environmental impact of excessive chemical applications.`,`With GroundWorx, you can create the best soil conditions. This helps plants grow strong and boosts productivity in farming, sports fields, and landscaping.`,`#block-a75c79dea163bd1331ae { --stroke-style: none;--stroke-thickness: 6px; } #block-a75c79dea163bd1331ae .sqs-html-content { --tweak-text-block-padding: 6% 6% 6% 6%; --tweak-text-block-padding: initial; } #block-a75c79dea163bd1331ae { mix-blend-mode: var(--tweak-text-block-blend ); border-radius: var(--tweak-text-block-radius); } #block-a75c79dea163bd1331ae { --tweak-text-block-radius: 0px 0px 0px 0px; } #block-a75c79dea163bd1331ae { } @media screen and (max-width: 767px) { #block-a75c79dea163bd1331ae { } } @media screen and (max-width: 767px) { #block-a75c79dea163bd1331ae .sqs-html-content { } } @media screen and (max-width: 767px) { }`]},{slug:`sports-field-irrigation-enhancing-turf-management`,title:`Sports Field Irrigation | Enhancing Turf Management`,date:`2024-12-31`,kind:`blog`,excerpt:`Keeping sports fields in good shape is important for great playing conditions. One key part of this care is proper irrigation. Good irrigation systems provide the right amount of water to grass. This helps it grow healthy and stay vibrantâ¦`,paragraphs:[`Keeping sports fields in good shape is important for great playing conditions. One key part of this care is proper irrigation. Good irrigation systems provide the right amount of water to grass. This helps it grow healthy and stay vibrant green.`,`A well-watered sports field is visually appealing and gives athletes a safe place to play. When adequately w
131atered, grass develops robust roots. This is important for handling heavy foot traffic and regular use.`,`Whether it's a football field or a baseball diamond, the right irrigation system can make all the difference. With that in mind, GroundWorx can help make turf management better and more affordable. Our devices allow users to make sure their irrigation systems are functioning correctly and at their greatest capacity.`,`The Importance of Sports Field Irrigation`,`Sports fields are subjected to heavy use, which can lead to wear and tear on the turf. Adequate irrigation is essential to keep the grass lush and resilient. Here are some key benefits of a well-designed sports field irrigation system:`,`1. Consistent Watering: A good irrigation system makes sure the grass gets enough water. This helps avoid dry spots and supports even growth.`,`2. Improved Turf Quality: Healthy turf not only looks better but also performs better. Proper irrigation helps maintain the right moisture levels, which is vital for root development and overall grass health.`,`3. Cost Efficiency: A good irrigation system can save water. It can also reduce maintenance costs over time. By optimizing water distribution, sports facilities can reduce waste and lower their utility bills.`,`Modern irrigation systems designers can create systems that minimize water usage and runoff, making them more environmentally friendly. This is particularly important as water conservation becomes a growing concern.`,`GroundWorx: Your Partner in Turf Management`,`An irrigation system is key, but how do you make sure you are getting the best results? GroundWorx focuses on creating smart solutions for watering sports fields.`,`We offer soil moisture sensors, detailed app data, and weather stations. We provide customers with tailored irrigation systems that meet the specific needs of different sports fields. Whether it's a football field, a soccer field, or a baseball field, our products improve water use and boost turf quality.`,`Types of Irrigation Supported by GroundWorx`,`Baseball Field Irrigation`,`Football Field Irrigation`,`Soccer Field Irrigation`,`Golf Course & Fairway Irrigation`,`Irrigation for Multipurpose Spaces & Turf`,`GroundWorx Customers`,`To address the challenges of one major league sports field, GroundWorx deployed four GX-1A (Adjustable) sensors for one major league sports field. Buried 2 inches deep, these sensors take salt readings at 3.5 inches and moisture readings at 4.5 inches.`,`The head groundskeeper uses data from the sensors to help lower moisture levels and keep the field in top shape. This has resulted in reduced costs on water and other resources like fertilizer. Additionally, they have been able to maintain the correct salt levels, ensuring soil health and consistency.`,`GroundWorx Irrigation Solutions`,`Learn more about the latest GroundWorx technology that aids in smart irrigation. Our products allows for accurate watering schedules and changes based on the weather. This ensures that the grass gets the right amount of water all the time. Reach out today to learn more.`,`#block-59633474c3895f94d9ef { --stroke-style: none;--stroke-thickness: 6px; } #block-59633474c3895f94d9ef .sqs-html-content { --tweak-text-block-padding: 6% 6% 6% 6%; --tweak-text-block-padding: initial; } #block-59633474c3895f94d9ef { mix-blend-mode: var(--tweak-text-block-blend ); border-radius: var(--tweak-text-block-radius); } #block-59633474c3895f94d9ef { --tweak-text-block-radius: 0px 0px 0px 0px; } #block-59633474c3895f94d9ef { } @media screen and (max-width: 767px) { #block-59633474c3895f94d9ef { } } @media screen and (max-width: 767px) { #block-59633474c3895f94d9ef .sqs-html-content { } } @media screen and (max-width: 767px) { }`]},{slug:`maximize-your-savings-with-groundworx-early-order-program`,title:`Maximize Your Savings with GroundWorx Early Order Program `,date:`2024-12-27`,kind:`blog`,excerpt:`As the new year comes, it's a great time to think about improving our landscaping and irrigation methods. GroundWorx is excited to announce its Early Order Program, running now until January 31st, 2025. This program not only offersâ¦`,paragraphs:[`As the new year comes, it's a great time to think about improving our landscaping and irrigation methods. GroundWorx is excited to announce its Early Order Program, running now until January 31st, 2025. This program not only offers significant savings but also promotes water conservation through advanced technology.`,`Why Choose GroundWorx?`,`GroundWorx is committed to providing innovative solutions that help you maintain a beautiful landscape while conserving water. This includes smart irrigation systems and weather stations. These tools optimize water usage, ensuring that your plants receive the right amount of moisture without waste.`,`How to Participate in the Early Order Program`,`Participating in the GroundWorx Early Order Program is simple. Just visit our website or contact your local distributor to place your order before January 31st, 2025. By doing this, you protect your savings and support sustainable practices. These practices help both your land and the environment.`,`A Step Towards Water Conservation`,`Don't miss out on the opportunity to save while making a positive impact on water conservation. The GroundWorx Early Order Program lets you get the best tools for your landscape. This includes weather stations that improve your irrigation efficie
131ncy. Act now and be part of the solution for a greener, more sustainable future.`,`#block-80c54f50d987dda63ea0 { --stroke-style: none;--stroke-thickness: 6px; } #block-80c54f50d987dda63ea0 .sqs-html-content { --tweak-text-block-padding: 6% 6% 6% 6%; --tweak-text-block-padding: initial; } #block-80c54f50d987dda63ea0 { mix-blend-mode: var(--tweak-text-block-blend ); border-radius: var(--tweak-text-block-radius); } #block-80c54f50d987dda63ea0 { --tweak-text-block-radius: 0px 0px 0px 0px; } #block-80c54f50d987dda63ea0 { } @media screen and (max-width: 767px) { #block-80c54f50d987dda63ea0 { } } @media screen and (max-width: 767px) { #block-80c54f50d987dda63ea0 .sqs-html-content { } } @media screen and (max-width: 767px) { }`]},{slug:`agriculture-soil-management-navigating-challenges-in-drought-conditions`,title:`Agriculture Soil Management: Navigating Challenges in Drought Conditions`,date:`2024-12-23`,kind:`blog`,excerpt:`Good soil management and efficient irrigation systems are key factors for keeping crop yields high. This is especially important during tough weather, like droughts. As climate change affects weather patterns, farmers must work harder toâ¦`,paragraphs:[`Good soil management and efficient irrigation systems are key factors for keeping crop yields high. This is especially important during tough weather, like droughts. As climate change affects weather patterns, farmers must work harder to keep their productivity up despite water shortages.`,`Understanding Farm Irrigation Systems`,`Farm irrigation systems help deliver water to crops in a controlled way. This ensures that plants get the moisture they need to grow. Each system has its pros and cons. The choice often depends on crop type, soil type, and water resources.`,`Challenges Faced by Farmers During Droughts`,`Water Scarcity: The most immediate challenge during a drought is the lack of available water. Farmers must find ways to optimize their irrigation systems to use water more efficiently. This may involve investing in advanced technologies that monitor soil moisture levels and automate irrigation schedules.`,`Soil Degradation: Drought conditions can lead to soil degradation, reducing its fertility and ability to retain moisture. Farmers should use good soil management practices.`,`Increased Costs: The need for supplemental irrigation during droughts can lead to increased costs. Farmers might need to buy better irrigation systems or pay more for water. This can put pressure on their budgets.`,`Crop Stress: Insufficient water can cause stress to crops, leading to reduced yields and lower quality produce. Farmers must carefully monitor their crops and adjust their irrigation practices to mitigate stress and ensure optimal growth.`,`Regulatory challenges arise when authorities control water use in some areas. Farmers may have limits on how much water they can use for irrigation. Navigating these regulations while trying to maintain productivity can be a significant challenge.`,`GroundWorx Moisture Sensors`,`To combat the challenges posed by droughts, farmers can investing in cutting-edge technology. Utilizing smart irrigation systems, sensors, and data analytics can help farmers optimize water usage and reduce waste.`,`GroundWorx moisture sensors are helpful tools for farmers. They can improve irrigation practices, especially during dry times. These sensors give real-time data on soil moisture. This helps farmers decide when and how much to water their crops.`,`By integrating GroundWorx moisture sensors into their farm irrigation systems, farmers can achieve several goals:`,`Precision Irrigation: The sensors help monitor soil moisture closely. This ensures crops get the right amount of water when they need it. This precision helps to prevent over-irrigation, which can waste water and lead to soil degradation.`,`Data-Driven Decisions: With access to accurate moisture data, farmers can analyze trends and adjust their irrigation schedules accordingly. This data-driven approach enhances efficiency and can lead to significant water savings.`,`Better Crop Health: GroundWorx sensors keep soil moisture just right. This helps reduce stress on crops, leading to healthier plants and possibly higher yields. This is particularly crucial during periods of water scarcity.`,`Cost Savings: By optimizing water usage, farmers can lower their costs associated with irrigation. Farmers can offset the initial investment in moisture sensors with the savings achieved through more efficient water management.`,`One GroundWorx Example`,`For one farmer in Arizona, using GroundWorx's GX-1FX moisture sensor has changed how they farm. This sensor has a vertical extension that connects to many cellular networks. This advanced technology lets the famer monitor moisture and salinity levels in real-time at the roots of crops. It provides valuable insights that they could not get before.`,`By leveraging this data, the farmer can make informed decisions about irrigation schedules and water application, significantly reducing both water and energy consumption. This not only conserves vital resources but also enhances crop health and resilience, ultimately leading to increased yields. The financial return on investment is substantial, as optimized water usage translates to lower costs and improved productivity.`,`The integration of the GX-1FX sensor exemplifies how modern technology can address the challenges of agriculture soil management, particularly in arid regions like Arizona. Farmers are dealing with climate change and water shortages. Solutions like GroundWorx's moisture sensors are important. They help promote sustainable farming and ensure a good future for agriculture.`,`Using GroundWorx`,`Using GroundWorx moisture sensors in farm irrigation systems helps solve drought problems. It also supports a more sustainable and productive farming future. Reach out today to learn more about GroundWorx and our water saving solutions.`,`#block-47bfa24574cfde396475 { --stroke-style: none;--stroke-thickness: 6px; } #block-47bfa24574cfde396475 .sqs-html-content { --tweak-text-block-padding: 6% 6% 6% 6%; --tweak-text-block-padding: initial; }
131 #block-47bfa24574cfde396475 { mix-blend-mode: var(--tweak-text-block-blend ); border-radius: var(--tweak-text-block-radius); } #block-47bfa24574cfde396475 { --tweak-text-block-radius: 0px 0px 0px 0px; } #block-47bfa24574cfde396475 { } @media screen and (max-width: 767px) { #block-47bfa24574cfde396475 { } } @media screen and (max-width: 767px) { #block-47bfa24574cfde396475 .sqs-html-content { } } @media screen and (max-width: 767px) { }`]},{slug:`water-conservation-in-the-golf-course-industry`,title:`Water Conservation in the Golf Course Industry`,date:`2024-12-18`,kind:`blog`,excerpt:`Humans have known the importance of conserving water for some time now. Whether it is for ethical or practical reasons, saving money, time, and resources is key to any successful business. Saving water is important to agriculture soilâ¦`,paragraphs:[`Humans have known the importance of conserving water for some time now. Whether it is for ethical or practical reasons, saving money, time, and resources is key to any successful business. Saving water is important to agriculture soil management, landscape irrigation, and groundskeeping in general.`,`Golf Course Water Conservation`,`Water conservation has become an increasingly critical issue in various sectors, and the golf course industry is no exception. Golf courses require significant amounts of water to maintain lush greens and fairways. The rise in droughts and water restrictions means golf course managers must use water conservation strategies. Effective water management not only lowers costs but also boosts the course's reputation for being environmentally responsible.`,`Technologies for Water Conservation`,`With new technologies, golf course groundskeepers have better tools and systems. These help them save water more effectively. These technologies encompass a range of solutions, from sophisticated irrigation systems to data analytics and environmental monitoring tools.`,`One of the most impactful advancements is the implementation of smart irrigation systems. These systems use sensors and weather data to determine how much water each area of the golf course needs.`,`Moisture Sensors`,`Soil moisture sensors measure the levels of water in golf course turf. Moisture sensors are essential tools for monitoring and maintaining the correct soil moisture levels. These sensors provide real-time soil moisture data, allowing golf course greenskeepers to make informed decisions.`,`Smart Irrigation Systems`,`Smart irrigation systems integrate weather data, soil moisture readings, and plant water requirements to automate the irrigation process. These systems can adjust watering schedules based on real-time conditions. This not only conserves water but also promotes healthier turf.`,`Government Grants for Water Conservation`,`Golf course managers can use government grants to help with water conservation. These grants support the use of advanced technologies. Many local, state, and federal programs offer financial assistance to businesses that adopt sustainable practices. These grants can help cover the costs of installing moisture sensors, smart irrigation systems, and other water-saving technologies.`,`By using these funding opportunities, golf courses can improve their water conservation efforts and lower their operating costs. This proactive approach helps the environment. It also makes the golf course a leader in responsible water management in the industry.`,`GroundWorx Water Conservation Tools`,`GroundWorx is proud to offer a variety of wireless soil moisture sensor packages. Our sensors give accurate and real-time data, which helps users make smart choices about irrigation and water management.`,`We design our sensors with user-friendliness in mind, which makes the installation process straightforward and hassle-free. Whether you are an expert or new to irrigation, our sensors are easy to set up. You can get your system running quickly and efficiently.`,`Using GroundWorx's advanced soil moisture sensors can also help you save water. This not only protects this valuable resource but also lowers your water bills.`,`We invite you to contact us today. Learn more about our wireless soil moisture sensor packages. Discover how GroundWorx can help you achieve greater eff
131iciency in your water usage and enhance the health of your plants.`,`#block-0334335694212246a666 { --stroke-style: none;--stroke-thickness: 6px; } #block-0334335694212246a666 .sqs-html-content { --tweak-text-block-padding: 6% 6% 6% 6%; --tweak-text-block-padding: initial; } #block-0334335694212246a666 { mix-blend-mode: var(--tweak-text-block-blend ); border-radius: var(--tweak-text-block-radius); } #block-0334335694212246a666 { --tweak-text-block-radius: 0px 0px 0px 0px; } #block-0334335694212246a666 { } @media screen and (max-width: 767px) { #block-0334335694212246a666 { } } @media screen and (max-width: 767px) { #block-0334335694212246a666 .sqs-html-content { } } @media screen and (max-width: 767px) { }`]},{slug:`groundworx-ai-soil-monitoring-technology-to-play-a-critical-role-in-wildfire-prevention`,title:`GroundWorx AI Soil Monitoring Technology to Play a Critical role in Wildfire Prevention`,date:`2024-01-22`,kind:`blog`,excerpt:`In an innovative leap for wildland firefighting, GroundWorx announces its cutting-edge soil moisture technology, leveraging machine learning, is poised to play a critical role in fire risk assessment andâ¦`,paragraphs:[`In an innovative leap for wildland firefighting, GroundWorx announces its cutting-edge soil moisture technology, leveraging machine learning, is poised to play a critical role in fire risk assessment and management.`,`Press Release`,`SAN DIEGO, Calif. - As wildfires continue to pose significant threats globally, GroundWorxâs system offers a proactive solution, leveraging advanced sensors to gauge soil moisture levels - a key factor in predicting and preventing wildfire outbreaks.`,`GroundWorxâs sophisticated sensor network, the GX-1 Platform, is designed to provide real-time, accurate readings of soil moisture, salinity, and temperature. This data is essential in identifying areas at heightened risk of wildfires, particularly in regions prone to dry conditions. By pinpointing potential hotspots, GroundWorx aids firefighting teams in deploying resources more effectively, enhancing preparedness and response strategies. It is ideal for use in monitoring soil moisture in frequent burn areas where structures and communities are threatened, where understanding plant available moisture in these areas is critical for determining ignition potential due to plant hydration.`,`Conservation and Cost-Effectiveness`,`Beyond wildfire prevention, GroundWorx offers substantial benefits in water conservation and cost savings. The systemâs precision in measuring soil conditions ensures optimal watering, reducing excessive resource use and preserving critical water supplies. This approach not only bolsters environmental conservation efforts but also translates to significant financial savings for land managers and agriculturalists.`,`Machine Learning: A Step Ahead in Turf Management`,`The integration of machine learning in GroundWorxâs technology enables predictive analysis of turf behavior under varying conditions. This feature is invaluable for anticipating changes in vegetation moisture and health, factors that directly influence wildfire risks.`,`Versatility Across Applications`,`While primarily developed for turf management in golf courses and agricultural lands, GroundWorxâs applications extend to various sectors, including municipal parks, real estate developments, and more. Its adaptability makes it a versatile tool in managing green spaces across diverse environments.`,`About GroundWorx®`,`GroundWorx®, a division of Gravity Technologies LLC, is dedicated to providing proactive soil management and water conservation solutions. Through innovation and technology, GroundWorx strives to connect caretakers with the land they manage, fostering smarter, more sustainable practices.`,`For more information about GroundWorx, visit www.getgroundworx.com or contact GroundWorx at [email protected].`,`#block-4ba4605578612821b4a8 { --stroke-style: none;--stroke-thickness: 6px; } #block-4ba4605578612821b4a8 .sqs-html-content { --tweak-text-block-padding: 6% 6% 6% 6%; --tweak-text-block-padding: initial; } #block-4ba4605578612821b4a8 { mix-blend-mode: var(--tweak-text-block-blend ); border-radius: var(--tweak-text-block-radius); } #block-4ba4605578612821b4a8 { --tweak-text-block-radius: 0px 0px 0px 0px; } #block-4ba4605578612821b4a8 { } @media screen and (max-width: 767px) { #block-4ba4605578612821b4a8 { } } @media screen and (max-width: 767px) { #block-4ba4605578612821b4a8 .sqs-html-content { } } @media screen and (max-width: 767px) { }`]},{slug:`the-3-overlooked-negative-consequences-of-over-irrigated-turf-that-managers-miss-and-how-to-avoid-them-w5tl6`,title:`Turf Talk with Tim (Post #2)`,date:`2023-11-01`,kind:`blog`,excerpt:`Temperature & moistureâ¦`,paragraphs:[`Temperature & moisture matter!`,`I remember a quote from one of my mentors, âWet soils are hot soils and wet soils are cold soils!â`,`Those words have stuck with me for decades throughout my career because Iâve seen what happens to good agronomy teams, superintendents, and their turfgrass when they fail to manage soil moisture.`,`When moisture and temperature levels in soils are unknown, difficult conditions for growing turfgrass can occur with serious outcomes.`,`In this edition of Turf Talk, Iâm going to cover why temperature and moisture levels matter so much for your turfgrass and Iâll highlight four actionable steps you can implement to avoid loss.`,`Turfgrass Loss:What Happens When You Lose Sight Of Your Moisture Levels`,`In the summer of â22 in the Northeast, virtually n
131o rain fell for three months and high day and nighttime temperatures led to agronomy teams over-irrigating turf.`,`Because many superintendents didnât have the technology available to assess their soil conditions accurately, and because water is an insulator with heat being the byproduct, turf loss occurred due to pathogens and heat stress. And as any superintendent knows, the thing you dread most is telling your members youâll be playing on temporary greens or worse, the course is closed for repairs.`,`Conversely, freezing and thawing cycles and the resulting desiccation of warm-season grasses are unavoidable and can also result in winterkill - even if you use covers on your greens. In 2015, many courses in the Carolinas experienced that exact unfortunate scenario after a long winter freeze and thaw cycle led to significant winterkill. Thatâs why understanding moisture levels going into these events and tracking the data can be a valuable tool. For example, in the event warming occurs before an anticipated freeze event, irrigation can be applied to limit desiccation on warm-season grasses.`,`The screenshots below are an example of how water works as an insulator in soil. These data points were taken simultaneously on the same fairway in two different locations. The surface is 419 Tifway hybrid bermuda and of course, it thrives in warm conditions.`,`#block-019936fde9edc721022c { } #block-019936fde9edc721022c .sqs-html-content { --tweak-text-block-padding: 6% 6% 6% 6%; --tweak-text-block-padding: initial; } #block-019936fde9edc721022c { mix-blend-mode: var(--tweak-text-block-blend ); border-radius: var(--tweak-text-block-radius); } #block-019936fde9edc721022c { --tweak-text-block-radius: 0px 0px 0px 0px; } #block-019936fde9edc721022c { } @media screen and (max-width: 767px) { #block-019936fde9edc721022c { } } @media screen and (max-width: 767px) { #block-019936fde9edc721022c .sqs-html-content { } } @media screen and (max-width: 767px) { }`,`Excessive moisture in this environment creates increased turf growth, translating into higher operating costs like increased labor, fuel usage, and wear and tear on equipment from more frequent mowing. If you have cool-season grasses, such as those found in the Northeast, hot and humid summers can be even more unbearable due to wet soils. While using more fungicides and other inputs can help prevent the devastating loss of turf, it can also come at a high cost to your budget. This problem and expense compounds if youâre diluting the efficacy of your products due to excess soil moisture levels.`,`With moisture level data like this, when properly tracked and managed, much of the turf loss in the Northeast in 2022 and the Carolinas in 2015 could have been mitigated.`,`How to minimize lost greens, dead turf, and damaged fairways by managing moisture and temperature levels`,`1. Deploy GroundWorx soil sensors to know your moisture levels`,`By deploying GroundWorx soil sensors across your course, you can manage moisture and temperature where it counts at the root zone which helps you limit heat, and maintain a healthy balance of soil, water, and air i.e. eliminating CO2 while introducing more oxygen in the soil profile.`,`2. Set your thresholds correctly for your conditions and region`,`Moisture levels are critical when delivering a well-conditioned golf course.`,`Proactively setting the proper alert thresholds for your soil and turf type can get you through the difficult summers while maintaining high standards for conditioning. For example, if you manage a golf course in Tucson, Arizona with high daytime temperatures, you need a reliable bank of moisture to get you through the heat of the day.`,`And if you overseed that golf course in the fall, thresholds can be reduced as irrigation requirements go down for your busy golf season when firmness and conditioning are at a premium.`,`3. Set sensor-specific moisture level alerts`,`With GroundWorx, you can easily set alerts for each sensor based on where your sensors are deployed: greens vs. fairways, pitched surface vs. flat fairways, front nine vs. back nine.`,`All these variables require different moisture level alerts even if the soil structure is the same because moisture and water absorption levels will vary.`,`4. Get ahead of issues early with clear communication`,`Finally, knowing your moisture and temperature levels can help you determine when to open up the course after winter.`,`And as youâve probably experienced after the first nice day of spring comes around, the pressure to open the course before itâs ready can be fierce. But if you understand and are able to communicate intelligently the conditions below ground to your members and customers, the pressure to open becomes more manageable.`,`Managing expectations is an important part of the success of your operation and playing offense using a solution like GroundWorx makes perfect sense.`,`Your Turn`,`Whether in hot or cold weather, knowing and tracking the dynamic relationship between soil temperature and moisture is pivotal for your turfgrass health. Overlooking these factors can lead to severe turf loss, as seen in instances in the Northeast Summer of 2022 and the winterkill in Carolina of 2015. Fortunately, deploying tools like GroundWorx sensors and setting specific moisture level alerts can help minimize and avoid turf loss when moisture levels are tracked properly.`,`And donât forget, as my mentor used to remind me, âWet soils are hot soils and wet soils are cold soils!â`,`#block-yui_3_17_2_1_1698850851568_10197 { } #block-yui_3_17_2_1_1698850851568_10197 .sqs-html-content { --tweak-text-block-padding: 6% 6% 6% 6%; --tweak-text-block-padding: initial; } #block-yui_3_17_2_1_1698850851568_10197 { mix-blend-mode: var(--tweak-text-block-blend ); border-radius: var(--tweak-text-block-radius); } #block-yui_3_17_2_1_1698850851568_10197 { --tweak-text-block-radius: 0px 0px 0px 0px; } #block-yui_3_17_2_1_1698850851568_10197 { } @media screen and (max-width: 767px) { #block-yui_3_17_2_1_1698850851568_10197 { } } @media screen and (max-width: 767px) { #block-yui_3_17_2_1_1698850851568_10197 .sqs-html-content { } } @media screen and (max-width: 767px) { }`]}],BC=zC.filter(e=>e.kind===`press`),VC=zC.filter(e=>e.kind===`blog`),HC=ys(`/blog/$slug`)({staticData:{sitemap:!0},loader:({params:e})=>{let t=zC.find(t=>t.slug===e.slug&&t.kind===`blog`);if(!t)throw N();return{post:t}},head:({loaderData:e})=>
131{if(!e)return{meta:[{title:`Article not found | GroundWorx`},{name:`robots`,content:`noindex`}]};let{post:t}=e,n=`https://getgroundworx.com/blog/${t.slug}`;return{meta:[{title:`${t.title} | GroundWorx Field Notes`},{name:`description`,content:t.excerpt},{property:`og:title`,content:t.title},{property:`og:description`,content:t.excerpt},{property:`og:type`,content:`article`},{property:`og:url`,content:n},{name:`twitter:card`,content:`summary_large_image`}],links:[{rel:`canonical`,href:n}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`BlogPosting`,headline:t.title,description:t.excerpt,datePublished:t.date,dateModified:t.date,mainEntityOfPage:n,articleBody:t.paragraphs.join(` 132 133`),author:{"@type":`Organization`,name:`GroundWorx`},publisher:{"@type":`Organization`,name:`GroundWorx`}})}]}},component:xs(()=>bC(()=>import(`./blog._slug-rHvH2JHW.js`),__vite__mapDeps([41,1,2,21])),`component`)}),UC=ys(`/invest/`)({staticData:{sitemap:!0},head:()=>({meta:[{title:`Invest in GroundWorx | Environmental Intelligence for Turf & Agriculture`},{name:`description`,content:`GroundWorx is building the environmental intelligence network beneath turf and agriculture: root-zone sensing, AI weather, and GAIN. Read the investor story and invest on Wefunder.`},{property:`og:title`,content:`Invest in GroundWorx`},{property:`og:description`,content:`Nine years, 700M+ environmental observations, 150+ paid field trials, 11 countries. The intelligence layer beneath every irrigation decision.`},{property:`og:type`,content:`website`},{property:`og:url`,content:`/invest`},{name:`twitter:card`,content:`summary_large_image`}],links:[{rel:`canonical`,href:`/invest`}]}),component:xs(()=>bC(()=>import(`./invest.index-D_MJeJob.js`),__vite__mapDeps([42,1,2,30,36,4,7,8])),`component`)}),WC=ys(`/invest/contact`)({staticData:{sitemap:!0},head:()=>({meta:[{title:`Investor Inquiry | Other Investment Opportunities | GroundWorx`},{name:`description`,content:`Interested in investing beyond the Wefunder community round? Tell us about your focus and our team will reach out to discuss future rounds, strategic partnerships, and participation opportunities.`},{property:`og:title`,content:`Investor Inquiry â Other Investment Opportunities`},{property:`og:description`,content:`Connect with the GroundWorx team about future rounds, strategic partnerships, and other investment opportunities.`},{property:`og:type`,content:`website`},{name:`twitter:card`,content:`summary_large_image`}],links:[{rel:`canonical`,href:`/invest/contact`}]}),component:xs(()=>bC(()=>import(`./invest.contact-w4Nkr_FC.js`),__vite__mapDeps([43,1,2,10,18,12,13,19,16])),`component`)}),GC=ys(`/press/`)({staticData:{sitemap:!0},head:()=>({meta:[{title:`Press & Media | GroundWorx Newsroom`},{name:`description`,content:`GroundWorx press releases, company boilerplate, brand assets, and media contact for journalists covering autonomous soil intelligence and the GAIN platform.`},{property:`og:title`,content:`GroundWorx Press & Media`},{property:`og:description`,content:`Press releases, company boilerplate, brand assets, and media contact.`},{property:`og:type`,content:`website`},{name:`twitter:card`,content:`summary_large_image`}]}),component:xs(()=>bC(()=>import(`./press.index-CsoEmxfl.js`),__vite__mapDeps([44,1,2,10,22,19,7])),`component`)}),KC=ys(`/press/$slug`)({staticData:{sitemap:!0},loader:({params:e})=>{let t=zC.find(t=>t.slug===e.slug&&t.kind===`press`);if(!t)throw N();return{post:t}},head:({loaderData:e})=>{if(!e)return{meta:[{title:`Release not found | GroundWorx`},{name:`robots`,content:`noindex`}]};let{post:t}=e;return{meta:[{title:`${t.title} | GroundWorx Press`},{name:`description`,content:t.excerpt},{property:`og:title`,content:t.title},{property:`og:description`,content:t.excerpt},{property:`og:type`,content:`article`},{name:`twitter:card`,content:`summary_large_image`}]}},component:xs(()=>bC(()=>import(`./press._slug-Bh4vwkIW.js`),__vite__mapDeps([45,1,2,21,19,4])),`component`)}),qC=ys(`/product/$handle`)({staticData:{sitemap:!1},head:()=>({meta:[{title:`Product | GroundWorx Shop`},{name:`description`,content:`GroundWorx hardware and field tools, available to order direct.`},{property:`og:title`,content:`GroundWorx Shop`},{property:`og:description`,content:`GroundWorx hardware and field tools, available to order direct.`},{property:`og:type`,content:`website`},{name:`twitter:card`,content:`summary_large_image`}]}),component:xs(()=>bC(()=>import(`./product._handle-DJChkUeX.js`),__vite__mapDeps([46,1,2,38,21])),`component`)}),JC=ys(`/solutions/`)({staticData:{sitemap:!0},head:()=>({meta:[{title:`Solutions | Golf, Sports, Campus, Commercial, Ag & Fire Safety`},{name:`description`,content:`GroundWorx intelligence for golf courses, sports fields, schools and universities, commercial properties, production agriculture, and wildfire prevention.`},{property:`og:title`,content:`GroundWorx Solutions by Property Type`},{property:`og:description`,content:`Six property types, one source of truth for irrigation, turf health, and fire safety decisions.`},{property:`og:type`,content:`website`},{name:`twitter:card`,content:`summary_large_image`}]}),component:xs(()=>bC(()=>import(`./solutions--MSLr2eK.js`),__vite__mapDeps([47,1,2,10,25,16])),`component`)}),YC=ys(`/solutions/$slug`)({staticData:{sitemap:!0},loader:({params:e})=>{let t=fS.find(t=>t.slug===e.slug);
133if(!t)throw N();return{segment:t}},head:({loaderData:e})=>{let t=e?.segment,n=t?`${t.name} | GroundWorx Soil Intelligence`:`Solutions | GroundWorx`,r=t?.summary.slice(0,155)??`GroundWorx soil intelligence by property type.`;return{meta:[{title:n},{name:`description`,content:r},{property:`og:title`,content:n},{property:`og:description`,content:r},{property:`og:type`,content:`website`},{name:`twitter:card`,content:`summary_large_image`}]}},errorComponent:xs(()=>bC(()=>import(`./_slug-wW0k4awX.js`),__vite__mapDeps([48,1,2])),`errorComponent`),notFoundComponent:xs(()=>bC(()=>import(`./_slug-BClnJ-Gm.js`),__vite__mapDeps([49,1,2])),`notFoundComponent`),component:xs(()=>bC(()=>import(`./_slug-hO02CA0w.js`),__vite__mapDeps([50,1,2,10,25,18,12,13,19,15,32])),`component`)}),XC=xC.update({id:`/`,path:`/`,getParentRoute:()=>mC}),ZC=SC.update({id:`/about`,path:`/about`,getParentRoute:()=>mC}),QC=CC.update({id:`/advisor`,path:`/advisor`,getParentRoute:()=>mC}),$C=wC.update({id:`/case-studies`,path:`/case-studies`,getParentRoute:()=>mC}),ew=TC.update({id:`/contact`,path:`/contact`,getParentRoute:()=>mC}),tw=EC.update({id:`/deck-templates`,path:`/deck-templates`,getParentRoute:()=>mC}),nw=DC.update({id:`/gain`,path:`/gain`,getParentRoute:()=>mC}),rw=OC.update({id:`/invest`,path:`/invest`,getParentRoute:()=>mC}),iw=kC.update({id:`/legal`,path:`/legal`,getParentRoute:()=>mC}),aw=AC.update({id:`/news`,path:`/news`,getParentRoute:()=>mC}),ow=jC.update({id:`/platform`,path:`/platform`,getParentRoute:()=>mC}),sw=MC.update({id:`/press`,path:`/press`,getParentRoute:()=>mC}),cw=NC.update({id:`/privacy`,path:`/privacy`,getParentRoute:()=>mC}),lw=PC.update({id:`/resources`,path:`/resources`,getParentRoute:()=>mC}),uw=FC.update({id:`/shop`,path:`/shop`,getParentRoute:()=>mC}),dw=IC.update({id:`/sitemap.xml`,path:`/sitemap.xml`,getParentRoute:()=>mC}),fw=LC.update({id:`/testimonials`,path:`/testimonials`,getParentRoute:()=>mC}),pw=RC.update({id:`/blog/`,path:`/blog/`,getParentRoute:()=>mC}),mw=HC.update({id:`/blog/$slug`,path:`/blog/$slug`,getParentRoute:()=>mC}),hw=UC.update({id:`/`,path:`/`,getParentRoute:()=>rw}),gw=WC.update({id:`/contact`,path:`/contact`,getParentRoute:()=>rw}),_w=GC.update({id:`/`,path:`/`,getParentRoute:()=>sw}),vw=KC.update({id:`/$slug`,path:`/$slug`,getParentRoute:()=>sw}),yw=qC.update({id:`/product/$handle`,path:`/product/$handle`,getParentRoute:()=>mC}),bw=JC.update({id:`/solutions/`,path:`/solutions/`,getParentRoute:()=>mC}),xw=YC.update({id:`/solutions/$slug`,path:`/solutions/$slug`,getParentRoute:()=>mC}),Sw={InvestContactRoute:gw,InvestIndexRoute:hw},Cw=rw._addFileChildren(Sw),ww={PressSlugRoute:vw,PressIndexRoute:_w},Tw={IndexRoute:XC,AboutRoute:ZC,AdvisorRoute:QC,CaseStudiesRoute:$C,ContactRoute:ew,DeckTemplatesRoute:tw,GainRoute:nw,InvestRoute:Cw,LegalRoute:iw,NewsRoute:aw,PlatformRoute:ow,PressRoute:sw._addFileChildren(ww),PrivacyRoute:cw,ResourcesRoute:lw,ShopRoute:uw,SitemapDotxmlRoute:dw,TestimonialsRoute:fw,BlogSlugRoute:mw,ProductHandleRoute:yw,SolutionsSlugRoute:xw,BlogIndexRoute:pw,SolutionsIndexRoute:bw},Ew=mC._addFileChildren(Tw),Dw=()=>Ls({routeTree:Ew,context:{queryClient:new dh},scrollRestoration:!0,defaultPreloadStaleTime:0});async function Ow(){let e=await Dw(),t;if(um){let n=await um.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(Ao),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:``,serializationAdapters:t}),e.stores.matchesId.get().length||await No(e),e}var kw=Ow;async function Aw(){let e=await kw();return window.$_TSR?.h(),e}var jw;function Mw(){return jw||=Aw(),(0,V.jsx)(Fo,{promise:jw,children:e=>(0,V.jsx)(Bs,{router:e})})}var Nw=Se();(0,B.startTransition)(()=>{(0,Nw.hydrateRoot)(document,(0,V.jsx)(B.StrictMode,{children:(0,V.jsx)(Mw,{})}))});export{jh as $,Ex as A,bv as B,SS as C,Te as Ct,Zx as D,rS as E,sx as F,H_ as G,rv as H,Xb as I,b_ as J,R_ as K,Jb as L,Hb as M,lx as N,Yx as O,ex as P,Fh as Q,ax as R,mS as S,je as St,bS as T,Q_ as U,fv as V,X_ as W,Vh as X,p_ as Y,Ih as Z,xS as _,fm as _t,VC as a,Km as at,TS as b,os as bt,YS as c,ym as ct,_S as d,Sm as dt,Dh as et,gS as f,xm as ft,yS as g,mm as gt,pS as h,bm as ht,HC as i,rh as it,Ox as j,Dx as k,hS as l,_m as lt,CS as m,Bm as mt,qC as n,wh as nt,BC as o,Um as ot,vS as p,Am as pt,C_ as q,KC as r,ph as rt,TC as
133s,Hm as st,YC as t,Th as tt,lS as u,Fm as ut,wS as v,dm as vt,fS as w,uS as x,ko as xt,ES as y,Ms as yt,sy as z};
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.