@t4h.framework/vite-panel-plugin 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +193 -0
- package/dist/client/assets/index-C8OZoaNO.js +44 -0
- package/dist/client/index.html +51 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/node.d.ts +30 -0
- package/dist/node.d.ts.map +1 -0
- package/dist/node.js +76 -0
- package/dist/node.js.map +1 -0
- package/dist/panel-api.d.ts +134 -0
- package/dist/panel-api.d.ts.map +1 -0
- package/dist/panel-api.js +2 -0
- package/dist/panel-api.js.map +1 -0
- package/dist/panel-config.d.ts +71 -0
- package/dist/panel-config.d.ts.map +1 -0
- package/dist/panel-config.js +60 -0
- package/dist/panel-config.js.map +1 -0
- package/dist/vite-panel-plugin.d.ts +7 -0
- package/dist/vite-panel-plugin.d.ts.map +1 -0
- package/dist/vite-panel-plugin.js +12 -0
- package/dist/vite-panel-plugin.js.map +1 -0
- package/package.json +98 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,o)=>(o=n==null?{}:e(i(n)),l(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e);(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var f=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ee=/\/+/g;function A(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function te(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ne(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ne(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+A(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(ee,`$&/`)+`/`),ne(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ee,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+A(a,u),c+=ne(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+A(a,u++),c+=ne(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ne(te(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function re(e,t,n){if(e==null)return e;var r=[],i=0;return ne(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ie(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var j=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)},M={map:re,forEach:function(e,t,n){re(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return re(e,function(){t++}),t},toArray:function(e){return re(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=M,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ie}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,j)}catch(e){j(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.4`})),p=s(((e,t)=>{t.exports=f()})),m=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&&A(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&&A(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}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 A(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,A(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}}}})),h=s(((e,t)=>{t.exports=m()})),g=s((e=>{var t=p();function n(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 r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.4`})),_=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=g()})),v=s((e=>{var t=h(),n=p(),r=_();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(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 s(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 c(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 l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(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 s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.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 d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,m=Symbol.for(`react.element`),g=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),k=Symbol.for(`react.activity`),ee=Symbol.for(`react.memo_cache_sentinel`),A=Symbol.iterator;function te(e){return typeof e!=`object`||!e?null:(e=A&&e[A]||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 y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?re(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return re(e(t))}catch{}}return null}var ie=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,ae={pending:!1,data:null,method:null,action:null},oe=[],se=-1;function N(e){return{current:e}}function ce(e){0>se||(e.current=oe[se],oe[se]=null,se--)}function le(e,t){se++,oe[se]=e.current,e.current=t}var ue=N(null),de=N(null),fe=N(null),pe=N(null);function me(e,t){switch(le(fe,t),le(de,e),le(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Xd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Xd(t),e=Zd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ce(ue),le(ue,e)}function he(){ce(ue),ce(de),ce(fe)}function ge(e){e.memoizedState!==null&&le(pe,e);var t=ue.current,n=Zd(t,e.type);t!==n&&(le(de,e),le(ue,n))}function _e(e){de.current===e&&(ce(ue),ce(de)),pe.current===e&&(ce(pe),sp._currentValue=ae)}var P,ve;function F(e){if(P===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);P=t&&t[1]||``,ve=-1<e.stack.indexOf(`
|
|
2
|
+
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
3
|
+
`+P+e+ve}var ye=!1;function I(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(`
|
|
4
|
+
`),l=s.split(`
|
|
5
|
+
`);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=`
|
|
6
|
+
`+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:``)?F(n):``}function be(e,t){switch(e.tag){case 26:case 27:case 5:return F(e.type);case 16:return F(`Lazy`);case 13:return e.child!==t&&t!==null?F(`Suspense Fallback`):F(`Suspense`);case 19:return F(`SuspenseList`);case 0:case 15:return I(e.type,!1);case 11:return I(e.type.render,!1);case 1:return I(e.type,!0);case 31:return F(`Activity`);default:return``}}function xe(e){try{var t=``,n=null;do t+=be(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
7
|
+
Error generating stack: `+e.message+`
|
|
8
|
+
`+e.stack}}var L=Object.prototype.hasOwnProperty,Se=t.unstable_scheduleCallback,Ce=t.unstable_cancelCallback,we=t.unstable_shouldYield,Te=t.unstable_requestPaint,R=t.unstable_now,Ee=t.unstable_getCurrentPriorityLevel,De=t.unstable_ImmediatePriority,Oe=t.unstable_UserBlockingPriority,z=t.unstable_NormalPriority,ke=t.unstable_LowPriority,Ae=t.unstable_IdlePriority,je=t.log,Me=t.unstable_setDisableYieldValue,Ne=null,Pe=null;function Fe(e){if(typeof je==`function`&&Me(e),Pe&&typeof Pe.setStrictMode==`function`)try{Pe.setStrictMode(Ne,e)}catch{}}var Ie=Math.clz32?Math.clz32:ze,Le=Math.log,Re=Math.LN2;function ze(e){return e>>>=0,e===0?32:31-(Le(e)/Re|0)|0}var Be=256,Ve=262144,He=4194304;function Ue(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 We(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=Ue(n))):i=Ue(o):i=Ue(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ue(n))):i=Ue(o)):i=Ue(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 Ge(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ke(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 B(){var e=He;return He<<=1,!(He&62914560)&&(He=4194304),e}function qe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Je(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ye(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-Ie(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&&Xe(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Xe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ie(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Ze(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ie(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Qe(e,t){var n=t&-t;return n=n&42?1:$e(n),(n&(e.suspendedLanes|t))===0?n:0}function $e(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 et(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function tt(){var e=M.p;return e===0?(e=window.event,e===void 0?32:Cp(e.type)):e}function nt(e,t){var n=M.p;try{return M.p=e,t()}finally{M.p=n}}var rt=Math.random().toString(36).slice(2),it=`__reactFiber$`+rt,at=`__reactProps$`+rt,ot=`__reactContainer$`+rt,V=`__reactEvents$`+rt,st=`__reactListeners$`+rt,ct=`__reactHandles$`+rt,lt=`__reactResources$`+rt,ut=`__reactMarker$`+rt;function dt(e){delete e[it],delete e[at],delete e[V],delete e[st],delete e[ct]}function ft(e){var t=e[it];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ot]||n[it]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=bf(e);e!==null;){if(n=e[it])return n;e=bf(e)}return t}e=n,n=e.parentNode}return null}function pt(e){if(e=e[it]||e[ot]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function mt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function ht(e){var t=e[lt];return t||=e[lt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function gt(e){e[ut]=!0}var _t=new Set,vt={};function yt(e,t){bt(e,t),bt(e+`Capture`,t)}function bt(e,t){for(vt[e]=t,e=0;e<t.length;e++)_t.add(t[e])}var xt=RegExp(`^[: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][: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]*$`),St={},Ct={};function wt(e){return L.call(Ct,e)?!0:L.call(St,e)?!1:xt.test(e)?Ct[e]=!0:(St[e]=!0,!1)}function Tt(e,t,n){if(wt(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 Et(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 Dt(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 Ot(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function kt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function At(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 jt(e){if(!e._valueTracker){var t=kt(e)?`checked`:`value`;e._valueTracker=At(e,t,``+e[t])}}function Mt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=kt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function Nt(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 Pt=/[\n"\\]/g;function Ft(e){return e.replace(Pt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function It(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=``+Ot(t)):e.value!==``+Ot(t)&&(e.value=``+Ot(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Rt(e,o,Ot(n)):Rt(e,o,Ot(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=``+Ot(s):e.removeAttribute(`name`)}function Lt(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)){jt(e);return}n=n==null?``:``+Ot(n),t=t==null?n:``+Ot(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),jt(e)}function Rt(e,t,n){t===`number`&&Nt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function zt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Ot(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 Bt(e,t,n){if(t!=null&&(t=``+Ot(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Ot(n)}function Vt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ie(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Ot(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),jt(e)}function Ht(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ut=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 Wt(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||Ut.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Gt(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&&Wt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Wt(e,o,t[o])}function Kt(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 qt=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`]]),Jt=/^[\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 Yt(e){return Jt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Xt(){}var Zt=null;function Qt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $t=null,en=null;function tn(e){var t=pt(e);if(t&&(e=t.stateNode)){var n=e[at]||null;a:switch(e=t.stateNode,t.type){case`input`:if(It(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="`+Ft(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[at]||null;if(!a)throw Error(i(90));It(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&&Mt(r)}break a;case`textarea`:Bt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&zt(e,!!n.multiple,t,!1)}}}var nn=!1;function rn(e,t,n){if(nn)return e(t,n);nn=!0;try{return e(t)}finally{if(nn=!1,($t!==null||en!==null)&&(Du(),$t&&(t=$t,e=en,en=$t=null,tn(t),e)))for(t=0;t<e.length;t++)tn(e[t])}}function an(e,t){var n=e.stateNode;if(n===null)return null;var r=n[at]||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 on=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),sn=!1;if(on)try{var cn={};Object.defineProperty(cn,"passive",{get:function(){sn=!0}}),window.addEventListener(`test`,cn,cn),window.removeEventListener(`test`,cn,cn)}catch{sn=!1}var ln=null,un=null,dn=null;function fn(){if(dn)return dn;var e,t=un,n=t.length,r,i=`value`in ln?ln.value:ln.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 dn=i.slice(e,1<r?1-r:void 0)}function pn(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 mn(){return!0}function hn(){return!1}function gn(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)?mn:hn,this.isPropagationStopped=hn,this}return f(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=mn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=mn)},persist:function(){},isPersistent:mn}),t}var _n={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vn=gn(_n),yn=f({},_n,{view:0,detail:0}),bn=gn(yn),xn,Sn,Cn,wn=f({},yn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fn,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!==Cn&&(Cn&&e.type===`mousemove`?(xn=e.screenX-Cn.screenX,Sn=e.screenY-Cn.screenY):Sn=xn=0,Cn=e),xn)},movementY:function(e){return`movementY`in e?e.movementY:Sn}}),Tn=gn(wn),En=gn(f({},wn,{dataTransfer:0})),Dn=gn(f({},yn,{relatedTarget:0})),On=gn(f({},_n,{animationName:0,elapsedTime:0,pseudoElement:0})),kn=gn(f({},_n,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),An=gn(f({},_n,{data:0})),jn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Mn={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`},Nn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Pn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Nn[e])?!!t[e]:!1}function Fn(){return Pn}var In=gn(f({},yn,{key:function(e){if(e.key){var t=jn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=pn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Mn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fn,charCode:function(e){return e.type===`keypress`?pn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?pn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Ln=gn(f({},wn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=gn(f({},yn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fn})),zn=gn(f({},_n,{propertyName:0,elapsedTime:0,pseudoElement:0})),Bn=gn(f({},wn,{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})),Vn=gn(f({},_n,{newState:0,oldState:0})),Hn=[9,13,27,32],Un=on&&`CompositionEvent`in window,Wn=null;on&&`documentMode`in document&&(Wn=document.documentMode);var Gn=on&&`TextEvent`in window&&!Wn,Kn=on&&(!Un||Wn&&8<Wn&&11>=Wn),qn=` `,Jn=!1;function Yn(e,t){switch(e){case`keyup`:return Hn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Xn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Zn=!1;function Qn(e,t){switch(e){case`compositionend`:return Xn(t);case`keypress`:return t.which===32?(Jn=!0,qn):null;case`textInput`:return e=t.data,e===qn&&Jn?null:e;default:return null}}function $n(e,t){if(Zn)return e===`compositionend`||!Un&&Yn(e,t)?(e=fn(),dn=un=ln=null,Zn=!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 Kn&&t.locale!==`ko`?null:t.data;default:return null}}var er={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 tr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!er[e.type]:t===`textarea`}function nr(e,t,n,r){$t?en?en.push(r):en=[r]:$t=r,t=W(t,`onChange`),0<t.length&&(n=new vn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var rr=null,ir=null;function ar(e){Dd(e,0)}function or(e){if(Mt(mt(e)))return e}function sr(e,t){if(e===`change`)return t}var cr=!1;if(on){var lr;if(on){var ur=`oninput`in document;if(!ur){var dr=document.createElement(`div`);dr.setAttribute(`oninput`,`return;`),ur=typeof dr.oninput==`function`}lr=ur}else lr=!1;cr=lr&&(!document.documentMode||9<document.documentMode)}function fr(){rr&&(rr.detachEvent(`onpropertychange`,pr),ir=rr=null)}function pr(e){if(e.propertyName===`value`&&or(ir)){var t=[];nr(t,ir,e,Qt(e)),rn(ar,t)}}function mr(e,t,n){e===`focusin`?(fr(),rr=t,ir=n,rr.attachEvent(`onpropertychange`,pr)):e===`focusout`&&fr()}function hr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return or(ir)}function gr(e,t){if(e===`click`)return or(t)}function _r(e,t){if(e===`input`||e===`change`)return or(t)}function vr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var yr=typeof Object.is==`function`?Object.is:vr;function br(e,t){if(yr(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(!L.call(t,i)||!yr(e[i],t[i]))return!1}return!0}function xr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sr(e,t){var n=xr(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=xr(n)}}function Cr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Nt(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=Nt(e.document)}return t}function Tr(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 Er=on&&`documentMode`in document&&11>=document.documentMode,Dr=null,Or=null,kr=null,Ar=!1;function jr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ar||Dr==null||Dr!==Nt(r)||(r=Dr,`selectionStart`in r&&Tr(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}),kr&&br(kr,r)||(kr=r,r=W(Or,`onSelect`),0<r.length&&(t=new vn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Dr)))}function Mr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Nr={animationend:Mr(`Animation`,`AnimationEnd`),animationiteration:Mr(`Animation`,`AnimationIteration`),animationstart:Mr(`Animation`,`AnimationStart`),transitionrun:Mr(`Transition`,`TransitionRun`),transitionstart:Mr(`Transition`,`TransitionStart`),transitioncancel:Mr(`Transition`,`TransitionCancel`),transitionend:Mr(`Transition`,`TransitionEnd`)},Pr={},Fr={};on&&(Fr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Nr.animationend.animation,delete Nr.animationiteration.animation,delete Nr.animationstart.animation),`TransitionEvent`in window||delete Nr.transitionend.transition);function Ir(e){if(Pr[e])return Pr[e];if(!Nr[e])return e;var t=Nr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Fr)return Pr[e]=t[n];return e}var Lr=Ir(`animationend`),Rr=Ir(`animationiteration`),zr=Ir(`animationstart`),Br=Ir(`transitionrun`),Vr=Ir(`transitionstart`),Hr=Ir(`transitioncancel`),Ur=Ir(`transitionend`),Wr=new Map,Gr=`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(` `);Gr.push(`scrollEnd`);function Kr(e,t){Wr.set(e,t),yt(t,[e])}var qr=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)},Jr=[],Yr=0,Xr=0;function Zr(){for(var e=Yr,t=Xr=Yr=0;t<e;){var n=Jr[t];Jr[t++]=null;var r=Jr[t];Jr[t++]=null;var i=Jr[t];Jr[t++]=null;var a=Jr[t];if(Jr[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&&ti(n,i,a)}}function Qr(e,t,n,r){Jr[Yr++]=e,Jr[Yr++]=t,Jr[Yr++]=n,Jr[Yr++]=r,Xr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function $r(e,t,n,r){return Qr(e,t,n,r),ni(e)}function ei(e,t){return Qr(e,null,null,t),ni(e)}function ti(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-Ie(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ni(e){if(50<vu)throw vu=0,yu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ri={};function ii(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 ai(e,t,n,r){return new ii(e,t,n,r)}function oi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function si(e,t){var n=e.alternate;return n===null?(n=ai(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 ci(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 li(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)oi(e)&&(s=1);else if(typeof e==`string`)s=Qf(e,n,ue.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case k:return e=ai(31,n,t,a),e.elementType=k,e.lanes=o,e;case y:return ui(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=ai(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=ai(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=ai(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case D:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ai(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ui(e,t,n,r){return e=ai(7,e,r,t),e.lanes=n,e}function di(e,t,n){return e=ai(6,e,null,t),e.lanes=n,e}function fi(e){var t=ai(18,null,null,0);return t.stateNode=e,t}function pi(e,t,n){return t=ai(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var mi=new WeakMap;function hi(e,t){if(typeof e==`object`&&e){var n=mi.get(e);return n===void 0?(t={value:e,source:t,stack:xe(t)},mi.set(e,t),t):n}return{value:e,source:t,stack:xe(t)}}var gi=[],_i=0,vi=null,yi=0,bi=[],xi=0,Si=null,Ci=1,wi=``;function Ti(e,t){gi[_i++]=yi,gi[_i++]=vi,vi=e,yi=t}function Ei(e,t,n){bi[xi++]=Ci,bi[xi++]=wi,bi[xi++]=Si,Si=e;var r=Ci;e=wi;var i=32-Ie(r)-1;r&=~(1<<i),n+=1;var a=32-Ie(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ci=1<<32-Ie(t)+i|n<<i|r,wi=a+e}else Ci=1<<a|n<<i|r,wi=e}function Di(e){e.return!==null&&(Ti(e,1),Ei(e,1,0))}function Oi(e){for(;e===vi;)vi=gi[--_i],gi[_i]=null,yi=gi[--_i],gi[_i]=null;for(;e===Si;)Si=bi[--xi],bi[xi]=null,wi=bi[--xi],bi[xi]=null,Ci=bi[--xi],bi[xi]=null}function ki(e,t){bi[xi++]=Ci,bi[xi++]=wi,bi[xi++]=Si,Ci=t.id,wi=t.overflow,Si=e}var Ai=null,ji=null,Mi=!1,Ni=null,Pi=!1,Fi=Error(i(519));function Ii(e){throw Hi(hi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Fi}function Li(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[it]=e,t[at]=r,n){case`dialog`:Od(`cancel`,t),Od(`close`,t);break;case`iframe`:case`object`:case`embed`:Od(`load`,t);break;case`video`:case`audio`:for(n=0;n<Td.length;n++)Od(Td[n],t);break;case`source`:Od(`error`,t);break;case`img`:case`image`:case`link`:Od(`error`,t),Od(`load`,t);break;case`details`:Od(`toggle`,t);break;case`input`:Od(`invalid`,t),Lt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Od(`invalid`,t);break;case`textarea`:Od(`invalid`,t),Vt(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||Bd(t.textContent,n)?(r.popover!=null&&(Od(`beforetoggle`,t),Od(`toggle`,t)),r.onScroll!=null&&Od(`scroll`,t),r.onScrollEnd!=null&&Od(`scrollend`,t),r.onClick!=null&&(t.onclick=Xt),t=!0):t=!1,t||Ii(e,!0)}function Ri(e){for(Ai=e.return;Ai;)switch(Ai.tag){case 5:case 31:case 13:Pi=!1;return;case 27:case 3:Pi=!0;return;default:Ai=Ai.return}}function zi(e){if(e!==Ai)return!1;if(!Mi)return Ri(e),Mi=!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&&ji&&Ii(e),Ri(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ji=yf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ji=yf(e)}else t===27?(t=ji,sf(e.type)?(e=vf,vf=null,ji=e):ji=t):ji=Ai?_f(e.stateNode.nextSibling):null;return!0}function Bi(){ji=Ai=null,Mi=!1}function Vi(){var e=Ni;return e!==null&&(iu===null?iu=e:iu.push.apply(iu,e),Ni=null),e}function Hi(e){Ni===null?Ni=[e]:Ni.push(e)}var Ui=N(null),Wi=null,Gi=null;function Ki(e,t,n){le(Ui,t._currentValue),t._currentValue=n}function qi(e){e._currentValue=Ui.current,ce(Ui)}function Ji(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 Yi(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),Ji(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),Ji(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 Xi(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;yr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===pe.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[sp]:e.push(sp))}a=a.return}e!==null&&Yi(t,e,n,r),t.flags|=262144}function Zi(e){for(e=e.firstContext;e!==null;){if(!yr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Qi(e){Wi=e,Gi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function $i(e){return ta(Wi,e)}function ea(e,t){return Wi===null&&Qi(e),ta(e,t)}function ta(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Gi===null){if(e===null)throw Error(i(308));Gi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Gi=Gi.next=t;return n}var na=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()})}},ra=t.unstable_scheduleCallback,ia=t.unstable_NormalPriority,aa={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function oa(){return{controller:new na,data:new Map,refCount:0}}function sa(e){e.refCount--,e.refCount===0&&ra(ia,function(){e.controller.abort()})}var ca=null,la=0,ua=0,da=null;function fa(e,t){if(ca===null){var n=ca=[];la=0,ua=yd(),da={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return la++,t.then(pa,pa),t}function pa(){if(--la===0&&ca!==null){da!==null&&(da.status=`fulfilled`);var e=ca;ca=null,ua=0,da=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ma(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 ha=j.S;j.S=function(e,t){su=R(),typeof t==`object`&&t&&typeof t.then==`function`&&fa(e,t),ha!==null&&ha(e,t)};var ga=N(null);function _a(){var e=ga.current;return e===null?Hl.pooledCache:e}function va(e,t){t===null?le(ga,ga.current):le(ga,t.pool)}function ya(){var e=_a();return e===null?null:{parent:aa._currentValue,pool:e}}var ba=Error(i(460)),xa=Error(i(474)),Sa=Error(i(542)),Ca={then:function(){}};function wa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ta(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Xt,Xt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ka(e),e;default:if(typeof t.status==`string`)t.then(Xt,Xt);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,ka(e),e}throw Da=t,ba}}function Ea(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Da=e,ba):e}}var Da=null;function Oa(){if(Da===null)throw Error(i(459));var e=Da;return Da=null,e}function ka(e){if(e===ba||e===Sa)throw Error(i(483))}var Aa=null,ja=0;function Ma(e){var t=ja;return ja+=1,Aa===null&&(Aa=[]),Ta(Aa,e,t)}function Na(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function H(e,t){throw t.$$typeof===m?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Pa(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=si(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=di(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===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&Ea(i)===t.type)?(t=a(t,n.props),Na(t,n),t.return=e,t):(t=li(n.type,n.key,n.props,null,e.mode,r),Na(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=pi(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=ui(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=di(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case g:return n=li(t.type,t.key,t.props,null,e.mode,n),Na(n,t),n.return=e,n;case v:return t=pi(t,e.mode,n),t.return=e,t;case O:return t=Ea(t),f(e,t,n)}if(ie(t)||te(t))return t=ui(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ma(t),n);if(t.$$typeof===C)return f(e,ea(e,t),n);H(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 v:return n.key===i?u(e,t,n,r):null;case O:return n=Ea(n),p(e,t,n,r)}if(ie(n)||te(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ma(n),r);if(n.$$typeof===C)return p(e,t,ea(e,n),r);H(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 v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=Ea(r),m(e,t,n,r,i)}if(ie(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,Ma(r),i);if(r.$$typeof===C)return m(e,t,n,ea(t,r),i);H(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),Mi&&Ti(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 Mi&&Ti(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)}),Mi&&Ti(i,h),l}function _(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),Mi&&Ti(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 Mi&&Ti(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)}),Mi&&Ti(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&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===y){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===O&&Ea(l)===r.type){n(e,r.sibling),c=a(r,o.props),Na(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===y?(c=ui(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=li(o.type,o.key,o.props,null,e.mode,c),Na(c,o),c.return=e,e=c)}return s(e);case v: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=pi(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=Ea(o),b(e,r,o,c)}if(ie(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),_(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Ma(o),c);if(o.$$typeof===C)return b(e,r,ea(e,o),c);H(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=di(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{ja=0;var i=b(e,t,n,r);return Aa=null,i}catch(t){if(t===ba||t===Sa)throw t;var a=ai(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Fa=Pa(!0),Ia=Pa(!1),La=!1;function Ra(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function za(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 Ba(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Va(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Vl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ni(e),ti(e,null,n),t}return Qr(e,r,t,n),ni(e)}function Ha(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,Ze(e,n)}}function Ua(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 Wa=!1;function Ga(){if(Wa){var e=da;if(e!==null)throw e}}function Ka(e,t,n,r){Wa=!1;var i=e.updateQueue;La=!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 p=s.lane&-536870913,m=p!==s.lane;if(m?(Wl&p)===p:(r&p)===p){p!==0&&p===ua&&(Wa=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:La=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Ql|=o,e.lanes=o,e.memoizedState=d}}function qa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ja(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)qa(n[e],t)}var Ya=N(null),Xa=N(0);function Za(e,t){e=Xl,le(Xa,e),le(Ya,t),Xl=e|t.baseLanes}function Qa(){le(Xa,Xl),le(Ya,Ya.current)}function $a(){Xl=Xa.current,ce(Ya),ce(Xa)}var eo=N(null),to=null;function no(e){var t=e.alternate;le(so,so.current&1),le(eo,e),to===null&&(t===null||Ya.current!==null||t.memoizedState!==null)&&(to=e)}function ro(e){le(so,so.current),le(eo,e),to===null&&(to=e)}function io(e){e.tag===22?(le(so,so.current),le(eo,e),to===null&&(to=e)):ao(e)}function ao(){le(so,so.current),le(eo,eo.current)}function oo(e){ce(eo),to===e&&(to=null),ce(so)}var so=N(0);function co(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||mf(n)||hf(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 lo=0,U=null,uo=null,fo=null,po=!1,mo=!1,ho=!1,go=0,_o=0,vo=null,yo=0;function bo(){throw Error(i(321))}function xo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!yr(e[n],t[n]))return!1;return!0}function So(e,t,n,r,i,a){return lo=a,U=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?zs:Bs,ho=!1,a=n(r,i),ho=!1,mo&&(a=wo(t,n,r,i)),Co(e),a}function Co(e){j.H=Rs;var t=uo!==null&&uo.next!==null;if(lo=0,fo=uo=U=null,po=!1,_o=0,vo=null,t)throw Error(i(300));e===null||rc||(e=e.dependencies,e!==null&&Zi(e)&&(rc=!0))}function wo(e,t,n,r){U=e;var a=0;do{if(mo&&(vo=null),_o=0,mo=!1,25<=a)throw Error(i(301));if(a+=1,fo=uo=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=Vs,o=t(n,r)}while(mo);return o}function To(){var e=j.H,t=e.useState()[0];return t=typeof t.then==`function`?Mo(t):t,e=e.useState()[0],(uo===null?null:uo.memoizedState)!==e&&(U.flags|=1024),t}function Eo(){var e=go!==0;return go=0,e}function Do(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Oo(e){if(po){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}po=!1}lo=0,fo=uo=U=null,mo=!1,_o=go=0,vo=null}function ko(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fo===null?U.memoizedState=fo=e:fo=fo.next=e,fo}function Ao(){if(uo===null){var e=U.alternate;e=e===null?null:e.memoizedState}else e=uo.next;var t=fo===null?U.memoizedState:fo.next;if(t!==null)fo=t,uo=e;else{if(e===null)throw U.alternate===null?Error(i(467)):Error(i(310));uo=e,e={memoizedState:uo.memoizedState,baseState:uo.baseState,baseQueue:uo.baseQueue,queue:uo.queue,next:null},fo===null?U.memoizedState=fo=e:fo=fo.next=e}return fo}function jo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Mo(e){var t=_o;return _o+=1,vo===null&&(vo=[]),e=Ta(vo,e,t),t=U,(fo===null?t.memoizedState:fo.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?zs:Bs),e}function No(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Mo(e);if(e.$$typeof===C)return $i(e)}throw Error(i(438,String(e)))}function Po(e){var t=null,n=U.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=U.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=jo(),U.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]=ee;return t.index++,n}function Fo(e,t){return typeof t==`function`?t(e):t}function Io(e){return Lo(Ao(),uo,e)}function Lo(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?(lo&f)===f:(Wl&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===ua&&(d=!0);else if((lo&p)===p){u=u.next,p===ua&&(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,U.lanes|=p,Ql|=p;f=u.action,ho&&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,U.lanes|=f,Ql|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!yr(o,e.memoizedState)&&(rc=!0,d&&(n=da,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 Ro(e){var t=Ao(),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);yr(o,t.memoizedState)||(rc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function zo(e,t,n){var r=U,a=Ao(),o=Mi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!yr((uo||a).memoizedState,n);if(s&&(a.memoizedState=n,rc=!0),a=a.queue,us(Ho.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||fo!==null&&fo.memoizedState.tag&1){if(r.flags|=2048,as(9,{destroy:void 0},Vo.bind(null,r,a,n,t),null),Hl===null)throw Error(i(349));o||lo&127||Bo(r,t,n)}return n}function Bo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=U.updateQueue,t===null?(t=jo(),U.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Vo(e,t,n,r){t.value=n,t.getSnapshot=r,Uo(t)&&Wo(e)}function Ho(e,t,n){return n(function(){Uo(t)&&Wo(e)})}function Uo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!yr(e,n)}catch{return!0}}function Wo(e){var t=ei(e,2);t!==null&&Su(t,e,2)}function Go(e){var t=ko();if(typeof e==`function`){var n=e;if(e=n(),ho){Fe(!0);try{n()}finally{Fe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fo,lastRenderedState:e},t}function Ko(e,t,n,r){return e.baseState=n,Lo(e,uo,typeof r==`function`?r:Fo)}function qo(e,t,n,r,a){if(Fs(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,Jo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Jo(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),Yo(e,t,s)}catch(n){Zo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),j.T=a}}else try{a=n(i,r),Yo(e,t,a)}catch(n){Zo(e,t,n)}}function Yo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Xo(e,t,n)},function(n){return Zo(e,t,n)}):Xo(e,t,n)}function Xo(e,t,n){t.status=`fulfilled`,t.value=n,Qo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Jo(e,n)))}function Zo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Qo(t),t=t.next;while(t!==r)}e.action=null}function Qo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function $o(e,t){return t}function es(e,t){if(Mi){var n=Hl.formState;if(n!==null){a:{var r=U;if(Mi){if(ji){b:{for(var i=ji,a=Pi;i.nodeType!==8;){if(!a){i=null;break b}if(i=_f(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ji=_f(i.nextSibling),r=i.data===`F!`;break a}}Ii(r)}r=!1}r&&(t=n[0])}}return n=ko(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$o,lastRenderedState:t},n.queue=r,n=Ms.bind(null,U,r),r.dispatch=n,r=Go(!1),a=Ps.bind(null,U,!1,r.queue),r=ko(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=qo.bind(null,U,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ts(e){return ns(Ao(),uo,e)}function ns(e,t,n){if(t=Lo(e,t,$o)[0],e=Io(Fo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Mo(t)}catch(e){throw e===ba?Sa:e}else r=t;t=Ao();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(U.flags|=2048,as(9,{destroy:void 0},rs.bind(null,i,n),null)),[r,a,e]}function rs(e,t){e.action=t}function is(e){var t=Ao(),n=uo;if(n!==null)return ns(t,n,e);Ao(),t=t.memoizedState,n=Ao();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function as(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=U.updateQueue,t===null&&(t=jo(),U.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 os(){return Ao().memoizedState}function ss(e,t,n,r){var i=ko();U.flags|=e,i.memoizedState=as(1|t,{destroy:void 0},n,r===void 0?null:r)}function cs(e,t,n,r){var i=Ao();r=r===void 0?null:r;var a=i.memoizedState.inst;uo!==null&&r!==null&&xo(r,uo.memoizedState.deps)?i.memoizedState=as(t,a,n,r):(U.flags|=e,i.memoizedState=as(1|t,a,n,r))}function ls(e,t){ss(8390656,8,e,t)}function us(e,t){cs(2048,8,e,t)}function ds(e){U.flags|=4;var t=U.updateQueue;if(t===null)t=jo(),U.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function fs(e){var t=Ao().memoizedState;return ds({ref:t,nextImpl:e}),function(){if(Vl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ps(e,t){return cs(4,2,e,t)}function ms(e,t){return cs(4,4,e,t)}function hs(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 gs(e,t,n){n=n==null?null:n.concat([e]),cs(4,4,hs.bind(null,t,e),n)}function _s(){}function vs(e,t){var n=Ao();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&xo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ys(e,t){var n=Ao();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&xo(t,r[1]))return r[0];if(r=e(),ho){Fe(!0);try{e()}finally{Fe(!1)}}return n.memoizedState=[r,t],r}function bs(e,t,n){return n===void 0||lo&1073741824&&!(Wl&261930)?e.memoizedState=t:(e.memoizedState=n,e=xu(),U.lanes|=e,Ql|=e,n)}function xs(e,t,n,r){return yr(n,t)?n:Ya.current===null?!(lo&42)||lo&1073741824&&!(Wl&261930)?(rc=!0,e.memoizedState=n):(e=xu(),U.lanes|=e,Ql|=e,t):(e=bs(e,n,r),yr(e,t)||(rc=!0),e)}function Ss(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,Ps(e,!1,t,n);try{var c=i(),l=j.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ns(e,t,ma(c,r),bu(e)):Ns(e,t,r,bu(e))}catch(n){Ns(e,t,{then:function(){},status:`rejected`,reason:n},bu())}finally{M.p=a,o!==null&&s.types!==null&&(o.types=s.types),j.T=o}}function Cs(){}function ws(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Ts(e).queue;Ss(e,a,t,ae,n===null?Cs:function(){return Es(e),n(r)})}function Ts(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fo,lastRenderedState:ae},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Es(e){var t=Ts(e);t.next===null&&(t=e.alternate.memoizedState),Ns(e,t.next.queue,{},bu())}function Ds(){return $i(sp)}function Os(){return Ao().memoizedState}function ks(){return Ao().memoizedState}function As(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=bu();e=Ba(n);var r=Va(t,e,n);r!==null&&(Su(r,t,n),Ha(r,t,n)),t={cache:oa()},e.payload=t;return}t=t.return}}function js(e,t,n){var r=bu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Fs(e)?Is(t,n):(n=$r(e,t,n,r),n!==null&&(Su(n,e,r),Ls(n,t,r)))}function Ms(e,t,n){Ns(e,t,n,bu())}function Ns(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Fs(e))Is(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,yr(s,o))return Qr(e,t,i,0),Hl===null&&Zr(),!1}catch{}if(n=$r(e,t,i,r),n!==null)return Su(n,e,r),Ls(n,t,r),!0}return!1}function Ps(e,t,n,r){if(r={lane:2,revertLane:yd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Fs(e)){if(t)throw Error(i(479))}else t=$r(e,n,r,2),t!==null&&Su(t,e,2)}function Fs(e){var t=e.alternate;return e===U||t!==null&&t===U}function Is(e,t){mo=po=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ls(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ze(e,n)}}var Rs={readContext:$i,use:No,useCallback:bo,useContext:bo,useEffect:bo,useImperativeHandle:bo,useLayoutEffect:bo,useInsertionEffect:bo,useMemo:bo,useReducer:bo,useRef:bo,useState:bo,useDebugValue:bo,useDeferredValue:bo,useTransition:bo,useSyncExternalStore:bo,useId:bo,useHostTransitionStatus:bo,useFormState:bo,useActionState:bo,useOptimistic:bo,useMemoCache:bo,useCacheRefresh:bo};Rs.useEffectEvent=bo;var zs={readContext:$i,use:No,useCallback:function(e,t){return ko().memoizedState=[e,t===void 0?null:t],e},useContext:$i,useEffect:ls,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ss(4194308,4,hs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ss(4194308,4,e,t)},useInsertionEffect:function(e,t){ss(4,2,e,t)},useMemo:function(e,t){var n=ko();t=t===void 0?null:t;var r=e();if(ho){Fe(!0);try{e()}finally{Fe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ko();if(n!==void 0){var i=n(t);if(ho){Fe(!0);try{n(t)}finally{Fe(!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=js.bind(null,U,e),[r.memoizedState,e]},useRef:function(e){var t=ko();return e={current:e},t.memoizedState=e},useState:function(e){e=Go(e);var t=e.queue,n=Ms.bind(null,U,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:_s,useDeferredValue:function(e,t){return bs(ko(),e,t)},useTransition:function(){var e=Go(!1);return e=Ss.bind(null,U,e.queue,!0,!1),ko().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=U,a=ko();if(Mi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Hl===null)throw Error(i(349));Wl&127||Bo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ls(Ho.bind(null,r,o,e),[e]),r.flags|=2048,as(9,{destroy:void 0},Vo.bind(null,r,o,n,t),null),n},useId:function(){var e=ko(),t=Hl.identifierPrefix;if(Mi){var n=wi,r=Ci;n=(r&~(1<<32-Ie(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=go++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=yo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ds,useFormState:es,useActionState:es,useOptimistic:function(e){var t=ko();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ps.bind(null,U,!0,n),n.dispatch=t,[e,t]},useMemoCache:Po,useCacheRefresh:function(){return ko().memoizedState=As.bind(null,U)},useEffectEvent:function(e){var t=ko(),n={impl:e};return t.memoizedState=n,function(){if(Vl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Bs={readContext:$i,use:No,useCallback:vs,useContext:$i,useEffect:us,useImperativeHandle:gs,useInsertionEffect:ps,useLayoutEffect:ms,useMemo:ys,useReducer:Io,useRef:os,useState:function(){return Io(Fo)},useDebugValue:_s,useDeferredValue:function(e,t){return xs(Ao(),uo.memoizedState,e,t)},useTransition:function(){var e=Io(Fo)[0],t=Ao().memoizedState;return[typeof e==`boolean`?e:Mo(e),t]},useSyncExternalStore:zo,useId:Os,useHostTransitionStatus:Ds,useFormState:ts,useActionState:ts,useOptimistic:function(e,t){return Ko(Ao(),uo,e,t)},useMemoCache:Po,useCacheRefresh:ks};Bs.useEffectEvent=fs;var Vs={readContext:$i,use:No,useCallback:vs,useContext:$i,useEffect:us,useImperativeHandle:gs,useInsertionEffect:ps,useLayoutEffect:ms,useMemo:ys,useReducer:Ro,useRef:os,useState:function(){return Ro(Fo)},useDebugValue:_s,useDeferredValue:function(e,t){var n=Ao();return uo===null?bs(n,e,t):xs(n,uo.memoizedState,e,t)},useTransition:function(){var e=Ro(Fo)[0],t=Ao().memoizedState;return[typeof e==`boolean`?e:Mo(e),t]},useSyncExternalStore:zo,useId:Os,useHostTransitionStatus:Ds,useFormState:is,useActionState:is,useOptimistic:function(e,t){var n=Ao();return uo===null?(n.baseState=e,[e,n.queue.dispatch]):Ko(n,uo,e,t)},useMemoCache:Po,useCacheRefresh:ks};Vs.useEffectEvent=fs;function Hs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Us={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=bu(),i=Ba(r);i.payload=t,n!=null&&(i.callback=n),t=Va(e,i,r),t!==null&&(Su(t,e,r),Ha(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=bu(),i=Ba(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Va(e,i,r),t!==null&&(Su(t,e,r),Ha(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=bu(),r=Ba(n);r.tag=2,t!=null&&(r.callback=t),t=Va(e,r,n),t!==null&&(Su(t,e,n),Ha(t,e,n))}};function Ws(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?!br(n,r)||!br(i,a):!0}function Gs(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&&Us.enqueueReplaceState(t,t.state,null)}function Ks(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=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function qs(e){qr(e)}function Js(e){console.error(e)}function Ys(e){qr(e)}function Xs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Zs(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 Qs(e,t,n){return n=Ba(n),n.tag=3,n.payload={element:null},n.callback=function(){Xs(e,t)},n}function $s(e){return e=Ba(e),e.tag=3,e}function ec(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(){Zs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Zs(t,n,r),typeof i!=`function`&&(uu===null?uu=new Set([this]):uu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function tc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Xi(t,n,a,!0),n=eo.current,n!==null){switch(n.tag){case 31:case 13:return to===null?Pu():n.alternate===null&&Zl===0&&(Zl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ca?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),$u(e,r,a)),!1;case 22:return n.flags|=65536,r===Ca?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)),$u(e,r,a)),!1}throw Error(i(435,n.tag))}return $u(e,r,a),Pu(),!1}if(Mi)return t=eo.current,t===null?(r!==Fi&&(t=Error(i(423),{cause:r}),Hi(hi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=hi(r,n),a=Qs(e.stateNode,r,a),Ua(e,a),Zl!==4&&(Zl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Fi&&(e=Error(i(422),{cause:r}),Hi(hi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=hi(o,n),ru===null?ru=[o]:ru.push(o),Zl!==4&&(Zl=2),t===null)return!0;r=hi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Qs(n.stateNode,r,e),Ua(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`&&(uu===null||!uu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=$s(a),ec(a,e,n,r),Ua(n,a),!1}n=n.return}while(n!==null);return!1}var nc=Error(i(461)),rc=!1;function ic(e,t,n,r){t.child=e===null?Ia(t,null,n,r):Fa(t,e.child,n,r)}function ac(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 Qi(t),r=So(e,t,n,o,a,i),s=Eo(),e!==null&&!rc?(Do(e,t,i),kc(e,t,i)):(Mi&&s&&Di(t),t.flags|=1,ic(e,t,r,i),t.child)}function oc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!oi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,sc(e,t,a,r,i)):(e=li(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Ac(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?br:n,n(o,r)&&e.ref===t.ref)return kc(e,t,i)}return t.flags|=1,e=si(a,r),e.ref=t.ref,e.return=t,t.child=e}function sc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(br(a,r)&&e.ref===t.ref){if(rc=!1,t.pendingProps=r=a,Ac(e,i))e.flags&131072&&(rc=!0);else return t.lanes=e.lanes,kc(e,t,i)}}return hc(e,t,n,r,i)}function cc(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 uc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&va(t,a===null?null:a.cachePool),a===null?Qa():Za(t,a),io(t);else return r=t.lanes=536870912,uc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&va(t,null),Qa(),ao(t)):(va(t,a.cachePool),Za(t,a),ao(t),t.memoizedState=null);return ic(e,t,i,n),t.child}function lc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function uc(e,t,n,r,i){var a=_a();return a=a===null?null:{parent:aa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&va(t,null),Qa(),io(t),e!==null&&Xi(e,t,r,!0),t.childLanes=i,null}function dc(e,t){return t=wc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function fc(e,t,n){return Fa(t,e.child,null,n),e=dc(t,t.pendingProps),e.flags|=2,oo(t),t.memoizedState=null,e}function pc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(Mi){if(r.mode===`hidden`)return e=dc(t,r),t.lanes=536870912,lc(null,e);if(ro(t),(e=ji)?(e=pf(e,Pi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Si===null?null:{id:Ci,overflow:wi},retryLane:536870912,hydrationErrors:null},n=fi(e),n.return=t,t.child=n,Ai=t,ji=null)):e=null,e===null)throw Ii(t);return t.lanes=536870912,null}return dc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(ro(t),a){if(t.flags&256)t.flags&=-257,t=fc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(rc||Xi(e,t,n,!1),a=(n&e.childLanes)!==0,rc||a){if(r=Hl,r!==null&&(s=Qe(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ei(e,s),Su(r,e,s),nc;Pu(),t=fc(e,t,n)}else e=o.treeContext,ji=_f(s.nextSibling),Ai=t,Mi=!0,Ni=null,Pi=!1,e!==null&&ki(t,e),t=dc(t,r),t.flags|=4096;return t}return e=si(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function mc(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 hc(e,t,n,r,i){return Qi(t),n=So(e,t,n,r,void 0,i),r=Eo(),e!==null&&!rc?(Do(e,t,i),kc(e,t,i)):(Mi&&r&&Di(t),t.flags|=1,ic(e,t,n,i),t.child)}function gc(e,t,n,r,i,a){return Qi(t),t.updateQueue=null,n=wo(t,r,n,i),Co(e),r=Eo(),e!==null&&!rc?(Do(e,t,a),kc(e,t,a)):(Mi&&r&&Di(t),t.flags|=1,ic(e,t,n,a),t.child)}function _c(e,t,n,r,i){if(Qi(t),t.stateNode===null){var a=ri,o=n.contextType;typeof o==`object`&&o&&(a=$i(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Us,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ra(t),o=n.contextType,a.context=typeof o==`object`&&o?$i(o):ri,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Hs(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&&Us.enqueueReplaceState(a,a.state,null),Ka(t,r,a,i),Ga(),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=Ks(n,s);a.props=c;var l=a.context,u=n.contextType;o=ri,typeof u==`object`&&u&&(o=$i(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)&&Gs(t,a,r,o),La=!1;var f=t.memoizedState;a.state=f,Ka(t,r,a,i),Ga(),l=t.memoizedState,s||f!==l||La?(typeof d==`function`&&(Hs(t,n,d,r),l=t.memoizedState),(c=La||Ws(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,za(e,t),o=t.memoizedProps,u=Ks(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ri,typeof l==`object`&&l&&(c=$i(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)&&Gs(t,a,r,c),La=!1,f=t.memoizedState,a.state=f,Ka(t,r,a,i),Ga();var p=t.memoizedState;o!==d||f!==p||La||e!==null&&e.dependencies!==null&&Zi(e.dependencies)?(typeof s==`function`&&(Hs(t,n,s,r),p=t.memoizedState),(u=La||Ws(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Zi(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,mc(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=Fa(t,e.child,null,i),t.child=Fa(t,null,n,i)):ic(e,t,n,i),t.memoizedState=a.state,e=t.child):e=kc(e,t,i),e}function vc(e,t,n,r){return Bi(),t.flags|=256,ic(e,t,n,r),t.child}var yc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function bc(e){return{baseLanes:e,cachePool:ya()}}function xc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=tu),e}function Sc(e,t,n){var r=t.pendingProps,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(so.current&2)),s&&(a=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(Mi){if(a?no(t):ao(t),(e=ji)?(e=pf(e,Pi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Si===null?null:{id:Ci,overflow:wi},retryLane:536870912,hydrationErrors:null},n=fi(e),n.return=t,t.child=n,Ai=t,ji=null)):e=null,e===null)throw Ii(t);return hf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(ao(t),a=t.mode,c=wc({mode:`hidden`,children:c},a),r=ui(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=bc(n),r.childLanes=xc(e,s,n),t.memoizedState=yc,lc(null,r)):(no(t),Cc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(no(t),t.flags&=-257,t=Tc(e,t,n)):t.memoizedState===null?(ao(t),c=r.fallback,a=t.mode,r=wc({mode:`visible`,children:r.children},a),c=ui(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Fa(t,e.child,null,n),r=t.child,r.memoizedState=bc(n),r.childLanes=xc(e,s,n),t.memoizedState=yc,t=lc(null,r)):(ao(t),t.child=e.child,t.flags|=128,t=null);else if(no(t),hf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Hi({value:r,source:null,stack:null}),t=Tc(e,t,n)}else if(rc||Xi(e,t,n,!1),s=(n&e.childLanes)!==0,rc||s){if(s=Hl,s!==null&&(r=Qe(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ei(e,r),Su(s,e,r),nc;mf(c)||Pu(),t=Tc(e,t,n)}else mf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,ji=_f(c.nextSibling),Ai=t,Mi=!0,Ni=null,Pi=!1,e!==null&&ki(t,e),t=Cc(t,r.children),t.flags|=4096);return t}return a?(ao(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=si(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=ui(c,a,n,null),c.flags|=2):c=si(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,lc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=bc(n):(a=c.cachePool,a===null?a=ya():(l=aa._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=xc(e,s,n),t.memoizedState=yc,lc(e.child,r)):(no(t),n=e.child,e=n.sibling,n=si(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 Cc(e,t){return t=wc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function wc(e,t){return e=ai(22,e,null,t),e.lanes=0,e}function Tc(e,t,n){return Fa(t,e.child,null,n),e=Cc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ec(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ji(e.return,t,n)}function Dc(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 Oc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=so.current,s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,le(so,o),ic(e,t,r,n),r=Mi?yi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ec(e,n,t);else if(e.tag===19)Ec(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&&co(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Dc(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&&co(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Dc(t,!0,n,null,a,r);break;case`together`:Dc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function kc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ql|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Xi(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=si(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=si(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ac(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&Zi(e)))}function jc(e,t,n){switch(t.tag){case 3:me(t,t.stateNode.containerInfo),Ki(t,aa,e.memoizedState.cache),Bi();break;case 27:case 5:ge(t);break;case 4:me(t,t.stateNode.containerInfo);break;case 10:Ki(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ro(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(no(t),e=kc(e,t,n),e===null?null:e.sibling):Sc(e,t,n):(no(t),t.flags|=128,null);no(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=(Xi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Oc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),le(so,so.current),r)break;return null;case 22:return t.lanes=0,cc(e,t,n,t.pendingProps);case 24:Ki(t,aa,e.memoizedState.cache)}return kc(e,t,n)}function Mc(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)rc=!0;else{if(!Ac(e,n)&&!(t.flags&128))return rc=!1,jc(e,t,n);rc=!!(e.flags&131072)}}else rc=!1,Mi&&t.flags&1048576&&Ei(t,yi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ea(t.elementType),t.type=e,typeof e==`function`)oi(e)?(r=Ks(e,r),t.tag=1,t=_c(null,t,e,r,n)):(t.tag=0,t=hc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=ac(null,t,e,r,n);break a}if(a===D){t.tag=14,t=oc(null,t,e,r,n);break a}}throw t=re(e)||e,Error(i(306,t,``))}}return t;case 0:return hc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Ks(r,t.pendingProps),_c(e,t,r,a,n);case 3:a:{if(me(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,za(e,t),Ka(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ki(t,aa,r),r!==o.cache&&Yi(t,[aa],n,!0),Ga(),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=vc(e,t,r,n);break a}if(r!==a){a=hi(Error(i(424)),t),Hi(a),t=vc(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(ji=_f(e.firstChild),Ai=t,Mi=!0,Ni=null,Pi=!0,n=Ia(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Bi(),r===a){t=kc(e,t,n);break a}ic(e,t,r,n)}t=t.child}return t;case 26:return mc(e,t),e===null?(n=Rf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Mi||(n=t.type,e=t.pendingProps,r=Yd(fe.current).createElement(n),r[it]=t,r[at]=e,Ud(r,n,e),gt(r),t.stateNode=r):t.memoizedState=Rf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ge(t),e===null&&Mi&&(r=t.stateNode=xf(t.type,t.pendingProps,fe.current),Ai=t,Pi=!0,a=ji,sf(t.type)?(vf=a,ji=_f(r.firstChild)):ji=a),ic(e,t,t.pendingProps.children,n),mc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Mi&&((a=r=ji)&&(r=df(r,t.type,t.pendingProps,Pi),r===null?a=!1:(t.stateNode=r,Ai=t,ji=_f(r.firstChild),Pi=!1,a=!0)),a||Ii(t)),ge(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=So(e,t,To,null,null,n),sp._currentValue=a),mc(e,t),ic(e,t,r,n),t.child;case 6:return e===null&&Mi&&((e=n=ji)&&(n=ff(n,t.pendingProps,Pi),n===null?e=!1:(t.stateNode=n,Ai=t,ji=null,e=!0)),e||Ii(t)),null;case 13:return Sc(e,t,n);case 4:return me(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Fa(t,null,r,n):ic(e,t,r,n),t.child;case 11:return ac(e,t,t.type,t.pendingProps,n);case 7:return ic(e,t,t.pendingProps,n),t.child;case 8:return ic(e,t,t.pendingProps.children,n),t.child;case 12:return ic(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ki(t,t.type,r.value),ic(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Qi(t),a=$i(a),r=r(a),t.flags|=1,ic(e,t,r,n),t.child;case 14:return oc(e,t,t.type,t.pendingProps,n);case 15:return sc(e,t,t.type,t.pendingProps,n);case 19:return Oc(e,t,n);case 31:return pc(e,t,n);case 22:return cc(e,t,n,t.pendingProps);case 24:return Qi(t),r=$i(aa),e===null?(a=_a(),a===null&&(a=Hl,o=oa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ra(t),Ki(t,aa,a)):((e.lanes&n)!==0&&(za(e,t),Ka(t,null,null,n),Ga()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ki(t,aa,r),r!==a.cache&&Yi(t,[aa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ki(t,aa,r))),ic(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Nc(e){e.flags|=4}function Pc(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(ju())e.flags|=8192;else throw Da=Ca,xa}}else e.flags&=-16777217}function Fc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!$f(t)){if(ju())e.flags|=8192;else throw Da=Ca,xa}}function Ic(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:B(),e.lanes|=t,nu|=t)}function Lc(e,t){if(!Mi)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 Rc(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 zc(e,t,n){var r=t.pendingProps;switch(Oi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rc(t),null;case 1:return Rc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),qi(aa),he(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(zi(t)?Nc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Vi())),Rc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Nc(t),o===null?(Rc(t),Pc(t,a,null,r,n)):(Rc(t),Fc(t,o))):o?o===e.memoizedState?(Rc(t),t.flags&=-16777217):(Nc(t),Rc(t),Fc(t,o)):(e=e.memoizedProps,e!==r&&Nc(t),Rc(t),Pc(t,a,e,r,n)),null;case 27:if(_e(t),n=fe.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Nc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Rc(t),null}e=ue.current,zi(t)?Li(t,e):(e=xf(a,r,n),t.stateNode=e,Nc(t))}return Rc(t),null;case 5:if(_e(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Nc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Rc(t),null}if(o=ue.current,zi(t))Li(t,o);else{var s=Yd(fe.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[it]=t,o[at]=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(Ud(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&&Nc(t)}}return Rc(t),Pc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Nc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=fe.current,zi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ai,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[it]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Bd(e.nodeValue,n)),e||Ii(t,!0)}else e=Yd(e).createTextNode(r),e[it]=t,t.stateNode=e}return Rc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=zi(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[it]=t}else Bi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Rc(t),e=!1}else n=Vi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(oo(t),t):(oo(t),null);if(t.flags&128)throw Error(i(558))}return Rc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=zi(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[it]=t}else Bi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Rc(t),a=!1}else a=Vi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(oo(t),t):(oo(t),null)}return oo(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),Ic(t,t.updateQueue),Rc(t),null);case 4:return he(),e===null&&jd(t.stateNode.containerInfo),Rc(t),null;case 10:return qi(t.type),Rc(t),null;case 19:if(ce(so),r=t.memoizedState,r===null)return Rc(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)Lc(r,!1);else{if(Zl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=co(e),o!==null){for(t.flags|=128,Lc(r,!1),e=o.updateQueue,t.updateQueue=e,Ic(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ci(n,e),n=n.sibling;return le(so,so.current&1|2),Mi&&Ti(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&R()>cu&&(t.flags|=128,a=!0,Lc(r,!1),t.lanes=4194304)}}else{if(!a){if(e=co(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Ic(t,e),Lc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Mi)return Rc(t),null}else 2*R()-r.renderingStartTime>cu&&n!==536870912&&(t.flags|=128,a=!0,Lc(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?(Rc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=R(),e.sibling=null,n=so.current,le(so,a?n&1|2:n&1),Mi&&Ti(t,r.treeForkCount),e);case 22:case 23:return oo(t),$a(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Rc(t),t.subtreeFlags&6&&(t.flags|=8192)):Rc(t),n=t.updateQueue,n!==null&&Ic(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(ga),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),qi(aa),Rc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Bc(e,t){switch(Oi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qi(aa),he(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return _e(t),null;case 31:if(t.memoizedState!==null){if(oo(t),t.alternate===null)throw Error(i(340));Bi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(oo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Bi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ce(so),null;case 4:return he(),null;case 10:return qi(t.type),null;case 22:case 23:return oo(t),$a(),e!==null&&ce(ga),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return qi(aa),null;case 25:return null;default:return null}}function Vc(e,t){switch(Oi(t),t.tag){case 3:qi(aa),he();break;case 26:case 27:case 5:_e(t);break;case 4:he();break;case 31:t.memoizedState!==null&&oo(t);break;case 13:oo(t);break;case 19:ce(so);break;case 10:qi(t.type);break;case 22:case 23:oo(t),$a(),e!==null&&ce(ga);break;case 24:qi(aa)}}function Hc(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){Qu(t,t.return,e)}}function Uc(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){Qu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Qu(t,t.return,e)}}function Wc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ja(t,n)}catch(t){Qu(e,e.return,t)}}}function Gc(e,t,n){n.props=Ks(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Qu(e,t,n)}}function Kc(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){Qu(e,t,n)}}function qc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Qu(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){Qu(e,t,n)}else n.current=null}}function Jc(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){Qu(e,e.return,t)}}function Yc(e,t,n){try{var r=e.stateNode;Wd(r,e.type,n,t),r[at]=t}catch(t){Qu(e,e.return,t)}}function Xc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sf(e.type)||e.tag===4}function Zc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Xc(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&&sf(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 Qc(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=Xt));else if(r!==4&&(r===27&&sf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}function $c(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&&sf(e.type)&&(n=e.stateNode),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){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Ud(t,r,n),t[it]=e,t[at]=n}catch(t){Qu(e,e.return,t)}}var tl=!1,nl=!1,rl=!1,il=typeof WeakSet==`function`?WeakSet:Set,al=null;function ol(e,t){if(e=e.containerInfo,qd=gp,e=wr(e),Tr(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(Jd={focusedElem:e,selectionRange:n},gp=!1,al=t;al!==null;)if(t=al,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,al=e;else for(;al!==null;){switch(t=al,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=Ks(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Qu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)uf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:uf(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,al=e;break}al=t.return}}function sl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Sl(e,n),r&4&&Hc(5,n);break;case 1:if(Sl(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Qu(n,n.return,e)}else{var i=Ks(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Qu(n,n.return,e)}}}r&64&&Wc(n),r&512&&Kc(n,n.return);break;case 3:if(Sl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ja(e,t)}catch(e){Qu(n,n.return,e)}}break;case 27:t===null&&r&4&&el(n);case 26:case 5:Sl(e,n),t===null&&r&4&&Jc(n),r&512&&Kc(n,n.return);break;case 12:Sl(e,n);break;case 31:Sl(e,n),r&4&&pl(e,n);break;case 13:Sl(e,n),r&4&&ml(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=nd.bind(null,n),gf(e,n))));break;case 22:if(r=n.memoizedState!==null||tl,!r){t=t!==null&&t.memoizedState!==null||nl,i=tl;var a=nl;tl=r,(nl=t)&&!a?wl(e,n,!!(n.subtreeFlags&8772)):Sl(e,n),tl=i,nl=a}break;case 30:break;default:Sl(e,n)}}function cl(e){var t=e.alternate;t!==null&&(e.alternate=null,cl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&dt(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 ll=null,ul=!1;function dl(e,t,n){for(n=n.child;n!==null;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(Pe&&typeof Pe.onCommitFiberUnmount==`function`)try{Pe.onCommitFiberUnmount(Ne,n)}catch{}switch(n.tag){case 26:nl||qc(n,t),dl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:nl||qc(n,t);var r=ll,i=ul;sf(n.type)&&(ll=n.stateNode,ul=!1),dl(e,t,n),Sf(n.stateNode),ll=r,ul=i;break;case 5:nl||qc(n,t);case 6:if(r=ll,i=ul,ll=null,dl(e,t,n),ll=r,ul=i,ll!==null){if(ul)try{(ll.nodeType===9?ll.body:ll.nodeName===`HTML`?ll.ownerDocument.body:ll).removeChild(n.stateNode)}catch(e){Qu(n,t,e)}else try{ll.removeChild(n.stateNode)}catch(e){Qu(n,t,e)}}break;case 18:ll!==null&&(ul?(e=ll,cf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Hp(e)):cf(ll,n.stateNode));break;case 4:r=ll,i=ul,ll=n.stateNode.containerInfo,ul=!0,dl(e,t,n),ll=r,ul=i;break;case 0:case 11:case 14:case 15:Uc(2,n,t),nl||Uc(4,n,t),dl(e,t,n);break;case 1:nl||(qc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Gc(n,t,r)),dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:nl=(r=nl)||n.memoizedState!==null,dl(e,t,n),nl=r;break;default:dl(e,t,n)}}function pl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Hp(e)}catch(e){Qu(t,t.return,e)}}}function ml(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Hp(e)}catch(e){Qu(t,t.return,e)}}function hl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new il),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new il),t;default:throw Error(i(435,e.tag))}}function gl(e,t){var n=hl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=rd.bind(null,e,t);t.then(r,r)}})}function _l(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(sf(c.type)){ll=c.stateNode,ul=!1;break a}break;case 5:ll=c.stateNode,ul=!1;break a;case 3:case 4:ll=c.stateNode.containerInfo,ul=!0;break a}c=c.return}if(ll===null)throw Error(i(160));fl(o,s,a),ll=null,ul=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)yl(t,e),t=t.sibling}var vl=null;function yl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:_l(t,e),bl(e),r&4&&(Uc(3,e,e.return),Hc(3,e),Uc(5,e,e.return));break;case 1:_l(t,e),bl(e),r&512&&(nl||n===null||qc(n,n.return)),r&64&&tl&&(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=vl;if(_l(t,e),bl(e),r&512&&(nl||n===null||qc(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[ut]||o[it]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Ud(o,r,n),o[it]=e,gt(o),r=o;break a;case`link`:var s=Xf(`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),Ud(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Xf(`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),Ud(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[it]=e,gt(o),r=o}e.stateNode=r}else Zf(a,e.type,e.stateNode)}else e.stateNode=Gf(a,r,e.memoizedProps)}else o===r?r===null&&e.stateNode!==null&&Yc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Zf(a,e.type,e.stateNode):Gf(a,r,e.memoizedProps))}break;case 27:_l(t,e),bl(e),r&512&&(nl||n===null||qc(n,n.return)),n!==null&&r&4&&Yc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(_l(t,e),bl(e),r&512&&(nl||n===null||qc(n,n.return)),e.flags&32){a=e.stateNode;try{Ht(a,``)}catch(t){Qu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Yc(e,a,n===null?a:n.memoizedProps)),r&1024&&(rl=!0);break;case 6:if(_l(t,e),bl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Qu(e,e.return,t)}}break;case 3:if(Yf=null,a=vl,vl=Tf(t.containerInfo),_l(t,e),vl=a,bl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Hp(t.containerInfo)}catch(t){Qu(e,e.return,t)}rl&&(rl=!1,xl(e));break;case 4:r=vl,vl=Tf(e.stateNode.containerInfo),_l(t,e),bl(e),vl=r;break;case 12:_l(t,e),bl(e);break;case 31:_l(t,e),bl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 13:_l(t,e),bl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ou=R()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=tl,d=nl;if(tl=u||a,nl=d||l,_l(t,e),nl=d,tl=u,bl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||tl||nl||Cl(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){Qu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Qu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?lf(m,!0):lf(l.stateNode,!1)}catch(e){Qu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,gl(e,n))));break;case 19:_l(t,e),bl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 30:break;case 21:break;default:_l(t,e),bl(e)}}function bl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Xc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;$c(e,Zc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Ht(o,``),n.flags&=-33),$c(e,Zc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Qc(e,Zc(e),s);break;default:throw Error(i(161))}}catch(t){Qu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Sl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)sl(e,t.alternate,t),t=t.sibling}function Cl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Uc(4,t,t.return),Cl(t);break;case 1:qc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Gc(t,t.return,n),Cl(t);break;case 27:Sf(t.stateNode);case 26:case 5:qc(t,t.return),Cl(t);break;case 22:t.memoizedState===null&&Cl(t);break;case 30:Cl(t);break;default:Cl(t)}e=e.sibling}}function wl(e,t,n){for(n&&=!!(t.subtreeFlags&8772),t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:wl(i,a,n),Hc(4,a);break;case 1:if(wl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Qu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)qa(c[i],s)}catch(e){Qu(r,r.return,e)}}n&&o&64&&Wc(a),Kc(a,a.return);break;case 27:el(a);case 26:case 5:wl(i,a,n),n&&r===null&&o&4&&Jc(a),Kc(a,a.return);break;case 12:wl(i,a,n);break;case 31:wl(i,a,n),n&&o&4&&pl(i,a);break;case 13:wl(i,a,n),n&&o&4&&ml(i,a);break;case 22:a.memoizedState===null&&wl(i,a,n),Kc(a,a.return);break;case 30:break;default:wl(i,a,n)}t=t.sibling}}function Tl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&sa(n))}function El(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sa(e))}function Dl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ol(e,t,n,r),t=t.sibling}function Ol(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Dl(e,t,n,r),i&2048&&Hc(9,t);break;case 1:Dl(e,t,n,r);break;case 3:Dl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sa(e)));break;case 12:if(i&2048){Dl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Qu(t,t.return,e)}}else Dl(e,t,n,r);break;case 31:Dl(e,t,n,r);break;case 13:Dl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Dl(e,t,n,r):(a._visibility|=2,kl(e,t,n,r,!!(t.subtreeFlags&10256)||!1)):a._visibility&2?Dl(e,t,n,r):Al(e,t),i&2048&&Tl(o,t);break;case 24:Dl(e,t,n,r),i&2048&&El(t.alternate,t);break;default:Dl(e,t,n,r)}}function kl(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:kl(a,o,s,c,i),Hc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,kl(a,o,s,c,i)):u._visibility&2?kl(a,o,s,c,i):Al(a,o),i&&l&2048&&Tl(o.alternate,o);break;case 24:kl(a,o,s,c,i),i&&l&2048&&El(o.alternate,o);break;default:kl(a,o,s,c,i)}t=t.sibling}}function Al(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Al(n,r),i&2048&&Tl(r.alternate,r);break;case 24:Al(n,r),i&2048&&El(r.alternate,r);break;default:Al(n,r)}t=t.sibling}}var jl=8192;function Ml(e,t,n){if(e.subtreeFlags&jl)for(e=e.child;e!==null;)Nl(e,t,n),e=e.sibling}function Nl(e,t,n){switch(e.tag){case 26:Ml(e,t,n),e.flags&jl&&e.memoizedState!==null&&ep(n,vl,e.memoizedState,e.memoizedProps);break;case 5:Ml(e,t,n);break;case 3:case 4:var r=vl;vl=Tf(e.stateNode.containerInfo),Ml(e,t,n),vl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=jl,jl=16777216,Ml(e,t,n),jl=r):Ml(e,t,n));break;default:Ml(e,t,n)}}function Pl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Fl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];al=r,Rl(r,e)}Pl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Il(e),e=e.sibling}function Il(e){switch(e.tag){case 0:case 11:case 15:Fl(e),e.flags&2048&&Uc(9,e,e.return);break;case 3:Fl(e);break;case 12:Fl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ll(e)):Fl(e);break;default:Fl(e)}}function Ll(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];al=r,Rl(r,e)}Pl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Uc(8,t,t.return),Ll(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ll(t));break;default:Ll(t)}e=e.sibling}}function Rl(e,t){for(;al!==null;){var n=al;switch(n.tag){case 0:case 11:case 15:Uc(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:sa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,al=r;else a:for(n=e;al!==null;){r=al;var i=r.sibling,a=r.return;if(cl(r),r===n){al=null;break a}if(i!==null){i.return=a,al=i;break a}al=a}}}var zl={getCacheForType:function(e){var t=$i(aa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return $i(aa).controller.signal}},Bl=typeof WeakMap==`function`?WeakMap:Map,Vl=0,Hl=null,Ul=null,Wl=0,Gl=0,Kl=null,ql=!1,Jl=!1,Yl=!1,Xl=0,Zl=0,Ql=0,$l=0,eu=0,tu=0,nu=0,ru=null,iu=null,au=!1,ou=0,su=0,cu=1/0,lu=null,uu=null,du=0,fu=null,pu=null,mu=0,hu=0,gu=null,_u=null,vu=0,yu=null;function bu(){return Vl&2&&Wl!==0?Wl&-Wl:j.T===null?tt():yd()}function xu(){if(tu===0){if(!(Wl&536870912)||Mi){var e=Ve;Ve<<=1,!(Ve&3932160)&&(Ve=262144),tu=e}else tu=536870912}return e=eo.current,e!==null&&(e.flags|=32),tu}function Su(e,t,n){(e===Hl&&(Gl===2||Gl===9)||e.cancelPendingCommit!==null)&&(ku(e,0),Eu(e,Wl,tu,!1)),Je(e,n),(!(Vl&2)||e!==Hl)&&(e===Hl&&(!(Vl&2)&&($l|=n),Zl===4&&Eu(e,Wl,tu,!1)),dd(e))}function Cu(e,t,n){if(Vl&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||Ge(e,t),a=r?Lu(e,t):Fu(e,t,!0),o=r;do{if(a===0){Jl&&!r&&Eu(e,t,0,!1);break}if(n=e.current.alternate,o&&!Tu(n)){a=Fu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=ru;var l=c.current.memoizedState.isDehydrated;if(l&&(ku(c,s).flags|=256),s=Fu(c,s,!1),s!==2){if(Yl&&!l){c.errorRecoveryDisabledLanes|=o,$l|=o,a=4;break a}o=iu,iu=a,o!==null&&(iu===null?iu=o:iu.push.apply(iu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){ku(e,0),Eu(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:Eu(r,t,tu,!ql);break a;case 2:iu=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=ou+300-R(),10<a)){if(Eu(r,t,tu,!ql),We(r,0,!0)!==0)break a;mu=t,r.timeoutHandle=tf(wu.bind(null,r,n,iu,lu,au,t,tu,$l,nu,ql,o,`Throttled`,-0,0),a);break a}wu(r,n,iu,lu,au,t,tu,$l,nu,ql,o,null,-0,0)}break}while(1);dd(e)}function wu(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:Xt},Nl(t,a,d);var m=(a&62914560)===a?ou-R():(a&4194048)===a?su-R():0;if(m=np(d,m),m!==null){mu=a,e.cancelPendingCommit=m(Wu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Eu(e,a,o,!l);return}}Wu(e,t,a,n,r,i,o,s,c)}function Tu(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(!yr(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 Eu(e,t,n,r){t&=~eu,t&=~$l,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ie(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Xe(e,n,t)}function Du(){return Vl&6?!0:(fd(0,!1),!1)}function Ou(){if(Ul!==null){if(Gl===0)var e=Ul.return;else e=Ul,Gi=Wi=null,Oo(e),Aa=null,ja=0,e=Ul;for(;e!==null;)Vc(e.alternate,e),e=e.return;Ul=null}}function ku(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,nf(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),mu=0,Ou(),Hl=e,Ul=n=si(e.current,null),Wl=t,Gl=0,Kl=null,ql=!1,Jl=Ge(e,t),Yl=!1,nu=tu=eu=$l=Ql=Zl=0,iu=ru=null,au=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ie(r),a=1<<i;t|=e[i],r&=~a}return Xl=t,Zr(),n}function Au(e,t){U=null,j.H=Rs,t===ba||t===Sa?(t=Oa(),Gl=3):t===xa?(t=Oa(),Gl=4):Gl=t===nc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Kl=t,Ul===null&&(Zl=1,Xs(e,hi(t,e.current)))}function ju(){var e=eo.current;return e===null?!0:(Wl&4194048)===Wl?to===null:(Wl&62914560)===Wl||Wl&536870912?e===to:!1}function Mu(){var e=j.H;return j.H=Rs,e===null?Rs:e}function Nu(){var e=j.A;return j.A=zl,e}function Pu(){Zl=4,ql||(Wl&4194048)!==Wl&&eo.current!==null||(Jl=!0),!(Ql&134217727)&&!($l&134217727)||Hl===null||Eu(Hl,Wl,tu,!1)}function Fu(e,t,n){var r=Vl;Vl|=2;var i=Mu(),a=Nu();(Hl!==e||Wl!==t)&&(lu=null,ku(e,t)),t=!1;var o=Zl;a:do try{if(Gl!==0&&Ul!==null){var s=Ul,c=Kl;switch(Gl){case 8:Ou(),o=6;break a;case 3:case 2:case 9:case 6:eo.current===null&&(t=!0);var l=Gl;if(Gl=0,Kl=null,Vu(e,s,c,l),n&&Jl){o=0;break a}break;default:l=Gl,Gl=0,Kl=null,Vu(e,s,c,l)}}Iu(),o=Zl;break}catch(t){Au(e,t)}while(1);return t&&e.shellSuspendCounter++,Gi=Wi=null,Vl=r,j.H=i,j.A=a,Ul===null&&(Hl=null,Wl=0,Zr()),o}function Iu(){for(;Ul!==null;)zu(Ul)}function Lu(e,t){var n=Vl;Vl|=2;var r=Mu(),a=Nu();Hl!==e||Wl!==t?(lu=null,cu=R()+500,ku(e,t)):Jl=Ge(e,t);a:do try{if(Gl!==0&&Ul!==null){t=Ul;var o=Kl;b:switch(Gl){case 1:Gl=0,Kl=null,Vu(e,t,o,1);break;case 2:case 9:if(wa(o)){Gl=0,Kl=null,Bu(t);break}t=function(){Gl!==2&&Gl!==9||Hl!==e||(Gl=7),dd(e)},o.then(t,t);break a;case 3:Gl=7;break a;case 4:Gl=5;break a;case 7:wa(o)?(Gl=0,Kl=null,Bu(t)):(Gl=0,Kl=null,Vu(e,t,o,7));break;case 5:var s=null;switch(Ul.tag){case 26:s=Ul.memoizedState;case 5:case 27:var c=Ul;if(s?$f(s):c.stateNode.complete){Gl=0,Kl=null;var l=c.sibling;if(l!==null)Ul=l;else{var u=c.return;u===null?Ul=null:(Ul=u,Hu(u))}break b}}Gl=0,Kl=null,Vu(e,t,o,5);break;case 6:Gl=0,Kl=null,Vu(e,t,o,6);break;case 8:Ou(),Zl=6;break a;default:throw Error(i(462))}}Ru();break}catch(t){Au(e,t)}while(1);return Gi=Wi=null,j.H=r,j.A=a,Vl=n,Ul===null?(Hl=null,Wl=0,Zr(),Zl):0}function Ru(){for(;Ul!==null&&!we();)zu(Ul)}function zu(e){var t=Mc(e.alternate,e,Xl);e.memoizedProps=e.pendingProps,t===null?Hu(e):Ul=t}function Bu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=gc(n,t,t.pendingProps,t.type,void 0,Wl);break;case 11:t=gc(n,t,t.pendingProps,t.type.render,t.ref,Wl);break;case 5:Oo(t);default:Vc(n,t),t=Ul=ci(t,Xl),t=Mc(n,t,Xl)}e.memoizedProps=e.pendingProps,t===null?Hu(e):Ul=t}function Vu(e,t,n,r){Gi=Wi=null,Oo(t),Aa=null,ja=0;var i=t.return;try{if(tc(e,i,t,n,Wl)){Zl=1,Xs(e,hi(n,e.current)),Ul=null;return}}catch(t){if(i!==null)throw Ul=i,t;Zl=1,Xs(e,hi(n,e.current)),Ul=null;return}t.flags&32768?(Mi||r===1?e=!0:Jl||Wl&536870912?e=!1:(ql=e=!0,(r===2||r===9||r===3||r===6)&&(r=eo.current,r!==null&&r.tag===13&&(r.flags|=16384))),Uu(t,e)):Hu(t)}function Hu(e){var t=e;do{if(t.flags&32768){Uu(t,ql);return}e=t.return;var n=zc(t.alternate,t,Xl);if(n!==null){Ul=n;return}if(t=t.sibling,t!==null){Ul=t;return}Ul=t=e}while(t!==null);Zl===0&&(Zl=5)}function Uu(e,t){do{var n=Bc(e.alternate,e);if(n!==null){n.flags&=32767,Ul=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ul=e;return}Ul=e=n}while(e!==null);Zl=6,Ul=null}function Wu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Yu();while(du!==0);if(Vl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Xr,Ye(e,n,o,s,c,l),e===Hl&&(Ul=Hl=null,Wl=0),pu=t,fu=e,mu=n,hu=o,gu=a,_u=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,id(z,function(){return Xu(),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=Vl,Vl|=4;try{ol(e,t,n)}finally{Vl=s,M.p=a,j.T=r}}du=1,Gu(),Ku(),qu()}}function Gu(){if(du===1){du=0;var e=fu,t=pu,n=!!(t.flags&13878);if(t.subtreeFlags&13878||n){n=j.T,j.T=null;var r=M.p;M.p=2;var i=Vl;Vl|=4;try{yl(t,e);var a=Jd,o=wr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Cr(s.ownerDocument.documentElement,s)){if(c!==null&&Tr(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 _=Sr(s,h),v=Sr(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}}gp=!!qd,Jd=qd=null}finally{Vl=i,M.p=r,j.T=n}}e.current=t,du=2}}function Ku(){if(du===2){du=0;var e=fu,t=pu,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=j.T,j.T=null;var r=M.p;M.p=2;var i=Vl;Vl|=4;try{sl(e,t.alternate,t)}finally{Vl=i,M.p=r,j.T=n}}du=3}}function qu(){if(du===4||du===3){du=0,Te();var e=fu,t=pu,n=mu,r=_u;t.subtreeFlags&10256||t.flags&10256?du=5:(du=0,pu=fu=null,Ju(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(uu=null),et(n),t=t.stateNode,Pe&&typeof Pe.onCommitFiberRoot==`function`)try{Pe.onCommitFiberRoot(Ne,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}}mu&3&&Yu(),dd(e),i=e.pendingLanes,n&261930&&i&42?e===yu?vu++:(vu=0,yu=e):vu=0,fd(0,!1)}}function Ju(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,sa(t)))}function Yu(){return Gu(),Ku(),qu(),Xu()}function Xu(){if(du!==5)return!1;var e=fu,t=hu;hu=0;var n=et(mu),r=j.T,a=M.p;try{M.p=32>n?32:n,j.T=null,n=gu,gu=null;var o=fu,s=mu;if(du=0,pu=fu=null,mu=0,Vl&6)throw Error(i(331));var c=Vl;if(Vl|=4,Il(o.current),Ol(o,o.current,s,n),Vl=c,fd(0,!1),Pe&&typeof Pe.onPostCommitFiberRoot==`function`)try{Pe.onPostCommitFiberRoot(Ne,o)}catch{}return!0}finally{M.p=a,j.T=r,Ju(e,t)}}function Zu(e,t,n){t=hi(n,t),t=Qs(e.stateNode,t,2),e=Va(e,t,2),e!==null&&(Je(e,2),dd(e))}function Qu(e,t,n){if(e.tag===3)Zu(e,e,n);else for(;t!==null;){if(t.tag===3){Zu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(uu===null||!uu.has(r))){e=hi(n,e),n=$s(2),r=Va(t,n,2),r!==null&&(ec(n,r,t,e),Je(r,2),dd(r));break}}t=t.return}}function $u(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Bl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Yl=!0,i.add(n),e=ed.bind(null,e,t,n),t.then(e,e))}function ed(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Hl===e&&(Wl&n)===n&&(Zl===4||Zl===3&&(Wl&62914560)===Wl&&300>R()-ou?!(Vl&2)&&ku(e,0):eu|=n,nu===Wl&&(nu=0)),dd(e)}function td(e,t){t===0&&(t=B()),e=ei(e,t),e!==null&&(Je(e,t),dd(e))}function nd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),td(e,n)}function rd(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),td(e,n)}function id(e,t){return Se(e,t)}var ad=null,od=null,sd=!1,cd=!1,ld=!1,ud=0;function dd(e){e!==od&&e.next===null&&(od===null?ad=od=e:od=od.next=e),cd=!0,sd||(sd=!0,vd())}function fd(e,t){if(!ld&&cd){ld=!0;do for(var n=!1,r=ad;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-Ie(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,_d(r,a))}else a=Wl,a=We(r,r===Hl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ge(r,a)||(n=!0,_d(r,a))}r=r.next}while(n);ld=!1}}function pd(){md()}function md(){cd=sd=!1;var e=0;ud!==0&&ef()&&(e=ud);for(var t=R(),n=null,r=ad;r!==null;){var i=r.next,a=hd(r,t);a===0?(r.next=null,n===null?ad=i:n.next=i,i===null&&(od=n)):(n=r,(e!==0||a&3)&&(cd=!0)),r=i}du!==0&&du!==5||fd(e,!1),ud!==0&&(ud=0)}function hd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ie(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ke(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Hl,n=Wl,n=We(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Gl===2||Gl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ce(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ge(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ce(r),et(n)){case 2:case 8:n=Oe;break;case 32:n=z;break;case 268435456:n=Ae;break;default:n=z}return r=gd.bind(null,e),n=Se(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ce(r),e.callbackPriority=2,e.callbackNode=null,2}function gd(e,t){if(du!==0&&du!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Yu()&&e.callbackNode!==n)return null;var r=Wl;return r=We(e,e===Hl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Cu(e,r,t),hd(e,R()),e.callbackNode!=null&&e.callbackNode===n?gd.bind(null,e):null)}function _d(e,t){if(Yu())return null;Cu(e,t,!0)}function vd(){af(function(){Vl&6?Se(De,pd):md()})}function yd(){if(ud===0){var e=ua;e===0&&(e=Be,Be<<=1,!(Be&261888)&&(Be=256)),ud=e}return ud}function bd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Yt(``+e)}function xd(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 Sd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=bd((i[at]||null).action),o=r.submitter;o&&(t=(t=o[at]||null)?bd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new vn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(ud!==0){var e=o?xd(i,o):new FormData(i);ws(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?xd(i,o):new FormData(i),ws(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Cd=0;Cd<Gr.length;Cd++){var wd=Gr[Cd];Kr(wd.toLowerCase(),`on`+(wd[0].toUpperCase()+wd.slice(1)))}Kr(Lr,`onAnimationEnd`),Kr(Rr,`onAnimationIteration`),Kr(zr,`onAnimationStart`),Kr(`dblclick`,`onDoubleClick`),Kr(`focusin`,`onFocus`),Kr(`focusout`,`onBlur`),Kr(Br,`onTransitionRun`),Kr(Vr,`onTransitionStart`),Kr(Hr,`onTransitionCancel`),Kr(Ur,`onTransitionEnd`),bt(`onMouseEnter`,[`mouseout`,`mouseover`]),bt(`onMouseLeave`,[`mouseout`,`mouseover`]),bt(`onPointerEnter`,[`pointerout`,`pointerover`]),bt(`onPointerLeave`,[`pointerout`,`pointerover`]),yt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),yt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),yt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),yt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),yt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),yt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Td=`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(` `),Ed=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Td));function Dd(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){qr(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){qr(e)}i.currentTarget=null,a=c}}}}function Od(e,t){var n=t[V];n===void 0&&(n=t[V]=new Set);var r=e+`__bubble`;n.has(r)||(Md(t,e,2,!1),n.add(r))}function kd(e,t,n){var r=0;t&&(r|=4),Md(n,e,r,t)}var Ad=`_reactListening`+Math.random().toString(36).slice(2);function jd(e){if(!e[Ad]){e[Ad]=!0,_t.forEach(function(t){t!==`selectionchange`&&(Ed.has(t)||kd(t,!1,e),kd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ad]||(t[Ad]=!0,kd(`selectionchange`,!1,t))}}function Md(e,t,n,r){switch(Cp(t)){case 2:var i=_p;break;case 8:i=vp;break;default:i=yp}n=i.bind(null,t,n,e),i=void 0,!sn||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 Nd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=ft(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}rn(function(){var r=a,i=Qt(n),s=[];a:{var c=Wr.get(e);if(c!==void 0){var l=vn,u=e;switch(e){case`keypress`:if(pn(n)===0)break a;case`keydown`:case`keyup`:l=In;break;case`focusin`:u=`focus`,l=Dn;break;case`focusout`:u=`blur`,l=Dn;break;case`beforeblur`:case`afterblur`:l=Dn;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=Tn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=En;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Rn;break;case Lr:case Rr:case zr:l=On;break;case Ur:l=zn;break;case`scroll`:case`scrollend`:l=bn;break;case`wheel`:l=Bn;break;case`copy`:case`cut`:case`paste`:l=kn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Ln;break;case`toggle`:case`beforetoggle`:l=Vn}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=an(m,p),g!=null&&d.push(Pd(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==Zt&&(u=n.relatedTarget||n.fromElement)&&(ft(u)||u[ot]))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?ft(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Tn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Ln,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:mt(l),h=u==null?c:mt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,ft(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=Fd,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&&Id(s,c,l,d,!1),u!==null&&f!==null&&Id(s,f,u,d,!0)}}a:{if(c=r?mt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=sr;else if(tr(c)){if(cr)v=_r;else{v=hr;var y=mr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Kt(r.elementType)&&(v=sr):v=gr;if(v&&=v(e,r)){nr(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Rt(c,`number`,c.value)}switch(y=r?mt(r):window,e){case`focusin`:(tr(y)||y.contentEditable===`true`)&&(Dr=y,Or=r,kr=null);break;case`focusout`:kr=Or=Dr=null;break;case`mousedown`:Ar=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Ar=!1,jr(s,n,i);break;case`selectionchange`:if(Er)break;case`keydown`:case`keyup`:jr(s,n,i)}var b;if(Un)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 Zn?Yn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Kn&&n.locale!==`ko`&&(Zn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Zn&&(b=fn()):(ln=i,un=`value`in ln?ln.value:ln.textContent,Zn=!0)),y=W(r,x),0<y.length&&(x=new An(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=Xn(n),b!==null&&(x.data=b)))),(b=Gn?Qn(e,n):$n(e,n))&&(x=W(r,`onBeforeInput`),0<x.length&&(y=new An(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),Sd(s,e,r,n,i)}Dd(s,t)})}function Pd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function W(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=an(e,n),i!=null&&r.unshift(Pd(e,i,a)),i=an(e,t),i!=null&&r.push(Pd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Fd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Id(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=an(n,a),l!=null&&o.unshift(Pd(n,l,c))):i||(l=an(n,a),l!=null&&o.push(Pd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Ld=/\r\n?/g,Rd=/\u0000|\uFFFD/g;function zd(e){return(typeof e==`string`?e:``+e).replace(Ld,`
|
|
9
|
+
`).replace(Rd,``)}function Bd(e,t){return t=zd(t),zd(e)===t}function Vd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Ht(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Ht(e,``+r);break;case`className`:Et(e,`class`,r);break;case`tabIndex`:Et(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Et(e,n,r);break;case`style`:Gt(e,r,o);break;case`data`:if(t!==`object`){Et(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=Yt(``+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`&&Vd(e,t,`name`,a.name,a,null),Vd(e,t,`formEncType`,a.formEncType,a,null),Vd(e,t,`formMethod`,a.formMethod,a,null),Vd(e,t,`formTarget`,a.formTarget,a,null)):(Vd(e,t,`encType`,a.encType,a,null),Vd(e,t,`method`,a.method,a,null),Vd(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Yt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Xt);break;case`onScroll`:r!=null&&Od(`scroll`,e);break;case`onScrollEnd`:r!=null&&Od(`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=Yt(``+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`:Od(`beforetoggle`,e),Od(`toggle`,e),Tt(e,`popover`,r);break;case`xlinkActuate`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Dt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Dt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Dt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Tt(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=qt.get(n)||n,Tt(e,n,r))}}function Hd(e,t,n,r,a,o){switch(n){case`style`:Gt(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`?Ht(e,r):(typeof r==`number`||typeof r==`bigint`)&&Ht(e,``+r);break;case`onScroll`:r!=null&&Od(`scroll`,e);break;case`onScrollEnd`:r!=null&&Od(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Xt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!vt.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[at]||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,``):Tt(e,n,r)}}}function Ud(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Od(`error`,e),Od(`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:Vd(e,t,o,s,n,null)}}a&&Vd(e,t,`srcSet`,n.srcSet,n,null),r&&Vd(e,t,`src`,n.src,n,null);return;case`input`:Od(`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:Vd(e,t,r,d,n,null)}}Lt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Od(`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:Vd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&zt(e,!!r,n,!0):zt(e,!!r,t,!1);return;case`textarea`:for(s in Od(`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:Vd(e,t,s,c,n,null)}Vt(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:Vd(e,t,l,r,n,null)}return;case`dialog`:Od(`beforetoggle`,e),Od(`toggle`,e),Od(`cancel`,e),Od(`close`,e);break;case`iframe`:case`object`:Od(`load`,e);break;case`video`:case`audio`:for(r=0;r<Td.length;r++)Od(Td[r],e);break;case`image`:Od(`error`,e),Od(`load`,e);break;case`details`:Od(`toggle`,e);break;case`embed`:case`source`:case`link`:Od(`error`,e),Od(`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:Vd(e,t,u,r,n,null)}return;default:if(Kt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Hd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Vd(e,t,c,r,n,null))}function Wd(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)||Vd(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&&Vd(e,t,p,m,r,f)}}It(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)||Vd(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&&Vd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?zt(e,!!n,n?[]:``,!1):zt(e,!!n,t,!0)):zt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Vd(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&&Vd(e,t,s,a,r,o)}Bt(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:Vd(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:Vd(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)&&Vd(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:Vd(e,t,u,p,r,m)}return;default:if(Kt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Hd(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||Hd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Vd(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||Vd(e,t,f,p,r,m)}function Gd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Kd(){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&&Gd(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&&Gd(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 qd=null,Jd=null;function Yd(e){return e.nodeType===9?e:e.ownerDocument}function Xd(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 Zd(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 $d=null;function ef(){var e=window.event;return e&&e.type===`popstate`?e!==$d&&($d=e,!0):($d=null,!1)}var tf=typeof setTimeout==`function`?setTimeout:void 0,nf=typeof clearTimeout==`function`?clearTimeout:void 0,rf=typeof Promise==`function`?Promise:void 0,af=typeof queueMicrotask==`function`?queueMicrotask:rf===void 0?tf:function(e){return rf.resolve(null).then(e).catch(of)};function of(e){setTimeout(function(){throw e})}function sf(e){return e===`head`}function cf(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),Hp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Sf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Sf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ut]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Sf(e.ownerDocument.body)}n=i}while(n);Hp(t)}function lf(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 uf(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`:uf(n),dt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function df(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[ut])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=_f(e.nextSibling),e===null)break}return null}function ff(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=_f(e.nextSibling),e===null))return null;return e}function pf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=_f(e.nextSibling),e===null))return null;return e}function mf(e){return e.data===`$?`||e.data===`$~`}function hf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function gf(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 _f(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 vf=null;function yf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return _f(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function bf(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 xf(e,t,n){switch(t=Yd(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 Sf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);dt(e)}var Cf=new Map,wf=new Set;function Tf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ef=M.d;M.d={f:Df,r:Of,D:jf,C:Mf,L:Nf,m:Pf,X:If,S:Ff,M:Lf};function Df(){var e=Ef.f(),t=Du();return e||t}function Of(e){var t=pt(e);t!==null&&t.tag===5&&t.type===`form`?Es(t):Ef.r(e)}var kf=typeof document>`u`?null:document;function Af(e,t,n){var r=kf;if(r&&typeof t==`string`&&t){var i=Ft(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),wf.has(i)||(wf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Ud(t,`link`,e),gt(t),r.head.appendChild(t)))}}function jf(e){Ef.D(e),Af(`dns-prefetch`,e,null)}function Mf(e,t){Ef.C(e,t),Af(`preconnect`,e,t)}function Nf(e,t,n){Ef.L(e,t,n);var r=kf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Ft(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Ft(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Ft(n.imageSizes)+`"]`)):i+=`[href="`+Ft(e)+`"]`;var a=i;switch(t){case`style`:a=zf(e);break;case`script`:a=Uf(e)}Cf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Cf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Bf(a))||t===`script`&&r.querySelector(Wf(a))||(t=r.createElement(`link`),Ud(t,`link`,e),gt(t),r.head.appendChild(t)))}}function Pf(e,t){Ef.m(e,t);var n=kf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Ft(r)+`"][href="`+Ft(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Uf(e)}if(!Cf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),Cf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Wf(a)))return}r=n.createElement(`link`),Ud(r,`link`,e),gt(r),n.head.appendChild(r)}}}function Ff(e,t,n){Ef.S(e,t,n);var r=kf;if(r&&e){var i=ht(r).hoistableStyles,a=zf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Bf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Cf.get(a))&&qf(e,n);var c=o=r.createElement(`link`);gt(c),Ud(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,Kf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function If(e,t){Ef.X(e,t);var n=kf;if(n&&e){var r=ht(n).hoistableScripts,i=Uf(e),a=r.get(i);a||(a=n.querySelector(Wf(i)),a||(e=f({src:e,async:!0},t),(t=Cf.get(i))&&Jf(e,t),a=n.createElement(`script`),gt(a),Ud(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lf(e,t){Ef.M(e,t);var n=kf;if(n&&e){var r=ht(n).hoistableScripts,i=Uf(e),a=r.get(i);a||(a=n.querySelector(Wf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=Cf.get(i))&&Jf(e,t),a=n.createElement(`script`),gt(a),Ud(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Rf(e,t,n,r){var a=(a=fe.current)?Tf(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=zf(n.href),n=ht(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=zf(n.href);var o=ht(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(Bf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Cf.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},Cf.set(e,n),o||Hf(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=Uf(n),n=ht(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 zf(e){return`href="`+Ft(e)+`"`}function Bf(e){return`link[rel="stylesheet"][`+e+`]`}function Vf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Hf(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}),Ud(t,`link`,n),gt(t),e.head.appendChild(t))}function Uf(e){return`[src="`+Ft(e)+`"]`}function Wf(e){return`script[async]`+e}function Gf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Ft(n.href)+`"]`);if(r)return t.instance=r,gt(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),gt(r),Ud(r,`style`,a),Kf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=zf(n.href);var o=e.querySelector(Bf(a));if(o)return t.state.loading|=4,t.instance=o,gt(o),o;r=Vf(n),(a=Cf.get(a))&&qf(r,a),o=(e.ownerDocument||e).createElement(`link`),gt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Ud(o,`link`,r),t.state.loading|=4,Kf(o,n.precedence,e),t.instance=o;case`script`:return o=Uf(n.src),(a=e.querySelector(Wf(o)))?(t.instance=a,gt(a),a):(r=n,(a=Cf.get(o))&&(r=f({},n),Jf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),gt(a),Ud(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,Kf(r,n.precedence,e));return t.instance}function Kf(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 qf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Jf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Yf=null;function Xf(e,t,n){if(Yf===null){var r=new Map,i=Yf=new Map;i.set(n,r)}else i=Yf,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[ut]||a[it]||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 Zf(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 $f(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function ep(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=zf(r.href),a=t.querySelector(Bf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=rp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,gt(a);return}a=t.ownerDocument||t,r=Vf(r),(i=Cf.get(i))&&qf(r,i),a=a.createElement(`link`),gt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Ud(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=rp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var tp=0;function np(e,t){return e.stylesheets&&e.count===0&&ap(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ap(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&tp===0&&(tp=62500*Kd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ap(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>tp?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function rp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ap(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ip=null;function ap(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ip=new Map,t.forEach(op,e),ip=null,rp.call(e))}function op(e,t){if(!(t.state.loading&4)){var n=ip.get(e);if(n)var r=n.get(null);else{n=new Map,ip.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=rp.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 sp={$$typeof:C,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function cp(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=qe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qe(0),this.hiddenUpdates=qe(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 lp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new cp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ai(3,null,null,t),e.current=a,a.stateNode=e,t=oa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ra(a),e}function up(e){return e?(e=ri,e):ri}function dp(e,t,n,r,i,a){i=up(i),r.context===null?r.context=i:r.pendingContext=i,r=Ba(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Va(e,r,t),n!==null&&(Su(n,e,t),Ha(n,e,t))}function fp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function pp(e,t){fp(e,t),(e=e.alternate)&&fp(e,t)}function mp(e){if(e.tag===13||e.tag===31){var t=ei(e,67108864);t!==null&&Su(t,e,67108864),pp(e,67108864)}}function hp(e){if(e.tag===13||e.tag===31){var t=bu();t=$e(t);var n=ei(e,t);n!==null&&Su(n,e,t),pp(e,t)}}var gp=!0;function _p(e,t,n,r){var i=j.T;j.T=null;var a=M.p;try{M.p=2,yp(e,t,n,r)}finally{M.p=a,j.T=i}}function vp(e,t,n,r){var i=j.T;j.T=null;var a=M.p;try{M.p=8,yp(e,t,n,r)}finally{M.p=a,j.T=i}}function yp(e,t,n,r){if(gp){var i=bp(r);if(i===null)Nd(e,t,r,xp,n),Mp(e,r);else if(Pp(i,e,t,n,r))r.stopPropagation();else if(Mp(e,r),t&4&&-1<jp.indexOf(e)){for(;i!==null;){var a=pt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ue(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ie(o);s.entanglements[1]|=c,o&=~c}dd(a),!(Vl&6)&&(cu=R()+500,fd(0,!1))}}break;case 31:case 13:s=ei(a,2),s!==null&&Su(s,a,2),Du(),pp(a,2)}if(a=bp(r),a===null&&Nd(e,t,r,xp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Nd(e,t,r,null,n)}}function bp(e){return e=Qt(e),Sp(e)}var xp=null;function Sp(e){if(xp=null,e=ft(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(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 xp=e,null}function Cp(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(Ee()){case De:return 2;case Oe:return 8;case z:case ke:return 32;case Ae:return 268435456;default:return 32}default:return 32}}var wp=!1,Tp=null,Ep=null,Dp=null,Op=new Map,kp=new Map,Ap=[],jp=`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 Mp(e,t){switch(e){case`focusin`:case`focusout`:Tp=null;break;case`dragenter`:case`dragleave`:Ep=null;break;case`mouseover`:case`mouseout`:Dp=null;break;case`pointerover`:case`pointerout`:Op.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:kp.delete(t.pointerId)}}function Np(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=pt(t),t!==null&&mp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Pp(e,t,n,r,i){switch(t){case`focusin`:return Tp=Np(Tp,e,t,n,r,i),!0;case`dragenter`:return Ep=Np(Ep,e,t,n,r,i),!0;case`mouseover`:return Dp=Np(Dp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Op.set(a,Np(Op.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,kp.set(a,Np(kp.get(a)||null,e,t,n,r,i)),!0}return!1}function Fp(e){var t=ft(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,nt(e.priority,function(){hp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,nt(e.priority,function(){hp(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 Ip(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=bp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Zt=r,n.target.dispatchEvent(r),Zt=null}else return t=pt(n),t!==null&&mp(t),e.blockedOn=n,!1;t.shift()}return!0}function Lp(e,t,n){Ip(e)&&n.delete(t)}function Rp(){wp=!1,Tp!==null&&Ip(Tp)&&(Tp=null),Ep!==null&&Ip(Ep)&&(Ep=null),Dp!==null&&Ip(Dp)&&(Dp=null),Op.forEach(Lp),kp.forEach(Lp)}function zp(e,n){e.blockedOn===n&&(e.blockedOn=null,wp||(wp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Rp)))}var Bp=null;function Vp(e){Bp!==e&&(Bp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Bp===e&&(Bp=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(Sp(r||n)===null)continue;break}var a=pt(n);a!==null&&(e.splice(t,3),t-=3,ws(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Hp(e){function t(t){return zp(t,e)}Tp!==null&&zp(Tp,e),Ep!==null&&zp(Ep,e),Dp!==null&&zp(Dp,e),Op.forEach(t),kp.forEach(t);for(var n=0;n<Ap.length;n++){var r=Ap[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ap.length&&(n=Ap[0],n.blockedOn===null);)Fp(n),n.blockedOn===null&&Ap.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[at]||null;if(typeof a==`function`)o||Vp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[at]||null)s=o.formAction;else if(Sp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Vp(n)}}}function Up(){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 Wp(e){this._internalRoot=e}Gp.prototype.render=Wp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;dp(n,bu(),e,t,null,null)},Gp.prototype.unmount=Wp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dp(e.current,2,null,e,null,null),Du(),t[ot]=null}};function Gp(e){this._internalRoot=e}Gp.prototype.unstable_scheduleHydration=function(e){if(e){var t=tt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ap.length&&t!==0&&t<Ap[n].priority;n++);Ap.splice(n,0,e),n===0&&Fp(e)}};var Kp=n.version;if(Kp!==`19.2.4`)throw Error(i(527,Kp,`19.2.4`));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=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var qp={bundleType:0,version:`19.2.4`,rendererPackageName:`react-dom`,currentDispatcherRef:j,reconcilerVersion:`19.2.4`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Jp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jp.isDisabled&&Jp.supportsFiber)try{Ne=Jp.inject(qp),Pe=Jp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=qs,s=Js,c=Ys;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=lp(e,1,!1,null,null,n,r,null,o,s,c,Up),e[ot]=t.current,jd(e),new Wp(t)}})),y=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=v()}))(),b=u(p(),1),x=(0,b.createContext)(null);function S(){let e=(0,b.useContext)(x);if(!e)throw Error(`useTheme must be used within a ThemeProvider`);return e}function C(e,t=[]){let n=S();return(0,b.useMemo)(()=>typeof e==`function`?e(n):n,[e,...t])}function w(e,t=void 0){let n=Array.isArray(e)?e:[e];return C(e=>{let r=n.find(t=>e.tokens.has(t));return r?e.tokens.get(r):t},[e,t,...n])}var T=class{theme;#e=new Map;constructor(e){this.theme=e}has(e){return this.#e.has(e)||!!this.theme.parent?.tokens?.has(e)}setMap(e){return Object.entries(e).reduce((e,[t,n])=>e.set(t,n),this)}setValue(e,t){let n=t.reduce((e,t)=>t.startsWith(`@`)?{...e,tokens:[...e.tokens,t.slice(1)]}:(e.default=t,e),{tokens:[],default:void 0});return this.set(e,e=>e.tokens.get(n.tokens,n.default))}set(e,t){if(typeof e==`object`)return this.setMap(e);if(t===void 0)throw Error(`Value is required`);return typeof t==`string`?this.setValue(e,[t]):Array.isArray(t)?this.setValue(e,t):(this.#e.set(e,t),this)}_get(e,t){if(!this.#e.has(e))return this.theme.parent?.tokens?.has(e)?this.theme.parent.tokens._get(e,t):void 0;let n=this.#e.get(e);return typeof n==`function`&&(n=n(t)),n}get(e,t){let n=Array.isArray(e)?e:[e];for(let e of n){let t=this._get(e,this.theme);if(t!==void 0)return t}return t}array(e){return e.map(e=>this.get(e))}toJSON(){return Object.fromEntries(this.#e.keys().map(e=>[e,this.get(e)]))}},E=class e{name;static#e=Symbol();static#t;tokens=new T(this);parent;static get(){return this.#t||=new e(e.#e,`default`),this.#t}constructor(t,n){if(this.name=n,t!==e.#e)throw Error(`Theme is private and cannot be instantiated directly`)}fork(t){let n=new e(e.#e,t);return Object.defineProperty(n,"parent",{value:this,writable:!1,enumerable:!0,configurable:!1}),n}},D=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),O=s(((e,t)=>{t.exports=D()}))();function k({theme:e,...t}){return(0,O.jsx)(x.Provider,{value:e,...t})}var ee=b.createContext(void 0),A=e=>{let t=b.useContext(ee);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},te=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,O.jsx)(ee.Provider,{value:e,children:t})),ne={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},re=new class{#e=ne;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 ie(e){setTimeout(e,0)}var j=typeof window>`u`||`Deno`in globalThis;function M(){}function ae(e,t){return typeof e==`function`?e(t):e}function oe(e){return typeof e==`number`&&e>=0&&e!==1/0}function se(e,t){return Math.max(e+(t||0)-Date.now(),0)}function N(e,t){return typeof e==`function`?e(t):e}function ce(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==ue(o,t.options))return!1}else if(!fe(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 le(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(de(t.options.mutationKey)!==de(a))return!1}else if(!fe(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function ue(e,t){return(t?.queryKeyHashFn||de)(e)}function de(e){return JSON.stringify(e,(e,t)=>_e(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function fe(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(!fe(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!fe(e[r],t[r]))return!1;return!0}return!1}var pe=Object.prototype.hasOwnProperty;function me(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=ge(e)&&ge(t);if(!r&&!(_e(e)&&_e(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:pe.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=me(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function he(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function ge(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _e(e){if(!P(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!P(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function P(e){return Object.prototype.toString.call(e)===`[object Object]`}function ve(e){return new Promise(t=>{re.setTimeout(t,e)})}function F(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:me(e,t)}function ye(e){return e}function I(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function be(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var xe=Symbol();function L(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===xe?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Se(e,t){return typeof e==`function`?e(...t):!!e}function Ce(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 we=()=>j,Te=()=>we(),R=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(){}},Ee=new class extends R{#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`}},De=ie;function Oe(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=De,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 z=Oe(),ke=new class extends R{#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 Ae(e){return Math.min(1e3*2**e,3e4)}function je(e){return(e??`online`)!==`online`||ke.isOnline()}var Me=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Ne(e){let t=!1,n=0,r,i=`pending`,a,o,s=new Promise((e,t)=>{a=e,o=t});s.catch(M);let c=()=>i!==`pending`,l=t=>{if(!c()){let n=new Me(t);h(n),e.onCancel?.(n)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>Ee.isFocused()&&(e.networkMode===`always`||ke.isOnline())&&e.canRun(),p=()=>je(e.networkMode)&&e.canRun(),m=e=>{c()||(r?.(),i=`resolved`,a(e))},h=e=>{c()||(r?.(),i=`rejected`,o(e))},g=()=>new Promise(t=>{r=e=>{(c()||f())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),_=()=>{if(c())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(m).catch(r=>{if(c())return;let i=e.retry??(Te()?0:3),a=e.retryDelay??Ae,o=typeof a==`function`?a(n,r):a,s=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!s){h(r);return}n++,e.onFail?.(n,r),ve(o).then(()=>f()?void 0:g()).then(()=>{t?h(r):_()})})};return{promise:s,status:()=>i,cancel:l,continue:()=>(r?.(),s),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?_():g().then(_),s)}}var Pe=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),oe(this.gcTime)&&(this.#e=re.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Te()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(re.clearTimeout(this.#e),this.#e=void 0)}};function Fe(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=>{Ce(e,()=>t.signal,()=>n=!0)},u=L(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?be:I;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?Le:Ie,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:Ie(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 Ie(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 Le(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function Re(e,t){return t?Ie(e,t)!=null:!1}function ze(e,t){return!t||!e.getPreviousPageParam?!1:Le(e,t)!=null}var Be=class extends Pe{#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=Ue(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=Ue(this.options);e.data!==void 0&&(this.setState(He(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=F(this.state.data,e,this.options);return this.#c({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#c({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(M).catch(M):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>N(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===xe||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>N(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:!se(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){let t=this.observers.indexOf(e);t!==-1&&(this.observers.splice(t,1),this.observers.length||(this.#a&&(this.#s||this.state.fetchStatus===`paused`&&this.state.status===`pending`?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#c({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=L(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`?Fe(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#c({type:`fetch`,meta:a.fetchOptions?.meta});let o=this.#a=Ne({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Me&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#c({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#c({type:`pause`})},onContinue:()=>{this.#c({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await o.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 Me){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#c({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.#a===o&&(this.#a=void 0),this.scheduleGc()}}#c(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,...Ve(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...He(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),z.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Ve(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:je(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function He(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Ue(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var We=class extends R{#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p=new Set;constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Ke(this.#t,this.options)?this.#m():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return B(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return B(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof N(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!he(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&qe(this.#t,n,this.options,t)&&this.#m(),this.updateResult(),r&&(this.#t!==n||N(this.options.enabled,this.#t)!==N(t.enabled,this.#t)||N(this.options.staleTime,this.#t)!==N(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||N(this.options.enabled,this.#t)!==N(t.enabled,this.#t)||i!==this.#f)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return he(this.getCurrentResult(),n)||(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),Reflect.get(e,n))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t),r=()=>{},i,a=new Promise(e=>{i=e,r=this.#e.getQueryCache().subscribe(i=>{i.type===`updated`&&i.query.queryHash===n.queryHash&&n.state.data!==void 0&&(r(),e(this.createResult(n,t)))})});return Promise.race([n.fetch().then(()=>{let e=this.createResult(n,t);return i?.(e),e}).finally(()=>{r()}),a])}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#m(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(M)),t}#h(e){return!Te()&&N(this.options.enabled,this.#t)!==!1&&oe(e)}#g(){this.#b();let e=N(this.options.staleTime,this.#t);if(this.#r.isStale||!this.#h(e))return;let t=se(this.#r.dataUpdatedAt,e)+1;this.#u=re.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#f=e,this.#f!==0&&this.#h(this.#f)&&(this.#d=re.setInterval(()=>{(this.options.refetchIntervalInBackground||Ee.isFocused())&&this.#m()},this.#f))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#u!==void 0&&(re.clearTimeout(this.#u),this.#u=void 0)}#x(){this.#d!==void 0&&(re.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Ke(e,t),o=i&&qe(e,n,t,r);(a||o)&&(l={...l,...Ve(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#l?.state.data,this.#l):t.placeholderData,e!==void 0&&(m=`success`,d=F(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h){if(i&&d===a?.data&&t.select===this.#s)d=this.#c;else try{this.#s=t.select,d=t.select(d),d=F(i?.data,d,t),this.#c=d,this.#o=null}catch(e){this.#o=e}}else d===void 0&&(this.#o=null);this.#o&&(f=this.#o,d=this.#c,p=Date.now(),m=`error`,u=!1);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0;return{status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:Je(e,t),refetch:this.refetch,isEnabled:N(t.enabled,e)!==!1}}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#l=this.#t),he(t,e))return;this.#r=t;let n=(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#p.size)return!0;let r=new Set(n??this.#p);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})();z.batch(()=>{n&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}};function Ge(e,t){return N(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||N(t.retryOnMount,e)!==!1)}function Ke(e,t){return Ge(e,t)||e.state.data!==void 0&&B(e,t,t.refetchOnMount)}function B(e,t,n){if(N(t.enabled,e)!==!1&&N(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&Je(e,t)}return!1}function qe(e,t,n,r){return(e!==t||N(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Je(e,n)}function Je(e,t){return N(t.enabled,e)!==!1&&e.isStaleByTime(N(t.staleTime,e))}var Ye=class extends We{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type=`infinite`,super.setOptions(e)}getOptimisticResult(e){return e._type=`infinite`,super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`forward`}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`backward`}}})}createResult(e,t){let{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:o,isRefetchError:s}=r,c=n.fetchMeta?.fetchMore?.direction,l=o&&c===`forward`,u=i&&c===`forward`,d=o&&c===`backward`,f=i&&c===`backward`;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Re(t,n.data),hasPreviousPage:ze(t,n.data),isFetchNextPageError:l,isFetchingNextPage:u,isFetchPreviousPageError:d,isFetchingPreviousPage:f,isRefetchError:s&&!l&&!d,isRefetching:a&&!u&&!f}}},Xe=class extends Pe{#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||Ze(),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.state.status===`pending`?this.execute(this.state.variables):Promise.resolve())}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},r=this.#r=Ne({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)}),i=this.state.status===`pending`,a=!r.canStart();try{if(i)t();else{this.#i({type:`pending`,variables:e,isPaused:a}),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:a})}let o=await r.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#i({type:`success`,data:o}),o}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.#r===r&&(this.#r=void 0),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),z.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Ze(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Qe=class extends R{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,n){let r=new Xe({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=$e(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=$e(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=$e(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=$e(e);return typeof t==`string`?this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){z.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=>le(t,e))}findAll(e={}){return this.getAll().filter(t=>le(e,t))}notify(e){z.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return z.batch(()=>Promise.all(e.map(e=>e.continue().catch(M))))}};function $e(e){return e.options.scope?.id}var et=class extends R{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),he(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&de(t.mutationKey)!==de(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onSubscribe(){this.listeners.size===1&&this.#n&&(this.#n.addObserver(this),this.#i())}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Ze();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){z.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},tt=class extends R{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??ue(r,t),a=this.get(i);return a||(a=new Be({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(){z.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=>ce(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>ce(e,t)):t}notify(e){z.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){z.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){z.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},nt=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new tt,this.#t=e.mutationCache||new Qe,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Ee.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=ke.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(N(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=ae(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return z.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;z.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return z.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t},r=z.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(M).catch(M)}invalidateQueries(e,t={}){return z.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=z.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(M)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(M)}async query(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t),r=n.isStaleByTime(N(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(N(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(M).catch(M)}infiniteQuery(e){return e._type=`infinite`,this.query(e)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(M).catch(M)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return ke.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(de(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{fe(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(de(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{fe(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||=ue(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===xe&&(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()}},rt=b.createContext(!1),it=()=>b.useContext(rt);rt.Provider;function at(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ot=b.createContext(at()),V=()=>b.useContext(ot),st=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?Se(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||r)&&(t.isReset()||(e.retryOnMount=!1))},ct=e=>{b.useEffect(()=>{e.clearReset()},[e])},lt=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||Se(n,[e.error,r])),ut=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},dt=(e,t)=>e?.suspense&&t.isPending,ft=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function pt(e,t,n){let r=it(),i=V(),a=A(n),o=a.defaultQueryOptions(e),s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,ut(o),st(o,i,s),ct(i);let[l]=b.useState(()=>new t(a,o)),u=l.getOptimisticResult(o),d=!r&&c;if(b.useSyncExternalStore(b.useCallback(e=>{let t=d?l.subscribe(z.batchCalls(e)):M;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),b.useEffect(()=>{l.setOptions(o)},[o,l]),dt(o,u))throw ft(o,l,i);if(lt({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw u.error;return o.notifyOnChangeProps?u:l.trackResult(u)}function mt(e,t){return pt(e,We,t)}function ht(e){return e}function gt(e){return e}function _t(e,t){let n=A(t),r=n.getQueryCache();return b.useSyncExternalStore(b.useCallback(e=>r.subscribe(z.batchCalls(e)),[r]),()=>n.isFetching(e),()=>n.isFetching(e))}function vt(e,t){let n=A(t),[r]=b.useState(()=>new et(n,e));b.useEffect(()=>{r.setOptions(e)},[r,e]);let i=b.useSyncExternalStore(b.useCallback(e=>r.subscribe(z.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=b.useCallback((...e)=>{r.mutate(e[0],e[1]).catch(M)},[r]);if(i.error&&Se(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function yt(e,t){return pt(e,Ye,t)}var bt=null;function xt(e,...t){bt?.(e,t)}function St(e,...t){bt?.(e,t,!0)}var Ct={303:`Multiple adapter contexts detected. This might happen in monorepos.`,404:`nuqs requires an adapter to work with your framework.`,409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` (via the %s adapter) was about to load on top.",414:`Max safe URL length exceeded. Some browsers may not be able to accept this URL. Consider limiting the amount of state stored in the URL.`,429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:`Empty search params cache. Search params can't be accessed in Layouts.`,501:"Search params cache already populated. Have you called `parse` twice?",502:"`processUrlSearchParams` threw while processing key(s) `%s`. %O"};function wt(e){return`[nuqs] ${Ct[e]}
|
|
10
|
+
See https://nuqs.dev/NUQS-${e}`}function Tt(e){if(e.size===0)return``;let t=[];for(let[n,r]of e.entries()){let e=n.replace(/#/g,`%23`).replace(/&/g,`%26`).replace(/\+/g,`%2B`).replace(/=/g,`%3D`).replace(/\?/g,`%3F`);t.push(`${e}=${Et(r)}`)}return`?`+t.join(`&`)}function Et(e){return e.replace(/%/g,`%25`).replace(/\+/g,`%2B`).replace(/ /g,`+`).replace(/#/g,`%23`).replace(/&/g,`%26`).replace(/"/g,`%22`).replace(/'/g,`%27`).replace(/`/g,`%60`).replace(/</g,`%3C`).replace(/>/g,`%3E`).replace(/[\x00-\x1F]/g,e=>encodeURIComponent(e))}var Dt=`2.10.1`,Ot={};function kt(e,t){let n=Symbol.for(`nuqs.${Dt}.${e}`),r=globalThis;if(r[n]!=null)return r[n];let i=Object.isExtensible(r)?r:Ot;return i[n]??=t()}function At(e,t,n){let r=kt(e,()=>new WeakMap);return r.has(t)||r.set(t,n()),r.get(t)}var jt=At(`adapter-context`,b.createContext,()=>{let e=(0,b.createContext)({useAdapter(){throw Error(wt(404))}});return e.displayName=`NuqsAdapterContext`,e});typeof window<`u`&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==jt&&console.error(wt(303)),window.__NuqsAdapterContext=jt);function Mt(e){return({children:t,defaultOptions:n,processUrlSearchParams:r,...i})=>(0,b.createElement)(jt.Provider,{...i,value:{useAdapter:e,defaultOptions:n,processUrlSearchParams:r}},t)}function Nt(e){let t=(0,b.useContext)(jt);if(!(`useAdapter`in t))throw Error(wt(404));return t.useAdapter(e)}var Pt=()=>(0,b.useContext)(jt).defaultOptions,Ft=()=>(0,b.useContext)(jt).processUrlSearchParams;function It(){if(typeof window>`u`||!window.GestureEvent)return 50;try{let e=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(e[1])>=17?120:320}catch{return 320}}function Lt(e){return{method:`throttle`,timeMs:e}}var Rt=Lt(It());function zt(e){return e===null||Array.isArray(e)&&e.length===0}function Bt(e,t,n){if(typeof n==`string`)e.set(t,n);else{e.delete(t);for(let r of n)e.append(t,r);e.has(t)||e.set(t,``)}return e}function Vt(e){if(e instanceof URL)return e.searchParams;if(e.startsWith(`?`)){let t=e.indexOf(`#`);return new URLSearchParams(t===-1?e:e.slice(0,t))}try{return new URL(e,location.href).searchParams}catch{return new URLSearchParams(e)}}function Ht(){let e=new Map;return{on(t,n){let r=e.get(t)||[];return r.push(n),e.set(t,r),()=>this.off(t,n)},off(t,n){let r=e.get(t);r&&e.set(t,r.filter(e=>e!==n))},emit(t,n){e.get(t)?.forEach(e=>e(n))}}}function Ut(e,t,n){function r(){e(),n.removeEventListener(`abort`,a)}let i=setTimeout(r,t);function a(){clearTimeout(i),n.removeEventListener(`abort`,a)}n.addEventListener(`abort`,a)}function Wt(){let e=Promise;if(Promise.hasOwnProperty(`withResolvers`))return Promise.withResolvers();let t=()=>{},n=()=>{};return{promise:new e((e,r)=>{t=e,n=r}),resolve:t,reject:n}}function Gt(e,t){let n=t;for(let t=e.length-1;t>=0;t--){let r=e[t];if(!r)continue;let i=n;n=()=>r(i)}n()}function Kt(){return new URLSearchParams(location.search)}var qt=class{updateMap=new Map;options={history:`replace`,scroll:!1,shallow:!0};timeMs=Rt.timeMs;transitions=new Set;resolvers=null;controller=null;lastFlushedAt=0;resetQueueOnNextPush=!1;push({key:e,query:t,options:n},r=Rt.timeMs){this.resetQueueOnNextPush&&=(this.reset(),!1),xt(7,e,t,n),this.updateMap.set(e,t),n.history===`push`&&(this.options.history=`push`),n.scroll&&(this.options.scroll=!0),n.shallow===!1&&(this.options.shallow=!1),n.startTransition&&this.transitions.add(n.startTransition),(!Number.isFinite(this.timeMs)||r>this.timeMs)&&(this.timeMs=r)}getQueuedQuery(e){return this.updateMap.get(e)}getPendingPromise({getSearchParamsSnapshot:e=Kt}){return this.resolvers?.promise??Promise.resolve(e())}flush({getSearchParamsSnapshot:e=Kt,rateLimitFactor:t=1,...n},r){if(this.controller??=new AbortController,!Number.isFinite(this.timeMs))return xt(8),Promise.resolve(e());if(this.resolvers)return this.resolvers.promise;this.resolvers=Wt();let i=()=>{this.lastFlushedAt=performance.now();let[t,i]=this.applyPendingUpdates({...n,autoResetQueueOnUpdate:n.autoResetQueueOnUpdate??!0,getSearchParamsSnapshot:e},r);i===null?(this.resolvers.resolve(t),this.resetQueueOnNextPush=!0):this.resolvers.reject(t),this.resolvers=null};return Ut(()=>{let e=performance.now()-this.lastFlushedAt,n=this.timeMs,r=t*Math.max(0,n-e);xt(9,r,n,t),r===0?i():Ut(i,r,this.controller.signal)},0,this.controller.signal),this.resolvers.promise}abort(){return this.controller?.abort(),this.controller=new AbortController,this.resolvers?.resolve(new URLSearchParams),this.resolvers=null,this.reset()}reset(){let e=Array.from(this.updateMap.keys());return xt(10,JSON.stringify(Object.fromEntries(this.updateMap))),this.updateMap.clear(),this.transitions.clear(),this.options={history:`replace`,scroll:!1,shallow:!0},this.timeMs=Rt.timeMs,e}applyPendingUpdates(e,t){let{updateUrl:n,getSearchParamsSnapshot:r}=e,i=r();if(xt(11,this.updateMap.size,i.toString()),this.updateMap.size===0)return[i,null];let a=Array.from(this.updateMap.entries()),o={...this.options},s=Array.from(this.transitions);e.autoResetQueueOnUpdate&&this.reset(),xt(12,a,o);for(let[e,t]of a)t===null?i.delete(e):i=Bt(i,e,t);if(t)try{i=t(i)}catch(e){return console.error(wt(502),a.map(([e])=>e).join(),e),this.resetQueueOnNextPush=!0,[i,e]}try{return Gt(s,()=>n(i,o)),[i,null]}catch(e){return console.error(wt(429),a.map(([e])=>e).join(),e),[i,e]}}},Jt=kt(`throttle-queue`,()=>new qt);function Yt(e,t,n){let r=(0,b.useCallback)(()=>{let t=Object.fromEntries(e.map(e=>[e,n(e)]));return[JSON.stringify(t),t]},[e.join(`,`),n]),i=(0,b.useRef)(null);return i.current===null&&(i.current=r()),(0,b.useSyncExternalStore)((0,b.useCallback)(n=>{let r=e.map(e=>t(e,n));return()=>r.forEach(e=>e())},[e.join(`,`),t]),()=>{let[e,t]=r();return i.current[0]===e?i.current[1]:(i.current=[e,t],t)},()=>i.current[1])}var Xt=class{resolvers=Wt();controller=new AbortController;queuedValue=void 0;abort(){this.controller.abort(),this.queuedValue=void 0}push(e,t,n){return this.queuedValue=e,this.controller.abort(),this.controller=new AbortController,Ut(()=>{let t=this.resolvers;try{xt(13,e);let r=n(e);xt(14,this.queuedValue),this.queuedValue=void 0,this.resolvers=Wt(),r.then(e=>t.resolve(e)).catch(e=>t.reject(e))}catch(e){this.queuedValue=void 0,t.reject(e)}},t,this.controller.signal),this.resolvers.promise}},Zt=class{throttleQueue;queues=new Map;queuedQuerySync=Ht();constructor(e=new qt){this.throttleQueue=e}push(e,t,n,r){if(!Number.isFinite(t)){let e=n.getSearchParamsSnapshot??Kt;return Promise.resolve(e())}let i=e.key,a=this.queues.get(i);a||(xt(15,i),a=new Xt,this.queues.set(i,a)),xt(17,e);let o=a.push(e,t,()=>(this.throttleQueue.push(e),this.throttleQueue.flush(n,r).finally(()=>{this.queues.get(i)?.queuedValue===void 0&&(xt(16,i),this.queues.delete(i)),this.queuedQuerySync.emit(i)})));return this.queuedQuerySync.emit(i),o}abort(e){let t=this.queues.get(e);return t?(xt(18,e,t.queuedValue?.query),this.queues.delete(e),t.abort(),this.queuedQuerySync.emit(e),e=>(e.then(t.resolvers.resolve,t.resolvers.reject),e)):e=>e}abortAll(){for(let[e,t]of this.queues.entries())xt(18,e,t.queuedValue?.query),t.abort(),t.resolvers.resolve(new URLSearchParams),this.queuedQuerySync.emit(e);this.queues.clear()}getQueuedQuery(e){let t=this.queues.get(e)?.queuedValue?.query;return t===void 0?this.throttleQueue.getQueuedQuery(e):t}},Qt=kt(`debounce-controller`,()=>new Zt(Jt));function $t(e){return Yt(e,(e,t)=>Qt.queuedQuerySync.on(e,t),e=>Qt.getQueuedQuery(e))}var en=kt(`queue-reset`,()=>({mutex:0}));function tn(e=1){en.mutex=e}function nn(e=rn){en.mutex=Math.max(0,en.mutex-1),!(en.mutex>0)&&e()}function rn(){xt(19),Qt.abortAll(),Jt.abort().forEach(e=>Qt.queuedQuerySync.emit(e))}function an(e,t){return e===t}function on(e,t){return e===t?!0:e===null||t===null||typeof e==`string`||typeof t==`string`||e.length!==t.length?!1:e.every((e,n)=>e===t[n])}function sn(e,t,n){return r=>{if(!(t.length===0||t.some(t=>!on(r.getAll(t),e.getAll(t)))))return xt(22,t.join(`,`),r),r;let i=cn(e,t,n);return xt(23,t.join(`,`),r,i),i}}function cn(e,t,n){if(t.length===0)return e;let r=n?new URLSearchParams(e):e;for(let n of Array.from(e.keys()))t.includes(n)||r.delete(n);return r}function ln(e){return kt(`history-emitter.${e}`,()=>Ht())}var un=`__nuqs__`;function dn(e){return typeof history>`u`?!1:history.nuqs?.version&&history.nuqs.version!==`2.10.1`?(console.error(wt(409),history.nuqs.version,Dt,e),!1):!history.nuqs?.adapters?.includes(e)}function fn(e){history.nuqs=history.nuqs??{version:`2.10.1`,adapters:[]},history.nuqs.adapters.push(e)}function pn(e,t){if(!dn(t))return;let n=typeof location==`object`?location.search:``;e.on(`update`,e=>{let t=e.toString();n=t.length?`?`+t:``}),window.addEventListener(`popstate`,()=>{n=location.search,rn()}),xt(21,Dt,t);function r(t){nn();try{if(new URL(t,location.href).search===n)return}catch{}try{e.emit(`update`,Vt(t))}catch(e){console.error(e)}}let i=history.pushState,a=history.replaceState;history.pushState=function(e,t,n){i.call(history,e,``,n),n&&t!==`__nuqs__`&&r(n)},history.replaceState=function(e,t,n){a.call(history,e,``,n),n&&t!==`__nuqs__`&&r(n)},fn(t)}function mn({adapter:e,useNavigate:t,useSearchParams:n}){let r=ln(e);function i(n){let i=t();return{searchParams:a(n),updateUrl:(0,b.useCallback)((t,n)=>{(0,b.startTransition)(()=>{r.emit(`update`,t)});let a=new URL(location.href);a.search=Tt(t),xt(20,e,a);let o=n.history===`push`?history.pushState:history.replaceState;tn(n.shallow?1:2),o.call(history,history.state,un,a);let s;if(n.shallow===!1){let e=i({hash:a.hash,search:a.search},{replace:!0,preventScrollReset:!0,state:history.state?.usr});e instanceof Promise&&(s=e)}return n.scroll&&window.scrollTo(0,0),s},[i]),autoResetQueueOnUpdate:!1}}function a(e=[]){let[t]=n(typeof location>`u`?new URLSearchParams:new URLSearchParams(location.search)),[i,a]=(0,b.useState)(()=>typeof location>`u`?cn(t,e,!0):cn(new URLSearchParams(location.search),e,!1));return(0,b.useEffect)(()=>{function t(){(0,b.startTransition)(()=>{a(sn(new URLSearchParams(location.search),e,!1))})}function n(t){(0,b.startTransition)(()=>{a(sn(t,e,!0))})}r.on(`update`,n),window.addEventListener(`popstate`,t);let o=sn(new URLSearchParams(location.search),e,!1)(i);return o.toString()!==i.toString()&&a(o),()=>{r.off(`update`,n),window.removeEventListener(`popstate`,t)}},[e.join(`&`)]),i}return pn(r,e),{NuqsAdapter:Mt(i),useOptimisticSearchParams:a}}var hn=`modulepreload`,gn=function(e,t){return new URL(e,t).href},_n={},vn=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=function(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))},i=function(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href},a=document.getElementsByTagName(`link`),o=document.querySelector(`meta[property=csp-nonce]`),s=o?.nonce||o?.getAttribute(`nonce`);r=e(t.map(e=>{if(e=gn(e,n),e=i(e),e in _n)return;_n[e]=!0;let t=e.endsWith(`.css`);for(let n=a.length-1;n>=0;n--){let r=a[n];if(r.href===e&&(!t||r.rel===`stylesheet`))return}let r=document.createElement(`link`);if(r.rel=t?`stylesheet`:hn,t||(r.as=`script`),r.crossOrigin=``,r.href=e,s&&r.setAttribute(`nonce`,s),document.head.appendChild(r),t)return new Promise((t,n)=>{r.addEventListener(`load`,t),r.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${e}`)))})}))}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)})},yn=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,bn=/^[\\/]{2}/;function xn(e,t){return t+e.replace(/\\/g,`/`)}var Sn=`popstate`;function Cn(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function wn(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return kn(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:An(t)}return Mn(t,n,null,e)}function Tn(e,t){if(e===!1||e==null)throw Error(t)}function En(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function Dn(){return Math.random().toString(36).substring(2,10)}function On(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function kn(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?jn(t):t,state:n,key:t&&t.key||r||Dn(),mask:i}}function An({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function jn(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Mn(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=Cn(e)?e:kn(h.location,e,t);n&&n(r,e),l=u()+1;let d=On(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=Cn(e)?e:kn(h.location,e,t);n&&n(r,e),l=u();let i=On(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return Nn(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(Sn,d),c=e,()=>{i.removeEventListener(Sn,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function Nn(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),Tn(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:An(t);return i=i.replace(/ $/,`%20`),!n&&bn.test(i)&&(i=r+i),new URL(i,r)}function Pn(e,t,n=`/`){return Fn(e,t,n,!1)}function Fn(e,t,n,r,i){let a=er((typeof t==`string`?jn(t):t).pathname||`/`,n);if(a==null)return null;let o=i??In(e),s=null,c=$n(a);for(let e=0;s==null&&e<o.length;++e)s=Yn(o[e],c,r);return s}function In(e){let t=Ln(e);return zn(t),t}function Ln(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;Tn(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=cr([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(Tn(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),Ln(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:qn(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=Qn(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of Rn(e.path))a(e,t,!0,n)}),t}function Rn(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=Rn(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function zn(e){e.sort((e,t)=>e.score===t.score?Jn(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var Bn=/^:[\w-]+$/,Vn=3,Hn=2,Un=1,Wn=10,Gn=-2,Kn=e=>e===`*`;function qn(e,t){let n=e.split(`/`),r=n.length;return n.some(Kn)&&(r+=Gn),t&&(r+=Hn),n.filter(e=>!Kn(e)).reduce((e,t)=>e+(Bn.test(t)?Vn:t===``?Un:Wn),r)}function Jn(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function Yn(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?Zn(u,l,s.matcher,s.compiledParams):Xn(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Xn({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:cr([a,d.pathname]),pathnameBase:ur(cr([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=cr([a,d.pathnameBase]))}return o}function Xn(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Qn(e.path,e.caseSensitive,e.end);return Zn(e,t,n,r)}function Zn(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=lr(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=lr(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Qn(e,t=!1,n=!0){En(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function $n(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return En(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function er(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function tr(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?jn(e):e,a;return n?(n=sr(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?nr(n.substring(1),`/`):nr(n,t)):a=t,{pathname:a,search:dr(r),hash:fr(i)}}function nr(e,t){let n=lr(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function rr(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function ir(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function ar(e){let t=ir(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function or(e,t,n,r=!1){let i;typeof e==`string`?i=jn(e):(i={...e},Tn(!i.pathname||!i.pathname.includes(`?`),rr(`?`,`pathname`,`search`,i)),Tn(!i.pathname||!i.pathname.includes(`#`),rr(`#`,`pathname`,`hash`,i)),Tn(!i.search||!i.search.includes(`#`),rr(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=tr(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var sr=e=>e.replace(/[\\/]{2,}/g,`/`),cr=e=>sr(e.join(`/`));function lr(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var ur=e=>lr(e).replace(/^\/*/,`/`),dr=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,fr=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,pr=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function mr(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function hr(e){return cr(e.map(e=>e.route.path).filter(Boolean))||`/`}var gr=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function _r(e,t){let n=e;if(typeof n!=`string`||!yn.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(gr)try{let e=new URL(window.location.href),r=bn.test(n)?new URL(xn(n,e.protocol)):new URL(n),a=er(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{En(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var vr=new URL(`http://localhost`);function yr(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),vr)}catch{return vr}}function br(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function xr(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function Sr(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!br(i,n),s=!br(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!xr(e,i)||!br(i,a)))throw Error(`External navigation is not allowed`)}var Cr=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(Cr);var wr=[`GET`,...Cr];new Set(wr);var Tr=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function Er(e){try{return Tr.includes(new URL(e).protocol)}catch{return!1}}var Dr=b.createContext(null);Dr.displayName=`DataRouter`;var Or=b.createContext(null);Or.displayName=`DataRouterState`;var kr=b.createContext(!1);function Ar(){return b.useContext(kr)}var jr=b.createContext({isTransitioning:!1});jr.displayName=`ViewTransition`;var Mr=b.createContext(new Map);Mr.displayName=`Fetchers`;var Nr=b.createContext(null);Nr.displayName=`Await`;var Pr=b.createContext(null);Pr.displayName=`Navigation`;var Fr=b.createContext(null);Fr.displayName=`Location`;var Ir=b.createContext({outlet:null,matches:[],isDataRoute:!1});Ir.displayName=`Route`;var Lr=b.createContext(null);Lr.displayName=`RouteError`;var Rr=`REACT_ROUTER_ERROR`,zr=`REDIRECT`,Br=`ROUTE_ERROR_RESPONSE`;function Vr(e){if(e.startsWith(`${Rr}:${zr}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function Hr(e){if(e.startsWith(`${Rr}:${Br}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new pr(t.status,t.statusText,t.data)}catch{}}function Ur(e,{relative:t}={}){Tn(Wr(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=b.useContext(Pr),{hash:i,pathname:a,search:o}=Zr(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:cr([n,a])),r.createHref({pathname:s,search:o,hash:i})}function Wr(){return b.useContext(Fr)!=null}function Gr(){return Tn(Wr(),`useLocation() may be used only in the context of a <Router> component.`),b.useContext(Fr).location}var Kr=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function qr(e){b.useContext(Pr).static||b.useLayoutEffect(e)}function Jr(){let{isDataRoute:e}=b.useContext(Ir);return e?mi():Yr()}function Yr(){Tn(Wr(),`useNavigate() may be used only in the context of a <Router> component.`);let e=b.useContext(Dr),{basename:t,navigator:n}=b.useContext(Pr),{matches:r}=b.useContext(Ir),{pathname:i}=Gr(),a=JSON.stringify(ar(r)),o=b.useRef(!1);return qr(()=>{o.current=!0}),b.useCallback((r,s={})=>{if(En(o.current,Kr),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=or(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:cr([t,c.pathname])),Sr(typeof r==`string`?r:An(r),n.createHref(c),yr(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}b.createContext(null);function Xr(){let{matches:e}=b.useContext(Ir);return e[e.length-1]?.params??{}}function Zr(e,{relative:t}={}){let{matches:n}=b.useContext(Ir),{pathname:r}=Gr(),i=JSON.stringify(ar(n));return b.useMemo(()=>or(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Qr(e,t){return $r(e,t)}function $r(e,t,n){Tn(Wr(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=b.useContext(Pr),{matches:i}=b.useContext(Ir),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;gi(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
11
|
+
|
|
12
|
+
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=Gr(),d;if(t){let e=typeof t==`string`?jn(t):t;Tn(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):Pn(e,{pathname:p});En(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),En(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=oi(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:cr([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:cr([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?b.createElement(Fr.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function ei(){let e=pi(),t=mr(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=b.createElement(b.Fragment,null,b.createElement(`p`,null,`💿 Hey developer 👋`),b.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,b.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,b.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),b.createElement(b.Fragment,null,b.createElement(`h2`,null,`Unexpected Application Error!`),b.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?b.createElement(`pre`,{style:i},n):null,o)}var ti=b.createElement(ei,null),ni=class extends b.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=Hr(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:b.createElement(Ir.Provider,{value:this.props.routeContext},b.createElement(Lr.Provider,{value:e,children:this.props.component}));return this.context?b.createElement(ii,{error:e},t):t}};ni.contextType=kr;var ri=new WeakMap;function ii({children:e,error:t}){let{basename:n,navigator:r}=b.useContext(Pr);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Vr(t.digest);if(e){let i=ri.get(t);if(i)throw i;let a=_r(e.location,n),o=a.absoluteURL||a.to;if(Sr(e.location,o,yr(r),`allow-explicit`),Er(o))throw Error(`Invalid redirect location`);if(gr&&!ri.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw ri.set(t,n),n}}return b.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function ai({routeContext:e,match:t,children:n}){let r=b.useContext(Dr);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),b.createElement(Ir.Provider,{value:e},n)}function oi(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);Tn(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:hr(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||ti,o&&(s<0&&c===0?(gi(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?b.createElement(n.route.Component,null):n.route.element?n.route.element:e,b.createElement(ai,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?b.createElement(ni,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function si(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ci(e){let t=b.useContext(Dr);return Tn(t,si(e)),t}function li(e){let t=b.useContext(Or);return Tn(t,si(e)),t}function ui(e){let t=b.useContext(Ir);return Tn(t,si(e)),t}function di(e){let t=ui(e),n=t.matches[t.matches.length-1];return Tn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function fi(){return di(`useRouteId`)}function pi(){let e=b.useContext(Lr),t=li(`useRouteError`),n=di(`useRouteError`);return e===void 0?t.errors?.[n]:e}function mi(){let{router:e}=ci(`useNavigate`),t=di(`useNavigate`),n=b.useRef(!1);return qr(()=>{n.current=!0}),b.useCallback(async(r,i={})=>{En(n.current,Kr),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var hi={};function gi(e,t,n){!t&&!hi[e]&&(hi[e]=!0,En(!1,n))}b.memo(_i);function _i({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return $r(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function vi(e){Tn(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function yi({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){Tn(!Wr(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=b.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=jn(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=b.useMemo(()=>{let e=er(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return En(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:b.createElement(Pr.Provider,{value:c},b.createElement(Fr.Provider,{children:t,value:h}))}function bi({children:e,location:t}){return Qr(xi(e),t)}b.Component;function xi(e,t=[]){let n=[];return b.Children.forEach(e,(e,r)=>{if(!b.isValidElement(e))return;let i=[...t,r];if(e.type===b.Fragment){n.push.apply(n,xi(e.props.children,i));return}Tn(e.type===vi,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Tn(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=xi(e.props.children,i)),n.push(a)}),n}var Si=`get`,Ci=`application/x-www-form-urlencoded`;function wi(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Ti(e){return wi(e)&&e.tagName.toLowerCase()===`button`}function Ei(e){return wi(e)&&e.tagName.toLowerCase()===`form`}function Di(e){return wi(e)&&e.tagName.toLowerCase()===`input`}function Oi(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ki(e,t){return e.button===0&&(!t||t===`_self`)&&!Oi(e)}function Ai(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function ji(e,t){let n=Ai(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var Mi=null;function Ni(){if(Mi===null)try{new FormData(document.createElement(`form`),0),Mi=!1}catch{Mi=!0}return Mi}var Pi=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Fi(e){return e!=null&&!Pi.has(e)?(En(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ci}"`),null):e}function Ii(e,t){let n,r,i,a,o;if(Ei(e)){let o=e.getAttribute(`action`);r=o?er(o,t):null,n=e.getAttribute(`method`)||Si,i=Fi(e.getAttribute(`enctype`))||Ci,a=new FormData(e)}else if(Ti(e)||Di(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?er(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||Si,i=Fi(e.getAttribute(`formenctype`))||Fi(o.getAttribute(`enctype`))||Ci,a=new FormData(o,e),!Ni()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(wi(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=Si,r=null,i=Ci,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function Li(e,t){if(e===!1||e==null)throw Error(t)}function Ri(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&er(i.pathname,t)===`/`?`${lr(t)}/_root.${r}`:`${lr(i.pathname)}.${r}`,i}async function zi(e,t){if(e.id in t)return t[e.id];try{let n=await vn(()=>import(e.module),[],import.meta.url);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Bi(e){return e!=null&&typeof e.page==`string`}function Vi(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function Hi(e,t,n){return qi((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await zi(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Vi).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Ui(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Wi(e,t,{includeHydrateFallback:n}={}){return Gi(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function Gi(e){return[...new Set(e)]}function Ki(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function qi(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Bi(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Ki(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function Ji(){let e=b.useContext(Dr);return Li(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Yi(){let e=b.useContext(Or);return Li(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var Xi=b.createContext(void 0);Xi.displayName=`FrameworkContext`;function Zi(){let e=b.useContext(Xi);return Li(e,`You must render this element inside a <HydratedRouter> element`),e}function Qi(e,t){let n=b.useContext(Xi),[r,i]=b.useState(!1),[a,o]=b.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=b.useRef(null);b.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),b.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:$i(s,p),onBlur:$i(c,m),onMouseEnter:$i(l,p),onMouseLeave:$i(u,m),onTouchStart:$i(d,p)}]:[a,f,{}]:[!1,f,{}]}function $i(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function ea({page:e,...t}){let n=Ar(),{nonce:r}=Zi(),{router:i}=Ji(),a=b.useMemo(()=>Pn(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?b.createElement(na,{page:e,matches:a,...t}):b.createElement(ra,{page:e,matches:a,...t})):null}function ta(e){let{manifest:t,routeModules:n}=Zi(),[r,i]=b.useState([]);return b.useEffect(()=>{let r=!1;return Hi(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function na({page:e,matches:t,...n}){let r=Gr(),{future:i}=Zi(),{basename:a}=Ji(),o=b.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Ri(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return b.createElement(b.Fragment,null,o.map(e=>b.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function ra({page:e,matches:t,...n}){let r=Gr(),{future:i,manifest:a,routeModules:o}=Zi(),{basename:s}=Ji(),{loaderData:c,matches:l}=Yi(),u=b.useMemo(()=>Ui(e,t,l,a,r,`data`),[e,t,l,a,r]),d=b.useMemo(()=>Ui(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=b.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=Ri(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=b.useMemo(()=>Wi(d,a),[d,a]),m=ta(d);return b.createElement(b.Fragment,null,f.map(e=>b.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>b.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>b.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function ia(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}b.Component;var aa=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{aa&&(window.__reactRouterVersion=`7.18.3`)}catch{}function oa({basename:e,children:t,useTransitions:n,window:r}){let i=b.useRef();i.current??=wn({window:r,v5Compat:!0});let a=i.current,[o,s]=b.useState({action:a.action,location:a.location}),c=b.useCallback(e=>{n===!1?s(e):b.startTransition(()=>s(e))},[n]);return b.useLayoutEffect(()=>a.listen(c),[a,c]),b.createElement(yi,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}var sa=b.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=b.useContext(Pr),v=typeof l==`string`&&yn.test(l),y=_r(l,h);l=y.to;let x=Ur(l,{relative:r}),S=Gr(),C=null;if(o){let e=or(o,[],S.mask?S.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:cr([h,e.pathname])),C=g.createHref(e)}let[w,T,E]=Qi(n,p),D=fa(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function O(t){e&&e(t),t.defaultPrevented||D(t)}let k=!(y.isExternal||i),ee=b.createElement(`a`,{...p,...E,href:(k?C:void 0)||y.absoluteURL||x,onClick:k?O:e,ref:ia(m,T),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return w&&!v?b.createElement(b.Fragment,null,ee,b.createElement(ea,{page:x})):ee});sa.displayName=`Link`;var ca=b.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=Zr(a,{relative:c.relative}),d=Gr(),f=b.useContext(Or),{navigator:p,basename:m}=b.useContext(Pr),h=f!=null&&va(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=er(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,x=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,S=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),C={isActive:x,isPending:S,isTransitioning:h},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return b.createElement(sa,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});ca.displayName=`NavLink`;var la=b.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=Si,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=b.useContext(Pr),g=ga(),_=_a(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&yn.test(s);return b.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?b.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});la.displayName=`Form`;function ua(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function da(e){let t=b.useContext(Dr);return Tn(t,ua(e)),t}function fa(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=Jr(),d=Gr(),f=Zr(e,{relative:o});return b.useCallback(p=>{if(ki(p,t)){p.preventDefault();let t=n===void 0?An(d)===An(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?b.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function pa(e){En(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=b.useRef(Ai(e)),n=b.useRef(!1),r=Gr(),i=b.useMemo(()=>ji(r.search,n.current?null:t.current),[r.search]),a=Jr();return[i,b.useCallback((e,t)=>{let r=Ai(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var ma=0,ha=()=>`__${String(++ma)}__`;function ga(){let{router:e}=da(`useSubmit`),{basename:t}=b.useContext(Pr),n=fi(),r=e.fetch,i=e.navigate;return b.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Ii(e,t);if(a.navigate===!1){let e=a.fetcherKey||ha();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function _a(e,{relative:t}={}){let{basename:n}=b.useContext(Pr),r=b.useContext(Ir);Tn(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Zr(e||`.`,{relative:t})},o=Gr();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:cr([n,a.pathname])),An(a)}function va(e,{relative:t}={}){let n=b.useContext(jr);Tn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=da(`useViewTransitionState`),i=Zr(e,{relative:t});if(!n.isTransitioning)return!1;let a=er(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=er(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Xn(i.pathname,o)!=null||Xn(i.pathname,a)!=null}var ya=mn({adapter:`react-router-v7`,useNavigate:Jr,useSearchParams:pa}),ba=ya.NuqsAdapter;ya.useOptimisticSearchParams;var xa=class extends Error{value;styleOption;constructor(e,t){super(`Invalid value ${e} (type ${typeof e}) for style option ${Array.from(t.names).join(`, `)}`),this.value=e,this.styleOption=t}},Sa=class e{names=[];#e=[];#t=new Map;#n=void 0;#r=void 0;#i=new Set;get hasDefault(){return this.#n!==void 0}metadata=new Map;" type:name";" type:value";" type:input";" type:output";is(e){return this.#i.has(e)}*choices(){for(let e of this.#e)yield e;for(let[e]of this.#t)yield e}*values(){for(let e of this.choices())yield e;for(let e of this.#i)yield e}constructor(e){e&&(Array.isArray(e)?this.names.push(...e):this.names.push(e))}*[Symbol.iterator](){for(let e of this.names)yield e}use(e){return e&&typeof e==`function`&&this.#i.add(e),this}alias(e){let t=Array.isArray(e)?e:[e];return this.names.push(...t),this}choice(e){return this.#e.push(...e),this}map(e){if(!Array.isArray(e))return this.map(Object.entries(e));for(let[t,n]of e)this.#t.set(t,n);return this}setDefault(e){return this.#n=e,this}fork(...t){let n=new e;return t.forEach(e=>n.alias(e)),n.#e=this.#e.slice(),n.#t=new Map(this.#t),n.#n=this.#n,n.#r=this.#r,n.#i=new Set(this.#i),n}setToStyle(e){return this.#r=e,this}_toStyle(e,t){let n=e;if(!this.#r)throw Error(`StyleOption ${this.names} has no toStyle function`);if(typeof n==`string`&&t.tokens.has(n)&&(n=t.tokens.get(n)),this.#t.has(n)){let e=this.#t.get(n);n=typeof e==`function`?e(t):e}if(typeof n==`object`||this.is(String)&&typeof n==`string`||this.is(Number)&&typeof n==`number`||this.#e.includes(n))return this.#r(n,t);throw new xa(n,this)}toDefault(e){if(!this.hasDefault)throw Error(`StyleOption ${this.names} has no default value`);let t;return t=typeof this.#n==`function`?this.#n(e):this.#n,this._toStyle(t,e)}toStyle(e,t){return this._toStyle(e,t)}},Ca=e=>e.disabled||Array.isArray(e.accessibilityStates)&&e.accessibilityStates.indexOf(`disabled`)>-1,wa={adjustable:`slider`,button:`button`,header:`heading`,image:`img`,imagebutton:null,keyboardkey:null,label:null,link:`link`,none:`presentation`,search:`search`,summary:`region`,text:null},Ta=e=>{var t=e.accessibilityRole,n=e.role||t;if(n){var r=wa[n];if(r!==null)return r||n}},Ea={article:`article`,banner:`header`,blockquote:`blockquote`,button:`button`,code:`code`,complementary:`aside`,contentinfo:`footer`,deletion:`del`,emphasis:`em`,figure:`figure`,insertion:`ins`,form:`form`,list:`ul`,listitem:`li`,main:`main`,navigation:`nav`,paragraph:`p`,region:`section`,strong:`strong`},Da={},Oa={isDisabled:Ca,propsToAccessibilityComponent:function(e){if(e===void 0&&(e=Da),(e.role||e.accessibilityRole)===`label`)return`label`;var t=Ta(e);if(t){if(t===`heading`){var n=e.accessibilityLevel||e[`aria-level`];return n==null?`h1`:`h`+n}return Ea[t]}},propsToAriaRole:Ta};function ka(e){"@babel/helpers - typeof";return ka=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ka(e)}function Aa(e,t){if(ka(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(ka(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ja(e){var t=Aa(e,`string`);return ka(t)==`symbol`?t:t+``}function Ma(e,t,n){return(t=ja(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Na(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Na(Object(n),!0).forEach(function(t){Ma(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Na(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pa(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Fa,Ia,La,Ra=o((()=>{Fa={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},Ia=[`ms`,`Moz`,`O`,`Webkit`],La=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Object.keys(Fa).forEach(e=>{Ia.forEach(t=>{Fa[La(t,e)]=Fa[e]})})})),za,Ba=o((()=>{za=e=>e===`currentcolor`||e===`currentColor`||e===`inherit`||e.indexOf(`var(`)===0})),Va=s(((e,t)=>{function n(e){if(typeof e==`number`)return e>>>0===e&&e>=0&&e<=4294967295?e:null;if(typeof e!=`string`)return null;let t=f(),n;return(n=t.hex6.exec(e))?parseInt(n[1]+`ff`,16)>>>0:_(e)??((n=t.rgb.exec(e))?(p(n[1])<<24|p(n[2])<<16|p(n[3])<<8|255)>>>0:(n=t.rgba.exec(e))?n[6]===void 0?(p(n[2])<<24|p(n[3])<<16|p(n[4])<<8|h(n[5]))>>>0:(p(n[6])<<24|p(n[7])<<16|p(n[8])<<8|h(n[9]))>>>0:(n=t.hex3.exec(e))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+`ff`,16)>>>0:(n=t.hex8.exec(e))?parseInt(n[1],16)>>>0:(n=t.hex4.exec(e))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=t.hsl.exec(e))?(i(m(n[1]),g(n[2]),g(n[3]))|255)>>>0:(n=t.hsla.exec(e))?n[6]===void 0?(i(m(n[2]),g(n[3]),g(n[4]))|h(n[5]))>>>0:(i(m(n[6]),g(n[7]),g(n[8]))|h(n[9]))>>>0:(n=t.hwb.exec(e))?(a(m(n[1]),g(n[2]),g(n[3]))|255)>>>0:null)}function r(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 i(e,t,n){let i=n<.5?n*(1+t):n+t-n*t,a=2*n-i,o=r(a,i,e+1/3),s=r(a,i,e),c=r(a,i,e-1/3);return Math.round(o*255)<<24|Math.round(s*255)<<16|Math.round(c*255)<<8}function a(e,t,n){if(t+n>=1){let e=Math.round(t*255/(t+n));return e<<24|e<<16|e<<8}let i=r(0,1,e+1/3)*(1-t-n)+t,a=r(0,1,e)*(1-t-n)+t,o=r(0,1,e-1/3)*(1-t-n)+t;return Math.round(i*255)<<24|Math.round(a*255)<<16|Math.round(o*255)<<8}var o=`[-+]?\\d*\\.?\\d+`,s=o+`%`;function c(...e){return`\\(\\s*(`+e.join(`)\\s*,?\\s*(`)+`)\\s*\\)`}function l(...e){return`\\(\\s*(`+e.slice(0,e.length-1).join(`)\\s*,?\\s*(`)+`)\\s*/\\s*(`+e[e.length-1]+`)\\s*\\)`}function u(...e){return`\\(\\s*(`+e.join(`)\\s*,\\s*(`)+`)\\s*\\)`}var d;function f(){return d===void 0&&(d={rgb:RegExp(`rgb`+c(o,o,o)),rgba:RegExp(`rgba(`+u(o,o,o,o)+`|`+l(o,o,o,o)+`)`),hsl:RegExp(`hsl`+c(o,s,s)),hsla:RegExp(`hsla(`+u(o,s,s,o)+`|`+l(o,s,s,o)+`)`),hwb:RegExp(`hwb`+c(o,s,s)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/}),d}function p(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function m(e){return(parseFloat(e)%360+360)%360/360}function h(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function g(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function _(e){switch(e){case`transparent`:return 0;case`aliceblue`:return 4042850303;case`antiquewhite`:return 4209760255;case`aqua`:return 16777215;case`aquamarine`:return 2147472639;case`azure`:return 4043309055;case`beige`:return 4126530815;case`bisque`:return 4293182719;case`black`:return 255;case`blanchedalmond`:return 4293643775;case`blue`:return 65535;case`blueviolet`:return 2318131967;case`brown`:return 2771004159;case`burlywood`:return 3736635391;case`burntsienna`:return 3934150143;case`cadetblue`:return 1604231423;case`chartreuse`:return 2147418367;case`chocolate`:return 3530104575;case`coral`:return 4286533887;case`cornflowerblue`:return 1687547391;case`cornsilk`:return 4294499583;case`crimson`:return 3692313855;case`cyan`:return 16777215;case`darkblue`:return 35839;case`darkcyan`:return 9145343;case`darkgoldenrod`:return 3095792639;case`darkgray`:return 2846468607;case`darkgreen`:return 6553855;case`darkgrey`:return 2846468607;case`darkkhaki`:return 3182914559;case`darkmagenta`:return 2332068863;case`darkolivegreen`:return 1433087999;case`darkorange`:return 4287365375;case`darkorchid`:return 2570243327;case`darkred`:return 2332033279;case`darksalmon`:return 3918953215;case`darkseagreen`:return 2411499519;case`darkslateblue`:return 1211993087;case`darkslategray`:return 793726975;case`darkslategrey`:return 793726975;case`darkturquoise`:return 13554175;case`darkviolet`:return 2483082239;case`deeppink`:return 4279538687;case`deepskyblue`:return 12582911;case`dimgray`:return 1768516095;case`dimgrey`:return 1768516095;case`dodgerblue`:return 512819199;case`firebrick`:return 2988581631;case`floralwhite`:return 4294635775;case`forestgreen`:return 579543807;case`fuchsia`:return 4278255615;case`gainsboro`:return 3705462015;case`ghostwhite`:return 4177068031;case`gold`:return 4292280575;case`goldenrod`:return 3668254975;case`gray`:return 2155905279;case`green`:return 8388863;case`greenyellow`:return 2919182335;case`grey`:return 2155905279;case`honeydew`:return 4043305215;case`hotpink`:return 4285117695;case`indianred`:return 3445382399;case`indigo`:return 1258324735;case`ivory`:return 4294963455;case`khaki`:return 4041641215;case`lavender`:return 3873897215;case`lavenderblush`:return 4293981695;case`lawngreen`:return 2096890111;case`lemonchiffon`:return 4294626815;case`lightblue`:return 2916673279;case`lightcoral`:return 4034953471;case`lightcyan`:return 3774873599;case`lightgoldenrodyellow`:return 4210742015;case`lightgray`:return 3553874943;case`lightgreen`:return 2431553791;case`lightgrey`:return 3553874943;case`lightpink`:return 4290167295;case`lightsalmon`:return 4288707327;case`lightseagreen`:return 548580095;case`lightskyblue`:return 2278488831;case`lightslategray`:return 2005441023;case`lightslategrey`:return 2005441023;case`lightsteelblue`:return 2965692159;case`lightyellow`:return 4294959359;case`lime`:return 16711935;case`limegreen`:return 852308735;case`linen`:return 4210091775;case`magenta`:return 4278255615;case`maroon`:return 2147483903;case`mediumaquamarine`:return 1724754687;case`mediumblue`:return 52735;case`mediumorchid`:return 3126187007;case`mediumpurple`:return 2473647103;case`mediumseagreen`:return 1018393087;case`mediumslateblue`:return 2070474495;case`mediumspringgreen`:return 16423679;case`mediumturquoise`:return 1221709055;case`mediumvioletred`:return 3340076543;case`midnightblue`:return 421097727;case`mintcream`:return 4127193855;case`mistyrose`:return 4293190143;case`moccasin`:return 4293178879;case`navajowhite`:return 4292783615;case`navy`:return 33023;case`oldlace`:return 4260751103;case`olive`:return 2155872511;case`olivedrab`:return 1804477439;case`orange`:return 4289003775;case`orangered`:return 4282712319;case`orchid`:return 3664828159;case`palegoldenrod`:return 4008225535;case`palegreen`:return 2566625535;case`paleturquoise`:return 2951671551;case`palevioletred`:return 3681588223;case`papayawhip`:return 4293907967;case`peachpuff`:return 4292524543;case`peru`:return 3448061951;case`pink`:return 4290825215;case`plum`:return 3718307327;case`powderblue`:return 2967529215;case`purple`:return 2147516671;case`rebeccapurple`:return 1714657791;case`red`:return 4278190335;case`rosybrown`:return 3163525119;case`royalblue`:return 1097458175;case`saddlebrown`:return 2336560127;case`salmon`:return 4202722047;case`sandybrown`:return 4104413439;case`seagreen`:return 780883967;case`seashell`:return 4294307583;case`sienna`:return 2689740287;case`silver`:return 3233857791;case`skyblue`:return 2278484991;case`slateblue`:return 1784335871;case`slategray`:return 1887473919;case`slategrey`:return 1887473919;case`snow`:return 4294638335;case`springgreen`:return 16744447;case`steelblue`:return 1182971135;case`tan`:return 3535047935;case`teal`:return 8421631;case`thistle`:return 3636451583;case`tomato`:return 4284696575;case`turquoise`:return 1088475391;case`violet`:return 4001558271;case`wheat`:return 4125012991;case`white`:return 4294967295;case`whitesmoke`:return 4126537215;case`yellow`:return 4294902015;case`yellowgreen`:return 2597139199}return null}t.exports=n})),Ha,Ua,Wa=o((()=>{Ha=u(Va()),Ua=e=>{if(e==null)return e;var t=(0,Ha.default)(e);if(t!=null)return t=(t<<24|t>>>8)>>>0,t}})),Ga,Ka=o((()=>{Ba(),Wa(),Ga=function(e,t){if(t===void 0&&(t=1),e!=null){if(typeof e==`string`&&za(e))return e;var n=Ua(e);if(n!=null){var r=n>>16&255,i=n>>8&255,a=n&255,o=((n>>24&255)/255*t).toFixed(2);return`rgba(`+r+`,`+i+`,`+a+`,`+o+`)`}}}}));function qa(e,t){var n=e;return(t==null||!Fa[t])&&typeof e==`number`?n=e+`px`:t!=null&&Ja[t]&&(n=Ga(e)),n}var Ja,Ya=o((()=>{Ra(),Ka(),Ja={backgroundColor:!0,borderColor:!0,borderTopColor:!0,borderRightColor:!0,borderBottomColor:!0,borderLeftColor:!0,color:!0,shadowColor:!0,textDecorationColor:!0,textShadowColor:!0}})),Xa,Za=o((()=>{Xa=!!(typeof window<`u`&&window.document&&window.document.createElement)})),Qa=c({default:()=>io}),$a,eo,to,no,ro,io,ao=o((()=>{Ya(),Za(),$a={},eo=!Xa||window.CSS!=null&&window.CSS.supports!=null&&(window.CSS.supports(`text-decoration-line`,`none`)||window.CSS.supports(`-webkit-text-decoration-line`,`none`)),to=`monospace,monospace`,no=`-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif`,ro={borderColor:[`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`],borderBlockColor:[`borderTopColor`,`borderBottomColor`],borderInlineColor:[`borderRightColor`,`borderLeftColor`],borderRadius:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],borderStyle:[`borderTopStyle`,`borderRightStyle`,`borderBottomStyle`,`borderLeftStyle`],borderBlockStyle:[`borderTopStyle`,`borderBottomStyle`],borderInlineStyle:[`borderRightStyle`,`borderLeftStyle`],borderWidth:[`borderTopWidth`,`borderRightWidth`,`borderBottomWidth`,`borderLeftWidth`],borderBlockWidth:[`borderTopWidth`,`borderBottomWidth`],borderInlineWidth:[`borderRightWidth`,`borderLeftWidth`],insetBlock:[`top`,`bottom`],insetInline:[`left`,`right`],marginBlock:[`marginTop`,`marginBottom`],marginInline:[`marginRight`,`marginLeft`],paddingBlock:[`paddingTop`,`paddingBottom`],paddingInline:[`paddingRight`,`paddingLeft`],overflow:[`overflowX`,`overflowY`],overscrollBehavior:[`overscrollBehaviorX`,`overscrollBehaviorY`],borderBlockStartColor:[`borderTopColor`],borderBlockStartStyle:[`borderTopStyle`],borderBlockStartWidth:[`borderTopWidth`],borderBlockEndColor:[`borderBottomColor`],borderBlockEndStyle:[`borderBottomStyle`],borderBlockEndWidth:[`borderBottomWidth`],borderEndStartRadius:[`borderBottomLeftRadius`],borderEndEndRadius:[`borderBottomRightRadius`],borderStartStartRadius:[`borderTopLeftRadius`],borderStartEndRadius:[`borderTopRightRadius`],insetBlockEnd:[`bottom`],insetBlockStart:[`top`],marginBlockStart:[`marginTop`],marginBlockEnd:[`marginBottom`],paddingBlockStart:[`paddingTop`],paddingBlockEnd:[`paddingBottom`]},io=(e,t)=>{if(!e)return $a;var n={},r=function(){var r=e[i];if(r==null)return`continue`;if(i===`backgroundClip`)r===`text`&&(n.backgroundClip=r,n.WebkitBackgroundClip=r);else if(i===`flex`)r===-1?(n.flexGrow=0,n.flexShrink=1,n.flexBasis=`auto`):n.flex=r;else if(i===`font`)n[i]=r.replace(`System`,no);else if(i===`fontFamily`){if(r.indexOf(`System`)>-1){var a=r.split(/,\s*/);a[a.indexOf(`System`)]=no,n[i]=a.join(`,`)}else n[i]=r===`monospace`?to:r}else if(i===`textDecorationLine`)eo?n.textDecorationLine=r:n.textDecoration=r;else if(i===`writingDirection`)n.direction=r;else{var o=qa(e[i],i),s=ro[i];t&&i===`inset`?(e.insetInline??(n.left=o,n.right=o),e.insetBlock??(n.top=o,n.bottom=o)):t&&i===`margin`?(e.marginInline??(n.marginLeft=o,n.marginRight=o),e.marginBlock??(n.marginTop=o,n.marginBottom=o)):t&&i===`padding`?(e.paddingInline??(n.paddingLeft=o,n.paddingRight=o),e.paddingBlock??(n.paddingTop=o,n.paddingBottom=o)):s?s.forEach((t,r)=>{e[t]??(n[t]=o)}):n[i]=o}};for(var i in e)if(r()===`continue`)continue;return n}}));function oo(e,t){for(var n=e.length,r=t^n,i=0,a;n>=4;)a=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,a=(a&65535)*1540483477+(((a>>>16)*1540483477&65535)<<16),a^=a>>>24,a=(a&65535)*1540483477+(((a>>>16)*1540483477&65535)<<16),r=(r&65535)*1540483477+(((r>>>16)*1540483477&65535)<<16)^a,n-=4,++i;switch(n){case 3:r^=(e.charCodeAt(i+2)&255)<<16;case 2:r^=(e.charCodeAt(i+1)&255)<<8;case 1:r^=e.charCodeAt(i)&255,r=(r&65535)*1540483477+(((r>>>16)*1540483477&65535)<<16)}return r^=r>>>13,r=(r&65535)*1540483477+(((r>>>16)*1540483477&65535)<<16),r^=r>>>15,r>>>0}var so=e=>oo(e,1).toString(36),co=/[A-Z]/g,lo=/^ms-/,U={};function uo(e){return`-`+e.toLowerCase()}function fo(e){if(e in U)return U[e];var t=e.replace(co,uo);return U[e]=lo.test(t)?`-`+t:t}var po=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(e){return e.charAt(0).toUpperCase()+e.slice(1)}})),mo=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var t=n(po());function n(e){return e&&e.__esModule?e:{default:e}}function r(e,n,r){var i=e[n];if(i&&r.hasOwnProperty(n))for(var a=(0,t.default)(n),o=0;o<i.length;++o){var s=i[o]+a;r[s]||(r[s]=r[n])}return r}})),ho=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(e,t,n,r,i){for(var a=0,o=e.length;a<o;++a){var s=e[a](t,n,r,i);if(s)return s}}})),go=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function t(e,t){e.indexOf(t)===-1&&e.push(t)}function n(e,n){if(Array.isArray(n))for(var r=0,i=n.length;r<i;++r)t(e,n[r]);else t(e,n)}})),_o=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(e){return e instanceof Object&&!Array.isArray(e)}})),vo=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=a(mo()),n=a(ho()),r=a(go()),i=a(_o());function a(e){return e&&e.__esModule?e:{default:e}}function o(e){var a=e.prefixMap,o=e.plugins;return function e(s){for(var c in s){var l=s[c];if((0,i.default)(l))s[c]=e(l);else if(Array.isArray(l)){for(var u=[],d=0,f=l.length;d<f;++d){var p=(0,n.default)(o,c,l[d],s,a);(0,r.default)(u,p||l[d])}u.length>0&&(s[c]=u)}else{var m=(0,n.default)(o,c,l,s,a);m&&(s[c]=m),s=(0,t.default)(a,c,s)}}return s}}}));function yo(e){"@babel/helpers - typeof";return yo=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},yo(e)}function bo(e){return wo(e)||Co(e)||So(e)||xo()}function xo(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function So(e,t){if(e){if(typeof e==`string`)return To(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(n);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return To(e,t)}}function Co(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function wo(e){if(Array.isArray(e))return To(e)}function To(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Eo(e){return e.filter(function(t,n){return e.lastIndexOf(t)===n})}function Do(e){for(var t=0,n=arguments.length<=1?0:arguments.length-1;t<n;++t){var r=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];for(var i in r){var a=r[i],o=e[i];if(o&&a){if(Array.isArray(o)){e[i]=Eo(o.concat(a));continue}if(Array.isArray(a)){e[i]=Eo([o].concat(bo(a)));continue}if(yo(a)===`object`){e[i]=Do({},o,a);continue}}e[i]=a}}return e}var Oo=o((()=>{}));function ko(e){return e[1].toUpperCase()}function Ao(e){if(No.hasOwnProperty(e))return No[e];var t=e.replace(jo,ko).replace(Mo,`ms`);return No[e]=t,t}var jo,Mo,No,Po=o((()=>{jo=/-([a-z])/g,Mo=/^Ms/g,No={}})),Fo=c({default:()=>Lo});function Io(e){return`-`+e.toLowerCase()}function Lo(e){if(Bo.hasOwnProperty(e))return Bo[e];var t=e.replace(Ro,Io);return Bo[e]=zo.test(t)?`-`+t:t}var Ro,zo,Bo,Vo=o((()=>{Ro=/[A-Z]/g,zo=/^ms-/,Bo={}}));function Ho(e){return Lo(e)}var Uo=o((()=>{Vo()}));function Wo(e,t){return Ho(e)+`:`+t}var Go=o((()=>{Uo()}));function Ko(e){var t=``;for(var n in e){var r=e[n];(typeof r==`string`||typeof r==`number`)&&(t&&(t+=`;`),t+=Wo(n,r))}return t}var qo=o((()=>{Go()}));function Jo(e){return Yo.test(e)}var Yo,Xo=o((()=>{Yo=/^(Webkit|Moz|O|ms)/}));function Zo(e){return typeof e==`string`&&Qo.test(e)}var Qo,$o=o((()=>{Qo=/-webkit-|-moz-|-ms-/}));function es(e,t){return e+t.charAt(0).toUpperCase()+t.slice(1)}function ts(e){return ns.hasOwnProperty(e)}var ns,rs,is,as,os,ss,cs,ls,us=o((()=>{for(Uo(),ns={borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},rs=[`animationIterationCount`,`boxFlex`,`boxFlexGroup`,`boxOrdinalGroup`,`columnCount`,`flex`,`flexGrow`,`flexPositive`,`flexShrink`,`flexNegative`,`flexOrder`,`gridColumn`,`gridColumnEnd`,`gridColumnStart`,`gridRow`,`gridRowEnd`,`gridRowStart`,`lineClamp`,`order`],is=[`Webkit`,`ms`,`Moz`,`O`],as=0,os=rs.length;as<os;++as)for(ss=rs[as],ns[ss]=!0,cs=0,ls=is.length;cs<ls;++cs)ns[es(is[cs],ss)]=!0;for(var e in ns)ns[Ho(e)]=!0}));function ds(e){var t=e.replace(fs,``);return t.charAt(0).toLowerCase()+t.slice(1)}var fs,ps=o((()=>{fs=/^(ms|Webkit|Moz|O)/}));function ms(e){return ds(Ao(e))}var hs=o((()=>{Po(),ps()}));function gs(e,t){return t.join(`;`+Ho(e)+`:`)}var _s=o((()=>{Uo()}));function vs(e){return typeof e==`string`?e.replace(ys,``):e}var ys,bs=o((()=>{ys=/(-ms-|-webkit-|-moz-|-o-)/g})),xs=c({assignStyle:()=>Do,camelCaseProperty:()=>Ao,cssifyDeclaration:()=>Wo,cssifyObject:()=>Ko,hyphenateProperty:()=>Ho,isPrefixedProperty:()=>Jo,isPrefixedValue:()=>Zo,isUnitlessProperty:()=>ts,normalizeProperty:()=>ms,resolveArrayValue:()=>gs,unprefixProperty:()=>ds,unprefixValue:()=>vs}),Ss=o((()=>{Oo(),Po(),Go(),qo(),Uo(),Xo(),$o(),us(),hs(),_s(),ps(),bs()})),Cs=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=(Ss(),d(xs)),n=/cross-fade\(/g,r=[`-webkit-`,``];function i(e,i){if(typeof i==`string`&&!(0,t.isPrefixedValue)(i)&&i.indexOf(`cross-fade(`)!==-1)return r.map(function(e){return i.replace(n,e+`cross-fade(`)})}})),ws=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=/-webkit-|-moz-|-ms-/;function n(e){return typeof e==`string`&&t.test(e)}})),Ts=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=n(ws());function n(e){return e&&e.__esModule?e:{default:e}}var r=[`-webkit-`,``];function i(e,n){if(typeof n==`string`&&!(0,t.default)(n)&&n.indexOf(`image-set(`)>-1)return r.map(function(e){return n.replace(/image-set\(/g,e+`image-set(`)})}})),Es=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t={marginBlockStart:[`WebkitMarginBefore`],marginBlockEnd:[`WebkitMarginAfter`],marginInlineStart:[`WebkitMarginStart`,`MozMarginStart`],marginInlineEnd:[`WebkitMarginEnd`,`MozMarginEnd`],paddingBlockStart:[`WebkitPaddingBefore`],paddingBlockEnd:[`WebkitPaddingAfter`],paddingInlineStart:[`WebkitPaddingStart`,`MozPaddingStart`],paddingInlineEnd:[`WebkitPaddingEnd`,`MozPaddingEnd`],borderBlockStart:[`WebkitBorderBefore`],borderBlockStartColor:[`WebkitBorderBeforeColor`],borderBlockStartStyle:[`WebkitBorderBeforeStyle`],borderBlockStartWidth:[`WebkitBorderBeforeWidth`],borderBlockEnd:[`WebkitBorderAfter`],borderBlockEndColor:[`WebkitBorderAfterColor`],borderBlockEndStyle:[`WebkitBorderAfterStyle`],borderBlockEndWidth:[`WebkitBorderAfterWidth`],borderInlineStart:[`WebkitBorderStart`,`MozBorderStart`],borderInlineStartColor:[`WebkitBorderStartColor`,`MozBorderStartColor`],borderInlineStartStyle:[`WebkitBorderStartStyle`,`MozBorderStartStyle`],borderInlineStartWidth:[`WebkitBorderStartWidth`,`MozBorderStartWidth`],borderInlineEnd:[`WebkitBorderEnd`,`MozBorderEnd`],borderInlineEndColor:[`WebkitBorderEndColor`,`MozBorderEndColor`],borderInlineEndStyle:[`WebkitBorderEndStyle`,`MozBorderEndStyle`],borderInlineEndWidth:[`WebkitBorderEndWidth`,`MozBorderEndWidth`]};function n(e,n,r){if(Object.prototype.hasOwnProperty.call(t,e))for(var i=t[e],a=0,o=i.length;a<o;++a)r[i[a]]=n}})),Ds=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(e,t){if(e===`position`&&t===`sticky`)return[`-webkit-sticky`,`sticky`]}})),Os=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=[`-webkit-`,`-moz-`,``],n={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},r={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function i(e,i){if(n.hasOwnProperty(e)&&r.hasOwnProperty(i))return t.map(function(e){return e+i})}})),ks=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var t=n((Vo(),d(Fo)));function n(e){return e&&e.__esModule?e:{default:e}}function r(e){return(0,t.default)(e)}})),As=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var t=i(ks()),n=i(ws()),r=i(po());function i(e){return e&&e.__esModule?e:{default:e}}var a={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},o={Webkit:`-webkit-`,Moz:`-moz-`,ms:`-ms-`};function s(e,r){if((0,n.default)(e))return e;for(var i=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g),a=0,s=i.length;a<s;++a){var c=i[a],l=[c];for(var u in r){var d=(0,t.default)(u);if(c.indexOf(d)>-1&&d!==`order`)for(var f=r[u],p=0,m=f.length;p<m;++p)l.unshift(c.replace(d,o[f[p]]+d))}i[a]=l.join(`,`)}return i.join(`,`)}function c(e,t,n,i){if(typeof t==`string`&&a.hasOwnProperty(e)){var o=s(t,i),c=o.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-moz-|-ms-/.test(e)}).join(`,`);if(e.indexOf(`Webkit`)>-1)return c;var l=o.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-webkit-|-ms-/.test(e)}).join(`,`);return e.indexOf(`Moz`)>-1?l:(n[`Webkit`+(0,r.default)(e)]=c,n[`Moz`+(0,r.default)(e)]=l,o)}}})),js=u(Cs()),Ms=u(Ts()),Ns=u(Es()),Ps=u(Ds()),Fs=u(Os()),Is=u(As()),Ls=[`Webkit`],Rs=[`Moz`],zs=[`Webkit`,`Moz`],Bs=[`Webkit`,`ms`],Vs={plugins:[js.default,Ms.default,Ns.default,Ps.default,Fs.default,Is.default],prefixMap:{appearance:[`Webkit`,`Moz`,`ms`],userSelect:zs,textEmphasisPosition:Bs,textEmphasis:Bs,textEmphasisStyle:Bs,textEmphasisColor:Bs,boxDecorationBreak:Bs,clipPath:Ls,maskImage:Bs,maskMode:Bs,maskRepeat:Bs,maskPosition:Bs,maskClip:Bs,maskOrigin:Bs,maskSize:Bs,maskComposite:Bs,mask:Bs,maskBorderSource:Bs,maskBorderMode:Bs,maskBorderSlice:Bs,maskBorderWidth:Bs,maskBorderOutset:Bs,maskBorderRepeat:Bs,maskBorder:Bs,maskType:Bs,textDecorationStyle:Ls,textDecorationSkip:Ls,textDecorationLine:Ls,textDecorationColor:Ls,filter:Ls,breakAfter:Ls,breakBefore:Ls,breakInside:Ls,columnCount:Ls,columnFill:Ls,columnGap:Ls,columnRule:Ls,columnRuleColor:Ls,columnRuleStyle:Ls,columnRuleWidth:Ls,columns:Ls,columnSpan:Ls,columnWidth:Ls,backdropFilter:Ls,hyphens:Ls,flowInto:Ls,flowFrom:Ls,regionFragment:Ls,textOrientation:Ls,tabSize:Rs,fontKerning:Ls,textSizeAdjust:Ls}},Hs=(0,u(vo()).default)(Vs);ao(),Ya();var Us=[`animationKeyframes`],Ws=new Map,Gs={},Ks=1,qs=3,Js={borderColor:2,borderRadius:2,borderStyle:2,borderWidth:2,display:2,flex:2,inset:2,margin:2,overflow:2,overscrollBehavior:2,padding:2,insetBlock:2.1,insetInline:2.1,marginInline:2.1,marginBlock:2.1,paddingInline:2.1,paddingBlock:2.1,borderBlockStartColor:2.2,borderBlockStartStyle:2.2,borderBlockStartWidth:2.2,borderBlockEndColor:2.2,borderBlockEndStyle:2.2,borderBlockEndWidth:2.2,borderInlineStartColor:2.2,borderInlineStartStyle:2.2,borderInlineStartWidth:2.2,borderInlineEndColor:2.2,borderInlineEndStyle:2.2,borderInlineEndWidth:2.2,borderEndStartRadius:2.2,borderEndEndRadius:2.2,borderStartStartRadius:2.2,borderStartEndRadius:2.2,insetBlockEnd:2.2,insetBlockStart:2.2,insetInlineEnd:2.2,insetInlineStart:2.2,marginBlockStart:2.2,marginBlockEnd:2.2,marginInlineStart:2.2,marginInlineEnd:2.2,paddingBlockStart:2.2,paddingBlockEnd:2.2,paddingInlineStart:2.2,paddingInlineEnd:2.2},Ys=`borderTopLeftRadius`,Xs=`borderTopRightRadius`,Zs=`borderBottomLeftRadius`,Qs=`borderBottomRightRadius`,$s=`borderLeftColor`,ec=`borderLeftStyle`,tc=`borderLeftWidth`,nc=`borderRightColor`,rc=`borderRightStyle`,ic=`borderRightWidth`,ac=`right`,oc=`marginLeft`,sc=`marginRight`,cc=`paddingLeft`,lc=`paddingRight`,uc=`left`,dc={[Ys]:Xs,[Xs]:Ys,[Zs]:Qs,[Qs]:Zs,[$s]:nc,[ec]:rc,[tc]:ic,[nc]:$s,[rc]:ec,[ic]:tc,[uc]:ac,[oc]:sc,[sc]:oc,[cc]:lc,[lc]:cc,[ac]:uc},fc={borderStartStartRadius:Ys,borderStartEndRadius:Xs,borderEndStartRadius:Zs,borderEndEndRadius:Qs,borderInlineStartColor:$s,borderInlineStartStyle:ec,borderInlineStartWidth:tc,borderInlineEndColor:nc,borderInlineEndStyle:rc,borderInlineEndWidth:ic,insetInlineEnd:ac,insetInlineStart:uc,marginInlineStart:oc,marginInlineEnd:sc,paddingInlineStart:cc,paddingInlineEnd:lc},pc=[`clear`,`float`,`textAlign`];function mc(e){var t={$$css:!0},n=[];function r(e,t,r){var i=_c(r,t),a=t+i,o=Ws.get(a),s;if(o!=null)s=o[0],n.push(o[1]);else{s=bc(`r`,e,e===t?i:a);var c=Js[e]||qs,l=[vc(s,t,r),c];n.push(l),Ws.set(a,[s,l])}return s}return Object.keys(e).sort().forEach(n=>{var i=e[n];if(i!=null){var a;if(pc.indexOf(n)>-1){var o=r(n,n,`left`),s=r(n,n,`right`);i===`start`?a=[o,s]:i===`end`&&(a=[s,o])}var c=fc[n];if(c!=null&&(a=[r(n,c,i),r(n,dc[c],i)]),n===`transitionProperty`){for(var l=Array.isArray(i)?i:[i],u=[],d=0;d<l.length;d++){var f=l[d];typeof f==`string`&&fc[f]!=null&&u.push(d)}if(u.length>0){var p=[...l],m=[...l];u.forEach(e=>{var t=p[e];if(typeof t==`string`){var i=fc[t],o=dc[i];p[e]=i,m[e]=o,a=[r(n,n,p),r(n,n,m)]}})}}a==null?a=r(n,n,i):t.$$css$localize=!0,t[n]=a}}),[t,n]}function hc(e,t){var n={$$css:!0},r=[],i=e.animationKeyframes,a=Pa(e,Us),o=bc(`css`,t,JSON.stringify(e)),s=`.`+o,c;if(i!=null){var l=Sc(i),u=l[0],d=l[1];c=u.join(`,`),r.push(...d)}var f=yc(H(H({},a),{},{animationName:c}));return r.push(``+s+f),n[o]=o,[n,[[r,Ks]]]}function gc(e,t){var n=e||Gs,r={},i={},a=function(){var e=n[o],a=o,s=e;if(!Object.prototype.hasOwnProperty.call(n,o)||e==null)return`continue`;pc.indexOf(o)>-1&&(e===`start`?s=t?`right`:`left`:e===`end`&&(s=t?`left`:`right`));var c=fc[o];if(c!=null&&(a=t?dc[c]:c),o===`transitionProperty`){var l=Array.isArray(e)?e:[e];l.forEach((e,n)=>{if(typeof e==`string`){var r=fc[e];r!=null&&(l[n]=t?dc[r]:r,s=l.join(` `))}})}r[a]||(i[a]=s),a===o&&(r[a]=!0)};for(var o in n)if(a()===`continue`)continue;return io(i,!0)}function _c(e,t){var n=qa(e,t);return typeof n==`string`?n:JSON.stringify(n||``)}function vc(e,t,n){var r=[],i=`.`+e;switch(t){case`animationKeyframes`:var a=Sc(n),o=a[0],s=a[1],c=yc({animationName:o.join(`,`)});r.push(``+i+c,...s);break;case`placeholderTextColor`:var l=yc({color:n,opacity:1});r.push(i+`::-webkit-input-placeholder`+l,i+`::-moz-placeholder`+l,i+`:-ms-input-placeholder`+l,i+`::placeholder`+l);break;case`pointerEvents`:var u=n;if(n===`auto`)u=`auto!important`;else if(n===`none`){u=`none!important`;var d=yc({pointerEvents:`none`});r.push(i+`>* `+d)}else if(n===`box-none`){u=`none!important`;var f=yc({pointerEvents:`auto`});r.push(i+`>* `+f)}else if(n===`box-only`){u=`auto!important`;var p=yc({pointerEvents:`none`});r.push(i+`>* `+p)}var m=yc({pointerEvents:u});r.push(``+i+m);break;case`scrollbarWidth`:n===`none`&&r.push(i+`::-webkit-scrollbar{display:none}`);var h=yc({scrollbarWidth:n});r.push(``+i+h);break;default:var g=yc({[t]:n});r.push(``+i+g)}return r}function yc(e){var t=Hs(io(e));return`{`+Object.keys(t).map(e=>{var n=t[e],r=fo(e);return Array.isArray(n)?n.map(e=>r+`:`+e).join(`;`):r+`:`+n}).sort().join(`;`)+`;}`}function bc(e,t,n){var r=so(t+n);return e+`-`+r}function xc(e){var t=[`-webkit-`,``],n=bc(`r`,`animation`,JSON.stringify(e)),r=`{`+Object.keys(e).map(t=>{var n=e[t],r=yc(n);return``+t+r}).join(``)+`}`;return[n,t.map(e=>`@`+e+`keyframes `+n+r)]}function Sc(e){if(typeof e==`number`)throw Error(`Invalid CSS keyframes type: `+typeof e);var t=[],n=[];return(Array.isArray(e)?e:[e]).forEach(e=>{if(typeof e==`string`)t.push(e);else{var r=xc(e),i=r[0],a=r[1];t.push(i),n.push(...a)}}),[t,n]}Za();function Cc(e,t,n){if(Xa){var r=t??document,i=r.getElementById(e);if(i==null){if(i=document.createElement(`style`),i.setAttribute(`id`,e),typeof n==`string`&&i.appendChild(document.createTextNode(n)),r instanceof ShadowRoot)r.insertBefore(i,r.firstChild);else{var a=r.head;a&&a.insertBefore(i,a.firstChild)}}return i.sheet}return null}var wc=Array.prototype.slice;function Tc(e){var t={},n={};if(e!=null){var r;wc.call(e.cssRules).forEach((e,i)=>{var a=e.cssText;if(a.indexOf(`stylesheet-group`)>-1)r=Oc(e),t[r]={start:i,rules:[a]};else{var o=jc(a);o!=null&&(n[o]=!0,t[r].rules.push(a))}})}function i(e,n,r){var i=kc(t),a=i.indexOf(n)+1,o=i[a],s=o!=null&&t[o].start!=null?t[o].start:e.cssRules.length,c=Mc(e,r,s);if(c){t[n].start??(t[n].start=s);for(var l=a;l<i.length;l+=1){var u=i[l],d=t[u].start||0;t[u].start=d+1}}return c}return{getTextContent(){return kc(t).map(e=>{var n=t[e].rules,r=n.shift();return n.sort(),n.unshift(r),n.join(`
|
|
14
|
+
`)}).join(`
|
|
15
|
+
`)},insert(r,a){var o=Number(a);if(t[o]==null){var s=Ec(o);t[o]={start:null,rules:[s]},e!=null&&i(e,o,s)}var c=jc(r);c!=null&&n[c]==null&&(n[c]=!0,t[o].rules.push(r),e!=null&&(i(e,o,r)||t[o].rules.pop()))}}}function Ec(e){return`[stylesheet-group="`+e+`"]{}`}var Dc=/["']/g;function Oc(e){return Number(e.selectorText.split(Dc)[1])}function kc(e){return Object.keys(e).map(Number).sort((e,t)=>e>t?1:-1)}var Ac=/\s*([,])\s*/g;function jc(e){var t=e.split(`{`)[0].trim();return t===``?null:t.replace(Ac,`$1`)}function Mc(e,t,n){try{return e.insertRule(t,n),!0}catch{return!1}}Za();var Nc=`react-native-stylesheet`,Pc=new WeakMap,Fc=[],Ic=[`html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}`,`body{margin:0;}`,`button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}`,`input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}`];function Lc(e,t){t===void 0&&(t=Nc);var n;if(Xa){var r=e==null?document:e.getRootNode();if(Fc.length===0)n=Tc(Cc(t)),Ic.forEach(e=>{n.insert(e,0)}),Pc.set(r,Fc.length),Fc.push(n);else{var i=Pc.get(r);if(i==null){var a=Fc[0],o=a==null?``:a.getTextContent();n=Tc(Cc(t,r,o)),Pc.set(r,Fc.length),Fc.push(n)}else n=Fc[i]}}else Fc.length===0?(n=Tc(Cc(t)),Ic.forEach(e=>{n.insert(e,0)}),Fc.push(n)):n=Fc[0];return{getTextContent(){return n.getTextContent()},id:t,insert(e,t){Fc.forEach(n=>{n.insert(e,t)})}}}var Rc=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.localizeStyle=i;var t=new WeakMap,n=`$$css$localize`;function r(e,t){var r={};for(var i in e)if(i!==n){var a=e[i];r[i]=Array.isArray(a)?t?a[1]:a[0]:a}return r}function i(e,i){if(e[n]!=null){var a=+!!i;if(t.has(e)){var o=t.get(e),s=o[a];return s??(s=r(e,i),o[a]=s,t.set(e,o)),s}var c=r(e,i),l=[,,];return l[a]=c,t.set(e,l),c}return e}})),zc=s(((e,t)=>{t.exports=Rc()})),Bc=o((()=>{})),Vc=c({createBoxShadowArrayValue:()=>qc,createBoxShadowValue:()=>Wc,createTextShadowValue:()=>Gc,createTransformOriginValue:()=>Xc,createTransformValue:()=>Yc,default:()=>$c,preprocess:()=>$c}),Hc,Uc,Wc,Gc,Kc,qc,Jc,Yc,Xc,Zc,Qc,$c,el=o((()=>{Ka(),Ya(),Bc(),Hc={},Uc={height:0,width:0},Wc=e=>{var t=e.shadowColor,n=e.shadowOffset,r=e.shadowOpacity,i=e.shadowRadius,a=n||Uc,o=a.height,s=a.width,c=qa(s),l=qa(o),u=qa(i||0),d=Ga(t||`black`,r);if(d!=null&&c!=null&&l!=null&&u!=null)return c+` `+l+` `+u+` `+d},Gc=e=>{var t=e.textShadowColor,n=e.textShadowOffset,r=e.textShadowRadius,i=n||Uc,a=i.height,o=i.width,s=r||0,c=qa(o),l=qa(a),u=qa(s),d=qa(t,`textShadowColor`);if(d&&(a!==0||o!==0||s!==0)&&c!=null&&l!=null&&u!=null)return c+` `+l+` `+u+` `+d},Kc=e=>{if(typeof e==`string`)return e;var t=qa(e.offsetX)||0,n=qa(e.offsetY)||0,r=qa(e.blurRadius)||0,i=qa(e.spreadDistance)||0,a=Ga(e.color)||`black`;return(e.inset?`inset `:``)+t+` `+n+` `+r+` `+i+` `+a},qc=e=>e.map(Kc).join(`, `),Jc=e=>{var t=Object.keys(e)[0],n=e[t];if(t===`matrix`||t===`matrix3d`)return t+`(`+n.join(`,`)+`)`;var r=qa(n,t);return t+`(`+r+`)`},Yc=e=>e.map(Jc).join(` `),Xc=e=>e.map(e=>qa(e)).join(` `),Zc={borderBottomEndRadius:`borderEndEndRadius`,borderBottomStartRadius:`borderEndStartRadius`,borderTopEndRadius:`borderStartEndRadius`,borderTopStartRadius:`borderStartStartRadius`,borderEndColor:`borderInlineEndColor`,borderEndStyle:`borderInlineEndStyle`,borderEndWidth:`borderInlineEndWidth`,borderStartColor:`borderInlineStartColor`,borderStartStyle:`borderInlineStartStyle`,borderStartWidth:`borderInlineStartWidth`,end:`insetInlineEnd`,marginEnd:`marginInlineEnd`,marginHorizontal:`marginInline`,marginStart:`marginInlineStart`,marginVertical:`marginBlock`,paddingEnd:`paddingInlineEnd`,paddingHorizontal:`paddingInline`,paddingStart:`paddingInlineStart`,paddingVertical:`paddingBlock`,start:`insetInlineStart`},Qc={elevation:!0,overlayColor:!0,resizeMode:!0,tintColor:!0},$c=function(e,t){t===void 0&&(t={});var n=e||Hc,r={};if(t.shadow,n.shadowColor!=null||n.shadowOffset!=null||n.shadowOpacity!=null||n.shadowRadius!=null){var i=Wc(n);i!=null&&(r.boxShadow=i)}if(t.textShadow,n.textShadowColor!=null||n.textShadowOffset!=null||n.textShadowRadius!=null){var a=Gc(n);if(a!=null&&r.textShadow==null){var o=n.textShadow;r.textShadow=o?o+`, `+a:a}}for(var s in n)if(Qc[s]==null&&s!==`shadowColor`&&s!==`shadowOffset`&&s!==`shadowOpacity`&&s!==`shadowRadius`&&s!==`textShadowColor`&&s!==`textShadowOffset`&&s!==`textShadowRadius`){var c=n[s],l=Zc[s]||s,u=c;if(!(!Object.prototype.hasOwnProperty.call(n,s)||l!==s&&n[l]!=null)){if(l===`aspectRatio`&&typeof u==`number`)r[l]=u.toString();else if(l===`boxShadow`){Array.isArray(u)&&(u=qc(u));var d=r.boxShadow;r.boxShadow=d?u+`, `+d:u}else l===`fontVariant`?(Array.isArray(u)&&u.length>0&&(u=u.join(` `)),r[l]=u):l===`textAlignVertical`?n.verticalAlign??(r.verticalAlign=u===`center`?`middle`:u):l===`transform`?(Array.isArray(u)&&(u=Yc(u)),r.transform=u):l===`transformOrigin`?(Array.isArray(u)&&(u=Xc(u)),r.transformOrigin=u):r[l]=u}}return r}})),tl=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.styleq=void 0;var t=new WeakMap,n=`$$css`;function r(e){var r,i,a;return e!=null&&(r=e.disableCache===!0,i=e.disableMix===!0,a=e.transform),function(){for(var e=[],o=``,s=null,c=r?null:t,l=Array(arguments.length),u=0;u<arguments.length;u++)l[u]=arguments[u];for(;l.length>0;){var d=l.pop();if(d!=null&&d!==!1){if(Array.isArray(d)){for(var f=0;f<d.length;f++)l.push(d[f]);continue}var p=a==null?d:a(d);if(p.$$css){var m=``;if(c!=null&&c.has(p)){var h=c.get(p);h!=null&&(m=h[0],e.push.apply(e,h[1]),c=h[2])}else{var g=[];for(var _ in p){var v=p[_];_!==n&&(typeof v==`string`||v===null?e.includes(_)||(e.push(_),c!=null&&g.push(_),typeof v==`string`&&(m+=m?` `+v:v)):console.error(`styleq: ${_} typeof ${String(v)} is not "string" or "null".`))}if(c!=null){var y=new WeakMap;c.set(p,[m,g,y]),c=y}}m&&(o=o?m+` `+o:m)}else if(i)s??={},s=Object.assign({},p,s);else{var b=null;for(var x in p){var S=p[x];S!==void 0&&(e.includes(x)||(S!=null&&(s??={},b??={},b[x]=S),e.push(x),c=null))}b!=null&&(s=Object.assign(b,s))}}}return[o,s]}}var i=r();e.styleq=i,i.factory=r})),nl=zc();el();var rl=tl();Za();var il=[`writingDirection`],al=new WeakMap,ol=Lc(),sl={shadow:!0,textShadow:!0};function cl(e,t){t===void 0&&(t={});var n=t,r=n.writingDirection,i=Pa(n,il),a=r===`rtl`;return rl.styleq.factory({transform(e){var t=al.get(e);return t==null?$c(e,H(H({},sl),i)):(0,nl.localizeStyle)(t,a)}})(e)}function ll(e){e.forEach(e=>{var t=e[0],n=e[1];ol!=null&&t.forEach(e=>{ol.insert(e,n)})})}function ul(e){var t=mc($c(e,sl)),n=t[0],r=t[1];return ll(r),n}function dl(e,t){var n=hc(e,t),r=n[0],i=n[1];return ll(i),r}var fl={position:`absolute`,left:0,right:0,top:0,bottom:0},pl=ml({x:H({},fl)}).x;function ml(e){return Object.keys(e).forEach(t=>{var n=e[t];if(n!=null&&n.$$css!==!0){var r=t.indexOf(`$raw`)>-1?dl(n,t.split(`$raw`)[0]):ul(n);al.set(n,r)}}),e}function hl(e,t){return[e,t]}function gl(){for(var e=[...arguments].flat(1/0),t={},n=0;n<e.length;n++){var r=e[n];typeof r==`object`&&r&&Object.assign(t,r)}return t}function _l(){return{id:ol.id,textContent:ol.getTextContent()}}function vl(e,t){t===void 0&&(t={});var n=t.writingDirection===`rtl`,r=cl(e,t);return Array.isArray(r)&&r[1]!=null&&(r[1]=gc(r[1],n)),r}vl.absoluteFill=pl,vl.absoluteFillObject=fl,vl.create=ml,vl.compose=hl,vl.flatten=gl,vl.getSheet=_l,vl.hairlineWidth=1,Xa&&window.__REACT_DEVTOOLS_GLOBAL_HOOK__&&(window.__REACT_DEVTOOLS_GLOBAL_HOOK__.resolveRNStyle=vl.flatten);var yl=vl;Bc();var bl=`aria-activedescendant.accessibilityActiveDescendant.aria-atomic.accessibilityAtomic.aria-autocomplete.accessibilityAutoComplete.aria-busy.accessibilityBusy.aria-checked.accessibilityChecked.aria-colcount.accessibilityColumnCount.aria-colindex.accessibilityColumnIndex.aria-colspan.accessibilityColumnSpan.aria-controls.accessibilityControls.aria-current.accessibilityCurrent.aria-describedby.accessibilityDescribedBy.aria-details.accessibilityDetails.aria-disabled.accessibilityDisabled.aria-errormessage.accessibilityErrorMessage.aria-expanded.accessibilityExpanded.aria-flowto.accessibilityFlowTo.aria-haspopup.accessibilityHasPopup.aria-hidden.accessibilityHidden.aria-invalid.accessibilityInvalid.aria-keyshortcuts.accessibilityKeyShortcuts.aria-label.accessibilityLabel.aria-labelledby.accessibilityLabelledBy.aria-level.accessibilityLevel.aria-live.accessibilityLiveRegion.aria-modal.accessibilityModal.aria-multiline.accessibilityMultiline.aria-multiselectable.accessibilityMultiSelectable.aria-orientation.accessibilityOrientation.aria-owns.accessibilityOwns.aria-placeholder.accessibilityPlaceholder.aria-posinset.accessibilityPosInSet.aria-pressed.accessibilityPressed.aria-readonly.accessibilityReadOnly.aria-required.accessibilityRequired.role.accessibilityRole.aria-roledescription.accessibilityRoleDescription.aria-rowcount.accessibilityRowCount.aria-rowindex.accessibilityRowIndex.aria-rowspan.accessibilityRowSpan.aria-selected.accessibilitySelected.aria-setsize.accessibilitySetSize.aria-sort.accessibilitySort.aria-valuemax.accessibilityValueMax.aria-valuemin.accessibilityValueMin.aria-valuenow.accessibilityValueNow.aria-valuetext.accessibilityValueText.dataSet.focusable.id.nativeID.pointerEvents.style.tabIndex.testID`.split(`.`),xl={},Sl=Object.prototype.hasOwnProperty,Cl=Array.isArray,wl=/[A-Z]/g;function Tl(e){return`-`+e.toLowerCase()}function El(e){return e.replace(wl,Tl)}function Dl(e){return Cl(e)?e.join(` `):e}var Ol=yl.create({auto:{pointerEvents:`auto`},"box-none":{pointerEvents:`box-none`},"box-only":{pointerEvents:`box-only`},none:{pointerEvents:`none`}}),kl=(e,t,n)=>{t||=xl;var r=t,i=r[`aria-activedescendant`],a=r.accessibilityActiveDescendant,o=r[`aria-atomic`],s=r.accessibilityAtomic,c=r[`aria-autocomplete`],l=r.accessibilityAutoComplete,u=r[`aria-busy`],d=r.accessibilityBusy,f=r[`aria-checked`],p=r.accessibilityChecked,m=r[`aria-colcount`],h=r.accessibilityColumnCount,g=r[`aria-colindex`],_=r.accessibilityColumnIndex,v=r[`aria-colspan`],y=r.accessibilityColumnSpan,b=r[`aria-controls`],x=r.accessibilityControls,S=r[`aria-current`],C=r.accessibilityCurrent,w=r[`aria-describedby`],T=r.accessibilityDescribedBy,E=r[`aria-details`],D=r.accessibilityDetails,O=r[`aria-disabled`],k=r.accessibilityDisabled,ee=r[`aria-errormessage`],A=r.accessibilityErrorMessage,te=r[`aria-expanded`],ne=r.accessibilityExpanded,re=r[`aria-flowto`],ie=r.accessibilityFlowTo,j=r[`aria-haspopup`],M=r.accessibilityHasPopup,ae=r[`aria-hidden`],oe=r.accessibilityHidden,se=r[`aria-invalid`],N=r.accessibilityInvalid,ce=r[`aria-keyshortcuts`],le=r.accessibilityKeyShortcuts,ue=r[`aria-label`],de=r.accessibilityLabel,fe=r[`aria-labelledby`],pe=r.accessibilityLabelledBy,me=r[`aria-level`],he=r.accessibilityLevel,ge=r[`aria-live`],_e=r.accessibilityLiveRegion,P=r[`aria-modal`],ve=r.accessibilityModal,F=r[`aria-multiline`],ye=r.accessibilityMultiline,I=r[`aria-multiselectable`],be=r.accessibilityMultiSelectable,xe=r[`aria-orientation`],L=r.accessibilityOrientation,Se=r[`aria-owns`],Ce=r.accessibilityOwns,we=r[`aria-placeholder`],Te=r.accessibilityPlaceholder,R=r[`aria-posinset`],Ee=r.accessibilityPosInSet,De=r[`aria-pressed`],Oe=r.accessibilityPressed,z=r[`aria-readonly`],ke=r.accessibilityReadOnly,Ae=r[`aria-required`],je=r.accessibilityRequired;r.role,r.accessibilityRole;var Me=r[`aria-roledescription`],Ne=r.accessibilityRoleDescription,Pe=r[`aria-rowcount`],Fe=r.accessibilityRowCount,Ie=r[`aria-rowindex`],Le=r.accessibilityRowIndex,Re=r[`aria-rowspan`],ze=r.accessibilityRowSpan,Be=r[`aria-selected`],Ve=r.accessibilitySelected,He=r[`aria-setsize`],Ue=r.accessibilitySetSize,We=r[`aria-sort`],Ge=r.accessibilitySort,Ke=r[`aria-valuemax`],B=r.accessibilityValueMax,qe=r[`aria-valuemin`],Je=r.accessibilityValueMin,Ye=r[`aria-valuenow`],Xe=r.accessibilityValueNow,Ze=r[`aria-valuetext`],Qe=r.accessibilityValueText,$e=r.dataSet,et=r.focusable,tt=r.id,nt=r.nativeID,rt=r.pointerEvents,it=r.style,at=r.tabIndex,ot=r.testID,V=Pa(r,bl),st=O||k,ct=Oa.propsToAriaRole(t),lt=i??a;lt!=null&&(V[`aria-activedescendant`]=lt);var ut=o==null?s:i;ut!=null&&(V[`aria-atomic`]=ut);var dt=c??l;dt!=null&&(V[`aria-autocomplete`]=dt);var ft=u??d;ft!=null&&(V[`aria-busy`]=ft);var pt=f??p;pt!=null&&(V[`aria-checked`]=pt);var mt=m??h;mt!=null&&(V[`aria-colcount`]=mt);var ht=g??_;ht!=null&&(V[`aria-colindex`]=ht);var gt=v??y;gt!=null&&(V[`aria-colspan`]=gt);var _t=b??x;_t!=null&&(V[`aria-controls`]=Dl(_t));var vt=S??C;vt!=null&&(V[`aria-current`]=vt);var yt=w??T;yt!=null&&(V[`aria-describedby`]=Dl(yt));var bt=E??D;bt!=null&&(V[`aria-details`]=bt),st===!0&&(V[`aria-disabled`]=!0,(e===`button`||e===`form`||e===`input`||e===`select`||e===`textarea`)&&(V.disabled=!0));var xt=ee??A;xt!=null&&(V[`aria-errormessage`]=xt);var St=te??ne;St!=null&&(V[`aria-expanded`]=St);var Ct=re??ie;Ct!=null&&(V[`aria-flowto`]=Dl(Ct));var wt=j??M;wt!=null&&(V[`aria-haspopup`]=wt);var Tt=ae??oe;Tt===!0&&(V[`aria-hidden`]=Tt);var Et=se??N;Et!=null&&(V[`aria-invalid`]=Et);var Dt=ce??le;Dt!=null&&(V[`aria-keyshortcuts`]=Dl(Dt));var Ot=ue??de;Ot!=null&&(V[`aria-label`]=Ot);var kt=fe??pe;kt!=null&&(V[`aria-labelledby`]=Dl(kt));var At=me??he;At!=null&&(V[`aria-level`]=At);var jt=ge??_e;jt!=null&&(V[`aria-live`]=jt===`none`?`off`:jt);var Mt=P??ve;Mt!=null&&(V[`aria-modal`]=Mt);var Nt=F??ye;Nt!=null&&(V[`aria-multiline`]=Nt);var Pt=I??be;Pt!=null&&(V[`aria-multiselectable`]=Pt);var Ft=xe??L;Ft!=null&&(V[`aria-orientation`]=Ft);var It=Se??Ce;It!=null&&(V[`aria-owns`]=Dl(It));var Lt=we??Te;Lt!=null&&(V[`aria-placeholder`]=Lt);var Rt=R??Ee;Rt!=null&&(V[`aria-posinset`]=Rt);var zt=De??Oe;zt!=null&&(V[`aria-pressed`]=zt);var Bt=z??ke;Bt!=null&&(V[`aria-readonly`]=Bt,(e===`input`||e===`select`||e===`textarea`)&&(V.readOnly=!0));var Vt=Ae??je;Vt!=null&&(V[`aria-required`]=Vt,(e===`input`||e===`select`||e===`textarea`)&&(V.required=je)),ct!=null&&(V.role=ct===`none`?`presentation`:ct);var Ht=Me??Ne;Ht!=null&&(V[`aria-roledescription`]=Ht);var Ut=Pe??Fe;Ut!=null&&(V[`aria-rowcount`]=Ut);var Wt=Ie??Le;Wt!=null&&(V[`aria-rowindex`]=Wt);var Gt=Re??ze;Gt!=null&&(V[`aria-rowspan`]=Gt);var Kt=Be??Ve;Kt!=null&&(V[`aria-selected`]=Kt);var qt=He??Ue;qt!=null&&(V[`aria-setsize`]=qt);var Jt=We??Ge;Jt!=null&&(V[`aria-sort`]=Jt);var Yt=Ke??B;Yt!=null&&(V[`aria-valuemax`]=Yt);var Xt=qe??Je;Xt!=null&&(V[`aria-valuemin`]=Xt);var Zt=Ye??Xe;Zt!=null&&(V[`aria-valuenow`]=Zt);var Qt=Ze??Qe;if(Qt!=null&&(V[`aria-valuetext`]=Qt),$e!=null){for(var $t in $e)if(Sl.call($e,$t)){var en=El($t),tn=$e[$t];tn!=null&&(V[`data-`+en]=tn)}}at===0||at===`0`||at===-1||at===`-1`?V.tabIndex=at:(et===!1&&(V.tabIndex=`-1`),e===`a`||e===`button`||e===`input`||e===`select`||e===`textarea`?(et===!1||k===!0)&&(V.tabIndex=`-1`):ct===`button`||ct===`checkbox`||ct===`link`||ct===`radio`||ct===`textbox`||ct===`switch`?et!==!1&&(V.tabIndex=`0`):et===!0&&(V.tabIndex=`0`));var nn=yl([it,rt&&Ol[rt]],H({writingDirection:`ltr`},n)),rn=nn[0],an=nn[1];rn&&(V.className=rn),an&&(V.style=an);var on=tt??nt;return on!=null&&(V.id=on),ot!=null&&(V[`data-testid`]=ot),V.type==null&&e===`button`&&(V.type=`button`),V},Al=new Set([`Arab`,`Syrc`,`Samr`,`Mand`,`Thaa`,`Mend`,`Nkoo`,`Adlm`,`Rohg`,`Hebr`]),jl=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`far`,`glk`,`he`,`iw`,`khw`,`ks`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]),Ml=new Map;function Nl(e){var t=Ml.get(e);if(t)return t;var n=!1;if(Intl.Locale)try{var r=new Intl.Locale(e).maximize().script;n=Al.has(r)}catch{var i=e.split(`-`)[0];n=jl.has(i)}else{var a=e.split(`-`)[0];n=jl.has(a)}return Ml.set(e,n),n}var Pl=(0,b.createContext)({direction:`ltr`,locale:`en-US`});function Fl(e){return Nl(e)?`rtl`:`ltr`}function Il(e){var t=e.direction,n=e.locale,r=e.children;return t||n?b.createElement(Pl.Provider,{children:r,value:{direction:n?Fl(n):t,locale:n}}):r}function Ll(){return(0,b.useContext)(Pl)}var Rl=(e,t,n)=>{var r;e&&e.constructor===String&&(r=Oa.propsToAccessibilityComponent(t));var i=r||e,a=kl(i,t,n),o=b.createElement(i,a);return a.dir?b.createElement(Il,{children:o,direction:a.dir,locale:a.lang}):o},zl=e=>{if(e!=null&&e.nodeType===1&&typeof e.getBoundingClientRect==`function`)return e.getBoundingClientRect()},Bl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},Vl=[`ms`,`Moz`,`O`,`Webkit`],Hl=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1);Object.keys(Bl).forEach(e=>{Vl.forEach(t=>{Bl[Hl(t,e)]=Bl[e]})});function Ul(e,t,n){return t==null||typeof t==`boolean`||t===``?``:!n&&typeof t==`number`&&t!==0&&!(Bl.hasOwnProperty(e)&&Bl[e])?t+`px`:(``+t).trim()}function Wl(e,t){var n=e.style;for(var r in t)if(t.hasOwnProperty(r)){var i=r.indexOf(`--`)===0,a=Ul(r,t[r],i);r===`float`&&(r=`cssFloat`),i?n.setProperty(r,a):n[r]=a}}var Gl=e=>{var t=e.offsetHeight,n=e.offsetWidth,r=e.offsetLeft,i=e.offsetTop;for(e=e.offsetParent;e&&e.nodeType===1;)r+=e.offsetLeft+e.clientLeft-e.scrollLeft,i+=e.offsetTop+e.clientTop-e.scrollTop,e=e.offsetParent;return i-=window.scrollY,r-=window.scrollX,{width:n,height:t,top:i,left:r}},Kl=(e,t,n)=>{var r=t||e&&e.parentNode;e&&r&&setTimeout(()=>{if(e.isConnected&&r.isConnected){var t=Gl(r),i=Gl(e),a=i.height,o=i.left,s=i.top,c=i.width;n(o-t.left,s-t.top,c,a,o,s)}},0)},ql={A:!0,BODY:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0},Jl={blur(e){try{e.blur()}catch{}},focus(e){try{var t=e.nodeName;e.getAttribute(`tabIndex`)==null&&e.isContentEditable!==!0&&ql[t]==null&&e.setAttribute(`tabIndex`,`-1`),e.focus()}catch{}},measure(e,t){Kl(e,null,t)},measureInWindow(e,t){e&&setTimeout(()=>{var n=zl(e),r=n.height,i=n.left,a=n.top,o=n.width;t(i,a,o,r)},0)},measureLayout(e,t,n,r){Kl(e,t,r)},updateView(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];switch(n){case`style`:Wl(e,r);break;case`class`:case`className`:e.setAttribute(`class`,r);break;case`text`:case`value`:e.value=r;break;default:e.setAttribute(n,r)}}},configureNextLayoutAnimation(e,t){t()},setLayoutAnimationEnabledExperimental(){}},Yl={OS:`web`,select:e=>`web`in e?e.web:e.default,get isTesting(){return!1},get Version(){return`0.0.0`}};function Xl(){return Xl=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},Xl.apply(null,arguments)}var Zl={children:!0,dataSet:!0,dir:!0,id:!0,ref:!0,suppressHydrationWarning:!0,tabIndex:!0,testID:!0,focusable:!0,nativeID:!0},Ql={"aria-activedescendant":!0,"aria-atomic":!0,"aria-autocomplete":!0,"aria-busy":!0,"aria-checked":!0,"aria-colcount":!0,"aria-colindex":!0,"aria-colspan":!0,"aria-controls":!0,"aria-current":!0,"aria-describedby":!0,"aria-details":!0,"aria-disabled":!0,"aria-errormessage":!0,"aria-expanded":!0,"aria-flowto":!0,"aria-haspopup":!0,"aria-hidden":!0,"aria-invalid":!0,"aria-keyshortcuts":!0,"aria-label":!0,"aria-labelledby":!0,"aria-level":!0,"aria-live":!0,"aria-modal":!0,"aria-multiline":!0,"aria-multiselectable":!0,"aria-orientation":!0,"aria-owns":!0,"aria-placeholder":!0,"aria-posinset":!0,"aria-pressed":!0,"aria-readonly":!0,"aria-required":!0,inert:!0,role:!0,"aria-roledescription":!0,"aria-rowcount":!0,"aria-rowindex":!0,"aria-rowspan":!0,"aria-selected":!0,"aria-setsize":!0,"aria-sort":!0,"aria-valuemax":!0,"aria-valuemin":!0,"aria-valuenow":!0,"aria-valuetext":!0,accessibilityActiveDescendant:!0,accessibilityAtomic:!0,accessibilityAutoComplete:!0,accessibilityBusy:!0,accessibilityChecked:!0,accessibilityColumnCount:!0,accessibilityColumnIndex:!0,accessibilityColumnSpan:!0,accessibilityControls:!0,accessibilityCurrent:!0,accessibilityDescribedBy:!0,accessibilityDetails:!0,accessibilityDisabled:!0,accessibilityErrorMessage:!0,accessibilityExpanded:!0,accessibilityFlowTo:!0,accessibilityHasPopup:!0,accessibilityHidden:!0,accessibilityInvalid:!0,accessibilityKeyShortcuts:!0,accessibilityLabel:!0,accessibilityLabelledBy:!0,accessibilityLevel:!0,accessibilityLiveRegion:!0,accessibilityModal:!0,accessibilityMultiline:!0,accessibilityMultiSelectable:!0,accessibilityOrientation:!0,accessibilityOwns:!0,accessibilityPlaceholder:!0,accessibilityPosInSet:!0,accessibilityPressed:!0,accessibilityReadOnly:!0,accessibilityRequired:!0,accessibilityRole:!0,accessibilityRoleDescription:!0,accessibilityRowCount:!0,accessibilityRowIndex:!0,accessibilityRowSpan:!0,accessibilitySelected:!0,accessibilitySetSize:!0,accessibilitySort:!0,accessibilityValueMax:!0,accessibilityValueMin:!0,accessibilityValueNow:!0,accessibilityValueText:!0},$l={onClick:!0,onAuxClick:!0,onContextMenu:!0,onGotPointerCapture:!0,onLostPointerCapture:!0,onPointerCancel:!0,onPointerDown:!0,onPointerEnter:!0,onPointerMove:!0,onPointerLeave:!0,onPointerOut:!0,onPointerOver:!0,onPointerUp:!0},eu={onBlur:!0,onFocus:!0},tu={onKeyDown:!0,onKeyDownCapture:!0,onKeyUp:!0,onKeyUpCapture:!0},nu={onMouseDown:!0,onMouseEnter:!0,onMouseLeave:!0,onMouseMove:!0,onMouseOver:!0,onMouseOut:!0,onMouseUp:!0},ru={onTouchCancel:!0,onTouchCancelCapture:!0,onTouchEnd:!0,onTouchEndCapture:!0,onTouchMove:!0,onTouchMoveCapture:!0,onTouchStart:!0,onTouchStartCapture:!0},iu={style:!0};function au(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&t[r]===!0&&(n[r]=e[r]);return n}Za();var ou=Xa?b.useLayoutEffect:b.useEffect;Za();var su=`__reactLayoutHandler`,cu=null;function lu(){return Xa&&window.ResizeObserver!==void 0&&(cu??=new window.ResizeObserver(function(e){e.forEach(e=>{var t=e.target,n=t[su];typeof n==`function`&&Jl.measure(t,(t,r,i,a,o,s)=>{var c={nativeEvent:{layout:{x:t,y:r,width:i,height:a,left:o,top:s}},timeStamp:Date.now()};Object.defineProperty(c.nativeEvent,"target",{enumerable:!0,get:()=>e.target}),n(c)})})})),cu}function uu(e,t){var n=lu();ou(()=>{var n=e.current;n!=null&&(n[su]=t)},[e,t]),ou(()=>{var t=e.current;return t!=null&&n!=null&&(typeof t[su]==`function`?n.observe(t):n.unobserve(t)),()=>{t!=null&&n!=null&&n.unobserve(t)}},[e,n])}function du(){var e=[...arguments];return function(t){e.forEach(e=>{if(e!=null){if(typeof e==`function`){e(t);return}if(typeof e==`object`){e.current=t;return}console.error(`mergeRefs cannot handle Refs of type boolean, number or string, received ref `+String(e))}})}}function fu(){var e=[...arguments];return b.useMemo(()=>du(...e),[...e])}var pu=typeof Symbol==`function`&&typeof Symbol()==`symbol`?Symbol():Object.freeze({});function mu(e){var t=b.useRef(pu);return t.current===pu&&(t.current=e()),t.current}function hu(e){return e.pointerEvents,e.style,mu(()=>e=>{e!=null&&(e.measure=t=>Jl.measure(e,t),e.measureLayout=(t,n,r)=>Jl.measureLayout(e,t,r,n),e.measureInWindow=t=>Jl.measureInWindow(e,t))})}var gu=()=>{},_u={},vu=[];function yu(e){return e>20?e%20:e}function bu(e,t){var n,r=!1,i,a,o=e.changedTouches,s=e.type,c=e.metaKey===!0,l=e.shiftKey===!0,u=o&&o[0].force||0,d=yu(o&&o[0].identifier||0),f=o&&o[0].clientX||e.clientX,p=o&&o[0].clientY||e.clientY,m=o&&o[0].pageX||e.pageX,h=o&&o[0].pageY||e.pageY,g=typeof e.preventDefault==`function`?e.preventDefault.bind(e):gu,_=e.timeStamp;function v(e){return Array.prototype.slice.call(e).map(e=>({force:e.force,identifier:yu(e.identifier),get locationX(){return x(e.clientX)},get locationY(){return S(e.clientY)},pageX:e.pageX,pageY:e.pageY,target:e.target,timestamp:_}))}if(o!=null)i=v(o),a=v(e.touches);else{var y=[{force:u,identifier:d,get locationX(){return x(f)},get locationY(){return S(p)},pageX:m,pageY:h,target:e.target,timestamp:_}];i=y,a=s===`mouseup`||s===`dragstart`?vu:y}var b={bubbles:!0,cancelable:!0,currentTarget:null,defaultPrevented:e.defaultPrevented,dispatchConfig:_u,eventPhase:e.eventPhase,isDefaultPrevented(){return e.defaultPrevented},isPropagationStopped(){return r},isTrusted:e.isTrusted,nativeEvent:{altKey:!1,ctrlKey:!1,metaKey:c,shiftKey:l,changedTouches:i,force:u,identifier:d,get locationX(){return x(f)},get locationY(){return S(p)},pageX:m,pageY:h,target:e.target,timestamp:_,touches:a,type:s},persist:gu,preventDefault:g,stopPropagation(){r=!0},target:e.target,timeStamp:_,touchHistory:t.touchHistory};function x(e){if(n||=zl(b.currentTarget),n)return e-n.left}function S(e){if(n||=zl(b.currentTarget),n)return e-n.top}return b}var xu=`scroll`;function Su(e){return e===`touchstart`||e===`mousedown`}function Cu(e){return e===`touchmove`||e===`mousemove`}function wu(e){return e===`touchend`||e===`mouseup`||Tu(e)}function Tu(e){return e===`touchcancel`||e===`dragstart`}function Eu(e){return e===xu}function Du(e){return e===`select`||e===`selectionchange`}function Ou(){var e=window.getSelection(),t=e.toString(),n=e.anchorNode,r=e.focusNode,i=n&&n.nodeType===window.Node.TEXT_NODE||r&&r.nodeType===window.Node.TEXT_NODE;return t.length>=1&&t!==`
|
|
16
|
+
`&&i}var ku=`__reactResponderId`;function Au(e){if(e.type===`selectionchange`){var t=window.getSelection().anchorNode;return ju(t)}return e.composedPath==null?ju(e.target):e.composedPath()}function ju(e){for(var t=[];e!=null&&e!==document.body;)t.push(e),e=e.parentNode;return t}function Mu(e){return e==null?null:e[ku]}function Nu(e,t){e!=null&&(e[ku]=t)}function Pu(e){for(var t=[],n=[],r=Au(e),i=0;i<r.length;i++){var a=r[i],o=Mu(a);o!=null&&(t.push(o),n.push(a))}return{idPath:t,nodePath:n}}function Fu(e,t){var n=e.length,r=t.length;if(n===0||r===0||e[n-1]!==t[r-1])return null;var i=e[0],a=0,o=t[0],s=0;n-r>0&&(a=n-r,i=e[a],n=r),r-n>0&&(s=r-n,o=t[s],r=n);for(var c=n;c--;){if(i===o)return i;i=e[a++],o=t[s++]}return null}function Iu(e,t){if(!t||t.length===0)return!1;for(var n=0;n<t.length;n++){var r=t[n].target;if(r!=null&&e.contains(r))return!0}return!1}function Lu(e){return e.type===`selectionchange`?Ou():e.type===`select`}function Ru(e){var t=e.altKey,n=e.button,r=e.buttons,i=e.ctrlKey,a=e.type,o=a===`touchstart`||a===`touchmove`,s=a===`mousedown`&&(n===0||r===1),c=a===`mousemove`&&r===1,l=t===!1&&i===!1;return!!(o||s&&l||c&&l)}var zu=20;function Bu(e){return e.timeStamp||e.timestamp}function Vu(e){return{touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:Bu(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:Bu(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:Bu(e)}}function Hu(e,t){e.touchActive=!0,e.startPageX=t.pageX,e.startPageY=t.pageY,e.startTimeStamp=Bu(t),e.currentPageX=t.pageX,e.currentPageY=t.pageY,e.currentTimeStamp=Bu(t),e.previousPageX=t.pageX,e.previousPageY=t.pageY,e.previousTimeStamp=Bu(t)}function Uu(e){var t=e.identifier;return t??console.error(`Touch object is missing identifier.`),t}function Wu(e,t){var n=Uu(e),r=t.touchBank[n];r?Hu(r,e):t.touchBank[n]=Vu(e),t.mostRecentTimeStamp=Bu(e)}function Gu(e,t){var n=t.touchBank[Uu(e)];n?(n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=Bu(e),t.mostRecentTimeStamp=Bu(e)):console.warn(`Cannot record touch move without a touch start.
|
|
17
|
+
`,`Touch Move: `+qu(e)+`
|
|
18
|
+
`,`Touch Bank: `+Ju(t))}function Ku(e,t){var n=t.touchBank[Uu(e)];n?(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=Bu(e),t.mostRecentTimeStamp=Bu(e)):console.warn(`Cannot record touch end without a touch start.
|
|
19
|
+
`,`Touch End: `+qu(e)+`
|
|
20
|
+
`,`Touch Bank: `+Ju(t))}function qu(e){return JSON.stringify({identifier:e.identifier,pageX:e.pageX,pageY:e.pageY,timestamp:Bu(e)})}function Ju(e){var t=e.touchBank,n=JSON.stringify(t.slice(0,zu));return t.length>zu&&(n+=` (original size: `+t.length+`)`),n}var Yu=class{constructor(){this._touchHistory={touchBank:[],numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0}}recordTouchTrack(e,t){var n=this._touchHistory;if(Cu(e))t.changedTouches.forEach(e=>Gu(e,n));else if(Su(e))t.changedTouches.forEach(e=>Wu(e,n)),n.numberActiveTouches=t.touches.length,n.numberActiveTouches===1&&(n.indexOfSingleActiveTouch=t.touches[0].identifier);else if(wu(e)&&(t.changedTouches.forEach(e=>Ku(e,n)),n.numberActiveTouches=t.touches.length,n.numberActiveTouches===1))for(var r=n.touchBank,i=0;i<r.length;i++){var a=r[i];if(a!=null&&a.touchActive){n.indexOfSingleActiveTouch=i;break}}}get touchHistory(){return this._touchHistory}};Za();var Xu={},Zu=[`onStartShouldSetResponderCapture`,`onStartShouldSetResponder`,{bubbles:!0}],Qu=[`onMoveShouldSetResponderCapture`,`onMoveShouldSetResponder`,{bubbles:!0}],$u={touchstart:Zu,mousedown:Zu,touchmove:Qu,mousemove:Qu,scroll:[`onScrollShouldSetResponderCapture`,`onScrollShouldSetResponder`,{bubbles:!1}]},ed={id:null,idPath:null,node:null},td=new Map,nd=!1,rd=0,id={id:null,node:null,idPath:null},ad=new Yu;function od(e){id=e}function sd(e){return td.get(e)??Xu}function cd(e){var t=e.type,n=e.target;if(t===`touchstart`&&(nd=!0),(t===`touchmove`||rd>1)&&(nd=!1),!(t===`mousedown`&&nd||t===`mousemove`&&nd||t===`mousemove`&&rd<1)){if(nd&&t===`mouseup`){rd===0&&(nd=!1);return}var r=Su(t)&&Ru(e),i=Cu(t),a=wu(t),o=Eu(t),s=Du(t),c=bu(e,ad);(r||i||a)&&(e.touches?rd=e.touches.length:r?rd=1:a&&(rd=0),ad.recordTouchTrack(t,c.nativeEvent));var l=Pu(e),u=!1,d;if(r||i||o&&rd>0){var f=id.idPath,p=l.idPath;if(f!=null&&p!=null){var m=Fu(f,p);if(m!=null){var h=p.indexOf(m)+ +(m===id.id);l={idPath:p.slice(h),nodePath:l.nodePath.slice(h)}}else l=null}l!=null&&(d=ld(l,e,c),d!=null&&(ud(c,d),u=!0))}if(id.id!=null&&id.node!=null){var g=id,_=g.id,v=g.node,y=sd(_),b=y.onResponderStart,x=y.onResponderMove,S=y.onResponderEnd,C=y.onResponderRelease,w=y.onResponderTerminate,T=y.onResponderTerminationRequest;if(c.bubbles=!1,c.cancelable=!1,c.currentTarget=v,r)b!=null&&(c.dispatchConfig.registrationName=`onResponderStart`,b(c));else if(i)x!=null&&(c.dispatchConfig.registrationName=`onResponderMove`,x(c));else{var E=Tu(t)||t===`contextmenu`||t===`blur`&&n===window||t===`blur`&&n.contains(v)&&e.relatedTarget!==v||o&&rd===0||o&&n.contains(v)&&n!==v||s&&Lu(e),D=a&&!E&&!Iu(v,e.touches);if(a&&S!=null&&(c.dispatchConfig.registrationName=`onResponderEnd`,S(c)),D&&(C!=null&&(c.dispatchConfig.registrationName=`onResponderRelease`,C(c)),od(ed)),E){var O=!0;(t===`contextmenu`||t===`scroll`||t===`selectionchange`)&&(u?O=!1:T!=null&&(c.dispatchConfig.registrationName=`onResponderTerminationRequest`,T(c)===!1&&(O=!1))),O&&(w!=null&&(c.dispatchConfig.registrationName=`onResponderTerminate`,w(c)),od(ed),nd=!1,rd=0)}}}}}function ld(e,t,n){var r=$u[t.type];if(r!=null){for(var i=e.idPath,a=e.nodePath,o=r[0],s=r[1],c=r[2].bubbles,l=function(e,t,r){var a=sd(e)[r];if(a!=null&&(n.currentTarget=t,a(n)===!0))return{id:e,node:t,idPath:i.slice(i.indexOf(e))}},u=i.length-1;u>=0;u--){var d=i[u],f=a[u],p=l(d,f,o);if(p!=null)return p;if(n.isPropagationStopped()===!0)return}if(c)for(var m=0;m<i.length;m++){var h=i[m],g=a[m],_=l(h,g,s);if(_!=null)return _;if(n.isPropagationStopped()===!0)return}else{var v=i[0],y=a[0];if(t.target===y)return l(v,y,s)}}}function ud(e,t){var n=id,r=n.id,i=n.node,a=t.id,o=t.node,s=sd(a),c=s.onResponderGrant,l=s.onResponderReject;if(e.bubbles=!1,e.cancelable=!1,e.currentTarget=o,r==null)c!=null&&(e.currentTarget=o,e.dispatchConfig.registrationName=`onResponderGrant`,c(e)),od(t);else{var u=sd(r),d=u.onResponderTerminate,f=u.onResponderTerminationRequest,p=!0;f!=null&&(e.currentTarget=i,e.dispatchConfig.registrationName=`onResponderTerminationRequest`,f(e)===!1&&(p=!1)),p?(d!=null&&(e.currentTarget=i,e.dispatchConfig.registrationName=`onResponderTerminate`,d(e)),c!=null&&(e.currentTarget=o,e.dispatchConfig.registrationName=`onResponderGrant`,c(e)),od(t)):l!=null&&(e.currentTarget=o,e.dispatchConfig.registrationName=`onResponderReject`,l(e))}}var dd=[`blur`,`scroll`],fd=[`mousedown`,`mousemove`,`mouseup`,`dragstart`,`touchstart`,`touchmove`,`touchend`,`touchcancel`,`contextmenu`,`select`,`selectionchange`];function pd(){Xa&&window.__reactResponderSystemActive==null&&(window.addEventListener(`blur`,cd),fd.forEach(e=>{document.addEventListener(e,cd)}),dd.forEach(e=>{document.addEventListener(e,cd,!0)}),window.__reactResponderSystemActive=!0)}function md(e,t,n){Nu(t,e),td.set(e,n)}function hd(e){id.id===e&&gd(),td.has(e)&&td.delete(e)}function gd(){var e=id,t=e.id,n=e.node;if(t!=null&&n!=null){var r=sd(t).onResponderTerminate;if(r!=null){var i=bu({},ad);i.currentTarget=n,r(i)}od(ed)}nd=!1,rd=0}function _d(){return id.node}var vd={},yd=0;function bd(e){var t=b.useRef(null);return t.current??=e(),t.current}function xd(e,t){t===void 0&&(t=vd);var n=bd(()=>yd++),r=b.useRef(!1);b.useEffect(()=>(pd(),()=>{hd(n)}),[n]),b.useEffect(()=>{var i=t,a=i.onMoveShouldSetResponder,o=i.onMoveShouldSetResponderCapture,s=i.onScrollShouldSetResponder,c=i.onScrollShouldSetResponderCapture,l=i.onSelectionChangeShouldSetResponder,u=i.onSelectionChangeShouldSetResponderCapture,d=i.onStartShouldSetResponder,f=i.onStartShouldSetResponderCapture,p=a!=null||o!=null||s!=null||c!=null||l!=null||u!=null||d!=null||f!=null,m=e.current;p?(md(n,m,t),r.current=!0):r.current&&=(hd(n),!1)},[t,e,n]),b.useDebugValue({isResponder:e.current===_d()}),b.useDebugValue(t)}var Sd=(0,b.createContext)(!1),Cd=[`hrefAttrs`,`onLayout`,`onMoveShouldSetResponder`,`onMoveShouldSetResponderCapture`,`onResponderEnd`,`onResponderGrant`,`onResponderMove`,`onResponderReject`,`onResponderRelease`,`onResponderStart`,`onResponderTerminate`,`onResponderTerminationRequest`,`onScrollShouldSetResponder`,`onScrollShouldSetResponderCapture`,`onSelectionChangeShouldSetResponder`,`onSelectionChangeShouldSetResponderCapture`,`onStartShouldSetResponder`,`onStartShouldSetResponderCapture`],wd=Object.assign({},Zl,Ql,$l,eu,tu,nu,ru,iu,{href:!0,lang:!0,onScroll:!0,onWheel:!0,pointerEvents:!0}),Td=e=>au(e,wd),Ed=b.forwardRef((e,t)=>{var n=e.hrefAttrs,r=e.onLayout,i=e.onMoveShouldSetResponder,a=e.onMoveShouldSetResponderCapture,o=e.onResponderEnd,s=e.onResponderGrant,c=e.onResponderMove,l=e.onResponderReject,u=e.onResponderRelease,d=e.onResponderStart,f=e.onResponderTerminate,p=e.onResponderTerminationRequest,m=e.onScrollShouldSetResponder,h=e.onScrollShouldSetResponderCapture,g=e.onSelectionChangeShouldSetResponder,_=e.onSelectionChangeShouldSetResponderCapture,v=e.onStartShouldSetResponder,y=e.onStartShouldSetResponderCapture,x=Pa(e,Cd),S=b.useContext(Sd),C=b.useRef(null),w=Ll().direction;uu(C,r),xd(C,{onMoveShouldSetResponder:i,onMoveShouldSetResponderCapture:a,onResponderEnd:o,onResponderGrant:s,onResponderMove:c,onResponderReject:l,onResponderRelease:u,onResponderStart:d,onResponderTerminate:f,onResponderTerminationRequest:p,onScrollShouldSetResponder:m,onScrollShouldSetResponderCapture:h,onSelectionChangeShouldSetResponder:g,onSelectionChangeShouldSetResponderCapture:_,onStartShouldSetResponder:v,onStartShouldSetResponderCapture:y});var T=`div`,E=e.lang==null?null:Fl(e.lang),D=e.dir||E,O=D||w,k=Td(x);if(k.dir=D,k.style=[Dd.view$raw,S&&Dd.inline,e.style],e.href!=null&&(T=`a`,n!=null)){var ee=n.download,A=n.rel,te=n.target;ee!=null&&(k.download=ee),A!=null&&(k.rel=A),typeof te==`string`&&(k.target=te.charAt(0)===`_`?te:`_`+te)}return k.ref=fu(C,hu(k),t),Rl(T,k,{writingDirection:O})});Ed.displayName=`View`;var Dd=yl.create({view$raw:{alignContent:`flex-start`,alignItems:`stretch`,backgroundColor:`transparent`,border:`0 solid black`,boxSizing:`border-box`,display:`flex`,flexBasis:`auto`,flexDirection:`column`,flexShrink:0,listStyle:`none`,margin:0,minHeight:0,minWidth:0,padding:0,position:`relative`,textDecoration:`none`},inline:{display:`inline-flex`}}),Od=function e(t,n,r){if(r===void 0&&(r=-1),r===0)return!0;if(t===n||typeof t==`function`&&typeof n==`function`)return!1;if(typeof t!=`object`||!t)return t!==n;if(typeof n!=`object`||!n||t.constructor!==n.constructor)return!0;if(Array.isArray(t)){var i=t.length;if(n.length!==i)return!0;for(var a=0;a<i;a++)if(e(t[a],n[a],r-1))return!0}else{for(var o in t)if(e(t[o],n[o],r-1))return!0;for(var s in n)if(t[s]===void 0&&n[s]!==void 0)return!0}return!1},kd=s(((e,t)=>{function n(e,t){var n=[...arguments].slice(2);if(!e){var r;if(t===void 0)r=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var i=0;r=Error(t.replace(/%s/g,function(){return String(n[i++])})),r.name=`Invariant Violation`}throw r.framesToPop=1,r}}t.exports=n}));function Ad(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function jd(e,t){if(e){if(typeof e==`string`)return Ad(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ad(e,t):void 0}}function Md(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=jd(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
21
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Nd=[`colors`,`enabled`,`onRefresh`,`progressBackgroundColor`,`progressViewOffset`,`refreshing`,`size`,`tintColor`,`title`,`titleColor`];function Pd(e){e.colors,e.enabled,e.onRefresh,e.progressBackgroundColor,e.progressViewOffset,e.refreshing,e.size,e.tintColor,e.title,e.titleColor;var t=Pa(e,Nd);return b.createElement(Ed,t)}var W=u(kd());Za();var Fd={window:{fontScale:1,height:0,scale:1,width:0},screen:{fontScale:1,height:0,scale:1,width:0}},Id={},Ld=Xa;function Rd(){if(Xa){var e=window,t,n;if(e.visualViewport){var r=e.visualViewport;t=Math.round(r.height*r.scale),n=Math.round(r.width*r.scale)}else{var i=e.document.documentElement;t=i.clientHeight,n=i.clientWidth}Fd.window={fontScale:1,height:t,scale:e.devicePixelRatio||1,width:n},Fd.screen={fontScale:1,height:e.screen.height,scale:e.devicePixelRatio||1,width:e.screen.width}}}function zd(){Rd(),Array.isArray(Id.change)&&Id.change.forEach(e=>e(Fd))}var Bd=class{static get(e){return Ld&&(Ld=!1,Rd()),(0,W.default)(Fd[e],`No dimension set for key `+e),Fd[e]}static set(e){e&&(Xa?(0,W.default)(!1,`Dimensions cannot be set in the browser`):(e.screen!=null&&(Fd.screen=e.screen),e.window!=null&&(Fd.window=e.window)))}static addEventListener(e,t){return Id[e]=Id[e]||[],Id[e].push(t),{remove:()=>{this.removeEventListener(e,t)}}}static removeEventListener(e,t){Array.isArray(Id[e])&&(Id[e]=Id[e].filter(e=>e!==t))}};Xa&&(window.visualViewport?window.visualViewport.addEventListener(`resize`,zd,!1):window.addEventListener(`resize`,zd,!1));var Vd={_currentlyFocusedNode:null,currentlyFocusedField(){return document.activeElement!==this._currentlyFocusedNode&&(this._currentlyFocusedNode=null),this._currentlyFocusedNode},focusTextInput(e){e!==null&&(this._currentlyFocusedNode=e,document.activeElement!==e&&Jl.focus(e))},blurTextInput(e){e!==null&&(this._currentlyFocusedNode=null,document.activeElement===e&&Jl.blur(e))}},Hd=()=>{Vd.blurTextInput(Vd.currentlyFocusedField())},Ud=[`onScroll`,`onTouchMove`,`onWheel`,`scrollEnabled`,`scrollEventThrottle`,`showsHorizontalScrollIndicator`,`showsVerticalScrollIndicator`,`style`];function Wd(e){return{nativeEvent:{contentOffset:{get x(){return e.target.scrollLeft},get y(){return e.target.scrollTop}},contentSize:{get height(){return e.target.scrollHeight},get width(){return e.target.scrollWidth}},layoutMeasurement:{get height(){return e.target.offsetHeight},get width(){return e.target.offsetWidth}}},timeStamp:Date.now()}}function Gd(e,t){var n=Date.now()-e;return t>0&&n>=t}var Kd=b.forwardRef((e,t)=>{var n=e.onScroll,r=e.onTouchMove,i=e.onWheel,a=e.scrollEnabled,o=a===void 0||a,s=e.scrollEventThrottle,c=s===void 0?0:s,l=e.showsHorizontalScrollIndicator,u=e.showsVerticalScrollIndicator,d=e.style,f=Pa(e,Ud),p=b.useRef({isScrolling:!1,scrollLastTick:0}),m=b.useRef(null),h=b.useRef(null);function g(e){return t=>{o&&e&&e(t)}}function _(e){e.stopPropagation(),e.target===h.current&&(e.persist(),m.current!=null&&clearTimeout(m.current),m.current=setTimeout(()=>{x(e)},100),p.current.isScrolling?Gd(p.current.scrollLastTick,c)&&y(e):v(e))}function v(e){p.current.isScrolling=!0,y(e)}function y(e){p.current.scrollLastTick=Date.now(),n&&n(Wd(e))}function x(e){p.current.isScrolling=!1,n&&n(Wd(e))}var S=l===!1||u===!1;return b.createElement(Ed,Xl({},f,{onScroll:_,onTouchMove:g(r),onWheel:g(i),ref:fu(h,t),style:[d,!o&&qd.scrollDisabled,S&&qd.hideScrollbar]}))}),qd=yl.create({scrollDisabled:{overflowX:`hidden`,overflowY:`hidden`,touchAction:`none`},hideScrollbar:{scrollbarWidth:`none`}}),Jd=s(((e,t)=>{function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},t.exports=r})),Yd=u(s(((e,t)=>{t.exports=Jd()}))()),Xd=[`contentContainerStyle`,`horizontal`,`onContentSizeChange`,`refreshControl`,`stickyHeaderIndices`,`pagingEnabled`,`forwardedRef`,`keyboardDismissMode`,`onScroll`,`centerContent`],Zd={},Qd=16,$d=class extends b.Component{constructor(){super(...arguments),this._scrollNodeRef=null,this._innerViewRef=null,this.isTouching=!1,this.lastMomentumScrollBeginTime=0,this.lastMomentumScrollEndTime=0,this.observedScrollSinceBecomingResponder=!1,this.becameResponderWhileAnimating=!1,this.scrollResponderHandleScrollShouldSetResponder=()=>this.isTouching,this.scrollResponderHandleStartShouldSetResponderCapture=e=>this.scrollResponderIsAnimating(),this.scrollResponderHandleTerminationRequest=()=>!this.observedScrollSinceBecomingResponder,this.scrollResponderHandleTouchEnd=e=>{var t=e.nativeEvent;this.isTouching=t.touches.length!==0,this.props.onTouchEnd&&this.props.onTouchEnd(e)},this.scrollResponderHandleResponderRelease=e=>{this.props.onResponderRelease&&this.props.onResponderRelease(e);var t=Vd.currentlyFocusedField();!this.props.keyboardShouldPersistTaps&&t!=null&&e.target!==t&&!this.observedScrollSinceBecomingResponder&&!this.becameResponderWhileAnimating&&(this.props.onScrollResponderKeyboardDismissed&&this.props.onScrollResponderKeyboardDismissed(e),Vd.blurTextInput(t))},this.scrollResponderHandleScroll=e=>{this.observedScrollSinceBecomingResponder=!0,this.props.onScroll&&this.props.onScroll(e)},this.scrollResponderHandleResponderGrant=e=>{this.observedScrollSinceBecomingResponder=!1,this.props.onResponderGrant&&this.props.onResponderGrant(e),this.becameResponderWhileAnimating=this.scrollResponderIsAnimating()},this.scrollResponderHandleScrollBeginDrag=e=>{this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},this.scrollResponderHandleScrollEndDrag=e=>{this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},this.scrollResponderHandleMomentumScrollBegin=e=>{this.lastMomentumScrollBeginTime=Date.now(),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},this.scrollResponderHandleMomentumScrollEnd=e=>{this.lastMomentumScrollEndTime=Date.now(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},this.scrollResponderHandleTouchStart=e=>{this.isTouching=!0,this.props.onTouchStart&&this.props.onTouchStart(e)},this.scrollResponderHandleTouchMove=e=>{this.props.onTouchMove&&this.props.onTouchMove(e)},this.scrollResponderIsAnimating=()=>Date.now()-this.lastMomentumScrollEndTime<Qd||this.lastMomentumScrollEndTime<this.lastMomentumScrollBeginTime,this.scrollResponderScrollTo=(e,t,n)=>{if(typeof e==`number`)console.warn("`scrollResponderScrollTo(x, y, animated)` is deprecated. Use `scrollResponderScrollTo({x: 5, y: 5, animated: true})` instead.");else{var r=e||Zd;e=r.x,t=r.y,n=r.animated}var i=this.getScrollableNode(),a=e||0,o=t||0;i!=null&&(typeof i.scroll==`function`?i.scroll({top:o,left:a,behavior:n?`smooth`:`auto`}):(i.scrollLeft=a,i.scrollTop=o))},this.scrollResponderZoomTo=(e,t)=>{Yl.OS!==`ios`&&(0,W.default)(`zoomToRect is not implemented`)},this.scrollResponderScrollNativeHandleToKeyboard=(e,t,n)=>{this.additionalScrollOffset=t||0,this.preventNegativeScrollOffset=!!n,Jl.measureLayout(e,this.getInnerViewNode(),this.scrollResponderTextInputFocusError,this.scrollResponderInputMeasureAndScrollToKeyboard)},this.scrollResponderInputMeasureAndScrollToKeyboard=(e,t,n,r)=>{var i=Bd.get(`window`).height;this.keyboardWillOpenTo&&(i=this.keyboardWillOpenTo.endCoordinates.screenY);var a=t-i+r+this.additionalScrollOffset;this.preventNegativeScrollOffset&&(a=Math.max(0,a)),this.scrollResponderScrollTo({x:0,y:a,animated:!0}),this.additionalOffset=0,this.preventNegativeScrollOffset=!1},this.scrollResponderKeyboardWillShow=e=>{this.keyboardWillOpenTo=e,this.props.onKeyboardWillShow&&this.props.onKeyboardWillShow(e)},this.scrollResponderKeyboardWillHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardWillHide&&this.props.onKeyboardWillHide(e)},this.scrollResponderKeyboardDidShow=e=>{e&&(this.keyboardWillOpenTo=e),this.props.onKeyboardDidShow&&this.props.onKeyboardDidShow(e)},this.scrollResponderKeyboardDidHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardDidHide&&this.props.onKeyboardDidHide(e)},this.flashScrollIndicators=()=>{this.scrollResponderFlashScrollIndicators()},this.getScrollResponder=()=>this,this.getScrollableNode=()=>this._scrollNodeRef,this.getInnerViewRef=()=>this._innerViewRef,this.getInnerViewNode=()=>this._innerViewRef,this.getNativeScrollRef=()=>this._scrollNodeRef,this.scrollTo=(e,t,n)=>{if(typeof e==`number`)console.warn("`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, animated: true})` instead.");else{var r=e||Zd;t=r.x,e=r.y,n=r.animated}this.scrollResponderScrollTo({x:t||0,y:e||0,animated:n!==!1})},this.scrollToEnd=e=>{var t=(e&&e.animated)!==!1,n=this.props.horizontal,r=this.getScrollableNode(),i=n?r.scrollWidth:0,a=n?0:r.scrollHeight;this.scrollResponderScrollTo({x:i,y:a,animated:t})},this._handleContentOnLayout=e=>{var t=e.nativeEvent.layout,n=t.width,r=t.height;this.props.onContentSizeChange(n,r)},this._handleScroll=e=>{this.props.keyboardDismissMode===`on-drag`&&Hd(),this.scrollResponderHandleScroll(e)},this._setInnerViewRef=e=>{this._innerViewRef=e},this._setScrollNodeRef=e=>{this._scrollNodeRef=e,e!=null&&(e.getScrollResponder=this.getScrollResponder,e.getInnerViewNode=this.getInnerViewNode,e.getInnerViewRef=this.getInnerViewRef,e.getNativeScrollRef=this.getNativeScrollRef,e.getScrollableNode=this.getScrollableNode,e.scrollTo=this.scrollTo,e.scrollToEnd=this.scrollToEnd,e.flashScrollIndicators=this.flashScrollIndicators,e.scrollResponderZoomTo=this.scrollResponderZoomTo,e.scrollResponderScrollNativeHandleToKeyboard=this.scrollResponderScrollNativeHandleToKeyboard),du(this.props.forwardedRef)(e)}}scrollResponderHandleStartShouldSetResponder(){return!1}scrollResponderHandleResponderReject(){(0,Yd.default)(!1,`ScrollView doesn't take rejection well - scrolls anyway`)}scrollResponderFlashScrollIndicators(){}scrollResponderTextInputFocusError(e){console.error(`Error measuring text field: `,e)}render(){var e=this.props,t=e.contentContainerStyle,n=e.horizontal,r=e.onContentSizeChange,i=e.refreshControl,a=e.stickyHeaderIndices,o=e.pagingEnabled;e.forwardedRef,e.keyboardDismissMode,e.onScroll;var s=e.centerContent,c=Pa(e,Xd),l={};r&&(l={onLayout:this._handleContentOnLayout});var u=!n&&Array.isArray(a),d=u||o?b.Children.map(this.props.children,(e,t)=>{var n=u&&a.indexOf(t)>-1;return e!=null&&(n||o)?b.createElement(Ed,{style:[n&&tf.stickyHeader,o&&tf.pagingEnabledChild]},e):e}):this.props.children,f=b.createElement(Ed,Xl({},l,{children:d,collapsable:!1,ref:this._setInnerViewRef,style:[n&&tf.contentContainerHorizontal,s&&tf.contentContainerCenterContent,t]})),p=n?tf.baseHorizontal:tf.baseVertical,m=n?tf.pagingEnabledHorizontal:tf.pagingEnabledVertical,h=H(H({},c),{},{style:[p,o&&m,this.props.style],onTouchStart:this.scrollResponderHandleTouchStart,onTouchMove:this.scrollResponderHandleTouchMove,onTouchEnd:this.scrollResponderHandleTouchEnd,onScrollBeginDrag:this.scrollResponderHandleScrollBeginDrag,onScrollEndDrag:this.scrollResponderHandleScrollEndDrag,onMomentumScrollBegin:this.scrollResponderHandleMomentumScrollBegin,onMomentumScrollEnd:this.scrollResponderHandleMomentumScrollEnd,onStartShouldSetResponder:this.scrollResponderHandleStartShouldSetResponder,onStartShouldSetResponderCapture:this.scrollResponderHandleStartShouldSetResponderCapture,onScrollShouldSetResponder:this.scrollResponderHandleScrollShouldSetResponder,onScroll:this._handleScroll,onResponderGrant:this.scrollResponderHandleResponderGrant,onResponderTerminationRequest:this.scrollResponderHandleTerminationRequest,onResponderTerminate:this.scrollResponderHandleTerminate,onResponderRelease:this.scrollResponderHandleResponderRelease,onResponderReject:this.scrollResponderHandleResponderReject}),g=Kd;(0,W.default)(g!==void 0,`ScrollViewClass must not be undefined`);var _=b.createElement(g,Xl({},h,{ref:this._setScrollNodeRef}),f);return i?b.cloneElement(i,{style:h.style},_):_}},ef={flexGrow:1,flexShrink:1,transform:`translateZ(0)`,WebkitOverflowScrolling:`touch`},tf=yl.create({baseVertical:H(H({},ef),{},{flexDirection:`column`,overflowX:`hidden`,overflowY:`auto`}),baseHorizontal:H(H({},ef),{},{flexDirection:`row`,overflowX:`auto`,overflowY:`hidden`}),contentContainerHorizontal:{flexDirection:`row`},contentContainerCenterContent:{justifyContent:`center`,flexGrow:1},stickyHeader:{position:`sticky`,top:0,zIndex:10},pagingEnabledHorizontal:{scrollSnapType:`x mandatory`},pagingEnabledVertical:{scrollSnapType:`y mandatory`},pagingEnabledChild:{scrollSnapAlign:`start`}}),nf=b.forwardRef((e,t)=>b.createElement($d,Xl({},e,{forwardedRef:t})));nf.displayName=`ScrollView`;var rf=class{constructor(e){var t=e.onMoreTasks;this._onMoreTasks=t,this._queueStack=[{tasks:[],popable:!0}]}enqueue(e){this._getCurrentQueue().push(e)}enqueueTasks(e){e.forEach(e=>this.enqueue(e))}cancelTasks(e){this._queueStack=this._queueStack.map(t=>H(H({},t),{},{tasks:t.tasks.filter(t=>e.indexOf(t)===-1)})).filter((e,t)=>e.tasks.length>0||t===0)}hasTasksToProcess(){return this._getCurrentQueue().length>0}processNext(){var e=this._getCurrentQueue();if(e.length){var t=e.shift();try{typeof t==`object`&&t.gen?this._genPromise(t):typeof t==`object`&&t.run?t.run():((0,W.default)(typeof t==`function`,`Expected Function, SimpleTask, or PromiseTask, but got:
|
|
22
|
+
`+JSON.stringify(t,null,2)),t())}catch(e){throw e.message=`TaskQueue: Error with task `+(t.name||``)+`: `+e.message,e}}}_getCurrentQueue(){var e=this._queueStack.length-1,t=this._queueStack[e];return t.popable&&t.tasks.length===0&&e>0?(this._queueStack.pop(),this._getCurrentQueue()):t.tasks}_genPromise(e){var t=this._queueStack.push({tasks:[],popable:!1})-1,n=this._queueStack[t];e.gen().then(()=>{n.popable=!0,this.hasTasksToProcess()&&this._onMoreTasks()}).catch(t=>{setTimeout(()=>{throw t.message=`TaskQueue: Error resolving Promise in task `+e.name+`: `+t.message,t},0)})}},af=class{constructor(){this._registry={}}addListener(e,t,n){var r=of(this._registry,e),i={context:n,listener:t,remove(){r.delete(i)}};return r.add(i),i}emit(e){var t=this._registry[e];if(t!=null)for(var n=[...arguments].slice(1),r=0,i=[...t];r<i.length;r++){var a=i[r];a.listener.apply(a.context,n)}}removeAllListeners(e){e==null?this._registry={}:delete this._registry[e]}listenerCount(e){var t=this._registry[e];return t==null?0:t.size}};function of(e,t){var n=e[t];return n??(n=new Set,e[t]=n),n}Za();var sf=function(e,t){return setTimeout(()=>{var t=Date.now();e({didTimeout:!1,timeRemaining(){return Math.max(0,50-(Date.now()-t))}})},1)},cf=Xa&&window.requestIdleCallback!==void 0,lf=cf?window.requestIdleCallback:sf;cf&&window.cancelIdleCallback;var uf=new af,df={Events:{interactionStart:`interactionStart`,interactionComplete:`interactionComplete`},runAfterInteractions(e){var t=[],n=new Promise(n=>{yf(),e&&t.push(e),t.push({run:n,name:`resolve `+(e&&e.name||`?`)}),hf.enqueueTasks(t)});return{then:n.then.bind(n),done:n.then.bind(n),cancel:()=>{hf.cancelTasks(t)}}},createInteractionHandle(){yf();var e=++_f;return pf.add(e),e},clearInteractionHandle(e){(0,W.default)(!!e,`Must provide a handle to clear.`),yf(),pf.delete(e),mf.add(e)},addListener:uf.addListener.bind(uf),setDeadline(e){vf=e}},ff=new Set,pf=new Set,mf=new Set,hf=new rf({onMoreTasks:yf}),gf=0,_f=0,vf=-1;function yf(){gf||=vf>0?setTimeout(bf):lf(bf)}function bf(){gf=0;var e=ff.size;pf.forEach(e=>ff.add(e)),mf.forEach(e=>ff.delete(e));var t=ff.size;if(e!==0&&t===0?uf.emit(df.Events.interactionComplete):e===0&&t!==0&&uf.emit(df.Events.interactionStart),t===0){for(var n=Date.now();hf.hasTasksToProcess();)if(hf.processNext(),vf>0&&Date.now()-n>=vf){yf();break}}pf.clear(),mf.clear()}var xf=class{constructor(e,t){this._delay=t,this._callback=e}dispose(e){e===void 0&&(e={abort:!1}),this._taskHandle&&=(this._taskHandle.cancel(),e.abort||this._callback(),null)}schedule(){if(!this._taskHandle){var e=setTimeout(()=>{this._taskHandle=df.runAfterInteractions(()=>{this._taskHandle=null,this._callback()})},this._delay);this._taskHandle={cancel:()=>clearTimeout(e)}}}};function Sf(e,t,n){return t<e?e:t>n?n:t}function Cf(){return console.log(...arguments)}var wf=class{constructor(e){(0,W.default)(e>=0,`CellRenderMask must contain a non-negative number os cells`),this._numCells=e,this._regions=e===0?[]:[{first:0,last:e-1,isSpacer:!0}]}enumerateRegions(){return this._regions}addCells(e){if((0,W.default)(e.first>=0&&e.first<this._numCells&&e.last>=-1&&e.last<this._numCells&&e.last>=e.first-1,`CellRenderMask.addCells called with invalid cell range`),!(e.last<e.first)){var t=this._findRegion(e.first),n=t[0],r=t[1],i=this._findRegion(e.last),a=i[0],o=i[1];if(r!==o||n.isSpacer){var s=[],c=[],l=H(H({},e),{},{isSpacer:!1});n.first<l.first&&(n.isSpacer?s.push({first:n.first,last:l.first-1,isSpacer:!0}):l.first=n.first),a.last>l.last&&(a.isSpacer?c.push({first:l.last+1,last:a.last,isSpacer:!0}):l.last=a.last);var u=[...s,l,...c],d=o-r+1;this._regions.splice(r,d,...u)}}}numCells(){return this._numCells}equals(e){return this._numCells===e._numCells&&this._regions.length===e._regions.length&&this._regions.every((t,n)=>t.first===e._regions[n].first&&t.last===e._regions[n].last&&t.isSpacer===e._regions[n].isSpacer)}_findRegion(e){for(var t=0,n=this._regions.length-1;t<=n;){var r=Math.floor((t+n)/2),i=this._regions[r];if(e>=i.first&&e<=i.last)return[i,r];e<i.first?n=r-1:e>i.last&&(t=r+1)}(0,W.default)(!1,`A region was not found containing cellIdx `+e)}},Tf=class{constructor(){this._cellKeyToChildren=new Map,this._childrenToCellKey=new Map}add(e,t){(0,W.default)(!this._childrenToCellKey.has(e),`Trying to add already present child list`);var n=this._cellKeyToChildren.get(t)??new Set;n.add(e),this._cellKeyToChildren.set(t,n),this._childrenToCellKey.set(e,t)}remove(e){var t=this._childrenToCellKey.get(e);(0,W.default)(t!=null,`Trying to remove non-present child list`),this._childrenToCellKey.delete(e);var n=this._cellKeyToChildren.get(t);(0,W.default)(n,`_cellKeyToChildren should contain cellKey`),n.delete(e),n.size===0&&this._cellKeyToChildren.delete(t)}forEach(e){for(var t=Md(this._cellKeyToChildren.values()),n;!(n=t()).done;)for(var r=n.value,i=Md(r),a;!(a=i()).done;){var o=a.value;e(o)}}forEachInCell(e,t){for(var n=Md(this._cellKeyToChildren.get(e)??[]),r;!(r=n()).done;){var i=r.value;t(i)}}anyInCell(e,t){for(var n=Md(this._cellKeyToChildren.get(e)??[]),r;!(r=n()).done;){var i=r.value;if(t(i))return!0}return!1}size(){return this._childrenToCellKey.size}},Ef=class{constructor(){this.any_blank_count=0,this.any_blank_ms=0,this.any_blank_speed_sum=0,this.mostly_blank_count=0,this.mostly_blank_ms=0,this.pixels_blank=0,this.pixels_sampled=0,this.pixels_scrolled=0,this.total_time_spent=0,this.sample_count=0}},Df=[],Of=10,kf=null,Af=class{static addListener(e){return kf===null&&console.warn("Call `FillRateHelper.setSampleRate` before `addListener`."),Df.push(e),{remove:()=>{Df=Df.filter(t=>e!==t)}}}static setSampleRate(e){kf=e}static setMinSampleCount(e){Of=e}constructor(e){this._anyBlankStartTime=null,this._enabled=!1,this._info=new Ef,this._mostlyBlankStartTime=null,this._samplesStartTime=null,this._getFrameMetrics=e,this._enabled=(kf||0)>Math.random(),this._resetData()}activate(){this._enabled&&this._samplesStartTime==null&&(this._samplesStartTime=globalThis.performance.now())}deactivateAndFlush(){if(this._enabled){var e=this._samplesStartTime;if(e!=null){if(this._info.sample_count<Of){this._resetData();return}var t=globalThis.performance.now()-e,n=H(H({},this._info),{},{total_time_spent:t});Df.forEach(e=>e(n)),this._resetData()}}}computeBlankness(e,t,n){if(!this._enabled||e.getItemCount(e.data)===0||t.last<t.first||this._samplesStartTime==null)return 0;var r=n.dOffset,i=n.offset,a=n.velocity,o=n.visibleLength;this._info.sample_count++,this._info.pixels_sampled+=Math.round(o),this._info.pixels_scrolled+=Math.round(Math.abs(r));var s=Math.round(Math.abs(a)*1e3),c=globalThis.performance.now();this._anyBlankStartTime!=null&&(this._info.any_blank_ms+=c-this._anyBlankStartTime),this._anyBlankStartTime=null,this._mostlyBlankStartTime!=null&&(this._info.mostly_blank_ms+=c-this._mostlyBlankStartTime),this._mostlyBlankStartTime=null;for(var l=0,u=t.first,d=this._getFrameMetrics(u,e);u<=t.last&&(!d||!d.inLayout);)d=this._getFrameMetrics(u,e),u++;d&&u>0&&(l=Math.min(o,Math.max(0,d.offset-i)));for(var f=0,p=t.last,m=this._getFrameMetrics(p,e);p>=t.first&&(!m||!m.inLayout);)m=this._getFrameMetrics(p,e),p--;if(m&&p<e.getItemCount(e.data)-1){var h=m.offset+m.length;f=Math.min(o,Math.max(0,i+o-h))}var g=Math.round(l+f),_=g/o;return _>0?(this._anyBlankStartTime=c,this._info.any_blank_speed_sum+=s,this._info.any_blank_count++,this._info.pixels_blank+=g,_>.5&&(this._mostlyBlankStartTime=c,this._info.mostly_blank_count++)):(s<.01||Math.abs(r)<1)&&this.deactivateAndFlush(),_}enabled(){return this._enabled}_resetData(){this._anyBlankStartTime=null,this._info=new Ef,this._mostlyBlankStartTime=null,this._samplesStartTime=null}},jf=class extends b.PureComponent{constructor(e){super(e),this._inAsyncStateUpdate=!1,this._installSetStateHooks()}setState(e,t){typeof e==`function`?super.setState((t,n)=>{this._inAsyncStateUpdate=!0;var r;try{r=e(t,n)}catch(e){throw e}finally{this._inAsyncStateUpdate=!1}return r},t):super.setState(e,t)}_installSetStateHooks(){var e=this,t=this.props,n=this.state;Object.defineProperty(this,"props",{get(){return(0,W.default)(!e._inAsyncStateUpdate,`"this.props" should not be accessed during state updates`),t},set(e){t=e}}),Object.defineProperty(this,"state",{get(){return(0,W.default)(!e._inAsyncStateUpdate,`"this.state" should not be acceessed during state updates`),n},set(e){n=e}})}},Mf=class{constructor(e){e===void 0&&(e={viewAreaCoveragePercentThreshold:0}),this._hasInteracted=!1,this._timers=new Set,this._viewableIndices=[],this._viewableItems=new Map,this._config=e}dispose(){this._timers.forEach(clearTimeout)}computeViewableItems(e,t,n,r,i){var a=e.getItemCount(e.data),o=this._config,s=o.itemVisiblePercentThreshold,c=o.viewAreaCoveragePercentThreshold,l=c!=null,u=l?c:s;(0,W.default)(u!=null&&s!=null!=(c!=null),`Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold`);var d=[];if(a===0)return d;var f=-1,p=i||{first:0,last:a-1},m=p.first,h=p.last;if(h>=a)return console.warn(`Invalid render range computing viewability `+JSON.stringify({renderRange:i,itemCount:a})),[];for(var g=m;g<=h;g++){var _=r(g,e);if(_){var v=_.offset-t,y=v+_.length;if(v<n&&y>0)f=g,Nf(l,u,v,y,n,_.length)&&d.push(g);else if(f>=0)break}}return d}onUpdate(e,t,n,r,i,a,o){var s=e.getItemCount(e.data);if(!(this._config.waitForInteraction&&!this._hasInteracted||s===0||!r(0,e))){var c=[];if(s&&(c=this.computeViewableItems(e,t,n,r,o)),!(this._viewableIndices.length===c.length&&this._viewableIndices.every((e,t)=>e===c[t]))){if(this._viewableIndices=c,this._config.minimumViewTime){var l=setTimeout(()=>{this._timers.delete(l),this._onUpdateSync(e,c,a,i)},this._config.minimumViewTime);this._timers.add(l)}else this._onUpdateSync(e,c,a,i)}}}resetViewableIndices(){this._viewableIndices=[]}recordInteraction(){this._hasInteracted=!0}_onUpdateSync(e,t,n,r){t=t.filter(e=>this._viewableIndices.includes(e));for(var i=this._viewableItems,a=new Map(t.map(t=>{var n=r(t,!0,e);return[n.key,n]})),o=[],s=Md(a),c;!(c=s()).done;){var l=c.value,u=l[0],d=l[1];i.has(u)||o.push(d)}for(var f=Md(i),p;!(p=f()).done;){var m=p.value,h=m[0],g=m[1];a.has(h)||o.push(H(H({},g),{},{isViewable:!1}))}o.length>0&&(this._viewableItems=a,n({viewableItems:Array.from(a.values()),changed:o,viewabilityConfig:this._config}))}};function Nf(e,t,n,r,i,a){if(Ff(n,r,i))return!0;var o=Pf(n,r,i);return 100*(e?o/i:o/a)>=t}function Pf(e,t,n){var r=Math.min(t,n)-Math.max(e,0);return Math.max(0,r)}function Ff(e,t,n){return e>=0&&t<=n&&t>e}var If=b.createContext(null);function Lf(e){var t=e.children,n=e.value,r=(0,b.useMemo)(()=>({cellKey:null,getScrollMetrics:n.getScrollMetrics,horizontal:n.horizontal,getOutermostParentListRef:n.getOutermostParentListRef,registerAsNestedChild:n.registerAsNestedChild,unregisterAsNestedChild:n.unregisterAsNestedChild}),[n.getScrollMetrics,n.horizontal,n.getOutermostParentListRef,n.registerAsNestedChild,n.unregisterAsNestedChild]);return b.createElement(If.Provider,{value:r},t)}function Rf(e){var t=e.cellKey,n=e.children,r=(0,b.useContext)(If),i=(0,b.useMemo)(()=>r==null?null:H(H({},r),{},{cellKey:t}),[r,t]);return b.createElement(If.Provider,{value:i},n)}var zf=class extends b.Component{constructor(){super(...arguments),this.state={separatorProps:{highlighted:!1,leadingItem:this.props.item}},this._separators={highlight:()=>{var e=this.props,t=e.cellKey,n=e.prevCellKey;this.props.onUpdateSeparators([t,n],{highlighted:!0})},unhighlight:()=>{var e=this.props,t=e.cellKey,n=e.prevCellKey;this.props.onUpdateSeparators([t,n],{highlighted:!1})},updateProps:(e,t)=>{var n=this.props,r=n.cellKey,i=n.prevCellKey;this.props.onUpdateSeparators([e===`leading`?i:r],t)}},this._onLayout=e=>{this.props.onCellLayout&&this.props.onCellLayout(e,this.props.cellKey,this.props.index)}}static getDerivedStateFromProps(e,t){return{separatorProps:H(H({},t.separatorProps),{},{leadingItem:e.item})}}updateSeparatorProps(e){this.setState(t=>({separatorProps:H(H({},t.separatorProps),e)}))}componentWillUnmount(){this.props.onUnmount(this.props.cellKey)}_renderElement(e,t,n,r){if(e&&t&&console.warn(`VirtualizedList: Both ListItemComponent and renderItem props are present. ListItemComponent will take precedence over renderItem.`),t)return b.createElement(t,{item:n,index:r,separators:this._separators});if(e)return e({item:n,index:r,separators:this._separators});(0,W.default)(!1,`VirtualizedList: Either ListItemComponent or renderItem props are required but none were found.`)}render(){var e=this.props,t=e.CellRendererComponent,n=e.ItemSeparatorComponent,r=e.ListItemComponent,i=e.cellKey,a=e.horizontal,o=e.item,s=e.index,c=e.inversionStyle,l=e.onCellFocusCapture,u=e.onCellLayout,d=e.renderItem,f=this._renderElement(d,r,o,s),p=b.isValidElement(n)?n:n&&b.createElement(n,this.state.separatorProps),m=c?a?[Bf.rowReverse,c]:[Bf.columnReverse,c]:a?[Bf.row,c]:c,h=t?b.createElement(t,Xl({cellKey:i,index:s,item:o,style:m,onFocusCapture:l},u&&{onLayout:this._onLayout}),f,p):b.createElement(Ed,Xl({style:m,onFocusCapture:l},u&&{onLayout:this._onLayout}),f,p);return b.createElement(Rf,{cellKey:this.props.cellKey},h)}},Bf=yl.create({row:{flexDirection:`row`},rowReverse:{flexDirection:`row-reverse`},columnReverse:{flexDirection:`column-reverse`}});function Vf(e,t,n,r){r===void 0&&(r=1);for(var i=t.getItemCount(t.data),a=[],o=0;o<e.length;o++)for(var s=e[o],c=0,l=i-1;c<=l;){var u=c+(l-c>>>1),d=n(u,t),f=d.offset*r,p=(d.offset+d.length)*r;if(u===0&&s<f||u!==0&&s<=f)l=u-1;else if(s>p)c=u+1;else{a[o]=u;break}}return a}function Hf(e,t){return t.last-t.first+1-Math.max(0,1+Math.min(t.last,e.last)-Math.max(t.first,e.first))}function Uf(e,t,n,r,i,a){var o=e.getItemCount(e.data);if(o===0)return{first:0,last:-1};var s=a.offset,c=a.velocity,l=a.visibleLength,u=a.zoomScale,d=u===void 0?1:u,f=Math.max(0,s),p=f+l,m=(n-1)*l,h=.5,g=c>1?`after`:c<-1?`before`:`none`,_=Math.max(0,f-(1-h)*m),v=Math.max(0,p+h*m);if(i(o-1,e).offset*d<_)return{first:Math.max(0,o-1-t),last:o-1};var y=Vf([_,f,p,v],e,i,d),b=y[0],x=y[1],S=y[2],C=y[3];b??=0,x??=Math.max(0,b),C??=o-1,S??=Math.min(C,x+t-1);for(var w={first:x,last:S},T=Hf(r,w);!(x<=b&&S>=C);){var E=T>=t,D=x<=r.first||x>r.last,O=x>b&&(!E||!D),k=S>=r.last||S<r.first,ee=S<C&&(!E||!k);if(E&&!O&&!ee)break;O&&!(g===`after`&&ee&&k)&&(D&&T++,x--),ee&&!(g===`before`&&O&&D)&&(k&&T++,S++)}if(!(S>=x&&x>=0&&S<o&&x>=b&&S<=C&&x<=w.first&&S>=w.last))throw Error(`Bad window calculation `+JSON.stringify({first:x,last:S,itemCount:o,overscanFirst:b,overscanLast:C,visible:w}));return{first:x,last:S}}function Wf(e,t){return typeof e==`object`&&e?.key!=null?e.key:typeof e==`object`&&e?.id!=null?e.id:String(t)}var Gf=u(s(((e,t)=>{function n(e,t){if(e!=null)return e;var n=Error(t===void 0?`Got unexpected `+e:t);throw n.framesToPop=1,n}t.exports=n,t.exports.default=n,Object.defineProperty(t.exports,"__esModule",{value:!0})}))()),Kf=.001,qf=!1,Jf=``;function Yf(e){return e??!1}function Xf(e){return e??10}function Zf(e){return e??10}function Qf(e){return e??2}function $f(e){return e??2}function ep(e,t){return e*t/2}function tp(e){return e??50}function np(e){return e??21}function rp(e,t){for(var n=e.length-1;n>=0;n--)if(t(e[n]))return e[n];return null}var ip=class e extends jf{scrollToEnd(e){var t=!e||e.animated,n=this.props.getItemCount(this.props.data)-1;if(!(n<0)){var r=this.__getFrameMetricsApprox(n,this.props),i=Math.max(0,r.offset+r.length+this._footerLength-this._scrollMetrics.visibleLength);if(this._scrollRef!=null){if(this._scrollRef.scrollTo==null){console.warn(`No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo.`);return}this._scrollRef.scrollTo(Yf(this.props.horizontal)?{x:i,animated:t}:{y:i,animated:t})}}}scrollToIndex(e){var t=this.props,n=t.data,r=t.horizontal,i=t.getItemCount,a=t.getItemLayout,o=t.onScrollToIndexFailed,s=e.animated,c=e.index,l=e.viewOffset,u=e.viewPosition;if((0,W.default)(c>=0,`scrollToIndex out of range: requested index `+c+` but minimum is 0`),(0,W.default)(i(n)>=1,`scrollToIndex out of range: item length `+i(n)+` but minimum is 1`),(0,W.default)(c<i(n),`scrollToIndex out of range: requested index `+c+` is out of 0 to `+(i(n)-1)),!a&&c>this._highestMeasuredFrameIndex){(0,W.default)(!!o,`scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures.`),o({averageItemLength:this._averageCellLength,highestMeasuredFrameIndex:this._highestMeasuredFrameIndex,index:c});return}var d=this.__getFrameMetricsApprox(Math.floor(c),this.props),f=Math.max(0,this._getOffsetApprox(c,this.props)-(u||0)*(this._scrollMetrics.visibleLength-d.length))-(l||0);if(this._scrollRef!=null){if(this._scrollRef.scrollTo==null){console.warn(`No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo.`);return}this._scrollRef.scrollTo(r?{x:f,animated:s}:{y:f,animated:s})}}scrollToItem(e){for(var t=e.item,n=this.props,r=n.data,i=n.getItem,a=n.getItemCount,o=a(r),s=0;s<o;s++)if(i(r,s)===t){this.scrollToIndex(H(H({},e),{},{index:s}));break}}scrollToOffset(e){var t=e.animated,n=e.offset;if(this._scrollRef!=null){if(this._scrollRef.scrollTo==null){console.warn(`No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo.`);return}this._scrollRef.scrollTo(Yf(this.props.horizontal)?{x:n,animated:t}:{y:n,animated:t})}}recordInteraction(){this._nestedChildLists.forEach(e=>{e.recordInteraction()}),this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.recordInteraction()}),this._updateViewableItems(this.props,this.state.cellsAroundViewport)}flashScrollIndicators(){this._scrollRef!=null&&this._scrollRef.flashScrollIndicators()}getScrollResponder(){if(this._scrollRef&&this._scrollRef.getScrollResponder)return this._scrollRef.getScrollResponder()}getScrollableNode(){return this._scrollRef&&this._scrollRef.getScrollableNode?this._scrollRef.getScrollableNode():this._scrollRef}getScrollRef(){return this._scrollRef&&this._scrollRef.getScrollRef?this._scrollRef.getScrollRef():this._scrollRef}_getCellKey(){return this.context?.cellKey||`rootList`}hasMore(){return this._hasMore}constructor(t){if(super(t),this._getScrollMetrics=()=>this._scrollMetrics,this._getOutermostParentListRef=()=>this._isNestedWithSameOrientation()?this.context.getOutermostParentListRef():this,this._registerAsNestedChild=e=>{this._nestedChildLists.add(e.ref,e.cellKey),this._hasInteracted&&e.ref.recordInteraction()},this._unregisterAsNestedChild=e=>{this._nestedChildLists.remove(e.ref)},this._onUpdateSeparators=(e,t)=>{e.forEach(e=>{var n=e!=null&&this._cellRefs[e];n&&n.updateSeparatorProps(t)})},this._getSpacerKey=e=>e?`height`:`width`,this._averageCellLength=0,this._cellRefs={},this._frames={},this._footerLength=0,this._hasTriggeredInitialScrollToIndex=!1,this._hasInteracted=!1,this._hasMore=!1,this._hasWarned={},this._headerLength=0,this._hiPriInProgress=!1,this._highestMeasuredFrameIndex=0,this._indicesToKeys=new Map,this._lastFocusedCellKey=null,this._nestedChildLists=new Tf,this._offsetFromParentVirtualizedList=0,this._prevParentOffset=0,this._scrollMetrics={contentLength:0,dOffset:0,dt:10,offset:0,timestamp:0,velocity:0,visibleLength:0,zoomScale:1},this._scrollRef=null,this._sentStartForContentLength=0,this._sentEndForContentLength=0,this._totalCellLength=0,this._totalCellsMeasured=0,this._viewabilityTuples=[],this._captureScrollRef=e=>{this._scrollRef=e},this._defaultRenderScrollComponent=e=>{var t=e.onRefresh;return this._isNestedWithSameOrientation()?b.createElement(Ed,e):t?((0,W.default)(typeof e.refreshing==`boolean`,"`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `"+JSON.stringify(e.refreshing??`undefined`)+"`"),b.createElement(nf,Xl({},e,{refreshControl:e.refreshControl==null?b.createElement(Pd,{refreshing:e.refreshing,onRefresh:t,progressViewOffset:e.progressViewOffset}):e.refreshControl}))):b.createElement(nf,e)},this._onCellLayout=(e,t,n)=>{var r=e.nativeEvent.layout,i={offset:this._selectOffset(r),length:this._selectLength(r),index:n,inLayout:!0},a=this._frames[t];!a||i.offset!==a.offset||i.length!==a.length||n!==a.index?(this._totalCellLength+=i.length-(a?a.length:0),this._totalCellsMeasured+=+!a,this._averageCellLength=this._totalCellLength/this._totalCellsMeasured,this._frames[t]=i,this._highestMeasuredFrameIndex=Math.max(this._highestMeasuredFrameIndex,n),this._scheduleCellsToRenderUpdate()):this._frames[t].inLayout=!0,this._triggerRemeasureForChildListsInCell(t),this._computeBlankness(),this._updateViewableItems(this.props,this.state.cellsAroundViewport)},this._onCellUnmount=e=>{delete this._cellRefs[e];var t=this._frames[e];t&&(this._frames[e]=H(H({},t),{},{inLayout:!1}))},this._onLayout=e=>{this._isNestedWithSameOrientation()?this.measureLayoutRelativeToContainingList():this._scrollMetrics.visibleLength=this._selectLength(e.nativeEvent.layout),this.props.onLayout&&this.props.onLayout(e),this._scheduleCellsToRenderUpdate(),this._maybeCallOnEdgeReached()},this._onLayoutEmpty=e=>{this.props.onLayout&&this.props.onLayout(e)},this._onLayoutFooter=e=>{this._triggerRemeasureForChildListsInCell(this._getFooterCellKey()),this._footerLength=this._selectLength(e.nativeEvent.layout)},this._onLayoutHeader=e=>{this._headerLength=this._selectLength(e.nativeEvent.layout)},this._onContentSizeChange=(e,t)=>{e>0&&t>0&&this.props.initialScrollIndex!=null&&this.props.initialScrollIndex>0&&!this._hasTriggeredInitialScrollToIndex&&(this.props.contentOffset??(this.props.initialScrollIndex<this.props.getItemCount(this.props.data)?this.scrollToIndex({animated:!1,index:(0,Gf.default)(this.props.initialScrollIndex)}):this.scrollToEnd({animated:!1})),this._hasTriggeredInitialScrollToIndex=!0),this.props.onContentSizeChange&&this.props.onContentSizeChange(e,t),this._scrollMetrics.contentLength=this._selectLength({height:t,width:e}),this._scheduleCellsToRenderUpdate(),this._maybeCallOnEdgeReached()},this._convertParentScrollMetrics=e=>{var t=e.offset-this._offsetFromParentVirtualizedList,n=e.visibleLength,r=t-this._scrollMetrics.offset;return{visibleLength:n,contentLength:this._scrollMetrics.contentLength,offset:t,dOffset:r}},this._onScroll=e=>{this._nestedChildLists.forEach(t=>{t._onScroll(e)}),this.props.onScroll&&this.props.onScroll(e);var t=e.timeStamp,n=this._selectLength(e.nativeEvent.layoutMeasurement),r=this._selectLength(e.nativeEvent.contentSize),i=this._selectOffset(e.nativeEvent.contentOffset),a=i-this._scrollMetrics.offset;if(this._isNestedWithSameOrientation()){if(this._scrollMetrics.contentLength===0)return;var o=this._convertParentScrollMetrics({visibleLength:n,offset:i});n=o.visibleLength,r=o.contentLength,i=o.offset,a=o.dOffset}var s=this._scrollMetrics.timestamp?Math.max(1,t-this._scrollMetrics.timestamp):1,c=a/s;s>500&&this._scrollMetrics.dt>500&&r>5*n&&!this._hasWarned.perf&&(Cf(`VirtualizedList: You have a large list that is slow to update - make sure your renderItem function renders components that follow React performance best practices like PureComponent, shouldComponentUpdate, etc.`,{dt:s,prevDt:this._scrollMetrics.dt,contentLength:r}),this._hasWarned.perf=!0);var l=e.nativeEvent.zoomScale<0?1:e.nativeEvent.zoomScale;this._scrollMetrics={contentLength:r,dt:s,dOffset:a,offset:i,timestamp:t,velocity:c,visibleLength:n,zoomScale:l},this._updateViewableItems(this.props,this.state.cellsAroundViewport),this.props&&(this._maybeCallOnEdgeReached(),c!==0&&this._fillRateHelper.activate(),this._computeBlankness(),this._scheduleCellsToRenderUpdate())},this._onScrollBeginDrag=e=>{this._nestedChildLists.forEach(t=>{t._onScrollBeginDrag(e)}),this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.recordInteraction()}),this._hasInteracted=!0,this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},this._onScrollEndDrag=e=>{this._nestedChildLists.forEach(t=>{t._onScrollEndDrag(e)});var t=e.nativeEvent.velocity;t&&(this._scrollMetrics.velocity=this._selectOffset(t)),this._computeBlankness(),this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},this._onMomentumScrollBegin=e=>{this._nestedChildLists.forEach(t=>{t._onMomentumScrollBegin(e)}),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},this._onMomentumScrollEnd=e=>{this._nestedChildLists.forEach(t=>{t._onMomentumScrollEnd(e)}),this._scrollMetrics.velocity=0,this._computeBlankness(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},this._updateCellsToRender=()=>{this._updateViewableItems(this.props,this.state.cellsAroundViewport),this.setState((t,n)=>{var r=this._adjustCellsAroundViewport(n,t.cellsAroundViewport),i=e._createRenderMask(n,r,this._getNonViewportRenderRegions(n));return r.first===t.cellsAroundViewport.first&&r.last===t.cellsAroundViewport.last&&i.equals(t.renderMask)?null:{cellsAroundViewport:r,renderMask:i}})},this._createViewToken=(e,t,n)=>{var r=n.data,i=n.getItem,a=i(r,e);return{index:e,item:a,key:this._keyExtractor(a,e,n),isViewable:t}},this._getOffsetApprox=(e,t)=>{if(Number.isInteger(e))return this.__getFrameMetricsApprox(e,t).offset;var n=this.__getFrameMetricsApprox(Math.floor(e),t),r=e-Math.floor(e);return n.offset+r*n.length},this.__getFrameMetricsApprox=(e,t)=>{var n=this._getFrameMetrics(e,t);if(n&&n.index===e)return n;var r=t.data,i=t.getItemCount,a=t.getItemLayout;return(0,W.default)(e>=0&&e<i(r),`Tried to get frame for out of range index `+e),(0,W.default)(!a,`Should not have to estimate frames when a measurement metrics function is provided`),{length:this._averageCellLength,offset:this._averageCellLength*e}},this._getFrameMetrics=(e,t)=>{var n=t.data,r=t.getItem,i=t.getItemCount,a=t.getItemLayout;(0,W.default)(e>=0&&e<i(n),`Tried to get frame for out of range index `+e);var o=r(n,e),s=this._frames[this._keyExtractor(o,e,t)];return(!s||s.index!==e)&&a?a(n,e):s},this._getNonViewportRenderRegions=e=>{if(!(this._lastFocusedCellKey&&this._cellRefs[this._lastFocusedCellKey]))return[];var t=this._cellRefs[this._lastFocusedCellKey].props.index,n=e.getItemCount(e.data);if(t>=n||this._keyExtractor(e.getItem(e.data,t),t,e)!==this._lastFocusedCellKey)return[];for(var r=t,i=0,a=r-1;a>=0&&i<this._scrollMetrics.visibleLength;a--)r--,i+=this.__getFrameMetricsApprox(a,e).length;for(var o=t,s=0,c=o+1;c<n&&s<this._scrollMetrics.visibleLength;c++)o++,s+=this.__getFrameMetricsApprox(c,e).length;return[{first:r,last:o}]},this._checkProps(t),this._fillRateHelper=new Af(this._getFrameMetrics),this._updateCellsToRenderBatcher=new xf(this._updateCellsToRender,this.props.updateCellsBatchingPeriod??50),this.props.viewabilityConfigCallbackPairs)this._viewabilityTuples=this.props.viewabilityConfigCallbackPairs.map(e=>({viewabilityHelper:new Mf(e.viewabilityConfig),onViewableItemsChanged:e.onViewableItemsChanged}));else{var n=this.props,r=n.onViewableItemsChanged,i=n.viewabilityConfig;r&&this._viewabilityTuples.push({viewabilityHelper:new Mf(i),onViewableItemsChanged:r})}var a=e._initialRenderRegion(t);this.state={cellsAroundViewport:a,renderMask:e._createRenderMask(t,a)},this.invertedWheelEventHandler=e=>{var t=this.props.horizontal?e.target.scrollLeft:e.target.scrollTop,n=this.props.horizontal?e.target.scrollWidth:e.target.scrollHeight,r=this.props.horizontal?e.target.clientWidth:e.target.clientHeight,i=n>r,a=this.props.horizontal?e.deltaX||e.wheelDeltaX:e.deltaY||e.wheelDeltaY,o=a;i&&(o=a<0?Math.min(a+t,0):Math.max(a-(n-r-t),0));var s=a-o;if(this.props.inverted&&this._scrollRef&&this._scrollRef.getScrollableNode){var c=this._scrollRef.getScrollableNode();if(this.props.horizontal){e.target.scrollLeft+=s;var l=c.scrollLeft-o;c.scrollLeft=this.props.getItemLayout?l:Math.min(l,this._totalCellLength)}else{e.target.scrollTop+=s;var u=c.scrollTop-o;c.scrollTop=this.props.getItemLayout?u:Math.min(u,this._totalCellLength)}e.preventDefault()}}}_checkProps(e){var t=e.onScroll,n=e.windowSize,r=e.getItemCount,i=e.data,a=e.initialScrollIndex;(0,W.default)(!t||!t.__isNative,`Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent to support native onScroll events with useNativeDriver`),(0,W.default)(np(n)>0,`VirtualizedList: The windowSize prop must be present and set to a value greater than 0.`),(0,W.default)(r,`VirtualizedList: The "getItemCount" prop must be provided`);var o=r(i);a!=null&&!this._hasTriggeredInitialScrollToIndex&&(a<0||o>0&&a>=o)&&!this._hasWarned.initialScrollIndex&&(console.warn(`initialScrollIndex "`+a+`" is not valid (list has `+o+` items)`),this._hasWarned.initialScrollIndex=!0)}static _createRenderMask(t,n,r){var i=t.getItemCount(t.data);(0,W.default)(n.first>=0&&n.last>=n.first-1&&n.last<i,`Invalid cells around viewport "[`+n.first+`, `+n.last+`]" was passed to VirtualizedList._createRenderMask`);var a=new wf(i);if(i>0){for(var o=[n,...r??[]],s=0,c=o;s<c.length;s++){var l=c[s];a.addCells(l)}if(t.initialScrollIndex==null||t.initialScrollIndex<=0){var u=e._initialRenderRegion(t);a.addCells(u)}var d=new Set(t.stickyHeaderIndices);e._ensureClosestStickyHeader(t,d,a,n.first)}return a}static _initialRenderRegion(e){var t=e.getItemCount(e.data),n=Math.max(0,Math.min(t-1,Math.floor(e.initialScrollIndex??0)));return{first:n,last:Math.min(t,n+Xf(e.initialNumToRender))-1}}static _ensureClosestStickyHeader(e,t,n,r){for(var i=+!!e.ListHeaderComponent,a=r-1;a>=0;a--)if(t.has(a+i)){n.addCells({first:a,last:a});break}}_adjustCellsAroundViewport(t,n){var r=t.data,i=t.getItemCount,a=$f(t.onEndReachedThreshold),o=this._scrollMetrics,s=o.contentLength,c=o.offset,l=o.visibleLength,u=s-l-c;if(l<=0||s<=0)return n.last>=i(r)?e._constrainToItemCount(n,t):n;var d;if(t.disableVirtualization){var f=u<a*l?Zf(t.maxToRenderPerBatch):0;d={first:0,last:Math.min(n.last+f,i(r)-1)}}else{if(t.initialScrollIndex&&!this._scrollMetrics.offset&&Math.abs(u)>=2**-52)return n.last>=i(r)?e._constrainToItemCount(n,t):n;d=Uf(t,Zf(t.maxToRenderPerBatch),np(t.windowSize),n,this.__getFrameMetricsApprox,this._scrollMetrics),(0,W.default)(d.last<i(r),`computeWindowedRenderLimits() should return range in-bounds`)}if(this._nestedChildLists.size()>0){var p=this._findFirstChildWithMore(d.first,d.last);d.last=p??d.last}return d}_findFirstChildWithMore(e,t){for(var n=e;n<=t;n++){var r=this._indicesToKeys.get(n);if(r!=null&&this._nestedChildLists.anyInCell(r,e=>e.hasMore()))return n}return null}componentDidMount(){this._isNestedWithSameOrientation()&&this.context.registerAsNestedChild({ref:this,cellKey:this.context.cellKey}),this.setupWebWheelHandler()}componentWillUnmount(){this._isNestedWithSameOrientation()&&this.context.unregisterAsNestedChild({ref:this}),this._updateCellsToRenderBatcher.dispose({abort:!0}),this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.dispose()}),this._fillRateHelper.deactivateAndFlush(),this.teardownWebWheelHandler()}setupWebWheelHandler(){if(this._scrollRef&&this._scrollRef.getScrollableNode)this._scrollRef.getScrollableNode().addEventListener(`wheel`,this.invertedWheelEventHandler);else{setTimeout(()=>this.setupWebWheelHandler(),50);return}}teardownWebWheelHandler(){this._scrollRef&&this._scrollRef.getScrollableNode&&this._scrollRef.getScrollableNode().removeEventListener(`wheel`,this.invertedWheelEventHandler)}static getDerivedStateFromProps(t,n){if(t.getItemCount(t.data)===n.renderMask.numCells())return n;var r=e._constrainToItemCount(n.cellsAroundViewport,t);return{cellsAroundViewport:r,renderMask:e._createRenderMask(t,r)}}_pushCells(e,t,n,r,i,a){var o=this,s=this.props,c=s.CellRendererComponent,l=s.ItemSeparatorComponent,u=s.ListHeaderComponent,d=s.ListItemComponent,f=s.data,p=s.debug,m=s.getItem,h=s.getItemCount,g=s.getItemLayout,_=s.horizontal,v=s.renderItem,y=+!!u,x=h(f)-1,S;i=Math.min(x,i);for(var C=function(){var r=m(f,w),i=o._keyExtractor(r,w,o.props);o._indicesToKeys.set(w,i),n.has(w+y)&&t.push(e.length);var s=g==null||p||o._fillRateHelper.enabled();e.push(b.createElement(zf,Xl({CellRendererComponent:c,ItemSeparatorComponent:w<x?l:void 0,ListItemComponent:d,cellKey:i,horizontal:_,index:w,inversionStyle:a,item:r,key:i,prevCellKey:S,onUpdateSeparators:o._onUpdateSeparators,onCellFocusCapture:e=>o._onCellFocusCapture(i),onUnmount:o._onCellUnmount,ref:e=>{o._cellRefs[i]=e},renderItem:v},s&&{onCellLayout:o._onCellLayout}))),S=i},w=r;w<=i;w++)C()}static _constrainToItemCount(e,t){var n=t.getItemCount(t.data),r=Math.min(n-1,e.last),i=Zf(t.maxToRenderPerBatch);return{first:Sf(0,n-1-i,e.first),last:r}}_isNestedWithSameOrientation(){var e=this.context;return!!(e&&!!e.horizontal===Yf(this.props.horizontal))}_keyExtractor(e,t,n){if(n.keyExtractor!=null)return n.keyExtractor(e,t);var r=Wf(e,t);return r===String(t)&&(qf=!0,e.type&&e.type.displayName&&(Jf=e.type.displayName)),r}render(){this._checkProps(this.props);var e=this.props,t=e.ListEmptyComponent,n=e.ListFooterComponent,r=e.ListHeaderComponent,i=this.props,a=i.data,o=i.horizontal,s=this.props.inverted?Yf(this.props.horizontal)?ap.horizontallyInverted:ap.verticallyInverted:null,c=[],l=new Set(this.props.stickyHeaderIndices),u=[];if(r){l.has(0)&&u.push(0);var d=b.isValidElement(r)?r:b.createElement(r,null);c.push(b.createElement(Rf,{cellKey:this._getCellKey()+`-header`,key:`$header`},b.createElement(Ed,{onLayout:this._onLayoutHeader,style:[s,this.props.ListHeaderComponentStyle]},d)))}var f=this.props.getItemCount(a);if(f===0&&t){var p=b.isValidElement(t)?t:b.createElement(t,null);c.push(b.createElement(Rf,{cellKey:this._getCellKey()+`-empty`,key:`$empty`},b.cloneElement(p,{onLayout:e=>{this._onLayoutEmpty(e),p.props.onLayout&&p.props.onLayout(e)},style:[s,p.props.style]})))}if(f>0){qf=!1,Jf=``;for(var m=this._getSpacerKey(!o),h=this.state.renderMask.enumerateRegions(),g=rp(h,e=>e.isSpacer),_=Md(h),v;!(v=_()).done;){var y=v.value;if(y.isSpacer){if(this.props.disableVirtualization)continue;var x=y===g&&!this.props.getItemLayout?Sf(y.first-1,y.last,this._highestMeasuredFrameIndex):y.last,S=this.__getFrameMetricsApprox(y.first,this.props),C=this.__getFrameMetricsApprox(x,this.props),w=C.offset+C.length-S.offset;c.push(b.createElement(Ed,{key:`$spacer-`+y.first,style:{[m]:w}}))}else this._pushCells(c,u,l,y.first,y.last,s)}!this._hasWarned.keys&&qf&&(console.warn(`VirtualizedList: missing keys for items, make sure to specify a key or id property on each item or provide a custom keyExtractor.`,Jf),this._hasWarned.keys=!0)}if(n){var T=b.isValidElement(n)?n:b.createElement(n,null);c.push(b.createElement(Rf,{cellKey:this._getFooterCellKey(),key:`$footer`},b.createElement(Ed,{onLayout:this._onLayoutFooter,style:[s,this.props.ListFooterComponentStyle]},T)))}var E=H(H({},this.props),{},{onContentSizeChange:this._onContentSizeChange,onLayout:this._onLayout,onScroll:this._onScroll,onScrollBeginDrag:this._onScrollBeginDrag,onScrollEndDrag:this._onScrollEndDrag,onMomentumScrollBegin:this._onMomentumScrollBegin,onMomentumScrollEnd:this._onMomentumScrollEnd,scrollEventThrottle:tp(this.props.scrollEventThrottle),invertStickyHeaders:this.props.invertStickyHeaders===void 0?this.props.inverted:this.props.invertStickyHeaders,stickyHeaderIndices:u,style:s?[s,this.props.style]:this.props.style});this._hasMore=this.state.cellsAroundViewport.last<f-1;var D=b.createElement(Lf,{value:{cellKey:null,getScrollMetrics:this._getScrollMetrics,horizontal:Yf(this.props.horizontal),getOutermostParentListRef:this._getOutermostParentListRef,registerAsNestedChild:this._registerAsNestedChild,unregisterAsNestedChild:this._unregisterAsNestedChild}},b.cloneElement((this.props.renderScrollComponent||this._defaultRenderScrollComponent)(E),{ref:this._captureScrollRef},c));return this.props.debug?b.createElement(Ed,{style:ap.debug},D,this._renderDebugOverlay()):D}componentDidUpdate(e){var t=this.props,n=t.data,r=t.extraData;(n!==e.data||r!==e.extraData)&&this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.resetViewableIndices()});var i=this._hiPriInProgress;this._scheduleCellsToRenderUpdate(),i&&(this._hiPriInProgress=!1)}_computeBlankness(){this._fillRateHelper.computeBlankness(this.props,this.state.cellsAroundViewport,this._scrollMetrics)}_onCellFocusCapture(e){this._lastFocusedCellKey=e,this._updateCellsToRender()}_triggerRemeasureForChildListsInCell(e){this._nestedChildLists.forEachInCell(e,e=>{e.measureLayoutRelativeToContainingList()})}measureLayoutRelativeToContainingList(){try{if(!this._scrollRef)return;this._scrollRef.measureLayout(this.context.getOutermostParentListRef().getScrollRef(),(e,t,n,r)=>{this._offsetFromParentVirtualizedList=this._selectOffset({x:e,y:t}),this._scrollMetrics.contentLength=this._selectLength({width:n,height:r});var i=this._convertParentScrollMetrics(this.context.getScrollMetrics());(this._scrollMetrics.visibleLength!==i.visibleLength||this._scrollMetrics.offset!==i.offset)&&(this._scrollMetrics.visibleLength=i.visibleLength,this._scrollMetrics.offset=i.offset,this._nestedChildLists.forEach(e=>{e.measureLayoutRelativeToContainingList()}))},e=>{console.warn(`VirtualizedList: Encountered an error while measuring a list's offset from its containing VirtualizedList.`)})}catch(e){console.warn(`measureLayoutRelativeToContainingList threw an error`,e.stack)}}_getFooterCellKey(){return this._getCellKey()+`-footer`}_renderDebugOverlay(){for(var e=this._scrollMetrics.visibleLength/(this._scrollMetrics.contentLength||1),t=[],n=this.props.getItemCount(this.props.data),r=0;r<n;r++){var i=this.__getFrameMetricsApprox(r,this.props);i.inLayout&&t.push(i)}var a=this.__getFrameMetricsApprox(this.state.cellsAroundViewport.first,this.props).offset,o=this.__getFrameMetricsApprox(this.state.cellsAroundViewport.last,this.props),s=o.offset+o.length-a,c=this._scrollMetrics.offset,l=this._scrollMetrics.visibleLength;return b.createElement(Ed,{style:[ap.debugOverlayBase,ap.debugOverlay]},t.map((t,n)=>b.createElement(Ed,{key:`f`+n,style:[ap.debugOverlayBase,ap.debugOverlayFrame,{top:t.offset*e,height:t.length*e}]})),b.createElement(Ed,{style:[ap.debugOverlayBase,ap.debugOverlayFrameLast,{top:a*e,height:s*e}]}),b.createElement(Ed,{style:[ap.debugOverlayBase,ap.debugOverlayFrameVis,{top:c*e,height:l*e}]}))}_selectLength(e){return Yf(this.props.horizontal)?e.width:e.height}_selectOffset(e){return Yf(this.props.horizontal)?e.x:e.y}_maybeCallOnEdgeReached(){var e=this.props,t=e.data,n=e.getItemCount,r=e.onStartReached,i=e.onStartReachedThreshold,a=e.onEndReached,o=e.onEndReachedThreshold,s=e.initialScrollIndex,c=this._scrollMetrics,l=c.contentLength,u=c.visibleLength,d=c.offset,f=d,p=l-u-d;f<Kf&&(f=0),p<Kf&&(p=0);var m=2,h=i==null?m:i*u,g=o==null?m:o*u,_=f<=h,v=p<=g;a&&this.state.cellsAroundViewport.last===n(t)-1&&v&&this._scrollMetrics.contentLength!==this._sentEndForContentLength?(this._sentEndForContentLength=this._scrollMetrics.contentLength,a({distanceFromEnd:p})):r!=null&&this.state.cellsAroundViewport.first===0&&_&&this._scrollMetrics.contentLength!==this._sentStartForContentLength?(!s||this._scrollMetrics.timestamp!==0)&&(this._sentStartForContentLength=this._scrollMetrics.contentLength,r({distanceFromStart:f})):(this._sentStartForContentLength=_?this._sentStartForContentLength:0,this._sentEndForContentLength=v?this._sentEndForContentLength:0)}_scheduleCellsToRenderUpdate(){var e=this.state.cellsAroundViewport,t=e.first,n=e.last,r=this._scrollMetrics,i=r.offset,a=r.visibleLength,o=r.velocity,s=this.props.getItemCount(this.props.data),c=!1,l=Qf(this.props.onStartReachedThreshold),u=$f(this.props.onEndReachedThreshold);if(t>0){var d=i-this.__getFrameMetricsApprox(t,this.props).offset;c=d<0||o<-2&&d<ep(l,a)}if(!c&&n>=0&&n<s-1){var f=this.__getFrameMetricsApprox(n,this.props).offset-(i+a);c=f<0||o>2&&f<ep(u,a)}if(c&&(this._averageCellLength||this.props.getItemLayout)&&!this._hiPriInProgress){this._hiPriInProgress=!0,this._updateCellsToRenderBatcher.dispose({abort:!0}),this._updateCellsToRender();return}this._updateCellsToRenderBatcher.schedule()}_updateViewableItems(e,t){this._viewabilityTuples.forEach(n=>{n.viewabilityHelper.onUpdate(e,this._scrollMetrics.offset,this._scrollMetrics.visibleLength,this._getFrameMetrics,this._createViewToken,n.onViewableItemsChanged,t)})}};ip.contextType=If;var ap=yl.create({verticallyInverted:{transform:`scaleY(-1)`},horizontallyInverted:{transform:`scaleX(-1)`},debug:{flex:1},debugOverlayBase:{position:`absolute`,top:0,right:0},debugOverlay:{bottom:0,width:20,borderColor:`blue`,borderWidth:1},debugOverlayFrame:{left:0,backgroundColor:`orange`},debugOverlayFrameLast:{left:0,borderColor:`green`,borderWidth:2},debugOverlayFrameVis:{left:0,borderColor:`red`,borderWidth:2}}),op=Number.isNaN||function(e){return typeof e==`number`&&e!==e};function sp(e,t){return!!(e===t||op(e)&&op(t))}function cp(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!sp(e[n],t[n]))return!1;return!0}function lp(e,t){t===void 0&&(t=cp);var n=null;function r(){var r=[...arguments];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}var up=[`numColumns`,`columnWrapperStyle`,`removeClippedSubviews`,`strictMode`];function dp(e){return e??Yl.OS===`android`}function fp(e){return e??1}function pp(e){return typeof Object(e).length==`number`}var mp=class extends b.PureComponent{scrollToEnd(e){this._listRef&&this._listRef.scrollToEnd(e)}scrollToIndex(e){this._listRef&&this._listRef.scrollToIndex(e)}scrollToItem(e){this._listRef&&this._listRef.scrollToItem(e)}scrollToOffset(e){this._listRef&&this._listRef.scrollToOffset(e)}recordInteraction(){this._listRef&&this._listRef.recordInteraction()}flashScrollIndicators(){this._listRef&&this._listRef.flashScrollIndicators()}getScrollResponder(){if(this._listRef)return this._listRef.getScrollResponder()}getNativeScrollRef(){if(this._listRef)return this._listRef.getScrollRef()}getScrollableNode(){if(this._listRef)return this._listRef.getScrollableNode()}constructor(e){super(e),this._virtualizedListPairs=[],this._captureRef=e=>{this._listRef=e},this._getItem=(e,t)=>{var n=fp(this.props.numColumns);if(n>1){for(var r=[],i=0;i<n;i++){var a=t*n+i;if(a<e.length){var o=e[a];r.push(o)}}return r}return e[t]},this._getItemCount=e=>{if(e!=null&&pp(e)){var t=fp(this.props.numColumns);return t>1?Math.ceil(e.length/t):e.length}return 0},this._keyExtractor=(e,t)=>{var n=fp(this.props.numColumns),r=this.props.keyExtractor??Wf;return n>1?((0,W.default)(Array.isArray(e),`FlatList: Encountered internal consistency error, expected each item to consist of an array with 1-%s columns; instead, received a single item.`,n),e.map((e,i)=>r(e,t*n+i)).join(`:`)):r(e,t)},this._renderer=(e,t,n,r,i)=>{var a=fp(r),o=n=>e?b.createElement(e,n):t?t(n):null,s=e=>{if(a>1){var t=e.item,r=e.index;return(0,W.default)(Array.isArray(t),`Expected array of items with numColumns > 1`),b.createElement(Ed,{style:[hp.row,n]},t.map((t,n)=>{var i=o({item:t,index:r*a+n,separators:e.separators});return i==null?null:b.createElement(b.Fragment,{key:n},i)}))}return o(e)};return e?{ListItemComponent:s}:{renderItem:s}},this._memoizedRenderer=lp(this._renderer),this._checkProps(this.props),this.props.viewabilityConfigCallbackPairs?this._virtualizedListPairs=this.props.viewabilityConfigCallbackPairs.map(e=>({viewabilityConfig:e.viewabilityConfig,onViewableItemsChanged:this._createOnViewableItemsChanged(e.onViewableItemsChanged)})):this.props.onViewableItemsChanged&&this._virtualizedListPairs.push({viewabilityConfig:this.props.viewabilityConfig,onViewableItemsChanged:this._createOnViewableItemsChanged(this.props.onViewableItemsChanged)})}componentDidUpdate(e){(0,W.default)(e.numColumns===this.props.numColumns,`Changing numColumns on the fly is not supported. Change the key prop on FlatList when changing the number of columns to force a fresh render of the component.`),(0,W.default)(e.onViewableItemsChanged===this.props.onViewableItemsChanged,`Changing onViewableItemsChanged on the fly is not supported`),(0,W.default)(!Od(e.viewabilityConfig,this.props.viewabilityConfig),`Changing viewabilityConfig on the fly is not supported`),(0,W.default)(e.viewabilityConfigCallbackPairs===this.props.viewabilityConfigCallbackPairs,`Changing viewabilityConfigCallbackPairs on the fly is not supported`),this._checkProps(this.props)}_checkProps(e){var t=e.getItem,n=e.getItemCount,r=e.horizontal,i=e.columnWrapperStyle,a=e.onViewableItemsChanged,o=e.viewabilityConfigCallbackPairs,s=fp(this.props.numColumns);(0,W.default)(!t&&!n,`FlatList does not support custom data formats.`),s>1?(0,W.default)(!r,`numColumns does not support horizontal.`):(0,W.default)(!i,`columnWrapperStyle not supported for single column lists`),(0,W.default)(!(a&&o),`FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.`)}_pushMultiColumnViewable(e,t){var n=fp(this.props.numColumns),r=this.props.keyExtractor??Wf;t.item.forEach((i,a)=>{(0,W.default)(t.index!=null,`Missing index!`);var o=t.index*n+a;e.push(H(H({},t),{},{item:i,key:r(i,o),index:o}))})}_createOnViewableItemsChanged(e){return t=>{var n=fp(this.props.numColumns);if(e){if(n>1){var r=[],i=[];t.viewableItems.forEach(e=>this._pushMultiColumnViewable(i,e)),t.changed.forEach(e=>this._pushMultiColumnViewable(r,e)),e({viewableItems:i,changed:r})}else e(t)}}}render(){var e=this.props,t=e.numColumns,n=e.columnWrapperStyle,r=e.removeClippedSubviews,i=e.strictMode,a=i!==void 0&&i,o=Pa(e,up),s=a?this._memoizedRenderer:this._renderer;return b.createElement(ip,Xl({},o,{getItem:this._getItem,getItemCount:this._getItemCount,keyExtractor:this._keyExtractor,ref:this._captureRef,viewabilityConfigCallbackPairs:this._virtualizedListPairs,removeClippedSubviews:dp(r)},s(this.props.ListItemComponent,this.props.renderItem,n,t,this.props.extraData)))}},hp=yl.create({row:{flexDirection:`row`}}),gp=mp;function _p(e){return null}var vp=_p(`NativeAnimatedModule`),yp=_p(`NativeAnimatedTurboModule`),bp=new af,xp=class{constructor(e){Yl.OS===`ios`&&((0,W.default)(e!=null,"`new NativeEventEmitter()` requires a non-null argument."),this._nativeModule=e)}addListener(e,t,n){var r;(r=this._nativeModule)==null||r.addListener(e);var i=bp.addListener(e,t,n);return{remove:()=>{if(i!=null){var e;(e=this._nativeModule)==null||e.removeListeners(1),i.remove(),i=null}}}}removeListener(e,t){var n;(n=this._nativeModule)==null||n.removeListeners(1),bp.removeListener(e,t)}emit(e){var t=[...arguments].slice(1);bp.emit(e,...t)}removeAllListeners(e){var t;(0,W.default)(e!=null,"`NativeEventEmitter.removeAllListener()` requires a non-null argument."),(t=this._nativeModule)==null||t.removeListeners(this.listenerCount(e)),bp.removeAllListeners(e)}listenerCount(e){return bp.listenerCount(e)}},Sp=Yl,Cp={isLayoutAnimationEnabled:()=>!0,shouldEmitW3CPointerEvents:()=>!1,shouldPressibilityUseW3CPointerEventsForHover:()=>!1,animatedShouldDebounceQueueFlush:()=>!1,animatedShouldUseSingleOp:()=>!1},wp=Sp.OS===`ios`&&globalThis.RN$Bridgeless===!0?yp:vp,Tp=1,Ep=1,Dp,Op=new Set,kp=!1,Ap=[];Sp.OS===`android`&&wp!=null&&wp.queueAndExecuteBatchedOperations&&Cp.animatedShouldUseSingleOp();var jp=null,Mp=wp,Np={getValue:function(e,t){(0,W.default)(Mp,`Native animated module is not available`),Np.queueOperation(Mp.getValue,e,t)},setWaitingForIdentifier:function(e){Op.add(e),kp=!0,Cp.animatedShouldDebounceQueueFlush()&&jp&&clearTimeout(jp)},unsetWaitingForIdentifier:function(e){Op.delete(e),Op.size===0&&(kp=!1,Np.disableQueue())},disableQueue:function(){if((0,W.default)(Mp,`Native animated module is not available`),Cp.animatedShouldDebounceQueueFlush()){var e=jp;clearImmediate(e),jp=setImmediate(Np.flushQueue)}else Np.flushQueue()},flushQueue:function(){},queueOperation:function(e){var t=[...arguments].slice(1);kp||Ap.length!==0?Ap.push(()=>e(...t)):e(...t)},createAnimatedNode:function(e,t){(0,W.default)(Mp,`Native animated module is not available`),Np.queueOperation(Mp.createAnimatedNode,e,t)},updateAnimatedNodeConfig:function(e,t){(0,W.default)(Mp,`Native animated module is not available`)},startListeningToAnimatedNodeValue:function(e){(0,W.default)(Mp,`Native animated module is not available`),Np.queueOperation(Mp.startListeningToAnimatedNodeValue,e)},stopListeningToAnimatedNodeValue:function(e){(0,W.default)(Mp,`Native animated module is not available`),Np.queueOperation(Mp.stopListeningToAnimatedNodeValue,e)},connectAnimatedNodes:function(e,t){(0,W.default)(Mp,`Native animated module is not available`),Np.queueOperation(Mp.connectAnimatedNodes,e,t)},disconnectAnimatedNodes:function(e,t){(0,W.default)(Mp,`Native animated module is not available`),Np.queueOperation(Mp.disconnectAnimatedNodes,e,t)},startAnimatingNode:function(e,t,n,r){(0,W.default)(Mp,`Native animated module is not available`),Np.queueOperation(Mp.startAnimatingNode,e,t,n,r)},stopAnimation:function(e){(0,W.default)(Mp,`Native animated module is not available`),Np.queueOperation(Mp.stopAnimation,e)},setAnimatedNodeValue:function(e,t){(0,W.default)(Mp,`Native animated module is not available`),Np.queueOperation(Mp.setAnimatedNodeValue,e,t)},setAnimatedNodeOffset:function(e,t){(0,W.default)(Mp,`Native animated module is not available`),Np.queueOperation(Mp.setAnimatedNodeOffset,e,t)},flattenAnimatedNodeOffset:function(e){(0,W.default)(Mp,`Native animated module is not available`),Np.queueOperation(Mp.flattenAnimatedNodeOffset,e)},extractAnimatedNodeOffset:function(e){(0,W.default)(Mp,`Native animated module is not available`),Np.queueOperation(Mp.extractAnimatedNodeOffset,e)},connectAnimatedNodeToView:function(e,t){(0,W.default)(Mp,`Native animated module is not available`),Np.queueOperation(Mp.connectAnimatedNodeToView,e,t)},disconnectAnimatedNodeFromView:function(e,t){(0,W.default)(Mp,`Native animated module is not available`),Np.queueOperation(Mp.disconnectAnimatedNodeFromView,e,t)},restoreDefaultValues:function(e){(0,W.default)(Mp,`Native animated module is not available`),Mp.restoreDefaultValues!=null&&Np.queueOperation(Mp.restoreDefaultValues,e)},dropAnimatedNode:function(e){(0,W.default)(Mp,`Native animated module is not available`),Np.queueOperation(Mp.dropAnimatedNode,e)},addAnimatedEventToView:function(e,t,n){(0,W.default)(Mp,`Native animated module is not available`),Np.queueOperation(Mp.addAnimatedEventToView,e,t,n)},removeAnimatedEventFromView(e,t,n){(0,W.default)(Mp,`Native animated module is not available`),Np.queueOperation(Mp.removeAnimatedEventFromView,e,t,n)}},Pp={backgroundColor:!0,borderBottomColor:!0,borderColor:!0,borderEndColor:!0,borderLeftColor:!0,borderRightColor:!0,borderStartColor:!0,borderTopColor:!0,color:!0,tintColor:!0},Fp=H(H({},Pp),{},{borderBottomEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderRadius:!0,borderTopEndRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,elevation:!0,opacity:!0,transform:!0,zIndex:!0,shadowOpacity:!0,shadowRadius:!0,scaleX:!0,scaleY:!0,translateX:!0,translateY:!0}),Ip={translateX:!0,translateY:!0,scale:!0,scaleX:!0,scaleY:!0,rotate:!0,rotateX:!0,rotateY:!0,rotateZ:!0,perspective:!0},Lp={inputRange:!0,outputRange:!0,extrapolate:!0,extrapolateRight:!0,extrapolateLeft:!0};function Rp(e){Fp[e]=!0}function zp(e){Ip[e]=!0}function Bp(e){Lp[e]=!0}function Vp(e){return Pp.hasOwnProperty(e)}function Hp(e){return Fp.hasOwnProperty(e)}function Up(e){return Ip.hasOwnProperty(e)}function Wp(e){return Lp.hasOwnProperty(e)}function Gp(e){e.forEach(e=>{if(!Up(e.property))throw Error(`Property '`+e.property+`' is not supported by native animated module`)})}function Kp(e){for(var t in e)if(!Hp(t))throw Error(`Style property '`+t+`' is not supported by native animated module`)}function qp(e){for(var t in e)if(!Wp(t))throw Error(`Interpolation property '`+t+`' is not supported by native animated module`)}function Jp(){return Tp++}function Yp(){return Ep++}function Xp(){(0,W.default)(wp,`Native animated module is not available`)}var Zp=!1;function Qp(e){return e.useNativeDriver??console.warn("Animated: `useNativeDriver` was not specified. This is a required option and must be explicitly set to `true` or `false`"),e.useNativeDriver===!0&&!wp?(Zp||=(console.warn("Animated: `useNativeDriver` is not supported because the native animated module is missing. Falling back to JS-based animation. To resolve this, add `RCTAnimation` module to this app, or remove `useNativeDriver`. Make sure to run `bundle exec pod install` first. Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md"),!0),!1):e.useNativeDriver||!1}function $p(e){return typeof e==`string`&&/deg$/.test(e)?(parseFloat(e)||0)*Math.PI/180:e}var em={API:Np,isSupportedColorStyleProp:Vp,isSupportedStyleProp:Hp,isSupportedTransformProp:Up,isSupportedInterpolationParam:Wp,addWhitelistedStyleProp:Rp,addWhitelistedTransformProp:zp,addWhitelistedInterpolationParam:Bp,validateStyles:Kp,validateTransform:Gp,validateInterpolation:qp,generateNewNodeTag:Jp,generateNewAnimationId:Yp,assertNativeAnimatedModule:Xp,shouldUseNativeDriver:Qp,transformDataType:$p,get nativeEventEmitter(){return Dp||=new xp(Sp.OS===`ios`?wp:null),Dp}},tm=em.API,nm=1,rm=class{__attach(){}__detach(){this.__isNative&&this.__nativeTag!=null&&(em.API.dropAnimatedNode(this.__nativeTag),this.__nativeTag=void 0)}__getValue(){}__getAnimatedValue(){return this.__getValue()}__addChild(e){}__removeChild(e){}__getChildren(){return[]}constructor(){this._listeners={}}__makeNative(e){if(!this.__isNative)throw Error(`This node cannot be made a "native" animated node`);this._platformConfig=e,this.hasListeners()&&this._startListeningToNativeValueUpdates()}addListener(e){var t=String(nm++);return this._listeners[t]=e,this.__isNative&&this._startListeningToNativeValueUpdates(),t}removeListener(e){delete this._listeners[e],this.__isNative&&!this.hasListeners()&&this._stopListeningForNativeValueUpdates()}removeAllListeners(){this._listeners={},this.__isNative&&this._stopListeningForNativeValueUpdates()}hasListeners(){return!!Object.keys(this._listeners).length}_startListeningToNativeValueUpdates(){(!this.__nativeAnimatedValueListener||this.__shouldUpdateListenersForNewNativeTag)&&(this.__shouldUpdateListenersForNewNativeTag&&(this.__shouldUpdateListenersForNewNativeTag=!1,this._stopListeningForNativeValueUpdates()),tm.startListeningToAnimatedNodeValue(this.__getNativeTag()),this.__nativeAnimatedValueListener=em.nativeEventEmitter.addListener(`onAnimatedValueUpdate`,e=>{e.tag===this.__getNativeTag()&&this.__onAnimatedValueUpdateReceived(e.value)}))}__onAnimatedValueUpdateReceived(e){this.__callListeners(e)}__callListeners(e){for(var t in this._listeners)this._listeners[t]({value:e})}_stopListeningForNativeValueUpdates(){this.__nativeAnimatedValueListener&&(this.__nativeAnimatedValueListener.remove(),this.__nativeAnimatedValueListener=null,tm.stopListeningToAnimatedNodeValue(this.__getNativeTag()))}__getNativeTag(){em.assertNativeAnimatedModule(),(0,W.default)(this.__isNative,`Attempt to get native tag from node not marked as "native"`);var e=this.__nativeTag??em.generateNewNodeTag();if(this.__nativeTag==null){this.__nativeTag=e;var t=this.__getNativeConfig();this._platformConfig&&(t.platformConfig=this._platformConfig),em.API.createAnimatedNode(e,t),this.__shouldUpdateListenersForNewNativeTag=!0}return e}__getNativeConfig(){throw Error(`This JS animated node type cannot be used as native animated node`)}toJSON(){return this.__getValue()}__getPlatformConfig(){return this._platformConfig}__setPlatformConfig(e){this._platformConfig=e}},im=class extends rm{constructor(){super(),this._children=[]}__makeNative(e){if(!this.__isNative){this.__isNative=!0;for(var t=Md(this._children),n;!(n=t()).done;){var r=n.value;r.__makeNative(e),em.API.connectAnimatedNodes(this.__getNativeTag(),r.__getNativeTag())}}super.__makeNative(e)}__addChild(e){this._children.length===0&&this.__attach(),this._children.push(e),this.__isNative&&(e.__makeNative(this.__getPlatformConfig()),em.API.connectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag()))}__removeChild(e){var t=this._children.indexOf(e);if(t===-1){console.warn(`Trying to remove a child that doesn't exist`);return}this.__isNative&&e.__isNative&&em.API.disconnectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag()),this._children.splice(t,1),this._children.length===0&&this.__detach()}__getChildren(){return this._children}__callListeners(e){if(super.__callListeners(e),!this.__isNative)for(var t=Md(this._children),n;!(n=t()).done;){var r=n.value;r.__getValue&&r.__callListeners(r.__getValue())}}},am=u(Va()),om=e=>e;function sm(e){if(e.outputRange&&typeof e.outputRange[0]==`string`)return dm(e);var t=e.outputRange,n=e.inputRange,r=e.easing||om,i=`extend`;e.extrapolateLeft===void 0?e.extrapolate!==void 0&&(i=e.extrapolate):i=e.extrapolateLeft;var a=`extend`;return e.extrapolateRight===void 0?e.extrapolate!==void 0&&(a=e.extrapolate):a=e.extrapolateRight,e=>{(0,W.default)(typeof e==`number`,`Cannot interpolation an input which is not a number`);var o=mm(e,n);return cm(e,n[o],n[o+1],t[o],t[o+1],r,i,a)}}function cm(e,t,n,r,i,a,o,s){var c=e;if(c<t){if(o===`identity`)return c;o===`clamp`&&(c=t)}if(c>n){if(s===`identity`)return c;s===`clamp`&&(c=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t),c=a(c),r===-1/0?c=-c:i===1/0?c+=r:c=c*(i-r)+r,c)}function lm(e){var t=(0,am.default)(e);if(t===null||typeof t!=`number`)return e;t||=0;var n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,a=(t&255)/255;return`rgba(`+n+`, `+r+`, `+i+`, `+a+`)`}var um=/[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g;function dm(e){var t=e.outputRange;(0,W.default)(t.length>=2,`Bad output range`),t=t.map(lm),pm(t);var n=t[0].match(um).map(()=>[]);t.forEach(e=>{e.match(um).forEach((e,t)=>{n[t].push(+e)})});var r=t[0].match(um).map((t,r)=>sm(H(H({},e),{},{outputRange:n[r]}))),i=fm(t[0]);return e=>{var n=0;return t[0].replace(um,()=>{var t=+r[n++](e);return i&&(t=n<4?Math.round(t):Math.round(t*1e3)/1e3),String(t)})}}function fm(e){return typeof e==`string`&&e.startsWith(`rgb`)}function pm(e){for(var t=e[0].replace(um,``),n=1;n<e.length;++n)(0,W.default)(t===e[n].replace(um,``),`invalid pattern `+e[0]+` and `+e[n])}function mm(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var hm=class e extends im{constructor(e,t){super(),this._parent=e,this._config=t,this._interpolation=sm(t)}__makeNative(e){this._parent.__makeNative(e),super.__makeNative(e)}__getValue(){var e=this._parent.__getValue();return(0,W.default)(typeof e==`number`,`Cannot interpolate an input which is not a number.`),this._interpolation(e)}interpolate(t){return new e(this,t)}__attach(){this._parent.__addChild(this)}__detach(){this._parent.__removeChild(this),super.__detach()}__transformDataType(e){return e.map(em.transformDataType)}__getNativeConfig(){return{inputRange:this._config.inputRange,outputRange:this.__transformDataType(this._config.outputRange),extrapolateLeft:this._config.extrapolateLeft||this._config.extrapolate||`extend`,extrapolateRight:this._config.extrapolateRight||this._config.extrapolate||`extend`,type:`interpolation`}}};hm.__createInterpolation=sm;var gm=em.API;function _m(e){var t=new Set;function n(e){typeof e.update==`function`?t.add(e):e.__getChildren().forEach(n)}n(e),t.forEach(e=>e.update())}function vm(e,t){gm.setWaitingForIdentifier(e),t(),gm.unsetWaitingForIdentifier(e)}var ym=class extends im{constructor(e,t){if(super(),typeof e!=`number`)throw Error(`AnimatedValue: Attempting to set value to undefined`);this._startingValue=this._value=e,this._offset=0,this._animation=null,t&&t.useNativeDriver&&this.__makeNative()}__detach(){this.__isNative&&gm.getValue(this.__getNativeTag(),e=>{this._value=e-this._offset}),this.stopAnimation(),super.__detach()}__getValue(){return this._value+this._offset}setValue(e){this._animation&&=(this._animation.stop(),null),this._updateValue(e,!this.__isNative),this.__isNative&&vm(this.__getNativeTag().toString(),()=>gm.setAnimatedNodeValue(this.__getNativeTag(),e))}setOffset(e){this._offset=e,this.__isNative&&gm.setAnimatedNodeOffset(this.__getNativeTag(),e)}flattenOffset(){this._value+=this._offset,this._offset=0,this.__isNative&&gm.flattenAnimatedNodeOffset(this.__getNativeTag())}extractOffset(){this._offset+=this._value,this._value=0,this.__isNative&&gm.extractAnimatedNodeOffset(this.__getNativeTag())}stopAnimation(e){this.stopTracking(),this._animation&&this._animation.stop(),this._animation=null,e&&(this.__isNative?gm.getValue(this.__getNativeTag(),e):e(this.__getValue()))}resetAnimation(e){this.stopAnimation(e),this._value=this._startingValue,this.__isNative&&gm.setAnimatedNodeValue(this.__getNativeTag(),this._startingValue)}__onAnimatedValueUpdateReceived(e){this._updateValue(e,!1)}interpolate(e){return new hm(this,e)}animate(e,t){var n=null;e.__isInteraction&&(n=df.createInteractionHandle());var r=this._animation;this._animation&&this._animation.stop(),this._animation=e,e.start(this._value,e=>{this._updateValue(e,!0)},e=>{this._animation=null,n!==null&&df.clearInteractionHandle(n),t&&t(e)},r,this)}stopTracking(){this._tracking&&this._tracking.__detach(),this._tracking=null}track(e){this.stopTracking(),this._tracking=e,this._tracking&&this._tracking.update()}_updateValue(e,t){if(e===void 0)throw Error(`AnimatedValue: Attempting to set value to undefined`);this._value=e,t&&_m(this),super.__callListeners(this.__getValue())}__getNativeConfig(){return{type:`value`,value:this._value,offset:this._offset}}};function bm(e,t,n){var r=[],i=(e,t)=>{if(e instanceof ym)e.__makeNative(),r.push({nativeEventPath:t,animatedValueTag:e.__getNativeTag()});else if(typeof e==`object`)for(var n in e)i(e[n],t.concat(n))};return(0,W.default)(n[0]&&n[0].nativeEvent,"Native driven events only support animated values contained inside `nativeEvent`."),i(n[0].nativeEvent,[]),e!=null&&r.forEach(n=>{em.API.addAnimatedEventToView(e,t,n)}),{detach(){e!=null&&r.forEach(n=>{em.API.removeAnimatedEventFromView(e,t,n.animatedValueTag)})}}}var xm=class{constructor(e,t){this._listeners=[],this._argMapping=e,t??=(console.warn(`Animated.event now requires a second argument for options`),{useNativeDriver:!1}),t.listener&&this.__addListener(t.listener),this._callListeners=this._callListeners.bind(this),this._attachedEvent=null,this.__isNative=Qp(t)}__addListener(e){this._listeners.push(e)}__removeListener(e){this._listeners=this._listeners.filter(t=>t!==e)}__attach(e,t){(0,W.default)(this.__isNative,`Only native driven events need to be attached.`),this._attachedEvent=bm(e,t,this._argMapping)}__detach(e,t){(0,W.default)(this.__isNative,`Only native driven events need to be detached.`),this._attachedEvent&&this._attachedEvent.detach()}__getHandler(){var e=this;return this.__isNative?this._callListeners:function(){var t=[...arguments],n=(e,t,r)=>{if(e instanceof ym)typeof t==`number`&&e.setValue(t);else if(typeof e==`object`)for(var i in e)n(e[i],t[i],i)};e._argMapping.forEach((e,r)=>{n(e,t[r],`arg`+r)}),e._callListeners(...t)}}_callListeners(){var e=[...arguments];this._listeners.forEach(t=>t(...e))}},Sm=class extends im{constructor(e){super(),this._transforms=e}__makeNative(){this._transforms.forEach(e=>{for(var t in e){var n=e[t];n instanceof rm&&n.__makeNative()}}),super.__makeNative()}__getValue(){return this._transforms.map(e=>{var t={};for(var n in e){var r=e[n];t[n]=r instanceof rm?r.__getValue():r}return t})}__getAnimatedValue(){return this._transforms.map(e=>{var t={};for(var n in e){var r=e[n];t[n]=r instanceof rm?r.__getAnimatedValue():r}return t})}__attach(){this._transforms.forEach(e=>{for(var t in e){var n=e[t];n instanceof rm&&n.__addChild(this)}})}__detach(){this._transforms.forEach(e=>{for(var t in e){var n=e[t];n instanceof rm&&n.__removeChild(this)}}),super.__detach()}__getNativeConfig(){var e=[];return this._transforms.forEach(t=>{for(var n in t){var r=t[n];r instanceof rm?e.push({type:`animated`,property:n,nodeTag:r.__getNativeTag()}):e.push({type:`static`,property:n,value:em.transformDataType(r)})}}),em.validateTransform(e),{type:`transform`,transforms:e}}},Cm=yl.flatten;function wm(e){var t=Cm(e),n={};for(var r in t){var i=t[r];r===`transform`&&Array.isArray(i)?n[r]=new Sm(i):i instanceof rm?n[r]=i:i&&!Array.isArray(i)&&typeof i==`object`&&(n[r]=wm(i))}return n}var Tm=class extends im{constructor(e){super(),this._inputStyle=e,this._style=wm(e)}_walkStyleAndGetValues(e){var t={};for(var n in e){var r=e[n];r instanceof rm?r.__isNative||(t[n]=r.__getValue()):t[n]=r&&!Array.isArray(r)&&typeof r==`object`?this._walkStyleAndGetValues(r):r}return t}__getValue(){return[this._inputStyle,this._walkStyleAndGetValues(this._style)]}_walkStyleAndGetAnimatedValues(e){var t={};for(var n in e){var r=e[n];r instanceof rm?t[n]=r.__getAnimatedValue():r&&!Array.isArray(r)&&typeof r==`object`&&(t[n]=this._walkStyleAndGetAnimatedValues(r))}return t}__getAnimatedValue(){return this._walkStyleAndGetAnimatedValues(this._style)}__attach(){for(var e in this._style){var t=this._style[e];t instanceof rm&&t.__addChild(this)}}__detach(){for(var e in this._style){var t=this._style[e];t instanceof rm&&t.__removeChild(this)}super.__detach()}__makeNative(){for(var e in this._style){var t=this._style[e];t instanceof rm&&t.__makeNative()}super.__makeNative()}__getNativeConfig(){var e={};for(var t in this._style)if(this._style[t]instanceof rm){var n=this._style[t];n.__makeNative(),e[t]=n.__getNativeTag()}return em.validateStyles(e),{type:`style`,style:e}}},Em=class extends rm{constructor(e,t){super(),e.style&&(e=H(H({},e),{},{style:new Tm(e.style)})),this._props=e,this._callback=t}__getValue(){var e={};for(var t in this._props){var n=this._props[t];n instanceof rm?(!n.__isNative||n instanceof Tm)&&(e[t]=n.__getValue()):e[t]=n instanceof xm?n.__getHandler():n}return e}__getAnimatedValue(){var e={};for(var t in this._props){var n=this._props[t];n instanceof rm&&(e[t]=n.__getAnimatedValue())}return e}__attach(){for(var e in this._props){var t=this._props[e];t instanceof rm&&t.__addChild(this)}}__detach(){for(var e in this.__isNative&&this._animatedView&&this.__disconnectAnimatedView(),this._animatedView=null,this._props){var t=this._props[e];t instanceof rm&&t.__removeChild(this)}super.__detach()}update(){this._callback()}__makeNative(){if(!this.__isNative){for(var e in this.__isNative=!0,this._props){var t=this._props[e];t instanceof rm&&t.__makeNative()}this._animatedView&&this.__connectAnimatedView()}}setNativeView(e){this._animatedView!==e&&(this._animatedView=e,this.__isNative&&this.__connectAnimatedView())}__connectAnimatedView(){(0,W.default)(this.__isNative,`Expected node to be marked as "native"`);var e=this._animatedView;(0,W.default)(e!=null,`Unable to locate attached view in the native tree`),em.API.connectAnimatedNodeToView(this.__getNativeTag(),e)}__disconnectAnimatedView(){(0,W.default)(this.__isNative,`Expected node to be marked as "native"`);var e=this._animatedView;(0,W.default)(e!=null,`Unable to locate attached view in the native tree`),em.API.disconnectAnimatedNodeFromView(this.__getNativeTag(),e)}__restoreDefaultValues(){this.__isNative&&em.API.restoreDefaultValues(this.__getNativeTag())}__getNativeConfig(){var e={};for(var t in this._props){var n=this._props[t];n instanceof rm&&(n.__makeNative(),e[t]=n.__getNativeTag())}return{type:`props`,props:e}}};function Dm(e){var t=(0,b.useRef)(void 0);return(0,b.useCallback)(n=>{t.current&&=(t.current(),void 0),n!=null&&(t.current=e(n))},[e])}function Om(e){var t=(0,b.useReducer)(e=>e+1,0)[1],n=(0,b.useRef)(null),r=(0,b.useMemo)(()=>new Em(e,()=>n.current==null?void 0:n.current()),[e]);Am(r);var i=Dm((0,b.useCallback)(i=>{r.setNativeView(i),n.current=()=>{t()};var a=jm(i),o=[];for(var s in e){var c=e[s];c instanceof xm&&c.__isNative&&(c.__attach(a,s),o.push([s,c]))}return()=>{n.current=null;for(var e=0,t=o;e<t.length;e++){var r=t[e],i=r[0];r[1].__detach(a,i)}}},[e,r]));return[km(r),i]}function km(e){return H(H({},e.__getValue()),{},{collapsable:!1})}function Am(e){var t=(0,b.useRef)(null),n=(0,b.useRef)(!1);(0,b.useEffect)(()=>{em.API.flushQueue()}),ou(()=>(n.current=!1,()=>{n.current=!0}),[]),ou(()=>{if(e.__attach(),t.current!=null){var r=t.current;r.__restoreDefaultValues(),r.__detach(),t.current=null}return()=>{n.current?e.__detach():t.current=e}},[e])}function jm(e){return typeof e==`object`&&typeof e?.getScrollableNode==`function`?e.getScrollableNode():e}function Mm(){var e=[...arguments];return(0,b.useCallback)(t=>{for(var n=0,r=e;n<r.length;n++){var i=r[n];i!=null&&(typeof i==`function`?i(t):i.current=t)}},[...e])}var Nm=[`style`];function Pm(e){return b.forwardRef((t,n)=>{var r=Om(t),i=r[0],a=r[1],o=Mm(a,n),s=i.passthroughAnimatedPropExplicitValues,c=i.style,l=s??{},u=l.style,d=Pa(l,Nm),f=[c,u];return b.createElement(e,Xl({},i,d,{style:f,ref:o}))})}var Fm=Pm(b.forwardRef((e,t)=>b.createElement(gp,Xl({scrollEventThrottle:1e-4},e,{ref:t})))),Im=[];function Lm(e){return Im[e-1]}var Rm=/^data:/,zm=class e{static has(t){var n=e._entries;return Rm.test(t)||!!n[t]}static add(t){var n=e._entries,r=Date.now();n[t]?(n[t].lastUsedTimestamp=r,n[t].refCount+=1):n[t]={lastUsedTimestamp:r,refCount:1}}static remove(t){var n=e._entries;n[t]&&--n[t].refCount,e._cleanUpIfNeeded()}static _cleanUpIfNeeded(){var t=e._entries,n=Object.keys(t);if(n.length+1>e._maximumEntries){var r,i;n.forEach(e=>{var n=t[e];(!i||n.lastUsedTimestamp<i.lastUsedTimestamp)&&n.refCount===0&&(r=e,i=n)}),r&&delete t[r]}}};zm._maximumEntries=256,zm._entries={};var Bm=0,Vm={},Hm={abort(e){var t=Vm[``+e];t&&(t.onerror=null,t.onload=null,t=null,delete Vm[``+e])},getSize(e,t,n){var r=!1,i=setInterval(o,16),a=Hm.load(e,o,s);function o(){var e=Vm[``+a];if(e){var n=e.naturalHeight,o=e.naturalWidth;n&&o&&(t(o,n),r=!0)}r&&(Hm.abort(a),clearInterval(i))}function s(){typeof n==`function`&&n(),Hm.abort(a),clearInterval(i)}},has(e){return zm.has(e)},load(e,t,n){Bm+=1;var r=new window.Image;return r.onerror=n,r.onload=e=>{var n=()=>t({nativeEvent:e});typeof r.decode==`function`?r.decode().then(n,n):setTimeout(n,0)},r.src=e,Vm[``+Bm]=r,Bm},prefetch(e){return new Promise((t,n)=>{Hm.load(e,()=>{zm.add(e),zm.remove(e),t()},n)})},queryCache(e){var t={};return e.forEach(e=>{zm.has(e)&&(t[e]=`disk/memory`)}),Promise.resolve(t)}},Um=class e{static get(){return Bd.get(`window`).scale}static getFontScale(){return Bd.get(`window`).fontScale||e.get()}static getPixelSizeForLayoutSize(t){return Math.round(t*e.get())}static roundToNearestPixel(t){var n=e.get();return Math.round(t*n)/n}};el(),Bc();var Wm=[`aria-label`,`accessibilityLabel`,`blurRadius`,`defaultSource`,`draggable`,`onError`,`onLayout`,`onLoad`,`onLoadEnd`,`onLoadStart`,`pointerEvents`,`source`,`style`],Gm=`ERRORED`,Km=`LOADED`,qm=`LOADING`,Jm=`IDLE`,Ym=0,Xm=/^(data:image\/svg\+xml;utf8,)(.*)/;function Zm(e,t){return e&&t!=null?b.createElement(`svg`,{style:{position:`absolute`,height:0,visibility:`hidden`,width:0}},b.createElement(`defs`,null,b.createElement(`filter`,{id:`tint-`+t,suppressHydrationWarning:!0},b.createElement(`feFlood`,{floodColor:``+e,key:e}),b.createElement(`feComposite`,{in2:`SourceAlpha`,operator:`in`})))):null}function Qm(e,t,n,r){var i=yl.flatten(e),a=i.filter,o=i.resizeMode,s=i.shadowOffset,c=i.tintColor;i.resizeMode,i.tintColor;var l=[],u=null;if(a&&l.push(a),t&&l.push(`blur(`+t+`px)`),s){var d=Wc(i);d&&l.push(`drop-shadow(`+d+`)`)}return(r||c)&&n!=null&&l.push(`url(#tint-`+n+`)`),l.length>0&&(u=l.join(` `)),[o,u,c]}function $m(e){if(typeof e==`number`){var t=Lm(e);return{height:t.height,width:t.width}}if(e!=null&&!Array.isArray(e)&&typeof e==`object`)return{height:e.height,width:e.width}}function eh(e){var t=null;if(typeof e==`number`){var n=Lm(e);if(n==null)throw Error(`Image: asset with ID "`+e+`" could not be found. Please check the image source or packager.`);var r=n.scales[0];if(n.scales.length>1){var i=Um.get();r=n.scales.reduce((e,t)=>Math.abs(t-i)<Math.abs(e-i)?t:e)}var a=r===1?``:`@`+r+`x`;t=n?n.httpServerLocation+`/`+n.name+a+`.`+n.type:``}else typeof e==`string`?t=e:e&&typeof e.uri==`string`&&(t=e.uri);if(t){var o=t.match(Xm);if(o){var s=o[1],c=o[2],l=encodeURIComponent(c);return``+s+l}}return t}var th=b.forwardRef((e,t)=>{var n=e[`aria-label`],r=e.accessibilityLabel,i=e.blurRadius,a=e.defaultSource,o=e.draggable,s=e.onError,c=e.onLayout,l=e.onLoad,u=e.onLoadEnd,d=e.onLoadStart,f=e.pointerEvents,p=e.source,m=e.style,h=Pa(e,Wm),g=n||r,_=b.useState(()=>{var e=eh(p);return e!=null&&Hm.has(e)?Km:Jm}),v=_[0],y=_[1],x=b.useState({}),S=x[0],C=x[1],w=b.useContext(Sd),T=b.useRef(null),E=b.useRef(Ym++),D=b.useRef(null),O=v===Km||v===qm&&a==null,k=Qm(m,i,E.current,e.tintColor),ee=k[0],A=k[1],te=k[2],ne=e.resizeMode||ee||`cover`,re=e.tintColor||te,ie=O?p:a,j=eh(ie),M=$m(ie),ae=j?`url("`+j+`")`:null,oe=N(),se=j?Rl(`img`,{alt:g||``,style:rh.accessibilityImage$raw,draggable:o||!1,ref:T,src:j}):null;function N(){if(T.current!=null&&(ne===`center`||ne===`repeat`)){var e=T.current,t=e.naturalHeight,n=e.naturalWidth,r=S.height,i=S.width;if(t&&n&&r&&i){var a=Math.min(1,i/n,r/t),o=Math.ceil(a*n),s=Math.ceil(a*t);return o+`px `+s+`px`}}}function ce(e){if(ne===`center`||ne===`repeat`||c){var t=e.nativeEvent.layout;c&&c(e),C(t)}}var le=eh(p);return b.useEffect(()=>{e(),le!=null&&(y(qm),d&&d(),D.current=Hm.load(le,function(e){y(Km),l&&l(e),u&&u()},function(){y(Gm),s&&s({nativeEvent:{error:`Failed to load resource `+le}}),u&&u()}));function e(){D.current!=null&&(Hm.abort(D.current),D.current=null)}return e},[le,D,y,s,l,u,d]),b.createElement(Ed,Xl({},h,{"aria-label":g,onLayout:ce,pointerEvents:f,ref:t,style:[rh.root,w&&rh.inline,M,m,rh.undo,{boxShadow:null}]}),b.createElement(Ed,{style:[rh.image,ih[ne],{backgroundImage:ae,filter:A},oe!=null&&{backgroundSize:oe}],suppressHydrationWarning:!0}),se,Zm(re,E.current))});th.displayName=`Image`;var nh=th;nh.getSize=function(e,t,n){Hm.getSize(e,t,n)},nh.prefetch=function(e){return Hm.prefetch(e)},nh.queryCache=function(e){return Hm.queryCache(e)};var rh=yl.create({root:{flexBasis:`auto`,overflow:`hidden`,zIndex:0},inline:{display:`inline-flex`},undo:{blurRadius:null,shadowColor:null,shadowOpacity:null,shadowOffset:null,shadowRadius:null,tintColor:null,overlayColor:null,resizeMode:null},image:H(H({},yl.absoluteFillObject),{},{backgroundColor:`transparent`,backgroundPosition:`center`,backgroundRepeat:`no-repeat`,backgroundSize:`cover`,height:`100%`,width:`100%`,zIndex:-1}),accessibilityImage$raw:H(H({},yl.absoluteFillObject),{},{height:`100%`,opacity:0,width:`100%`,zIndex:-1})}),ih=yl.create({center:{backgroundSize:`auto`},contain:{backgroundSize:`contain`},cover:{backgroundSize:`cover`},none:{backgroundPosition:`0`,backgroundSize:`auto`},repeat:{backgroundPosition:`0`,backgroundRepeat:`repeat`,backgroundSize:`auto`},stretch:{backgroundSize:`100% 100%`}}),ah=Pm(nh),oh=Pm(b.forwardRef((e,t)=>b.createElement(nf,Xl({scrollEventThrottle:1e-4},e,{ref:t})))),sh=[`ItemSeparatorComponent`,`SectionSeparatorComponent`,`renderItem`,`renderSectionFooter`,`renderSectionHeader`,`sections`,`stickySectionHeadersEnabled`],ch=class extends b.PureComponent{constructor(){super(...arguments),this._keyExtractor=(e,t)=>{var n=this._subExtractor(t);return n&&n.key||String(t)},this._convertViewable=e=>{(0,W.default)(e.index!=null,`Received a broken ViewToken`);var t=this._subExtractor(e.index);if(!t)return null;var n=t.section.keyExtractor,r=this.props.keyExtractor||Wf,i=n==null?r(e.item,t.index??0):n(e.item,t.index);return H(H({},e),{},{index:t.index,key:i,section:t.section})},this._onViewableItemsChanged=e=>{var t=e.viewableItems,n=e.changed,r=this.props.onViewableItemsChanged;r?.({viewableItems:t.map(this._convertViewable,this).filter(Boolean),changed:n.map(this._convertViewable,this).filter(Boolean)})},this._renderItem=e=>(t=>{var n=t.item,r=t.index,i=this._subExtractor(r);if(!i)return null;var a=i.index;if(a==null){var o=i.section;if(i.header===!0){var s=this.props.renderSectionHeader;return s?s({section:o}):null}var c=this.props.renderSectionFooter;return c?c({section:o}):null}var l=i.section.renderItem||this.props.renderItem,u=this._getSeparatorComponent(r,i,e);return(0,W.default)(l,`no renderItem!`),b.createElement(lh,{SeparatorComponent:u,LeadingSeparatorComponent:a===0?this.props.SectionSeparatorComponent:void 0,cellKey:i.key,index:a,item:n,leadingItem:i.leadingItem,leadingSection:i.leadingSection,prevCellKey:(this._subExtractor(r-1)||{}).key,setSelfHighlightCallback:this._setUpdateHighlightFor,setSelfUpdatePropsCallback:this._setUpdatePropsFor,updateHighlightFor:this._updateHighlightFor,updatePropsFor:this._updatePropsFor,renderItem:l,section:i.section,trailingItem:i.trailingItem,trailingSection:i.trailingSection,inverted:!!this.props.inverted})}),this._updatePropsFor=(e,t)=>{var n=this._updatePropsMap[e];n?.(t)},this._updateHighlightFor=(e,t)=>{var n=this._updateHighlightMap[e];n?.(t)},this._setUpdateHighlightFor=(e,t)=>{t==null?delete this._updateHighlightFor[e]:this._updateHighlightMap[e]=t},this._setUpdatePropsFor=(e,t)=>{t==null?delete this._updatePropsMap[e]:this._updatePropsMap[e]=t},this._updateHighlightMap={},this._updatePropsMap={},this._captureRef=e=>{this._listRef=e}}scrollToLocation(e){for(var t=e.itemIndex,n=0;n<e.sectionIndex;n++)t+=this.props.getItemCount(this.props.sections[n].data)+2;var r=e.viewOffset||0;if(this._listRef!=null){if(e.itemIndex>0&&this.props.stickySectionHeadersEnabled){var i=this._listRef.__getFrameMetricsApprox(t-e.itemIndex,this._listRef.props);r+=i.length}var a=H(H({},e),{},{viewOffset:r,index:t});this._listRef.scrollToIndex(a)}}getListRef(){return this._listRef}render(){var e=this.props;e.ItemSeparatorComponent,e.SectionSeparatorComponent,e.renderItem,e.renderSectionFooter,e.renderSectionHeader,e.sections,e.stickySectionHeadersEnabled;for(var t=Pa(e,sh),n=+!!this.props.ListHeaderComponent,r=this.props.stickySectionHeadersEnabled?[]:void 0,i=0,a=Md(this.props.sections),o;!(o=a()).done;){var s=o.value;r?.push(i+n),i+=2,i+=this.props.getItemCount(s.data)}var c=this._renderItem(i);return b.createElement(ip,Xl({},t,{keyExtractor:this._keyExtractor,stickyHeaderIndices:r,renderItem:c,data:this.props.sections,getItem:(e,t)=>this._getItem(this.props,e,t),getItemCount:()=>i,onViewableItemsChanged:this.props.onViewableItemsChanged?this._onViewableItemsChanged:void 0,ref:this._captureRef}))}_getItem(e,t,n){if(!t)return null;for(var r=n-1,i=0;i<t.length;i++){var a=t[i],o=a.data,s=e.getItemCount(o);if(r===-1||r===s)return a;if(r<s)return e.getItem(o,r);r-=s+2}return null}_subExtractor(e){for(var t=e,n=this.props,r=n.getItem,i=n.getItemCount,a=n.keyExtractor,o=n.sections,s=0;s<o.length;s++){var c=o[s],l=c.data,u=c.key||String(s);if(--t,t>=i(l)+1)t-=i(l)+1;else if(t===-1)return{section:c,key:u+`:header`,index:null,header:!0,trailingSection:o[s+1]};else if(t===i(l))return{section:c,key:u+`:footer`,index:null,header:!1,trailingSection:o[s+1]};else{var d=c.keyExtractor||a||Wf;return{section:c,key:u+`:`+d(r(l,t),t),index:t,leadingItem:r(l,t-1),leadingSection:o[s-1],trailingItem:r(l,t+1),trailingSection:o[s+1]}}}}_getSeparatorComponent(e,t,n){if(t||=this._subExtractor(e),!t)return null;var r=t.section.ItemSeparatorComponent||this.props.ItemSeparatorComponent,i=this.props.SectionSeparatorComponent,a=e===n-1,o=t.index===this.props.getItemCount(t.section.data)-1;return i&&o?i:r&&!o&&!a?r:null}};function lh(e){var t=e.LeadingSeparatorComponent,n=e.SeparatorComponent,r=e.cellKey,i=e.prevCellKey,a=e.setSelfHighlightCallback,o=e.updateHighlightFor,s=e.setSelfUpdatePropsCallback,c=e.updatePropsFor,l=e.item,u=e.index,d=e.section,f=e.inverted,p=b.useState(!1),m=p[0],h=p[1],g=b.useState(!1),_=g[0],v=g[1],y=b.useState({leadingItem:e.leadingItem,leadingSection:e.leadingSection,section:e.section,trailingItem:e.item,trailingSection:e.trailingSection}),x=y[0],S=y[1],C=b.useState({leadingItem:e.item,leadingSection:e.leadingSection,section:e.section,trailingItem:e.trailingItem,trailingSection:e.trailingSection}),w=C[0],T=C[1];b.useEffect(()=>(a(r,v),s(r,T),()=>{s(r,null),a(r,null)}),[r,a,T,s]);var E=e.renderItem({item:l,index:u,section:d,separators:{highlight:()=>{h(!0),v(!0),i!=null&&o(i,!0)},unhighlight:()=>{h(!1),v(!1),i!=null&&o(i,!1)},updateProps:(e,r)=>{e===`leading`?t==null?i!=null&&c(i,H(H({},x),r)):S(H(H({},x),r)):e===`trailing`&&n!=null&&T(H(H({},w),r))}}}),D=t!=null&&b.createElement(t,Xl({highlighted:m},x)),O=n!=null&&b.createElement(n,Xl({highlighted:_},w));return D||O?b.createElement(Ed,null,f===!1?D:O,E,f===!1?O:D):E}var uh=[`stickySectionHeadersEnabled`],dh=class extends b.PureComponent{constructor(){super(...arguments),this._captureRef=e=>{this._wrapperListRef=e}}scrollToLocation(e){this._wrapperListRef!=null&&this._wrapperListRef.scrollToLocation(e)}recordInteraction(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();e&&e.recordInteraction()}flashScrollIndicators(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();e&&e.flashScrollIndicators()}getScrollResponder(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();if(e)return e.getScrollResponder()}getScrollableNode(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();if(e)return e.getScrollableNode()}render(){var e=this.props,t=e.stickySectionHeadersEnabled,n=Pa(e,uh),r=t??Yl.OS===`ios`;return b.createElement(ch,Xl({},n,{stickySectionHeadersEnabled:r,ref:this._captureRef,getItemCount:e=>e.length,getItem:(e,t)=>e[t]}))}},fh=Pm(b.forwardRef((e,t)=>b.createElement(dh,Xl({scrollEventThrottle:1e-4},e,{ref:t})))),ph=[`hrefAttrs`,`numberOfLines`,`onClick`,`onLayout`,`onPress`,`onMoveShouldSetResponder`,`onMoveShouldSetResponderCapture`,`onResponderEnd`,`onResponderGrant`,`onResponderMove`,`onResponderReject`,`onResponderRelease`,`onResponderStart`,`onResponderTerminate`,`onResponderTerminationRequest`,`onScrollShouldSetResponder`,`onScrollShouldSetResponderCapture`,`onSelectionChangeShouldSetResponder`,`onSelectionChangeShouldSetResponderCapture`,`onStartShouldSetResponder`,`onStartShouldSetResponderCapture`,`selectable`],mh=Object.assign({},Zl,Ql,$l,eu,tu,nu,ru,iu,{href:!0,lang:!0,pointerEvents:!0}),hh=e=>au(e,mh),gh=b.forwardRef((e,t)=>{var n=e.hrefAttrs,r=e.numberOfLines,i=e.onClick,a=e.onLayout,o=e.onPress,s=e.onMoveShouldSetResponder,c=e.onMoveShouldSetResponderCapture,l=e.onResponderEnd,u=e.onResponderGrant,d=e.onResponderMove,f=e.onResponderReject,p=e.onResponderRelease,m=e.onResponderStart,h=e.onResponderTerminate,g=e.onResponderTerminationRequest,_=e.onScrollShouldSetResponder,v=e.onScrollShouldSetResponderCapture,y=e.onSelectionChangeShouldSetResponder,x=e.onSelectionChangeShouldSetResponderCapture,S=e.onStartShouldSetResponder,C=e.onStartShouldSetResponderCapture,w=e.selectable,T=Pa(e,ph),E=b.useContext(Sd),D=b.useRef(null),O=Ll().direction;uu(D,a),xd(D,{onMoveShouldSetResponder:s,onMoveShouldSetResponderCapture:c,onResponderEnd:l,onResponderGrant:u,onResponderMove:d,onResponderReject:f,onResponderRelease:p,onResponderStart:m,onResponderTerminate:h,onResponderTerminationRequest:g,onScrollShouldSetResponder:_,onScrollShouldSetResponderCapture:v,onSelectionChangeShouldSetResponder:y,onSelectionChangeShouldSetResponderCapture:x,onStartShouldSetResponder:S,onStartShouldSetResponderCapture:C});var k=b.useCallback(e=>{i==null?o!=null&&(e.stopPropagation(),o(e)):i(e)},[i,o]),ee=E?`span`:`div`,A=e.lang==null?null:Fl(e.lang),te=e.dir||A,ne=te||O,re=hh(T);if(re.dir=te,E||(re.dir=te??`auto`),(i||o)&&(re.onClick=k),re.style=[r!=null&&r>1&&{WebkitLineClamp:r},E===!0?vh.textHasAncestor$raw:vh.text$raw,r===1&&vh.textOneLine,r!=null&&r>1&&vh.textMultiLine,e.style,w===!0&&vh.selectable,w===!1&&vh.notSelectable,o&&vh.pressable],e.href!=null&&(ee=`a`,n!=null)){var ie=n.download,j=n.rel,M=n.target;ie!=null&&(re.download=ie),j!=null&&(re.rel=j),typeof M==`string`&&(re.target=M.charAt(0)===`_`?M:`_`+M)}re.ref=fu(D,hu(re),t);var ae=Rl(ee,re,{writingDirection:ne});return E?ae:b.createElement(Sd.Provider,{value:!0},ae)});gh.displayName=`Text`;var _h={backgroundColor:`transparent`,border:`0 solid black`,boxSizing:`border-box`,color:`black`,display:`inline`,font:`14px System`,listStyle:`none`,margin:0,padding:0,position:`relative`,textAlign:`start`,textDecoration:`none`,whiteSpace:`pre-wrap`,wordWrap:`break-word`},vh=yl.create({text$raw:_h,textHasAncestor$raw:H(H({},_h),{},{color:`inherit`,font:`inherit`,textAlign:`inherit`,whiteSpace:`inherit`}),textOneLine:{maxWidth:`100%`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,wordWrap:`normal`},textMultiLine:{display:`-webkit-box`,maxWidth:`100%`,overflow:`clip`,textOverflow:`ellipsis`,WebkitBoxOrient:`vertical`},notSelectable:{userSelect:`none`},selectable:{userSelect:`text`},pressable:{cursor:`pointer`}}),yh=Pm(gh),bh=Pm(Ed),xh=class extends im{constructor(e,t){super(),this._a=typeof e==`number`?new ym(e):e,this._b=typeof t==`number`?new ym(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()+this._b.__getValue()}interpolate(e){return new hm(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:`addition`,input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},Sh=class extends im{constructor(e,t,n){super(),this._a=e,this._min=t,this._max=n,this._value=this._lastValue=this._a.__getValue()}__makeNative(e){this._a.__makeNative(e),super.__makeNative(e)}interpolate(e){return new hm(this,e)}__getValue(){var e=this._a.__getValue(),t=e-this._lastValue;return this._lastValue=e,this._value=Math.min(Math.max(this._value+t,this._min),this._max),this._value}__attach(){this._a.__addChild(this)}__detach(){this._a.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:`diffclamp`,input:this._a.__getNativeTag(),min:this._min,max:this._max}}},Ch=class extends im{constructor(e,t){super(),this._warnedAboutDivideByZero=!1,(t===0||t instanceof rm&&t.__getValue()===0)&&console.error(`Detected potential division by zero in AnimatedDivision`),this._a=typeof e==`number`?new ym(e):e,this._b=typeof t==`number`?new ym(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){var e=this._a.__getValue(),t=this._b.__getValue();return t===0?(this._warnedAboutDivideByZero||=(console.error(`Detected division by zero in AnimatedDivision`),!0),0):(this._warnedAboutDivideByZero=!1,e/t)}interpolate(e){return new hm(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:`division`,input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},wh=class extends im{constructor(e,t){super(),this._a=e,this._modulus=t}__makeNative(e){this._a.__makeNative(e),super.__makeNative(e)}__getValue(){return(this._a.__getValue()%this._modulus+this._modulus)%this._modulus}interpolate(e){return new hm(this,e)}__attach(){this._a.__addChild(this)}__detach(){this._a.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:`modulus`,input:this._a.__getNativeTag(),modulus:this._modulus}}},Th=class extends im{constructor(e,t){super(),this._a=typeof e==`number`?new ym(e):e,this._b=typeof t==`number`?new ym(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()*this._b.__getValue()}interpolate(e){return new hm(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:`multiplication`,input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},Eh=class extends im{constructor(e,t){super(),this._a=typeof e==`number`?new ym(e):e,this._b=typeof t==`number`?new ym(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()-this._b.__getValue()}interpolate(e){return new hm(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:`subtraction`,input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},Dh=class extends rm{constructor(e,t,n,r,i){super(),this._value=e,this._parent=t,this._animationClass=n,this._animationConfig=r,this._useNativeDriver=Qp(r),this._callback=i,this.__attach()}__makeNative(){this.__isNative=!0,this._parent.__makeNative(),super.__makeNative(),this._value.__makeNative()}__getValue(){return this._parent.__getValue()}__attach(){this._parent.__addChild(this),this._useNativeDriver&&this.__makeNative()}__detach(){this._parent.__removeChild(this),super.__detach()}update(){this._value.animate(new this._animationClass(H(H({},this._animationConfig),{},{toValue:this._animationConfig.toValue.__getValue()})),this._callback)}__getNativeConfig(){var e=new this._animationClass(H(H({},this._animationConfig),{},{toValue:void 0})).__getNativeAnimationConfig();return{type:`tracking`,animationId:Yp(),animationConfig:e,toValue:this._parent.__getNativeTag(),value:this._value.__getNativeTag()}}},Oh=1,kh=class extends im{constructor(e){super();var t=e||{x:0,y:0};typeof t.x==`number`&&typeof t.y==`number`?(this.x=new ym(t.x),this.y=new ym(t.y)):((0,W.default)(t.x instanceof ym&&t.y instanceof ym,`AnimatedValueXY must be initialized with an object of numbers or AnimatedValues.`),this.x=t.x,this.y=t.y),this._listeners={}}setValue(e){this.x.setValue(e.x),this.y.setValue(e.y)}setOffset(e){this.x.setOffset(e.x),this.y.setOffset(e.y)}flattenOffset(){this.x.flattenOffset(),this.y.flattenOffset()}extractOffset(){this.x.extractOffset(),this.y.extractOffset()}__getValue(){return{x:this.x.__getValue(),y:this.y.__getValue()}}resetAnimation(e){this.x.resetAnimation(),this.y.resetAnimation(),e&&e(this.__getValue())}stopAnimation(e){this.x.stopAnimation(),this.y.stopAnimation(),e&&e(this.__getValue())}addListener(e){var t=String(Oh++),n=t=>{t.value,e(this.__getValue())};return this._listeners[t]={x:this.x.addListener(n),y:this.y.addListener(n)},t}removeListener(e){this.x.removeListener(this._listeners[e].x),this.y.removeListener(this._listeners[e].y),delete this._listeners[e]}removeAllListeners(){this.x.removeAllListeners(),this.y.removeAllListeners(),this._listeners={}}getLayout(){return{left:this.x,top:this.y}}getTranslateTransform(){return[{translateX:this.x},{translateY:this.y}]}},Ah=1,jh=class{start(e,t,n,r,i){}stop(){this.__nativeId&&em.API.stopAnimation(this.__nativeId)}__getNativeAnimationConfig(){throw Error(`This animation type cannot be offloaded to native`)}__debouncedOnEnd(e){var t=this.__onEnd;this.__onEnd=null,t&&t(e)}__startNativeAnimation(e){var t=Ah+`:startAnimation`;Ah+=1,em.API.setWaitingForIdentifier(t);try{var n=this.__getNativeAnimationConfig();e.__makeNative(n.platformConfig),this.__nativeId=em.generateNewAnimationId(),em.API.startAnimatingNode(this.__nativeId,e.__getNativeTag(),n,this.__debouncedOnEnd.bind(this))}catch(e){throw e}finally{em.API.unsetWaitingForIdentifier(t)}}},Mh=class extends jh{constructor(e){super(),this._deceleration=e.deceleration??.998,this._velocity=e.velocity,this._useNativeDriver=Qp(e),this.__isInteraction=e.isInteraction??!this._useNativeDriver,this.__iterations=e.iterations??1}__getNativeAnimationConfig(){return{type:`decay`,deceleration:this._deceleration,velocity:this._velocity,iterations:this.__iterations}}start(e,t,n,r,i){this.__active=!0,this._lastValue=e,this._fromValue=e,this._onUpdate=t,this.__onEnd=n,this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(i):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}onUpdate(){var e=Date.now(),t=this._fromValue+this._velocity/(1-this._deceleration)*(1-Math.exp(-(1-this._deceleration)*(e-this._startTime)));if(this._onUpdate(t),Math.abs(this._lastValue-t)<.1){this.__debouncedOnEnd({finished:!0});return}this._lastValue=t,this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this)))}stop(){super.stop(),this.__active=!1,globalThis.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}};function Nh(e){return(e-30)*3.62+194}function Ph(e){return(e-8)*3+25}function Fh(e,t){return{stiffness:Nh(e),damping:Ph(t)}}function Ih(e,t){function n(e,t,n){return(e-t)/(n-t)}function r(e,t,n){return t+e*(n-t)}function i(e,t,n){return e*n+(1-e)*t}function a(e,t,n){return i(2*e-e*e,t,n)}function o(e){return 7e-4*e**3-.031*e**2+.64*e+1.28}function s(e){return 44e-6*e**3-.006*e**2+.36*e+2}function c(e){return 45e-8*e**3-332e-6*e**2+.1078*e+5.84}function l(e){return e<=18?o(e):e>18&&e<=44?s(e):c(e)}var u=n(e/1.7,0,20);u=r(u,0,.8);var d=r(n(t/1.7,0,20),.5,200),f=a(u,l(d),.01);return{stiffness:Nh(d),damping:Ph(f)}}var Lh={fromOrigamiTensionAndFriction:Fh,fromBouncinessAndSpeed:Ih},Rh=em.API,zh={r:0,g:0,b:0,a:1},Bh=1,Vh=e=>e;function Hh(e){if(e==null)return null;if(Uh(e))return e;var t=(0,am.default)(e);if(t==null)return null;if(typeof t==`object`){var n=Vh(t);if(n!=null)return n}else if(typeof t==`number`)return{r:(t&4278190080)>>>24,g:(t&16711680)>>>16,b:(t&65280)>>>8,a:(t&255)/255};return null}function Uh(e){return e&&typeof e.r==`number`&&typeof e.g==`number`&&typeof e.b==`number`&&typeof e.a==`number`}function Wh(e){return e&&e.r instanceof ym&&e.g instanceof ym&&e.b instanceof ym&&e.a instanceof ym}var Gh=class extends im{constructor(e,t){super(),this._listeners={};var n=e??zh;if(Wh(n)){var r=n;this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a}else{var i=Hh(n)??zh,a=zh;Uh(i)?a=i:this.nativeColor=i,this.r=new ym(a.r),this.g=new ym(a.g),this.b=new ym(a.b),this.a=new ym(a.a)}(this.nativeColor||t&&t.useNativeDriver)&&this.__makeNative()}setValue(e){var t=!1;if(this.__isNative){var n=this.__getNativeTag();Rh.setWaitingForIdentifier(n.toString())}var r=Hh(e)??zh;if(Uh(r)){var i=r;this.r.setValue(i.r),this.g.setValue(i.g),this.b.setValue(i.b),this.a.setValue(i.a),this.nativeColor!=null&&(this.nativeColor=null,t=!0)}else{var a=r;this.nativeColor!==a&&(this.nativeColor=a,t=!0)}if(this.__isNative){var o=this.__getNativeTag();t&&Rh.updateAnimatedNodeConfig(o,this.__getNativeConfig()),Rh.unsetWaitingForIdentifier(o.toString())}}setOffset(e){this.r.setOffset(e.r),this.g.setOffset(e.g),this.b.setOffset(e.b),this.a.setOffset(e.a)}flattenOffset(){this.r.flattenOffset(),this.g.flattenOffset(),this.b.flattenOffset(),this.a.flattenOffset()}extractOffset(){this.r.extractOffset(),this.g.extractOffset(),this.b.extractOffset(),this.a.extractOffset()}addListener(e){var t=String(Bh++),n=t=>{t.value,e(this.__getValue())};return this._listeners[t]={r:this.r.addListener(n),g:this.g.addListener(n),b:this.b.addListener(n),a:this.a.addListener(n)},t}removeListener(e){this.r.removeListener(this._listeners[e].r),this.g.removeListener(this._listeners[e].g),this.b.removeListener(this._listeners[e].b),this.a.removeListener(this._listeners[e].a),delete this._listeners[e]}removeAllListeners(){this.r.removeAllListeners(),this.g.removeAllListeners(),this.b.removeAllListeners(),this.a.removeAllListeners(),this._listeners={}}stopAnimation(e){this.r.stopAnimation(),this.g.stopAnimation(),this.b.stopAnimation(),this.a.stopAnimation(),e&&e(this.__getValue())}resetAnimation(e){this.r.resetAnimation(),this.g.resetAnimation(),this.b.resetAnimation(),this.a.resetAnimation(),e&&e(this.__getValue())}__getValue(){return this.nativeColor==null?`rgba(`+this.r.__getValue()+`, `+this.g.__getValue()+`, `+this.b.__getValue()+`, `+this.a.__getValue()+`)`:this.nativeColor}__attach(){this.r.__addChild(this),this.g.__addChild(this),this.b.__addChild(this),this.a.__addChild(this),super.__attach()}__detach(){this.r.__removeChild(this),this.g.__removeChild(this),this.b.__removeChild(this),this.a.__removeChild(this),super.__detach()}__makeNative(e){this.r.__makeNative(e),this.g.__makeNative(e),this.b.__makeNative(e),this.a.__makeNative(e),super.__makeNative(e)}__getNativeConfig(){return{type:`color`,r:this.r.__getNativeTag(),g:this.g.__getNativeTag(),b:this.b.__getNativeTag(),a:this.a.__getNativeTag(),nativeColor:this.nativeColor}}},Kh=class e extends jh{constructor(e){if(super(),this._overshootClamping=e.overshootClamping??!1,this._restDisplacementThreshold=e.restDisplacementThreshold??.001,this._restSpeedThreshold=e.restSpeedThreshold??.001,this._initialVelocity=e.velocity??0,this._lastVelocity=e.velocity??0,this._toValue=e.toValue,this._delay=e.delay??0,this._useNativeDriver=Qp(e),this._platformConfig=e.platformConfig,this.__isInteraction=e.isInteraction??!this._useNativeDriver,this.__iterations=e.iterations??1,e.stiffness!==void 0||e.damping!==void 0||e.mass!==void 0)(0,W.default)(e.bounciness===void 0&&e.speed===void 0&&e.tension===void 0&&e.friction===void 0,`You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one`),this._stiffness=e.stiffness??100,this._damping=e.damping??10,this._mass=e.mass??1;else if(e.bounciness!==void 0||e.speed!==void 0){(0,W.default)(e.tension===void 0&&e.friction===void 0&&e.stiffness===void 0&&e.damping===void 0&&e.mass===void 0,`You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one`);var t=Lh.fromBouncinessAndSpeed(e.bounciness??8,e.speed??12);this._stiffness=t.stiffness,this._damping=t.damping,this._mass=1}else{var n=Lh.fromOrigamiTensionAndFriction(e.tension??40,e.friction??7);this._stiffness=n.stiffness,this._damping=n.damping,this._mass=1}(0,W.default)(this._stiffness>0,`Stiffness value must be greater than 0`),(0,W.default)(this._damping>0,`Damping value must be greater than 0`),(0,W.default)(this._mass>0,`Mass value must be greater than 0`)}__getNativeAnimationConfig(){return{type:`spring`,overshootClamping:this._overshootClamping,restDisplacementThreshold:this._restDisplacementThreshold,restSpeedThreshold:this._restSpeedThreshold,stiffness:this._stiffness,damping:this._damping,mass:this._mass,initialVelocity:this._initialVelocity??this._lastVelocity,toValue:this._toValue,iterations:this.__iterations,platformConfig:this._platformConfig}}start(t,n,r,i,a){if(this.__active=!0,this._startPosition=t,this._lastPosition=this._startPosition,this._onUpdate=n,this.__onEnd=r,this._lastTime=Date.now(),this._frameTime=0,i instanceof e){var o=i.getInternalState();this._lastPosition=o.lastPosition,this._lastVelocity=o.lastVelocity,this._initialVelocity=this._lastVelocity,this._lastTime=o.lastTime}var s=()=>{this._useNativeDriver?this.__startNativeAnimation(a):this.onUpdate()};this._delay?this._timeout=setTimeout(s,this._delay):s()}getInternalState(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}}onUpdate(){var e=64,t=Date.now();t>this._lastTime+e&&(t=this._lastTime+e);var n=(t-this._lastTime)/1e3;this._frameTime+=n;var r=this._damping,i=this._mass,a=this._stiffness,o=-this._initialVelocity,s=r/(2*Math.sqrt(a*i)),c=Math.sqrt(a/i),l=c*Math.sqrt(1-s*s),u=this._toValue-this._startPosition,d=0,f=0,p=this._frameTime;if(s<1){var m=Math.exp(-s*c*p);d=this._toValue-m*((o+s*c*u)/l*Math.sin(l*p)+u*Math.cos(l*p)),f=s*c*m*(Math.sin(l*p)*(o+s*c*u)/l+u*Math.cos(l*p))-m*(Math.cos(l*p)*(o+s*c*u)-l*u*Math.sin(l*p))}else{var h=Math.exp(-c*p);d=this._toValue-h*(u+(o+c*u)*p),f=h*(o*(p*c-1)+p*u*(c*c))}if(this._lastTime=t,this._lastPosition=d,this._lastVelocity=f,this._onUpdate(d),this.__active){var g=!1;this._overshootClamping&&this._stiffness!==0&&(g=this._startPosition<this._toValue?d>this._toValue:d<this._toValue);var _=Math.abs(f)<=this._restSpeedThreshold,v=!0;if(this._stiffness!==0&&(v=Math.abs(this._toValue-d)<=this._restDisplacementThreshold),g||_&&v){this._stiffness!==0&&(this._lastPosition=this._toValue,this._lastVelocity=0,this._onUpdate(this._toValue)),this.__debouncedOnEnd({finished:!0});return}this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}}stop(){super.stop(),this.__active=!1,clearTimeout(this._timeout),globalThis.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}},qh=4,Jh=.001,Yh=1e-7,Xh=10,Zh=11,Qh=1/(Zh-1),$h=typeof Float32Array==`function`;function eg(e,t){return 1-3*t+3*e}function tg(e,t){return 3*t-6*e}function ng(e){return 3*e}function rg(e,t,n){return((eg(t,n)*e+tg(t,n))*e+ng(t))*e}function ig(e,t,n){return 3*eg(t,n)*e*e+2*tg(t,n)*e+ng(t)}function ag(e,t,n,r,i){var a,o,s=0,c=t,l=n;do o=c+(l-c)/2,a=rg(o,r,i)-e,a>0?l=o:c=o;while(Math.abs(a)>Yh&&++s<Xh);return o}function og(e,t,n,r){for(var i=t,a=0;a<qh;++a){var o=ig(i,n,r);if(o===0)return i;var s=rg(i,n,r)-e;i-=s/o}return i}function sg(e,t,n,r){if(!(e>=0&&e<=1&&n>=0&&n<=1))throw Error(`bezier x values must be in [0, 1] range`);var i=$h?new Float32Array(Zh):Array(Zh);if(e!==t||n!==r)for(var a=0;a<Zh;++a)i[a]=rg(a*Qh,e,n);function o(t){for(var r=0,a=1,o=Zh-1;a!==o&&i[a]<=t;++a)r+=Qh;--a;var s=(t-i[a])/(i[a+1]-i[a]),c=r+s*Qh,l=ig(c,e,n);return l>=Jh?og(t,c,e,n):l===0?c:ag(t,r,r+Qh,e,n)}return function(i){return e===t&&n===r?i:i===0?0:i===1?1:rg(o(i),t,r)}}var cg,lg=class e{static step0(e){return+(e>0)}static step1(e){return+(e>=1)}static linear(e){return e}static ease(t){return cg||=e.bezier(.42,0,1,1),cg(t)}static quad(e){return e*e}static cubic(e){return e*e*e}static poly(e){return t=>t**+e}static sin(e){return 1-Math.cos(e*Math.PI/2)}static circle(e){return 1-Math.sqrt(1-e*e)}static exp(e){return 2**(10*(e-1))}static elastic(e){e===void 0&&(e=1);var t=e*Math.PI;return e=>1-Math.cos(e*Math.PI/2)**3*Math.cos(e*t)}static back(e){return e===void 0&&(e=1.70158),t=>t*t*((e+1)*t-e)}static bounce(e){if(e<1/2.75)return 7.5625*e*e;if(e<2/2.75){var t=e-1.5/2.75;return 7.5625*t*t+.75}if(e<2.5/2.75){var n=e-2.25/2.75;return 7.5625*n*n+.9375}var r=e-2.625/2.75;return 7.5625*r*r+.984375}static bezier(e,t,n,r){return sg(e,t,n,r)}static in(e){return e}static out(e){return t=>1-e(1-t)}static inOut(e){return t=>t<.5?e(t*2)/2:1-e((1-t)*2)/2}},ug;function dg(){return ug||=lg.inOut(lg.ease),ug}var fg=class extends jh{constructor(e){super(),this._toValue=e.toValue,this._easing=e.easing??dg(),this._duration=e.duration??500,this._delay=e.delay??0,this.__iterations=e.iterations??1,this._useNativeDriver=Qp(e),this._platformConfig=e.platformConfig,this.__isInteraction=e.isInteraction??!this._useNativeDriver}__getNativeAnimationConfig(){for(var e=1e3/60,t=[],n=Math.round(this._duration/e),r=0;r<n;r++)t.push(this._easing(r/n));return t.push(this._easing(1)),{type:`frames`,frames:t,toValue:this._toValue,iterations:this.__iterations,platformConfig:this._platformConfig}}start(e,t,n,r,i){this.__active=!0,this._fromValue=e,this._onUpdate=t,this.__onEnd=n;var a=()=>{this._duration===0&&!this._useNativeDriver?(this._onUpdate(this._toValue),this.__debouncedOnEnd({finished:!0})):(this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(i):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this)))};this._delay?this._timeout=setTimeout(a,this._delay):a()}onUpdate(){var e=Date.now();if(e>=this._startTime+this._duration){this._duration===0?this._onUpdate(this._toValue):this._onUpdate(this._fromValue+this._easing(1)*(this._toValue-this._fromValue)),this.__debouncedOnEnd({finished:!0});return}this._onUpdate(this._fromValue+this._easing((e-this._startTime)/this._duration)*(this._toValue-this._fromValue)),this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this)))}stop(){super.stop(),this.__active=!1,clearTimeout(this._timeout),globalThis.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}},pg=function(e,t){return new xh(e,t)},mg=function(e,t){return new Eh(e,t)},hg=function(e,t){return new Ch(e,t)},gg=function(e,t){return new Th(e,t)},_g=function(e,t){return new wh(e,t)},vg=function(e,t,n){return new Sh(e,t,n)},yg=function(e,t){return e&&t.onComplete?function(){t.onComplete&&t.onComplete(...arguments),e&&e(...arguments)}:e||t.onComplete},bg=function(e,t,n){if(e instanceof kh){var r=H({},t),i=H({},t);for(var a in t){var o=t[a],s=o.x,c=o.y;s!==void 0&&c!==void 0&&(r[a]=s,i[a]=c)}return Tg([n(e.x,r),n(e.y,i)],{stopTogether:!1})}if(e instanceof Gh){var l=H({},t),u=H({},t),d=H({},t),f=H({},t);for(var p in t){var m=t[p],h=m.r,g=m.g,_=m.b,v=m.a;h!==void 0&&g!==void 0&&_!==void 0&&v!==void 0&&(l[p]=h,u[p]=g,d[p]=_,f[p]=v)}return Tg([n(e.r,l),n(e.g,u),n(e.b,d),n(e.a,f)],{stopTogether:!1})}return null},xg=function e(t,n){var r=function(e,t,n){n=yg(n,t);var r=e,i=t;r.stopTracking(),t.toValue instanceof rm?r.track(new Dh(r,t.toValue,Kh,i,n)):r.animate(new Kh(i),n)};return bg(t,n,e)||{start:function(e){r(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){r(t,H(H({},n),{},{iterations:e}))},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},Sg=function e(t,n){var r=function(e,t,n){n=yg(n,t);var r=e,i=t;r.stopTracking(),t.toValue instanceof rm?r.track(new Dh(r,t.toValue,fg,i,n)):r.animate(new fg(i),n)};return bg(t,n,e)||{start:function(e){r(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){r(t,H(H({},n),{},{iterations:e}))},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},Cg=function e(t,n){var r=function(e,t,n){n=yg(n,t);var r=e,i=t;r.stopTracking(),r.animate(new Mh(i),n)};return bg(t,n,e)||{start:function(e){r(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){r(t,H(H({},n),{},{iterations:e}))},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},wg=function(e){var t=0;return{start:function(n){e.length===0?n&&n({finished:!0}):e[t].start(function r(i){if(!i.finished){n&&n(i);return}if(t++,t===e.length){t=0,n&&n(i);return}e[t].start(r)})},stop:function(){t<e.length&&e[t].stop()},reset:function(){e.forEach((e,n)=>{n<=t&&e.reset()}),t=0},_startNativeLoop:function(){throw Error(`Loops run using the native driver cannot contain Animated.sequence animations`)},_isUsingNativeDriver:function(){return!1}}},Tg=function(e,t){var n=0,r={},i=!(t&&t.stopTogether===!1),a={start:function(t){if(n===e.length){t&&t({finished:!0});return}e.forEach((o,s)=>{var c=function(o){if(r[s]=!0,n++,n===e.length){n=0,t&&t(o);return}!o.finished&&i&&a.stop()};o?o.start(c):c({finished:!0})})},stop:function(){e.forEach((e,t)=>{!r[t]&&e.stop(),r[t]=!0})},reset:function(){e.forEach((e,t)=>{e.reset(),r[t]=!1,n=0})},_startNativeLoop:function(){throw Error(`Loops run using the native driver cannot contain Animated.parallel animations`)},_isUsingNativeDriver:function(){return!1}};return a},Eg=function(e){return Sg(new ym(0),{toValue:0,delay:e,duration:0,useNativeDriver:!1})},Dg=function(e,t){return Tg(t.map((t,n)=>wg([Eg(e*n),t])))},Og=function(e,t){var n=t===void 0?{}:t,r=n.iterations,i=r===void 0?-1:r,a=n.resetBeforeIteration,o=a===void 0||a,s=!1,c=0;return{start:function(t){!e||i===0?t&&t({finished:!0}):e._isUsingNativeDriver()?e._startNativeLoop(i):function n(r){r===void 0&&(r={finished:!0}),s||c===i||r.finished===!1?t&&t(r):(c++,o&&e.reset(),e.start(n))}()},stop:function(){s=!0,e.stop()},reset:function(){c=0,s=!1,e.reset()},_startNativeLoop:function(){throw Error(`Loops run using the native driver cannot contain Animated.loop animations`)},_isUsingNativeDriver:function(){return e._isUsingNativeDriver()}}};function kg(e,t){return e?e instanceof xm?(e.__addListener(t),e):function(){typeof e==`function`&&e(...arguments),t(...arguments)}:t}function Ag(e,t){e&&e instanceof xm&&e.__removeListener(t)}var jg={Value:ym,ValueXY:kh,Color:Gh,Interpolation:hm,Node:rm,decay:Cg,timing:Sg,spring:xg,add:pg,subtract:mg,divide:hg,multiply:gg,modulo:_g,diffClamp:vg,delay:Eg,sequence:wg,parallel:Tg,stagger:Dg,loop:Og,event:function(e,t){var n=new xm(e,t);return n.__isNative?n:n.__getHandler()},createAnimatedComponent:Pm,attachNativeEvent:bm,forkEvent:kg,unforkEvent:Ag,Event:xm},Mg=!1;function Ng(e){return t=>{e(t==null?t:function(){if(Mg){console.warn(`Ignoring recursive animation callback when running mock animations`);return}Mg=!0;try{t(...arguments)}finally{Mg=!1}})}}var Pg={start:()=>{},stop:()=>{},reset:()=>{},_startNativeLoop:()=>{},_isUsingNativeDriver:()=>!1},Fg=e=>H(H({},Pg),{},{start:Ng(t=>{e.forEach(e=>e.start()),t?.({finished:!0})})}),Ig={Value:ym,ValueXY:kh,Color:Gh,Interpolation:hm,Node:rm,decay:function(e,t){return Pg},timing:function(e,t){var n=e;return H(H({},Pg),{},{start:Ng(e=>{n.setValue(t.toValue),e?.({finished:!0})})})},spring:function(e,t){var n=e;return H(H({},Pg),{},{start:Ng(e=>{n.setValue(t.toValue),e?.({finished:!0})})})},add:jg.add,subtract:jg.subtract,divide:jg.divide,multiply:jg.multiply,modulo:jg.modulo,diffClamp:jg.diffClamp,delay:function(e){return Pg},sequence:function(e){return Fg(e)},parallel:function(e,t){return Fg(e)},stagger:function(e,t){return Fg(t)},loop:function(e,t){return(t===void 0?{}:t).iterations,Pg},event:jg.event,createAnimatedComponent:Pm,attachNativeEvent:bm,forkEvent:jg.forkEvent,unforkEvent:jg.unforkEvent,Event:xm},Lg=Yl.isTesting?Ig:jg,Rg=H({FlatList:Fm,Image:ah,ScrollView:oh,SectionList:fh,Text:yh,View:bh},Lg),zg=`DELAY`,Bg=`ERROR`,Vg=`LONG_PRESS_DETECTED`,Hg=`NOT_RESPONDER`,Ug=`RESPONDER_ACTIVE_LONG_PRESS_START`,Wg=`RESPONDER_ACTIVE_PRESS_START`,Gg=`RESPONDER_INACTIVE_PRESS_START`,Kg=`RESPONDER_GRANT`,qg=`RESPONDER_RELEASE`,Jg=`RESPONDER_TERMINATED`,Yg=Object.freeze({NOT_RESPONDER:{DELAY:Bg,RESPONDER_GRANT:Gg,RESPONDER_RELEASE:Bg,RESPONDER_TERMINATED:Bg,LONG_PRESS_DETECTED:Bg},RESPONDER_INACTIVE_PRESS_START:{DELAY:Wg,RESPONDER_GRANT:Bg,RESPONDER_RELEASE:Hg,RESPONDER_TERMINATED:Hg,LONG_PRESS_DETECTED:Bg},RESPONDER_ACTIVE_PRESS_START:{DELAY:Bg,RESPONDER_GRANT:Bg,RESPONDER_RELEASE:Hg,RESPONDER_TERMINATED:Hg,LONG_PRESS_DETECTED:Ug},RESPONDER_ACTIVE_LONG_PRESS_START:{DELAY:Bg,RESPONDER_GRANT:Bg,RESPONDER_RELEASE:Hg,RESPONDER_TERMINATED:Hg,LONG_PRESS_DETECTED:Ug},ERROR:{DELAY:Hg,RESPONDER_GRANT:Gg,RESPONDER_RELEASE:Hg,RESPONDER_TERMINATED:Hg,LONG_PRESS_DETECTED:Hg}}),Xg=e=>e.getAttribute(`role`),Zg=e=>e.tagName.toLowerCase(),Qg=e=>e===Wg||e===Ug,$g=e=>Xg(e)===`button`,e_=e=>e===Gg||e===Wg||e===Ug,t_=e=>e===Jg||e===qg,n_=e=>{var t=e.key,n=e.target,r=t===` `||t===`Spacebar`,i=Zg(n)===`button`||$g(n);return t===`Enter`||r&&i},r_=450,i_=50,a_=class{constructor(e){this._eventHandlers=null,this._isPointerTouch=!1,this._longPressDelayTimeout=null,this._longPressDispatched=!1,this._pressDelayTimeout=null,this._pressOutDelayTimeout=null,this._touchState=Hg,this._responderElement=null,this.configure(e)}configure(e){this._config=e}reset(){this._cancelLongPressDelayTimeout(),this._cancelPressDelayTimeout(),this._cancelPressOutDelayTimeout()}getEventHandlers(){return this._eventHandlers??=this._createEventHandlers(),this._eventHandlers}_createEventHandlers(){var e=(e,t)=>{e.persist(),this._cancelPressOutDelayTimeout(),this._longPressDispatched=!1,this._selectionTerminated=!1,this._touchState=Hg,this._isPointerTouch=e.nativeEvent.type===`touchstart`,this._receiveSignal(Kg,e);var n=o_(this._config.delayPressStart,0,i_);t!==!1&&n>0?this._pressDelayTimeout=setTimeout(()=>{this._receiveSignal(zg,e)},n):this._receiveSignal(zg,e);var r=o_(this._config.delayLongPress,10,r_);this._longPressDelayTimeout=setTimeout(()=>{this._handleLongPress(e)},r+n)},t=e=>{this._receiveSignal(qg,e)},n=e=>{var r=this._config.onPress,i=e.target;if(this._touchState!==Hg&&n_(e)){t(e),document.removeEventListener(`keyup`,n);var a=i.getAttribute(`role`),o=Zg(i),s=a===`link`||o===`a`||o===`button`||o===`input`||o===`select`||o===`textarea`,c=this._responderElement===i;r!=null&&!s&&c&&r(e),this._responderElement=null}};return{onStartShouldSetResponder:e=>{var t=this._config.disabled;return t&&$g(e.currentTarget)&&e.stopPropagation(),t==null||!t},onKeyDown:t=>{var r=this._config.disabled,i=t.key,a=t.target;if(!r&&n_(t)){this._touchState===Hg&&(e(t,!1),this._responderElement=a,document.addEventListener(`keyup`,n));var o=i===` `||i===`Spacebar`,s=Xg(a);o&&(s===`button`||s===`menuitem`)&&Zg(a)!==`button`&&t.preventDefault(),t.stopPropagation()}},onResponderGrant:t=>e(t),onResponderMove:e=>{this._config.onPressMove!=null&&this._config.onPressMove(e);var t=s_(e);if(this._touchActivatePosition!=null){var n=this._touchActivatePosition.pageX-t.pageX,r=this._touchActivatePosition.pageY-t.pageY;Math.hypot(n,r)>10&&this._cancelLongPressDelayTimeout()}},onResponderRelease:e=>t(e),onResponderTerminate:e=>{e.nativeEvent.type===`selectionchange`&&(this._selectionTerminated=!0),this._receiveSignal(Jg,e)},onResponderTerminationRequest:e=>{var t=this._config,n=t.cancelable,r=t.disabled,i=t.onLongPress;return!r&&i!=null&&this._isPointerTouch&&e.nativeEvent.type===`contextmenu`?!1:n??!0},onClick:e=>{var t=this._config,n=t.disabled,r=t.onPress;n?$g(e.currentTarget)&&e.stopPropagation():(e.stopPropagation(),this._longPressDispatched||this._selectionTerminated?e.preventDefault():r!=null&&e.altKey===!1&&r(e))},onContextMenu:e=>{var t=this._config,n=t.disabled,r=t.onLongPress;n?$g(e.currentTarget)&&e.stopPropagation():r!=null&&this._isPointerTouch&&!e.defaultPrevented&&(e.preventDefault(),e.stopPropagation())}}}_receiveSignal(e,t){var n=this._touchState,r=null;Yg[n]!=null&&(r=Yg[n][e]),(this._touchState!==Hg||e!==qg)&&(r==null||r===Bg?console.error(`PressResponder: Invalid signal `+e+` for state `+n+` on responder`):n!==r&&(this._performTransitionSideEffects(n,r,e,t),this._touchState=r))}_performTransitionSideEffects(e,t,n,r){if(t_(n)&&(setTimeout(()=>{this._isPointerTouch=!1},0),this._touchActivatePosition=null,this._cancelLongPressDelayTimeout()),e_(e)&&n===Vg){var i=this._config.onLongPress;i!=null&&r.nativeEvent.key==null&&(i(r),this._longPressDispatched=!0)}var a=Qg(e),o=Qg(t);if(!a&&o?this._activate(r):a&&!o&&this._deactivate(r),e_(e)&&n===qg){var s=this._config,c=s.onLongPress;s.onPress!=null&&(c==null||e!==Ug)&&!o&&!a&&(this._activate(r),this._deactivate(r))}this._cancelPressDelayTimeout()}_activate(e){var t=this._config,n=t.onPressChange,r=t.onPressStart,i=s_(e);this._touchActivatePosition={pageX:i.pageX,pageY:i.pageY},r?.(e),n?.(!0)}_deactivate(e){var t=this._config,n=t.onPressChange,r=t.onPressEnd;function i(){r?.(e),n?.(!1)}var a=o_(this._config.delayPressEnd);a>0?this._pressOutDelayTimeout=setTimeout(()=>{i()},a):i()}_handleLongPress(e){(this._touchState===Wg||this._touchState===Ug)&&this._receiveSignal(Vg,e)}_cancelLongPressDelayTimeout(){this._longPressDelayTimeout!=null&&(clearTimeout(this._longPressDelayTimeout),this._longPressDelayTimeout=null)}_cancelPressDelayTimeout(){this._pressDelayTimeout!=null&&(clearTimeout(this._pressDelayTimeout),this._pressDelayTimeout=null)}_cancelPressOutDelayTimeout(){this._pressOutDelayTimeout!=null&&(clearTimeout(this._pressOutDelayTimeout),this._pressOutDelayTimeout=null)}};function o_(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=0),Math.max(t,e??n)}function s_(e){var t=e.nativeEvent,n=t.changedTouches,r=t.touches;return r!=null&&r.length>0?r[0]:n!=null&&n.length>0?n[0]:e.nativeEvent}function c_(e,t){var n=(0,b.useRef)(null);n.current??=new a_(t);var r=n.current;return(0,b.useEffect)(()=>{r.configure(t)},[t,r]),(0,b.useEffect)(()=>()=>{r.reset()},[r]),(0,b.useDebugValue)(t),r.getEventHandlers()}Za();var l_=()=>{};function u_(){var e=!1;if(Xa)try{var t={};Object.defineProperty(t,"passive",{get(){return e=!0,!1}}),window.addEventListener(`test`,null,t),window.removeEventListener(`test`,null,t)}catch{}return e}var d_=u_();function f_(e){return e==null?!1:d_?e:!!e.capture}function p_(){return this.cancelBubble}function m_(){return this.defaultPrevented}function h_(e){return e.nativeEvent=e,e.persist=l_,e.isDefaultPrevented=m_,e.isPropagationStopped=p_,e}function g_(e,t,n,r){var i=f_(r),a=e=>n(h_(e));return e.addEventListener(t,a,i),function(){e?.removeEventListener(t,a,i)}}Za();var __=()=>typeof window<`u`&&window.PointerEvent!=null,v_=`keyboard`,y_=`keyboard`,b_,x_,S_=!1,C_=new Set,w_=`keyboard`,T_=`mouse`,E_=`touch`,D_=`blur`,O_=`contextmenu`,k_=`focus`,A_=`keydown`,j_=`mousedown`,M_=`mousemove`,N_=`mouseup`,P_=`pointerdown`,F_=`pointermove`,I_=`scroll`,L_=`selectionchange`,R_=`touchcancel`,z_=`touchmove`,B_=`touchstart`,V_=`visibilitychange`,H_={passive:!0},U_={capture:!0,passive:!0};function W_(){(b_!=null||x_!=null)&&(b_!=null&&(y_=b_,b_=null),x_!=null&&(v_=x_,x_=null),X_())}function G_(){b_=y_,x_=v_,v_=w_,y_=w_,X_(),S_=!1}function K_(){W_()}function q_(e){e.metaKey||e.altKey||e.ctrlKey||y_!==w_&&(y_=w_,v_=w_,X_())}function J_(){document.visibilityState!==`hidden`&&W_()}function Y_(e){var t=e.type;if(__()){if(t===P_){v_!==e.pointerType&&(y_=e.pointerType,v_=e.pointerType,X_());return}if(t===F_){y_!==e.pointerType&&(y_=e.pointerType,X_());return}}else{if(S_||(t===j_&&v_!==T_&&(y_=T_,v_=T_,X_()),t===M_&&y_!==T_&&(y_=T_,X_())),t===B_){S_=!0,e.touches&&e.touches.length>1&&(S_=!1),v_!==E_&&(y_=E_,v_=E_,X_());return}(t===O_||t===N_||t===L_||t===I_||t===R_||t===z_)&&(S_=!1)}}Xa&&(g_(window,D_,G_,H_),g_(window,k_,K_,H_),g_(document,A_,q_,U_),g_(document,V_,J_,U_),g_(document,P_,Y_,U_),g_(document,F_,Y_,U_),g_(document,O_,Y_,U_),g_(document,j_,Y_,U_),g_(document,M_,Y_,U_),g_(document,N_,Y_,U_),g_(document,R_,Y_,U_),g_(document,z_,Y_,U_),g_(document,B_,Y_,U_),g_(document,L_,Y_,U_),g_(document,I_,Y_,U_));function X_(){var e={activeModality:v_,modality:y_};C_.forEach(t=>{t(e)})}function Z_(){return y_}function Q_(e,t){var n=mu(()=>new Map),r=mu(()=>(r,i)=>{n.get(r)?.(),i??=(n.delete(r),()=>{});var a=g_(r,e,i,t);return n.set(r,a),a});return ou(()=>()=>{n.forEach(e=>{e()}),n.clear()},[n]),r}var $_={},ev={passive:!0},tv=`react-gui:hover:lock`,nv=`react-gui:hover:unlock`,rv=()=>typeof window<`u`&&window.PointerEvent!=null;function iv(e,t,n){var r=document.createEvent(`CustomEvent`),i=n||$_,a=i.bubbles,o=a===void 0||a,s=i.cancelable,c=s===void 0||s,l=i.detail;r.initCustomEvent(t,o,c,l),e.dispatchEvent(r)}function av(e){return e.pointerType??Z_()}function ov(e,t){var n=t.contain,r=t.disabled,i=t.onHoverStart,a=t.onHoverChange,o=t.onHoverUpdate,s=t.onHoverEnd,c=rv(),l=Q_(c?`pointermove`:`mousemove`,ev),u=Q_(c?`pointerenter`:`mouseenter`,ev),d=Q_(c?`pointerleave`:`mouseleave`,ev),f=Q_(tv,ev),p=Q_(nv,ev);ou(()=>{var t=e.current;if(t!==null){var c=function(e){s?.(e),a?.(!1),l(t,null),d(t,null)},m=function(t){var r=e.current;r!=null&&av(t)!==`touch`&&(n&&iv(r,nv),c(t))},h=function(e){av(e)!==`touch`&&o!=null&&(e.x??=e.clientX,e.y??=e.clientY,o(e))},g=function(e){i?.(e),a?.(!0),o!=null&&l(t,r?null:h),d(t,r?null:m)};u(t,r?null:function(t){var i=e.current;i!=null&&av(t)!==`touch`&&(n&&iv(i,tv),g(t),f(i,r?null:function(e){e.target!==i&&c(t)}),p(i,r?null:function(e){e.target!==i&&g(t)}))})}},[u,l,d,f,p,n,r,i,a,o,s,e])}var sv=[`children`,`delayLongPress`,`delayPressIn`,`delayPressOut`,`disabled`,`onBlur`,`onContextMenu`,`onFocus`,`onHoverIn`,`onHoverOut`,`onKeyDown`,`onLongPress`,`onPress`,`onPressMove`,`onPressIn`,`onPressOut`,`style`,`tabIndex`,`testOnly_hovered`,`testOnly_pressed`];function cv(e,t){var n=e.children,r=e.delayLongPress,i=e.delayPressIn,a=e.delayPressOut,o=e.disabled,s=e.onBlur,c=e.onContextMenu,l=e.onFocus,u=e.onHoverIn,d=e.onHoverOut,f=e.onKeyDown,p=e.onLongPress,m=e.onPress,h=e.onPressMove,g=e.onPressIn,_=e.onPressOut,v=e.style,y=e.tabIndex,x=e.testOnly_hovered,S=e.testOnly_pressed,C=Pa(e,sv),w=lv(x===!0),T=w[0],E=w[1],D=lv(!1),O=D[0],k=D[1],ee=lv(S===!0),A=ee[0],te=ee[1],ne=(0,b.useRef)(null),re=fu(t,ne),ie=c_(ne,(0,b.useMemo)(()=>({delayLongPress:r,delayPressStart:i,delayPressEnd:a,disabled:o,onLongPress:p,onPress:m,onPressChange:te,onPressStart:g,onPressMove:h,onPressEnd:_}),[r,i,a,o,p,m,g,h,_,te])),j=ie.onContextMenu,M=ie.onKeyDown;ov(ne,{contain:!0,disabled:o,onHoverChange:E,onHoverStart:u,onHoverEnd:d});var ae={hovered:T,focused:O,pressed:A},oe=b.useCallback(e=>{e.nativeEvent.target===ne.current&&(k(!1),s?.(e))},[ne,k,s]),se=b.useCallback(e=>{e.nativeEvent.target===ne.current&&(k(!0),l?.(e))},[ne,k,l]),N=b.useCallback(e=>{j?.(e),c?.(e)},[c,j]),ce=b.useCallback(e=>{M?.(e),f?.(e)},[f,M]),le=y===void 0?o?-1:0:y;return b.createElement(Ed,Xl({},C,ie,{"aria-disabled":o,onBlur:oe,onContextMenu:N,onFocus:se,onKeyDown:ce,ref:re,style:[o?uv.disabled:uv.active,typeof v==`function`?v(ae):v],tabIndex:le}),typeof n==`function`?n(ae):n)}function lv(e){var t=(0,b.useState)(!1),n=t[0],r=t[1];return[n||e,r]}var uv=yl.create({active:{cursor:`pointer`,touchAction:`manipulation`},disabled:{pointerEvents:`box-none`}}),dv=(0,b.memo)((0,b.forwardRef)(cv));dv.displayName=`Pressable`;var fv=(e,t)=>{var n=e.selectionEnd,r=e.selectionStart,i=t.start,a=t.end;return i!==r||a!==n},pv=(e,t)=>{if(fv(e,t)){var n=t.start,r=t.end;try{e.setSelectionRange(n,r||n)}catch{}}},mv=Object.assign({},Zl,Ql,$l,eu,tu,nu,ru,iu,{autoCapitalize:!0,autoComplete:!0,autoCorrect:!0,autoFocus:!0,defaultValue:!0,disabled:!0,lang:!0,maxLength:!0,onChange:!0,onScroll:!0,placeholder:!0,pointerEvents:!0,readOnly:!0,rows:!0,spellCheck:!0,value:!0,type:!0}),hv=e=>au(e,mv);function gv(e){return e.isComposing||e.keyCode===229}var _v=null,vv=b.forwardRef((e,t)=>{var n=e.autoCapitalize,r=n===void 0?`sentences`:n,i=e.autoComplete,a=e.autoCompleteType,o=e.autoCorrect,s=o===void 0||o,c=e.blurOnSubmit,l=e.caretHidden,u=e.clearTextOnFocus,d=e.dir,f=e.editable,p=e.enterKeyHint,m=e.inputMode,h=e.keyboardType,g=e.multiline,_=g!==void 0&&g,v=e.numberOfLines,y=e.onBlur,x=e.onChange,S=e.onChangeText,C=e.onContentSizeChange,w=e.onFocus,T=e.onKeyPress,E=e.onLayout,D=e.onMoveShouldSetResponder,O=e.onMoveShouldSetResponderCapture,k=e.onResponderEnd,ee=e.onResponderGrant,A=e.onResponderMove,te=e.onResponderReject,ne=e.onResponderRelease,re=e.onResponderStart,ie=e.onResponderTerminate,j=e.onResponderTerminationRequest,M=e.onScrollShouldSetResponder,ae=e.onScrollShouldSetResponderCapture,oe=e.onSelectionChange,se=e.onSelectionChangeShouldSetResponder,N=e.onSelectionChangeShouldSetResponderCapture,ce=e.onStartShouldSetResponder,le=e.onStartShouldSetResponderCapture,ue=e.onSubmitEditing,de=e.placeholderTextColor,fe=e.readOnly,pe=fe!==void 0&&fe,me=e.returnKeyType,he=e.rows,ge=e.secureTextEntry,_e=ge!==void 0&&ge,P=e.selection,ve=e.selectTextOnFocus,F=e.showSoftInputOnFocus,ye=e.spellCheck,I,be;if(m!=null)be=m,I=m===`email`?`email`:m===`tel`?`tel`:m===`search`?`search`:m===`url`?`url`:`text`;else if(h!=null)switch(h){case`email-address`:I=`email`;break;case`number-pad`:case`numeric`:be=`numeric`;break;case`decimal-pad`:be=`decimal`;break;case`phone-pad`:I=`tel`;break;case`search`:case`web-search`:I=`search`;break;case`url`:I=`url`;break;default:I=`text`}_e&&(I=`password`);var xe=b.useRef({height:null,width:null}),L=b.useRef(null),Se=b.useRef(null),Ce=b.useRef(!1);b.useEffect(()=>{L.current&&Se.current&&pv(L.current,Se.current),Ce.current=_e},[_e]);var we=b.useCallback(e=>{if(_&&C&&e!=null){var t=e.scrollHeight,n=e.scrollWidth;(t!==xe.current.height||n!==xe.current.width)&&(xe.current.height=t,xe.current.width=n,C({nativeEvent:{contentSize:{height:xe.current.height,width:xe.current.width}}}))}},[_,C]),Te=b.useMemo(()=>e=>{e!=null&&(e.clear=function(){e!=null&&(e.value=``)},e.isFocused=function(){return e!=null&&Vd.currentlyFocusedField()===e},we(e))},[we]);function R(e){Vd._currentlyFocusedNode=null,y&&(e.nativeEvent.text=e.target.value,y(e))}function Ee(e){var t=e.target,n=t.value;e.nativeEvent.text=n,we(t),x&&x(e),S&&S(n)}function De(e){var t=e.target;w&&(e.nativeEvent.text=t.value,w(e)),t!=null&&(Vd._currentlyFocusedNode=t,u&&(t.value=``),ve&&(_v!=null&&clearTimeout(_v),_v=setTimeout(()=>{t!=null&&document.activeElement===t&&t.select()},0)))}function Oe(e){var t=e.target;e.stopPropagation();var n=c??!_,r=e.nativeEvent,i=gv(r);T&&T(e),e.key===`Enter`&&!e.shiftKey&&!i&&!e.isDefaultPrevented()&&((c||!_)&&ue&&(e.preventDefault(),r.text=e.target.value,ue(e)),n&&t!=null&&setTimeout(()=>t.blur(),0))}function z(e){try{var t=e.target,n={start:t.selectionStart,end:t.selectionEnd};oe&&(e.nativeEvent.selection=n,e.nativeEvent.text=e.target.value,oe(e)),Ce.current===_e&&(Se.current=n)}catch{}}ou(()=>{var e=L.current;e!=null&&P!=null&&pv(e,P),document.activeElement===e&&(Vd._currentlyFocusedNode=e)},[L,P]);var ke=_?`textarea`:`input`;uu(L,E),xd(L,{onMoveShouldSetResponder:D,onMoveShouldSetResponderCapture:O,onResponderEnd:k,onResponderGrant:ee,onResponderMove:A,onResponderReject:te,onResponderRelease:ne,onResponderStart:re,onResponderTerminate:ie,onResponderTerminationRequest:j,onScrollShouldSetResponder:M,onScrollShouldSetResponderCapture:ae,onSelectionChangeShouldSetResponder:se,onSelectionChangeShouldSetResponderCapture:N,onStartShouldSetResponder:ce,onStartShouldSetResponderCapture:le});var Ae=Ll().direction,je=hv(e);je.autoCapitalize=r,je.autoComplete=i||a||`on`,je.autoCorrect=s?`on`:`off`,je.dir=d===void 0?`auto`:d,je.enterKeyHint=p||me,je.inputMode=be,je.onBlur=R,je.onChange=Ee,je.onFocus=De,je.onKeyDown=Oe,je.onSelect=z,je.readOnly=pe===!0||f===!1,je.rows=_?he??v:1,je.spellCheck=ye??s,je.style=[{"--placeholderTextColor":de},yv.textinput$raw,yv.placeholder,e.style,l&&yv.caretHidden],je.type=_?void 0:I,je.virtualkeyboardpolicy=F===!1?`manual`:`auto`,je.ref=fu(L,hu(je),Te,t);var Me=e.lang==null?null:Fl(e.lang);return Rl(ke,je,{writingDirection:e.dir||Me||Ae})});vv.displayName=`TextInput`,vv.State=Vd;var yv=yl.create({textinput$raw:{MozAppearance:`textfield`,WebkitAppearance:`none`,backgroundColor:`transparent`,border:`0 solid black`,borderRadius:0,boxSizing:`border-box`,font:`14px System`,margin:0,padding:0,resize:`none`},placeholder:{placeholderTextColor:`var(--placeholderTextColor)`},caretHidden:{caretColor:`transparent`}}),bv=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},xv=function(e){var t=this;e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},Sv=10,Cv=bv,wv={addPoolingTo:function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||Cv,n.poolSize||=Sv,n.release=xv,n},twoArgumentPooler:bv},Tv=wv.twoArgumentPooler;function Ev(e,t){this.width=e,this.height=t}Ev.prototype.destructor=function(){this.width=null,this.height=null},Ev.getPooledFromElement=function(e){return Ev.getPooled(e.offsetWidth,e.offsetHeight)},wv.addPoolingTo(Ev,Tv);var Dv=wv.twoArgumentPooler;function Ov(e,t){this.left=e,this.top=t}Ov.prototype.destructor=function(){this.left=null,this.top=null},wv.addPoolingTo(Ov,Dv),Bc();var kv=e=>{var t=e.touches,n=e.changedTouches,r=t&&t.length>0,i=n&&n.length>0;return!r&&i?n[0]:r?t[0]:e},G={NOT_RESPONDER:`NOT_RESPONDER`,RESPONDER_INACTIVE_PRESS_IN:`RESPONDER_INACTIVE_PRESS_IN`,RESPONDER_INACTIVE_PRESS_OUT:`RESPONDER_INACTIVE_PRESS_OUT`,RESPONDER_ACTIVE_PRESS_IN:`RESPONDER_ACTIVE_PRESS_IN`,RESPONDER_ACTIVE_PRESS_OUT:`RESPONDER_ACTIVE_PRESS_OUT`,RESPONDER_ACTIVE_LONG_PRESS_IN:`RESPONDER_ACTIVE_LONG_PRESS_IN`,RESPONDER_ACTIVE_LONG_PRESS_OUT:`RESPONDER_ACTIVE_LONG_PRESS_OUT`,ERROR:`ERROR`},Av={NOT_RESPONDER:!1,RESPONDER_INACTIVE_PRESS_IN:!1,RESPONDER_INACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_PRESS_IN:!1,RESPONDER_ACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_LONG_PRESS_IN:!1,RESPONDER_ACTIVE_LONG_PRESS_OUT:!1,ERROR:!1},jv=H(H({},Av),{},{RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0}),Mv=H(H({},Av),{},{RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),Nv=H(H({},Av),{},{RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),Pv={DELAY:`DELAY`,RESPONDER_GRANT:`RESPONDER_GRANT`,RESPONDER_RELEASE:`RESPONDER_RELEASE`,RESPONDER_TERMINATED:`RESPONDER_TERMINATED`,ENTER_PRESS_RECT:`ENTER_PRESS_RECT`,LEAVE_PRESS_RECT:`LEAVE_PRESS_RECT`,LONG_PRESS_DETECTED:`LONG_PRESS_DETECTED`},Fv={NOT_RESPONDER:{DELAY:G.ERROR,RESPONDER_GRANT:G.RESPONDER_INACTIVE_PRESS_IN,RESPONDER_RELEASE:G.ERROR,RESPONDER_TERMINATED:G.ERROR,ENTER_PRESS_RECT:G.ERROR,LEAVE_PRESS_RECT:G.ERROR,LONG_PRESS_DETECTED:G.ERROR},RESPONDER_INACTIVE_PRESS_IN:{DELAY:G.RESPONDER_ACTIVE_PRESS_IN,RESPONDER_GRANT:G.ERROR,RESPONDER_RELEASE:G.NOT_RESPONDER,RESPONDER_TERMINATED:G.NOT_RESPONDER,ENTER_PRESS_RECT:G.RESPONDER_INACTIVE_PRESS_IN,LEAVE_PRESS_RECT:G.RESPONDER_INACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:G.ERROR},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:G.RESPONDER_ACTIVE_PRESS_OUT,RESPONDER_GRANT:G.ERROR,RESPONDER_RELEASE:G.NOT_RESPONDER,RESPONDER_TERMINATED:G.NOT_RESPONDER,ENTER_PRESS_RECT:G.RESPONDER_INACTIVE_PRESS_IN,LEAVE_PRESS_RECT:G.RESPONDER_INACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:G.ERROR},RESPONDER_ACTIVE_PRESS_IN:{DELAY:G.ERROR,RESPONDER_GRANT:G.ERROR,RESPONDER_RELEASE:G.NOT_RESPONDER,RESPONDER_TERMINATED:G.NOT_RESPONDER,ENTER_PRESS_RECT:G.RESPONDER_ACTIVE_PRESS_IN,LEAVE_PRESS_RECT:G.RESPONDER_ACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:G.RESPONDER_ACTIVE_LONG_PRESS_IN},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:G.ERROR,RESPONDER_GRANT:G.ERROR,RESPONDER_RELEASE:G.NOT_RESPONDER,RESPONDER_TERMINATED:G.NOT_RESPONDER,ENTER_PRESS_RECT:G.RESPONDER_ACTIVE_PRESS_IN,LEAVE_PRESS_RECT:G.RESPONDER_ACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:G.ERROR},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:G.ERROR,RESPONDER_GRANT:G.ERROR,RESPONDER_RELEASE:G.NOT_RESPONDER,RESPONDER_TERMINATED:G.NOT_RESPONDER,ENTER_PRESS_RECT:G.RESPONDER_ACTIVE_LONG_PRESS_IN,LEAVE_PRESS_RECT:G.RESPONDER_ACTIVE_LONG_PRESS_OUT,LONG_PRESS_DETECTED:G.RESPONDER_ACTIVE_LONG_PRESS_IN},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:G.ERROR,RESPONDER_GRANT:G.ERROR,RESPONDER_RELEASE:G.NOT_RESPONDER,RESPONDER_TERMINATED:G.NOT_RESPONDER,ENTER_PRESS_RECT:G.RESPONDER_ACTIVE_LONG_PRESS_IN,LEAVE_PRESS_RECT:G.RESPONDER_ACTIVE_LONG_PRESS_OUT,LONG_PRESS_DETECTED:G.ERROR},error:{DELAY:G.NOT_RESPONDER,RESPONDER_GRANT:G.RESPONDER_INACTIVE_PRESS_IN,RESPONDER_RELEASE:G.NOT_RESPONDER,RESPONDER_TERMINATED:G.NOT_RESPONDER,ENTER_PRESS_RECT:G.NOT_RESPONDER,LEAVE_PRESS_RECT:G.NOT_RESPONDER,LONG_PRESS_DETECTED:G.NOT_RESPONDER}},Iv=130,Lv=20,Rv=500-Iv,zv=10,Bv={componentDidMount:function(){var e=this.getTouchableNode&&this.getTouchableNode();e&&e.addEventListener&&(this._touchableBlurListener=e=>{this._isTouchableKeyboardActive&&=(this.state.touchable.touchState&&this.state.touchable.touchState!==G.NOT_RESPONDER&&this.touchableHandleResponderTerminate({nativeEvent:e}),!1)},e.addEventListener(`blur`,this._touchableBlurListener))},componentWillUnmount:function(){var e=this.getTouchableNode&&this.getTouchableNode();e&&e.addEventListener&&e.removeEventListener(`blur`,this._touchableBlurListener),this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressInLocation=null,this.state.touchable.responderID=null},touchableGetInitialState:function(){return{touchable:{touchState:void 0,responderID:null}}},touchableHandleResponderTerminationRequest:function(){return!this.props.rejectResponderTermination},touchableHandleStartShouldSetResponder:function(){return!this.props.disabled},touchableLongPressCancelsPress:function(){return!0},touchableHandleResponderGrant:function(e){var t=e.currentTarget;e.persist(),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressOutDelayTimeout=null,this.state.touchable.touchState=G.NOT_RESPONDER,this.state.touchable.responderID=t,this._receiveSignal(Pv.RESPONDER_GRANT,e);var n=this.touchableGetHighlightDelayMS===void 0?Iv:Math.max(this.touchableGetHighlightDelayMS(),0);n=isNaN(n)?Iv:n,n===0?this._handleDelay(e):this.touchableDelayTimeout=setTimeout(this._handleDelay.bind(this,e),n);var r=this.touchableGetLongPressDelayMS===void 0?Rv:Math.max(this.touchableGetLongPressDelayMS(),10);r=isNaN(r)?Rv:r,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,e),r+n)},touchableHandleResponderRelease:function(e){this.pressInLocation=null,this._receiveSignal(Pv.RESPONDER_RELEASE,e)},touchableHandleResponderTerminate:function(e){this.pressInLocation=null,this._receiveSignal(Pv.RESPONDER_TERMINATED,e)},touchableHandleResponderMove:function(e){if(this.state.touchable.positionOnActivate){var t=this.state.touchable.positionOnActivate,n=this.state.touchable.dimensionsOnActivate,r=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():{left:Lv,right:Lv,top:Lv,bottom:Lv},i=r.left,a=r.top,o=r.right,s=r.bottom,c=this.touchableGetHitSlop?this.touchableGetHitSlop():null;c&&(i+=c.left||0,a+=c.top||0,o+=c.right||0,s+=c.bottom||0);var l=kv(e.nativeEvent),u=l&&l.pageX,d=l&&l.pageY;if(this.pressInLocation&&this._getDistanceBetweenPoints(u,d,this.pressInLocation.pageX,this.pressInLocation.pageY)>zv&&this._cancelLongPressDelayTimeout(),u>t.left-i&&d>t.top-a&&u<t.left+n.width+o&&d<t.top+n.height+s){var f=this.state.touchable.touchState;this._receiveSignal(Pv.ENTER_PRESS_RECT,e),this.state.touchable.touchState===G.RESPONDER_INACTIVE_PRESS_IN&&f!==G.RESPONDER_INACTIVE_PRESS_IN&&this._cancelLongPressDelayTimeout()}else this._cancelLongPressDelayTimeout(),this._receiveSignal(Pv.LEAVE_PRESS_RECT,e)}},touchableHandleFocus:function(e){this.props.onFocus&&this.props.onFocus(e)},touchableHandleBlur:function(e){this.props.onBlur&&this.props.onBlur(e)},_remeasureMetricsOnActivation:function(){var e=this.state.touchable.responderID;e!=null&&Jl.measure(e,this._handleQueryLayout)},_handleQueryLayout:function(e,t,n,r,i,a){(e||t||n||r||i||a)&&(this.state.touchable.positionOnActivate&&Ov.release(this.state.touchable.positionOnActivate),this.state.touchable.dimensionsOnActivate&&Ev.release(this.state.touchable.dimensionsOnActivate),this.state.touchable.positionOnActivate=Ov.getPooled(i,a),this.state.touchable.dimensionsOnActivate=Ev.getPooled(n,r))},_handleDelay:function(e){this.touchableDelayTimeout=null,this._receiveSignal(Pv.DELAY,e)},_handleLongDelay:function(e){this.longPressDelayTimeout=null;var t=this.state.touchable.touchState;t!==G.RESPONDER_ACTIVE_PRESS_IN&&t!==G.RESPONDER_ACTIVE_LONG_PRESS_IN?console.error("Attempted to transition from state `"+t+"` to `"+G.RESPONDER_ACTIVE_LONG_PRESS_IN+"`, which is not supported. This is most likely due to `Touchable.longPressDelayTimeout` not being cancelled."):this._receiveSignal(Pv.LONG_PRESS_DETECTED,e)},_receiveSignal:function(e,t){var n=this.state.touchable.responderID,r=this.state.touchable.touchState,i=Fv[r]&&Fv[r][e];if(n||e!==Pv.RESPONDER_RELEASE){if(!i)throw Error("Unrecognized signal `"+e+"` or state `"+r+"` for Touchable responder `"+n+"`");if(i===G.ERROR)throw Error("Touchable cannot transition from `"+r+"` to `"+e+"` for responder `"+n+"`");r!==i&&(this._performSideEffectsForTransition(r,i,e,t),this.state.touchable.touchState=i)}},_cancelLongPressDelayTimeout:function(){this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.longPressDelayTimeout=null},_isHighlight:function(e){return e===G.RESPONDER_ACTIVE_PRESS_IN||e===G.RESPONDER_ACTIVE_LONG_PRESS_IN},_savePressInLocation:function(e){var t=kv(e.nativeEvent),n=t&&t.pageX,r=t&&t.pageY,i=t&&t.locationX,a=t&&t.locationY;this.pressInLocation={pageX:n,pageY:r,locationX:i,locationY:a}},_getDistanceBetweenPoints:function(e,t,n,r){var i=e-n,a=t-r;return Math.sqrt(i*i+a*a)},_performSideEffectsForTransition:function(e,t,n,r){var i=this._isHighlight(e),a=this._isHighlight(t);(n===Pv.RESPONDER_TERMINATED||n===Pv.RESPONDER_RELEASE)&&this._cancelLongPressDelayTimeout();var o=e===G.NOT_RESPONDER&&t===G.RESPONDER_INACTIVE_PRESS_IN,s=!jv[e]&&jv[t];if((o||s)&&this._remeasureMetricsOnActivation(),Mv[e]&&n===Pv.LONG_PRESS_DETECTED&&this.touchableHandleLongPress&&this.touchableHandleLongPress(r),a&&!i?this._startHighlight(r):!a&&i&&this._endHighlight(r),Mv[e]&&n===Pv.RESPONDER_RELEASE){var c=!!this.props.onLongPress,l=Nv[e]&&(!c||!this.touchableLongPressCancelsPress());(!Nv[e]||l)&&this.touchableHandlePress&&(!a&&!i&&(this._startHighlight(r),this._endHighlight(r)),this.touchableHandlePress(r))}this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.touchableDelayTimeout=null},_playTouchSound:function(){Jl.playTouchSound()},_startHighlight:function(e){this._savePressInLocation(e),this.touchableHandleActivePressIn&&this.touchableHandleActivePressIn(e)},_endHighlight:function(e){this.touchableHandleActivePressOut&&(this.touchableGetPressOutDelayMS&&this.touchableGetPressOutDelayMS()?this.pressOutDelayTimeout=setTimeout(()=>{this.touchableHandleActivePressOut(e)},this.touchableGetPressOutDelayMS()):this.touchableHandleActivePressOut(e))},touchableHandleKeyEvent:function(e){var t=e.type,n=e.key;(n===`Enter`||n===` `)&&(t===`keydown`?this._isTouchableKeyboardActive||(!this.state.touchable.touchState||this.state.touchable.touchState===G.NOT_RESPONDER)&&(this.touchableHandleResponderGrant(e),this._isTouchableKeyboardActive=!0):t===`keyup`&&this._isTouchableKeyboardActive&&this.state.touchable.touchState&&this.state.touchable.touchState!==G.NOT_RESPONDER&&(this.touchableHandleResponderRelease(e),this._isTouchableKeyboardActive=!1),e.stopPropagation(),(n!==`Enter`||Oa.propsToAriaRole(this.props)!==`link`)&&e.preventDefault())},withoutDefaultFocusAndBlur:{}};Bv.touchableHandleFocus,Bv.touchableHandleBlur,Bv.withoutDefaultFocusAndBlur=Pa(Bv,[`touchableHandleFocus`,`touchableHandleBlur`]);var Vv={Mixin:Bv,TOUCH_TARGET_DEBUG:!1,renderDebugView:e=>{var t=e.color,n=e.hitSlop;if(!Vv.TOUCH_TARGET_DEBUG)return null;var r={};for(var i in n||={top:0,bottom:0,left:0,right:0},n)r[i]=-n[i];var a=(0,am.default)(t);if(typeof a!=`number`)return null;var o=`#`+(`00000000`+a.toString(16)).substr(-8);return b.createElement(Ed,{pointerEvents:`none`,style:H({position:`absolute`,borderColor:o.slice(0,-2)+`55`,borderWidth:1,borderStyle:`dashed`,backgroundColor:o.slice(0,-2)+`0F`},r)})}},Hv={ignoreLogs(){},ignoreAllLogs(){},uninstall(){},install(){}},Uv=new Set([`xs`,`sm`,`md`,`lg`,`xl`,`2xl`]),Wv=new Set(Array.from(Uv).map(e=>`$${e}`)),Gv=Object.fromEntries(Array.from(Uv).map((e,t)=>[`$${e}`,t]));function Kv(e){return Wv.has(e)}function qv(){let e=Bd.get(`window`);return e.width>=1536?`2xl`:e.width>=1280?`xl`:e.width>=1024?`lg`:e.width>=768?`md`:e.width>=640?`sm`:`xs`}var Jv=qv();Bd.addEventListener(`change`,()=>{let e=qv();e!==Jv&&(Jv=e,Yv.forEach(e=>e()))});var Yv=[];function Xv(e){return Yv.push(e),()=>{Yv.splice(Yv.indexOf(e),1)}}function Zv(){return Jv}function Qv(){return Jv}function $v(){return(0,b.useSyncExternalStore)(Xv,Zv,Qv)}var ey=class{properties;flattened={};list=[];static=new Map;defaults;flatten(e){this.flattened=yl.flatten([this.flattened,e])}constructor(e,t){this.properties=t,this.defaults=new Set(e)}},ty;(function(e){e[e.Default=-1]=`Default`,e[e.Root=0]=`Root`,e[e.FirstBreakpoint=1]=`FirstBreakpoint`,e[e.SecondBreakpoint=2]=`SecondBreakpoint`})(ty||={});function ny(e,t,n){let r=t[n];if(r===void 0)return;delete t[n];let i=e.properties.get(n);i.hasDefault&&e.defaults.delete(i),e.static.set(i,r)}function ry(e,t,n,r){for(let i in n){if(Kv(i)){if(r===ty.SecondBreakpoint)continue;let a=n[i];if(!a||typeof a!=`object`||r===0&&Gv[i]>Gv[t]||r===1&&Gv[i]<Gv[t])continue;ry(e,t,a,r+1)}e.properties.has(i)&&ny(e,n,i)}}function iy(e,t,{style:n,...r},i,a,o={}){let s=new ey(t,e);ry(s,a,o,ty.SecondBreakpoint),ry(s,a,r,ty.Root);for(let e of s.defaults)s.flatten(e.toDefault(i));for(let[e,t]of s.static.entries())s.flatten(e.toStyle(t,i));let c=Array.isArray(n)?n:[n];for(let e of c)s.list.push(e);return[s,r]}var ay=class e{#e=new Set;properties=new Map;defaults=new Set;" type:record";" type:output";[Symbol.iterator](){return this.options()}_add(e){this.#e.add(e),e.hasDefault&&this.defaults.add(e);for(let t of e){if(this.properties.has(t))throw Error(`Duplicate key ${t} in StyleOptionCollection`);this.properties.set(t,e)}}*options(){for(let e of this.#e)yield e}find(e){for(let t of this.#e)if(t.names.includes(e))return t}add(t){if(t instanceof e)for(let e of t)this._add(e);else this._add(t);return this}fork(){return new e().add(this)}toStyle(e,t,n,r){return iy(this.properties,this.defaults,e,t,n,r)}},oy=new WeakMap,sy=0;function cy(e){let t=typeof e,n=e&&e.constructor,r=n===Date;if(Object(e)===e&&!r&&n!=RegExp){let t=oy.get(e);if(t)return t;t=++sy+`~`,oy.set(e,t);let r;if(n===Array){for(t=`@`,r=0;r<e.length;r++)t+=cy(e[r])+`,`;oy.set(e,t)}else if(n===Object){t=`#`;let n=Object.keys(e).sort();for(;(r=n.pop())!==void 0;)e[r]!==void 0&&(t+=r+`:`+cy(e[r])+`,`);oy.set(e,t)}return t}return r?e.toJSON():t===`symbol`?e.toString():t===`string`?JSON.stringify(e):``+e}function ly(e,t,n){let r=C(),i=$v(),[a,o]=(0,b.useMemo)(()=>e.toStyle(t,r,`$${i}`,n),[r,i,cy(t)]);return[a.flattened,a.list,o]}function uy({as:e=Ed,...t}){return(0,O.jsx)(e,{...t})}var dy=new Sa([`display`,`d`]).choice([`none`,`flex`,`contents`]).setDefault(`flex`).setToStyle(e=>({display:e})),fy=new Sa(`alignContent`).choice([`flex-start`,`flex-end`,`center`,`stretch`,`space-between`,`space-around`,`space-evenly`]).map([[`start`,`flex-start`],[`end`,`flex-end`],[`between`,`space-between`],[`around`,`space-around`],[`evenly`,`space-evenly`]]).map([[!0,`center`]]).setToStyle(e=>({alignContent:e})),py=new Sa([`alignItems`,`align`]).choice([`flex-start`,`flex-end`,`center`,`stretch`,`baseline`]).map([[`start`,`flex-start`],[`end`,`flex-end`]]).map([[!0,`center`]]).setToStyle(e=>({alignItems:e})),my=new Sa(`alignSelf`).choice([`flex-start`,`flex-end`,`center`,`stretch`,`baseline`]).map([[`start`,`flex-start`],[`end`,`flex-end`]]).map([[!0,`center`]]).setToStyle(e=>({alignSelf:e})),hy=new Sa(`background`).alias(`bg`).use(String).setToStyle(e=>({background:e}));hy.metadata.set(`storybook:args`,{control:{type:`color`}});var K=new Sa().choice([`auto`]).use(Number).use(String).use(String).use(Rg.AnimatedNode),gy=K.fork([`margin`,`m`]).setToStyle(e=>({margin:e})),_y=K.fork([`marginTop`,`mt`]).setToStyle(e=>({marginTop:e})),vy=K.fork([`marginRight`,`mr`]).setToStyle(e=>({marginRight:e})),yy=K.fork([`marginBottom`,`mb`]).setToStyle(e=>({marginBottom:e})),by=K.fork([`marginLeft`,`ml`]).setToStyle(e=>({marginLeft:e})),xy=K.fork([`marginVertical`,`my`]).setToStyle(e=>({marginTop:e,marginBottom:e})),Sy=K.fork([`marginHorizontal`,`mx`]).setToStyle(e=>({marginLeft:e,marginRight:e})),Cy=K.fork([`marginBlock`]).setToStyle(e=>({marginBlock:e})),wy=K.fork([`marginBlockStart`]).setToStyle(e=>({marginBlockStart:e})),Ty=K.fork([`marginBlockEnd`]).setToStyle(e=>({marginBlockEnd:e})),Ey=K.fork([`marginInline`]).setToStyle(e=>({marginInline:e})),Dy=K.fork([`marginInlineStart`]).setToStyle(e=>({marginInlineStart:e})),Oy=K.fork([`marginInlineEnd`]).setToStyle(e=>({marginInlineEnd:e})),ky=K.fork([`marginStart`]).setToStyle(e=>({marginStart:e})),Ay=K.fork([`marginEnd`]).setToStyle(e=>({marginEnd:e})),jy=K.fork([`padding`,`p`]).setToStyle(e=>({padding:e})),My=K.fork([`paddingTop`,`pt`]).setToStyle(e=>({paddingTop:e})),Ny=K.fork([`paddingRight`,`pr`]).setToStyle(e=>({paddingRight:e})),Py=K.fork([`paddingBottom`,`pb`]).setToStyle(e=>({paddingBottom:e})),Fy=K.fork([`paddingLeft`,`pl`]).setToStyle(e=>({paddingLeft:e})),Iy=K.fork([`paddingVertical`,`pv`]).setToStyle(e=>({paddingTop:e,paddingBottom:e})),Ly=K.fork([`paddingHorizontal`,`ph`]).setToStyle(e=>({paddingLeft:e,paddingRight:e})),Ry=K.fork([`paddingBlock`,`paddingY`,`py`]).setToStyle(e=>({paddingBlock:e})),zy=K.fork([`paddingBlockStart`]).setToStyle(e=>({paddingBlockStart:e})),By=K.fork([`paddingBlockEnd`]).setToStyle(e=>({paddingBlockEnd:e})),Vy=K.fork([`paddingInline`,`paddingX`,`px`]).setToStyle(e=>({paddingInline:e})),Hy=K.fork([`paddingInlineStart`]).setToStyle(e=>({paddingInlineStart:e})),Uy=K.fork([`paddingInlineEnd`]).setToStyle(e=>({paddingInlineEnd:e})),Wy=K.fork([`paddingStart`,`ps`]).setToStyle(e=>({paddingStart:e})),Gy=K.fork([`paddingEnd`,`pe`]).setToStyle(e=>({paddingEnd:e})),Ky=new Sa(`aspectRatio`).use(Number).use(String).setToStyle(e=>({aspectRatio:e})),qy=K.fork([`height`,`h`]).map([[!0,`100%`]]).setToStyle(e=>({height:e})),Jy=K.fork([`maxHeight`,`maxH`]).setToStyle(e=>({maxHeight:e})),Yy=K.fork([`minHeight`,`minH`]).setToStyle(e=>({minHeight:e})),Xy=K.fork([`width`,`w`]).map([[!0,`100%`]]).setToStyle(e=>({width:e})),Zy=K.fork([`maxWidth`,`maxW`]).setToStyle(e=>({maxWidth:e})),Qy=K.fork([`minWidth`,`minW`]).setToStyle(e=>({minWidth:e})),$y=new Sa([`justifyContent`,`justify`]).choice([`flex-start`,`flex-end`,`center`,`space-between`,`space-around`,`space-evenly`]).map([[`start`,`flex-start`],[`end`,`flex-end`],[`between`,`space-between`],[`around`,`space-around`],[`evenly`,`space-evenly`]]).map([[!0,`center`]]).setToStyle(e=>({justifyContent:e})),eb=new Sa(`position`).choice([`absolute`,`relative`,`static`]).setToStyle(e=>({position:e})),tb=K.fork([`top`]).map([[!0,0]]).setToStyle(e=>({top:e})),nb=K.fork([`right`]).map([[!0,0]]).setToStyle(e=>({right:e})),rb=K.fork([`bottom`]).map([[!0,0]]).setToStyle(e=>({bottom:e})),ib=K.fork([`left`]).map([[!0,0]]).setToStyle(e=>({left:e})),ab=K.fork([`inset`]).setToStyle(e=>({inset:e})),ob=K.fork([`insetBlock`]).setToStyle(e=>({insetBlock:e})),sb=K.fork([`insetInline`]).setToStyle(e=>({insetInline:e})),cb=K.fork([`insetInlineStart`]).setToStyle(e=>({insetInlineStart:e})),lb=K.fork([`insetInlineEnd`]).setToStyle(e=>({insetInlineEnd:e})),ub=K.fork([`insetBlockStart`]).setToStyle(e=>({insetBlockStart:e})),db=K.fork([`insetBlockEnd`]).setToStyle(e=>({insetBlockEnd:e})),fb=K.fork([`start`]).setToStyle(e=>({start:e})),pb=K.fork([`end`]).setToStyle(e=>({end:e})),mb=K.fork([`borderWidth`]).setToStyle(e=>({borderWidth:e})),hb=K.fork([`borderTopWidth`]).setToStyle(e=>({borderTopWidth:e})),gb=K.fork([`borderRightWidth`]).setToStyle(e=>({borderRightWidth:e})),_b=K.fork([`borderBottomWidth`]).setToStyle(e=>({borderBottomWidth:e})),vb=K.fork([`borderLeftWidth`]).setToStyle(e=>({borderLeftWidth:e})),yb=K.fork([`borderStartWidth`]).setToStyle(e=>({borderStartWidth:e})),bb=K.fork([`borderEndWidth`]).setToStyle(e=>({borderEndWidth:e})),xb=new Sa(`borderColor`).use(String).setToStyle(e=>({borderColor:e})),Sb=K.fork([`gap`]).setToStyle(e=>({gap:e})),Cb=K.fork([`rowGap`]).setToStyle(e=>({rowGap:e})),wb=K.fork([`columnGap`]).setToStyle(e=>({columnGap:e})),Tb=new Sa([`flex`]).use(Number).use(String).setToStyle(e=>{if(typeof e==`number`)return{flex:e};if(e.includes(`/`)){let[t,n]=e.split(`/`).map(Number);return{flexBasis:`${100*t/n}%`}}return{}}),Eb=K.fork([`flexBasis`]).setToStyle(e=>({flexBasis:e})),Db=new Sa([`flexDirection`]).choice([`row`,`column`,`row-reverse`,`column-reverse`]).setToStyle(e=>({flexDirection:e})),Ob=new Sa([`row`]).choice([!0]).setToStyle(e=>({flexDirection:e?`row`:void 0})),kb=new Sa([`column`]).choice([!0]).setToStyle(e=>({flexDirection:e?`column`:void 0})),Ab=new Sa([`flexGrow`]).use(Number).setToStyle(e=>({flexGrow:e})),jb=new Sa([`flexShrink`]).use(Number).setToStyle(e=>({flexShrink:e})),Mb=new Sa([`flexWrap`]).choice([`wrap`,`nowrap`,`wrap-reverse`]).setToStyle(e=>({flexWrap:e})),Nb=new Sa(`center`).choice([!0,!1]).setToStyle(e=>e?{alignItems:`center`,justifyContent:`center`}:{}),Pb=new ay().add(fy).add(py).add(my).add(Ky).add(hy).add(mb).add(hb).add(gb).add(_b).add(vb).add(yb).add(bb).add(xb).add(dy).add(Sb).add(Cb).add(wb).add(qy).add(Jy).add(Yy).add($y).add(eb).add(tb).add(nb).add(rb).add(ib).add(ab).add(ob).add(ub).add(db).add(sb).add(cb).add(lb).add(fb).add(pb).add(Xy).add(Zy).add(Qy).add(gy).add(_y).add(vy).add(yy).add(by).add(xy).add(Sy).add(Cy).add(wy).add(Ty).add(Ey).add(Dy).add(Oy).add(ky).add(Ay).add(jy).add(My).add(Ny).add(Py).add(Fy).add(Iy).add(Ly).add(Ry).add(zy).add(By).add(Vy).add(Hy).add(Uy).add(Wy).add(Gy).add(Tb).add(Eb).add(Db).add(Ab).add(jb).add(Mb).add(Nb),Fb=new Sa([`rounded`,`r`]).use(String).use(Number).map([[`sm`,2],[`md`,6],[`lg`,8],[`xl`,12],[`2xl`,16],[`3xl`,24],[`full`,9999]]).map([[`none`,0]]).map([[!0,4]]).setToStyle(e=>({borderRadius:e})),Ib=Fb.fork(`roundedStart`).setToStyle(e=>({borderStartStartRadius:e,borderStartEndRadius:e})),Lb=Fb.fork(`roundedEnd`).setToStyle(e=>({borderEndStartRadius:e,borderEndEndRadius:e})),Rb=Fb.fork(`roundedTop`).setToStyle(e=>({borderTopLeftRadius:e,borderTopRightRadius:e})),zb=Fb.fork(`roundedRight`).setToStyle(e=>({borderTopRightRadius:e,borderBottomRightRadius:e})),Bb=Fb.fork(`roundedBottom`).setToStyle(e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})),Vb=Fb.fork(`roundedLeft`).setToStyle(e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})),Hb=Ib.fork(`roundedStartStart`).setToStyle(e=>({borderStartStartRadius:e})),Ub=Ib.fork(`roundedStartEnd`).setToStyle(e=>({borderStartEndRadius:e})),Wb=Lb.fork(`roundedEndStart`).setToStyle(e=>({borderEndStartRadius:e})),Gb=Lb.fork(`roundedEndEnd`).setToStyle(e=>({borderEndEndRadius:e})),Kb=Rb.fork(`roundedTopLeft`).setToStyle(e=>({borderTopLeftRadius:e})),qb=Rb.fork(`roundedTopRight`).setToStyle(e=>({borderTopRightRadius:e})),Jb=Bb.fork(`roundedBottomRight`).setToStyle(e=>({borderBottomRightRadius:e})),Yb=Bb.fork(`roundedBottomLeft`).setToStyle(e=>({borderBottomLeftRadius:e})),Xb=new Sa(`shadow`).use(String).map({"2xs":`0 1px rgb(0 0 0 / 0.05)`,xs:`0 1px 2px 0 rgb(0 0 0 / 0.05)`,sm:`0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)`,md:`0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)`,lg:`0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)`,xl:`0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)`,"2xl":`0 25px 50px -12px rgb(0 0 0 / 0.25)`}).setToStyle(e=>({boxShadow:e})),Zb=new ay().add(Xb).add(new Sa(`overflow`).choice([`hidden`,`visible`,`scroll`,`auto`]).map([[!0,`hidden`]]).setToStyle(e=>({overflow:e}))).add(Ob).add(kb).add(Pb).add(Fb).add(Ib).add(Lb).add(Rb).add(zb).add(Bb).add(Vb).add(Hb).add(Ub).add(Wb).add(Gb).add(Kb).add(qb).add(Jb).add(Yb);function q({as:e,...t}){let[n,r,i]=ly(q.collection,t);return(0,O.jsx)(uy,{as:e,...i,style:[n,r]})}q.collection=Zb;var Qb=new Sa(`size`).use(Number).use(String).map({xs:12,sm:14,md:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":60,"7xl":72,"8xl":96,"9xl":128}).setToStyle(e=>({width:e,height:e})),$b=new Sa(`fill`).use(String).setToStyle(e=>({fill:e})),ex=new ay().add(Qb).add($b);function tx(e){function t({...t}){let[n,r,i]=ly(ex,t);return e({...n,...i,style:r})}return t.isIcon=!0,t.displayName=`Icon`,t.raw=e,t}tx.isIconComponent=e=>typeof e!=`function`||!(`isIcon`in e)?!1:!!e.isIcon,tx.resolve=(e,t)=>t?tx.isIconComponent(t)?(0,O.jsx)(t,{...e}):t(e):null;var nx=new Sa(`color`).use(String).setToStyle(e=>({color:e})),rx=new Sa(`textAlign`).alias(`align`).choice([`auto`,`left`,`right`,`center`,`justify`]).map([[!0,`center`]]).setToStyle(e=>({textAlign:e})),ix=new Sa(`center`).map([[!0,`center`]]).setToStyle(e=>({textAlign:e})),ax=new Sa([`fontSize`,`size`]).use(Number).use(String).map({xs:12,sm:14,md:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":60,"7xl":72,"8xl":96,"9xl":128}).setDefault(`sm`).setToStyle(e=>({fontSize:e})),ox=new Sa([`fontWeight`,`weight`]).use(String).choice([100,200,300,400,500,600,700,800,900]).map({thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,black:900}).setToStyle(e=>({fontWeight:e})),sx=new Sa([`bold`,`isBold`]).choice([!0,!1]).setToStyle(e=>({fontWeight:e?`bold`:void 0})),cx=new Sa([`fontFamily`,`family`]).use(String).setToStyle(e=>({fontFamily:e})),lx=new Sa([`isHeading`]).choice([!0,!1]).setDefault(!1).setToStyle((e,t)=>({fontFamily:e?t.tokens.get(`font.family.heading`):t.tokens.get(`font.family.body`)})),ux=new Sa([`lineHeight`,`height`]).use(Number).use(String).choice([`normal`]).map({xs:12,sm:14,md:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":60,"7xl":72,"8xl":96,"9xl":128}).setDefault(`normal`).setToStyle(e=>({lineHeight:e})),dx=new ay().add(cx).add(ax).add(ox).add(ux).add(rx).add(ix).add(nx).add(sx).add(lx);function fx({as:e=gh,text:t,children:n=t,...r}){let[i,a,o]=ly(fx.collection,r);return(0,O.jsx)(uy,{as:e,...o,style:[i,a],children:n})}fx.collection=dx;var px=e=>e.replace(/[A-Z]/g,e=>`-`+e.toLowerCase()),mx=e=>{if(e&&e.nodeType===1&&typeof e.getBoundingClientRect==`function`)return e.getBoundingClientRect();throw Error(`Can not get boundingClientRect of `+e||`undefined`)},hx=(e,t)=>{let n=e?.parentNode;n&&setTimeout(()=>{let r=mx(n),{height:i,left:a,top:o,width:s}=mx(e);t(a-r.left,o-r.top,s,i,a,o)},0)};function gx(){let e=this.state.touchable.responderID;e!==null&&hx(e,this._handleQueryLayout)}function _x(e){return e.replace(`<svg`,~e.indexOf(`xmlns`)?`<svg`:`<svg xmlns="http://www.w3.org/2000/svg"`).replace(/"/g,`'`).replace(/%/g,`%25`).replace(/#/g,`%23`).replace(/{/g,`%7B`).replace(/}/g,`%7D`).replace(/</g,`%3C`).replace(/>/g,`%3E`).replace(/\s+/g,` `)}var vx=new Set(`stdDeviation.edgeMode.kernelMatrix.kernelUnitLength.preserveAlpha.baseFrequency.targetX.targetY.numOctaves.stitchTiles.filterUnits.primitiveUnits.pathLength.gradientUnits.gradientTransform.spreadMethod.markerHeight.markerUnits.markerWidth.viewBox.refX.refY.maskContentUnits.maskUnits.patternContentUnits.patternTransform.patternUnits.textLength.lengthAdjust.startOffset.clipPathUnits`.split(`.`)),yx=e=>vx.has(e)?e:px(e);function bx(e){return!!(e.onPress||e.onPressIn||e.onPressOut||e.onLongPress)}Math.PI/180;var xx=s(((e,t)=>{function n(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function r(e,t,n,i){this.message=e,this.expected=t,this.found=n,this.location=i,this.name=`SyntaxError`,typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,r)}n(r,Error),r.buildMessage=function(e,t){var n={literal:function(e){return`"`+i(e.text)+`"`},class:function(e){for(var t=``,n=0;n<e.parts.length;n++)t+=e.parts[n]instanceof Array?a(e.parts[n][0])+`-`+a(e.parts[n][1]):a(e.parts[n]);return`[`+(e.inverted?`^`:``)+t+`]`},any:function(e){return`any character`},end:function(e){return`end of input`},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function a(e){return e.replace(/\\/g,`\\\\`).replace(/\]/g,`\\]`).replace(/\^/g,`\\^`).replace(/-/g,`\\-`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function o(e){return n[e.type](e)}function s(e){for(var t=Array(e.length),n=0,r;n<e.length;n++)t[n]=o(e[n]);if(t.sort(),t.length>0){for(n=1,r=1;n<t.length;n++)t[n-1]!==t[n]&&(t[r]=t[n],r++);t.length=r}switch(t.length){case 1:return t[0];case 2:return t[0]+` or `+t[1];default:return t.slice(0,-1).join(`, `)+`, or `+t[t.length-1]}}function c(e){return e?`"`+i(e)+`"`:`end of input`}return`Expected `+s(e)+` but `+c(t)+` found.`};function i(e,t){t=t===void 0?{}:t;var n={},i={transformList:De},a=De,o=function(e){return e},s=function(e,t){return Je(e,t)},c=`matrix`,l=xe(`matrix`,!1),u=`(`,d=xe(`(`,!1),f=`)`,p=xe(`)`,!1),m=function(e,t,n,r,i,a){return[e,n,i,t,r,a]},h=`translate`,g=xe(`translate`,!1),_=function(e,t){return[1,0,e,0,1,t||0]},v=`scale`,y=xe(`scale`,!1),b=function(e,t){return[e,0,0,0,t===null?e:t,0]},x=`rotate`,S=xe(`rotate`,!1),C=function(e,t){var n=Math.cos(qe*e),r=Math.sin(qe*e);if(t!==null){var i=t[0],a=t[1];return[n,-r,n*-i+-r*-a+i,r,n,r*-i+n*-a+a]}return[n,-r,0,r,n,0]},w=`skewX`,T=xe(`skewX`,!1),E=function(e){return[1,Math.tan(qe*e),0,0,1,0]},D=`skewY`,O=xe(`skewY`,!1),k=function(e){return[1,0,0,Math.tan(qe*e),1,0]},ee=function(e){return parseFloat(e.join(``))},A=function(e){return parseInt(e.join(``))},te=function(e){return e},ne=function(e,t){return[e,t]},re=`,`,ie=xe(`,`,!1),j=function(e){return e.join(``)},M=function(e){return e.join(``)},ae=function(e){return e.join(``)},oe=Ce(`fractionalConstant`),se=`.`,N=xe(`.`,!1),ce=function(e,t){return[e?e.join(``):null,`.`,t.join(``)].join(``)},le=/^[eE]/,ue=L([`e`,`E`],!1,!1),de=function(e){return[e[0],e[1],e[2].join(``)].join(``)},fe=/^[+\-]/,pe=L([`+`,`-`],!1,!1),me=/^[0-9]/,he=L([[`0`,`9`]],!1,!1),ge=/^[ \t\r\n]/,_e=L([` `,` `,`\r`,`
|
|
23
|
+
`],!1,!1),P=0,ve=[{line:1,column:1}],F=0,ye=[],I=0,be;if(`startRule`in t){if(!(t.startRule in i))throw Error(`Can't start parsing from rule "`+t.startRule+`".`);a=i[t.startRule]}function xe(e,t){return{type:`literal`,text:e,ignoreCase:t}}function L(e,t,n){return{type:`class`,parts:e,inverted:t,ignoreCase:n}}function Se(){return{type:`end`}}function Ce(e){return{type:`other`,description:e}}function we(t){var n=ve[t],r;if(n)return n;for(r=t-1;!ve[r];)r--;for(n=ve[r],n={line:n.line,column:n.column};r<t;)e.charCodeAt(r)===10?(n.line++,n.column=1):n.column++,r++;return ve[t]=n,n}function Te(e,t){var n=we(e),r=we(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function R(e){P<F||(P>F&&(F=P,ye=[]),ye.push(e))}function Ee(e,t,n){return new r(r.buildMessage(e,t),e,t,n)}function De(){for(var e=P,t=[],r=B(),i,a;r!==n;)t.push(r),r=B();if(t!==n){if(r=Oe(),r===n&&(r=null),r!==n){for(i=[],a=B();a!==n;)i.push(a),a=B();i===n?(P=e,e=n):(t=o(r),e=t)}else P=e,e=n}else P=e,e=n;return e}function Oe(){var e=P,t=z(),r,i;if(t!==n){for(r=[],i=Re();i!==n;)r.push(i),i=Re();r===n?(P=e,e=n):(i=Oe(),i===n?(P=e,e=n):(t=s(t,i),e=t))}else P=e,e=n;return e===n&&(e=z()),e}function z(){var e=ke();return e===n&&(e=Ae(),e===n&&(e=je(),e===n&&(e=Me(),e===n&&(e=Ne(),e===n&&(e=Pe()))))),e}function ke(){var t=P,r,i,a,o,s,h,g,_,v,y,b,x,S,C,w,T,E;if(e.substr(P,6)===c?(r=c,P+=6):(r=n,I===0&&R(l)),r!==n){for(i=[],a=B();a!==n;)i.push(a),a=B();if(i!==n){if(e.charCodeAt(P)===40?(a=u,P++):(a=n,I===0&&R(d)),a!==n){for(o=[],s=B();s!==n;)o.push(s),s=B();if(o!==n){if(s=Fe(),s!==n){if(h=Re(),h!==n){if(g=Fe(),g!==n){if(_=Re(),_!==n){if(v=Fe(),v!==n){if(y=Re(),y!==n){if(b=Fe(),b!==n){if(x=Re(),x!==n){if(S=Fe(),S!==n){if(C=Re(),C!==n){if(w=Fe(),w!==n){for(T=[],E=B();E!==n;)T.push(E),E=B();T===n?(P=t,t=n):(e.charCodeAt(P)===41?(E=f,P++):(E=n,I===0&&R(p)),E===n?(P=t,t=n):(r=m(s,g,v,b,S,w),t=r))}else P=t,t=n}else P=t,t=n}else P=t,t=n}else P=t,t=n}else P=t,t=n}else P=t,t=n}else P=t,t=n}else P=t,t=n}else P=t,t=n}else P=t,t=n}else P=t,t=n}else P=t,t=n}else P=t,t=n}else P=t,t=n}else P=t,t=n;return t}function Ae(){var t=P,r,i,a,o,s,c,l,m;if(e.substr(P,9)===h?(r=h,P+=9):(r=n,I===0&&R(g)),r!==n){for(i=[],a=B();a!==n;)i.push(a),a=B();if(i!==n){if(e.charCodeAt(P)===40?(a=u,P++):(a=n,I===0&&R(d)),a!==n){for(o=[],s=B();s!==n;)o.push(s),s=B();if(o!==n){if(s=Fe(),s!==n){if(c=Ie(),c===n&&(c=null),c!==n){for(l=[],m=B();m!==n;)l.push(m),m=B();l===n?(P=t,t=n):(e.charCodeAt(P)===41?(m=f,P++):(m=n,I===0&&R(p)),m===n?(P=t,t=n):(r=_(s,c),t=r))}else P=t,t=n}else P=t,t=n}else P=t,t=n}else P=t,t=n}else P=t,t=n}else P=t,t=n;return t}function je(){var t=P,r,i,a,o,s,c,l,m;if(e.substr(P,5)===v?(r=v,P+=5):(r=n,I===0&&R(y)),r!==n){for(i=[],a=B();a!==n;)i.push(a),a=B();if(i!==n){if(e.charCodeAt(P)===40?(a=u,P++):(a=n,I===0&&R(d)),a!==n){for(o=[],s=B();s!==n;)o.push(s),s=B();if(o!==n){if(s=Fe(),s!==n){if(c=Ie(),c===n&&(c=null),c!==n){for(l=[],m=B();m!==n;)l.push(m),m=B();l===n?(P=t,t=n):(e.charCodeAt(P)===41?(m=f,P++):(m=n,I===0&&R(p)),m===n?(P=t,t=n):(r=b(s,c),t=r))}else P=t,t=n}else P=t,t=n}else P=t,t=n}else P=t,t=n}else P=t,t=n}else P=t,t=n;return t}function Me(){var t=P,r,i,a,o,s,c,l,m;if(e.substr(P,6)===x?(r=x,P+=6):(r=n,I===0&&R(S)),r!==n){for(i=[],a=B();a!==n;)i.push(a),a=B();if(i!==n){if(e.charCodeAt(P)===40?(a=u,P++):(a=n,I===0&&R(d)),a!==n){for(o=[],s=B();s!==n;)o.push(s),s=B();if(o!==n){if(s=Fe(),s!==n){if(c=Le(),c===n&&(c=null),c!==n){for(l=[],m=B();m!==n;)l.push(m),m=B();l===n?(P=t,t=n):(e.charCodeAt(P)===41?(m=f,P++):(m=n,I===0&&R(p)),m===n?(P=t,t=n):(r=C(s,c),t=r))}else P=t,t=n}else P=t,t=n}else P=t,t=n}else P=t,t=n}else P=t,t=n}else P=t,t=n;return t}function Ne(){var t=P,r,i,a,o,s,c,l;if(e.substr(P,5)===w?(r=w,P+=5):(r=n,I===0&&R(T)),r!==n){for(i=[],a=B();a!==n;)i.push(a),a=B();if(i!==n){if(e.charCodeAt(P)===40?(a=u,P++):(a=n,I===0&&R(d)),a!==n){for(o=[],s=B();s!==n;)o.push(s),s=B();if(o!==n){if(s=Fe(),s!==n){for(c=[],l=B();l!==n;)c.push(l),l=B();c===n?(P=t,t=n):(e.charCodeAt(P)===41?(l=f,P++):(l=n,I===0&&R(p)),l===n?(P=t,t=n):(r=E(s),t=r))}else P=t,t=n}else P=t,t=n}else P=t,t=n}else P=t,t=n}else P=t,t=n;return t}function Pe(){var t=P,r,i,a,o,s,c,l;if(e.substr(P,5)===D?(r=D,P+=5):(r=n,I===0&&R(O)),r!==n){for(i=[],a=B();a!==n;)i.push(a),a=B();if(i!==n){if(e.charCodeAt(P)===40?(a=u,P++):(a=n,I===0&&R(d)),a!==n){for(o=[],s=B();s!==n;)o.push(s),s=B();if(o!==n){if(s=Fe(),s!==n){for(c=[],l=B();l!==n;)c.push(l),l=B();c===n?(P=t,t=n):(e.charCodeAt(P)===41?(l=f,P++):(l=n,I===0&&R(p)),l===n?(P=t,t=n):(r=k(s),t=r))}else P=t,t=n}else P=t,t=n}else P=t,t=n}else P=t,t=n}else P=t,t=n;return t}function Fe(){var e=P,t=P,r=We(),i;return r===n&&(r=null),r===n?(P=t,t=n):(i=Ve(),i===n?(P=t,t=n):(r=[r,i],t=r)),t!==n&&(t=ee(t)),e=t,e===n&&(e=P,t=P,r=We(),r===n&&(r=null),r===n?(P=t,t=n):(i=Be(),i===n?(P=t,t=n):(r=[r,i],t=r)),t!==n&&(t=A(t)),e=t),e}function Ie(){var e=P,t=Re(),r;return t===n?(P=e,e=n):(r=Fe(),r===n?(P=e,e=n):(t=te(r),e=t)),e}function Le(){var e=P,t=Re(),r,i,a;return t===n?(P=e,e=n):(r=Fe(),r===n?(P=e,e=n):(i=Re(),i===n?(P=e,e=n):(a=Fe(),a===n?(P=e,e=n):(t=ne(r,a),e=t)))),e}function Re(){var e=P,t=[],r=B(),i,a;if(r!==n)for(;r!==n;)t.push(r),r=B();else t=n;if(t!==n){if(r=ze(),r===n&&(r=null),r!==n){for(i=[],a=B();a!==n;)i.push(a),a=B();i===n?(P=e,e=n):(t=[t,r,i],e=t)}else P=e,e=n}else P=e,e=n;if(e===n){if(e=P,t=ze(),t!==n){for(r=[],i=B();i!==n;)r.push(i),i=B();r===n?(P=e,e=n):(t=[t,r],e=t)}else P=e,e=n}return e}function ze(){var t;return e.charCodeAt(P)===44?(t=re,P++):(t=n,I===0&&R(ie)),t}function Be(){var e=P,t=Ge();return t!==n&&(t=j(t)),e=t,e}function Ve(){var e=P,t=P,r=He(),i;return r===n?(P=t,t=n):(i=Ue(),i===n&&(i=null),i===n?(P=t,t=n):(r=[r,i],t=r)),t!==n&&(t=M(t)),e=t,e===n&&(e=P,t=P,r=Ge(),r===n?(P=t,t=n):(i=Ue(),i===n?(P=t,t=n):(r=[r,i],t=r)),t!==n&&(t=ae(t)),e=t),e}function He(){var t,r,i,a;return I++,t=P,r=Ge(),r===n&&(r=null),r===n?(P=t,t=n):(e.charCodeAt(P)===46?(i=se,P++):(i=n,I===0&&R(N)),i===n?(P=t,t=n):(a=Ge(),a===n?(P=t,t=n):(r=ce(r,a),t=r))),t===n&&(t=P,r=Ge(),r===n?(P=t,t=n):(e.charCodeAt(P)===46?(i=se,P++):(i=n,I===0&&R(N)),i===n?(P=t,t=n):(r=ae(r),t=r))),I--,t===n&&(r=n,I===0&&R(oe)),t}function Ue(){var t=P,r=P,i,a,o;return le.test(e.charAt(P))?(i=e.charAt(P),P++):(i=n,I===0&&R(ue)),i===n?(P=r,r=n):(a=We(),a===n&&(a=null),a===n?(P=r,r=n):(o=Ge(),o===n?(P=r,r=n):(i=[i,a,o],r=i))),r!==n&&(r=de(r)),t=r,t}function We(){var t;return fe.test(e.charAt(P))?(t=e.charAt(P),P++):(t=n,I===0&&R(pe)),t}function Ge(){var e=[],t=Ke();if(t!==n)for(;t!==n;)e.push(t),t=Ke();else e=n;return e}function Ke(){var t;return me.test(e.charAt(P))?(t=e.charAt(P),P++):(t=n,I===0&&R(he)),t}function B(){var t;return ge.test(e.charAt(P))?(t=e.charAt(P),P++):(t=n,I===0&&R(_e)),t}var qe=Math.PI/180;function Je(e,t){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=t[0],l=t[1],u=t[2],d=t[3],f=t[4],p=t[5];return[n*c+r*d,n*l+r*f,n*u+r*p+i,a*c+o*d,a*l+o*f,a*u+o*p+s]}if(be=a(),be!==n&&P===e.length)return be;throw be!==n&&P<e.length&&R(Se()),Ee(ye,F<e.length?e.charAt(F):null,F<e.length?Te(F,F+1):Te(F,F))}t.exports={SyntaxError:r,parse:i}})),Sx=s(((e,t)=>{function n(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function r(e,t,n,i){var a=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(a,r.prototype),a.expected=t,a.found=n,a.location=i,a.name=`SyntaxError`,a}n(r,Error);function i(e,t,n){return n||=` `,e.length>t?e:(t-=e.length,n+=n.repeat(t),e+n.slice(0,t))}r.prototype.format=function(e){var t=`Error: `+this.message;if(this.location){for(var n=null,r=0;r<e.length;r++)if(e[r].source===this.location.source){n=e[r].text.split(/\r\n|\n|\r/g);break}var a=this.location.start,o=this.location.source&&typeof this.location.source.offset==`function`?this.location.source.offset(a):a,s=this.location.source+`:`+o.line+`:`+o.column;if(n){var c=this.location.end,l=i(``,o.line.toString().length,` `),u=n[a.line-1],d=(a.line===c.line?c.column:u.length+1)-a.column||1;t+=`
|
|
24
|
+
--> `+s+`
|
|
25
|
+
`+l+` |
|
|
26
|
+
`+o.line+` | `+u+`
|
|
27
|
+
`+l+` | `+i(``,a.column-1,` `)+i(``,d,`^`)}else t+=`
|
|
28
|
+
at `+s}return t},r.buildMessage=function(e,t){var n={literal:function(e){return`"`+i(e.text)+`"`},class:function(e){var t=e.parts.map(function(e){return Array.isArray(e)?a(e[0])+`-`+a(e[1]):a(e)});return`[`+(e.inverted?`^`:``)+t.join(``)+`]`},any:function(){return`any character`},end:function(){return`end of input`},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function a(e){return e.replace(/\\/g,`\\\\`).replace(/\]/g,`\\]`).replace(/\^/g,`\\^`).replace(/-/g,`\\-`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function o(e){return n[e.type](e)}function s(e){var t=e.map(o),n,r;if(t.sort(),t.length>0){for(n=1,r=1;n<t.length;n++)t[n-1]!==t[n]&&(t[r]=t[n],r++);t.length=r}switch(t.length){case 1:return t[0];case 2:return t[0]+` or `+t[1];default:return t.slice(0,-1).join(`, `)+`, or `+t[t.length-1]}}function c(e){return e?`"`+i(e)+`"`:`end of input`}return`Expected `+s(e)+` but `+c(t)+` found.`};function a(e,t){t=t===void 0?{}:t;var n={},i=t.grammarSource,a={start:Ae},o=Ae,s=`matrix(`,c=`)`,l=`translate(`,u=`scale(`,d=`rotate(`,f=`skewX(`,p=`skewY(`,m=`.`,h=`e`,g=/^[ \t\n\r,]/,_=/^[ \t\n\r]/,v=/^[+\-]/,y=/^[0-9]/,b=Ee(`transform functions`),x=Ee(`transformFunctions`),S=Ee(`transform function`),C=Ee(`matrix`),w=we(`matrix(`,!1),T=we(`)`,!1),E=Ee(`translate`),D=we(`translate(`,!1),O=Ee(`scale`),k=we(`scale(`,!1),ee=Ee(`rotate`),A=we(`rotate(`,!1),te=Ee(`x, y`),ne=Ee(`skewX`),re=we(`skewX(`,!1),ie=Ee(`skewY`),j=we(`skewY(`,!1),M=Ee(`space or comma`),ae=Te([` `,` `,`
|
|
29
|
+
`,`\r`,`,`],!1,!1),oe=Ee(`whitespace`),se=Te([` `,` `,`
|
|
30
|
+
`,`\r`],!1,!1),N=Te([`+`,`-`],!1,!1),ce=Te([[`0`,`9`]],!1,!1),le=we(`.`,!1),ue=we(`e`,!1),de=function(e,t){let n=Array.isArray(e)?e:[e];return t.forEach(e=>{Array.isArray(e[1])?n.push(...e[1]):n.push(e[1])}),n},fe=function(e,t,n,r,i,a,o,s,c){return{matrix:[e,t,n,r,i,a,o,s,c]}},pe=function(e,t){return t==null?{translate:e}:{translate:[e,t]}},me=function(e,t){return t==null?{scale:e}:[{scaleX:e},{scaleY:t}]},he=function(e,t){return t===null?[{rotate:`${e}deg`}]:{rotate:`${e}deg`}},ge=function(e,t){return[e,t]},_e=function(e){return[{skewX:`${e}deg`}]},P=function(e){return[{skewY:`${e}deg`}]},ve=function(){return parseFloat(Ce())},F=t.peg$currPos|0,ye=F,I=[{line:1,column:1}],be=F,xe=t.peg$maxFailExpected||[],L=t.peg$silentFails|0,Se;if(t.startRule){if(!(t.startRule in a))throw Error(`Can't start parsing from rule "`+t.startRule+`".`);o=a[t.startRule]}function Ce(){return e.substring(ye,F)}function we(e,t){return{type:`literal`,text:e,ignoreCase:t}}function Te(e,t,n){return{type:`class`,parts:e,inverted:t,ignoreCase:n}}function R(){return{type:`end`}}function Ee(e){return{type:`other`,description:e}}function De(t){var n=I[t],r;if(n)return n;if(t>=I.length)r=I.length-1;else for(r=t;!I[--r];);for(n=I[r],n={line:n.line,column:n.column};r<t;)e.charCodeAt(r)===10?(n.line++,n.column=1):n.column++,r++;return I[t]=n,n}function Oe(e,t,n){var r=De(e),a=De(t),o={source:i,start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:a.line,column:a.column}};return n&&i&&typeof i.offset==`function`&&(o.start=i.offset(o.start),o.end=i.offset(o.end)),o}function z(e){F<be||(F>be&&(be=F,xe=[]),xe.push(e))}function ke(e,t,n){return new r(r.buildMessage(e,t),e,t,n)}function Ae(){var e;return L++,e=je(),L--,e===n&&L===0&&z(b),e}function je(){var e,t,r,i,a,o;if(L++,e=F,t=Me(),t!==n){for(r=[],i=F,a=Ve(),o=Me(),o===n?(F=i,i=n):(a=[a,o],i=a);i!==n;)r.push(i),i=F,a=Ve(),o=Me(),o===n?(F=i,i=n):(a=[a,o],i=a);ye=e,e=de(t,r)}else F=e,e=n;return L--,e===n&&(t=n,L===0&&z(x)),e}function Me(){var e;return L++,e=Ne(),e===n&&(e=Pe(),e===n&&(e=Fe(),e===n&&(e=Ie(),e===n&&(e=Re(),e===n&&(e=ze()))))),L--,e===n&&L===0&&z(S),e}function Ne(){var t,r,i,a,o,l,u,d,f,p,m,h;return L++,t=F,Ve(),e.substr(F,7)===s?(r=s,F+=7):(r=n,L===0&&z(w)),r===n?(F=t,t=n):(Ve(),i=He(),i===n?(F=t,t=n):(Be(),a=He(),a===n?(F=t,t=n):(Be(),o=He(),o===n?(F=t,t=n):(Be(),l=He(),l===n?(F=t,t=n):(Be(),u=He(),u===n?(F=t,t=n):(Be(),d=He(),d===n?(F=t,t=n):(Be(),f=He(),f===n?(F=t,t=n):(Be(),p=He(),p===n?(F=t,t=n):(Be(),m=He(),m===n?(F=t,t=n):(Ve(),e.charCodeAt(F)===41?(h=c,F++):(h=n,L===0&&z(T)),h===n?(F=t,t=n):(Ve(),ye=t,t=fe(i,a,o,l,u,d,f,p,m)))))))))))),L--,t===n&&L===0&&z(C),t}function Pe(){var t,r,i,a,o;return L++,t=F,Ve(),e.substr(F,10)===l?(r=l,F+=10):(r=n,L===0&&z(D)),r===n?(F=t,t=n):(Ve(),i=He(),i===n?(F=t,t=n):(Be(),a=He(),a===n&&(a=null),Ve(),e.charCodeAt(F)===41?(o=c,F++):(o=n,L===0&&z(T)),o===n?(F=t,t=n):(Ve(),ye=t,t=pe(i,a)))),L--,t===n&&L===0&&z(E),t}function Fe(){var t,r,i,a,o;return L++,t=F,Ve(),e.substr(F,6)===u?(r=u,F+=6):(r=n,L===0&&z(k)),r===n?(F=t,t=n):(Ve(),i=He(),i===n?(F=t,t=n):(Be(),a=He(),a===n&&(a=null),Ve(),e.charCodeAt(F)===41?(o=c,F++):(o=n,L===0&&z(T)),o===n?(F=t,t=n):(Ve(),ye=t,t=me(i,a)))),L--,t===n&&L===0&&z(O),t}function Ie(){var t,r,i,a,o;return L++,t=F,Ve(),e.substr(F,7)===d?(r=d,F+=7):(r=n,L===0&&z(A)),r===n?(F=t,t=n):(Ve(),i=He(),i===n?(F=t,t=n):(a=Le(),a===n&&(a=null),Ve(),e.charCodeAt(F)===41?(o=c,F++):(o=n,L===0&&z(T)),o===n?(F=t,t=n):(Ve(),ye=t,t=he(i,a)))),L--,t===n&&L===0&&z(ee),t}function Le(){var e,t,r;return L++,e=F,Be(),t=He(),t===n?(F=e,e=n):(Be(),r=He(),r===n?(F=e,e=n):(ye=e,e=ge(t,r))),L--,e===n&&L===0&&z(te),e}function Re(){var t,r,i,a;return L++,t=F,Ve(),e.substr(F,6)===f?(r=f,F+=6):(r=n,L===0&&z(re)),r===n?(F=t,t=n):(Ve(),i=He(),i===n?(F=t,t=n):(Ve(),e.charCodeAt(F)===41?(a=c,F++):(a=n,L===0&&z(T)),a===n?(F=t,t=n):(Ve(),ye=t,t=_e(i)))),L--,t===n&&L===0&&z(ne),t}function ze(){var t,r,i,a;return L++,t=F,Ve(),e.substr(F,6)===p?(r=p,F+=6):(r=n,L===0&&z(j)),r===n?(F=t,t=n):(Ve(),i=He(),i===n?(F=t,t=n):(Ve(),e.charCodeAt(F)===41?(a=c,F++):(a=n,L===0&&z(T)),a===n?(F=t,t=n):(Ve(),ye=t,t=P(i)))),L--,t===n&&L===0&&z(ie),t}function Be(){var t,r;for(L++,t=[],r=e.charAt(F),g.test(r)?F++:(r=n,L===0&&z(ae));r!==n;)t.push(r),r=e.charAt(F),g.test(r)?F++:(r=n,L===0&&z(ae));return L--,r=n,L===0&&z(M),t}function Ve(){var t,r;for(L++,t=[],r=e.charAt(F),_.test(r)?F++:(r=n,L===0&&z(se));r!==n;)t.push(r),r=e.charAt(F),_.test(r)?F++:(r=n,L===0&&z(se));return L--,r=n,L===0&&z(oe),t}function He(){var t=F,r=e.charAt(F),i,a,o,s,c,l;for(v.test(r)?F++:(r=n,L===0&&z(N)),r===n&&(r=null),i=F,a=[],o=e.charAt(F),y.test(o)?F++:(o=n,L===0&&z(ce));o!==n;)a.push(o),o=e.charAt(F),y.test(o)?F++:(o=n,L===0&&z(ce));if(e.charCodeAt(F)===46?(o=m,F++):(o=n,L===0&&z(le)),o!==n){if(s=[],c=e.charAt(F),y.test(c)?F++:(c=n,L===0&&z(ce)),c!==n)for(;c!==n;)s.push(c),c=e.charAt(F),y.test(c)?F++:(c=n,L===0&&z(ce));else s=n;s===n?(F=i,i=n):(a=[a,o,s],i=a)}else F=i,i=n;if(i===n){if(i=[],a=e.charAt(F),y.test(a)?F++:(a=n,L===0&&z(ce)),a!==n)for(;a!==n;)i.push(a),a=e.charAt(F),y.test(a)?F++:(a=n,L===0&&z(ce));else i=n}if(i!==n){if(a=F,e.charCodeAt(F)===101?(o=h,F++):(o=n,L===0&&z(ue)),o!==n){if(s=e.charAt(F),v.test(s)?F++:(s=n,L===0&&z(N)),s===n&&(s=null),c=[],l=e.charAt(F),y.test(l)?F++:(l=n,L===0&&z(ce)),l!==n)for(;l!==n;)c.push(l),l=e.charAt(F),y.test(l)?F++:(l=n,L===0&&z(ce));else c=n;c===n?(F=a,a=n):(o=[o,s,c],a=o)}else F=a,a=n;a===n&&(a=null),ye=t,t=ve()}else F=t,t=n;return t}if(Se=o(),t.peg$library)return{peg$result:Se,peg$currPos:F,peg$FAILED:n,peg$maxFailExpected:xe,peg$maxFailPos:be};if(Se!==n&&F===e.length)return Se;throw Se!==n&&F<e.length&&z(R()),ke(xe,be<e.length?e.charAt(be):null,be<e.length?Oe(be,be+1):Oe(be,be))}t.exports={StartRules:[`start`],SyntaxError:r,parse:a}}));xx(),Sx();var Cx=e=>{if(e.endsWith(`rad`))return 180/Math.PI*parseFloat(e);if(e.endsWith(`deg`))return parseFloat(e)};function wx(e){return e?e.map(e=>{let[t,n]=Object.entries(e)[0];switch(t){case`translateX`:return`translate(${n}, 0)`;case`translateY`:return`translate(0, ${n})`;case`rotate`:return`rotate(${Cx(n)})`;case`scale`:return`scale(${n})`;case`scaleX`:return`scale(${n}, 1)`;case`scaleY`:return`scale(1, ${n})`;case`skewX`:return`skewX(${Cx(n)})`;case`skewY`:return`skewY(${Cx(n)})`;case`matrix`:return`matrix(${n.join(`, `)})`;default:return``}}).join(` `):``}function Tx(e,t){let n=[];if(t&&n.push(...Ex(t)),Array.isArray(e)){if(typeof e[0]==`number`)n.push(`matrix(${e.join(` `)})`);else{let t=wx(e).split(` `);n.push(...t)}}else typeof e==`string`&&n.push(e);return n.length?n.join(` `):void 0}function Ex(e){let t=[];return e.translate!=null&&t.push(`translate(${e.translate})`),(e.translateX!=null||e.translateY!=null)&&t.push(`translate(${e.translateX||0}, ${e.translateY||0})`),e.scale!=null&&t.push(`scale(${e.scale})`),(e.scaleX!=null||e.scaleY!=null)&&t.push(`scale(${e.scaleX||1}, ${e.scaleY||1})`),e.rotation!=null&&t.push(`rotate(${e.rotation})`),e.skewX!=null&&t.push(`skewX(${e.skewX})`),e.skewY!=null&&t.push(`skewY(${e.skewY})`),t}function Dx(e,t){return e?yl?[e,t]:e[Symbol.iterator]?Object.assign({},...e,t):Object.assign({},e,t):t}var Ox=s(((e,t)=>{var n=[];function r(e){return n.push(e)}function i(e){return n[e-1]}t.exports={registerAsset:r,getAssetByID:i}}))(),kx=/^(data:image\/svg\+xml;utf8,)(.*)/;function Ax(e){let t={};if(typeof e==`number`){let n=(0,Ox.getAssetByID)(e);if(n==null)throw Error(`Image: asset with ID "${e}" could not be found. Please check the image source or packager.`);if(t={width:n.width,height:n.height,scale:n.scales[0]},n.scales.length>1){let e=Um.get();t.scale=n.scales.reduce((t,n)=>Math.abs(n-e)<Math.abs(t-e)?n:t)}let r=t.scale===1?``:`@${t.scale}x`;t.uri=n?`${n.httpServerLocation}/${n.name}${r}.${n.type}`:``}else typeof e==`string`?t.uri=e:e&&!Array.isArray(e)&&typeof e.uri==`string`&&(t.uri=e.uri);if(t.uri){var n;let e=(n=t)==null||(n=n.uri)==null?void 0:n.match(kx);if(e){let[,n,r]=e;return t.uri=`${n}${encodeURIComponent(r)}`,t}}return t}var jx=(e,t=e.props)=>{let{transform:n,origin:r,originX:i,originY:a,fontFamily:o,fontSize:s,fontWeight:c,fontStyle:l,style:u,forwardedRef:d,gradientTransform:f,patternTransform:p,onPress:m,...h}=t,g={...bx(t)?{onStartShouldSetResponder:e.touchableHandleStartShouldSetResponder,onResponderTerminationRequest:e.touchableHandleResponderTerminationRequest,onResponderGrant:e.touchableHandleResponderGrant,onResponderMove:e.touchableHandleResponderMove,onResponderRelease:e.touchableHandleResponderRelease,onResponderTerminate:e.touchableHandleResponderTerminate}:null,...h};r==null?(i!=null||a!=null)&&(g[`transform-origin`]=`${i||0} ${a||0}`):g[`transform-origin`]=r.toString().replace(`,`,` `);let _=Tx(n,t);_&&(g.transform=_);let v=Tx(f);v&&(g.gradientTransform=v);let y=Tx(p);y&&(g.patternTransform=y),g.ref=t=>{e.elementRef.current=t,typeof d==`function`?d(t):d&&(d.current=t)};let b={};return o!=null&&(b.fontFamily=o),s!=null&&(b.fontSize=s),c!=null&&(b.fontWeight=c),l!=null&&(b.fontStyle=l),g.style=Dx(u,b),m!==null&&(g.onClick=t.onPress),t.href!==null&&t.href!==void 0&&(g.href=Ax(t.href)?.uri),g};function Mx(e){return`rgba(${e>>16&255},${e>>8&255},${e&255},${((e>>24&255)/255).toFixed(2)})`}var Nx={top:20,left:20,right:20,bottom:30},{Mixin:Px}=Vv,{touchableHandleStartShouldSetResponder:Fx,touchableHandleResponderTerminationRequest:Ix,touchableHandleResponderGrant:Lx,touchableHandleResponderMove:Rx,touchableHandleResponderRelease:zx,touchableHandleResponderTerminate:Bx,touchableGetInitialState:Vx}=Px,Hx={...Px,touchableHandleStartShouldSetResponder(e){let{onStartShouldSetResponder:t}=this.props;return t?t(e):Fx.call(this,e)},touchableHandleResponderTerminationRequest(e){let{onResponderTerminationRequest:t}=this.props;return t?t(e):Ix.call(this,e)},touchableHandleResponderGrant(e){let{onResponderGrant:t}=this.props;return t?t(e):Lx.call(this,e)},touchableHandleResponderMove(e){let{onResponderMove:t}=this.props;return t?t(e):Rx.call(this,e)},touchableHandleResponderRelease(e){let{onResponderRelease:t}=this.props;return t?t(e):zx.call(this,e)},touchableHandleResponderTerminate(e){let{onResponderTerminate:t}=this.props;return t?t(e):Bx.call(this,e)},touchableHandlePress(e){let{onPress:t}=this.props;t&&t(e)},touchableHandleActivePressIn(e){let{onPressIn:t}=this.props;t&&t(e)},touchableHandleActivePressOut(e){let{onPressOut:t}=this.props;t&&t(e)},touchableHandleLongPress(e){let{onLongPress:t}=this.props;t&&t(e)},touchableGetPressRectOffset(){let{pressRetentionOffset:e}=this.props;return e||Nx},touchableGetHitSlop(){let{hitSlop:e}=this.props;return e},touchableGetHighlightDelayMS(){let{delayPressIn:e}=this.props;return e||0},touchableGetLongPressDelayMS(){let{delayLongPress:e}=this.props;return e===0?0:e||500},touchableGetPressOutDelayMS(){let{delayPressOut:e}=this.props;return e||0}},Ux=Object.keys(Hx),Wx=Ux.map(e=>Hx[e]),Gx=Ux.length,Kx=e=>{for(let t=0;t<Gx;t++){let n=Ux[t],r=Wx[t];e[n]=typeof r==`function`?r.bind(e):r}e.state=Vx()},qx=class extends b.Component{prepareProps(e){return e}elementRef=b.createRef();lastMergedProps={};setNativeProps(e){let t=Object.assign({},this.props,this.lastMergedProps,e.style);this.lastMergedProps=t;let n=jx(this,this.prepareProps(t)),r=this.elementRef.current;if(r)for(let e of Object.keys(n)){let t=n[e];switch(e){case`ref`:case`children`:break;case`style`:for(let e of[].concat(n.style??[]))Object.assign(r.style,e);break;case`fill`:if(t&&typeof t==`object`){let e=t;r.setAttribute(`fill`,Mx(e.payload))}break;case`stroke`:if(t&&typeof t==`object`){let e=t;r.setAttribute(`stroke`,Mx(e.payload))}break;default:r.setAttribute(yx(e),t)}}}constructor(e){super(e),bx(e)&&Kx(this),this._remeasureMetricsOnActivation=gx.bind(this)}render(){if(!this.tag)throw Error("When extending `WebShape` you need to overwrite either `tag` or `render`!");return this.lastMergedProps={},Rl(this.tag,jx(this,this.prepareProps(this.props)))}},Jx=class extends qx{tag=`path`},Yx=class extends qx{tag=`svg`;toDataURL(e,t={}){let n=this.elementRef.current;if(n===null)return;let r=mx(n),i=Number(t.width)||r.width,a=Number(t.height)||r.height,o=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);o.setAttribute(`viewBox`,`0 0 ${r.width} ${r.height}`),o.setAttribute(`width`,String(i)),o.setAttribute(`height`,String(a)),o.appendChild(n.cloneNode(!0));let s=new window.Image;s.onload=()=>{let t=document.createElement(`canvas`);t.width=i,t.height=a,t.getContext(`2d`)?.drawImage(s,0,0),e(t.toDataURL().replace(`data:image/png;base64,`,``))},s.src=`data:image/svg+xml;utf8,${_x(new window.XMLSerializer().serializeToString(o))}`}};console.error.bind(console);var Xx=tx(e=>(0,O.jsx)(Yx,{width:24,height:24,viewBox:`0 0 24 24`,...e,children:(0,O.jsx)(Jx,{d:`M20 4H4c-1.103 0-2 .897-2 2v12c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V6c0-1.103-.897-2-2-2zm0 2v.511l-8 6.223-8-6.222V6h16zM4 18V9.044l7.386 5.745a.994.994 0 0 0 1.228 0L20 9.044 20.002 18H4z`})})),Zx=tx(e=>(0,O.jsx)(Yx,{width:24,height:24,viewBox:`0 0 24 24`,...e,children:(0,O.jsx)(Jx,{d:`M17.5 4C15.57 4 14 5.57 14 7.5c0 1.554 1.025 2.859 2.43 3.315-.146.932-.547 1.7-1.23 2.323-1.946 1.773-5.527 1.935-7.2 1.907V8.837c1.44-.434 2.5-1.757 2.5-3.337C10.5 3.57 8.93 2 7 2S3.5 3.57 3.5 5.5c0 1.58 1.06 2.903 2.5 3.337v6.326c-1.44.434-2.5 1.757-2.5 3.337C3.5 20.43 5.07 22 7 22s3.5-1.57 3.5-3.5c0-.551-.14-1.065-.367-1.529 2.06-.186 4.657-.757 6.409-2.35 1.097-.997 1.731-2.264 1.904-3.768C19.915 10.438 21 9.1 21 7.5 21 5.57 19.43 4 17.5 4zm-12 1.5C5.5 4.673 6.173 4 7 4s1.5.673 1.5 1.5S7.827 7 7 7s-1.5-.673-1.5-1.5zM7 20c-.827 0-1.5-.673-1.5-1.5a1.5 1.5 0 0 1 1.482-1.498l.13.01A1.495 1.495 0 0 1 7 20zM17.5 9c-.827 0-1.5-.673-1.5-1.5S16.673 6 17.5 6s1.5.673 1.5 1.5S18.327 9 17.5 9z`})})),Qx=tx(e=>(0,O.jsx)(Yx,{width:24,height:24,viewBox:`0 0 24 24`,...e,children:(0,O.jsx)(Jx,{d:`M10 3H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zM9 9H5V5h4v4zm5 2h6a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1h-6a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1zm1-6h4v4h-4V5zM3 20a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v6zm2-5h4v4H5v-4zm8 5a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1h-6a1 1 0 0 0-1 1v6zm2-5h4v4h-4v-4z`})})),$x=tx(e=>(0,O.jsx)(Yx,{width:24,height:24,viewBox:`0 0 24 24`,...e,children:(0,O.jsx)(Jx,{d:`M7 6v12l10-6z`})})),eS={title:`Framework Panel`,basePath:``,apiUrl:`/_dev`,metadata:{},fields:{},api:{manifest:`/manifest`,state:`/state`,runs:`/runs`,run:`/runs/:run`,runActivities:`/runs/:run/activities`,runActivity:`/runs/:run/activities/:activity`,runActivityPendings:`/runs/:run/activities/:activity/pendings`,runLogs:`/runs/:run/logs`,waitingActivities:`/activities/waiting`,runWorkflow:`/workflows/:workflow/runs`,advanceActivity:`/activities/:activity/advance`,events:`/events`},capabilities:{trigger:!0,advance:!0,events:!0,rebuild:!0},routes:{runs:{method:`POST`,path:`/projects/:project/workflows/:workflow/runs`},advance:{method:`PATCH`,path:`/projects/:project/workflows/:workflow/runs/:run/activities/:activity`}}};function tS(e,t){return e.replace(/:(\w+)/g,(e,n)=>{let r=t[n];return r===void 0?e:encodeURIComponent(r)})}function nS(e=``){let t=e.trim().replace(/\/+$/,``);return t===``||t===`/`?``:t.startsWith(`/`)?t:`/${t}`}function rS(e={}){return{title:e.title?.trim()||eS.title,basePath:nS(e.basePath),apiUrl:(e.apiUrl??eS.apiUrl).replace(/\/+$/,``),project:e.project,metadata:{...e.metadata},fields:{...e.fields},api:{...eS.api,...e.api},capabilities:{...eS.capabilities,...e.capabilities},routes:{...eS.routes,...e.routes}}}var iS=rS(window.__T4H_PANEL__),aS=iS.capabilities.events;function oS(e,t={}){return`${iS.apiUrl}${tS(iS.api[e],t)}`}function sS(e,t){return tS(iS.routes[e].path,{project:iS.project,...iS.metadata,...t})}function cS(e){return iS.routes[e].method}function lS(e,t,n){let{method:r,headers:i={}}=iS.routes[e];return uS(r,t,n,i)}function uS(e,t,n,r={}){let i=[`curl -X ${e} '${window.location.origin}${t}'`];for(let[e,t]of Object.entries(r))i.push(` -H '${e}: ${t}'`);return n!==void 0&&(i.push(` -H 'content-type: application/json'`),i.push(` -d '${JSON.stringify(n).replaceAll(`'`,`'\\''`)}'`)),i.join(` \\
|
|
31
|
+
`)}var dS=[{to:`/`,label:`Dashboard`,icon:Qx},{to:`/workflows`,label:`Workflows`,icon:Zx},{to:`/runs`,label:`Runs`,icon:$x},{to:`/inbox`,label:`Inbox`,icon:Xx}];function fS(){let{pathname:e}=Gr();return(0,O.jsxs)(q,{position:`absolute`,left:0,top:0,bottom:0,w:240,bg:`#131b2e`,borderRightWidth:1,borderColor:`#2d3449`,pv:12,style:{zIndex:40},children:[(0,O.jsxs)(q,{ph:16,pb:20,mb:8,borderBottomWidth:1,borderColor:`#2d344950`,row:!0,align:`center`,gap:10,children:[(0,O.jsx)(q,{w:32,h:32,rounded:4,bg:`#1a3328`,borderWidth:1,borderColor:`#48BA8040`,center:!0,flexShrink:0,children:(0,O.jsx)(fx,{fontSize:16,color:`#48BA80`,fontFamily:`monospace`,children:`$_`})}),(0,O.jsxs)(q,{overflow:`hidden`,children:[(0,O.jsx)(fx,{fontSize:16,fontWeight:`700`,color:`#48BA80`,fontFamily:`Sora, Inter, sans-serif`,children:iS.title}),iS.project&&(0,O.jsx)(fx,{fontSize:11,color:`#8896b3`,fontFamily:`Inter, sans-serif`,style:{letterSpacing:.5,textTransform:`uppercase`},children:iS.project})]})]}),(0,O.jsx)(q,{gap:2,ph:8,flex:1,overflow:`auto`,children:dS.map(t=>{let n=t.to===`/`?e===`/`:e.startsWith(t.to);return(0,O.jsx)(sa,{to:t.to,style:{textDecoration:`none`},children:(0,O.jsxs)(q,{row:!0,align:`center`,gap:10,ph:12,pv:8,rounded:2,borderLeftWidth:2,borderColor:n?`#48BA80`:`transparent`,bg:n?`#1a3328`:`transparent`,style:{cursor:`pointer`},children:[(0,O.jsx)(t.icon,{size:16,fill:n?`#48BA80`:`#8896b3`}),(0,O.jsx)(fx,{fontSize:13,color:n?`#48BA80`:`#8896b3`,fontWeight:n?`500`:`400`,fontFamily:`Inter, sans-serif`,children:t.label})]})},t.to)})}),(0,O.jsxs)(q,{ph:16,pt:12,borderTopWidth:1,borderColor:`#2d344950`,row:!0,align:`center`,gap:8,children:[(0,O.jsx)(q,{w:8,h:8,rounded:4,bg:`#4ade80`,shadow:`0 0 8px rgba(74, 222, 128, 0.5)`}),(0,O.jsx)(fx,{fontSize:12,color:`#8896b3`,fontFamily:`JetBrains Mono, monospace`,children:`Server Running`})]})]})}var J={background:`#0b1326`,panel:`#131b2e`,raised:`#222a3d`,border:`#2d3449`,text:`#dae2fd`,muted:`#8896b3`,dim:`#525f7a`,brand:`#48BA80`,brandSubtle:`#1a3328`,info:`#7bd0ff`,error:`#ffb4ab`,warn:`#ffd28a`},pS={running:J.info,fulfilled:J.brand,rejected:J.error},mS={running:`Running`,fulfilled:`Success`,rejected:`Failed`},hS={error:J.error,warn:J.warn};function gS({children:e}){return(0,O.jsx)(q,{bg:J.panel,ph:10,pv:4,rounded:2,borderWidth:1,borderColor:J.border,children:(0,O.jsx)(fx,{fontSize:12,color:J.muted,fontFamily:`JetBrains Mono, monospace`,children:e})})}var _S=class extends Error{status;details;constructor(e,t,n=void 0){super(e),this.status=t,this.details=n}},vS=[`manifest`,`build:status`,`build:fail`,`app:exit`,`run:created`,`run:updated`];async function yS(e,t){let n=await fetch(e,t);if(!n.ok){let r=await n.json().catch(()=>null);throw new _S(typeof r?.message==`string`?r.message:`${t?.method??`GET`} ${e} failed with ${n.status}`,n.status,r?.details)}if(n.status!==204)return await n.json()}function bS(e){return String(new URLSearchParams(Object.entries(e).filter(([,e])=>e!==void 0&&e!==``).map(([e,t])=>[e,String(t)])))}function xS(e,t){return{method:e,headers:{"content-type":`application/json`},body:JSON.stringify(t)}}var SS={manifest:()=>yS(oS(`manifest`)),state:()=>yS(oS(`state`)),waitingActivities:(e={})=>yS(`${oS(`waitingActivities`)}?${bS(e)}`),runs:(e={})=>yS(`${oS(`runs`)}?${bS({...e,q:iS.fields.runs})}`),run:e=>yS(`${oS(`run`,{run:e})}?${bS({q:iS.fields.run})}`),runActivities:(e,t={})=>yS(`${oS(`runActivities`,{run:e})}?${bS({...t,q:iS.fields.runActivities})}`),runActivityPendings:(e,t,n={})=>yS(`${oS(`runActivityPendings`,{run:e,activity:t})}?${bS({...n,q:iS.fields.runActivityPendings})}`),runActivity:(e,t)=>yS(`${oS(`runActivity`,{run:e,activity:t})}?${bS({q:iS.fields.runActivity})}`),runLogs:(e,t={})=>yS(`${oS(`runLogs`,{run:e})}?${bS(t)}`),runWorkflow:(e,t)=>yS(oS(`runWorkflow`,{workflow:e}),xS(`POST`,t)),advanceActivity:(e,t)=>yS(oS(`advanceActivity`,{activity:e}),xS(`POST`,{payload:t})),events:()=>new EventSource(oS(`events`))},CS=5e3;function wS({createdWithinInMs:e,...t}){return e===void 0?t:{...t,createdAfter:Date.now()-e}}var TS={manifest:()=>ht({queryKey:[`manifest`],queryFn:()=>SS.manifest()}),state:()=>ht({queryKey:[`state`],queryFn:()=>SS.state()}),waitingActivities:(e={})=>ht({queryKey:[`activities`,`waiting`,e],queryFn:()=>SS.waitingActivities(e),placeholderData:ye}),runs:(e={})=>ht({queryKey:[`runs`,`list`,e],queryFn:()=>SS.runs(wS(e)),placeholderData:ye}),childRuns:e=>gt({queryKey:[`runs`,`children`,e],queryFn:({pageParam:t})=>SS.runs({parentActivityId:e,limit:15,offset:t}),initialPageParam:0,getNextPageParam:(e,t)=>{let n=t.reduce((e,t)=>e+t.runs.length,0);return n<e.count?n:void 0}}),run:e=>ht({queryKey:[`runs`,`detail`,e],queryFn:()=>SS.run(e)}),runActivities:(e,t={})=>ht({queryKey:[`runs`,`detail`,e,`activities`,`list`,t],queryFn:()=>SS.runActivities(e,t),placeholderData:ye}),runActivity:(e,t)=>ht({queryKey:[`runs`,`detail`,e,`activities`,t],queryFn:()=>SS.runActivity(e,t)}),runActivityPendings:(e,t,n={})=>ht({queryKey:[`runs`,`detail`,e,`activities`,t,`pendings`,n],queryFn:()=>SS.runActivityPendings(e,t,n),placeholderData:ye}),runLogs:(e,t={})=>ht({queryKey:[`runs`,`detail`,e,`logs`,t],queryFn:()=>SS.runLogs(e,t),placeholderData:ye})};function ES(){return new nt({defaultOptions:{queries:{retry:!1,staleTime:CS}}})}function DS(e,t){e.setQueryData([`manifest`],t),OS(e,`ready`),e.invalidateQueries({queryKey:[`runs`]}),e.invalidateQueries({queryKey:[`activities`,`waiting`]})}function OS(e,t){e.setQueryData([`state`],{state:t})}function kS(e,t){e.invalidateQueries({queryKey:[`runs`,`list`]}),e.invalidateQueries({queryKey:[`runs`,`children`]}),e.invalidateQueries({queryKey:[`activities`,`waiting`]}),jS(e,t)}function AS(e,t){e.setQueriesData({queryKey:[`runs`,`list`]},e=>e?.runs.some(e=>e.id===t.id)?{...e,runs:e.runs.map(e=>e.id===t.id?t:e)}:void 0),e.invalidateQueries({queryKey:[`runs`,`detail`,t.id]}),e.invalidateQueries({queryKey:[`runs`,`children`]}),e.invalidateQueries({queryKey:[`activities`,`waiting`]}),jS(e,t)}function jS(e,t){t.parentWorkflowRunId&&e.invalidateQueries({queryKey:[`runs`,`detail`,t.parentWorkflowRunId]})}var Y=function(e){"worklet";let t=`[Reanimated]`,n=Error(e?`${t} ${e}`:t);return n.name=`ReanimatedError`,n};function MS(){"worklet";if(!_WORKLET)throw Error(`[Reanimated] registerReanimatedError() must be called on Worklet runtime`);globalThis.ReanimatedError=Y}var NS=new Map;function PS(e){let t=e.stack?.split(`
|
|
32
|
+
`)?.[0];if(t){let e=/@([^@]+):(\d+):(\d+)/.exec(t);if(e){let[,t,n,r]=e;return[t,Number(n),Number(r)]}}return[`unknown`,0,0]}function FS(e){let t=e.match(/worklet_(\d+):(\d+):(\d+)/g),n=e;return t?.forEach(e=>{let[,t,r,i]=e.split(/:|_/).map(Number),a=NS.get(t);if(!a)return;let[o,s,c]=a,[l,u,d]=PS(o),f=r+u+s,p=i+d+c;n=n.replace(e,`${l}:${f}:${p}`)}),n}function IS({message:e,stack:t}){let n=Error();n.message=e,n.stack=t?FS(t):void 0,n.name=`ReanimatedError`,n.jsEngine=`reanimated`,globalThis.ErrorUtils.reportFatalError(n)}function LS(){return!!{}.JEST_WORKER_ID}function RS(){return(!globalThis.nativeCallSyncHook||!!globalThis.__REMOTEDEV__)&&!globalThis.RN$Bridgeless}function zS(){return Yl.OS===`web`}function BS(){return Yl.OS===`android`}function VS(){return Yl.OS===`ios`}function HS(){return Yl.OS===`macos`}function US(){return Yl.OS===`windows`}function WS(){return LS()||RS()||zS()||US()}function GS(){return!!globalThis._IS_FABRIC}function KS(){return b.version.startsWith(`19.`)}function qS(){return typeof window<`u`}var JS=Hv,YS=JS?.addLog?.bind(JS)??(()=>{}),XS="If you don't want to see this message, you can disable the `strict` mode. Refer to:\nhttps://docs.swmansion.com/react-native-reanimated/docs/debugging/logger-configuration for more details.",ZS=(function(e){return e[e.warn=1]=`warn`,e[e.error=2]=`error`,e})({});function QS(e){"worklet";switch(e.level){case`warn`:console.warn(e.message.content);break;case`error`:case`fatal`:case`syntax`:console.error(e.message.content)}}var $S={logFunction:QS,level:ZS.warn,strict:!0};function eC(e){"worklet";return`[Reanimated] ${e}`}function tC(e,t){"worklet";let n=eC(t);return{level:e,message:{content:n,substitutions:[]},category:n,componentStack:[],componentStackType:null,stack:Error().stack}}function nC(e){YS(e),QS(e)}function rC(e){"worklet";globalThis.__reanimatedLoggerConfig=e}function iC(e){"worklet";rC({...globalThis.__reanimatedLoggerConfig,logFunction:e})}function aC(e,t,n){"worklet";let r=globalThis.__reanimatedLoggerConfig;n.strict&&!r.strict||ZS[e]<r.level||(n.strict&&(t+=`
|
|
33
|
+
|
|
34
|
+
${XS}`),r.logFunction(tC(e,t)))}var oC={warn(e,t={}){"worklet";aC(`warn`,e,t)},error(e,t={}){"worklet";aC(`error`,e,t)}},sC={UI_THREAD_PROPS_WHITELIST:{opacity:!0,transform:!0,backgroundColor:!0,borderRightColor:!0,borderBottomColor:!0,borderColor:!0,borderEndColor:!0,borderLeftColor:!0,borderStartColor:!0,borderTopColor:!0,shadowOpacity:!0,shadowRadius:!0,scaleX:!0,scaleY:!0,translateX:!0,translateY:!0},NATIVE_THREAD_PROPS_WHITELIST:{borderBottomWidth:!0,borderEndWidth:!0,borderLeftWidth:!0,borderRightWidth:!0,borderStartWidth:!0,borderTopWidth:!0,borderWidth:!0,bottom:!0,boxShadow:!0,flex:!0,flexGrow:!0,flexShrink:!0,height:!0,left:!0,margin:!0,marginBottom:!0,marginEnd:!0,marginHorizontal:!0,marginLeft:!0,marginRight:!0,marginStart:!0,marginTop:!0,marginVertical:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,padding:!0,paddingBottom:!0,paddingEnd:!0,paddingHorizontal:!0,paddingLeft:!0,paddingRight:!0,paddingStart:!0,paddingTop:!0,paddingVertical:!0,right:!0,start:!0,top:!0,width:!0,zIndex:!0,borderBottomEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderRadius:!0,borderTopEndRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,elevation:!0,fontSize:!0,lineHeight:!0,textShadowRadius:!0,textShadowOffset:!0,letterSpacing:!0,aspectRatio:!0,columnGap:!0,end:!0,flexBasis:!0,gap:!0,rowGap:!0,display:!0,backfaceVisibility:!0,overflow:!0,resizeMode:!0,fontStyle:!0,fontWeight:!0,textAlign:!0,textDecorationLine:!0,fontFamily:!0,textAlignVertical:!0,fontVariant:!0,textDecorationStyle:!0,textTransform:!0,writingDirection:!0,alignContent:!0,alignItems:!0,alignSelf:!0,direction:!0,flexDirection:!0,flexWrap:!0,justifyContent:!0,position:!0,color:!0,tintColor:!0,shadowColor:!0,placeholderTextColor:!0}},cC,lC,uC;try{cC=(ao(),d(Qa)).default}catch{}try{lC=(el(),d(Vc)).createTransformValue}catch{}try{uC=(el(),d(Vc)).createTextShadowValue}catch{}var dC=(function(e){return e[e.ENTERING=1]=`ENTERING`,e[e.EXITING=2]=`EXITING`,e[e.LAYOUT=3]=`LAYOUT`,e[e.SHARED_ELEMENT_TRANSITION=4]=`SHARED_ELEMENT_TRANSITION`,e[e.SHARED_ELEMENT_TRANSITION_PROGRESS=5]=`SHARED_ELEMENT_TRANSITION_PROGRESS`,e})({});function fC(e){"worklet";return typeof e==`function`&&!!e.__workletHash}var pC=(function(e){return e[e.ACCELEROMETER=1]=`ACCELEROMETER`,e[e.GYROSCOPE=2]=`GYROSCOPE`,e[e.GRAVITY=3]=`GRAVITY`,e[e.MAGNETIC_FIELD=4]=`MAGNETIC_FIELD`,e[e.ROTATION=5]=`ROTATION`,e})({}),mC=(function(e){return e.System=`system`,e.Always=`always`,e.Never=`never`,e})({});function hC(e){return setTimeout(()=>e(performance.now()),0)}function gC(){return new _C}var _C=class{makeShareableClone(){throw new Y(`makeShareableClone should never be called in JSWorklets.`)}},vC=gC();function yC(){return new xC}var bC=LS()||!globalThis.requestAnimationFrame?hC:globalThis.requestAnimationFrame,xC=class{nextSensorId=0;sensors=new Map;platform=void 0;scheduleOnUI(e){bC(e)}createWorkletRuntime(e,t){throw new Y(`createWorkletRuntime is not available in JSReanimated.`)}scheduleOnRuntime(){throw new Y(`scheduleOnRuntime is not available in JSReanimated.`)}registerEventHandler(e,t,n){throw new Y(`registerEventHandler is not available in JSReanimated.`)}unregisterEventHandler(e){throw new Y(`unregisterEventHandler is not available in JSReanimated.`)}enableLayoutAnimations(){zS()?oC.warn(`Layout Animations are not supported on web yet.`):LS()?oC.warn(`Layout Animations are no-ops when using Jest.`):RS()?oC.warn(`Layout Animations are no-ops when using Chrome Debugger.`):oC.warn(`Layout Animations are not supported on this configuration.`)}configureLayoutAnimationBatch(){}setShouldAnimateExitingForTag(){}registerSensor(e,t,n,r){if(!qS())return-1;if(this.platform===void 0&&this.detectPlatform(),!(this.getSensorName(e)in window))return oC.warn(`Sensor is not available.`+(zS()&&location.protocol!==`https:`?" Make sure you use secure origin with `npx expo start --web --https`.":``)+(this.platform===SC.WEB_IOS?` For iOS web, you will also have to also grant permission in the browser: https://dev.to/li/how-to-requestpermission-for-devicemotion-and-deviceorientation-events-in-ios-13-46g2.`:``)),-1;this.platform===void 0&&this.detectPlatform();let i=this.initializeSensor(e,t);return i.addEventListener(`reading`,this.getSensorCallback(i,e,r)),i.start(),this.sensors.set(this.nextSensorId,i),this.nextSensorId++}getSensorCallback=(e,t,n)=>{switch(t){case pC.ACCELEROMETER:case pC.GRAVITY:return()=>{let{x:t,y:r,z:i}=e;this.platform===SC.WEB_ANDROID&&([t,r,i]=[-t,-r,-i]),n({x:t,y:r,z:i,interfaceOrientation:0})};case pC.GYROSCOPE:case pC.MAGNETIC_FIELD:return()=>{let{x:t,y:r,z:i}=e;n({x:t,y:r,z:i,interfaceOrientation:0})};case pC.ROTATION:return()=>{let[t,r,i,a]=e.quaternion;this.platform===SC.WEB_ANDROID&&([i,a]=[a,-i]);let o=-Math.atan2(2*(i*a+t*r),t*t-r*r-i*i+a*a),s=Math.sin(-2*(r*a-t*i)),c=-Math.atan2(2*(r*i+t*a),t*t+r*r-i*i-a*a);n({qw:t,qx:r,qy:i,qz:a,yaw:o,pitch:s,roll:c,interfaceOrientation:0})}}};unregisterSensor(e){let t=this.sensors.get(e);t!==void 0&&(t.stop(),this.sensors.delete(e))}subscribeForKeyboardEvents(e){return zS()?oC.warn(`useAnimatedKeyboard is not available on web yet.`):LS()?oC.warn(`useAnimatedKeyboard is not available when using Jest.`):RS()?oC.warn(`useAnimatedKeyboard is not available when using Chrome Debugger.`):oC.warn(`useAnimatedKeyboard is not available on this configuration.`),-1}unsubscribeFromKeyboardEvents(e){}initializeSensor(e,t){let n=t<=0?{referenceFrame:`device`}:{frequency:1e3/t};switch(e){case pC.ACCELEROMETER:return new window.Accelerometer(n);case pC.GYROSCOPE:return new window.Gyroscope(n);case pC.GRAVITY:return new window.GravitySensor(n);case pC.MAGNETIC_FIELD:return new window.Magnetometer(n);case pC.ROTATION:return new window.AbsoluteOrientationSensor(n)}}getSensorName(e){switch(e){case pC.ACCELEROMETER:return`Accelerometer`;case pC.GRAVITY:return`GravitySensor`;case pC.GYROSCOPE:return`Gyroscope`;case pC.MAGNETIC_FIELD:return`Magnetometer`;case pC.ROTATION:return`AbsoluteOrientationSensor`}}detectPlatform(){let e=navigator.userAgent||navigator.vendor||window.opera;this.platform=e===void 0?SC.UNKNOWN:/iPad|iPhone|iPod/.test(e)?SC.WEB_IOS:/android/i.test(e)?SC.WEB_ANDROID:SC.WEB}getViewProp(e,t,n,r){throw new Y(`getViewProp is not available in JSReanimated.`)}configureProps(){throw new Y(`configureProps is not available in JSReanimated.`)}executeOnUIRuntimeSync(e){throw new Y("`executeOnUIRuntimeSync` is not available in JSReanimated.")}markNodeAsRemovable(e){throw new Y(`markNodeAsRemovable is not available in JSReanimated.`)}unmarkNodeAsRemovable(e){throw new Y(`unmarkNodeAsRemovable is not available in JSReanimated.`)}},SC=(function(e){return e.WEB_IOS=`web iOS`,e.WEB_ANDROID=`web Android`,e.WEB=`web`,e.UNKNOWN=`unknown`,e})({});globalThis._makeShareableClone=()=>{throw new Y("`_makeShareableClone` should never be called from React runtime.")},globalThis._scheduleHostFunctionOnJS=()=>{throw new Y("`_scheduleOnJS` should never be called from React runtime.")},globalThis._scheduleOnRuntime=()=>{throw new Y("`_scheduleOnRuntime` should never be called from React runtime.")};var CC=(e,t,n)=>{if(t){let r=t.getAnimatableRef?t.getAnimatableRef():t,[i]=Object.keys(e).reduce((t,n)=>{let r=e[n],i=+(typeof r==`function`);return t[i][n]=r,t},[{},{}]);if(typeof r.setNativeProps==`function`)wC(r,i,n);else if(cC!==void 0&&r.style!==void 0)TC(r,i,n);else if(Object.keys(r.props).length>0)Object.keys(r.props).forEach(e=>{if(!i[e])return;let t=e.replace(/[A-Z]/g,e=>`-`+e.toLowerCase());r._touchableNode.setAttribute(t,i[e])});else{let e=`className`in r?r?.className:``;oC.warn(`It's not possible to manipulate the component ${e}`)}}},wC=(e,t,n)=>{if(n){let n={};for(let e in t)EC(e)&&(n[e]=t[e]);e.setNativeProps?.(n)}let r={...e.previousStyle?e.previousStyle:{},...t};e.previousStyle=r,e.setNativeProps?.({style:r})},TC=(e,t,n)=>{let r={...e.previousStyle?e.previousStyle:{},...t};e.previousStyle=r;let i=cC(r);Array.isArray(i.transform)&&lC!==void 0&&(i.transform=lC(i.transform)),uC!==void 0&&(i.textShadowColor||i.textShadowRadius||i.textShadowOffset)&&(i.textShadow=uC({textShadowColor:i.textShadowColor,textShadowOffset:i.textShadowOffset,textShadowRadius:i.textShadowRadius}));for(let t in i)n?e.nodeName===`INPUT`&&t===`text`?e.value=i[t]:e.setAttribute(t,i[t]):e.style[t]=i[t]};function EC(e){return!!sC.NATIVE_THREAD_PROPS_WHITELIST[e]}var DC=yC(),OC=KS();function kC(e){return OC?({ref:t,...n})=>e(n,t):(0,b.forwardRef)(e)}var AC=WS(),jC=Symbol(`shareable flag`),MC=AC?null:new WeakMap,NC=AC?{set(){},get(){return null}}:{set(e,t){MC.set(e,t||jC)},get:MC.get.bind(MC)},PC=WS(),FC=`REANIMATED_MAGIC_KEY`;function IC(e){"worklet";return FC in e}function LC(e){return Object.getPrototypeOf(e)===Object.prototype}function RC(e){let t=NC.get(e);return t===jC?e:t}var zC={__init:()=>{"worklet";return new Proxy({},{get:(e,t)=>{if(t===`_isReanimatedSharedValue`||t===`__remoteFunction`)return!1;throw new Y(`Trying to access property \`${String(t)}\` of an object which cannot be sent to the UI runtime.`)},set:()=>{throw new Y(`Trying to write to an object which cannot be sent to the UI runtime.`)}})}},BC=[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`,`BigInt64Array`,`BigUint64Array`,`DataView`],VC=30,HC;function UC(e){return e}function WC(e,t=!1,n=0){KC(e,n);let r=typeof e==`object`,i=typeof e==`function`;if(!r&&!i||e===null)return qC(e,t);let a=RC(e);return a===void 0?Array.isArray(e)?JC(e,t,n):i&&!fC(e)?YC(e,t):IC(e)?XC(e,t):LC(e)&&e.__workletContextObjectFactory?QC(e):(LC(e)||i)&&fC(e)?ZC(e,t,n):LC(e)||i?$C(e,t,n):e instanceof RegExp?ew(e):e instanceof Error?tw(e):e instanceof ArrayBuffer?nw(e,t):ArrayBuffer.isView(e)?rw(e):iw(e):a}var GC=PC?UC:WC;function KC(e,t){if(t>=VC){if(t===VC)HC=e;else if(e===HC)throw new Y(`Trying to convert a cyclic object to a shareable. This is not supported.`)}else HC=void 0}function qC(e,t){return vC.makeShareableClone(e,t)}function JC(e,t,n){let r=e.map(e=>GC(e,t,n+1)),i=vC.makeShareableClone(r,t,e);return NC.set(e,i),NC.set(i),i}function YC(e,t){let n=vC.makeShareableClone(e,t,e);return NC.set(e,n),NC.set(n),n}function XC(e,t){let n=vC.makeShareableClone(e,t,e);return NC.set(e,n),NC.set(n),n}function ZC(e,t,n){e.__stackDetails&&delete e.__stackDetails;let r={};r.__initData=GC(e.__initData,!0,n+1);for(let[i,a]of Object.entries(e))(i!==`__initData`||r.__initData===void 0)&&(r[i]=GC(a,t,n+1));let i=vC.makeShareableClone(r,!0,e);return NC.set(e,i),NC.set(i),i}function QC(e){let t=e.__workletContextObjectFactory,n=GC({__init:()=>{"worklet";return t()}});return NC.set(e,n),n}function $C(e,t,n){let r={};for(let[i,a]of Object.entries(e))(i!==`__initData`||r.__initData===void 0)&&(r[i]=GC(a,t,n+1));let i=vC.makeShareableClone(r,t,e);return NC.set(e,i),NC.set(i),i}function ew(e){let t=e.source,n=e.flags,r=GC({__init:()=>{"worklet";return new RegExp(t,n)}});return NC.set(e,r),r}function tw(e){let{name:t,message:n,stack:r}=e,i=GC({__init:()=>{"worklet";let e=Error();return e.name=t,e.message=n,e.stack=r,e}});return NC.set(e,i),i}function nw(e,t){let n=vC.makeShareableClone(e,t,e);return NC.set(e,n),NC.set(n),n}function rw(e){let t=e.buffer,n=e.constructor.name,r=GC({__init:()=>{"worklet";if(!BC.includes(n))throw new Y(`[Reanimated] Invalid array view name \`${n}\`.`);let e=globalThis[n];if(e===void 0)throw new Y(`[Reanimated] Constructor for \`${n}\` not found.`);return new e(t)}});return NC.set(e,r),r}function iw(e){let t=GC(zC);return NC.set(e,t),t}function aw(e){"worklet";return!!e.__remoteFunction}function ow(e){"worklet";if(PC)return e;function t(e){if(typeof e==`object`&&e||typeof e==`function`){if(IC(e))return globalThis._makeShareableClone(e,void 0);if(aw(e))return e.__remoteFunction;if(Array.isArray(e))return globalThis._makeShareableClone(e.map(t),void 0);let n={};for(let[r,i]of Object.entries(e))n[r]=t(i);return globalThis._makeShareableClone(n,e)}return globalThis._makeShareableClone(e,void 0)}return t(e)}function sw(e){return e}function cw(e){if(NC.get(e))return e;let t=GC({__init:()=>{"worklet";return e}});return NC.set(e,t),e}var lw=PC?sw:cw,uw=LS(),dw=WS(),fw=[];function pw(){"worklet";let e=[],t=!1;globalThis.queueMicrotask=t=>{e.push(t)},globalThis.__callMicrotasks=()=>{if(!t)try{t=!0;for(let t=0;t<e.length;t+=1)e[t]();e=[],globalThis._maybeFlushUIUpdatesQueue()}finally{t=!1}}}function mw(){"worklet";globalThis.__callMicrotasks()}var hw=dw?()=>{}:mw;function gw(e){"worklet";return(...t)=>{if(uw){DC.scheduleOnUI(GC(()=>{"worklet";e(...t)}));return}fw.push([e,t]),fw.length===1&&queueMicrotask(()=>{let e=fw;fw=[],DC.scheduleOnUI(GC(()=>{"worklet";e.forEach(([e,t])=>{e(...t)}),hw()}))})}}function _w(e){return(...t)=>DC.executeOnUIRuntimeSync(GC(()=>{"worklet";return ow(e(...t))}))}function vw(e){"worklet";return(...t)=>{DC.scheduleOnUI(GC(()=>{"worklet";e(...t)}))}}function yw(e,...t){e(...t)}function bw(e){"worklet";if(dw||!_WORKLET)return(...t)=>queueMicrotask(t.length?()=>e(...t):e);if(fC(e))return(...t)=>bw(yw)(e,...t);e.__remoteFunction&&(e=e.__remoteFunction);let t=typeof e==`function`?globalThis._scheduleHostFunctionOnJS:globalThis._scheduleRemoteFunctionOnJS;return(...n)=>{t(e,n.length>0?ow(n):void 0)}}function xw(e,t,n=!1){"worklet";let r=e._animation;if(r&&(r.cancelled=!0,e._animation=null),typeof t==`function`||typeof t==`object`&&t&&t.onFrame!==void 0){let i=typeof t==`function`?t():t;if(e._value===i.current&&!i.isHigherOrder&&!n){i.callback&&i.callback(!0);return}let a=t=>{i.onStart(i,e.value,t,r)},o=globalThis.__frameTimestamp||globalThis._getAnimationTimestamp();a(o);let s=t=>{let n=t<(i.timestamp||0)?i.timestamp:t;if(i.cancelled){i.callback&&i.callback(!1);return}let r=i.onFrame(i,n);i.finished=!0,i.timestamp=n,e._value=i.current,r?i.callback&&i.callback(!0):requestAnimationFrame(s)};e._animation=i,s(o)}else{if(e._value===t&&!n)return;e._value=t}}var Sw=WS(),Cw=LS();function ww(){return!1}function Tw(){ww()&&oC.warn("Reading from `value` during component render. Please ensure that you don't access the `value` property nor use `get` method of a shared value while React is rendering a component.",{strict:!0})}function Ew(){ww()&&oC.warn("Writing to `value` during component render. Please ensure that you don't access the `value` property nor use `set` method of a shared value while React is rendering a component.",{strict:!0})}function Dw(e){"worklet";Object.defineProperties(e,{get:{value(){return e.value},configurable:!1,enumerable:!1},set:{value(t){e.value=typeof t==`function`&&!t.__isAnimationDefinition?t(e.value):t},configurable:!1,enumerable:!1}})}function Ow(e){"worklet";Object.defineProperty(e,"_value",{configurable:!1,enumerable:!1})}function kw(e){"worklet";let t=new Map,n=e,r={get value(){return n},set value(e){xw(r,e)},get _value(){return n},set _value(e){n=e,t.forEach(t=>{t(e)})},modify:(e,t=!0)=>{xw(r,e===void 0?n:e(n),t)},addListener:(e,n)=>{t.set(e,n)},removeListener:e=>{t.delete(e)},_animation:null,_isReanimatedSharedValue:!0};return Ow(r),Dw(r),r}function Aw(e){let t=GC({__init:()=>{"worklet";return kw(e)}}),n={get value(){return Tw(),_w(e=>e.value)(n)},set value(e){Ew(),gw(()=>{n.value=e})()},get _value(){throw new Y("Reading from `_value` directly is only possible on the UI runtime. Perhaps you passed an Animated Style to a non-animated component?")},set _value(e){throw new Y("Setting `_value` directly is only possible on the UI runtime. Perhaps you want to assign to `value` instead?")},modify:(e,t=!0)=>{gw(()=>{n.modify(e,t)})()},addListener:()=>{throw new Y(`Adding listeners is only possible on the UI runtime.`)},removeListener:()=>{throw new Y(`Removing listeners is only possible on the UI runtime.`)},_isReanimatedSharedValue:!0};return Ow(n),Dw(n),NC.set(n,t),n}function jw(e){let t=e,n=new Map,r={get value(){return Tw(),t},set value(e){Ew(),xw(r,e)},get _value(){return t},set _value(e){t=e,n.forEach(t=>{t(e)})},modify:(e,t=!0)=>{xw(r,e===void 0?r.value:e(r.value),t)},addListener:(e,t)=>{n.set(e,t)},removeListener:e=>{n.delete(e)},_isReanimatedSharedValue:!0};return Ow(r),Dw(r),Cw&&(r.toJSON=()=>Nw(t)),r}var Mw=Sw?jw:Aw;function Nw(e){return JSON.stringify(e)}function Pw(e){"worklet";return e?._isReanimatedSharedValue===!0}var Fw=LS();function Iw(){"worklet";let e=new Map,t=[],n=!1,r=!1;function i(){let n=new Map;e.forEach(e=>{if(e.outputs)for(let t of e.outputs){let r=n.get(t);r===void 0?n.set(t,[e]):r.push(e)}});let r=new Set,i=[];function a(e){r.add(e);for(let t of e.inputs){let e=n.get(t);if(e)for(let t of e)r.has(t)||a(t)}i.push(e)}e.forEach(e=>{r.has(e)||a(e)}),t=i}function a(){if(n=!1,!r)try{r=!0,e.size!==t.length&&i();for(let e of t)e.dirty&&(e.dirty=!1,e.worklet())}finally{r=!1}}function o(){Fw?a():n||=(r?requestAnimationFrame(a):queueMicrotask(a),!0)}function s(e,t){if(Array.isArray(e))for(let n of e)n&&s(n,t);else if(Pw(e))t.push(e);else if(Object.getPrototypeOf(e)===Object.prototype)for(let n of Object.values(e))n&&s(n,t);return t}return{start:(n,r,i,a)=>{let c={id:n,dirty:!0,worklet:r,inputs:s(i,[]),outputs:a};e.set(c.id,c),t=[];for(let e of c.inputs)e.addListener(c.id,()=>{c.dirty=!0,o()});o()},stop:n=>{let r=e.get(n);if(r){e.delete(r.id),t=[];for(let e of r.inputs)e.removeListener(r.id)}}}}var Lw=9999;function Rw(e,t=[],n=[]){let r=Lw+=1;return gw(()=>{let i=globalThis.__mapperRegistry;i===void 0&&(i=globalThis.__mapperRegistry=Iw()),i.start(r,e,t,n)})(),r}function zw(e){gw(()=>{globalThis.__mapperRegistry?.stop(e)})()}var Bw=LS(),Vw=WS(),Hw=RS();function Uw(){"worklet";iC(e=>{"worklet";bw(nC)(e)})}rC($S),Uw(),Vw?(globalThis._WORKLET=!1,globalThis._log=console.log,globalThis._getAnimationTimestamp=()=>performance.now()):(_w(MS)(),_w(rC)($S),_w(Uw)());function Ww(e,...t){"worklet";try{return e(...t)}catch(e){if(globalThis.__ErrorUtils)globalThis.__ErrorUtils.reportFatalError(e);else throw e}}function Gw(){"worklet";globalThis.__callGuardDEV=Ww,globalThis.__ErrorUtils={reportFatalError:e=>{bw(IS)({message:e.message,stack:e.stack})}}}function Kw(){return Object.fromEntries(Object.entries(console).map(([e,t])=>{let n=function(...e){return t(...e)};return t.name&&Object.defineProperty(n,"name",{value:t.name,writable:!1}),[e,n]}))}var qw=Kw();function Jw(){"worklet";Hw||(globalThis.console={assert:bw(qw.assert),debug:bw(qw.debug),log:bw(qw.log),warn:bw(qw.warn),error:bw(qw.error),info:bw(qw.info)})}function Yw(){"worklet";let e=globalThis.requestAnimationFrame,t=[],n=!1;globalThis.__flushAnimationFrame=e=>{let n=t;t=[],n.forEach(t=>t(e)),hw()},globalThis.requestAnimationFrame=r=>(t.push(r),n||(n=!0,e(e=>{n=!1,globalThis.__frameTimestamp=e,globalThis.__flushAnimationFrame(e),globalThis.__frameTimestamp=void 0})),-1)}function Xw(e){if(!zS()){if(!e)throw Error(`[Reanimated] Reanimated is trying to initialize the UI runtime without a valid ReanimatedModule`);Bw&&(globalThis.requestAnimationFrame=hC),vw(()=>{"worklet";Gw(),Jw(),Vw||(pw(),Yw())})()}}var Zw=WS();function Qw(e,t,n=-1){function r(t,n){"worklet";globalThis.__frameTimestamp=t,e(n),globalThis.__flushAnimationFrame(t),globalThis.__frameTimestamp=void 0}return DC.registerEventHandler(GC(r),t,n)}function $w(e){return DC.unregisterEventHandler(e)}var eT={enableLayoutAnimations:!1,setByUser:!1};function tT(e,t=!0){t?(eT={enableLayoutAnimations:e,setByUser:!0},DC.enableLayoutAnimations(e)):!eT.setByUser&&eT.enableLayoutAnimations!==e&&(eT.enableLayoutAnimations=e,DC.enableLayoutAnimations(e))}function nT(e){DC.configureLayoutAnimationBatch(e)}function rT(e,t){DC.setShouldAnimateExitingForTag(e,t)}function iT(e,t){Zw||DC.configureProps(e,t)}function aT(e){DC.markNodeAsRemovable(e)}function oT(e){DC.unmarkNodeAsRemovable(e)}var sT=`[-+]?\\d*\\.?\\d+`,cT=sT+`%`;function lT(...e){return`\\(\\s*(`+e.join(`)\\s*,?\\s*(`)+`)\\s*\\)`}function uT(...e){return`\\(\\s*(`+e.slice(0,e.length-1).join(`)\\s*,?\\s*(`)+`)\\s*/\\s*(`+e[e.length-1]+`)\\s*\\)`}function dT(...e){return`\\(\\s*(`+e.join(`)\\s*,\\s*(`)+`)\\s*\\)`}var fT={rgb:RegExp(`rgb`+lT(sT,sT,sT)),rgba:RegExp(`rgba(`+dT(sT,sT,sT,sT)+`|`+uT(sT,sT,sT,sT)+`)`),hsl:RegExp(`hsl`+lT(sT,cT,cT)),hsla:RegExp(`hsla(`+dT(sT,cT,cT,sT)+`|`+uT(sT,cT,cT,sT)+`)`),hwb:RegExp(`hwb`+lT(sT,cT,cT)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/};function pT(e,t,n){"worklet";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 mT(e,t,n){"worklet";let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=pT(i,r,e+1/3),o=pT(i,r,e),s=pT(i,r,e-1/3);return Math.round(a*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function hT(e,t,n){"worklet";if(t+n>=1){let e=Math.round(t*255/(t+n));return e<<24|e<<16|e<<8}let r=pT(0,1,e+1/3)*(1-t-n)+t,i=pT(0,1,e)*(1-t-n)+t,a=pT(0,1,e-1/3)*(1-t-n)+t;return Math.round(r*255)<<24|Math.round(i*255)<<16|Math.round(a*255)<<8}function gT(e){"worklet";let t=Number.parseInt(e,10);return t<0?0:t>255?255:t}function _T(e){"worklet";return(Number.parseFloat(e)%360+360)%360/360}function vT(e){"worklet";let t=Number.parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function yT(e){"worklet";let t=Number.parseFloat(e);return t<0?0:t>100?1:t/100}function bT(e){"worklet";for(let t=0;t<4;t++)e[t]=Math.max(0,Math.min(e[t],1))}var xT=lw({transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}),ST=lw([`backgroundColor`,`borderBottomColor`,`borderColor`,`borderLeftColor`,`borderRightColor`,`borderTopColor`,`borderStartColor`,`borderEndColor`,`borderBlockColor`,`borderBlockEndColor`,`borderBlockStartColor`,`color`,`outlineColor`,`shadowColor`,`textDecorationColor`,`tintColor`,`textShadowColor`,`overlayColor`,`fill`,`floodColor`,`lightingColor`,`stopColor`,`stroke`]),CT=lw({boxShadow:`color`});function wT(e){"worklet";if(typeof e==`number`)return e>>>0===e&&e>=0&&e<=4294967295?e:null;if(typeof e!=`string`)return null;let t;return(t=fT.hex6.exec(e))?Number.parseInt(t[1]+`ff`,16)>>>0:xT[e]===void 0?(t=fT.rgb.exec(e))?(gT(t[1])<<24|gT(t[2])<<16|gT(t[3])<<8|255)>>>0:(t=fT.rgba.exec(e))?t[6]===void 0?(gT(t[2])<<24|gT(t[3])<<16|gT(t[4])<<8|vT(t[5]))>>>0:(gT(t[6])<<24|gT(t[7])<<16|gT(t[8])<<8|vT(t[9]))>>>0:(t=fT.hex3.exec(e))?Number.parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+`ff`,16)>>>0:(t=fT.hex8.exec(e))?Number.parseInt(t[1],16)>>>0:(t=fT.hex4.exec(e))?Number.parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=fT.hsl.exec(e))?(mT(_T(t[1]),yT(t[2]),yT(t[3]))|255)>>>0:(t=fT.hsla.exec(e))?t[6]===void 0?(mT(_T(t[2]),yT(t[3]),yT(t[4]))|vT(t[5]))>>>0:(mT(_T(t[6]),yT(t[7]),yT(t[8]))|vT(t[9]))>>>0:(t=fT.hwb.exec(e))?(hT(_T(t[1]),yT(t[2]),yT(t[3]))|255)>>>0:null:xT[e]}function TT(e){"worklet";if(e==null)return e;let t;if(typeof e==`number`)t=e;else{let n=wT(e);if(n==null)return;if(typeof n!=`number`)return null;t=n}return(t<<24|t>>>8)>>>0}function ET(e){"worklet";return typeof e==`string`&&TT(e)!=null}var DT=BS();function OT(e){"worklet";let t=TT(e);if(t!=null)return typeof t==`number`?(DT&&(t|=0),t):null}function kT(e){"worklet";for(let t in e)if(ST.includes(t))e[t]=Array.isArray(e[t])?e[t].map(e=>OT(e)):OT(e[t]);else if(CT[t]){let n=e[t];for(let e of n){let n=CT[t];e[n]!==void 0&&(e[n]=OT(e[n]))}}}function AT(e){"worklet";let t=TT(e),n=(t>>>24)/255;return[(t<<8>>>24)/255,(t<<16>>>24)/255,(t<<24>>>24)/255,n]}function jT(e){"worklet";let t=e[3]<.001?0:e[3];return`rgba(${Math.round(e[0]*255)}, ${Math.round(e[1]*255)}, ${Math.round(e[2]*255)}, ${t})`}function MT(e,t=2.2){"worklet";let n=[];for(let r=0;r<3;++r)n.push(e[r]**+t);return n.push(e[3]),n}function NT(e,t=2.2){"worklet";let n=[];for(let r=0;r<3;++r)n.push(e[r]**(1/t));return n.push(e[3]),n}var PT=4,FT=.001,IT=1e-7,LT=10,RT=11,zT=1/10;function BT(e,t){"worklet";return 1-3*t+3*e}function VT(e,t){"worklet";return 3*t-6*e}function HT(e){"worklet";return 3*e}function UT(e,t,n){"worklet";return((BT(t,n)*e+VT(t,n))*e+HT(t))*e}function WT(e,t,n){"worklet";return 3*BT(t,n)*e*e+2*VT(t,n)*e+HT(t)}function GT(e,t,n,r,i){"worklet";let a,o,s=0;do o=t+(n-t)/2,a=UT(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>IT&&++s<LT);return o}function KT(e,t,n,r){"worklet";for(let i=0;i<PT;++i){let i=WT(t,n,r);if(i===0)return t;let a=UT(t,n,r)-e;t-=a/i}return t}function qT(e,t,n,r){"worklet";function i(e){"worklet";return e}if(!(e>=0&&e<=1&&n>=0&&n<=1))throw new Y(`Bezier x values must be in [0, 1] range.`);if(e===t&&n===r)return i;let a=Array(RT);for(let t=0;t<RT;++t)a[t]=UT(t*zT,e,n);function o(t){"worklet";let r=0,i=1;for(;i!==10&&a[i]<=t;++i)r+=zT;--i;let o=(t-a[i])/(a[i+1]-a[i]),s=r+o*zT,c=WT(s,e,n);return c>=FT?KT(t,s,e,n):c===0?s:GT(t,r,r+zT,e,n)}return function(i){"worklet";return e===t&&n===r?i:i===0?0:i===1?1:UT(o(i),t,r)}}function JT(e){"worklet";return e}function YT(e){"worklet";return qT(.42,0,1,1)(e)}function XT(e){"worklet";return e*e}function ZT(e){"worklet";return e*e*e}function QT(e){"worklet";return t=>{"worklet";return t**+e}}function $T(e){"worklet";return 1-Math.cos(e*Math.PI/2)}function eE(e){"worklet";return 1-Math.sqrt(1-e*e)}function tE(e){"worklet";return 2**(10*(e-1))}function nE(e=1){"worklet";let t=e*Math.PI;return e=>{"worklet";return 1-Math.cos(e*Math.PI/2)**3*Math.cos(e*t)}}function rE(e=1.70158){"worklet";return t=>{"worklet";return t*t*((e+1)*t-e)}}function iE(e){"worklet";if(e<1/2.75)return 7.5625*e*e;if(e<2/2.75){let t=e-1.5/2.75;return 7.5625*t*t+.75}if(e<2.5/2.75){let t=e-2.25/2.75;return 7.5625*t*t+.9375}let t=e-2.625/2.75;return 7.5625*t*t+.984375}function aE(e,t,n,r){"worklet";return{factory:()=>{"worklet";return qT(e,t,n,r)}}}function oE(e,t,n,r){"worklet";return qT(e,t,n,r)}function sE(e){"worklet";return e}function cE(e){"worklet";return t=>{"worklet";return 1-e(1-t)}}function lE(e){"worklet";return t=>{"worklet";return t<.5?e(t*2)/2:1-e((1-t)*2)/2}}function uE(e=10,t=!0){"worklet";return n=>{"worklet";let r=Math.min(Math.max(n,0),1)*e;return t?Math.ceil(r)/e:Math.floor(r)/e}}var dE={linear:JT,ease:YT,quad:XT,cubic:ZT,poly:QT,sin:$T,circle:eE,exp:tE,elastic:nE,back:rE,bounce:iE,bezier:aE,bezierFn:oE,steps:uE,in:sE,out:cE,inOut:lE},fE=Symbol(`easingName`);for(let[e,t]of Object.entries(dE))Object.defineProperty(t,fE,{value:e,configurable:!1,enumerable:!1,writable:!1});var pE=dE;function mE(){return zS()?qS()?window.matchMedia(`(prefers-reduced-motion: reduce)`).matches:!1:!!globalThis._REANIMATED_IS_REDUCED_MOTION}var hE=mE(),gE={jsValue:hE,uiValue:Mw(hE),setEnabled(e){gE.jsValue=e,gE.uiValue.value=e}};function _E(e){"worklet";return Array.isArray(e)&&e.length===16&&e.every(e=>typeof e==`number`&&!isNaN(e))}function vE(e){"worklet";return Array.isArray(e)&&e.length===4&&e.every(e=>Array.isArray(e)&&e.length===4&&e.every(e=>typeof e==`number`&&!isNaN(e)))}function yE(e){"worklet";return e.flat()}function bE(e){"worklet";return[[e[0],e[1],e[2],e[3]],[e[4],e[5],e[6],e[7]],[e[8],e[9],e[10],e[11]],[e[12],e[13],e[14],e[15]]]}function xE(e){"worklet";return vE(e)?yE(e):e}function SE(e,t){"worklet";return[[e[0][0]*t[0][0]+e[0][1]*t[1][0]+e[0][2]*t[2][0]+e[0][3]*t[3][0],e[0][0]*t[0][1]+e[0][1]*t[1][1]+e[0][2]*t[2][1]+e[0][3]*t[3][1],e[0][0]*t[0][2]+e[0][1]*t[1][2]+e[0][2]*t[2][2]+e[0][3]*t[3][2],e[0][0]*t[0][3]+e[0][1]*t[1][3]+e[0][2]*t[2][3]+e[0][3]*t[3][3]],[e[1][0]*t[0][0]+e[1][1]*t[1][0]+e[1][2]*t[2][0]+e[1][3]*t[3][0],e[1][0]*t[0][1]+e[1][1]*t[1][1]+e[1][2]*t[2][1]+e[1][3]*t[3][1],e[1][0]*t[0][2]+e[1][1]*t[1][2]+e[1][2]*t[2][2]+e[1][3]*t[3][2],e[1][0]*t[0][3]+e[1][1]*t[1][3]+e[1][2]*t[2][3]+e[1][3]*t[3][3]],[e[2][0]*t[0][0]+e[2][1]*t[1][0]+e[2][2]*t[2][0]+e[2][3]*t[3][0],e[2][0]*t[0][1]+e[2][1]*t[1][1]+e[2][2]*t[2][1]+e[2][3]*t[3][1],e[2][0]*t[0][2]+e[2][1]*t[1][2]+e[2][2]*t[2][2]+e[2][3]*t[3][2],e[2][0]*t[0][3]+e[2][1]*t[1][3]+e[2][2]*t[2][3]+e[2][3]*t[3][3]],[e[3][0]*t[0][0]+e[3][1]*t[1][0]+e[3][2]*t[2][0]+e[3][3]*t[3][0],e[3][0]*t[0][1]+e[3][1]*t[1][1]+e[3][2]*t[2][1]+e[3][3]*t[3][1],e[3][0]*t[0][2]+e[3][1]*t[1][2]+e[3][2]*t[2][2]+e[3][3]*t[3][2],e[3][0]*t[0][3]+e[3][1]*t[1][3]+e[3][2]*t[2][3]+e[3][3]*t[3][3]]]}function CE(e,t){"worklet";let n=_E(e),r=xE(e),i=xE(t),a=r.map((e,t)=>r[t]-i[t]);return n?a:bE(a)}function wE(e,t){"worklet";let n=_E(e),r=xE(e),i=xE(t),a=r.map((e,t)=>r[t]+i[t]);return n?a:bE(a)}function TE(e,t){"worklet";let n=_E(e),r=xE(e).map(e=>e*t);return n?r:bE(r)}function EE(e,t=`z`){"worklet";let n=Math.cos(e),r=Math.sin(e);switch(t){case`z`:return[[n,r,0,0],[-r,n,0,0],[0,0,1,0],[0,0,0,1]];case`y`:return[[n,0,-r,0],[0,1,0,0],[r,0,n,0],[0,0,0,1]];case`x`:return[[1,0,0,0],[0,n,r,0],[0,-r,n,0],[0,0,0,1]]}}function DE(e,t,n){"worklet";return Math.sqrt(e*e+t*t+n*n)}function OE(e){"worklet";let t=yE(e);return[[t[0],t[4],t[8],t[12]],[t[1],t[5],t[9],t[13]],[t[2],t[6],t[10],t[14]],[t[3],t[7],t[11],t[15]]]}function kE(e,t){"worklet";return e.reduce((n,r,i)=>n+e[i]*t[i],0)}function AE(e,t){"worklet";let n=kE(e,t)/kE(e,e);return e.map(e=>e*n)}function jE(e,t){"worklet";return e.map((n,r)=>e[r]-t[r])}function ME(e,t){"worklet";return e.map(e=>e*t)}function NE(e){"worklet";let[t,n,r,i]=e,a=t,o=jE(n,AE(a,n)),s=jE(jE(r,AE(a,r)),AE(o,r)),[c,l,u,d]=[a,o,s,jE(jE(jE(i,AE(a,i)),AE(o,i)),AE(s,i))].map(e=>ME(e,1/Math.sqrt(kE(e,e)))),f=[[c[0],l[0],u[0],d[0]],[c[1],l[1],u[1],d[1]],[c[2],l[2],u[2],d[2]],[c[3],l[3],u[3],d[3]]],p=[[kE(c,t),kE(c,n),kE(c,r),kE(c,i)],[0,kE(l,n),kE(l,r),kE(l,i)],[0,0,kE(u,r),kE(u,i)],[0,0,0,kE(d,i)]];return{rotationMatrix:OE(f),skewMatrix:OE(p)}}function PE(e){"worklet";let t=xE(e);if(t[15]===0)throw new Y(`Invalid transform matrix.`);t.forEach((e,n)=>t[n]/=t[15]);let n=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[t[12],t[13],t[14],1]],r=t[15]*DE(t[0],t[4],t[8]),i=t[15]*DE(t[1],t[5],t[9]),a=t[15]*DE(t[2],t[6],t[10]),o=[[r,0,0,0],[0,i,0,0],[0,0,a,0],[0,0,0,1]],{rotationMatrix:s,skewMatrix:c}=NE([[t[0]/r,t[1]/r,t[2]/r,0],[t[4]/i,t[5]/i,t[6]/i,0],[t[8]/a,t[9]/a,t[10]/a,0],[0,0,0,1]]);return{translationMatrix:n,scaleMatrix:o,rotationMatrix:s,skewMatrix:c}}function FE(e){"worklet";let{scaleMatrix:t,rotationMatrix:n,translationMatrix:r,skewMatrix:i}=PE(e),a=-n[0][2],o=Math.asin(a),s,c;return a===1||a===-1?(c=0,s=Math.atan2(a*n[0][1],a*n[0][2])):(c=Math.atan2(n[0][1],n[0][0]),s=Math.atan2(n[1][2],n[2][2])),{scaleMatrix:t,rotationMatrix:n,translationMatrix:r,skewMatrix:i,rx:s||0,ry:o||0,rz:c||0}}var IE=!1,LE=WS();function RE(e){IE=!0;let t=e();return IE=!1,t}function zE(e){"worklet";if(typeof e==`string`){let t=e.match(/([A-Za-z]*)(-?\d*\.?\d*)([eE][-+]?[0-9]+)?([A-Za-z%]*)/);if(!t)throw new Y(`Couldn't parse animation value.`);let n=t[1],r=t[4],i=t[2]+(t[3]??``);return{prefix:n,suffix:r,strippedValue:parseFloat(i)}}return{strippedValue:e}}var BE=gE.uiValue;function VE(e){"worklet";return!e||e===mC.System?BE.value:e===mC.Always}function HE(e){"worklet";if(e)return VE(e)}function UE(e,t,n){"worklet";return wE(t,TE(CE(n,t),e))}function WE(e,t,n){"worklet";return t+e*(n-t)}function GE(e){"worklet";let t=e.onStart,n=e.onFrame;if(e.isHigherOrder){e.onStart=(e,n,r,i)=>(e.reduceMotion===void 0&&(e.reduceMotion=VE()),t(e,n,r,i));return}let r=Object.assign({},e);delete r.callback;let i=(e,n,r,i)=>{let{prefix:a,suffix:o,strippedValue:s}=zE(n);e.__prefix=a,e.__suffix=o,e.strippedCurrent=s;let{strippedValue:c}=zE(e.toValue);if(e.current=s,e.startValue=s,e.toValue=c,i&&i!==e){let{prefix:e,suffix:t,strippedValue:n}=zE(i.current);i.current=n,i.__prefix=e,i.__suffix=t}t(e,s,r,i),e.current=(e.__prefix??``)+e.current+(e.__suffix??``),i&&i!==e&&(i.current=(i.__prefix??``)+i.current+(i.__suffix??``))},a=(e,t)=>{e.current=e.strippedCurrent;let r=n(e,t);return e.strippedCurrent=e.current,e.current=(e.__prefix??``)+e.current+(e.__suffix??``),r},o=[`R`,`G`,`B`,`A`],s=(e,t,n,i)=>{let a,s,c,l=[];ET(t)&&(s=MT(AT(e.current)),a=MT(AT(t)),e.toValue&&(c=MT(AT(e.toValue)))),o.forEach((t,o)=>{e[t]=Object.assign({},r),e[t].current=s[o],e[t].toValue=c?c[o]:void 0,e[t].onStart(e[t],a[o],n,i?i[t]:void 0),l.push(e[t].current)}),e.unroundedCurrent=l,bT(l),e.current=jT(NT(l))},c=(e,t)=>{let n=[],r=!0;return e.current=e.nonscaledCurrent,o.forEach(i=>{let a=e[i].onFrame(e[i],t);r&&=a,n.push(e[i].current)}),bT(n),e.nonscaledCurrent=n,e.current=jT(NT(n)),r},l=(e,t,n,i)=>{let a=e.toValue;e.startMatrices=FE(t),e.stopMatrices=FE(a),e[0]=Object.assign({},r),e[0].current=0,e[0].toValue=100,e[0].onStart(e[0],0,n,i?i[0]:void 0),e.current=t},u=(e,t)=>{let n=!0,r=e[0].onFrame(e[0],t);n&&=r;let i=e[0].current/100,a=[`translationMatrix`,`scaleMatrix`,`skewMatrix`],o=[];a.forEach((t,n)=>o.push(UE(i,e.startMatrices[t],e.stopMatrices[t])));let[s,c,l]=o,u=[`x`,`y`,`z`],d=[];u.forEach((t,n)=>{let r=WE(i,e.startMatrices[`r`+t],e.stopMatrices[`r`+t]);d.push(EE(r,t))});let[f,p,m]=d;return e.current=yE(SE(SE(c,SE(l,SE(f,SE(p,m)))),s)),n},d=(e,t,n,i)=>{t.forEach((t,a)=>{e[a]=Object.assign({},r),e[a].current=t,e[a].toValue=e.toValue[a],e[a].onStart(e[a],t,n,i?i[a]:void 0)}),e.current=[...t]},f=(e,t)=>{let n=!0;return e.current.forEach((r,i)=>{let a=e[i].onFrame(e[i],t);n&&=a,e.current[i]=e[i].current}),n},p=(e,t,n,i)=>{for(let a in t)e[a]=Object.assign({},r),e[a].onStart=e.onStart,e[a].current=t[a],e[a].toValue=e.toValue[a],e[a].onStart(e[a],t[a],n,i?i[a]:void 0);e.current=t},m=(e,t)=>{let n=!0,r={};for(let i in e.current){let a=e[i].onFrame(e[i],t);n&&=a,r[i]=e[i].current}return e.current=r,n};e.onStart=(e,n,r,o)=>{if(e.reduceMotion===void 0&&(e.reduceMotion=VE()),e.reduceMotion){e.toValue===void 0?t(e,n,r,o):e.current=e.toValue,e.startTime=0,e.onFrame=()=>!0;return}if(ET(n)){s(e,n,r,o),e.onFrame=c;return}if(_E(n)){l(e,n,r,o),e.onFrame=u;return}if(Array.isArray(n)){d(e,n,r,o),e.onFrame=f;return}if(typeof n==`string`){i(e,n,r,o),e.onFrame=a;return}if(typeof n==`object`&&n){p(e,n,r,o),e.onFrame=m;return}t(e,n,r,o)}}function KE(e,t){"worklet";if(IE)return e;let n=()=>{"worklet";let e=t();return GE(e),e};return _WORKLET||LE?n():(n.__isAnimationDefinition=!0,n)}function qE(e){"worklet";_WORKLET?e.value=e.value:gw(()=>{"worklet";e.value=e.value})()}function JE(e){e.value=e.value}var YE=LE?JE:qE,XE=function(e,t,n){"worklet";return KE(e,()=>{"worklet";let r={duration:300,easing:pE.inOut(pE.quad)};t&&Object.keys(t).forEach(e=>r[e]=t[e]);function i(e,t){let{toValue:n,startTime:i,startValue:a}=e,o=t-i;if(o>=r.duration)return e.startTime=0,e.current=n,!0;let s=e.easing(o/r.duration);return e.current=a+(n-a)*s,!1}function a(t,n,i,a){a&&a.type===`timing`&&a.toValue===e&&a.startTime?(t.startTime=a.startTime,t.startValue=a.startValue):(t.startTime=i,t.startValue=n),t.current=n,t.easing=typeof r.easing==`object`?r.easing.factory():r.easing}return{type:`timing`,onFrame:i,onStart:a,progress:0,toValue:e,startValue:0,startTime:0,easing:()=>0,current:e,callback:n,reduceMotion:HE(t?.reduceMotion)}})};function ZE(e,t){"worklet";return(Array.isArray(t)?t:[t]).reduce((e,t)=>{if(Array.isArray(e)&&typeof t==`number`||typeof e==`object`&&e&&t in e)return e[t]},e)}function QE(e,t,n){"worklet";let r=Array.isArray(t)?t:[t],i=e;for(let e=0;e<r.length-1;e++)i=i,r[e]in i||(typeof r[e+1]==`number`?i[r[e]]=[]:i[r[e]]={}),i=i[r[e]];i[r[r.length-1]]=n}function $E(e){"worklet";return KE({},()=>{"worklet";return{isHigherOrder:!0,onFrame:(e,t)=>{let n=!1,r=[{value:e.styleAnimations,path:[]}];for(;r.length>0;){let i=r.pop();if(Array.isArray(i.value))for(let e=0;e<i.value.length;e++)r.push({value:i.value[e],path:i.path.concat(e)});else if(typeof i.value==`object`&&i.value.onFrame===void 0)for(let e of Object.keys(i.value))r.push({value:i.value[e],path:i.path.concat(e)});else{let r=i.value;if(r.finished)continue;r.onFrame(r,t)?(r.finished=!0,r.callback&&r.callback(!0)):n=!0;let a=ST.includes(i.path[0]);QE(e.current,i.path,a?OT(r.current):r.current)}}return!n},onStart:(t,n,r,i)=>{let a=[{value:e,path:[]}];for(;a.length>0;){let e=a.pop();if(Array.isArray(e.value))for(let t=0;t<e.value.length;t++)a.push({value:e.value[t],path:e.path.concat(t)});else if(typeof e.value==`object`&&e.value.onStart===void 0)for(let t of Object.keys(e.value))a.push({value:e.value[t],path:e.path.concat(t)});else{let a=ZE(i?.styleAnimations,e.path),o=ZE(n,e.path);a&&!o&&(o=a.current),QE(t.current,e.path,o);let s;typeof e.value!=`object`||!e.value.onStart?(s=XE(e.value,{duration:0}),QE(t.styleAnimations,e.path,s)):s=e.value,s.onStart(s,o,r,a)}}},current:{},styleAnimations:e,callback:t=>{if(!t){let t=[e];for(;t.length>0;){let e=t.pop();if(Array.isArray(e))for(let n of e)t.push(n);else if(typeof e==`object`&&e.onStart===void 0)for(let n of Object.values(e))t.push(n);else{let t=e;!t.finished&&t.callback&&t.callback(!1)}}}}}})}var eD=1e9;function tD(e,t,n){"worklet";let r=n===dC.SHARED_ELEMENT_TRANSITION;t.addListener(e+eD,()=>{globalThis._notifyAboutProgress(e,t.value,r)})}function nD(e,t,n=!1){"worklet";t.removeListener(e+eD),globalThis._notifyAboutEnd(e,n)}function rD(){"worklet";let e=new Map,t=new Map;return{start(n,r,i,a){if(r===dC.SHARED_ELEMENT_TRANSITION_PROGRESS){globalThis.ProgressTransitionRegister.onTransitionStart(n,i);return}let o=a(i),s=o.animations,c=e.get(n);c&&(s={...c,...o.animations}),e.set(n,s);let l=t.get(n);l===void 0?(l=kw(o.initialValues),t.set(n,l)):(nD(n,l),l._value=o.initialValues);let u=$E(s);u.callback=i=>{if(i){e.delete(n),t.delete(n);let i=r===dC.EXITING;nD(n,l,i)}o.callback&&o.callback(i!==void 0&&i)},tD(n,l,r),l.value=u},stop(e){let n=t.get(e);n&&nD(e,n)}}}vw(()=>{"worklet";globalThis.LayoutAnimationsManager=rD()})();var iD=s(((e,t)=>{t.exports=function(e,t,n,r,i,a,o,s){if(!e){var c;if(t===void 0)c=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var l=[n,r,i,a,o,s],u=0;c=Error(t.replace(/%s/g,function(){return l[u++]})),c.name=`Invariant Violation`}throw c.framesToPop=1,c}}}));function aD(e,t,n){return(t=>`build`in e&&typeof e.build==`function`)(e)?e.build():e}function oD(e){return e}var sD=KS(),cD=(0,b.createContext)(null);function lD(e){let t=(0,b.useRef)(e.shouldSkip);(0,b.useEffect)(()=>{t.current=!1},[t]);let n=sD?cD:cD.Provider;return(0,O.jsx)(n,{value:t,children:e.children})}var uD=class e extends b.Component{getMaybeWrappedChildren(){return b.Children.count(this.props.children)>1&&this.props.skipExiting?b.Children.map(this.props.children,t=>(0,O.jsx)(e,{skipExiting:!0,children:t})):this.props.children}setShouldAnimateExiting(){if(b.Children.count(this.props.children)===1){let e=oD(this);e&&rT(e,!this.props.skipExiting)}}componentWillUnmount(){this.props.skipExiting!==void 0&&this.setShouldAnimateExiting()}render(){let e=this.getMaybeWrappedChildren();return this.props.skipEntering===void 0?e:(0,O.jsx)(lD,{shouldSkip:this.props.skipEntering,children:e})}};WS();function dD(){for(let e in sC.NATIVE_THREAD_PROPS_WHITELIST)if(e in sC.UI_THREAD_PROPS_WHITELIST)throw new Y(`Property \`${e}\` was whitelisted both as UI and native prop. Please remove it from one of the lists.`)}function fD(){dD(),iT(Object.keys(sC.UI_THREAD_PROPS_WHITELIST),Object.keys(sC.NATIVE_THREAD_PROPS_WHITELIST))}function pD(e){let t=Object.keys(sC.NATIVE_THREAD_PROPS_WHITELIST).length;sC.NATIVE_THREAD_PROPS_WHITELIST={...sC.NATIVE_THREAD_PROPS_WHITELIST,...e},t!==Object.keys(sC.NATIVE_THREAD_PROPS_WHITELIST).length&&fD()}function mD(e){let t=Object.keys(sC.UI_THREAD_PROPS_WHITELIST).length;sC.UI_THREAD_PROPS_WHITELIST={...sC.UI_THREAD_PROPS_WHITELIST,...e},t!==Object.keys(sC.UI_THREAD_PROPS_WHITELIST).length&&fD()}var hD=new Set;function gD(e){let t=e.uiViewClassName,n=e.validAttributes;if(!hD.has(t)){let e={};Object.keys(n).forEach(t=>{!(t in sC.NATIVE_THREAD_PROPS_WHITELIST)&&!(t in sC.UI_THREAD_PROPS_WHITELIST)&&(e[t]=!0)}),mD(e),hD.add(t)}}fD();function _D(){throw new Y("Trying to call `getShadowNodeWrapperFromRef` on web.")}var vD=function(e,t,n){"worklet";return KE(t,()=>{"worklet";let r=typeof t==`function`?t():t;function i(t,n){let{startTime:i,started:a,previousAnimation:o}=t,s=t.current;if(n-i>=e||t.reduceMotion){a||(r.onStart(r,s,n,o),t.previousAnimation=null,t.started=!0);let e=r.onFrame(r,n);return t.current=r.current,e}if(o){let e=o.finished||o.onFrame(o,n);t.current=o.current,e&&(t.previousAnimation=null)}return!1}function a(e,t,n,i){e.startTime=n,e.started=!1,e.current=t,e.previousAnimation=i===e?i.previousAnimation:i,r.reduceMotion===void 0&&(r.reduceMotion=e.reduceMotion)}return{isHigherOrder:!0,onFrame:i,onStart:a,current:r.current,callback:e=>{r.callback&&r.callback(e)},previousAnimation:null,startTime:0,started:!1,reduceMotion:HE(n)}})},yD=function(e,t=2,n=!1,r,i){"worklet";return KE(e,()=>{"worklet";let a=typeof e==`function`?e():e;function o(e,r){let i=a.onFrame(a,r);if(e.current=a.current,i){if(e.reps+=1,a.callback&&a.callback(!0,e.current),e.reduceMotion||t>0&&e.reps>=t)return!0;let i=n?a.current:e.startValue;return n&&(a.toValue=e.startValue,e.startValue=i),a.onStart(a,i,r,a.previousAnimation),!1}return!1}let s=e=>{r&&r(e),!e&&a.callback&&a.callback(!1)};function c(e,r,i,o){e.startValue=r,e.reps=0,a.reduceMotion===void 0&&(a.reduceMotion=e.reduceMotion),e.reduceMotion&&n&&(t<=0||t%2==0)?(e.current=e.startValue,e.onFrame=()=>!0):a.onStart(a,r,i,o)}return{isHigherOrder:!0,onFrame:o,onStart:c,reps:0,current:a.current,callback:s,startValue:0,reduceMotion:HE(i)}})};function bD(e,...t){"worklet";let n;return e&&(typeof e==`string`?n=e:t.unshift(e)),t.length===0?(oC.warn(`No animation was provided for the sequence`),KE(0,()=>{"worklet";return{onStart:(e,t)=>e.current=t,onFrame:()=>!0,current:0,animationIndex:0,reduceMotion:HE(n)}})):KE(t[0],()=>{"worklet";let e=t.map(e=>{let t=typeof e==`function`?e():e;return t.finished=!1,t});function r(t){for(;t<e.length-1&&e[t].reduceMotion;)t++;return t}let i=t=>{t||e.forEach(e=>{typeof e.callback==`function`&&!e.finished&&e.callback(t)})};function a(t,n){let i=e[t.animationIndex],a=i.onFrame(i,n);if(t.current=i.current,a){if(i.callback&&i.callback(!0),i.finished=!0,t.animationIndex=r(t.animationIndex+1),t.animationIndex<e.length){let r=e[t.animationIndex];return r.onStart(r,i.current,n,i),!1}return!0}return!1}function o(t,n,i,a){e.forEach(e=>{e.reduceMotion===void 0&&(e.reduceMotion=t.reduceMotion)}),t.animationIndex=r(0),a===void 0&&(a=e[e.length-1]);let o=e[t.animationIndex];o.onStart(o,n,i,a)}return{isHigherOrder:!0,onFrame:a,onStart:o,animationIndex:0,current:e[0].current,callback:i,reduceMotion:HE(n)}})}var xD=class{reduceMotionV=mC.System;constructor(e){this.definitions=e}parseDefinitions(){let e={};if(this.definitions.from){if(this.definitions[0])throw new Y(`You cannot provide both keyframe 0 and 'from' as they both specified initial values.`);this.definitions[0]=this.definitions.from,delete this.definitions.from}if(this.definitions.to){if(this.definitions[100])throw new Y(`You cannot provide both keyframe 100 and 'to' as they both specified values at the end of the animation.`);this.definitions[100]=this.definitions.to,delete this.definitions.to}if(!this.definitions[0])throw new Y(`Please provide 0 or 'from' keyframe with initial state of your object.`);let t=this.definitions[0];Object.keys(t).forEach(n=>{if(n===`transform`){if(!Array.isArray(t.transform))return;t.transform.forEach((t,n)=>{Object.keys(t).forEach(t=>{e[SD(n,t)]=[]})})}else e[n]=[]});let n=this.durationV?this.durationV:500,r=Array.from(Object.keys(this.definitions)).map(Number),i=(t,r)=>r/100*n-e[t].reduce((e,t)=>e+t.duration,0),a=({key:t,value:n,currentKeyPoint:r,easing:a})=>{if(!(t in e))throw new Y(`Keyframe can contain only that set of properties that were provide with initial values (keyframe 0 or 'from')`);e[t].push({duration:i(t,r),value:n,easing:a})};return r.filter(e=>e!==0).sort((e,t)=>e-t).forEach(e=>{if(e<0||e>100)throw new Y(`Keyframe should be in between range 0 - 100.`);let t=this.definitions[e],n=t.easing;delete t.easing;let r=(t,r)=>a({key:t,value:r,currentKeyPoint:e,easing:n});Object.keys(t).forEach(e=>{if(e===`transform`){if(!Array.isArray(t.transform))return;t.transform.forEach((e,t)=>{Object.keys(e).forEach(n=>{r(SD(t,n),e[n])})})}else r(e,t[e])})}),{initialValues:t,keyframes:e}}duration(e){return this.durationV=e,this}delay(e){return this.delayV=e,this}withCallback(e){return this.callbackV=e,this}reduceMotion(e){return this.reduceMotionV=e,this}getDelayFunction(){let e=this.delayV,t=this.reduceMotionV;return e?((e,n)=>{"worklet";return vD(e,n,t)}):(e,n)=>{"worklet";return n.reduceMotion=VE(t),n}}build=()=>{let e=this.delayV,t=this.getDelayFunction(),{keyframes:n,initialValues:r}=this.parseDefinitions(),i=this.callbackV;return this.parsedAnimation||=()=>{"worklet";let a={},o=r=>{let i=n[r];if(i.length===0)return;let o=t(e,i.length===1?XE(i[0].value,{duration:i[0].duration,easing:i[0].easing?i[0].easing:pE.linear}):bD(...i.map(e=>XE(e.value,{duration:e.duration,easing:e.easing?e.easing:pE.linear}))));r.includes(`transform`)?(`transform`in a||(a.transform=[]),a.transform.push({[r.split(`:`)[1]]:o})):a[r]=o};return Object.keys(r).forEach(e=>{e.includes(`transform`)?r[e].forEach((e,t)=>{Object.keys(e).forEach(e=>{o(SD(t,e))})}):o(e)}),{animations:a,initialValues:r,callback:i}},this.parsedAnimation}};function SD(e,t){"worklet";return`${e}_transform:${t}`}var CD=xD,wD=class e{custom(){return this}progressAnimation(){return this}duration(){return this}reduceMotion(){return this}defaultTransitionType(){return this}registerTransition(){}unregisterTransition(){}getReduceMotion(){return mC.System}static custom(){return new e}static duration(){return new e}static progressAnimation(){return new e}static defaultTransitionType(){return new e}static reduceMotion(){return new e}},TD=new WeakMap;function ED(e,t){t===0?CC({visibility:`initial`},e):setTimeout(()=>{CC({visibility:`initial`},e)},t*1e3)}function DD(e,t,n){let r=t.getBoundingClientRect(),i=parseInt(getComputedStyle(t).borderTopWidth),a=parseInt(getComputedStyle(t).borderLeftWidth),o=e.getBoundingClientRect();o.top!==n.top&&(e.style.top=`${n.top-r.top-i}px`),o.left!==n.left&&(e.style.left=`${n.left-r.left-a}px`)}function OD(e,t){e.style.transform=``,e.style.position=`absolute`,e.style.top=`${t.top}px`,e.style.left=`${t.left}px`,e.style.width=`${t.width}px`,e.style.height=`${t.height}px`,e.style.margin=`0px`,e.parentElement&&DD(e,e.parentElement,t)}var kD={linear:[0,0,1,1],ease:[.42,0,1,1],quad:[.11,0,.5,0],cubic:[.32,0,.67,0],sin:[.12,0,.39,0],circle:[.55,0,1,.45],exp:[.7,0,.84,0]};function AD(e){return`cubic-bezier(${kD[e].toString()})`}function jD(e){if(!(`factory`in e))return null;let t=e.factory;if(!(`__closure`in t))return null;let n=t.__closure;return`Bezier`in n?`cubic-bezier(${n.x1}, ${n.y1}, ${n.x2}, ${n.y2})`:null}function X(e){let t=`@keyframes ${e.name} { `;for(let[n,r]of Object.entries(e.style)){t+=`${n===`from`?0:n===`to`?100:n}% { `;for(let[e,n]of Object.entries(r)){if(e===`easing`){let e=`linear`;n in kD?e=n:n.name in kD&&(e=n.name),t+=`animation-timing-function: cubic-bezier(${kD[e].toString()});`;continue}if(e===`originX`){t+=`left: ${n}px; `;continue}if(e===`originY`){t+=`top: ${n}px; `;continue}if(e!==`transform`){t+=`${e}: ${n}; `;continue}t+=`transform:`,n.forEach(e=>{for(let[n,r]of Object.entries(e))t+=` ${n}(${r})`}),t+=`; `}t+=`} `}return t+=`} `,t}var MD=.6,ND={BounceIn:{name:`BounceIn`,style:{0:{transform:[{scale:0}]},55:{transform:[{scale:1.2}]},70:{transform:[{scale:.9}]},85:{transform:[{scale:1.1}]},100:{transform:[{scale:1}]}},duration:MD},BounceInRight:{name:`BounceInRight`,style:{0:{transform:[{translateX:`100vw`}]},55:{transform:[{translateX:`-20px`}]},70:{transform:[{translateX:`10px`}]},85:{transform:[{translateX:`-10px`}]},100:{transform:[{translateX:`0px`}]}},duration:MD},BounceInLeft:{name:`BounceInLeft`,style:{0:{transform:[{translateX:`-100vw`}]},55:{transform:[{translateX:`20px`}]},70:{transform:[{translateX:`-10px`}]},85:{transform:[{translateX:`10px`}]},100:{transform:[{translateX:`0px`}]}},duration:MD},BounceInUp:{name:`BounceInUp`,style:{0:{transform:[{translateY:`-100vh`}]},55:{transform:[{translateY:`20px`}]},70:{transform:[{translateY:`-10px`}]},85:{transform:[{translateY:`10px`}]},100:{transform:[{translateY:`0px`}]}},duration:MD},BounceInDown:{name:`BounceInDown`,style:{0:{transform:[{translateY:`100vh`}]},55:{transform:[{translateY:`-20px`}]},70:{transform:[{translateY:`10px`}]},85:{transform:[{translateY:`-10px`}]},100:{transform:[{translateY:`0px`}]}},duration:MD}},PD={BounceOut:{name:`BounceOut`,style:{0:{transform:[{scale:1}]},15:{transform:[{scale:1.1}]},30:{transform:[{scale:.9}]},45:{transform:[{scale:1.2}]},100:{transform:[{scale:.1}]}},duration:MD},BounceOutRight:{name:`BounceOutRight`,style:{0:{transform:[{translateX:`0px`}]},15:{transform:[{translateX:`-10px`}]},30:{transform:[{translateX:`10px`}]},45:{transform:[{translateX:`-20px`}]},100:{transform:[{translateX:`100vh`}]}},duration:MD},BounceOutLeft:{name:`BounceOutLeft`,style:{0:{transform:[{translateX:`0px`}]},15:{transform:[{translateX:`10px`}]},30:{transform:[{translateX:`-10px`}]},45:{transform:[{translateX:`20px`}]},100:{transform:[{translateX:`-100vh`}]}},duration:MD},BounceOutUp:{name:`BounceOutUp`,style:{0:{transform:[{translateY:`0px`}]},15:{transform:[{translateY:`10px`}]},30:{transform:[{translateY:`-10px`}]},45:{transform:[{translateY:`20px`}]},100:{transform:[{translateY:`-100vh`}]}},duration:MD},BounceOutDown:{name:`BounceOutDown`,style:{0:{transform:[{translateY:`0px`}]},15:{transform:[{translateY:`-10px`}]},30:{transform:[{translateY:`10px`}]},45:{transform:[{translateY:`-20px`}]},100:{transform:[{translateY:`100vh`}]}},duration:MD}},FD={BounceIn:{style:X(ND.BounceIn),duration:ND.BounceIn.duration},BounceInRight:{style:X(ND.BounceInRight),duration:ND.BounceInRight.duration},BounceInLeft:{style:X(ND.BounceInLeft),duration:ND.BounceInLeft.duration},BounceInUp:{style:X(ND.BounceInUp),duration:ND.BounceInUp.duration},BounceInDown:{style:X(ND.BounceInDown),duration:ND.BounceInDown.duration}},ID={BounceOut:{style:X(PD.BounceOut),duration:PD.BounceOut.duration},BounceOutRight:{style:X(PD.BounceOutRight),duration:PD.BounceOutRight.duration},BounceOutLeft:{style:X(PD.BounceOutLeft),duration:PD.BounceOutLeft.duration},BounceOutUp:{style:X(PD.BounceOutUp),duration:PD.BounceOutUp.duration},BounceOutDown:{style:X(PD.BounceOutDown),duration:PD.BounceOutDown.duration}},LD=.3,RD={FadeIn:{name:`FadeIn`,style:{0:{opacity:0},100:{opacity:1}},duration:LD},FadeInRight:{name:`FadeInRight`,style:{0:{opacity:0,transform:[{translateX:`25px`}]},100:{opacity:1,transform:[{translateX:`0px`}]}},duration:LD},FadeInLeft:{name:`FadeInLeft`,style:{0:{opacity:0,transform:[{translateX:`-25px`}]},100:{opacity:1,transform:[{translateX:`0px`}]}},duration:LD},FadeInUp:{name:`FadeInUp`,style:{0:{opacity:0,transform:[{translateY:`-25px`}]},100:{opacity:1,transform:[{translateY:`0px`}]}},duration:LD},FadeInDown:{name:`FadeInDown`,style:{0:{opacity:0,transform:[{translateY:`25px`}]},100:{opacity:1,transform:[{translateY:`0px`}]}},duration:LD}},zD={FadeOut:{name:`FadeOut`,style:{0:{opacity:1},100:{opacity:0}},duration:LD},FadeOutRight:{name:`FadeOutRight`,style:{0:{opacity:1,transform:[{translateX:`0px`}]},100:{opacity:0,transform:[{translateX:`25px`}]}},duration:LD},FadeOutLeft:{name:`FadeOutLeft`,style:{0:{opacity:1,transform:[{translateX:`0px`}]},100:{opacity:0,transform:[{translateX:`-25px`}]}},duration:LD},FadeOutUp:{name:`FadeOutUp`,style:{0:{opacity:1,transform:[{translateY:`0px`}]},100:{opacity:0,transform:[{translateY:`-25px`}]}},duration:LD},FadeOutDown:{name:`FadeOutDown`,style:{0:{opacity:1,transform:[{translateY:`0px`}]},100:{opacity:0,transform:[{translateY:`25px`}]}},duration:LD}},BD={FadeIn:{style:X(RD.FadeIn),duration:RD.FadeIn.duration},FadeInRight:{style:X(RD.FadeInRight),duration:RD.FadeInRight.duration},FadeInLeft:{style:X(RD.FadeInLeft),duration:RD.FadeInLeft.duration},FadeInUp:{style:X(RD.FadeInUp),duration:RD.FadeInUp.duration},FadeInDown:{style:X(RD.FadeInDown),duration:RD.FadeInDown.duration}},VD={FadeOut:{style:X(zD.FadeOut),duration:zD.FadeOut.duration},FadeOutRight:{style:X(zD.FadeOutRight),duration:zD.FadeOutRight.duration},FadeOutLeft:{style:X(zD.FadeOutLeft),duration:zD.FadeOutLeft.duration},FadeOutUp:{style:X(zD.FadeOutUp),duration:zD.FadeOutUp.duration},FadeOutDown:{style:X(zD.FadeOutDown),duration:zD.FadeOutDown.duration}},HD=.3,UD={FlipInYRight:{name:`FlipInYRight`,style:{0:{transform:[{perspective:`500px`,rotateY:`90deg`,translateX:`100%`}]},100:{transform:[{perspective:`500px`,rotateY:`0deg`,translateX:`0%`}]}},duration:HD},FlipInYLeft:{name:`FlipInYLeft`,style:{0:{transform:[{perspective:`500px`,rotateY:`-90deg`,translateX:`-100%`}]},100:{transform:[{perspective:`500px`,rotateY:`0deg`,translateX:`0%`}]}},duration:HD},FlipInXUp:{name:`FlipInXUp`,style:{0:{transform:[{perspective:`500px`,rotateX:`90deg`,translateY:`-100%`}]},100:{transform:[{perspective:`500px`,rotateX:`0deg`,translateY:`0%`}]}},duration:HD},FlipInXDown:{name:`FlipInXDown`,style:{0:{transform:[{perspective:`500px`,rotateX:`-90deg`,translateY:`100%`}]},100:{transform:[{perspective:`500px`,rotateX:`0deg`,translateY:`0%`}]}},duration:HD},FlipInEasyX:{name:`FlipInEasyX`,style:{0:{transform:[{perspective:`500px`,rotateX:`90deg`}]},100:{transform:[{perspective:`500px`,rotateX:`0deg`}]}},duration:HD},FlipInEasyY:{name:`FlipInEasyY`,style:{0:{transform:[{perspective:`500px`,rotateY:`90deg`}]},100:{transform:[{perspective:`500px`,rotateY:`0deg`}]}},duration:HD}},WD={FlipOutYRight:{name:`FlipOutYRight`,style:{0:{transform:[{perspective:`500px`,rotateY:`0deg`,translateX:`0%`}]},100:{transform:[{perspective:`500px`,rotateY:`90deg`,translateX:`100%`}]}},duration:HD},FlipOutYLeft:{name:`FlipOutYLeft`,style:{0:{transform:[{perspective:`500px`,rotateY:`0deg`,translateX:`0%`}]},100:{transform:[{perspective:`500px`,rotateY:`-90deg`,translateX:`-100%`}]}},duration:HD},FlipOutXUp:{name:`FlipOutXUp`,style:{0:{transform:[{perspective:`500px`,rotateX:`0deg`,translateY:`0%`}]},100:{transform:[{perspective:`500px`,rotateX:`90deg`,translateY:`-100%`}]}},duration:HD},FlipOutXDown:{name:`FlipOutXDown`,style:{0:{transform:[{perspective:`500px`,rotateX:`0deg`,translateY:`0%`}]},100:{transform:[{perspective:`500px`,rotateX:`-90deg`,translateY:`100%`}]}},duration:HD},FlipOutEasyX:{name:`FlipOutEasyX`,style:{0:{transform:[{perspective:`500px`,rotateX:`0deg`}]},100:{transform:[{perspective:`500px`,rotateX:`90deg`}]}},duration:HD},FlipOutEasyY:{name:`FlipOutEasyY`,style:{0:{transform:[{perspective:`500px`,rotateY:`0deg`}]},100:{transform:[{perspective:`500px`,rotateY:`90deg`}]}},duration:HD}},GD={FlipInYRight:{style:X(UD.FlipInYRight),duration:UD.FlipInYRight.duration},FlipInYLeft:{style:X(UD.FlipInYLeft),duration:UD.FlipInYLeft.duration},FlipInXUp:{style:X(UD.FlipInXUp),duration:UD.FlipInXUp.duration},FlipInXDown:{style:X(UD.FlipInXDown),duration:UD.FlipInXDown.duration},FlipInEasyX:{style:X(UD.FlipInEasyX),duration:UD.FlipInEasyX.duration},FlipInEasyY:{style:X(UD.FlipInEasyY),duration:UD.FlipInEasyY.duration}},KD={FlipOutYRight:{style:X(WD.FlipOutYRight),duration:WD.FlipOutYRight.duration},FlipOutYLeft:{style:X(WD.FlipOutYLeft),duration:WD.FlipOutYLeft.duration},FlipOutXUp:{style:X(WD.FlipOutXUp),duration:WD.FlipOutXUp.duration},FlipOutXDown:{style:X(WD.FlipOutXDown),duration:WD.FlipOutXDown.duration},FlipOutEasyX:{style:X(WD.FlipOutEasyX),duration:WD.FlipOutEasyX.duration},FlipOutEasyY:{style:X(WD.FlipOutEasyY),duration:WD.FlipOutEasyY.duration}},qD=.3,JD={LightSpeedInRight:{name:`LightSpeedInRight`,style:{0:{transform:[{translateX:`100vw`,skewX:`-45deg`}],opacity:0},70:{transform:[{skewX:`10deg`}]},85:{transform:[{skewX:`-5deg`}]},100:{transform:[{skewX:`0deg`}]}},duration:qD},LightSpeedInLeft:{name:`LightSpeedInLeft`,style:{0:{transform:[{translateX:`-100vw`,skewX:`45deg`}],opacity:0},70:{transform:[{skewX:`-10deg`}]},85:{transform:[{skewX:`5deg`}]},100:{transform:[{skewX:`0deg`}]}},duration:qD}},YD={LightSpeedOutRight:{name:`LightSpeedOutRight`,style:{0:{transform:[{translateX:`0vw`,skewX:`0deg`}],opacity:1},100:{transform:[{translateX:`100vw`,skewX:`-45deg`}],opacity:0}},duration:qD},LightSpeedOutLeft:{name:`LightSpeedOutLeft`,style:{0:{transform:[{translateX:`0vw`,skew:`0deg`}],opacity:1},100:{transform:[{translateX:`-100vw`,skew:`45deg`}],opacity:0}},duration:qD}},XD={LightSpeedInRight:{style:X(JD.LightSpeedInRight),duration:JD.LightSpeedInRight.duration},LightSpeedInLeft:{style:X(JD.LightSpeedInLeft),duration:JD.LightSpeedInLeft.duration}},ZD={LightSpeedOutRight:{style:X(YD.LightSpeedOutRight),duration:YD.LightSpeedOutRight.duration},LightSpeedOutLeft:{style:X(YD.LightSpeedOutLeft),duration:YD.LightSpeedOutLeft.duration}},QD=.3,$D={PinwheelIn:{name:`PinwheelIn`,style:{0:{transform:[{rotate:`5rad`,scale:0}],opacity:0},100:{transform:[{rotate:`0deg`,scale:1}],opacity:1}},duration:QD},PinwheelOut:{name:`PinwheelOut`,style:{0:{transform:[{rotate:`0rad`,scale:1}],opacity:1},100:{transform:[{rotate:`5rad`,scale:0}],opacity:0}},duration:QD}},eO={PinwheelIn:{style:X($D.PinwheelIn),duration:$D.PinwheelIn.duration},PinwheelOut:{style:X($D.PinwheelOut),duration:$D.PinwheelOut.duration}},tO=.3,nO={RollInLeft:{name:`RollInLeft`,style:{0:{transform:[{translateX:`-100vw`,rotate:`-180deg`}]},100:{transform:[{translateX:`0vw`,rotate:`0deg`}]}},duration:tO},RollInRight:{name:`RollInRight`,style:{0:{transform:[{translateX:`100vw`,rotate:`180deg`}]},100:{transform:[{translateX:`0vw`,rotate:`0deg`}]}},duration:tO}},rO={RollOutLeft:{name:`RollOutLeft`,style:{0:{transform:[{translateX:`0vw`,rotate:`0deg`}]},100:{transform:[{translateX:`-100vw`,rotate:`-180deg`}]}},duration:tO},RollOutRight:{name:`RollOutRight`,style:{0:{transform:[{translateX:`0vw`,rotate:`0deg`}]},100:{transform:[{translateX:`100vw`,rotate:`180deg`}]}},duration:tO}},iO={RollInLeft:{style:X(nO.RollInLeft),duration:nO.RollInLeft.duration},RollInRight:{style:X(nO.RollInRight),duration:nO.RollInRight.duration}},aO={RollOutLeft:{style:X(rO.RollOutLeft),duration:rO.RollOutLeft.duration},RollOutRight:{style:X(rO.RollOutRight),duration:rO.RollOutRight.duration}},oO=.3,sO={RotateInDownLeft:{name:`RotateInDownLeft`,style:{0:{transform:[{translateX:`-50%`,translateY:`-250%`,rotate:`-90deg`}],opacity:0},100:{transform:[{translateX:`0%`,translateY:`0%`,rotate:`0deg`}],opacity:1}},duration:oO},RotateInDownRight:{name:`RotateInDownRight`,style:{0:{transform:[{translateX:`40%`,translateY:`-250%`,rotate:`90deg`}],opacity:0},100:{transform:[{translateX:`0%`,translateY:`0%`,rotate:`0deg`}],opacity:1}},duration:oO},RotateInUpLeft:{name:`RotateInUpLeft`,style:{0:{transform:[{translateX:`-40%`,translateY:`250%`,rotate:`90deg`}],opacity:0},100:{transform:[{translateX:`0%`,translateY:`0%`,rotate:`0deg`}],opacity:1}},duration:oO},RotateInUpRight:{name:`RotateInUpRight`,style:{0:{transform:[{translateX:`40%`,translateY:`250%`,rotate:`-90deg`}],opacity:0},100:{transform:[{translateX:`0%`,translateY:`0%`,rotate:`0deg`}],opacity:1}},duration:oO}},cO={RotateOutDownLeft:{name:`RotateOutDownLeft`,style:{0:{transform:[{translateX:`0%`,translateY:`0%`,rotate:`0deg`}],opacity:1},100:{transform:[{translateX:`-40%`,translateY:`250%`,rotate:`90deg`}],opacity:0}},duration:oO},RotateOutDownRight:{name:`RotateOutDownRight`,style:{0:{transform:[{translateX:`0%`,translateY:`0%`,rotate:`0deg`}],opacity:1},100:{transform:[{translateX:`40%`,translateY:`250%`,rotate:`-90deg`}],opacity:0}},duration:oO},RotateOutUpLeft:{name:`RotateOutUpLeft`,style:{0:{transform:[{translateX:`0%`,translateY:`0%`,rotate:`0deg`}],opacity:1},100:{transform:[{translateX:`-40%`,translateY:`-250%`,rotate:`-90deg`}],opacity:0}},duration:oO},RotateOutUpRight:{name:`RotateOutUpRight`,style:{0:{transform:[{translateX:`0%`,translateY:`0%`,rotate:`0deg`}],opacity:1},100:{transform:[{translateX:`40%`,translateY:`-250%`,rotate:`90deg`}],opacity:0}},duration:oO}},lO={RotateInDownLeft:{style:X(sO.RotateInDownLeft),duration:sO.RotateInDownLeft.duration},RotateInDownRight:{style:X(sO.RotateInDownRight),duration:sO.RotateInDownRight.duration},RotateInUpLeft:{style:X(sO.RotateInUpLeft),duration:sO.RotateInUpLeft.duration},RotateInUpRight:{style:X(sO.RotateInUpRight),duration:sO.RotateInUpRight.duration}},uO={RotateOutDownLeft:{style:X(cO.RotateOutDownLeft),duration:cO.RotateOutDownLeft.duration},RotateOutDownRight:{style:X(cO.RotateOutDownRight),duration:cO.RotateOutDownRight.duration},RotateOutUpLeft:{style:X(cO.RotateOutUpLeft),duration:cO.RotateOutUpLeft.duration},RotateOutUpRight:{style:X(cO.RotateOutUpRight),duration:cO.RotateOutUpRight.duration}},dO=.3,fO={SlideInRight:{name:`SlideInRight`,style:{0:{transform:[{translateX:`100vw`}]},100:{transform:[{translateX:`0%`}]}},duration:dO},SlideInLeft:{name:`SlideInLeft`,style:{0:{transform:[{translateX:`-100vw`}]},100:{transform:[{translateX:`0%`}]}},duration:dO},SlideInUp:{name:`SlideInUp`,style:{0:{transform:[{translateY:`-100vh`}]},100:{transform:[{translateY:`0%`}]}},duration:dO},SlideInDown:{name:`SlideInDown`,style:{0:{transform:[{translateY:`100vh`}]},100:{transform:[{translateY:`0%`}]}},duration:dO}},pO={SlideOutRight:{name:`SlideOutRight`,style:{0:{transform:[{translateX:`0%`}]},100:{transform:[{translateX:`100vw`}]}},duration:dO},SlideOutLeft:{name:`SlideOutLeft`,style:{0:{transform:[{translateX:`0%`}]},100:{transform:[{translateX:`-100vw`}]}},duration:dO},SlideOutUp:{name:`SlideOutUp`,style:{0:{transform:[{translateY:`0%`}]},100:{transform:[{translateY:`-100vh`}]}},duration:dO},SlideOutDown:{name:`SlideOutDown`,style:{0:{transform:[{translateY:`0%`}]},100:{transform:[{translateY:`100vh`}]}},duration:dO}},mO={SlideInRight:{style:X(fO.SlideInRight),duration:fO.SlideInRight.duration},SlideInLeft:{style:X(fO.SlideInLeft),duration:fO.SlideInLeft.duration},SlideInUp:{style:X(fO.SlideInUp),duration:fO.SlideInUp.duration},SlideInDown:{style:X(fO.SlideInDown),duration:fO.SlideInDown.duration}},hO={SlideOutRight:{style:X(pO.SlideOutRight),duration:pO.SlideOutRight.duration},SlideOutLeft:{style:X(pO.SlideOutLeft),duration:pO.SlideOutLeft.duration},SlideOutUp:{style:X(pO.SlideOutUp),duration:pO.SlideOutUp.duration},SlideOutDown:{style:X(pO.SlideOutDown),duration:pO.SlideOutDown.duration}},gO=.3,_O={StretchInX:{name:`StretchInX`,style:{0:{transform:[{scaleX:0}]},100:{transform:[{scaleX:1}]}},duration:gO},StretchInY:{name:`StretchInY`,style:{0:{transform:[{scaleY:0}]},100:{transform:[{scaleY:1}]}},duration:gO}},vO={StretchOutX:{name:`StretchOutX`,style:{0:{transform:[{scaleX:1}]},100:{transform:[{scaleX:0}]}},duration:gO},StretchOutY:{name:`StretchOutY`,style:{0:{transform:[{scaleY:1}]},100:{transform:[{scaleY:0}]}},duration:gO}},yO={StretchInX:{style:X(_O.StretchInX),duration:_O.StretchInX.duration},StretchInY:{style:X(_O.StretchInY),duration:_O.StretchInY.duration}},bO={StretchOutX:{style:X(vO.StretchOutX),duration:vO.StretchOutX.duration},StretchOutY:{style:X(vO.StretchOutY),duration:vO.StretchOutY.duration}},xO=.3,SO={ZoomIn:{name:`ZoomIn`,style:{0:{transform:[{scale:0}]},100:{transform:[{scale:1}]}},duration:xO},ZoomInRotate:{name:`ZoomInRotate`,style:{0:{transform:[{scale:0,rotate:`0.3rad`}]},100:{transform:[{scale:1,rotate:`0deg`}]}},duration:xO},ZoomInRight:{name:`ZoomInRight`,style:{0:{transform:[{translateX:`100vw`,scale:0}]},100:{transform:[{translateX:`0%`,scale:1}]}},duration:xO},ZoomInLeft:{name:`ZoomInLeft`,style:{0:{transform:[{translateX:`-100vw`,scale:0}]},100:{transform:[{translateX:`0%`,scale:1}]}},duration:xO},ZoomInUp:{name:`ZoomInUp`,style:{0:{transform:[{translateY:`-100vh`,scale:0}]},100:{transform:[{translateY:`0%`,scale:1}]}},duration:xO},ZoomInDown:{name:`ZoomInDown`,style:{0:{transform:[{translateY:`100vh`,scale:0}]},100:{transform:[{translateY:`0%`,scale:1}]}},duration:xO},ZoomInEasyUp:{name:`ZoomInEasyUp`,style:{0:{transform:[{translateY:`-100%`,scale:0}]},100:{transform:[{translateY:`0%`,scale:1}]}},duration:xO},ZoomInEasyDown:{name:`ZoomInEasyDown`,style:{0:{transform:[{translateY:`100%`,scale:0}]},100:{transform:[{translateY:`0%`,scale:1}]}},duration:xO}},CO={ZoomOut:{name:`ZoomOut`,style:{0:{transform:[{scale:1}]},100:{transform:[{scale:0}]}},duration:xO},ZoomOutRotate:{name:`ZoomOutRotate`,style:{0:{transform:[{scale:1,rotate:`0rad`}]},100:{transform:[{scale:0,rotate:`0.3rad`}]}},duration:xO},ZoomOutRight:{name:`ZoomOutRight`,style:{0:{transform:[{translateX:`0vw`,scale:1}]},100:{transform:[{translateX:`100vw`,scale:0}]}},duration:xO},ZoomOutLeft:{name:`ZoomOutLeft`,style:{0:{transform:[{translateX:`0vw`,scale:1}]},100:{transform:[{translateX:`-100vw`,scale:0}]}},duration:xO},ZoomOutUp:{name:`ZoomOutUp`,style:{0:{transform:[{translateX:`0vh`,scale:1}]},100:{transform:[{translateY:`-100vh`,scale:0}]}},duration:xO},ZoomOutDown:{name:`ZoomOutDown`,style:{0:{transform:[{translateX:`0vh`,scale:1}]},100:{transform:[{translateY:`100vh`,scale:0}]}},duration:xO},ZoomOutEasyUp:{name:`ZoomOutEasyUp`,style:{0:{transform:[{translateY:`0%`,scale:1}]},100:{transform:[{translateY:`-100%`,scale:0}]}},duration:xO},ZoomOutEasyDown:{name:`ZoomOutEasyDown`,style:{0:{transform:[{translateY:`0%`,scale:1}]},100:{transform:[{translateY:`100%`,scale:0}]}},duration:xO}},wO={ZoomIn:{style:X(SO.ZoomIn),duration:SO.ZoomIn.duration},ZoomInRotate:{style:X(SO.ZoomInRotate),duration:SO.ZoomInRotate.duration},ZoomInRight:{style:X(SO.ZoomInRight),duration:SO.ZoomInRight.duration},ZoomInLeft:{style:X(SO.ZoomInLeft),duration:SO.ZoomInLeft.duration},ZoomInUp:{style:X(SO.ZoomInUp),duration:SO.ZoomInUp.duration},ZoomInDown:{style:X(SO.ZoomInDown),duration:SO.ZoomInDown.duration},ZoomInEasyUp:{style:X(SO.ZoomInEasyUp),duration:SO.ZoomInEasyUp.duration},ZoomInEasyDown:{style:X(SO.ZoomInEasyDown),duration:SO.ZoomInEasyDown.duration}},TO={ZoomOut:{style:X(CO.ZoomOut),duration:CO.ZoomOut.duration},ZoomOutRotate:{style:X(CO.ZoomOutRotate),duration:CO.ZoomOutRotate.duration},ZoomOutRight:{style:X(CO.ZoomOutRight),duration:CO.ZoomOutRight.duration},ZoomOutLeft:{style:X(CO.ZoomOutLeft),duration:CO.ZoomOutLeft.duration},ZoomOutUp:{style:X(CO.ZoomOutUp),duration:CO.ZoomOutUp.duration},ZoomOutDown:{style:X(CO.ZoomOutDown),duration:CO.ZoomOutDown.duration},ZoomOutEasyUp:{style:X(CO.ZoomOutEasyUp),duration:CO.ZoomOutEasyUp.duration},ZoomOutEasyDown:{style:X(CO.ZoomOutEasyDown),duration:CO.ZoomOutEasyDown.duration}},EO=(function(e){return e[e.LINEAR=0]=`LINEAR`,e[e.SEQUENCED=1]=`SEQUENCED`,e[e.FADING=2]=`FADING`,e[e.JUMPING=3]=`JUMPING`,e[e.CURVED=4]=`CURVED`,e[e.ENTRY_EXIT=5]=`ENTRY_EXIT`,e})({}),DO={...RD,...zD,...ND,...PD,...UD,...WD,..._O,...vO,...SO,...CO,...fO,...pO,...JD,...YD,...$D,...sO,...cO,...nO,...rO},OO={...BD,...VD,...FD,...ID,...GD,...KD,...yO,...bO,...wO,...TO,...mO,...hO,...XD,...ZD,...eO,...lO,...uO,...iO,...aO},kO=`ReanimatedPredefinedWebAnimationsStyle`,AO=`ReanimatedCustomWebAnimationsStyle`,jO=new Map,MO=[],NO=!1;function PO(){if(!qS()||document.getElementById(kO)!==null)return;let e=document.createElement(`style`);e.id=kO,e.onload=()=>{if(!e.sheet){oC.error(`Failed to create layout animations stylesheet.`);return}for(let t in OO)e.sheet.insertRule(OO[t].style)};let t=document.createElement(`style`);t.id=AO,document.head.appendChild(e),document.head.appendChild(t)}function FO(e,t){if(!qS())return;let n=document.getElementById(AO);if(!n.sheet){oC.error(`Failed to create layout animations stylesheet.`);return}n.sheet.insertRule(t,0),MO.unshift(e),jO.set(e,0);for(let e=1;e<MO.length;++e){let t=MO[e],n=jO.get(t);if(n===void 0)throw new Y(`Failed to obtain animation index.`);jO.set(MO[e],n+1)}}function IO(e,t){if(!qS())return;let n=document.getElementById(AO),r=jO.get(e);if(r===void 0)throw new Y(`Failed to obtain animation index.`);t(),n.sheet?.deleteRule(r),MO.splice(r,1),jO.delete(e);for(let e=r;e<MO.length;++e){let t=MO[e],n=jO.get(t);if(n===void 0)throw new Y(`Failed to obtain animation index.`);jO.set(MO[e],n-1)}}var LO=5;function RO(e,t,n){let r=Math.max(t*LO*1e3,t+160);setTimeout(()=>IO(e,n),r)}function zO(e,t){let n=TD.get(e);if(!n){oC.error(`Failed to obtain snapshot.`);return}e.removedAfterAnimation=!0,t.appendChild(e),OD(e,n);let r=e.onanimationend;e.onanimationend=function(n){t.removeChild(e),r?.call(this,n)}}function BO(e,t){if(!(e instanceof HTMLElement))return;e.isDummy&&e.removedAfterAnimation===void 0&&zO(e,t);let n=Array.from(e.children);for(let e=0;e<n.length;++e)BO(n[e],t)}function VO(e){let t=`__reactFiber`;for(let n of Object.keys(e))if(n.startsWith(`__reactFiber`)){t=n;break}return e[t]?.child?.memoizedProps?.navigation!==void 0}function HO(){!NO&&qS()&&(NO=!0,new MutationObserver(e=>{let t=e[e.length-1];if(!VO(t.target))for(let e=0;e<t.removedNodes.length;++e)BO(t.removedNodes[e],t.target)}).observe(document.body,{childList:!0,subtree:!0}))}function UO(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function WO(e){e.style.animationName=``,e.style.position=`absolute`,e.style.top=`0px`,e.style.left=`0px`,e.style.margin=`0px`,e.style.width=`100%`,e.style.height=`100%`}function GO(e,t,n){for(let r=0;r<e.children.length;++r){let i=e.children[r];n?i.style.display=t.get(i):(t.set(i,i.style.display),i.style.display=`none`)}}function KO(e,t,n,r){n.easing=AD(r.easingX);let i=new Map;GO(e,i,!1);let a=e.style.backgroundColor;e.style.backgroundColor=`transparent`;let o=()=>{e.contains(t)&&e.removeChild(t),GO(e,i,!0),e.style.backgroundColor=a},s=()=>{o(),e.removeEventListener(`animationcancel`,s)},c=()=>{o(),e.removeEventListener(`animationend`,c)};e.addEventListener(`animationend`,c),e.addEventListener(`animationcancel`,s),e.appendChild(t)}function qO(e,t,n,r){let i={animationName:r,animationType:dC.LAYOUT,duration:t.duration,delay:t.delay,easing:AD(n.easingY),callback:null,reversed:!1},a=e.cloneNode(!0);return a.isDummy=!0,WO(a),{dummy:a,dummyAnimationConfig:i}}function JO(e,t,n,r){let{dummy:i,dummyAnimationConfig:a}=qO(e,t,n,r);return KO(e,i,t,n),{dummy:i,dummyAnimationConfig:a}}function YO(e,t,n){return{firstKeyframeObj:{name:e,style:{0:{transform:[{translateX:`${n.translateX}px`,scale:`${n.scaleX},${n.scaleY}`}]}},duration:300},secondKeyframeObj:{name:t,style:{0:{transform:[{translateY:`${n.translateY}px`,scale:`${n.scaleX},${n.scaleY}`}]}},duration:300}}}var XO=49,ZO=50;function QO(e,t,n,r){for(let[i,a]of Object.entries(t)){a.transform===void 0?a.transform=[n]:a.transform.unshift(n);let t=parseInt(i)/2,o=r?Math.min(t,XO):t+ZO;e[`${o}`]=a}}function $O(e){let t=new Map;e[0].opacity===void 0&&(t.set(48,1),t.set(49,0)),e[50].opacity===void 0&&(t.set(50,0),t.set(51,1));for(let[n,r]of t)e[n]={...e[n],opacity:r}}function ek(e,t){let n=structuredClone(DO[t.exiting]),r=structuredClone(DO[t.entering]),i={translateX:`${t.translateX}px`,translateY:`${t.translateY}px`,scale:`${t.scaleX},${t.scaleY}`},a={translateX:`0px`,translateY:`0px`,scale:`1,1`},o={name:e,style:{},duration:300};return QO(o.style,n.style,i,!0),QO(o.style,r.style,a,!1),$O(o.style),o}function tk(e,t){let{translateX:n,translateY:r,scaleX:i,scaleY:a}=t;return{name:e,style:{0:{opacity:1,transform:[{translateX:`${n}px`,translateY:`${r}px`,scale:`${i},${a}`}]},20:{opacity:0,transform:[{translateX:`${n}px`,translateY:`${r}px`,scale:`${i},${a}`}]},60:{opacity:0,transform:[{translateX:`0px`,translateY:`0px`,scale:`1,1`}]},100:{opacity:1,transform:[{translateX:`0px`,translateY:`0px`,scale:`1,1`}]}},duration:300}}function nk(e,t){let{translateX:n,translateY:r,scaleX:i,scaleY:a}=t,o=Math.max(Math.abs(n),Math.abs(r))/2,s=r<=0?r-o:-r+o;return{name:e,style:{0:{transform:[{translateX:`${n}px`,translateY:`${r}px`,scale:`${i},${a}`}],easing:pE.exp},50:{transform:[{translateX:`${n/2}px`,translateY:`${s}px`,scale:`${i},${a}`}]},100:{transform:[{translateX:`0px`,translateY:`0px`,scale:`1,1`}]}},duration:300}}function rk(e,t){let{translateX:n,translateY:r,scaleX:i,scaleY:a}=t;return{name:e,style:{0:{transform:[{translateX:`${n}px`,translateY:`${r}px`,scale:`${i},${a}`}]}},duration:300}}function ik(e,t){let{translateX:n,translateY:r,scaleX:i,scaleY:a,reversed:o}=t,s=o?`1,${i}`:`${a},1`;return{name:e,style:{0:{transform:[{translateX:`${n}px`,translateY:`${r}px`,scale:`${i},${a}`}]},50:{transform:[{translateX:o?`${n}px`:`0px`,translateY:o?`0px`:`${r}px`,scale:s}]},100:{transform:[{translateX:`0px`,translateY:`0px`,scale:`1,1`}]}},duration:300}}function ak(e){return typeof e==`number`?`${e}px`:e}function ok(e,t){if(t)for(let n of t)for(let[t,r]of Object.entries(n))e.set(t,r)}function sk(e){return e.map(e=>{let t={};for(let[n,r]of Object.entries(e))t[n]=(n.includes(`translate`)||n.includes(`perspective`))&&typeof r==`number`?`${r}px`:r;return t})}function ck(e,t){for(let t of Object.values(e))t.transform&&=sk(t.transform);let n={name:``,style:e,duration:-1};n.name=fk(t);let r=Object.keys(e);for(let t=1;t<r.length;t++){let n=e[r[t]];n.easing&&(e[r[t-1]].easing=n.easing,delete n.easing)}let i=X(n);return FO(n.name,i),n.name}function lk(e,t,n){let r=structuredClone(DO[e].style),i=r[0],{transform:a,originX:o,originY:s,...c}=t,l=new Map;ok(l,i.transform),a&&ok(l,sk(a)),o!==void 0&&l.set(`translateX`,ak(o)),s!==void 0&&l.set(`translateY`,ak(s));let u=Array.from(l,([e,t])=>({[e]:t}));l.size&&(i.transform=u),r[0]={...r[0],...c};let d=fk(n);return FO(d,X({name:d,style:r,duration:DO[e].duration})),d}var uk=0,dk={[dC.ENTERING]:`ENTERING`,[dC.EXITING]:`EXITING`,[dC.LAYOUT]:`LAYOUT`};function fk(e){return`REA-${dk[e]??``}-${uk++}`}function pk(e,t){let n=fk(dC.LAYOUT),r,i;switch(e){case EO.LINEAR:i=rk(n,t);break;case EO.SEQUENCED:i=ik(n,t);break;case EO.FADING:i=tk(n,t);break;case EO.JUMPING:i=nk(n,t);break;case EO.CURVED:{r=fk(dC.LAYOUT);let{firstKeyframeObj:e,secondKeyframeObj:a}=YO(n,r,t);i=e;let o=X(a);FO(r,o);break}case EO.ENTRY_EXIT:i=ek(n,t)}return FO(n,X(i)),{transitionKeyframeName:n,dummyTransitionKeyframeName:r}}function mk(e){let t=TD.get(e);if(t)return t;let n=e.getBoundingClientRect(),r={top:n.top,left:n.left,width:n.width,height:n.height,scrollOffsets:Dk(e)};return TD.set(e,r),r}function hk(e){if(!e.easingV)return AD(`linear`);let t=e.easingV[fE];return t in kD?AD(t):jD(e.easingV)||(oC.warn(`Selected easing is not currently supported on web. Using linear easing instead.`),AD(`linear`))}function gk(e=1e3){return Math.floor(Math.random()*(e+1))/1e3}function _k(e){let t=e.randomizeDelay,n=t?gk():0;return e.delayV?t?gk(e.delayV):e.delayV/1e3:n}function vk(e){if(!e.reduceMotionV)return gE.jsValue;switch(e.reduceMotionV){case mC.Never:return!1;case mC.Always:return!0;default:return gE.jsValue}}function yk(e,t){let n=t in OO?OO[t].duration:.3;return e.durationV===void 0?n:e.durationV/1e3}function bk(e){return e.callbackV===void 0?null:e.callbackV}function xk(e){return!!e.reversed}function Sk(e,t,n){return{animationName:e,animationType:t,duration:yk(n,e),delay:_k(n),easing:hk(n),callback:bk(n),reversed:xk(n)}}function Ck(e,t){if(t instanceof CD){e.style.animationFillMode=`forwards`;for(let n of Object.values(t.definitions))if(`originX`in n||`originY`in n){e.style.position=`absolute`;return}}}function wk(e){let t=e.getBoundingClientRect(),n={top:t.top,left:t.left,width:t.width,height:t.height,scrollOffsets:Dk(e)};TD.set(e,n)}function Tk(e,t,n=!1,r=null){let{animationName:i,duration:a,delay:o,easing:s}=t,c=()=>{e.style.animationName=i,e.style.animationDuration=`${a}s`,e.style.animationDelay=`${o}s`,e.style.animationTimingFunction=s,t.animationType===dC.ENTERING&&o>0&&(e.style.animationFillMode=`backwards`)};t.animationType===dC.ENTERING?requestAnimationFrame(c):c();let l=()=>{e.isDummy&&r?.contains(e)&&(e.removedAfterAnimation=!0,r.removeChild(e))},u=!1,d=e=>{!u&&t.callback&&(t.callback(e),u=!0)};e.onanimationend=()=>{n&&wk(e),l(),d(!0),e.removeEventListener(`animationcancel`,f)};let f=()=>{l(),d(!1),e.removeEventListener(`animationcancel`,f)};e.onanimationstart=()=>{t.animationType===dC.ENTERING&&CC({visibility:`initial`},e),e.addEventListener(`animationcancel`,f)},i in OO||RO(i,a+o,()=>{n&&OD(e,mk(e)),l(),d(!1)})}function Ek(e,t,n){let{animationName:r}=t,i;switch(r){case`LinearTransition`:i=EO.LINEAR;break;case`SequencedTransition`:i=EO.SEQUENCED;break;case`FadingTransition`:i=EO.FADING;break;case`JumpingTransition`:i=EO.JUMPING;break;case`CurvedTransition`:i=EO.CURVED;break;case`EntryExitTransition`:i=EO.ENTRY_EXIT;break;default:i=EO.LINEAR}let{transitionKeyframeName:a,dummyTransitionKeyframeName:o}=pk(i,n);if(t.animationName=a,i===EO.CURVED){let{dummy:r,dummyAnimationConfig:i}=JO(e,t,n,o);Tk(r,i)}Tk(e,t)}function Dk(e){let t=e,n={scrollTopOffset:0,scrollLeftOffset:0};for(;t;)t.scrollTop!==0&&n.scrollTopOffset===0&&(n.scrollTopOffset=t.scrollTop),t.scrollLeft!==0&&n.scrollLeftOffset===0&&(n.scrollLeftOffset=t.scrollLeft),t=t.parentElement;return n}function Ok(e){let t=e.style.animationName;t&&t.startsWith(`REA-ENTERING-`)&&(e.style.animationName=``,e.style.animationDuration=``,e.style.animationDelay=``,e.style.animationFillMode=``,e.style.animationTimingFunction=``);for(let t of Array.from(e.children))t instanceof HTMLElement&&Ok(t)}function kk(e,t){let n=e.offsetParent,r=e.cloneNode();r.isDummy=!0,r.style.animationName=``,e.dummyClone=r,e.style.animationName=``;let i=new Map,a=e=>{i.set(e,{top:e.scrollTop,left:e.scrollLeft});for(let t of Array.from(e.children))a(t)};for(a(e),Ok(e);e.firstChild;)r.appendChild(e.firstChild);n?.appendChild(r);let o=t=>{let n=i.get(t===r?e:t);n&&(t.scrollTop=n.top,t.scrollLeft=n.left);for(let e of Array.from(t.children))o(e)};o(r);let s=mk(e),c=Dk(e),l=c.scrollTopOffset,u=s.scrollOffsets.scrollTopOffset;l!==u&&(s.top+=u-l);let d=c.scrollLeftOffset,f=s.scrollOffsets.scrollLeftOffset;d!==f&&(s.left+=f-d),TD.set(r,s),OD(r,s),Tk(r,t,!1,n)}function Ak(e,t){return e===dC.ENTERING?t.entering:e===dC.EXITING?t.exiting:e===dC.LAYOUT?t.layout:null}function jk(e,t){return e in OO||t?!1:(oC.warn(`Couldn't load entering/exiting animation. Current version supports only predefined animations with modifiers: duration, delay, easing, randomizeDelay, withCallback, reducedMotion.`),!0)}function Mk(e,t){let n=/([a-zA-Z-]+)(?=:)/g,r=new Set;for(let t of e.matchAll(n))r.add(t[1]);let i=Array.from(t).filter(e=>r.has(e));i.length!==0&&oC.warn(`${i.length===1?`Property`:`Properties`} [${i.join(`, `)}] may be overwritten by a layout animation. Please wrap your component with an animated view and apply the layout animation on the wrapper.`)}function Nk(e,t,n,r){switch(e){case dC.ENTERING:Tk(n,t,!0);break;case dC.LAYOUT:r.reversed=t.reversed,Ek(n,t,r);break;case dC.EXITING:kk(n,t)}}function Pk(e,t){let n=Ak(t,e);if(!n)return null;let r=t===dC.LAYOUT,i=n instanceof CD,a=n.initialValues!==void 0,o;if(o=i?ck(n.definitions,t):typeof n==`function`?n.presetName:n.constructor.presetName,a&&(o=lk(o,n.initialValues,t)),jk(o,r||i||a))return null;if(i){let e=Object.keys(n.definitions);e.includes(`100`)||e.includes(`to`)||oC.warn(`Neither '100' nor 'to' was specified in Keyframe definition. This may result in wrong final position of your component. One possible solution is to duplicate last timestamp in definition as '100' (or 'to')`)}return Sk(o,t,n)}function Fk(e,t,n,r){let i=Pk(e,n);Ck(t,e.entering),i?.animationName in OO&&Mk(OO[i?.animationName].style,t.style),i?Nk(n,i,t,r):ED(t,0)}function Ik(e,t,n){if(!e.layout)return;let r=t.getBoundingClientRect();if(UO(r,n))return;let i=e.layout.enteringV?.presetName,a=e.layout.exitingV?.presetName,o=(n.width-r.width)/2,s=(n.height-r.height)/2,c={translateX:n.x-r.x+o,translateY:n.y-r.y+s,scaleX:n.width/r.width,scaleY:n.height/r.height,reversed:!1,easingX:e.layout.easingXV?.[fE]??`ease`,easingY:e.layout.easingYV?.[fE]??`ease`,entering:i,exiting:a};Fk(e,t,dC.LAYOUT,c)}function Lk(){let e=[],t=[];return{update(n,r){r?t.push(n):e.push(n),e.length+t.length===1&&(GS()?this.flush():setImmediate(this.flush))},flush(){nT(e.concat(t)),e.length=0,t.length=0}}}var Rk;if(WS())Rk=()=>{};else{let e=Lk();Rk=(t,n,r,i,a)=>e.update({viewTag:t,type:n,config:r?GC(r):void 0,sharedTransitionTag:i},a)}var zk=0,Bk=1,Vk=2;function Hk(e){"worklet";let t=Array.isArray(e)?e:[`50%`,`50%`,0];if(typeof e==`string`){let n=e,r=/(top|bottom|left|right|center|\d+(?:%|px)|0)/gi,i=[`50%`,`50%`,0],a=zk,o;for(;o=r.exec(n);){let e=a+1,t=o[0],s=t.toLowerCase();switch(s){case`left`:case`right`:if(a!==zk)throw new Y(`Transform-origin ${t} can only be used for x-position`);i[zk]=s===`left`?0:`100%`;break;case`top`:case`bottom`:if(a===Vk)throw new Y(`Transform-origin ${t} can only be used for y-position`);if(i[Bk]=s===`top`?0:`100%`,a===zk){let t=r.exec(n);if(t==null)break;switch(t?.[0].toLowerCase()){case`left`:i[zk]=0;break;case`right`:i[zk]=`100%`;break;case`center`:i[zk]=`50%`;break;default:throw new Y(`Could not parse transform-origin: ${n}`)}e=Vk}break;case`center`:if(a===Vk)throw new Y(`Transform-origin value ${t} cannot be used for z-position`);i[a]=`50%`;break;default:if(t.endsWith(`%`))i[a]=t;else{let e=parseFloat(t);if(isNaN(e))throw new Y(`Invalid numeric value in transform-origin: ${t}`);i[a]=e}}a=e}t=i}if(typeof e!=`string`&&!Array.isArray(e))throw new Y(`Invalid transformOrigin type: ${typeof e}`);return t}var Uk=WS()?(e,t,n)=>{"worklet";e.value?.forEach(e=>{let r=e.tag;CC(t,r,n)})}:(e,t)=>{"worklet";kT(t),`transformOrigin`in t&&(t.transformOrigin=Hk(t.transformOrigin)),globalThis.UpdatePropsManager.update(e,t)},Wk=(e,t,n,r)=>{r.forEach(e=>{e(t)}),n.current.value={...n.current.value,...t},Uk(e,t)},Gk=Uk,Kk=GS()?()=>{"worklet";let e=[];return{update(t,n){t.value.forEach(t=>{e.push({shadowNodeWrapper:t.shadowNodeWrapper,updates:n}),e.length===1&&queueMicrotask(this.flush)})},flush(){globalThis._updatePropsFabric(e),e.length=0}}}:()=>{"worklet";let e=[];return{update(t,n){t.value.forEach(t=>{e.push({tag:t.tag,name:t.name||`RCTView`,updates:n}),e.length===1&&queueMicrotask(this.flush)})},flush(){globalThis._updatePropsPaper(e),e.length=0}}};if(WS()){let e=()=>{if(!LS())throw new Y("`UpdatePropsManager` is not available on non-native platform.")};globalThis.UpdatePropsManager=new Proxy({},{get:e,set:()=>(e(),!1)})}else vw(()=>{"worklet";globalThis.UpdatePropsManager=Kk()})();function qk(){let e=Mw([]),t=new Set;return{shareableViewDescriptors:e,add:n=>{t.add(n.tag),e.modify(e=>{"worklet";let t=e.findIndex(e=>e.tag===n.tag);return t===-1?e.push(n):e[t]=n,e},!1)},remove:n=>{t.delete(n),e.modify(e=>{"worklet";let t=e.findIndex(e=>e.tag===n);return t!==-1&&e.splice(t,1),e},!1)},has:e=>t.has(e)}}function Jk(e){if(!Array.isArray(e))return[e];let t=[],n=e=>{e.forEach(e=>{Array.isArray(e)?n(e):t.push(e)})};return n(e),t}var Yk=(e,t)=>typeof t==`function`||typeof t==`object`?t!=null&&e in t:!1;function Xk(e){return Array.isArray(e)?e.some(e=>eA(e)):!1}function Zk(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!0;for(let n of Object.keys(e))if(e[n]!==t[n])return!0;return!1}function Qk(e){"worklet";let t={};for(let[n,r]of Object.entries(e))t[n]=Pw(r)?r.value:Array.isArray(r)?r.map(e=>Qk(e)):typeof r==`object`?Qk(r):r;return t}function $k(e){let t={};for(let n in e){let r=e[n];n===`style`?Jk(e.style??[]).forEach(e=>{if(e)for(let[n,r]of Object.entries(e))(Pw(r)||n===`transform`&&Xk(r))&&(t[n]=r)}):Pw(r)&&(t[n]=r)}return t}function eA(e){return e?Object.keys(e).some(t=>{let n=e[t];return Pw(n)||t===`transform`&&Xk(n)}):!1}function tA(e,t){if(t)return Qk(e);let n={};for(let[t,r]of Object.entries(e))!Pw(r)&&!(t===`transform`&&Xk(r))&&(n[t]=r);return n}var nA=class{_inlinePropsViewDescriptors=null;_inlinePropsMapperId=null;_inlineProps={};attachInlineProps(e,t){let n=$k(e.props);if(Zk(n,this._inlineProps)){if(!this._inlinePropsViewDescriptors){this._inlinePropsViewDescriptors=qk();let{viewTag:e,viewName:r,shadowNodeWrapper:i,viewConfig:a}=t;Object.keys(n).length&&a&&gD(a),this._inlinePropsViewDescriptors.add({tag:e,name:r,shadowNodeWrapper:i})}let e=this._inlinePropsViewDescriptors.shareableViewDescriptors,r=()=>{"worklet";let t=Qk(n);Gk(e,t)};this._inlineProps=n,this._inlinePropsMapperId&&zw(this._inlinePropsMapperId),this._inlinePropsMapperId=null,Object.keys(n).length&&(this._inlinePropsMapperId=Rw(r,Object.values(n)))}}detachInlineProps(){this._inlinePropsMapperId&&zw(this._inlinePropsMapperId)}},rA=class{addOnJSPropsChangeListener(e){}removeOnJSPropsChangeListener(e){}},iA=WS();function aA(e,t){return n=>{t({...n.nativeEvent,eventName:e})}}var oA=iA?class{constructor(e,t=[]){this.worklet=e,this.eventNames=t,this.listeners={},this.setupWebListeners()}setupWebListeners(){this.listeners={},this.eventNames.forEach(e=>{this.listeners[e]=aA(e,this.worklet)})}updateEventHandler(e,t){this.worklet=e,this.eventNames=t,this.setupWebListeners()}registerForEvents(e,t){}unregisterFromEvents(e){}}:class{#e;#t;constructor(e,t){this.worklet=e,this.eventNames=t,this.#e=new Set,this.#t=new Map}updateEventHandler(e,t){this.worklet=e,this.eventNames=t,this.#t.forEach(e=>{e.forEach(e=>$w(e))}),Array.from(this.#e).forEach(e=>{let t=this.eventNames.map(t=>Qw(this.worklet,t,e));this.#t.set(e,t)})}registerForEvents(e,t){this.#e.add(e);let n=this.eventNames.map(t=>Qw(this.worklet,t,e));if(this.#t.set(e,n),this.eventNames.length===0&&t){let n=Qw(this.worklet,t,e);this.#t.set(e,[n])}}unregisterFromEvents(e){this.#e.delete(e),this.#t.get(e)?.forEach(e=>{$w(e)}),this.#t.delete(e)}},sA=class{#e;#t;#n=-1;constructor(e,t){this.#e=e,this.#t=t,this.#n=this.getEventViewTag()}attachEvents(){lA(this.#e.props,(e,t)=>{t.registerForEvents(this.#n,e)})}detachEvents(){lA(this.#e.props,(e,t)=>{t.unregisterFromEvents(this.#n)})}updateEvents(e){let t=this.getEventViewTag(!0);if(this.#n!==t){lA(e,(e,t)=>{t.unregisterFromEvents(this.#n)}),this.#n=t,this.attachEvents();return}lA(e,(e,t)=>{let n=this.#e.props[e];n?cA(n)&&n.workletEventHandler!==t&&(t.unregisterFromEvents(this.#n),n.workletEventHandler.registerForEvents(this.#n)):t.unregisterFromEvents(this.#n)}),lA(this.#e.props,(t,n)=>{e[t]||n.registerForEvents(this.#n)})}getEventViewTag(e=!1){let t=this.#e._componentRef;if(t?.getScrollableNode){let e=t.getScrollableNode();return typeof e==`number`?e:oD(e)??-1}return this.#t?.setNativeProps?oD(this.#e)??-1:e?t?.__nativeTag||t?._nativeTag?t.__nativeTag??t._nativeTag??-1:oD(t)??-1:this.#e.getComponentViewTag()}};function cA(e){return Yk(`workletEventHandler`,e)&&e.workletEventHandler instanceof oA}function lA(e,t){for(let n in e){let r=e[n];cA(r)&&t(n,r.workletEventHandler)}}function uA(){}var dA=class{_initialPropsMap=new Map;filterNonAnimatedProps(e){let t=e.props,n={};for(let r in t){let i=t[r];if(r===`style`){let i=t.style;n[r]=Jk(i??[]).map(t=>{if(t&&t.viewDescriptors){let n=t;return e._isFirstRender&&this._initialPropsMap.set(n,{...n.initial.value,...RE(n.initial.updater)}),this._initialPropsMap.get(n)??{}}return eA(t)?tA(t,e._isFirstRender):t})}else if(r===`animatedProps`){let e=t.animatedProps;e.initial!==void 0&&Object.keys(e.initial.value).forEach(t=>{n[t]=e.initial?.value[t]})}else Yk(`workletEventHandler`,i)&&i.workletEventHandler instanceof oA?i.workletEventHandler.eventNames.length>0?i.workletEventHandler.eventNames.forEach(e=>{n[e]=Yk(`listeners`,i.workletEventHandler)?i.workletEventHandler.listeners[e]:uA}):n[r]=uA:Pw(i)?e._isFirstRender&&(n[r]=i.value):(r!==`onGestureHandlerStateChange`||!RS())&&(n[r]=i)}return n}};function fA({getForwardedRef:e,setLocalRef:t}){return function(n){let r=e();t(n),typeof r==`function`?r(n):typeof r==`object`&&r&&(r.current=n)}}var pA=u(iD()),mA=zS(),hA=LS(),gA=KS(),_A=WS();mA&&PO();function vA(e){return e.filter(e=>e?.viewDescriptors)}var yA=0;function bA(e,t){gA||(0,pA.default)(typeof e!=`function`||e.prototype&&e.prototype.isReactComponent,`Looks like you're passing a function component \`${e.name}\` to \`createAnimatedComponent\` function which supports only class components. Please wrap your function component with \`React.forwardRef()\` or use a class component instead.`);class n extends b.Component{_styles=null;_isFirstRender=!0;jestAnimatedStyle={value:{}};jestAnimatedProps={value:{}};_componentRef=null;_hasAnimatedRef=!1;_componentDOMRef=null;_sharedElementTransition=null;_jsPropsUpdater=new rA;_InlinePropManager=new nA;_PropsFilter=new dA;static contextType=cD;reanimatedID=yA++;_willUnmount=!1;constructor(e){super(e),hA&&(this.jestAnimatedStyle={value:{}},this.jestAnimatedProps={value:{}});let t=this.context?.current;GS()&&!t&&this._configureLayoutAnimation(dC.ENTERING,this.props.entering)}componentDidMount(){if(mA||(this._NativeEventsManager=new sA(this,t)),this._NativeEventsManager?.attachEvents(),this._jsPropsUpdater.addOnJSPropsChangeListener(this),this._attachAnimatedStyles(),this._InlinePropManager.attachInlineProps(this,this._getViewInfo()),this._configureLayoutAnimation(dC.LAYOUT,this.props.layout),this._configureLayoutAnimation(dC.EXITING,this.props.exiting),mA&&this._componentDOMRef){let e=this._componentDOMRef,t=e.dummyClone;for(;t?.firstChild;)e.appendChild(t.firstChild);if(delete e.dummyClone,this.props.exiting&&wk(e),!this.props.entering){this._isFirstRender=!1;return}if(vk(this.props.entering)){this._isFirstRender=!1,this.props.entering.callbackV?.(!0);return}this.context?.current?e.style&&(e.style.visibility=`initial`):Fk(this.props,e,dC.ENTERING)}let e=this._viewInfo?.viewTag;!_A&&GS()&&this._willUnmount&&typeof e==`number`&&oT(e),this._isFirstRender=!1}componentWillUnmount(){this._NativeEventsManager?.detachEvents(),this._jsPropsUpdater.removeOnJSPropsChangeListener(this),this._detachStyles(),this._InlinePropManager.detachInlineProps(),this.props.sharedTransitionTag&&this._configureSharedTransition(!0),this._sharedElementTransition?.unregisterTransition(this.getComponentViewTag(),!0);let e=this.props.exiting;if(mA&&this._componentDOMRef&&e){if(vk(e)){e.callbackV?.(!0);return}HO(),Fk(this.props,this._componentDOMRef,dC.EXITING)}else e&&!mA&&!GS()&&((`getReduceMotion`in e&&typeof e.getReduceMotion==`function`?VE(e.getReduceMotion()):VE())||this._configureLayoutAnimation(dC.EXITING,e));let t=this._viewInfo?.shadowNodeWrapper;!_A&&GS()&&t&&aT(t),this._willUnmount=!0}getComponentViewTag(){return this._getViewInfo().viewTag}_detachStyles(){let e=this.getComponentViewTag();if(e!==-1&&this._styles!==null){for(let t of this._styles)t.viewDescriptors.remove(e);this.props.animatedProps?.viewDescriptors&&this.props.animatedProps.viewDescriptors.remove(e)}}_updateFromNative(e){t?.setNativeProps?t.setNativeProps(this._componentRef,e):this._componentRef?.setNativeProps?.(e)}_getViewInfo(){if(this._viewInfo!==void 0)return this._viewInfo;let e,t,n=null,r,i=null;if(_A)e=this._componentRef,i=this._componentDOMRef,t=null,n=null,r=null;else throw new Y(`Cannot find host instance for this component. Maybe it renders nothing?`);return this._viewInfo={viewTag:e,viewName:t,shadowNodeWrapper:n,viewConfig:r},i&&(this._viewInfo.DOMElement=i),this._viewInfo}_attachAnimatedStyles(){let e=this.props.style?vA(Jk(this.props.style)):[],t=this.props.animatedProps,n=this._styles;this._styles=e;let r=this._animatedProps;this._animatedProps=t;let{viewTag:i,viewName:a,shadowNodeWrapper:o,viewConfig:s}=this._getViewInfo();(this.props.animatedProps?.viewDescriptors||e.length)&&s&&gD(s);let c=new Set(e),l=e=>e.viewDescriptors.has(i);if(n){if(e.length===1&&n.length===1&&e[0]===n[0]&&l(n[0]))return;for(let t of n)!e.some(e=>e===t)&&l(t)&&t.viewDescriptors.remove(i)}t&&hA&&(this.jestAnimatedProps.value={...this.jestAnimatedProps.value,...t?.initial?.value},t?.jestAnimatedValues&&(t.jestAnimatedValues.current=this.jestAnimatedProps)),c.forEach(e=>{e.viewDescriptors.add({tag:i,name:a,shadowNodeWrapper:o}),hA&&(this.jestAnimatedStyle.value={...this.jestAnimatedStyle.value,...e.initial.value},e.jestAnimatedValues.current=this.jestAnimatedStyle)}),r&&r!==this.props.animatedProps&&r.viewDescriptors.remove(i),this.props.animatedProps?.viewDescriptors&&this.props.animatedProps.viewDescriptors.add({tag:i,name:a,shadowNodeWrapper:o})}componentDidUpdate(e,t,n){if(this._configureLayoutAnimation(dC.LAYOUT,this.props.layout,e.layout),this._configureLayoutAnimation(dC.EXITING,this.props.exiting,e.exiting),(this.props.sharedTransitionTag!==void 0||e.sharedTransitionTag!==void 0)&&this._configureSharedTransition(),this._NativeEventsManager?.updateEvents(e),this._attachAnimatedStyles(),this._InlinePropManager.attachInlineProps(this,this._getViewInfo()),mA&&this.props.exiting&&this._componentDOMRef&&wk(this._componentDOMRef),mA&&n&&this.props.layout){if(vk(this.props.layout)){this.props.layout.callbackV?.(!0);return}Ik(this.props,this._componentDOMRef,n)}}_configureLayoutAnimation(e,t,r){if(!(mA||t===r)){if(this._isReducedMotion(t)){if(!r)return;t=void 0}Rk(GS()&&e===dC.ENTERING?this.reanimatedID:this.getComponentViewTag(),e,t&&aD(t,e===dC.LAYOUT?void 0:this.props?.style,n.displayName))}}_configureSharedTransition(e=!1){if(mA)return;let{sharedTransitionTag:t}=this.props;if(!t){this._sharedElementTransition?.unregisterTransition(this.getComponentViewTag(),e),this._sharedElementTransition=null;return}let n=this.props.sharedTransitionStyle??this._sharedElementTransition??new wD;n.registerTransition(this.getComponentViewTag(),t,e),this._sharedElementTransition=n}_resolveComponentRef=e=>{let t=e;return t&&t.getAnimatableRef?(this._hasAnimatedRef=!0,t.getAnimatableRef()):(_A&&(this._componentDOMRef=t&&t.elementRef?t.elementRef.current:e),t)};_setComponentRef=fA({getForwardedRef:()=>this.props.forwardedRef,setLocalRef:e=>{if(!e)return;e!==this._componentRef&&(this._componentRef=this._resolveComponentRef(e),this._viewInfo=void 0);let{layout:t,entering:n,exiting:r,sharedTransitionTag:i}=this.props;if(t||n||r||i){_A||tT(!0,!1),i&&this._configureSharedTransition();let e=this.context?.current;n&&!GS()&&!e&&!mA&&this._configureLayoutAnimation(dC.ENTERING,this.props.entering)}}});_isReducedMotion(e){return e&&`getReduceMotion`in e&&typeof e.getReduceMotion==`function`?VE(e.getReduceMotion()):VE()}getSnapshotBeforeUpdate(){return mA&&this.props.layout&&this._componentDOMRef?.getBoundingClientRect?this._componentDOMRef.getBoundingClientRect():null}render(){let t=this._PropsFilter.filterNonAnimatedProps(this);hA&&(t.jestAnimatedStyle=this.jestAnimatedStyle,t.jestAnimatedProps=this.jestAnimatedProps),this._isFirstRender&&mA&&t.entering&&!vk(t.entering)&&(t.style=Array.isArray(t.style)?t.style.concat([{visibility:`hidden`}]):{...t.style??{},visibility:`hidden`});let n=Yl.select({web:{},default:{collapsable:!1}}),r=this.context?.current||!GS()?void 0:`${this.reanimatedID}`,i=hA?{jestInlineStyle:this.props.style&&xA(this.props.style),jestAnimatedStyle:this.jestAnimatedStyle,jestAnimatedProps:this.jestAnimatedProps}:{};return(0,O.jsx)(e,{nativeID:r,...t,...i,ref:this._setComponentRef,...n})}}n.displayName=`AnimatedComponent(${e.displayName||e.name||`Component`})`;let r=kC((e,t)=>(0,O.jsx)(n,{...e,...t===null?null:{forwardedRef:t}}));return r.displayName=e.displayName||e.name||`Component`,r}function xA(e){return e&&(Array.isArray(e)?e.filter(e=>!(e&&`viewDescriptors`in e)).map(e=>Array.isArray(e)?xA(e):e):e?.viewDescriptors?{}:e)}var SA=bA(Ed),CA=bA(gp),wA=(e,t)=>n=>(0,O.jsx)(SA,{layout:e?.current,onLayout:n.onLayout,style:[n.style,typeof t?.current==`function`?t?.current({index:n.index,item:n.item}):t?.current],children:n.children}),TA=kC(function(e,t){let{itemLayoutAnimation:n,skipEnteringExitingAnimations:r,CellRendererComponentStyle:i,...a}=e;`scrollEventThrottle`in a||(a.scrollEventThrottle=1);let o=(0,b.useRef)(n);o.current=n;let s=(0,b.useRef)(i);s.current=i;let c=b.useMemo(()=>wA(o,s),[]),l=(0,O.jsx)(CA,{ref:t,...a,CellRendererComponent:c});return r===void 0?l:(0,O.jsx)(uD,{skipEntering:!0,skipExiting:!0,children:l})}),EA=bA(nh);function DA(e,t=[],n=!1){let r=(0,b.useRef)(null);if(r.current===null)r.current={workletEventHandler:new oA(e,t)};else if(n){let n=r.current.workletEventHandler;n.updateEventHandler(e,t),r.current={workletEventHandler:n}}return r.current}function OA(e){return Object.values(e).reduce((e,t)=>e+t.__workletHash.toString(),``)}function kA(e){"worklet";return Array.isArray(e)?e.some(kA):typeof e==`object`&&e?e.onFrame!==void 0||Object.values(e).some(kA):!1}function AA(e,t){"worklet";let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(e[n[r]]!==t[n[r]])return!1;return!0}var jA=e=>{"worklet";return e.endsWith(`px`)||!isNaN(Number(e))};function MA(e){"worklet";let t=[];for(let n of e.split(/,(?![^()]*\))/).map(e=>e.trim()).filter(e=>e!==``)){let e={offsetX:0,offsetY:0},r=null,i=null,a=!1,o=0,s=n.split(/\s+(?![^(]*\))/);for(let t of s)if(jA(t))switch(o){case 0:r=t,o++;break;case 1:if(a)return[];i=t,o++;break;case 2:if(a)return[];e.blurRadius=t,o++;break;case 3:if(a)return[];e.spreadDistance=t,o++;break;default:return[]}else if(t===`inset`){if(e.inset)return[];r!==null&&(a=!0),e.inset=!0;continue}else{if(e.color)return[];r!=null&&(a=!0),e.color=t;continue}if(r===null||i===null)return[];e.offsetX=r,e.offsetY=i,t.push(e)}return t}function NA(e){"worklet";let t=/([+-]?\d*(\.\d+)?)([\w\W]+)?/g.exec(e);return!t||!jA(e)?null:Number(t[1])}function PA(e){"worklet";let t=[],n=e.boxShadow;if(n===null)return t;let r;if(typeof n==`string`)r=MA(n.replace(/\n/g,` `));else if(Array.isArray(n))r=n;else throw new Y(`Box shadow value must be an array of shadow objects or a string. Received: ${JSON.stringify(n)}`);for(let e of r){let n={offsetX:0,offsetY:0},r;for(let t in e)switch(t){case`offsetX`:if(r=typeof e.offsetX==`string`?NA(e.offsetX):e.offsetX,r===null)return[];n.offsetX=r;break;case`offsetY`:if(r=typeof e.offsetY==`string`?NA(e.offsetY):e.offsetY,r===null)return[];n.offsetY=r;break;case`spreadDistance`:if(r=typeof e.spreadDistance==`string`?NA(e.spreadDistance):e.spreadDistance,r===null)return[];n.spreadDistance=r;break;case`blurRadius`:if(r=typeof e.blurRadius==`string`?NA(e.blurRadius):e.blurRadius,r===null||r<0)return[];n.blurRadius=r;break;case`color`:n.color=e.color;break;case`inset`:n.inset=e.inset}t.push(n)}e.boxShadow=t}function FA(e){let[t]=(0,b.useState)(()=>Mw(e));return(0,b.useEffect)(()=>()=>{YE(t)},[t]),t}var IA=WS();function LA(e,t,n,r){"worklet";if(Array.isArray(t)&&t.forEach((t,i)=>{LA(e,t,n&&n[i],r&&r[i])}),typeof t==`object`&&t.onFrame){let i=t,a=i.current;r!=null&&(typeof r==`object`?r.value===void 0?r.onFrame!==void 0&&(n?.current===void 0?r?.current!==void 0&&(a=r.current):a=n.current):a=r.value:a=r),i.callStart=e=>{i.onStart(i,a,e,n)},i.callStart(e),i.callStart=null}else typeof t==`object`&&Object.keys(t).forEach(i=>LA(e,t[i],n&&n[i],r&&r[i]))}function RA(e,t,n,r,i,a){"worklet";if(!i.value)return!0;if(Array.isArray(e)){r[n]=[];let o=!0;return a=n===`boxShadow`,e.forEach((e,s)=>{RA(e,t,s,r[n],i,a)||(o=!1)}),o}if(typeof e==`object`&&e.onFrame){let i=!0;return e.finished||(e.callStart&&=(e.callStart(t),null),i=e.onFrame(e,t),e.timestamp=t,i&&(e.finished=!0,e.callback&&e.callback(!0))),r[n]=a?{...e.current}:e.current,i}if(typeof e==`object`){r[n]={};let o=!0;return Object.keys(e).forEach(s=>{RA(e[s],t,s,r[n],i,a)||(o=!1)}),o}return r[n]=e,!0}function zA(e,t,n,r,i=!1){"worklet";let a=n.animations??{},o=t()??{},s=n.last,c={},l=!1,u,d=!1;!IA&&o.boxShadow&&PA(o);for(let e in o){let t=o[e];kA(t)?(u=globalThis.__frameTimestamp||globalThis._getAnimationTimestamp(),LA(u,t,a[e],s[e]),a[e]=t,l=!0):(d=!0,c[e]=t,delete a[e])}if(l){let t=i=>{let{animations:a,last:o,isAnimationCancelled:s}=n;if(s){n.isAnimationRunning=!1;return}let c={},l=!0;for(let e in a)RA(a[e],i,e,c,r)?(Array.isArray(c[e])?c[e].forEach(t=>{for(let n in t)(!o[e]||typeof o[e]!=`object`)&&(o[e]={}),o[e][n]=t[n]}):o[e]=c[e],delete a[e]):l=!1;c&&Gk(e,c),l?n.isAnimationRunning=!1:requestAnimationFrame(t)};n.animations=a,n.isAnimationRunning||(n.isAnimationCancelled=!1,n.isAnimationRunning=!0,t(u)),d&&Gk(e,c)}else n.isAnimationCancelled=!0,n.animations=[],AA(s,o)||Gk(e,o,i);n.last=o}function BA(e,t,n,r,i,a){"worklet";let o=n.animations??{},s=t()??{},c=n.last,l=!1,u;Object.keys(o).forEach(e=>{let t=s[e];kA(t)||delete o[e]}),Object.keys(s).forEach(e=>{let t=s[e];kA(t)&&(u=globalThis.__frameTimestamp||globalThis._getAnimationTimestamp(),LA(u,t,o[e],c[e]),o[e]=t,l=!0)});function d(t){let{animations:o,last:s,isAnimationCancelled:c}=n;if(c){n.isAnimationRunning=!1;return}let l={},u=!0;Object.keys(o).forEach(e=>{RA(o[e],t,e,l,r)?(s[e]=l[e],delete o[e]):u=!1}),Object.keys(l).length&&Wk(e,l,i,a),u?n.isAnimationRunning=!1:requestAnimationFrame(d)}l?(n.animations=o,n.isAnimationRunning||(n.isAnimationCancelled=!1,n.isAnimationRunning=!0,d(u))):(n.isAnimationCancelled=!0,n.animations=[]),n.last=s,AA(c,s)||Wk(e,s,i,a)}function VA(e,t){if(Array.isArray(e))for(let n of e)VA(n,t);else if(typeof e==`object`&&e&&e.value===void 0)for(let t of Object.keys(e))VA(e[t],t);else if(t!==void 0&&typeof e==`object`&&e&&e.value!==void 0)throw new Y(`Invalid value passed to \`${t}\`, maybe you forgot to use \`.value\`?`)}function HA(e,t,n,r=!1){let i=(0,b.useRef)(null),a=Object.values(e.__closure??{});IA&&!a.length&&t?.length&&(a=t);let o=n?Array.isArray(n)?n:[n]:[],s=n?OA(o):null,c=FA(!0),l=(0,b.useRef)({});if(t?t.push(e.__workletHash):t=[...a,e.__workletHash],s&&t.push(s),!i.current){let t=RE(e);i.current={initial:{value:t,updater:e},remoteState:lw({last:t,animations:{},isAnimationCancelled:!1,isAnimationRunning:!1}),viewDescriptors:qk()}}let{initial:u,remoteState:d,viewDescriptors:f}=i.current,p=f.shareableViewDescriptors;t.push(p),(0,b.useEffect)(()=>{let t,i=e;n&&(i=()=>{"worklet";let t=e();return o.forEach(e=>{e(t)}),t}),t=LS()?()=>{"worklet";BA(p,e,d,c,l,o)}:()=>{"worklet";zA(p,i,d,c,r)};let s=Rw(t,a);return()=>{zw(s)}},t),(0,b.useEffect)(()=>(c.value=!0,()=>{c.value=!1}),[c]),VA(u.value);let m=(0,b.useRef)(null);return m.current||=LS()?{viewDescriptors:f,initial:u,jestAnimatedValues:l,toJSON:UA}:{viewDescriptors:f,initial:u},m.current}function UA(){return`{}`}var WA=WS();function GA(e){return e.getScrollableNode?e.getScrollableNode():e.getNativeScrollRef?e.getNativeScrollRef():e}function KA(e){let t=(0,b.useRef)(new Map).current,n=(0,b.useRef)(-1),r=(0,b.useRef)(null);if(!r.current){let i=r=>{if(r&&(n.current=e(r),i.getTag=()=>oD(r),i.current=r,t.size)){let e=i?.getTag?.()??null;t.forEach((n,r)=>{n?.(),t.set(r,r(e))})}return n.current};i.observe=e=>{let n=e(i?.getTag?.()??null);return t.set(e,n),()=>{t.get(e)?.(),t.delete(e)}},i.current=null,r.current=i}return r.current}var qA=VS()||HS();function JA(){let[e]=(0,b.useState)(()=>!GS()&&qA?Mw(null):null),[t]=(0,b.useState)(()=>Mw(null)),n=KA(n=>{let r=GS()?_D:e=>oD(GA(e));return t.value=r(n),e&&(e.value=n?.viewConfig?.uiViewClassName||`RCTView`),t.value});if(!NC.get(n)){let r=GC({__init:()=>{"worklet";let n=()=>t.value;return e&&(n.viewName=e),n}});NC.set(n,r)}return n}function YA(){return KA(e=>GA(e))}var XA=WA?YA:JA,ZA=zS(),QA=`animatedRef is not initialized in useScrollViewOffset. Make sure to pass the animated ref to the scrollable component to get scroll offset updates.`,$A=ZA?ej:tj;function ej(e,t){let n=FA(0),r=(0,b.useRef)(t??n).current,i=(0,b.useCallback)(()=>{"worklet";if(e){let t=nj(e.current);r.value=t.scrollLeft===0?t.scrollTop:t.scrollLeft}},[e,r]);return(0,b.useEffect)(()=>{if(e)return e.observe(t=>{if(!t){oC.warn(QA);return}let n=nj(e.current);return n.addEventListener(`scroll`,i),()=>{n.removeEventListener(`scroll`,i)}})},[e,i]),r}function tj(e,t){let n=FA(0),r=(0,b.useRef)(t??n).current,i=DA(e=>{"worklet";r.value=e.contentOffset.x===0?e.contentOffset.y:e.contentOffset.x},rj);return(0,b.useEffect)(()=>{if(e)return e.observe(e=>{if(!e){oC.warn(QA);return}return i.workletEventHandler.registerForEvents(e),()=>{i.workletEventHandler.unregisterFromEvents(e)}})},[e,i]),r}function nj(e){return e?.getScrollableNode()??e}var rj=[`onScroll`,`onScrollBeginDrag`,`onScrollEndDrag`,`onMomentumScrollBegin`,`onMomentumScrollEnd`],ij=bA(nf),aj=kC((e,t)=>{let{scrollViewOffset:n,...r}=e,i=t===null?XA():t;return n&&$A(i,n),`scrollEventThrottle`in r||(r.scrollEventThrottle=1),(0,O.jsx)(ij,{ref:i,...r})}),oj=bA(gh),sj=c({FlatList:()=>TA,Image:()=>EA,ScrollView:()=>aj,Text:()=>oj,View:()=>SA,addWhitelistedNativeProps:()=>pD,addWhitelistedUIProps:()=>mD,createAnimatedComponent:()=>bA}),cj=(function(e){return e.IDENTITY=`identity`,e.CLAMP=`clamp`,e.EXTEND=`extend`,e})({});function lj(e,t,n,r,i,a){"worklet";switch(e){case cj.IDENTITY:return a;case cj.CLAMP:return t*n<t*r?r:i;case cj.EXTEND:default:return n}}function uj(e){"worklet";return e===cj.EXTEND||e===cj.CLAMP||e===cj.IDENTITY}function dj(e){"worklet";let t={extrapolateLeft:cj.EXTEND,extrapolateRight:cj.EXTEND};if(!e)return t;if(typeof e==`string`){if(!uj(e))throw new Y(`Unsupported value for "interpolate"
|
|
35
|
+
Supported values: ["extend", "clamp", "identity", Extrapolatation.CLAMP, Extrapolatation.EXTEND, Extrapolatation.IDENTITY]
|
|
36
|
+
Valid example:
|
|
37
|
+
interpolate(value, [inputRange], [outputRange], "clamp")`);return t.extrapolateLeft=e,t.extrapolateRight=e,t}if(e.extrapolateLeft&&!uj(e.extrapolateLeft)||e.extrapolateRight&&!uj(e.extrapolateRight))throw new Y(`Unsupported value for "interpolate"
|
|
38
|
+
Supported values: ["extend", "clamp", "identity", Extrapolatation.CLAMP, Extrapolatation.EXTEND, Extrapolatation.IDENTITY]
|
|
39
|
+
Valid example:
|
|
40
|
+
interpolate(value, [inputRange], [outputRange], {
|
|
41
|
+
extrapolateLeft: Extrapolation.CLAMP,
|
|
42
|
+
extrapolateRight: Extrapolation.IDENTITY
|
|
43
|
+
}})`);return Object.assign(t,e),t}function fj(e,t,n){"worklet";let{leftEdgeInput:r,rightEdgeInput:i,leftEdgeOutput:a,rightEdgeOutput:o}=t;if(i-r===0)return a;let s=a+(e-r)/(i-r)*(o-a),c=o>=a?1:-1;return c*s<c*a?lj(n.extrapolateLeft,c,s,a,o,e):c*s>c*o?lj(n.extrapolateRight,c,s,a,o,e):s}function pj(e,t,n,r){"worklet";if(t.length<2||n.length<2)throw new Y(`Interpolation input and output ranges should contain at least two values.`);let i=dj(r),a=t.length,o={leftEdgeInput:t[0],rightEdgeInput:t[1],leftEdgeOutput:n[0],rightEdgeOutput:n[1]};if(a>2){if(e>t[a-1])o.leftEdgeInput=t[a-2],o.rightEdgeInput=t[a-1],o.leftEdgeOutput=n[a-2],o.rightEdgeOutput=n[a-1];else for(let r=1;r<a;++r)if(e<=t[r]){o.leftEdgeInput=t[r-1],o.rightEdgeInput=t[r],o.leftEdgeOutput=n[r-1],o.rightEdgeOutput=n[r];break}}return fj(e,o,i)}Xw(DC);var mj=sj,hj=Symbol(`reanimated-component`),gj=new Map;function _j(e){if(!gj.has(e)){let t=mj.createAnimatedComponent(e);gj.set(e,t)}return gj.get(e)}function vj({as:e,...t}){let n=_j(e);return(0,O.jsx)(n,{...t})}vj.of=function(e){return hj in e?e[hj]:_j(e)};function yj(e,t,n=[]){let r=FA(e);return(0,b.useEffect)(()=>{let e=t(r);if(typeof e==`function`)return e;e!==void 0&&(r.value=e)},n),r}var bj=1e3;function xj(e,t){let n=(0,b.useRef)(e);return yj(n.current,r=>{if(r.value=n.current,e===n.current)return;r.value=XE(e,t);let i=++bj;return r.addListener(i,e=>{n.current=e}),()=>{r.removeListener(i)}},[e])}function Sj(e,t){return xj(w(e),t)}var Cj=new Sa(`size`).use(Number).map({xs:8,sm:16,md:24,lg:48,xl:96}).setToStyle(e=>({width:e,height:e})).setDefault(`md`),wj=new Sa(`color`).use(String).setToStyle(e=>({borderTopColor:e})),Tj=new ay().add(q.collection).add(Cj).add(wj);function Ej(e){let t=FA(`0deg`),n=HA(()=>({transform:[{rotateZ:t.value}]}),[t]);(0,b.useEffect)(()=>{t.value=yD(XE(`360deg`,{duration:1e3,easing:pE.linear}),-1)},[t]);let[r,i,a]=ly(Tj,e);return(0,O.jsx)(mj.View,{style:[Dj.spinner,r,i,n],...a})}var Dj=yl.create({spinner:{borderWidth:2,borderColor:`transparent`,borderTopColor:`blue`,borderRadius:`100%`}}),Oj;(function(e){e.Solid=`solid`,e.Outline=`outline`,e.Ghost=`ghost`,e.SolidPrimary=`solid.primary`,e.OutlinePrimary=`outline.primary`,e.GhostPrimary=`ghost.primary`})(Oj||={});var kj=200;function Aj(e){let t=yj(+!e.isLoading,()=>XE(+!e.isLoading,{duration:kj}),[e.isLoading]),n=yj(+!!e.isLoading,()=>XE(+!!e.isLoading,{duration:kj}),[e.isLoading]),r=(0,b.useMemo)(()=>e.isDisabled?`${e.appearance}.disabled`:e.isLoading?e.isSelected?`${e.appearance}.selected.loading`:`${e.appearance}.loading`:e.isSelected?e.isPressed?`${e.appearance}.selected.pressed`:e.isHovered?`${e.appearance}.selected.hovered`:`${e.appearance}.selected`:e.isPressed?`${e.appearance}.pressed`:e.isHovered?`${e.appearance}.hovered`:e.appearance,[e]);return{tag:r,contentOpacity:t,spinnerOpacity:n,borderColor:Sj(`button.${r}.color.border`,{duration:kj}),backgroundColor:Sj(`button.${r}.color.background`,{duration:kj}),color:Sj(`button.${r}.color.text`,{duration:kj})}}var jj=(0,b.createContext)({isLoading:!1,addLoading:()=>()=>{}}),Mj;(function(e){function t(e){return!(typeof e!=`object`||!e||!(Symbol.iterator in e)||typeof e[Symbol.iterator]!=`function`)}function n(e,n){return t(e)?Array.from(e).map(n):[n(e,0)]}e.map=n})(Mj||={});function Nj({children:e,isLoading:t=!1}){let[n,r]=(0,b.useState)([]),i=(0,b.useCallback)(()=>{let e=Symbol();return r(t=>[...t,e]),()=>{r(t=>t.toSpliced(t.indexOf(e),1))}},[]),a=(0,b.useMemo)(()=>!!n.length||t,[n,t]),o=(0,b.useMemo)(()=>({isLoading:a,addLoading:i}),[a,i]);return(0,O.jsx)(jj.Provider,{value:o,children:Mj.map(e,e=>typeof e==`function`?e(o):e)})}var Pj=class{key;tokens;constructor(e,t){this.key=e,this.tokens=t}parseTokenValue(e){return typeof e==`string`?this.parseTokenValue([e]):e.map(e=>e.startsWith(`!`)?`@button.${this.key}.${e.replace(`!`,``)}`:e)}toRecord(){return Object.fromEntries(Object.entries(this.tokens).map(([e,t])=>[`button.${this.key}.${e}`,this.parseTokenValue(t)]))}register(){E.get().tokens.set(this.toRecord())}};new Pj(Oj.Solid,{"color.text":`#1C2024`,"color.background":`#EEEEEE`,"color.border":`!color.background`,"disabled.color.text":`#A1A1A1`,"disabled.color.background":`#F5F5F5`,"disabled.color.border":`!disabled.color.background`,"hovered.color.text":`!color.text`,"hovered.color.background":`#E0E0E0`,"hovered.color.border":`!hovered.color.background`,"pressed.color.text":`!color.text`,"pressed.color.background":`#D6D6D6`,"pressed.color.border":`!pressed.color.background`,"selected.color.text":`!color.text`,"selected.color.background":`#CFCFCF`,"selected.color.border":`!selected.color.background`,"loading.color.text":`!color.text`,"loading.color.background":`#EEEEEE`,"loading.color.border":`!loading.color.background`,"selected.loading.color.text":`!color.text`,"selected.loading.color.background":`#CFCFCF`,"selected.loading.color.border":`!selected.loading.color.background`,"selected.hovered.color.text":`!color.text`,"selected.hovered.color.background":`#C2C2C2`,"selected.hovered.color.border":`!selected.hovered.color.background`,"selected.pressed.color.text":`!color.text`,"selected.pressed.color.background":`#B6B6B6`,"selected.pressed.color.border":`!selected.pressed.color.background`,"space.x":`@space.150`,"space.y":`@space.100`}).register(),new Pj(Oj.SolidPrimary,{"color.text":`#FFFFFF`,"color.background":`#443EE3`,"color.border":`!color.background`,"disabled.color.text":`#BFBFEF`,"disabled.color.background":`#D6D6F5`,"disabled.color.border":`!disabled.color.background`,"hovered.color.text":`!color.text`,"hovered.color.background":`#3C38CC`,"hovered.color.border":`!hovered.color.background`,"pressed.color.text":`!color.text`,"pressed.color.background":`#3431B8`,"pressed.color.border":`!pressed.color.background`,"selected.color.text":`!color.text`,"selected.color.background":`#2F2DAA`,"selected.color.border":`!selected.color.background`,"loading.color.text":`!color.text`,"loading.color.background":`#443EE3`,"loading.color.border":`!loading.color.background`,"selected.loading.color.text":`!color.text`,"selected.loading.color.background":`#2F2DAA`,"selected.loading.color.border":`!selected.loading.color.background`,"selected.hovered.color.text":`!color.text`,"selected.hovered.color.background":`#2A2898`,"selected.hovered.color.border":`!selected.hovered.color.background`,"selected.pressed.color.text":`!color.text`,"selected.pressed.color.background":`#252486`,"selected.pressed.color.border":`!selected.pressed.color.background`,"space.x":`@space.150`,"space.y":`@space.100`}).register(),new Pj(Oj.OutlinePrimary,{"color.text":`#443EE3`,"color.background":`#FFFFFF`,"color.border":`#443EE3`,"disabled.color.text":`#BFBFEF`,"disabled.color.background":`#FFFFFF`,"disabled.color.border":`#D6D6F5`,"hovered.color.text":`#3C38CC`,"hovered.color.background":`#F5F5FF`,"hovered.color.border":`#3C38CC`,"pressed.color.text":`#3431B8`,"pressed.color.background":`#ECECFF`,"pressed.color.border":`#3431B8`,"selected.color.text":`#2F2DAA`,"selected.color.background":`#E6E6FF`,"selected.color.border":`#2F2DAA`,"loading.color.text":`#443EE3`,"loading.color.background":`#FFFFFF`,"loading.color.border":`#443EE3`,"selected.loading.color.text":`#2F2DAA`,"selected.loading.color.background":`#E6E6FF`,"selected.loading.color.border":`#2F2DAA`,"selected.hovered.color.text":`#2A2898`,"selected.hovered.color.background":`#E0E0FF`,"selected.hovered.color.border":`#2A2898`,"selected.pressed.color.text":`#252486`,"selected.pressed.color.background":`#DADAFE`,"selected.pressed.color.border":`#252486`,"space.x":`@space.150`,"space.y":`@space.100`}).register(),new Pj(Oj.Outline,{"color.text":`#1C2024`,"color.background":`#FFFFFF`,"color.border":`!color.text`,"disabled.color.text":`#A1A1A1`,"disabled.color.background":`#FFFFFF`,"disabled.color.border":`#D1D1D1`,"hovered.color.text":`!color.text`,"hovered.color.background":`#F5F5F5`,"hovered.color.border":`!color.text`,"pressed.color.text":`!color.text`,"pressed.color.background":`#EEEEEE`,"pressed.color.border":`!color.text`,"selected.color.text":`!color.text`,"selected.color.background":`#EAEAEA`,"selected.color.border":`!color.text`,"loading.color.text":`!color.text`,"loading.color.background":`#FFFFFF`,"loading.color.border":`!color.text`,"selected.loading.color.text":`!color.text`,"selected.loading.color.background":`#EAEAEA`,"selected.loading.color.border":`!color.text`,"selected.hovered.color.text":`!color.text`,"selected.hovered.color.background":`#E0E0E0`,"selected.hovered.color.border":`!color.text`,"selected.pressed.color.text":`!color.text`,"selected.pressed.color.background":`#D6D6D6`,"selected.pressed.color.border":`!color.text`,"space.x":`@space.150`,"space.y":`@space.100`}).register(),new Pj(Oj.Ghost,{"color.text":`#1C2024`,"color.background":`#FFFFFF00`,"color.border":`!color.background`,"disabled.color.text":`#A1A1A1`,"disabled.color.background":`!color.background`,"disabled.color.border":`!color.background`,"hovered.color.text":`#1C2024`,"hovered.color.background":`!color.background`,"hovered.color.border":`!color.background`,"pressed.color.text":`#1C2024`,"pressed.color.background":`!color.background`,"pressed.color.border":`!color.background`,"selected.color.text":`#1C2024`,"selected.color.background":`!color.background`,"selected.color.border":`!color.background`,"loading.color.text":`#1C2024`,"loading.color.background":`!color.background`,"loading.color.border":`!color.background`,"selected.loading.color.text":`#1C2024`,"selected.loading.color.background":`!color.background`,"selected.loading.color.border":`!color.background`,"selected.hovered.color.text":`#1C2024`,"selected.hovered.color.background":`!color.background`,"selected.hovered.color.border":`!color.background`,"selected.pressed.color.text":`#1C2024`,"selected.pressed.color.background":`!color.background`,"selected.pressed.color.border":`!color.background`,"space.y":`@space.050`,"space.x":`@space.050`}).register(),new Pj(Oj.GhostPrimary,{"color.text":`#443EE3`,"color.background":`#FFFFFF00`,"color.border":`!color.background`,"disabled.color.text":`#BFBFEF`,"disabled.color.background":`!color.background`,"disabled.color.border":`!color.background`,"hovered.color.text":`#443EE3`,"hovered.color.background":`!color.background`,"hovered.color.border":`!color.background`,"pressed.color.text":`#443EE3`,"pressed.color.background":`!color.background`,"pressed.color.border":`!color.background`,"selected.color.text":`#2F2DAA`,"selected.color.background":`!color.background`,"selected.color.border":`!color.background`,"loading.color.text":`#443EE3`,"loading.color.background":`!color.background`,"loading.color.border":`!color.background`,"selected.loading.color.text":`#2F2DAA`,"selected.loading.color.background":`!color.background`,"selected.loading.color.border":`!color.background`,"selected.hovered.color.text":`#2A2898`,"selected.hovered.color.background":`!color.background`,"selected.hovered.color.border":`!color.background`,"selected.pressed.color.text":`#252486`,"selected.pressed.color.background":`!color.background`,"selected.pressed.color.border":`!color.background`,"space.y":`@space.050`,"space.x":`@space.050`}).register(),E.get().tokens.set({"button.font.weight":`normal`,"button.font.lineHeight":`md`,"button.font.size":`sm`,"button.icon.size":`md`});function Fj({onHoverIn:e,onHoverOut:t,onPressIn:n,onPressOut:r}={}){let[i,a]=(0,b.useState)(!1),[o,s]=(0,b.useState)(!1),c=(0,b.useCallback)(t=>{a(!0),e?.(t)},[e]),l=(0,b.useCallback)(e=>{a(!1),t?.(e)},[t]),u=(0,b.useCallback)(e=>{s(!0),n?.(e)},[n]),d=(0,b.useCallback)(e=>{s(!1),r?.(e)},[r]);return(0,b.useMemo)(()=>({isHovered:i,isPressed:o,props:{onHoverIn:c,onHoverOut:l,onPressIn:u,onPressOut:d}}),[i,o,c,l,u,d])}function Ij({children:e,onHoverIn:t,onHoverOut:n,onPressIn:r,onPressOut:i,...a}){let{isHovered:o,isPressed:s,props:c}=Fj({onHoverIn:t,onHoverOut:n,onPressIn:r,onPressOut:i});return(0,O.jsx)(dv,{...a,...c,children:e({isHovered:o,isPressed:s})})}function Lj({state:e,action:t,onPress:n}){let{props:r}=Fj(),i=(0,b.useCallback)(()=>{n?.()},[n]);return(0,O.jsx)(q,{...r,as:vj.of(dv),row:!0,align:!0,onPress:i,children:t(e)})}var Rj=mj.createAnimatedComponent(dv);function zj({iconBefore:e,iconAfter:t,actionBefore:n,actionsAfter:r,shouldFitContainer:i=!1,appearance:a=Oj.Solid,children:o,isLoading:s=!1,isSelected:c=!1,isDisabled:l=!1,onPress:u,icon:d,text:f,style:p}){let m=(0,b.useId)(),[h,g]=(0,b.useState)(!1),_=o??d??f,[v,y]=(0,b.useState)(!1),[x,S]=(0,b.useState)(!1),C=(0,b.useContext)(jj),{addLoading:w}=C,T=(0,b.useMemo)(()=>s||C.isLoading||h,[s,h,C.isLoading]),E=(0,b.useMemo)(()=>!l&&!T,[l,T]),D=(0,b.useMemo)(()=>({appearance:a,isSelected:c,isDisabled:l,isHovered:v,isPressed:x,isLoading:T}),[a,l,v,T,x,c]),k=(0,b.useCallback)(()=>y(!0),[]),ee=(0,b.useCallback)(()=>y(!1),[]),A=(0,b.useCallback)(()=>S(!0),[]),te=(0,b.useCallback)(()=>S(!1),[]),{tag:ne,backgroundColor:re,borderColor:ie,color:j,contentOpacity:M,spinnerOpacity:ae}=Aj(D),oe=(0,b.useCallback)(e=>{if(!E)return;let t=u?.(e);if(!t)return;g(!0);let n=w();Promise.resolve(t).catch(()=>void 0).finally(()=>g(!1)).finally(()=>n())},[E,w,u]),se=HA(()=>({backgroundColor:re.value,borderColor:ie.value}),[re,ie]),N=HA(()=>({opacity:M.value}),[M]),ce=HA(()=>({color:j.value}),[j]),le=HA(()=>({opacity:ae.value,borderTopColor:j.value}),[j,ae]),ue=(0,b.useMemo)(()=>typeof p==`function`?p(D):p,[p,D]);return(0,O.jsxs)(q,{as:Rj,rounded:!0,align:!0,justify:!0,alignSelf:i?void 0:`start`,disabled:l,px:`button.${a}.space.x`,py:`button.${a}.space.y`,position:`relative`,borderWidth:1,onHoverIn:k,onHoverOut:ee,onPressIn:A,onPressOut:te,onPress:oe,style:[se,ue],children:[T&&(0,O.jsx)(Ej,{size:`sm`,position:`absolute`,style:le}),(0,O.jsxs)(q,{align:!0,justify:!0,as:mj.View,flexDirection:`row`,gap:`space.100`,style:N,children:[e&&(0,O.jsx)(vj,{as:e,size:`button.icon.size`,fill:`button.${ne}.color.text`}),!!n?.length&&(0,O.jsx)(q,{row:!0,align:!0,gap:`space.050`,children:n.map(({action:e,onPress:t},n)=>(0,O.jsx)(Lj,{state:D,action:e,onPress:t},`${m}:buttons:actions:before:${n}`))}),typeof _==`string`?(0,O.jsx)(fx,{as:mj.Text,numberOfLines:1,ellipsizeMode:`tail`,weight:`button.font.weight`,height:`button.font.lineHeight`,size:`button.font.size`,style:ce,children:_}):typeof _==`function`?tx.isIconComponent(_)?(0,O.jsx)(vj,{as:_,size:`button.icon.size`,fill:`button.${ne}.color.text`}):_(D):_,!!r?.length&&(0,O.jsx)(q,{row:!0,align:!0,gap:`space.050`,children:r.map(({action:e,onPress:t},n)=>(0,O.jsx)(Lj,{state:D,action:e,onPress:t},`${m}:buttons:actions:after:${n}`))}),t&&(0,O.jsx)(vj,{as:t,size:`button.icon.size`,fill:`button.${ne}.color.text`})]})]})}zj.Group=Nj;var Bj=tx(e=>(0,O.jsx)(Yx,{width:24,height:24,viewBox:`0 0 24 24`,...e,children:(0,O.jsx)(Jx,{d:`M10 11H7.101l.001-.009a4.956 4.956 0 0 1 .752-1.787 5.054 5.054 0 0 1 2.2-1.811c.302-.128.617-.226.938-.291a5.078 5.078 0 0 1 2.018 0 4.978 4.978 0 0 1 2.525 1.361l1.416-1.412a7.036 7.036 0 0 0-2.224-1.501 6.921 6.921 0 0 0-1.315-.408 7.079 7.079 0 0 0-2.819 0 6.94 6.94 0 0 0-1.316.409 7.04 7.04 0 0 0-3.08 2.534 6.978 6.978 0 0 0-1.054 2.505c-.028.135-.043.273-.063.41H2l4 4 4-4zm4 2h2.899l-.001.008a4.976 4.976 0 0 1-2.103 3.138 4.943 4.943 0 0 1-1.787.752 5.073 5.073 0 0 1-2.017 0 4.956 4.956 0 0 1-1.787-.752 5.072 5.072 0 0 1-.74-.61L7.05 16.95a7.032 7.032 0 0 0 2.225 1.5c.424.18.867.317 1.315.408a7.07 7.07 0 0 0 2.818 0 7.031 7.031 0 0 0 4.395-2.945 6.974 6.974 0 0 0 1.053-2.503c.027-.135.043-.273.063-.41H22l-4-4-4 4z`})}));function Vj(){let e=A(),t=_t();return aS?null:(0,O.jsx)(zj,{appearance:`ghost`,iconBefore:Bj,text:`Refresh`,isLoading:t>0,onPress:()=>void e.invalidateQueries()})}var Hj={idle:J.muted,starting:J.info,ready:J.brand,exited:J.error};function Uj(){let{data:e}=mt(TS.manifest()),{data:t}=mt({...TS.state(),enabled:iS.capabilities.rebuild}),n=e?.id??iS.project??null,r=t?.state??`idle`;return(0,O.jsxs)(q,{position:`absolute`,top:0,left:240,right:0,h:48,bg:J.background,borderBottomWidth:1,borderColor:J.border,row:!0,align:`center`,justify:`space-between`,ph:16,style:{zIndex:50},children:[(0,O.jsxs)(q,{row:!0,align:`center`,gap:8,children:[iS.capabilities.rebuild&&(0,O.jsxs)(q,{row:!0,align:`center`,gap:8,bg:J.panel,ph:10,pv:4,rounded:2,borderWidth:1,borderColor:J.border,children:[(0,O.jsx)(q,{w:7,h:7,rounded:4,bg:Hj[r]}),(0,O.jsx)(fx,{fontSize:12,color:J.muted,fontFamily:`JetBrains Mono, monospace`,children:`App: ${r}`})]}),(0,O.jsx)(gS,{children:`project ${n??`...`}`}),Object.entries(iS.metadata).map(([e,t])=>(0,O.jsx)(gS,{children:`${e} ${t}`},e))]}),(0,O.jsx)(Vj,{})]})}function Wj({children:e}){return(0,O.jsxs)(q,{bg:`#0b1326`,h:`100vh`,children:[(0,O.jsx)(fS,{}),(0,O.jsx)(Uj,{}),(0,O.jsx)(q,{ml:240,mt:48,flex:1,overflow:`auto`,children:e})]})}function Gj(e,t,n){switch(t){case`manifest`:DS(e,n);break;case`build:status`:OS(e,`starting`);break;case`app:exit`:OS(e,`exited`);break;case`run:created`:kS(e,n);break;case`run:updated`:AS(e,n)}}function Kj(){let e=A();return(0,b.useEffect)(()=>{if(!aS)return;let t=SS.events();for(let n of vS)t.addEventListener(n,t=>{let r=t.data;Gj(e,n,r?JSON.parse(r):null)});return()=>t.close()},[e]),null}var qj=tx(e=>(0,O.jsxs)(Yx,{width:24,height:24,viewBox:`0 0 24 24`,...e,children:[(0,O.jsx)(Jx,{d:`M11.953 2C6.465 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.493 2 11.953 2zM12 20c-4.411 0-8-3.589-8-8s3.567-8 7.953-8C16.391 4 20 7.589 20 12s-3.589 8-8 8z`}),(0,O.jsx)(Jx,{d:`M11 7h2v7h-2zm0 8h2v2h-2z`})]})),Jj=tx(e=>(0,O.jsx)(Yx,{width:24,height:24,viewBox:`0 0 24 24`,...e,children:(0,O.jsx)(Jx,{d:`m11.293 17.293 1.414 1.414L19.414 12l-6.707-6.707-1.414 1.414L15.586 11H6v2h9.586z`})}));function Yj({to:e,label:t,icon:n,accent:r=!1}){let i=r?`#48BA80`:`#8896b3`;return(0,O.jsx)(sa,{to:e,style:{textDecoration:`none`},children:(0,O.jsxs)(q,{ph:12,pv:6,borderWidth:1,borderColor:r?`#48BA8050`:`#2d3449`,rounded:2,bg:r?`#1a3328`:`#0b1326`,row:!0,align:`center`,gap:6,style:{cursor:`pointer`},children:[n&&(0,O.jsx)(n,{size:14,fill:i}),(0,O.jsx)(fx,{fontSize:13,color:i,children:t})]})})}var Xj={body:{fontSize:13,color:J.muted,fontFamily:`Inter, sans-serif`},label:{fontSize:11,color:J.muted,fontWeight:`700`,fontFamily:`Inter, sans-serif`,style:{letterSpacing:.5,textTransform:`uppercase`}},mono:{fontSize:12,color:J.text,fontFamily:`JetBrains Mono, monospace`,lineHeight:1.6},title:{fontSize:16,color:J.text,fontWeight:`600`,fontFamily:`Sora, Inter, sans-serif`}};function Z({variant:e=`body`,...t}){let n=(0,b.useMemo)(()=>{let n={...Xj[e],...t},r=t.fontSize??n.fontSize;return typeof n.lineHeight==`number`&&typeof r==`number`?{...n,fontSize:r,lineHeight:r*n.lineHeight}:n},[t,e]);return(0,O.jsx)(fx,{...n})}function Zj({stat:e}){return(0,O.jsxs)(q,{bg:`#131b2e`,rounded:4,borderWidth:1,borderColor:`#2d3449`,p:16,row:!0,align:`center`,justify:`space-between`,flex:1,minW:0,children:[(0,O.jsxs)(q,{children:[(0,O.jsx)(Z,{fontSize:11,color:`#8896b3`,fontFamily:`Inter, sans-serif`,fontWeight:`700`,style:{letterSpacing:.5,textTransform:`uppercase`,marginBottom:6},children:e.label}),(0,O.jsx)(Z,{fontSize:28,fontWeight:`700`,color:`#dae2fd`,fontFamily:`Sora, Inter, sans-serif`,lineHeight:1,children:e.value})]}),(0,O.jsx)(q,{w:40,h:40,rounded:20,bg:`#222a3d`,center:!0,children:(0,O.jsx)(e.icon,{size:20,fill:e.color})})]})}function Qj(){let e=mt(TS.manifest()),t=mt(TS.waitingActivities({limit:1})),n=mt(TS.runs({limit:1})),r=mt(TS.runs({status:`rejected`,limit:1})),i=e.isPending||t.isPending||n.isPending||r.isPending,a=e.data?.workflows.length??0,o=e.data?.id??`–`,s=t.data?.count??0,c=[{label:`Workflows`,value:a,icon:Zx,color:`#7bd0ff`},{label:`Pending Activities`,value:s,icon:Xx,color:`#48BA80`},{label:`Runs`,value:n.data?.count??0,icon:$x,color:`#dae2fd`},{label:`Rejected Runs`,value:r.data?.count??0,icon:qj,color:`#ffb4ab`}];return(0,O.jsxs)(q,{flex:1,p:24,gap:24,children:[(0,O.jsxs)(q,{borderBottomWidth:1,borderColor:`#2d344950`,pb:16,row:!0,align:`flex-end`,justify:`space-between`,children:[(0,O.jsxs)(q,{children:[(0,O.jsx)(Z,{fontSize:24,fontWeight:`700`,color:`#dae2fd`,children:`Overview`}),(0,O.jsx)(q,{row:!0,align:`center`,gap:8,mt:6,children:(0,O.jsx)(q,{bg:`#131b2e`,ph:8,pv:2,rounded:2,borderWidth:1,borderColor:`#2d3449`,children:(0,O.jsxs)(Z,{fontSize:12,color:`#8896b3`,fontFamily:`JetBrains Mono, monospace`,children:[`App ID: `,o]})})})]}),(0,O.jsxs)(q,{row:!0,gap:8,children:[(0,O.jsx)(Yj,{to:`/runs`,label:`Runs`,icon:$x}),(0,O.jsx)(Yj,{to:`/workflows`,label:`Browse Workflows`,icon:Zx,accent:!0})]})]}),i?(0,O.jsx)(q,{flex:1,center:!0,children:(0,O.jsx)(Ej,{})}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(q,{row:!0,gap:16,children:[(0,O.jsxs)(q,{flex:2,bg:`#131b2e`,rounded:4,borderWidth:1,borderColor:`#2d3449`,overflow:`hidden`,children:[(0,O.jsxs)(q,{p:20,flex:1,children:[(0,O.jsx)(Z,{fontSize:20,fontWeight:`700`,color:`#dae2fd`,children:o}),(0,O.jsx)(Z,{fontSize:13,color:`#8896b3`,lineHeight:1.6,children:e.data?.description??(iS.capabilities.rebuild?`T4H Framework application running locally.`:`No description.`)})]}),(0,O.jsx)(q,{bg:`#0f1929`,ph:20,pv:10,borderTopWidth:1,borderColor:`#2d3449`,children:(0,O.jsxs)(Z,{fontSize:12,color:`#8896b3`,fontFamily:`JetBrains Mono, monospace`,children:[a,` workflow`,a===1?``:`s`,` `,`registered`,iS.capabilities.rebuild&&` · runs reset on every rebuild`]})})]}),(0,O.jsx)(sa,{to:`/inbox`,style:{textDecoration:`none`,flex:1},children:(0,O.jsxs)(q,{flex:1,bg:`#131b2e`,rounded:4,borderWidth:1,borderColor:`#2d3449`,overflow:`hidden`,h:`100%`,style:{cursor:`pointer`},children:[(0,O.jsxs)(q,{p:20,flex:1,justify:`space-between`,children:[(0,O.jsx)(Z,{fontSize:11,color:`#8896b3`,fontWeight:`700`,fontFamily:`Inter, sans-serif`,children:`INBOX`}),(0,O.jsxs)(q,{gap:4,children:[(0,O.jsx)(Z,{fontSize:40,fontWeight:`700`,color:`#dae2fd`,lineHeight:1,children:s}),(0,O.jsx)(Z,{fontSize:13,color:`#8896b3`,children:`Activities waiting for an external advance`})]})]}),(0,O.jsxs)(q,{ph:20,pv:10,bg:s>0?`#3b0f1220`:`#0f1929`,borderTopWidth:1,borderColor:`#2d3449`,row:!0,align:`center`,justify:`space-between`,children:[(0,O.jsx)(Z,{fontSize:13,color:s>0?`#ffb4ab`:`#48BA80`,fontFamily:`Inter, sans-serif`,children:s>0?`${s} pending`:`All clear`}),(0,O.jsx)(Jj,{size:16,fill:`#8896b3`})]})]})})]}),(0,O.jsx)(q,{row:!0,gap:16,children:c.map(e=>(0,O.jsx)(Zj,{stat:e},e.label))})]})]})}var $j=tx(e=>(0,O.jsx)(Yx,{width:24,height:24,viewBox:`0 0 24 24`,...e,children:(0,O.jsx)(Jx,{d:`m10 15.586-3.293-3.293-1.414 1.414L10 18.414l9.707-9.707-1.414-1.414z`})})),eM=tx(e=>(0,O.jsxs)(Yx,{width:24,height:24,viewBox:`0 0 24 24`,...e,children:[(0,O.jsx)(Jx,{d:`M12 5c-4.411 0-8 3.589-8 8s3.589 8 8 8 8-3.589 8-8-3.589-8-8-8zm0 14c-3.309 0-6-2.691-6-6s2.691-6 6-6 6 2.691 6 6-2.691 6-6 6z`}),(0,O.jsx)(Jx,{d:`M11 9h2v5h-2zM9 2h6v2H9zm10.293 5.707-2-2 1.414-1.414 2 2z`})]}));function tM(e){return{style:{cursor:`pointer`},onStartShouldSetResponder:()=>!0,onResponderRelease:e}}function nM({children:e,color:t=J.muted,onPress:n}){return(0,O.jsx)(q,{bg:J.raised,ph:8,pv:2,rounded:2,alignSelf:`flex-start`,...n?tM(n):{},children:(0,O.jsx)(Z,{variant:`mono`,color:t,children:e})})}function rM({icon:e,children:t}){return(0,O.jsxs)(q,{flex:1,center:!0,gap:12,p:20,children:[(0,O.jsx)(e,{size:32,fill:J.border}),(0,O.jsx)(Z,{fontSize:14,children:t})]})}function iM({isSelected:e,onSelect:t,children:n}){return(0,O.jsx)(q,{p:14,gap:8,borderBottomWidth:1,borderLeftWidth:2,borderColor:J.border,bg:e?`${J.brandSubtle}20`:`transparent`,...tM(t),style:{borderLeftColor:e?J.brand:`transparent`,cursor:`pointer`},children:n})}var aM=tx(e=>(0,O.jsx)(Yx,{width:24,height:24,viewBox:`0 0 24 24`,...e,children:(0,O.jsx)(Jx,{d:`M13.293 6.293 7.586 12l5.707 5.707 1.414-1.414L10.414 12l4.293-4.293z`})})),oM=tx(e=>(0,O.jsx)(Yx,{width:24,height:24,viewBox:`0 0 24 24`,...e,children:(0,O.jsx)(Jx,{d:`M10.707 17.707 16.414 12l-5.707-5.707-1.414 1.414L13.586 12l-4.293 4.293z`})}));function sM({count:e,offset:t,limit:n,onChange:r}){if(e<=n&&t===0)return null;let i=Math.min(t+1,e),a=Math.min(t+n,e);return(0,O.jsxs)(q,{row:!0,align:`center`,justify:`space-between`,ph:12,pv:6,borderTopWidth:1,borderColor:J.border,bg:J.panel,children:[(0,O.jsx)(Z,{variant:`mono`,color:J.muted,children:e===0?`Nothing to show`:`${i}–${a} of ${e}`}),(0,O.jsxs)(q,{row:!0,align:`center`,gap:4,children:[(0,O.jsx)(zj,{appearance:`ghost`,icon:aM,isDisabled:t===0,onPress:()=>r(Math.max(t-n,0))}),(0,O.jsx)(zj,{appearance:`ghost`,icon:oM,isDisabled:t+n>=e,onPress:()=>r(t+n)})]})]})}function cM({side:e,children:t}){return(0,O.jsxs)(q,{row:!0,h:`calc(100vh - 48px)`,overflow:`hidden`,children:[(0,O.jsx)(q,{w:`34%`,minW:320,maxW:460,borderRightWidth:1,borderColor:J.border,bg:J.background,children:e}),(0,O.jsx)(q,{flex:1,overflow:`hidden`,children:t})]})}var lM=tx(e=>(0,O.jsxs)(Yx,{width:24,height:24,viewBox:`0 0 24 24`,...e,children:[(0,O.jsx)(Jx,{d:`m13 3 3.293 3.293-7 7 1.414 1.414 7-7L21 11V3z`}),(0,O.jsx)(Jx,{d:`M19 19H5V5h7l-2-2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-5l-2-2v7z`})]}));function uM({children:e,color:t=J.brand}){return(0,O.jsx)(q,{ph:6,pv:2,rounded:2,bg:`${t}15`,borderWidth:1,borderColor:`${t}30`,alignSelf:`flex-start`,children:(0,O.jsx)(Z,{variant:`label`,color:t,children:e})})}function dM({value:e,color:t=J.text}){return(0,O.jsx)(q,{bg:J.background,rounded:4,borderWidth:1,borderColor:J.border,p:16,overflow:`auto`,children:(0,O.jsx)(Z,{variant:`mono`,color:t,children:e})})}var fM=1e3;function pM(e){return Math.abs(e)<6e4?100:fM}function mM(e){return e<6e4?fM:e<36e5?5*fM:30*fM}var hM=new Map;function gM(e){let t=hM.get(e);if(t)return t;let n={now:Date.now(),timer:null,subscribers:new Set};return hM.set(e,n),n}function _M(e){e.now=Date.now();for(let t of e.subscribers)t()}function vM(e,t){return e-t%e}function yM(e,t){t.timer=setTimeout(()=>{yM(e,t),_M(t)},vM(e,Date.now()))}var bM=!1;function xM(){bM||(bM=!0,document.addEventListener(`visibilitychange`,()=>{if(document.visibilityState===`visible`)for(let e of hM.values())e.subscribers.size>0&&_M(e)}))}function SM(e,t){let n=gM(e);return n.subscribers.add(t),n.timer||(n.now=Date.now(),yM(e,n)),xM(),()=>{n.subscribers.delete(t),!(n.subscribers.size>0||!n.timer)&&(clearTimeout(n.timer),n.timer=null)}}var CM=()=>{};function wM({initialTime:e,isActive:t=!0,intervalInMs:n=100}={}){let r=(0,b.useMemo)(()=>e??Date.now(),[e]);return(0,b.useSyncExternalStore)((0,b.useCallback)(e=>t?SM(n,e):CM,[t,n]),()=>gM(n).now)-r}function TM(e){return new Date(e).getTime()}function EM(e){let t=Math.floor(e/60),n=e%60;return`${t}m ${String(n).padStart(2,`0`)}s`}function DM(e){return e<0?`0ms`:e<1e3?`${Math.round(e)}ms`:e<6e4?`${(e/1e3).toFixed(2)}s`:EM(Math.round(e/1e3))}function OM(e){let t=Math.max(e,0);return t<6e4?`${(t/1e3).toFixed(1)}s`:EM(Math.floor(t/1e3))}function kM(e,t){return`${e} ${t}${e===1?``:`s`} ago`}function AM(e,t=Date.now()){let n=Math.round((t-TM(e))/1e3);return n<60?`just now`:n<3600?kM(Math.floor(n/60),`min`):n<86400?kM(Math.floor(n/3600),`hour`):new Date(e).toLocaleDateString()}function jM(e){return new Date(e).toLocaleTimeString()}function MM(e){return e===void 0?`undefined`:JSON.stringify(e,null,2)}function NM(e){navigator.clipboard?.writeText(e).catch(console.error)}function PM(e){return e.length>12?`${e.slice(0,12)}…`:e}function FM({to:e,children:t,...n}){let r=TM(e),i=-wM({initialTime:r,isActive:r>Date.now(),intervalInMs:pM(r-Date.now())});return(0,O.jsx)(Z,{...n,children:t(i>0?OM(i):null)})}function IM({label:e,children:t}){return(0,O.jsxs)(q,{gap:4,children:[(0,O.jsx)(Z,{variant:`label`,children:e}),typeof t==`string`?(0,O.jsx)(Z,{variant:`mono`,children:t}):t]})}function LM(e){return typeof e==`string`||e instanceof String}function RM(e){var t;return typeof e==`object`&&!!e&&(e==null||(t=e.constructor)==null?void 0:t.name)===`Object`}function zM(e,t){return Array.isArray(t)?zM(e,(e,n)=>t.includes(n)):Object.entries(e).reduce((e,n)=>{let[r,i]=n;return t(i,r)&&(e[r]=i),e},{})}var Q={NONE:`NONE`,LEFT:`LEFT`,FORCE_LEFT:`FORCE_LEFT`,RIGHT:`RIGHT`,FORCE_RIGHT:`FORCE_RIGHT`};function BM(e){switch(e){case Q.LEFT:return Q.FORCE_LEFT;case Q.RIGHT:return Q.FORCE_RIGHT;default:return e}}function VM(e){return e.replace(/([.*+?^=!:${}()|[\]/\\])/g,`\\$1`)}function HM(e,t){if(t===e)return!0;let n=Array.isArray(t),r=Array.isArray(e),i;if(n&&r){if(t.length!=e.length)return!1;for(i=0;i<t.length;i++)if(!HM(t[i],e[i]))return!1;return!0}if(n!=r)return!1;if(t&&e&&typeof t==`object`&&typeof e==`object`){let n=t instanceof Date,r=e instanceof Date;if(n&&r)return t.getTime()==e.getTime();if(n!=r)return!1;let a=t instanceof RegExp,o=e instanceof RegExp;if(a&&o)return t.toString()==e.toString();if(a!=o)return!1;let s=Object.keys(t);for(i=0;i<s.length;i++)if(!Object.prototype.hasOwnProperty.call(e,s[i]))return!1;for(i=0;i<s.length;i++)if(!HM(e[s[i]],t[s[i]]))return!1;return!0}return t&&e&&typeof t==`function`&&typeof e==`function`?t.toString()===e.toString():!1}var UM=class{constructor(e){for(Object.assign(this,e);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start;if(this.insertedCount)for(;this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end);)this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end?++this.oldSelection.end:++this.cursorPos}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?Q.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?Q.RIGHT:Q.LEFT}};function WM(e,t){return new WM.InputMask(e,t)}function GM(e){if(e==null)throw Error(`mask property should be defined`);return e instanceof RegExp?WM.MaskedRegExp:LM(e)?WM.MaskedPattern:e===Date?WM.MaskedDate:e===Number?WM.MaskedNumber:Array.isArray(e)||e===Array?WM.MaskedDynamic:WM.Masked&&e.prototype instanceof WM.Masked?e:WM.Masked&&e instanceof WM.Masked?e.constructor:e instanceof Function?WM.MaskedFunction:(console.warn(`Mask not found for mask`,e),WM.Masked)}function KM(e){if(!e)throw Error(`Options in not defined`);if(WM.Masked){if(e.prototype instanceof WM.Masked)return{mask:e};let{mask:t=void 0,...n}=e instanceof WM.Masked?{mask:e}:RM(e)&&e.mask instanceof WM.Masked?e:{};if(t){let e=t.mask;return{...zM(t,(e,t)=>!t.startsWith(`_`)),mask:t.constructor,_mask:e,...n}}}return RM(e)?{...e}:{mask:e}}function qM(e){if(WM.Masked&&e instanceof WM.Masked)return e;let t=KM(e),n=GM(t.mask);if(!n)throw Error(`Masked class is not found for provided mask `+t.mask+`, appropriate module needs to be imported manually before creating mask.`);return t.mask===n&&delete t.mask,t._mask&&(t.mask=t._mask,delete t._mask),new n(t)}WM.createMask=qM;var JM=class{get selectionStart(){let e;try{e=this._unsafeSelectionStart}catch{}return e??this.value.length}get selectionEnd(){let e;try{e=this._unsafeSelectionEnd}catch{}return e??this.value.length}select(e,t){if(!(e==null||t==null||e===this.selectionStart&&t===this.selectionEnd))try{this._unsafeSelect(e,t)}catch{}}get isActive(){return!1}};WM.MaskElement=JM;var YM=90,XM=89,ZM=class extends JM{constructor(e){super(),this.input=e,this._onKeydown=this._onKeydown.bind(this),this._onInput=this._onInput.bind(this),this._onBeforeinput=this._onBeforeinput.bind(this),this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var e;return(e=this.input).getRootNode?.call(e)??document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(e){this.input.addEventListener(`keydown`,this._onKeydown),this.input.addEventListener(`input`,this._onInput),this.input.addEventListener(`beforeinput`,this._onBeforeinput),this.input.addEventListener(`compositionend`,this._onCompositionEnd),this.input.addEventListener(`drop`,e.drop),this.input.addEventListener(`click`,e.click),this.input.addEventListener(`focus`,e.focus),this.input.addEventListener(`blur`,e.commit),this._handlers=e}_onKeydown(e){if(this._handlers.redo&&(e.keyCode===YM&&e.shiftKey&&(e.metaKey||e.ctrlKey)||e.keyCode===XM&&e.ctrlKey))return e.preventDefault(),this._handlers.redo(e);if(this._handlers.undo&&e.keyCode===YM&&(e.metaKey||e.ctrlKey))return e.preventDefault(),this._handlers.undo(e);e.isComposing||this._handlers.selectionChange(e)}_onBeforeinput(e){if(e.inputType===`historyUndo`&&this._handlers.undo)return e.preventDefault(),this._handlers.undo(e);if(e.inputType===`historyRedo`&&this._handlers.redo)return e.preventDefault(),this._handlers.redo(e)}_onCompositionEnd(e){this._handlers.input(e)}_onInput(e){e.isComposing||this._handlers.input(e)}unbindEvents(){this.input.removeEventListener(`keydown`,this._onKeydown),this.input.removeEventListener(`input`,this._onInput),this.input.removeEventListener(`beforeinput`,this._onBeforeinput),this.input.removeEventListener(`compositionend`,this._onCompositionEnd),this.input.removeEventListener(`drop`,this._handlers.drop),this.input.removeEventListener(`click`,this._handlers.click),this.input.removeEventListener(`focus`,this._handlers.focus),this.input.removeEventListener(`blur`,this._handlers.commit),this._handlers={}}};WM.HTMLMaskElement=ZM;var QM=class extends ZM{constructor(e){super(e),this.input=e}get _unsafeSelectionStart(){return this.input.selectionStart==null?this.value.length:this.input.selectionStart}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(e,t){this.input.setSelectionRange(e,t)}get value(){return this.input.value}set value(e){this.input.value=e}};WM.HTMLMaskElement=ZM;var $M=class extends ZM{get _unsafeSelectionStart(){let e=this.rootElement,t=e.getSelection&&e.getSelection(),n=t&&t.anchorOffset,r=t&&t.focusOffset;return r==null||n==null||n<r?n:r}get _unsafeSelectionEnd(){let e=this.rootElement,t=e.getSelection&&e.getSelection(),n=t&&t.anchorOffset,r=t&&t.focusOffset;return r==null||n==null||n>r?n:r}_unsafeSelect(e,t){if(!this.rootElement.createRange)return;let n=this.rootElement.createRange();n.setStart(this.input.firstChild||this.input,e),n.setEnd(this.input.lastChild||this.input,t);let r=this.rootElement,i=r.getSelection&&r.getSelection();i&&(i.removeAllRanges(),i.addRange(n))}get value(){return this.input.textContent||``}set value(e){this.input.textContent=e}};WM.HTMLContenteditableMaskElement=$M;var eN=class e{constructor(){this.states=[],this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return this.states.length===0}push(t){this.currentIndex<this.states.length-1&&(this.states.length=this.currentIndex+1),this.states.push(t),this.states.length>e.MAX_LENGTH&&this.states.shift(),this.currentIndex=this.states.length-1}go(e){return this.currentIndex=Math.min(Math.max(this.currentIndex+e,0),this.states.length-1),this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0,this.currentIndex=0}};eN.MAX_LENGTH=100,WM.InputMask=class{constructor(e,t){this.el=e instanceof JM?e:e.isContentEditable&&e.tagName!==`INPUT`&&e.tagName!==`TEXTAREA`?new $M(e):new QM(e),this.masked=qM(t),this._listeners={},this._value=``,this._unmaskedValue=``,this._rawInputValue=``,this.history=new eN,this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this._onUndo=this._onUndo.bind(this),this._onRedo=this._onRedo.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}maskEquals(e){return e==null||this.masked?.maskEquals(e)}get mask(){return this.masked.mask}set mask(e){if(this.maskEquals(e))return;if(!(e instanceof WM.Masked)&&this.masked.constructor===GM(e)){this.masked.updateOptions({mask:e});return}let t=e instanceof WM.Masked?e:qM({mask:e});t.unmaskedValue=this.masked.unmaskedValue,this.masked=t}get value(){return this._value}set value(e){this.value!==e&&(this.masked.value=e,this.updateControl(`auto`))}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(e){this.unmaskedValue!==e&&(this.masked.unmaskedValue=e,this.updateControl(`auto`))}get rawInputValue(){return this._rawInputValue}set rawInputValue(e){this.rawInputValue!==e&&(this.masked.rawInputValue=e,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(e){this.masked.typedValueEquals(e)||(this.masked.typedValue=e,this.updateControl(`auto`))}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(e,t){let n=this._listeners[e];n&&n.forEach(e=>e(t))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(e){this.el&&this.el.isActive&&(this.el.select(e,e),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value,this._unmaskedValue=this.masked.unmaskedValue,this._rawInputValue=this.masked.rawInputValue}updateControl(e){let t=this.masked.unmaskedValue,n=this.masked.value,r=this.masked.rawInputValue,i=this.displayValue,a=this.unmaskedValue!==t||this.value!==n||this._rawInputValue!==r;this._unmaskedValue=t,this._value=n,this._rawInputValue=r,this.el.value!==i&&(this.el.value=i),e===`auto`?this.alignCursor():e!=null&&(this.cursorPos=e),a&&this._fireChangeEvents(),!this._historyChanging&&(a||this.history.isEmpty)&&this.history.push({unmaskedValue:t,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(e){let{mask:t,...n}=e,r=!this.maskEquals(t),i=this.masked.optionsIsChanged(n);r&&(this.mask=t),i&&this.masked.updateOptions(n),(r||i)&&this.updateControl()}updateCursor(e){e!=null&&(this.cursorPos=e,this._delayUpdateCursor(e))}_delayUpdateCursor(e){this._abortUpdateCursor(),this._changingCursorPos=e,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent(`accept`,this._inputEvent),this.masked.isComplete&&this._fireEvent(`complete`,this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,Q.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(e,t){return this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),this}off(e,t){if(!this._listeners[e])return this;if(!t)return delete this._listeners[e],this;let n=this._listeners[e].indexOf(t);return n>=0&&this._listeners[e].splice(n,1),this}_onInput(e){this._inputEvent=e,this._abortUpdateCursor();let t=new UM({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),n=this.masked.rawInputValue,r=this.masked.splice(t.startChangePos,t.removed.length,t.inserted,t.removeDirection,{input:!0,raw:!0}).offset,i=n===this.masked.rawInputValue?t.removeDirection:Q.NONE,a=this.masked.nearestInputPos(t.startChangePos+r,i);i!==Q.NONE&&(a=this.masked.nearestInputPos(a,Q.NONE)),this.updateControl(a),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(e){e.preventDefault(),e.stopPropagation()}_onFocus(e){this.alignCursorFriendly()}_onClick(e){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(e){e&&(this._historyChanging=!0,this.unmaskedValue=e.unmaskedValue,this.el.select(e.selection.start,e.selection.end),this._saveSelection(),this._historyChanging=!1)}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}};var tN=class e{static normalize(t){return Array.isArray(t)?t:[t,new e]}constructor(e){Object.assign(this,{inserted:``,rawInserted:``,tailShift:0,skip:!1},e)}aggregate(e){return this.inserted+=e.inserted,this.rawInserted+=e.rawInserted,this.tailShift+=e.tailShift,this.skip=this.skip||e.skip,this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return!!this.rawInserted||this.skip}equals(e){return this.inserted===e.inserted&&this.tailShift===e.tailShift&&this.rawInserted===e.rawInserted&&this.skip===e.skip}};WM.ChangeDetails=tN;var nN=class{constructor(e,t,n){e===void 0&&(e=``),t===void 0&&(t=0),this.value=e,this.from=t,this.stop=n}toString(){return this.value}extend(e){this.value+=String(e)}appendTo(e){return e.append(this.toString(),{tail:!0}).aggregate(e._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(e){Object.assign(this,e)}unshift(e){if(!this.value.length||e!=null&&this.from>=e)return``;let t=this.value[0];return this.value=this.value.slice(1),t}shift(){if(!this.value.length)return``;let e=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),e}},rN=class e{constructor(t){this._value=``,this._update({...e.DEFAULTS,...t}),this._initialized=!0}updateOptions(e){this.optionsIsChanged(e)&&this.withValueRefresh(this._update.bind(this,e))}_update(e){Object.assign(this,e)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value}reset(){this._value=``}get value(){return this._value}set value(e){this.resolve(e,{input:!0})}resolve(e,t){t===void 0&&(t={input:!0}),this.reset(),this.append(e,t,``),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(e){this.resolve(e,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(e){this.format?this.value=this.format(e,this):this.unmaskedValue=String(e)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(e){this.resolve(e,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(e,t){return e}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),Math.min(this.displayValue.length,t-e)}extractInput(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),this.displayValue.slice(e,t)}extractTail(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),new nN(this.extractInput(e,t),e)}appendTail(e){return LM(e)&&(e=new nN(String(e))),e.appendTo(this)}_appendCharRaw(e,t){return e?(this._value+=e,new tN({inserted:e,rawInserted:e})):new tN}_appendChar(e,t,n){t===void 0&&(t={});let r=this.state,i;if([e,i]=this.doPrepareChar(e,t),e&&(i=i.aggregate(this._appendCharRaw(e,t)),!i.rawInserted&&this.autofix===`pad`)){let n=this.state;this.state=r;let a=this.pad(t),o=this._appendCharRaw(e,t);a=a.aggregate(o),o.rawInserted||a.equals(i)?i=a:this.state=n}if(i.inserted){let e,a=this.doValidate(t)!==!1;if(a&&n!=null){let t=this.state;if(this.overwrite===!0){e=n.state;for(let e=0;e<i.rawInserted.length;++e)n.unshift(this.displayValue.length-i.tailShift)}let r=this.appendTail(n);if(a=r.rawInserted.length===n.toString().length,!(a&&r.inserted)&&this.overwrite===`shift`){this.state=t,e=n.state;for(let e=0;e<i.rawInserted.length;++e)n.shift();r=this.appendTail(n),a=r.rawInserted.length===n.toString().length}a&&r.inserted&&(this.state=t)}a||(i=new tN,this.state=r,n&&e&&(n.state=e))}return i}_appendPlaceholder(){return new tN}_appendEager(){return new tN}append(e,t,n){if(!LM(e))throw Error(`value should be string`);let r=LM(n)?new nN(String(n)):n;t!=null&&t.tail&&(t._beforeTailState=this.state);let i;[e,i]=this.doPrepare(e,t);for(let n=0;n<e.length;++n){let a=this._appendChar(e[n],t,r);if(!a.rawInserted&&!this.doSkipInvalid(e[n],t,r))break;i.aggregate(a)}return(this.eager===!0||this.eager===`append`)&&t!=null&&t.input&&e&&i.aggregate(this._appendEager()),r!=null&&(i.tailShift+=this.appendTail(r).tailShift),i}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),this._value=this.displayValue.slice(0,e)+this.displayValue.slice(t),new tN}withValueRefresh(e){if(this._refreshing||!this._initialized)return e();this._refreshing=!0;let t=this.rawInputValue,n=this.value,r=e();return this.rawInputValue=t,this.value&&this.value!==n&&n.indexOf(this.value)===0&&(this.append(n.slice(this.displayValue.length),{},``),this.doCommit()),delete this._refreshing,r}runIsolated(e){if(this._isolated||!this._initialized)return e(this);this._isolated=!0;let t=this.state,n=e(this);return this.state=t,delete this._isolated,n}doSkipInvalid(e,t,n){return!!this.skipInvalid}doPrepare(e,t){return t===void 0&&(t={}),tN.normalize(this.prepare?this.prepare(e,this,t):e)}doPrepareChar(e,t){return t===void 0&&(t={}),tN.normalize(this.prepareChar?this.prepareChar(e,this,t):e)}doValidate(e){return(!this.validate||this.validate(this.value,this,e))&&(!this.parent||this.parent.doValidate(e))}doCommit(){this.commit&&this.commit(this.value,this)}splice(e,t,n,r,i){n===void 0&&(n=``),r===void 0&&(r=Q.NONE),i===void 0&&(i={input:!0});let a=e+t,o=this.extractTail(a),s=this.eager===!0||this.eager===`remove`,c;s&&(r=BM(r),c=this.extractInput(0,a,{raw:!0}));let l=e,u=new tN;if(r!==Q.NONE&&(l=this.nearestInputPos(e,t>1&&e!==0&&!s?Q.NONE:r),u.tailShift=l-e),u.aggregate(this.remove(l)),s&&r!==Q.NONE&&c===this.rawInputValue){if(r===Q.FORCE_LEFT){let e;for(;c===this.rawInputValue&&(e=this.displayValue.length);)u.aggregate(new tN({tailShift:-1})).aggregate(this.remove(e-1))}else r===Q.FORCE_RIGHT&&o.unshift()}return u.aggregate(this.append(n,i,o))}maskEquals(e){return this.mask===e}optionsIsChanged(e){return!HM(this,e)}typedValueEquals(t){let n=this.typedValue;return t===n||e.EMPTY_VALUES.includes(t)&&e.EMPTY_VALUES.includes(n)||(this.format?this.format(t,this)===this.format(this.typedValue,this):!1)}pad(e){return new tN}};rN.DEFAULTS={skipInvalid:!0},rN.EMPTY_VALUES=[void 0,null,``],WM.Masked=rN;var iN=class e{constructor(e,t){e===void 0&&(e=[]),t===void 0&&(t=0),this.chunks=e,this.from=t}toString(){return this.chunks.map(String).join(``)}extend(t){if(!String(t))return;t=LM(t)?new nN(String(t)):t;let n=this.chunks[this.chunks.length-1],r=n&&(n.stop===t.stop||t.stop==null)&&t.from===n.from+n.toString().length;if(t instanceof nN)r?n.extend(t.toString()):this.chunks.push(t);else if(t instanceof e){if(t.stop==null){let e;for(;t.chunks.length&&t.chunks[0].stop==null;)e=t.chunks.shift(),e.from+=t.from,this.extend(e)}t.toString()&&(t.stop=t.blockIndex,this.chunks.push(t))}}appendTo(t){if(!(t instanceof WM.MaskedPattern))return new nN(this.toString()).appendTo(t);let n=new tN;for(let r=0;r<this.chunks.length;++r){let i=this.chunks[r],a=t._mapPosToBlock(t.displayValue.length),o=i.stop,s;if(o!=null&&(!a||a.index<=o)&&((i instanceof e||t._stops.indexOf(o)>=0)&&n.aggregate(t._appendPlaceholder(o)),s=i instanceof e&&t._blocks[o]),s){let e=s.appendTail(i);n.aggregate(e);let r=i.toString().slice(e.rawInserted.length);r&&n.aggregate(t.append(r,{tail:!0}))}else n.aggregate(t.append(i.toString(),{tail:!0}))}return n}get state(){return{chunks:this.chunks.map(e=>e.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(t){let{chunks:n,...r}=t;Object.assign(this,r),this.chunks=n.map(t=>{let n=`chunks`in t?new e:new nN;return n.state=t,n})}unshift(e){if(!this.chunks.length||e!=null&&this.from>=e)return``;let t=e==null?e:e-this.from,n=0;for(;n<this.chunks.length;){let e=this.chunks[n],r=e.unshift(t);if(e.toString()){if(!r)break;++n}else this.chunks.splice(n,1);if(r)return r}return``}shift(){if(!this.chunks.length)return``;let e=this.chunks.length-1;for(;0<=e;){let t=this.chunks[e],n=t.shift();if(t.toString()){if(!n)break;--e}else this.chunks.splice(e,1);if(n)return n}return``}},aN=class{constructor(e,t){this.masked=e,this._log=[];let{offset:n,index:r}=e._mapPosToBlock(t)||(t<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=n,this.index=r,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(e){Object.assign(this,e)}pushState(){this._log.push(this.state)}popState(){let e=this._log.pop();return e&&(this.state=e),e}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(e){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=(t=this.block)?.displayValue.length||0){var t;if(e())return this.ok=!0}return this.ok=!1}_pushRight(e){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(e())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!this.block.isFixed&&this.block.value&&(this.offset=this.block.nearestInputPos(this.offset,Q.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,Q.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,Q.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!this.block.isFixed&&this.block.value&&(this.offset=this.block.nearestInputPos(this.offset,Q.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,Q.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,Q.NONE),!0})}},oN=class{constructor(e){Object.assign(this,e),this._value=``,this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:``}get rawInputValue(){return this._isRawInput?this.value:``}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=``}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),this._value=this._value.slice(0,e)+this._value.slice(t),this._value||(this._isRawInput=!1),new tN}nearestInputPos(e,t){t===void 0&&(t=Q.NONE);let n=this._value.length;switch(t){case Q.LEFT:case Q.FORCE_LEFT:return 0;case Q.NONE:case Q.RIGHT:case Q.FORCE_RIGHT:default:return n}}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),this._isRawInput?t-e:0}extractInput(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),n===void 0&&(n={}),n.raw&&this._isRawInput&&this._value.slice(e,t)||``}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(e,t){if(t===void 0&&(t={}),this.isFilled)return new tN;let n=this.eager===!0||this.eager===`append`,r=this.char===e&&(this.isUnmasking||t.input||t.raw)&&(!t.raw||!n)&&!t.tail,i=new tN({inserted:this.char,rawInserted:r?this.char:``});return this._value=this.char,this._isRawInput=r&&(t.raw||t.input),i}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){let e=new tN;return this.isFilled||(this._value=e.inserted=this.char),e}extractTail(){return new nN(``)}appendTail(e){return LM(e)&&(e=new nN(String(e))),e.appendTo(this)}append(e,t,n){let r=this._appendChar(e[0],t);return n!=null&&(r.tailShift+=this.appendTail(n).tailShift),r}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value,this._isRawInput=!!e._rawInputValue}pad(e){return this._appendPlaceholder()}},sN=class{constructor(e){let{parent:t,isOptional:n,placeholderChar:r,displayChar:i,lazy:a,eager:o,...s}=e;this.masked=qM(s),Object.assign(this,{parent:t,isOptional:n,placeholderChar:r,displayChar:i,lazy:a,eager:o})}reset(){this.isFilled=!1,this.masked.reset()}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),e===0&&t>=1?(this.isFilled=!1,this.masked.remove(e,t)):new tN}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:``)}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(e,t){if(t===void 0&&(t={}),this.isFilled)return new tN;let n=this.masked.state,r=this.masked._appendChar(e,this.currentMaskFlags(t));return r.inserted&&this.doValidate(t)===!1&&(r=new tN,this.masked.state=n),!r.inserted&&!this.isOptional&&!this.lazy&&!t.input&&(r.inserted=this.placeholderChar),r.skip=!r.inserted&&!this.isOptional,this.isFilled=!!r.inserted,r}append(e,t,n){return this.masked.append(e,this.currentMaskFlags(t),n)}_appendPlaceholder(){return this.isFilled||this.isOptional?new tN:(this.isFilled=!0,new tN({inserted:this.placeholderChar}))}_appendEager(){return new tN}extractTail(e,t){return this.masked.extractTail(e,t)}appendTail(e){return this.masked.appendTail(e)}extractInput(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),this.masked.extractInput(e,t,n)}nearestInputPos(e,t){t===void 0&&(t=Q.NONE);let n=this.value.length,r=Math.min(Math.max(e,0),n);switch(t){case Q.LEFT:case Q.FORCE_LEFT:return this.isComplete?r:0;case Q.RIGHT:case Q.FORCE_RIGHT:return this.isComplete?r:n;case Q.NONE:default:return r}}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),this.value.slice(e,t).length}doValidate(e){return this.masked.doValidate(this.currentMaskFlags(e))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(e)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(e){this.masked.state=e.masked,this.isFilled=e.isFilled}currentMaskFlags(e){var t;return{...e,_beforeTailState:(e==null||(t=e._beforeTailState)==null?void 0:t.masked)||e?._beforeTailState}}pad(e){return new tN}};sN.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./},WM.MaskedRegExp=class extends rN{updateOptions(e){super.updateOptions(e)}_update(e){let t=e.mask;t&&(e.validate=e=>e.search(t)>=0),super._update(e)}};var cN=class e extends rN{constructor(t){super({...e.DEFAULTS,...t,definitions:Object.assign({},sN.DEFAULT_DEFINITIONS,t?.definitions)})}updateOptions(e){super.updateOptions(e)}_update(e){e.definitions=Object.assign({},this.definitions,e.definitions),super._update(e),this._rebuildMask()}_rebuildMask(){let t=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};let n=this.mask;if(!n||!t)return;let r=!1,i=!1;for(let a=0;a<n.length;++a){if(this.blocks){let e=n.slice(a),t=Object.keys(this.blocks).filter(t=>e.indexOf(t)===0);t.sort((e,t)=>t.length-e.length);let r=t[0];if(r){let{expose:e,repeat:t,...n}=KM(this.blocks[r]),i={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...n,repeat:t,parent:this},o=t==null?qM(i):new WM.RepeatBlock(i);o&&(this._blocks.push(o),e&&(this.exposeBlock=o),this._maskedBlocks[r]||(this._maskedBlocks[r]=[]),this._maskedBlocks[r].push(this._blocks.length-1)),a+=r.length-1;continue}}let o=n[a],s=o in t;if(o===e.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(o===`{`||o===`}`){r=!r;continue}if(o===`[`||o===`]`){i=!i;continue}if(o===e.ESCAPE_CHAR){if(++a,o=n[a],!o)break;s=!1}let c=s?new sN({isOptional:i,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...KM(t[o]),parent:this}):new oN({char:o,eager:this.eager,isUnmasking:r});this._blocks.push(c)}}get state(){return{...super.state,_blocks:this._blocks.map(e=>e.state)}}set state(e){if(!e){this.reset();return}let{_blocks:t,...n}=e;this._blocks.forEach((e,n)=>e.state=t[n]),super.state=n}reset(){super.reset(),this._blocks.forEach(e=>e.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(e=>e.isComplete)}get isFilled(){return this._blocks.every(e=>e.isFilled)}get isFixed(){return this._blocks.every(e=>e.isFixed)}get isOptional(){return this._blocks.every(e=>e.isOptional)}doCommit(){this._blocks.forEach(e=>e.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((e,t)=>e+=t.unmaskedValue,``)}set unmaskedValue(e){if(this.exposeBlock){let t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=e,this.appendTail(t),this.doCommit()}else super.unmaskedValue=e}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((e,t)=>e+=t.value,``)}set value(e){if(this.exposeBlock){let t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=e,this.appendTail(t),this.doCommit()}else super.value=e}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(e){if(this.exposeBlock){let t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=e,this.appendTail(t),this.doCommit()}else super.typedValue=e}get displayValue(){return this._blocks.reduce((e,t)=>e+=t.displayValue,``)}appendTail(e){return super.appendTail(e).aggregate(this._appendPlaceholder())}_appendEager(){let e=new tN,t=this._mapPosToBlock(this.displayValue.length)?.index;if(t==null)return e;this._blocks[t].isFilled&&++t;for(let n=t;n<this._blocks.length;++n){let t=this._blocks[n]._appendEager();if(!t.inserted)break;e.aggregate(t)}return e}_appendCharRaw(e,t){t===void 0&&(t={});let n=this._mapPosToBlock(this.displayValue.length),r=new tN;if(!n)return r;for(let a=n.index,o;o=this._blocks[a];++a){var i;let n=o._appendChar(e,{...t,_beforeTailState:(i=t._beforeTailState)==null||(i=i._blocks)==null?void 0:i[a]});if(r.aggregate(n),n.consumed)break}return r}extractTail(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);let n=new iN;return e===t||this._forEachBlocksInRange(e,t,(e,t,r,i)=>{let a=e.extractTail(r,i);a.stop=this._findStopBefore(t),a.from=this._blockStartPos(t),a instanceof iN&&(a.blockIndex=t),n.extend(a)}),n}extractInput(e,t,n){if(e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),n===void 0&&(n={}),e===t)return``;let r=``;return this._forEachBlocksInRange(e,t,(e,t,i,a)=>{r+=e.extractInput(i,a,n)}),r}_findStopBefore(e){let t;for(let n=0;n<this._stops.length;++n){let r=this._stops[n];if(r<=e)t=r;else break}return t}_appendPlaceholder(e){let t=new tN;if(this.lazy&&e==null)return t;let n=this._mapPosToBlock(this.displayValue.length);if(!n)return t;let r=n.index,i=e??this._blocks.length;return this._blocks.slice(r,i).forEach(n=>{(!n.lazy||e!=null)&&t.aggregate(n._appendPlaceholder(n._blocks?.length))}),t}_mapPosToBlock(e){let t=``;for(let n=0;n<this._blocks.length;++n){let r=this._blocks[n],i=t.length;if(t+=r.displayValue,e<=t.length)return{index:n,offset:e-i}}}_blockStartPos(e){return this._blocks.slice(0,e).reduce((e,t)=>e+=t.displayValue.length,0)}_forEachBlocksInRange(e,t,n){t===void 0&&(t=this.displayValue.length);let r=this._mapPosToBlock(e);if(r){let e=this._mapPosToBlock(t),i=e&&r.index===e.index,a=r.offset,o=e&&i?e.offset:this._blocks[r.index].displayValue.length;if(n(this._blocks[r.index],r.index,a,o),e&&!i){for(let t=r.index+1;t<e.index;++t)n(this._blocks[t],t,0,this._blocks[t].displayValue.length);n(this._blocks[e.index],e.index,0,e.offset)}}}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);let n=super.remove(e,t);return this._forEachBlocksInRange(e,t,(e,t,r,i)=>{n.aggregate(e.remove(r,i))}),n}nearestInputPos(e,t){if(t===void 0&&(t=Q.NONE),!this._blocks.length)return 0;let n=new aN(this,e);if(t===Q.NONE)return n.pushRightBeforeInput()||(n.popState(),n.pushLeftBeforeInput())?n.pos:this.displayValue.length;if(t===Q.LEFT||t===Q.FORCE_LEFT){if(t===Q.LEFT){if(n.pushRightBeforeFilled(),n.ok&&n.pos===e)return e;n.popState()}if(n.pushLeftBeforeInput(),n.pushLeftBeforeRequired(),n.pushLeftBeforeFilled(),t===Q.LEFT){if(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.ok&&n.pos<=e||(n.popState(),n.ok&&n.pos<=e))return n.pos;n.popState()}return n.ok?n.pos:t===Q.FORCE_LEFT?0:(n.popState(),n.ok||(n.popState(),n.ok)?n.pos:0)}return t===Q.RIGHT||t===Q.FORCE_RIGHT?(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.pushRightBeforeFilled()?n.pos:t===Q.FORCE_RIGHT?this.displayValue.length:(n.popState(),n.ok||(n.popState(),n.ok)?n.pos:this.nearestInputPos(e,Q.LEFT))):e}totalInputPositions(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);let n=0;return this._forEachBlocksInRange(e,t,(e,t,r,i)=>{n+=e.totalInputPositions(r,i)}),n}maskedBlock(e){return this.maskedBlocks(e)[0]}maskedBlocks(e){let t=this._maskedBlocks[e];return t?t.map(e=>this._blocks[e]):[]}pad(e){let t=new tN;return this._forEachBlocksInRange(0,this.displayValue.length,n=>t.aggregate(n.pad(e))),t}};cN.DEFAULTS={...rN.DEFAULTS,lazy:!0,placeholderChar:`_`},cN.STOP_CHAR="`",cN.ESCAPE_CHAR=`\\`,cN.InputDefinition=sN,cN.FixedDefinition=oN,WM.MaskedPattern=cN;var lN=class extends cN{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){let{to:t=this.to||0,from:n=this.from||0,maxLength:r=this.maxLength||0,autofix:i=this.autofix,...a}=e;this.to=t,this.from=n,this.maxLength=Math.max(String(t).length,r),this.autofix=i;let o=String(this.from).padStart(this.maxLength,`0`),s=String(this.to).padStart(this.maxLength,`0`),c=0;for(;c<s.length&&s[c]===o[c];)++c;a.mask=s.slice(0,c).replace(/0/g,`\\0`)+`0`.repeat(this.maxLength-c),super._update(a)}get isComplete(){return super.isComplete&&!!this.value}boundaries(e){let t=``,n=``,[,r,i]=e.match(/^(\D*)(\d*)(\D*)/)||[];return i&&(t=`0`.repeat(r.length)+i,n=`9`.repeat(r.length)+i),t=t.padEnd(this.maxLength,`0`),n=n.padEnd(this.maxLength,`9`),[t,n]}doPrepareChar(e,t){t===void 0&&(t={});let n;return[e,n]=super.doPrepareChar(e.replace(/\D/g,``),t),e||(n.skip=!this.isComplete),[e,n]}_appendCharRaw(e,t){if(t===void 0&&(t={}),!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(e,t);let n=String(this.from).padStart(this.maxLength,`0`),r=String(this.to).padStart(this.maxLength,`0`),[i,a]=this.boundaries(this.value+e);return Number(a)<this.from?super._appendCharRaw(n[this.value.length],t):Number(i)>this.to?!t.tail&&this.autofix===`pad`&&this.value.length+1<this.maxLength?super._appendCharRaw(n[this.value.length],t).aggregate(this._appendCharRaw(e,t)):super._appendCharRaw(r[this.value.length],t):super._appendCharRaw(e,t)}doValidate(e){let t=this.value;if(t.search(/[^0]/)===-1&&t.length<=this._matchFrom)return!0;let[n,r]=this.boundaries(t);return this.from<=Number(r)&&Number(n)<=this.to&&super.doValidate(e)}pad(e){let t=new tN;if(this.value.length===this.maxLength)return t;let n=this.value,r=this.maxLength-this.value.length;if(r){this.reset();for(let n=0;n<r;++n)t.aggregate(super._appendCharRaw(`0`,e));n.split(``).forEach(e=>this._appendCharRaw(e))}return t}};WM.MaskedRange=lN;var uN="d{.}`m{.}`Y",dN=class e extends cN{static extractPatternOptions(e){let{mask:t,pattern:n,...r}=e;return{...r,mask:LM(t)?t:n}}constructor(t){super(e.extractPatternOptions({...e.DEFAULTS,...t}))}updateOptions(e){super.updateOptions(e)}_update(t){let{mask:n,pattern:r,blocks:i,...a}={...e.DEFAULTS,...t},o=Object.assign({},e.GET_DEFAULT_BLOCKS());t.min&&(o.Y.from=t.min.getFullYear()),t.max&&(o.Y.to=t.max.getFullYear()),t.min&&t.max&&o.Y.from===o.Y.to&&(o.m.from=t.min.getMonth()+1,o.m.to=t.max.getMonth()+1,o.m.from===o.m.to&&(o.d.from=t.min.getDate(),o.d.to=t.max.getDate())),Object.assign(o,this.blocks,i),super._update({...a,mask:LM(n)?n:r,blocks:o})}doValidate(e){let t=this.date;return super.doValidate(e)&&(!this.isComplete||this.isDateExist(this.value)&&t!=null&&(this.min==null||this.min<=t)&&(this.max==null||t<=this.max))}isDateExist(e){return this.format(this.parse(e,this),this).indexOf(e)>=0}get date(){return this.typedValue}set date(e){this.typedValue=e}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(e){super.typedValue=e}maskEquals(e){return e===Date||super.maskEquals(e)}optionsIsChanged(t){return super.optionsIsChanged(e.extractPatternOptions(t))}};dN.GET_DEFAULT_BLOCKS=()=>({d:{mask:lN,from:1,to:31,maxLength:2},m:{mask:lN,from:1,to:12,maxLength:2},Y:{mask:lN,from:1900,to:9999}}),dN.DEFAULTS={...cN.DEFAULTS,mask:Date,pattern:uN,format:(e,t)=>e?[String(e.getDate()).padStart(2,`0`),String(e.getMonth()+1).padStart(2,`0`),e.getFullYear()].join(`.`):``,parse:(e,t)=>{let[n,r,i]=e.split(`.`).map(Number);return new Date(i,r-1,n)}},WM.MaskedDate=dN;var fN=class e extends rN{constructor(t){super({...e.DEFAULTS,...t}),this.currentMask=void 0}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),`mask`in e&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(e.mask)?e.mask.map(e=>{let{expose:t,...n}=KM(e),r=qM({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...n});return t&&(this.exposeMask=r),r}):[])}_appendCharRaw(e,t){t===void 0&&(t={});let n=this._applyDispatch(e,t);return this.currentMask&&n.aggregate(this.currentMask._appendChar(e,this.currentMaskFlags(t))),n}_applyDispatch(e,t,n){e===void 0&&(e=``),t===void 0&&(t={}),n===void 0&&(n=``);let r=t.tail&&t._beforeTailState!=null?t._beforeTailState._value:this.value,i=this.rawInputValue,a=t.tail&&t._beforeTailState!=null?t._beforeTailState._rawInputValue:i,o=i.slice(a.length),s=this.currentMask,c=new tN,l=s?.state;return this.currentMask=this.doDispatch(e,{...t},n),this.currentMask&&(this.currentMask===s?l&&(this.currentMask.state=l):(this.currentMask.reset(),a&&(this.currentMask.append(a,{raw:!0}),c.tailShift=this.currentMask.value.length-r.length),o&&(c.tailShift+=this.currentMask.append(o,{raw:!0,tail:!0}).tailShift))),c}_appendPlaceholder(){let e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendPlaceholder()),e}_appendEager(){let e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendEager()),e}appendTail(e){let t=new tN;return e&&t.aggregate(this._applyDispatch(``,{},e)),t.aggregate(this.currentMask?this.currentMask.appendTail(e):super.appendTail(e))}currentMaskFlags(e){return{...e,_beforeTailState:e._beforeTailState?.currentMaskRef===this.currentMask&&e._beforeTailState?.currentMask||e._beforeTailState}}doDispatch(e,t,n){return t===void 0&&(t={}),n===void 0&&(n=``),this.dispatch(e,this,t,n)}doValidate(e){return super.doValidate(e)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(e)))}doPrepare(e,t){t===void 0&&(t={});let[n,r]=super.doPrepare(e,t);if(this.currentMask){let e;[n,e]=super.doPrepare(n,this.currentMaskFlags(t)),r=r.aggregate(e)}return[n,r]}doPrepareChar(e,t){t===void 0&&(t={});let[n,r]=super.doPrepareChar(e,t);if(this.currentMask){let e;[n,e]=super.doPrepareChar(n,this.currentMaskFlags(t)),r=r.aggregate(e)}return[n,r]}reset(){var e;(e=this.currentMask)==null||e.reset(),this.compiledMasks.forEach(e=>e.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:``}set value(e){this.exposeMask?(this.exposeMask.value=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=e}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:``}set unmaskedValue(e){this.exposeMask?(this.exposeMask.unmaskedValue=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=e}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:``}set typedValue(e){if(this.exposeMask){this.exposeMask.typedValue=e,this.currentMask=this.exposeMask,this._applyDispatch();return}let t=String(e);this.currentMask&&(this.currentMask.typedValue=e,t=this.currentMask.unmaskedValue),this.unmaskedValue=t}get displayValue(){return this.currentMask?this.currentMask.displayValue:``}get isComplete(){return!!this.currentMask?.isComplete}get isFilled(){return!!this.currentMask?.isFilled}remove(e,t){let n=new tN;return this.currentMask&&n.aggregate(this.currentMask.remove(e,t)).aggregate(this._applyDispatch()),n}get state(){return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(e=>e.state),currentMaskRef:this.currentMask,currentMask:this.currentMask?.state}}set state(e){let{compiledMasks:t,currentMaskRef:n,currentMask:r,...i}=e;t&&this.compiledMasks.forEach((e,n)=>e.state=t[n]),n!=null&&(this.currentMask=n,this.currentMask.state=r),super.state=i}extractInput(e,t,n){return this.currentMask?this.currentMask.extractInput(e,t,n):``}extractTail(e,t){return this.currentMask?this.currentMask.extractTail(e,t):super.extractTail(e,t)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(e,t){return this.currentMask?this.currentMask.nearestInputPos(e,t):super.nearestInputPos(e,t)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(e){this._overwrite=e}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(e){this._eager=e}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(e){this._skipInvalid=e}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(e){this._autofix=e}maskEquals(e){return Array.isArray(e)?this.compiledMasks.every((t,n)=>{if(!e[n])return;let{mask:r,...i}=e[n];return HM(t,i)&&t.maskEquals(r)}):super.maskEquals(e)}typedValueEquals(e){return!!this.currentMask?.typedValueEquals(e)}};fN.DEFAULTS={...rN.DEFAULTS,dispatch:(e,t,n,r)=>{if(!t.compiledMasks.length)return;let i=t.rawInputValue,a=t.compiledMasks.map((a,o)=>{let s=t.currentMask===a,c=s?a.displayValue.length:a.nearestInputPos(a.displayValue.length,Q.FORCE_LEFT);return a.rawInputValue===i?s||a.remove(c):(a.reset(),a.append(i,{raw:!0})),a.append(e,t.currentMaskFlags(n)),a.appendTail(r),{index:o,weight:a.rawInputValue.length,totalInputPositions:a.totalInputPositions(0,Math.max(c,a.nearestInputPos(a.displayValue.length,Q.FORCE_LEFT)))}});return a.sort((e,t)=>t.weight-e.weight||t.totalInputPositions-e.totalInputPositions),t.compiledMasks[a[0].index]}},WM.MaskedDynamic=fN;var pN=class e extends cN{constructor(t){super({...e.DEFAULTS,...t})}updateOptions(e){super.updateOptions(e)}_update(e){let{enum:t,...n}=e;if(t){let e=t.map(e=>e.length),r=Math.min(...e),i=Math.max(...e)-r;n.mask=`*`.repeat(r),i&&(n.mask+=`[`+`*`.repeat(i)+`]`),this.enum=t}super._update(n)}_appendCharRaw(e,t){t===void 0&&(t={});let n=Math.min(this.nearestInputPos(0,Q.FORCE_RIGHT),this.value.length),r=this.enum.filter(t=>this.matchValue(t,this.unmaskedValue+e,n));if(r.length){r.length===1&&this._forEachBlocksInRange(0,this.value.length,(e,n)=>{let i=r[0][n];n>=this.value.length||i===e.value||(e.reset(),e._appendChar(i,t))});let e=super._appendCharRaw(r[0][this.value.length],t);return r.length===1&&r[0].slice(this.unmaskedValue.length).split(``).forEach(t=>e.aggregate(super._appendCharRaw(t))),e}return new tN({skip:!this.isComplete})}extractTail(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),new nN(``,e)}remove(e,t){if(e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),e===t)return new tN;let n=Math.min(super.nearestInputPos(0,Q.FORCE_RIGHT),this.value.length),r;for(r=e;r>=0&&!(this.enum.filter(e=>this.matchValue(e,this.value.slice(n,r),n)).length>1);--r);let i=super.remove(r,t);return i.tailShift+=r-e,i}get isComplete(){return this.enum.indexOf(this.value)>=0}};pN.DEFAULTS={...cN.DEFAULTS,matchValue:(e,t,n)=>e.indexOf(t,n)===n},WM.MaskedEnum=pN,WM.MaskedFunction=class extends rN{updateOptions(e){super.updateOptions(e)}_update(e){super._update({...e,validate:e.mask})}};var mN,hN=class e extends rN{constructor(t){super({...e.DEFAULTS,...t})}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){let e=`^`+(this.allowNegative?`[+|\\-]?`:``),t=(this.scale?`(`+VM(this.radix)+`\\d{0,`+this.scale+`})?`:``)+`$`;this._numberRegExp=RegExp(e+`\\d*`+t),this._mapToRadixRegExp=RegExp(`[`+this.mapToRadix.map(VM).join(``)+`]`,`g`),this._thousandsSeparatorRegExp=new RegExp(VM(this.thousandsSeparator),`g`)}_removeThousandsSeparators(e){return e.replace(this._thousandsSeparatorRegExp,``)}_insertThousandsSeparators(e){let t=e.split(this.radix);return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),t.join(this.radix)}doPrepareChar(e,t){t===void 0&&(t={});let[n,r]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(t.input&&t.raw||!t.input&&!t.raw)?e.replace(this._mapToRadixRegExp,this.radix):e),t);return e&&!n&&(r.skip=!0),n&&!this.allowPositive&&!this.value&&n!==`-`&&r.aggregate(this._appendChar(`-`)),[n,r]}_separatorsCount(e,t){t===void 0&&(t=!1);let n=0;for(let r=0;r<e;++r)this._value.indexOf(this.thousandsSeparator,r)===r&&(++n,t&&(e+=this.thousandsSeparator.length));return n}_separatorsCountFromSlice(e){return e===void 0&&(e=this._value),this._separatorsCount(this._removeThousandsSeparators(e).length,!0)}extractInput(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t),this._removeThousandsSeparators(super.extractInput(e,t,n))}_appendCharRaw(t,n){n===void 0&&(n={});let r=n.tail&&n._beforeTailState?n._beforeTailState._value:this._value,i=this._separatorsCountFromSlice(r);this._value=this._removeThousandsSeparators(this.value);let a=this._value;this._value+=t;let o=this.number,s=!isNaN(o),c=!1;if(s){let t;this.min!=null&&this.min<0&&this.number<this.min&&(t=this.min),this.max!=null&&this.max>0&&this.number>this.max&&(t=this.max),t!=null&&(this.autofix?(this._value=this.format(t,this).replace(e.UNMASKED_RADIX,this.radix),c||=a===this._value&&!n.tail):s=!1),s&&=!!this._value.match(this._numberRegExp)}let l;s?l=new tN({inserted:this._value.slice(a.length),rawInserted:c?``:t,skip:c}):(this._value=a,l=new tN),this._value=this._insertThousandsSeparators(this._value);let u=n.tail&&n._beforeTailState?n._beforeTailState._value:this._value,d=this._separatorsCountFromSlice(u);return l.tailShift+=(d-i)*this.thousandsSeparator.length,l}_findSeparatorAround(e){if(this.thousandsSeparator){let t=e-this.thousandsSeparator.length+1,n=this.value.indexOf(this.thousandsSeparator,t);if(n<=e)return n}return-1}_adjustRangeWithSeparators(e,t){let n=this._findSeparatorAround(e);n>=0&&(e=n);let r=this._findSeparatorAround(t);return r>=0&&(t=r+this.thousandsSeparator.length),[e,t]}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t);let n=this.value.slice(0,e),r=this.value.slice(t),i=this._separatorsCount(n.length);return this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(n+r)),new tN({tailShift:(this._separatorsCountFromSlice(n)-i)*this.thousandsSeparator.length})}nearestInputPos(e,t){if(!this.thousandsSeparator)return e;switch(t){case Q.NONE:case Q.LEFT:case Q.FORCE_LEFT:{let n=this._findSeparatorAround(e-1);if(n>=0){let r=n+this.thousandsSeparator.length;if(e<r||this.value.length<=r||t===Q.FORCE_LEFT)return n}break}case Q.RIGHT:case Q.FORCE_RIGHT:{let t=this._findSeparatorAround(e);if(t>=0)return t+this.thousandsSeparator.length}}return e}doCommit(){if(this.value){let e=this.number,t=e;this.min!=null&&(t=Math.max(t,this.min)),this.max!=null&&(t=Math.min(t,this.max)),t!==e&&(this.unmaskedValue=this.format(t,this));let n=this.value;this.normalizeZeros&&(n=this._normalizeZeros(n)),this.padFractionalZeros&&this.scale>0&&(n=this._padFractionalZeros(n)),this._value=n}super.doCommit()}_normalizeZeros(e){let t=this._removeThousandsSeparators(e).split(this.radix);return t[0]=t[0].replace(/^(\D*)(0*)(\d*)/,(e,t,n,r)=>t+r),e.length&&!/\d$/.test(t[0])&&(t[0]+=`0`),t.length>1&&(t[1]=t[1].replace(/0*$/,``),t[1].length||(t.length=1)),this._insertThousandsSeparators(t.join(this.radix))}_padFractionalZeros(e){if(!e)return e;let t=e.split(this.radix);return t.length<2&&t.push(``),t[1]=t[1].padEnd(this.scale,`0`),t.join(this.radix)}doSkipInvalid(t,n,r){n===void 0&&(n={});let i=this.scale===0&&t!==this.thousandsSeparator&&(t===this.radix||t===e.UNMASKED_RADIX||this.mapToRadix.includes(t));return super.doSkipInvalid(t,n,r)&&!i}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,e.UNMASKED_RADIX)}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(t){this.rawInputValue=this.format(t,this).replace(e.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(e){this.typedValue=e}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(t){return(super.typedValueEquals(t)||e.EMPTY_VALUES.includes(t)&&e.EMPTY_VALUES.includes(this.typedValue))&&(t!==0||this.value!==``)}};mN=hN,hN.UNMASKED_RADIX=`.`,hN.EMPTY_VALUES=[...rN.EMPTY_VALUES,0],hN.DEFAULTS={...rN.DEFAULTS,mask:Number,radix:`,`,thousandsSeparator:``,mapToRadix:[mN.UNMASKED_RADIX],min:-(2**53-1),max:2**53-1,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:e=>e.toLocaleString(`en-US`,{useGrouping:!1,maximumFractionDigits:20})},WM.MaskedNumber=hN;var gN={MASKED:`value`,UNMASKED:`unmaskedValue`,TYPED:`typedValue`};function _N(e,t,n){t===void 0&&(t=gN.MASKED),n===void 0&&(n=gN.MASKED);let r=qM(e);return e=>r.runIsolated(r=>(r[t]=e,r[n]))}function vN(e,t,n,r){return _N(t,n,r)(e)}WM.PIPE_TYPE=gN,WM.createPipe=_N,WM.pipe=vN,WM.RepeatBlock=class extends cN{get repeatFrom(){return(Array.isArray(this.repeat)?this.repeat[0]:this.repeat===1/0?0:this.repeat)??0}get repeatTo(){return(Array.isArray(this.repeat)?this.repeat[1]:this.repeat)??1/0}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){let{repeat:t,...n}=KM(e);this._blockOpts=Object.assign({},this._blockOpts,n);let r=qM(this._blockOpts);this.repeat=t??r.repeat??this.repeat??1/0,super._update({mask:`m`.repeat(Math.max(this.repeatTo===1/0&&this._blocks?.length||0,this.repeatFrom)),blocks:{m:r},eager:r.eager,overwrite:r.overwrite,skipInvalid:r.skipInvalid,lazy:r.lazy,placeholderChar:r.placeholderChar,displayChar:r.displayChar})}_allocateBlock(e){if(e<this._blocks.length)return this._blocks[e];if(this.repeatTo===1/0||this._blocks.length<this.repeatTo)return this._blocks.push(qM(this._blockOpts)),this.mask+=`m`,this._blocks[this._blocks.length-1]}_appendCharRaw(e,t){t===void 0&&(t={});let n=new tN;for(let s=(r=(i=this._mapPosToBlock(this.displayValue.length))?.index)??Math.max(this._blocks.length-1,0),c,l;c=(a=this._blocks[s])??(l=!l&&this._allocateBlock(s));++s){var r,i,a,o;let u=c._appendChar(e,{...t,_beforeTailState:(o=t._beforeTailState)==null||(o=o._blocks)==null?void 0:o[s]});if(u.skip&&l){this._blocks.pop(),this.mask=this.mask.slice(1);break}if(n.aggregate(u),u.consumed)break}return n}_trimEmptyTail(e,t){e===void 0&&(e=0);let n=Math.max(this._mapPosToBlock(e)?.index||0,this.repeatFrom,0),r;t!=null&&(r=this._mapPosToBlock(t)?.index),r??=this._blocks.length-1;let i=0;for(let e=r;n<=e&&!this._blocks[e].unmaskedValue;--e,++i);i&&(this._blocks.splice(r-i+1,i),this.mask=this.mask.slice(i))}reset(){super.reset(),this._trimEmptyTail()}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);let n=super.remove(e,t);return this._trimEmptyTail(e,t),n}totalInputPositions(e,t){return e===void 0&&(e=0),t==null&&this.repeatTo===1/0?1/0:super.totalInputPositions(e,t)}get state(){return super.state}set state(e){this._blocks.length=e._blocks.length,this.mask=this.mask.slice(0,this._blocks.length),super.state=e}};try{globalThis.IMask=WM}catch{}var yN=tx(e=>(0,O.jsx)(Yx,{width:24,height:24,viewBox:`0 0 24 24`,...e,children:(0,O.jsx)(Jx,{d:`m21.426 11.095-17-8A.999.999 0 0 0 3.03 4.242L4.969 12 3.03 19.758a.998.998 0 0 0 1.396 1.147l17-8a1 1 0 0 0 0-1.81zM5.481 18.197l.839-3.357L12 12 6.32 9.16l-.839-3.357L18.651 12l-13.17 6.197z`})}));function bN({placeholder:e,value:t,defaultValue:n,mask:r,onChange:i,onChangeText:a,isReadOnly:o=!1,actions:s,enableSubmitButton:c=!1,enableEmptySubmit:l=!1,submitButtonIcon:u=yN,onSubmit:d,onSubmitEditing:f,onFocus:p,onBlur:m,onKeyPress:h,style:g,nativeTextInputStyle:_,isMultiline:v=!1,maxLines:y,minLines:x,...S}){let w=(0,b.useRef)(null),T=(0,b.useId)(),[E,D]=(0,b.useState)(!1),[k,ee]=(0,b.useState)(()=>t===void 0?n===void 0?``:n:t),[A,te]=(0,b.useState)(0),ne=(0,b.useMemo)(()=>!o&&E,[E,o]),re=(0,b.useCallback)(e=>{te(e.nativeEvent.layout.height)},[]),ie=(0,b.useMemo)(()=>{if(v)return 17*(y??1)},[v,y]),j=(0,b.useMemo)(()=>{if(v)return 17*(x??1)},[v,x]),M=(0,b.useMemo)(()=>{if(v)return Math.min(Math.max(A,17,j),ie)},[v,A,j,ie]),ae=(0,b.useMemo)(()=>r?Array.isArray(r)?r:[r]:[],Array.isArray(r)?r:[r]),oe=(0,b.useMemo)(()=>{if(ae.length)return qM({mask:ae})},[ae]),se=(0,b.useMemo)(()=>{let e=t===void 0?k===void 0?``:k:t;return oe?(oe.resolve(e),oe.value):e},[oe,t,k]),N=C(),ce=(0,b.useCallback)(e=>{D(!0),p?.(e)},[p]),le=(0,b.useCallback)(e=>{D(!1),m?.(e)},[m]),ue=(0,b.useCallback)(e=>{oe&&oe.resolve(e);let t=oe?oe.unmaskedValue:e;i?.(t,oe?.value),ee(t),a?.(t)},[oe,i,a]),de=Sj(ne?`text-input.color.outline.focused`:`text-input.color.outline.blured`,{duration:300}),fe=HA(()=>({borderColor:de.value}),[de]),pe=(0,b.useCallback)(()=>{w.current?.focus()},[]),me=(0,b.useCallback)(e=>{if(l||se)return d?.(se,e)},[se,d,l]),he=(0,b.useCallback)(e=>{me?.(e),f?.(e)},[me,f]),ge=(0,b.useCallback)(e=>!v||e.nativeEvent.key!==`Enter`||e.nativeEvent.shiftKey?h?.(e):(e.preventDefault(),me?.(e)),[me,v,h]);return(0,O.jsxs)(q,{as:vj.of(dv),px:`text-input.padding-x`,py:`text-input.padding-y`,bg:`text-input.color.background`,borderWidth:1,style:[fe,g],row:!0,rounded:!0,align:`end`,onPress:pe,gap:`space.050`,children:[(0,O.jsxs)(q,{position:`relative`,flex:1,children:[v&&(0,O.jsx)(fx,{onLayout:re,style:[{opacity:0,position:`absolute`,insetInline:0,lineHeight:17,zIndex:-1}],children:se?.length?se:` `}),(0,O.jsx)(q,{ref:w,...S,as:vv,multiline:v,placeholder:e,placeholderTextColor:N.tokens.get(`text-input.color.placeholder`),value:se,onChangeText:ue,onFocus:ce,onBlur:le,onKeyPress:ge,style:[{outlineStyle:`none`},{padding:0},{fontSize:N.tokens.get(`text-input.font.size`),color:N.tokens.get(`text-input.color.text`),fontFamily:N.tokens.get(`font.family.body`)},{height:M},_],readOnly:o,focusable:!o,onSubmitEditing:he})]}),s?.map(({onPress:e,icon:t,isDisabled:n=!1,isHidden:r=!1},i)=>r?null:(0,O.jsx)(q,{as:dv,onPress:e,disabled:n,children:(0,O.jsx)(t,{fill:`text-input.action.color.icon`,size:`md`})},`text-input:${T}:actions:${i}`)),c&&(0,O.jsx)(q,{as:dv,onPress:me,children:(0,O.jsx)(u,{fill:`text-input.action.color.icon`,size:`md`})})]})}E.get().tokens.set({"text-input.padding-x":`@space.150`,"text-input.padding-y":`@space.100`,"text-input.color.outline.blured":`#FFFFFF00`,"text-input.color.outline.focused":`@color.background.brand.bold`,"text-input.color.placeholder":[`@color.text.subtlest`,`#8B8D98`],"text-input.color.text":`@color.text`,"text-input.color.background":`#F7F7F7`,"text-input.font.size":[`@font-size.body.medium`,`14`],"text-input.action.color.icon":`#8B8D98`});function xN({value:e,onChange:t,minLines:n=8,maxLines:r=40,error:i}){return(0,O.jsxs)(q,{gap:6,children:[(0,O.jsx)(bN,{value:e,onChange:t,isMultiline:!0,minLines:n,maxLines:r,autoCapitalize:`none`,autoCorrect:!1,style:{backgroundColor:J.background}}),i&&(0,O.jsx)(Z,{variant:`mono`,color:J.error,children:i})]})}function SN({title:e,actions:t,children:n}){return(0,O.jsxs)(q,{gap:12,children:[(0,O.jsxs)(q,{row:!0,align:`center`,justify:`space-between`,children:[(0,O.jsx)(Z,{variant:`title`,children:e}),t&&(0,O.jsx)(q,{row:!0,align:`center`,gap:12,children:t})]}),n]})}function CN(){let e=A();return vt({mutationFn:({activityId:e,payload:t})=>SS.advanceActivity(e,t),onSuccess:()=>{e.invalidateQueries({queryKey:[`activities`,`waiting`]}),e.invalidateQueries({queryKey:[`runs`]})}})}function wN(e){if(e instanceof _S){let t=Array.isArray(e.details)?e.details.map(e=>typeof e==`string`?e:MM(e)):[];return[e.message,...t].join(`
|
|
44
|
+
`)}return String(e)}function TN(e){if(!e)return{};if(`default`in e)return e.default;if(`const`in e)return e.const;if(Array.isArray(e.examples)&&e.examples.length)return e.examples[0];if(Array.isArray(e.enum)&&e.enum.length)return e.enum[0];let t=e.anyOf??e.oneOf??e.allOf;if(t?.[0])return TN(t[0]);switch(Array.isArray(e.type)?e.type[0]:e.type){case`object`:return Object.fromEntries(Object.entries(e.properties??{}).map(([e,t])=>[e,TN(t)]));case`array`:{let t=Array.isArray(e.items)?e.items[0]:e.items;return t?[TN(t)]:[]}case`string`:return typeof e.format==`string`?EN(e.format):``;case`number`:case`integer`:return typeof e.minimum==`number`?e.minimum:0;case`boolean`:return!1;case`null`:return null;default:return e.properties?TN({...e,type:`object`}):null}}function EN(e){switch(e){case`date-time`:return new Date().toISOString();case`date`:return new Date().toISOString().slice(0,10);case`email`:return`name@example.com`;case`uri`:case`url`:return`https://example.com`;case`uuid`:return`00000000-0000-0000-0000-000000000000`;default:return``}}function DN({activity:e,appId:t}){let[n,r]=(0,b.useState)(()=>MM(TN(e.schema??null))),[i,a]=(0,b.useState)(null),o=CN(),s=sS(`advance`,{project:t??void 0,workflow:e.workflowId,run:e.runId,activity:e.id}),c=()=>{let e=n.trim();return e===``?void 0:JSON.parse(e)};return(0,O.jsxs)(q,{h:`100%`,children:[(0,O.jsxs)(q,{p:20,borderBottomWidth:1,borderColor:J.border,bg:J.panel,row:!0,justify:`space-between`,align:`flex-start`,gap:12,children:[(0,O.jsxs)(q,{gap:8,flex:1,minW:0,children:[(0,O.jsx)(Z,{variant:`mono`,fontSize:18,fontWeight:`600`,children:e.type}),(0,O.jsxs)(q,{row:!0,gap:8,style:{flexWrap:`wrap`},children:[(0,O.jsx)(nM,{onPress:()=>NM(e.id),children:`activity ${e.id}`}),(0,O.jsx)(nM,{onPress:()=>NM(e.runId),children:`run ${e.runId}`})]})]}),(0,O.jsx)(sa,{to:`/runs/${e.runId}?activity=${e.id}`,style:{textDecoration:`none`},children:(0,O.jsx)(zj,{appearance:`outline`,text:`Open run`,iconAfter:lM})})]}),(0,O.jsxs)(q,{flex:1,overflow:`auto`,p:20,gap:32,children:[(0,O.jsx)(SN,{title:`Advance`,actions:(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(zj,{appearance:iS.capabilities.advance?`ghost`:`outline`,text:`Copy as curl`,onPress:()=>{try{NM(lS(`advance`,s,{payload:c()})),a(null)}catch(e){a(wN(e))}}}),iS.capabilities.advance&&(0,O.jsx)(zj,{appearance:`solid`,text:o.isPending?`Advancing…`:`Advance activity`,isDisabled:o.isPending,onPress:async()=>{let t;try{t=c()}catch(e){a(wN(e));return}try{await o.mutateAsync({activityId:e.id,payload:t}),a(null)}catch(e){a(wN(e))}}})]}),children:(0,O.jsxs)(q,{gap:12,children:[(0,O.jsx)(Z,{variant:`label`,children:`Payload`}),(0,O.jsx)(xN,{value:n,onChange:r,error:i,minLines:5}),(0,O.jsx)(Z,{fontSize:12,children:iS.capabilities.advance?`The payload is validated against the schema below before the activity resumes.`:`This host only accepts authorized requests: copy the curl and send it with the credentials the authorization expects.`})]})}),(0,O.jsx)(SN,{title:`Details`,children:(0,O.jsxs)(q,{gap:16,children:[(0,O.jsx)(IM,{label:`Workflow`,children:e.workflowId}),(0,O.jsx)(IM,{label:`Pending`,children:e.pendingId}),(0,O.jsx)(IM,{label:`Times out at`,children:e.timeoutAt===void 0?`never (waits for an external advance)`:(0,O.jsx)(FM,{to:e.timeoutAt,variant:`mono`,children:t=>`${new Date(e.timeoutAt??``).toLocaleString()} (${t===null?`timing out…`:`in ${t}`})`})}),(0,O.jsxs)(q,{gap:4,children:[(0,O.jsx)(Z,{variant:`label`,children:`Route`}),(0,O.jsxs)(q,{row:!0,gap:12,align:`center`,children:[(0,O.jsx)(uM,{color:J.warn,children:cS(`advance`)}),(0,O.jsx)(Z,{variant:`mono`,children:s})]})]})]})}),(0,O.jsx)(SN,{title:`Expected payload schema`,children:(0,O.jsx)(dM,{value:e.schema?MM(e.schema):`No schema: any payload is accepted.`,color:e.schema?J.text:J.muted})})]})]})}function ON(e){return Math.max(Math.ceil(e/25)-1,0)*25}function kN(){let[e,t]=(0,b.useState)(0),[n,r]=(0,b.useState)(null),{data:i}=mt(TS.manifest()),{data:a,isPending:o,refetch:s}=mt(TS.waitingActivities({limit:25,offset:e})),c=a?.activities??[],l=a?.count??0,u=Math.min(e,ON(l)),d=c.find(e=>e.id===n)??c[0];return(0,O.jsx)(cM,{side:(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(q,{p:12,borderBottomWidth:1,borderColor:J.border,bg:J.panel,row:!0,justify:`space-between`,align:`center`,children:[(0,O.jsx)(Z,{variant:`label`,children:`Waiting activities`}),(0,O.jsxs)(q,{row:!0,align:`center`,gap:8,children:[(0,O.jsx)(nM,{children:`${l} waiting`}),(0,O.jsx)(zj,{appearance:`ghost`,text:`Refresh`,onPress:()=>void s()})]})]}),(0,O.jsx)(q,{flex:1,overflow:`auto`,children:o?(0,O.jsx)(Ej,{}):c.length===0?(0,O.jsxs)(q,{p:20,row:!0,align:`center`,gap:8,children:[(0,O.jsx)($j,{size:16,fill:J.brand}),(0,O.jsx)(Z,{color:J.brand,fontSize:14,children:`All clear — nothing is waiting.`})]}):c.map(e=>(0,O.jsxs)(iM,{isSelected:e.id===d?.id,onSelect:()=>r(e.id),children:[(0,O.jsxs)(q,{row:!0,justify:`space-between`,align:`flex-start`,gap:8,children:[(0,O.jsx)(Z,{variant:`mono`,fontSize:13,color:e.id===d?.id?J.brand:J.text,fontWeight:`600`,numberOfLines:1,children:e.type}),(0,O.jsx)(Z,{fontSize:11,children:e.workflowId})]}),(0,O.jsxs)(q,{row:!0,justify:`space-between`,align:`center`,children:[(0,O.jsx)(Z,{variant:`mono`,color:J.muted,children:PM(e.id)}),e.timeoutAt&&(0,O.jsxs)(q,{row:!0,align:`center`,gap:4,children:[(0,O.jsx)(eM,{size:12,fill:J.muted}),(0,O.jsx)(Z,{fontSize:12,children:new Date(e.timeoutAt).toLocaleTimeString()})]})]})]},e.id))}),(0,O.jsx)(sM,{count:l,offset:u,limit:25,onChange:t})]}),children:d?(0,O.jsx)(DN,{activity:d,appId:i?.id??null},d.id):(0,O.jsx)(rM,{icon:Xx,children:c.length===0?`Nothing is waiting`:`Select an activity to inspect it`})})}function AN({option:e,getOptionLabel:t,textColor:n,...r}){let i=t(e,r),a=xj(n,{duration:300}),o=HA(()=>({color:a.value}),[a]);return typeof i==`string`?(0,O.jsx)(fx,{as:mj.Text,numberOfLines:1,ellipsizeMode:`tail`,fontWeight:`select.option.label.font.weight`,style:o,children:i}):i}E.get().tokens.set({"select.option.label.color.text":`#1c2024`,"select.option.label.font.weight":`400`});var jN={getOptionKey:(e,t,n)=>`select:${n}:options:${t}`,getOptionLabel:e=>typeof e==`object`?e?`label`in e?e.label:String(e):null:String(e),getOptionValue:e=>typeof e==`object`?e||null:e,getOptionIsSelected:(e,t,n)=>t.isMulti?t.value.includes(e)?!0:t.value.some(t=>n(t)===n(e)):t.value===void 0||t.value===null?!1:t.value===e||n(t.value)===n(e),filterOption:(e,t,n)=>{if(typeof e!=`object`||typeof e.label!=`string`)return!0;if(Array.isArray(n.value)){if(n.value.includes(e))return!1}else if(n.value===e)return!1;return e.label.toLowerCase().includes(t.toLowerCase())},getOptionIsDisabled:e=>typeof e==`object`&&`disabled`in e&&!!e.disabled,displayBackgroundColor:`text-input.color.background`,displayTextColor:`select.option.label.color.text`,displayPlaceholderColor:`text-input.color.placeholder`,displayBorderColor:e=>e.isMenuOpen?`text-input.color.outline.focused`:`text-input.color.outline.blured`,menuBorderColor:e=>e.isMenuOpen?`text-input.color.outline.focused`:`text-input.color.outline.blured`,menuOptionLabelTextColor:`select.option.label.color.text`,menuOptionLabelBackgroundColor:`#00000000`};function MN(e,t,n,{menuOptionLabelTextColor:r=jN.menuOptionLabelTextColor,menuOptionLabelBackgroundColor:i=jN.menuOptionLabelBackgroundColor}){return C(a=>{function o(r){if(!r)return;let i=r;return typeof i==`function`&&(i=i(e,n,t)),a.tokens.has(i)?a.tokens.get(i):i}return{menuOptionLabelText:o(r),menuOptionLabelBackground:o(i)}})}function NN({option:e,selectState:t,getOptionIsSelected:n,getOptionIsDisabled:r,getOptionIsClearable:i,getOptionLabel:a,getOptionValue:o,onSelectOptionPress:s,menuOptionLabelTextColor:c,menuOptionLabelBackgroundColor:l}){let{isHovered:u,isPressed:d,props:f}=Fj(),p=(0,b.useCallback)(t=>s(e,t),[s,e]),m=(0,b.useMemo)(()=>n(e,t,o),[n,o,e,t]),h=(0,b.useMemo)(()=>r(e,t),[r,e,t]),g=(0,b.useMemo)(()=>i(e),[i,e]),_=(0,b.useMemo)(()=>({isHovered:u,isPressed:d,isSelected:m,isDisabled:h,isClearable:g}),[u,d,m,h,g]),v=MN(e,t,_,{menuOptionLabelTextColor:c,menuOptionLabelBackgroundColor:l}),y=xj(v.menuOptionLabelBackground,{duration:300}),x=HA(()=>({backgroundColor:y.value}),[y]);return(0,O.jsx)(q,{as:vj.of(dv),...f,onPress:p,px:`select.menu.option.space.x`,py:`select.menu.option.space.y`,style:x,children:(0,O.jsx)(AN,{option:e,getOptionLabel:a,textColor:v.menuOptionLabelText,..._})})}E.get().tokens.set({"select.menu.option.space.x":`@space.150`,"select.menu.option.space.y":`@space.100`,"select.menu.option.color.background":`#FFF`,"select.menu.option.color.border":`@color.background.brand.bold`});function PN({options:e,selectId:t,selectState:n,isLoading:r,noOptionsMessage:i,loadingMessage:a,getOptionLabel:o,getOptionValue:s,getOptionKey:c,getOptionIsSelected:l,getOptionIsDisabled:u,getOptionIsClearable:d,onSelectOptionPress:f,onLoadMoreRequest:p,menuOptionLabelTextColor:m,menuOptionLabelBackgroundColor:h}){return(0,O.jsx)(gp,{data:e,keyExtractor:(e,n)=>c(e,n,t),style:{maxHeight:200},renderItem:({item:e})=>(0,O.jsx)(NN,{option:e,selectState:n,getOptionLabel:o,getOptionValue:s,getOptionIsSelected:l,getOptionIsDisabled:u,getOptionIsClearable:d,onSelectOptionPress:f,menuOptionLabelTextColor:m,menuOptionLabelBackgroundColor:h}),ListEmptyComponent:r?null:(0,O.jsx)(q,{px:`select.menu.option.space.x`,py:`select.menu.option.space.y`,children:typeof i==`string`?(0,O.jsx)(fx,{children:i}):i}),ListFooterComponent:r?(0,O.jsx)(q,{px:`select.menu.option.space.x`,py:`select.menu.option.space.y`,children:typeof a==`string`?(0,O.jsx)(fx,{children:a}):a}):null,onEndReached:p})}E.get().tokens.set({"select.menu.color.background":`#FFF`,"select.menu.color.border":`@color.background.brand.bold`,"select.menu.space.margin.top":`@space.025`});var FN=tx(e=>(0,O.jsx)(Yx,{width:24,height:24,viewBox:`0 0 24 24`,...e,children:(0,O.jsx)(Jx,{d:`m16.192 6.344-4.243 4.242-4.242-4.242-1.414 1.414L10.535 12l-4.242 4.242 1.414 1.414 4.242-4.242 4.243 4.242 1.414-1.414L13.364 12l4.242-4.242z`})})),$;(function(e){e.Grey=`grey`,e.Blue=`blue`,e.Brand=`brand`})($||={}),E.get().tokens.set({"%tag.removable.color.border":`#FFEBE6`,"%tag.removable.color.text":`#BF2600`,"%tag.removable.color.background":`#FFEBE6`}).set({[`tag.${$.Grey}.color.background`]:`#E8E8EC`,[`tag.${$.Grey}.color.border`]:`#E8E8EC`,[`tag.${$.Grey}.color.text`]:`#60646C`,[`tag.${$.Grey}.hovered.color.background`]:`@tag.${$.Grey}.color.background`,[`tag.${$.Grey}.hovered.color.border`]:`#60646C`,[`tag.${$.Grey}.hovered.color.text`]:`@tag.${$.Grey}.color.text`,[`tag.${$.Grey}.pressed.color.background`]:`@tag.${$.Grey}.hovered.color.background`,[`tag.${$.Grey}.pressed.color.border`]:`@tag.${$.Grey}.hovered.color.border`,[`tag.${$.Grey}.pressed.color.text`]:`@tag.${$.Grey}.hovered.color.text`,[`tag.${$.Grey}.removable.hovered.color.background`]:`@%tag.removable.color.background`,[`tag.${$.Grey}.removable.hovered.color.border`]:`@%tag.removable.color.border`,[`tag.${$.Grey}.removable.hovered.color.text`]:`@%tag.removable.color.text`,[`tag.${$.Grey}.removable.pressed.color.background`]:`@tag.${$.Grey}.removable.hovered.color.background`,[`tag.${$.Grey}.removable.pressed.color.border`]:`@tag.${$.Grey}.removable.hovered.color.border`,[`tag.${$.Grey}.removable.pressed.color.text`]:`@tag.${$.Grey}.removable.hovered.color.text`}).set({[`tag.${$.Blue}.color.background`]:`#EDF1FF`,[`tag.${$.Blue}.color.border`]:`#EDF1FF`,[`tag.${$.Blue}.color.text`]:`#494CDF`,[`tag.${$.Blue}.hovered.color.background`]:`@tag.${$.Blue}.color.background`,[`tag.${$.Blue}.hovered.color.border`]:`#494CDF`,[`tag.${$.Blue}.hovered.color.text`]:`@tag.${$.Blue}.color.text`,[`tag.${$.Blue}.pressed.color.background`]:`@tag.${$.Blue}.hovered.color.background`,[`tag.${$.Blue}.pressed.color.border`]:`@tag.${$.Blue}.hovered.color.border`,[`tag.${$.Blue}.pressed.color.text`]:`@tag.${$.Blue}.hovered.color.text`,[`tag.${$.Blue}.removable.hovered.color.background`]:`@%tag.removable.color.background`,[`tag.${$.Blue}.removable.hovered.color.border`]:`@%tag.removable.color.border`,[`tag.${$.Blue}.removable.hovered.color.text`]:`@%tag.removable.color.text`,[`tag.${$.Blue}.removable.pressed.color.background`]:`@tag.${$.Blue}.removable.hovered.color.background`,[`tag.${$.Blue}.removable.pressed.color.border`]:`@tag.${$.Blue}.removable.hovered.color.border`,[`tag.${$.Blue}.removable.pressed.color.text`]:`@tag.${$.Blue}.removable.hovered.color.text`}).set({[`tag.${$.Brand}.color.background`]:`#EDF1FF`,[`tag.${$.Brand}.color.border`]:`#EDF1FF`,[`tag.${$.Brand}.color.text`]:`@color.background.brand.bold`,[`tag.${$.Brand}.hovered.color.background`]:`@tag.${$.Brand}.color.background`,[`tag.${$.Brand}.hovered.color.border`]:`@color.background.brand.bold`,[`tag.${$.Brand}.hovered.color.text`]:`@tag.${$.Brand}.color.text`,[`tag.${$.Brand}.pressed.color.background`]:`@tag.${$.Brand}.hovered.color.background`,[`tag.${$.Brand}.pressed.color.border`]:`@tag.${$.Brand}.hovered.color.border`,[`tag.${$.Brand}.pressed.color.text`]:`@tag.${$.Brand}.hovered.color.text`,[`tag.${$.Brand}.removable.hovered.color.background`]:`@%tag.removable.color.background`,[`tag.${$.Brand}.removable.hovered.color.border`]:`@%tag.removable.color.border`,[`tag.${$.Brand}.removable.hovered.color.text`]:`@%tag.removable.color.text`,[`tag.${$.Brand}.removable.pressed.color.background`]:`@tag.${$.Brand}.removable.hovered.color.background`,[`tag.${$.Brand}.removable.pressed.color.border`]:`@tag.${$.Brand}.removable.hovered.color.border`,[`tag.${$.Brand}.removable.pressed.color.text`]:`@tag.${$.Brand}.removable.hovered.color.text`});function IN({isPressable:e=!1,isRemovable:t=!1,onPress:n,onRemove:r,color:i=`brand`,children:a}){let o=Fj(),s=Fj(),c=(0,b.useMemo)(()=>({isHovered:o.isHovered,isPressed:o.isPressed,isPressable:e,isRemovable:t,isRemovableHovered:s.isHovered,isRemovablePressed:s.isPressed}),[o.isHovered,o.isPressed,e,t,s.isHovered,s.isPressed]),l=(0,b.useMemo)(()=>{let e=`tag`;return e+=`.${i}`,c.isRemovablePressed?e+=`.removable.pressed`:c.isRemovableHovered?e+=`.removable.hovered`:c.isPressed?e+=`.pressed`:c.isHovered&&(e+=`.hovered`),e},[i,c]),u=Sj(`${l}.color.background`,{duration:300}),d=Sj(`${l}.color.border`,{duration:300}),f=Sj(`${l}.color.text`,{duration:300}),p=HA(()=>({color:f.value}),[f]),m=(()=>{let e=a;return typeof e==`function`&&(e=e(c)),typeof e==`string`?(0,O.jsx)(fx,{as:mj.Text,bold:!0,style:p,children:e}):e})(),h=(0,b.useCallback)(e=>{e.stopPropagation(),r?.(e)},[r]);return(0,O.jsxs)(q,{...o.props,as:vj.of(dv),row:!0,rounded:!0,h:`fit-content`,borderWidth:1,disabled:!e,style:HA(()=>({backgroundColor:u.value,borderColor:d.value}),[u,d]),align:!0,onPress:n,children:[(0,O.jsx)(q,{py:`space.050`,pl:`space.075`,pr:t?`0`:`space.075`,children:m}),t&&(0,O.jsx)(q,{...s.props,as:vj.of(dv),px:`space.050`,onPress:h,children:(0,O.jsx)(FN,{fill:`${l}.color.text`,size:`sm`})})]})}function LN({children:e,onOutsidePress:t}){return e(RN(t,[t]))}function RN(e,t=[]){let n=(0,b.useRef)(null),r=(0,b.useRef)(null),i=(0,b.useRef)(e);return(0,b.useEffect)(()=>{i.current=e},t),(0,b.useEffect)(()=>{if(r.current){if(Yl.OS===`web`){let e=r.current;n.current=e.getBoundingClientRect();let t=t=>{e.contains(t.target)||i.current(t)};return document.addEventListener(`mousedown`,t),()=>{document.removeEventListener(`mousedown`,t)}}throw Error(`Not implement for native platforms`)}},[]),(0,b.useCallback)(e=>{r.current=e},[])}var zN=(0,b.createContext)(null);function BN({defaultIsOpen:e=!1,isOpen:t,render:n,onOpenRequest:r,onCloseRequest:i,children:a,shouldFitContainer:o=!1,wrapperProps:s,position:c=`vertical`,animationDuration:l=200,...u}){let d=(0,b.useRef)(null),[f,p]=(0,b.useState)(0),[m,h]=(0,b.useState)(0),[g,_]=(0,b.useState)(`bottom`),[v,y]=(0,b.useState)(e),x=(0,b.useMemo)(()=>t===void 0?v:t,[t,v]),S=(0,b.useCallback)(()=>{i?.(),y(!1)},[i]),C=(0,b.useCallback)(()=>{r?.(),y(!0)},[r]),w=(0,b.useCallback)(()=>{x?S():C()},[x,S,C]),T=(0,b.useMemo)(()=>({isOpen:x,animationDuration:l,toggle:w,close:S,open:C}),[x,w,S,C,l]),E=(0,b.useCallback)(()=>{x&&S()},[S,x]);(0,b.useEffect)(()=>{if(!d.current)return;let e=d.current,t=new ResizeObserver(e=>{for(let t of e)p(t.contentRect.height)});return e.measure((e,t,n,r)=>{p(r),h(n),r>(window.innerHeight||globalThis?.screen?.height||0)-(t+r)?_(`top`):_(`bottom`)}),t.observe(e),()=>t.disconnect()},[]);let[D,k]=(0,b.useState)(!1),ee=yj(+!!x,()=>(k(!0),XE(+!!x,{duration:l},e=>{e&&x&&k(!1)})),[x]),A=(0,b.useMemo)(()=>c===`vertical`?g:c,[c,g]),te=(0,b.useMemo)(()=>A===`left`||A===`right`,[A]),ne=(0,b.useMemo)(()=>{if(A===`top`)return{right:0,top:0};if(A===`left`)return{left:0};if(A===`bottom`)return{right:0,top:`100%`,width:o?`100%`:`auto`};if(A===`right`)return{left:`100%`,top:0};throw Error(`Invalid position: ${A}`)},[A,o]),re=HA(()=>{if(A===`top`)return{opacity:pj(ee.value,[0,1],[0,1]),height:pj(ee.value,[0,1],[0,f]),transform:[{translateY:pj(ee.value,[0,1],[0,-f])}]};if(A===`left`)return{opacity:pj(ee.value,[0,1],[0,1]),width:pj(ee.value,[0,1],[0,m]),transform:[{translateX:pj(ee.value,[0,1],[0,-m])}]};if(A===`bottom`)return{opacity:pj(ee.value,[0,1],[0,1]),height:pj(ee.value,[0,1],[0,f])};if(A===`right`)return{opacity:pj(ee.value,[0,1],[0,1]),width:pj(ee.value,[0,1],[0,m])};throw Error(`Invalid position: ${A}`)},[f,A,m,ee]);return(0,O.jsx)(LN,{onOutsidePress:E,children:e=>(0,O.jsx)(q,{ref:e,position:`relative`,...u,children:(0,O.jsxs)(zN.Provider,{value:T,children:[n(T),(0,O.jsx)(q,{as:mj.View,position:`absolute`,overflow:D?`hidden`:`visible`,...s,style:[{zIndex:10},ne,re,s?.style],children:(0,O.jsx)(Ed,{ref:d,style:{alignSelf:`flex-start`,width:te?void 0:`100%`},children:typeof a==`function`?a(T):a})})]})})})}var VN=tx(e=>(0,O.jsx)(Yx,{width:24,height:24,viewBox:`0 0 24 24`,...e,children:(0,O.jsx)(Jx,{d:`m11.998 17 7-8h-14z`})}));function HN({size:e=`md`,fill:t,animationDuration:n}){let{isOpen:r,animationDuration:i}=(0,b.useContext)(zN),a=yj(r?`180deg`:`0deg`,()=>XE(r?`180deg`:`0deg`,{duration:n??i}),[r,n,i]),o=HA(()=>({transform:[{rotate:a.value}]}),[a]);return(0,O.jsx)(mj.View,{style:o,children:(0,O.jsx)(VN,{size:e,fill:t})})}function UN({selectId:e,value:t,search:n,placeholder:r,isSearchable:i,isLoading:a,isDisabled:o,isClearable:s,enableCaretIndicator:c,getOptionKey:l,getOptionLabel:u,getOptionIsClearable:d,onOptionRemoveRequest:f,onOpenMenuRequest:p,onSearch:m,onClearRequest:h,displayBackgroundColor:g,displayBorderColor:_,displayPlaceholderColor:v,displayCaretIndicatorColor:y}){let x=xj(_,{duration:300}),S=xj(g,{duration:300}),C=xj(v,{duration:300}),w=HA(()=>({color:C.value}),[C]),T=HA(()=>({backgroundColor:S.value,borderColor:x.value}),[S,x]),E=(0,b.useMemo)(()=>!(!o&&i),[o,i]);return(0,O.jsxs)(q,{as:mj.View,row:!0,align:!0,rounded:!0,px:t.length?`space.100`:`text-input.padding-x`,py:t.length?3:`text-input.padding-y`,borderWidth:1,style:T,children:[(0,O.jsxs)(q,{flex:1,row:!0,align:!0,flexWrap:`wrap`,gap:`select.display.multi.space.gap`,children:[!t.length&&(0,O.jsx)(fx,{as:mj.Text,numberOfLines:1,ellipsizeMode:`tail`,fontFamily:`text-input.font.family`,fontSize:`text-input.font.size`,style:w,children:r}),t.map((t,n)=>{let r=d(t)&&!o;return(0,O.jsx)(IN,{color:o?`grey`:`brand`,isRemovable:r,onRemove:()=>f(t),children:e=>u(t,{isHovered:e.isHovered,isPressed:e.isPressed,isClearable:r,isDisabled:!1,isSelected:!0})},`${l(t,n,e)}:multi-option-selected`)}),(0,O.jsx)(q,{flex:1,children:(0,O.jsx)(bN,{value:n,onChange:m,isReadOnly:E,editable:!E,onFocus:p,style:{borderWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,backgroundColor:`transparent`}})})]}),(0,O.jsxs)(q,{row:!0,align:!0,children:[a&&(0,O.jsx)(Ej,{size:`sm`}),s&&!o&&!!t.length&&(0,O.jsx)(Ij,{onPress:h,children:()=>(0,O.jsx)(FN,{size:`md`})}),c&&(0,O.jsx)(HN,{fill:y})]})]})}E.get().tokens.set({"select.display.multi.space.gap":`@space.050`,"select.display.multi.color.border":`@color.background.brand.bold`});function WN({value:e,search:t,isDisabled:n,isLoading:r,isClearable:i,isMenuOpen:a,isSearchable:o,enableCaretIndicator:s,placeholder:c,getOptionLabel:l,onSearch:u,onClearRequest:d,onOpenMenuRequest:f,displayBackgroundColor:p,displayBorderColor:m,displayTextColor:h,displayCaretIndicatorColor:g,displayPlaceholderColor:_}){let v=xj(m,{duration:300}),y=xj(p,{duration:300}),x=xj(_,{duration:300}),S=HA(()=>({color:x.value}),[x]),C=HA(()=>({backgroundColor:y.value,borderColor:v.value}),[y,v]),w=(0,b.useMemo)(()=>!(!n&&o),[n,o]),T=(0,b.useRef)(null);return(0,b.useEffect)(()=>{a&&T.current?.focus()},[a]),(0,O.jsxs)(q,{as:mj.View,position:`relative`,rounded:!0,px:`text-input.padding-x`,py:`text-input.padding-y`,borderWidth:1,style:C,children:[!t&&(0,O.jsxs)(q,{position:`absolute`,inset:0,px:`text-input.padding-x`,py:`text-input.padding-y`,row:!0,children:[!e&&(0,O.jsx)(fx,{as:mj.Text,numberOfLines:1,ellipsizeMode:`tail`,fontFamily:`text-input.font.family`,fontSize:`text-input.font.size`,style:S,children:c}),e&&(0,O.jsx)(AN,{option:e,getOptionLabel:l,isHovered:!1,isPressed:!1,isDisabled:!1,isSelected:!0,isClearable:!1,textColor:h})]}),(0,O.jsxs)(q,{row:!0,children:[(0,O.jsx)(q,{flex:1,children:(0,O.jsx)(bN,{ref:T,value:t,onChange:u,isReadOnly:w,onFocus:f,style:{borderWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,backgroundColor:`transparent`}})}),(0,O.jsxs)(q,{ml:`auto`,row:!0,gap:`space.100`,children:[r&&(0,O.jsx)(Ej,{size:`sm`}),i&&!n&&e&&(0,O.jsx)(Ij,{onPress:d,children:()=>(0,O.jsx)(FN,{size:`md`})}),s&&(0,O.jsx)(HN,{fill:g})]})]})]})}function GN({isMulti:e,isMenuOpen:t,isDisabled:n,isClearable:r,value:i,placeholder:a,isSearchable:o,enableCaretIndicator:s,search:c,selectId:l,isLoading:u,getOptionLabel:d,getOptionIsClearable:f,getOptionKey:p,onOpenMenuRequest:m,onSearch:h,onOptionRemoveRequest:g,onClearRequest:_,displayBackgroundColor:v,displayBorderColor:y,displayTextColor:b,displayCaretIndicatorColor:x,displayPlaceholderColor:S}){return e?(0,O.jsx)(UN,{selectId:l,isClearable:r,isDisabled:n,isMenuOpen:t,isSearchable:o,isLoading:u,displayCaretIndicatorColor:x,enableCaretIndicator:s,value:i,getOptionLabel:d,getOptionIsClearable:f,getOptionKey:p,search:c,placeholder:a,onSearch:h,onClearRequest:_,onOptionRemoveRequest:g,displayBackgroundColor:v,displayBorderColor:y,displayPlaceholderColor:S,onOpenMenuRequest:m}):(0,O.jsx)(WN,{isClearable:r,isDisabled:n,isSearchable:o,isLoading:u,isMenuOpen:t,onClearRequest:_,value:i,placeholder:a,search:c,getOptionLabel:d,onSearch:h,onOpenMenuRequest:m,displayBackgroundColor:v,displayBorderColor:y,displayTextColor:b,enableCaretIndicator:s,displayCaretIndicatorColor:x,displayPlaceholderColor:S})}function KN({onSelectInputPress:e,...t}){return(0,O.jsx)(dv,{onPress:e,children:(0,O.jsx)(GN,{...t})})}function qN(e,{displayTextColor:t=jN.displayTextColor,displayBackgroundColor:n=jN.displayBackgroundColor,displayBorderColor:r=jN.displayBorderColor,displayCaretIndicatorColor:i,menuBorderColor:a=jN.menuBorderColor,displayPlaceholderColor:o=jN.displayPlaceholderColor}){return C(s=>{function c(t){if(!t)return;let n=t;return typeof n==`function`&&(n=n(e)),s.tokens.has(n)?s.tokens.get(n):n}return{displayText:c(t),displayBackground:c(n),displayBorder:c(r),displayCaretIndicator:c(i),displayPlaceholder:c(o),menuBorder:c(a)}})}function JN({options:e,value:t,isLoading:n,isMulti:r=!1,isMenuOpen:i,isSearchable:a=!1,enableCaretIndicator:o=!1,placeholder:s=`...`,isClearable:c=!1,closeMenuOnSelect:l=!r,noOptionsMessage:u=`No options...`,loadingMessage:d=`Loading...`,isDisabled:f=!1,isEager:p=!1,filterOption:m=jN.filterOption,getOptionKey:h=jN.getOptionKey,getOptionLabel:g=jN.getOptionLabel,getOptionValue:_=jN.getOptionValue,getOptionIsSelected:v=jN.getOptionIsSelected,getOptionIsDisabled:y=jN.getOptionIsDisabled,getMenuOptionLabel:x=g,getDisplayOptionLabel:S=g,onChange:C,onSearch:w,onLoadMoreRequest:T,displayBackgroundColor:E,displayBorderColor:D,displayTextColor:k,displayCaretIndicatorColor:ee,displayPlaceholderColor:A,menuBorderColor:te,menuOptionLabelTextColor:ne,menuOptionLabelBackgroundColor:re}){let ie=(0,b.useId)(),[j,M]=(0,b.useState)(()=>{if(typeof e==`function`)return[];if(e===void 0)throw Error(`options is required`);return e}),[ae,oe]=(0,b.useState)(()=>t===void 0?r?[]:null:t);(0,b.useEffect)(()=>{t!==void 0&&oe(t)},[t,oe]);let[se,N]=(0,b.useState)(``),[ce,le]=(0,b.useState)(()=>typeof j==`function`),[ue,de]=(0,b.useState)(!1),fe=(0,b.useMemo)(()=>i===void 0?!f&&ue:i,[ue,f,i]),pe=(0,b.useMemo)(()=>n===void 0?ce:n,[n,ce]),me=(0,b.useMemo)(()=>!!c,[c]),he=(0,b.useMemo)(()=>({options:j,value:ae,isLoading:pe,isMenuOpen:fe,isMulti:r,isClearable:me}),[j,ae,pe,fe,r,me]),ge=(0,b.useMemo)(()=>j.filter(e=>m(e,se,he)).filter(e=>!v(e,he,_)),[j,m,v,_,se,he]),_e=(0,b.useCallback)(e=>typeof c==`function`?c(e):r?!0:c,[r,c]),P=(0,b.useCallback)(e=>{oe(e),C?.(e),l&&de(!1)},[C,l]),ve=(0,b.useCallback)(e=>{let t=Array.isArray(ae)?ae.includes(e)?ae.toSpliced(ae.indexOf(e),1):[...ae,e]:e;P(t)},[ae,P]),F=(0,b.useCallback)(e=>ve(e),[ve]),ye=(0,b.useCallback)(e=>{N(e),w?.(e)},[w]),I=(0,b.useCallback)(e=>F(e),[F]),be=(0,b.useCallback)(()=>P(typeof c==`function`?Array.isArray(ae)?ae.filter(e=>!_e(e)):null:Array.isArray(ae)?[]:null),[P,c,ae,_e]);(0,b.useEffect)(()=>{if(typeof e!=`function`)return M(e);f||(p||fe)&&(le(!0),Promise.resolve(e(se)).then(e=>M(e)).finally(()=>le(!1)))},[e,fe,f,se,p]),(0,b.useEffect)(()=>{se!==``&&!fe&&ye(``)},[fe,se,ye]);let xe=(0,b.useCallback)(()=>{de(!0)},[]),L=(0,b.useCallback)(()=>{de(!1)},[]),Se=qN(he,{displayBackgroundColor:E,displayBorderColor:D,displayTextColor:k,displayCaretIndicatorColor:ee,displayPlaceholderColor:A,menuBorderColor:te}),Ce=xj(Se.menuBorder,{duration:300}),we=HA(()=>({borderColor:Ce.value}),[Ce]),Te=(0,b.useMemo)(()=>typeof o==`function`?o(he):o,[o,he]);return(0,O.jsx)(BN,{shouldFitContainer:!0,flex:1,isOpen:fe,onOpenRequest:xe,onCloseRequest:L,position:`vertical`,wrapperProps:{rounded:!0,borderWidth:1,style:we,bg:`white`,marginTop:-1,overflow:`hidden`},render:({open:e})=>(0,O.jsx)(KN,{isDisabled:f,isMenuOpen:fe,isMulti:r,enableCaretIndicator:Te,isSearchable:a,isLoading:pe,isClearable:me,selectId:ie,value:ae,placeholder:s,search:se,getOptionKey:h,getOptionLabel:S,getOptionIsClearable:_e,onSearch:ye,onSelectInputPress:e,onOpenMenuRequest:xe,onOptionRemoveRequest:I,onClearRequest:be,displayBackgroundColor:Se.displayBackground,displayBorderColor:Se.displayBorder,displayTextColor:Se.displayText,displayCaretIndicatorColor:Se.displayCaretIndicator,displayPlaceholderColor:Se.displayPlaceholder}),children:(0,O.jsx)(PN,{isMenuOpen:fe,isLoading:pe,options:ge,selectId:ie,selectState:he,noOptionsMessage:u,loadingMessage:d,getOptionLabel:x,getOptionValue:_,getOptionKey:h,getOptionIsSelected:v,getOptionIsDisabled:y,getOptionIsClearable:_e,onSelectOptionPress:F,onLoadMoreRequest:T,menuOptionLabelTextColor:ne,menuOptionLabelBackgroundColor:re})})}function YN({isChecked:e,size:t=`md`,onChange:n}){let[r,i]=(0,b.useState)(!1),a=(0,b.useMemo)(()=>e===void 0?r:e,[e,r]),[o,s]=(0,b.useMemo)(()=>{let e=(()=>{if(t===`sm`)return 16;if(t===`md`)return 18;throw Error(`Invalid size`)})();return[e,e*2]},[t]),c=(0,b.useMemo)(()=>o-4,[o]),l=(0,b.useMemo)(()=>s-c-4,[s,c]),u=yj(+!!a,()=>XE(+!!a,{duration:200}),[a]),d=Sj(a?`switch.checked.background.color`:`switch.background.color`,{duration:200}),f=HA(()=>({transform:[{translateX:u.value*l}]}),[u,l]),p=HA(()=>({backgroundColor:d.value}),[d]),m=(0,b.useCallback)(()=>{i(!r),n?.(!r)},[n,r]);return(0,O.jsx)(q,{as:vj.of(dv),h:o,w:s,rounded:`full`,p:2,position:`relative`,onPress:m,style:p,children:(0,O.jsx)(q,{as:mj.View,position:`absolute`,rounded:`full`,w:c,h:c,bg:`#FFF`,style:f})})}E.get().tokens.set({"switch.background.color":`#74788D`,"switch.checked.background.color":`@color.background.brand.bold`});function XN({at:e,...t}){let n=TM(e),r=wM({initialTime:n,intervalInMs:mM(Date.now()-n)});return(0,O.jsx)(Z,{...t,children:AM(e,n+r)})}function ZN({run:e,isSelected:t,onSelect:n}){return(0,O.jsxs)(iM,{isSelected:t,onSelect:n,children:[(0,O.jsxs)(q,{row:!0,align:`center`,justify:`space-between`,gap:12,children:[(0,O.jsx)(Z,{variant:`mono`,fontSize:13,color:t?J.brand:J.text,fontWeight:`600`,numberOfLines:1,children:e.workflow}),(0,O.jsx)(XN,{at:e.createdAt,fontSize:12})]}),(0,O.jsxs)(q,{row:!0,align:`center`,gap:8,children:[(0,O.jsx)(uM,{color:pS[e.status],children:mS[e.status]}),e.parentWorkflowRunId&&(0,O.jsx)(uM,{color:J.muted,children:`child`}),(0,O.jsx)(Z,{variant:`mono`,color:J.muted,numberOfLines:1,children:e.id})]})]})}var QN=tx(e=>(0,O.jsxs)(Yx,{width:24,height:24,viewBox:`0 0 24 24`,...e,children:[(0,O.jsx)(Jx,{d:`M12 5c-3.859 0-7 3.141-7 7s3.141 7 7 7 7-3.141 7-7-3.141-7-7-7zm0 12c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5z`}),(0,O.jsx)(Jx,{d:`M12 9c-1.627 0-3 1.373-3 3s1.373 3 3 3 3-1.373 3-3-1.373-3-3-3z`})]}));function $N(e,t){return Object.hasOwn(e,t)?e[t]:void 0}function eP(e,t){return $N(e,t)??t}function tP(e,t,n){try{return e(t)}catch(e){return n?St(25,t,e,n):St(24,t,e),null}}function nP(e){function t(t){if(t===void 0)return null;let n=Array.isArray(t);return n&&t[0]===void 0?null:(t=n?t[0]:typeof t==`string`?t:``,tP(e.parse,t))}return{type:`single`,eq:(e,t)=>e===t,...e,parseServerSide:t,withDefault(e){return{...this,defaultValue:e,parseServerSide(n){return t(n)??e}}},withOptions(e){return{...this,...e}}}}var rP=nP({parse:e=>e,serialize:String}),iP=nP({parse:e=>{let t=parseInt(e);return t==t?t:null},serialize:e=>``+Math.round(e)});nP({parse:e=>{let t=parseInt(e);return t==t?t-1:null},serialize:e=>``+Math.round(e+1)}),nP({parse:e=>{let t=parseInt(e,16);return t==t?t:null},serialize:e=>{let t=Math.round(e).toString(16);return t<`0`||!(t.length&1)?t:`0`+t}}),nP({parse:e=>{let t=parseFloat(e);return t==t?t:null},serialize:String});var aP=nP({parse:e=>e.toLowerCase()===`true`,serialize:String});function oP(e,t){return e.valueOf()===t.valueOf()}nP({parse:e=>{let t=new Date(parseInt(e));return+t==+t?t:null},serialize:e=>``+e.valueOf(),eq:oP}),nP({parse:e=>{let t=new Date(e);return+t==+t&&sP.parse(e)?t:null},serialize:e=>e.toISOString(),eq:oP});var sP=nP({parse:e=>{let t=new Date(e.slice(0,10));return+t==+t&&sP.serialize(t)===e.slice(0,10)?t:null},serialize:e=>e.toISOString().slice(0,10),eq:oP});function cP(e){return nP({parse:t=>{let n=t;return e.includes(n)?n:null},serialize:String})}function lP(e,{clearOnDefault:t=!0,urlKeys:n={},processUrlSearchParams:r}={}){function i(i,a={}){let[o,s,c]=uP(i)?dP(i):[``,new URLSearchParams,``],l=uP(i)?a:i;if(l===null){for(let t of Object.keys(e)){let e=eP(n,t);s.delete(e)}return r&&(s=r(s)),o+Tt(s)+c}for(let r of Object.keys(e)){let i=e[r],a=$N(l,r);if(a===void 0)continue;let o=eP(n,r),c=i.defaultValue!==void 0&&a!==null&&(i.eq??an)(a,i.defaultValue);if(a===null||(i.clearOnDefault??t??!0)&&c)s.delete(o);else{let e=i.serialize(a);s=Bt(s,o,e)}}return r&&(s=r(s)),o+Tt(s)+c}return i}function uP(e){return typeof e==`string`||e instanceof URLSearchParams||e instanceof URL}function dP(e){if(typeof e==`string`){let[t=``,...n]=e.split(`#`),r=n.length?`#`+n.join(`#`):``,[i=``,...a]=t.split(`?`);return[i,new URLSearchParams(a.join(`?`)),r]}if(e instanceof URLSearchParams)return[``,new URLSearchParams(e),``];{let t=e.href.length-e.search.length-e.hash.length,n=e.href.slice(0,t).replace(/[?#]+$/,``),r=e.hash||(e.href.endsWith(`#`)?`#`:``);return[n,new URLSearchParams(e.searchParams),r]}}var fP=kt(`sync-emitter`,()=>Ht()),pP={},mP=(e,t)=>e===`defaultValue`?void 0:t;function hP(e,t={}){let n=(0,b.useId)(),r=Pt(),i=Ft(),{history:a=r?.history??`replace`,scroll:o=r?.scroll??!1,shallow:s=r?.shallow??!0,throttleMs:c=Rt.timeMs,limitUrlUpdates:l=r?.limitUrlUpdates,clearOnDefault:u=r?.clearOnDefault??!0,startTransition:d,urlKeys:f=pP}=t,p=Object.keys(e).join(`,`),m=(0,b.useRef)(e),h=m.current,g=JSON.stringify(Object.entries(h),mP)===JSON.stringify(Object.entries(e),mP)&&Object.entries(e).every(([e,t])=>{if(h[e]?.startTransition!==t.startTransition)return!1;let n=h[e]?.defaultValue,r=t.defaultValue;return Object.is(n,r)?!0:n!==void 0&&r!==void 0&&t.eq?.(n,r)===!0})?h:e;m.current=g;let _=(0,b.useMemo)(()=>Object.fromEntries(Object.keys(e).map(e=>[e,eP(f,e)])),[p,JSON.stringify(f)]),v=Object.values(_),y=Nt(v),x=y.searchParams,S=(0,b.useRef)(null),C=(0,b.useRef)(null),w=$t(v),[T]=(0,b.useState)(()=>{let t={},[,n]=gP(e,_,x,w,t);return[n,t]}),E=(0,b.useRef)(T[1]),[D,O]=(0,b.useState)(T[0]),k=(0,b.useRef)(D),ee=e=>JSON.stringify([v.map(t=>[t,e.getAll(t)]),w]),A=ee(x),te=()=>{let[t,r]=gP(e,_,x,w,E.current,k.current);return t&&(xt(1,n,p,r),k.current=r,O(r)),t},ne=Object.keys(E.current).join(`&`)!==v.join(`&`),re=C.current===null||C.current===(y.pathname??location.pathname);if(ne)S.current=A,te(),E.current=Object.fromEntries(Object.entries(_).map(([t,n])=>[n,e[t]?.type===`multi`?x.getAll(n):x.get(n)]));else{let e=!1;re&&S.current!==A&&(S.current=A,e=te()),!e&&D!==k.current&&(re||y.pathname===void 0&&S.current===ee(new URLSearchParams(location.search)))&&O(k.current)}(0,b.useEffect)(()=>{C.current=y.pathname??location.pathname,te()},[A,y.pathname]),(0,b.useEffect)(()=>{let t=[];for(let[r,i]of Object.entries(_)){let a=({state:t,query:a})=>{O(o=>Object.is(o[r]??null,t)?(xt(2,n,p,i,t,e[r]?.defaultValue,k.current),o):(k.current={...k.current,[r]:t},E.current[i]=a,xt(3,n,p,i,t,e[r]?.defaultValue,k.current),k.current))};xt(4,n,i,p),fP.on(i,a),t.push([i,a])}return()=>{for(let[e,r]of t)xt(5,n,e,p),fP.off(e,r)}},[p,_]);let ie=(0,b.useCallback)((e,t={})=>{let r=(typeof e==`function`?e(_P(k.current,g)):e)??Object.fromEntries(Object.keys(g).map(e=>[e,null]));xt(6,n,p,r);let f,m=0,h=[];for(let[e,n]of Object.entries(r)){let r=$N(g,e),p=_[e];if(!r||p===void 0||n===void 0)continue;(t.clearOnDefault??r.clearOnDefault??u)&&n!==null&&r.defaultValue!==void 0&&(r.eq??an)(n,r.defaultValue)&&(n=null);let v=n===null?null:(r.serialize??String)(n);fP.emit(p,{state:n,query:v});let b={key:p,query:v,options:{history:t.history??r.history??a,shallow:t.shallow??r.shallow??s,scroll:t.scroll??r.scroll??o,startTransition:t.startTransition??r.startTransition??d}},x=t.limitUrlUpdates??r.limitUrlUpdates??l;if(x?.method===`debounce`){let e=x.timeMs??Rt.timeMs,t=Qt.push(b,e,y,i);m<e&&(f=t,m=e)}else{let e=x?.timeMs??t.throttleMs??r.throttleMs??c;h.push(Qt.abort(p)),Jt.push(b,e)}}let v=h.length?Jt.flush(y,i):Jt.getPendingPromise(y);for(let e of h)v=e(v);return f??v},[p,a,s,o,c,l?.method,l?.timeMs,d,u,g,_,y.updateUrl,y.getSearchParamsSnapshot,y.rateLimitFactor,i]);return[(0,b.useMemo)(()=>_P(D,g),[D,g]),ie]}function gP(e,t,n,r,i={},a={}){let o=!1,s=Object.entries(e).reduce((e,[s,c])=>{let l=t[s],u=$N(r,l),d=c.type===`multi`?[]:null,f=u===void 0?c.type===`multi`?n.getAll(l):n.get(l):u,p=$N(a,s);return p!==void 0&&on($N(i,l)??d,f)?(e[s]=p,e):(o=!0,e[s]=(zt(f)?null:tP(c.parse,f,l))??null,i[l]=f,e)},{});return o||=Object.keys(s).length!==Object.keys(a).length,[o,s]}function _P(e,t){return Object.fromEntries(Object.keys(e).map(n=>[n,e[n]??t[n]?.defaultValue??null]))}function vP(e,t={}){let{parse:n=e=>e,type:r,serialize:i,eq:a,defaultValue:o,...s}=t,c={parse:n,type:r,serialize:i,eq:a,defaultValue:o},[{[e]:l},u]=hP({[e]:c},s);return[l,(0,b.useCallback)((t,n={})=>u(n=>({[e]:typeof t==`function`?t(n[e]):t}),n),[e,u])]}function yP(){return vP(`activity`)}function bP({text:e,label:t=`Copy`}){return(0,O.jsx)(zj,{appearance:`ghost`,text:t,onPress:()=>NM(e)})}function xP({from:e,to:t=null,...n}){let r=TM(e),i=wM({initialTime:r,isActive:t===null,intervalInMs:pM(Date.now()-r)});return t===null?(0,O.jsx)(Z,{...n,children:OM(i)}):(0,O.jsx)(Z,{...n,children:DM(TM(t)-r)})}function SP({status:e,size:t=14}){let n=pS[e];return e===`running`?(0,O.jsx)(Ej,{size:t,color:n}):(0,O.jsx)(e===`fulfilled`?$j:FN,{size:t,fill:n})}function CP({label:e,children:t}){return(0,O.jsxs)(q,{gap:6,flex:1,minW:120,children:[(0,O.jsx)(Z,{variant:`label`,children:e}),t]})}function wP({log:e}){let t=hS[e.level]??J.text,n=e.args.map(e=>typeof e==`string`?e:MM(e)).join(` `);return(0,O.jsxs)(q,{row:!0,gap:12,align:`flex-start`,children:[(0,O.jsx)(Z,{variant:`mono`,color:J.dim,children:jM(e.at)}),(0,O.jsx)(Z,{variant:`mono`,color:t,children:`[${e.level.toUpperCase()}]`}),(0,O.jsx)(q,{flex:1,children:(0,O.jsx)(Z,{variant:`mono`,color:t,children:n})})]})}function TP({runId:e}){let[t,n]=(0,b.useState)(0),{data:r}=mt(TS.runLogs(e,{limit:25,offset:t})),i=r?.logs??[],a=r?.count??0;return(0,O.jsxs)(SN,{title:`Logs`,actions:(0,O.jsx)(Z,{variant:`mono`,color:J.muted,children:`${a} entries`}),children:[r?i.length===0?(0,O.jsx)(Z,{children:`Nothing was logged by this run.`}):(0,O.jsx)(q,{bg:J.background,gap:4,children:i.map((e,n)=>(0,O.jsx)(wP,{log:e},`${t}-${n}`))}):(0,O.jsx)(Ej,{}),(0,O.jsx)(sM,{count:a,offset:t,limit:25,onChange:n})]})}function EP(e){return e.status===`running`?null:e.updatedAt}function DP(e){return e===null?null:TM(e)}var OP=.6;function kP({scale:e,from:t,to:n,color:r,isPulsing:i=!1}){let a=wM({initialTime:e.start,isActive:e.end===null||n===null,intervalInMs:250}),o=e.start+a,s=Math.max((e.end??o)-e.start,1),c=n??o,l=Math.min(Math.max((t-e.start)/s*100,0),100),u=Math.max((Math.max(c,t)-t)/s*100,OP);return(0,O.jsx)(q,{h:10,bg:J.raised,rounded:5,position:`relative`,flex:1,children:(0,O.jsx)(q,{position:`absolute`,top:0,bottom:0,left:`${l}%`,w:`${Math.min(u,100-l)}%`,bg:r,rounded:5,style:i?{opacity:.85}:void 0})})}var AP=tx(e=>(0,O.jsx)(Yx,{width:24,height:24,viewBox:`0 0 24 24`,...e,children:(0,O.jsx)(Jx,{d:`M14 13H8V5H6v9a1 1 0 0 0 1 1h7v3l5-4-5-4v3z`})})),jP=tx(e=>(0,O.jsx)(Yx,{width:24,height:24,viewBox:`0 0 24 24`,...e,children:(0,O.jsx)(Jx,{d:`m9 19 8-7-8-7z`})}));function MP({isExpanded:e}){return(0,O.jsx)(e?VN:jP,{size:12,fill:J.muted})}function NP({to:e,children:t,fontSize:n=12,style:r}){return(0,O.jsx)(sa,{to:e,style:{textDecoration:`none`,...r},children:(0,O.jsxs)(q,{row:!0,align:`center`,gap:4,children:[(0,O.jsx)(Z,{variant:`mono`,color:J.info,fontSize:n,children:t}),(0,O.jsx)(lM,{size:n,fill:J.info})]})})}var PP=3;function FP({child:e,scale:t,depth:n}){let[r,i]=(0,b.useState)(!1),a=pS[e.status],o=n<PP,{data:s}=mt({...TS.run(e.id),enabled:r}),c=EP(e);return(0,O.jsxs)(q,{gap:6,children:[(0,O.jsxs)(q,{row:!0,align:`center`,gap:12,ph:12,pv:8,bg:`${J.panel}80`,rounded:4,borderWidth:1,borderColor:`${J.border}80`,...o?tM(()=>i(e=>!e)):{},children:[(0,O.jsxs)(q,{flex:1,minW:0,row:!0,align:`center`,gap:8,children:[o&&(0,O.jsx)(MP,{isExpanded:r}),(0,O.jsx)(AP,{size:12,fill:J.dim}),(0,O.jsx)(Z,{variant:`mono`,numberOfLines:1,children:e.workflow}),(0,O.jsx)(uM,{color:a,children:mS[e.status]}),(0,O.jsx)(NP,{to:`/runs/${e.id}`,fontSize:11,style:{marginLeft:`auto`},children:`open`})]}),(0,O.jsx)(q,{w:`42%`,children:(0,O.jsx)(kP,{scale:t,from:TM(e.createdAt),to:DP(c),color:a,isPulsing:e.status===`running`})}),(0,O.jsx)(q,{w:72,align:`flex-end`,children:(0,O.jsx)(xP,{from:e.createdAt,to:c,variant:`mono`,color:J.muted})})]}),r&&(0,O.jsx)(q,{ml:24,children:s?(0,O.jsx)(qP,{run:s,scale:t,depth:n+1,focusedActivityId:null}):(0,O.jsx)(Ej,{})})]})}function IP({activityId:e,scale:t,depth:n}){let{data:r,fetchNextPage:i,isFetchingNextPage:a}=yt(TS.childRuns(e));if(!r)return(0,O.jsx)(Ej,{});let o=r.pages.flatMap(e=>e.runs),s=r.pages.at(-1)?.count??0,c=s-o.length;return(0,O.jsxs)(q,{ml:24,gap:6,children:[o.map(e=>(0,O.jsx)(FP,{child:e,scale:t,depth:n},e.id)),c>0&&(0,O.jsxs)(q,{row:!0,align:`center`,gap:12,ph:12,children:[(0,O.jsx)(Z,{variant:`mono`,color:J.muted,children:`${o.length} of ${s} child runs`}),(0,O.jsx)(zj,{appearance:`ghost`,text:`Show ${Math.min(c,15)} more`,isLoading:a,onPress:()=>void i()})]})]})}function LP({pending:e}){return e.timeoutAt===null?(0,O.jsx)(Z,{variant:`mono`,color:J.muted,children:`no timeout`}):e.status===`pending`?(0,O.jsx)(FM,{to:e.timeoutAt,variant:`mono`,color:J.muted,children:e=>e===null?`timing out…`:`times out in ${e}`}):(0,O.jsx)(Z,{variant:`mono`,color:J.muted,children:`timeout was ${jM(e.timeoutAt)}`})}function RP({pending:e}){return(0,O.jsxs)(q,{bg:J.background,p:12,gap:8,children:[(0,O.jsxs)(q,{row:!0,align:`center`,justify:`space-between`,gap:12,children:[(0,O.jsxs)(q,{row:!0,align:`center`,gap:8,children:[(0,O.jsx)(uM,{color:e.status===`pending`?J.info:pS[e.status],children:e.status}),(0,O.jsx)(nM,{onPress:()=>NM(e.id),children:`pending ${e.id}`})]}),(0,O.jsx)(LP,{pending:e})]}),e.schema&&(0,O.jsxs)(q,{gap:4,children:[(0,O.jsx)(Z,{variant:`label`,children:`Expected payload schema`}),(0,O.jsx)(Z,{variant:`mono`,color:J.muted,children:MM(e.schema)})]}),(0,O.jsxs)(q,{row:!0,gap:16,children:[(0,O.jsxs)(q,{flex:1,gap:4,children:[(0,O.jsx)(Z,{variant:`label`,children:`Result`}),(0,O.jsx)(Z,{variant:`mono`,color:J.muted,children:MM(e.result)})]}),(0,O.jsxs)(q,{flex:1,gap:4,children:[(0,O.jsx)(Z,{variant:`label`,children:`Payload received`}),(0,O.jsx)(Z,{variant:`mono`,color:J.muted,children:MM(e.payload)})]})]})]})}function zP({runId:e,activityId:t}){let[n,r]=(0,b.useState)(0),{data:i}=mt(TS.runActivityPendings(e,t,{limit:25,offset:n}));return i?i.count===0?null:(0,O.jsxs)(q,{gap:6,children:[(0,O.jsx)(Z,{variant:`label`,children:`Async steps`}),i.pendings.map(e=>(0,O.jsx)(RP,{pending:e},e.id)),(0,O.jsx)(sM,{count:i.count,offset:n,limit:25,onChange:r})]}):(0,O.jsx)(Ej,{})}var BP={completed:{label:`Completed`,color:J.brand},waiting:{label:`Waiting`,color:J.info},running:{label:`Running`,color:J.info},failed:{label:`Failed`,color:J.error}};function VP(e,t){return t.rejectedActivityId===e.id?`failed`:e.status===`fulfilled`?`completed`:e.status===`rejected`?`failed`:e.kind===`async`&&e.pendingStatus===`pending`?`waiting`:`running`}function HP(e,t){return e.settledAt??EP(t)}function UP({activity:e,index:t,run:n,scale:r,depth:i,isFocused:a}){let[o,s]=(0,b.useState)(a),c=(0,b.useRef)(null),{data:l}=mt({...TS.runActivity(n.id,e.id),enabled:o}),u=VP(e,n),{label:d,color:f}=BP[u],p=HP(e,n),m=u===`running`||u===`waiting`;return(0,b.useEffect)(()=>{a&&(s(!0),c.current?.scrollIntoView?.({block:`center`}))},[a]),(0,O.jsxs)(q,{gap:6,children:[(0,O.jsxs)(q,{ref:c,row:!0,align:`center`,gap:12,ph:12,pv:10,bg:J.panel,rounded:4,borderWidth:1,borderColor:a?J.brand:J.border,...tM(()=>s(e=>!e)),children:[(0,O.jsxs)(q,{flex:1,minW:0,row:!0,align:`center`,gap:8,children:[(0,O.jsx)(MP,{isExpanded:o}),(0,O.jsx)(Z,{variant:`mono`,fontSize:13,fontWeight:`600`,numberOfLines:1,children:e.type}),(0,O.jsx)(uM,{color:f,children:d}),(0,O.jsx)(uM,{color:J.muted,children:e.kind}),e.hasChildren&&(0,O.jsx)(uM,{color:J.info,children:`child runs`})]}),(0,O.jsx)(q,{w:`42%`,children:(0,O.jsx)(kP,{scale:r,from:TM(e.createdAt),to:DP(p),color:f,isPulsing:m})}),(0,O.jsx)(q,{w:72,align:`flex-end`,children:(0,O.jsx)(xP,{from:e.createdAt,to:p,variant:`mono`,color:J.muted})})]}),o&&(0,O.jsxs)(q,{p:16,gap:16,rounded:4,borderWidth:1,borderColor:J.border,bg:`${J.panel}80`,children:[(0,O.jsxs)(q,{row:!0,align:`center`,gap:8,style:{flexWrap:`wrap`},children:[(0,O.jsx)(nM,{onPress:()=>NM(e.id),children:`activity ${e.id}`}),(0,O.jsx)(Z,{variant:`mono`,color:J.dim,fontSize:11,children:`click to copy`})]}),(0,O.jsxs)(q,{row:!0,gap:16,children:[(0,O.jsx)(CP,{label:`Started`,children:(0,O.jsx)(Z,{variant:`mono`,children:jM(e.createdAt)})}),(0,O.jsx)(CP,{label:`Completed`,children:(0,O.jsx)(Z,{variant:`mono`,children:e.settledAt?jM(e.settledAt):`—`})}),(0,O.jsx)(CP,{label:`Position`,children:(0,O.jsx)(Z,{variant:`mono`,children:String(t)})})]}),u===`failed`&&n.rejectedReason&&(0,O.jsxs)(q,{gap:6,children:[(0,O.jsx)(Z,{variant:`label`,children:`Rejection`}),(0,O.jsx)(dM,{value:n.rejectedReason.stack??n.rejectedReason.message,color:J.error})]}),l?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(q,{gap:6,children:[(0,O.jsx)(Z,{variant:`label`,children:`Input`}),(0,O.jsx)(dM,{value:MM(l.input)})]}),(0,O.jsxs)(q,{gap:6,children:[(0,O.jsx)(Z,{variant:`label`,children:`Output`}),(0,O.jsx)(dM,{value:u===`completed`||u===`failed`?MM(l.output):`Not completed yet.`,color:u===`completed`?J.text:J.muted})]}),e.kind===`async`&&(0,O.jsx)(zP,{runId:n.id,activityId:e.id})]}):(0,O.jsx)(Ej,{})]}),o&&e.hasChildren&&(0,O.jsx)(IP,{activityId:e.id,scale:r,depth:i})]})}var WP=[0,.25,.5,.75,1];function GP({scale:e}){let t=wM({initialTime:e.start,isActive:e.end===null,intervalInMs:250}),n=Math.max((e.end??e.start+t)-e.start,1);return(0,O.jsxs)(q,{row:!0,align:`center`,gap:12,ph:12,pb:4,children:[(0,O.jsx)(q,{flex:1,minW:0}),(0,O.jsx)(q,{w:`42%`,row:!0,justify:`space-between`,children:WP.map(e=>(0,O.jsx)(Z,{variant:`mono`,color:J.dim,fontSize:10,children:DM(n*e)},e))}),(0,O.jsx)(q,{w:72})]})}function KP({run:e,activities:t,scale:n,depth:r,focusedActivityId:i}){return t.length===0?(0,O.jsx)(Z,{children:e.status===`running`?`No activity pushed yet.`:`This run finished without pushing any activity.`}):(0,O.jsxs)(q,{gap:6,children:[r===0&&(0,O.jsx)(GP,{scale:n}),t.map((t,a)=>(0,O.jsx)(UP,{activity:t,index:a,run:e,scale:n,depth:r,isFocused:t.id===i},t.id))]})}function qP({run:e,scale:t,depth:n,focusedActivityId:r}){let[i,a]=(0,b.useState)(0),{data:o}=mt(TS.runActivities(e.id,{limit:25,offset:i}));return o?(0,O.jsxs)(q,{gap:6,children:[(0,O.jsx)(KP,{run:e,activities:[...o.activities].reverse(),scale:t,depth:n,focusedActivityId:r}),(0,O.jsx)(sM,{count:o.count,offset:i,limit:25,onChange:a})]}):(0,O.jsx)(Ej,{})}function JP({runId:e}){let t=Jr(),[n]=yP(),{data:r,error:i}=mt(TS.run(e)),a=r?.status===`running`;if(i)return(0,O.jsx)(q,{p:20,children:(0,O.jsx)(Z,{variant:`mono`,color:J.error,children:String(i)})});if(!r)return(0,O.jsx)(Ej,{});let o=TM(r.createdAt),s=a?null:TM(r.updatedAt),c={start:o,end:s},l=pS[r.status],u=r.rejectedReason?.stack??r.rejectedReason?.message??`Rejected without a reason.`;return(0,O.jsxs)(q,{h:`100%`,children:[(0,O.jsxs)(q,{p:20,gap:16,borderBottomWidth:1,borderColor:J.border,bg:J.panel,children:[(0,O.jsxs)(q,{row:!0,align:`center`,justify:`space-between`,gap:12,children:[(0,O.jsxs)(q,{row:!0,align:`center`,gap:12,flex:1,minW:0,children:[(0,O.jsx)(sa,{to:`/workflows/${encodeURIComponent(r.workflow)}`,style:{textDecoration:`none`},children:(0,O.jsx)(Z,{variant:`mono`,fontSize:18,fontWeight:`600`,children:r.workflow})}),(0,O.jsx)(nM,{onPress:()=>NM(r.id),children:`run ${r.id}`})]}),(0,O.jsxs)(q,{row:!0,gap:8,children:[iS.capabilities.trigger&&(0,O.jsx)(zj,{appearance:`outline`,text:`Run again`,onPress:()=>t(`/workflows/${encodeURIComponent(r.workflow)}`,{state:{input:r.input}})}),(0,O.jsx)(zj,{appearance:`outline`,text:`Copy run JSON`,onPress:()=>NM(MM(r))})]})]}),(0,O.jsxs)(q,{row:!0,gap:16,style:{flexWrap:`wrap`},children:[(0,O.jsx)(CP,{label:`Status`,children:(0,O.jsxs)(q,{row:!0,align:`center`,gap:6,children:[(0,O.jsx)(SP,{status:r.status}),(0,O.jsx)(Z,{fontSize:14,fontWeight:`600`,color:l,children:mS[r.status]})]})}),(0,O.jsx)(CP,{label:`Duration`,children:(0,O.jsx)(xP,{from:r.createdAt,to:EP(r),variant:`mono`,fontSize:14})}),(0,O.jsx)(CP,{label:`Start time`,children:(0,O.jsx)(Z,{variant:`mono`,fontSize:14,children:new Date(r.createdAt).toLocaleString()})}),r.parentWorkflowRunId&&(0,O.jsx)(CP,{label:`Parent run`,children:(0,O.jsx)(sa,{to:`/runs/${r.parentWorkflowRunId}${r.parentWorkflowRunActivityId?`?activity=${r.parentWorkflowRunActivityId}`:``}`,style:{textDecoration:`none`},children:(0,O.jsx)(Z,{variant:`mono`,fontSize:14,color:J.info,children:r.parentWorkflowRunId})})})]})]}),(0,O.jsxs)(q,{flex:1,overflow:`auto`,p:20,gap:32,children:[(0,O.jsx)(SN,{title:`Initial Input`,actions:(0,O.jsx)(bP,{text:MM(r.input),label:`Copy JSON`}),children:(0,O.jsx)(dM,{value:MM(r.input)})}),(0,O.jsx)(SN,{title:`Execution Trace`,actions:s===null?(0,O.jsxs)(q,{row:!0,align:`center`,gap:6,children:[(0,O.jsx)(QN,{size:12,fill:J.info}),(0,O.jsx)(Z,{variant:`mono`,color:J.info,children:`live`})]}):(0,O.jsx)(Z,{variant:`mono`,color:J.muted,children:`${DM(s-o)} total`}),children:(0,O.jsx)(qP,{run:r,scale:c,depth:0,focusedActivityId:n})}),(0,O.jsx)(TP,{runId:r.id}),(0,O.jsx)(SN,{title:r.status===`rejected`?`Rejection`:`Final Output`,actions:(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(Z,{variant:`mono`,color:l,children:`Status: ${r.status}`}),r.status!==`running`&&(0,O.jsx)(bP,{text:r.status===`rejected`?u:MM(r.output),label:`Copy Result`})]}),children:r.status===`running`?(0,O.jsx)(dM,{value:`Still running…`,color:J.muted}):r.status===`rejected`?(0,O.jsx)(dM,{value:u,color:J.error}):(0,O.jsx)(dM,{value:MM(r.output)})})]})]})}var YP=[`running`,`fulfilled`,`rejected`],XP=[{value:`15m`,label:`Last 15 minutes`,durationInMs:9e5},{value:`1h`,label:`Last hour`,durationInMs:36e5},{value:`24h`,label:`Last 24 hours`,durationInMs:864e5}],ZP=XP.map(e=>e.value),QP={status:cP(YP),workflow:rP.withDefault(``),q:rP.withDefault(``),period:cP(ZP),rootOnly:aP.withDefault(!0),page:iP.withDefault(1)},$P=lP(QP);function eF(e){return{status:e.status??void 0,workflow:e.workflow||void 0,id:e.q||void 0,rootOnly:e.rootOnly||void 0,createdWithinInMs:XP.find(t=>t.value===e.period)?.durationInMs,limit:25,offset:(Math.max(e.page,1)-1)*25}}function tF(){return hP(QP,{history:`replace`})}var nF=[{label:`Any status`,value:``},{label:mS.running,value:`running`},{label:mS.fulfilled,value:`fulfilled`},{label:mS.rejected,value:`rejected`}],rF=[{label:`Any time`,value:``},...XP.map(({value:e,label:t})=>({value:e,label:t}))],iF={displayBackgroundColor:J.background,displayBorderColor:J.border,displayTextColor:J.text,displayPlaceholderColor:J.dim,displayCaretIndicatorColor:J.muted,menuBorderColor:J.border,menuOptionLabelBackgroundColor:J.panel,menuOptionLabelTextColor:J.text};function aF(){let{runId:e}=Xr(),t=Jr(),[n,r]=tF(),{data:i,isPending:a}=mt(TS.runs(eF(n))),{data:o}=mt(TS.manifest()),s=i?.runs??[],c=i?.count??0,l=(n.page-1)*25,u=e=>void r({...e,page:null}),d=[{label:`Any workflow`,value:``},...(o?.workflows??[]).map(({id:e})=>({label:e,value:e}))],f=e=>t($P(`/runs/${e}`,n));return(0,O.jsx)(cM,{side:(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(q,{p:12,gap:8,borderBottomWidth:1,borderColor:J.border,bg:J.panel,children:[(0,O.jsxs)(q,{row:!0,align:`center`,justify:`space-between`,children:[(0,O.jsx)(Z,{variant:`label`,children:`Runs`}),(0,O.jsx)(nM,{children:`${c} total`})]}),(0,O.jsxs)(q,{row:!0,gap:8,children:[(0,O.jsx)(q,{flex:1,children:(0,O.jsx)(JN,{options:nF,value:nF.find(e=>e.value===(n.status??``)),onChange:e=>u({status:e?.value||null}),...iF})}),(0,O.jsx)(q,{flex:1,children:(0,O.jsx)(JN,{options:rF,value:rF.find(e=>e.value===(n.period??``)),onChange:e=>u({period:e?.value||null}),...iF})})]}),(0,O.jsx)(JN,{options:d,value:d.find(e=>e.value===n.workflow),onChange:e=>u({workflow:e?.value??``}),isSearchable:!0,...iF}),(0,O.jsx)(bN,{value:n.q,onChange:e=>u({q:e}),placeholder:`Run id starts with…`,autoCapitalize:`none`,autoCorrect:!1,style:{backgroundColor:J.background}}),(0,O.jsxs)(q,{row:!0,align:`center`,gap:8,children:[(0,O.jsx)(YN,{size:`sm`,isChecked:n.rootOnly,onChange:e=>u({rootOnly:e})}),(0,O.jsx)(Z,{fontSize:12,children:`Root runs only (children stay inside their parent)`})]})]}),(0,O.jsx)(q,{flex:1,overflow:`auto`,children:a?(0,O.jsx)(Ej,{}):s.length===0?(0,O.jsxs)(q,{p:20,gap:6,children:[(0,O.jsx)(Z,{children:c===0&&!n.status&&!n.workflow&&!n.q?iS.capabilities.rebuild?`No runs since the last build.`:`No runs yet.`:`No runs match the filters.`}),(0,O.jsx)(Z,{fontSize:12,color:J.dim,children:iS.capabilities.rebuild?`Start one from the Workflows page; runs reset on every rebuild.`:`Start one from the Workflows page.`})]}):s.map(t=>(0,O.jsx)(ZN,{run:t,isSelected:t.id===e,onSelect:()=>f(t.id)},t.id))}),(0,O.jsx)(sM,{count:c,offset:l,limit:25,onChange:e=>void r({page:e===0?null:e/25+1})})]}),children:e?(0,O.jsx)(JP,{runId:e}):(0,O.jsx)(rM,{icon:$x,children:`Select a run to inspect its trace`})})}function oF(){let e=A();return vt({mutationFn:({workflowId:e,input:t})=>SS.runWorkflow(e,t),onSuccess:()=>{e.invalidateQueries({queryKey:[`runs`]})}})}var sF=5;function cF(e){return`t4h-panel:payloads:${e}`}function lF(e){try{let t=localStorage.getItem(cF(e)),n=t?JSON.parse(t):[];return Array.isArray(n)?n.filter(e=>typeof e==`string`):[]}catch{return[]}}function uF(e,t){let n=[t,...lF(e).filter(e=>e!==t)].slice(0,sF);try{localStorage.setItem(cF(e),JSON.stringify(n))}catch(e){console.error(`Failed to save recent payloads:`,e)}return n}var dF=5;function fF({workflow:e,manifest:t}){let n=Jr(),r=Gr().state?.input,[i,a]=(0,b.useState)(()=>lF(e.id)),[o,s]=(0,b.useState)(()=>r===void 0?i[0]??MM(TN(e.schema)):MM(r)),[c,l]=(0,b.useState)(null),u=oF(),d=mt(TS.runs({workflow:e.id,limit:dF})),f=()=>MM(TN(e.schema)),p=()=>{let e=o.trim();return e===``?void 0:JSON.parse(e)},m=sS(`runs`,{project:t.id,workflow:e.id}),h=()=>{try{navigator.clipboard?.writeText(lS(`runs`,m,p())).catch(console.error),l(null)}catch(e){l(wN(e))}},g=async()=>{let t;try{t=p()}catch(e){l(wN(e));return}try{let{id:r}=await u.mutateAsync({workflowId:e.id,input:t});a(uF(e.id,MM(t))),l(null),n(`/runs/${r}`)}catch(e){l(wN(e))}},_=e.authorization??t.authorization;return(0,O.jsxs)(q,{h:`100%`,children:[(0,O.jsxs)(q,{p:20,gap:12,borderBottomWidth:1,borderColor:J.border,bg:J.panel,children:[(0,O.jsxs)(q,{row:!0,align:`center`,justify:`space-between`,gap:12,children:[(0,O.jsx)(Z,{variant:`mono`,fontSize:18,fontWeight:`600`,children:e.id}),(0,O.jsxs)(q,{row:!0,gap:8,children:[e.authorization&&(0,O.jsx)(uM,{color:J.warn,children:`own authorization`}),(0,O.jsx)(uM,{color:e.schema?J.brand:J.muted,children:e.schema?`typed input`:`untyped input`})]})]}),(0,O.jsx)(Z,{children:e.description??`No description declared on this workflow.`})]}),(0,O.jsxs)(q,{flex:1,overflow:`auto`,p:20,gap:32,children:[(0,O.jsx)(SN,{title:`Run`,actions:(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(zj,{appearance:`ghost`,text:`Reset to example`,onPress:()=>s(f())}),(0,O.jsx)(zj,{appearance:iS.capabilities.trigger?`ghost`:`outline`,text:`Copy as curl`,onPress:h}),iS.capabilities.trigger&&(0,O.jsx)(zj,{appearance:`solid`,text:u.isPending?`Running…`:`Run workflow`,isDisabled:u.isPending,onPress:g})]}),children:(0,O.jsxs)(q,{gap:12,children:[(0,O.jsx)(Z,{variant:`label`,children:`Input body`}),(0,O.jsx)(xN,{value:o,onChange:s,error:c}),i.length>0&&(0,O.jsxs)(q,{gap:6,children:[(0,O.jsx)(Z,{variant:`label`,children:`Recent payloads`}),(0,O.jsx)(q,{row:!0,gap:6,style:{flexWrap:`wrap`},children:i.map((e,t)=>(0,O.jsx)(nM,{color:J.text,onPress:()=>s(e),children:e.replaceAll(/\s+/g,` `).slice(0,60)},t))})]}),!iS.capabilities.trigger&&(0,O.jsx)(Z,{fontSize:12,children:`This host only accepts authorized requests: copy the curl, add the credentials the authorization expects and send it.`})]})}),(0,O.jsx)(SN,{title:`Routes`,actions:_?(0,O.jsx)(Z,{variant:`mono`,color:J.muted,children:`auth: ${_.pathToModule}`}):(0,O.jsx)(Z,{variant:`mono`,color:J.error,children:`no authorization declared`}),children:(0,O.jsxs)(q,{bg:J.background,gap:8,children:[(0,O.jsxs)(q,{row:!0,gap:12,align:`center`,children:[(0,O.jsx)(uM,{color:J.info,children:cS(`runs`)}),(0,O.jsx)(Z,{variant:`mono`,children:m})]}),(0,O.jsxs)(q,{row:!0,gap:12,align:`center`,children:[(0,O.jsx)(uM,{color:J.warn,children:cS(`advance`)}),(0,O.jsx)(Z,{variant:`mono`,children:sS(`advance`,{project:t.id,workflow:e.id})})]})]})}),(0,O.jsx)(SN,{title:`Input schema`,actions:e.schema?(0,O.jsx)(bP,{text:MM(e.schema),label:`Copy JSON`}):void 0,children:(0,O.jsx)(dM,{value:e.schema?MM(e.schema):`No schema: any JSON body is accepted.`,color:e.schema?J.text:J.muted})}),(0,O.jsx)(SN,{title:`Recent runs`,actions:(0,O.jsx)(NP,{to:`/runs?workflow=${encodeURIComponent(e.id)}&rootOnly=false`,children:`View all`}),children:d.isPending?(0,O.jsx)(Ej,{}):(d.data?.runs.length??0)===0?(0,O.jsx)(Z,{children:iS.capabilities.rebuild?`No runs of this workflow since the last build.`:`No runs of this workflow yet.`}):(0,O.jsx)(q,{bg:J.background,gap:8,children:d.data?.runs.map(e=>(0,O.jsx)(sa,{to:`/runs/${e.id}`,style:{textDecoration:`none`},children:(0,O.jsxs)(q,{row:!0,align:`center`,gap:12,children:[(0,O.jsx)(uM,{color:pS[e.status],children:mS[e.status]}),(0,O.jsx)(Z,{variant:`mono`,color:J.text,children:e.id}),(0,O.jsx)(Z,{fontSize:12,children:AM(e.createdAt)})]})},e.id))})})]})]})}function pF(e){let t=e.schema?.properties;if(!t)return e.schema?`schema`:`any input`;let n=new Set(e.schema?.required??[]);return Object.keys(t).map(e=>n.has(e)?e:`${e}?`).join(`, `)}function mF(){let{workflowId:e}=Xr(),t=Jr(),{data:n,error:r}=mt(TS.manifest()),i=n?.workflows.find(t=>t.id===e);return(0,O.jsx)(cM,{side:(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(q,{p:12,borderBottomWidth:1,borderColor:J.border,bg:J.panel,row:!0,align:`center`,justify:`space-between`,children:[(0,O.jsx)(Z,{variant:`label`,children:`Workflows`}),(0,O.jsx)(nM,{children:`${n?.workflows.length??0} registered`})]}),(0,O.jsx)(q,{flex:1,overflow:`auto`,children:r?(0,O.jsx)(q,{p:20,children:(0,O.jsx)(Z,{variant:`mono`,color:J.error,children:String(r)})}):n?n.workflows.length===0?(0,O.jsx)(q,{p:20,children:(0,O.jsx)(Z,{children:`The app declares no workflows.`})}):n.workflows.map(n=>(0,O.jsxs)(iM,{isSelected:n.id===e,onSelect:()=>t(`/workflows/${encodeURIComponent(n.id)}`),children:[(0,O.jsx)(Z,{variant:`mono`,fontSize:13,color:n.id===e?J.brand:J.text,fontWeight:`600`,numberOfLines:1,children:n.id}),n.description&&(0,O.jsx)(Z,{fontSize:12,numberOfLines:2,children:n.description}),(0,O.jsx)(Z,{variant:`mono`,color:J.dim,fontSize:11,numberOfLines:1,children:pF(n)})]},n.id)):(0,O.jsx)(Ej,{})})]}),children:n&&i?(0,O.jsx)(fF,{workflow:i,manifest:n},i.id):(0,O.jsx)(rM,{icon:Zx,children:n&&e?`Workflow "${e}" is not in the manifest`:`Select a workflow to run it or read its schema`})})}E.get().tokens.set({"space.0":0,"space.025":2,"space.050":4,"space.075":6,"space.100":8,"space.150":12,"space.200":16,"space.250":20,"space.300":24,"space.400":32,"space.500":40,"space.600":48,"space.700":56,"space.800":64,"space.900":72,"space.1000":80});var hF=E.get().fork(`t4h:light`);hF.tokens.set({"font.family.body":`Inter`,"font.family.heading":`Sora`,"color.background.neutral":`#EEE`,"color.background.neutral:hovered":`#DDD`,"color.background.neutral:pressed":`#CCC`,"color.neutral":`#eaeaea`,"%color.neutral.darker":`#bababa`,"color.background.brand.bold":`#443ee3`,"color.background.brand.bold:hovered":`#3330b4`,"color.background.brand.bold:pressed":`#222080`,"color.text.inverse":`#FFF`,"color.text":`#292A2E`,"button.outline.color.border":`#8c8c8c`,"button.outline.color.border:hovered":`@color.background.brand.bold`,"button.outline.color.border:pressed":`@color.background.brand.bold:hovered`,"button.outline.color.text":`@button.outline.color.border`,"button.outline.color.text:hovered":`@color.background.brand.bold`,"button.outline.color.text:pressed":`@color.background.brand.bold:hovered`,"button.outline.color.text:selected":`@color.text.inverse`,"button.outline.color.background:selected":`@color.background.brand.bold`,"button.outline.primary.hovered.color.background":`#edf1ff`});var gF=hF.fork(`dark`);gF.tokens.set({"color.background":`#0b1326`,"color.background.neutral":`#131b2e`,"color.background.neutral.subtle":`#171f33`,"color.surface":`#1a2235`,"color.surface.raised":`#222a3d`,"color.text":`#dae2fd`,"color.text.subtle":`#8896b3`,"color.text.placeholder":`#525f7a`,"color.text.inverse":`#0b1326`,"color.background.brand.bold":`#48BA80`,"color.background.brand.subtle":`#1a3328`,"color.text.brand":`#48BA80`,"color.border.brand":`#48BA80`,"color.border":`#2d3449`,"color.border.strong":`#464554`,"color.background.error.bold":`#ffb4ab`,"color.background.error.subtle":`#3b0f12`,"color.text.error":`#ffb4ab`,"color.text.success":`#4ade80`,"color.background.success.bold":`#4ade80`,"text-input.color.background":`#131b2e`,"text-input.color.text":`#dae2fd`,"text-input.color.outline.focused":`#48BA80`,"text-input.color.outline.blured":`#2d3449`,"button.solid.color.background":`#48BA80`,"button.solid.color.text":`#0b1326`,"button.solid.hovered.color.background":`#5fcb8f`,"button.solid.pressed.color.background":`#3fa872`,"button.solid.selected.color.background":`#3fa872`,"button.solid.selected.hovered.color.background":`#5fcb8f`,"button.solid.selected.pressed.color.background":`#369663`,"button.solid.loading.color.background":`#48BA80`,"button.solid.selected.loading.color.background":`#3fa872`,"button.solid.disabled.color.background":`#1a3328`,"button.solid.disabled.color.text":`#525f7a`,"button.outline.color.text":`#dae2fd`,"button.outline.color.border":`#2d3449`,"button.outline.color.background":`#0b1326`,"button.outline.hovered.color.border":`#48BA80`,"button.outline.hovered.color.background":`#131b2e`,"button.outline.pressed.color.border":`#48BA80`,"button.outline.pressed.color.background":`#1a3328`,"button.outline.selected.color.background":`#1a3328`,"button.outline.selected.hovered.color.background":`#222a3d`,"button.outline.selected.pressed.color.background":`#222a3d`,"button.outline.loading.color.background":`#0b1326`,"button.outline.selected.loading.color.background":`#1a3328`,"button.outline.disabled.color.text":`#525f7a`,"button.outline.disabled.color.border":`#2d3449`,"button.outline.disabled.color.background":`#0b1326`,"button.ghost.color.text":`#dae2fd`,"button.ghost.hovered.color.text":`#48BA80`,"button.ghost.pressed.color.text":`#3fa872`,"button.ghost.selected.color.text":`#48BA80`,"button.ghost.selected.hovered.color.text":`#5fcb8f`,"button.ghost.selected.pressed.color.text":`#3fa872`,"button.ghost.loading.color.text":`#dae2fd`,"button.ghost.selected.loading.color.text":`#48BA80`,"button.ghost.disabled.color.text":`#525f7a`});var _F=ES();document.title=iS.title;function vF(){return(0,O.jsx)(te,{client:_F,children:(0,O.jsxs)(k,{theme:gF,children:[(0,O.jsx)(Kj,{}),(0,O.jsx)(oa,{basename:iS.basePath||void 0,children:(0,O.jsx)(ba,{children:(0,O.jsx)(Wj,{children:(0,O.jsxs)(bi,{children:[(0,O.jsx)(vi,{path:`/`,element:(0,O.jsx)(Qj,{})}),(0,O.jsx)(vi,{path:`/workflows`,element:(0,O.jsx)(mF,{})}),(0,O.jsx)(vi,{path:`/workflows/:workflowId`,element:(0,O.jsx)(mF,{})}),(0,O.jsx)(vi,{path:`/runs`,element:(0,O.jsx)(aF,{})}),(0,O.jsx)(vi,{path:`/runs/:runId`,element:(0,O.jsx)(aF,{})}),(0,O.jsx)(vi,{path:`/inbox`,element:(0,O.jsx)(kN,{})})]})})})})]})})}var yF=document.getElementById(`root`);if(!yF)throw Error(`#root element not found`);(0,y.createRoot)(yF).render((0,O.jsx)(b.StrictMode,{children:(0,O.jsx)(vF,{})}));
|