vendor: 17,707 bytes, lines 1-9
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/routes-wb6XF7ud.js","assets/tslib.es6-ClpB-RwH.js","assets/button-BgNuqtSz.js","assets/react-dom-DUYEx3cC.js","assets/AmbientBackground-BrKxL7WJ.js","assets/CaseStudiesSection-Wwu6Sflo.js","assets/ConcentricSquareRings-CZG32H7c.js","assets/InteractiveGradientBackground-CKx9NJpS.js","assets/leisure-networks-CVftYChp.js","assets/accordion-Bd77YSPD.js","assets/label-rc-sr41q.js","assets/dist-C6RfN2Vc.js","assets/about-DJiIoNrV.js","assets/PartnersCarousel-DFzSTBMC.js","assets/admin-DngOJE5n.js","assets/client-B-mtIYPF.js","assets/card-BY_Gkw5e.js","assets/ai-radar-DB9ft3i5.js","assets/AIRadar-D_zsRDzW.js","assets/ErrorState-ThSlTKP6.js","assets/ai-radar-landing-CAnivbMj.js","assets/ai-search-audit-DB9ft3i5.js","assets/ai-search-optimisation-GsfvpB7B.js","assets/AISearchOptimisation-CglMJHtB.js","assets/arrow-right-CKek_QTQ.js","assets/check-BgowgSak.js","assets/target-D0ohJtml.js","assets/layers-BOrkEd2x.js","assets/ai-visibility-baseline-DlLmyNUs.js","assets/auth-DDI9VVru.js","assets/booking-KdJjqMVN.js","assets/booking_confirmation-CZ3TiH80.js","assets/cdn-W-3s3G2l.js","assets/contact-BI0Cfr8d.js","assets/email-preview-4ASSsc8R.js","assets/google-ads-management-jSzdDdj-.js","assets/chart-column-BddMLE0a.js","assets/landingpage-CtZaCmDB.js","assets/lp-DP8e6x4Z.js","assets/lp-Bh5rwVPq.css","assets/privacy-CO055G_E.js","assets/terms-B7jgxKhQ.js","assets/thank-you-CW-GK_3w.js","assets/case-studies-CHHvx3Fq.js","assets/archistar-koZ54B8_.js","assets/hero-vertical-line-BOR5WaPT.js","assets/be-fit-foods-BtTRkTgs.js","assets/dcc-coffee-Ssfs-kWJ.js","assets/drummond-golf-DShUNTAk.js","assets/go-boat-BdxFZ9X8.js","assets/instant-scripts-CrVk_XmQ.js","assets/instant-windscreens-G281WsMF.js","assets/natloans-DGo4Cr1T.js","assets/pay-com-au-BUDbMH9R.js","assets/point-hacks-e4mgBpDo.js","assets/return-to-work-sa-B5pZhxyv.js","assets/smile-solutions-LdEH-amZ.js","assets/ai-development-Ce3zm0Lr.js","assets/file-text-n5bT5mab.js","assets/ai-search-GsfvpB7B.js","assets/seo-BMlgHpLw.js","assets/web-development-Bjeu1Zar.js"])))=>i.map(i=>d[i]); 2import{a as e,c as t,d as n,i as r,l as i,o as a,r as o,s,t as c,u as l}from"./tslib.es6-ClpB-RwH.js";import{t as u}from"./react-dom-DUYEx3cC.js";import{$ as d,A as f,B as p,C as m,D as h,E as g,F as _,G as v,H as y,I as b,J as x,K as S,L as C,M as w,N as T,O as E,P as D,Q as O,R as k,S as ee,T as te,U as ne,V as re,W as A,X as j,Y as M,Z as ie,_ as ae,a as oe,b as se,c as ce,d as N,et as le,f as ue,g as de,h as P,i as fe,j as pe,k as me,l as he,m as ge,n as _e,o as ve,p as ye,q as be,r as xe,s as Se,t as Ce,u as we,v as Te,w as Ee,x as De,y as Oe,z as ke}from"./button-BgNuqtSz.js";import{c as Ae,d as je,f as Me,i as Ne,l as Pe,m as Fe,n as Ie,o as Le,p as Re,r as ze,s as Be,t as Ve,u as He}from"./label-rc-sr41q.js";var Ue=s((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,O());else{var t=n(l);t!==null&&te(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=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&&E());){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&&te(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,ee=k.port2;k.port1.onmessage=D,O=function(){ee.postMessage(null)}}else O=function(){_(D,0)};function te(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,te(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),We=s(((e,t)=>{t.exports=Ue()})),Ge=s((e=>{var t=We(),n=a(),r=u();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 o(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 d(e){if(s(e)!==e)throw Error(i(188))}function f(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 d(a),e;if(o===r)return d(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 p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var m=Object.assign,h=Symbol.for(`react.element`),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),S=Symbol.for(`react.context`),C=Symbol.for(`react.forward_ref`),w=Symbol.for(`react.suspense`),T=Symbol.for(`react.suspense_list`),E=Symbol.for(`react.memo`),D=Symbol.for(`react.lazy`),O=Symbol.for(`react.activity`),k=Symbol.for(`react.memo_cache_sentinel`),ee=Symbol.iterator;function te(e){return typeof e!=`object`||!e?null:(e=ee&&e[ee]||e[`@@iterator`],typeof e==`function`?e:null)}var ne=Symbol.for(`react.client.reference`);function re(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ne?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case w:return`Suspense`;case T:return`SuspenseList`;case O:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case E:return t=e.displayName||null,t===null?re(e.type)||`Memo`:t;case D:t=e._payload,e=e._init;try{return re(e(t))}catch{}}return null}var A=Array.isArray,j=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},ae=[],oe=-1;function se(e){return{current:e}}function ce(e){0>oe||(e.current=ae[oe],ae[oe]=null,oe--)}function N(e,t){oe++,ae[oe]=e.current,e.current=t}var le=se(null),ue=se(null),de=se(null),P=se(null);function fe(e,t){switch(N(de,t),N(ue,e),N(le,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Gd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Gd(t),e=Kd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ce(le),N(le,e)}function pe(){ce(le),ce(ue),ce(de)}function me(e){e.memoizedState!==null&&N(P,e);var t=le.current,n=Kd(t,e.type);t!==n&&(N(ue,e),N(le,n))}function he(e){ue.current===e&&(ce(le),ce(ue)),P.current===e&&(ce(P),np._currentValue=ie)}var ge,_e;function ve(e){if(ge===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ge=t&&t[1]||``,_e=-1<e.stack.indexOf(` 3 at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return` 4`+ge+e+_e}var ye=!1;function be(e,t){if(!e||ye)return``;ye=!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{ye=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ve(n):``}function xe(e,t){switch(e.tag){case 26:case 27:case 5:return ve(e.type);case 16:return ve(`Lazy`);case 13:return e.child!==t&&t!==null?ve(`Suspense Fallback`):ve(`Suspense`);case 19:return ve(`SuspenseList`);case 0:case 15:return be(e.type,!1);case 11:return be(e.type.render,!1);case 1:return be(e.type,!0);case 31:return ve(`Activity`);default:return``}}function Se(e){try{var t=``,n=null;do t+=xe(e,n),n=e,e=e.return;while(e);return t}catch(e){return` 8Error generating stack: `+e.message+` 9`+e.stack}}var Ce=Object.prototype.hasOwnProperty,we=t.unstable_scheduleCallback,Te=t.unstable_cancelCallback,Ee=t.unstable_shouldYield,De=t.unstable_requestPaint,Oe=t.unstable_now,ke=t.unstable_getCurrentPriorityLevel,Ae=t.unstable_ImmediatePriority,je=t.unstable_UserBlockingPriority,Me=t.unstable_NormalPriority,Ne=t.unstable_LowPriority,Pe=t.unstable_IdlePriority,Fe=t.log,Ie=t.unstable_setDisableYieldValue,Le=null,Re=null;function ze(e){if(typeof Fe==`function`&&Ie(e),Re&&typeof Re.setStrictMode==`function`)try{Re.setStrictMode(Le,e)}catch{}}var Be=Math.clz32?Math.clz32:Ue,Ve=Math.log,He=Math.LN2;function Ue(e){return e>>>=0,e===0?32:31-(Ve(e)/He|0)|0}var Ge=256,Ke=262144,qe=4194304;function Je(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 Ye(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=Je(n))):i=Je(o):i=Je(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Je(n))):i=Je(o)):i=Je(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 Xe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ze(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 Qe(){var e=qe;return qe<<=1,!(qe&62914560)&&(qe=4194304),e}function $e(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function et(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function tt(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-Be(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&&nt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function nt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Be(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function rt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Be(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function it(e,t){var n=t&-t;return n=n&42?1:at(n),(n&(e.suspendedLanes|t))===0?n:0}function at(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 ot(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function st(){var e=M.p;return e===0?(e=window.event,e===void 0?32:vp(e.type)):e}function ct(e,t){var n=M.p;try{return M.p=e,t()}finally{M.p=n}}var lt=Math.random().toString(36).slice(2),ut=`__reactFiber$`+lt,dt=`__reactProps$`+lt,ft=`__reactContainer$`+lt,pt=`__reactEvents$`+lt,mt=`__reactListeners$`+lt,ht=`__reactHandles$`+lt,gt=`__reactResources$`+lt,_t=`__reactMarker$`+lt;function vt(e){delete e[ut],delete e[dt],delete e[pt],delete e[mt],delete e[ht]}function yt(e){var t=e[ut];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ft]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hf(e);e!==null;){if(n=e[ut])return n;e=hf(e)}return t}e=n,n=e.parentNode}return null}function bt(e){if(e=e[ut]||e[ft]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function xt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function St(e){var t=e[gt];return t||=e[gt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Ct(e){e[_t]=!0}var wt=new Set,Tt={};function Et(e,t){Dt(e,t),Dt(e+`Capture`,t)}function Dt(e,t){for(Tt[e]=t,e=0;e<t.length;e++)wt.add(t[e])}var Ot=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]*$`),kt={},At={};function jt(e){return Ce.call(At,e)?!0:Ce.call(kt,e)?!1:Ot.test(e)?At[e]=!0:(kt[e]=!0,!1)}function Mt(e,t,n){if(jt(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 Nt(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 Pt(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 Ft(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function It(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Lt(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 Rt(e){if(!e._valueTracker){var t=It(e)?`checked`:`value`;e._valueTracker=Lt(e,t,``+e[t])}}function zt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=It(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function Bt(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 Vt=/[\n"\\]/g;function Ht(e){return e.replace(Vt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Ut(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=``+Ft(t)):e.value!==``+Ft(t)&&(e.value=``+Ft(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Gt(e,o,Ft(n)):Gt(e,o,Ft(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=``+Ft(s):e.removeAttribute(`name`)}function Wt(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)){Rt(e);return}n=n==null?``:``+Ft(n),t=t==null?n:``+Ft(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),Rt(e)}function Gt(e,t,n){t===`number`&&Bt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Kt(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=``+Ft(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function qt(e,t,n){if(t!=null&&(t=``+Ft(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Ft(n)}function Jt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(A(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}
vendor: 158,587 bytes, lines 9-10
9n=Ft(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Rt(e)}function Yt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xt=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 Zt(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||Xt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Qt(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&&Zt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Zt(e,o,t[o])}function $t(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 en=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`]]),tn=/^[\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 nn(e){return tn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function rn(){}var an=null;function on(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sn=null,cn=null;function ln(e){var t=bt(e);if(t&&(e=t.stateNode)){var n=e[dt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Ut(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="`+Ht(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[dt]||null;if(!a)throw Error(i(90));Ut(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&&zt(r)}break a;case`textarea`:qt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Kt(e,!!n.multiple,t,!1)}}}var un=!1;function dn(e,t,n){if(un)return e(t,n);un=!0;try{return e(t)}finally{if(un=!1,(sn!==null||cn!==null)&&(Cu(),sn&&(t=sn,e=cn,cn=sn=null,ln(t),e)))for(t=0;t<e.length;t++)ln(e[t])}}function fn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[dt]||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 pn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),mn=!1;if(pn)try{var hn={};Object.defineProperty(hn,"passive",{get:function(){mn=!0}}),window.addEventListener(`test`,hn,hn),window.removeEventListener(`test`,hn,hn)}catch{mn=!1}var gn=null,_n=null,vn=null;function yn(){if(vn)return vn;var e,t=_n,n=t.length,r,i=`value`in gn?gn.value:gn.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 vn=i.slice(e,1<r?1-r:void 0)}function bn(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 xn(){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)?xn:Sn,this.isPropagationStopped=Sn,this}return m(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=xn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=xn)},persist:function(){},isPersistent:xn}),t}var wn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tn=Cn(wn),En=m({},wn,{view:0,detail:0}),Dn=Cn(En),On,kn,An,jn=m({},En,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hn,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!==An&&(An&&e.type===`mousemove`?(On=e.screenX-An.screenX,kn=e.screenY-An.screenY):kn=On=0,An=e),On)},movementY:function(e){return`movementY`in e?e.movementY:kn}}),Mn=Cn(jn),Nn=Cn(m({},jn,{dataTransfer:0})),Pn=Cn(m({},En,{relatedTarget:0})),Fn=Cn(m({},wn,{animationName:0,elapsedTime:0,pseudoElement:0})),In=Cn(m({},wn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Ln=Cn(m({},wn,{data:0})),Rn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},zn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Bn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Vn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Bn[e])?!!t[e]:!1}function Hn(){return Vn}var Un=Cn(m({},En,{key:function(e){if(e.key){var t=Rn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=bn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?zn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hn,charCode:function(e){return e.type===`keypress`?bn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?bn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Wn=Cn(m({},jn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Gn=Cn(m({},En,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hn})),Kn=Cn(m({},wn,{propertyName:0,elapsedTime:0,pseudoElement:0})),qn=Cn(m({},jn,{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})),Jn=Cn(m({},wn,{newState:0,oldState:0})),Yn=[9,13,27,32],Xn=pn&&`CompositionEvent`in window,Zn=null;pn&&`documentMode`in document&&(Zn=document.documentMode);var F=pn&&`TextEvent`in window&&!Zn,Qn=pn&&(!Xn||Zn&&8<Zn&&11>=Zn),$n=` `,er=!1;function tr(e,t){switch(e){case`keyup`:return Yn.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`||!Xn&&tr(e,t)?(e=yn(),vn=_n=gn=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){sn?cn?cn.push(r):cn=[r]:sn=r,t=kd(t,`onChange`),0<t.length&&(n=new Tn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var lr=null,ur=null;function dr(e){Sd(e,0)}function fr(e){if(zt(xt(e)))return e}function pr(e,t){if(e===`change`)return t}var mr=!1;if(pn){var hr;if(pn){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,on(e)),dn(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(!Ce.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=Bt(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=Bt(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=pn&&`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!==Bt(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,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fr&&Er(Fr,r)||(Fr=r,r=kd(Pr,`onSelect`),0<r.length&&(t=new Tn(`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={};pn&&(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),Et(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-Be(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<mu)throw mu=0,hu=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,le.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case O:return e=di(31,n,t,a),e.elementType=O,e.lanes=o,e;case v:return gi(n.children,a,o,t);case y:s=8,a|=24;break;case b:return e=di(12,n,t,a|2),e.elementType=b,e.lanes=o,e;case w:return e=di(13,n,t,a),e.elementType=w,e.lanes=o,e;case T:return e=di(19,n,t,a),e.elementType=T,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case S:s=10;break a;case x:s=9;break a;case C:s=11;break a;case E:s=14;break a;case D: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:Se(t)},bi.set(e,t),t):n}return{value:e,source:t,stack:Se(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-Be(r)-1;r&=~(1<<i),n+=1;var a=32-Be(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ki=1<<32-Be(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,I=!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[ut]=e,t[dt]=r,n){case`dialog`:Y(`cancel`,t),Y(`close`,t);break;case`iframe`:case`object`:case`embed`:Y(`load`,t);break;case`video`:case`audio`:for(n=0;n<bd.length;n++)Y(bd[n],t);break;case`source`:Y(`error`,t);break;case`img`:case`image`:case`link`:Y(`error`,t),Y(`load`,t);break;case`details`:Y(`toggle`,t);break;case`input`:Y(`invalid`,t),Wt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Y(`invalid`,t);break;case`textarea`:Y(`invalid`,t),Jt(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||Fd(t.textContent,n)?(r.popover!=null&&(Y(`beforetoggle`,t),Y(`toggle`,t)),r.onScroll!=null&&Y(`scroll`,t),r.onScrollEnd!=null&&Y(`scrollend`,t),r.onClick!=null&&(t.onclick=rn),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(!I)return Ui(e),I=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||qd(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=mf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Li=mf(e)}else t===27?(t=Li,tf(e.type)?(e=pf,pf=null,Li=e):Li=t):Li=Ii?ff(e.stateNode.nextSibling):null;return!0}function Gi(){Li=Ii=null,I=!1}function Ki(){var e=Ri;return e!==null&&(tu===null?tu=e:tu.push.apply(tu,e),Ri=null),e}function qi(e){Ri===null?Ri=[e]:Ri.push(e)}var Ji=se(null),Yi=null,Xi=null;function Zi(e,t,n){N(Ji,t._currentValue),t._currentValue=n}function Qi(e){e._currentValue=Ji.current,ce(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:S,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=md(),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=j.S;j.S=function(e,t){ru=Oe(),typeof t==`object`&&t&&typeof t.then==`function`&&_a(e,t),ba!==null&&ba(e,t)};var xa=se(null);function Sa(){var e=xa.current;return e===null?Hl.pooledCache:e}function Ca(e,t){t===null?N(xa,xa.current):N(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(rn,rn),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(rn,rn);else{if(e=Hl,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 Fa=null,Ia=0;function La(e){var t=Ia;return Ia+=1,Fa===null&&(Fa=[]),Aa(Fa,e,t)}function Ra(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function za(e,t){throw t.$$typeof===h?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ba(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===v?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===D&&ja(i)===t.type)?(t=a(t,n.props),Ra(t,n),t.return=e,t):(t=hi(n.type,n.key,n.props,null,e.mode,r),Ra(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 g:return n=hi(t.type,t.key,t.props,null,e.mode,n),Ra(n,t),n.return=e,n;case _:return t=yi(t,e.mode,n),t.return=e,t;case D:return t=ja(t),f(e,t,n)}if(A(t)||te(t))return t=gi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,La(t),n);if(t.$$typeof===S)return f(e,aa(e,t),n);za(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case g:return n.key===i?l(e,t,n,r):null;case _:return n.key===i?u(e,t,n,r):null;case D:return n=ja(n),p(e,t,n,r)}if(A(n)||te(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,La(n),r);if(n.$$typeof===S)return p(e,t,aa(e,n),r);za(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case g:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case _:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case D:return r=ja(r),m(e,t,n,r,i)}if(A(r)||te(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,La(r),i);if(r.$$typeof===S)return m(e,t,n,aa(t,r),i);za(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),I&&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 I&&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)}),I&&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),I&&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 I&&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)}),I&&ji(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===v&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case g:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===v){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===D&&ja(l)===r.type){n(e,r.sibling),c=a(r,o.props),Ra(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===v?(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),Ra(c,o),c.return=e,e=c)}return s(e);case _:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}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 D:return o=ja(o),b(e,r,o,c)}if(A(o))return h(e,r,o,c);if(te(o)){if(l=te(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,La(o),c);if(o.$$typeof===S)return b(e,r,aa(e,o),c);za(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{Ia=0;var i=b(e,t,n,r);return Fa=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 Va=Ba(!0),Ha=Ba(!1),Ua=!1;function Wa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ga(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 Ka(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function qa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&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 Ja(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,rt(e,n)}}function Ya(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 Xa=!1;function Za(){if(Xa){var e=ga;if(e!==null)throw e}}function Qa(e,t,n,r){Xa=!1;var i=e.updateQueue;Ua=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(G&f)===f:(r&f)===f){f!==0&&f===ha&&(Xa=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=m({},d,f);break a;case 2:Ua=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Yl|=o,e.lanes=o,e.memoizedState=d}}function $a(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function eo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)$a(n[e],t)}var to=se(null),no=se(0);function ro(e,t){e=ql,N(no,e),N(to,t),ql=e|t.baseLanes}function io(){N(no,ql),N(to,to.current)}function ao(){ql=no.current,ce(to),ce(no)}var oo=se(null),so=null;function co(e){var t=e.alternate;N(mo,mo.current&1),N(oo,e),so===null&&(t===null||to.current!==null||t.memoizedState!==null)&&(so=e)}function lo(e){N(mo,mo.current),N(oo,e),so===null&&(so=e)}function uo(e){e.tag===22?(N(mo,mo.current),N(oo,e),so===null&&(so=e)):fo(e)}function fo(){N(mo,mo.current),N(oo,oo.current)}function po(e){ce(oo),so===e&&(so=null),ce(mo)}var mo=se(0);function ho(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||lf(n)||uf(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 go=0,L=null,R=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 go=a,L=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?V:Hs,bo=!1,a=n(r,i),bo=!1,yo&&(a=ko(t,n,r,i)),Oo(e),a}function Oo(e){j.H=Vs;var t=R!==null&&R.next!==null;if(go=0,_o=R=L=null,vo=!1,So=0,Co=null,t)throw Error(i(300));e===null||ic||(e=e.dependencies,e!==null&&na(e)&&(ic=!0))}function ko(e,t,n,r){L=e;var a=0;do{if(yo&&(Co=null),So=0,yo=!1,25<=a)throw Error(i(301));if(a+=1,_o=R=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}j.H=H,o=t(n,r)}while(yo);return o}function Ao(){var e=j.H,t=e.useState()[0];return t=typeof t.then==`function`?Lo(t):t,e=e.useState()[0],(R===null?null:R.memoizedState)!==e&&(L.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}go=0,_o=R=L=null,yo=!1,So=xo=0,Co=null}function Po(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _o===null?L.memoizedState=_o=e:_o=_o.next=e,_o}function Fo(){if(R===null){var e=L.alternate;e=e===null?null:e.memoizedState}else e=R.next;var t=_o===null?L.memoizedState:_o.next;if(t!==null)_o=t,R=e;else{if(e===null)throw L.alternate===null?Error(i(467)):Error(i(310));R=e,e={memoizedState:R.memoizedState,baseState:R.baseState,baseQueue:R.baseQueue,queue:R.queue,next:null},_o===null?L.memoizedState=_o=e:_o=_o.next=e}return _o}function Io(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Lo(e){var t=So;return So+=1,Co===null&&(Co=[]),e=Aa(Co,e,t),t=L,(_o===null?t.memoizedState:_o.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?V:Hs),e}function Ro(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Lo(e);if(e.$$typeof===S)return ia(e)}throw Error(i(438,String(e)))}function zo(e){var t=null,n=L.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=L.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Io(),L.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=k;return t.index++,n}function Bo(e,t){return typeof t==`function`?t(e):t}function Vo(e){return Ho(Fo(),R,e)}function Ho(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?(go&f)===f:(G&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((go&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,L.lanes|=p,Yl|=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,L.lanes|=f,Yl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Tr(o,e.memoizedState)&&(ic=!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 Uo(e){var t=Fo(),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)||(ic=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Wo(e,t,n){var r=L,a=Fo(),o=I;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Tr((R||a).memoizedState,n);if(s&&(a.memoizedState=n,ic=!0),a=a.queue,ps(qo.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},Ko.bind(null,r,a,n,t),null),Hl===null)throw Error(i(349));o||go&127||Go(r,t,n)}return n}function Go(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=L.updateQueue,t===null?(t=Io(),L.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ko(e,t,n,r){t.value=n,t.getSnapshot=r,Jo(t)&&Yo(e)}function qo(e,t,n){return n(function(){Jo(t)&&Yo(e)})}function Jo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tr(e,n)}catch{return!0}}function Yo(e){var t=oi(e,2);t!==null&&vu(t,e,2)}function Xo(e){var t=Po();if(typeof e==`function`){var n=e;if(e=n(),bo){ze(!0);try{n()}finally{ze(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:e},t}function Zo(e,t,n,r){return e.baseState=n,Ho(e,R,typeof r==`function`?r:Bo)}function Qo(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)}};j.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,$o(t,o)):(o.next=n.next,t.pending=n.next=o)}}function $o(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=j.T,o={};j.T=o;try{var s=n(i,r),c=j.S;c!==null&&c(o,s),es(e,t,s)}catch(n){ns(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),j.T=a}}else try{a=n(i,r),es(e,t,a)}catch(n){ns(e,t,n)}}function es(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){ts(e,t,n)},function(n){return ns(e,t,n)}):ts(e,t,n)}function ts(e,t,n){t.status=`fulfilled`,t.value=n,rs(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,$o(e,n)))}function ns(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,rs(t),t=t.next;while(t!==r)}e.action=null}function rs(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function is(e,t){return t}function as(e,t){if(I){var n=Hl.formState;if(n!==null){a:{var r=L;if(I){if(Li){b:{for(var i=Li,a=zi;i.nodeType!==8;){if(!a){i=null;break b}if(i=ff(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Li=ff(i.nextSibling),r=i.data===`F!`;break a}}Vi(r)}r=!1}r&&(t=n[0])}}return n=Po(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:is,lastRenderedState:t},n.queue=r,n=Fs.bind(null,L,r),r.dispatch=n,r=Xo(!1),a=Ls.bind(null,L,!1,r.queue),r=Po(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Qo.bind(null,L,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function os(e){return z(Fo(),R,e)}function z(e,t,n){if(t=Ho(e,t,is)[0],e=Vo(Bo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Lo(t)}catch(e){throw e===Ta?Da:e}else r=t;t=Fo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(L.flags|=2048,cs(9,{destroy:void 0},B.bind(null,i,n),null)),[r,a,e]}function B(e,t){e.action=t}function ss(e){var t=Fo(),n=R;if(n!==null)return z(t,n,e);Fo(),t=t.memoizedState,n=Fo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function cs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=L.updateQueue,t===null&&(t=Io(),L.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ls(){return Fo().memoizedState}function us(e,t,n,r){var i=Po();L.flags|=e,i.memoizedState=cs(1|t,{destroy:void 0},n,r===void 0?null:r)}function ds(e,t,n,r){var i=Fo();r=r===void 0?null:r;var a=i.memoizedState.inst;R!==null&&r!==null&&Eo(r,R.memoizedState.deps)?i.memoizedState=cs(t,a,n,r):(L.flags|=e,i.memoizedState=cs(1|t,a,n,r))}function fs(e,t){us(8390656,8,e,t)}function ps(e,t){ds(2048,8,e,t)}function ms(e){L.flags|=4;var t=L.updateQueue;if(t===null)t=Io(),L.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function hs(e){var t=Fo().memoizedState;return ms({ref:t,nextImpl:e}),function(){if(U&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=Fo();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=Fo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Eo(t,r[1]))return r[0];if(r=e(),bo){ze(!0);try{e()}finally{ze(!1)}}return n.memoizedState=[r,t],r}function Cs(e,t,n){return n===void 0||go&1073741824&&!(G&261930)?e.memoizedState=t:(e.memoizedState=n,e=_u(),L.lanes|=e,Yl|=e,n)}function ws(e,t,n,r){return Tr(n,t)?n:to.current===null?!(go&42)||go&1073741824&&!(G&261930)?(ic=!0,e.memoizedState=n):(e=_u(),L.lanes|=e,Yl|=e,t):(e=Cs(e,n,r),Tr(e,t)||(ic=!0),e)}function Ts(e,t,n,r,i){var a=M.p;M.p=a!==0&&8>a?a:8;var o=j.T,s={};j.T=s,Ls(e,!1,t,n);try{var c=i(),l=j.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Is(e,t,ya(c,r),gu(e)):Is(e,t,r,gu(e))}catch(n){Is(e,t,{then:function(){},status:`rejected`,reason:n},gu())}finally{M.p=a,o!==null&&s.types!==null&&(o.types=s.types),j.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,ie,n===null?Es:function(){return ks(e),n(r)})}function Os(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:ie},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,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,{},gu())}function As(){return ia(np)}function js(){return Fo().memoizedState}function Ms(){return Fo().memoizedState}function Ns(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=gu();e=Ka(n);var r=qa(t,e,n);r!==null&&(vu(r,t,n),Ja(r,t,n)),t={cache:da()},e.payload=t;return}t=t.return}}function Ps(e,t,n){var r=gu();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&&(vu(n,e,r),Bs(n,t,r)))}function Fs(e,t,n){Is(e,t,n,gu())}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),Hl===null&&ri(),!1}catch{}if(n=ai(e,t,i,r),n!==null)return vu(n,e,r),Bs(n,t,r),!0}return!1}function Ls(e,t,n,r){if(r={lane:2,revertLane:md(),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&&vu(t,e,2)}function Rs(e){var t=e.alternate;return e===L||t!==null&&t===L}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,rt(e,n)}}var Vs={readContext:ia,use:Ro,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 V={readContext:ia,use:Ro,useCallback:function(e,t){return Po().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=Po();t=t===void 0?null:t;var r=e();if(bo){ze(!0);try{e()}finally{ze(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Po();if(n!==void 0){var i=n(t);if(bo){ze(!0);try{n(t)}finally{ze(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ps.bind(null,L,e),[r.memoizedState,e]},useRef:function(e){var t=Po();return e={current:e},t.memoizedState=e},useState:function(e){e=Xo(e);var t=e.queue,n=Fs.bind(null,L,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:bs,useDeferredValue:function(e,t){return Cs(Po(),e,t)},useTransition:function(){var e=Xo(!1);return e=Ts.bind(null,L,e.queue,!0,!1),Po().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=L,a=Po();if(I){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Hl===null)throw Error(i(349));G&127||Go(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,fs(qo.bind(null,r,o,e),[e]),r.flags|=2048,cs(9,{destroy:void 0},Ko.bind(null,r,o,n,t),null),n},useId:function(){var e=Po(),t=Hl.identifierPrefix;if(I){var n=Ai,r=ki;n=(r&~(1<<32-Be(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:as,useActionState:as,useOptimistic:function(e){var t=Po();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ls.bind(null,L,!0,n),n.dispatch=t,[e,t]},useMemoCache:zo,useCacheRefresh:function(){return Po().memoizedState=Ns.bind(null,L)},useEffectEvent:function(e){var t=Po(),n={impl:e};return t.memoizedState=n,function(){if(U&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Hs={readContext:ia,use:Ro,useCallback:xs,useContext:ia,useEffect:ps,useImperativeHandle:ys,useInsertionEffect:gs,useLayoutEffect:_s,useMemo:Ss,useReducer:Vo,useRef:ls,useState:function(){return Vo(Bo)},useDebugValue:bs,useDeferredValue:function(e,t){return ws(Fo(),R.memoizedState,e,t)},useTransition:function(){var e=Vo(Bo)[0],t=Fo().memoizedState;return[typeof e==`boolean`?e:Lo(e),t]},useSyncExternalStore:Wo,useId:js,useHostTransitionStatus:As,useFormState:os,useActionState:os,useOptimistic:function(e,t){return Zo(Fo(),R,e,t)},useMemoCache:zo,useCacheRefresh:Ms};Hs.useEffectEvent=hs;var H={readContext:ia,use:Ro,useCallback:xs,useContext:ia,useEffect:ps,useImperativeHandle:ys,useInsertionEffect:gs,useLayoutEffect:_s,useMemo:Ss,useReducer:Uo,useRef:ls,useState:function(){return Uo(Bo)},useDebugValue:bs,useDeferredValue:function(e,t){var n=Fo();return R===null?Cs(n,e,t):ws(n,R.memoizedState,e,t)},useTransition:function(){var e=Uo(Bo)[0],t=Fo().memoizedState;return[typeof e==`boolean`?e:Lo(e),t]},useSyncExternalStore:Wo,useId:js,useHostTransitionStatus:As,useFormState:ss,useActionState:ss,useOptimistic:function(e,t){var n=Fo();return R===null?(n.baseState=e,[e,n.queue.dispatch]):Zo(n,R,e,t)},useMemoCache:zo,useCacheRefresh:Ms};H.useEffectEvent=hs;function Us(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:m({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ws={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=gu(),i=Ka(r);i.payload=t,n!=null&&(i.callback=n),t=qa(e,i,r),t!==null&&(vu(t,e,r),Ja(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=gu(),i=Ka(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=qa(e,i,r),t!==null&&(vu(t,e,r),Ja(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=gu(),r=Ka(n);r.tag=2,t!=null&&(r.callback=t),t=qa(e,r,n),t!==null&&(vu(t,e,n),Ja(t,e,n))}};function Gs(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 Ks(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&&Ws.enqueueReplaceState(t,t.state,null)}function qs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=m({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Js(e){$r(e)}function Ys(e){console.error(e)}function Xs(e){$r(e)}function Zs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Qs(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 $s(e,t,n){return n=Ka(n),n.tag=3,n.payload={element:null},n.callback=function(){Zs(e,t)},n}function ec(e){return e=Ka(e),e.tag=3,e}function tc(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(){Qs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Qs(t,n,r),typeof i!=`function`&&(ou===null?ou=new Set([this]):ou.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function nc(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=oo.current,n!==null){switch(n.tag){case 31:case 13:return so===null?Au():n.alternate===null&&Jl===0&&(Jl=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),Ju(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)),Ju(e,r,a)),!1}throw Error(i(435,n.tag))}return Ju(e,r,a),Au(),!1}if(I)return t=oo.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=$s(e.stateNode,r,a),Ya(e,a),Jl!==4&&(Jl=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),eu===null?eu=[o]:eu.push(o),Jl!==4&&(Jl=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=$s(n.stateNode,r,e),Ya(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`&&(ou===null||!ou.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=ec(a),tc(a,e,n,r),Ya(n,a),!1}n=n.return}while(n!==null);return!1}var rc=Error(i(461)),ic=!1;function ac(e,t,n,r){t.child=e===null?Ha(t,null,n,r):Va(t,e.child,n,r)}function oc(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&&!ic?(Mo(e,t,i),Ac(e,t,i)):(I&&s&&Ni(t),t.flags|=1,ac(e,t,r,i),t.child)}function sc(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,cc(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,!jc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Er:n,n(o,r)&&e.ref===t.ref)return Ac(e,t,i)}return t.flags|=1,e=pi(a,r),e.ref=t.ref,e.return=t,t.child=e}function cc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Er(a,r)&&e.ref===t.ref){if(ic=!1,t.pendingProps=r=a,jc(e,i))e.flags&131072&&(ic=!0);else return t.lanes=e.lanes,Ac(e,t,i)}}return gc(e,t,n,r,i)}function lc(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 dc(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?io():ro(t,a),uo(t);else return r=t.lanes=536870912,dc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ca(t,null),io(),fo(t)):(Ca(t,a.cachePool),ro(t,a),fo(t),t.memoizedState=null);return ac(e,t,i,n),t.child}function uc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function dc(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),io(),uo(t),e!==null&&ta(e,t,r,!0),t.childLanes=i,null}function fc(e,t){return t=Tc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function pc(e,t,n){return Va(t,e.child,null,n),e=fc(t,t.pendingProps),e.flags|=2,po(t),t.memoizedState=null,e}function mc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(I){if(r.mode===`hidden`)return e=fc(t,r),t.lanes=536870912,uc(null,e);if(lo(t),(e=Li)?(e=cf(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 fc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(lo(t),a){if(t.flags&256)t.flags&=-257,t=pc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(ic||ta(e,t,n,!1),a=(n&e.childLanes)!==0,ic||a){if(r=Hl,r!==null&&(s=it(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,oi(e,s),vu(r,e,s),rc;Au(),t=pc(e,t,n)}else e=o.treeContext,Li=ff(s.nextSibling),Ii=t,I=!0,Ri=null,zi=!1,e!==null&&Fi(t,e),t=fc(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 hc(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 gc(e,t,n,r,i){return ra(t),n=Do(e,t,n,r,void 0,i),r=jo(),e!==null&&!ic?(Mo(e,t,i),Ac(e,t,i)):(I&&r&&Ni(t),t.flags|=1,ac(e,t,n,i),t.child)}function _c(e,t,n,r,i,a){return ra(t),t.updateQueue=null,n=ko(t,r,n,i),Oo(e),r=jo(),e!==null&&!ic?(Mo(e,t,a),Ac(e,t,a)):(I&&r&&Ni(t),t.flags|=1,ac(e,t,n,a),t.child)}function vc(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=Ws,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Wa(t),o=n.contextType,a.context=typeof o==`object`&&o?ia(o):li,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Us(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&&Ws.enqueueReplaceState(a,a.state,null),Qa(t,r,a,i),Za(),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=qs(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)&&Ks(t,a,r,o),Ua=!1;var f=t.memoizedState;a.state=f,Qa(t,r,a,i),Za(),l=t.memoizedState,s||f!==l||Ua?(typeof d==`function`&&(Us(t,n,d,r),l=t.memoizedState),(c=Ua||Gs(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,Ga(e,t),o=t.memoizedProps,u=qs(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)&&Ks(t,a,r,c),Ua=!1,f=t.memoizedState,a.state=f,Qa(t,r,a,i),Za();var p=t.memoizedState;o!==d||f!==p||Ua||e!==null&&e.dependencies!==null&&na(e.dependencies)?(typeof s==`function`&&(Us(t,n,s,r),p=t.memoizedState),(u=Ua||Gs(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,hc(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=Va(t,e.child,null,i),t.child=Va(t,null,n,i)):ac(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Ac(e,t,i),e}function yc(e,t,n,r){return Gi(),t.flags|=256,ac(e,t,n,r),t.child}var bc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xc(e){return{baseLanes:e,cachePool:wa()}}function Sc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Ql),e}function Cc(e,t,n){var r=t.pendingProps,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(mo.current&2)),s&&(a=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(I){if(a?co(t):fo(t),(e=Li)?(e=cf(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 uf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(fo(t),a=t.mode,c=Tc({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=xc(n),r.childLanes=Sc(e,s,n),t.memoizedState=bc,uc(null,r)):(co(t),wc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(co(t),t.flags&=-257,t=Ec(e,t,n)):t.memoizedState===null?(fo(t),c=r.fallback,a=t.mode,r=Tc({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,Va(t,e.child,null,n),r=t.child,r.memoizedState=xc(n),r.childLanes=Sc(e,s,n),t.memoizedState=bc,t=uc(null,r)):(fo(t),t.child=e.child,t.flags|=128,t=null);else if(co(t),uf(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=Ec(e,t,n)}else if(ic||ta(e,t,n,!1),s=(n&e.childLanes)!==0,ic||s){if(s=Hl,s!==null&&(r=it(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,oi(e,r),vu(s,e,r),rc;lf(c)||Au(),t=Ec(e,t,n)}else lf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Li=ff(c.nextSibling),Ii=t,I=!0,Ri=null,zi=!1,e!==null&&Fi(t,e),t=wc(t,r.children),t.flags|=4096);return t}return a?(fo(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,uc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=xc(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=Sc(e,s,n),t.memoizedState=bc,uc(e.child,r)):(co(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 wc(e,t){return t=Tc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Tc(e,t){return e=di(22,e,null,t),e.lanes=0,e}function Ec(e,t,n){return Va(t,e.child,null,n),e=wc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Dc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),$i(e.return,t,n)}function Oc(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 kc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=mo.current,s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,N(mo,o),ac(e,t,r,n),r=I?Ti:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dc(e,n,t);else if(e.tag===19)Dc(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&&ho(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Oc(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&&ho(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Oc(t,!0,n,null,a,r);break;case`together`:Oc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Ac(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Yl|=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 jc(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&na(e)))}function Mc(e,t,n){switch(t.tag){case 3:fe(t,t.stateNode.containerInfo),Zi(t,ua,e.memoizedState.cache),Gi();break;case 27:case 5:me(t);break;case 4:fe(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,lo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(co(t),e=Ac(e,t,n),e===null?null:e.sibling):Cc(e,t,n):(co(t),t.flags|=128,null);co(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 kc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),N(mo,mo.current),r)break;return null;case 22:return t.lanes=0,lc(e,t,n,t.pendingProps);case 24:Zi(t,ua,e.memoizedState.cache)}return Ac(e,t,n)}function Nc(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)ic=!0;else{if(!jc(e,n)&&!(t.flags&128))return ic=!1,Mc(e,t,n);ic=!!(e.flags&131072)}}else ic=!1,I&&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=qs(e,r),t.tag=1,t=vc(null,t,e,r,n)):(t.tag=0,t=gc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===C){t.tag=11,t=oc(null,t,e,r,n);break a}if(a===E){t.tag=14,t=sc(null,t,e,r,n);break a}}throw t=re(e)||e,Error(i(306,t,``))}}return t;case 0:return gc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=qs(r,t.pendingProps),vc(e,t,r,a,n);case 3:a:{if(fe(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ga(e,t),Qa(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Zi(t,ua,r),r!==o.cache&&ea(t,[ua],n,!0),Za(),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=yc(e,t,r,n);break a}if(r!==a){a=xi(Error(i(424)),t),qi(a),t=yc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Li=ff(e.firstChild),Ii=t,I=!0,Ri=null,zi=!0,n=Ha(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Gi(),r===a){t=Ac(e,t,n);break a}ac(e,t,r,n)}t=t.child}return t;case 26:return hc(e,t),e===null?(n=Nf(t.type,null,t.pendingProps,null))?t.memoizedState=n:I||(n=t.type,e=t.pendingProps,r=Wd(de.current).createElement(n),r[ut]=t,r[dt]=e,Rd(r,n,e),Ct(r),t.stateNode=r):t.memoizedState=Nf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return me(t),e===null&&I&&(r=t.stateNode=gf(t.type,t.pendingProps,de.current),Ii=t,zi=!0,a=Li,tf(t.type)?(pf=a,Li=ff(r.firstChild)):Li=a),ac(e,t,t.pendingProps.children,n),hc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&I&&((a=r=Li)&&(r=of(r,t.type,t.pendingProps,zi),r===null?a=!1:(t.stateNode=r,Ii=t,Li=ff(r.firstChild),zi=!1,a=!0)),a||Vi(t)),me(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,qd(a,o)?r=null:s!==null&&qd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Do(e,t,Ao,null,null,n),np._currentValue=a),hc(e,t),ac(e,t,r,n),t.child;case 6:return e===null&&I&&((e=n=Li)&&(n=sf(n,t.pendingProps,zi),n===null?e=!1:(t.stateNode=n,Ii=t,Li=null,e=!0)),e||Vi(t)),null;case 13:return Cc(e,t,n);case 4:return fe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Va(t,null,r,n):ac(e,t,r,n),t.child;case 11:return oc(e,t,t.type,t.pendingProps,n);case 7:return ac(e,t,t.pendingProps,n),t.child;case 8:return ac(e,t,t.pendingProps.children,n),t.child;case 12:return ac(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Zi(t,t.type,r.value),ac(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,ac(e,t,r,n),t.child;case 14:return sc(e,t,t.type,t.pendingProps,n);case 15:return cc(e,t,t.type,t.pendingProps,n);case 19:return kc(e,t,n);case 31:return mc(e,t,n);case 22:return lc(e,t,n,t.pendingProps);case 24:return ra(t),r=ia(ua),e===null?(a=Sa(),a===null&&(a=Hl,o=da(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Wa(t),Zi(t,ua,a)):((e.lanes&n)!==0&&(Ga(e,t),Qa(t,null,null,n),Za()),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))),ac(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Pc(e){e.flags|=4}function Fc(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(Du())e.flags|=8192;else throw Ma=Oa,Ea}}else e.flags&=-16777217}function Ic(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Jf(t)){if(Du())e.flags|=8192;else throw Ma=Oa,Ea}}function Lc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Qe(),e.lanes|=t,$l|=t)}function Rc(e,t){if(!I)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 zc(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 Bc(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 zc(t),null;case 1:return zc(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),pe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Wi(t)?Pc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ki())),zc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Pc(t),o===null?(zc(t),Fc(t,a,null,r,n)):(zc(t),Ic(t,o))):o?o===e.memoizedState?(zc(t),t.flags&=-16777217):(Pc(t),zc(t),Ic(t,o)):(e=e.memoizedProps,e!==r&&Pc(t),zc(t),Fc(t,a,e,r,n)),null;case 27:if(he(t),n=de.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return zc(t),null}e=le.current,Wi(t)?Hi(t,e):(e=gf(a,r,n),t.stateNode=e,Pc(t))}return zc(t),null;case 5:if(he(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return zc(t),null}if(o=le.current,Wi(t))Hi(t,o);else{var s=Wd(de.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[ut]=t,o[dt]=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(Rd(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&&Pc(t)}}return zc(t),Fc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=de.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[ut]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Fd(e.nodeValue,n)),e||Vi(t,!0)}else e=Wd(e).createTextNode(r),e[ut]=t,t.stateNode=e}return zc(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[ut]=t}else Gi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;zc(t),e=!1}else n=Ki(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(po(t),t):(po(t),null);if(t.flags&128)throw Error(i(558))}return zc(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[ut]=t}else Gi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;zc(t),a=!1}else a=Ki(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(po(t),t):(po(t),null)}return po(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),Lc(t,t.updateQueue),zc(t),null);case 4:return pe(),e===null&&Td(t.stateNode.containerInfo),zc(t),null;case 10:return Qi(t.type),zc(t),null;case 19:if(ce(mo),r=t.memoizedState,r===null)return zc(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)Rc(r,!1);else{if(Jl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ho(e),o!==null){for(t.flags|=128,Rc(r,!1),e=o.updateQueue,t.updateQueue=e,Lc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)mi(n,e),n=n.sibling;return N(mo,mo.current&1|2),I&&ji(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Oe()>iu&&(t.flags|=128,a=!0,Rc(r,!1),t.lanes=4194304)}}else{if(!a){if(e=ho(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Lc(t,e),Rc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!I)return zc(t),null}else 2*Oe()-r.renderingStartTime>iu&&n!==536870912&&(t.flags|=128,a=!0,Rc(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?(zc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Oe(),e.sibling=null,n=mo.current,N(mo,a?n&1|2:n&1),I&&ji(t,r.treeForkCount),e);case 22:case 23:return po(t),ao(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(zc(t),t.subtreeFlags&6&&(t.flags|=8192)):zc(t),n=t.updateQueue,n!==null&&Lc(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&&ce(xa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Qi(ua),zc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Vc(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),pe(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return he(t),null;case 31:if(t.memoizedState!==null){if(po(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(po(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 ce(mo),null;case 4:return pe(),null;case 10:return Qi(t.type),null;case 22:case 23:return po(t),ao(),e!==null&&ce(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 Hc(e,t){switch(Pi(t),t.tag){case 3:Qi(ua),pe();break;case 26:case 27:case 5:he(t);break;case 4:pe();break;case 31:t.memoizedState!==null&&po(t);break;case 13:po(t);break;case 19:ce(mo);break;case 10:Qi(t.type);break;case 22:case 23:po(t),ao(),e!==null&&ce(xa);break;case 24:Qi(ua)}}function Uc(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){J(t,t.return,e)}}function Wc(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){J(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){J(t,t.return,e)}}function Gc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{eo(t,n)}catch(t){J(e,e.return,t)}}}function Kc(e,t,n){n.props=qs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){J(e,t,n)}}function qc(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){J(e,t,n)}}function Jc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){J(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){J(e,t,n)}else n.current=null}}function Yc(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){J(e,e.return,t)}}function Xc(e,t,n){try{var r=e.stateNode;zd(r,e.type,n,t),r[dt]=t}catch(t){J(e,e.return,t)}}function Zc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&tf(e.type)||e.tag===4}function Qc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Zc(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&&tf(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 $c(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=rn));else if(r!==4&&(r===27&&tf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function el(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&&tf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(el(e,t,n),e=e.sibling;e!==null;)el(e,t,n),e=e.sibling}function tl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Rd(t,r,n),t[ut]=e,t[dt]=n}catch(t){J(e,e.return,t)}}var nl=!1,rl=!1,il=!1,al=typeof WeakSet==`function`?WeakSet:Set,ol=null;function sl(e,t){if(e=e.containerInfo,Hd=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(Ud={focusedElem:e,selectionRange:n},dp=!1,ol=t;ol!==null;)if(t=ol,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,ol=e;else for(;ol!==null;){switch(t=ol,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)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=qs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){J(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)af(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:af(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,ol=e;break}ol=t.return}}function cl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Cl(e,n),r&4&&Uc(5,n);break;case 1:if(Cl(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){J(n,n.return,e)}else{var i=qs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){J(n,n.return,e)}}}r&64&&Gc(n),r&512&&qc(n,n.return);break;case 3:if(Cl(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{eo(e,t)}catch(e){J(n,n.return,e)}}break;case 27:t===null&&r&4&&tl(n);case 26:case 5:Cl(e,n),t===null&&r&4&&Yc(n),r&512&&qc(n,n.return);break;case 12:Cl(e,n);break;case 31:Cl(e,n),r&4&&ml(e,n);break;case 13:Cl(e,n),r&4&&hl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Zu.bind(null,n),df(e,n))));break;case 22:if(r=n.memoizedState!==null||nl,!r){t=t!==null&&t.memoizedState!==null||rl,i=nl;var a=rl;nl=r,(rl=t)&&!a?Tl(e,n,!!(n.subtreeFlags&8772)):Cl(e,n),nl=i,rl=a}break;case 30:break;default:Cl(e,n)}}function ll(e){var t=e.alternate;t!==null&&(e.alternate=null,ll(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&vt(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 ul=null,dl=!1;function fl(e,t,n){for(n=n.child;n!==null;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(Re&&typeof Re.onCommitFiberUnmount==`function`)try{Re.onCommitFiberUnmount(Le,n)}catch{}switch(n.tag){case 26:rl||Jc(n,t),fl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:rl||Jc(n,t);var r=ul,i=dl;tf(n.type)&&(ul=n.stateNode,dl=!1),fl(e,t,n),_f(n.stateNode),ul=r,dl=i;break;case 5:rl||Jc(n,t);case 6:if(r=ul,i=dl,ul=null,fl(e,t,n),ul=r,dl=i,ul!==null){if(dl)try{(ul.nodeType===9?ul.body:ul.nodeName===`HTML`?ul.ownerDocument.body:ul).removeChild(n.stateNode)}catch(e){J(n,t,e)}else try{ul.removeChild(n.stateNode)}catch(e){J(n,t,e)}}break;case 18:ul!==null&&(dl?(e=ul,nf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Lp(e)):nf(ul,n.stateNode));break;case 4:r=ul,i=dl,ul=n.stateNode.containerInfo,dl=!0,fl(e,t,n),ul=r,dl=i;break;case 0:case 11:case 14:case 15:Wc(2,n,t),rl||Wc(4,n,t),fl(e,t,n);break;case 1:rl||(Jc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Kc(n,t,r)),fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:rl=(r=rl)||n.memoizedState!==null,fl(e,t,n),rl=r;break;default:fl(e,t,n)}}function ml(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Lp(e)}catch(e){J(t,t.return,e)}}}function hl(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){J(t,t.return,e)}}function gl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new al),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new al),t;default:throw Error(i(435,e.tag))}}function _l(e,t){var n=gl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Qu.bind(null,e,t);t.then(r,r)}})}function vl(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(tf(c.type)){ul=c.stateNode,dl=!1;break a}break;case 5:ul=c.stateNode,dl=!1;break a;case 3:case 4:ul=c.stateNode.containerInfo,dl=!0;break a}c=c.return}if(ul===null)throw Error(i(160));pl(o,s,a),ul=null,dl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)bl(t,e),t=t.sibling}var yl=null;function bl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vl(t,e),xl(e),r&4&&(Wc(3,e,e.return),Uc(3,e),Wc(5,e,e.return));break;case 1:vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),r&64&&nl&&(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=yl;if(vl(t,e),xl(e),r&512&&(rl||n===null||Jc(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[_t]||o[ut]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Rd(o,r,n),o[ut]=e,Ct(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),Rd(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),Rd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[ut]=e,Ct(o),r=o}e.stateNode=r}else Kf(a,e.type,e.stateNode)}else e.stateNode=Bf(a,r,e.memoizedProps)}else o===r?r===null&&e.stateNode!==null&&Xc(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:vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),n!==null&&r&4&&Xc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),e.flags&32){a=e.stateNode;try{Yt(a,``)}catch(t){J(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Xc(e,a,n===null?a:n.memoizedProps)),r&1024&&(il=!0);break;case 6:if(vl(t,e),xl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){J(e,e.return,t)}}break;case 3:if(Wf=null,a=yl,yl=bf(t.containerInfo),vl(t,e),yl=a,xl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Lp(t.containerInfo)}catch(t){J(e,e.return,t)}il&&(il=!1,Sl(e));break;case 4:r=yl,yl=bf(e.stateNode.containerInfo),vl(t,e),xl(e),yl=r;break;case 12:vl(t,e),xl(e);break;case 31:vl(t,e),xl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 13:vl(t,e),xl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(q=Oe()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=nl,d=rl;if(nl=u||a,rl=d||l,vl(t,e),rl=d,nl=u,xl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||nl||rl||wl(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){J(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){J(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?rf(m,!0):rf(l.stateNode,!1)}catch(e){J(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,_l(e,n))));break;case 19:vl(t,e),xl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 30:break;case 21:break;default:vl(t,e),xl(e)}}function xl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Zc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;el(e,Qc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Yt(o,``),n.flags&=-33),el(e,Qc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;$c(e,Qc(e),s);break;default:throw Error(i(161))}}catch(t){J(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Sl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Cl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)cl(e,t.alternate,t),t=t.sibling}function wl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Wc(4,t,t.return),wl(t);break;case 1:Jc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Kc(t,t.return,n),wl(t);break;case 27:_f(t.stateNode);case 26:case 5:Jc(t,t.return),wl(t);break;case 22:t.memoizedState===null&&wl(t);break;case 30:wl(t);break;default:wl(t)}e=e.sibling}}function Tl(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:Tl(i,a,n),Uc(4,a);break;case 1:if(Tl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){J(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++)$a(c[i],s)}catch(e){J(r,r.return,e)}}n&&o&64&&Gc(a),qc(a,a.return);break;case 27:tl(a);case 26:case 5:Tl(i,a,n),n&&r===null&&o&4&&Yc(a),qc(a,a.return);break;case 12:Tl(i,a,n);break;case 31:Tl(i,a,n),n&&o&4&&ml(i,a);break;case 13:Tl(i,a,n),n&&o&4&&hl(i,a);break;case 22:a.memoizedState===null&&Tl(i,a,n),qc(a,a.return);break;case 30:break;default:Tl(i,a,n)}t=t.sibling}}function El(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 Dl(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 Ol(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)kl(e,t,n,r),t=t.sibling}function kl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Ol(e,t,n,r),i&2048&&Uc(9,t);break;case 1:Ol(e,t,n,r);break;case 3:Ol(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){Ol(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){J(t,t.return,e)}}else Ol(e,t,n,r);break;case 31:Ol(e,t,n,r);break;case 13:Ol(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Ol(e,t,n,r):(a._visibility|=2,Al(e,t,n,r,!!(t.subtreeFlags&10256)||!1)):a._visibility&2?Ol(e,t,n,r):jl(e,t),i&2048&&El(o,t);break;case 24:Ol(e,t,n,r),i&2048&&Dl(t.alternate,t);break;default:Ol(e,t,n,r)}}function Al(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:Al(a,o,s,c,i),Uc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Al(a,o,s,c,i)):u._visibility&2?Al(a,o,s,c,i):jl(a,o),i&&l&2048&&El(o.alternate,o);break;case 24:Al(a,o,s,c,i),i&&l&2048&&Dl(o.alternate,o);break;default:Al(a,o,s,c,i)}t=t.sibling}}function jl(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:jl(n,r),i&2048&&El(r.alternate,r);break;case 24:jl(n,r),i&2048&&Dl(r.alternate,r);break;default:jl(n,r)}t=t.sibling}}var Ml=8192;function Nl(e,t,n){if(e.subtreeFlags&Ml)for(e=e.child;e!==null;)Pl(e,t,n),e=e.sibling}function Pl(e,t,n){switch(e.tag){case 26:Nl(e,t,n),e.flags&Ml&&e.memoizedState!==null&&Yf(n,yl,e.memoizedState,e.memoizedProps);break;case 5:Nl(e,t,n);break;case 3:case 4:var r=yl;yl=bf(e.stateNode.containerInfo),Nl(e,t,n),yl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ml,Ml=16777216,Nl(e,t,n),Ml=r):Nl(e,t,n));break;default:Nl(e,t,n)}}function Fl(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 Il(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ol=r,zl(r,e)}Fl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ll(e),e=e.sibling}function Ll(e){switch(e.tag){case 0:case 11:case 15:Il(e),e.flags&2048&&Wc(9,e,e.return);break;case 3:Il(e);break;case 12:Il(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Rl(e)):Il(e);break;default:Il(e)}}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];ol=r,zl(r,e)}Fl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wc(8,t,t.return),Rl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Rl(t));break;default:Rl(t)}e=e.sibling}}function zl(e,t){for(;ol!==null;){var n=ol;switch(n.tag){case 0:case 11:case 15:Wc(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,ol=r;else a:for(n=e;ol!==null;){r=ol;var i=r.sibling,a=r.return;if(ll(r),r===n){ol=null;break a}if(i!==null){i.return=a,ol=i;break a}ol=a}}}var Bl={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}},Vl=typeof WeakMap==`function`?WeakMap:Map,U=0,Hl=null,W=null,G=0,K=0,Ul=null,Wl=!1,Gl=!1,Kl=!1,ql=0,Jl=0,Yl=0,Xl=0,Zl=0,Ql=0,$l=0,eu=null,tu=null,nu=!1,q=0,ru=0,iu=1/0,au=null,ou=null,su=0,cu=null,lu=null,uu=0,du=0,fu=null,pu=null,mu=0,hu=null;function gu(){return U&2&&G!==0?G&-G:j.T===null?st():md()}function _u(){if(Ql===0){if(!(G&536870912)||I){var e=Ke;Ke<<=1,!(Ke&3932160)&&(Ke=262144),Ql=e}else Ql=536870912}return e=oo.current,e!==null&&(e.flags|=32),Ql}function vu(e,t,n){(e===Hl&&(K===2||K===9)||e.cancelPendingCommit!==null)&&(Tu(e,0),Su(e,G,Ql,!1)),et(e,n),(!(U&2)||e!==Hl)&&(e===Hl&&(!(U&2)&&(Xl|=n),Jl===4&&Su(e,G,Ql,!1)),od(e))}function yu(e,t,n){if(U&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||Xe(e,t),a=r?Nu(e,t):ju(e,t,!0),o=r;do{if(a===0){Gl&&!r&&Su(e,t,0,!1);break}if(n=e.current.alternate,o&&!xu(n)){a=ju(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=eu;var l=c.current.memoizedState.isDehydrated;if(l&&(Tu(c,s).flags|=256),s=ju(c,s,!1),s!==2){if(Kl&&!l){c.errorRecoveryDisabledLanes|=o,Xl|=o,a=4;break a}o=tu,tu=a,o!==null&&(tu===null?tu=o:tu.push.apply(tu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Tu(e,0),Su(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:Su(r,t,Ql,!Wl);break a;case 2:tu=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=q+300-Oe(),10<a)){if(Su(r,t,Ql,!Wl),Ye(r,0,!0)!==0)break a;uu=t,r.timeoutHandle=Xd(bu.bind(null,r,n,tu,au,nu,t,Ql,Xl,$l,Wl,o,`Throttled`,-0,0),a);break a}bu(r,n,tu,au,nu,t,Ql,Xl,$l,Wl,o,null,-0,0)}break}while(1);od(e)}function bu(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:rn},Pl(t,a,d);var m=(a&62914560)===a?q-Oe():(a&4194048)===a?ru-Oe():0;if(m=Zf(d,m),m!==null){uu=a,e.cancelPendingCommit=m(Bu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Su(e,a,o,!l);return}}Bu(e,t,a,n,r,i,o,s,c)}function xu(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 Su(e,t,n,r){t&=~Zl,t&=~Xl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Be(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&nt(e,n,t)}function Cu(){return U&6?!0:(sd(0,!1),!1)}function wu(){if(W!==null){if(K===0)var e=W.return;else e=W,Xi=Yi=null,No(e),Fa=null,Ia=0,e=W;for(;e!==null;)Hc(e.alternate,e),e=e.return;W=null}}function Tu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Zd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),uu=0,wu(),Hl=e,W=n=pi(e.current,null),G=t,K=0,Ul=null,Wl=!1,Gl=Xe(e,t),Kl=!1,$l=Ql=Zl=Xl=Yl=Jl=0,tu=eu=null,nu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Be(r),a=1<<i;t|=e[i],r&=~a}return ql=t,ri(),n}function Eu(e,t){L=null,j.H=Vs,t===Ta||t===Da?(t=Na(),K=3):t===Ea?(t=Na(),K=4):K=t===rc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Ul=t,W===null&&(Jl=1,Zs(e,xi(t,e.current)))}function Du(){var e=oo.current;return e===null?!0:(G&4194048)===G?so===null:(G&62914560)===G||G&536870912?e===so:!1}function Ou(){var e=j.H;return j.H=Vs,e===null?Vs:e}function ku(){var e=j.A;return j.A=Bl,e}function Au(){Jl=4,Wl||(G&4194048)!==G&&oo.current!==null||(Gl=!0),!(Yl&134217727)&&!(Xl&134217727)||Hl===null||Su(Hl,G,Ql,!1)}function ju(e,t,n){var r=U;U|=2;var i=Ou(),a=ku();(Hl!==e||G!==t)&&(au=null,Tu(e,t)),t=!1;var o=Jl;a:do try{if(K!==0&&W!==null){var s=W,c=Ul;switch(K){case 8:wu(),o=6;break a;case 3:case 2:case 9:case 6:oo.current===null&&(t=!0);var l=K;if(K=0,Ul=null,Lu(e,s,c,l),n&&Gl){o=0;break a}break;default:l=K,K=0,Ul=null,Lu(e,s,c,l)}}Mu(),o=Jl;break}catch(t){Eu(e,t)}while(1);return t&&e.shellSuspendCounter++,Xi=Yi=null,U=r,j.H=i,j.A=a,W===null&&(Hl=null,G=0,ri()),o}function Mu(){for(;W!==null;)Fu(W)}function Nu(e,t){var n=U;U|=2;var r=Ou(),a=ku();Hl!==e||G!==t?(au=null,iu=Oe()+500,Tu(e,t)):Gl=Xe(e,t);a:do try{if(K!==0&&W!==null){t=W;var o=Ul;b:switch(K){case 1:K=0,Ul=null,Lu(e,t,o,1);break;case 2:case 9:if(ka(o)){K=0,Ul=null,Iu(t);break}t=function(){K!==2&&K!==9||Hl!==e||(K=7),od(e)},o.then(t,t);break a;case 3:K=7;break a;case 4:K=5;break a;case 7:ka(o)?(K=0,Ul=null,Iu(t)):(K=0,Ul=null,Lu(e,t,o,7));break;case 5:var s=null;switch(W.tag){case 26:s=W.memoizedState;case 5:case 27:var c=W;if(s?Jf(s):c.stateNode.complete){K=0,Ul=null;var l=c.sibling;if(l!==null)W=l;else{var u=c.return;u===null?W=null:(W=u,Ru(u))}break b}}K=0,Ul=null,Lu(e,t,o,5);break;case 6:K=0,Ul=null,Lu(e,t,o,6);break;case 8:wu(),Jl=6;break a;default:throw Error(i(462))}}Pu();break}catch(t){Eu(e,t)}while(1);return Xi=Yi=null,j.H=r,j.A=a,U=n,W===null?(Hl=null,G=0,ri(),Jl):0}function Pu(){for(;W!==null&&!Ee();)Fu(W)}function Fu(e){var t=Nc(e.alternate,e,ql);e.memoizedProps=e.pendingProps,t===null?Ru(e):W=t}function Iu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=_c(n,t,t.pendingProps,t.type,void 0,G);break;case 11:t=_c(n,t,t.pendingProps,t.type.render,t.ref,G);break;case 5:No(t);default:Hc(n,t),t=W=mi(t,ql),t=Nc(n,t,ql)}e.memoizedProps=e.pendingProps,t===null?Ru(e):W=t}function Lu(e,t,n,r){Xi=Yi=null,No(t),Fa=null,Ia=0;var i=t.return;try{if(nc(e,i,t,n,G)){Jl=1,Zs(e,xi(n,e.current)),W=null;return}}catch(t){if(i!==null)throw W=i,t;Jl=1,Zs(e,xi(n,e.current)),W=null;return}t.flags&32768?(I||r===1?e=!0:Gl||G&536870912?e=!1:(Wl=e=!0,(r===2||r===9||r===3||r===6)&&(r=oo.current,r!==null&&r.tag===13&&(r.flags|=16384))),zu(t,e)):Ru(t)}function Ru(e){var t=e;do{if(t.flags&32768){zu(t,Wl);return}e=t.return;var n=Bc(t.alternate,t,ql);if(n!==null){W=n;return}if(t=t.sibling,t!==null){W=t;return}W=t=e}while(t!==null);Jl===0&&(Jl=5)}function zu(e,t){do{var n=Vc(e.alternate,e);if(n!==null){n.flags&=32767,W=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){W=e;return}W=e=n}while(e!==null);Jl=6,W=null}function Bu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Gu();while(su!==0);if(U&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=ni,tt(e,n,o,s,c,l),e===Hl&&(W=Hl=null,G=0),lu=t,cu=e,uu=n,du=o,fu=a,pu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,$u(Me,function(){return Ku(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=j.T,j.T=null,a=M.p,M.p=2,s=U,U|=4;try{sl(e,t,n)}finally{U=s,M.p=a,j.T=r}}su=1,Vu(),Hu(),Uu()}}function Vu(){if(su===1){su=0;var e=cu,t=lu,n=!!(t.flags&13878);if(t.subtreeFlags&13878||n){n=j.T,j.T=null;var r=M.p;M.p=2;var i=U;U|=4;try{bl(t,e);var a=Ud,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=!!Hd,Ud=Hd=null}finally{U=i,M.p=r,j.T=n}}e.current=t,su=2}}function Hu(){if(su===2){su=0;var e=cu,t=lu,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=j.T,j.T=null;var r=M.p;M.p=2;var i=U;U|=4;try{cl(e,t.alternate,t)}finally{U=i,M.p=r,j.T=n}}su=3}}function Uu(){if(su===4||su===3){su=0,De();var e=cu,t=lu,n=uu,r=pu;t.subtreeFlags&10256||t.flags&10256?su=5:(su=0,lu=cu=null,Wu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ou=null),ot(n),t=t.stateNode,Re&&typeof Re.onCommitFiberRoot==`function`)try{Re.onCommitFiberRoot(Le,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=j.T,i=M.p,M.p=2,j.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{j.T=t,M.p=i}}uu&3&&Gu(),od(e),i=e.pendingLanes,n&261930&&i&42?e===hu?mu++:(mu=0,hu=e):mu=0,sd(0,!1)}}function Wu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,fa(t)))}function Gu(){return Vu(),Hu(),Uu(),Ku()}function Ku(){if(su!==5)return!1;var e=cu,t=du;du=0;var n=ot(uu),r=j.T,a=M.p;try{M.p=32>n?32:n,j.T=null,n=fu,fu=null;var o=cu,s=uu;if(su=0,lu=cu=null,uu=0,U&6)throw Error(i(331));var c=U;if(U|=4,Ll(o.current),kl(o,o.current,s,n),U=c,sd(0,!1),Re&&typeof Re.onPostCommitFiberRoot==`function`)try{Re.onPostCommitFiberRoot(Le,o)}catch{}return!0}finally{M.p=a,j.T=r,Wu(e,t)}}function qu(e,t,n){t=xi(n,t),t=$s(e.stateNode,t,2),e=qa(e,t,2),e!==null&&(et(e,2),od(e))}function J(e,t,n){if(e.tag===3)qu(e,e,n);else for(;t!==null;){if(t.tag===3){qu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ou===null||!ou.has(r))){e=xi(n,e),n=ec(2),r=qa(t,n,2),r!==null&&(tc(n,r,t,e),et(r,2),od(r));break}}t=t.return}}function Ju(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Vl;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)||(Kl=!0,i.add(n),e=Yu.bind(null,e,t,n),t.then(e,e))}function Yu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Hl===e&&(G&n)===n&&(Jl===4||Jl===3&&(G&62914560)===G&&300>Oe()-q?!(U&2)&&Tu(e,0):Zl|=n,$l===G&&($l=0)),od(e)}function Xu(e,t){t===0&&(t=Qe()),e=oi(e,t),e!==null&&(et(e,t),od(e))}function Zu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Xu(e,n)}function Qu(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),Xu(e,n)}function $u(e,t){return we(e,t)}var ed=null,td=null,nd=!1,rd=!1,id=!1,ad=0;function od(e){e!==td&&e.next===null&&(td===null?ed=td=e:td=td.next=e),rd=!0,nd||(nd=!0,pd())}function sd(e,t){if(!id&&rd){id=!0;do for(var n=!1,r=ed;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-Be(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,fd(r,a))}else a=G,a=Ye(r,r===Hl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Xe(r,a)||(n=!0,fd(r,a))}r=r.next}while(n);id=!1}}function cd(){ld()}function ld(){rd=nd=!1;var e=0;ad!==0&&Yd()&&(e=ad);for(var t=Oe(),n=null,r=ed;r!==null;){var i=r.next,a=ud(r,t);a===0?(r.next=null,n===null?ed=i:n.next=i,i===null&&(td=n)):(n=r,(e!==0||a&3)&&(rd=!0)),r=i}su!==0&&su!==5||sd(e,!1),ad!==0&&(ad=0)}function ud(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Be(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ze(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Hl,n=G,n=Ye(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(K===2||K===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Te(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Xe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Te(r),ot(n)){case 2:case 8:n=je;break;case 32:n=Me;break;case 268435456:n=Pe;break;default:n=Me}return r=dd.bind(null,e),n=we(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Te(r),e.callbackPriority=2,e.callbackNode=null,2}function dd(e,t){if(su!==0&&su!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Gu()&&e.callbackNode!==n)return null;var r=G;return r=Ye(e,e===Hl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(yu(e,r,t),ud(e,Oe()),e.callbackNode!=null&&e.callbackNode===n?dd.bind(null,e):null)}function fd(e,t){if(Gu())return null;yu(e,t,!0)}function pd(){$d(function(){U&6?we(Ae,cd):ld()})}function md(){if(ad===0){var e=ha;e===0&&(e=Ge,Ge<<=1,!(Ge&261888)&&(Ge=256)),ad=e}return ad}function hd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:nn(``+e)}function gd(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 _d(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=hd((i[dt]||null).action),o=r.submitter;o&&(t=(t=o[dt]||null)?hd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Tn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(ad!==0){var e=o?gd(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?gd(i,o):new FormData(i),Ds(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var vd=0;vd<Zr.length;vd++){var yd=Zr[vd];Qr(yd.toLowerCase(),`on`+(yd[0].toUpperCase()+yd.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`),Dt(`onMouseEnter`,[`mouseout`,`mouseover`]),Dt(`onMouseLeave`,[`mouseout`,`mouseover`]),Dt(`onPointerEnter`,[`pointerout`,`pointerover`]),Dt(`onPointerLeave`,[`pointerout`,`pointerover`]),Et(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Et(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Et(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Et(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Et(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Et(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var bd=`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(` `),xd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(bd));function Sd(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 Y(e,t){var n=t[pt];n===void 0&&(n=t[pt]=new Set);var r=e+`__bubble`;n.has(r)||(Ed(t,e,2,!1),n.add(r))}function Cd(e,t,n){var r=0;t&&(r|=4),Ed(n,e,r,t)}var wd=`_reactListening`+Math.random().toString(36).slice(2);function Td(e){if(!e[wd]){e[wd]=!0,wt.forEach(function(t){t!==`selectionchange`&&(xd.has(t)||Cd(t,!1,e),Cd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wd]||(t[wd]=!0,Cd(`selectionchange`,!1,t))}}function Ed(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,!mn||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 Dd(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=yt(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}dn(function(){var r=a,i=on(n),o=[];a:{var c=Xr.get(e);if(c!==void 0){var l=Tn,u=e;switch(e){case`keypress`:if(bn(n)===0)break a;case`keydown`:case`keyup`:l=Un;break;case`focusin`:u=`focus`,l=Pn;break;case`focusout`:u=`blur`,l=Pn;break;case`beforeblur`:case`afterblur`:l=Pn;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=Mn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Nn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Gn;break;case Ur:case Wr:case Gr:l=Fn;break;case Yr:l=Kn;break;case`scroll`:case`scrollend`:l=Dn;break;case`wheel`:l=qn;break;case`copy`:case`cut`:case`paste`:l=In;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Wn;break;case`toggle`:case`beforetoggle`:l=Jn}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=fn(m,p),g!=null&&d.push(Od(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!==an&&(u=n.relatedTarget||n.fromElement)&&(yt(u)||u[ft]))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?yt(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=Mn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Wn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:xt(l),h=u==null?c:xt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,yt(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=Ad,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&&jd(o,c,l,d,!1),u!==null&&f!==null&&jd(o,f,u,d,!0)}}a:{if(c=r?xt(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&&$t(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&&Gt(c,`number`,c.value)}switch(y=r?xt(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(Xn)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=yn()):(gn=i,_n=`value`in gn?gn.value:gn.textContent,rr=!0)),y=kd(r,x),0<y.length&&(x=new Ln(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=nr(n),b!==null&&(x.data=b)))),(b=F?ir(e,n):ar(e,n))&&(x=kd(r,`onBeforeInput`),0<x.length&&(y=new Ln(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),_d(o,e,r,n,i)}Sd(o,t)})}function Od(e,t,n){return{instance:e,listener:t,currentTarget:n}}function kd(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=fn(e,n),i!=null&&r.unshift(Od(e,i,a)),i=fn(e,t),i!=null&&r.push(Od(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Ad(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function jd(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=fn(n,a),l!=null&&o.unshift(Od(n,l,c))):i||(l=fn(n,a),l!=null&&o.push(Od(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Md=/\r\n?/g,Nd=/\u0000|\uFFFD/g;function Pd(e){return(typeof e==`string`?e:``+e).replace(Md,` 10`).replace(Nd,``)}function Fd(e,t){return t=Pd(t),Pd(e)===t}function Id(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Yt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Yt(e,``+r);break;case`className`:Nt(e,`class`,r);break;case`tabIndex`:Nt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Nt(e,n,r);break;case`style`:Qt(e,r,o);break;case`data`:if(t!==`object`){Nt(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=nn(``+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`&&Id(e,t,`name`,a.name,a,null),Id(e,t,`formEncType`,a.formEncType,a,null),Id(e,t,`formMethod`,a.formMethod,a,null),Id(e,t,`formTarget`,a.formTarget,a,null)):(Id(e,t,`encType`,a.encType,a,null),Id(e,t,`method`,a.method,a,null),Id(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=nn(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=rn);break;case`onScroll`:r!=null&&Y(`scroll`,e);break;case`onScrollEnd`:r!=null&&Y(`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=nn(``+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`:Y(`beforetoggle`,e),Y(`toggle`,e),Mt(e,`popover`,r);break;case`xlinkActuate`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Pt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Pt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Pt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Mt(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=en.get(n)||n,Mt(e,n,r))}}function Ld(e,t,n,r,a,o){switch(n){case`style`:Qt(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`?Yt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Yt(e,``+r);break;case`onScroll`:r!=null&&Y(`scroll`,e);break;case`onScrollEnd`:r!=null&&Y(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=rn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!Tt.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[dt]||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,``):Mt(e,n,r)}}}function Rd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Y(`error`,e),Y(`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:Id(e,t,o,s,n,null)}}a&&Id(e,t,`srcSet`,n.srcSet,n,null),r&&Id(e,t,`src`,n.src,n,null);return;case`input`:Y(`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:Id(e,t,r,d,n,null)}}Wt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Y(`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:Id(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Kt(e,!!r,n,!0):Kt(e,!!r,t,!1);return;case`textarea`:for(s in Y(`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:Id(e,t,s,c,n,null)}Jt(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:Id(e,t,l,r,n,null)}return;case`dialog`:Y(`beforetoggle`,e),Y(`toggle`,e),Y(`cancel`,e),Y(`close`,e);break;case`iframe`:case`object`:Y(`load`,e);break;case`video`:case`audio`:for(r=0;r<bd.length;r++)Y(bd[r],e);break;case`image`:Y(`error`,e),Y(`load`,e);break;case`details`:Y(`toggle`,e);break;case`embed`:case`source`:case`link`:Y(`error`,e),Y(`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:Id(e,t,u,r,n,null)}return;default:if($t(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Ld(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Id(e,t,c,r,n,null))}function zd(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)||Id(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&&Id(e,t,p,m,r,f)}}Ut(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)||Id(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&&Id(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Kt(e,!!n,n?[]:``,!1):Kt(e,!!n,t,!0)):Kt(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:Id(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&&Id(e,t,s,a,r,o)}qt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Id(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:Id(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)&&Id(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:Id(e,t,u,p,r,m)}return;default:if($t(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Ld(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||Ld(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Id(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||Id(e,t,f,p,r,m)}function Bd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Vd(){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&&Bd(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&&Bd(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 Hd=null,Ud=null;function Wd(e){return e.nodeType===9?e:e.ownerDocument}function Gd(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 Kd(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 qd(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 Jd=null;function Yd(){var e=window.event;return e&&e.type===`popstate`?e!==Jd&&(Jd=e,!0):(Jd=null,!1)}var Xd=typeof setTimeout==`function`?setTimeout:void 0,Zd=typeof clearTimeout==`function`?clearTimeout:void 0,Qd=typeof Promise==`function`?Promise:void 0,$d=typeof queueMicrotask==`function`?queueMicrotask:Qd===void 0?Xd:function(e){return Qd.resolve(null).then(e).catch(ef)};function ef(e){setTimeout(function(){throw e})}function tf(e){return e===`head`}function nf(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`)_f(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,_f(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[_t]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&_f(e.ownerDocument.body)}n=i}while(n);Lp(t)}function rf(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 af(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`:af(n),vt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function of(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[_t])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=ff(e.nextSibling),e===null)break}return null}function sf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=ff(e.nextSibling),e===null))return null;return e}function cf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=ff(e.nextSibling),e===null))return null;return e}function lf(e){return e.data===`$?`||e.data===`$~`}function uf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function df(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 ff(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 pf=null;function mf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return ff(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function hf(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 gf(e,t,n){switch(t=Wd(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 _f(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);vt(e)}var vf=new Map,yf=new Set;function bf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var xf=M.d;M.d={f:Sf,r:Cf,D:Ef,C:Df,L:Of,m:kf,X:jf,S:Af,M:Mf};function Sf(){var e=xf.f(),t=Cu();return e||t}function Cf(e){var t=bt(e);t!==null&&t.tag===5&&t.type===`form`?ks(t):xf.r(e)}var wf=typeof document>`u`?null:document;function Tf(e,t,n){var r=wf;if(r&&typeof t==`string`&&t){var i=Ht(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),yf.has(i)||(yf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Rd(t,`link`,e),Ct(t),r.head.appendChild(t)))}}function Ef(e){xf.D(e),Tf(`dns-prefetch`,e,null)}function Df(e,t){xf.C(e,t),Tf(`preconnect`,e,t)}function Of(e,t,n){xf.L(e,t,n);var r=wf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Ht(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Ht(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Ht(n.imageSizes)+`"]`)):i+=`[href="`+Ht(e)+`"]`;var a=i;switch(t){case`style`:a=Pf(e);break;case`script`:a=Rf(e)}vf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Ff(a))||t===`script`&&r.querySelector(zf(a))||(t=r.createElement(`link`),Rd(t,`link`,e),Ct(t),r.head.appendChild(t)))}}function kf(e,t){xf.m(e,t);var n=wf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Ht(r)+`"][href="`+Ht(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rf(e)}if(!vf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),vf.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`),Rd(r,`link`,e),Ct(r),n.head.appendChild(r)}}}function Af(e,t,n){xf.S(e,t,n);var r=wf;if(r&&e){var i=St(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=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vf.get(a))&&Hf(e,n);var c=o=r.createElement(`link`);Ct(c),Rd(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){xf.X(e,t);var n=wf;if(n&&e){var r=St(n).hoistableScripts,i=Rf(e),a=r.get(i);a||(a=n.querySelector(zf(i)),a||(e=m({src:e,async:!0},t),(t=vf.get(i))&&Uf(e,t),a=n.createElement(`script`),Ct(a),Rd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mf(e,t){xf.M(e,t);var n=wf;if(n&&e){var r=St(n).hoistableScripts,i=Rf(e),a=r.get(i);a||(a=n.querySelector(zf(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=vf.get(i))&&Uf(e,t),a=n.createElement(`script`),Ct(a),Rd(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=de.current)?bf(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=St(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=St(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),vf.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},vf.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=St(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="`+Ht(e)+`"`}function Ff(e){return`link[rel="stylesheet"][`+e+`]`}function If(e){return m({},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}),Rd(t,`link`,n),Ct(t),e.head.appendChild(t))}function Rf(e){return`[src="`+Ht(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~="`+Ht(n.href)+`"]`);if(r)return t.instance=r,Ct(r),r;var a=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ct(r),Rd(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,Ct(o),o;r=If(n),(a=vf.get(a))&&Hf(r,a),o=(e.ownerDocument||e).createElement(`link`),Ct(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Rd(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,Ct(a),a):(r=n,(a=vf.get(o))&&(r=m({},n),Uf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ct(a),Rd(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[_t]||a[ut]||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,Ct(a);return}a=t.ownerDocument||t,r=If(r),(i=vf.get(i))&&Hf(r,i),a=a.createElement(`link`),Ct(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Rd(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*Vd());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:S,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_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=$e(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$e(0),this.hiddenUpdates=$e(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},Wa(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=Ka(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=qa(e,r,t),n!==null&&(vu(n,e,t),Ja(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&&vu(t,e,67108864),cp(e,67108864)}}function up(e){if(e.tag===13||e.tag===31){var t=gu();t=at(t);var n=oi(e,t);n!==null&&vu(n,e,t),cp(e,t)}}var dp=!0;function fp(e,t,n,r){var i=j.T;j.T=null;var a=M.p;try{M.p=2,mp(e,t,n,r)}finally{M.p=a,j.T=i}}function pp(e,t,n,r){var i=j.T;j.T=null;var a=M.p;try{M.p=8,mp(e,t,n,r)}finally{M.p=a,j.T=i}}function mp(e,t,n,r){if(dp){var i=hp(r);if(i===null)Dd(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=bt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Je(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Be(o);s.entanglements[1]|=c,o&=~c}od(a),!(U&6)&&(iu=Oe()+500,sd(0,!1))}}break;case 31:case 13:s=oi(a,2),s!==null&&vu(s,a,2),Cu(),cp(a,2)}if(a=hp(r),a===null&&Dd(e,t,r,gp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Dd(e,t,r,null,n)}}function hp(e){return e=on(e),_p(e)}var gp=null;function _p(e){if(gp=null,e=yt(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(ke()){case Ae:return 2;case je:return 8;case Me:case Ne:return 32;case Pe: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=bt(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=yt(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,ct(e.priority,function(){up(n)});return}}else if(t===31){if(t=l(n),t!==null){e.blockedOn=t,ct(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);an=r,n.target.dispatchEvent(r),an=null}else return t=bt(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=bt(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[dt]||null;if(typeof a==`function`)o||Ip(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[dt]||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,gu(),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),Cu(),t[ft]=null}};function Bp(e){this._internalRoot=e}Bp.prototype.unstable_scheduleHydration=function(e){if(e){var t=st();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`));M.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=f(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var Hp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:j,reconcilerVersion:`19.2.8`};
10if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Up=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Up.isDisabled&&Up.supportsFiber)try{Le=Up.inject(Hp),Re=Up}catch{}}e.hydrateRoot=function(e,t,n){if(!o(e))throw Error(i(299));var r=!1,a=``,s=Js,c=Ys,l=Xs,u=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(a=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,a,u,s,c,l,Rp),t.context=ap(null),n=t.current,r=gu(),r=at(r),a=Ka(r),a.callback=null,qa(n,a,r),n=r,t.current.lanes=n,et(t,n),od(t),e[ft]=t.current,Td(e),new Bp(t)}})),Ke=s(((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=Ge()})),qe=`__TSS_CONTEXT`,Je=Symbol.for(`TSS_SERVER_FUNCTION`),Ye=`application/x-tss-framed`,Xe={JSON:0,CHUNK:1,END:2,ERROR:3};`${Ye}`;var Ze=/;\s*v=(\d+)/;function Qe(e){let t=e.match(Ze);return t?parseInt(t[1],10):void 0}function $e(e){let t=Qe(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 et=()=>window.__TSS_START_OPTIONS__;function tt(e){return e?.isNotFound===!0}function nt(){try{return sessionStorage}catch{return}}var rt=`tsr-scroll-restoration-v1_3`,it=nt();function at(){try{return JSON.parse(it?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function ot(){try{it?.setItem(rt,JSON.stringify(st))}catch{}}var st=at(),ct=`data-scroll-restoration-id`,lt=e=>e.state.__TSR_key||e.href;function ut(e){let t=e.getAttribute(ct);if(t)return`[${ct}="${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 dt=!1,ft=`window`;function pt(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function mt(e){let t=new Set;for(let n of e){if(n===ft)continue;let e=pt(n);e&&t.add(e)}return t}function ht(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||lt,a=new Set,o=e=>{let t=st[e]||={};for(let e of a)e===document?t[ft]={scrollX,scrollY}:e.isConnected&&(t[ut(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.restoration&&(r.restoration=!0,dt=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{dt||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())),ot()})),!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=st[d];if(e){let t=st[u];for(let n in e){if(n===ft){if(s)continue}else{let e=pt(n);if(!e||s&&o&&(l??=mt(o),l.has(e)))continue}t||=st[u]={},t[n]??=e[n]}}}dt=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=mt(o));let t=e&&i&&c,s=r.restoring?st[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===ft){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=pt(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{dt=!1}}))}function gt(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 _t(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function vt(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]=_t(r):Array.isArray(t)?t.push(_t(r)):n[e]=[t,_t(r)]}return n}var yt=xt(JSON.parse),bt=St(JSON.stringify,JSON.parse);function xt(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=vt(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function St(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=gt(e,r);return t?`?${t}`:``}}var Ct=`__root__`;function wt(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href==`string`)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Tt(e){return e instanceof Response&&!!e.options}function Et(e){if(typeof e==`object`&&e&&e.isSerializedRedirect)return wt(e)}function Dt(e){return{input:({url:t})=>{for(let n of e)t=kt(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=At(e[n],t);return t}}}function Ot(e){let t=me(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=h([`/`,t,e.pathname]),e)}}function kt(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 At(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 jt(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>Mt(o,_.get())),x=r(()=>Mt(s,v.get())),S=r(()=>Mt(c,y.get())),C=r(()=>_.get()[0]),w=r(()=>_.get().some(e=>
10o.get(e)?.get().status===`pending`)),T=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),E=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),D=k(64);function O(e){let t=D.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),D.set(e,t)),t}let ee={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:S,firstId:C,hasPending:w,matchRouteDeps:T,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:E,getRouteMatchStore:O,setMatches:te,setPending:ne,setCached:re};te(e.matches),a?.(ee);function te(e){Nt(e,o,_,n,i)}function ne(e){Nt(e,s,v,n,i)}function re(e){Nt(e,c,y,n,i)}return ee}function Mt(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function Nt(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)}re(n.get(),a)||n.set(a)})}var Pt=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Ft=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),It=(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},Rt=(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},zt=(e,t,n)=>{if(!(!Tt(n)&&!tt(n)))throw Tt(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:Tt(n)?`redirected`:tt(n)?`notFound`:r.status===`pending`?`success`:r.status,context:Lt(e,t.index),isFetching:!1,error:n})),tt(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),Tt(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},Bt=(e,t)=>
10{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},Vt=(e,t,n)=>{let r=Lt(e,n);e.updateMatch(t,e=>({...e,context:r}))},Ht=(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,zt(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,zt(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&&!Tt(n)&&!tt(n)&&(e.serialError??=n)},Ut=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!It(e,t)&&(n.options.loader||n.options.beforeLoad||en(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{Pt(e)},i);r._nonReactive.pendingTimeout=t}},Wt=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;Ut(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&zt(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},Gt=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=y(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&Ht(e,n,o),s&&Ht(e,n,s),Ut(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},d=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),d()});return}i._nonReactive.beforeLoadPromise=y();let f={...Lt(e,n,!1),...i.__routeContext},{search:p,params:m,cause:h}=i,g=It(e,t),_={search:p,abortController:c,params:m,preload:g,context:f,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:g?`preload`:h,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},v=r=>{if(r===void 0){e.router.batch(()=>{u(),d()});return}(Tt(r)||tt(r))&&(u(),Ht(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},b;try{if(b=r.options.beforeLoad(_),ie(b))return u(),b.catch(t=>{Ht(e,n,t)}).then(v)}catch(t){u(),Ht(e,n,t)}v(b)},Kt=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>Gt(e,n,t,i),s=()=>{if(Bt(e,n))return;let t=Wt(e,n,i);return ie(t)?t.then(o):o()};return a()},qt=(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}))},Jt=(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=It(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},Yt=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{$t(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(Jt(e,t,n,r,i)),l=!!s&&ie(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;zt(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=>
10({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:Lt(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,tt(t)&&await i.options.notFoundComponent?.preload?.(),zt(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,zt(e,e.router.getMatch(n),t)}!Tt(o)&&!tt(o)&&await $t(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),zt(e,r,t)}},Xt=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(Jt(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await Yt(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){Tt(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await Yt(e,t,i,n,d):Vt(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(Bt(e,i)){if(!e.router.getMatch(i))return e.matches[n];Vt(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=It(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&&zt(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=y(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let d=e.router.getMatch(i);s||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve(),d._nonReactive.loadPromise=void 0),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,s||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;let f=s?d.isFetching:!1;return f!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):d};async function Zt(e){let t=e,n=[];Ft(t.router)&&Pt(t);let r;for(let e=0;e<t.matches.length;e++){try{let n=Kt(t,e);ie(n)&&await n}catch(e){if(Tt(e))throw e;if(tt(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?Rt(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(Xt(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(Tt(e))throw e;tt(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=Rt(t,l);e===void 0&&ke();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 $t(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 $t(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=qt(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=Pt(t);if(ie(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function Qt(e,t){let n=t.map(t=>
10e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function $t(e,t=tn){!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===tn?(()=>{if(e._componentsPromise===void 0){let t=Qt(e,tn);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():Qt(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function en(e){for(let t of tn)if(e.options[t]?.preload)return!0;return!1}var tn=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`],nn=`__TSR_index`,rn=`popstate`,an=`beforeunload`;function on(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=un(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[nn];i=sn(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[nn];i=sn(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[nn]!==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 sn(e,t){t||={};let n=dn();return{...t,key:n,__TSR_key:n,[nn]:e}}function cn(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??(()=>un(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=dn();t.history.replaceState({[nn]: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=un(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[nn]-l.state[nn],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=on({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(an,S,{capture:!0}),t.removeEventListener(rn,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(an,S,{capture:!0}),t.addEventListener(rn,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 ln(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function un(e,t){let n=ln(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=dn();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||{[nn]:0,key:a,__TSR_key:a}}}function dn(){return(Math.random()+1).toString(36).substring(7)}function fn(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function pn(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 mn=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.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=te(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history?this.options.history:cn()),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=k(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=jt(_n(this.latestLocation),e),ht(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=me(o);t&&t!==`/`&&e.push(Ot({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:Dt(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=C(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&b(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>
10{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:ne(e).path,external:!1,searchStr:o,search:d(t?.search,i),hash:ne(r.slice(1)).path,state:le(t?.state,a)}}let o=new URL(i,this.origin),s=kt(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:ne(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:d(t?.search,c),hash:ne(s.hash.slice(1)).path,state:le(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)=>E({base:e,to:t.includes(`//`)?Ee(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=>yn({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,s=Object.assign(Object.create(null),r.params),c=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),l=a?this.resolvePathWithBase(c,a):c,u=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?s:Object.assign(s,be(t.params,s)),f=this.routesByPath[pe(l)],p;if(f)p=this.getRouteBranch(f);else if(l.includes(`$`))p=[];else{let e=this.getMatchedRoutes(l);p=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(p=[...p,this.options.notFoundRoute])}if(p.length&&x(u))for(let e of p){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(u,t(u))}catch{}}let m=e.leaveParams?l:ne(g({path:l,params:u,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,h=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};p.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,vn(t.options.validateSearch,{...e,...h}))}catch{}}),h=e}h=bn({search:h,dest:t,destRoutes:p,_includeValidateSearch:e._includeValidateSearch}),h=d(o,h);let _=this.options.stringifySearch(h),y=t.hash===!0?n.hash:t.hash?be(t.hash,n.hash):void 0,b=y?`#${y}`:``,S=t.state===!0?n.state:t.state?be(t.state,n.state):{};S=le(n.state,S);let C=`${m}${_}${b}`,w,T,E=!1;if(this.rewrite){let e=new URL(C,this.origin),t=At(this.rewrite,e);w=e.href.replace(e.origin,``),t.origin===this.origin?T=t.pathname+t.search+t.hash:(T=t.href,E=!0)}else w=v(C),T=w;return{publicHref:T,href:w,pathname:m,search:h,searchStr:_,state:S,hash:y??``,external:E,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=T(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,be(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];
10e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=A(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=pe(this.latestLocation.href)===pe(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=y(()=>{o?.resolve(),o=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this._scroll.next=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=un(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=kt(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(M(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=pn(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await Zt({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){Tt(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):tt(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(pn(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>
10{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&M(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??3e5;return t.status===`error`||e-t.updatedAt>=r}})},this.loadRouteChunk=$t,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 Zt({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(Tt(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});tt(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&&!A(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?A(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??bt,parseSearch:e.parseSearch??yt,protocolAllowlist:e.protocolAllowlist??p}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=w(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParam
10s:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:pe(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?Sn(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=vn(r.options.validateSearch,{...n})??void 0;u={...n,...e},f={...i,...e},p=void 0}catch(e){let r=e;if(e instanceof hn||(r=new hn(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:_,usedParams:v}=g({path:r.fullPath,params:i,decoder:this.pathParamsDecoder,server:this.isServer}),b=r.id+_+h,x=this.getMatch(b),S=l.get(r.id),C=x?._strictParams??v,w;if(!x)try{Cn(r,C)}catch(e){if(w=tt(e)||Tt(e)?e:new gn(e.message,{cause:e}),t?.throwOnError)throw w}Object.assign(i,C);let T=S?`stay`:`enter`,E;if(x)E={...x,cause:T,params:S?.params??i,_strictParams:C,search:d(S?S.search:x.search,u),_strictSearch:f};else{let e=r.options.loader||r.options.beforeLoad||r.lazyFn||en(r)?`pending`:`success`;E={id:b,ssr:r.options.ssr,index:n,routeId:r.id,params:S?.params??i,_strictParams:C,pathname:_,updatedAt:Date.now(),search:S?d(S.search,u):u,_strictSearch:f,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:w,__routeContext:void 0,_nonReactive:{loadPromise:y()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:T,loaderDeps:S?le(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||(E.globalNotFound=s===r.id),E.searchError=p;let D=this.getParentContext(o);E.context={...D,...E.__routeContext,...E.__beforeLoadContext},c[n]=E}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?d(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=O(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=O(r),o={...e.search};for(let e of r)try{Object.assign(o,vn(e.options.validateSearch,o))}catch{}let s=t&&this.stores.matchStores.get(t)?.get(),c=s&&s.routeId===a.id&&s.pathname===e.pathname,l;if(c)l=s.params;else{let e=Object.assign(Object.create(null),i);for(let t of r)try{Cn(t,e)}catch{}l=e}let u={matchedRoutes:r,fullPath:a.fullPath,search:o,params:l};return this.lightweightCache.set(e,[t,u]),u}},hn=class extends Error{},gn=class extends Error{};function _n(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function vn(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new hn(`Async validation not supported`);if(n.issues)throw new hn(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 yn({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=pe(e),a,o=D(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function bn({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return xn(n)(e,t,r??!1)}function xn(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=vn(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=be(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 Sn(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 Ct}function Cn(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 wn=Symbol.for(`TSR_DEFERRED_PROMISE`);function Tn(e,t){let n=e;return n[wn]?n:(n[wn]={status:`pending`},n.then(e=>{n[wn].status=`success`,n[wn].data=e}).catch(e=>{n[wn].status=`error`,n[wn].error={data:(t?.serializeError??fn)(e),__isServerError:!0}}),n)}function En(e,t){if(e)return typeof e==`string`?e:e[t]}function Dn(e){return e?.scriptFormat??`module`}function On(e,t,n){let r=kn(t),i=En(n,`script`)??r.crossOrigin;return{...Dn(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function kn(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function An(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 jn(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}var Mn=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=Ct:this.parentRoute||ke();let r=n?Ct:t?.path;r&&r!==`/`&&(r=f(r));let i=t?.id||r,a=n?Ct:h([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=h([`/`,a]));let o=a===`__root__`?`/`:h([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=pe(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=>wt({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.`)}},Nn=class extends Mn{constructor(e){super(e)}},Pn=Symbol.asyncIterator,Fn=Symbol.hasInstance,In=Symbol.isConcatSpreadable,Ln=Symbol.iterator,Rn=Symbol.match,zn=Symbol.matchAll,Bn=Symbol.replace,Vn=Symbol.search,Hn=Symbol.species,Un=Symbol.split,Wn=Symbol.toPrimitive,Gn=Symbol.toStringTag,Kn=Symbol.unscopables,qn={[Pn]:0,[Fn]:1,[In]:2,[Ln]:3,[Rn]:4,[zn]:5,[Bn]:6,[Vn]:7,[Hn]:8,[Un]:9,[Wn]:10,[Gn]:11,[Kn]:12},Jn={0:Pn,1:Fn,2:In,3:Ln,4:Rn,5:zn,6:Bn,7:Vn,8:Hn,9:Un,10:Wn,11:Gn,12:Kn},Yn={2:!0,3:!1,1:void 0,0:null,4:-0,5:1/0,6:-1/0,7:NaN},Xn={0:`Error`,1:`EvalError`,2:`RangeError`,3:`ReferenceError`,4:`SyntaxError`,5:`TypeError`,6:`URIError`},Zn={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function F(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 Qn(e){return F(2,void 0,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}var $n=Qn(2),er=Qn(3),tr=Qn(1),nr=Qn(0),rr=Qn(4),ir=Qn(5),ar=Qn(6),or=Qn(7);function sr(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}}function cr(e){let t=``,n=0,r;for(let i=0,a=e.length;i<a;i++)r=sr(e[i]),r&&(t+=e.slice(n,i)+r,n=i+1);return n===0?t=e:t+=e.slice(n),t}function lr(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 ur(e){return e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,lr)}
12var dr=`__SEROVAL_REFS__`,fr=new Map,pr=new Map;function mr(e){return fr.has(e)}function hr(e){return pr.has(e)}function gr(e){if(mr(e))return fr.get(e);throw new ai(e)}function _r(e){if(hr(e))return pr.get(e);throw new oi(e)}typeof globalThis<`u`?Object.defineProperty(globalThis,dr,{value:pr,configurable:!0,writable:!1,enumerable:!1}):typeof window<`u`?Object.defineProperty(window,dr,{value:pr,configurable:!0,writable:!1,enumerable:!1}):typeof self<`u`?Object.defineProperty(self,dr,{value:pr,configurable:!0,writable:!1,enumerable:!1}):typeof global<`u`&&Object.defineProperty(global,dr,{value:pr,configurable:!0,writable:!1,enumerable:!1});function vr(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 yr(e){let t=Xn[vr(e)];return e.name===t?e.constructor.name===t?{}:{name:e.constructor.name}:{name:e.name}}function br(e,t){let n=yr(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 xr(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:+!Object.isExtensible(e)}function Sr(e){switch(e){case 1/0:return ir;case-1/0:return ar}return e===e?Object.is(e,-0)?rr:F(0,void 0,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0):or}function Cr(e){return F(1,void 0,cr(e),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function wr(e){return F(3,void 0,``+e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Tr(e){return F(4,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Er(e,t){let n=t.valueOf();return F(5,e,n===n?t.toISOString():``,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Dr(e,t,n){return F(36,e,n.toString(),t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Or(e,t){return F(6,e,void 0,cr(t.source),t.flags,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function kr(e,t){return F(17,e,qn[t],void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Ar(e,t){return F(18,e,cr(gr(t)),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function jr(e,t,n){return F(25,e,n,cr(t),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Mr(e,t,n){return F(9,e,void 0,void 0,void 0,void 0,void 0,n,void 0,void 0,xr(t),void 0)}function Nr(e,t){return F(21,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function Pr(e,t,n){return F(15,e,void 0,t.constructor.name,void 0,void 0,void 0,void 0,n,t.byteOffset,void 0,t.length)}function Fr(e,t,n){return F(16,e,void 0,t.constructor.name,void 0,void 0,void 0,void 0,n,t.byteOffset,void 0,t.length)}function Ir(e,t,n){return F(20,e,void 0,void 0,void 0,void 0,void 0,void 0,n,t.byteOffset,void 0,t.byteLength)}function Lr(e,t,n){return F(13,e,vr(t),void 0,cr(t.message),n,void 0,void 0,void 0,void 0,void 0,void 0)}function Rr(e,t,n){return F(14,e,vr(t),void 0,cr(t.message),n,void 0,void 0,void 0,void 0,void 0,void 0)}function zr(e,t){return F(7,e,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,void 0)}function Br(e,t){return F(28,void 0,void 0,void 0,void 0,void 0,void 0,[e,t],void 0,void 0,void 0,void 0)}function Vr(e,t){return F(30,void 0,void 0,void 0,void 0,void 0,void 0,[e,t],void 0,void 0,void 0,void 0)}function Hr(e,t,n){return F(31,e,void 0,void 0,void 0,void 0,void 0,n,t,void 0,void 0,void 0)}function Ur(e,t){return F(32,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function Wr(e,t){return F(33,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function Gr(e,t){return F(34,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function Kr(e,t,n,r){return F(35,e,n,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,r)}var{toString:qr}=Object.prototype,Jr={parsing:1,serialization:2,deserialization:3};function Yr(e){return`Seroval Error (step: ${Jr[e]})`}var Xr=(e,t)=>Yr(e),Zr=class extends Error{constructor(e,t){super(Xr(e,t)),this.cause=t}},Qr=class extends Zr{constructor(e){super(`parsing`,e)}},$r=class extends Zr{constructor(e){super(`deserialization`,e)}};function ei(e){return`Seroval Error (specific: ${e})`}
12var ti=class extends Error{constructor(e){super(ei(1)),this.value=e}},ni=class extends Error{constructor(e){super(ei(2))}},ri=class extends Error{constructor(e){super(ei(3))}},ii=class extends Error{constructor(e){super(ei(4))}},ai=class extends Error{constructor(e){super(ei(5)),this.value=e}},oi=class extends Error{constructor(e){super(ei(6))}},si=class extends Error{constructor(e){super(ei(7))}},ci=class extends Error{constructor(e){super(ei(8))}},li=class extends Error{constructor(e){super(ei(9))}},ui=class{constructor(e,t){this.value=e,this.replacement=t}},di=()=>{let e={p:0,s:0,f:0};return e.p=new Promise((t,n)=>{e.s=t,e.f=n}),e},fi=()=>{let e=[],t=[],n=!0,r=!1,i=0,a={flush(e,n,r){for(r=0;r<i;r++)t[r]&&t[r][n](e)},up(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)},on(e,r){return n&&(r=i++,t[r]=e),a.up(e),()=>{n&&(t[r]=t[i],t[i--]=void 0)}}};return{__SEROVAL_STREAM__:!0,on(e){return a.on(e)},next(t){n&&(e.push(t),a.flush(t,`next`))},throw(i){n&&(e.push(i),a.flush(i,`throw`),n=!1,r=!1,t.length=0)},return(i){n&&(e.push(i),a.flush(i,`return`),n=!1,r=!0,t.length=0)}}},pi=e=>t=>()=>{let n=0,r={[e](){return 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},mi=(e,t)=>n=>()=>{let r=0,i=-1,a=!1,o=[],s=[],c={finalize(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.finalize(),i=o.length,a=!0,o.push(e)},return(e){let t=s.shift();t&&t.s({done:!0,value:e}),c.finalize(),i=o.length,o.push(e)}});let l={[e](){return 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},hi=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};function gi(e){return`__SEROVAL_SEQUENCE__`in e}function _i(e,t,n){return{__SEROVAL_SEQUENCE__:!0,v:e,t,d:n}}function vi(e){let t=[],n=-1,r=-1,i=e[Ln]();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 _i(t,n,r)}var yi=pi(Ln);function bi(e){return yi(e)}var xi={},Si={},Ci={0:{},1:{},2:{},3:{},4:{},5:{}};function wi(e){return`__SEROVAL_STREAM__`in e}function Ti(){return fi()}function Ei(e){let t=Ti(),n=e[Pn]();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 Di=mi(Pn,di);function Oi(e){return Di(e)}async function ki(e){try{return[1,await e]}catch(e){return[0,e]}}function Ai(e,t){return{plugins:t.plugins,mode:e,marked:new Set,features:127^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3}}function ji(e,t){e.marked.add(t)}function Mi(e,t){let n=e.refs.size;return e.refs.set(t,n),n}function Ni(e,t){let n=e.refs.get(t);return n==null?{type:0,value:Mi(e,t)}:(ji(e,n),{type:1,value:Tr(n)})}function Pi(e,t){let n=Ni(e,t);return n.type===1?n:mr(t)?{type:2,value:Ar(n.value,t)}:n}function Fi(e,t){let n=Pi(e,t);if(n.type!==0)return n.value;if(t in qn)return kr(n.value,t);throw new ti(t)}function Ii(e,t){let n=Ni(e,Ci[t]);return n.type===1?n.value:F(26,n.value,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Li(e){let t=Ni(e,xi);return t.type===1?t.value:F(27,t.value,void 0,void 0,void 0,void 0,void 0,void 0,Fi(e,Ln),void 0,void 0,void 0)}function I(e){let t=Ni(e,Si);return t.type===1?t.value:F(29,t.value,void 0,void 0,void 0,void 0,void 0,[Ii(e,1),Fi(e,Pn)],void 0,void 0,void 0,void 0)}function Ri(e,t,n,r){return F(n?11:10,e,void 0,void 0,void 0,r,void 0,void 0,void 0,void 0,xr(t),void 0)}function zi(e,t,n,r){return F(8,t,void 0,void 0,void 0,void 0,{k:n,v:r},void 0,Ii(e,0),void 0,void 0,void 0)}function Bi(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 F(19,t,cr(btoa(i)),void 0,void 0,void 0,void 0,void 0,Ii(e,5),void 0,void 0,void 0)}function Vi(e,t){return{base:Ai(e,t),child:void 0}}var Hi=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return ca(this._p,this.depth,e)}};async function Ui(e,t,n){let r=[];for(let i=0,a=n.length;i<a;i++)i in n?r[i]=await ca(e,t,n[i]):r[i]=0;return r}async function Wi(e,t,n,r){return Mr(n,r,await Ui(e,t,r))}async function Gi(e,t,n){let r=Object.entries(n),i=[],a=[];for(let n=0,o=r.length;n<o;n++)i.push(cr(r[n][0])),a.push(await ca(e,t,r[n][1]));return Ln in n&&(i.push(Fi(e.base,Ln)),a.push(Br(Li(e.base),await ca(e,t,vi(n))))),Pn in n&&(i.push(Fi(e.base,Pn)),a.push(Vr(I(e.base),await ca(e,t,Ei(n))))),Gn in n&&(i.push(Fi(e.base,Gn)),a.push(Cr(n[Gn]))),In in n&&(i.push(Fi(e.base,In)),a.push(n[In]?$n:er)),{k:i,v:a}}async function Ki(e,t,n,r,i){return Ri(n,r,i,await Gi(e,t,r))}async function qi(e,t,n,r){return Nr(n,await ca(e,t,r.valueOf()))}async function Ji(e,t,n,r){return Pr(n,r,await ca(e,t,r.buffer))}async function Yi(e,t,n,r){return Fr(n,r,await ca(e,t,r.buffer))}async function Xi(e,t,n,r){return Ir(n,r,await ca(e,t,r.buffer))}async function Zi(e,t,n,r){let i=br(r,e.base.features);return Lr(n,r,i?await Gi(e,t,i):void 0)}async function Qi(e,t,n,r){let i=br(r,e.base.features);return Rr(n,r,i?await Gi(e,t,i):void 0)}async function $i(e,t,n,r){let i=[],a=[];for(let[n,o]of r.entries())i.push(await ca(e,t,n)),a.push(await ca(e,t,o));return zi(e.base,n,i,a)}async function ea(e,t,n,r){let i=[];for(let n of r.keys())i.push(await ca(e,t,n));return zr(n,i)}async function ta(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 jr(n,o.tag,await o.parse.async(r,new Hi(e,t),{id:n}))}}async function na(e,t,n,r){let[i,a]=await ki(r);return F(12,n,i,void 0,void 0,void 0,void 0,void 0,await ca(e,t,a),void 0,void 0,void 0)}function ra(e,t,n,r,i){let a=[],o=n.on({next:n=>{ji(this.base,t),ca(this,e,n).then(e=>{a.push(Ur(t,e))},e=>{i(e),o()})},throw:n=>{ji(this.base,t),ca(this,e,n).then(e=>{a.push(Wr(t,e)),r(a),o()},e=>{i(e),o()})},return:n=>{ji(this.base,t),ca(this,e,n).then(e=>{a.push(Gr(t,e)),r(a),o()},e=>{i(e),o()})}})}async function ia(e,t,n,r){return Hr(n,Ii(e.base,4),await new Promise(ra.bind(e,t,n,r)))}async function aa(e,t,n,r){let i=[];for(let n=0,a=r.v.length;n<a;n++)i[n]=await ca(e,t,r.v[n]);return Kr(n,i,r.t,r.d)}async function oa(e,t,n,r){if(Array.isArray(r))return Wi(e,t,n,r);if(wi(r))return ia(e,t,n,r);if(gi(r))return aa(e,t,n,r);let i=r.constructor;if(i!==void 0&&typeof i!=`function`){let e=Object.getPrototypeOf(r);i=e===null?void 0:e.constructor}if(i===ui)return ca(e,t,r.replacement);let a=await ta(e,t,n,r);if(a)return a;switch(i){case Object:return Ki(e,t,n,r,!1);case void 0:return Ki(e,t,n,r,!0);case Date:return Er(n,r);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return Zi(e,t,n,r);case Number:case Boolean:case String:case BigInt:return qi(e,t,n,r);case ArrayBuffer:return Bi(e.base,n,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return Ji(e,t,n,r);case DataView:return Xi(e,t,n,r);case Map:return $i(e,t,n,r);case Set:return ea(e,t,n,r)}if(i===Promise||r instanceof Promise)return na(e,t,n,r);let o=e.base.features;if(o&32&&i===RegExp)return Or(n,r);if(o&16)switch(i){case BigInt64Array:case BigUint64Array:return Yi(e,t,n,r);default:break}if(o&1&&typeof AggregateError<`u`&&(i===AggregateError||r instanceof AggregateError))return Qi(e,t,n,r);if(o&64&&typeof Temporal<`u`)switch(i){case Temporal.Instant:return Dr(n,0,r);case Temporal.Duration:return Dr(n,1,r);case Temporal.PlainDate:return Dr(n,2,r);case Temporal.PlainDateTime:return Dr(n,3,r);case Temporal.PlainMonthDay:return Dr(n,4,r);case Temporal.PlainTime:return Dr(n,5,r);case Temporal.PlainYearMonth:return Dr(n,6,r);case Temporal.ZonedDateTime:return Dr(n,7,r);default:break}if(r instanceof Error)return Zi(e,t,n,r);if(Ln in r||Pn in r)return Ki(e,t,n,r,!!i);throw new ti(r)}async function sa(e,t,n){let r=Pi(e.base,n);if(r.type!==0)return r.value;let i=await ta(e,t,r.value,n);if(i)return i;throw new ti(n)}async function ca(e,t,n){if(t>=e.base.depthLimit)throw new li(e.base.depthLimit);switch(typeof n){case`boolean`:return n?$n:er;case`undefined`:return tr;case`string`:return Cr(n);case`number`:return Sr(n);case`bigint`:return wr(n);case`object`:if(n){let r=Pi(e.base,n);return r.type===0?await oa(e,t+1,r.value,n):r.value}return nr;case`symbol`:return Fi(e.base,n);case`function`:return sa(e,t,n);default:throw new ti(n)}}async function la(e,t){try{return await ca(e,0,t)}catch(e){throw e instanceof Qr?e:new Qr(e)}}function ua(e){return e}function da(e,t){for(let n=0,r=t.length;n<r;n++){let r=t[n];e.has(r)||(e.add(r),r.extends&&da(e,r.extends))}}function fa(e){if(e){let t=new Set;return da(t,e),[...t]}}function pa(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 si(e)}}function ma(e){switch(e){case`constructor`:case`__proto__`:case`prototype`:case`__defineGetter__`:case`__defineSetter__`:case`__lookupGetter__`:case`__lookupSetter__`:return!1;default:return!0}}function ha(e){switch(e){case Pn:case In:case Gn:case Ln:return!0;default:return!1}}var ga=1e6,_a=1e4,va=2e4;function ya(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 ba=1e3;function xa(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??127^(t.disabledFeatures||0),depthLimit:t.depthLimit||ba}}
12function Sa(e){return{mode:2,base:xa(2,e),child:void 0}}var Ca=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return lo(this._p,this.depth,e)}};function wa(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new ci({t:4,i:t});if(e.refs.has(t))throw Error(`Conflicted ref id: `+t)}function Ta(e){return!!e&&typeof e==`object`&&`then`in e&&typeof e.then==`function`}function Ea(e,t,n){return wa(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,n),n}function Da(e,t,n){return wa(e.base,t),e.base.refs.set(t,n),n}function Oa(e,t,n){return e.mode===1?Ea(e,t,n):Da(e,t,n)}function ka(e,t,n){if(Object.hasOwn(t,n))return t[n];throw new ci(e)}function Aa(e,t){return Oa(e,t.i,_r(ur(t.s)))}function ja(e,t,n){let r=n.a,i=r.length,a=Oa(e,n.i,Array(i));for(let n=0,o;n<i;n++)o=r[n],o&&(a[n]=lo(e,t,o));return ya(a,n.o),a}function Ma(e,t,n){ma(t)?e[t]=n:Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!0,writable:!0})}function Na(e,t,n,r,i){if(typeof r==`string`)Ma(n,ur(r),lo(e,t,i));else{let a=lo(e,t,r);switch(typeof a){case`string`:Ma(n,a,lo(e,t,i));break;case`symbol`:ha(a)&&(n[a]=lo(e,t,i));break;default:throw new ci(r)}}}function Pa(e,t,n){e.base.refs.types.set(t,n)}function Fa(e,t,n,r){if(e.base.refs.types.get(n)!==r)throw new ci(t)}function Ia(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++)Na(e,t,r,i[a],o[a]);return r}function La(e,t,n){let r=Oa(e,n.i,n.t===10?{}:Object.create(null));return Ia(e,t,n.p,r),ya(r,n.o),r}function Ra(e,t){return Oa(e,t.i,new Date(t.s))}function za(e,t){if(!(e.base.features&64))throw new ni(t);let n;switch(t.c){case 0:n=Temporal.Instant.from(t.s);break;case 1:n=Temporal.Duration.from(t.s);break;case 2:n=Temporal.PlainDate.from(t.s);break;case 3:n=Temporal.PlainDateTime.from(t.s);break;case 4:n=Temporal.PlainMonthDay.from(t.s);break;case 5:n=Temporal.PlainTime.from(t.s);break;case 6:n=Temporal.PlainYearMonth.from(t.s);break;case 7:n=Temporal.ZonedDateTime.from(t.s);break;default:throw new ci(t)}return Oa(e,t.i,n)}function Ba(e,t){if(e.base.features&32){let n=ur(t.c);if(n.length>va)throw new ci(t);return Oa(e,t.i,new RegExp(n,t.m))}throw new ni(t)}function Va(e,t,n){let r=Oa(e,n.i,new Set);for(let i=0,a=n.a,o=a.length;i<o;i++)r.add(lo(e,t,a[i]));return r}function Ha(e,t,n){let r=Oa(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(lo(e,t,a[i]),lo(e,t,o[i]));return r}function Ua(e,t){if(t.s.length>ga)throw new ci(t);return Oa(e,t.i,hi(ur(t.s)))}function Wa(e,t,n){let r=pa(n.c),i=lo(e,t,n.f),a=n.b??0;if(a<0||a>i.byteLength)throw new ci(n);return Oa(e,n.i,new r(i,a,n.l))}function Ga(e,t,n){let r=lo(e,t,n.f),i=n.b??0;if(i<0||i>r.byteLength)throw new ci(n);return Oa(e,n.i,new DataView(r,i,n.l))}function Ka(e,t,n,r){if(n.p){let i=Ia(e,t,n.p,{});Object.defineProperties(r,Object.getOwnPropertyDescriptors(i))}return r}function qa(e,t,n){return Ka(e,t,n,Oa(e,n.i,AggregateError([],ur(n.m))))}function Ja(e,t,n){let r=ka(n,Zn,n.s);return Ka(e,t,n,Oa(e,n.i,new r(ur(n.m))))}function Ya(e,t,n){let r=di(),i=Oa(e,n.i,r.p),a=lo(e,t,n.f);if(Ta(a))throw new ci(n.f);return n.s?r.s(a):r.f(a),i}function Xa(e,t,n){return Oa(e,n.i,Object(lo(e,t,n.f)))}function Za(e,t,n){let r=e.base.plugins;if(r){let i=ur(n.c);for(let a=0,o=r.length;a<o;a++){let o=r[a];if(o.tag===i)return Oa(e,n.i,o.deserialize(n.s,new Ca(e,t),{id:n.i}))}}throw new ri(n.c)}function Qa(e,t){let n=Oa(e,t.i,Oa(e,t.s,di()).p);return Pa(e,t.s,22),n}function $a(e,t,n){let r=e.base.refs.get(n.i);if(r){Fa(e,n,n.i,22);let i=lo(e,t,n.a[1]);if(Ta(i))throw new ci(n.a[1]);n.t===23?r.s(i):r.f(i);return}throw new ii(`Promise`)}function eo(e,t,n){return lo(e,t,n.a[0]),bi(lo(e,t,n.a[1]))}function to(e,t,n){return lo(e,t,n.a[0]),Oi(lo(e,t,n.a[1]))}function no(e,t,n){let r=Oa(e,n.i,Ti());Pa(e,n.i,31);let i=n.a,a=i.length;if(a)for(let n=0;n<a;n++)lo(e,t,i[n]);return r}function ro(e,t,n){let r=e.base.refs.get(n.i);if(r){Fa(e,n,n.i,31),r.next(lo(e,t,n.f));return}throw new ii(`Stream`)}function io(e,t,n){let r=e.base.refs.get(n.i);if(r){Fa(e,n,n.i,31),r.throw(lo(e,t,n.f));return}throw new ii(`Stream`)}
12function ao(e,t,n){let r=e.base.refs.get(n.i);if(r){Fa(e,n,n.i,31),r.return(lo(e,t,n.f));return}throw new ii(`Stream`)}function oo(e,t,n){lo(e,t,n.f)}function so(e,t,n){lo(e,t,n.a[1])}function co(e,t,n){let r=Oa(e,n.i,_i([],n.s,n.l));for(let i=0,a=n.a.length;i<a;i++)r.v[i]=lo(e,t,n.a[i]);return r}function lo(e,t,n){if(t>e.base.depthLimit)throw new li(e.base.depthLimit);switch(t+=1,n.t){case 2:return ka(n,Yn,n.s);case 0:return Number(n.s);case 1:return ur(String(n.s));case 3:if(String(n.s).length>_a)throw new ci(n);return BigInt(n.s);case 4:return e.base.refs.get(n.i);case 18:return Aa(e,n);case 9:return ja(e,t,n);case 10:case 11:return La(e,t,n);case 5:return Ra(e,n);case 6:return Ba(e,n);case 7:return Va(e,t,n);case 8:return Ha(e,t,n);case 19:return Ua(e,n);case 16:case 15:return Wa(e,t,n);case 20:return Ga(e,t,n);case 14:return qa(e,t,n);case 13:return Ja(e,t,n);case 12:return Ya(e,t,n);case 17:return ka(n,Jn,n.s);case 21:return Xa(e,t,n);case 25:return Za(e,t,n);case 22:return Qa(e,n);case 23:case 24:return $a(e,t,n);case 28:return eo(e,t,n);case 30:return to(e,t,n);case 31:return no(e,t,n);case 32:return ro(e,t,n);case 33:return io(e,t,n);case 34:return ao(e,t,n);case 27:return oo(e,t,n);case 29:return so(e,t,n);case 35:return co(e,t,n);case 36:return za(e,n);default:throw new ni(n)}}function uo(e,t){try{return lo(e,0,t)}catch(e){throw new $r(e)}}function fo(e,t){return uo(Sa({plugins:fa(t.plugins),refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit}),e)}async function po(e,t={}){let n=Vi(1,{plugins:fa(t.plugins),disabledFeatures:t.disabledFeatures});return{t:await la(n,e),f:n.base.features,m:Array.from(n.base.marked)}}function mo(e){return e}function ho(e){return ua({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 go=class{constructor(e,t){this.stream=e,this.hint=t?.hint??`binary`}},L=globalThis.Buffer,R=!!L&&typeof L.from==`function`;function _o(e){if(e.length===0)return``;if(R)return L.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 vo(e){if(e.length===0)return new Uint8Array;
12if(R){let t=L.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 yo=Object.create(null),bo=Object.create(null),xo=e=>new ReadableStream({start(t){e.on({next(e){try{t.enqueue(vo(e))}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),So=new TextEncoder,Co=e=>new ReadableStream({start(t){e.on({next(e){try{typeof e==`string`?t.enqueue(So.encode(e)):t.enqueue(vo(e.$b64))}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),wo=`(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(_){}}})}}))`,To=`(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 Eo(e){let t=Ti(),n=e.getReader();return(async()=>{try{for(;;){let{done:e,value:r}=await n.read();if(e){t.return(void 0);break}t.next(_o(r))}}catch(e){t.throw(e)}finally{n.releaseLock()}})(),t}function Do(e){let t=Ti(),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:_o(i)})}}}catch(e){t.throw(e)}finally{n.releaseLock()}})(),t}var Oo=ua({tag:`tss/RawStream`,extends:[ua({tag:`tss/RawStreamFactory`,test(e){return e===yo},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return wo},deserialize(e,t,n){return yo}}),ua({tag:`tss/RawStreamFactoryText`,test(e){return e===bo},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return To},deserialize(e,t,n){return bo}})],test(e){return e instanceof go},parse:{sync(e,t,n){let r=e.hint===`text`?bo:yo;return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(Ti())}},async async(e,t,n){let r=e.hint===`text`?bo:yo,i=e.hint===`text`?Do(e.stream):Eo(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`?bo:yo,i=e.hint===`text`?Do(e.stream):Eo(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`?Co(r):xo(r)}});function ko(e){return ua({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 Ao=ua({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))}}),jo={},Mo=e=>new ReadableStream({start(t){e.on({next(e){try{t.enqueue(e)}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),No=ua({tag:`seroval-plugins/web/ReadableStreamFactory`,test(e){return e===jo},parse:{sync(){return jo},async async(){return await Promise.resolve(jo)},stream(){return jo}},serialize(){return Mo.toString()},deserialize(){return jo}});async function Po(e,t){try{let n=await t.read();n.done?(e.return(n.value),t.releaseLock()):(e.next(n.value),await Po(e,t))}catch(t){e.throw(t)}}function Fo(e){e.cancel().catch(()=>{}),e.releaseLock()}function Io(e){let t=Ti(),n=e.getReader(),r=Fo.bind(null,n);return Po(t,n).catch(r),[t,r]}var Lo=[Ao,Oo,ua({tag:`seroval/plugins/web/ReadableStream`,extends:[No],test(e){return typeof ReadableStream>`u`?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(jo),stream:t.parse(Ti())}},async async(e,t){return{factory:await t.parse(jo),stream:await t.parse(Io(e)[0])}},stream(e,t){let[n,r]=Io(e);return t.addCleanup(r),{factory:t.parse(jo),stream:t.parse(n)}}},serialize(e,t){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t){return Mo(t.deserialize(e.stream))}})];function Ro(){return[...(et()?.serializationAdapters)?.map(ho)??[],...Lo]}var zo=new TextDecoder,Bo=new Uint8Array,Vo=16777216,Ho=33554432,Uo=1024,Wo=1e5;function Go(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>=Uo)throw Error(`Too many raw streams in framed response (max ${Uo})`);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 Bo;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>Ho)throw Error(`Framed response buffer exceeded ${Ho} bytes`);for(c.push(a),l+=a.length;;){let e=d();if(!e)break;let{type:n,streamId:i,length:a}=e;if(n!==Xe.JSON&&n!==Xe.CHUNK&&n!==Xe.END&&n!==Xe.ERROR)throw Error(`Unknown frame type: ${n}`);if(n===Xe.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>Vo)throw Error(`Frame payload too large: ${a} bytes (max ${Vo})`);let c=9+a;if(l<c)break;if(++o>Wo)throw Error(`Too many frames in framed response (max ${Wo})`);f(9);let p=f(a);switch(n){case Xe.JSON:try{s.enqueue(zo.decode(p))}catch{}break;case Xe.CHUNK:{let e=u(i);e&&e.enqueue(p);break}case Xe.END:{let e=u(i);if(r.add(i),e){try{e.close()}catch{}t.delete(i)}break}case Xe.ERROR:{let e=u(i);if(r.add(i),e){let n=zo.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 Ko=null;async function qo(e){e.length>0&&await Promise.allSettled(e)}var Jo=Object.prototype.hasOwnProperty;function Yo(e){for(let t in e)if(Jo.call(e,t))return!0;return!1}async function Xo(e,t,n){Ko||=Ro();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`,`${Ye}, application/x-ndjson, application/json`),r.method===`GET`){if(a===`formData`)throw Error(`FormData is not supported with GET requests`);let t=await Zo(r);if(t!==void 0){let n=gt({payload:t});e.includes(`?`)?e+=`&${n}`:e+=`?${n}`}}let s;if(r.method===`POST`){let e=await $o(r);e?.contentType&&o.set(`content-type`,e.contentType),s=e?.body}return await es(async()=>i(e,{method:r.method,headers:o,signal:r.signal,body:s}))}async function Zo(e){let t=!1,n={};if(e.data!==void 0&&(t=!0,n.data=e.data),e.context&&Yo(e.context)&&(t=!0,n.context=e.context),t)return Qo(n)}async function Qo(e){return JSON.stringify(await Promise.resolve(po(e,{plugins:Ko})))}async function $o(e){if(e.data instanceof FormData){let t;return e.context&&Yo(e.context)&&(t=await Qo(e.context)),t!==void 0&&e.data.set(qe,t),{body:e.data}}let t=await Zo(e);if(t)return{body:t,contentType:`application/json`}}async function es(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||ke(),t.headers.get(`x-tss-serialized`)){let e;if(n.includes(`application/x-tss-framed`)){if($e(n),!t.body)throw Error(`No response body for framed response`);
12let{getOrCreateStream:r,jsonChunks:i}=Go(t.body),a=[ko(r),...Ko||[]],o=new Map;e=await ts({jsonStream:i,onMessage:e=>fo(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=fo(n,{plugins:Ko})}finally{}await qo(r)}if(e||ke(),e instanceof Error)throw e;return e}if(n.includes(`application/json`)){let e=await t.json(),n=Et(e);if(n)throw n;if(tt(e))throw e;return e}if(!t.ok)throw Error(await t.text());return t}async function ts({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 qo(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 qo(u),Promise.resolve(l).catch(()=>{s=!0,r.cancel().catch(()=>{})}),c.finally(()=>{try{r.releaseLock()}catch{}}),l}function ns(e){let t=`/_serverFn/`+e;return Object.assign((...e)=>{let n=et()?.serverFns?.fetch;return Xo(t,e,n??fetch)},{url:t,serverFnMeta:{id:e},[Je]:!0})}var rs=mo({key:`$TSS/serverfn`,test:e=>typeof e!=`function`||!(Je in e)?!1:!!e[Je],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>ns(e)});function is(e){return e.replaceAll(`\0`,`/`).replaceAll(`�`,`/`)}function as(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 os(e){window.$_TSR||ke();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||ke();let n=window.$_TSR.router;n.matches.forEach(e=>{e.i=is(e.i)}),n.lastMatchId&&=is(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=y();t._nonReactive.minPendingPromise=r,t._forcePending=!0,setTimeout(()=>{r.resolve(),e.updateMatch(t.id,e=>(e._nonReactive.minPendingPromise=void 0,{...e,_forcePending:void 0}))},n)}}function u(t){let n=e.looseRoutesById[t.routeId];n&&(n.options.ssr=t.ssr)}let d;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}as(e,t),u(e),e._nonReactive.dehydrated=e.ssr!==!1,(e.ssr===`data-only`||e.ssr===!1)&&d===void 0&&(d=e.index,l(e))}),e.stores.setMatches(s);let f=e.stores.matches.get(),p=e.stores.location.get();await Promise.all(f.map(async t=>{try{let n=e.looseRoutesById[t.routeId],r=f[t.index-1]?.context??e.options.context;if(n.options.context){let i={deps:t.loaderDeps,params:t.params,context:r??{},location:p,navigate:t=>e.navigate({...t,_fromLocation:p}),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:f,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(tt(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 m=s[s.length-1].id!==a;if(!s.some(e=>e.ssr===!1)&&!m)return s.forEach(e=>{e._nonReactive.dehydrated=void 0}),e.stores.resolvedLocation.set(e.stores.location.get()),c;let h=Promise.resolve().then(()=>e.load()).catch(e=>{console.error(`Error during router hydration:`,e)});if(m){let t=s[1];t||ke(),l(t),t._displayPending=!0,t._nonReactive.displayPendingPromise=h,h.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 z=n(a(),1),B=e();function ss({promise:e}){if(De)return De(e);let t=Tn(e);if(t[wn].status===`pending`)throw t;if(t[wn].status===`error`)throw t[wn].error;return t[wn].data}function cs(e){let t=(0,B.jsx)(ls,{...e});return e.fallback?(0,B.jsx)(z.Suspense,{fallback:e.fallback,children:t}):t}function ls(e){let t=ss(e);return e.children(t)}function us(e){let t=e.errorComponent??fs;return(0,B.jsx)(ds,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?z.createElement(t,{error:n,reset:r}):e.children})}var ds=class extends z.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function fs({error:e}){let[t,n]=z.useState(!1);return(0,B.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,B.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,B.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,B.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,B.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,B.jsx)(`div`,{children:(0,B.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,B.jsx)(`code`,{children:e.message}):null})}):null]})}var ps=(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))(ps||{});function ms({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 hs(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 gs=[],_s=0,{link:vs,unlink:ys,propagate:bs,checkDirty:xs,shallowPropagate:Ss}=ms({update(e){return e._update()},notify(e){gs[ws++]=e,e.flags&=~ps.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=ps.Mutable|ps.Dirty,Os(e))}}),Cs=0,ws=0,Ts,Es=0;function Ds(e){try{++Es,e()}finally{--Es||ks()}}function Os(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=ys(n,e)}function ks(){if(!(Es>0)){for(;Cs<ws;){let e=gs[Cs];gs[Cs++]=void 0,e.notify()}Cs=0,ws=0}}function As(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?ps.None:ps.Mutable,get(){return Ts!==void 0&&vs(i,Ts,_s),i._snapshot},subscribe(e){let t=hs(e),n={current:!1},r=js(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Ts,o=t?.compare??Object.is;if(n)Ts=i,++_s,i.depsTail=void 0;else if(e===void 0)return!1;
12n&&(i.flags=ps.Mutable|ps.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{Ts=a,n&&(i.flags&=~ps.RecursedCheck),Os(i)}}};return n?(i.flags=ps.Mutable|ps.Dirty,i.get=function(){let e=i.flags;if(e&ps.Dirty||e&ps.Pending&&xs(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Ss(e)}}else e&ps.Pending&&(i.flags=e&~ps.Pending);return Ts!==void 0&&vs(i,Ts,_s),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(bs(e),Ss(e),ks())}},i}function js(e){let t=()=>{let t=Ts;Ts=n,++_s,n.depsTail=void 0,n.flags=ps.Watching|ps.RecursedCheck;try{return e()}finally{Ts=t,n.flags&=~ps.RecursedCheck,Os(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:ps.Watching|ps.RecursedCheck,notify(){let e=this.flags;e&ps.Dirty||e&ps.Pending&&xs(this.deps,this)?t():this.flags=ps.Watching},stop(){this.flags=ps.None,this.depsTail=void 0,Os(this)}};return t(),n}function Ms(e){return ge({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Ns(e){let{select:t,...n}=e;return ge({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Ps(e){return ge({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 Fs(e){return ge({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Is(e){return ge({...e,select:t=>e.select?e.select(t.context):t.context})}var Ls=class extends Mn{constructor(e){super(e),this.useMatch=e=>ge({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Is({...e,from:this.id}),this.useSearch=e=>Fs({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>Ps({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Ns({...e,from:this.id}),this.useLoaderData=e=>Ms({...e,from:this.id}),this.useNavigate=()=>ye({from:this.fullPath}),this.Link=z.forwardRef((e,t)=>(0,B.jsx)(ue,{ref:t,from:this.fullPath,...e}))}};function Rs(e){return new Ls(e)}function zs(){return e=>Vs(e)}var Bs=class extends Nn{constructor(e){super(e),this.useMatch=e=>ge({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Is({...e,from:this.id}),this.useSearch=e=>Fs({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>Ps({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Ns({...e,from:this.id}),this.useLoaderData=e=>Ms({...e,from:this.id}),this.useNavigate=()=>ye({from:this.fullPath}),this.Link=z.forwardRef((e,t)=>(0,B.jsx)(ue,{ref:t,from:this.fullPath,...e}))}};function Vs(e){return new Bs(e)}function V(e){return new Hs(e,{silent:!0}).createRoute}var Hs=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=Rs(e);return t.isRoot=!1,t},this.silent=t?.silent}};function H(e,t){let n,r,i,a,o=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,j(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),s=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r){if(De)De(o());else throw o()}return z.createElement(r,e)};return s.preload=o,s}function Us(e){let t=ae(),n=`not-found-${P(t.stores.location,e=>e.pathname)}-${P(t.stores.status,e=>e)}`;return(0,B.jsx)(us,{getResetKey:()=>n,onCatch:(t,n)=>{if(tt(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(tt(t))return e.fallback?.(t);throw t},children:e.children})}function Ws(){return(0,B.jsx)(`p`,{children:`Not Found`})}function Gs(e){return(0,B.jsx)(B.Fragment,{children:e.children})}function Ks(e,t,n){return t.options.notFoundComponent?(0,B.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,B.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,B.jsx)(Ws,{})}var qs=(e,t)=>e.routeId===t.routeId&&e._displayPending===t._displayPending,Js=(e,t)=>
12e[0]===t[0]&&e[1]===t[1],Ys=z.memo(function({matchId:e}){let t=ae(),n=t.stores.matchStores.get(e);n||ke();let r=P(t.stores.loadedAt,e=>e),i=P(n,e=>e,qs);return(0,B.jsx)(Xs,{router:t,matchId:e,resetKey:r,matchState:z.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function Xs({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,B.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?z.Suspense:Gs,f=s?us:Gs,p=l?Us:Gs;return(0,B.jsxs)(i.isRoot?i.options.shellComponent??Gs:Gs,{children:[(0,B.jsx)(de.Provider,{value:t,children:(0,B.jsx)(d,{fallback:o,children:(0,B.jsx)(f,{getResetKey:()=>n,errorComponent:s||fs,onCatch:(e,t)=>{if(tt(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,B.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return z.createElement(l,e)},children:u||r._displayPending?(0,B.jsx)(Oe,{fallback:o,children:(0,B.jsx)(Qs,{matchId:t})}):(0,B.jsx)(Qs,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(Zs,{}),(e.options.scrollRestoration,null)]}):null]})}function Zs(){let e=ae(),t=z.useRef();return ee(()=>{let n=e.stores.resolvedLocation.get(),r=t.current;n&&(!r||r.href!==n.href)&&e.emit({type:`onRendered`,...pn(e.stores.location.get(),r??n)}),t.current=n},[P(e.stores.resolvedLocation,e=>e?.state.__TSR_key),e]),null}var Qs=z.memo(function({matchId:e}){let t=ae(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||ke();let i=P(r,e=>e),a=i.routeId,o=t.routesById[a],s=z.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=z.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,B.jsx)(e,{},s):(0,B.jsx)($s,{})},[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=y();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return tt(i.error)||ke(),Ks(t,o,i.error);if(i.status===`redirected`)throw Tt(i.error)||ke(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),$s=z.memo(function(){let e=ae(),t=z.useContext(de),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=P(a,e=>[e?.routeId,e?.globalNotFound??!1],Js),i=P(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,B.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||ke(),Ks(e,a,void 0);if(!i)return null;let s=(0,B.jsx)(Ys,{matchId:i});return n===`__root__`?(0,B.jsx)(z.Suspense,{fallback:o,children:s}):s});function ec(){let e=ae(),t=z.useRef({router:e,mounted:!1}),[n,r]=z.useState(!1),i=P(e.stores.isLoading,e=>e),a=P(e.stores.hasPending,e=>e),o=m(i),s=i||n||a,c=m(s),l=i||a,u=m(l);return e.startTransition=e=>{r(!0),z.startTransition(()=>{e(),r(!1)})},z.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return pe(e.latestLocation.publicHref)!==pe(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),ee(()=>{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]),ee(()=>{o&&!i&&e.emit({type:`onLoad`,...pn(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),ee(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...pn(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),ee(()=>{if(c&&!s){let t=pn(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),Ds(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function tc(){let e=ae(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,B.jsx)(t,{}):null,r=(0,B.jsxs)(typeof document<`u`&&e.ssr?Gs:z.Suspense,{fallback:n,children:[(0,B.jsx)(ec,{}),(0,B.jsx)(nc,{})]});return e.options.InnerWrap?(0,B.jsx)(e.options.InnerWrap,{children:r}):r}function nc(){let e=ae(),t=P(e.stores.firstId,e=>e),n=P(e.stores.loadedAt,e=>e),r=t?(0,B.jsx)(Ys,{matchId:t}):null;return(0,B.jsx)(de.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,B.jsx)(us,{getResetKey:()=>n,errorComponent:fs,onCatch:void 0,children:r})})}var rc=e=>({createMutableStore:As,createReadonlyStore:As,batch:Ds}),ic=e=>new ac(e),ac=class extends mn{constructor(e){super(e,rc)}};function oc({router:e,children:t,...n}
12){x(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,B.jsx)(Te.Provider,{value:e,children:t});return e.options.Wrap?(0,B.jsx)(e.options.Wrap,{children:r}):r}function sc({router:e,...t}){return(0,B.jsx)(oc,{router:e,...t,children:(0,B.jsx)(tc,{})})}function cc(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 lc(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,B.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,B.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,B.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,B.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,B.jsx)(uc,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function uc({attrs:e,children:t,preventScriptHoist:n}){ae();let r=se(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(z.useEffect(()=>{if(!i){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();for(let e of document.querySelectorAll(`script[src]`))if(e.src===t)return;let n=document.createElement(`script`);return cc(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,cc(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,B.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,B.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,B.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var dc=e=>{let t=ae(),n=t.options.ssr?.nonce,r=P(t.stores.matches,e=>e.map(e=>e.meta).filter(e=>e!==void 0),A),i=z.useMemo(()=>{let e=[],t={},i;for(let a=r.length-1;a>=0;a--){let o=r[a];for(let r=o.length-1;r>=0;r--){let a=o[r];if(a){if(a.title)i||={tag:`title`,children:a.title};else if(`script:ld+json`in a)try{let t=JSON.stringify(a[`script:ld+json`]);e.push({tag:`script`,attrs:{type:`application/ld+json`},children:S(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=P(t.stores.matches,e=>e.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:n}})),A),o=P(t.stores.matches,r=>{let i=t.ssr?.manifest,a=[];return i?(r.forEach(t=>{i.routes[t.routeId]?.css?.forEach(t=>{let r=jn(t);a.push({tag:`link`,attrs:{rel:`stylesheet`,...r,crossOrigin:En(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},A),s=P(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:{...On(a,t,e),nonce:n}})})}),i},A),c=P(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})),A),l=P(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})),A),u=[];return An(u,i),u.push(...s),An(u,a),u.push(...o),An(u,c),An(u,l),u};function fc(e){let t=dc(e.assetCrossOrigin),n=ae().options.ssr?.nonce;return(0,B.jsx)(B.Fragment,{children:t.map(e=>(0,z.createElement)(lc,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var pc=()=>{let e=ae(),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=P(e.stores.matches,n,A);return mc(e,P(e.stores.matches,r,A),i)};function mc(e,t,n){let r=[...t,...n];return(0,B.jsx)(B.Fragment,{children:r.map((e,t)=>(0,z.createElement)(lc,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var hc=(e,t)=>{let n={type:`request`,...t||e},r=e=>hc({},Object.assign(n,{validator:e,inputValidator:e}));return{options:n,middleware:e=>hc({},Object.assign(n,{middleware:e})),validator:r,inputValidator:r,client:e=>hc({},Object.assign(n,{client:e})),server:e=>hc({},Object.assign(n,{server:e}))}};function gc(e,t){for(let n=0,r=t.length;n<r;n++){let r=t[n];e.has(r)||(e.add(r),r.extends&&gc(e,r.extends))}}var _c=e=>({getOptions:async()=>{let t=await e();if(t.serializationAdapters){let e=new Set;gc(e,t.serializationAdapters),t.serializationAdapters=Array.from(e)}return t},createMiddleware:hc}),vc=hc(),yc=void 0,bc=_c(()=>({requestMiddleware:[vc,yc]})),xc=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(){}},Sc=new class extends xc{#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`}},Cc={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},wc=new class{#e=Cc;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 Tc(e){setTimeout(e,0)}var Ec=typeof window>`u`||`Deno`in globalThis;function Dc(){}function Oc(e,t){return typeof e==`function`?e(t):e}function kc(e){return typeof e==`number`&&e>=0&&e!==1/0}function Ac(e,t){return Math.max(e+(t||0)-Date.now(),0)}function jc(e,t){return typeof e==`function`?e(t):e}function Mc(e,t){return typeof e==`function`?e(t):e}function Nc(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Fc(o,t.options))return!1}else if(!Lc(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 Pc(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Ic(t.options.mutationKey)!==Ic(a))return!1}else if(!Lc(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Fc(e,t){return(t?.queryKeyHashFn||Ic)(e)}function Ic(e){return JSON.stringify(e,(e,t)=>Vc(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Lc(e,t){if(e===t)return!0;if(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(!Lc(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!Lc(e[r],t[r]))return!1;return!0}return!1}var Rc=Object.prototype.hasOwnProperty;function zc(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=Bc(e)&&Bc(t);if(!r&&!(Vc(e)&&Vc(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:Rc.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=zc(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function Bc(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Vc(e){if(!Hc(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!Hc(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function Hc(e){return Object.prototype.toString.call(e)===`[object Object]`}function Uc(e){return new Promise(t=>{wc.setTimeout(t,e)})}
12function Wc(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:zc(e,t)}function Gc(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Kc(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var qc=Symbol();function Jc(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===qc?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Yc(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 Xc=(()=>{let e=()=>Ec;return{isServer(){return e()},setIsServer(t){e=t}}})();function Zc(){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 Qc=Tc;function $c(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Qc,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 el=$c(),tl=new class extends xc{#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 nl(e){return Math.min(1e3*2**e,3e4)}function rl(e){return(e??`online`)!==`online`||tl.isOnline()}var il=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function al(e){let t=!1,n=0,r,i=Zc(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new il(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>Sc.isFocused()&&(e.networkMode===`always`||tl.isOnline())&&e.canRun(),u=()=>rl(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??(Xc.isServer()?0:3),o=e.retryDelay??nl,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),Uc(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 ol=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),kc(this.gcTime)&&(this.#e=wc.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Xc.isServer()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(wc.clearTimeout(this.#e),this.#e=void 0)}};function sl(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Yc(e,()=>t.signal,()=>n=!0)},u=Jc(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?Kc:Gc;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?ll:cl,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:cl(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 cl(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 ll(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var ul=class extends ol{#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=pl(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=pl(this.options);e.data!==void 0&&(this.setState(fl(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=Wc(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(Dc).catch(Dc):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=>Mc(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===qc||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
12Count>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>jc(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:!Ac(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=Jc(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`?sl(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=al({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof il&&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 il){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,...dl(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...fl(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),el.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function dl(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:rl(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function fl(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function pl(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdate
12Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var ml=class extends ol{#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||hl(),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=al({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),el.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function hl(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var gl=class extends xc{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 ml({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=_l(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=_l(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=_l(e);
12if(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=_l(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){el.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=>Pc(t,e))}findAll(e={}){return this.getAll().filter(t=>Pc(e,t))}notify(e){el.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return el.batch(()=>Promise.all(e.map(e=>e.continue().catch(Dc))))}};function _l(e){return e.options.scope?.id}var vl=class extends xc{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??Fc(r,t),a=this.get(i);return a||(a=new ul({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(){el.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=>Nc(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Nc(e,t)):t}notify(e){el.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){el.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){el.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},yl=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new vl,this.#t=e.mutationCache||new gl,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Sc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=tl.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(jc(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=Oc(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return el.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;el.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return el.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=el.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(Dc).catch(Dc)}invalidateQueries(e,t={}){return el.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=el.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(Dc)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(Dc)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(jc(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Dc).catch(Dc)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Dc).catch(Dc)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return tl.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(Ic(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{Lc(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(Ic(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{Lc(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||=Fc(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===qc&&(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()}},bl=z.createContext(void 0),xl=({client:e,children:t})=>(z.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,B.jsx)(bl.Provider,{value:e,children:t})),Sl=Object.defineProperty,Cl=(e,t)=>Sl(e,`name`,{value:t,configurable:!0});function wl(e){let t=e+`CollectionProvider`,[n,r]=Re(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=Cl(e=>{let{scope:t,children:n}=e,r=z.useRef(null),a=z.useRef(new Map).current;return(0,B.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=ce(s),l=z.forwardRef((e,t)=>
12{let{scope:n,children:r}=e,i=a(s,n),o=we(t,i.collectionRef);return(0,B.jsx)(c,{ref:o,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=ce(u),p=z.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=z.useRef(null),s=we(t,o),c=a(u,n);return z.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,B.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return z.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return Cl(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}Cl(wl,`createCollection`);var Tl=new WeakMap,El=class e extends Map{static{Cl(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],Tl.set(this,!0)}set(e,t){return Tl.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=this.#e.length,a=kl(e),o=a>=0?a:i+a,s=o<0||o>=i?-1:o;if(s===this.size||r&&s===this.size-1||s===-1)return this.set(t,n),this;let c=this.size+ +!r;a<0&&o++;let l=[...this.#e],u,d=!1;for(let e=o;e<c;e++)if(o===e){let i=l[e];l[e]===t&&(i=l[e+1]),r&&this.delete(t),u=this.get(i),this.set(t,n)}else{!d&&l[e-1]===t&&(d=!0);let n=l[d?e:e-1],r=u;u=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=Dl(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=Dl(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return Dl(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=r===0&&e.length===1?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&e.length===1?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(t===void 0)return r;t<0&&(t+=this.size),n!==void 0&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function Dl(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=Ol(e,t);return n===-1?void 0:e[n]}Cl(Dl,`at`);function Ol(e,t){let n=e.length,r=kl(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}Cl(Ol,`toSafeIndex`);function kl(e){return e!==e||e===0?0:Math.trunc(e)}Cl(kl,`toSafeInteger`);function Al(e){let t=e+`CollectionProvider`,[n,r]=Re(t),[i,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new El,setItemMap:Cl(()=>void 0,`setItemMap`)}),o=Cl(({state:e,...t})=>e?(0,B.jsx)(c,{...t,state:e}):(0,B.jsx)(s,{...t}),`CollectionProvider`);o.displayName=t;let s=Cl(e=>{let t=h();return(0,B.jsx)(c,{...e,state:t})},`CollectionInit`);s.displayName=t+`Init`;let c=Cl(e=>{let{scope:t,children:n,state:r}=e,a=z.useRef(null),[o,s]=z.useState(null),c=we(a,s),[l,u]=r;return z.useEffect(()=>{if(!o)return;let e=Pl(()=>{});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o]),(0,B.jsx)(i,{scope:t,itemMap:l,setItemMap:u,collectionRef:c,collectionRefObject:a,collectionElement:o,children:n})},`CollectionProviderImpl`);c.displayName=t+`Impl`;let l=e+`CollectionSlot`,u=ce(l),d=z.forwardRef((e,t)=>
12{let{scope:n,children:r}=e,i=a(l,n),o=we(t,i.collectionRef);return(0,B.jsx)(u,{ref:o,children:r})});d.displayName=l;let f=e+`CollectionItemSlot`,p=ce(f),m=z.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=z.useRef(null),[s,c]=z.useState(null),l=we(t,o,c),{setItemMap:u}=a(f,n),d=z.useRef(i);jl(d.current,i)||(d.current=i);let m=d.current;return z.useEffect(()=>{let e=m;return u(t=>s?t.has(s)?t.set(s,{...e,element:s}).toSorted(Nl):(t.set(s,{...e,element:s}),t.toSorted(Nl)):t),()=>{u(e=>!s||!e.has(s)?e:(e.delete(s),new El(e)))}},[s,m,u]),(0,B.jsx)(p,{"data-radix-collection-item":``,ref:l,children:r})});m.displayName=f;function h(){return z.useState(new El)}Cl(h,`useInitCollection`);function g(t){let{itemMap:n}=a(e+`CollectionConsumer`,t);return n}return Cl(g,`useCollection`),[{Provider:o,Slot:d,ItemSlot:m},{createCollectionScope:r,useCollection:g,useInitCollection:h}]}Cl(Al,`createCollection`);function jl(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}Cl(jl,`shallowEqual`);function Ml(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Cl(Ml,`isElementPreceding`);function Nl(e,t){return!e[1].element||!t[1].element?0:Ml(e[1].element,t[1].element)?-1:1}Cl(Nl,`sortByDocumentPosition`);function Pl(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}Cl(Pl,`getChildListObserver`);var Fl=Object.defineProperty,Il=(e,t)=>Fl(e,`name`,{value:t,configurable:!0}),Ll=`dismissableLayer.update`,Rl=`dismissableLayer.pointerDownOutside`,zl=`dismissableLayer.focusOutside`,Bl,Vl=z.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),U=z.forwardRef(Il(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=z.useContext(Vl),[d,f]=z.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=z.useState({}),h=we(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=z.useRef(!1),C=K(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:z.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return x&&!t},[u.branches,x])}),w=Ul(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),T=d?y===g.length-1:!1,E=He(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return z.useEffect(()=>{if(T)return p.addEventListener(`keydown`,E,{capture:!0}),()=>p.removeEventListener(`keydown`,E,{capture:!0})},[p,T,E]),z.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Bl=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Wl(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=Bl))}},[d,p,n,u]),z.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Wl())},[d,u]),z.useEffect(()=>{let e=Il(()=>m({}),`handleUpdate`);return document.addEventListener(Ll,e),()=>document.removeEventListener(Ll,e)},[]),(0,B.jsx)(je.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:Fe(e.onFocusCapture,w.onFocusCapture),onBlurCapture:Fe(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:Fe(e.onPointerDownCapture,C.onPointerDownCapture)})},`DismissableLayer`)),Hl=z.forwardRef(Il(function(e,t){let n=z.useContext(Vl),r=z.useRef(null),i=we(t,r);return z.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,B.jsx)(je.div,{...e,ref:i})},`DismissableLayerBranch`));function W(){let e=z.useContext(Vl),[t,n]=z.useState(null);return z.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}Il(W,`useDismissableLayerSurface`);var G=Il(()=>!0,`IS_TRUE`);function K(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=G}=t,s=He(e),c=z.useRef(!1),l=z.useRef(!1),u=z.useRef(new Map),d=z.useRef(()=>{});return z.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}Il(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}Il(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)}Il(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}Il(p,`handleInteractionBubble`);let m=Il(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||Gl(Rl,s,p,{discrete:!0})};if(Il(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(
12),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:Il(()=>c.current=!0,`onPointerDownCapture`)}}Il(K,`usePointerDownOutside`);function Ul(e,t=globalThis?.document){let n=He(e),r=z.useRef(!1);return z.useEffect(()=>{let e=Il(e=>{e.target&&!r.current&&Gl(zl,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:Il(()=>r.current=!0,`onFocusCapture`),onBlurCapture:Il(()=>r.current=!1,`onBlurCapture`)}}Il(Ul,`useFocusOutside`);function Wl(){let e=new CustomEvent(Ll);document.dispatchEvent(e)}Il(Wl,`dispatchUpdate`);function Gl(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?Me(i,a):i.dispatchEvent(a)}Il(Gl,`handleAndDispatchCustomEvent`);var Kl=U,ql=Hl,Jl=n(u(),1),Yl=Object.defineProperty,Xl=z.forwardRef(((e,t)=>Yl(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=z.useState(!1);Pe(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Jl.createPortal((0,B.jsx)(je.div,{...r,ref:t}),o):null},`Portal`)),Zl=Object.defineProperty,Ql=(e,t)=>Zl(e,`name`,{value:t,configurable:!0}),$l=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),eu=z.forwardRef(Ql(function(e,t){return(0,B.jsx)(je.span,{...e,ref:t,style:{...$l,...e.style}})},`VisuallyHidden`)),tu=eu,nu=Object.defineProperty,q=(e,t)=>nu(e,`name`,{value:t,configurable:!0}),ru=`ToastProvider`,[iu,au,ou]=wl(`Toast`),[su,cu]=Re(`Toast`,[ou]),[lu,uu]=su(ru),du=q(e=>{let{__scopeToast:t,label:n=`Notification`,duration:r=5e3,swipeDirection:i=`right`,swipeThreshold:a=50,announcerContainer:o,children:s}=e,[c,l]=z.useState(null),[u,d]=z.useState(0),f=z.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${ru}\`. Expected non-empty \`string\`.`),(0,B.jsx)(iu.Provider,{scope:t,children:(0,B.jsx)(lu,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:a,toastCount:u,viewport:c,onViewportChange:l,onToastAdd:z.useCallback(()=>d(e=>e+1),[]),onToastRemove:z.useCallback(()=>d(e=>e-1),[]),isClosePausedRef:f,announcerContainer:o,children:s})})},`ToastProvider`),fu=`ToastViewport`,pu=[`F8`],mu=`toast.viewportPause`,hu=`toast.viewportResume`,gu=z.forwardRef(q(function(e,t){let{__scopeToast:n,hotkey:r=pu,label:i=`Notifications ({hotkey})`,...a}=e,o=uu(fu,n),s=au(n),c=z.useRef(null),l=z.useRef(null),u=z.useRef(null),d=z.useRef(null),f=we(t,d,o.onViewportChange),p=r.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),m=o.toastCount>0;z.useEffect(()=>{let e=q(e=>{r.length!==0&&r.every(t=>e[t]||e.code===t)&&d.current?.focus()},`handleKeyDown`);return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[r]),z.useEffect(()=>{let e=c.current,t=d.current;if(m&&e&&t){let n=q(()=>{if(!o.isClosePausedRef.current){let e=new CustomEvent(mu);t.dispatchEvent(e),o.isClosePausedRef.current=!0}},`handlePause`),r=q(()=>{if(o.isClosePausedRef.current){let e=new CustomEvent(hu);t.dispatchEvent(e),o.isClosePausedRef.current=!1}},`handleResume`),i=q(t=>{e.contains(t.relatedTarget)||r()},`handleFocusOutResume`),a=q(()=>{e.contains(document.activeElement)||r()},`handlePointerLeaveResume`);return e.addEventListener(`focusin`,n),e.addEventListener(`focusout`,i),e.addEventListener(`pointermove`,n),e.addEventListener(`pointerleave`,a),window.addEventListener(`blur`,n),window.addEventListener(`focus`,r),()=>{e.removeEventListener(`focusin`,n),e.removeEventListener(`focusout`,i),e.removeEventListener(`pointermove`,n),e.removeEventListener(`pointerleave`,a),window.removeEventListener(`blur`,n),window.removeEventListener(`focus`,r)}}},[m,o.isClosePausedRef]);let h=z.useCallback(({tabbingDirection:e})=>{let t=s().map(t=>{let n=t.ref.current,r=[n,...Vu(n)];return e===`forwards`?r:r.reverse()});return(e===`forwards`?t.reverse():t).flat()},[s]);return z.useEffect(()=>{let e=d.current;if(e){let t=q(t=>{let n=t.altKey||t.ctrlKey||t.metaKey;if(t.key===`Tab`&&!n){let n=document.activeElement,r=t.shiftKey;if(t.target===e&&r){l.current?.focus();return}let i=h({tabbingDirection:r?`backwards`:`forwards`}),a=i.findIndex(e=>e===n);Hu(i.slice(a+1))?t.preventDefault():r?l.current?.focus():u.current?.focus()}},`handleKeyDown`);
12return e.addEventListener(`keydown`,t),()=>e.removeEventListener(`keydown`,t)}},[s,h]),(0,B.jsxs)(ql,{ref:c,role:`region`,"aria-label":i.replace(`{hotkey}`,p),tabIndex:-1,style:{pointerEvents:m?void 0:`none`},children:[m&&(0,B.jsx)(vu,{ref:l,onFocusFromOutsideViewport:()=>{Hu(h({tabbingDirection:`forwards`}))}}),(0,B.jsx)(iu.Slot,{scope:n,children:(0,B.jsx)(je.ol,{tabIndex:-1,...a,ref:f})}),m&&(0,B.jsx)(vu,{ref:u,onFocusFromOutsideViewport:()=>{Hu(h({tabbingDirection:`backwards`}))}})]})},`ToastViewport`)),_u=`ToastFocusProxy`,vu=z.forwardRef(q(function(e,t){let{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,a=uu(_u,n);return(0,B.jsx)(eu,{tabIndex:0,...i,ref:t,style:{position:`fixed`},onFocus:e=>{let t=e.relatedTarget;a.viewport?.contains(t)||r()}})},`ToastFocusProxy`)),yu=`Toast`,bu=`toast.swipeStart`,xu=`toast.swipeMove`,Su=`toast.swipeCancel`,Cu=`toast.swipeEnd`,wu=z.forwardRef(q(function(e,t){let{forceMount:n,open:r,defaultOpen:i,onOpenChange:a,...o}=e,[s,c]=Be({prop:r,defaultProp:i??!0,onChange:a,caller:yu});return(0,B.jsx)(Ae,{present:n||s,children:(0,B.jsx)(Du,{open:s,...o,ref:t,onClose:()=>c(!1),onPause:He(e.onPause),onResume:He(e.onResume),onSwipeStart:Fe(e.onSwipeStart,e=>{e.currentTarget.setAttribute(`data-swipe`,`start`)}),onSwipeMove:Fe(e.onSwipeMove,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute(`data-swipe`,`move`),e.currentTarget.style.setProperty(`--radix-toast-swipe-move-x`,`${t}px`),e.currentTarget.style.setProperty(`--radix-toast-swipe-move-y`,`${n}px`)}),onSwipeCancel:Fe(e.onSwipeCancel,e=>{e.currentTarget.setAttribute(`data-swipe`,`cancel`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-y`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-end-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-end-y`)}),onSwipeEnd:Fe(e.onSwipeEnd,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute(`data-swipe`,`end`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-y`),e.currentTarget.style.setProperty(`--radix-toast-swipe-end-x`,`${t}px`),e.currentTarget.style.setProperty(`--radix-toast-swipe-end-y`,`${n}px`),c(!1)})})})},`Toast`)),[Tu,Eu]=su(yu,{onClose(){}}),Du=z.forwardRef(q(function(e,t){let{__scopeToast:n,type:r=`foreground`,duration:i,open:a,onClose:o,onEscapeKeyDown:s,onPause:c,onResume:l,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:p,...m}=e,h=uu(yu,n),g=au(n),[_,v]=z.useState(null),y=we(t,v),b=z.useRef(null),x=z.useRef(null),S=i||h.duration,C=z.useRef(0),w=z.useRef(S),T=z.useRef(0),{onToastAdd:E,onToastRemove:D}=h,O=He(()=>{_?.contains(document.activeElement)&&h.viewport?.focus(),o()}),k=z.useCallback(e=>{!e||e===1/0||(window.clearTimeout(T.current),C.current=new Date().getTime(),T.current=window.setTimeout(O,e))},[O]);z.useEffect(()=>{let e=h.viewport;if(e){let t=q(()=>{k(w.current),l?.()},`handleResume`),n=q(()=>{let e=new Date().getTime()-C.current;w.current-=e,window.clearTimeout(T.current),c?.()},`handlePause`);return e.addEventListener(mu,n),e.addEventListener(hu,t),()=>{e.removeEventListener(mu,n),e.removeEventListener(hu,t)}}},[h.viewport,S,c,l,k]),z.useEffect(()=>{a&&!h.isClosePausedRef.current&&k(S)},[a,S,h.isClosePausedRef,k]),z.useEffect(()=>()=>{window.clearTimeout(T.current)},[]),z.useEffect(()=>(E(),()=>D()),[E,D]);let ee=z.useMemo(()=>_?Iu(_):null,[_]);return h.viewport?(0,B.jsxs)(B.Fragment,{children:[ee&&(0,B.jsx)(Ou,{__scopeToast:n,role:`status`,"aria-live":r===`foreground`?`assertive`:`polite`,children:ee}),(0,B.jsx)(Tu,{scope:n,onClose:O,children:Jl.createPortal((0,B.jsx)(iu.ItemSlot,{scope:n,children:(0,B.jsx)(Kl,{asChild:!0,onEscapeKeyDown:Fe(s,e=>{g().some(t=>t.ref.current?.contains(e.target))||O()}),children:(0,B.jsx)(je.li,{tabIndex:0,"data-state":a?`open`:`closed`,"data-swipe-direction":h.swipeDirection,...m,ref:y,style:{userSelect:`none`,touchAction:`none`,...e.style},onKeyDown:Fe(e.onKeyDown,e=>{e.key===`Escape`&&(s?.(e.nativeEvent),e.nativeEvent.defaultPrevented||O())}),onPointerDown:Fe(e.onPointerDown,e=>{e.button===0&&(b.current={x:e.clientX,y:e.clientY})}),onPointerMove:Fe(e.onPointerMove,e=>{if(!b.current)return;let t=e.clientX-b.current.x,n=e.clientY-b.current.y,r=!!x.current,i=[`left`,`right`].includes(h.swipeDirection),a=[`left`,`up`].includes(h.swipeDirection)?Math.min:Math.max,o=i?a(0,t):0,s=i?0:a(0,n),c=e.pointerType===`touch`?10:2,l={x:o,y:s},f={originalEvent:e,delta:l};r?(x.current=l,Lu(xu,d,f,{discrete:!1})):Ru(l,h.swipeDirection,c)?(x.current=l,Lu(bu,u,f,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(n)>c)&&(b.current=null)}),onPointerUp:Fe(e.onPointerUp,e=>{let t=x.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),x.current=null,b.current=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};Ru(t,h.swipeDirection,h.swipeThreshold)?Lu(Cu,p,r,{discrete:!0}):Lu(Su,f,r,{discrete:!0}),n.addEventListener(`click`,e=>e.preventDefault(),{once:!0})}})})})}),h.viewport)})]}):null},`ToastImpl`)),Ou=q(e=>{let{__scopeToast:t,children:n,...r}=e,i=uu(yu,t),[a,o]=z.useState(!1),[s,c]=z.useState(!1);return zu(()=>o(!0)),z.useEffect(()=>{let e=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(e)},[]),s?null:(0,B.jsx)(Xl,{asChild:!0,container:i.announcerContainer||void 0,children:(0,B.jsx)(eu,{...r,children:a&&(0,B.jsxs)(B.Fragment,{children:[i.label,` `,n]})})})},`ToastAnnounce`),ku=z.forwardRef(q(function(e,t){let{__scopeToast:n,...r}=e;return(0,B.jsx)(je.div,{...r,ref:t})},`ToastTitle`)),Au=z.forwardRef(q(function(e,t){let{__scopeToast:n,...r}=e;return(0,B.jsx)(je.div,{...r,ref:t})},`ToastDescription`)),ju=`ToastAction`,Mu=z.forwardRef(q(function(e,t){let{altText:n,...r}=e;return n.trim()?(0,B.jsx)(Fu,{altText:n,asChild:!0,children:(0,B.jsx)(Pu,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${ju}\`. Expected non-empty \`string\`.`),null)},`ToastAction`)),Nu=`ToastClose`,Pu=z.forwardRef(q(function(e,t){let{__scopeToast:n,...r}=e,i=Eu(Nu,n);return(0,B.jsx)(Fu,{asChild:!0,children:(0,B.jsx)(je.button,{type:`button`,...r,ref:t,onClick:Fe(e.onClick,i.onClose)})})},`ToastClose`)),Fu=z.forwardRef(q(function(e,t){let{__scopeToast:n,altText:r,...i}=e;return(0,B.jsx)(je.div,{"data-radix-toast-announce-exclude":``,"data-radix-toast-announce-alt":r||void 0,...i,ref:t})},`ToastAnnounceExclude`));function Iu(e){let t=[];
12return Array.from(e.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),Bu(e)){let n=e.ariaHidden||e.hidden||e.style.display===`none`,r=e.dataset.radixToastAnnounceExclude===``;if(!n){if(r){let n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...Iu(e))}}}),t}q(Iu,`getAnnounceTextContent`);function Lu(e,t,n,{discrete:r}){let i=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Me(i,a):i.dispatchEvent(a)}q(Lu,`handleAndDispatchCustomEvent`);var Ru=q((e,t,n=0)=>{let r=Math.abs(e.x),i=Math.abs(e.y),a=r>i;return t===`left`||t===`right`?a&&r>n:!a&&i>n},`isDeltaInDirection`);function zu(e=()=>{}){let t=He(e);Pe(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}q(zu,`useNextFrame`);function Bu(e){return e.nodeType===e.ELEMENT_NODE}q(Bu,`isHTMLElement`);function Vu(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:q(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}q(Vu,`getTabbableCandidates`);function Hu(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}q(Hu,`focusFirst`);var Uu=du,Wu=gu,Gu=wu,Ku=ku,qu=Au,J=Mu,Ju=Pu,Yu=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Xu=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Zu=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Qu=e=>{let t=Zu(e);return t.charAt(0).toUpperCase()+t.slice(1)},$u={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`},ed=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},td=(0,z.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,z.createElement)(`svg`,{ref:c,...$u,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Yu(`lucide`,i),...!a&&!ed(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,z.createElement)(e,t)),...Array.isArray(a)?a:[a]])),nd=(e,t)=>{let n=(0,z.forwardRef)(({className:n,...r},i)=>(0,z.createElement)(td,{ref:i,iconNode:t,className:Yu(`lucide-${Xu(Qu(e))}`,`lucide-${e}`,n),...r}));return n.displayName=Qu(e),n},rd=nd(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),id=nd(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),ad=nd(`phone`,[[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]),od=nd(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),sd=Uu,cd=z.forwardRef(({className:e,...t},n)=>(0,B.jsx)(Wu,{ref:n,className:oe(`fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]`,e),...t}));cd.displayName=Wu.displayName;var ld=ve(`group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full`,{variants:{variant:{default:`border bg-background text-foreground`,destructive:`destructive group border-destructive bg-destructive text-destructive-foreground`}},defaultVariants:{variant:`default`}}),ud=z.forwardRef(({className:e,variant:t,...n},r)=>(0,B.jsx)(Gu,{ref:r,className:oe(ld({variant:t}),e),...n}));ud.displayName=Gu.displayName;var dd=z.forwardRef(({className:e,...t},n)=>(0,B.jsx)(J,{ref:n,className:oe(`inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-hidden focu
12s:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50`,e),...t}));dd.displayName=J.displayName;var fd=z.forwardRef(({className:e,...t},n)=>(0,B.jsx)(Ju,{ref:n,className:oe(`absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-hidden focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600`,e),"toast-close":``,...t,children:(0,B.jsx)(od,{className:`h-4 w-4`})}));fd.displayName=Ju.displayName;var pd=z.forwardRef(({className:e,...t},n)=>(0,B.jsx)(Ku,{ref:n,className:oe(`text-sm font-semibold`,e),...t}));pd.displayName=Ku.displayName;var md=z.forwardRef(({className:e,...t},n)=>(0,B.jsx)(qu,{ref:n,className:oe(`text-sm opacity-90`,e),...t}));md.displayName=qu.displayName;function hd(){let{toasts:e}=N();return(0,B.jsxs)(sd,{children:[e.map(function({id:e,title:t,description:n,action:r,...i}){return(0,B.jsxs)(ud,{...i,children:[(0,B.jsxs)(`div`,{className:`grid gap-1`,children:[t&&(0,B.jsx)(pd,{children:t}),n&&(0,B.jsx)(md,{children:n})]}),r,(0,B.jsx)(fd,{})]},e)}),(0,B.jsx)(cd,{})]})}var gd=[`light`,`dark`],_d=`(prefers-color-scheme: dark)`,vd=z.createContext(void 0),yd={setTheme:e=>{},themes:[]},bd=()=>z.useContext(vd)??yd;z.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:a,value:o,attrs:s,nonce:c})=>{let l=a===`system`,u=n===`class`?`var d=document.documentElement,c=d.classList;${`c.remove(${s.map(e=>`'${e}'`).join(`,`)})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=i?gd.includes(a)&&a?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${a}'`:`if(e==='light'||e==='dark')d.style.colorScheme=e`:``,f=(e,t=!1,r=!0)=>{let a=o?o[e]:e,s=t?e+`|| ''`:`'${a}'`,c=``;return i&&r&&!t&&gd.includes(e)&&(c+=`d.style.colorScheme = '${e}';`),n===`class`?c+=t||a?`c.add(${s})`:`null`:a&&(c+=`d[s](n,${s})`),c},p=e?`!function(){${u}${f(e)}}()`:r?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${l})){var t='${_d}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f(`dark`)}}else{${f(`light`)}}}else if(e){${o?`var x=${JSON.stringify(o)};`:``}${f(o?`x[e]`:`e`,!0)}}${l?``:`else{`+f(a,!1,!1)+`}`}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:``}${f(o?`x[e]`:`e`,!0)}}else{${f(a,!1,!1)};}${d}}catch(t){}}();`;return z.createElement(`script`,{nonce:c,dangerouslySetInnerHTML:{__html:p}})});function xd(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 Sd=e=>{switch(e){case`success`:return wd;case`info`:return Ed;case`warning`:return Td;case`error`:return Dd;default:return null}},Y=Array(12).fill(0),Cd=({visible:e,className:t})=>z.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},z.createElement(`div`,{className:`sonner-spinner`},Y.map((e,t)=>z.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),wd=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},z.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),Td=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},z.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),Ed=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},z.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),Dd=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},z.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),Od=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,
12width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`},z.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),z.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),kd=()=>{let[e,t]=z.useState(document.hidden);return z.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[]),e},Ad=1,jd=100,Md=e=>typeof e?.id==`number`||e?.id?.length>0?e.id:Ad++,Nd=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),this.getActiveToasts().forEach(t=>e(t)),()=>{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.trimHistory()},this.trimHistory=()=>{let e=this.toasts.length-jd;e<=0||(this.toasts=this.toasts.filter(t=>e>0&&this.dismissedToasts.has(t.id)?(this.dismissedToasts.delete(t.id),e--,!1):!0))},this.create=e=>{let{message:t,...n}=e,r=Md(e),i=this.pendingDismissals.get(r);i!==void 0&&(cancelAnimationFrame(i),this.pendingDismissals.delete(r),this.dismissedToasts.delete(r));let a=this.dismissedToasts.has(r),o=e.dismissible===void 0||e.dismissible;return a&&(this.dismissedToasts.delete(r),this.toasts=this.toasts.filter(e=>e.id!==r)),!a&&this.toasts.find(e=>e.id===r)?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:o,title:t}):n):this.addToast({title:t,...n,dismissible:o,id:r}),r},this.dismiss=e=>
12{if(e==null)return this.getActiveToasts().forEach(e=>{this.dismissedToasts.add(e.id),this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e;this.dismissedToasts.add(e);let t=this.pendingDismissals.get(e);return t!==void 0&&cancelAnimationFrame(t),this.pendingDismissals.set(e,requestAnimationFrame(()=>{this.pendingDismissals.delete(e),this.subscribers.forEach(t=>t({id:e,dismiss:!0}))})),e},this.message=(e,t)=>this.create({...t,message:e,type:void 0}),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],z.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(Fd(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!z.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!z.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!z.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!z.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=Md(t);return this.create({...t,jsx:e(n),id:n,type:void 0}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.pendingDismissals=new Map}},Pd=(e,t)=>Nd.message(e,t),Fd=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,Id=Object.assign(Pd,{success:Nd.success,info:Nd.info,warning:Nd.warning,error:Nd.error,custom:Nd.custom,message:Nd.message,promise:Nd.promise,dismiss:Nd.dismiss,loading:Nd.loading},{getHistory:()=>Nd.toasts,getToasts:()=>Nd.getActiveToasts()});xd(`
vendor: 14,916 bytes, line 12
12[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;flex:1;min-width:0}[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(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);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]{-webkit-user-select:none;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%)}
12`);function Ld(e){return e.label!==void 0}var Rd=3,zd=`24px`,Bd=`16px`,Vd=4e3,Hd=356,Ud=14,Wd=45,Gd=200;function Kd(...e){return e.filter(Boolean).join(` `)}function qd(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var Jd=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:T=`Close toast`}=e,[E,D]=z.useState(null),[O,k]=z.useState(null),[ee,te]=z.useState(!1),[ne,re]=z.useState(!1),[A,j]=z.useState(!1),[M,ie]=z.useState(!1),[ae,oe]=z.useState(!1),[se,ce]=z.useState(0),[N,le]=z.useState(0),ue=z.useRef(n.duration||y||Vd),de=z.useRef(null),P=z.useRef(null),fe=c===0,pe=c+1<=o,me=n.type,he=me??`default`,ge=n.dismissible!==!1,_e=n.className||``,ve=n.descriptionClassName||``,ye=z.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),be=z.useMemo(()=>n.closeButton??p,[n.closeButton,p]),xe=z.useMemo(()=>n.duration||y||Vd,[n.duration,y]),Se=z.useRef(0),Ce=z.useRef(0),we=z.useRef(0),Te=z.useRef(null),[Ee,De]=b.split(`-`),Oe=z.useMemo(()=>
12s.reduce((e,t,n)=>n>=ye?e:e+t.height,0),[s,ye]),ke=kd(),Ae=z.useMemo(()=>e.swipeDirections??qd(b),[e.swipeDirections,b]),je=n.invert||t,Me=me===`loading`;Ce.current=z.useMemo(()=>ye*x+Oe,[ye,Oe]),z.useEffect(()=>{ue.current=xe},[xe]),z.useEffect(()=>{te(!0)},[]),z.useEffect(()=>{let e=P.current;if(e){let t=e.getBoundingClientRect().height;return le(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),z.useLayoutEffect(()=>{if(!ee)return;let e=P.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,le(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])},[ee,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let Ne=z.useCallback(()=>{re(!0),ce(Ce.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},Gd)},[n,d,a,Ce]);z.useEffect(()=>{if(n.promise&&me===`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;ue.current-=e}we.current=new Date().getTime()})():ue.current!==1/0&&(Se.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),Ne()},ue.current)),()=>clearTimeout(e)},[u,i,n,me,ke,Ne]),z.useEffect(()=>{n.delete&&(Ne(),n.onDismiss==null||n.onDismiss.call(n,n))},[Ne,n.delete]);function Pe(){return w?.loading?z.createElement(`div`,{className:Kd(C?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":me===`loading`},w.loading):z.createElement(Cd,{className:Kd(C?.loader,n?.classNames?.loader),visible:me===`loading`})}let Fe=n.icon||w?.[me]||Sd(me);return z.createElement(`li`,{tabIndex:0,ref:P,className:Kd(_,_e,C?.toast,n?.classNames?.toast,C?.[he],n?.classNames?.[he]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":ee,"data-promise":!!n.promise,"data-swiped":ae,"data-removed":ne,"data-visible":pe,"data-y-position":Ee,"data-x-position":De,"data-index":c,"data-front":fe,"data-swiping":A,"data-dismissible":ge,"data-type":me,"data-invert":je,"data-swipe-out":M,"data-swipe-direction":O,"data-expanded":!!(u||S&&ee),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${ne?se:Ce.current}px`,"--initial-height":S?`auto`:`${N}px`,...m,...n.style},onDragEnd:()=>{j(!1),D(null),Te.current=null},onPointerDown:e=>{e.button!==2&&(Me||!ge||(de.current=new Date,ce(Ce.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(j(!0),Te.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{if(M||!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()-de.current?.getTime(),i=E===`x`?e:t,a=Math.abs(i)/r;if((E===`x`?Ae.includes(e>0?`right`:`left`):Ae.includes(t>
120?`bottom`:`top`))&&(Math.abs(i)>=Wd||a>.11)){ce(Ce.current),n.onDismiss==null||n.onDismiss.call(n,n),k(E===`x`?e>0?`right`:`left`:t>0?`down`:`up`),Ne(),ie(!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`),oe(!1),j(!1),D(null)},onPointerMove:e=>{var t,n;if(!Te.current||!ge||window.getSelection()?.toString().length>0)return;let r=e.clientY-Te.current.y,i=e.clientX-Te.current.x;!E&&(Math.abs(i)>1||Math.abs(r)>1)&&D(Math.abs(i)>Math.abs(r)?`x`:`y`);let a={x:0,y:0},o=e=>1/(1.5+Math.abs(e)/20);if(E===`y`){if(Ae.includes(`top`)||Ae.includes(`bottom`)){if(Ae.includes(`top`)&&r<0||Ae.includes(`bottom`)&&r>0)a.y=r;else{let e=r*o(r);a.y=Math.abs(e)<Math.abs(r)?e:r}}}else if(E===`x`&&(Ae.includes(`left`)||Ae.includes(`right`))){if(Ae.includes(`left`)&&i<0||Ae.includes(`right`)&&i>0)a.x=i;else{let e=i*o(i);a.x=Math.abs(e)<Math.abs(i)?e:i}}(Math.abs(a.x)>0||Math.abs(a.y)>0)&&oe(!0),(t=P.current)==null||t.style.setProperty(`--swipe-amount-x`,`${a.x}px`),(n=P.current)==null||n.style.setProperty(`--swipe-amount-y`,`${a.y}px`)}},be&&!n.jsx&&me!==`loading`?z.createElement(`button`,{"aria-label":T,"data-disabled":Me,"data-close-button":!0,onClick:Me||!ge?()=>{}:()=>{Ne(),n.onDismiss==null||n.onDismiss.call(n,n)},className:Kd(C?.closeButton,n?.classNames?.closeButton)},w?.close??Od):null,(me||n.icon||n.promise)&&n.icon!==null&&(w?.[me]!==null||n.icon)?z.createElement(`div`,{"data-icon":``,className:Kd(C?.icon,n?.classNames?.icon)},me===`loading`?n.icon||Pe():n.promise?Pe():null,me===`loading`?null:Fe):null,z.createElement(`div`,{"data-content":``,className:Kd(C?.content,n?.classNames?.content)},z.createElement(`div`,{"data-title":``,className:Kd(C?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?z.createElement(`div`,{"data-description":``,className:Kd(v,ve,C?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),z.isValidElement(n.cancel)?n.cancel:n.cancel&&Ld(n.cancel)?z.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{Ld(n.cancel)&&ge&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),Ne())},className:Kd(C?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,z.isValidElement(n.action)?n.action:n.action&&Ld(n.action)?z.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{Ld(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&Ne())},className:Kd(C?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function Yd(){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 Xd(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?Bd:zd;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 Zd=z.forwardRef(function(e,t){let{id:n,invert:r,position:i=`bottom-right`,hotkey:a=[`altKey`,`KeyT`],expand:o,closeButton:s,className:c,offset:l,mobileOffset:u,theme:d=`light`,richColors:f,duration:p,style:m,visibleToasts:h=Rd,toastOptions:g,dir:_=Yd(),gap:v=Ud,icons:y,customAriaLabel:b,containerAriaLabel:x=`Notifications`}=e,[S,C]=z.useState([]),w=z.useMemo(()=>n?S.filter(e=>e.toasterId===n):S.filter(e=>!e.toasterId),[S,n]),T=z.useMemo(()=>Array.from(new Set([i].concat(w.filter(e=>e.position).map(e=>e.position)))),[w,i]),[E,D]=z.useState([]),[O,k]=z.useState(!1),[ee,te]=z.useState(!1),[ne,re]=z.useState(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),A=z.useRef(null),j=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),M=z.useRef(null),ie=z.useRef(!1),ae=z.useCallback(e=>{C(t=>(t.find(t=>
12t.id===e.id)?.delete||Nd.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return z.useEffect(()=>Nd.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{C(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});return}setTimeout(()=>{Jl.flushSync(()=>{C(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)]})})})}),[]),z.useEffect(()=>{if(d!==`system`){re(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?re(`dark`):re(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{re(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{re(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),z.useEffect(()=>{S.length<=1&&k(!1)},[S]),z.useEffect(()=>{let e=e=>{if(a.length>0&&a.every(t=>e[t]||e.code===t)){var t;k(!0),(t=A.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===A.current||A.current?.contains(document.activeElement))&&k(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),z.useEffect(()=>{if(A.current)return()=>{M.current&&(M.current.focus({preventScroll:!0}),M.current=null,ie.current=!1)}},[A.current]),z.createElement(`section`,{ref:t,"aria-label":b??`${x} ${j}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0,"data-react-aria-top-layer":!0},T.map((t,n)=>{let[i,a]=t.split(`-`);return w.length?z.createElement(`ol`,{key:t,dir:_===`auto`?Yd():_,tabIndex:-1,ref:A,className:c,"data-sonner-toaster":!0,"data-sonner-theme":ne,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${E[0]?.height||0}px`,"--width":`${Hd}px`,"--gap":`${v}px`,...m,...Xd(l,u)},onBlur:e=>{ie.current&&!e.currentTarget.contains(e.relatedTarget)&&(ie.current=!1,M.current&&=(M.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||ie.current||(ie.current=!0,M.current=e.relatedTarget)},onMouseEnter:()=>k(!0),onMouseMove:()=>k(!0),onMouseLeave:()=>{ee||k(!1)},onDragEnd:()=>k(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||te(!0)},onPointerUp:()=>te(!1)},w.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>z.createElement(Jd,{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:ee,position:t,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:ae,toasts:w.filter(e=>e.position==n.position),heights:E.filter(e=>e.position==n.position),setHeights:D,expandByDefault:o,gap:v,expanded:O,swipeDirections:e.swipeDirections}))):null}))}),Qd=({...e})=>{let{theme:t=`system`}=bd();return(0,B.jsx)(Zd,{theme:t,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})},$d=[`top`,`right`,`bottom`,`left`],ef=Math.min,tf=Math.max,nf=Math.round,rf=Math.floor,af=e=>({x:e,y:e}),of={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function sf(e,t,n){return tf(e,ef(t,n))}function cf(e,t){return typeof e==`function`?e(t):e}function lf(e){return e.split(`-`)[0]}function uf(e){return e.split(`-`)[1]}function df(e){return e===`x`?`y`:`x`}function ff(e){return e===`y`?`height`:`width`}function pf(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function mf(e){return df(pf(e))}function hf(e,t,n){n===void 0&&(n=!1);let r=uf(e),i=mf(e),a=ff(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=wf(o)),[o,wf(o)]}function gf(e){let t=wf(e);return[_f(e),t,_f(t)]}function _f(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var vf=[`left`,`right`],yf=[`right`,`left`],bf=[`top`,`bottom`],xf=[`bottom`,`top`];function Sf(e,t,n){switch(e){case`top`:case`bottom`:return n?t?yf:vf:t?vf:yf;case`left`:case`right`:return t?bf:xf;default:return[]}}function Cf(e,t,n,r){let i=uf(e),a=Sf(lf(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(_f)))),a}function wf(e){let t=lf(e);return of[t]+e.slice(t.length)}function Tf(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Ef(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Tf(e)}function Df(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Of(e,t,n){let{reference:r,floating:i}=e,a=pf(t),o=mf(t),s=ff(o),c=lf(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=uf(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function kf(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=cf(t,e),p=Ef(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Df(await i.getClippingRect
vendor: 4,625 bytes, line 12
12({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Df(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Af=50,jf=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:kf},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Of(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Af&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Of(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Mf=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=cf(e,t)||{};if(l==null)return{};let d=Ef(u),f={x:n,y:r},p=mf(i),m=ff(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=ef(d[_],T),D=ef(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,ee=sf(E,k,O),te=!c.arrow&&uf(i)!=null&&k!==ee&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,ne=te?k<E?k-E:k-O:0;return{[p]:f[p]+ne,data:{[p]:ee,centerOffset:k-ee-ne,...te&&{alignmentOffset:ne}},reset:te}}}),Nf=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=cf(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=lf(r),_=pf(o),v=lf(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[wf(o)]:gf(o)),x=p!==`none`;!d&&x&&b.push(...Cf(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=hf(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===pf(t)||T.every(e=>pf(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=pf(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function Pf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ff(e){return $d.some(t=>e[t]>=0)}var If=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=cf(e,t);switch(i){case`referenceHidden`:{let e=Pf(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ff(e)}}}case`escaped`:{let e=Pf(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Ff(e)}}}default:return{}}}}},Lf=new Set([`left`,`top`]);async function Rf(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=lf(n),s=uf(n),c=pf(n)===`y`,l=Lf.has(o)?-1:1,u=a&&c?-1:1,d=cf(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}
12:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var zf=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Rf(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Bf=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=cf(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=pf(i),p=df(f),m=u[p],h=u[f],g=(e,t)=>sf(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Vf=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=cf(e,t),u={x:n,y:r},d=pf(i),f=df(d),p=u[f],m=u[d],h=cf(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Lf.has(lf(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Hf=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=cf(e,t),c=await i.detectOverflow(t,s),l=lf(n),u=uf(n),d=pf(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=ef(p-c[m],g),y=ef(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*tf(c.left,c.right):S=p-2*tf(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Uf(){return typeof window<`u`}function Wf(e){return qf(e)?(e.nodeName||``).toLowerCase():`#document`}function Gf(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Kf(e){return((qf(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function qf(e){return Uf()?e instanceof Node||e instanceof Gf(e).Node:!1}function Jf(e){return Uf()?e instanceof Element||e instanceof Gf(e).Element:!1}function Yf(e){return Uf()?e instanceof HTMLElement||e instanceof Gf(e).HTMLElement:!1}function Xf(e){return!Uf()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Gf(e).ShadowRoot}function Zf(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=cp(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Qf(e){return/^(table|td|th)$/.test(Wf(e))}function $f(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var ep=/transform|translate|scale|rotate|perspective|filter/,tp=/paint|layout|strict|content/,np=e=>!!e&&e!==`none`,rp;function ip(e){let t=Jf(e)?cp(e):e;return np(t.transform)||np(t.translate)||np(t.scale)||np(t.rotate)||np(t.perspective)||!op()&&(np(t.backdropFilter)||np(t.filter))||ep.test(t.willChange||``)||tp.test(t.contain||``)}function ap(e){let t=up(e);for(;Yf(t)&&!sp(t);){if(ip(t))return t;if($f(t))return null;t=up(t)}return null}function op(){return rp??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),rp}function sp(e){return/^(html|body|#document)$/.test(Wf(e))}function cp(e){return Gf(e).getComputedStyle(e)}function lp(e){return Jf(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function up(e){if(Wf(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Xf(e)&&e.host||Kf(e);return Xf(t)?t.host:t}function dp(e){let t=up(e);return sp(t)?(e.ownerDocument||e).body:Yf(t)&&Zf(t)?t:dp(t)}function fp(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=dp(e),i=r===e.ownerDocument?.body,a=Gf(r);if(i){let e=pp(a);
vendor: 4,135 bytes, line 12
12return t.concat(a,a.visualViewport||[],Zf(r)?r:[],e&&n?fp(e):[])}return t.concat(r,fp(r,[],n))}function pp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function mp(e){let t=cp(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Yf(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=nf(n)!==a||nf(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function hp(e){return Jf(e)?e:e.contextElement}function gp(e){let t=hp(e);if(!Yf(t))return af(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=mp(t),o=(a?nf(n.width):n.width)/r,s=(a?nf(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var _p=af(0);function vp(e){let t=Gf(e);return!op()||!t.visualViewport?_p:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yp(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Gf(e)}function bp(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=hp(e),o=af(1);t&&(r?Jf(r)&&(o=gp(r)):o=gp(e));let s=yp(a,n,r)?vp(a):af(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Gf(a),t=Jf(r)?Gf(r):r,n=e,i=pp(n);for(;i&&t!==n;){let e=gp(i),t=i.getBoundingClientRect(),r=cp(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Gf(i),i=pp(n)}}return Df({width:u,height:d,x:c,y:l})}function xp(e,t){let n=lp(e).scrollLeft;return t?t.left+n:bp(Kf(e)).left+n}function Sp(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-xp(e,n),y:n.top+t.scrollTop}}function Cp(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Kf(r),s=t?$f(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=af(1),u=af(0),d=Yf(r);if((d||!a)&&((Wf(r)!==`body`||Zf(o))&&(c=lp(r)),d)){let e=bp(r);l=gp(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Sp(o,c):af(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function wp(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Tp(e){let t=lp(e),n=e.ownerDocument.body,r=tf(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=tf(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+xp(e),o=-t.scrollTop;return cp(n).direction===`rtl`&&(a+=tf(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Ep=25;function Dp(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Gf(e),a=Kf(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!op()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(xp(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Ep&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Op(e,t){let n=bp(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=gp(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function kp(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Dp(e,n,t);else if(t===`document`)r=Tp(Kf(e));else if(Jf(t))r=Op(t,n);else{let n=vp(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Df(r)}function Ap(e,t){let n=t.get(e);if(n)return n;let r=fp(e,[],!1).filter(e=>Jf(e)&&Wf(e)!==`body`),i=null,a=cp(e).position===`fixed`,o=a?up(e):e;for(;Jf(o)&&!sp(o);){let e=cp(o),t=ip(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=up(o)}return t.set(e,r),r}function jp(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?$f(t)?[]:Ap(t,this._c):[].concat(n),r],o=kp(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=kp(t,a[e],i);s=tf(n.top,s),c=ef(n.right,c),l=ef(n.bottom,l),u=tf(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Mp(e){let{width:t,height:n}=mp(e);return{width:t,height:n}}
vendor: 4,326 bytes, line 12
12function Np(e,t,n){let r=Yf(t),i=Kf(t),a=n===`fixed`,o=bp(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=af(0);if((r||!a)&&((Wf(t)!==`body`||Zf(i))&&(s=lp(t)),r)){let e=bp(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=xp(i));let l=i&&!r&&!a?Sp(i,s):af(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Pp(e){return cp(e).position===`static`}function Fp(e,t){if(!Yf(e)||cp(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Kf(e)===n&&(n=n.ownerDocument.body),n}function Ip(e,t){let n=Gf(e);if($f(e))return n;if(!Yf(e)){let t=up(e);for(;t&&!sp(t);){if(Jf(t)&&!Pp(t))return t;t=up(t)}return n}let r=Fp(e,t);for(;r&&Qf(r)&&Pp(r);)r=Fp(r,t);return r&&sp(r)&&Pp(r)&&!ip(r)?n:r||ap(e)||n}var Lp=async function(e){let t=this.getOffsetParent||Ip,n=this.getDimensions,r=await n(e.floating);return{reference:Np(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Rp(e){return cp(e).direction===`rtl`}var zp={convertOffsetParentRelativeRectToViewportRelativeRect:Cp,getDocumentElement:Kf,getClippingRect:jp,getOffsetParent:Ip,getElementRects:Lp,getClientRects:wp,getDimensions:Mp,getScale:gp,isElement:Jf,isRTL:Rp};function Bp(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Vp(e,t,n){let r=null,i,a=Kf(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=rf(d),h=rf(a.clientWidth-(u+f)),g=rf(a.clientHeight-(d+p)),_=rf(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:tf(0,ef(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Bp(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Gf(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Hp(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=hp(e),u=i||a?[...l?fp(l):[],...t?fp(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Vp(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?bp(e):null;c&&g();function g(){let t=bp(e);h&&!Bp(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Up=zf,Wp=Bf,Gp=Nf,Kp=Hf,qp=If,Jp=Mf,Yp=Vf,Xp=(e,t,n)=>{let r=new Map,i=n??{},a={...zp,...i.platform,_c:r};return jf(e,t,{...i,platform:a})},Zp=typeof document<`u`?z.useLayoutEffect:function(){};function Qp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Qp(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Qp(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function $p(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function em(e,t){let n=$p(e);return Math.round(t*n)/n}function tm(e){let t=z.useRef(e);return Zp(()=>{t.current=e}),t}function nm(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=z.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=z.useState(r);Qp(f,r)||p(r);let[m,h]=z.useState(null),[g,_]=z.useState(null),v=z.useCallback(e=>
12{e!==S.current&&(S.current=e,h(e))},[]),y=z.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=z.useRef(null),C=z.useRef(null),w=z.useRef(u),T=c!=null,E=tm(c),D=tm(i),O=tm(l),k=z.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),Xp(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};ee.current&&!Qp(w.current,t)&&(w.current=t,Jl.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);Zp(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let ee=z.useRef(!1);Zp(()=>(ee.current=!0,()=>{ee.current=!1}),[]),Zp(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let te=z.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),ne=z.useMemo(()=>({reference:b,floating:x}),[b,x]),re=z.useMemo(()=>{let e={position:n,left:0,top:0};if(!ne.floating)return e;let t=em(ne.floating,u.x),r=em(ne.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...$p(ne.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,ne.floating,u.x,u.y]);return z.useMemo(()=>({...u,update:k,refs:te,elements:ne,floatingStyles:re}),[u,k,te,ne,re])}var rm=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Jp({element:r.current,padding:i}).fn(n):r?Jp({element:r,padding:i}).fn(n):{}}}},im=(e,t)=>{let n=Up(e);return{name:n.name,fn:n.fn,options:[e,t]}},am=(e,t)=>{let n=Wp(e);return{name:n.name,fn:n.fn,options:[e,t]}},om=(e,t)=>({fn:Yp(e).fn,options:[e,t]}),sm=(e,t)=>{let n=Gp(e);return{name:n.name,fn:n.fn,options:[e,t]}},cm=(e,t)=>{let n=Kp(e);return{name:n.name,fn:n.fn,options:[e,t]}},lm=(e,t)=>{let n=qp(e);return{name:n.name,fn:n.fn,options:[e,t]}},um=(e,t)=>{let n=rm(e);return{name:n.name,fn:n.fn,options:[e,t]}},dm=Object.defineProperty,fm=(e,t)=>dm(e,`name`,{value:t,configurable:!0});function pm(e){let[t,n]=z.useState(void 0);return Pe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}n(void 0)},[e]),t}fm(pm,`useSize`);var mm=Object.defineProperty,hm=(e,t)=>mm(e,`name`,{value:t,configurable:!0}),gm=`Popper`,[_m,vm]=Re(gm),[ym,bm]=_m(gm),xm=`PopperContent`,[Sm,Cm]=_m(xm),wm=z.forwardRef(hm(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=bm(xm,n),[_,v]=z.useState(null),y=we(t,v),[b,x]=z.useState(null),S=pm(b),C=S?.width??0,w=S?.height??0,T=r+(a===`center`?``:`-`+a),E=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},D=Array.isArray(l)?l:[l],O=D.length>0,k={padding:E,boundary:D.filter(Tm),altBoundary:O},{refs:ee,floatingStyles:te,placement:ne,isPositioned:re,middlewareData:A}=nm({strategy:`fixed`,placement:T,whileElementsMounted:hm((...e)=>Hp(...e,{animationFrame:p===`always`}),`whileElementsMounted`),elements:{reference:g.anchor},middleware:[im({mainAxis:i+w,alignmentAxis:o}),c&&am({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?om():void 0,...k}),c&&sm({...k}),cm({...k,apply:hm(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),b&&um({element:b,padding:s}),Em({arrowWidth:C,arrowHeight:w}),f&&lm({strategy:`referenceHidden`,...k,boundary:O?k.boundary:void 0})]}),j=g.setPlacementState;Pe(()=>(j(ne),()=>{j(void 0)}),[ne,j]);let[M,ie]=Dm(ne),ae=He(m);Pe(()=>{re&&ae?.()},[re,ae]);let oe=A.arrow?.x,se=A.arrow?.y,ce=A.arrow?.centerOffset!==0,[N,le]=z.useState();return Pe(()=>{_&&le(window.getComputedStyle(_).zIndex)},[_]),(0,B.jsx)(`div`,{ref:ee.setFloating,"data-radix-popper-content-wrapper":``,style:{...te,transform:re?te.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:N,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(` `),...A.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,B.jsx)(Sm,{scope:n,placedSide:M,placedAlign:ie,onArrowChange:x,arrowX:oe,arrowY:se,shouldHideArrow:ce,children:(0,B.jsx)(je.div,{"data-side":M,"data-align":ie,...h,ref:y,style:{...h.style,animation:re?h.style?.animation:`none`}})})})},`PopperContent`));function Tm(e){return e!==null}hm(Tm,`isNotNull`);var Em=hm(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Dm(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function Dm(e){let[t,n=`center`]=e.split(`-`);return[t,n]}hm(Dm,`getSideAndAlignFromPlacement`);var Om=wm,km=Object.defineProperty,Am=(e,t)=>
12km(e,`name`,{value:t,configurable:!0}),[jm,Mm]=Re(`Tooltip`,[vm]),Nm=vm(),Pm=`TooltipProvider`,Fm=700,Im=`tooltip.open`,[Lm,Rm]=jm(Pm),zm=Am(e=>{let{__scopeTooltip:t,delayDuration:n=Fm,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=z.useRef(!0),s=z.useRef(!1),c=z.useRef(0);return z.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,B.jsx)(Lm,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:z.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:z.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:z.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),[Bm,Vm]=jm(`Tooltip`),[Hm,Um]=jm(`TooltipPortal`,{forceMount:void 0}),Wm=`TooltipContent`,Gm=z.forwardRef(Am(function(e,t){let n=Um(Wm,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=Vm(Wm,e.__scopeTooltip);return(0,B.jsx)(Ae,{present:r||o.open,children:o.disableHoverableContent?(0,B.jsx)(Jm,{side:i,...a,ref:t}):(0,B.jsx)(Km,{side:i,...a,ref:t})})},`TooltipContent`)),Km=z.forwardRef(Am(function(e,t){let n=Vm(Wm,e.__scopeTooltip),r=Rm(Wm,e.__scopeTooltip),i=z.useRef(null),a=we(t,i),[o,s]=z.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=z.useCallback(()=>{s(null),d(!1)},[d]),p=z.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Xm(r,Ym(r,n.getBoundingClientRect())),a=Zm(t.getBoundingClientRect()),o=$m([...i,...a]);s(o),d(!0)},[d]);return z.useEffect(()=>()=>f(),[f]),z.useEffect(()=>{if(c&&u){let e=Am(e=>p(e,u),`handleTriggerLeave`),t=Am(e=>p(e,c),`handleContentLeave`);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),z.useEffect(()=>{if(o){let e=Am(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!Qm(n,o);r?f():i&&(f(),l())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,B.jsx)(Jm,{...e,ref:a})},`TooltipContentHoverable`)),qm=he(`TooltipContent`),Jm=z.forwardRef(Am(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:o,onPointerDownOutside:s,...c}=e,l=Vm(Wm,n),u=Nm(n),{onClose:d}=l;z.useEffect(()=>(document.addEventListener(Im,d),()=>document.removeEventListener(Im,d)),[d]),z.useEffect(()=>{if(l.trigger){let e=Am(e=>{e.target instanceof Node&&e.target.contains(l.trigger)&&d()},`handleScroll`);return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]);let{setContentId:f}=l;return Pe(()=>(f(a),()=>{f(void 0)}),[a,f]),(0,B.jsx)(U,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,B.jsxs)(Om,{"data-state":l.stateAttribute,role:i?void 0:`tooltip`,id:i?void 0:l.contentId,...u,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,B.jsx)(qm,{children:r}),i?(0,B.jsx)(tu,{id:l.contentId,role:`tooltip`,children:i}):null]})})},`TooltipContentImpl`));function Ym(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}Am(Ym,`getExitSideFromRect`);function Xm(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}Am(Xm,`getPaddedExitPoints`);function Zm(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}Am(Zm,`getPointsFromRect`);function Qm(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}Am(Qm,`isPointInPolygon`);function $m(e){let t=e.slice();return t.sort((e,t)=>
12e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),eh(t)}Am($m,`getHull`);function eh(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}Am(eh,`getHullPresorted`);var th=zm,nh=Gm,rh=th,ih=z.forwardRef(({className:e,sideOffset:t=4,...n},r)=>(0,B.jsx)(nh,{ref:r,sideOffset:t,className:oe(`z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`,e),...n}));ih.displayName=nh.displayName;var ah=()=>{let{pathname:e}=xe();return(0,z.useEffect)(()=>{window.scrollTo(0,0)},[e]),null},oh=()=>{let[e,t]=(0,z.useState)(0),[n,r]=(0,z.useState)(!1),i=(0,z.useRef)(!1);return(0,z.useEffect)(()=>{let e=()=>{i.current||=(window.requestAnimationFrame(()=>{let e=window.scrollY;t(e),r(e>100),i.current=!1}),!0)};return window.addEventListener(`scroll`,e,{passive:!0}),e(),()=>window.removeEventListener(`scroll`,e)},[]),{scrollY:e,isScrolled:n}},sh=(0,z.createContext)({});function ch(e){let t=(0,z.useRef)(null);return t.current===null&&(t.current=e()),t.current}var lh=typeof window<`u`?z.useLayoutEffect:z.useEffect,uh=(0,z.createContext)(null);function dh(e,t){e.indexOf(t)===-1&&e.push(t)}function fh(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var ph=(e,t,n)=>n>t?t:n<e?e:n,mh={},hh=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),gh=e=>typeof e==`object`&&!!e,_h=e=>/^0[^.\s]+$/u.test(e);function vh(e){let t;return()=>(t===void 0&&(t=e()),t)}var yh=e=>e,bh=(...e)=>e.reduce((e,t)=>n=>t(e(n))),xh=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Sh=class{constructor(){this.subscriptions=[]}add(e){return dh(this.subscriptions,e),()=>fh(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},Ch=e=>e*1e3,wh=e=>e/1e3,Th=(e,t)=>t?1e3/t*e:0,Eh=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Dh=1e-7,Oh=12;function kh(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Eh(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Dh&&++s<Oh);return o}function Ah(e,t,n,r){if(e===t&&n===r)return yh;let i=t=>kh(t,0,1,e,n);return e=>e===0||e===1?e:Eh(i(e),t,r)}var jh=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Mh=e=>t=>1-e(1-t),Nh=Ah(.33,1.53,.69,.99),Ph=Mh(Nh),Fh=jh(Ph),Ih=e=>e>=1?1:(e*=2)<1?.5*Ph(e):.5*(2-2**(-10*(e-1))),Lh=e=>1-Math.sin(Math.acos(e)),Rh=Mh(Lh),zh=jh(Lh),Bh=Ah(.42,0,1,1),Vh=Ah(0,0,.58,1),Hh=Ah(.42,0,.58,1),Uh=e=>Array.isArray(e)&&typeof e[0]!=`number`,Wh=e=>Array.isArray(e)&&typeof e[0]==`number`,Gh={linear:yh,easeIn:Bh,easeInOut:Hh,easeOut:Vh,circIn:Lh,circInOut:zh,circOut:Rh,backIn:Ph,backInOut:Fh,backOut:Nh,anticipate:Ih},Kh=e=>typeof e==`string`,qh=e=>{if(Wh(e)){e.length;let[t,n,r,i]=e;return Ah(t,n,r,i)}return Kh(e)?(Gh[e],`${e}`,Gh[e]):e},Jh=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Yh(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var Xh=40;function Zh(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Jh.reduce((e,t)=>(e[t]=Yh(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=mh.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Xh),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Jh.reduce((e,t)=>
12{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Jh.length;t++)o[Jh[t]].cancel(e)},state:i,steps:o}}var{schedule:Qh,cancel:$h,state:eg,steps:tg}=Zh(typeof requestAnimationFrame<`u`?requestAnimationFrame:yh,!0),ng;function rg(){ng=void 0}var ig={now:()=>(ng===void 0&&ig.set(eg.isProcessing||mh.useManualTiming?eg.timestamp:performance.now()),ng),set:e=>{ng=e,queueMicrotask(rg)}},ag=e=>t=>typeof t==`string`&&t.startsWith(e),og=ag(`--`),sg=ag(`var(--`),cg=e=>sg(e)?lg.test(e.split(`/*`)[0].trim()):!1,lg=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ug(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var dg={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},fg={...dg,transform:e=>ph(0,1,e)},pg={...dg,default:1},mg=e=>Math.round(e*1e5)/1e5,hg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function gg(e){return e==null}var _g=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,vg=(e,t)=>n=>!!(typeof n==`string`&&_g.test(n)&&n.startsWith(e)||t&&!gg(n)&&Object.prototype.hasOwnProperty.call(n,t)),yg=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(hg);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},bg=e=>ph(0,255,e),xg={...dg,transform:e=>Math.round(bg(e))},Sg={test:vg(`rgb`,`red`),parse:yg(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+xg.transform(e)+`, `+xg.transform(t)+`, `+xg.transform(n)+`, `+mg(fg.transform(r))+`)`};function Cg(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var wg={test:vg(`#`),parse:Cg,transform:Sg.transform},Tg=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Eg=Tg(`deg`),Dg=Tg(`%`),X=Tg(`px`),Og=Tg(`vh`),kg=Tg(`vw`),Ag={...Dg,parse:e=>Dg.parse(e)/100,transform:e=>Dg.transform(e*100)},jg={test:vg(`hsl`,`hue`),parse:yg(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Dg.transform(mg(t))+`, `+Dg.transform(mg(n))+`, `+mg(fg.transform(r))+`)`},Mg={test:e=>Sg.test(e)||wg.test(e)||jg.test(e),parse:e=>Sg.test(e)?Sg.parse(e):jg.test(e)?jg.parse(e):wg.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Sg.transform(e):jg.transform(e),getAnimatableNone:e=>{let t=Mg.parse(e);return t.alpha=0,Mg.transform(t)}},Ng=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Pg(e){return isNaN(e)&&typeof e==`string`&&(e.match(hg)?.length||0)+(e.match(Ng)?.length||0)>0}var Fg=`number`,Ig=`color`,Lg=`var`,Rg=`var(`,zg="${}",Bg=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Vg(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Bg,e=>(Mg.test(e)?(r.color.push(a),i.push(Ig),n.push(Mg.parse(e))):e.startsWith(Rg)?(r.var.push(a),i.push(Lg),n.push(e)):(r.number.push(a),i.push(Fg),n.push(parseFloat(e))),++a,zg)).split(zg),indexes:r,types:i}}function Hg(e){return Vg(e).values}function Ug({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===Fg?mg(r[a]):e===Ig?Mg.transform(r[a]):r[a]}return i}}function Wg(e){return Ug(Vg(e))}var Gg=e=>typeof e==`number`?0:Mg.test(e)?Mg.getAnimatableNone(e):e,Kg=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Gg(e);function qg(e){let t=Vg(e);
12return Ug(t)(t.values.map((e,n)=>Kg(e,t.split[n])))}var Jg={test:Pg,parse:Hg,createTransformer:Wg,getAnimatableNone:qg};function Yg(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Xg({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Yg(s,r,e+1/3),a=Yg(s,r,e),o=Yg(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Zg(e,t){return n=>n>0?t:e}var Qg=(e,t,n)=>e+(t-e)*n,$g=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},e_=[wg,Sg,jg],t_=e=>e_.find(t=>t.test(e));function n_(e){let t=t_(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===jg&&(n=Xg(n)),n}var r_=(e,t)=>{let n=n_(e),r=n_(t);if(!n||!r)return Zg(e,t);let i={...n};return e=>(i.red=$g(n.red,r.red,e),i.green=$g(n.green,r.green,e),i.blue=$g(n.blue,r.blue,e),i.alpha=Qg(n.alpha,r.alpha,e),Sg.transform(i))},i_=new Set([`none`,`hidden`]);function a_(e,t){return i_.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function o_(e,t){return n=>Qg(e,t,n)}function s_(e){return typeof e==`number`?o_:typeof e==`string`?cg(e)?Zg:Mg.test(e)?r_:d_:Array.isArray(e)?c_:typeof e==`object`?Mg.test(e)?r_:l_:Zg}function c_(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>s_(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function l_(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=s_(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function u_(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var d_=(e,t)=>{let n=Jg.createTransformer(t),r=Vg(e),i=Vg(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?i_.has(e)&&!i.values.length||i_.has(t)&&!r.values.length?a_(e,t):bh(c_(u_(r,i),i.values),n):(`${e}${t}`,Zg(e,t))};function f_(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?Qg(e,t,n):s_(e)(e,t)}var p_=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>Qh.update(t,e),stop:()=>$h(t),now:()=>eg.isProcessing?eg.timestamp:ig.now()}},m_=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},h_=2e4;function g_(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function __(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(g_(r),h_);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:wh(i)}}var v_={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function y_(e,t){return e*Math.sqrt(1-t*t)}var b_=12;function x_(e,t,n){let r=n;for(let n=1;n<b_;n++)r-=e(r)/t(r);return r}var S_=.001;function C_({duration:e=v_.duration,bounce:t=v_.bounce,velocity:n=v_.velocity,mass:r=v_.mass}){let i,a;v_.maxDuration;let o=1-t;o=ph(v_.minDamping,v_.maxDamping,o),e=ph(v_.minDuration,v_.maxDuration,wh(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=y_(t,o),c=Math.exp(-i);return S_-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=y_(t**2,o);return(-i(t)+S_>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=x_(i,a,s);if(e=Ch(e),isNaN(c))return{stiffness:v_.stiffness,damping:v_.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var w_=[`duration`,`bounce`],T_=[`stiffness`,`damping`,`mass`];function E_(e,t){return t.some(t=>e[t]!==void 0)}function D_(e){let t={velocity:v_.velocity,stiffness:v_.stiffness,damping:v_.damping,mass:v_.mass,isResolvedFromDuration:!1,...e};if(!E_(e,T_)&&E_(e,w_)){if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*ph(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:v_.mass,stiffness:i,damping:a}}else{let n=C_({...e,velocity:0});t={...t,...n,mass:v_.mass},t.isResolvedFromDuration=!0}}return t}function O_(e=v_.visualDuration,t=v_.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=D_({...n,velocity:-wh(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=wh(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?v_.restSpeed.granular:v_.restSpeed.default,i||=v?v_.restDelta.granular:v_.restDelta.default;let y,b,x,S,C,w;if(h<1)x=y_(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>Ch(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=Ch(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=Ch(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(g_(T),h_),t=m_(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}O_.applyToOptions=e=>{let t=__(e,100,O_);return e.ease=t.ease,e.duration=Ch(t.duration),e.type=`keyframes`,e};var k_=5;function A_(e,t,n){let r=Math.max(t-k_,0);return Th(n-e(r),t-r)}function j_({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=
12500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=O_({keyframes:[f.value,m(f.value)],velocity:A_(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function M_(e,t,n){let r=[],i=n||mh.mix||f_,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=bh(Array.isArray(t)?t[n]||yh:t,a)),r.push(a)}return r}function N_(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=M_(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=xh(e[r],e[r+1],n);return s[r](i)};return n?t=>l(ph(e[0],e[a-1],t)):l}function P_(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=xh(0,t,r);e.push(Qg(n,1,i))}}function F_(e){let t=[0];return P_(t,e.length-1),t}function I_(e,t){return e.map(e=>e*t)}function L_(e,t){return e.map(()=>t||Hh).splice(0,e.length-1)}function R_({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Uh(r)?r.map(qh):qh(r),a={done:!1,value:t[0]},o=N_(I_(n&&n.length===t.length?n:F_(t),e),t,{ease:Array.isArray(i)?i:L_(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var z_=e=>e!==null;function B_(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(z_),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var V_={decay:j_,inertia:j_,tween:R_,keyframes:R_,spring:O_};function H_(e){typeof e.type==`string`&&(e.type=V_[e.type])}var U_=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},W_=e=>e/100,G_=class extends U_{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==ig.now()&&this.tick(ig.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;H_(e);let{type:t=R_,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||R_;s!==R_&&typeof o[0]!=`number`&&(this.mixKeyframes=bh(W_,f_(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=g_(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=ph(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==j_&&(b.value=B_(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return wh(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+wh(e)}get time(){return wh(this.currentTime)}set time(e){e=Ch(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return A_(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(ig.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=wh(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=p_,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(ig.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function K_(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var q_=e=>e*180/Math.PI,J_=e=>X_(q_(Math.atan2(e[1],e[0]))),Y_={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:J_,rotateZ:J_,skewX:e=>q_(Math.atan(e[1])),skewY:e=>q_(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},X_=e=>(e%=360,e<0&&(e+=360),e),Z_=J_,Q_=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),$_=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ev={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Q_,scaleY:$_,scale:e=>(Q_(e)+$_(e))/2,rotateX:e=>X_(q_(Math.atan2(e[6],e[5]))),rotateY:e=>X_(q_(Math.atan2(-e[2],e[0]))),rotateZ:Z_,rotate:Z_,skewX:e=>q_(Math.atan(e[4])),skewY:e=>q_(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function tv(e){return+!!e.includes(`scale`)}
12function nv(e,t){if(!e||e===`none`)return tv(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=ev,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Y_,i=t}if(!i)return tv(t);let a=r[t],o=i[1].split(`,`).map(iv);return typeof a==`function`?a(o):o[a]}var rv=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return nv(n,t)};function iv(e){return parseFloat(e.trim())}var av=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],ov=new Set([...av,`pathRotation`]),sv=e=>e===dg||e===X,cv=new Set([`x`,`y`,`z`]),lv=av.filter(e=>!cv.has(e));function uv(e){let t=[];return lv.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var dv={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>nv(t,`x`),y:(e,{transform:t})=>nv(t,`y`)};dv.translateX=dv.x,dv.translateY=dv.y;var fv=new Set,pv=!1,mv=!1,hv=!1;function gv(){if(mv){let e=Array.from(fv).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=uv(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}mv=!1,pv=!1,fv.forEach(e=>e.complete(hv)),fv.clear()}function _v(){fv.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(mv=!0)})}function vv(){hv=!0,_v(),gv(),hv=!1}var yv=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(fv.add(this),pv||(pv=!0,Qh.read(_v),Qh.resolveKeyframes(gv))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}K_(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),fv.delete(this)}cancel(){this.state===`scheduled`&&(fv.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},bv=e=>e.startsWith(`--`);function xv(e,t,n){bv(t)?e.style.setProperty(t,n):e.style[t]=n}var Sv={};function Cv(e,t){let n=vh(e);return()=>Sv[t]??n()}var wv=Cv(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Tv=Cv(()=>{try{document.createElement(`div`).animate({opacity:0}
12,{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Ev=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Dv={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Ev([0,.65,.55,1]),circOut:Ev([.55,0,1,.45]),backIn:Ev([.31,.01,.66,-.59]),backOut:Ev([.33,1.53,.69,.99])};function Ov(e,t){if(e)return typeof e==`function`?Tv()?m_(e,t):`ease-out`:Wh(e)?Ev(e):Array.isArray(e)?e.map(e=>Ov(e,t)||Dv.easeOut):Dv[e]}function kv(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Ov(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function Av(e){return typeof e==`function`&&`applyToOptions`in e}function jv({type:e,...t}){return Av(e)&&Tv()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Mv=class extends U_{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=jv(e);this.animation=kv(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=B_(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),xv(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return wh(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+wh(e)}get time(){return wh(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ch(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`f
12inished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&wv()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),yh):r(this)}},Nv={anticipate:Ih,backInOut:Fh,circInOut:zh};function Pv(e){return e in Nv}function Fv(e){typeof e.ease==`string`&&Pv(e.ease)&&(e.ease=Nv[e.ease])}var Iv=10,Lv=class extends Mv{constructor(e){Fv(e),H_(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new G_({...a,autoplay:!1}),s=Math.max(Iv,ig.now()-this.startTime),c=ph(0,Iv,s-Iv),l=o.sample(s).value,{name:u}=this.options;i&&u&&xv(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Rv=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(Jg.test(e)||e===`0`)&&!e.startsWith(`url(`));function zv(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Bv(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Rv(i,t),s=Rv(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:zv(e)||(n===`spring`||Av(n))&&r}function Vv(e){e.duration=0,e.type=`keyframes`}var Hv=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),Uv=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Wv(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Uv.test(e[t]))return!0;return!1}var Gv=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Kv=vh(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function qv(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e,c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Kv()&&n&&(Hv.has(n)||Gv.has(n)&&Wv(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Jv=40,Yv=class extends U_{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ig.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||yv;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=ig.now();let u=!0;Bv(e,i,a,o)||(u=!1,(mh.instantAnimations||!s)&&l?.(B_(e,n,t)),e[0]=e[e.length-1],Vv(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Jv?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&qv(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Lv({...d,element:p})}catch{m=new G_(d)}else m=new G_(d);m.finished.then(()=>{this.notifyFinished()}).catch(yh),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),vv()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function Xv(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>
12e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Zv=30,Qv=e=>!isNaN(parseFloat(e)),$v={current:void 0},ey=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=ig.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=ig.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Qv(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new Sh);let n=this.events[e].add(t);return e===`change`?()=>{n(),Qh.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return $v.current&&$v.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=ig.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Zv)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Zv);return Th(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function ty(e,t){return new ey(e,t)}function ny(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function ry(e,t){let n=e?.[t]??e?.default??e;return n===e?n:ny(n,e)}var iy={type:`spring`,stiffness:500,damping:25,restSpeed:10},ay=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),oy={type:`keyframes`,duration:.8},sy={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},cy=(e,{keyframes:t})=>t.length>2?oy:ov.has(e)?e.startsWith(`scale`)?ay(t[1]):iy:sy,ly=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function uy(e){for(let t in e)if(!ly.has(t))return!0;return!1}var dy=(e,t,n,r={},i,a)=>o=>{let s=ry(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=Ch(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};uy(s)||Object.assign(u,cy(e,u)),u.duration&&=Ch(u.duration),u.repeatDelay&&=Ch(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Vv(u),u.delay===0&&(d=!0)),(mh.instantAnimations||mh.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Vv(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=B_(u.keyframes,s);if(e!==void 0){Qh.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new G_(u):new Yv(u)},fy=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function py(e){let t=fy.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function my(e,t,n=1){`${e}`;let[r,i]=py(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return hh(e)?parseFloat(e):e}return cg(i)?my(i,t,n+1):i}function hy(e){let t=[{},{}];
12return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function gy(e,t,n,r){if(typeof t==`function`){let[i,a]=hy(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=hy(r);t=t(n===void 0?e.custom:n,i,a)}return t}function _y(e,t,n){let r=e.getProps();return gy(r,t,n===void 0?r.custom:n,e)}var vy=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...av]),yy=e=>Array.isArray(e);function by(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ty(n))}function xy(e){return yy(e)?e[e.length-1]||0:e}function Sy(e,t){let{transitionEnd:n={},transition:r={},...i}=_y(e,t)||{};i={...i,...n};for(let t in i)by(e,t,xy(i[t]))}var Cy=e=>!!(e&&e.getVelocity);function wy(e){return!!(Cy(e)&&e.add)}function Ty(e,t){let n=e.getValue(`willChange`);if(wy(n))return n.add(t);if(!n&&mh.WillChange){let n=new mh.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Ey(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Dy=`data-`+Ey(`framerAppearId`);function Oy(e){return e.props[Dy]}function ky({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ay(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?ny(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&ky(f,t))continue;let o={delay:n,...ry(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){Qh.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=Oy(e);if(n){let e=window.MotionHandoffAnimation(n,t,Qh);e!==null&&(o.startTime=e,p=!0)}}Ty(e,t);let m=l??e.shouldReduceMotion;r.start(dy(t,r,i,m&&vy.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>Qh.update(()=>{o&&Sy(e,o)});d.length?Promise.all(d).then(t):t()}return d}function jy(e,t,n={}){let r=_y(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(Ay(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return My(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}return Promise.all([a(),o(n.delay)])}function My(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(jy(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Xv(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function Ny(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>jy(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=jy(e,t,n);else{let i=typeof t==`function`?_y(e,t,n.custom):t;r=Promise.all(Ay(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var Py={test:e=>e===`auto`,parse:e=>e},Fy=e=>t=>t.test(e),Iy=[dg,X,Dg,Eg,kg,Og,Py],Ly=e=>Iy.find(Fy(e));function Ry(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||_h(e)}var zy=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function By(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(hg)||[];if(!r)return e;let i=n.replace(r,``),a=+!!zy.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Vy=/\b([a-z-]*)\(.*?\)/gu,Hy={...Jg,getAnimatableNone:e=>{let t=e.match(Vy);return t?t.map(By).join(` `):e}},Uy={...Jg,getAnimatableNone:e=>{let t=Jg.parse(e);return Jg.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Wy={...dg,transform:Math.round},Gy={borderWidth:X,borderTopWidth:X,borderRightWidth:X,borderBottomWidth:X,borderLeftWidth:X,borderRadius:X,borderTopLeftRadius:X,borderTopRightRadius:X,borderBottomRightRadius:X,borderBottomLeftRadius:X,width:X,maxWidth:X,height:X,maxHeight:X,top:X,right:X,bottom:X,left:X,inset:X,insetBlock:X,insetBlockStart:X,insetBlockEnd:X,insetInline:X,insetInlineStart:X,insetInlineEnd:X,padding:X,paddingTop:X,paddingRight:X,paddingBottom:X,paddingLeft:X,paddingBlock:X,paddingBlockStart:X,paddingBlockEnd:X,paddingInline:X,paddingInlineStart:X,paddingInlineEnd:X,margin:X,marginTop:X,marginRight:X,marginBottom:X,marginLeft:X,marginBlock:X,marginBlockStart:X,marginBlockEnd:X,marginInline:X,marginInlineStart:X,marginInlineEnd:X,fontSize:X,backgroundPositionX:X,backgroundPositionY:X,rotate:Eg,pathRotation:Eg,rotateX:Eg,rotateY:Eg,rotateZ:Eg,scale:pg,scaleX:pg,scaleY:pg,scaleZ:pg,skew:Eg,skewX:Eg,skewY:Eg,distance:X,translateX:X,translateY:X,translateZ:X,x:X,y:X,z:X,perspective:X,transformPerspective:X,opacity:fg,originX:Ag,originY:Ag,originZ:X,zIndex:Wy,fillOpacity:fg,strokeOpacity:fg,numOctaves:Wy},Ky={...Gy,color:Mg,backgroundColor:Mg,outlineColor:Mg,fill:Mg,stroke:Mg,borderColor:Mg,borderTopColor:Mg,borderRightColor:Mg,borderBottomColor:Mg,borderLeftColor:Mg,filter:Hy,WebkitFilter:Hy,mask:Uy,WebkitMask:Uy},qy=e=>Ky[e],Jy=new Set([Hy,Uy]);function Yy(e,t){let n=qy(e);return Jy.has(n)||(n=Jg),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Xy=new Set([`auto`,`none`,`0`]);function Zy(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Xy.has(t)&&Vg(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=Yy(n,i)}var Qy=class extends yv{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),cg(r))){let i=my(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!vy.has(n)||e.length!==2)return;let[r,i]=e,a=Ly(r),o=Ly(i);if(ug(r)!==ug(i)&&dv[n]){this.needsMeasurement=!0;return}if(a!==o){if(sv(a)&&sv(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else dv[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Ry(e[t]))&&n.push(t);n.length&&Zy(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=dv[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=dv[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEac
12h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},$y=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function eb(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var tb=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function nb(e){return gh(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:rb,cancel:ib}=Zh(queueMicrotask,!1),ab={x:!1,y:!1};function ob(){return ab.x||ab.y}function sb(e){return e===`x`||e===`y`?ab[e]?null:(ab[e]=!0,()=>{ab[e]=!1}):ab.x||ab.y?null:(ab.x=ab.y=!0,()=>{ab.x=ab.y=!1})}function cb(e,t){let n=eb(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function lb(e){return!(e.pointerType===`touch`||ob())}function ub(e,t,n={}){let[r,i,a]=cb(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!lb(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var db=(e,t)=>t?e===t||db(e,t.parentElement):!1,fb=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,pb=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function mb(e){return pb.has(e.tagName)||e.isContentEditable===!0}var hb=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function gb(e){return hb.has(e.tagName)||e.isContentEditable===!0}var _b=new WeakSet;function vb(e){return t=>{t.key===`Enter`&&e(t)}}function yb(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var bb=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=vb(()=>{if(_b.has(n))return;yb(n,`down`);let e=vb(()=>{yb(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>yb(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function xb(e){return fb(e)&&!ob()}var Sb=new WeakSet;function Cb(e,t,n={}){let[r,i,a]=cb(e,n),o=e=>{let r=e.currentTarget;if(!xb(e)||Sb.has(e))return;_b.add(r),n.stopPropagation&&Sb.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),_b.has(r)&&_b.delete(r),xb(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||db(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),nb(e)&&(e.addEventListener(`focus`,e=>bb(e,i)),!mb(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function wb(e){return gh(e)&&`ownerSVGElement`in e}var Tb=new WeakMap,Eb,Db=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:wb(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Ob=Db(`inline`,`width`,`offsetWidth`),kb=Db(`block`,`height`,`offsetHeight`);function Ab({target:e,borderBoxSize:t}){Tb.get(e)?.forEach(n=>{n(e,{get width(){return Ob(e,t)},get height(){return kb(e,t)}})})}function jb(e){e.forEach(Ab)}function Mb(){typeof ResizeObserver>`u`||(Eb=new ResizeObserver(jb))}function Nb(e,t){Eb||Mb();let n=eb(e);return n.forEach(e=>{let n=Tb.get(e);n||(n=new Set,Tb.set(e,n)),n.add(t),Eb?.observe(e)}),()=>{n.forEach(e=>{let n=Tb.get(e);n?.delete(t),n?.size||Eb?.unobserve(e)})}}var Pb=new Set,Fb;function Ib(){Fb=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Pb.forEach(t=>t(e))},window.addEventListener(`resize`,Fb)}function Lb(e){return Pb.add(e),Fb||Ib(),()=>{Pb.delete(e),!Pb.size&&typeof Fb==`function`&&(window.removeEventListener(`resize`,Fb),Fb=void 0)}}function Rb(e,t){return typeof e==`function`?Lb(e):Nb(e,t)}var zb={value:null,addProjectionMetrics:null};function Bb(e){return wb(e)&&e.tagName===`svg`}var Vb=[...Iy,Mg,Jg],Hb=e=>Vb.find(Fy(e)),Ub=()=>({translate:0,scale:1,origin:0,originPoint:0}),Wb=()=>({x:Ub(),y:Ub()}),Gb=()=>({min:0,max:0}),Kb=()=>({x:Gb(),y:Gb()}),qb=new WeakMap;function Jb(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Yb(e){return typeof e==`string`||Array.isArray(e)}var Xb=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Zb=[`initial`,...Xb];function Qb(e){return Jb(e.animate)||Zb.some(t=>Yb(e[t]))}function $b(e){return!!(Qb(e)||e.variants)}function ex(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Cy(i))e.addValue(r,i);else if(Cy(a))e.addValue(r,ty(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,ty(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var tx={current:null},nx={current:!1},rx=typeof window<`u`;function ix(){if(nx.current=!0,rx){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>tx.current=e.matches;e.addEventListener(`change`,t),t()}else tx.current=!1}}var ax=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],ox={};function sx(e){ox=e}function cx(){return ox}var lx=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=yv,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=ig.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Qh.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Qb(t),this.isVariantNode=$b(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&Cy(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,qb.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
12h((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(nx.current||ix(),this.shouldReduceMotion=tx.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),$h(this.notifyUpdate),$h(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Hv.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Mv({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:Ch(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=ov.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&Qh.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in ox){let t=ox[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Kb()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<ax.length;t++){let n=ax[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=ex(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=ty(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);
12return n!=null&&(typeof n==`string`&&(hh(n)||_h(n))?n=parseFloat(n):!Hb(n)&&Jg.test(t)&&(n=Yy(e,t)),this.setBaseTarget(e,Cy(n)?n.get():n)),Cy(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=gy(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!Cy(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Sh),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){rb.render(this.render)}},ux=class extends lx{constructor(){super(...arguments),this.KeyframeResolver=Qy}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Cy(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},dx=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function fx({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function px({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function mx(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function hx(e){return e===void 0||e===1}function gx({scale:e,scaleX:t,scaleY:n}){return!hx(e)||!hx(t)||!hx(n)}function _x(e){return gx(e)||vx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vx(e){return yx(e.x)||yx(e.y)}function yx(e){return e&&e!==`0%`}function bx(e,t,n){return n+t*(e-n)}function xx(e,t,n,r,i){return i!==void 0&&(e=bx(e,i,r)),bx(e,n,r)+t}function Sx(e,t=0,n=1,r,i){e.min=xx(e.min,t,n,r,i),e.max=xx(e.max,t,n,r,i)}function Cx(e,{x:t,y:n}){Sx(e.x,t.translate,t.scale,t.originPoint),Sx(e.y,n.translate,n.scale,n.originPoint)}var wx=.999999999999,Tx=1.0000000000001;function Ex(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Dx(e.x,-a.scroll.offset.x),Dx(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Cx(e,o)),r&&_x(a.latestValues)&&Ax(e,a.latestValues,a.layout?.layoutBox))}t.x<Tx&&t.x>wx&&(t.x=1),t.y<Tx&&t.y>wx&&(t.y=1)}function Dx(e,t){e.min+=t,e.max+=t}function Ox(e,t,n,r,i=.5){Sx(e,t,n,Qg(e.min,e.max,i),r)}function kx(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Ax(e,t,n){let r=n??e;Ox(e.x,kx(t.x,r.x),t.scaleX,t.scale,t.originX),Ox(e.y,kx(t.y,r.y),t.scaleY,t.scale,t.originY)}function jx(e,t){return fx(mx(e.getBoundingClientRect(),t))}function Mx(e,t,n){let r=jx(e,n),{scroll:i}=t;return i&&(Dx(r.x,i.offset.x),Dx(r.y,i.offset.y)),r}var Nx={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Px=av.length;function Fx(e,t,n){let r=``,i=!0;for(let a=0;a<Px;a++){let o=av[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=tb(s,Gy[o]);if(!c){i=!1;let t=Nx[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${tb(a,Gy.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function Ix(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(ov.has(e)){o=!0;continue}if(og(e)){i[e]=n;continue}{let t=tb(n,Gy[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Fx(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function Lx(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function Rx(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var zx={correct:(e,t)=>
12{if(!t.target)return e;if(typeof e==`string`){if(X.test(e))e=parseFloat(e);else return e}return`${Rx(e,t.target.x)}% ${Rx(e,t.target.y)}%`}},Bx={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=Jg.parse(e);if(i.length>5)return r;let a=Jg.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=Qg(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Vx={borderRadius:{...zx,applyTo:[...$y]},borderTopLeftRadius:zx,borderTopRightRadius:zx,borderBottomLeftRadius:zx,borderBottomRightRadius:zx,boxShadow:Bx};function Hx(e,{layout:t,layoutId:n}){return ov.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Vx[e]||e===`opacity`)}function Ux(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Cy(r[t])||i&&Cy(i[t])||Hx(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Wx(e){return window.getComputedStyle(e)}var Gx=class extends ux{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Lx}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(ov.has(t))return this.projection?.isProjecting?tv(t):rv(e,t);{let n=Wx(e),r=(og(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return jx(e,t)}build(e,t,n){Ix(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Ux(e,t,n)}},Kx={offset:`stroke-dashoffset`,array:`stroke-dasharray`},qx={offset:`strokeDashoffset`,array:`strokeDasharray`};function Jx(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Kx:qx;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Yx=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Xx(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Ix(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of Yx)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Jx(d,i,a,o,!1)}var Zx=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),Qx=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function $x(e,t,n,r){Lx(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Zx.has(n)?n:Ey(n),t.attrs[n])}function eS(e,t,n){let r=Ux(e,t,n);for(let n in e)if(Cy(e[n])||Cy(t[n])){let t=av.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var tS=class extends ux{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Kb}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(ov.has(t)){let e=qy(t);return e&&e.default||0}return t=Zx.has(t)?t:Ey(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return eS(e,t,n)}
12build(e,t,n){Xx(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){$x(e,t,n,r)}mount(e){this.isSVGTag=Qx(e.tagName),super.mount(e)}},nS=Zb.length;function rS(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&rS(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<nS;n++){let r=Zb[n],i=e.props[r];(Yb(i)||i===!1)&&(t[r]=i)}return t}function iS(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var aS=[...Xb].reverse(),oS=Xb.length;function sS(e){return t=>Promise.all(t.map(({animation:t,options:n})=>Ny(e,t,n)))}function cS(e){let t=sS(e),n=dS(),r=!0,i=!1,a=t=>(n,r)=>{let i=_y(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=rS(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<oS;t++){let p=aS[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Yb(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||Jb(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=lS(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=yy(t)&&yy(n)?!iS(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=_y(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Xv(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=_y(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=dS(),i=!0}}}function lS(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!iS(t,e):!1}function uS(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function dS(){return{animate:uS(!0),whileInView:uS(),whileHover:uS(),whileTap:uS(),whileDrag:uS(),whileFocus:uS(),exit:uS()}}function fS(e,t){e.min=t.min,e.max=t.max}function pS(e,t){fS(e.x,t.x),fS(e.y,t.y)}function mS(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var hS=.9999,gS=1.0001,_S=-.01,vS=.01;function yS(e){return e.max-e.min}function bS(e,t,n){return Math.abs(e-t)<=n}function xS(e,t,n,r=.5){e.origin=r,e.originPoint=Qg(t.min,t.max,e.origin),e.scale=yS(n)/yS(t),e.translate=Qg(n.min,n.max,e.origin)-e.originPoint,(e.scale>=hS&&e.scale<=gS||isNaN(e.scale))&&(e.scale=1),(e.translate>=_S&&e.translate<=vS||isNaN(e.translate))&&(e.translate=0)}function SS(e,t,n,r){xS(e.x,t.x,n.x,r?r.originX:void 0),xS(e.y,t.y,n.y,r?r.originY:void 0)}function CS(e,t,n,r=0){e.min=(r?Qg(n.min,n.max,r):n.min)+t.min,e.max=e.min+yS(t)}function wS(e,t,n,r){CS(e.x,t.x,n.x,r?.x),CS(e.y,t.y,n.y,r?.y)}function TS(e,t,n,r=0){let i=r?Qg(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+yS(t)}
12function ES(e,t,n,r){TS(e.x,t.x,n.x,r?.x),TS(e.y,t.y,n.y,r?.y)}function DS(e,t,n,r,i){return e-=t,e=bx(e,1/n,r),i!==void 0&&(e=bx(e,1/i,r)),e}function OS(e,t=0,n=1,r=.5,i,a=e,o=e){if(Dg.test(t)&&(t=parseFloat(t),t=Qg(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=Qg(a.min,a.max,r);e===a&&(s-=t),e.min=DS(e.min,t,n,s,i),e.max=DS(e.max,t,n,s,i)}function kS(e,t,[n,r,i],a,o){OS(e,t[n],t[r],t[i],t.scale,a,o)}var AS=[`x`,`scaleX`,`originX`],jS=[`y`,`scaleY`,`originY`];function MS(e,t,n,r){kS(e.x,t,AS,n?n.x:void 0,r?r.x:void 0),kS(e.y,t,jS,n?n.y:void 0,r?r.y:void 0)}function NS(e){return e.translate===0&&e.scale===1}function PS(e){return NS(e.x)&&NS(e.y)}function FS(e,t){return e.min===t.min&&e.max===t.max}function IS(e,t){return FS(e.x,t.x)&&FS(e.y,t.y)}function LS(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function RS(e,t){return LS(e.x,t.x)&&LS(e.y,t.y)}function zS(e){return yS(e.x)/yS(e.y)}function BS(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function VS(e){return[e(`x`),e(`y`)]}function HS(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var US=$y.length,WS=e=>typeof e==`string`?parseFloat(e):e,GS=e=>typeof e==`number`||X.test(e);function KS(e,t,n,r,i,a){i?(e.opacity=Qg(0,n.opacity??1,JS(r)),e.opacityExit=Qg(t.opacity??1,0,YS(r))):a&&(e.opacity=Qg(t.opacity??1,n.opacity??1,r));for(let i=0;i<US;i++){let a=$y[i],o=qS(t,a),s=qS(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||GS(o)===GS(s)?(e[a]=Math.max(Qg(WS(o),WS(s),r),0),(Dg.test(s)||Dg.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=Qg(t.rotate||0,n.rotate||0,r))}function qS(e,t){return e[t]===void 0?e.borderRadius:e[t]}var JS=XS(0,.5,Rh),YS=XS(.5,.95,yh);function XS(e,t,n){return r=>r<e?0:r>t?1:n(xh(e,t,r))}function ZS(e,t,n){let r=Cy(e)?e:ty(e);return r.start(dy(``,r,t,n)),r.animation}function QS(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var $S=(e,t)=>e.depth-t.depth,eC=class{constructor(){this.children=[],this.isDirty=!1}add(e){dh(this.children,e),this.isDirty=!0}remove(e){fh(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort($S),this.isDirty=!1,this.children.forEach(e)}};function tC(e,t){let n=ig.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&($h(r),e(a-t))};return Qh.setup(r,!0),()=>$h(r)}function nC(e){return Cy(e)?e.get():e}var rC=class{constructor(){this.members=[]}add(e){dh(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(fh(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(fh(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}
12scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},iC={hasAnimatedSinceResize:!0,hasEverUpdated:!1},aC={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},oC=[``,`X`,`Y`,`Z`],sC=1e3,cC=0;function lC(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function uC(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Oy(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,Qh,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&uC(r)}function dC({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=cC++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,zb.value&&(aC.nodes=aC.calculatedTargetDeltas=aC.calculatedProjections=0),this.nodes.forEach(mC),this.nodes.forEach(CC),this.nodes.forEach(wC),this.nodes.forEach(hC),zb.addProjectionMetrics&&zb.addProjectionMetrics(aC)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new eC)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Sh),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=wb(t)&&!Bb(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;Qh.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=tC(i,250),iC.hasAnimatedSinceResize&&(iC.hasAnimatedSinceResize=!1,this.nodes.forEach(SC)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||jC,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!RS(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...ry(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||SC(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),$h(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEac
12h(TC),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&uC(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(vC),this.nodes.forEach(_C);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(yC);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(bC),this.nodes.forEach(xC),this.nodes.forEach(fC),this.nodes.forEach(pC)):this.nodes.forEach(yC),this.clearAllSnapshots();let e=ig.now();eg.delta=ph(0,1e3/60,e-eg.timestamp),eg.timestamp=e,eg.isProcessing=!0,tg.update.process(eg),tg.preRender.process(eg),tg.render.process(eg),eg.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,rb.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(gC),this.sharedNodes.forEach(EC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Qh.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Qh.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!yS(this.snapshot.measuredBox.x)&&!yS(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=Kb(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!PS(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||_x(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),FC(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Kb();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(LC))){let{scroll:e}=this.root;e&&(Dx(t.x,e.offset.x),Dx(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Kb();if(pS(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&pS(t,e),Dx(t.x,i.offset.x),Dx(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||Kb();pS(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(Dx(r.x,-n.scroll.offset.x),Dx(r.y,-n.scroll.offset.y)),_x(n.latestValues)&&Ax(r,n.latestValues,n.layout?.layoutBox)}return _x(this.latestValues)&&Ax(r,this.latestValues,this.layout?.layoutBox),r}
12removeTransform(e){let t=Kb();pS(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!_x(n.latestValues))continue;let r;n.instance&&(gx(n.latestValues)&&n.updateSnapshot(),r=Kb(),pS(r,n.measurePageBox())),MS(t,n.latestValues,n.snapshot?.layoutBox,r)}return _x(this.latestValues)&&MS(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==eg.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=eg.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Kb(),this.targetWithTransforms=Kb()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),wS(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):pS(this.target,this.layout.layoutBox),Cx(this.target,this.targetDelta)):pS(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),zb.value&&aC.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||gx(this.parent.latestValues)||vx(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Kb(),this.relativeTargetOrigin=Kb(),ES(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),pS(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===eg.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;pS(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Ex(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Kb());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(mS(this.prevProjectionDelta.x,this.projectionDelta.x),mS(this.prevProjectionDelta.y,this.projectionDelta.y)),SS(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!BS(this.projectionDelta.x,this.prevProjectionDelta.x)||!BS(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),zb.value&&aC.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Wb(),this.projectionDelta=Wb(),this.projectionDeltaWithTransform=Wb()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Wb();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=Kb(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(AC));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=Qg(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=Qg(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(DC(o.x,e.x,n),DC(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ES(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),kC(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&IS(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=Kb(),pS(f,this.relativeTarget)),c&&(this.animationValues=a,KS(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=($h(this.pendingAnimation),void 0),this.pendingAnimation=Qh.update(()=>{iC.hasAnimatedSinceResize=!0,this.motionValue||=ty(0),this.motionValue.jump(0,!1),this.currentAnimation=ZS(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(sC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&IC(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Kb();let t=yS(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=yS(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}pS(t,n),Ax(t,i),SS(this.projectionDeltaWithTransform,this.layoutCorrected,t,i
12)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new rC),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&lC(`z`,e,r,this.animationValues);for(let t=0;t<oC.length;t++)lC(`rotate${oC[t]}`,e,r,this.animationValues),lC(`skew${oC[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=nC(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=nC(t?.pointerEvents)||``),this.hasProjected&&!_x(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=HS(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Vx){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Vx[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?nC(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(_C),this.root.sharedNodes.clear()}}}function fC(e){e.updateLayout()}function pC(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)VS(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=yS(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;fS(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else IC(i,t.layoutBox,n)&&VS(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=yS(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Wb();SS(o,n,t.layoutBox);let s=Wb();a?SS(s,e.applyTransform(r,!0),t.measuredBox):SS(s,n,t.layoutBox);let c=!PS(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=Kb();ES(s,t.layoutBox,i.layoutBox,o);let c=Kb();ES(c,n,a.layoutBox,o),RS(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function mC(e){zb.value&&aC.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function hC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function gC(e){e.clearSnapshot()}function _C(e){e.clearMeasurements()}function vC(e){e.isLayoutDirty=!0,e.updateLayout()}function yC(e){e.isLayoutDirty=!1}function bC(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function xC(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function SC(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function CC(e){e.resolveTargetDelta()}function wC(e){e.calcProjection()}
12function TC(e){e.resetSkewAndRotation()}function EC(e){e.removeLeadSnapshot()}function DC(e,t,n){e.translate=Qg(t.translate,0,n),e.scale=Qg(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function OC(e,t,n,r){e.min=Qg(t.min,n.min,r),e.max=Qg(t.max,n.max,r)}function kC(e,t,n,r){OC(e.x,t.x,n.x,r),OC(e.y,t.y,n.y,r)}function AC(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var jC={duration:.45,ease:[.4,0,.1,1]},MC=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),NC=MC(`applewebkit/`)&&!MC(`chrome/`)?Math.round:yh;function PC(e){e.min=NC(e.min),e.max=NC(e.max)}function FC(e){PC(e.x),PC(e.y)}function IC(e,t,n){return e===`position`||e===`preserve-aspect`&&!bS(zS(t),zS(n),.2)}function LC(e){return e!==e.root&&e.scroll?.wasRoot}var RC=dC({attachResizeListener:(e,t)=>QS(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),zC={current:void 0},BC=dC({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!zC.current){let e=new RC({});e.mount(window),e.setOptions({layoutScroll:!0}),zC.current=e}return zC.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),VC=(0,z.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function HC(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function UC(...e){return t=>{let n=!1,r=e.map(e=>{let r=HC(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():HC(e[t],null)}}}}function WC(...e){return z.useCallback(UC(...e),e)}var GC=class extends z.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(nb(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=nb(e)&&e.offsetWidth||0,r=nb(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function KC({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,z.useId)(),s=(0,z.useRef)(null),c=(0,z.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:l}=(0,z.useContext)(VC),u=WC(s,a===!1?void 0:e.props?.ref??e?.ref);return(0,z.useInsertionEffect)(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m,direction:h}=c.current;if(t||a===!1||!s.current||!e||!u)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let y=document.createElement(`style`);l&&(y.nonce=l);let b=i??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(` 13 [data-motion-pop-id="${o}"] { 14 position: absolute !important; 15 width: ${e}px !important; 16 height: ${u}px !important; 17 ${_}px !important; 18 ${v}px !important; 19 } 20 `),()=>{s.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),(0,B.jsx)(GC,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:z.cloneElement(e,{ref:u})})}var qC=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=ch(JC),d=(0,z.useId)(),f=(0,z.useRef)(n),p=(0,z.useRef)(r);lh(()=>{f.current=n,p.current=r});let m=!0,h=(0,z.useMemo)(()=>(m=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:e=>(u.set(e,!1),()=>{u.delete(e),!f.current&&!u.size&&p.current?.()})}),[n,u,r]);return a&&m&&(h={...h}),(0,z.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),z.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,B.jsx)(KC,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,children:e}),(0,B.jsx)(uh.Provider,{value:h,children:e})};function JC(){return new Map}function YC(e=!0){let t=(0,z.useContext)(uh);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,z.useId)();(0,z.useEffect)(()=>
20{if(e)return i(a)},[e]);let o=(0,z.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var XC=e=>e.key||``;function ZC(e){let t=[];return z.Children.forEach(e,e=>{(0,z.isValidElement)(e)&&t.push(e)}),t}var QC=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=YC(o),f=(0,z.useMemo)(()=>ZC(e),[e]),p=o&&!u?[]:f.map(XC),m=(0,z.useRef)(!0),h=(0,z.useRef)(f),g=ch(()=>new Map),_=(0,z.useRef)(new Set),[v,y]=(0,z.useState)(f),[b,x]=(0,z.useState)(f);lh(()=>{m.current=!1,h.current=f;for(let e=0;e<b.length;e++){let t=XC(b[e]);p.includes(t)?(g.delete(t),_.current.delete(t)):g.get(t)!==!0&&g.set(t,!1)}},[b,p.length,p.join(`-`)]);let S=[];if(f!==v){let e=[...f];for(let t=0;t<b.length;t++){let n=b[t],r=XC(n);p.includes(r)||(e.splice(t,0,n),S.push(n))}return a===`wait`&&S.length&&(e=S),x(ZC(e)),y(f),null}let{forceRender:C}=(0,z.useContext)(sh);return(0,B.jsx)(B.Fragment,{children:b.map(e=>{let v=XC(e),y=o&&!u?!1:f===b||p.includes(v);return(0,B.jsx)(qC,{isPresent:y,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:y?void 0:()=>{if(_.current.has(v))return;if(g.has(v))_.current.add(v),g.set(v,!0);else return;let e=!0;g.forEach(t=>{t||(e=!1)}),e&&(C?.(),x(h.current),o&&d?.(),r&&r())},anchorX:s,anchorY:c,children:e},v)})})},$C=(0,z.createContext)({strict:!1}),ew={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},tw=!1;function nw(){if(tw)return;let e={};for(let t in ew)e[t]={isEnabled:e=>ew[t].some(t=>!!e[t])};sx(e),tw=!0}function rw(){return nw(),cx()}function iw(e){let t=rw();for(let n in e)t[n]={...t[n],...e[n]};sx(t)}var aw=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function ow(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||aw.has(e)}var sw=i({default:()=>cw}),cw,lw=t((()=>{throw cw={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),uw=e=>!ow(e);function dw(e){typeof e==`function`&&(uw=t=>t.startsWith(`on`)?!ow(t):e(t))}try{dw((lw(),l(sw)).default)}catch{}function fw(e,t,n){let r={};for(let i in e)(i!==`values`||typeof e.values!=`object`)&&(Cy(e[i])||(uw(i)||n===!0&&ow(i)||!t&&!ow(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]));return r}var pw=(0,z.createContext)({});function mw(e,t){if(Qb(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Yb(t)?t:void 0,animate:Yb(n)?n:void 0}}return e.inherit===!1?{}:t}function hw(e){let{initial:t,animate:n}=mw(e,(0,z.useContext)(pw));return(0,z.useMemo)(()=>({initial:t,animate:n}),[gw(t),gw(n)])}function gw(e){return Array.isArray(e)?e.join(` `):e}var _w=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function vw(e,t,n){for(let r in t)!Cy(t[r])&&!Hx(r,n)&&(e[r]=t[r])}function yw({transformTemplate:e},t){return(0,z.useMemo)(()=>{let n=_w();return Ix(n,t,e),Object.assign({},n.vars,n.style)},[t])}function bw(e,t){let n=e.style||{},r={};return vw(r,n,e),Object.assign(r,yw(e,t)),r}function xw(e,t){let n={},r=bw(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Sw=()=>({..._w(),attrs:{}});function Cw(e,t,n,r){let i=(0,z.useMemo)(()=>{let n=Sw();return Xx(n,t,Qx(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};vw(t,e.style,e),i.style={...t,...i.style}}return i}var ww=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function Tw(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(ww.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ew(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??Tw(e)?Cw:xw)(t,r,i,e),c=fw(t,typeof e==`string`,a),l=e===z.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,z.useMemo)(()=>Cy(u)?u.get():u,[u]);return(0,z.createElement)(e,{...l,children:d})}function Dw({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Ow(n,r,i,e),renderState:t()}}function Ow(e,t,n,r){let i={}
20,a=r(e,{});for(let e in a)i[e]=nC(a[e]);let{initial:o,animate:s}=e,c=Qb(e),l=$b(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Jb(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=gy(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var kw=e=>(t,n)=>{let r=(0,z.useContext)(pw),i=(0,z.useContext)(uh),a=()=>Dw(e,t,r,i);return n?a():ch(a)},Aw=kw({scrapeMotionValuesFromProps:Ux,createRenderState:_w}),jw=kw({scrapeMotionValuesFromProps:eS,createRenderState:Sw}),Mw=Symbol.for(`motionComponentSymbol`);function Nw(e,t,n){let r=(0,z.useRef)(n);(0,z.useInsertionEffect)(()=>{r.current=n});let i=(0,z.useRef)(null);return(0,z.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var Pw=(0,z.createContext)({});function Fw(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Iw(e,t,n,r,i,a){let{visualElement:o}=(0,z.useContext)(pw),s=(0,z.useContext)($C),c=(0,z.useContext)(uh),l=(0,z.useContext)(VC),u=l.reducedMotion,d=l.skipAnimations,f=(0,z.useRef)(null),p=(0,z.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,z.useContext)(Pw);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Lw(f.current,n,i,h);let g=(0,z.useRef)(!1);(0,z.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[Dy],v=(0,z.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return lh(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,z.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function Lw(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Rw(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Fw(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Rw(e){if(e)return e.options.allowProjection===!1?Rw(e.parent):e.projection}function zw(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&iw(r);let a=n?n===`svg`:Tw(e),o=a?jw:Aw;function s(n,s){let c,l={...(0,z.useContext)(VC),...n,layoutId:Bw(n)},{isStatic:u}=l,d=hw(n),f=o(n,u);if(!u&&typeof window<`u`){Vw(l,r);let t=Hw(l);c=t.MeasureLayout,d.visualElement=Iw(e,f,l,i,t.ProjectionNode,a)}return(0,B.jsxs)(pw.Provider,{value:d,children:[c&&d.visualElement?(0,B.jsx)(c,{visualElement:d.visualElement,...l}):null,Ew(e,n,Nw(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,z.forwardRef)(s);return c[Mw]=e,c}function Bw({layoutId:e}){let t=(0,z.useContext)(sh).id;return t&&e!==void 0?t+`-`+e:e}function Vw(e,t){(0,z.useContext)($C).strict}function Hw(e){let{drag:t,layout:n}=rw();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Uw(e,t){if(typeof Proxy>`u`)return zw;let n=new Map,r=(n,r)=>zw(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,zw(a,void 0,e,t)),n.get(a))})}var Ww=(e,t)=>t.isSVG??Tw(e)?new tS(t):new Gx(t,{allowProjection:e!==z.Fragment}),Gw=class extends dx{constructor(e){super(e),e.animationState||=cS(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Jb(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Kw=0,qw={animation:{Feature:Gw},exit:{Feature:class extends dx{constructor(){super(...arguments),this.id=Kw++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=_y(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>
20{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function Jw(e){return{point:{x:e.pageX,y:e.pageY}}}var Yw=e=>t=>fb(t)&&e(t,Jw(t));function Xw(e,t,n,r){return QS(e,t,Yw(n),r)}var Zw=({current:e})=>e?e.ownerDocument.defaultView:null,Qw=(e,t)=>Math.abs(e-t);function $w(e,t){let n=Qw(e.x,t.x),r=Qw(e.y,t.y);return Math.sqrt(n**2+r**2)}var eT=new Set([`auto`,`scroll`]),tT=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=nT(this.lastRawMoveEventInfo,this.transformPagePoint));let e=iT(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=$w(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=eg;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=nT(t,this.transformPagePoint),Qh.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=iT(e.type===`pointercancel`?this.lastMoveEventInfo:nT(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!fb(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=nT(Jw(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=eg;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,iT(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=bh(Xw(this.contextWindow,`pointermove`,this.handlePointerMove,d),Xw(this.contextWindow,`pointerup`,this.handlePointerUp,d),Xw(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(eT.has(e.overflowX)||eT.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),Qh.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),$h(this.updatePoint)}};function nT(e,t){return t?{point:t(e.point)}:e}function rT(e,t){return{x:e.x-t.x,y:e.y-t.y}}function iT({point:e},t){return{point:e,delta:rT(e,oT(t)),offset:rT(e,aT(t)),velocity:sT(t,.1)}}function aT(e){return e[0]}function oT(e){return e[e.length-1]}function sT(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=oT(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ch(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>Ch(t)*2&&(r=e[1]);let a=wh(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function cT(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Qg(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Qg(n,e,r.max):Math.min(e,n)),e}function lT(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function uT(e,{top:t,left:n,bottom:r,right:i}){return{x:lT(e.x,n,i),y:lT(e.y,t,r)}}function dT(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function fT(e,t){return{x:dT(e.x,t.x),y:dT(e.y,t.y)}}function pT(e,t){let n=.5,r=yS(e),i=yS(t);return i>r?n=xh(t.min,t.max-r,e.min):r>i&&(n=xh(e.min,e.max-i,t.min)),ph(0,1,n)}function mT(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var hT=.35;function gT(e=hT){return e===!1?e=0:e===!0&&(e=hT),{x:_T(e,`left`,`right`),y:_T(e,`top`,`bottom`)}}function _T(e,t,n){return{min:vT(e,t),max:vT(e,n)}}function vT(e,t){return typeof e==`number`?e:e[t]||0}var yT=new WeakMap,bT=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Kb(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(Jw(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=sb(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),VS(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Dg.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=yS(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&Qh.update(()=>i(e,t),!1,!0),Ty(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=wT(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&Qh.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new tT(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Zw(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&Qh.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!CT(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=cT(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Fw(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?uT(n.layoutBox,e):!1,this.elastic=gT(t),r!==this.constraints&&!Fw(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&VS(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=mT(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Fw(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=Mx(n,r.root,this.visualElement.getTransformPagePoint()),a=fT(r.layout.layoutBox,i);if(t){let e=t(px(a));this.hasMutatedConstraints=!!e,e&&(a=fx(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=VS(o=>
20{if(!CT(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Ty(this.visualElement,e),n.start(dy(e,n,0,t,this.visualElement,!1))}stopAnimation(){VS(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){VS(t=>{let{drag:n}=this.getProps();if(!CT(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-Qg(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Fw(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};VS(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=pT({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),VS(t=>{if(!CT(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(Qg(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;yT.set(this.visualElement,this);let e=this.visualElement.current,t=Xw(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&gb(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Fw(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=ST(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Qh.read(r);let o=QS(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(VS(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=hT,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function xT(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function ST(e,t,n){let r=Rb(e,xT(n)),i=Rb(t,xT(n));return()=>{r(),i()}}function CT(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function wT(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var TT=class extends dx{constructor(e){super(e),this.removeGroupControls=yh,this.removeListeners=yh,this.controls=new bT(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||yh}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ET=e=>(t,n)=>{e&&Qh.update(()=>e(t,n),!1,!0)},DT=class extends dx{constructor(){super(...arguments),this.removePointerDownListener=yh}onPointerDown(e){this.session=new tT(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Zw(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:ET(e),onStart:ET(t),onMove:ET(n),onEnd:(e,t)=>{delete this.session,r&&Qh.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Xw(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},OT=!1,kT=class extends z.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),OT&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),iC.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),OT=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||Qh.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),rb.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;OT=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function AT(e){let[t,n]=YC(),r=(0,z.useContext)(sh);return(0,B.jsx)(kT,{...e,layoutGroup:r,switchLayoutGroup:(0,z.useContext)(Pw),isPresent:t,safeToRemove:n})}var jT={pan:{Feature:DT},drag:{Feature:TT,ProjectionNode:BC,MeasureLayout:AT}};function MT(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&Qh.postRender(()=>i(t,Jw(t)))}var NT=class extends dx{mount(){let{current:e}=this.node;e&&(this.unmount=ub(e,(e,t)=>(MT(this.node,t,`Start`),e=>MT(this.node,e,`End`))))}unmount(){}},PT=class extends dx{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=bh(QS(this.node.current,`focus`,()=>this.onFocus()),QS(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function FT(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&Qh.postRender(()=>i(t,Jw(t)))}var IT=class extends dx{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Cb(e,(e,t)=>(FT(this.node,t,`Start`),(e,{success:t})=>FT(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},LT=new WeakMap,RT=new WeakMap,zT=e=>{let t=LT.get(e.target);t&&t(e)},BT=e=>{e.forEach(zT)};function VT({root:e,...t}){let n=e||document;RT.has(n)||RT.set(n,{});let r=RT.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(BT,{root:e,...t})),r[i]}function HT(e,t,n){let r=VT(t);return LT.set(e,n),r.observe(e),()=>{LT.delete(e),r.unobserve(e)}}var UT={some:0,all:1},WT=class extends dx{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:UT[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=HT(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(GT(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function GT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var KT={inView:{Feature:WT},tap:{Feature:IT},focus:{Feature:PT},hover:{Feature:NT}},qT={layout:{ProjectionNode:BC,MeasureLayout:AT}},JT=Uw({...qw,...KT,...jT,...qT},Ww),YT=({isOpen:e,isScrolled:t,onClose:n})=>{let r=fe(),i=e=>{r(e),n()};return(0,B.jsx)(QC,{children:e&&(0,B.jsx)(JT.div,{initial:{opacity:0}
20,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:`fixed left-0 right-0 z-[99999] ${t?`top-[63px]`:`top-[101px]`}`,children:(0,B.jsx)(`div`,{className:`flex justify-center`,children:(0,B.jsxs)(`div`,{className:`w-[700px] bg-white shadow-xl relative z-[99999] px-8 py-6`,children:[(0,B.jsx)(`button`,{onClick:n,className:`absolute top-4 right-4 p-2 hover:bg-gray-100 rounded-full transition-colors z-[100000]`,"aria-label":`Close menu`,children:(0,B.jsx)(od,{className:`w-6 h-6 text-black`})}),(0,B.jsxs)(`div`,{className:`flex flex-col gap-3 pr-12`,children:[(0,B.jsx)(`button`,{onClick:()=>i(`/services/ai-search`),className:`font-jetbrains font-extrabold text-[30px] text-black text-left px-4 py-2 cursor-pointer hover:bg-gray-100 rounded-sm transition-colors`,children:`AI Search`}),(0,B.jsx)(`button`,{onClick:()=>i(`/services/ai-development`),className:`font-jetbrains font-extrabold text-[30px] text-black text-left px-4 py-2 cursor-pointer hover:bg-gray-100 rounded-sm transition-colors`,children:`AI Development`}),(0,B.jsx)(`button`,{onClick:()=>i(`/services/web-development`),className:`font-jetbrains font-extrabold text-[30px] text-black text-left px-4 py-2 cursor-pointer hover:bg-gray-100 rounded-sm transition-colors`,children:`Web Development`}),(0,B.jsx)(`button`,{onClick:()=>i(`/google-ads-management`),className:`font-jetbrains font-extrabold text-[30px] text-black text-left px-4 py-2 cursor-pointer hover:bg-gray-100 rounded-sm transition-colors`,children:`Agentic Google Ads`})]})]})})})})},XT=[{label:`About Us`,href:`/about`,type:`link`},{label:`Services`,type:`megamenu`},{label:`Our Work`,href:`/case-studies`,type:`link`},{label:`Contact`,href:`/contact`,type:`link`}],ZT=`data:image/svg+xml,%3csvg%20width='21'%20height='21'%20viewBox='0%200%2021%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18.6666%2010.5499C18.6666%206.01188%2015.0104%202.33325%2010.5009%202.33325C5.98942%202.33427%202.33325%206.01188%202.33325%2010.551C2.33325%2014.6511%205.31984%2018.0501%209.22302%2018.6666V12.9251H7.15098V10.551H9.22506V8.7392C9.22506%206.68044%2010.4448%205.54337%2012.3096%205.54337C13.2038%205.54337%2014.1377%205.70362%2014.1377%205.70362V7.72462H13.1078C12.0943%207.72462%2011.7778%208.35848%2011.7778%209.00867V10.5499H14.0418L13.6804%2012.9241H11.7768V18.6656C15.68%2018.0491%2018.6666%2014.6501%2018.6666%2010.5499Z'%20fill='white'/%3e%3c/svg%3e`,QT=`data:image/svg+xml,%3csvg%20width='21'%20height='21'%20viewBox='0%200%2021%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.46997%203.62092C2.46997%202.98559%202.9979%202.4707%203.64929%202.4707H17.3495C18.0009%202.4707%2018.5288%202.98559%2018.5288%203.62092V17.3793C18.5288%2018.0146%2018.0009%2018.5295%2017.3495%2018.5295H3.64929C2.9979%2018.5295%202.46997%2018.0146%202.46997%2017.3793V3.62092ZM7.43114%2015.9139V8.66238H5.02132V15.9139H7.43114ZM6.22673%207.67176C7.06681%207.67176%207.58972%207.11572%207.58972%206.41917C7.57467%205.70756%207.06781%205.16658%206.24279%205.16658C5.41777%205.16658%204.87879%205.70856%204.87879%206.41917C4.87879%207.11572%205.40171%207.67176%206.21067%207.67176H6.22673ZM11.1528%2015.9139V11.8641C11.1528%2011.6473%2011.1688%2011.4305%2011.2331%2011.276C11.4067%2010.8434%2011.8032%2010.3947%2012.4696%2010.3947C13.3418%2010.3947%2013.6901%2011.0592%2013.6901%2012.0347V15.9139H16.0999V11.7547C16.0999%209.52655%2014.9115%208.49076%2013.3257%208.49076C12.0471%208.49076%2011.474%209.19333%2011.1528%209.68814V9.71323H11.1367L11.1528%209.68814V8.66238H8.74395C8.77406%209.34288%208.74395%2015.9139%208.74395%2015.9139H11.1528Z'%20fill='white'/%3e%3c/svg%3e`,$T=`data:image/svg+xml,%3csvg%20width='21'%20height='21'%20viewBox='0%200%2021%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.4972%207.8225C9.02286%207.8225%207.81966%209.02572%207.81966%2010.5001C7.81966%2011.9745%209.02286%2013.1777%2010.4972%2013.1777C11.9716%2013.1777%2013.1748%2011.9745%2013.1748%2010.5001C13.1748%209.02572%2011.9716%207.8225%2010.4972%207.8225ZM18.5279%2010.5001C18.5279%209.39131%2018.5379%208.29254%2018.4757%207.18574C18.4134%205.90017%2018.1201%204.75922%2017.1801%203.81915C16.238%202.87706%2015.0991%202.5858%2013.8135%202.52353C12.7048%202.46126%2011.606%202.4713%2010.4992%202.4713C9.39045%202.4713%208.2917%202.46126%207.18492%202.52353C5.89937%202.5858%204.75845%202.87907%203.81839%203.81915C2.87632%204.76123%202.58506%205.90017%202.52279%207.18574C2.46052%208.29455%202.47057%209.39332%202.47057%2010.5001C2.47057%2011.6069%202.46052%2012.7077%202.52279%2013.8145C2.58506%2015.1001%202.87833%2016.241%203.81839%2017.1811C4.7604
206%2018.1232%205.89937%2018.4144%207.18492%2018.4767C8.29371%2018.539%209.39245%2018.5289%2010.4992%2018.5289C11.608%2018.5289%2012.7068%2018.539%2013.8135%2018.4767C15.0991%2018.4144%2016.24%2018.1212%2017.1801%2017.1811C18.1221%2016.239%2018.4134%2015.1001%2018.4757%2013.8145C18.54%2012.7077%2018.5279%2011.6089%2018.5279%2010.5001ZM10.4972%2014.62C8.21738%2014.62%206.37744%2012.78%206.37744%2010.5001C6.37744%208.22023%208.21738%206.38025%2010.4972%206.38025C12.7771%206.38025%2014.617%208.22023%2014.617%2010.5001C14.617%2012.78%2012.7771%2014.62%2010.4972%2014.62ZM14.7857%207.17369C14.2534%207.17369%2013.8236%206.74383%2013.8236%206.21152C13.8236%205.67921%2014.2534%205.24935%2014.7857%205.24935C15.318%205.24935%2015.7479%205.67921%2015.7479%206.21152C15.7481%206.33792%2015.7233%206.46311%2015.675%206.57991C15.6267%206.69672%2015.5558%206.80285%2015.4664%206.89223C15.3771%206.98161%2015.2709%207.05248%2015.1541%207.10077C15.0373%207.14907%2014.9121%207.17385%2014.7857%207.17369Z'%20fill='white'/%3e%3c/svg%3e`,eE=[{label:`AI Search`,href:`/services/ai-search`},{label:`AI Development`,href:`/services/ai-development`},{label:`Web Development`,href:`/services/web-development`},{label:`Agentic Google Ads`,href:`/google-ads-management`}],tE=({isOpen:e,onClose:t,onContactClick:n})=>{let[r,i]=(0,z.useState)(!1);return(0,B.jsx)(QC,{children:e&&(0,B.jsx)(JT.div,{initial:{y:`-100%`},animate:{y:0},exit:{y:`-100%`},transition:{type:`tween`,duration:.3},className:`fixed top-0 right-0 z-[10000] w-full bg-black rounded-bl-lg shadow-2xl`,children:(0,B.jsxs)(`div`,{className:`flex flex-col`,children:[(0,B.jsxs)(`div`,{className:`flex items-center justify-between p-4`,children:[(0,B.jsx)(`img`,{src:`data:image/svg+xml,%3csvg%20width='40'%20height='39'%20viewBox='0%200%2040%2039'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.5144%2010.3402C14.5968%208.30169%2017.5448%207.28043%2021.3546%207.28043C24.8173%207.28043%2027.542%208.08627%2029.5406%209.69395C29.2334%208.56897%2028.7946%207.51979%2028.2162%206.54641C26.9835%204.47996%2025.2521%202.87228%2023.0181%201.72337C20.7841%200.574456%2018.1193%200%2015.0316%200C11.9439%200%209.33093%200.574456%207.07698%201.72337C4.82304%202.87228%203.07574%204.47996%201.84704%206.54641C0.614351%208.61285%200%2011.0264%200%2013.783V21.9291C0%2024.6857%200.614351%2027.0992%201.84704%2029.1656C3.07973%2031.2321%204.82304%2032.8397%207.07698%2033.9887C7.80702%2034.3597%208.58094%2034.6668%209.39475%2034.9182V19.2483C9.39475%2015.3507%2010.436%2012.3827%2012.5184%2010.3442L12.5144%2010.3402Z'%20fill='white'/%3e%3cpath%20d='M39.6827%2022.2161C36.5591%2017.4928%2032.1948%2011.8599%2029.163%2011.8599H26.6776C25.3851%2010.3679%2023.1711%209.95704%2021.4118%2010.9982C19.4331%2012.1671%2018.7749%2014.7242%2019.9437%2016.7029C20.207%2017.1457%2020.6738%2017.3931%2021.1525%2017.3931C21.3958%2017.3931%2021.6392%2017.3292%2021.8666%2017.1976C22.5328%2016.8026%2022.7562%2015.945%2022.3612%2015.2748C21.9823%2014.6285%2022.1937%2013.7947%2022.84%2013.4157C23.4862%2013.0368%2024.32%2013.2482%2024.699%2013.8945C25.0021%2014.4051%2025.5766%2014.6524%2026.1271%2014.5647V14.6684H29.163C30.0366%2014.6684%2032.5898%2017.1258%2035.5897%2021.2427H34.0259C33.252%2021.2427%2032.6217%2021.869%2032.6217%2022.6469C32.6217%2023.4249%2033.248%2024.0512%2034.0259%2024.0512H35.9527L32.5937%2027.4101L21.9703%2026.0179C21.4756%2025.9341%2020.969%2026.0538%2020.5661%2026.357C20.1432%2026.6721%2019.8799%2027.1548%2019.844%2027.6415L19.461%2031.3077C19.4291%2031.7146%2019.5368%2032.1255%2019.7642%2032.4685L21.9902%2035.7836H19.2656L14.638%2028.7705C14.279%2028.1801%2013.6128%2027.841%2012.9266%2027.9008L11.8016%2027.9926C11.0277%2028.0564%2010.4532%2028.7346%2010.5211%2029.5085C10.5849%2030.2824%2011.2631%2030.8569%2012.037%2030.7891L12.5835%2030.7452L17.1792%2037.7105C17.5103%2038.253%2018.1007%2038.5881%2018.739%2038.5881H23.8253C24.4995%2038.5881%2025.1218%2038.2171%2025.441%2037.6227C25.7601%2037.0243%2025.7242%2036.3062%2025.3492%2035.7398L22.2974%2031.196L22.5368%2028.9181L32.6416%2030.2425C33.2241%2030.3423%2033.8185%2030.1548%2034.2413%2029.7319L39.4513%2024.5219C40.0617%2023.9115%2040.1614%2022.9421%2039.6827%2022.2201V22.2161Z'%20fill='white'/%3e%3cpath%20d='M31.811%2031.3595C31.3801%2030.7172%2030.5065%2030.545
207%2029.8642%2030.9805C29.2738%2031.3754%2029.0823%2032.1414%2029.3895%2032.7637H27.7738L26.4095%2030.6933C25.9826%2030.047%2025.113%2029.8675%2024.4667%2030.2944C23.8205%2030.7212%2023.6409%2031.5909%2024.0678%2032.2371L25.6874%2034.6905C26.0185%2035.2331%2026.6129%2035.5682%2027.2512%2035.5682H31.2126C31.8908%2035.5682%2032.5091%2035.1972%2032.8282%2034.5988C33.1474%2034.0044%2033.1115%2033.2823%2032.7325%2032.7158L31.819%2031.3595H31.811Z'%20fill='white'/%3e%3c/svg%3e`,alt:`Yotta Digital Logo`,className:`w-[40px] h-[39px]`}),(0,B.jsxs)(JT.button,{onClick:t,className:`rounded-lg p-2 flex items-center gap-2`,"aria-label":`Close menu`,whileHover:`hover`,initial:`rest`,animate:`rest`,children:[(0,B.jsx)(`span`,{className:`text-white font-jetbrains text-sm tracking-wider`,children:`CLOSE`}),(0,B.jsxs)(`svg`,{width:`40`,height:`40`,viewBox:`0 0 40 40`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,B.jsx)(JT.path,{d:`M13 13 L27 27`,stroke:`white`,strokeWidth:`2`,strokeLinecap:`round`,variants:{rest:{rotate:0,opacity:1},hover:{rotate:-45,opacity:0}},transition:{duration:.3,ease:`easeInOut`},style:{originX:.5,originY:.5}}),(0,B.jsx)(JT.path,{d:`M27 13 L13 27`,stroke:`white`,strokeWidth:`2`,strokeLinecap:`round`,variants:{rest:{rotate:0,opacity:1},hover:{rotate:45,opacity:1}},transition:{duration:.3,ease:`easeInOut`},style:{originX:.5,originY:.5}})]})]})]}),(0,B.jsx)(`nav`,{className:`p-4`,children:(0,B.jsx)(`div`,{className:`space-y-2`,children:XT.map((e,n)=>(0,B.jsx)(`div`,{children:e.type===`link`?(0,B.jsx)(_e,{to:e.href,onClick:t,className:`block rounded-lg px-4 py-3 font-jetbrains font-extrabold text-[25px] text-white`,children:e.label}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`button`,{onClick:()=>i(!r),className:`flex items-center justify-between w-full rounded-lg px-4 py-3 font-jetbrains font-extrabold text-[25px] text-white`,children:[e.label,(0,B.jsx)(rd,{className:`w-6 h-6 transition-transform ${r?`rotate-180`:``}`})]}),(0,B.jsx)(QC,{children:r&&(0,B.jsx)(JT.div,{initial:{height:0,opacity:0},animate:{height:`auto`,opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:`overflow-hidden pl-6`,children:eE.map((e,n)=>(0,B.jsx)(_e,{to:e.href,onClick:t,className:`block rounded-lg px-4 py-2 font-jetbrains font-semibold text-[18px] text-white/80`,children:e.label},n))})})]})},n))})}),(0,B.jsx)(`div`,{className:`p-4`,children:(0,B.jsxs)(`div`,{className:`flex justify-center gap-6 items-center`,children:[(0,B.jsx)(`button`,{onClick:()=>{n(),t()},className:`hover:opacity-80 transition-opacity`,"aria-label":`Contact us`,children:(0,B.jsx)(`svg`,{width:`21`,height:`21`,viewBox:`0 0 24 24`,fill:`none`,stroke:`white`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,B.jsx)(`path`,{d:`M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z`})})}),(0,B.jsx)(`a`,{href:`https://www.facebook.com/YottaDigitalAI`,target:`_blank`,rel:`noopener noreferrer`,children:(0,B.jsx)(`img`,{src:`data:image/svg+xml,%3csvg%20width='21'%20height='21'%20viewBox='0%200%2021%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18.6666%2010.5499C18.6666%206.01188%2015.0104%202.33325%2010.5009%202.33325C5.98942%202.33427%202.33325%206.01188%202.33325%2010.551C2.33325%2014.6511%205.31984%2018.0501%209.22302%2018.6666V12.9251H7.15098V10.551H9.22506V8.7392C9.22506%206.68044%2010.4448%205.54337%2012.3096%205.54337C13.2038%205.54337%2014.1377%205.70362%2014.1377%205.70362V7.72462H13.1078C12.0943%207.72462%2011.7778%208.35848%2011.7778%209.00867V10.5499H14.0418L13.6804%2012.9241H11.7768V18.6656C15.68%2018.0491%2018.6666%2014.6501%2018.6666%2010.5499Z'%20fill='white'/%3e%3c/svg%3e`,alt:`Facebook`,className:`w-[21px] h-[21px]`})}),(0,B.jsx)(`a`,{href:`https://www.linkedin.com/company/yottadigital`,target:`_blank`,rel:`noopener noreferrer`,children:(0,B.jsx)(`img`,{src:`data:image/svg+xml,%3csvg%20width='21'%20height='21'%20viewBox='0%200%2021%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.46997%203.62092C2.46997%202.98559%202.9979%202.4707%203.64929
20%202.4707H17.3495C18.0009%202.4707%2018.5288%202.98559%2018.5288%203.62092V17.3793C18.5288%2018.0146%2018.0009%2018.5295%2017.3495%2018.5295H3.64929C2.9979%2018.5295%202.46997%2018.0146%202.46997%2017.3793V3.62092ZM7.43114%2015.9139V8.66238H5.02132V15.9139H7.43114ZM6.22673%207.67176C7.06681%207.67176%207.58972%207.11572%207.58972%206.41917C7.57467%205.70756%207.06781%205.16658%206.24279%205.16658C5.41777%205.16658%204.87879%205.70856%204.87879%206.41917C4.87879%207.11572%205.40171%207.67176%206.21067%207.67176H6.22673ZM11.1528%2015.9139V11.8641C11.1528%2011.6473%2011.1688%2011.4305%2011.2331%2011.276C11.4067%2010.8434%2011.8032%2010.3947%2012.4696%2010.3947C13.3418%2010.3947%2013.6901%2011.0592%2013.6901%2012.0347V15.9139H16.0999V11.7547C16.0999%209.52655%2014.9115%208.49076%2013.3257%208.49076C12.0471%208.49076%2011.474%209.19333%2011.1528%209.68814V9.71323H11.1367L11.1528%209.68814V8.66238H8.74395C8.77406%209.34288%208.74395%2015.9139%208.74395%2015.9139H11.1528Z'%20fill='white'/%3e%3c/svg%3e`,alt:`LinkedIn`,className:`w-[21px] h-[21px]`})}),(0,B.jsx)(`a`,{href:`https://www.instagram.com/yottadigitalai/?utm_source=ig_web_button_share_sheet`,target:`_blank`,rel:`noopener noreferrer`,children:(0,B.jsx)(`img`,{src:`data:image/svg+xml,%3csvg%20width='21'%20height='21'%20viewBox='0%200%2021%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.4972%207.8225C9.02286%207.8225%207.81966%209.02572%207.81966%2010.5001C7.81966%2011.9745%209.02286%2013.1777%2010.4972%2013.1777C11.9716%2013.1777%2013.1748%2011.9745%2013.1748%2010.5001C13.1748%209.02572%2011.9716%207.8225%2010.4972%207.8225ZM18.5279%2010.5001C18.5279%209.39131%2018.5379%208.29254%2018.4757%207.18574C18.4134%205.90017%2018.1201%204.75922%2017.1801%203.81915C16.238%202.87706%2015.0991%202.5858%2013.8135%202.52353C12.7048%202.46126%2011.606%202.4713%2010.4992%202.4713C9.39045%202.4713%208.2917%202.46126%207.18492%202.52353C5.89937%202.5858%204.75845%202.87907%203.81839%203.81915C2.87632%204.76123%202.58506%205.90017%202.52279%207.18574C2.46052%208.29455%202.47057%209.39332%202.47057%2010.5001C2.47057%2011.6069%202.46052%2012.7077%202.52279%2013.8145C2.58506%2015.1001%202.87833%2016.241%203.81839%2017.1811C4.76046%2018.1232%205.89937%2018.4144%207.18492%2018.4767C8.29371%2018.539%209.39245%2018.5289%2010.4992%2018.5289C11.608%2018.5289%2012.7068%2018.539%2013.8135%2018.4767C15.0991%2018.4144%2016.24%2018.1212%2017.1801%2017.1811C18.1221%2016.239%2018.4134%2015.1001%2018.4757%2013.8145C18.54%2012.7077%2018.5279%2011.6089%2018.5279%2010.5001ZM10.4972%2014.62C8.21738%2014.62%206.37744%2012.78%206.37744%2010.5001C6.37744%208.22023%208.21738%206.38025%2010.4972%206.38025C12.7771%206.38025%2014.617%208.22023%2014.617%2010.5001C14.617%2012.78%2012.7771%2014.62%2010.4972%2014.62ZM14.7857%207.17369C14.2534%207.17369%2013.8236%206.74383%2013.8236%206.21152C13.8236%205.67921%2014.2534%205.24935%2014.7857%205.24935C15.318%205.24935%2015.7479%205.67921%2015.7479%206.21152C15.7481%206.33792%2015.7233%206.46311%2015.675%206.57991C15.6267%206.69672%2015.5558%206.80285%2015.4664%206.89223C15.3771%206.98161%2015.2709%207.05248%2015.1541%207.10077C15.0373%207.14907%2014.9121%207.17385%2014.7857%207.17369Z'%20fill='white'/%3e%3c/svg%3e`,alt:`Instagram`,className:`w-[21px] h-[21px]`})})]})})]})})})},nE=Object.defineProperty,rE=(e,t)=>nE(e,`name`,{value:t,configurable:!0}),iE=`focusScope.autoFocusOnMount`,aE=`focusScope.autoFocusOnUnmount`,oE={bubbles:!1,cancelable:!0},sE=z.forwardRef(rE(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=z.useState(null),l=He(i),u=He(a),d=z.useRef(null),f=we(t,c),p=z.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;z.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:mE(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||mE(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&mE(s)};rE(e,`handleFocusIn`),rE(t,`handleFocusOut`),rE(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]),z.useEffect(()=>{if(s){hE.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(iE,oE);s.addEventListener(iE,l),s.dispatchEvent(t),t.defaultPrevented||(cE(vE(uE(s)),{select:!0}),document.activeElement===e&&mE(s))}return()=>{s.removeEventListener(iE,l),setTimeout(()=>{let t=new CustomEvent(aE,oE);s.addEventListener(aE,u),s.dispatchEvent(t),t.defaultPrevented||mE(e??document.body,{select:!0}),s.removeEventListener(aE,u),hE.remove(p)}
20,0)}}},[s,l,u,p]);let m=z.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=lE(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&mE(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&mE(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,B.jsx)(je.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})},`FocusScope`));function cE(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(mE(r,{select:t}),document.activeElement!==n)return}rE(cE,`focusFirst`);function lE(e){let t=uE(e);return[dE(t,e),dE(t.reverse(),e)]}rE(lE,`getTabbableEdges`);function uE(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:rE(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}rE(uE,`getTabbableCandidates`);function dE(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):fE(r,{upTo:t})))return r}rE(dE,`findVisible`);function fE(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}rE(fE,`isHidden`);function pE(e){return e instanceof HTMLInputElement&&`select`in e}rE(pE,`isSelectableInput`);function mE(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&pE(e)&&t&&e.select()}}rE(mE,`focus`);var hE=gE();function gE(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=_E(e,t),e.unshift(t)},remove(t){e=_E(e,t),e[0]?.resume()}}}rE(gE,`createFocusScopesStack`);function _E(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}rE(_E,`arrayRemove`);function vE(e){return e.filter(e=>e.tagName!==`A`)}rE(vE,`removeLinks`);var yE=Object.defineProperty,bE=(e,t)=>yE(e,`name`,{value:t,configurable:!0}),xE=0,SE=null;function CE(e){return wE(),e.children}bE(CE,`FocusGuards`);function wE(){z.useEffect(()=>{SE||={start:TE(),end:TE()};let{start:e,end:t}=SE;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),xE++,()=>{xE===1&&(SE?.start.remove(),SE?.end.remove(),SE=null),xE=Math.max(0,xE-1)}},[])}bE(wE,`useFocusGuards`);function TE(){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}bE(TE,`createFocusGuard`);var EE=`right-scroll-bar-position`,DE=`width-before-scroll-bar`,OE=`with-scroll-bars-hidden`,kE=`--removed-body-scroll-bar-size`;function AE(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function jE(e,t){var n=(0,z.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var ME=typeof window<`u`?z.useLayoutEffect:z.useEffect,NE=new WeakMap;function PE(e,t){var n=jE(t||null,function(t){return e.forEach(function(e){return AE(e,t)})});return ME(function(){var t=NE.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||AE(e,null)}),i.forEach(function(e){r.has(e)||AE(e,a)})}NE.set(n,e)},[e]),n}function FE(e){return e}function IE(e,t){t===void 0&&(t=FE);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,475 bytes, lines 20-60
20n=[],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 LE(e){e===void 0&&(e={});var t=IE(null);return t.options=c({async:!0,ssr:!1},e),t}var RE=function(e){var t=e.sideCar,n=o(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return z.createElement(r,c({},n))};RE.isSideCarExport=!0;function zE(e,t){return e.useMedium(t),RE}var BE=LE(),VE=function(){},HE=z.forwardRef(function(e,t){var n=z.useRef(null),r=z.useState({onScrollCapture:VE,onWheelCapture:VE,onTouchMoveCapture:VE}),i=r[0],a=r[1],s=e.forwardProps,l=e.children,u=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,m=e.sideCar,h=e.noRelative,g=e.noIsolation,_=e.inert,v=e.allowPinchZoom,y=e.as,b=y===void 0?`div`:y,x=e.gapMode,S=o(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),C=m,w=PE([n,t]),T=c(c({},S),i);return z.createElement(z.Fragment,null,f&&z.createElement(C,{sideCar:BE,removeScrollBar:d,shards:p,noRelative:h,noIsolation:g,inert:_,setCallbacks:a,allowPinchZoom:!!v,lockRef:n,gapMode:x}),s?z.cloneElement(z.Children.only(l),c(c({},T),{ref:w})):z.createElement(b,c({},T,{className:u,ref:w}),l))});HE.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},HE.classNames={fullWidth:DE,zeroRight:EE};var UE,WE=function(){if(UE)return UE;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function GE(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=WE();return t&&e.setAttribute(`nonce`,t),e}function KE(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function qE(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var JE=function(){var e=0,t=null;return{add:function(n){e==0&&(t=GE())&&(KE(t,n),qE(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},YE=function(){var e=JE();return function(t,n){z.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},XE=function(){var e=YE();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},ZE={left:0,top:0,right:0,gap:0},QE=function(e){return parseInt(e||``,10)||0},$E=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[QE(n),QE(r),QE(i)]},eD=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return ZE;var t=$E(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])}},tD=XE(),nD=`data-scroll-locked`,rD=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),` 21 .${OE} { 22 overflow: hidden ${r}; 23 padding-right: ${s}px ${r}; 24 } 25 body[${nD}] { 26 overflow: hidden ${r}; 27 overscroll-behavior: contain; 28 ${[t&&`position: relative ${r};`,n===`margin`&&` 29 padding-left: ${i}px; 30 padding-top: ${a}px; 31 padding-right: ${o}px; 32 margin-left:0; 33 margin-top:0; 34 margin-right: ${s}px ${r}; 35 `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)} 36 } 37 38 .${EE} { 39 right: ${s}px ${r}; 40 } 41 42 .${DE} { 43 margin-right: ${s}px ${r}; 44 } 45 46 .${EE} .${EE} { 47 right: 0 ${r}; 48 } 49 50 .${DE} .${DE} { 51 margin-right: 0 ${r}; 52 } 53 54 body[${nD}] { 55 ${kE}: ${s}px; 56 } 57`},iD=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},aD=function(){z.useEffect(function(){return document.body.setAttribute(nD,(iD()+1).toString()),function(){var e=iD()-1;e<=0?document.body.removeAttribute(nD):document.body.setAttribute(nD,e.toString())}},[])},oD=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;aD();var a=z.useMemo(function(){return eD(i)},[i]);return z.createElement(tD,{styles:rD(a,!t,i,n?``:`!important`)})},sD=!1;if(typeof window<`u`)try{var cD=Object.defineProperty({},"passive",{get:function(){return sD=!0,!0}});window.addEventListener(`test`,cD,cD),window.removeEventListener(`test`,cD,cD)}catch{sD=!1}var lD=sD?{passive:!1}:!1,uD=function(e){return e.tagName===`TEXTAREA`},dD=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!uD(e)&&n[t]===`visible`)},fD=function(e){return dD(e,`overflowY`)},pD=function(e){return dD(e,`overflowX`)},mD=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),_D(e,r)){var i=vD(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},hD=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},gD=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},_D=function(e,t){return e===`v`?fD(t):pD(t)},vD=function(e,t){return e===`v`?hD(t):gD(t)},yD=function(e,t){return e===`h`&&t===`rtl`?-1:1},bD=function(e,t,n,r,i){var a=yD(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=vD(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&_D(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},xD=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},SD=function(e){return[e.deltaX,e.deltaY]},CD=function(e){return e&&`current`in e?e.current:e},wD=function(e,t){return e[0]===t[0]&&e[1]===t[1]},TD=function(e){return` 58 .block-interactivity-${e} {pointer-events: none;} 59 .allow-interactivity-${e} {pointer-events: all;} 60`},ED=0,DD=[];function OD(e){var t=z.useRef([]),n=z.useRef([0,0]),i=z.useRef(),a=z.useState(ED++)[0],o=z.useState(XE)[0],s=z.useRef(e);z.useEffect(function(){s.current=e},[e]),z.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${a}`);var t=r([e.lockRef.current],(e.shards||[]).map(CD),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${a}`)}),function(){document.body.classList.remove(`block-interactivity-${a}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${a}`)})}}},[e.inert,e.lockRef.current,e.shards]);var c=z.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!s.current.allowPinchZoom;var r=xD(e),a=n.current,o=`deltaX`in e?e.deltaX:a[0]-r[0],c=`deltaY`in e?e.deltaY:a[1]-r[1],l,u=e.target,d=Math.abs(o)>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=mD(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=mD(d,u)),!m)return!1;if(!i.current&&`changedTouches`in e&&(o||c)&&(i.current=l),!l)return!0;var h=i.current||l;return bD(h,t,e,h===`h`?o:c,!0)},[]),l=z.useCallback(function(e){var n=e;if(!(!DD.length||DD[DD.length-1]!==o)){var r=`deltaY`in n?SD(n):xD(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&wD(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}
60if(!i){var a=(s.current.shards||[]).map(CD).filter(Boolean).filter(function(e){return e.contains(n.target)});(a.length>0?c(n,a[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=z.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:kD(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=z.useCallback(function(e){n.current=xD(e),i.current=void 0},[]),f=z.useCallback(function(t){u(t.type,SD(t),t.target,c(t,e.lockRef.current))},[]),p=z.useCallback(function(t){u(t.type,xD(t),t.target,c(t,e.lockRef.current))},[]);z.useEffect(function(){return DD.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,l,lD),document.addEventListener(`touchmove`,l,lD),document.addEventListener(`touchstart`,d,lD),function(){DD=DD.filter(function(e){return e!==o}),document.removeEventListener(`wheel`,l,lD),document.removeEventListener(`touchmove`,l,lD),document.removeEventListener(`touchstart`,d,lD)}},[]);var m=e.removeScrollBar,h=e.inert;return z.createElement(z.Fragment,null,h?z.createElement(o,{styles:TD(a)}):null,m?z.createElement(oD,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function kD(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var AD=zE(BE,OD),jD=z.forwardRef(function(e,t){return z.createElement(HE,c({},e,{ref:t,sideCar:AD}))});jD.classNames=HE.classNames;var MD=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},ND=new WeakMap,PD=new WeakMap,FD={},ID=0,LD=function(e){return e&&(e.host||LD(e.parentNode))},RD=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=LD(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})},zD=function(e,t,n,r){var i=RD(t,Array.isArray(e)?e:[e]);FD[n]||(FD[n]=new WeakMap);var a=FD[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=(ND.get(e)||0)+1,l=(a.get(e)||0)+1;ND.set(e,c),a.set(e,l),o.push(e),c===1&&i&&PD.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(),ID++,function(){o.forEach(function(e){var t=ND.get(e)-1,i=a.get(e)-1;ND.set(e,t),a.set(e,i),t||(PD.has(e)||e.removeAttribute(r),PD.delete(e)),i||e.removeAttribute(n)}),ID--,ID||(ND=new WeakMap,ND=new WeakMap,PD=new WeakMap,FD={})}},BD=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||MD(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),zD(r,i,n,`aria-hidden`)):function(){return null}},VD=Object.defineProperty,HD=(e,t)=>VD(e,`name`,{value:t,configurable:!0}),UD=`Dialog`,[WD,GD]=Re(UD),[KD,qD]=WD(UD),JD=HD(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=z.useRef(null),c=z.useRef(null),[l,u]=Be({prop:r,defaultProp:i??!1,onChange:a,caller:UD}),[d,f]=z.useState(0),[p,m]=z.useState(0);return(0,B.jsx)(KD,{scope:t,triggerRef:s,contentRef:c,contentId:Le(),titleId:Le(),descriptionId:Le(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:f,setDescriptionCount:m,open:l,onOpenChange:u,onOpenToggle:z.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})},`Dialog`),YD=`DialogPortal`,[XD,ZD]=WD(YD,{forceMount:void 0}),QD=HD(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=qD(YD,t);return(0,B.jsx)(XD,{scope:t,forceMount:n,children:z.Children.map(r,e=>(0,B.jsx)(Ae,{present:n||a.open,children:(0,B.jsx)(Xl,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),$D=`DialogOverlay`,eO=z.forwardRef(HD(function(e,t){let n=ZD($D,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=qD($D,e.__scopeDialog);return a.modal?(0,B.jsx)(Ae,{present:r||a.open,children:(0,B.jsx)(nO,{...i,ref:t})}):null},`DialogOverlay`)),tO=ce(`DialogOverlay.RemoveScroll`),nO=z.forwardRef(HD(function(e,t){let{__scopeDialog:n,...r}=e,i=qD($D,n),a=W(),o=we(t,a);return(0,B.jsx)(jD,{as:tO,allowPinchZoom:!0,shards:[i.contentRef],children:(0,B.jsx)(je.div,{"data-state":mO(i.open
60),...r,ref:o,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),rO=`DialogContent`,iO=z.forwardRef(HD(function(e,t){let n=ZD(rO,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=qD(rO,e.__scopeDialog);return(0,B.jsx)(Ae,{present:r||a.open,children:a.modal?(0,B.jsx)(aO,{...i,ref:t}):(0,B.jsx)(oO,{...i,ref:t})})},`DialogContent`)),aO=z.forwardRef(HD(function(e,t){let n=qD(rO,e.__scopeDialog),r=z.useRef(null),i=we(t,n.contentRef,r);return z.useEffect(()=>{let e=r.current;if(e)return BD(e)},[]),(0,B.jsx)(sO,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:Fe(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Fe(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:Fe(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),oO=z.forwardRef(HD(function(e,t){let n=qD(rO,e.__scopeDialog),r=z.useRef(!1),i=z.useRef(!1);return(0,B.jsx)(sO,{...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`)),sO=z.forwardRef(HD(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=qD(rO,n);return wE(),(0,B.jsx)(B.Fragment,{children:(0,B.jsx)(sE,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,B.jsx)(U,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":mO(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},`DialogContentImpl`)),cO=`DialogTitle`,lO=z.forwardRef(HD(function(e,t){let{__scopeDialog:n,...r}=e,i=qD(cO,n),{setTitleCount:a}=i;return Pe(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,B.jsx)(je.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),uO=`DialogDescription`,dO=z.forwardRef(HD(function(e,t){let{__scopeDialog:n,...r}=e,i=qD(uO,n),{setDescriptionCount:a}=i;return Pe(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,B.jsx)(je.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),fO=`DialogClose`,pO=z.forwardRef(HD(function(e,t){let{__scopeDialog:n,...r}=e,i=qD(fO,n);return(0,B.jsx)(je.button,{type:`button`,...r,ref:t,onClick:Fe(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function mO(e){return e?`open`:`closed`}HD(mO,`getState`);var hO=JD,gO=QD,_O=z.forwardRef(({className:e,...t},n)=>(0,B.jsx)(eO,{ref:n,className:oe(`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}));_O.displayName=eO.displayName;var vO=z.forwardRef(({className:e,children:t,...n},r)=>(0,B.jsxs)(gO,{children:[(0,B.jsx)(_O,{}),(0,B.jsxs)(iO,{ref:r,className:oe(`fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg`,e),...n,children:[t,(0,B.jsxs)(pO,{className:`absolute right-4 top-4 roun
60ded-xs opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none`,children:[(0,B.jsx)(od,{className:`h-4 w-4`}),(0,B.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]}));vO.displayName=iO.displayName;var yO=z.forwardRef(({className:e,...t},n)=>(0,B.jsx)(lO,{ref:n,className:oe(`text-lg font-semibold leading-none tracking-tight`,e),...t}));yO.displayName=lO.displayName;var bO=z.forwardRef(({className:e,...t},n)=>(0,B.jsx)(dO,{ref:n,className:oe(`text-sm text-muted-foreground`,e),...t}));bO.displayName=dO.displayName;function xO(){typeof window.gtag==`function`&&window.gtag(`event`,`conversion`,{send_to:`AW-17995856018/Jr-zCLj3s4McEJLxi4VD`,value:1,currency:`AUD`})}var SO=e=>e.type===`checkbox`,CO=e=>e.type===`file`,wO=e=>e instanceof Date,TO=e=>e==null,EO=e=>typeof e==`object`,DO=e=>!TO(e)&&!Array.isArray(e)&&EO(e)&&!wO(e),OO=e=>DO(e)&&e.target?SO(e.target)?e.target.checked:CO(e.target)?e.target.files:e.target.value:e,kO=(e,t)=>t.split(`.`).some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join(`.`))),AO=e=>{let t=e.constructor&&e.constructor.prototype;return DO(t)&&t.hasOwnProperty(`isPrototypeOf`)},jO=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function MO(e){if(e instanceof Date)return new Date(e);let t=typeof FileList<`u`&&e instanceof FileList;if(jO&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(DO(e)&&AO(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=MO(e[t]));return r}var NO={BLUR:`blur`,FOCUS_OUT:`focusout`,CHANGE:`change`,SUBMIT:`submit`,TRIGGER:`trigger`,VALID:`valid`},PO={onBlur:`onBlur`,onChange:`onChange`,onSubmit:`onSubmit`,onTouched:`onTouched`,all:`all`},FO={max:`max`,min:`min`,maxLength:`maxLength`,minLength:`minLength`,pattern:`pattern`,required:`required`,validate:`validate`},IO=`root`,LO=[`__proto__`,`constructor`,`prototype`],RO=/^\w*$/,zO=e=>RO.test(e),BO=e=>e===void 0,VO=/[.[\]'"]/,HO=e=>e.split(VO).filter(Boolean),Z=(e,t,n)=>{if(!t||!DO(e))return n;let r=zO(t)?[t]:HO(t);if(r.some(e=>LO.includes(e)))return n;let i=r.reduce((e,t)=>TO(e)?void 0:e[t],e);return BO(i)||i===e?BO(e[t])?n:e[t]:i},UO=e=>typeof e==`boolean`,WO=e=>typeof e==`function`,GO=(e,t,n)=>{let r=-1,i=zO(t)?[t]:HO(t),a=i.length,o=a-1;for(;++r<a;){let t=i[r],a=n;if(r!==o){let n=e[t];a=DO(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if(LO.includes(t))return;e[t]=a,e=e[t]}},KO=z.createContext(null);KO.displayName=`HookFormControlContext`;var qO=()=>z.useContext(KO),JO=(e,t,n,r=!0)=>{let i={};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==PO.all&&(t._proxyFormState[i]=!r||PO.all),n&&(n[i]=!0),e[i]}});return i},YO=jO?z.useLayoutEffect:z.useEffect,XO=e=>TO(e)||!EO(e),ZO=(e,t)=>t.length===0&&!Array.isArray(e)&&!AO(e);function QO(e,t,n=new WeakMap){if(e===t)return!0;if(XO(e)||XO(t))return Object.is(e,t);if(wO(e)&&wO(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(ZO(e,r)||ZO(t,i))return Object.is(e,t);if(!r.length&&Array.isArray(e)!==Array.isArray(t))return!1;let a=n.get(e);if(a&&a.has(t))return!0;if(a)a.add(t);else{let r=new WeakSet;r.add(t),n.set(e,r)}for(let i of r){let r=e[i];if(!(i in t))return!1;if(i!==`ref`){let e=t[i];if(wO(r)&&wO(e)||(DO(r)||Array.isArray(r))&&(DO(e)||Array.isArray(e))?!QO(r,e,n):!Object.is(r,e))return!1}}return!0}function $O(){let e=z.useRef(!1),t=z.useRef(void 0);return{resyncIfNeeded:z.useCallback((n,r,i)=>{if(n&&e.current){let e=r();QO(t.current,e)||i(e)}e.current=!0},[]),snapshot:z.useCallback((e,n)=>{e&&(t.current=MO(n()))},[])}}function ek(e){let t=qO(),{control:n=t,disabled:r,name:i,exact:a}=e||{},[o,s]=z.useState(()=>({...n._formState,defaultValues:n._defaultValues})),c=z.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),{resyncIfNeeded:l,snapshot:u}=$O();return YO(()=>{let e=()=>({...n._formState,defaultValues:n._defaultValues});l(!r,e,s);let t=n._subscribe({name:i,formState:c.current,exact:a,callback:e=>{!r&&s({...n._formState,...e,defaultValues:n._defaultValues})}});return()=>{t(),u(!r,e)}},[i,r,a,l,u]),z.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),z.useMemo(()=>JO(o,n,c.current,!1),[o,n])}var tk=e=>typeof e==`string`,nk=(e,t,n,r,i)=>tk(e)?(r&&t.watch.add(e),Z(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),Z(n,e))):(r&&(t.watchAll=!0),n);function rk(e){let t=qO(),{control:n=t,name:r,defaultValue:i,disabled:a,exact:o,c
60ompute:s}=e||{},c=z.useRef(i),l=z.useRef(s),u=z.useRef(void 0),d=z.useRef(n),f=z.useRef(r);l.current=s;let[p,m]=z.useState(()=>{let e=n._getWatch(r,c.current);return l.current?l.current(e):e}),h=z.useCallback(e=>{let t=nk(r,n._names,e||n._formValues,!1,c.current);return l.current?l.current(t):t},[n._formValues,n._names,r]),g=z.useCallback(e=>{if(!a){let t=nk(r,n._names,e||n._formValues,!1,c.current);if(l.current){let e=l.current(t);QO(e,u.current)||(m(e),u.current=e)}else m(t)}},[n._formValues,n._names,a,r]),{resyncIfNeeded:_,snapshot:v}=$O(),y=z.useRef(g);y.current=g;let b=z.useRef(h);b.current=h,YO(()=>{d.current!==n||!QO(f.current,r)?(d.current=n,f.current=r,y.current()):_(!a,()=>b.current(),e=>{m(e),u.current=e});let e=n._subscribe({name:r,formState:{values:!0},exact:o,callback:e=>{y.current(e.values)}});return()=>{e(),v(!a,()=>b.current())}},[n,o,r,a,_,v]),z.useEffect(()=>n._removeUnmounted());let x=d.current!==n,S=f.current,C=z.useMemo(()=>{if(a)return null;let e=!x&&!QO(S,r);return x||e?h():null},[a,x,r,S,h]);return C===null?p:C}function ik(e){let t=qO(),{name:n,disabled:r,control:i=t,shouldUnregister:a,defaultValue:o,exact:s=!0}=e,c=kO(i._names.array,n),l=rk({control:i,name:n,defaultValue:z.useMemo(()=>
60Z(i._formValues,n,Z(i._defaultValues,n,o)),[i,n,o]),exact:s}),u=ek({control:i,name:n,exact:s}),d=z.useRef(e),f=z.useRef(null),p=z.useRef(i.register(n,{...e.rules,value:l,...UO(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;let m=z.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Z(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!Z(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Z(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Z(u.validatingFields,n)},error:{enumerable:!0,get:()=>Z(u.errors,n)}}),[u,n]),h=z.useCallback(e=>{let t=OO(e);return Z(i._fields,n)||(p.current=i.register(n,{...d.current.rules,value:t})),p.current.onChange({target:{value:OO(e),name:n},type:NO.CHANGE})},[n,i]),g=z.useCallback(()=>p.current.onBlur({target:{value:Z(i._formValues,n),name:n},type:NO.BLUR}),[n,i._formValues]),_=z.useCallback(e=>{e&&(f.current={focus:()=>WO(e.focus)&&e.focus(),select:()=>WO(e.select)&&e.select(),setCustomValidity:t=>WO(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>WO(e.reportValidity)&&e.reportValidity()});let t=Z(i._fields,n);t&&t._f&&e&&(t._f.ref=f.current)},[i._fields,n]),v=z.useMemo(()=>({name:n,value:l,...UO(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:h,onBlur:g,ref:_}),[n,r,u.disabled,h,g,_,l]);return z.useEffect(()=>{let e=i._options.shouldUnregister||a;p.current=i.register(n,{...d.current.rules,...UO(d.current.disabled)?{disabled:d.current.disabled}:{}});let t=(e,t)=>{let n=Z(i._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){let e=MO(Z(a?i._defaultValues:i._options.values||i._defaultValues,n,Z(i._options.defaultValues,n,d.current.defaultValue)));GO(i._defaultValues,n,e),BO(Z(i._formValues,n))&&GO(i._formValues,n,e)}if(!c&&i.register(n),f.current){let e=Z(i._fields,n);e&&e._f&&(e._f.ref=f.current)}return()=>{(c?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}},[n,i,c,a]),z.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),z.useMemo(()=>({field:v,formState:u,fieldState:m}),[v,u,m])}var ak=e=>e.render(ik(e)),ok=e=>({isOnSubmit:!e||e===PO.onSubmit,isOnBlur:e===PO.onBlur,isOnChange:e===PO.onChange,isOnAll:e===PO.all,isOnTouch:e===PO.onTouched}),sk=(e,t,n)=>{if(n)return!1;if(t.watchAll||t.watch.has(e))return!0;for(let n of t.watch)if(e.startsWith(n)&&e.charAt(n.length)===`.`)return!0;return!1},ck=(e,t,n,r)=>{for(let i of n||Object.keys(e)){if(i===`_f`)continue;let a=n?Z(e,i):e[i];if(a){let{_f:e}=a;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(ck(a,t))break}else if((DO(a)||Array.isArray(a))&&ck(a,t))break}}},lk=(e,t,n)=>{let r=Z(e,n),i=Array.isArray(r)?r:[];return GO(i,IO,t[n]),GO(e,n,i),e},uk=e=>DO(e)&&!Object.keys(e).length,dk=e=>{if(!jO)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},fk=e=>e.type===`radio`,pk=e=>e instanceof RegExp,mk=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},hk={value:!1,isValid:!1},gk={value:!0,isValid:!0},_k=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!BO(e[0].attributes.value)?BO(e[0].value)||e[0].value===``?gk:{value:e[0].value,isValid:!0}:gk:hk}return hk},vk={isValid:!1,value:null},yk=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,vk):vk;function bk(e,t,n=`validate`){if(tk(e)||Array.isArray(e)&&e.every(tk)||UO(e)&&!e)return{type:n,message:tk(e)?e:``,ref:t}}var xk=e=>DO(e)&&!pk(e)?e:{value:e,message:``},Sk=async(e,t,n,r,i,a)=>{let{ref:o,refs:s,required:c,maxLength:l,minLength:u,min:d,max:f,pattern:p,validate:m,name:h,valueAsNumber:g,mount:_}=e._f,v=Z(n,h);if(!_||t.has(h))return{};let y=s?s[0]:o,b=e=>{if(i&&y.reportValidity){let t=UO(e)?``:e||``;s?s.forEach(e=>e.setCustomValidity(t)):y.setCustomValidity(t),y.reportValidity()}},x={},S=fk(o),C=SO(o),w=S||C,T=(g||CO(o))&&BO(o.value)&&BO(v)||dk(o)&&o.value===``||v===``||Array.isArray(v)&&!v.length,E=mk.bind(null,h,r,x),D=(e,t,n,r=FO.maxLength,i=FO.minLength)=>{let a=e?t:n;x[h]={type:e?r:i,message:a,ref:o,...E(e?r:i,a)}};if(a?!Array.isArray(v)||!v.length:c&&(!w&&(T||TO(v))||UO(v)&&!v||C&&!_k(s).isValid||S&&!yk(s).isValid)){let{value:e,message:t}=tk(c)?{value:!!c,message:c}:xk(c);if(e&&(x[h]={type:FO.required,message:t,ref:y,...E(FO.required,t)},!r))return b(t),x}if(!T&&(!TO(d)||!TO(f))){let e,t,n=xk(f),i=xk(d);if(!TO(v)&&!wO(v)&&!isNaN(v)){let r=o.valueAsNumber||v&&+v;TO(n.value)||(e=r>n.value),TO(i.value)||(t=r<i.value)}else{let r=o.valueAsDate||new Date(v),a=e=>new Date(new Date().toDateString()+` `+e),s=o.type==`time`,c=o.type==`week`;tk(n.value)&&v&&(e=s?a(v)>a(n.value):c?v>n.value:r>new Date(n.value)),tk(i.value)&&v&&(t=s?a(v)<a(i.value):c?v<i.value:r<new Date(i.value))}if((e||t)&&(D(!!e,n.message,i.message,FO.max,FO.min),!r))return b(x[h].message),x}if((l||u)&&!T&&(tk(v)||a&&Array.isArray(v))){let e=xk(l),t=xk(u),n=!TO(e.value)&&v.length>+e.value,i=!TO(t.value)&&v.length<+t.value;if((n||i)&&(D(n,e.message,t.message),!r))return b(x[h].message),x}if(p&&!T&&tk(v)){let{value:e,message:t}=xk(p);if(pk(e)&&!v.match(e)&&(x[h]={type:FO.pattern,message:t,ref:o,...E(FO.pattern,t)},!r))return b(t),x}if(m){if(WO(m)){let e=bk(await m(v,n),y);if(e&&(x[h]={...e,...E(FO.validate,e.message)},!r))return b(e.message),x}else if(DO(m)){let e={};for(let t in m){if(!uk(e)&&!r)break;let i=bk(await m[t](v,n),y,t);
60i&&(e={...i,...E(t,i.message)},b(i.message),r&&(x[h]=e))}if(!uk(e)&&(x[h]={ref:y,...e},!r))return x}}return b(!0),x},Ck=e=>Array.isArray(e)?e:[e],wk=e=>Array.isArray(e)?e.filter(Boolean):[];function Tk(e,t){let n=t.length-1,r=0;for(;r<n;){if(TO(e)){e=void 0;break}e=e[t[r]],r++}return e}function Ek(e){for(let t in e)if(e.hasOwnProperty(t)&&!BO(e[t]))return!1;return!0}function Dk(e,t){if(tk(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;let n=Array.isArray(t)?t:zO(t)?[t]:HO(t);if(n.some(e=>LO.includes(String(e))))return e;let r=n.length===1?e:Tk(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(DO(r)&&uk(r)||Array.isArray(r)&&Ek(r))&&Dk(e,n.slice(0,-1)),e}var Ok=e=>{let t={};for(let n of Object.keys(e))if(EO(e[n])&&e[n]!==null&&!wO(e[n])){let r=Ok(e[n]);for(let e of Object.keys(r))t[`${n}.${e}`]=r[e]}else t[n]=e[n];return t},kk=z.createContext(null);kk.displayName=`HookFormContext`;var Ak=()=>z.useContext(kk),jk=({children:e,watch:t,getValues:n,getFieldState:r,setError:i,clearErrors:a,setValue:o,setValues:s,trigger:c,formState:l,resetField:u,reset:d,resetDefaultValues:f,handleSubmit:p,unregister:m,control:h,register:g,setFocus:_,subscribe:v})=>{let y=z.useMemo(()=>({watch:t,getValues:n,getFieldState:r,setError:i,clearErrors:a,setValue:o,setValues:s,trigger:c,formState:l,resetField:u,reset:d,resetDefaultValues:f,handleSubmit:p,unregister:m,control:h,register:g,setFocus:_,subscribe:v}),[a,h,l,r,n,p,g,d,f,u,i,_,o,s,v,c,m,t]);return z.createElement(kk.Provider,{value:y},z.createElement(KO.Provider,{value:y.control},e))},Mk=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function Nk(e,t){let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],a=t[r];if(i&&DO(i)&&a){let e=Nk(i,a);DO(e)&&(n[r]=e)}else e[r]&&(n[r]=a)}return n}var Pk=e=>e.type===`select-multiple`,Fk=e=>fk(e)||SO(e),Ik=e=>dk(e)&&e.isConnected;function Lk(e){return Array.isArray(e)||DO(e)}function Rk(e,t,n=``,r=[]){for(let i in e){let a=n?`${n}.${i}`:i,o=e[i];Lk(o)&&Lk(Z(t,a))?Rk(o,t,a,r):r.push(a)}return r}var zk=e=>{for(let t in e)if(WO(e[t]))return!0;return!1};function Bk(e){return Array.isArray(e)||DO(e)&&!zk(e)}function Vk(e){return!!(e&&`_f`in e)}function Hk(e){return Array.isArray(e)?!e.some(e=>!BO(e)):!Object.keys(e).length}function Uk(e,t){Array.isArray(e)?e[t]=void 0:delete e[t]}function Wk(e,t={},n){for(let r in e){let i=e[r],a=n&&n[r];Bk(i)&&(!Array.isArray(i)||!Vk(a))?(t[r]=Array.isArray(i)?[]:{},Wk(i,t[r],a),Hk(t[r])&&Uk(t,r)):BO(i)||(t[r]=!0)}return t}function Gk(e,t,n,r){n||=Wk(t,{},r);for(let i in e){let a=e[i],o=r&&r[i];Bk(a)&&(!Array.isArray(a)||!Vk(o))?(BO(t)||XO(n[i])?n[i]=Wk(a,Array.isArray(a)?[]:{},o):Gk(a,TO(t)?{}:t[i],n[i],o),Hk(n[i])&&Uk(n,i)):QO(a,t[i])?Uk(n,i):n[i]=!0}return n}var Kk=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>BO(e)?e:t?e===``?NaN:e&&+e:n&&tk(e)?new Date(e):r?r(e):e;function qk(e){let t=e.ref;return CO(t)?t.files:fk(t)?yk(e.refs).value:Pk(t)?[...t.selectedOptions].map(({value:e})=>e):SO(t)?_k(e.refs).value:Kk(t.value,e)}var Jk=(e,t,n,r)=>{let i={};for(let n of e){let e=Z(t,n);e&&GO(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Yk=e=>BO(e)?e:pk(e)?e.source:DO(e)?pk(e.value)?e.value.source:e.value:e,Xk=`AsyncFunction`,Zk=e=>{if(!e||!e.validate)return!1;if(WO(e.validate))return e.validate.constructor.name===Xk;if(DO(e.validate)){for(let t in e.validate)if(e.validate[t].constructor.name===Xk)return!0}return!1},Qk=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function $k(e,t,n){let r=Z(e,n);if(r||zO(n))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=Z(t,r),o=Z(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var eA=(e,t,n,r)=>{n(e);let i=Object.keys(e).filter(e=>e!==`name`);return!i.length||r&&i.length>=Object.keys(t).length||i.find(e=>t[e]===(!r||PO.all))}
60,tA=(e,t,n)=>!e||!t||e===t||Ck(e).some(e=>e&&(n?e===t||e.startsWith(t+`.`):e.startsWith(t)||t.startsWith(e))),nA=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:!(n?r.isOnChange:i.isOnChange)||e,rA=(e,t)=>{let n=Z(e,t);!wk(n).length&&!n?.root&&Dk(e,t)},iA={mode:PO.onSubmit,reValidateMode:PO.onChange,shouldFocusError:!0},aA=`form`,oA=(e,t)=>{for(let n in e)n in t||delete e[n];Object.assign(e,t)},sA={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function cA(e={}){let t={...iA,...e},n={...MO(sA),isLoading:WO(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1},r={},i=(DO(t.defaultValues)||DO(t.values))&&MO(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:MO(i),o={action:!1,actionArrayLengths:new Map,mount:!1,watch:!1,keepIsValid:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},c={},l={},u=0,d=ok(t.mode),f=ok(t.reValidateMode),p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={...p},h={...m},g={array:Mk(),state:Mk()},_=0,v=t.criteriaMode===PO.all,y=(e,t)=>n=>{clearTimeout(l[e]),l[e]=setTimeout(t,n)},b=async e=>{if(!o.keepIsValid&&!t.disabled&&(m.isValid||h.isValid||e)){let e=++_,i;t.resolver?(i=uk((await te()).errors),e===_&&x()):i=await A({fields:r,onlyCheckValid:!0,eventType:NO.VALID}),e===_&&i!==n.isValid&&g.state.next({isValid:i})}},x=(e,r)=>{!t.disabled&&(m.isValidating||m.validatingFields||h.isValidating||h.validatingFields)&&((e||Array.from(s.mount)).forEach(e=>{e&&(r?GO(n.validatingFields,e,r):Dk(n.validatingFields,e))}),g.state.next({validatingFields:n.validatingFields,isValidating:!uk(n.validatingFields)}))},S=()=>{n.dirtyFields=Gk(i,a,void 0,r)},C=(e,i=[],s,c,l=!0,u=!0)=>{if(c&&s&&!t.disabled){if(o.action=!0,!o.actionArrayLengths.has(e)){let t=Z(r,e);o.actionArrayLengths.set(e,Array.isArray(t)?t.length:0)}if(u&&Array.isArray(Z(r,e))){let t=s(Z(r,e),c.argA,c.argB);l&&GO(r,e,t)}if(u&&Array.isArray(Z(n.errors,e))){let t=Z(n.errors,e),r=t.root,i=s(t,c.argA,c.argB)||t;r&&(i.root=r),l&&GO(n.errors,e,i),rA(n.errors,e)}if((m.touchedFields||h.touchedFields)&&u&&Array.isArray(Z(n.touchedFields,e))){let t=s(Z(n.touchedFields,e),c.argA,c.argB);l&&GO(n.touchedFields,e,t)}(m.dirtyFields||h.dirtyFields)&&S(),g.state.next({name:e,isDirty:M(e,i),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else GO(a,e,i)},w=(e,t)=>{GO(n.errors,e,t),n.errors={...n.errors},g.state.next({errors:n.errors})},T=e=>{n.errors=e,g.state.next({errors:n.errors,isValid:!1})},E=e=>{let t=zO(e)?[e]:HO(e),n=a,r=i;for(let e=0;e<t.length-1;e++){let i=t[e];if(n=TO(n)?n:n[i],r=TO(r)?r:r[i],n===null&&r!==null)return!0}return!1},D=e=>{if(!o.actionArrayLengths.size)return!1;let t=zO(e)?[e]:HO(e),n=a,r=``,i=-1,s=0;for(let e=0;e<t.length;e++){if(TO(n))return!1;let a=t[e];if(r=r?`${r}.${a}`:a,Array.isArray(n)&&+a>=n.length)return i===-1?!1:e!==i||+a<s;o.actionArrayLengths.has(r)&&(i=e+1,s=o.actionArrayLengths.get(r)),n=n[a]}return!1},O=(t,c,l,u)=>{let d=Z(r,t);if(d){if(E(t)||D(t))return;let r=BO(Z(a,t)),f=Z(a,t,BO(l)?Z(i,t):l);BO(f)||u&&u.defaultChecked||c?GO(a,t,c?f:qk(d._f)):oe(t,f),o.mount&&!o.action&&(b(),r&&n.isDirty&&(m.isDirty||h.isDirty)&&(M()||(n.isDirty=!1,g.state.next({...n}))),e.shouldUnregister&&r&&!BO(Z(a,t))&&sk(t,s)&&(o.watch=!0))}},k=(e,o,s,c,l)=>{let u=!1,d=!1,f={name:e};if(!t.disabled||c===!0){if(!s||c){let t=QO(Z(i,e),o);(m.isDirty||h.isDirty)&&(d=n.isDirty,n.isDirty=f.isDirty=!t||M(),u=d!==f.isDirty),d=!!Z(n.dirtyFields,e),t===n.isDirty?t?Dk(n.dirtyFields,e):GO(n.dirtyFields,e,!0):oA(n.dirtyFields,Gk(i,a,void 0,r)),f.dirtyFields=n.dirtyFields,u||=(m.dirtyFields||h.dirtyFields)&&d!==!t}if(s){let t=Z(n.touchedFields,e);t||(GO(n.touchedFields,e,s),f.touchedFields=n.touchedFields,u||=(m.touchedFields||h.touchedFields)&&t!==s)}u&&l&&g.state.next(f)}return u?f:{}},ee=(e,r,i,a)=>{let o=Z(n.errors,e),s=(m.isValid||h.isValid)&&UO(r)&&n.isValid!==r;if(t.delayError&&i?(c[e]=y(e,()=>w(e,i)),c[e](t.delayError)):(clearTimeout(l[e]),delete c[e],i?GO(n.errors,e,i):Dk(n.errors,e),n.errors={...n.errors}),(i?!QO(o,i):o)||!uk(a)||s){let t={...a,...s&&UO(r)?{isValid:r}:{},errors:n.errors,name:e};n={...n,...t},g.state.next(t)}},te=async e=>(x(e,!0),await t.resolver(a,t.context,Jk(e||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),ne=async e=>{let{errors:t}=await te(e);
60if(x(e),e){for(let r of e){let e=Z(t,r);e?s.array.has(r)&&DO(e)&&!Object.keys(e).some(e=>!Number.isNaN(Number(e)))?lk(n.errors,{[r]:e},r):GO(n.errors,r,e):Dk(n.errors,r)}n.errors={...n.errors}}else n.errors=t;return t},re=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:a,formState:n,name:t,eventType:r});if(DO(i))for(let e in i){let t=i[e];t&&he(`${aA}.${e}`,{message:tk(t.message)?t.message:``,type:t.type||FO.validate})}else tk(i)||!i?he(aA,{message:i||``,type:FO.validate}):me(aA);return i}return!0},A=async({fields:r,onlyCheckValid:i,name:o,eventType:c,context:l={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(l.runRootValidation=!0,!await re({name:o,eventType:c})&&(l.valid=!1,i)))return l.valid;for(let o in r){let u=r[o];if(u){let{_f:r,...d}=u;if(r){let o=s.array.has(r.name),c=u._f&&Zk(u._f),d=m.validatingFields||m.isValidating||h.validatingFields||h.isValidating;c&&d&&x([r.name],!0);let f=await Sk(u,s.disabled,a,v,t.shouldUseNativeValidation&&!i,o);if(c&&d&&x([r.name]),f[r.name]&&(l.valid=!1,i)||(!i&&(Z(f,r.name)?o?lk(n.errors,f,r.name):GO(n.errors,r.name,f[r.name]):Dk(n.errors,r.name)),e.shouldUseNativeValidation&&f[r.name]))break}!uk(d)&&await A({context:l,onlyCheckValid:i,fields:d,name:o,eventType:c})}}return l.valid},j=()=>{for(let e of s.unMount){let t=Z(r,e);t&&(t._f.refs?t._f.refs.every(e=>!Ik(e)):!Ik(t._f.ref))&&ye(e)}s.unMount=new Set},M=(e,t)=>(e&&t&&GO(a,e,t),!QO(o.mount?a:i,i)),ie=(e,t,n)=>nk(e,s,{...o.mount?a:BO(t)||tk(e)?i:t},n,t),ae=e=>wk(Z(o.mount?a:i,e,t.shouldUnregister?Z(i,e,[]):[])),oe=(e,t,n={},i=!1,o=!1,s=!1)=>{let c=Z(r,e),l=t;if(c){let n=c._f;n&&(!n.disabled&&GO(a,e,Kk(t,n)),l=dk(n.ref)&&TO(t)?``:t,Pk(n.ref)?[...n.ref.options].forEach(e=>e.selected=l.includes(e.value)):n.refs?SO(n.ref)?n.refs.forEach(e=>{(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(l)?!!l.find(t=>t===e.value):l===e.value||!!l)}):n.refs.forEach(e=>e.checked=e.value===l):CO(n.ref)?n.ref.value=``:(n.ref.value=l,!n.ref.type&&!o&&!s&&g.state.next({name:e,values:i?a:MO(a)})))}(n.shouldDirty||n.shouldTouch)&&k(e,l,n.shouldTouch,n.shouldDirty,!o),n.shouldValidate&&P(e,{delayError:n.delayError})},se=(e,t,n,i=!1,o=!1,c=!1)=>{s.array.has(e)&&g.array.next({name:e,values:i?a:MO(a)});for(let a in t){if(!t.hasOwnProperty(a))return;let l=t[a],u=e+`.`+a,d=Z(r,u);(s.array.has(e)||DO(l)||d&&!d._f)&&!wO(l)?se(u,l,n,i,o,c):oe(u,l,n,i,o,c)}},ce=(e,t,i,c,l=!1)=>{let u=Z(r,e),d=s.array.has(e),f=c?t:MO(t),p=QO(Z(a,e),f);if(p||GO(a,e,f),d)g.array.next({name:e,values:c?a:MO(a)}),(m.isDirty||m.dirtyFields||h.isDirty||h.dirtyFields)&&i.shouldDirty&&(S(),l||g.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:M(e,f)}));else{let t=Array.isArray(f)&&!f.length||uk(f),n=!p&&!l;!u||u._f||TO(f)||t?oe(e,f,i,c,l,n):se(e,f,i,c,l,n)}if(!p&&!l){let t=sk(e,s),r=c?a:MO(a);g.state.next({...t&&n,name:o.mount||t?e:void 0,values:r})}},N=(e,t,n={})=>ce(e,t,n,!1),le=(e,t={})=>{let r=WO(e)?e(a):e;if(!QO(a,r)){a={...a,...r};let e=Ok(r);for(let n of s.mount)n in e&&ce(n,e[n],t,!0,!0);g.state.next({...n,name:void 0,type:void 0,...u?{values:a}:{}}),t.shouldValidate&&b()}},ue=async i=>{o.mount=!0;let l=i.target,p=l.name,_=!0,y=Z(r,p),S=e=>{_=Number.isNaN(e)||wO(e)&&isNaN(e.getTime())||QO(e,Z(a,p,e))};if(y){let o,C,w=l.type?qk(y._f):OO(i),T=i.type===NO.BLUR||i.type===NO.FOCUS_OUT,E=!Qk(y._f)&&!e.validate&&!t.resolver&&!Z(n.errors,p)&&!y._f.deps,D=E||nA(T,Z(n.touchedFields,p),n.isSubmitted,f,d),O=sk(p,s,T);if(GO(a,p,w),T){if(!l||!l.readOnly){y._f.onBlur&&y._f.onBlur(i);let e=c[p];e&&e(0)}}else y._f.onChange&&y._f.onChange(i);let ne=k(p,w,T),j=!uk(ne)||O;if(!T&&g.state.next({name:p,type:i.type,...u?{values:MO(a)}:{}}),D)return(!E||!n.isValid)&&(m.isValid||h.isValid)&&(t.mode===`onBlur`?T&&b():T||b()),j&&g.state.next({name:p,...O?{}:ne});if(!t.resolver&&e.validate&&await re({name:p,eventType:i.type}),!T&&O&&g.state.next({...n}),t.resolver){let{errors:e}=await te([p]);if(x([p]),S(w),!_){!uk(ne)&&g.state.next(ne);return}let t=$k(n.errors,r,p),i=$k(e,r,t.name||p);o=i.error,p=i.name,C=uk(e)}else x([p],!0),o=(await Sk(y,s.disabled,a,v,t.shouldUseNativeValidation))[p],x([p]),S(w),_&&(o?C=!1:(m.isValid||h.isValid)&&(C=await A({fields:r,onlyCheckValid:!0,name:p,eventType:i.type})));_&&(y._f.deps&&(!Array.isArray(y._f.deps)||y._f.deps.length>0)&&P(y._f.deps),ee(p,C,o,ne))}},de=(e,t)=>{if(Z(n.errors,t)&&e.focus)return e.focus(),1},P=async(e,i={})=>{let a,o,u=Ck(e);if(t.resolver){let t=await ne(BO(e)?e:u);a=uk(t),o=e?!u.some(e=>Z(t,e)):a}else e?(o=(await Promise.all(u.map(async e=>{let t=Z(r,e);return await A({fields:t&&t._f?{[e]:t}:t,eventType:NO.TRIGGER})}))).every(Boolean),!(!o&&!n.isValid)&&b()):o=a=await A({fields:r,name:e,eventType:NO.TRIGGER});if(i.delayError&&t.delayError&&tk(e)){let r=Z(n.errors,e);r?(Dk(n.errors,e),c[e]=y(e,()=>w(e,r)),c[e](t.delayError)):(clearTimeout(l[e]),delete c[e])}return g.state.next({...!tk(e)||(m.isValid||h.isValid)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},errors:n.errors}),i.shouldFocus&&!o&&ck(r,de,e?u:s.mount),o},fe=(e,t)=>
60{let r={...o.mount?a:i};return t&&(r=Nk(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),BO(e)?r:tk(e)?Z(r,e):e.map(e=>Z(r,e))},pe=(e,t)=>({invalid:!!Z((t||n).errors,e),isDirty:!!Z((t||n).dirtyFields,e),error:Z((t||n).errors,e),isValidating:!!Z(n.validatingFields,e),isTouched:!!Z((t||n).touchedFields,e)}),me=e=>{let t=e?Ck(e):void 0;t?.forEach(e=>Dk(n.errors,e)),t?t.forEach(e=>{g.state.next({name:e,errors:n.errors})}):(n.errors={},g.state.next({errors:n.errors}))},he=(e,t,i)=>{let a=(Z(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,...l}=Z(n.errors,e)||{};GO(n.errors,e,{...l,...t,ref:a}),g.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},ge=(e,t)=>{if(WO(e)){u++;let{unsubscribe:n}=g.state.subscribe({next:n=>`values`in n&&e(n.values||ie(void 0,t),n)}),r=!1;return{unsubscribe:()=>{r||(r=!0,u--,n())}}}return ie(e,t,!0)},_e=e=>{let t=!!e.formState?.values;t&&u++;let{unsubscribe:r}=g.state.subscribe({next:t=>{if(tA(e.name,t.name,e.exact)&&eA(t,e.formState||m,ke,e.reRenderRoot)){let r={...a};e.callback({values:r,...n,...t,defaultValues:i})}}});if(!t)return r;let o=!1;return()=>{o||(o=!0,u--,r())}},ve=e=>(o.mount=!0,h={...h,...e.formState},_e({...e,formState:{...p,...e.formState}})),ye=(e,o={})=>{for(let c of e?Ck(e):s.mount)s.mount.delete(c),s.array.delete(c),o.keepValue||(Dk(r,c),Dk(a,c)),!o.keepError&&Dk(n.errors,c),!o.keepDirty&&Dk(n.dirtyFields,c),!o.keepTouched&&Dk(n.touchedFields,c),!o.keepIsValidating&&Dk(n.validatingFields,c),!t.shouldUnregister&&!o.keepDefaultValue&&Dk(i,c);g.state.next({values:MO(a)}),g.state.next({...n,...o.keepDirty?{isDirty:M()}:{}}),!o.keepIsValid&&b()},be=({disabled:e,name:t})=>{if(UO(e)&&o.mount||e||s.disabled.has(t)){let n=s.disabled.has(t)!==!!e;e?s.disabled.add(t):s.disabled.delete(t),n&&o.mount&&!o.action&&b()}},xe=(e,n={})=>{let a=Z(r,e),c=UO(n.disabled)||UO(t.disabled),l=!s.registerName.has(e)&&a&&a._f&&!a._f.mount;return GO(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),s.mount.add(e),a&&!l?be({disabled:UO(n.disabled)?n.disabled:t.disabled,name:e}):O(e,!0,n.value),{...c?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:Yk(n.min),max:Yk(n.max),minLength:Yk(n.minLength),maxLength:Yk(n.maxLength),pattern:Yk(n.pattern)}:{},name:e,onChange:ue,onBlur:ue,ref:c=>{if(c){s.registerName.add(e),xe(e,n),s.registerName.delete(e),a=Z(r,e);let t=BO(c.value)&&c.querySelectorAll&&c.querySelectorAll(`input,select,textarea`)[0]||c,o=Fk(t),l=a._f.refs||[];if(o?l.find(e=>e===t):t===a._f.ref)return;let u={...a._f};o?(u.refs=[...l.filter(Ik),t,...Array.isArray(Z(i,e))?[{}]:[]],u.ref={type:t.type,name:e}):(u.ref=t,delete u.refs),GO(r,e,{_f:u}),O(e,!1,void 0,t)}else a=Z(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(kO(s.array,e)&&o.action)&&s.unMount.add(e)}}},Se=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&ck(r,de,s.mount),Ce=e=>{UO(e)&&(g.state.next({disabled:e}),ck(r,(t,n)=>{let i=Z(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},we=(e,i)=>async o=>{let c,l;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let u=MO(a);if(g.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await te();x(),n.errors=e,u=MO(t)}else await A({fields:r,eventType:NO.SUBMIT});if(s.disabled.size)for(let e of s.disabled)Dk(u,e);if(Dk(n.errors,IO),uk(n.errors)){g.state.next({errors:{}});try{c=await e(u,o)}catch(e){l=e}}else i&&await i({...n.errors},o),Se(),setTimeout(Se);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:uk(n.errors)&&!l,submitCount:n.submitCount+1,errors:n.errors}),l)throw l;return c},Te=(e,t={})=>{Z(r,e)&&(BO(t.defaultValue)?N(e,MO(Z(i,e))):(N(e,t.defaultValue),GO(i,e,MO(t.defaultValue))),t.keepTouched||Dk(n.touchedFields,e),t.keepDirty||(Dk(n.dirtyFields,e),n.isDirty=t.defaultValue?M(e,MO(Z(i,e))):M()),t.keepError||(Dk(n.errors,e),m.isValid&&b()),g.state.next({...n}))},Ee=(e,c={})=>{let l=e?MO(e):i,u=MO(l),d=uk(e),f=u,p=r;if(c.keepDefaultValues||(i=l),!c.keepValues){if(c.keepDirtyValues){let e=new Set([...s.mount,...Rk(Gk(i,a,void 0,p),n.dirtyFields)]);for(let t of Array.from(e)){let e=Z(n.dirtyFields,t),r=Z(a,t),i=Z(f,t);e&&!BO(r)?GO(f,t,r):!e&&!BO(i)&&N(t,i)}}else{if(jO&&BO(e))for(let e of s.mount){let t=Z(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(dk(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(c.keepFieldsRef)for(let e of s.mount)N(e,Z(f,e));else r={}}if(t.shouldUnregister){if(a=c.keepDefaultValues?MO(i):{},c.keepFieldsRef)for(let e of s.mount)GO(a,e,Z(f,e))}else a=MO(f);g.array.next({values:{...f}}),g.state.next({name:void 0,type:void 0,values:{...f}})}s={mount:c.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},o.mount=!m.isValid||!!c.keepIsValid||!!c.keepDirtyValues||!t.shouldUnregister&&!uk(f),o.watch=!!t.shouldUnregister,o.keepIsValid=!!c.keepIsValid,o.action=!1,o.actionArrayLengths.clear(),c.keepErrors||(n.errors={}),g.state.next({submitCount:c.keepSubmitCount?n.submitCount:0,isDirty:d?!1:c.keepDirty?n.isDirty:c.keepValues?M():!!(c.keepDefaultValues&&!QO(e,i)),isSubmitted:c.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:d?{}:c.keepDirtyValues?c.keepDefaultValues&&a?Gk(i,a,void 0,p):n.dirtyFields:c.keepDefaultValues&&e?Gk(i,e,void 0,p):c.keepDirty?n.dirtyFields:{},touchedFields:c.keepTouched?n.touchedFields:{},errors:c.keepErrors?n.errors:{},isSubmitSuccessful:c.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},De=(e,n)=>Ee(WO(e)?e(a):e,{...t.resetOptions,...n}),Oe=(e,t={})=>{let n=Z(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&WO(e.select)&&e.select()})}},ke=e=>{let{name:t,type:r,values:i,...a}=e;n={...n,...a}};g.state.subscribe({next:ke});let Ae={control:{register:xe,unregister:ye,getFieldState:pe,handleSubmit:we,setError:he,_subscribe:_e,_runSchema:te,_updateIsValidating:x,_focusError:Se,_getWatch:ie,_getDirty:M,_setValid:b,_setFieldArray:C,_setDisabledField:be,_setErrors:T,_getFieldArray:ae,_reset:Ee,_resetDefaultValues:()=>WO(t.defaultValues)&&t.defaultValues().then(e=>{De(e,t.resetOptions),g.state.next({isLoading:!1})}),_removeUnmounted:j,_disableForm:Ce,_subjects:g,_proxyFormState:m,get _fields(){return r},get _formValues(){return a},get _state(){return o},set _state(e){o=e},get _defaultValues(){return i},get _names(){return s},set _names(e){s=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e},d=ok(t.mode),f=ok(t.reValidateMode)}},subscribe:ve,trigger:P,register:xe,handleSubmit:we,watch:ge,setValue:N,setValues:le,getValues:fe,reset:De,resetField:Te,resetDefaultValues:(e,t={})=>
60{if(i=MO(e),!t.keepDirty){let e=Gk(i,a,void 0,r);n.dirtyFields=e,n.isDirty=!uk(e)}t.keepIsValid||b(),g.state.next({...n,defaultValues:i})},clearErrors:me,unregister:ye,setError:he,setFocus:Oe,getFieldState:pe};return{...Ae,formControl:Ae}}function lA(e={}){let t=z.useRef(void 0),n=z.useRef(void 0),r=z.useRef(e.formControl),[i,a]=z.useState(()=>({...MO(sA),isLoading:WO(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:WO(e.defaultValues)?void 0:e.defaultValues}));if(!t.current||e.formControl&&r.current!==e.formControl){if(r.current=e.formControl,e.formControl)t.current={...e.formControl,formState:i},e.defaultValues&&!WO(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...r}=cA(e);t.current={...r,formState:i}}}let o=t.current.control;o._options=e;let{resyncIfNeeded:s,snapshot:c}=$O();return YO(()=>{let e=()=>({...o._formState,defaultValues:o._defaultValues});s(!0,e,a);let t=o._subscribe({formState:o._proxyFormState,callback:()=>a({...o._formState,defaultValues:o._defaultValues}),reRenderRoot:!0});return a(e=>({...e,isReady:!0})),o._formState.isReady=!0,()=>{t(),c(!0,e)}},[o,s,c]),z.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),z.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),z.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),z.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),z.useEffect(()=>{if(o._proxyFormState.isDirty){let e=o._getDirty();e!==i.isDirty&&o._subjects.state.next({isDirty:e})}},[o,i.isDirty]),z.useEffect(()=>{e.values&&!QO(e.values,n.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),o._options.resetOptions?.keepIsValid||o._setValid(),n.current=e.values,a(e=>({...e}))):o._resetDefaultValues()},[o,e.values]),z.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=z.useMemo(()=>JO(i,o),[o,i]),t.current}var uA=(e,t,n)=>{if(e&&`reportValidity`in e){let r=Z(n,t);e.setCustomValidity(r&&r.message||``),e.reportValidity()}},dA=(e,t)=>{for(let n in t.fields){let r=t.fields[n];r&&r.ref&&`reportValidity`in r.ref?uA(r.ref,n,e):r&&r.refs&&r.refs.forEach(t=>uA(t,n,e))}},fA=(e,t)=>{t.shouldUseNativeValidation&&dA(e,t);let n={};for(let r in e){let i=Z(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.refs?i.refs[0]:i&&i.ref});if(pA(t.names||Object.keys(e),r)){let e=Object.assign({},Z(n,r));GO(e,`root`,a),GO(n,r,e)}else GO(n,r,a)}return n},pA=(e,t)=>{let n=mA(t).replace(/[.*+?^${}()|\\]/g,`\\$&`);return e.some(e=>mA(e).match(`^${n}\\.\\d+`))};function mA(e){return e.replace(/[\[\]]/g,``)}function hA(){return hA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hA.apply(null,arguments)}function gA(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}function _A(e,t){for(var n=Object.create(null);e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(`.`);if(!n[o]){if(`unionErrors`in r){var s=r.unionErrors.reduce(function(e,t){return t.errors.length<e.errors.length?t:e}).errors[0];n[o]={message:s?.message??a,type:s?.code??i}}else n[o]={message:a,type:i}}if(`unionErrors`in r&&r.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=mk(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()}return n}function vA(e,t){for(var n=Object.create(null),r=function(){var r=e[0],i=r.code,a=r.message,o=r.path.join(`.`);if(!n[o]){if(r.code===`invalid_union`&&r.errors.length>0){var s=r.errors.reduce(function(e,t){return t.length<e.length?t:e})[0];n[o]={message:s?.message??a,type:s?.code??i}}else n[o]={message:a,type:i}}if(r.code===`invalid_union`&&r.errors.forEach(function(t){return t.forEach(function(t){return e.push(hA({},t,{path:[].concat(r.path,t.path)}))})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=mk(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()};e.length;)r();return n}function yA(e,t,n){if(n===void 0&&(n={}),function(e){return`_zod`in e&&typeof e._zod==`object`}(e))return function(r,i,a){try{return Promise.resolve(gA(function(){function i(e){return a.shouldUseNativeValidation&&dA({},a),{errors:{},values:n.raw?Object.assign({},r):e}}var o=e;return n.mode===`sync`?i(o.parse(r,t)):Promise.resolve(o.parseAsync(r,t)).then(i)},function(e){if(function(e){var t;return!(e==null||(t=e._zod)==null||(t=t.traits)==null||!t.has(`$ZodError`))}(e))return{values:{},errors:fA(vA(e.issues,!a.shouldUseNativeValidation&&a.criteriaMode===`all`),a)};throw e}))}catch(e){return Promise.reject(e)}};if(function(e){return`_def`in e&&typeof e._def==`object`}(e))return function(r,i,a){try{return Promise.resolve(gA(function(){return Promise.resolve(e[n.mode===`sync`?`parse`:`parseAsync`](r,t)).then(function(e){return a.shouldUseNativeValidation&&dA({},a),{errors:{},values:n.raw?Object.assign({},r):e}})},function(e){if(function(e){return Array.isArray(e?.issues)}(e))return{values:{},errors:fA(_A(e.errors,!a.shouldUseNativeValidation&&a.criteriaMode===`all`),a)};throw e}))}catch(e){return Promise.reject(e)}};throw Error(`Invalid input: not a Zod schema`)}var bA=jk,xA=z.createContext({}),SA=({...e})=>(0,B.jsx)(xA.Provider,{value:{name:e.name},children:(0,B.jsx)(ak,{...e})}),CA=()=>{let e=z.useContext(xA),t=z.useContext(wA),{getFieldState:n,formState:r}=Ak(),i=n(e.name,r);
60if(!e)throw Error(`useFormField should be used within <FormField>`);let{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...i}},wA=z.createContext({}),TA=z.forwardRef(({className:e,...t},n)=>{let r=z.useId();return(0,B.jsx)(wA.Provider,{value:{id:r},children:(0,B.jsx)(`div`,{ref:n,className:oe(`space-y-2`,e),...t})})});TA.displayName=`FormItem`;var EA=z.forwardRef(({className:e,...t},n)=>{let{error:r,formItemId:i}=CA();return(0,B.jsx)(Ve,{ref:n,className:oe(r&&`text-destructive`,e),htmlFor:i,...t})});EA.displayName=`FormLabel`;var DA=z.forwardRef(({...e},t)=>{let{error:n,formItemId:r,formDescriptionId:i,formMessageId:a}=CA();return(0,B.jsx)(Se,{ref:t,id:r,"aria-describedby":n?`${i} ${a}`:`${i}`,"aria-invalid":!!n,...e})});DA.displayName=`FormControl`;var OA=z.forwardRef(({className:e,...t},n)=>{let{formDescriptionId:r}=CA();return(0,B.jsx)(`p`,{ref:n,id:r,className:oe(`text-sm text-muted-foreground`,e),...t})});OA.displayName=`FormDescription`;var kA=z.forwardRef(({className:e,children:t,...n},r)=>{let{error:i,formMessageId:a}=CA(),o=i?String(i?.message):t;return o?(0,B.jsx)(`p`,{ref:r,id:a,className:oe(`text-sm font-medium text-destructive`,e),...n,children:o}):null});kA.displayName=`FormMessage`;var AA=ze({firstName:Ne().trim().min(1,`First name is required`).max(50,`First name must be less than 50 characters`),lastName:Ne().trim().min(1,`Last name is required`).max(50,`Last name must be less than 50 characters`),phone:Ne().regex(/^\+61[3478]\d{8}$/,`Phone must be +61 followed by 3, 4, 7, or 8, then 8 digits (e.g., +61412345678)`).refine(e=>!e.includes(` `),`Phone number cannot contain spaces`),businessName:Ne().trim().min(1,`Business name is required`).max(100,`Business name must be less than 100 characters`),industry:Ne().trim().min(1,`Industry is required`).max(100,`Industry must be less than 100 characters`)}),jA=({onSuccess:e})=>{let{toast:t}=N(),n=lA({resolver:yA(AA),defaultValues:{firstName:``,lastName:``,phone:``,businessName:``,industry:``}}),r=async r=>{try{if((await fetch(`https://yottadigital.app.n8n.cloud/webhook/26b79e17-c6b4-4998-a3cd-ba6d582c741b`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({firstName:r.firstName,lastName:r.lastName,phone:r.phone,businessName:r.businessName,industry:r.industry,type:`Mobile Contact`,source:`website`,timestamp:new Date().toISOString()})})).ok)xO(),t({title:`Success!`,description:`We'll be in touch soon.`}),n.reset(),e();else throw Error(`Failed to submit`)}catch{t({title:`Error`,description:`Failed to submit form. Please try again.`,variant:`destructive`})}};return(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`h2`,{className:`font-poppins font-bold text-[14px] text-foreground mb-1`,children:`Get in Touch`}),(0,B.jsx)(`p`,{className:`font-poppins font-light text-[13px] text-foreground mb-6`,children:`Fill in your details and we'll get back to you shortly.`}),(0,B.jsx)(bA,{...n,children:(0,B.jsxs)(`form`,{onSubmit:n.handleSubmit(r),className:`space-y-3`,children:[(0,B.jsx)(SA,{control:n.control,name:`firstName`,render:({field:e})=>(0,B.jsxs)(TA,{children:[(0,B.jsxs)(EA,{className:`font-jetbrains text-sm text-muted-foreground`,children:[`First Name`,(0,B.jsx)(`span`,{className:`text-red-500 ml-1`,children:`*`})]}),(0,B.jsx)(DA,{children:(0,B.jsx)(Ie,{...e,className:`h-10 bg-[#F2F2F2] border-0 rounded-[15px] font-poppins text-sm focus-visible:ring-offset-0`,placeholder:`John`})}),(0,B.jsx)(kA,{})]})}),(0,B.jsx)(SA,{control:n.control,name:`lastName`,render:({field:e})=>(0,B.jsxs)(TA,{children:[(0,B.jsxs)(EA,{className:`font-jetbrains text-sm text-muted-foreground`,children:[`Last Name`,(0,B.jsx)(`span`,{className:`text-red-500 ml-1`,children:`*`})]}),(0,B.jsx)(DA,{children:(0,B.jsx)(Ie,{...e,className:`h-10 bg-[#F2F2F2] border-0 rounded-[15px] font-poppins text-sm focus-visible:ring-offset-0`,placeholder:`Smith`})}),(0,B.jsx)(kA,{})]})}),(0,B.jsx)(SA,{control:n.control,name:`phone`,render:({field:e})=>(0,B.jsxs)(TA,{children:[(0,B.jsxs)(EA,{className:`font-jetbrains text-sm text-muted-foreground`,children:[`Phone Number`,(0,B.jsx)(`span`,{className:`text-red-500 ml-1`,children:`*`})]}),(0,B.jsx)(DA,{children:(0,B.jsx)(Ie,{...e,type:`tel`,className:`h-10 bg-[#F2F2F2] border-0 rounded-[15p
60x] font-poppins text-sm focus-visible:ring-offset-0`,placeholder:`+61412345678`})}),(0,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Format: +61412345678 (no spaces)`}),(0,B.jsx)(kA,{})]})}),(0,B.jsx)(SA,{control:n.control,name:`businessName`,render:({field:e})=>(0,B.jsxs)(TA,{children:[(0,B.jsxs)(EA,{className:`font-jetbrains text-sm text-muted-foreground`,children:[`Business Name`,(0,B.jsx)(`span`,{className:`text-red-500 ml-1`,children:`*`})]}),(0,B.jsx)(DA,{children:(0,B.jsx)(Ie,{...e,className:`h-10 bg-[#F2F2F2] border-0 rounded-[15px] font-poppins text-sm focus-visible:ring-offset-0`,placeholder:`Your Company Pty Ltd`})}),(0,B.jsx)(kA,{})]})}),(0,B.jsx)(SA,{control:n.control,name:`industry`,render:({field:e})=>(0,B.jsxs)(TA,{children:[(0,B.jsxs)(EA,{className:`font-jetbrains text-sm text-muted-foreground`,children:[`Industry`,(0,B.jsx)(`span`,{className:`text-red-500 ml-1`,children:`*`})]}),(0,B.jsx)(DA,{children:(0,B.jsx)(Ie,{...e,className:`h-10 bg-[#F2F2F2] border-0 rounded-[15px] font-poppins text-sm focus-visible:ring-offset-0`,placeholder:`E-commerce, Healthcare, Finance, etc.`})}),(0,B.jsx)(kA,{})]})}),(0,B.jsx)(Ce,{type:`submit`,disabled:n.formState.isSubmitting,className:`bg-black text-white hover:bg-black/90 mt-4 font-poppins rounded-[15px] text-sm`,style:{width:`120px`,height:`36px`},children:n.formState.isSubmitting?`Submitting...`:`Submit`})]})})]})},MA=({isOpen:e,onClose:t})=>(0,B.jsx)(hO,{open:e,onOpenChange:t,children:(0,B.jsx)(vO,{className:`sm:max-w-[500px] max-h-[90vh] overflow-y-auto`,children:(0,B.jsx)(jA,{onSuccess:t})})}),NA=`data:image/svg+xml,%3csvg%20width='40'%20height='39'%20viewBox='0%200%2040%2039'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.5144%2010.3402C14.5968%208.30163%2017.5448%207.28037%2021.3546%207.28037C24.8173%207.28037%2027.542%208.08621%2029.5406%209.69389C29.2334%208.56891%2028.7946%207.51973%2028.2162%206.54635C26.9835%204.4799%2
60025.2521%202.87222%2023.0181%201.72331C20.7841%200.574395%2018.1193%20-6.10352e-05%2015.0316%20-6.10352e-05C11.9439%20-6.10352e-05%209.33093%200.574395%207.07698%201.72331C4.82304%202.87222%203.07574%204.4799%201.84704%206.54635C0.614351%208.61279%200%2011.0263%200%2013.7829V21.929C0%2024.6856%200.614351%2027.0991%201.84704%2029.1656C3.07973%2031.232%204.82304%2032.8397%207.07698%2033.9886C7.80702%2034.3596%208.58094%2034.6668%209.39475%2034.9181V19.2482C9.39475%2015.3507%2010.436%2012.3827%2012.5184%2010.3441L12.5144%2010.3402Z'%20fill='white'/%3e%3cpath%20d='M39.6812%2022.2163C36.5576%2017.493%2032.1934%2011.8602%2029.1615%2011.8602H26.6762C25.3836%2010.3682%2023.1696%209.95729%2021.4103%2010.9985C19.4316%2012.1673%2018.7734%2014.7245%2019.9423%2016.7032C20.2056%2017.146%2020.6723%2017.3933%2021.151%2017.3933C21.3944%2017.3933%2021.6377%2017.3295%2021.8651%2017.1978C22.5313%2016.8029%2022.7547%2015.9452%2022.3598%2015.275C21.9808%2014.6287%2022.1922%2013.795%2022.8385%2013.416C23.4848%2013.037%2024.3185%2013.2484%2024.6975%2013.8947C25.0007%2014.4053%2025.5751%2014.6527%2026.1257%2014.5649V14.6686H29.1615C30.0352%2014.6686%2032.5883%2017.126%2035.5882%2021.243H34.0244C33.2505%2021.243%2032.6202%2021.8693%2032.6202%2022.6472C32.6202%2023.4251%2033.2465%2024.0514%2034.0244%2024.0514H35.9512L32.5923%2027.4104L21.9688%2026.0181C21.4742%2025.9344%2020.9675%2026.054%2020.5646%2026.3572C20.1417%2026.6724%2019.8784%2027.1551%2019.8425%2027.6418L19.4596%2031.3079C19.4277%2031.7148%2019.5354%2032.1257%2019.7628%2032.4688L21.9888%2035.7839H19.2641L14.6365%2028.7707C14.2775%2028.1803%2013.6113%2027.8412%2012.9251%2027.9011L11.8002%2027.9928C11.0262%2028.0566%2010.4518%2028.7348%2010.5196%2029.5087C10.5834%2030.2827%2011.2616%2030.8571%2012.0355%2030.7893L12.5821%2030.7454L17.1777%2037.7107C17.5088%2038.2532%2018.0992%2038.5883%2018.7375%2038.5883H23.8238C24.498%2038.5883%2025.1204%2038.2173%2025.4395%2037.6229C25.7586%2037.0245%2025.7227%2036.3065%2025.3477%2035.74L22.2959%2031.1962L22.5353%2028.9183L32.6402%2030.2428C33.2226%2030.3425%2033.817%2030.155%2034.2398%2029.7321L39.4498%2024.5221C40.0602%2023.9118%2040.1599%2022.9424%2039.6812%2022.2203V22.2163Z'%20fill='white'/%3e%3cpath%20d='M31.8105%2031.3597C31.3797%2030.7175%2030.506%2030.5459%2029.8637%2030.9808C29.2733%2031.3757%2029.0818%2032.1416%2029.389%2032.764H27.7733L26.409%2030.6935C25.9822%2030.0473%2025.1125%2029.8677%2024.4662%2030.2946C23.82%2030.7214%2023.6404%2031.5911%2024.0673%2032.2374L25.6869%2034.6908C26.0181%2035.2333%2026.6125%2035.5684%2027.2507%2035.5684H31.2121C31.8903%2035.5684%2032.5086%2035.1974%2032.8278%2034.599C33.1469%2034.0046%2033.111%2033.2826%2032.732%2032.7161L31.8185%2031.3597H31.8105Z'%20fill='white'/%3e%3c/svg%3e`,PA=()=>{let[e,t]=(0,z.useState)(!1),[n,r]=(0,z.useState)(!1),[i,a]=(0,z.useState)(!1),{isScrolled:o}=oh(),s=XT.find(e=>e.type===`megamenu`);return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`header`,{className:`fixed z-[9999] transition-all duration-300 max-md:h-[63px] max-md:left-4 max-md:right-4 max-md:top-4 md:left-8 md:right-8 ${o?`h-[63px] bg-black/80 backdrop-blur-xl md:top-4 rounded-2xl`:`h-[101px] md:top-8 bg-transparent`}`,children:(0,B.jsxs)(`div`,{className:`mx-auto flex h-full w-full items-center justify-between md:pl-[52px] md:pr-4 max-md:px-3`,children:[(0,B.jsxs)(_e,{to:`/`,className:`relative z-10`,children:[(0,B.jsx)(`img`,{src:`https://api.builder.io/api/v1/image/assets/TEMP/7b48b5cb46e93cd7e12ba77f0e4c416d398a2cb3?placeholderIfAbsent=true`,alt:`Yotta Digital Logo`,className:`aspect-[2.87] object-contain w-[184px] shrink-0 max-w-full transition-opacity duration-300 max-md:hidden ${o?`md:hidden`:`md:block`}`}),(0,B.jsx)(`img`,{src:NA,alt:`Yotta Digital Logo`,className:`w-[40px] h-[39px] object-contain transition-opacity duration-300 ${o?`md:block`:`md:hidden`} max-md:block`})]}),(0,B.jsxs)(`div`,{className:`hidden md:flex items-center gap-[40px_45px]`,children:[(0,B.jsx)(`nav`,{className:`flex items-center gap-10 text-base text-white font-semibold`,children:XT.map((n,r)=>(0,B.jsx)(`div`,{children:n.type===`link`?(0,B.jsx)(_e,{to:n.href,className:`hover:opacity-80 transition-opacity`,children:n.label}):(0,B.jsx)(`button`,{onClick:()=>t(!e),className:`hover:opacity-80 transition-opacity`,children:n.label})},r))}),(0,B.jsxs)(`div`,{className:`flex items-center gap-[19px] relative z-[100000]`,children:[(0,B.jsx)(`a`,{href:`tel:+61340533618`,className:`hover:opacity-80 transition-opacity relative z-[100000]`,"aria-label":`Call us`,children:(0,B.jsx)(ad,{className:`w-[18px] h-[18px] text-white`})}),(0,B.jsx)(`a`,{href:`https://www.facebook.com/YottaDigitalAI`,target:`_blank`,rel:`noopener noreferrer`,className:`hover:opacity-80 transition-opacity pointer-events-auto relative z-[100000]`,"aria-label":`Facebook`,children:(0,B.jsx)(`img`,{src:ZT,alt:`Facebook`,className:`aspect-[1] object-contain w-[18px] shrink-0`})}),(0,B.jsx)(`a`,{href:`https://www.linkedin.com/company/yottadigital`,target:`_blank`,rel:`noopener noreferrer`,className:`hover:opacity-80 transition-opacity pointer-events-auto relative z-[100000]`,"aria-label":`LinkedIn`,children:(0,B.jsx)(`img`,{src:QT,alt:`LinkedIn`,className:`aspect-[1] object-contain w-[18px] shrink-0`})}),(0,B.jsx)(`a`,{href:`https://www.instagram.com/yottadigitalai/?utm_source=ig_web_button_share_sheet`,target:`_blank`,rel:`noopener noreferrer`,className:`hover:opacity-80 transition-opacity pointer-events-auto relative z-[100000]`,"aria-label":`Instagram`,children:(0,B.jsx)(`img`,{src:$T,alt:`Instagram`,className:`aspect-[1] object-contain w-[18px] shrink-0`})})]})]}),(0,B.jsx)(`button`,{onClick:()=>r(!0),className:`md:hidden w-[50px] h-[50px] flex items-center justify-center text-white absolute right-0 top-1/2 -translate-y-1/2`,"aria-label":`Open menu`,children:(0,B.jsx)(id,{className:`h-6 w-6`})})]})}),s&&(0,B.jsx)(YT,{isOpen:e,isScrolled:o,onClose:()=>t(!1)}),(0,B.jsx)(tE,{isOpen:n,onClose:()=>r(!1),onContactClick:()=>a(!0)}),(0,B.jsx)(MA,{isOpen:i,onClose:()=>a(!1)})]})},FA=`data:image/svg+xml,%3csvg%20width='303'%20height='302'%20viewBox='0%200%20303%20302'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M63.858%2055.0558C81.9566%2037.3017%20107.579%2028.4073%20140.69%2028.4073C170.785%2028.4073%20194.466%2035.4255%20211.836%2049.4273C209.166%2039.6295%20205.352%2030.4919%20200.325%2022.0145C189.612%204.01721%20174.564%20-9.98451%20155.148%20-19.9907C135.732%20-29.9969%20112.572%20-35%2085.7358%20-35C58.9001%20-35%2036.1902%20-29.9969%2016.6008%20-19.9907C-2.98857%20-9.98451%20-18.1747%204.01721%20-28.8535%2022.0145C-39.567%2040.0117%20-44.9064%2061.0317%20-44.9064%2085.0396V155.986C-44.9064%20179.994%20-39.567%20201.014%20-28.8535%20219.011C-18.14%20237.009%20-2.98857%20251.01%2016.6008%20261.017C22.9457%20264.248%2029.672%20266.923%2036.745%20269.112V132.639C36.745%2098.6939%2045.7942%2072.8445%2063.8928%2055.0905L63.858%2055.0558Z'%20fill='black'/%3e%3cpath%20d='M299.971%20158.487C272.823%20117.351%20234.893%2068.2924%20208.542%2068.2924H186.942C175.709%2055.2983%20156.466%2051.7196%20141.176%2060.7878C123.979%2070.9677%20118.258%2093.2384%20128.417%20110.471C130.705%20114.328%20134.762%2
600116.482%20138.922%20116.482C141.037%20116.482%20143.152%20115.926%20145.128%20114.78C150.918%20111.34%20152.86%20103.87%20149.428%2098.033C146.134%2092.4045%20147.971%2085.1431%20153.588%2081.8424C159.205%2078.5418%20166.451%2080.3832%20169.745%2086.0117C172.38%2090.4589%20177.373%2092.613%20182.157%2091.8487V92.752H208.542C216.136%2092.752%20238.325%20114.154%20264.398%20150.01H250.807C244.081%20150.01%20238.603%20155.464%20238.603%20162.239C238.603%20169.014%20244.046%20174.469%20250.807%20174.469H267.553L238.36%20203.723L146.03%20191.598C141.73%20190.868%20137.327%20191.911%20133.825%20194.551C130.15%20197.296%20127.862%20201.5%20127.55%20205.739L124.221%20237.668C123.944%20241.212%20124.88%20244.791%20126.856%20247.778L146.203%20276.651H122.522L82.3035%20215.571C79.1831%20210.429%2073.393%20207.476%2067.4295%20207.997L57.6521%20208.796C50.9258%20209.352%2045.9331%20215.258%2046.5226%20221.999C47.0773%20228.739%2052.9714%20233.742%2059.6977%20233.151L64.4477%20232.769L104.389%20293.432C107.267%20298.157%20112.398%20301.075%20117.946%20301.075H162.152C168.011%20301.075%20173.42%20297.844%20176.194%20292.667C178.968%20287.456%20178.656%20281.202%20175.397%20276.268L148.873%20236.695L150.953%20216.857L238.776%20228.391C243.838%20229.26%20249.004%20227.627%20252.679%20223.944L297.96%20178.569C303.265%20173.253%20304.132%20164.81%20299.971%20158.522V158.487Z'%20fill='black'/%3e%3cpath%20d='M231.564%20238.119C227.82%20232.525%20220.226%20231.031%20214.644%20234.818C209.513%20238.258%20207.849%20244.929%20210.518%20250.349H196.476L184.619%20232.317C180.909%20226.688%20173.351%20225.125%20167.734%20228.843C162.117%20232.56%20160.557%20240.134%20164.267%20245.763L178.343%20267.13C181.221%20271.855%20186.387%20274.774%20191.935%20274.774H226.363C232.258%20274.774%20237.632%20271.543%20240.405%20266.331C243.179%20261.154%20242.867%20254.866%20239.573%20249.932L231.633%20238.119H231.564Z'%20fill='black'/%3e%3c/svg%3e`,IA=`/assets/footer-yotta-logo-D0ovwRU9.svg`,LA=`data:image/svg+xml,%3csvg%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M29.5265%2016.6879C29.5265%209.50969%2023.7433%203.69092%2016.6103%203.69092C9.47405%203.69253%203.6908%209.5097%203.6908%2016.6895C3.6908%2023.1751%208.41492%2028.5515%2014.5889%2029.5267V20.4449H11.3114V16.6895H14.5921V13.8237C14.5921%2010.5672%2016.5215%208.76862%2019.4712%208.76862C20.8856%208.76862%2022.3629%209.0221%2022.3629%209.0221V12.2189H20.7338C19.1306%2012.2189%2018.6301%2013.2215%2018.6301%2014.25V16.6879H22.2111L21.6396%2020.4433H18.6284V29.5251C24.8024%2028.5499%2029.5265%2023.1735%2029.5265%2016.6879Z'%20fill='black'/%3e%3c/svg%3e`,RA=`data:image/svg+xml,%3csvg%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.90796%205.7271C3.90796%204.72215%204.74303%203.90771%205.77338%203.90771H27.4441C28.4744%203.90771%2029.3095%204.72215%2029.3095%205.7271V27.4899C29.3095%2028.4948%2028.4744%2029.3092%2027.4441%2029.3092H5.77338C4.74303%2029.3092%203.90796%2028.4948%203.90796%2027.4899V5.7271ZM11.7554%2025.172V13.7016H7.94363V25.172H11.7554ZM9.85033%2012.1346C11.1791%2012.1346%2012.0063%2011.2551%2012.0063%2010.1533C11.9825%209.02771%2011.1807%208.172%209.87573%208.172C8.57073%208.172%207.71819%209.0293%207.71819%2010.1533C7.71819%2011.2551%208.54533%2012.1346%209.82493%2012.1346H9.85033ZM17.6423%2025.172V18.766C17.6423%2018.4231%2017.6677%2018.0802%2017.7693%2017.8357C18.0439%2017.1514%2018.671%2016.4418%2019.7252%2016.4418C21.1048%2016.4418%2021.6557%2017.4928%2021.6557%2019.0359V25.172H25.4675V18.593C25.4675%2015.0685%2023.5878%2013.4301%2021.0794%2013.4301C19.0568%2013.4301%2018.1503%2014.5414%2017.6423%2015.3241V15.3638H17.6168L17.6423%2015.3241V13.7016H13.832C13.8796%2014.778%2013.832%2025.172%2013.832%2025.172H17.6423Z'%20fill='black'/%3e%3c/svg%3e`,zA=`data:image/svg+xml,%3csvg%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.6053%2012.3731C14.2732%2012.3731%2012.37%2014.2763%2012.37%2016.6085C12.37%2018.9406%2014.2732%2020.8439%2016.6053%2020.8439C18.9374%2020.8439%2020.8406%2018.9406%2020.8406%2016.6085C20.8406%2014.2763%2018.9374%2012.3731%2016.
606053%2012.3731ZM29.3081%2016.6085C29.3081%2014.8546%2029.324%2013.1166%2029.2255%2011.3659C29.127%209.33238%2028.6631%207.52765%2027.1761%206.04065C25.686%204.55048%2023.8845%204.08977%2021.851%203.99127C20.0971%203.89277%2018.3592%203.90866%2016.6085%203.90866C14.8546%203.90866%2013.1167%203.89277%2011.366%203.99127C9.33252%204.08977%207.52783%204.55366%206.04086%206.04065C4.55071%207.53083%204.09001%209.33238%203.99151%2011.3659C3.89302%2013.1198%203.9089%2014.8578%203.9089%2016.6085C3.9089%2018.3592%203.89302%2020.1004%203.99151%2021.8511C4.09001%2023.8846%204.55389%2025.6893%206.04086%2027.1763C7.531%2028.6665%209.33252%2029.1272%2011.366%2029.2257C13.1198%2029.3242%2014.8578%2029.3083%2016.6085%2029.3083C18.3623%2029.3083%2020.1003%2029.3242%2021.851%2029.2257C23.8845%2029.1272%2025.6892%2028.6633%2027.1761%2027.1763C28.6663%2025.6861%2029.127%2023.8846%2029.2255%2021.8511C29.3271%2020.1004%2029.3081%2018.3624%2029.3081%2016.6085ZM16.6053%2023.1252C12.9991%2023.1252%2010.0887%2020.2148%2010.0887%2016.6085C10.0887%2013.0022%2012.9991%2010.0918%2016.6053%2010.0918C20.2115%2010.0918%2023.1219%2013.0022%2023.1219%2016.6085C23.1219%2020.2148%2020.2115%2023.1252%2016.6053%2023.1252ZM23.3888%2011.3468C22.5468%2011.3468%2021.8669%2010.6669%2021.8669%209.82486C21.8669%208.98287%2022.5468%208.30292%2023.3888%208.30292C24.2308%208.30292%2024.9107%208.98287%2024.9107%209.82486C24.911%2010.0248%2024.8718%2010.2228%2024.7954%2010.4076C24.719%2010.5923%2024.6069%2010.7602%2024.4655%2010.9016C24.3241%2011.043%2024.1563%2011.1551%2023.9715%2011.2315C23.7868%2011.3079%2023.5887%2011.3471%2023.3888%2011.3468Z'%20fill='black'/%3e%3c/svg%3e`,BA=`data:image/svg+xml,%3csvg%20width='300'%20height='1'%20viewBox='0%200%20300%201'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cline%20y1='0.5'%20x2='300'%20y2='0.5'%20stroke='black'/%3e%3c/svg%3e`,VA=`/assets/footer-copyright-DEsSHHJY.svg`,HA=768;function UA(){let[e,t]=z.useState(typeof window<`u`&&window.innerWidth<HA);return z.useEffect(()=>{let e=window.matchMedia(`(max-width: 767px)`),n=()=>{t(window.innerWidth<HA)};return e.addEventListener(`change`,n),t(window.innerWidth<HA),setTimeout(()=>{t(window.innerWidth<HA)},0),()=>e.removeEventListener(`change`,n)},[]),e}var WA=()=>UA()?(0,B.jsxs)(`footer`,{className:`bg-white w-full font-poppins`,children:[(0,B.jsx)(`div`,{className:`relative`,children:(0,B.jsx)(`img`,{src:FA,alt:``,style:{width:189,height:183}})}),(0,B.jsxs)(`div`,{className:`px-5 pt-16 pb-10`,children:[(0,B.jsxs)(`div`,{className:`flex flex-col items-end mb-10`,children:[(0,B.jsx)(`img`,{src:IA,alt:`Yotta`,className:`mb-3`,style:{width:175,height:60}}),(0,B.jsxs)(`p`,{className:`font-poppins font-bold text-black text-right`,style:{fontSize:`18px`,lineHeight:`1.3`},children:[`Built in Australia. Built for AI.`,(0,B.jsx)(`br`,{}),`Built to win.`]}),(0,B.jsxs)(`div`,{className:`flex items-center gap-4 mt-5`,children:[(0,B.jsx)(`img`,{src:LA,alt:`Facebook`,className:`w-5 h-5`}),(0,B.jsx)(`img`,{src:RA,alt:`LinkedIn`,className:`w-5 h-5`}),(0,B.jsx)(`img`,{src:zA,alt:`Instagram`,className:`w-5 h-5`})]})]}),(0,B.jsxs)(`div`,{className:`flex flex-col mb-10`,children:[(0,B.jsxs)(`div`,{className:`flex flex-col`,children:[(0,B.jsx)(`span`,{className:`text-black font-poppins font-bold text-[16px] mb-2`,children:`Services`}),(0,B.jsx)(`div`,{className:`w-full h-[2px] bg-black mb-4`}),(0,B.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,B.jsx)(_e,{to:`/services/ai-search`,className:`text-black font-poppins font-normal text-[16px]`,children:`AI Search`}),(0,B.jsx)(_e,{to:`/services/ai-development`,className:`text-black font-poppins font-normal text-[16px]`,children:`AI Development`}),(0,B.jsx)(_e,{to:`/services/web-development`,className:`text-black font-poppins font-normal text-[16px]`,children:`Web Development`}),(0,B.jsx)(_e,{to:`/google-ads-management`,className:`text-black font-poppins font-normal text-[16px]`,children:`Agentic Google Ads`})]})]}),(0,B.jsxs)(`div`,{className:`flex flex-col mt-8`,children:[(0,B.jsx)(`span`,{className:`text-black font-poppins font-bold text-[16px] mb-2`,children:`Yotta`}),(0,B.jsx)(`div`,{className:`w-full h-[2px] bg-black mb-4`}),(0,B.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,B.jsx)(_e,{to:`/about`,className:`text-black font-poppins font-normal text-[16px]`,children:`About Us`}),(0,B.jsx)(`span`,{className:`text-black font-poppins font-normal text-[16px]`,children:`Our Work`}),(0,B.jsx)(_e,{to:`/contact`,className:`text-black font-poppins font-normal text-[16px]`,children:`Contact Us`}),(0,B.jsx)(`span`,{className:`text-black font-poppins font-normal text-[16px]`,children:`Sitemap`})]})]}),(0,B.jsxs)(`div`,{className:`flex flex-col mt-8`,children:[(0,B.jsx)(`span`,{className:`text-black font-poppins font-bold text-[16px] mb-2`,children:`Phone`}),(0,B.jsx)(`div`,{className:`w-full h-[2px] bg-black mb-4`}),(0,B.jsx)(`span`,{className:`text-black font-poppins font-normal text-[16px]`,children:`1300 070 918`}),(0,B.jsx)(`span`,{className:`text-black font-poppins font-bold text-[16px] mb-2 mt-6`,children:`Address`}),(0,B.jsx)(`div`,{className:`w-full h-[2px] bg-black mb-4`}),(0,B.jsxs)(`span`,{className:`text-black font-poppins font-normal text-[16px]`,children:[`93-97 Normanby Rd,`,(0,B.jsx)(`br`,{}),`Notting Hill, Vic 3168`]})]})]})]}),(0,B.jsxs)(`div`,{className:`w-full py-4 bg-black flex flex-col items-center justify-center gap-2`,children:[(0,B.jsx)(`img`,{src:VA,alt:`© 2026 Yotta Digital. All rights reserved.`,className:`h-[15px]`}),(0,B.jsx)(_e,{to:`/privacy`,className:`text-white font-poppins text-[12px]`,children:`Privacy Policy`})]})]}):(0,B.jsxs)(`footer`,{className:`bg-white w-full font-poppins`,children:[(0,B.jsxs)(`div`,{className:`h-[806px] relative`,children:[(0,B.jsx)(`img`,{src:FA,alt:``,className:`absolute top-0 left-0`}),(0,B.jsxs)(`div`,{className:`absolute right-0 top-24 flex flex-col items-end pr-12 gap-6`,children:[(0,B.jsx)(`img`,{src:IA,alt:`Yotta`}),(0,B.jsxs)(`p`,{className:`font-poppins font-bold text-black text-right`,style:{fontSize:`32px`,lineHeight:`1.2`},children:[`Built in Australia. Built for AI.`,(0,B.jsx)(`br`,{}),`Built to win.`]}),(0,B.jsxs)(`div`,{className:`flex items-center gap-4 mt-6`,children:[(0,B.jsx)(`img`,{src:LA,alt:`Facebook`}),(0,B.jsx)(`img`,{src:RA,alt:`LinkedIn`}),(0,B.jsx)(`img`,{src:zA,alt:`Instagram`})]}),(0,B.jsxs)(`div`,{className:`flex gap-16 mt-8`,children:[(0,B.jsxs)(`div`,{className:`flex flex-col`,children:[(0,B.jsx)(`span`,{className:`text-black font-poppins font-bold text-[16px] mb-2`,children:`Services`}),(0,B.jsx)(`img`,{src:BA,alt:``,className:`mb-4`}),(0,B.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,B.jsx)(_e,{to:`/services/ai-search`,className:`text-black font-poppins font-normal text-[16px]`,children:`AI Search`}),(0,B.jsx)(_e,{to:`/services/ai-development`,className:`text-black font-poppins font-normal text-[16px]`,children:`AI Development`}),(0,B.jsx)(_e,{to:`/services/web-development`,className:`text-black font-poppins font-normal text-[16px]`,children:`Web Development`}),(0,B.jsx)(_e,{to:`/google-ads-management`,className:`text-black font-poppins font-normal text-[16px]`,children:`Agentic Google Ads`})]})]}),(0,B.jsxs)(`div`,{className:`flex flex-col`,children:[(0,B.jsx)(`span`,{className:`text-black font-poppins font-bold text-[16px] mb-2`,children:`Yotta`}),(0,B.jsx)(`img`,{src:BA,alt:``,className:`mb-4`}),(0,B.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,B.jsx)(_e,{to:`/about`,className:`text-black font-poppins font-normal text-[16px]`,children:`About Us`}),(0,B.jsx)(`span`,{className:`text-black font-poppins font-normal text-[16px]`,children:`Our Work`}),(0,B.jsx)(_e,{to:`/contact`,className:`text-black font-poppins font-normal text-[16px]`,children:`Contact Us`}),(0,B.jsx)(`span`,{className:`text-black font-poppins font-normal text-[16px]`,children:`Sitemap`})]})]}),(0,B.jsxs)(`div`,{className:`flex flex-col`,children:[(0,B.jsx)(`span`,{className:`text-black font-poppins font-bold text-[16px] mb-2`,children:`Phone`}),(0,B.jsx)(`img`,{src:BA,alt:``,className:`mb-4`}),(0,B.jsx)(`span`,{className:`text-black font-poppins font-normal text-[16px]`,children:`1300 070 918`}),(0,B.jsx)(`span`,{className:`text-black font-poppins font-bold text-[16px] mb-2 mt-6`,children:`Address`}),(0,B.jsx)(`img`,{src:BA,alt:``,className:`mb-4`}),(0,B.jsxs)(`span`,{className:`text-black font-poppins font-normal text-[16px]`,children:[`93-97 Normanby Rd,`,(0,B.jsx)(`br`,{}),`Notting Hill, Vic 3168`]})]})]})]})]}),(0,B.jsxs)(`div`,{className:`w-full h-[54px] bg-black flex items-center justify-between px-12`,children:[(0,B.jsx)(`img`,{src:VA,alt:`© 2026 Yotta Digital. All rights reserved.`,className:`h-[15px]`}),(0,B.jsx)(_e,{to:`/privacy`,className:`text-white font-poppins text-sm`,children:`Privacy Policy`})]})]}),GA=({children:e})=>(0,B.jsxs)(`div`,{className:`min-h-screen bg-black`,children:[(0,B.jsx)(PA,{}),(0,B.jsx)(`main`,{className:`pt-[101px] max-md:pt-[63px]`,children:e}),(0,B.jsx)(WA,{})]}),KA=()=>{let e=xe();return(0,z.useEffect)(()=>{console.error(`404 Error: User attempted to access non-existent route:`,e.pathname)},[e.pathname]),(0,B.jsx)(GA,{children:(0,B.jsx)(`div`,{className:`flex min-h-screen items-center justify-center bg-black text-white py-20 px-4`,children:(0,B.jsxs)(`div`,{className:`text-center max-w-2xl`,children:[(0,B.jsx)(`h1`,{className:`mb-4 text-8xl font-bold`,children:`404`}),(0,B.jsx)(`h2`,{className:`mb-4 text-3xl font-bold`,children:`Page Not Found`}),(0,B.jsx)(`p`,{className:`mb-8 text-xl text-gray-400`,children:`The page you're looking for doesn't exist or has been moved.`}),(0,B.jsx)(_e,{to:`/`,className:`inline-block rounded-lg bg-white px-8 py-4 font-semibold text-black transition-all hover:scale-105`,children:`Return to Home`})]})})})};function qA(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 JA=`/assets/styles-BZzSGenW.css`,YA=`https://yottadigital.ai`,XA=`Yotta AI | Australia's Specialist AI Agency`,ZA=`Performance marketing for the AI search era. We help brands get recommended inside ChatGPT, Gemini & Perplexity â and convert the demand they win.`,QA=`https://storage.googleapis.com/gpt-engineer-file-uploads/jWemSsLzvGWVfEcmWfgeP7OwZgx1/social-images/social-1769723980615-Screenshot 2026-01-30 at 8.59.31 am.png`,Q=zs()({head:()=>({meta:[{charSet:`utf-8`},{name:`viewport`,content:`width=device-width, initial-scale=1.0`},{title:XA},{name:`description`,content:ZA},{name:`author`,content:`Yotta AI`},{property:`og:type`,content:`website`},{property:`og:title`,content:XA},{property:`og:description`,content:ZA},{property:`og:image`,content:QA},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:XA},{name:`twitter:description`,content:ZA},{name:`twitter:image`,content:QA}],links:[{rel:`stylesheet`,href:JA},{rel:`preconnect`,href:`https://fonts.googleapis.com`}
60,{rel:`preconnect`,href:`https://fonts.gstatic.com`,crossOrigin:`anonymous`},{rel:`stylesheet`,href:`https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap`},{rel:`stylesheet`,href:`https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@800&display=swap`},{rel:`icon`,type:`image/x-icon`,href:`https://storage.googleapis.com/gpt-engineer-file-uploads/jWemSsLzvGWVfEcmWfgeP7OwZgx1/uploads/1758184017729-Yotta_Icon_Black.png`}],scripts:[{src:`https://www.googletagmanager.com/gtag/js?id=AW-17995856018`,async:!0},{children:`
vendor: 124 bytes, line 60
60window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', '
60AW-17995856018
vendor: 3 bytes, line 60
60');
60`},{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@graph":[{"@type":`Organization`,"@id":`${YA}/#organization`,name:`Yotta AI`,legalName:`YOTTA AI PTY LTD`,url:YA,logo:QA,description:ZA,areaServed:{"@type":`Country`,name:`Australia`},contactPoint:[{"@type":`ContactPoint`,telephone:`+61-1300-070-918`,contactType:`sales`,areaServed:`AU`,availableLanguage:`English`}]},{"@type":`WebSite`,"@id":`${YA}/#website`,url:YA,name:XA,description:ZA,publisher:{"@id":`${YA}/#organization`},inLanguage:`en-AU`}]})}]}),shellComponent:$A,component:ej,notFoundComponent:KA,errorComponent:tj});function $A({children:e}){return(0,B.jsxs)(`html`,{lang:`en`,suppressHydrationWarning:!0,children:[(0,B.jsx)(`head`,{children:(0,B.jsx)(fc,{})}),(0,B.jsxs)(`body`,{children:[e,(0,B.jsx)(pc,{})]})]})}function ej(){let{queryClient:e}=Q.useRouteContext();return(0,B.jsx)(xl,{client:e,children:(0,B.jsxs)(rh,{children:[(0,B.jsx)(hd,{}),(0,B.jsx)(Qd,{}),(0,B.jsx)(ah,{}),(0,B.jsx)($s,{})]})})}function tj({error:e,reset:t}){console.error(e);let n=ae();return(0,z.useEffect)(()=>{qA(e,{boundary:`tanstack_root_error_component`})},[e]),(0,B.jsx)(`div`,{className:`min-h-screen bg-background text-foreground grid place-items-center p-6`,children:(0,B.jsxs)(`div`,{className:`max-w-md w-full text-center`,children:[(0,B.jsx)(`h1`,{className:`text-xl font-bold mb-2`,children:`This page didn't load`}),(0,B.jsx)(`p`,{className:`text-muted-foreground mb-6`,children:`Something went wrong on our end. You can try again or head back home.`}),(0,B.jsxs)(`div`,{className:`flex gap-2 justify-center flex-wrap`,children:[(0,B.jsx)(`button`,{className:`px-4 py-2 rounded-md bg-primary text-primary-foreground font-medium`,onClick:()=>{n.invalidate(),t()},children:`Try again`}),(0,B.jsx)(`a`,{className:`px-4 py-2 rounded-md border border-border font-medium`,href:`/`,children:`Go home`})]})]})})}var nj=`modulepreload`,rj=function(e){return`/`+e},ij={},$=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=rj(t,n),t=s(t),t in ij)return;ij[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`:nj,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)})},aj=V(`/`)({head:()=>({meta:[{title:`AI Search & Performance Marketing Agency | Yotta AI`},{name:`description`,content:`Australia's specialist AI agency. We make brands discoverable and recommended inside ChatGPT, Gemini and Perplexity â and convert the demand they win.`},{property:`og:title`,content:`AI Search & Performance Marketing Agency | Yotta AI`},{property:`og:description`,content:`Australia's specialist AI agency. We make brands discoverable and recommended inside ChatGPT, Gemini and Perplexity â and convert the demand they win.`},{property:`og:url`,content:`https://yottadigital.ai/`},{name:`twitter:title`,content:`AI Search & Performance Marketing Agency | Yotta AI`},{name:`twitter:description`,content:`Australia's specialist AI agency. We make brands discoverable and recommended inside ChatGPT, Gemini and Perplexity â and convert the demand they win.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/`}]}),component:H(()=>$(()=>import(`./routes-wb6XF7ud.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])),`component`)}),oj=V(`/about`)({head:()=>({meta:[{title:`About Yotta AI | Australia's Specialist AI Agency`},{name:`description`,content:`We didn't adopt AI â we built an agency around it. Meet the Australian team building AI search, agentic ads and custom AI systems in-house.`},{property:`og:title`,content:`About Yotta AI | Australia's Specialist AI Agency`},{property:`og:description`,content:`We didn't adopt AI â we built an agency around it. Meet the Australian team building AI search, agentic ads and custom AI systems in-house.`},{property:`og:url`,content:`https://yottadigital.ai/about`},{name:`twitter:title`,content:`About Yotta AI | Australia's Specialist AI Agency`},{name:`twitter:description`,content:`We didn't adopt AI â we built an agency around it. Meet the Australian team building AI search, agentic ads and custom AI systems in-house.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/about`}]}
60),component:H(()=>$(()=>import(`./about-DJiIoNrV.js`),__vite__mapDeps([12,1,2,3,4,13,5,6,7])),`component`)}),sj=V(`/admin`)({head:()=>({meta:[{title:`Admin | Yotta AI`},{name:`description`,content:`Internal admin dashboard.`},{property:`og:title`,content:`Admin | Yotta AI`},{property:`og:description`,content:`Internal admin dashboard.`},{property:`og:url`,content:`https://yottadigital.ai/admin`},{name:`twitter:title`,content:`Admin | Yotta AI`},{name:`twitter:description`,content:`Internal admin dashboard.`},{name:`robots`,content:`noindex, nofollow`}]}),component:H(()=>$(()=>import(`./admin-DngOJE5n.js`),__vite__mapDeps([14,1,2,3,15,16])),`component`)}),cj=V(`/ai-radar`)({head:()=>({meta:[{title:`Free AI Visibility Audit | See Your AI Score | Yotta AI`},{name:`description`,content:`Find out if AI can find you. Run a free AI visibility audit and see how ChatGPT, Gemini and Perplexity read your website.`},{property:`og:title`,content:`Free AI Visibility Audit | See Your AI Score | Yotta AI`},{property:`og:description`,content:`Find out if AI can find you. Run a free AI visibility audit and see how ChatGPT, Gemini and Perplexity read your website.`},{property:`og:url`,content:`https://yottadigital.ai/ai-radar`},{name:`twitter:title`,content:`Free AI Visibility Audit | See Your AI Score | Yotta AI`},{name:`twitter:description`,content:`Find out if AI can find you. Run a free AI visibility audit and see how ChatGPT, Gemini and Perplexity read your website.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/ai-radar`}]}),component:H(()=>$(()=>import(`./ai-radar-DB9ft3i5.js`),__vite__mapDeps([17,18,1,19,15])),`component`)}),lj=V(`/ai-radar-landing`)({head:()=>({meta:[{title:`AI Radar | Free AI Visibility Report | Yotta AI`},{name:`description`,content:`AI Radar scans your site the way ChatGPT, Gemini and Perplexity do, then shows you what to fix first.`},{property:`og:title`,content:`AI Radar | Free AI Visibility Report | Yotta AI`},{property:`og:description`,content:`AI Radar scans your site the way ChatGPT, Gemini and Perplexity do, then shows you what to fix first.`},{property:`og:url`,content:`https://yottadigital.ai/ai-radar-landing`},{name:`twitter:title`,content:`AI Radar | Free AI Visibility Report | Yotta AI`},{name:`twitter:description`,content:`AI Radar scans your site the way ChatGPT, Gemini and Perplexity do, then shows you what to fix first.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/ai-radar-landing`}]}),component:H(()=>$(()=>import(`./ai-radar-landing-CAnivbMj.js`),__vite__mapDeps([20,1,19,15])),`component`)}),uj=V(`/ai-search-audit`)({head:()=>({meta:[{title:`Free AI Search Audit | Yotta AI`},{name:`description`,content:`Run a free AI search audit and see exactly how AI assistants read, understand and recommend your website.`},{property:`og:title`,content:`Free AI Search Audit | Yotta AI`},{property:`og:description`,content:`Run a free AI search audit and see exactly how AI assistants read, understand and recommend your website.`},{property:`og:url`,content:`https://yottadigital.ai/ai-search-audit`},{name:`twitter:title`,content:`Free AI Search Audit | Yotta AI`},{name:`twitter:description`,content:`Run a free AI search audit and see exactly how AI assistants read, understand and recommend your website.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/ai-search-audit`}]}),component:H(()=>$(()=>import(`./ai-search-audit-DB9ft3i5.js`),__vite__mapDeps([21,18,1,19,15])),`component`)}),dj=V(`/ai-search-optimisation`)({head:()=>({meta:[{title:`AI Search Optimisation | Get Recommended by ChatGPT | Yotta AI`},{name:`description`,content:`AI search optimisation for Australian brands. Get found, cited and recommended inside ChatGPT, Gemini, Perplexity and AI Overviews.`},{property:`og:title`,content:`AI Search Optimisation | Get Recommended by ChatGPT | Yotta AI`},{property:`og:description`,content:`AI search optimisation for Australian brands. Get found, cited and recommended inside ChatGPT, Gemini, Perplexity and AI Overviews.`},{property:`og:url`,content:`https://yottadigital.ai/ai-search-optimisation`},{name:`twitter:title`,content:`AI Search Optimisation | Get Recommended by ChatGPT | Yotta AI`},{name:`twitter:description`,content:`AI search optimisation for Australian brands. Get found, cited and recommended inside ChatGPT, Gemini, Perplexity and AI Overviews.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/ai-search-optimisation`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`Service`,name:`AI Search Optimisation`,description:`AI search optimisation for Australian brands. Get found, cited and recommended inside ChatGPT, Gemini, Perplexity and AI Overviews.`,url:`https://yottadigital.ai/ai-search-optimisation`,serviceType:`AI Search Optimisation`,areaServed:{"@type":`Country`,name:`Australia`},provider:{"@type":`Organization`,name:`Yotta AI`,url:`https://yottadigital.ai`}})}]}),component:H(()=>$(()=>import(`./ai-search-optimisation-GsfvpB7B.js`),__vite__mapDeps([22,23,1,2,3,24,25,26,27,4,6,7,8])),`component`)}),fj=V(`/ai-visibility-baseline`)({head:()=>({meta:[{title:`AI Visibility Baseline | Yotta AI`},{name:`description`,content:`Establish your AI visibility baseline and track how often AI assistants surface and recommend your brand.`},{property:`og:title`,content:`AI Visibility Baseline | Yotta AI`},{property:`og:description`,content:`Establish your AI visibility baseline and track how often AI assistants surface and recommend your brand.`},{property:`og:url`,content:`https://yottadigital.ai/ai-visibility-baseline`},{name:`twitter:title`,content:`AI Visibility Baseline | Yotta AI`},{name:`twitter:description`,content:`Establish your AI visibility baseline and track how often AI assistants surface and recommend your brand.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/ai-visibility-baseline`}]}
60),component:H(()=>$(()=>import(`./ai-visibility-baseline-DlLmyNUs.js`),__vite__mapDeps([28,1,10,3,2,13])),`component`)}),pj=V(`/auth`)({head:()=>({meta:[{title:`Sign In | Yotta AI`},{name:`description`,content:`Sign in to Yotta AI.`},{property:`og:title`,content:`Sign In | Yotta AI`},{property:`og:description`,content:`Sign in to Yotta AI.`},{property:`og:url`,content:`https://yottadigital.ai/auth`},{name:`twitter:title`,content:`Sign In | Yotta AI`},{name:`twitter:description`,content:`Sign in to Yotta AI.`},{name:`robots`,content:`noindex, nofollow`}]}),component:H(()=>$(()=>import(`./auth-DDI9VVru.js`),__vite__mapDeps([29,1,2,3,10,15,16,11])),`component`)}),mj=V(`/booking`)({head:()=>({meta:[{title:`Book a Call | Yotta AI`},{name:`description`,content:`Book a no-obligation call with Yotta AI to discuss AI search visibility, performance marketing and custom AI builds for your brand.`},{property:`og:title`,content:`Book a Call | Yotta AI`},{property:`og:description`,content:`Book a no-obligation call with Yotta AI to discuss AI search visibility, performance marketing and custom AI builds for your brand.`},{property:`og:url`,content:`https://yottadigital.ai/booking`},{name:`twitter:title`,content:`Book a Call | Yotta AI`},{name:`twitter:description`,content:`Book a no-obligation call with Yotta AI to discuss AI search visibility, performance marketing and custom AI builds for your brand.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/booking`}]}),component:H(()=>$(()=>import(`./booking-KdJjqMVN.js`),__vite__mapDeps([30,1,2,3,24])),`component`)}),hj=V(`/booking_confirmation`)({head:()=>({meta:[{title:`Booking Confirmed | Yotta AI`},{name:`description`,content:`Your call with Yotta AI is confirmed.`},{property:`og:title`,content:`Booking Confirmed | Yotta AI`},{property:`og:description`,content:`Your call with Yotta AI is confirmed.`},{property:`og:url`,content:`https://yottadigital.ai/booking_confirmation`},{name:`twitter:title`,content:`Booking Confirmed | Yotta AI`},{name:`twitter:description`,content:`Your call with Yotta AI is confirmed.`},{name:`robots`,content:`noindex, nofollow`}]}),component:H(()=>$(()=>import(`./booking_confirmation-CZ3TiH80.js`),__vite__mapDeps([31,1,2,3])),`component`)}),gj=V(`/cdn`)({head:()=>({meta:[{title:`Asset Manager | Yotta AI`},{name:`description`,content:`Internal asset manager.`},{property:`og:title`,content:`Asset Manager | Yotta AI`},{property:`og:description`,content:`Internal asset manager.`},{property:`og:url`,content:`https://yottadigital.ai/cdn`},{name:`twitter:title`,content:`Asset Manager | Yotta AI`},{name:`twitter:description`,content:`Internal asset manager.`},{name:`robots`,content:`noindex, nofollow`}]}),component:H(()=>$(()=>import(`./cdn-W-3s3G2l.js`),__vite__mapDeps([32,1,25,15])),`component`)}),_j=V(`/contact`)({head:()=>({meta:[{title:`Contact Yotta AI | Talk to an AI Marketing Specialist`},{name:`description`,content:`Talk to Yotta AI about AI search visibility, Google Ads and custom AI development. Call 1300 070 918 or send us a message.`},{property:`og:title`,content:`Contact Yotta AI | Talk to an AI Marketing Specialist`},{property:`og:description`,content:`Talk to Yotta AI about AI search visibility, Google Ads and custom AI development. Call 1300 070 918 or send us a message.`},{property:`og:url`,content:`https://yottadigital.ai/contact`},{name:`twitter:title`,content:`Contact Yotta AI | Talk to an AI Marketing Specialist`},{name:`twitter:description`,content:`Talk to Yotta AI about AI search visibility, Google Ads and custom AI development. Call 1300 070 918 or send us a message.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/contact`}]}),component:H(()=>$(()=>import(`./contact-BI0Cfr8d.js`),__vite__mapDeps([33,1,10,3,2,7,15])),`component`)}),vj=V(`/email-preview`)({head:()=>({meta:[{title:`Email Preview | Yotta AI`},{name:`description`,content:`Internal email template preview.`},{property:`og:title`,content:`Email Preview | Yotta AI`},{property:`og:description`,content:`Internal email template preview.`},{property:`og:url`,content:`https://yottadigital.ai/email-preview`},{name:`twitter:title`,content:`Email Preview | Yotta AI`},{name:`twitter:description`,content:`Internal email template preview.`},{name:`robots`,content:`noindex, nofollow`}]}),component:H(()=>$(()=>import(`./email-preview-4ASSsc8R.js`),__vite__mapDeps([34,1])),`component`)}),yj=V(`/google-ads-management`)({head:()=>({meta:[{title:`Agentic Google Ads Management | Yotta AI`},{name:`description`,content:`Google Ads management run by agentic AI and Australian specialists. Lower cost per acquisition, higher quality leads, full transparency.`},{property:`og:title`,content:`Agentic Google Ads Management | Yotta AI`},{property:`og:description`,content:`Google Ads management run by agentic AI and Australian specialists. Lower cost per acquisition, higher quality leads, full transparency.`},{property:`og:url`,content:`https://yottadigital.ai/google-ads-management`},{name:`twitter:title`,content:`Agentic Google Ads Management | Yotta AI`},{name:`twitter:description`,content:`Google Ads management run by agentic AI and Australian specialists. Lower cost per acquisition, higher quality leads, full transparency.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/google-ads-management`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`Service`,name:`Agentic Google Ads Management`,description:`Google Ads management run by agentic AI and Australian specialists. Lower cost per acquisition, higher quality leads, full transparency.`,url:`https://yottadigital.ai/google-ads-management`,serviceType:`Agentic Google Ads Management`,areaServed:{"@type":`Country`,name:`Australia`},provider:{"@type":`Organization`,name:`Yotta AI`,url:`https://yottadigital.ai`}})}]}),component:H(()=>$(()=>import(`./google-ads-management-jSzdDdj-.js`),__vite__mapDeps([35,1,2,3,24,36,25,26,4,7,8])),`component`)}),bj=V(`/landingpage`)({head:()=>({meta:[{title:`Yotta AI | AI Marketing for Australian Brands`},{name:`description`,content:`Performance marketing built for the AI search era, by Australia's specialist AI agency.`},{property:`og:title`,content:`Yotta AI | AI Marketing for Australian Brands`},{property:`og:description`,content:`Performance marketing built for the AI search era, by Australia's specialist AI agency.`},{property:`og:url`,content:`https://yottadigital.ai/landingpage`},{name:`twitter:title`,content:`Yotta AI | AI Marketing for Australian Brands`},{name:`twitter:description`,content:`Performance marketing built for the AI search era, by Australia's specialist AI agency.`},{name:`robots`,content:`noindex, nofollow`}]}),component:H(()=>$(()=>import(`./landingpage-CtZaCmDB.js`),__vite__mapDeps([37,1,10,3,2])),`component`)}),xj=V(`/lp`)({head:()=>({meta:[{title:`Yotta AI | AI Search & Performance Marketing`},{name:`description`,content:`Get discovered, recommended and purchased inside ChatGPT, Gemini and Perplexity with Australia's specialist AI agency.`},{property:`og:title`,content:`Yotta AI | AI Search & Performance Marketing`},{property:`og:description`,content:`Get discovered, recommended and purchased inside ChatGPT, Gemini and Perplexity with Australia's specialist AI agency.`},{property:`og:url`,content:`https://yottadigital.ai/lp`},{name:`twitter:title`,content:`Yotta AI | AI Search & Performance Marketing`},{name:`twitter:description`,content:`Get discovered, recommended and purchased inside ChatGPT, Gemini and Perplexity with Australia's specialist AI agency.`},{name:`robots`,content:`noindex, nofollow`}]}),component:H(()=>$(()=>import(`./lp-DP8e6x4Z.js`),__vite__mapDeps([38,1,2,3,36,25,7,39])),`component`)}),Sj=V(`/privacy`)({head:()=>({meta:[{title:`Privacy Policy | Yotta AI`},{name:`description`,content:`How Yotta AI collects, uses and protects your personal information.`},{property:`og:title`,content:`Privacy Policy | Yotta AI`},{property:`og:description`,content:`How Yotta AI collects, uses and protects your personal information.`},{property:`og:url`,content:`https://yottadigital.ai/privacy`},{name:`twitter:title`,content:`Privacy Policy | Yotta AI`},{name:`twitter:description`,content:`How Yotta AI collects, uses and protects your personal information.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/privacy`}]}),component:H(()=>$(()=>import(`./privacy-CO055G_E.js`),__vite__mapDeps([40,1])),`component`)}),Cj=V(`/terms`)({head:()=>({meta:[{title:`Terms of Service | Yotta AI`},{name:`description`,content:`The terms that govern your use of Yotta AI's website and services.`},{property:`og:title`,content:`Terms of Service | Yotta AI`},{property:`og:description`,content:`The terms that govern your use of Yotta AI's website and services.`},{property:`og:url`,content:`https://yottadigital.ai/terms`},{name:`twitter:title`,content:`Terms of Service | Yotta AI`},{name:`twitter:description`,content:`The terms that govern your use of Yotta AI's website and services.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/terms`}]}),component:H(()=>$(()=>import(`./terms-B7jgxKhQ.js`),__vite__mapDeps([41,1])),`component`)}),wj=V(`/thank-you`)({head:()=>({meta:[{title:`Thank You | Yotta AI`},{name:`description`,content:`Thanks for getting in touch with Yotta AI.`},{property:`og:title`,content:`Thank You | Yotta AI`},{property:`og:description`,content:`Thanks for getting in touch with Yotta AI.`},{property:`og:url`,content:`https://yottadigital.ai/thank-you`},{name:`twitter:title`,content:`Thank You | Yotta AI`},{name:`twitter:description`,content:`Thanks for getting in touch with Yotta AI.`},{name:`robots`,content:`noindex, nofollow`}]}),component:H(()=>$(()=>import(`./thank-you-CW-GK_3w.js`),__vite__mapDeps([42,1,2,3])),`component`)}),Tj=V(`/case-studies/`)({head:()=>({meta:[{title:`Case Studies | Yotta AI Client Results`},{name:`description`,content:`Real results for Australian brands â growth in leads, revenue and AI visibility across Google Ads, AI search and custom AI builds.`},{property:`og:title`,content:`Case Studies | Yotta AI Client Results`},{property:`og:description`,content:`Real results for Australian brands â growth in leads, revenue and AI visibility across Google Ads, AI search and custom AI builds.`},{property:`og:url`,content:`https://yottadigital.ai/case-studies`},{name:`twitter:title`,content:`Case Studies | Yotta AI Client Results`},{name:`twitter:description`,content:`Real results for Australian brands â growth in leads, revenue and AI visibility across Google Ads, AI search and custom AI builds.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/case-studies`}]}),component:H(()=>$(()=>import(`./case-studies-CHHvx3Fq.js`),__vite__mapDeps([43,1,2,3,4,7])),`component`)}),Ej=V(`/case-studies/archistar`)({head:()=>({meta:[{title:`Archistar Case Study | Yotta AI`},{name:`description`,content:`How Yotta AI helped Archistar grow with performance marketing, AI search visibility and data-driven optimisation.`},{property:`og:title`,content:`Archistar Case Study | Yotta AI`},{property:`og:description`,content:`How Yotta AI helped Archistar grow with performance marketing, AI search visibility and data-driven optimisation.`},{property:`og:url`,content:`https://yottadigital.ai/case-studies/archistar`},{name:`twitter:title`,content:`Archistar Case Study | Yotta AI`},{name:`twitter:description`,content:`How Yotta AI helped Archistar grow with performance marketing, AI search visibility and data-driven optimisation.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/case-studies/archistar`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`BreadcrumbList`,itemListElement:[{"@type":`ListItem`,position:1,name:`Home`,item:`https://yottadigital.ai`},{"@type":`ListItem`,position:2,name:`Case Studies`,item:`https://yottadigital.ai/case-studies`},{"@type":`ListItem`,position:3,name:`Archistar`,item:`https://yottadigital.ai/case-studies/archistar`}]})}]}),component:H(()=>$(()=>import(`./archistar-koZ54B8_.js`),__vite__mapDeps([44,1,4,7,45,2,3])),`component`)}),Dj=V(`/case-studies/be-fit-foods`)({head:()=>({meta:[{title:`Be Fit Foods Case Study | Yotta AI`},{name:`description`,content:`How Yotta AI helped Be Fit Foods grow with performance marketing, AI search visibility and data-driven optimisation.`},{property:`og:title`,content:`Be Fit Foods Case Study | Yotta AI`},{property:`og:description`,content:`How Yotta AI helped Be Fit Foods grow with performance marketing, AI search visibility and data-driven optimisation.`},{property:`og:url`,content:`https://yottadigital.ai/case-studies/be-fit-foods`},{name:`twitter:title`,content:`Be Fit Foods Case Study | Yotta AI`},{name:`twitter:description`,content:`How Yotta AI helped Be Fit Foods grow with performance marketing, AI search visibility and data-driven optimisation.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/case-studies/be-fit-foods`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`BreadcrumbList`,itemListElement:[{"@type":`ListItem`,position:1,name:`Home`,item:`https://yottadigital.ai`},{"@type":`ListItem`,position:2,name:`Case Studies`,item:`https://yottadigital.ai/case-studies`},{"@type":`ListItem`,position:3,name:`Be Fit Foods`,item:`https://yottadigital.ai/case-studies/be-fit-foods`}]})}]}),component:H(()=>$(()=>import(`./be-fit-foods-BtTRkTgs.js`),__vite__mapDeps([46,1,4,7,45,2,3])),`component`)}),Oj=V(`/case-studies/dcc-coffee`)({head:()=>({meta:[{title:`DC Coffee Case Study | Yotta AI`},{name:`description`,content:`How Yotta AI helped DC Coffee grow with performance marketing, AI search visibility and data-driven optimisation.`},{property:`og:title`,content:`DC Coffee Case Study | Yotta AI`},{property:`og:description`,content:`How Yotta AI helped DC Coffee grow with performance marketing, AI search visibility and data-driven optimisation.`},{property:`og:url`,content:`https://yottadigital.ai/case-studies/dcc-coffee`},{name:`twitter:title`,content:`DC Coffee Case Study | Yotta AI`},{name:`twitter:description`,content:`How Yotta AI helped DC Coffee grow with performance marketing, AI search visibility and data-driven optimisation.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/case-studies/dcc-coffee`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`BreadcrumbList`,itemListElement:[{"@type":`ListItem`,position:1,name:`Home`,item:`https://yottadigital.ai`},{"@type":`ListItem`,position:2,name:`Case Studies`,item:`https://yottadigital.ai/case-studies`},{"@type":`ListItem`,position:3,name:`DC Coffee`,item:`https://yottadigital.ai/case-studies/dcc-coffee`}]})}]}),component:H(()=>$(()=>import(`./dcc-coffee-Ssfs-kWJ.js`),__vite__mapDeps([47,1,4,7,45,2,3])),`component`)}),kj=V(`/case-studies/drummond-golf`)({head:()=>({meta:[{title:`Drummond Golf Case Study | Yotta AI`},{name:`description`,content:`How Yotta AI helped Drummond Golf grow with performance marketing, AI search visibility and data-driven optimisation.`},{property:`og:title`,content:`Drummond Golf Case Study | Yotta AI`},{property:`og:description`,content:`How Yotta AI helped Drummond Golf grow with performance marketing, AI search visibility and data-driven optimisation.`},{property:`og:url`,content:`https://yottadigital.ai/case-studies/drummond-golf`},{name:`twitter:title`,content:`Drummond Golf Case Study | Yotta AI`},{name:`twitter:description`,content:`How Yotta AI helped Drummond Golf grow with performance marketing, AI search visibility and data-driven optimisation.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/case-studies/drummond-golf`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`BreadcrumbList`,itemListElement:[{"@type":`ListItem`,position:1,name:`Home`,item:`https://yottadigital.ai`},{"@type":`ListItem`,position:2,name:`Case Studies`,item:`https://yottadigital.ai/case-studies`},{"@type":`ListItem`,position:3,name:`Drummond Golf`,item:`https://yottadigital.ai/case-studies/drummond-golf`}]})}]}),component:H(()=>$(()=>import(`./drummond-golf-DShUNTAk.js`),__vite__mapDeps([48,1,4,7,45,2,3])),`component`)}),Aj=V(`/case-studies/go-boat`)({head:()=>({meta:[{title:`GoBoat Case Study | Yotta AI`
60},{name:`description`,content:`How Yotta AI helped GoBoat grow with performance marketing, AI search visibility and data-driven optimisation.`},{property:`og:title`,content:`GoBoat Case Study | Yotta AI`},{property:`og:description`,content:`How Yotta AI helped GoBoat grow with performance marketing, AI search visibility and data-driven optimisation.`},{property:`og:url`,content:`https://yottadigital.ai/case-studies/go-boat`},{name:`twitter:title`,content:`GoBoat Case Study | Yotta AI`},{name:`twitter:description`,content:`How Yotta AI helped GoBoat grow with performance marketing, AI search visibility and data-driven optimisation.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/case-studies/go-boat`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`BreadcrumbList`,itemListElement:[{"@type":`ListItem`,position:1,name:`Home`,item:`https://yottadigital.ai`},{"@type":`ListItem`,position:2,name:`Case Studies`,item:`https://yottadigital.ai/case-studies`},{"@type":`ListItem`,position:3,name:`GoBoat`,item:`https://yottadigital.ai/case-studies/go-boat`}]})}]}),component:H(()=>$(()=>import(`./go-boat-BdxFZ9X8.js`),__vite__mapDeps([49,1,4,7,45,2,3])),`component`)}),jj=V(`/case-studies/instant-scripts`)({head:()=>({meta:[{title:`InstantScripts Case Study | Yotta AI`},{name:`description`,content:`How Yotta AI helped InstantScripts grow with performance marketing, AI search visibility and data-driven optimisation.`},{property:`og:title`,content:`InstantScripts Case Study | Yotta AI`},{property:`og:description`,content:`How Yotta AI helped InstantScripts grow with performance marketing, AI search visibility and data-driven optimisation.`},{property:`og:url`,content:`https://yottadigital.ai/case-studies/instant-scripts`},{name:`twitter:title`,content:`InstantScripts Case Study | Yotta AI`},{name:`twitter:description`,content:`How Yotta AI helped InstantScripts grow with performance marketing, AI search visibility and data-driven optimisation.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/case-studies/instant-scripts`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`BreadcrumbList`,itemListElement:[{"@type":`ListItem`,position:1,name:`Home`,item:`https://yottadigital.ai`},{"@type":`ListItem`,position:2,name:`Case Studies`,item:`https://yottadigital.ai/case-studies`},{"@type":`ListItem`,position:3,name:`InstantScripts`,item:`https://yottadigital.ai/case-studies/instant-scripts`}]})}]}),component:H(()=>$(()=>import(`./instant-scripts-CrVk_XmQ.js`),__vite__mapDeps([50,1,4,7,45,2,3])),`component`)}),Mj=V(`/case-studies/instant-windscreens`)({head:()=>({meta:[{title:`Instant Windscreens Case Study | Yotta AI`},{name:`description`,content:`How Yotta AI helped Instant Windscreens grow with performance marketing, AI search visibility and data-driven optimisation.`},{property:`og:title`,content:`Instant Windscreens Case Study | Yotta AI`},{property:`og:description`,content:`How Yotta AI helped Instant Windscreens grow with performance marketing, AI search visibility and data-driven optimisation.`},{property:`og:url`,content:`https://yottadigital.ai/case-studies/instant-windscreens`},{name:`twitter:title`,content:`Instant Windscreens Case Study | Yotta AI`},{name:`twitter:description`,content:`How Yotta AI helped Instant Windscreens grow with performance marketing, AI search visibility and data-driven optimisation.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/case-studies/instant-windscreens`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`BreadcrumbList`,itemListElement:[{"@type":`ListItem`,position:1,name:`Home`,item:`https://yottadigital.ai`},{"@type":`ListItem`,position:2,name:`Case Studies`,item:`https://yottadigital.ai/case-studies`},{"@type":`ListItem`,position:3,name:`Instant Windscreens`,item:`https://yottadigital.ai/case-studies/instant-windscreens`}]})}]}),component:H(()=>$(()=>import(`./instant-windscreens-G281WsMF.js`),__vite__mapDeps([51,1,4,7,45,2,3])),`component`)}),Nj=V(`/case-studies/natloans`)({head:()=>({meta:[{title:`Natloans Case Study | Yotta AI`},{name:`description`,content:`How Yotta AI helped Natloans grow with performance marketing, AI search visibility and data-driven optimisation.`},{property:`og:title`,content:`Natloans Case Study | Yotta AI`},{property:`og:description`,content:`How Yotta AI helped Natloans grow with performance marketing, AI search visibility and data-driven optimisation.`},{property:`og:url`,content:`https://yottadigital.ai/case-studies/natloans`},{name:`twitter:title`,content:`Natloans Case Study | Yotta AI`},{name:`twitter:description`,content:`How Yotta AI helped Natloans grow with performance marketing, AI search visibility and data-driven optimisation.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/case-studies/natloans`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`BreadcrumbList`,itemListElement:[{"@type":`ListItem`,position:1,name:`Home`,item:`https://yottadigital.ai`},{"@type":`ListItem`,position:2,name:`Case Studies`,item:`https://yottadigital.ai/case-studies`},{"@type":`ListItem`,position:3,name:`Natloans`,item:`https://yottadigital.ai/case-studies/natloans`}]})}]}),component:H(()=>$(()=>import(`./natloans-DGo4Cr1T.js`),__vite__mapDeps([52,1,4,7,45,2,3])),`component`)}),Pj=V(`/case-studies/pay-com-au`)({head:()=>({meta:[{title:`Pay.com.au Case Study | Yotta AI`},{name:`description`,content:`How Yotta AI helped Pay.com.au grow with performance marketing, AI search visibility and data-driven optimisation.`},{property:`og:title`,content:`Pay.com.au Case Study | Yotta AI`},{property:`og:description`,content:`How Yotta AI helped Pay.com.au grow with performance marketing, AI search visibility and data-driven optimisation.`},{property:`og:url`,content:`https://yottadigital.ai/case-studies/pay-com-au`},{name:`twitter:title`,content:`Pay.com.au Case Study | Yotta AI`},{name:`twitter:description`,content:`How Yotta AI helped Pay.com.au grow with performance marketing, AI search visibility and data-driven optimisation.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/case-studies/pay-com-au`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`BreadcrumbList`,itemListElement:[{"@type":`ListItem`,position:1,name:`Home`,item:`https://yottadigital.ai`},{"@type":`ListItem`,position:2,name:`Case Studies`,item:`https://yottadigital.ai/case-studies`},{"@type":`ListItem`,position:3,name:`Pay.com.au`,item:`https://yottadigital.ai/case-studies/pay-com-au`}]})}]}),component:H(()=>$(()=>import(`./pay-com-au-BUDbMH9R.js`),__vite__mapDeps([53,1,4,7,45,2,3])),`component`)}),Fj=V(`/case-studies/point-hacks`)({head:()=>({meta:[{title:`Point Hacks Case Study | Yotta AI`},{name:`description`,content:`How Yotta AI helped Point Hacks grow with performance marketing, AI search visibility and data-driven optimisation.`},{property:`og:title`,content:`Point Hacks Case Study | Yotta AI`},{property:`og:description`,content:`How Yotta AI helped Point Hacks grow with performance marketing, AI search visibility and data-driven optimisation.`},{property:`og:url`,content:`https://yottadigital.ai/case-studies/point-hacks`},{name:`twitter:title`,content:`Point Hacks Case Study | Yotta AI`},{name:`twitter:description`,content:`How Yotta AI helped Point Hacks grow with performance marketing, AI search visibility and data-driven optimisation.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/case-studies/point-hacks`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`BreadcrumbList`,itemListElement:[{"@type":`ListItem`,position:1,name:`Home`,item:`https://yottadigital.ai`},{"@type":`ListItem`,position:2,name:`Case Studies`,item:`https://yottadigital.ai/case-studies`},{"@type":`ListItem`,position:3,name:`Point Hacks`,item:`https://yottadigital.ai/case-studies/point-hacks`}]})}]}),component:H(()=>$(()=>import(`./point-hacks-e4mgBpDo.js`),__vite__mapDeps([54,1,4,7,45,2,3])),`component`)}),Ij=V(`/case-studies/return-to-work-sa`)({head:()=>({meta:[{title:`ReturnToWorkSA Case Study | Yotta AI`},{name:`description`,content:`How Yotta AI helped ReturnToWorkSA grow with performance marketing, AI search visibility and data-driven optimisation.`},{property:`og:title`,content:`ReturnToWorkSA Case Study | Yotta AI`},{property:`og:description`,content:`How Yotta AI helped ReturnToWorkSA grow with performance marketing, AI search visibility and data-driven optimisation.`},{property:`og:url`,content:`https://yottadigital.ai/case-studies/return-to-work-sa`},{name:`twitter:title`,content:`ReturnToWorkSA Case Study | Yotta AI`},{name:`twitter:description`,content:`How Yotta AI helped ReturnToWorkSA grow with performance marketing, AI search visibility and data-driven optimisation.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/case-studies/return-to-work-sa`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`BreadcrumbList`,itemListElement:[{"@type":`ListItem`,position:1,name:`Home`,item:`https://yottadigital.ai`},{"@type":`ListItem`,position:2,name:`Case Studies`,item:`https://yottadigital.ai/case-studies`},{"@type":`ListItem`,position:3,name:`ReturnToWorkSA`,item:`https://yottadigital.ai/case-studies/return-to-work-sa`}]})}]}),component:H(()=>$(()=>import(`./return-to-work-sa-B5pZhxyv.js`),__vite__mapDeps([55,1,4,7,45,2,3])),`component`)}),Lj=V(`/case-studies/smile-solutions`)({head:()=>({meta:[{title:`Smile Solutions Case Study | Yotta AI`},{name:`description`,content:`How Yotta AI helped Smile Solutions grow with performance marketing, AI search visibility and data-driven optimisation.`},{property:`og:title`,content:`Smile Solutions Case Study | Yotta AI`},{property:`og:description`,content:`How Yotta AI helped Smile Solutions grow with performance marketing, AI search visibility and data-driven optimisation.`},{property:`og:url`,content:`https://yottadigital.ai/case-studies/smile-solutions`},{name:`twitter:title`,content:`Smile Solutions Case Study | Yotta AI`},{name:`twitter:description`,content:`How Yotta AI helped Smile Solutions grow with performance marketing, AI search visibility and data-driven optimisation.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/case-studies/smile-solutions`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`BreadcrumbList`,itemListElement:[{"@type":`ListItem`,position:1,name:`Home`,item:`https://yottadigital.ai`},{"@type":`ListItem`,position:2,name:`Case Studies`,item:`https://yottadigital.ai/case-studies`}
60,{"@type":`ListItem`,position:3,name:`Smile Solutions`,item:`https://yottadigital.ai/case-studies/smile-solutions`}]})}]}),component:H(()=>$(()=>import(`./smile-solutions-LdEH-amZ.js`),__vite__mapDeps([56,1,4,7,45,2,3])),`component`)}),Rj=V(`/services/ai-development`)({head:()=>({meta:[{title:`AI Development Services | Voice Agents & Custom LLMs | Yotta AI`},{name:`description`,content:`Custom AI development built in-house in Australia: voice agents, data extraction pipelines and bespoke LLM systems with measurable ROI.`},{property:`og:title`,content:`AI Development Services | Voice Agents & Custom LLMs | Yotta AI`},{property:`og:description`,content:`Custom AI development built in-house in Australia: voice agents, data extraction pipelines and bespoke LLM systems with measurable ROI.`},{property:`og:url`,content:`https://yottadigital.ai/services/ai-development`},{name:`twitter:title`,content:`AI Development Services | Voice Agents & Custom LLMs | Yotta AI`},{name:`twitter:description`,content:`Custom AI development built in-house in Australia: voice agents, data extraction pipelines and bespoke LLM systems with measurable ROI.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/services/ai-development`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`Service`,name:`AI Development Services`,description:`Custom AI development built in-house in Australia: voice agents, data extraction pipelines and bespoke LLM systems with measurable ROI.`,url:`https://yottadigital.ai/services/ai-development`,serviceType:`AI Development Services`,areaServed:{"@type":`Country`,name:`Australia`},provider:{"@type":`Organization`,name:`Yotta AI`,url:`https://yottadigital.ai`}})}]}),component:H(()=>$(()=>import(`./ai-development-Ce3zm0Lr.js`),__vite__mapDeps([57,1,2,3,58,4,7,9,10,11])),`component`)}),zj=V(`/services/ai-search`)({head:()=>({meta:[{title:`AI Search Services | Yotta AI`},{name:`description`,content:`Our AI search service makes your brand discoverable, recommendable and purchasable inside the AI assistants your customers already use.`},{property:`og:title`,content:`AI Search Services | Yotta AI`},{property:`og:description`,content:`Our AI search service makes your brand discoverable, recommendable and purchasable inside the AI assistants your customers already use.`},{property:`og:url`,content:`https://yottadigital.ai/services/ai-search`},{name:`twitter:title`,content:`AI Search Services | Yotta AI`},{name:`twitter:description`,content:`Our AI search service makes your brand discoverable, recommendable and purchasable inside the AI assistants your customers already use.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/services/ai-search`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`Service`,name:`AI Search Services`,description:`Our AI search service makes your brand discoverable, recommendable and purchasable inside the AI assistants your customers already use.`,url:`https://yottadigital.ai/services/ai-search`,serviceType:`AI Search Services`,areaServed:{"@type":`Country`,name:`Australia`},provider:{"@type":`Organization`,name:`Yotta AI`,url:`https://yottadigital.ai`}})}]}),component:H(()=>$(()=>import(`./ai-search-GsfvpB7B.js`),__vite__mapDeps([59,23,1,2,3,24,25,26,27,4,6,7,8])),`component`)}),Bj=V(`/services/seo`)({head:()=>({meta:[{title:`SEO & Generative Engine Optimisation | Yotta AI`},{name:`description`,content:`Technical SEO and generative engine optimisation that wins rankings in Google and citations inside AI assistants.`},{property:`og:title`,content:`SEO & Generative Engine Optimisation | Yotta AI`},{property:`og:description`,content:`Technical SEO and generative engine optimisation that wins rankings in Google and citations inside AI assistants.`},{property:`og:url`,content:`https://yottadigital.ai/services/seo`},{name:`twitter:title`,content:`SEO & Generative Engine Optimisation | Yotta AI`},{name:`twitter:description`,content:`Technical SEO and generative engine optimisation that wins rankings in Google and citations inside AI assistants.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/services/seo`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`Service`,name:`SEO & Generative Engine Optimisation`,description:`Technical SEO and generative engine optimisation that wins rankings in Google and citations inside AI assistants.`,url:`https://yottadigital.ai/services/seo`,serviceType:`SEO & Generative Engine Optimisation`,areaServed:{"@type":`Country`,name:`Australia`},provider:{"@type":`Organization`,name:`Yotta AI`,url:`https://yottadigital.ai`}})}]}),component:H(()=>$(()=>import(`./seo-BMlgHpLw.js`),__vite__mapDeps([60,1,2,3,7])),`component`)}),Vj=V(`/services/web-development`)({head:()=>({meta:[{title:`Web Development for the AI Era | Yotta AI`},{name:`description`,content:`Websites engineered for AI: fast, semantically structured, schema-rich and built so AI assistants can read and recommend you.`},{property:`og:title`,content:`Web Development for the AI Era | Yotta AI`},{property:`og:description`,content:`Websites engineered for AI: fast, semantically structured, schema-rich and built so AI assistants can read and recommend you.`},{property:`og:url`,content:`https://yottadigital.ai/services/web-development`},{name:`twitter:title`,content:`Web Development for the AI Era | Yotta AI`},{name:`twitter:description`,content:`Websites engineered for AI: fast, semantically structured, schema-rich and built so AI assistants can read and recommend you.`}],links:[{rel:`canonical`,href:`https://yottadigital.ai/services/web-development`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`Service`,name:`Web Development for the AI Era`,description:`Websites engineered for AI: fast, semantically structured, schema-rich and built so AI assistants can read and recommend you.`,url:`https://yottadigital.ai/services/web-development`,serviceType:`Web Development for the AI Era`,areaServed:{"@type":`Country`,name:`Australia`},provider:{"@type":`Organization`,name:`Yotta AI`,url:`https://yottadigital.ai`}})}]}),component:H(()=>$(()=>import(`./web-development-Bjeu1Zar.js`),__vite__mapDeps([61,1,2,3,24,27,58,4,7,9,10,11])),`component`)}),Hj=aj.update({id:`/`,path:`/`,getParentRoute:()=>Q}),Uj=oj.update({id:`/about`,path:`/about`,getParentRoute:()=>Q}),Wj=sj.update({id:`/admin`,path:`/admin`,getParentRoute:()=>Q}),Gj=cj.update({id:`/ai-radar`,path:`/ai-radar`,getParentRoute:()=>Q}),Kj=lj.update({id:`/ai-radar-landing`,path:`/ai-radar-landing`,getParentRoute:()=>Q}),qj=uj.update({id:`/ai-search-audit`,path:`/ai-search-audit`,getParentRoute:()=>Q}),Jj=dj.update({id:`/ai-search-optimisation`,path:`/ai-search-optimisation`,getParentRoute:()=>Q}),Yj=fj.update({id:`/ai-visibility-baseline`,path:`/ai-visibility-baseline`,getParentRoute:()=>Q}),Xj=pj.update({id:`/auth`,path:`/auth`,getParentRoute:()=>Q}),Zj=mj.update({id:`/booking`,path:`/booking`,getParentRoute:()=>Q}),Qj=hj.update({id:`/booking_confirmation`,path:`/booking_confirmation`,getParentRoute:()=>Q}),$j=gj.update({id:`/cdn`,path:`/cdn`,getParentRoute:()=>Q}),eM=_j.update({id:`/contact`,path:`/contact`,getParentRoute:()=>Q}
60),tM=vj.update({id:`/email-preview`,path:`/email-preview`,getParentRoute:()=>Q}),nM=yj.update({id:`/google-ads-management`,path:`/google-ads-management`,getParentRoute:()=>Q}),rM=bj.update({id:`/landingpage`,path:`/landingpage`,getParentRoute:()=>Q}),iM=xj.update({id:`/lp`,path:`/lp`,getParentRoute:()=>Q}),aM=Sj.update({id:`/privacy`,path:`/privacy`,getParentRoute:()=>Q}),oM=Cj.update({id:`/terms`,path:`/terms`,getParentRoute:()=>Q}),sM=wj.update({id:`/thank-you`,path:`/thank-you`,getParentRoute:()=>Q}),cM=Tj.update({id:`/case-studies/`,path:`/case-studies/`,getParentRoute:()=>Q}),lM={IndexRoute:Hj,AboutRoute:Uj,AdminRoute:Wj,AiRadarRoute:Gj,AiRadarLandingRoute:Kj,AiSearchAuditRoute:qj,AiSearchOptimisationRoute:Jj,AiVisibilityBaselineRoute:Yj,AuthRoute:Xj,BookingRoute:Zj,Booking_confirmationRoute:Qj,CdnRoute:$j,ContactRoute:eM,EmailPreviewRoute:tM,GoogleAdsManagementRoute:nM,LandingpageRoute:rM,LpRoute:iM,PrivacyRoute:aM,TermsRoute:oM,ThankYouRoute:sM,CaseStudiesArchistarRoute:Ej.update({id:`/case-studies/archistar`,path:`/case-studies/archistar`,getParentRoute:()=>Q}),CaseStudiesBeFitFoodsRoute:Dj.update({id:`/case-studies/be-fit-foods`,path:`/case-studies/be-fit-foods`,getParentRoute:()=>Q}),CaseStudiesDccCoffeeRoute:Oj.update({id:`/case-studies/dcc-coffee`,path:`/case-studies/dcc-coffee`,getParentRoute:()=>Q}),CaseStudiesDrummondGolfRoute:kj.update({id:`/case-studies/drummond-golf`,path:`/case-studies/drummond-golf`,getParentRoute:()=>Q}),CaseStudiesGoBoatRoute:Aj.update({id:`/case-studies/go-boat`,path:`/case-studies/go-boat`,getParentRoute:()=>Q}),CaseStudiesInstantScriptsRoute:jj.update({id:`/case-studies/instant-scripts`,path:`/case-studies/instant-scripts`,getParentRoute:()=>Q}),CaseStudiesInstantWindscreensRoute:Mj.update({id:`/case-studies/instant-windscreens`,path:`/case-studies/instant-windscreens`,getParentRoute:()=>Q}),CaseStudiesNatloansRoute:Nj.update({id:`/case-studies/natloans`,path:`/case-studies/natloans`,getParentRoute:()=>Q}),CaseStudiesPayComAuRoute:Pj.update({id:`/case-studies/pay-com-au`,path:`/case-studies/pay-com-au`,getParentRoute:()=>Q}),CaseStudiesPointHacksRoute:Fj.update({id:`/case-studies/point-hacks`,path:`/case-studies/point-hacks`,getParentRoute:()=>Q}),CaseStudiesReturnToWorkSaRoute:Ij.update({id:`/case-studies/return-to-work-sa`,path:`/case-studies/return-to-work-sa`,getParentRoute:()=>Q}),CaseStudiesSmileSolutionsRoute:Lj.update({id:`/case-studies/smile-solutions`,path:`/case-studies/smile-solutions`,getParentRoute:()=>Q}),ServicesAiDevelopmentRoute:Rj.update({id:`/services/ai-development`,path:`/services/ai-development`,getParentRoute:()=>Q}),ServicesAiSearchRoute:zj.update({id:`/services/ai-search`,path:`/services/ai-search`,getParentRoute:()=>Q}),ServicesSeoRoute:Bj.update({id:`/services/seo`,path:`/services/seo`,getParentRoute:()=>Q}),ServicesWebDevelopmentRoute:Vj.update({id:`/services/web-development`,path:`/services/web-development`,getParentRoute:()=>Q}),CaseStudiesIndexRoute:cM},uM=Q._addFileChildren(lM),dM=()=>ic({routeTree:uM,context:{queryClient:new yl},scrollRestoration:!0,defaultPreloadStaleTime:0});async function fM(){let e=await dM(),t;if(bc){let n=await bc.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(rs),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:``,serializationAdapters:t}),e.stores.matchesId.get().length||await os(e),e}var pM=fM;async function mM(){let e=await pM();return window.$_TSR?.h(),e}var hM;function gM(){return hM||=mM(),(0,B.jsx)(cs,{promise:hM,children:e=>(0,B.jsx)(sc,{router:e})})}var _M=Ke();(0,z.startTransition)(()=>{(0,_M.hydrateRoot)(document,(0,B.jsx)(z.StrictMode,{children:(0,B.jsx)(gM,{})}))});export{yA as a,JT as c,od as d,ad as f,wl as h,PA as i,QC as l,nd as m,WA as n,lA as o,rd as p,UA as r,xO as s,GA as t,Id as u};
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.