@velocity-astro/cms-admin 0.1.0-beta.15 → 0.1.0-beta.16

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.
Files changed (72) hide show
  1. package/app-dist/assets/{RichTextEditor-COhBsdyD.js → RichTextEditor-DZQ46tza.js} +1 -1
  2. package/app-dist/assets/index-C5b6zWe3.css +2 -0
  3. package/app-dist/assets/index-fLcMyprQ.js +80 -0
  4. package/app-dist/index.html +2 -2
  5. package/dist/app/AdminLayout.d.ts.map +1 -1
  6. package/dist/app/AdminLayout.js +5 -1
  7. package/dist/app/AdminLayout.js.map +1 -1
  8. package/dist/app/paths.d.ts +2 -0
  9. package/dist/app/paths.d.ts.map +1 -1
  10. package/dist/app/paths.js +2 -0
  11. package/dist/app/paths.js.map +1 -1
  12. package/dist/app/routes.d.ts.map +1 -1
  13. package/dist/app/routes.js +2 -0
  14. package/dist/app/routes.js.map +1 -1
  15. package/dist/client/admin-client.d.ts +19 -0
  16. package/dist/client/admin-client.d.ts.map +1 -1
  17. package/dist/client/http-client.d.ts +6 -1
  18. package/dist/client/http-client.d.ts.map +1 -1
  19. package/dist/client/http-client.js +15 -0
  20. package/dist/client/http-client.js.map +1 -1
  21. package/dist/client/queries.d.ts +14 -1
  22. package/dist/client/queries.d.ts.map +1 -1
  23. package/dist/client/queries.js +55 -0
  24. package/dist/client/queries.js.map +1 -1
  25. package/dist/fields/SiteImagePicker.d.ts.map +1 -1
  26. package/dist/fields/SiteImagePicker.js +8 -2
  27. package/dist/fields/SiteImagePicker.js.map +1 -1
  28. package/dist/lib/arrange-images.d.ts +27 -0
  29. package/dist/lib/arrange-images.d.ts.map +1 -0
  30. package/dist/lib/arrange-images.js +39 -0
  31. package/dist/lib/arrange-images.js.map +1 -0
  32. package/dist/lib/profile-photo.d.ts +7 -0
  33. package/dist/lib/profile-photo.d.ts.map +1 -0
  34. package/dist/lib/profile-photo.js +32 -0
  35. package/dist/lib/profile-photo.js.map +1 -0
  36. package/dist/messages/en.d.ts +80 -4
  37. package/dist/messages/en.d.ts.map +1 -1
  38. package/dist/messages/en.js +63 -4
  39. package/dist/messages/en.js.map +1 -1
  40. package/dist/screens/Media/MediaScreen.d.ts.map +1 -1
  41. package/dist/screens/Media/MediaScreen.js +26 -10
  42. package/dist/screens/Media/MediaScreen.js.map +1 -1
  43. package/dist/screens/People/PeopleScreen.d.ts.map +1 -1
  44. package/dist/screens/People/PeopleScreen.js +24 -4
  45. package/dist/screens/People/PeopleScreen.js.map +1 -1
  46. package/dist/screens/Profile/ProfileScreen.d.ts +3 -0
  47. package/dist/screens/Profile/ProfileScreen.d.ts.map +1 -0
  48. package/dist/screens/Profile/ProfileScreen.js +110 -0
  49. package/dist/screens/Profile/ProfileScreen.js.map +1 -0
  50. package/dist/screens/Settings/EmailSettings.d.ts.map +1 -1
  51. package/dist/screens/Settings/EmailSettings.js +32 -6
  52. package/dist/screens/Settings/EmailSettings.js.map +1 -1
  53. package/dist/testing/admin-client-contract.d.ts.map +1 -1
  54. package/dist/testing/admin-client-contract.js +26 -2
  55. package/dist/testing/admin-client-contract.js.map +1 -1
  56. package/dist/testing/http-server.js +1 -1
  57. package/dist/testing/http-server.js.map +1 -1
  58. package/dist/testing/memory-client.d.ts +8 -1
  59. package/dist/testing/memory-client.d.ts.map +1 -1
  60. package/dist/testing/memory-client.js +26 -0
  61. package/dist/testing/memory-client.js.map +1 -1
  62. package/dist/testing/memory-mail.d.ts +2 -0
  63. package/dist/testing/memory-mail.d.ts.map +1 -1
  64. package/dist/testing/memory-mail.js +4 -0
  65. package/dist/testing/memory-mail.js.map +1 -1
  66. package/dist/testing/memory-people.d.ts +8 -1
  67. package/dist/testing/memory-people.d.ts.map +1 -1
  68. package/dist/testing/memory-people.js +68 -1
  69. package/dist/testing/memory-people.js.map +1 -1
  70. package/package.json +5 -5
  71. package/app-dist/assets/index-CLcGTdVj.css +0 -2
  72. package/app-dist/assets/index-D-BKQZXW.js +0 -80
@@ -0,0 +1,80 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(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},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(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 l=class extends Error{constructor(e){super(e),this.name=`SignInError`}};function u(e={}){let t=(e.basePath??`/api/cms/auth`).replace(/\/+$/,``),n=e.adminPath??`/admin`,r=e.fetch??((e,t)=>globalThis.fetch(e,t));async function i(e,n,i=`Signing in did not work. Try again, or ask for a new sign-in link.`){let a;try{a=await r(`${t}${e}`,{method:n===void 0?`GET`:`POST`,credentials:`same-origin`,headers:{accept:`application/json`,...n!==void 0&&{"content-type":`application/json`}},...n!==void 0&&{body:JSON.stringify(n)}})}catch{throw new l(`The server could not be reached. Check your connection and try again.`)}let o=await a.json().catch(()=>null);if(a.ok)return o;throw a.status===429?new l(`Too many attempts. Wait a minute, then try again.`):new l(i)}function a(){if(typeof PublicKeyCredential>`u`||typeof PublicKeyCredential.parseRequestOptionsFromJSON!=`function`)throw new l(`This browser cannot use passkeys. Use a sign-in link instead.`);return PublicKeyCredential}return{async requestSignInLink(e){await i(`/sign-in/magic-link`,{email:e,callbackURL:n,errorCallbackURL:`${n}/sign-in?link=expired`})},async signInWithPasskey(){let e=a(),t=await i(`/passkey/generate-authenticate-options`),n=await navigator.credentials.get({publicKey:e.parseRequestOptionsFromJSON(t)});if(!n)throw new l(`No passkey was chosen.`);await i(`/passkey/verify-authentication`,{response:n.toJSON()});let r=await i(`/get-session`);if(!r?.user)throw new l(`Signing in did not work. Try again, or ask for a new sign-in link.`);let{id:o,email:s,name:c}=r.user;return{id:o,email:s,name:c}},async signOut(){await i(`/sign-out`,{})},async registerPasskey(e){let t=a(),n=await i(`/passkey/generate-register-options`),r=await navigator.credentials.create({publicKey:t.parseCreationOptionsFromJSON(n)});if(!r)throw new l(`No passkey was created.`);await i(`/passkey/verify-registration`,{response:r.toJSON(),name:e})},async listPasskeys(){let e=await i(`/passkey/list-user-passkeys`,void 0,`Your passkeys could not be read. Try again.`);return Array.isArray(e)?e.map(({id:e,name:t,createdAt:n})=>({id:e,name:t??``,...typeof n==`string`&&{createdAt:n}})).sort((e,t)=>(e.createdAt??``).localeCompare(t.createdAt??``)):[]},async removePasskey(e){await i(`/passkey/delete-passkey`,{id:e},`The passkey could not be removed. Try again.`)}}}var d=o((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.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.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`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(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 P(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,P(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),P(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+M(a,u),c+=P(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+M(a,u++),c+=P(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return P(N(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 F(e,t,n){if(e==null)return e;var r=[],i=0;return P(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ee(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var I=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)};function te(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function ne(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else te(ne.bind(null,e))}var re={map:F,forEach:function(e,t,n){F(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return F(e,function(){t++}),t},toArray:function(e){return F(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=re,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=ne,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=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.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 D(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)E.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 D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ee}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=te,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.1`})),f=o(((e,t)=>{t.exports=d()})),p=o((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&&j(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&&j(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,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(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,j(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}}}})),m=o(((e,t)=>{t.exports=p()})),h=o((e=>{var t=f();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`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(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.browser=function(e){return{$$typeof:o,_reason:e}},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 c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.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=u(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=u(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,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority: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=u(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=u(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,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority: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 l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.1`})),g=o(((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=h()})),_=o((e=>{var t=m(),n=f(),r=g();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){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e: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}function p(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&p(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function h(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function _(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function v(e){var t=[null,null],n=h(e);return n===null||y(t,e,n.child,{foundSelf:!1}),t}function y(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&y(e,t,n.child,r))return!0;n=n.sibling}return!1}function b(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var x=null,S=null;function C(e,t,n){return e===n||e===t&&(x=e,!0)}function w(e,t,n){return e===n?(S=e,!1):e===t&&(S!==null&&(x=e),!0)}function T(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function E(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var D=Object.assign,O=Symbol.for(`react.element`),k=Symbol.for(`react.transitional.element`),A=Symbol.for(`react.portal`),j=Symbol.for(`react.fragment`),M=Symbol.for(`react.strict_mode`),N=Symbol.for(`react.profiler`),P=Symbol.for(`react.consumer`),F=Symbol.for(`react.context`),ee=Symbol.for(`react.forward_ref`),I=Symbol.for(`react.suspense`),te=Symbol.for(`react.suspense_list`),ne=Symbol.for(`react.memo`),re=Symbol.for(`react.lazy`),ie=Symbol.for(`react.activity`),ae=Symbol.for(`react.legacy_hidden`),oe=Symbol.for(`react.memo_cache_sentinel`),se=Symbol.for(`react.view_transition`),ce=Symbol.for(`react.recoverable`),le=Symbol.iterator;function ue(e){return typeof e!=`object`||!e?null:(e=le&&e[le]||e[`@@iterator`],typeof e==`function`?e:null)}var de=Symbol.for(`react.client.reference`);function fe(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===de?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case j:return`Fragment`;case N:return`Profiler`;case M:return`StrictMode`;case I:return`Suspense`;case te:return`SuspenseList`;case ie:return`Activity`;case se:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case A:return`Portal`;case F:return e.displayName||`Context`;case P:return(e._context.displayName||`Context`)+`.Consumer`;case ee:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ne:return t=e.displayName||null,t===null?fe(e.type)||`Memo`:t;case re:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}var pe=Array.isArray,L=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,me=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he={pending:!1,data:null,method:null,action:null},ge=[],_e=-1;function ve(e){return{current:e}}function ye(e){0>_e||(e.current=ge[_e],ge[_e]=null,_e--)}function be(e,t){_e++,ge[_e]=e.current,e.current=t}var xe=ve(null),Se=ve(null),Ce=ve(null),we=ve(null);function Te(e,t){switch(be(Ce,t),be(Se,e),be(xe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Sp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Sp(t),e=Cp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ye(xe),be(xe,e)}function Ee(){ye(xe),ye(Se),ye(Ce)}function De(e){var t=e.memoizedState;t!==null&&(yh._currentValue=t.memoizedState,be(we,e)),t=xe.current;var n=Cp(t,e.type);t!==n&&(be(Se,e),be(xe,n))}function Oe(e){Se.current===e&&(ye(xe),ye(Se)),we.current===e&&(ye(we),yh._currentValue=he)}var ke,Ae;function je(e){if(ke===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ke=t&&t[1]||``,Ae=-1<e.stack.indexOf(`
2
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
3
+ `+ke+e+Ae}var Me=!1;function Ne(e,t){if(!e||Me)return``;Me=!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}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}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{Me=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?je(n):``}function Pe(e,t){switch(e.tag){case 26:case 27:case 5:return je(e.type);case 16:return je(`Lazy`);case 13:return e.child!==t&&t!==null?je(`Suspense Fallback`):je(`Suspense`);case 19:return je(`SuspenseList`);case 0:case 15:return Ne(e.type,!1);case 11:return Ne(e.type.render,!1);case 1:return Ne(e.type,!0);case 31:return je(`Activity`);case 30:return je(`ViewTransition`);default:return``}}function Fe(e){try{var t=``,n=null;do t+=Pe(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
7
+ Error generating stack: `+e.message+`
8
+ `+e.stack}}var Ie=Object.prototype.hasOwnProperty,Le=t.unstable_scheduleCallback,Re=t.unstable_cancelCallback,ze=t.unstable_shouldYield,Be=t.unstable_requestPaint,Ve=t.unstable_now,He=t.unstable_getCurrentPriorityLevel,Ue=t.unstable_ImmediatePriority,We=t.unstable_UserBlockingPriority,Ge=t.unstable_NormalPriority,Ke=t.unstable_LowPriority,qe=t.unstable_IdlePriority,Je=t.log,Ye=t.unstable_setDisableYieldValue,Xe=null,Ze=null;function Qe(e){if(typeof Je==`function`&&Ye(e),Ze&&typeof Ze.setStrictMode==`function`)try{Ze.setStrictMode(Xe,e)}catch{}}var $e=Math.clz32?Math.clz32:nt,et=Math.log,tt=Math.LN2;function nt(e){return e>>>=0,e===0?32:31-(et(e)/tt|0)|0}var rt=256,it=262144,at=4194304;function ot(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&-e;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 st(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=ot(n))):i=ot(o):i=ot(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=ot(n))):i=ot(o)):i=ot(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 ct(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function lt(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-$e(n),i=1<<r;t|=e[r],n&=~i}return t}function ut(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 dt(){var e=at;return at<<=1,!(at&62914560)&&(at=4194304),e}function R(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ft(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function pt(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-$e(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&&mt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function mt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-$e(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ht(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-$e(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function gt(e,t){var n=t&-t;return n=n&42?1:_t(n),(n&(e.suspendedLanes|t))===0?n:0}function _t(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 vt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function yt(){var e=me.p;return e===0?(e=window.event,e===void 0?32:Fh(e.type)):e}function bt(e,t){var n=me.p;try{return me.p=e,t()}finally{me.p=n}}var xt=Math.random().toString(36).slice(2),St=`__reactFiber$`+xt,Ct=`__reactProps$`+xt,wt=`__reactContainer$`+xt,Tt=`__reactEvents$`+xt,Et=`__reactListeners$`+xt,Dt=`__reactHandles$`+xt,Ot=`__reactResources$`+xt,kt=`__reactMarker$`+xt,At=`__reactLoad$`+xt;function jt(e){delete e[St],delete e[Ct],delete e[Et],delete e[Dt]}function Mt(e){var t;if(t=e[St])return t;for(var n=e.parentNode;n;){if(t=n[wt]||n[St]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=wm(e);e!==null;){if(n=e[St])return n;e=wm(e)}return t}e=n,n=e.parentNode}return null}function Nt(e){if(e=e[St]||e[wt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Pt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Ft(e){var t=e[Ot];return t||=e[Ot]={hoistableStyles:new Map,hoistableScripts:new Map},t}function It(e){e[kt]=!0}function Lt(e){e[At]=void 0}var Rt=new Set,zt={};function Bt(e,t){Vt(e,t),Vt(e+`Capture`,t)}function Vt(e,t){for(zt[e]=t,e=0;e<t.length;e++)Rt.add(t[e])}var Ht=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]*$`),Ut={},Wt={};function Gt(e){return Ie.call(Wt,e)?!0:Ie.call(Ut,e)?!1:Ht.test(e)?Wt[e]=!0:(Ut[e]=!0,!1)}var Kt=!1;function qt(){var e=Kt;return Kt=!1,e}function Jt(e,t,n){if(Gt(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 Yt(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 Xt(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 Zt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Qt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function $t(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 en(e){if(!e._valueTracker){var t=Qt(e)?`checked`:`value`;e._valueTracker=$t(e,t,``+e[t])}}function tn(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Qt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var nn=/[\n"\\]/g;function rn(e){return e.replace(nn,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function an(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=``+Zt(t)):e.value!==``+Zt(t)&&(e.value=``+Zt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):sn(e,Zt(n)):o===`number`&&e.value==t?sn(e,Zt(e.value)):sn(e,Zt(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=``+Zt(s):e.removeAttribute(`name`)}function on(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)){en(e);return}n=n==null?``:``+Zt(n),t=t==null?n:``+Zt(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),en(e)}function sn(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function cn(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=``+Zt(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 ln(e,t,n){t!=null&&(t=``+Zt(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+Zt(n)}function un(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(pe(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Zt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),en(e)}function dn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var fn=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 pn(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||fn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function mn(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]=``,Kt=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(pn(e,a,r),Kt=!0)}else for(var o in t)t.hasOwnProperty(o)&&pn(e,o,t[o])}function hn(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 gn=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`],[`maskType`,`mask-type`],[`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`]]),_n=/^[\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 vn(e){return _n.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function yn(){}var bn=null;function xn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Sn=null,Cn=null;function wn(e){var t=Nt(e);if(t&&(e=t.stateNode)){var n=e[Ct]||null;a:switch(e=t.stateNode,t.type){case`input`:if(an(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="`+rn(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Ct]||null;if(!a)throw Error(i(90));an(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&&tn(r)}break a;case`textarea`:ln(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&cn(e,!!n.multiple,t,!1)}}}var Tn=!1;function En(e,t,n){if(Tn)return e(t,n);Tn=!0;try{return e(t)}finally{if(Tn=!1,(Sn!==null||Cn!==null)&&(Jd(),Sn&&(t=Sn,e=Cn,Cn=Sn=null,wn(t),e)))for(t=0;t<e.length;t++)wn(e[t])}}function Dn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Ct]||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,kn=!1;if(On)try{var An={};Object.defineProperty(An,"passive",{get:function(){kn=!0}}),window.addEventListener(`test`,An,An),window.removeEventListener(`test`,An,An)}catch{kn=!1}var jn=null,Mn=null,Nn=null;function Pn(){if(Nn)return Nn;var e,t=Mn,n=t.length,r,i=`value`in jn?jn.value:jn.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 Nn=i.slice(e,1<r?1-r:void 0)}function Fn(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 In(){return!0}function Ln(){return!1}function Rn(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)?In:Ln,this.isPropagationStopped=Ln,this}return D(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=In)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=In)},persist:function(){},isPersistent:In}),t}var zn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bn=Rn(zn),Vn=D({},zn,{view:0,detail:0}),Hn=Rn(Vn),Un,Wn,Gn,Kn=D({},Vn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rr,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!==Gn&&(Gn&&e.type===`mousemove`?(Un=e.screenX-Gn.screenX,Wn=e.screenY-Gn.screenY):Wn=Un=0,Gn=e),Un)},movementY:function(e){return`movementY`in e?e.movementY:Wn}}),qn=Rn(Kn),Jn=Rn(D({},Kn,{dataTransfer:0})),Yn=Rn(D({},Vn,{relatedTarget:0})),Xn=Rn(D({},zn,{animationName:0,elapsedTime:0,pseudoElement:0})),Zn=Rn(D({},zn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Qn=Rn(D({},zn,{data:0})),$n={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},er={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`},tr={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function nr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=tr[e])?!!t[e]:!1}function rr(){return nr}var ir=Rn(D({},Vn,{key:function(e){if(e.key){var t=$n[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Fn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?er[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rr,charCode:function(e){return e.type===`keypress`?Fn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Fn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),ar=Rn(D({},Kn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),or=Rn(D({},zn,{submitter:0})),sr=Rn(D({},Vn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rr})),cr=Rn(D({},zn,{propertyName:0,elapsedTime:0,pseudoElement:0})),lr=Rn(D({},Kn,{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})),ur=Rn(D({},zn,{newState:0,oldState:0,source:0})),dr=[9,13,27,32],fr=On&&`CompositionEvent`in window,pr=null;On&&`documentMode`in document&&(pr=document.documentMode);var mr=On&&`TextEvent`in window&&!pr,hr=On&&(!fr||pr&&8<pr&&11>=pr),gr=` `,_r=!1;function vr(e,t){switch(e){case`keyup`:return dr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function yr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var br=!1;function xr(e,t){switch(e){case`compositionend`:return yr(t);case`keypress`:return t.which===32?(_r=!0,gr):null;case`textInput`:return e=t.data,e===gr&&_r?null:e;default:return null}}function Sr(e,t){if(br)return e===`compositionend`||!fr&&vr(e,t)?(e=Pn(),Nn=Mn=jn=null,br=!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 hr&&t.locale!==`ko`?null:t.data;default:return null}}var Cr={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 wr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Cr[e.type]:t===`textarea`}function Tr(e,t,n,r){Sn?Cn?Cn.push(r):Cn=[r]:Sn=r,t=ap(t,`onChange`),0<t.length&&(n=new Bn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Er=null,Dr=null;function Or(e){Zf(e,0)}function kr(e){if(tn(Pt(e)))return e}function Ar(e,t){if(e===`change`)return t}var jr=!1;if(On){var Mr;if(On){var Nr=`oninput`in document;if(!Nr){var Pr=document.createElement(`div`);Pr.setAttribute(`oninput`,`return;`),Nr=typeof Pr.oninput==`function`}Mr=Nr}else Mr=!1;jr=Mr&&(!document.documentMode||9<document.documentMode)}function Fr(){Er&&(Er.detachEvent(`onpropertychange`,Ir),Dr=Er=null)}function Ir(e){if(e.propertyName===`value`&&kr(Dr)){var t=[];Tr(t,Dr,e,xn(e)),En(Or,t)}}function Lr(e,t,n){e===`focusin`?(Fr(),Er=t,Dr=n,Er.attachEvent(`onpropertychange`,Ir)):e===`focusout`&&Fr()}function Rr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return kr(Dr)}function zr(e,t){if(e===`click`)return kr(t)}function Br(e,t){if(e===`input`||e===`change`)return kr(t)}function Vr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Hr=typeof Object.is==`function`?Object.is:Vr;function Ur(e,t){if(Hr(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(!Ie.call(t,i)||!Hr(e[i],t[i]))return!1}return!0}function Wr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Gr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Kr(e,t){var n=Gr(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=Gr(n)}}function qr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Jr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Wr(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=Wr(e.document)}return t}function Yr(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 Xr=On&&`documentMode`in document&&11>=document.documentMode,Zr=null,Qr=null,$r=null,ei=!1;function ti(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ei||Zr==null||Zr!==Wr(r)||(r=Zr,`selectionStart`in r&&Yr(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}),$r&&Ur($r,r)||($r=r,r=ap(Qr,`onSelect`),0<r.length&&(t=new Bn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Zr)))}function ni(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var ri={animationend:ni(`Animation`,`AnimationEnd`),animationiteration:ni(`Animation`,`AnimationIteration`),animationstart:ni(`Animation`,`AnimationStart`),transitionrun:ni(`Transition`,`TransitionRun`),transitionstart:ni(`Transition`,`TransitionStart`),transitioncancel:ni(`Transition`,`TransitionCancel`),transitionend:ni(`Transition`,`TransitionEnd`)},ii={},ai={};On&&(ai=document.createElement(`div`).style,`AnimationEvent`in window||(delete ri.animationend.animation,delete ri.animationiteration.animation,delete ri.animationstart.animation),`TransitionEvent`in window||delete ri.transitionend.transition);function oi(e){if(ii[e])return ii[e];if(!ri[e])return e;var t=ri[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ai)return ii[e]=t[n];return e}var si=oi(`animationend`),ci=oi(`animationiteration`),li=oi(`animationstart`),ui=oi(`transitionrun`),di=oi(`transitionstart`),fi=oi(`transitioncancel`),pi=oi(`transitionend`),mi=new Map,hi=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(` `);hi.push(`scrollEnd`);function gi(e,t){mi.set(e,t),Bt(t,[e])}var _i=0;function vi(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=kd.identifierPrefix;var n=_i++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function yi(e){if(e==null||typeof e==`string`)return e;var t=null,n=Ld;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function bi(e,t){return e=yi(e),t=yi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var xi=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)},Si=[],Ci=0,wi=0;function Ti(){for(var e=Ci,t=wi=Ci=0;t<e;){var n=Si[t];Si[t++]=null;var r=Si[t];Si[t++]=null;var i=Si[t];Si[t++]=null;var a=Si[t];if(Si[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&&ki(n,i,a)}}function Ei(e,t,n,r){Si[Ci++]=e,Si[Ci++]=t,Si[Ci++]=n,Si[Ci++]=r,wi|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Di(e,t,n,r){return Ei(e,t,n,r),Ai(e)}function Oi(e,t){return Ei(e,null,null,t),Ai(e)}function ki(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-$e(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Ai(e){if(50<Rd)throw Rd=0,zd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ji={};function Mi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ni(e,t,n,r){return new Mi(e,t,n,r)}function Pi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Fi(e,t){var n=e.alternate;return n===null?(n=Ni(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&1206910976,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 Ii(e,t){e.flags&=1206910978;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 r==`function`)Pi(r)&&(s=1);else if(typeof r==`string`)s=ah(e,n,xe.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case ie:return e=Ni(31,n,t,a),e.elementType=ie,e.lanes=o,e;case j:return Ri(n.children,a,o,t);case M:s=8,a|=24;break;case N:return e=Ni(12,n,t,a|2),e.elementType=N,e.lanes=o,e;case I:return e=Ni(13,n,t,a),e.elementType=I,e.lanes=o,e;case te:return e=Ni(19,n,t,a),e.elementType=te,e.lanes=o,e;case ae:case se:return e=a|32,e=Ni(30,n,t,e),e.elementType=se,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case F:s=10;break a;case P:s=9;break a;case ee:s=11;break a;case ne:s=14;break a;case re:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Ni(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Ri(e,t,n,r){return e=Ni(7,e,r,t),e.lanes=n,e}function zi(e,t,n){return e=Ni(6,e,null,t),e.lanes=n,e}function Bi(e){var t=Ni(18,null,null,0);return t.stateNode=e,t}function Vi(e,t,n){return t=Ni(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Hi=new WeakMap;function Ui(e,t){if(typeof e==`object`&&e){var n=Hi.get(e);return n===void 0?(t={value:e,source:t,stack:Fe(t)},Hi.set(e,t),t):n}return{value:e,source:t,stack:Fe(t)}}var Wi=[],Gi=0,Ki=null,qi=0,Ji=[],Yi=0,Xi=null,Zi=1,Qi=``;function $i(e,t){Wi[Gi++]=qi,Wi[Gi++]=Ki,Ki=e,qi=t}function ea(e,t,n){Ji[Yi++]=Zi,Ji[Yi++]=Qi,Ji[Yi++]=Xi,Xi=e;var r=Zi;e=Qi;var i=32-$e(r)-1;r&=~(1<<i),n+=1;var a=32-$e(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Zi=1<<32-$e(t)+i|n<<i|r,Qi=a+e}else Zi=1<<a|n<<i|r,Qi=e}function ta(e){e.return!==null&&($i(e,1),ea(e,1,0))}function na(e){for(;e===Ki;)Ki=Wi[--Gi],Wi[Gi]=null,qi=Wi[--Gi],Wi[Gi]=null;for(;e===Xi;)Xi=Ji[--Yi],Ji[Yi]=null,Qi=Ji[--Yi],Ji[Yi]=null,Zi=Ji[--Yi],Ji[Yi]=null}function ra(e,t){Ji[Yi++]=Zi,Ji[Yi++]=Qi,Ji[Yi++]=Xi,Zi=t.id,Qi=t.overflow,Xi=e}var ia=null,aa=null,oa=!1,sa=null,ca=!1,la=Error(i(519));function ua(e){throw ga(Ui(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),la}function da(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[St]=e,t[Ct]=r,n){case`dialog`:Qf(`cancel`,t),Qf(`close`,t);break;case`iframe`:case`object`:case`embed`:Qf(`load`,t);break;case`video`:case`audio`:for(n=0;n<Yf.length;n++)Qf(Yf[n],t);break;case`source`:Qf(`error`,t);break;case`img`:case`image`:case`link`:Qf(`error`,t),Qf(`load`,t);break;case`details`:Qf(`toggle`,t);break;case`input`:Qf(`invalid`,t),on(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Qf(`invalid`,t);break;case`textarea`:Qf(`invalid`,t),un(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||dp(t.textContent,n)?(r.popover!=null&&(Qf(`beforetoggle`,t),Qf(`toggle`,t)),r.onScroll!=null&&Qf(`scroll`,t),r.onScrollEnd!=null&&Qf(`scrollend`,t),r.onClick!=null&&(t.onclick=yn),t=!0):t=!1,t||ua(e,!0)}function fa(e){for(ia=e.return;ia;)switch(ia.tag){case 5:case 31:case 13:ca=!1;return;case 27:case 3:ca=!0;return;default:ia=ia.return}}function pa(e){if(e!==ia)return!1;if(!oa)return fa(e),oa=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||Tp(e.type,e.memoizedProps)),n=!n),n&&aa&&ua(e),fa(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));aa=Cm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));aa=Cm(e)}else t===27?(t=aa,Pp(e.type)?(e=Sm,Sm=null,aa=e):aa=t):aa=ia?xm(e.stateNode.nextSibling):null;return!0}function ma(){aa=ia=null,oa=!1}function ha(){var e=sa;return e!==null&&(xd===null?xd=e:xd.push.apply(xd,e),sa=null),e}function ga(e){sa===null?sa=[e]:sa.push(e)}var _a=ve(null),va=null,ya=null;function ba(e,t,n){be(_a,t._currentValue),t._currentValue=n}function xa(e){e._currentValue=_a.current,ye(_a)}function Sa(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 Ca(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),Sa(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),Sa(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Sa(a.return,n,e),s=a.child,s=s===null?null:s.sibling):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 wa(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;Hr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===we.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[yh]:e.push(yh))}a=a.return}return e!==null&&Ca(t,e,n,r),t.flags|=262144,e!==null}function Ta(e){for(e=e.firstContext;e!==null;){if(!Hr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ea(e){va=e,ya=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Da(e){return ka(va,e)}function Oa(e,t){return va===null&&Ea(e),ka(e,t)}function ka(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ya===null){if(e===null)throw Error(i(308));ya=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ya=ya.next=t;return n}var Aa=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()})}},ja=t.unstable_scheduleCallback,Ma=t.unstable_NormalPriority,Na={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Pa(){return{controller:new Aa,data:new Map,refCount:0}}function Fa(e){e.refCount--,e.refCount===0&&ja(Ma,function(){e.controller.abort()})}function Ia(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var La=null;function Ra(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var za=null,Ba=0,Va=0,Ha=null;function Ua(e,t){if(za===null){var n=za=[];Ba=0,Va=Wf(),Ha={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Ba++,t.then(Wa,Wa),t}function Wa(){if(--Ba===0&&(La=null,za!==null)){Ha!==null&&(Ha.status=`fulfilled`);var e=za;za=null,Va=0,Ha=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ga(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 Ka=L.S;L.S=function(e,t){if(wd=Ve(),typeof t==`object`&&t&&typeof t.then==`function`&&Ua(e,t),La!==null)for(var n=Af;n!==null;)Ia(n,La),n=n.next;if(n=e.types,n!==null){for(var r=Af;r!==null;)Ia(r,n),r=r.next;if(Va!==0){r=La,r===null&&(r=La=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ka!==null&&Ka(e,t)};var qa=ve(null);function Ja(){var e=qa.current;return e===null?ad.pooledCache:e}function Ya(e,t){t===null?be(qa,qa.current):be(qa,t.pool)}function Xa(){var e=Ja();return e===null?null:{parent:Na._currentValue,pool:e}}var Za=Error(i(460)),Qa=Error(i(474)),$a=Error(i(542)),eo={then:function(){}};function to(e){return e=e.status,e===`fulfilled`||e===`rejected`}function no(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(yn,yn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,oo(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(yn,yn);else{if(e=ad,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,oo(e),e}throw io=t,Za}}function ro(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(io=e,Za):e}}var io=null;function ao(){if(io===null)throw Error(i(459));var e=io;return io=null,e}function oo(e){if(e===Za||e===$a)throw Error(i(483))}var so=null,co=0;function lo(e){var t=co;return co+=1,so===null&&(so=[]),no(so,e,t)}function uo(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function fo(e,t){throw t.$$typeof===O?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function po(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=Fi(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|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=zi(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===j?(e=d(e,t,n.props.children,r,n.key),uo(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===re&&ro(i)===t.type)?(t=a(t,n.props),uo(t,n),t.return=e,t):(t=Li(n.type,n.key,n.props,null,e.mode,r),uo(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=Vi(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=Ri(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=zi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case k:return n=Li(t.type,t.key,t.props,null,e.mode,n),uo(n,t),n.return=e,n;case A:return t=Vi(t,e.mode,n),t.return=e,t;case re:return t=ro(t),f(e,t,n)}if(pe(t)||ue(t))return t=Ri(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,lo(t),n);if(t.$$typeof===F)return f(e,Oa(e,t),n);fo(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 k:return n.key===i?l(e,t,n,r):null;case A:return n.key===i?u(e,t,n,r):null;case re:return n=ro(n),p(e,t,n,r)}if(pe(n)||ue(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,lo(n),r);if(n.$$typeof===F)return p(e,t,Oa(e,n),r);fo(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 k:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case A:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case re:return r=ro(r),m(e,t,n,r,i)}if(pe(r)||ue(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,lo(r),i);if(r.$$typeof===F)return m(e,t,n,Oa(t,r),i);fo(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),oa&&$i(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 oa&&$i(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(_.key===null?h:_.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)}),oa&&$i(i,h),l}function g(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),oa&&$i(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 oa&&$i(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(_.key===null?g:_.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)}),oa&&$i(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===j&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case k:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===j){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),uo(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===re&&ro(l)===r.type){n(e,r.sibling),c=a(r,o.props),uo(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===j?(c=Ri(o.props.children,e.mode,c,o.key),uo(c,o),c.return=e,e=c):(c=Li(o.type,o.key,o.props,null,e.mode,c),uo(c,o),c.return=e,e=c)}return s(e);case A: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=Vi(o,e.mode,c),c.return=e,e=c}return s(e);case re:return o=ro(o),_(e,r,o,c)}if(pe(o))return h(e,r,o,c);if(ue(o)){if(l=ue(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,lo(o),c);if(o.$$typeof===F)return _(e,r,Oa(e,o),c);fo(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=zi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{co=0;var i=_(e,t,n,r);return so=null,i}catch(t){if(t===Za||t===$a)throw t;var a=Ni(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var mo=po(!0),ho=po(!1),go=!1;function _o(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vo(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 yo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function bo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,id&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ai(e),ki(e,null,n),t}return Ei(e,r,t,n),Ai(e)}function xo(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,ht(e,n)}}function So(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}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Co=!1;function wo(){if(Co){var e=Ha;if(e!==null)throw e}}function To(e,t,n,r){Co=!1;var i=e.updateQueue;go=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(sd&f)===f:(r&f)===f){f!==0&&f===Va&&(Co=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=D({},d,f);break a;case 2:go=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),hd|=o,e.lanes=o,e.memoizedState=d}}function Eo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Do(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Eo(n[e],t)}var Oo=ve(null),ko=ve(0);function Ao(e,t){e=pd,be(ko,e),be(Oo,t),pd=e|t.baseLanes}function jo(){be(ko,pd),be(Oo,Oo.current)}function z(){pd=ko.current,ye(Oo),ye(ko)}var Mo=ve(null),B=null;function No(e){var t=e.alternate;be(Ro,Ro.current&1),be(Mo,e),B===null&&(t===null||Oo.current!==null||t.memoizedState!==null)&&(B=e)}function Po(e){be(Ro,Ro.current),be(Mo,e),B===null&&(B=e)}function Fo(e){e.tag===22?(be(Ro,Ro.current),be(Mo,e),B===null&&(B=e)):Io()}function Io(){be(Ro,Ro.current),be(Mo,Mo.current)}function Lo(e){ye(Mo),B===e&&(B=null),ye(Ro)}var Ro=ve(0);function zo(e,t){be(Mo,Mo.current),be(Ro,t)}function Bo(e){ye(Ro),ye(Mo),B===e&&(B=null)}function Vo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||vm(n)||ym(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ho=0,Uo=null,Wo=null,Go=null,Ko=!1,qo=!1,Jo=!1,Yo=0,Xo=0,Zo=null,Qo=0;function $o(){throw Error(i(321))}function es(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Hr(e[n],t[n]))return!1;return!0}function ts(e,t,n,r,i,a){return Ho=a,Uo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?vc:yc,Jo=!1,a=n(r,i),Jo=!1,qo&&(a=rs(t,n,r,i)),ns(e),a}function ns(e){L.H=_c;var t=Wo!==null&&Wo.next!==null;if(Ho=0,Go=Wo=Uo=null,Ko=!1,Xo=0,Zo=null,t)throw Error(i(300));e===null||Ic||(e=e.dependencies,e!==null&&Ta(e)&&(Ic=!0))}function rs(e,t,n,r){Uo=e;var a=0;do{if(qo&&(Zo=null),Xo=0,qo=!1,25<=a)throw Error(i(301));if(a+=1,Go=Wo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}L.H=bc,o=t(n,r)}while(qo);return o}function is(){var e=L.H,t=e.useState()[0];return t=typeof t.then==`function`?ds(t):t,e=e.useState()[0],(Wo===null?null:Wo.memoizedState)!==e&&(Uo.flags|=1024),t}function as(){var e=Yo!==0;return Yo=0,e}function os(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ss(e){if(Ko){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ko=!1}Ho=0,Go=Wo=Uo=null,qo=!1,Xo=Yo=0,Zo=null}function cs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Go===null?Uo.memoizedState=Go=e:Go=Go.next=e,Go}function ls(){if(Wo===null){var e=Uo.alternate;e=e===null?null:e.memoizedState}else e=Wo.next;var t=Go===null?Uo.memoizedState:Go.next;if(t!==null)Go=t,Wo=e;else{if(e===null)throw Uo.alternate===null?Error(i(467)):Error(i(310));Wo=e,e={memoizedState:Wo.memoizedState,baseState:Wo.baseState,baseQueue:Wo.baseQueue,queue:Wo.queue,next:null},Go===null?Uo.memoizedState=Go=e:Go=Go.next=e}return Go}function us(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ds(e){var t=Xo;return Xo+=1,Zo===null&&(Zo=[]),e=no(Zo,e,t),t=Uo,(Go===null?t.memoizedState:Go.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?vc:yc),e}function fs(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ds(e);if(e.$$typeof===ce)return;if(e.$$typeof===F)return Da(e)}throw Error(i(438,String(e)))}function ps(e){var t=null,n=Uo.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Uo.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=us(),Uo.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]=oe;return t.index++,n}function ms(e,t){return typeof t==`function`?t(e):t}function hs(e){return gs(ls(),Wo,e)}function gs(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Ho&f)===f:(sd&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===Va&&(d=!0);else if((Ho&p)===p){u=u.next,p===Va&&(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,Uo.lanes|=p,hd|=p;f=u.action,Jo&&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,Uo.lanes|=f,hd|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Hr(o,e.memoizedState)&&(Ic=!0,d&&(n=Ha,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 _s(e){var t=ls(),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);Hr(o,t.memoizedState)||(Ic=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function vs(e,t,n){var r=Uo,a=ls(),o=oa;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Hr((Wo||a).memoizedState,n);if(s&&(a.memoizedState=n,Ic=!0),a=a.queue,Us(xs.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Go!==null&&!!(Go.memoizedState.tag&1),Rs(e?9:8,{destroy:void 0},bs.bind(null,r,a,n,t),null),e){if(r.flags|=2048,ad===null)throw Error(i(349));o||Ho&127||ys(r,t,n)}return n}function ys(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Uo.updateQueue,t===null?(t=us(),Uo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function bs(e,t,n,r){t.value=n,t.getSnapshot=r,Ss(t)&&Cs(e)}function xs(e,t,n){return n(function(){Ss(t)&&Cs(e)})}function Ss(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Hr(e,n)}catch{return!0}}function Cs(e){var t=Oi(e,2);t!==null&&Ud(t,e,2)}function ws(e){var t=cs();if(typeof e==`function`){var n=e;if(e=n(),Jo){Qe(!0);try{n()}finally{Qe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ms,lastRenderedState:e},t}function Ts(e,t,n,r){return e.baseState=n,gs(e,Wo,typeof r==`function`?r:ms)}function Es(e,t,n,r,a){if(mc(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)}};L.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ds(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ds(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=L.T,o={};o.types=a===null?null:a.types,L.T=o;try{var s=n(i,r),c=L.S;c!==null&&c(o,s),Os(e,t,s)}catch(n){As(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),L.T=a}}else try{a=n(i,r),Os(e,t,a)}catch(n){As(e,t,n)}}function Os(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){ks(e,t,n)},function(n){return As(e,t,n)}):ks(e,t,n)}function ks(e,t,n){t.status=`fulfilled`,t.value=n,js(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ds(e,n)))}function As(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,js(t),t=t.next;while(t!==r)}e.action=null}function js(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ms(e,t){return t}function Ns(e,t){if(oa){var n=ad.formState;if(n!==null){a:{var r=Uo;if(oa){if(aa){b:{for(var i=aa,a=ca;i.nodeType!==8;)if(!a||(i=xm(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){aa=xm(i.nextSibling),r=i.data===`F!`;break a}}ua(r)}r=!1}r&&(t=n[0])}}return n=cs(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ms,lastRenderedState:t},n.queue=r,n=dc.bind(null,Uo,r),r.dispatch=n,r=ws(!1),a=pc.bind(null,Uo,!1,r.queue),r=cs(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Es.bind(null,Uo,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ps(e){return Fs(ls(),Wo,e)}function Fs(e,t,n){if(t=gs(e,t,Ms)[0],e=hs(ms)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ds(t)}catch(e){throw e===Za?$a:e}else r=t;t=ls();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Uo.flags|=2048,Rs(9,{destroy:void 0},Is.bind(null,i,n),null)),[r,a,e]}function Is(e,t){e.action=t}function Ls(e){var t=ls(),n=Wo;if(n!==null)return Fs(t,n,e);ls(),t=t.memoizedState,n=ls();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Rs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Uo.updateQueue,t===null&&(t=us(),Uo.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 zs(){return ls().memoizedState}function Bs(e,t,n,r){var i=cs();Uo.flags|=e,i.memoizedState=Rs(1|t,{destroy:void 0},n,r===void 0?null:r)}function Vs(e,t,n,r){var i=ls();r=r===void 0?null:r;var a=i.memoizedState.inst;Wo!==null&&r!==null&&es(r,Wo.memoizedState.deps)?i.memoizedState=Rs(t,a,n,r):(Uo.flags|=e,i.memoizedState=Rs(1|t,a,n,r))}function Hs(e,t){Bs(8390656,8,e,t)}function Us(e,t){Vs(2048,8,e,t)}function Ws(e){Uo.flags|=4;var t=Uo.updateQueue;if(t===null)t=us(),Uo.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Gs(e){var t=ls().memoizedState;return Ws({ref:t,nextImpl:e}),function(){if(id&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Ks(e,t){return Vs(4,2,e,t)}function qs(e,t){return Vs(4,4,e,t)}function Js(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ys(e,t,n){n=n==null?null:n.concat([e]),Vs(4,4,Js.bind(null,t,e),n)}function Xs(){}function Zs(e,t){var n=ls();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&es(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qs(e,t){var n=ls();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&es(t,r[1]))return r[0];if(r=e(),Jo){Qe(!0);try{e()}finally{Qe(!1)}}return n.memoizedState=[r,t],r}function $s(e,t,n){return n===void 0||Ho&1073741824&&!(sd&261930)?e.memoizedState=t:(e.memoizedState=n,e=Vd(),Uo.lanes|=e,hd|=e,n)}function ec(e,t,n,r){return Hr(n,t)?n:Oo.current===null?!(Ho&106)||Ho&1073741824&&!(sd&261930)?(Ic=!0,e.memoizedState=n):(e=Vd(),Uo.lanes|=e,hd|=e,t):(e=$s(e,n,r),Hr(e,t)||(Ic=!0),e)}function tc(e,t,n,r,i){var a=me.p;me.p=a!==0&&8>a?a:8;var o=L.T,s={};s.types=o===null?null:o.types,L.T=s,pc(e,!1,t,n);try{var c=i(),l=L.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?fc(e,t,Ga(c,r),Bd(e)):fc(e,t,r,Bd(e))}catch(n){fc(e,t,{then:function(){},status:`rejected`,reason:n},Bd())}finally{me.p=a,o!==null&&s.types!==null&&(o.types=s.types),L.T=o}}function nc(){}function rc(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ic(e).queue;tc(e,a,t,he,n===null?nc:function(){return ac(e),n(r)})}function ic(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:he,baseState:he,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ms,lastRenderedState:he},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ms,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ac(e){var t=ic(e);t.next===null&&(t=e.alternate.memoizedState),fc(e,t.next.queue,{},Bd())}function oc(){return Da(yh)}function sc(){return ls().memoizedState}function cc(){return ls().memoizedState}function lc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Bd();e=yo(n);var r=bo(t,e,n);r!==null&&(Ud(r,t,n),xo(r,t,n)),t={cache:Pa()},e.payload=t;return}t=t.return}}function uc(e,t,n){var r=Bd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},mc(e)?hc(t,n):(n=Di(e,t,n,r),n!==null&&(Ud(n,e,r),gc(n,t,r)))}function dc(e,t,n){fc(e,t,n,Bd())}function fc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(mc(e))hc(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,Hr(s,o))return Ei(e,t,i,0),ad===null&&Ti(),!1}catch{}if(n=Di(e,t,i,r),n!==null)return Ud(n,e,r),gc(n,t,r),!0}return!1}function pc(e,t,n,r){if(r={lane:2,revertLane:Wf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},mc(e)){if(t)throw Error(i(479))}else t=Di(e,n,r,2),t!==null&&Ud(t,e,2)}function mc(e){var t=e.alternate;return e===Uo||t!==null&&t===Uo}function hc(e,t){qo=Ko=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ht(e,n)}}var _c={readContext:Da,use:fs,useCallback:$o,useContext:$o,useEffect:$o,useImperativeHandle:$o,useLayoutEffect:$o,useInsertionEffect:$o,useMemo:$o,useReducer:$o,useRef:$o,useState:$o,useDebugValue:$o,useDeferredValue:$o,useTransition:$o,useSyncExternalStore:$o,useId:$o,useHostTransitionStatus:$o,useFormState:$o,useActionState:$o,useOptimistic:$o,useMemoCache:$o,useCacheRefresh:$o,useEffectEvent:$o},vc={readContext:Da,use:fs,useCallback:function(e,t){return cs().memoizedState=[e,t===void 0?null:t],e},useContext:Da,useEffect:Hs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Bs(4194308,4,Js.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bs(4194308,4,e,t)},useInsertionEffect:function(e,t){Bs(4,2,e,t)},useMemo:function(e,t){var n=cs();t=t===void 0?null:t;var r=e();if(Jo){Qe(!0);try{e()}finally{Qe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=cs();if(n!==void 0){var i=n(t);if(Jo){Qe(!0);try{n(t)}finally{Qe(!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=uc.bind(null,Uo,e),[r.memoizedState,e]},useRef:function(e){var t=cs();return e={current:e},t.memoizedState=e},useState:function(e){e=ws(e);var t=e.queue,n=dc.bind(null,Uo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Xs,useDeferredValue:function(e,t){return $s(cs(),e,t)},useTransition:function(){var e=ws(!1);return e=tc.bind(null,Uo,e.queue,!0,!1),cs().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Uo,a=cs();if(oa){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),ad===null)throw Error(i(349));sd&127||ys(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Hs(xs.bind(null,r,o,e),[e]),r.flags|=2048,Rs(9,{destroy:void 0},bs.bind(null,r,o,n,t),null),n},useId:function(){var e=cs(),t=ad.identifierPrefix;if(oa){var n=Qi,r=Zi;n=(r&~(1<<32-$e(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Yo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Qo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:oc,useFormState:Ns,useActionState:Ns,useOptimistic:function(e){var t=cs();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=pc.bind(null,Uo,!0,n),n.dispatch=t,[e,t]},useMemoCache:ps,useCacheRefresh:function(){return cs().memoizedState=lc.bind(null,Uo)},useEffectEvent:function(e){var t=cs(),n={impl:e};return t.memoizedState=n,function(){if(id&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},yc={readContext:Da,use:fs,useCallback:Zs,useContext:Da,useEffect:Us,useImperativeHandle:Ys,useInsertionEffect:Ks,useLayoutEffect:qs,useMemo:Qs,useReducer:hs,useRef:zs,useState:function(){return hs(ms)},useDebugValue:Xs,useDeferredValue:function(e,t){return ec(ls(),Wo.memoizedState,e,t)},useTransition:function(){var e=hs(ms)[0],t=ls().memoizedState;return[typeof e==`boolean`?e:ds(e),t]},useSyncExternalStore:vs,useId:sc,useHostTransitionStatus:oc,useFormState:Ps,useActionState:Ps,useOptimistic:function(e,t){return Ts(ls(),Wo,e,t)},useMemoCache:ps,useCacheRefresh:cc,useEffectEvent:Gs},bc={readContext:Da,use:fs,useCallback:Zs,useContext:Da,useEffect:Us,useImperativeHandle:Ys,useInsertionEffect:Ks,useLayoutEffect:qs,useMemo:Qs,useReducer:_s,useRef:zs,useState:function(){return _s(ms)},useDebugValue:Xs,useDeferredValue:function(e,t){var n=ls();return Wo===null?$s(n,e,t):ec(n,Wo.memoizedState,e,t)},useTransition:function(){var e=_s(ms)[0],t=ls().memoizedState;return[typeof e==`boolean`?e:ds(e),t]},useSyncExternalStore:vs,useId:sc,useHostTransitionStatus:oc,useFormState:Ls,useActionState:Ls,useOptimistic:function(e,t){var n=ls();return Wo===null?(n.baseState=e,[e,n.queue.dispatch]):Ts(n,Wo,e,t)},useMemoCache:ps,useCacheRefresh:cc,useEffectEvent:Gs};function xc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:D({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Sc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Bd(),i=yo(r);i.payload=t,n!=null&&(i.callback=n),t=bo(e,i,r),t!==null&&(Ud(t,e,r),xo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Bd(),i=yo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=bo(e,i,r),t!==null&&(Ud(t,e,r),xo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Bd(),r=yo(n);r.tag=2,t!=null&&(r.callback=t),t=bo(e,r,n),t!==null&&(Ud(t,e,n),xo(t,e,n))}};function Cc(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?!Ur(n,r)||!Ur(i,a):!0}function wc(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&&Sc.enqueueReplaceState(t,t.state,null)}function Tc(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=D({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Ec(e){xi(e)}function Dc(e){console.error(e)}function Oc(e){xi(e)}function kc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ac(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 jc(e,t,n){return n=yo(n),n.tag=3,n.payload={element:null},n.callback=function(){kc(e,t)},n}function Mc(e){return e=yo(e),e.tag=3,e}function Nc(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(){Ac(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Ac(t,n,r),typeof i!=`function`&&(Dd===null?Dd=new Set([this]):Dd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Pc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&wa(t,n,a,!0),n=Mo.current,n!==null){switch(n.tag){case 31:case 13:case 19:return B===null?tf():n.alternate===null&&md===0&&(md=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===eo?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),wf(e,r,a)),!1;case 22:return n.flags|=65536,r===eo?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)),wf(e,r,a)),!1}throw Error(i(435,n.tag))}return wf(e,r,a),tf(),!1}if(oa)return t=Mo.current,t===null?(r!==la&&(t=Error(i(423),{cause:r}),ga(Ui(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Ui(r,n),a=jc(e.stateNode,r,a),So(e,a),md!==4&&(md=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==la&&(e=Error(i(422),{cause:r}),ga(Ui(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Ui(o,n),bd===null?bd=[o]:bd.push(o),md!==4&&(md=2),t===null)return!0;r=Ui(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=jc(n.stateNode,r,e),So(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`&&(Dd===null||!Dd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Mc(a),Nc(a,e,n,r),So(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Fc=Error(i(461)),Ic=!1;function Lc(e,t,n,r){t.child=e===null?ho(t,null,n,r):mo(t,e.child,n,r)}function Rc(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 Ea(t),r=ts(e,t,n,o,a,i),s=as(),e!==null&&!Ic?(os(e,t,i),fl(e,t,i)):(oa&&s&&ta(t),t.flags|=1,Lc(e,t,r,i),t.child)}function zc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Pi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Bc(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,!pl(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Ur:n,n(o,r)&&e.ref===t.ref)return fl(e,t,i)}return t.flags|=1,e=Fi(a,r),e.ref=t.ref,e.return=t,t.child=e}function Bc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Ur(a,r)&&e.ref===t.ref){if(Ic=!1,t.pendingProps=r=a,pl(e,i))e.flags&131072&&(Ic=!0);else return t.lanes=e.lanes,fl(e,t,i)}}return Jc(e,t,n,r,i)}function Vc(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&&Ya(t,a===null?null:a.cachePool),a===null?jo():Ao(t,a),Fo(t);else return r=t.lanes=536870912,Uc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ya(t,null),jo(),Io()):(Ya(t,a.cachePool),Ao(t,a),Io(),t.memoizedState=null);return Lc(e,t,i,n),t.child}function Hc(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=Ja();return a=a===null?null:{parent:Na._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ya(t,null),jo(),Fo(t),e!==null&&wa(e,t,r,!0),t.childLanes=i,null}function Wc(e,t){return t=rl({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Gc(e,t,n){return mo(t,e.child,null,n),e=Wc(t,t.pendingProps),e.flags|=2,Lo(t),t.memoizedState=null,e}function Kc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(oa){if(r.mode===`hidden`)return e=Wc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Hc(null,e);if(Po(t),(e=aa)?(e=_m(e,ca),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xi===null?null:{id:Zi,overflow:Qi},retryLane:536870912,hydrationErrors:null},n=Bi(e),n.return=t,t.child=n,ia=t,aa=null)):e=null,e===null)throw ua(t);return t.lanes=536870912,null}return Wc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Po(t),a){if(t.flags&256)t.flags&=-257,t=Gc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Ic||wa(e,t,n,!1),a=(n&e.childLanes)!==0,Ic||a){if(Oo.current===null){if(r=ad,r!==null&&(s=gt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Oi(e,s),Ud(r,e,s),Fc;tf()}t=Gc(e,t,n)}else e=o.treeContext,aa=xm(s.nextSibling),ia=t,oa=!0,sa=null,ca=!1,e!==null&&ra(t,e),t=Wc(t,r),t.flags|=134221824;return t}return e=Fi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function qc(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 Jc(e,t,n,r,i){return Ea(t),n=ts(e,t,n,r,void 0,i),r=as(),e!==null&&!Ic?(os(e,t,i),fl(e,t,i)):(oa&&r&&ta(t),t.flags|=1,Lc(e,t,n,i),t.child)}function Yc(e,t,n,r,i,a){return Ea(t),t.updateQueue=null,n=rs(t,r,n,i),ns(e),r=as(),e!==null&&!Ic?(os(e,t,a),fl(e,t,a)):(oa&&r&&ta(t),t.flags|=1,Lc(e,t,n,a),t.child)}function Xc(e,t,n,r,i){if(Ea(t),t.stateNode===null){var a=ji,o=n.contextType;typeof o==`object`&&o&&(a=Da(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Sc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},_o(t),o=n.contextType,a.context=typeof o==`object`&&o?Da(o):ji,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(xc(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&&Sc.enqueueReplaceState(a,a.state,null),To(t,r,a,i),wo(),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=Tc(n,s);a.props=c;var l=a.context,u=n.contextType;o=ji,typeof u==`object`&&u&&(o=Da(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)&&wc(t,a,r,o),go=!1;var f=t.memoizedState;a.state=f,To(t,r,a,i),wo(),l=t.memoizedState,s||f!==l||go?(typeof d==`function`&&(xc(t,n,d,r),l=t.memoizedState),(c=go||Cc(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,vo(e,t),o=t.memoizedProps,u=Tc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ji,typeof l==`object`&&l&&(c=Da(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)&&wc(t,a,r,c),go=!1,f=t.memoizedState,a.state=f,To(t,r,a,i),wo();var p=t.memoizedState;o!==d||f!==p||go||e!==null&&e.dependencies!==null&&Ta(e.dependencies)?(typeof s==`function`&&(xc(t,n,s,r),p=t.memoizedState),(u=go||Cc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Ta(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,qc(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=mo(t,e.child,null,i),t.child=mo(t,null,n,i)):Lc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=fl(e,t,i),e}function Zc(e,t,n,r){return ma(),t.flags|=256,Lc(e,t,n,r),t.child}var Qc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $c(e){return{baseLanes:e,cachePool:Xa()}}function el(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=vd),e}function tl(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Ro.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(oa){if(i?No(t):Io(),(e=aa)?(e=_m(e,ca),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xi===null?null:{id:Zi,overflow:Qi},retryLane:536870912,hydrationErrors:null},n=Bi(e),n.return=t,t.child=n,ia=t,aa=null)):e=null,e===null)throw ua(t);return t.lanes=ym(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Io(),i=t.mode,a=rl({mode:`hidden`,children:a},i),r=Ri(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=$c(n),r.childLanes=el(e,o,n),t.memoizedState=Qc,Hc(null,r)):(No(t),nl(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return al(e,t,a,o,r,c,s,n)}return i?(Io(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Fi(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Ri(i,a,n,null),i.flags|=2):i=Fi(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Hc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=$c(n):(a=i.cachePool,a===null?a=Xa():(s=Na._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=el(e,o,n),t.memoizedState=Qc,Hc(e.child,r)):(No(t),n=e.child,e=n.sibling,n=Fi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function nl(e,t){return t=rl({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function rl(e,t){return e=Ni(22,e,null,t),e.lanes=0,e}function il(e,t,n){return mo(t,e.child,null,n),e=nl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function al(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(No(t),t.flags&=-257,il(e,t,c)):t.memoizedState===null?(Io(),o=a.fallback,s=t.mode,a=rl({mode:`visible`,children:a.children},s),o=Ri(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,mo(t,e.child,null,c),a=t.child,a.memoizedState=$c(c),a.childLanes=el(e,r,c),t.memoizedState=Qc,Hc(null,a)):(Io(),t.child=e.child,t.flags|=128,null);if(No(t),ym(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,ga({value:a,source:null,stack:null})),il(e,t,c)}if(Ic||wa(e,t,c,!1),r=(c&e.childLanes)!==0,Ic||r){if(Oo.current!==null)return il(e,t,c);if(r=ad,r!==null&&(a=gt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,Oi(e,a),Ud(r,e,a),Fc;return vm(o)||tf(),il(e,t,c)}return vm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,aa=xm(o.nextSibling),ia=t,oa=!0,sa=null,ca=!1,e!==null&&ra(t,e),t=nl(t,a.children),t.flags|=134221824,t)}function ol(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Sa(e.return,t,n)}function sl(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Vo(n)===null&&(t=e),e=e.sibling}return t}function cl(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 ll(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function ul(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Ro.current;if(t.flags&128)return zo(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,zo(t,o),i===`backwards`&&e!==null?(ll(e),Lc(e,t,r,n),ll(e)):Lc(e,t,r,n),r=oa?qi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ol(e,n,t);else if(e.tag===19)ol(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`backwards`:n=sl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,ll(t)),cl(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Vo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}cl(t,!0,n,null,a,r);break;case`together`:cl(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=sl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),cl(t,!1,i,n,a,r)}return t.child}function dl(e,t,n){var r=t.pendingProps;return ba(t,t.type,r.value),Lc(e,t,r.children,n),t.child}function fl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),hd|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(wa(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=Fi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Fi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function pl(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&Ta(e)))}function ml(e,t,n){switch(t.tag){case 3:Te(t,t.stateNode.containerInfo),ba(t,Na,e.memoizedState.cache),ma();break;case 27:case 5:De(t);break;case 4:Te(t,t.stateNode.containerInfo);break;case 10:ba(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Po(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return No(t),t.flags|=128,null;r=wa(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?tl(e,t,n):(No(t),e=fl(e,t,n),e===null?null:e.sibling)}No(t);break;case 19:if(t.flags&128)return ul(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(wa(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return ul(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),zo(t,Ro.current),r)break;return null;case 22:return t.lanes=0,Vc(e,t,n,t.pendingProps);case 24:ba(t,Na,e.memoizedState.cache)}return fl(e,t,n)}function hl(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Ic=!0;else{if(!pl(e,n)&&!(t.flags&128))return Ic=!1,ml(e,t,n);Ic=!!(e.flags&131072)}}else Ic=!1,oa&&t.flags&1048576&&ea(t,qi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=ro(t.elementType),t.type=e,typeof e==`function`)Pi(e)?(r=Tc(e,r),t.tag=1,t=Xc(null,t,e,r,n)):(t.tag=0,t=Jc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===ee){t.tag=11,t=Rc(null,t,e,r,n);break a}if(a===ne){t.tag=14,t=zc(null,t,e,r,n);break a}if(a===F){t.tag=10,t.type=e,t=dl(null,t,n);break a}}throw t=fe(e)||e,Error(i(306,t,``))}}return t;case 0:return Jc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Tc(r,t.pendingProps),Xc(e,t,r,a,n);case 3:a:{if(Te(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,vo(e,t),To(t,r,null,n);var s=t.memoizedState;if(r=s.cache,ba(t,Na,r),r!==o.cache&&Ca(t,[Na],n,!0),wo(),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=Zc(e,t,r,n);break a}if(r!==a){a=Ui(Error(i(424)),t),ga(a),t=Zc(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(aa=xm(e.firstChild),ia=t,oa=!0,sa=null,ca=!0,n=ho(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(ma(),r===a){t=fl(e,t,n);break a}Lc(e,t,r,n)}t=t.child}return t;case 26:return qc(e,t),e===null?(n=Gm(t.type,null,t.pendingProps,null))?t.memoizedState=n:oa||(t.stateNode=wp(t.type,t.pendingProps,Ce.current,t)):t.memoizedState=Gm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return De(t),e===null&&oa&&(r=t.stateNode=Dm(t.type,t.pendingProps,Ce.current),ia=t,ca=!0,a=aa,Pp(t.type)?(Sm=a,aa=xm(r.firstChild)):aa=a),Lc(e,t,t.pendingProps.children,n),qc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&oa&&((a=r=aa)&&(r=hm(r,t.type,t.pendingProps,ca),r===null?a=!1:(t.stateNode=r,ia=t,aa=xm(r.firstChild),ca=!1,a=!0)),a||ua(t)),De(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Tp(a,o)?r=null:s!==null&&Tp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=ts(e,t,is,null,null,n),yh._currentValue=a),qc(e,t),Lc(e,t,r,n),t.child;case 6:return e===null&&oa&&((e=n=aa)&&(n=gm(n,t.pendingProps,ca),n===null?e=!1:(t.stateNode=n,ia=t,aa=null,e=!0)),e||ua(t)),null;case 13:return tl(e,t,n);case 4:return Te(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=mo(t,null,r,n):Lc(e,t,r,n),t.child;case 11:return Rc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,qc(e,t),Lc(e,t,r,n),t.child;case 8:return Lc(e,t,t.pendingProps.children,n),t.child;case 12:return Lc(e,t,t.pendingProps.children,n),t.child;case 10:return dl(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,Ea(t),a=Da(a),r=r(a),t.flags|=1,Lc(e,t,r,n),t.child;case 14:return zc(e,t,t.type,t.pendingProps,n);case 15:return Bc(e,t,t.type,t.pendingProps,n);case 19:return ul(e,t,n);case 31:return Kc(e,t,n);case 22:return Vc(e,t,n,t.pendingProps);case 24:return Ea(t),r=Da(Na),e===null?(a=Ja(),a===null&&(a=ad,o=Pa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},_o(t),ba(t,Na,a)):((e.lanes&n)!==0&&(vo(e,t),To(t,null,null,n),wo()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,ba(t,Na,r),r!==a.cache&&Ca(t,[Na],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),ba(t,Na,r))),Lc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:oa&&ta(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:qc(e,t),Lc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function gl(e){e.flags|=4}function _l(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?oh(t,r):oh(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Qd())e.flags|=8192;else throw io=eo,Qa}}else e.flags&=-16777217}function vl(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!sh(t)){if(Qd())e.flags|=8192;else throw io=eo,Qa}}function yl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:dt(),e.lanes|=t,yd|=t)}function bl(e,t){if(!oa)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,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;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function xl(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&1206910976,r|=i.flags&1206910976,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 Sl(e,t,n){var r=t.pendingProps;switch(na(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xl(t),null;case 1:return xl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),xa(Na),Ee(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(pa(t)?gl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ha())),xl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(gl(t),o===null?(xl(t),_l(t,a,null,r,n)):(xl(t),vl(t,o))):o?o===e.memoizedState?(xl(t),t.flags&=-16777217):(gl(t),xl(t),vl(t,o)):(e=e.memoizedProps,e!==r&&gl(t),xl(t),_l(t,a,e,r,n)),null;case 27:if(Oe(t),n=Ce.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&gl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return xl(t),t.subtreeFlags&=-33554433,null}e=xe.current,pa(t)?da(t,e):(e=Dm(a,r,n),t.stateNode=e,gl(t))}return xl(t),t.subtreeFlags&=-33554433,null;case 5:if(Oe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&gl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return xl(t),t.subtreeFlags&=-33554433,null}if(o=xe.current,pa(t))da(t,o);else{var s=xp(Ce.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[St]=t,o[Ct]=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(mp(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&&gl(t)}}return xl(t),t.subtreeFlags&=-33554433,_l(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&gl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=Ce.current,pa(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ia,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[St]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||dp(e.nodeValue,n)),e||ua(t,!0)}else e=xp(e).createTextNode(r),e[St]=t,t.stateNode=e}return xl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=pa(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[St]=t}else ma(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;xl(t),e=!1}else n=ha(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Lo(t),t):(Lo(t),null);if(t.flags&128)throw Error(i(558))}return xl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=pa(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[St]=t}else ma(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;xl(t),a=!1}else a=ha(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Lo(t),t):(Lo(t),null)}return Lo(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),yl(t,t.updateQueue),xl(t),null);case 4:return Ee(),e===null&&tp(t.stateNode.containerInfo),t.flags|=67108864,xl(t),null;case 10:return xa(t.type),xl(t),null;case 19:if(Bo(t),r=t.memoizedState,r===null)return xl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)bl(r,!1);else{if(md!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Vo(e),o!==null){for(t.flags|=128,bl(r,!1),e=o.updateQueue,t.updateQueue=e,yl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ii(n,e),n=n.sibling;return zo(t,Ro.current&1|2),oa&&$i(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ve()>Td&&(t.flags|=128,a=!0,bl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Vo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,yl(t,e),bl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!oa)return xl(t),null}else 2*Ve()-r.renderingStartTime>Td&&n!==536870912&&(t.flags|=128,a=!0,bl(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)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ve(),e.sibling=null,o=Ro.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||oa?zo(t,o):(n=o,be(Mo,t),be(Ro,n),B===null&&(B=t)),oa&&$i(t,r.treeForkCount),e}return xl(t),null;case 22:case 23:return Lo(t),z(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(xl(t),t.subtreeFlags&6&&(t.flags|=8192)):xl(t),n=t.updateQueue,n!==null&&yl(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&&ye(qa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),xa(Na),xl(t),null;case 25:return null;case 30:return t.flags|=33554432,xl(t),null}throw Error(i(156,t.tag))}function Cl(e,t){switch(na(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xa(Na),Ee(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Lo(t),t.alternate===null)throw Error(i(340));ma()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Lo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ma()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Bo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Ee(),null;case 10:return xa(t.type),null;case 22:case 23:return Lo(t),z(),e!==null&&ye(qa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return xa(Na),null;case 25:return null;default:return null}}function wl(e,t){switch(na(t),t.tag){case 3:xa(Na),Ee();break;case 26:case 27:case 5:Oe(t);break;case 4:Ee();break;case 31:t.memoizedState!==null&&Lo(t);break;case 13:Lo(t);break;case 19:Bo(t);break;case 10:xa(t.type);break;case 22:case 23:Lo(t),z(),e!==null&&ye(qa);break;case 24:xa(Na)}}function Tl(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){Cf(t,t.return,e)}}function El(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){Cf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Cf(t,t.return,e)}}function Dl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Do(t,n)}catch(t){Cf(e,e.return,t)}}}function Ol(e,t,n){n.props=Tc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Cf(e,t,n)}}function kl(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:var i=e.stateNode,a=vi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Kp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new qp(e);p(e.child,!1,um,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Cf(e,t,n)}}function Al(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Cf(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){Cf(e,t,n)}else n.current=null}}function jl(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)fm(e.stateNode,t[n])}function Ml(e){for(var t=e.return;t!==null&&(Fl(t)&&fm(e.stateNode,t.stateNode),!Pl(t));)t=t.return}function Nl(e){for(var t=e.return;t!==null&&(Fl(t)&&pm(e.stateNode,t.stateNode),!Pl(t));)t=t.return}function Pl(e){return e.tag===5||e.tag===3||e.tag===27}function Fl(e){return e&&e.tag===7&&e.stateNode!==null}function Il(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){Cf(e,e.return,t)}}function Ll(e,t,n){try{var r=e.stateNode;gp(r,e.type,n,t),r[Ct]=t}catch(t){Cf(e,e.return,t)}}function Rl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Pp(e.type)||e.tag===4}function zl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Rl(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&&Pp(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 Bl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=yn)),jl(e,r),Kt=!0;else if(i!==4&&(i===27&&(jl(e,r),r=null,Pp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Bl(e,t,n,r),e=e.sibling;e!==null;)Bl(e,t,n,r),e=e.sibling}function Vl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),jl(e,r),Kt=!0;else if(i!==4&&(i===27&&(jl(e,r),r=null,Pp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Vl(e,t,n,r),e=e.sibling;e!==null;)Vl(e,t,n,r),e=e.sibling}function Hl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);mp(t,r,n),t[St]=e,t[Ct]=n}catch(t){Cf(e,e.return,t)}}var Ul=!1,Wl=null;function Gl(e){(e.tag===30||e.subtreeFlags&33554432)&&(Ul=!0)}var Kl=null;function ql(){var e=Kl;return Kl=null,e}var Jl=0;function Yl(e,t,n,r,i){return Jl=0,Xl(e.child,t,n,r,i)}function Xl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Bp(o);r.push(s),s.view&&(a=!0)}else a||Bp(o).view&&(a=!0);Ul=!0,Lp(o,Jl===0?t:t+`_`+Jl,n),Jl++}else e.tag===22&&e.memoizedState!==null||e.tag===30&&i||Xl(e.child,t,n,r,i)&&(a=!0);e=e.sibling}return a}function Zl(e,t){for(;e!==null;)e.tag===5?Rp(e.stateNode,e.memoizedProps):e.tag===22&&e.memoizedState!==null||e.tag===30&&t||Zl(e.child,t),e=e.sibling}function Ql(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Ql(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=bi(t.default,t.share),t!==`none`&&(Yl(e,n,t,null,!1)||Zl(e.child,!1))}e=e.sibling}}function $l(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=vi(r,n),a=bi(r.default,n.paired?r.share:r.enter);a===`none`?Ql(e):Yl(e,i,a,null,!1)?(Ql(e),n.paired||t||Hd(e,r.onEnter)):Zl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)$l(e,t),e=e.sibling;else Ql(e)}function eu(e){if(Wl!==null&&Wl.size!==0){var t=Wl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=bi(n.default,n.share);if(a!==`none`&&(Yl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Hd(e,n.onShare)):Zl(e.child,!1)),t.delete(r),t.size===0)break}}}eu(e)}e=e.sibling}}}function tu(e){if(e.tag===30){var t=e.memoizedProps,n=vi(t,e.stateNode),r=Wl===null?void 0:Wl.get(n),i=bi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Yl(e,n,i,null,!1)?r===void 0?Hd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Wl.delete(n),Hd(e,t.onShare)):Zl(e.child,!1)),Wl!==null&&eu(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)tu(e),e=e.sibling;else Wl!==null&&eu(e)}function nu(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=vi(t,e.stateNode);t=bi(t.default,t.update),e.flags&=-5,t!==`none`&&Yl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&nu(e);e=e.sibling}}function ru(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Zl(e.child,!1))}ru(e)}e=e.sibling}}function iu(e){if(e.tag===30)e.stateNode.paired=null,Zl(e.child,!1),ru(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)iu(e),e=e.sibling;else ru(e)}function au(e){for(e=e.child;e!==null;)e.tag===30?Zl(e.child,!1):e.subtreeFlags&33554432&&au(e),e=e.sibling}function ou(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Jl<a.length){var l=a[Jl],u=Bp(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Lp(c,Jl===0?n:n+`_`+Jl,i),s&&e.flags&4||(Kl===null&&(Kl=[]),Kl.push(c,Jl===0?r:r+`_`+Jl,t.memoizedProps)),Jl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:ou(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function su(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=vi(n,r),a=bi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Vp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Jl=0,i=ou(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Hd(e,n.onUpdate))}else e.subtreeFlags&33554432&&su(e,t);e=e.sibling}}var cu=!1,lu=!1,uu=!1,du=!1,fu=typeof WeakSet==`function`?WeakSet:Set,pu=null,mu=!1,hu=!1,gu=!1,_u=!1;function vu(e,t,n){if(e=e.containerInfo,yp=Oh,e=Jr(e),Yr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(bp={focusedElem:e,selectionRange:r},Oh=!1,n=(n&335544064)===n,pu=t,t=n?9270:1024;pu!==null;){if(e=pu,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&tu(r[a]);if(e.alternate===null&&e.flags&2)n&&Gl(e),yu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&tu(r),yu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Gl(e),yu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,pu=r):(n&&nu(e),yu(n))}}Wl=null}function yu(e){for(;pu!==null;){var t=pu,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=Tc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){Cf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)mm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:mm(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=vi(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=bi(a.default,a.update),a!==`none`&&Yl(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,pu=r;break}pu=t.return}}function bu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:zu(e,n),r&4&&Tl(5,n);break;case 1:if(zu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Cf(n,n.return,e)}else{var i=Tc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Cf(n,n.return,e)}}}r&64&&Dl(n),r&512&&kl(n,n.return);break;case 3:if(zu(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{Do(e,t)}catch(e){Cf(n,n.return,e)}}break;case 27:t===null&&r&4&&Hl(n);case 26:case 5:zu(e,n),t===null&&r&4&&Il(n),r&512&&kl(n,n.return);break;case 12:zu(e,n);break;case 31:zu(e,n),r&4&&Ou(e,n);break;case 13:zu(e,n),r&4&&ku(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Df.bind(null,n),bm(e,n))));break;case 22:if(r=n.memoizedState!==null||cu,!r){var a=t!==null&&t.memoizedState!==null||lu;t=cu,i=lu,cu=r,(lu=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Vu(e,n,r)):zu(e,n),cu=t,lu=i}break;case 30:zu(e,n),r&512&&kl(n,n.return);break;case 7:r&512&&kl(n,n.return);default:zu(e,n)}}function xu(e,t){for(e=e.child;e!==null;)Su(e,t),e=e.sibling}function Su(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){Cf(e,e.return,t)}Cu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,Kt=!0}catch(t){Cf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Ip(s,!0):Ip(e.stateNode,!1)}catch(t){Cf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&xu(e,t);break;default:xu(e,t)}}function Cu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:Su(n,r);break a;case 22:n.memoizedState===null&&Cu(n,r);break a;default:Cu(n,r)}}e=e.sibling}}function V(e){var t=e.alternate;t!==null&&(e.alternate=null,V(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&jt(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 wu=null,Tu=!1;function Eu(e,t,n){for(n=n.child;n!==null;)Du(e,t,n),n=n.sibling}function Du(e,t,n){if(Ze&&typeof Ze.onCommitFiberUnmount==`function`)try{Ze.onCommitFiberUnmount(Xe,n)}catch{}switch(n.tag){case 26:lu||Al(n,t),Eu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!lu&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:lu||Al(n,t),Nl(n);var r=wu,i=Tu;Pp(n.type)&&(wu=n.stateNode,Tu=!1),Eu(e,t,n),Om(n.stateNode,n.type,n.memoizedProps),wu=r,Tu=i;break;case 5:lu||Al(n,t),Nl(n);case 6:if(n.tag===6&&Nl(n),r=wu,i=Tu,wu=null,Eu(e,t,n),wu=r,Tu=i,wu!==null){if(Tu)try{(wu.nodeType===9?wu.body:wu.nodeName===`HTML`?wu.ownerDocument.body:wu).removeChild(n.stateNode),Kt=!0}catch(e){Cf(n,t,e)}else try{wu.removeChild(n.stateNode),Kt=!0}catch(e){Cf(n,t,e)}}break;case 18:wu!==null&&(Tu?(e=wu,Fp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),eg(e)):Fp(wu,n.stateNode));break;case 4:r=wu,i=Tu,wu=n.stateNode.containerInfo,Tu=!0,Eu(e,t,n),wu=r,Tu=i;break;case 0:case 11:case 14:case 15:El(2,n,t),lu||El(4,n,t),Eu(e,t,n);break;case 1:lu||(Al(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Ol(n,t,r)),Eu(e,t,n);break;case 21:Eu(e,t,n);break;case 22:lu=(r=lu)||n.memoizedState!==null,Eu(e,t,n),lu=r;break;case 30:Al(n,t),Eu(e,t,n);break;case 7:lu||Al(n,t),Eu(e,t,n);break;default:Eu(e,t,n)}}function Ou(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{eg(e)}catch(e){Cf(t,t.return,e)}}}function ku(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{eg(e)}catch(e){Cf(t,t.return,e)}}function Au(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new fu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new fu),t;default:throw Error(i(435,e.tag))}}function ju(e,t){var n=Au(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Of.bind(null,e,t);t.then(r,r)}})}function Mu(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Pp(l.type)){wu=l.stateNode,Tu=!1;break a}break;case 5:wu=l.stateNode,Tu=!1;break a;case 3:case 4:wu=l.stateNode.containerInfo,Tu=!0;break a}l=l.return}if(wu===null)throw Error(i(160));Du(s,c,o),wu=null,Tu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Pu(t,e,n),t=t.sibling}var Nu=null;function Pu(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}Mu(t,e,n),Fu(e),a&4&&(El(3,e,e.return),Tl(3,e),El(5,e,e.return));break;case 1:Mu(t,e,n),Fu(e),a&512&&(lu||r===null||Al(r,r.return)),a&64&&cu&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Nu,Mu(t,e,n),Fu(e),a&512&&(lu||r===null||Al(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(cu)e.stateNode=wp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[kt]||r[St]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),mp(r,t,n),r[St]=e,It(r),t=r;break a;case`link`:if(o=rh(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),mp(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=rh(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),mp(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[St]=e,It(r),t=r}e.stateNode=t}}else cu||ih(o,e.type,e.stateNode)}else e.stateNode=Qm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Ll(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||lu||t.parentNode.removeChild(t)):a.count--,n===null?cu||ih(o,e.type,e.stateNode):Qm(o,n,e.memoizedProps))}break;case 27:Mu(t,e,n),Fu(e),a&512&&(lu||r===null||Al(r,r.return)),r!==null&&a&4&&Ll(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=uu,uu=!1,Mu(t,e,n),uu=o,Fu(e),a&512&&(lu||r===null||Al(r,r.return)),e.flags&32){t=e.stateNode;try{dn(t,``),Kt=!0}catch(t){Cf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Ll(e,t,r===null?t:r.memoizedProps)),a&1024&&(du=!0);break;case 6:if(Mu(t,e,n),Fu(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Kt=!0}catch(t){Cf(e,e.return,t)}}break;case 3:if(Kt=!1,nh=null,o=Nu,Nu=Mm(t.containerInfo),Mu(t,e,n),Nu=o,Fu(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{eg(t.containerInfo)}catch(t){Cf(e,e.return,t)}du&&(du=!1,Iu(e)),Kt=!1;break;case 4:a=uu,uu=cu,r=qt(),o=Nu,Nu=Mm(e.stateNode.containerInfo),Mu(t,e,n),Fu(e),Nu=o,Kt&&hu&&(gu=!0),Kt=r,uu=a;break;case 12:Mu(t,e,n),Fu(e);break;case 31:Mu(t,e,n),Fu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ju(e,t)));break;case 13:Mu(t,e,n),Fu(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(Cd=Ve()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ju(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=cu,l=lu,u=uu;cu=c||o,uu=u||o,lu=l||s,Mu(t,e,n),lu=l,uu=u,cu=c,Fu(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||cu||lu||(t=s||lu,n=cu,r=lu,cu=o||cu,lu=t,Bu(e,2),cu=n,lu=r),!o&&uu||xu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,ju(e,n))));break;case 19:Mu(t,e,n),Fu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ju(e,t)));break;case 30:a&512&&(lu||r===null||Al(r,r.return)),a=qt(),o=hu,s=(n&335544064)===n,c=e.memoizedProps,hu=s&&bi(c.default,c.update)!==`none`,Mu(t,e,n),Fu(e),s&&r!==null&&Kt&&(e.flags|=4),hu=o,Kt=a;break;case 21:break;case 7:a&512&&(lu||r===null||Al(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Mu(t,e,n),Fu(e)}}function Fu(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Rl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(Fl(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(Pl(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Vl(e,zl(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(dn(l,``),n.flags&=-33),Vl(e,zl(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Bl(e,zl(e),u,s);break;default:throw Error(i(161))}}catch(t){Cf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Iu(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Iu(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Oh=!0,t.reset(),Oh=!1),e=e.sibling}}function Lu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Ru(t,e),t=t.sibling;else su(t,!1)}function Ru(e,t){var n=e.alternate;if(n===null)$l(e,!1);else switch(e.tag){case 3:if(_u=mu=!1,ql(),Lu(t,e),!mu&&!gu){if(e=Kl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Rp(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),_u=!0}Kl=null;break;case 5:Lu(t,e);break;case 4:r=mu,mu=!1,Lu(t,e),mu&&(gu=!0),mu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Lu(t,e):$l(e,!1));break;case 30:r=mu,i=ql(),mu=!1,Lu(t,e),mu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=vi(a,o),o=vi(n.memoizedProps,o);var s=bi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Jl=0,t=ou(e,n,t,o,s,a,!0),Jl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Hd(e,e.memoizedProps.onUpdate),Kl=i):i!==null&&(i.push.apply(i,Kl),Kl=i),mu=e.flags&32?!0:r;break;default:Lu(t,e)}}function zu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)bu(e,t.alternate,t),t=t.sibling}function Bu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:El(4,n,n.return),Bu(n,r);break;case 1:Al(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&Ol(n,n.return,i),Bu(n,r);break;case 27:r&2&&Om(n.stateNode,n.type,n.memoizedProps);case 5:Al(n,n.return),n.tag!==5&&n.tag!==27||Nl(n),Bu(n,r);break;case 6:Nl(n);break;case 26:Al(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||lu||i.parentNode.removeChild(i),Bu(n,r);break;case 22:n.memoizedState===null&&Bu(n,r);break;case 30:Al(n,n.return),Bu(n,r);break;case 7:Al(n,n.return);default:Bu(n,r)}e=e.sibling}}function Vu(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Vu(i,a,n),Tl(4,a);break;case 1:if(Vu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Cf(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)Eo(l[i],c)}catch(e){Cf(r,r.return,e)}}s&&o&64&&Dl(a),kl(a,a.return);break;case 27:n&2&&Hl(a);case 5:a.tag!==5&&a.tag!==27||Ml(a),Vu(i,a,n),s&&r===null&&o&4&&Il(a),kl(a,a.return);break;case 6:Ml(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||cu||ih(Mm(c.ownerDocument),a.type,c),Vu(i,a,n),s&&r===null&&o&4&&Il(a),kl(a,a.return);break;case 12:Vu(i,a,n);break;case 31:Vu(i,a,n),s&&o&4&&Ou(i,a);break;case 13:Vu(i,a,n),s&&o&4&&ku(i,a);break;case 22:a.memoizedState===null&&Vu(i,a,n),kl(a,a.return);break;case 30:Vu(i,a,n),kl(a,a.return);break;case 7:kl(a,a.return);default:Vu(i,a,n)}t=t.sibling}}function Hu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Fa(n))}function Uu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Fa(e))}function Wu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Gu(e,t,n,r),t=t.sibling;else i&&au(t)}function Gu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&iu(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Wu(e,t,n,r),a&2048&&Tl(9,t);break;case 1:Wu(e,t,n,r);break;case 3:Wu(e,t,n,r),i&&_u&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Fa(a)));break;case 12:if(a&2048){Wu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){Cf(t,t.return,e)}}else Wu(e,t,n,r);break;case 31:Wu(e,t,n,r);break;case 13:Wu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&iu(t),o._visibility&2?Wu(e,t,n,r):(o._visibility|=2,Ku(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&iu(s),o._visibility&2?Wu(e,t,n,r):qu(e,t)),a&2048&&Hu(s,t);break;case 24:Wu(e,t,n,r),a&2048&&Uu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Zl(a.child,!0),Zl(t.child,!0))),Wu(e,t,n,r);break;default:Wu(e,t,n,r)}}function Ku(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:Ku(a,o,s,c,i),Tl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Ku(a,o,s,c,i)):u._visibility&2?Ku(a,o,s,c,i):qu(a,o),i&&l&2048&&Hu(o.alternate,o);break;case 24:Ku(a,o,s,c,i),i&&l&2048&&Uu(o.alternate,o);break;default:Ku(a,o,s,c,i)}t=t.sibling}}function qu(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:qu(n,r),i&2048&&Hu(r.alternate,r);break;case 24:qu(n,r),i&2048&&Uu(r.alternate,r);break;default:qu(n,r)}t=t.sibling}}var Ju=8192;function Yu(e,t,n){if(e.subtreeFlags&Ju)for(e=e.child;e!==null;)Xu(e,t,n),e=e.sibling}function Xu(e,t,n){switch(e.tag){case 26:Yu(e,t,n),e.flags&Ju&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&lh(n,e)):uh(n,Nu,e.memoizedState,e.memoizedProps));break;case 5:Yu(e,t,n),e.flags&Ju&&(e=e.stateNode,(t&335544128)===t&&lh(n,e));break;case 3:case 4:var r=Nu;Nu=Mm(e.stateNode.containerInfo),Yu(e,t,n),Nu=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ju,Ju=16777216,Yu(e,t,n),Ju=r):Yu(e,t,n));break;case 30:if((e.flags&Ju)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Wl===null&&(Wl=new Map),Wl.set(r,i)}Yu(e,t,n);break;default:Yu(e,t,n)}}function Zu(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 Qu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];pu=r,td(r,e)}Zu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)$u(e),e=e.sibling}function $u(e){switch(e.tag){case 0:case 11:case 15:Qu(e),e.flags&2048&&El(9,e,e.return);break;case 3:Qu(e);break;case 12:Qu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ed(e)):Qu(e);break;default:Qu(e)}}function ed(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];pu=r,td(r,e)}Zu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:El(8,t,t.return),ed(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,ed(t));break;default:ed(t)}e=e.sibling}}function td(e,t){for(;pu!==null;){var n=pu;switch(n.tag){case 0:case 11:case 15:El(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Fa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,pu=r;else a:for(n=e;pu!==null;){r=pu;var i=r.sibling,a=r.return;if(V(r),r===n){pu=null;break a}if(i!==null){i.return=a,pu=i;break a}pu=a}}}var nd={getCacheForType:function(e){var t=Da(Na),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Da(Na).controller.signal}},rd=typeof WeakMap==`function`?WeakMap:Map,id=0,ad=null,od=null,sd=0,cd=0,ld=null,ud=!1,dd=!1,fd=!1,pd=0,md=0,hd=0,gd=0,_d=0,vd=0,yd=0,bd=null,xd=null,Sd=!1,Cd=0,wd=0,Td=1/0,Ed=null,Dd=null,Od=0,kd=null,Ad=null,jd=0,Md=0,Nd=null,Pd=null,Fd=null,Id=null,Ld=null,Rd=0,zd=null;function Bd(){return id&2&&sd!==0?sd&-sd:L.T===null?yt():Wf()}function Vd(){if(vd===0){if(!(sd&536870912)||oa){var e=it;it<<=1,!(it&3932160)&&(it=262144),vd=e}else vd=536870912}return e=Mo.current,e!==null&&(e.flags|=32),vd}function Hd(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Kp(vi(e.memoizedProps,n))),Id===null&&(Id=[]),Id.push(t.bind(null,r))}}function Ud(e,t,n){(e===ad&&(cd===2||cd===9)||e.cancelPendingCommit!==null)&&(Xd(e,0),qd(e,sd,vd,!1)),ft(e,n),id&2&&e===ad||(e===ad&&(!(id&2)&&(gd|=n),md===4&&qd(e,sd,vd,!1)),If(e))}function Wd(e,t,n){if(id&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||ct(e,t),a=r?af(e,t):nf(e,t,!0),o=r;do{if(a===0){dd&&!r&&qd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Kd(n))a=nf(e,t,!1),o=!1;else{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=bd;var l=c.current.memoizedState.isDehydrated;if(l&&(Xd(c,s).flags|=256),s=nf(c,s,!1),s!==2&&s!==6){if(fd&&!l){c.errorRecoveryDisabledLanes|=o,gd|=o,a=4;break a}o=xd,xd=a,o!==null&&(xd===null?xd=o:xd.push.apply(xd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Xd(e,0),qd(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&&(t&62914560)!==t)break;case 6:qd(r,t,vd,!ud);break a;case 2:xd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=Cd+300-Ve(),10<a)){if(qd(r,t,vd,!ud),st(r,0,!0)!==0)break a;jd=t,r.timeoutHandle=Op(Gd.bind(null,r,n,xd,Ed,Sd,t,vd,gd,yd,ud,o,`Throttled`,-0,0),a);break a}Gd(r,n,xd,Ed,Sd,t,vd,gd,yd,ud,o,null,-0,0)}break}}while(1);If(e)}function Gd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:yn},Wl=null,Xu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=mh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?Cd-Ve():(a&4194048)===a?wd-Ve():0,m=fh(d,m),m!==null)?(jd=a,e.cancelPendingCommit=m(ff.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),qd(e,a,o,!l)):ff(e,t,a,n,r,i,o,s,c,l,u,d)}function Kd(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(!Hr(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 qd(e,t,n,r){t=lt(e,t),t&=~_d,t&=~gd,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-$e(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&mt(e,n,t)}function Jd(){return id&6?!0:(Lf(0,!1),!1)}function Yd(){if(od!==null){if(cd===0)var e=od.return;else e=od,ya=va=null,ss(e),so=null,co=0,e=od;for(;e!==null;)wl(e.alternate,e),e=e.return;od=null}}function Xd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,kp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),jd=0,Yd(),ad=e,od=n=Fi(e.current,null),sd=t,cd=0,ld=null,ud=!1,dd=ct(e,t),fd=!1,yd=vd=_d=gd=hd=md=0,xd=bd=null,Sd=!1,pd=lt(e,t),Ti(),n}function Zd(e,t){Uo=null,L.H=_c,t===Za||t===$a?(t=ao(),cd=3):t===Qa?(t=ao(),cd=4):cd=t===Fc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,ld=t,od===null&&(md=1,kc(e,Ui(t,e.current)))}function Qd(){var e=Mo.current;return e===null?!0:(sd&4194048)===sd?B===null:(sd&62914560)===sd||sd&536870912?e===B:!1}function $d(){var e=L.H;return L.H=_c,e===null?_c:e}function ef(){var e=L.A;return L.A=nd,e}function tf(){md=4,ud||(sd&4194048)!==sd&&Mo.current!==null||(dd=!0),!(hd&134217727)&&!(gd&134217727)||ad===null||qd(ad,sd,vd,!1)}function nf(e,t,n){var r=id;id|=2;var i=$d(),a=ef();(ad!==e||sd!==t)&&(Ed=null,Xd(e,t)),t=!1;var o=md;a:do try{if(cd!==0&&od!==null){var s=od,c=ld;switch(cd){case 8:Yd(),o=6;break a;case 3:case 2:case 9:case 6:Mo.current===null&&(t=!0);var l=cd;if(cd=0,ld=null,lf(e,s,c,l),n&&dd){o=0;break a}break;default:l=cd,cd=0,ld=null,lf(e,s,c,l)}}rf(),o=md;break}catch(t){Zd(e,t)}while(1);return t&&e.shellSuspendCounter++,ya=va=null,id=r,L.H=i,L.A=a,od===null&&(ad=null,sd=0,Ti()),o}function rf(){for(;od!==null;)sf(od)}function af(e,t){var n=id;id|=2;var r=$d(),a=ef();ad!==e||sd!==t?(Ed=null,Td=Ve()+500,Xd(e,t)):dd=ct(e,t);a:do try{if(cd!==0&&od!==null){t=od;var o=ld;b:switch(cd){case 1:cd=0,ld=null,lf(e,t,o,1);break;case 2:case 9:if(to(o)){cd=0,ld=null,cf(t);break}t=function(){cd!==2&&cd!==9||ad!==e||(cd=7),If(e)},o.then(t,t);break a;case 3:cd=7;break a;case 4:cd=5;break a;case 7:to(o)?(cd=0,ld=null,cf(t)):(cd=0,ld=null,lf(e,t,o,7));break;case 5:var s=null;switch(od.tag){case 26:s=od.memoizedState;case 5:case 27:var c=od;if(s?sh(s):c.stateNode.complete){cd=0,ld=null;var l=c.sibling;if(l!==null)od=l;else{var u=c.return;u===null?od=null:(od=u,uf(u))}break b}}cd=0,ld=null,lf(e,t,o,5);break;case 6:cd=0,ld=null,lf(e,t,o,6);break;case 8:Yd(),md=6;break a;default:throw Error(i(462))}}of();break}catch(t){Zd(e,t)}while(1);return ya=va=null,L.H=r,L.A=a,id=n,od===null?(ad=null,sd=0,Ti(),md):0}function of(){for(;od!==null&&!ze();)sf(od)}function sf(e){var t=hl(e.alternate,e,pd);e.memoizedProps=e.pendingProps,t===null?uf(e):od=t}function cf(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Yc(n,t,t.pendingProps,t.type,void 0,sd);break;case 11:t=Yc(n,t,t.pendingProps,t.type.render,t.ref,sd);break;case 5:ss(t);var r=t;r===ia&&(oa?(fa(r),r.tag===5&&r.stateNode!=null&&(aa=r.stateNode)):(fa(r),oa=!0));default:wl(n,t),t=od=Ii(t,pd),t=hl(n,t,pd)}e.memoizedProps=e.pendingProps,t===null?uf(e):od=t}function lf(e,t,n,r){ya=va=null,ss(t),so=null,co=0;var i=t.return;try{if(Pc(e,i,t,n,sd)){md=1,kc(e,Ui(n,e.current)),od=null;return}}catch(t){if(i!==null)throw od=i,t;md=1,kc(e,Ui(n,e.current)),od=null;return}t.flags&32768?(oa||r===1?e=!0:dd||sd&536870912?e=!1:(ud=e=!0,(r===2||r===9||r===3||r===6)&&(r=Mo.current,r!==null&&r.tag===13&&(r.flags|=16384))),df(t,e)):uf(t)}function uf(e){var t=e;do{if(t.flags&32768){df(t,ud);return}e=t.return;var n=Sl(t.alternate,t,pd);if(n!==null){od=n;return}if(t=t.sibling,t!==null){od=t;return}od=t=e}while(t!==null);md===0&&(md=5)}function df(e,t){do{var n=Cl(e.alternate,e);if(n!==null){n.flags&=32767,od=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){od=e;return}od=e=n}while(e!==null);md=6,od=null}function ff(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do bf();while(Od!==0);if(id&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===ad&&(od=ad=null,sd=0),Ad=t,kd=e,jd=n,Nd=a,Pd=r,pf(e,t,n,s,c,l,f)}}function pf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Md=s,s|=wi,pt(e,n,s,r,i,a),Id=null,(n&335544064)===n?(Ld=Ra(e),r=10262):(Ld=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,kf(Ge,function(){return xf(),null})):(e.callbackNode=null,e.callbackPriority=0),Ul=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=L.T,L.T=null,i=me.p,me.p=2,a=id,id|=4;try{vu(e,t,n)}finally{id=a,me.p=i,L.T=r}}Od=1,Ul?Fd=Wp(o,e.containerInfo,Ld,gf,_f,hf,vf,xf,mf,null,null):(gf(),_f(),vf())}function mf(e){if(Od!==0){var t=kd.onRecoverableError;t(e,{componentStack:null})}}function hf(){Od===3&&(Od=0,Ru(Ad,kd),Od=4)}function gf(){if(Od===1){Od=0;var e=kd,t=Ad,n=jd,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=L.T,L.T=null;var i=me.p;me.p=2;var a=id;id|=4;try{hu=gu=!1,Pu(t,e,n),n=bp;var o=Jr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&qr(s.ownerDocument.documentElement,s)){if(c!==null&&Yr(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 _=Kr(s,h),v=Kr(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}}Oh=!!yp,bp=yp=null}finally{id=a,me.p=i,L.T=r}}e.current=t,Od=2}}function _f(){if(Od===2){Od=0;var e=kd,t=Ad,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=L.T,L.T=null;var r=me.p;me.p=2;var i=id;id|=4;try{bu(e,t.alternate,t)}finally{id=i,me.p=r,L.T=n}}Od=3}}function vf(){if(Od===4||Od===3){Od=0;var e=Fd;Fd=null,Be();var t=kd,n=Ad,r=jd,i=Pd,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?Od=5:(Od=0,Ad=kd=null,yf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(Dd=null),vt(r),n=n.stateNode,Ze&&typeof Ze.onCommitFiberRoot==`function`)try{Ze.onCommitFiberRoot(Xe,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=L.T,a=me.p,me.p=2,L.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{L.T=n,me.p=a}}if(i=Id,o=Ld,Ld=null,i!==null&&(Id=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);jd&3&&bf(),If(t),a=t.pendingLanes,r&261930&&a&42?t===zd?Rd++:(Rd=0,zd=t):(Rd=0,zd=null),Lf(0,!1)}}function yf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Fa(t)))}function bf(){return Fd!==null&&(Fd.skipTransition(),Fd=null),gf(),_f(),vf(),xf()}function xf(){if(Od!==5)return!1;var e=kd,t=Md;Md=0;var n=vt(jd),r=L.T,a=me.p;try{me.p=32>n?32:n,L.T=null,n=Nd,Nd=null;var o=kd,s=jd;if(Od=0,Ad=kd=null,jd=0,id&6)throw Error(i(331));var c=id;if(id|=4,$u(o.current),Gu(o,o.current,s,n),id=c,Lf(0,!1),Ze&&typeof Ze.onPostCommitFiberRoot==`function`)try{Ze.onPostCommitFiberRoot(Xe,o)}catch{}return!0}finally{me.p=a,L.T=r,yf(e,t)}}function Sf(e,t,n){t=Ui(n,t),t=jc(e.stateNode,t,2),e=bo(e,t,2),e!==null&&(ft(e,2),If(e))}function Cf(e,t,n){if(e.tag===3)Sf(e,e,n);else for(;t!==null;){if(t.tag===3){Sf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Dd===null||!Dd.has(r))){e=Ui(n,e),n=Mc(2),r=bo(t,n,2),r!==null&&(Nc(n,r,t,e),ft(r,2),If(r));break}}t=t.return}}function wf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rd;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)||(fd=!0,i.add(n),e=Tf.bind(null,e,t,n),t.then(e,e))}function Tf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ad===e&&(sd&n)===n&&(md===4||md===3&&(sd&62914560)===sd&&300>Ve()-Cd?id&2?_d|=n:Xd(e,0):_d|=n,yd===sd&&(yd=0)),If(e)}function Ef(e,t){t===0&&(t=dt()),e=Oi(e,t),e!==null&&(ft(e,t),If(e))}function Df(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ef(e,n)}function Of(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),Ef(e,n)}function kf(e,t){return Le(e,t)}var Af=null,jf=null,Mf=!1,Nf=!1,Pf=!1,Ff=0;function If(e){e!==jf&&e.next===null&&(jf===null?Af=jf=e:jf=jf.next=e),Nf=!0,Mf||(Mf=!0,Uf())}function Lf(e,t){if(!Pf&&Nf){Pf=!0;do for(var n=!1,r=Af;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-$e(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Hf(r,a))}else a=sd,a=st(r,r===ad?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||ct(r,a)||(n=!0,Hf(r,a))}r=r.next}while(n);Pf=!1}}function Rf(){zf()}function zf(){Nf=Mf=!1;var e=0;Ff!==0&&Dp()&&(e=Ff);for(var t=Ve(),n=null,r=Af;r!==null;){var i=r.next,a=Bf(r,t);a===0?(r.next=null,n===null?Af=i:n.next=i,i===null&&(jf=n)):(n=r,(e!==0||a&3)&&(Nf=!0)),r=i}Od!==0&&Od!==5||Lf(e,!1),Ff!==0&&(Ff=0)}function Bf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-$e(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=ut(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=ad,n=sd,n=st(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(cd===2||cd===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Re(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||ct(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Re(r),vt(n)){case 2:case 8:n=We;break;case 32:n=Ge;break;case 268435456:n=qe;break;default:n=Ge}return r=Vf.bind(null,e),n=Le(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Re(r),e.callbackPriority=2,e.callbackNode=null,2}function Vf(e,t){if(Od!==0&&Od!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(bf()&&e.callbackNode!==n)return null;var r=sd;return r=st(e,e===ad?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Wd(e,r,t),Bf(e,Ve()),e.callbackNode!=null&&e.callbackNode===n?Vf.bind(null,e):null)}function Hf(e,t){if(bf())return null;Wd(e,t,!0)}function Uf(){Mp(function(){id&6?Le(Ue,Rf):zf()})}function Wf(){if(Ff===0){var e=Va;e===0&&(e=rt,rt<<=1,!(rt&261888)&&(rt=256)),Ff=e}return Ff}function Gf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:vn(e)}function Kf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Gf((i[Ct]||null).action),o=r.submitter;o&&(t=(t=o[Ct]||null)?Gf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Bn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Ff!==0){var e=new FormData(i,o);rc(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),rc(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var qf=0;qf<hi.length;qf++){var Jf=hi[qf];gi(Jf.toLowerCase(),`on`+(Jf[0].toUpperCase()+Jf.slice(1)))}gi(si,`onAnimationEnd`),gi(ci,`onAnimationIteration`),gi(li,`onAnimationStart`),gi(`dblclick`,`onDoubleClick`),gi(`focusin`,`onFocus`),gi(`focusout`,`onBlur`),gi(ui,`onTransitionRun`),gi(di,`onTransitionStart`),gi(fi,`onTransitionCancel`),gi(pi,`onTransitionEnd`),Vt(`onMouseEnter`,[`mouseout`,`mouseover`]),Vt(`onMouseLeave`,[`mouseout`,`mouseover`]),Vt(`onPointerEnter`,[`pointerout`,`pointerover`]),Vt(`onPointerLeave`,[`pointerout`,`pointerover`]),Bt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Bt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Bt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Bt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Bt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Bt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Yf=`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(` `),Xf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Yf));function Zf(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){xi(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){xi(e)}i.currentTarget=null,a=c}}}}function Qf(e,t){var n=t[Tt];n===void 0&&(n=t[Tt]=new Set);var r=e+`__bubble`;n.has(r)||(np(t,e,2,!1),n.add(r))}function $f(e,t,n){var r=0;t&&(r|=4),np(n,e,r,t)}var ep=`_reactListening`+Math.random().toString(36).slice(2);function tp(e){if(!e[ep]){e[ep]=!0,Rt.forEach(function(t){t!==`selectionchange`&&(Xf.has(t)||$f(t,!1,e),$f(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ep]||(t[ep]=!0,$f(`selectionchange`,!1,t))}}function np(e,t,n,r){switch(Fh(t)){case 2:var i=kh;break;case 8:i=Ah;break;default:i=jh}n=i.bind(null,t,n,e),i=void 0,!kn||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 rp(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=Mt(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}En(function(){var r=a,i=xn(n),s=[];a:{var c=mi.get(e);if(c!==void 0){var l=Bn,u=e;switch(e){case`keypress`:if(Fn(n)===0)break a;case`keydown`:case`keyup`:l=ir;break;case`focusin`:u=`focus`,l=Yn;break;case`focusout`:u=`blur`,l=Yn;break;case`beforeblur`:case`afterblur`:l=Yn;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=qn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Jn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=sr;break;case si:case ci:case li:l=Xn;break;case pi:l=cr;break;case`scroll`:case`scrollend`:l=Hn;break;case`wheel`:l=lr;break;case`copy`:case`cut`:case`paste`:l=Zn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=ar;break;case`submit`:l=or;break;case`toggle`:case`beforetoggle`:l=ur}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=Dn(m,p),g!=null&&d.push(ip(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(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==bn&&(u=n.relatedTarget||n.fromElement)&&(Mt(u)||u[wt]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Mt(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=qn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=ar,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Pt(c),h=l==null?u:Pt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,Mt(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?E(c,l,op):null,c!==null&&sp(s,u,c,d,!1),l!==null&&f!==null&&sp(s,f,l,d,!0)))}a:{if(c=r?Pt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Ar;else if(wr(c)){if(jr)_=Br;else{_=Rr;var v=Lr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&hn(r.elementType)&&(_=Ar):_=zr;if(_&&=_(e,r)){Tr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Pt(r):window,e){case`focusin`:(wr(v)||v.contentEditable===`true`)&&(Zr=v,Qr=r,$r=null);break;case`focusout`:$r=Qr=Zr=null;break;case`mousedown`:ei=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:ei=!1,ti(s,n,i);break;case`selectionchange`:if(Xr)break;case`keydown`:case`keyup`:ti(s,n,i)}var y;if(fr)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else br?vr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(hr&&n.locale!==`ko`&&(br||b!==`onCompositionStart`?b===`onCompositionEnd`&&br&&(y=Pn()):(jn=i,Mn=`value`in jn?jn.value:jn.textContent,br=!0)),v=ap(r,b),0<v.length&&(b=new Qn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=yr(n),y!==null&&(b.data=y)))),(y=mr?xr(e,n):Sr(e,n))&&(b=ap(r,`onBeforeInput`),0<b.length&&(v=new Qn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Kf(s,e,r,n,i)}Zf(s,t)})}function ip(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ap(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=Dn(e,n),i!=null&&r.unshift(ip(e,i,a)),i=Dn(e,t),i!=null&&r.push(ip(e,i,a))),e.tag===3)return r;e=e.return}return[]}function op(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function sp(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=Dn(n,a),l!=null&&o.unshift(ip(n,l,c))):i||(l=Dn(n,a),l!=null&&o.push(ip(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var cp=/\r\n?/g,lp=/\u0000|\uFFFD/g;function up(e){return(typeof e==`string`?e:``+e).replace(cp,`
9
+ `).replace(lp,``)}function dp(e,t){return t=up(t),up(e)===t}function fp(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||dn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&dn(e,``+r);else return;break;case`className`:Yt(e,`class`,r);break;case`tabIndex`:Yt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Yt(e,n,r);break;case`style`:mn(e,r,o);return;case`data`:if(t!==`object`){Yt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=vn(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`&&fp(e,t,`name`,a.name,a,null),fp(e,t,`formEncType`,a.formEncType,a,null),fp(e,t,`formMethod`,a.formMethod,a,null),fp(e,t,`formTarget`,a.formTarget,a,null)):(fp(e,t,`encType`,a.encType,a,null),fp(e,t,`method`,a.method,a,null),fp(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=vn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=yn);return;case`onScroll`:r!=null&&Qf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Qf(`scrollend`,e);return;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));o?.__html!==n&&(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=vn(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`credentialless`: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`:Qf(`beforetoggle`,e),Qf(`toggle`,e),Jt(e,`popover`,r);break;case`xlinkActuate`:Xt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Xt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Xt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Xt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Xt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Xt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Xt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Xt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Xt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Jt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=gn.get(n)||n,Jt(e,n,r);else return}Kt=!0}function pp(e,t,n,r,a,o){switch(n){case`style`:mn(e,r,o);return;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));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)dn(e,r);else if(typeof r==`number`||typeof r==`bigint`)dn(e,``+r);else return;break;case`onScroll`:r!=null&&Qf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Qf(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=yn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!zt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[Ct]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}Kt=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Jt(e,n,r)}return}Kt=!0}function mp(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Qf(`error`,e),Qf(`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:fp(e,t,o,s,n,null)}}a&&fp(e,t,`srcSet`,n.srcSet,n,null),r&&fp(e,t,`src`,n.src,n,null);return;case`input`:Qf(`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:fp(e,t,r,d,n,null)}}on(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Qf(`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:fp(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&cn(e,!!r,n,!0):cn(e,!!r,t,!1);return;case`textarea`:for(s in Qf(`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:fp(e,t,s,c,n,null)}un(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:fp(e,t,l,r,n,null)}return;case`dialog`:Qf(`beforetoggle`,e),Qf(`toggle`,e),Qf(`cancel`,e),Qf(`close`,e);break;case`iframe`:case`object`:Qf(`load`,e);break;case`video`:case`audio`:for(r=0;r<Yf.length;r++)Qf(Yf[r],e);break;case`image`:Qf(`error`,e),Qf(`load`,e);break;case`details`:Qf(`toggle`,e);break;case`embed`:case`source`:case`link`:Qf(`error`,e),Qf(`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:fp(e,t,u,r,n,null)}return;default:if(hn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&pp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&fp(e,t,c,r,n,null))}var hp={};function gp(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)||fp(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`:m!==f&&(Kt=!0),o=m;break;case`name`:m!==f&&(Kt=!0),a=m;break;case`checked`:m!==f&&(Kt=!0),u=m;break;case`defaultChecked`:m!==f&&(Kt=!0),d=m;break;case`value`:m!==f&&(Kt=!0),s=m;break;case`defaultValue`:m!==f&&(Kt=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&fp(e,t,p,m,r,f)}}an(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)||fp(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`:o!==l&&(Kt=!0),p=o;break;case`defaultValue`:o!==l&&(Kt=!0),c=o;break;case`multiple`:o!==l&&(Kt=!0),s=o;default:o!==l&&fp(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?cn(e,!!n,n?[]:``,!1):cn(e,!!n,t,!0)):cn(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:fp(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`:a!==o&&(Kt=!0),p=a;break;case`defaultValue`:a!==o&&(Kt=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&fp(e,t,s,a,r,o)}ln(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:fp(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`:p!==m&&(Kt=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:fp(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)&&fp(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:fp(e,t,u,p,r,m)}return;default:if(hn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&pp(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||pp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&fp(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||fp(e,t,f,p,r,m)}function _p(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function vp(){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&&_p(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&&_p(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 yp=null,bp=null;function xp(e){return e.nodeType===9?e:e.ownerDocument}function Sp(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 Cp(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 wp(e,t,n,r){return n=xp(n).createElement(e),n[St]=r,n[Ct]=t,mp(n,e,t),It(n),n}function Tp(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 Ep=null;function Dp(){var e=window.event;return e&&e.type===`popstate`?e!==Ep&&(Ep=e,!0):(Ep=null,!1)}var Op=typeof setTimeout==`function`?setTimeout:void 0,kp=typeof clearTimeout==`function`?clearTimeout:void 0,Ap=typeof Promise==`function`?Promise:void 0,jp=typeof requestAnimationFrame==`function`?requestAnimationFrame:Op,Mp=typeof queueMicrotask==`function`?queueMicrotask:Ap===void 0?Op:function(e){return Ap.resolve(null).then(e).catch(Np)};function Np(e){setTimeout(function(){throw e})}function Pp(e){return e===`head`}function Fp(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),eg(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)km(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,km(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[kt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&km(e.ownerDocument.body)}n=i}while(n);eg(t)}function Ip(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 Lp(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Rp(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function zp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Bp(e){return zp(e.getBoundingClientRect(),getComputedStyle(e),e)}function Vp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return zp(t,n,e)}function Hp(e){return e.documentElement.clientHeight}function Up(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Wp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Hp(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=ch(f),u>dh){s.length=o;break}f=new Promise(Up.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Gp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Gp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:D({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Gp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Gp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Kp(e){return{name:e,group:new Gp(`group`,e),imagePair:new Gp(`image-pair`,e),old:new Gp(`old`,e),new:new Gp(`new`,e)}}function qp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}qp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Qp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Xp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),p(this._fragmentFiber.child,!1,Jp,e,s,r)}this._eventListeners=a}};function Jp(e,t,n,r){return b(e).addEventListener(t,n,r),!1}qp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Qp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Xp(i.optionsOrUseCapture),p(this._fragmentFiber.child,!1,Yp,e,n,i),r.splice(t,1),a!==null&&a()}};function Yp(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function Xp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Zp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Qp(e,t,n,r){if(e.length===0)return-1;r=Zp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Zp(a.optionsOrUseCapture)===r)return i}return-1}qp.prototype.dispatchEvent=function(e){var t=h(this._fragmentFiber);if(t===null)return!0;t=b(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Xp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Xp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},qp.prototype.focus=function(e){p(this._fragmentFiber.child,!0,$p,e,void 0,void 0)};function $p(e,t){return e.tag!==6&&(e=b(e),Tm(e,t))}qp.prototype.focusLast=function(e){var t=[];p(this._fragmentFiber.child,!0,em,t,void 0,void 0);for(var n=t.length-1;0<=n&&!$p(t[n],e);n--);};function em(e,t){return t.push(e),!1}qp.prototype.blur=function(){var e=h(this._fragmentFiber);e!==null&&(e=b(e),e=xp(e).activeElement,e!==null&&p(this._fragmentFiber.child,!1,tm,e,void 0,void 0))};function tm(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}qp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),p(this._fragmentFiber.child,!1,nm,e,void 0,void 0)};function nm(e,t){return e.tag===6||(e=b(e),t.observe(e)),!1}qp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),p(this._fragmentFiber.child,!1,rm,e,void 0,void 0);for(var n=t=0;n<im.length;n++){var r=im[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):im[t++]=r}im.length=t}};function rm(e,t){return e.tag===6||(e=b(e),t.unobserve(e)),!1}var im=[],am=!1;function om(e,t,n){im.push({fragmentInstance:e,observer:t,instance:n}),am||(am=!0,Em(function(){am=!1;var e=im;im=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}qp.prototype.getClientRects=function(){var e=[];return p(this._fragmentFiber.child,!1,sm,e,void 0,void 0),e};function sm(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=b(e),t.push.apply(t,e.getClientRects());return!1}qp.prototype.getRootNode=function(e){var t=h(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},qp.prototype.compareDocumentPosition=function(e){var t=h(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];p(this._fragmentFiber.child,!1,em,n,void 0,void 0);var r=b(t);if(n.length===0){if(n=r,_(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=v(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=b(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=b(n[0]),i=b(n[n.length-1]);var a=_(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||cm(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function cm(e,t,n,r,i){var a=Mt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=h(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=E(n,a,T),t===null?t=!1:(p(t,!0,C,a,n),a=x,x=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=E(r,a,T),t===null?t=!1:(p(t,!0,w,a,r),a=x,S=x=null,t=a!==null)),t):!1}function lm(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}qp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];p(this._fragmentFiber.child,!1,em,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=v(this._fragmentFiber);if(r=n?r[1]||r[0]||h(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=b(r),lm(e,n);return}if(r=b(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=b(a),lm(a,n)):b(a).scrollIntoView(e),r+=n?-1:1}};function um(e,t){return e=b(e),dm(e,t),!1}function dm(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function fm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Xp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<im.length;i++){var a=im[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(im[r++]=a)}im.length=r,n.observe(e)}),dm(e,t))}function pm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Xp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?om(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function mm(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`:mm(n),jt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function hm(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[kt])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=xm(e.nextSibling),e===null)break}return null}function gm(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=xm(e.nextSibling),e===null))return null;return e}function _m(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=xm(e.nextSibling),e===null))return null;return e}function vm(e){return e.data===`$?`||e.data===`$~`}function ym(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function bm(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 xm(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 Sm=null;function Cm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return xm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function wm(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 Tm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function Em(e){jp(function(){jp(function(t){return e(t)})})}function Dm(e,t,n){switch(t=xp(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 Om(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&fp(e,t,r,null,hp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===yn&&(e.onclick=null),jt(e)}function km(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);jt(e)}var Am=new Map,jm=new Set;function Mm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Nm=me.d;me.d={f:Pm,r:Fm,D:Rm,C:zm,L:Bm,m:Vm,X:Um,S:Hm,M:Wm};function Pm(){var e=Nm.f(),t=Jd();return e||t}function Fm(e){var t=Nt(e);t!==null&&t.tag===5&&t.type===`form`?ac(t):Nm.r(e)}var Im=typeof document>`u`?null:document;function Lm(e,t,n){var r=Im;if(r&&typeof t==`string`&&t){var i=rn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),jm.has(i)||(jm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),mp(t,`link`,e),It(t),r.head.appendChild(t)))}}function Rm(e){Nm.D(e),Lm(`dns-prefetch`,e,null)}function zm(e,t){Nm.C(e,t),Lm(`preconnect`,e,t)}function Bm(e,t,n){Nm.L(e,t,n);var r=Im;if(r&&e&&t){var i=`link[rel="preload"][as="`+rn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+rn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+rn(n.imageSizes)+`"]`)):i+=`[href="`+rn(e)+`"]`;var a=i;switch(t){case`style`:a=Km(e);break;case`script`:a=Xm(e)}if(!(Am.has(a)||(e=D({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Am.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(qm(a))||t===`script`&&r.querySelector(Zm(a))))){var o=r.createElement(`link`);mp(o,`link`,e),t===`style`&&(o[At]=!0,o.onload=o.onerror=function(){Lt(o)}),It(o),r.head.appendChild(o)}}}function Vm(e,t){Nm.m(e,t);var n=Im;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+rn(r)+`"][href="`+rn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Xm(e)}if(!Am.has(a)&&(e=D({rel:`modulepreload`,href:e},t),Am.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Zm(a)))return}r=n.createElement(`link`),mp(r,`link`,e),It(r),n.head.appendChild(r)}}}function Hm(e,t,n){Nm.S(e,t,n);var r=Im;if(r&&e){var i=Ft(r).hoistableStyles,a=Km(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(qm(a)))s.loading=5;else{e=D({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Am.get(a))&&eh(e,n);var c=o=r.createElement(`link`);It(c),mp(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,$m(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Um(e,t){Nm.X(e,t);var n=Im;if(n&&e){var r=Ft(n).hoistableScripts,i=Xm(e),a=r.get(i);a||(a=n.querySelector(Zm(i)),a||(e=D({src:e,async:!0},t),(t=Am.get(i))&&th(e,t),a=n.createElement(`script`),It(a),mp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Wm(e,t){Nm.M(e,t);var n=Im;if(n&&e){var r=Ft(n).hoistableScripts,i=Xm(e),a=r.get(i);a||(a=n.querySelector(Zm(i)),a||(e=D({src:e,async:!0,type:`module`},t),(t=Am.get(i))&&th(e,t),a=n.createElement(`script`),It(a),mp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Gm(e,t,n,r){var a=(a=Ce.current)?Mm(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`?(n=Km(n.href),t=Ft(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,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=Km(n.href);var o=Ft(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(qm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=Am.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Am.set(e,o)),Ym(a,e,o,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`?(n=Xm(n),t=Ft(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Km(e){return`href="`+rn(e)+`"`}function qm(e){return`link[rel="stylesheet"][`+e+`]`}function Jm(e){return D({},e,{"data-precedence":e.precedence,precedence:null})}function Ym(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[At]){r.loading=1;return}}else t=e.createElement(`link`),t[At]=!0,t.onload=t.onerror=Lt.bind(null,t),mp(t,`link`,n),It(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Xm(e){return`[src="`+rn(e)+`"]`}function Zm(e){return`script[async]`+e}function Qm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+rn(n.href)+`"]`);if(r)return t.instance=r,It(r),r;var a=D({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),It(r),mp(r,`style`,a),$m(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Km(n.href);var o=e.querySelector(qm(a));if(o)return t.state.loading|=4,t.instance=o,It(o),o;r=Jm(n),(a=Am.get(a))&&eh(r,a),o=(e.ownerDocument||e).createElement(`link`),It(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),mp(o,`link`,r),t.state.loading|=4,$m(o,n.precedence,e),t.instance=o;case`script`:return o=Xm(n.src),(a=e.querySelector(Zm(o)))?(t.instance=a,It(a),a):(r=n,(a=Am.get(o))&&(r=D({},n),th(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),It(a),mp(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,$m(r,n.precedence,e));return t.instance}function $m(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 eh(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function th(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var nh=null;function rh(e,t,n){if(nh===null){var r=new Map,i=nh=new Map;i.set(n,r)}else i=nh,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[kt]||a[St]||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 ih(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function ah(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 oh(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function sh(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function ch(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function lh(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=ch(t),e.suspenseyImages.push(t)),e=hh.bind(e),t.decode().then(e,e))}function uh(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=Km(r.href),a=t.querySelector(qm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=mh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,It(a);return}a=t.ownerDocument||t,r=Jm(r),(i=Am.get(i))&&eh(r,i),a=a.createElement(`link`),It(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),mp(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=mh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var dh=0;function fh(e,t){return e.stylesheets&&e.count===0&&_h(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&_h(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&dh===0&&(dh=62500*vp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&_h(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>dh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function ph(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)_h(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function mh(){this.count--,ph(this)}function hh(){this.imgCount--,ph(this)}var gh=null;function _h(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,gh=new Map,t.forEach(vh,e),gh=null,mh.call(e))}function vh(e,t){if(!(t.state.loading&4)){var n=gh.get(e);if(n)var r=n.get(null);else{n=new Map,gh.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=mh.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 yh={$$typeof:F,Provider:null,Consumer:null,_currentValue:he,_currentValue2:he,_threadCount:0};function bh(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=R(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=R(0),this.hiddenUpdates=R(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function xh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new bh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Ni(3,null,null,t),e.current=a,a.stateNode=e,t=Pa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},_o(a),e}function Sh(e){return e?(e=ji,e):ji}function Ch(e,t,n,r,i,a){i=Sh(i),r.context===null?r.context=i:r.pendingContext=i,r=yo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=bo(e,r,t),n!==null&&(Ud(n,e,t),xo(n,e,t))}function wh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Th(e,t){wh(e,t),(e=e.alternate)&&wh(e,t)}function Eh(e){if(e.tag===13||e.tag===31){var t=Oi(e,67108864);t!==null&&Ud(t,e,67108864),Th(e,67108864)}}function Dh(e){if(e.tag===13||e.tag===31){var t=Bd();t=_t(t);var n=Oi(e,t);n!==null&&Ud(n,e,t),Th(e,t)}}var Oh=!0;function kh(e,t,n,r){var i=L.T;L.T=null;var a=me.p;try{me.p=2,jh(e,t,n,r)}finally{me.p=a,L.T=i}}function Ah(e,t,n,r){var i=L.T;L.T=null;var a=me.p;try{me.p=8,jh(e,t,n,r)}finally{me.p=a,L.T=i}}function jh(e,t,n,r){if(Oh){var i=Mh(r);if(i===null)rp(e,t,r,Nh,n),Wh(e,r);else if(Kh(i,e,t,n,r))r.stopPropagation();else if(Wh(e,r),t&4&&-1<Uh.indexOf(e)){for(;i!==null;){var a=Nt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=ot(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-$e(o);s.entanglements[1]|=c,o&=~c}If(a),!(id&6)&&(Td=Ve()+500,Lf(0,!1))}}break;case 31:case 13:s=Oi(a,2),s!==null&&Ud(s,a,2),Jd(),Th(a,2)}if(a=Mh(r),a===null&&rp(e,t,r,Nh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else rp(e,t,r,null,n)}}function Mh(e){return e=xn(e),Ph(e)}var Nh=null;function Ph(e){if(Nh=null,e=Mt(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 Nh=e,null}function Fh(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`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`fullscreenerror`: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`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(He()){case Ue:return 2;case We:return 8;case Ge:case Ke:return 32;case qe:return 268435456;default:return 32}default:return 32}}var Ih=!1,Lh=null,Rh=null,zh=null,Bh=new Map,Vh=new Map,Hh=[],Uh=`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 Wh(e,t){switch(e){case`focusin`:case`focusout`:Lh=null;break;case`dragenter`:case`dragleave`:Rh=null;break;case`mouseover`:case`mouseout`:zh=null;break;case`pointerover`:case`pointerout`:Bh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Vh.delete(t.pointerId)}}function Gh(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=Nt(t),t!==null&&Eh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Kh(e,t,n,r,i){switch(t){case`focusin`:return Lh=Gh(Lh,e,t,n,r,i),!0;case`dragenter`:return Rh=Gh(Rh,e,t,n,r,i),!0;case`mouseover`:return zh=Gh(zh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Bh.set(a,Gh(Bh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Vh.set(a,Gh(Vh.get(a)||null,e,t,n,r,i)),!0}return!1}function qh(e){var t=Mt(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,bt(e.priority,function(){Dh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,bt(e.priority,function(){Dh(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 Jh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Mh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);bn=r,n.target.dispatchEvent(r),bn=null}else return t=Nt(n),t!==null&&Eh(t),e.blockedOn=n,!1;t.shift()}return!0}function Yh(e,t,n){Jh(e)&&n.delete(t)}function Xh(){Ih=!1,Lh!==null&&Jh(Lh)&&(Lh=null),Rh!==null&&Jh(Rh)&&(Rh=null),zh!==null&&Jh(zh)&&(zh=null),Bh.forEach(Yh),Vh.forEach(Yh)}function Zh(e,n){e.blockedOn===n&&(e.blockedOn=null,Ih||(Ih=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Xh)))}var Qh=null;function $h(e){Qh!==e&&(Qh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Qh===e&&(Qh=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(Ph(r||n)===null)continue;break}var a=Nt(n);a!==null&&(e.splice(t,3),t-=3,rc(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function eg(e){function t(t){return Zh(t,e)}Lh!==null&&Zh(Lh,e),Rh!==null&&Zh(Rh,e),zh!==null&&Zh(zh,e),Bh.forEach(t),Vh.forEach(t);for(var n=0;n<Hh.length;n++){var r=Hh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Hh.length&&(n=Hh[0],n.blockedOn===null);)qh(n),n.blockedOn===null&&Hh.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[Ct]||null;if(typeof a==`function`)o||$h(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Ct]||null)s=o.formAction;else if(Ph(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),$h(n)}}}function tg(){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 ng(e){this._internalRoot=e}rg.prototype.render=ng.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;Ch(n,Bd(),e,t,null,null)},rg.prototype.unmount=ng.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ch(e.current,2,null,e,null,null),Jd(),t[wt]=null}};function rg(e){this._internalRoot=e}rg.prototype.unstable_scheduleHydration=function(e){if(e){var t=yt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Hh.length&&t!==0&&t<Hh[n].priority;n++);Hh.splice(n,0,e),n===0&&qh(e)}};var ig=n.version;if(ig!==`19.3.1`)throw Error(i(527,ig,`19.3.1`));me.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 ag={bundleType:0,version:`19.3.1`,rendererPackageName:`react-dom`,currentDispatcherRef:L,reconcilerVersion:`19.3.1`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var og=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!og.isDisabled&&og.supportsFiber)try{Xe=og.inject(ag),Ze=og}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Ec,s=Dc,c=Oc;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=xh(e,1,!1,null,null,n,r,null,o,s,c,tg),e[wt]=t.current,tp(e),new ng(t)}})),v=o(((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=_()})),y=o((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})),b=o(((e,t)=>{t.exports=y()})),x=c(f(),1),S=b(),C=x.createContext(void 0),w=e=>{let t=x.useContext(C);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},T=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,S.jsx)(C.Provider,{value:e,children:t})),E={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},D=new class{#e=E;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 O(e){setTimeout(e,0)}var k=typeof window>`u`||`Deno`in globalThis;function A(){}function j(e,t){return typeof e==`function`?e(t):e}function M(e){return typeof e==`number`&&e>=0&&e!==1/0}function N(e,t){return Math.max(e+(t||0)-Date.now(),0)}function P(e,t){return typeof e==`function`?e(t):e}function F(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==I(o,t.options))return!1}else if(!ne(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 ee(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(te(t.options.mutationKey)!==te(a))return!1}else if(!ne(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function I(e,t){return(t?.queryKeyHashFn||te)(e)}function te(e){return JSON.stringify(e,(e,t)=>se(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function ne(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)){if(t.length>e.length)return!1;for(let n=0;n<t.length;n++)if(!ne(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!ne(e[r],t[r]))return!1;return!0}return!1}var re=Object.prototype.hasOwnProperty;function ie(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=oe(e)&&oe(t);if(!r&&!(se(e)&&se(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:re.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=ie(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function ae(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n of Object.keys(e))if(!re.call(t,n)||e[n]!==t[n])return!1;return!0}function oe(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function se(e){if(!ce(e))return!1;let t=Object.getPrototypeOf(e),n=t?.constructor;if(n===void 0)return!0;if(typeof n!=`function`)return!1;let r=n.prototype;return!(!ce(r)||!r.hasOwnProperty(`isPrototypeOf`)||t!==Object.prototype)}function ce(e){return Object.prototype.toString.call(e)===`[object Object]`}function le(e){return new Promise(t=>{D.setTimeout(t,e)})}function ue(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:ie(e,t)}function de(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(-n):r}function fe(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,n):r}var pe=Symbol();function L(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===pe?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function me(e,t){return typeof e==`function`?e(...t):!!e}var he=Symbol();function ge(e,t,n,r){let i=!1,a;return Object.defineProperties(e,{[he]:{value:r},signal:{enumerable:!0,get:()=>(a??=t(),i||(i=!0,a.aborted?n():a.addEventListener(`abort`,n,{once:!0})),a)}}),e}var _e=()=>k,ve=()=>_e(),ye=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(){}},be=new class extends ye{#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`}},xe=O;function Se(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=xe,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 Ce=Se(),we=new class extends ye{#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 Te(e){return Math.min(1e3*2**e,3e4)}function Ee(e){return(e??`online`)!==`online`||we.isOnline()}var De=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Oe(e){let t=!1,n=0,r,i=`pending`,a,o,s=new Promise((e,t)=>{a=e,o=t});s.catch(A);let c=()=>i!==`pending`,l=t=>{if(!c()){let n=new De(t);h(n),e.onCancel?.(n)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>be.isFocused()&&(e.networkMode===`always`||we.isOnline())&&e.canRun(),p=()=>Ee(e.networkMode)&&e.canRun(),m=e=>{c()||(r?.(),i=`resolved`,a(e))},h=e=>{c()||(r?.(),i=`rejected`,o(e))},g=t=>new Promise(n=>{r=e=>{(c()||t())&&n(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??(ve()?0:3),a=e.retryDelay??Te,o=typeof a==`function`?a(n,r):a,s=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);t||!s?h(r):(n++,e.onFail?.(n,r),le(o).then(()=>c()||f()?void 0:g(f)).then(()=>{t?h(r):_()}))})};return{promise:s,status:()=>i,cancel:l,continue:()=>(r?.(),s),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?_():g(p).then(_),s)}}function ke(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=t,u=e=>{ge(e,()=>t.signal,()=>n=!0,l[he])},d=L(t.options,t.fetchOptions),f=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 u(e),e})(),o=await d(a),{maxPages:s}=t.options,c=i?fe:de;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?je:Ae,n={pages:a,pageParams:o};s=await f(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]===void 0?r.initialPageParam:o[0]:Ae(r,s);if(c>0&&e==null)break;s=await f(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 Ae(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 je(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Me=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),M(this.gcTime)&&(this.#e=D.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ve()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(D.clearTimeout(this.#e),this.#e=void 0)}},Ne=class extends Me{#e;#t;#n;#r;#i;#a;#o;#s;#c;constructor(e){super(),this.#c=!1,this.#s=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=Ie(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.#s,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Ie(this.options);e.data!==void 0&&(this.setState(Fe(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=ue(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(A).catch(A):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=>P(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===pe||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.state.data!==void 0&&this.getObserversCount()>0&&this.observers.some(e=>P(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:!N(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.#c||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.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a&&this.#o)return this.#a.continueRetry(),this.#o}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.defineProperties(e,{[he]:{value:n.signal,enumerable:!0},signal:{enumerable:!0,get:()=>(this.#c=!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.#c=!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`?ke(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta});let o=this.#a=Oe({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof De&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}),s=(async()=>{try{let e=await o.promise;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 De){if(e.silent){if(this.#a!==o&&this.#o)return this.#o;throw e}if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.#a===o&&(this.#a=void 0,this.#o=void 0),this.scheduleGc()}})();return this.#o=s,o.start(),s}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Pe(t.data,this.options),fetchMeta:e.meta??null};case`success`:{let n={...t,...Fe(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 n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:`idle`,status:`error`,isInvalidated:!0}}case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Ce.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Pe(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ee(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Fe(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Ie(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 Le=class extends ye{#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),ze(this.#t,this.options)?this.#m():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Be(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Be(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 P(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&&!ae(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&Ve(this.#t,n,this.options,t)&&this.#m(),this.updateResult(),r&&(this.#t!==n||P(this.options.enabled,this.#t)!==P(t.enabled,this.#t)||P(this.options.staleTime,this.#t)!==P(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||P(this.options.enabled,this.#t)!==P(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 ae(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(t).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(A)),t}#h(e){return!ve()&&P(this.options.enabled,this.#t)!==!1&&M(e)}#g(){this.#b();let e=P(this.options.staleTime,this.#t);if(this.#r.isStale||!this.#h(e))return;let t=N(this.#r.dataUpdatedAt,e)+1;this.#u=D.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return P(this.options.refetchInterval,this.#t)??!1}#v(e){this.#x(),this.#f=e,this.#f!==0&&this.#h(this.#f)&&(this.#d=D.setInterval(()=>{(this.options.refetchIntervalInBackground||be.isFocused())&&this.#m()},this.#f))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#u!==void 0&&(D.clearTimeout(this.#u),this.#u=void 0)}#x(){this.#d!==void 0&&(D.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&&ze(e,t),o=i&&Ve(e,n,t,r);(a||o)&&(l={...l,...Pe(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=ue(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=ue(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=i?.error===f?i.errorUpdatedAt: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:He(e,t),refetch:this.refetch,isEnabled:P(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),ae(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||this.options.throwOnError&&this.#r.error!==e.error)return!0;for(let t of n??this.#p)if(this.#r[t]!==e[t])return!0;return!1})();Ce.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 Re(e,t){return P(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||P(t.retryOnMount,e)!==!1)}function ze(e,t){return Re(e,t)||e.state.data!==void 0&&Be(e,t,t.refetchOnMount)}function Be(e,t,n){if(P(t.enabled,e)!==!1&&P(t.staleTime,e)!==`static`){let r=P(n,e);return r===`always`||r!==!1&&He(e,t)}return!1}function Ve(e,t,n,r){return(e!==t||P(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&He(e,n)}function He(e,t){return P(t.enabled,e)!==!1&&e.isStaleByTime(P(t.staleTime,e))}var Ue=class extends Me{#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||We(),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=Oe({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})}this.state.isPaused&&r.canStart()&&t();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),Ce.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function We(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Ge=class extends ye{#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 Ue({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=Ke(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=Ke(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=Ke(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=Ke(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Ce.batch(()=>{let e=this.getAll();this.#e.clear(),this.#t.clear(),e.forEach(e=>{this.notify({type:`removed`,mutation:e})})})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>ee(t,e))}findAll(e={}){return this.getAll().filter(t=>ee(e,t))}notify(e){Ce.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Ce.batch(()=>Promise.all(e.map(e=>e.continue().catch(A))))}};function Ke(e){return e.options.scope?.id}var qe=class extends ye{#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),ae(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&te(t.mutationKey)!==te(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??We();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){Ce.batch(()=>{let t=this.#r;if(t&&this.hasListeners()){let n=this.#t.variables,r=this.#t.context,i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{t.onSuccess?.(e.data,n,r,i)}catch(e){Promise.reject(e)}try{t.onSettled?.(e.data,null,n,r,i)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{t.onError?.(e.error,n,r,i)}catch(e){Promise.reject(e)}try{t.onSettled?.(void 0,e.error,n,r,i)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}};function Je(e,t){let n=new Set(t);return e.filter(e=>!n.has(e))}var Ye=class extends ye{#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=[];constructor(e,t,n){super(),this.#e=e,this.#r=n,this.#n=[],this.#i=[],this.#t=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#i.forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#r=t,Ce.batch(()=>{let e=this.#i,t=this.#p(this.#n);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),r=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,a=n.some((t,n)=>t!==e[n]),o=i||a,s=o?!0:r.some((e,t)=>{let n=this.#t[t];return!n||!ae(e,n)});(o||s)&&(o&&(this.#l=t,this.#i=n),this.#t=r,this.hasListeners()&&(o&&(Je(e,n).forEach(e=>{e.destroy()}),Je(n,e).forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){let n=this.#p(e),r=n.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),i=n.map(e=>e.defaultedQueryOptions.queryHash);return[r,e=>this.#d(e??r,t,i),()=>this.#u(r,n)]}#u(e,t){let n=new Set;return t.map((r,i)=>{let a=e[i];return r.defaultedQueryOptions.notifyOnChangeProps?a:r.observer.trackResult(a,e=>{n.has(e)||(n.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#d(e,t,n){if(t){let r=this.#c,i=n!==void 0&&r!==void 0&&(r.length!==n.length||n.some((e,t)=>e!==r[t]));return(this.#t!==this.#s||i||t!==this.#o)&&(this.#o=t,this.#s=this.#t,n!==void 0&&(this.#c=n),this.#a=ie(this.#a,t(e))),this.#a}return e}#f(){return!this.#r?.combine||this.#i.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#p(e){let t=new Map;this.#i.forEach(e=>{let n=e.options.queryHash;if(!n)return;let r=t.get(n);r?r.push(e):t.set(n,[e])});let n=[];return e.forEach(e=>{let r=this.#e.defaultQueryOptions(e),i=t.get(r.queryHash)?.shift()??new Le(this.#e,r);n.push({defaultedQueryOptions:r,observer:i})}),n}#m(e,t){let n=this.#i.indexOf(e);n!==-1&&(this.#t=this.#t.slice(),this.#t[n]=t,this.#h())}#h(){if(this.hasListeners()){let e=this.#f(),t=this.#a,n=e?t:this.#d(this.#u(this.#t,this.#l),this.#r?.combine);(e||t!==n)&&Ce.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},Xe=class extends ye{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??I(r,t),a=this.get(i);return a||(a=new Ne({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){this.#e.get(e.queryHash)===e&&(e.destroy(),this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Ce.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=>F(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>F(e,t)):t}notify(e){Ce.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Ce.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Ce.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ze=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Xe,this.#t=e.mutationCache||new Ge,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=be.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=we.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(P(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=j(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Ce.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;Ce.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Ce.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=Ce.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(A).catch(A)}invalidateQueries(e,t={}){return Ce.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=Ce.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n),r=e.state.fetchStatus===`paused`;return(!n.throwOnError||r)&&(t=t.catch(A)),r?Promise.resolve():t}));return Promise.all(r).then(A)}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(P(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(P(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(A).catch(A)}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(A).catch(A)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return we.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(te(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{ne(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(te(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{ne(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||=I(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===pe&&(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()}},Qe=x.createContext(!1),$e=()=>x.useContext(Qe);Qe.Provider;function et(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var tt=x.createContext(et()),nt=()=>x.useContext(tt),rt=(e,t,n)=>{let r=n?.state.status===`error`&&typeof e.throwOnError==`function`?me(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||r)&&(t.isReset()||(e.retryOnMount=!1))},it=e=>{x.useEffect(()=>{e.clearReset()},[e])},at=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||me(n,[e.error,r])),ot=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))}},st=(e,t)=>e?.suspense&&t.isPending,ct=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function lt({queries:e,...t},n){let r=w(n),i=$e(),a=nt(),o=t.subscribed!==!1,s=x.useMemo(()=>e.map(e=>{let t=r.defaultQueryOptions(e);return t._optimisticResults=i?`isRestoring`:o?`optimistic`:void 0,t}),[e,r,i,o]);s.forEach(e=>{ot(e);let t=r.getQueryCache().get(e.queryHash);rt(e,a,t)}),it(a);let[c]=x.useState(()=>new Ye(r,s,t)),[l,u,d]=c.getOptimisticResult(s,t.combine);x.useEffect(()=>{c.setQueries(s,t)},[s,t,c]);let f=!i&&o;x.useSyncExternalStore(x.useCallback(e=>f?c.subscribe(Ce.batchCalls(e)):A,[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult());let p=l.some((e,t)=>st(s[t],e))?l.flatMap((e,t)=>{let n=s[t];return n&&st(n,e)?ct(n,new Le(r,n),a):[]}):[];if(p.length>0)throw Promise.all(p);let m=l.find((e,t)=>{let n=s[t];return n&&at({result:e,errorResetBoundary:a,throwOnError:n.throwOnError,query:r.getQueryCache().get(n.queryHash),suspense:n.suspense})});if(m)throw m.error;return u(d())}function ut(e,t,n){let r=$e(),i=nt(),a=w(n),o=a.defaultQueryOptions(e),s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,ot(o),rt(o,i,s),it(i);let[l]=x.useState(()=>new t(a,o)),u=l.getOptimisticResult(o);x.useEffect(()=>{l.setOptions(o)},[o,l]);let d=!r&&c;if(x.useSyncExternalStore(x.useCallback(e=>{let t=d?l.subscribe(Ce.batchCalls(e)):A;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),st(o,u))throw ct(o,l,i);if(at({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw u.error;return o.notifyOnChangeProps?u:l.trackResult(u)}function dt(e,t){return ut(e,Le,t)}function R(e,t){let n=w(t),[r]=x.useState(()=>new qe(n,e));x.useEffect(()=>{r.setOptions(e)},[r,e]);let i=x.useSyncExternalStore(x.useCallback(e=>r.subscribe(Ce.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=x.useCallback((...e)=>{r.mutate(e[0],e[1]).catch(A)},[r]);if(i.error&&me(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var ft=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,pt=/^[\\/]{2}/;function mt(e,t){return t+e.replace(/\\/g,`/`)}var ht=`popstate`;function gt(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function _t(e={}){let{initialEntries:t=[`/`],initialIndex:n,v5Compat:r=!1}=e,i;i=t.map((e,t)=>u(e,typeof e==`string`?null:e.state,t===0?`default`:void 0,typeof e==`string`?void 0:e.mask));let a=c(n??i.length-1),o=`POP`,s=null;function c(e){return Math.min(Math.max(e,0),i.length-1)}function l(){return i[a]}function u(e,t=null,n,r){let a=Ct(i?l().pathname:`/`,e,t,n,r);return bt(a.pathname.charAt(0)===`/`,`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),a}function d(e){return typeof e==`string`?e:wt(e)}return{get index(){return a},get action(){return o},get location(){return l()},createHref:d,createURL(e){return new URL(d(e),`http://localhost`)},encodeLocation(e){let t=typeof e==`string`?Tt(e):e;return{pathname:t.pathname||``,search:t.search||``,hash:t.hash||``}},push(e,t){o=`PUSH`;let n=gt(e)?e:u(e,t);a+=1,i.splice(a,i.length,n),r&&s&&s({action:o,location:n,delta:1})},replace(e,t){o=`REPLACE`;let n=gt(e)?e:u(e,t);i[a]=n,r&&s&&s({action:o,location:n,delta:0})},go(e){o=`POP`;let t=c(a+e),n=i[t];a=t,s&&s({action:o,location:n,delta:e})},listen(e){return s=e,()=>{s=null}}}}function vt(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return Ct(``,{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:wt(t)}return Et(t,n,null,e)}function yt(e,t){if(e===!1||e==null)throw Error(t)}function bt(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function xt(){return Math.random().toString(36).substring(2,10)}function St(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 Ct(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?Tt(t):t,state:n,key:t&&t.key||r||xt(),mask:i}}function wt({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 Tt(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 Et(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=gt(e)?e:Ct(h.location,e,t);n&&n(r,e),l=u()+1;let d=St(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=gt(e)?e:Ct(h.location,e,t);n&&n(r,e),l=u();let i=St(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 Dt(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(ht,d),c=e,()=>{i.removeEventListener(ht,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 Dt(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),yt(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:wt(t);return i=i.replace(/ $/,`%20`),!n&&pt.test(i)&&(i=r+i),new URL(i,r)}var Ot=class{#e=new Map;constructor(e){if(e)for(let[t,n]of e)this.set(t,n)}get(e){if(this.#e.has(e))return this.#e.get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){this.#e.set(e,t)}},kt=class extends Error{},At=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`,`unstable_validateParams`]);function jt(e){return At.has(e)}var Mt=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`,`unstable_validateParams`]);function Nt(e){return Mt.has(e)}function Pt(e){return e.index===!0}function Ft(e){let t={};return e.Component&&Object.assign(t,{element:x.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:x.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:x.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function It(e,t=Ft,n=[],r={},i=!1){return e.map((e,a)=>{let o=[...n,String(a)],s=typeof e.id==`string`?e.id:o.join(`-`);if(yt(e.index!==!0||!e.children,`Cannot specify children on an index route`),yt(i||!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),Pt(e)){let n={...e,id:s};return r[s]=Lt(n,t(n)),n}{let n={...e,id:s,children:void 0};return r[s]=Lt(n,t(n)),e.children&&(n.children=It(e.children,t,o,r,i)),n}})}function Lt(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function Rt(e,t,n=`/`){return zt(e,t,n,!1)}function zt(e,t,n,r,i){let a=cn((typeof t==`string`?Tt(t):t).pathname||`/`,n);if(a==null)return null;let o=i??Vt(e),s=null,c=sn(a);for(let e=0;s==null&&e<o.length;++e)s=nn(o[e],c,r);return s}function Bt(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,loaderData:t[n.id],handle:n.handle}}function Vt(e){let t=Ht(e);return Wt(t),t}function Ht(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;yt(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=vn([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(yt(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),Ht(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:en(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=on(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 Ut(e.path))a(e,t,!0,n)}),t}function Ut(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=Ut(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 Wt(e){e.sort((e,t)=>e.score===t.score?tn(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var Gt=/^:[\w-]+$/,Kt=/^:[\w-]+/,qt=3.5,Jt=3,Yt=2,Xt=1,Zt=10,Qt=-2,$t=e=>e===`*`;function en(e,t){let n=e.split(`/`),r=n.length;return n.some($t)&&(r+=Qt),t&&(r+=Yt),n.filter(e=>!$t(e)).reduce((e,t)=>e+(Gt.test(t)?Jt:Kt.test(t)?qt:t===``?Xt:Zt),r)}function tn(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 nn(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?an(u,l,s.matcher,s.compiledParams):rn(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=rn({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:vn([a,d.pathname]),pathnameBase:bn(vn([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=vn([a,d.pathnameBase]))}return o}function rn(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=on(e.path,e.caseSensitive,e.end);return an(e,t,n,r)}function an(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=yn(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=yn(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 on(e,t=!1,n=!0){bt(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(/\/((?:[^/?()[\]*^\\]|\\.)+)\?(?=\/|$|\()/g,`(?:/$1)?`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function sn(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return bt(!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 cn(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 ln({basename:e,pathname:t}){return t===`/`?e:vn([e,t])}var un=e=>ft.test(e);function dn(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?Tt(e):e,a;return n?(n=_n(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?fn(n.substring(1),`/`):fn(n,t)):a=t,{pathname:a,search:xn(r),hash:Sn(i)}}function fn(e,t){let n=yn(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function pn(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 mn(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function hn(e){let t=mn(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function gn(e,t,n,r=!1){let i;typeof e==`string`?i=Tt(e):(i={...e},yt(!i.pathname||!i.pathname.includes(`?`),pn(`?`,`pathname`,`search`,i)),yt(!i.pathname||!i.pathname.includes(`#`),pn(`#`,`pathname`,`hash`,i)),yt(!i.search||!i.search.includes(`#`),pn(`#`,`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=dn(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var _n=e=>e.replace(/[\\/]{2,}/g,`/`),vn=e=>_n(e.join(`/`));function yn(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 bn=e=>yn(e).replace(/^\/*/,`/`),xn=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Sn=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Cn=[`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],wn=class{status;statusText;data;error;internal;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 Tn(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function En(e){return vn(e.map(e=>e.route.path).filter(Boolean))||`/`}function Dn(e,t){let n=new URL(typeof e==`string`||e instanceof URL?e:e.url),r=typeof t==`string`?Tt(t):t;if(n.pathname=r.pathname||`/`,r.search){let e=new URLSearchParams(r.search),t=e.getAll(`index`);e.delete(`index`);for(let n of t.filter(Boolean))e.append(`index`,n);let i=e.toString();n.search=i?`?${i}`:``}else n.search=``;return n.hash=r.hash||``,n}var On=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function kn(e,t){let n=e;if(typeof n!=`string`||!ft.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(On)try{let e=new URL(window.location.href),r=pt.test(n)?new URL(mt(n,e.protocol)):new URL(n),a=cn(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{bt(!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}}var An=Symbol(`Uninstrumented`),jn=new WeakMap;function Mn(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){e.lazy!=null&&n.lazy.push(e.lazy),e[`lazy.loader`]!=null&&n[`lazy.loader`].push(e[`lazy.loader`]),e[`lazy.action`]!=null&&n[`lazy.action`].push(e[`lazy.action`]),e[`lazy.middleware`]!=null&&n[`lazy.middleware`].push(e[`lazy.middleware`]),e.middleware!=null&&n.middleware.push(e.middleware),e.loader!=null&&n.loader.push(e.loader),e.action!=null&&n.action.push(e.action)}}));let r={};if(typeof t.lazy==`function`&&n.lazy.length>0){let e=t.lazy;r.lazy=async(...t)=>Rn(await zn(n.lazy,void 0,()=>e(...t),Bn))}if(typeof t.lazy==`object`){let e=t.lazy;if(typeof e.middleware==`function`&&n[`lazy.middleware`].length>0){let t=e.middleware;r.lazy=Object.assign(r.lazy||{},{middleware:async(...e)=>Rn(await zn(n[`lazy.middleware`],void 0,()=>t(...e),Bn))})}if(typeof e.loader==`function`&&n[`lazy.loader`].length>0){let t=e.loader;r.lazy=Object.assign(r.lazy||{},{loader:async(...e)=>Rn(await zn(n[`lazy.loader`],void 0,()=>t(...e),Bn))})}if(typeof e.action==`function`&&n[`lazy.action`].length>0){let t=e.action;r.lazy=Object.assign(r.lazy||{},{action:async(...e)=>Rn(await zn(n[`lazy.action`],void 0,()=>t(...e),Bn))})}}if(typeof t.loader==`function`&&n.loader.length>0){let e=Pn(t.loader),i=async(...t)=>Rn(await zn(n.loader,Vn(t[0]),()=>e(...t),Bn));e.hydrate===!0&&(i.hydrate=!0),Fn(i,e),r.loader=i}if(typeof t.action==`function`&&n.action.length>0){let e=Pn(t.action),i=async(...t)=>Rn(await zn(n.action,Vn(t[0]),()=>e(...t),Bn));Fn(i,e),r.action=i}return t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=Pn(e),r=async(...e)=>Rn(await zn(n.middleware,Vn(e[0]),()=>t(...e),Bn));return Fn(r,t),r})),r}function Nn(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){e.navigate!=null&&n.navigate.push(e.navigate),e.fetch!=null&&n.fetch.push(e.fetch)}})),n.navigate.length>0){let t=Pn(e.navigate),r=async(...r)=>{let[i,a]=r,o,s={to:typeof i==`number`||typeof i==`string`?i:i?wt(i):`.`,...Hn(e,a??{})};return Rn(await zn(n.navigate,s,async()=>{if(typeof i==`number`)return await t(...r);let n=In(e,e=>{o=e});try{return await t(...r)}finally{n()}},e=>({...Bn(e),meta:o})))};Fn(r,t),e.navigate=r}if(n.fetch.length>0){let t=Pn(e.fetch),r=async(...r)=>{let[i,a,o,s]=r,c;return Rn(await zn(n.fetch,{href:o??`.`,fetcherKey:i,...Hn(e,s??{})},async()=>{let n=In(e,e=>{c=e});try{return await t(...r)}finally{n()}},e=>({...Bn(e),meta:c})))};Fn(r,t),e.fetch=r}return e}function Pn(e){return e[An]??e}function Fn(e,t){e[An]=t}function In(e,t){return jn.set(e,t),()=>{jn.get(e)===t&&jn.delete(e)}}function Ln(e){let t=jn.get(e);return jn.delete(e),t}function Rn(e){if(e.type===`error`)throw e.value;return e.value}async function zn(e,t,n,r,i={result:null,innerResult:null},a=e.length-1){let o=e[a];if(o){let s,c=async()=>(s?console.error(`You cannot call instrumented handlers more than once`):s=zn(e,t,n,r,i,a-1),await s,yt(i.innerResult,`Expected an inner result`),i.innerResult);try{await o(c,t)}catch(e){console.error(`An instrumentation function threw an error:`,e)}s||await c(),await s}else{try{i.result={type:`success`,value:await n()}}catch(e){i.result={type:`error`,value:e}}i.innerResult=r(i.result,t)}return i.result||(i.result={type:`error`,value:Error(`No result assigned in instrumentation chain.`)},i.innerResult=r(i.result,t)),i.result}function Bn(e){return e.type===`error`&&e.value instanceof Error?{status:`error`,error:e.value}:{status:`success`,error:void 0}}function Vn(e){let{request:t,context:n,params:r}=e;return{...e,request:Un(t),params:{...r},context:Wn(n)}}function Hn(e,t){return{currentUrl:wt(e.state.location),...`formMethod`in t?{formMethod:t.formMethod}:{},...`formEncType`in t?{formEncType:t.formEncType}:{},...`formData`in t?{formData:t.formData}:{},...`body`in t?{body:t.body}:{}}}function Un(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function Wn(e){return{get:t=>e.get(t)}}var Gn=class{#e=[];#t=[];#n;#r=0;constructor(e){this.#n=e}update(e){this.#e=e,this.#t=Vt(e),this.#r=this.#t.reduce((e,t)=>e+t.routesMeta.length,0)}get matchCost(){return this.#r}match(e,t=!1){return zt(this.#e,e,this.#n,t,this.#t)}},Kn=new URL(`http://localhost`);function qn(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),Kn)}catch{return Kn}}function Jn(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function Yn(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 Xn(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&&!Jn(i,n),s=!Jn(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!Yn(e,i)||!Jn(i,a)))throw Error(`External navigation is not allowed`)}var Zn=[`POST`,`PUT`,`PATCH`,`DELETE`],Qn=new Set(Zn),$n=[`GET`,...Zn],er=new Set($n),tr=new Set([301,302,303,307,308]),nr=new Set([307,308]),rr={state:`idle`,location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ir={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ar={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},or=`remix-router-transitions`,sr=Symbol(`ResetLoaderData`);function cr(e,t){return e.unstable_routePatternMatching?(yt(void 0,`You must call unstable_preloadRoutePattern() from "react-router/route-pattern" before enabling future.unstable_routePatternMatching.`),new(void 0)(t)):new Gn(t)}var lr=class{#e;#t;#n;constructor(e,t){this.#e=e,this.#n=t,this.#n.update(e)}get stableRoutes(){return this.#e}get activeRoutes(){return this.#t??this.#e}get hasHMRRoutes(){return this.#t!=null}setRoutes(e){this.#e=e,this.#t||this.#n.update(e)}setHmrRoutes(e){this.#t=e,this.#n.update(e)}commitHmrRoutes(){this.#t&&(this.#e=this.#t,this.#t=void 0,this.#n.update(this.#e))}},ur=new WeakMap;function dr(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0;yt(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let r=e.hydrationRouteProperties||[],i=e.mapRouteProperties,a=i||(()=>({}));if(e.instrumentations){let t=e.instrumentations;a=e=>({...i?.(e),...Mn(t.map(e=>e.route).filter(Boolean),e)})}let o={...e.future},s=e.basename||`/`;s.startsWith(`/`)||(s=`/${s}`);let c=cr(o,s),l={},u=new lr(It(e.routes,a,void 0,l),c),d=e.dataStrategy||Or,f=null,p=new Set,m=null,h=null,g=null,_=e.hydrationData!=null,v=c.match(e.history.location),y=!1,b=null,x,S;if(v==null&&!e.patchRoutesOnNavigation){let t=Qr(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Zr(u.activeRoutes);x=!0,S=!x,v=n,b={[r.id]:t}}else if(v&&!e.hydrationData&&Xe(v,e.history.location.pathname).active&&(v=null),!v){x=!1,S=!x,v=[];let t=Xe(null,e.history.location.pathname);t.active&&t.matches&&(y=!0,v=t.matches)}else if(v.some(e=>e.route.lazy))x=!1,S=!x;else if(!v.some(e=>gr(e.route)))x=!0,S=!x;else{let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=v;if(n){let e=v.findIndex(e=>n[e.route.id]!==void 0);r=r.slice(0,e+1)}S=!1,x=!0,r.forEach(e=>{let r=_r(e.route,t,n);S||=r.renderFallback,x&&=!r.shouldLoad})}let C,w={historyAction:e.history.action,location:e.history.location,matches:v,initialized:x,renderFallback:S,navigation:rr,restoreScrollPosition:e.hydrationData==null&&null,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},T=`POP`,E=0,D,O=null,k=!1,A,j=!1,M=new Map,N=null,P=!1,F=!1,ee=new Set,I=new Map,te=0,ne=-1,re=new Map,ie=new Set,ae=new Map,oe=new Map,se=new Set,ce=new Map,le,ue=null;function de(){if(f=e.history.listen(({action:t,location:n,delta:r})=>{if(le){le(),le=void 0;return}bt(ce.size===0||r!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=We({currentLocation:w.location,nextLocation:n,historyAction:t});if(i&&r!=null){let t=new Promise(e=>{le=e});e.history.go(r*-1),Ue(i,{state:`blocked`,location:n,proceed(){Ue(i,{state:`proceeding`,proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(w.blockers);e.set(i,ar),L({blockers:e})}}),O?.resolve(),O=null}else return o.unstable_customRouteDiscovery&&(E+=r||0),ve(t,n)}),n){Ci(t,M);let e=()=>wi(t,M);t.addEventListener(`pagehide`,e),N=()=>t.removeEventListener(`pagehide`,e)}return w.initialized||ve(`POP`,w.location,{initialHydration:!0}),C}function fe(){f&&f(),N&&N(),p.clear(),A&&A.abort(),w.fetchers.forEach((e,t)=>Fe(w.fetchers,t)),w.blockers.forEach((e,t)=>He(t))}function pe(e){return p.add(e),()=>p.delete(e)}function L(e,t={}){let n=e.errors??null,r=n?ur.get(n):void 0;r!==void 0&&(n=r),(e.errors!==void 0||e.initialized)&&(w.errors&&ur.delete(w.errors),e.errors&&ur.set(e.errors,n)),e.matches&&=e.matches.map(e=>{let t=l[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}),w={...w,...e};let i=[],a=[];w.fetchers.forEach((e,t)=>{e.state===`idle`&&(se.has(t)?i.push(t):a.push(t))}),se.forEach(e=>{!w.fetchers.has(e)&&!I.has(e)&&i.push(e)}),[...p].forEach(e=>e(w,{deletedFetchers:i,newErrors:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),i.forEach(e=>Fe(w.fetchers,e)),a.forEach(e=>w.fetchers.delete(e))}function me(t,n,{flushSync:r}={}){let i=w.actionData!=null&&w.navigation.formMethod!=null&&pi(w.navigation.formMethod)&&w.navigation.state===`loading`&&t.state?._isRedirect!==!0,a;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?w.actionData:null;let o=n.loaderData?Jr(w.loaderData,n.loaderData,n.matches||[],n.errors):w.loaderData,s=w.blockers;s.size>0&&!P&&(s=new Map(s),s.forEach((e,t)=>s.set(t,ar)));let c=!P&&Ye(t,n.matches||w.matches),l=k===!0||w.navigation.formMethod!=null&&pi(w.navigation.formMethod)&&t.state?._isRedirect!==!0;u.commitHmrRoutes(),P||T===`POP`||(T===`PUSH`?e.history.push(t,t.state):T===`REPLACE`&&e.history.replace(t,t.state));let d;if(T===`POP`&&!P&&t!==w.location){let e=M.get(w.location.pathname);e&&e.has(t.pathname)?d={currentLocation:w.location,nextLocation:t}:M.has(t.pathname)&&(d={currentLocation:t,nextLocation:w.location})}else if(j){let e=M.get(w.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),M.set(w.location.pathname,e)),d={currentLocation:w.location,nextLocation:t}}L({...n,actionData:a,loaderData:o,historyAction:T,location:t,initialized:!0,renderFallback:!1,navigation:rr,revalidation:`idle`,restoreScrollPosition:c,preventScrollReset:l,blockers:s},{viewTransitionOpts:d,flushSync:r===!0}),he(),O?.resolve(),O=null,ue?.resolve(),ue=null}function he(){E=0,T=`POP`,k=!1,j=!1,P=!1,F=re.size>0}async function ge(t,n){if(D&&await D,O?.resolve(),O=null,typeof t==`number`){O||=Ti();let n=O.promise;return e.history.go(t),n}let r=Ln(C),{path:i,submission:a,error:o}=mr(!1,pr(w.location,w.matches,s,t,n?.fromRouteId,n?.relative),n),c;if(n?.mask){let t=typeof n.mask==`string`?Tt(n.mask):{...w.location.mask,...n.mask};if(c={pathname:t.pathname??``,search:t.search??``,hash:t.hash??``},pt.test(c.pathname))throw Error(`External navigation is not allowed`);c.pathname.startsWith(`\\`)&&(c.pathname=c.pathname.replace(/^\\+/,`/`)),Xn(typeof n.mask==`string`?n.mask:wt(n.mask),wt(c),e.history.createURL(`/`),`reject`)}let l=w.location,u=Ct(l,i,n&&n.state,void 0,c);u={...u,...e.history.encodeLocation(u)},Xn(t==null?e.history.createHref(w.location):typeof t==`string`?t:wt(t),e.history.createHref(u.mask||u),e.history.createURL(`/`),`reject`);let d=n&&n.replace!=null?n.replace:void 0,f=`PUSH`,p=w.location.pathname+w.location.search;d===!0?f=`REPLACE`:d===!1||a!=null&&pi(a.formMethod)&&(a.formAction===p||u.pathname+u.search===p)&&(f=`REPLACE`);let m=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,h=(n&&n.flushSync)===!0,g=We({currentLocation:l,nextLocation:u,historyAction:f});g?Ue(g,{state:`blocked`,location:u,proceed(){Ue(g,{state:`proceeding`,proceed:void 0,reset:void 0,location:u}),ge(t,n)},reset(){let e=new Map(w.blockers);e.set(g,ar),L({blockers:e})}}):await ve(f,u,{submission:a,pendingError:o,preventScrollReset:m,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:h,callSiteDefaultShouldRevalidate:n&&n.defaultShouldRevalidate,instrumentationNavigateMetaReceiver:r})}function _e(){if(D)return D.then(_e);ue||=Ti(),Ae(),L({revalidation:`loading`});let e=ue.promise;return w.navigation.state===`submitting`?e:w.navigation.state===`idle`?(ve(w.historyAction,w.location,{startUninterruptedRevalidation:!0,dataStrategyInitiator:`revalidation`}),e):(ve(T||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,dataStrategyInitiator:`revalidation`,enableViewTransition:j===!0}),e)}async function ve(t,n,r){D&&await D,A&&A.abort(),A=null,T=t,P=(r&&r.startUninterruptedRevalidation)===!0,Je(w.location,w.matches),k=(r&&r.preventScrollReset)===!0,j=(r&&r.enableViewTransition)===!0;let i=r?.initialHydration&&w.matches&&w.matches.length>0&&!y?w.matches:c.match(n),a=(r&&r.flushSync)===!0;if(i&&w.initialized&&!F&&ti(w.location,n)&&!(r&&r.submission&&pi(r.submission.formMethod))){me(n,{matches:i},{flushSync:a});return}let o=Xe(i,n.pathname);if(o.active&&o.matches&&(i=o.matches),r?.instrumentationNavigateMetaReceiver){let t=gi(e.history,n,i);r.instrumentationNavigateMetaReceiver(t)}if(!i){let{error:e,notFoundMatches:t,route:r}=Ge(n.pathname);me(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:a});return}let s=r&&r.overrideNavigation?{...r.overrideNavigation,matches:i,historyAction:t}:void 0;A=new AbortController;let l=Ur(e.history,n,A.signal,r&&r.submission),u=r?.initialHydration?`initialization`:r?.dataStrategyInitiator??`navigation`,d=e.getContext?await e.getContext():new Ot,f;if(r&&r.pendingError)f=[Xr(i).route.id,{type:`error`,error:r.pendingError}];else if(r&&r.submission&&pi(r.submission.formMethod)){let c=await be(l,u,n,r.submission,i,t,d,o.active,r&&r.initialHydration===!0,{replace:r.replace,flushSync:a});if(c.shortCircuited)return;if(c.pendingActionResult){let[e,t]=c.pendingActionResult;if(oi(t)&&Tn(t.error)&&t.error.status===404){A=null,me(n,{matches:c.matches,loaderData:{},errors:{[e]:t.error}});return}}i=c.matches||i,f=c.pendingActionResult,s=vi(n,i,t,r.submission),a=!1,o.active=!1,l=Ur(e.history,l.url,l.signal)}let{shortCircuited:p,matches:m,loaderData:h,errors:g,workingFetchers:_}=await xe(l,u,n,i,t,d,o.active,s,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,a,f,r&&r.callSiteDefaultShouldRevalidate);p||(A=null,me(n,{matches:m||i,...Yr(f),loaderData:h,errors:g,..._?{fetchers:_}:{}}))}function ye(){let t=Ti();D=t.promise;let n=E,r=O;O=null,A?.abort(),A=null,he(),ue?.resolve(),ue=null;let i=new Map(w.blockers);i.forEach((e,t)=>{e.state===`proceeding`&&i.set(t,ar)});let a=new Map(w.fetchers),o=ze(a);a.forEach((e,t)=>{e.state===`loading`&&!I.has(t)&&(a.set(t,Si(e.data)),o=!0)}),ee.clear(),L({navigation:rr,revalidation:`idle`,blockers:i,...o?{fetchers:a}:{}});function s(){D=void 0,r?.resolve(),t.resolve()}return n?(le=s,e.history.go(-n)):s(),t.promise}async function be(t,n,i,c,d,f,p,m,h,g={}){if(o.unstable_customRouteDiscovery||Ae(),L({navigation:yi(i,d,f,c)},{flushSync:g.flushSync===!0}),m){let e=await Ze(d,i.pathname,t.signal);if(o.unstable_customRouteDiscovery&&t.signal.aborted||e.type===`aborted`)return{shortCircuited:!0};if(e.type===`cancelled`)return await ye(),{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=Zr(u.activeRoutes);return{matches:t,pendingActionResult:[n.id,{type:`error`,error:e.error}]}}let t=Xr(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:`error`,error:e.error}]}}if(e.matches)d=e.matches;else{let{notFoundMatches:e,error:t,route:n}=Ge(i.pathname);return{matches:e,pendingActionResult:[n.id,{type:`error`,error:t}]}}}o.unstable_customRouteDiscovery&&Ae();let _,v=hi(d,i);if(!v.route.action&&!v.route.lazy)_={type:`error`,error:Qr(405,{method:t.method,pathname:i.pathname,routeId:v.route.id})};else{let e=await Oe(t,i,Pr(a,l,t,i,d,v,h?[]:r,p),p,null,n,f);if(_=e[v.route.id],!_){for(let t of d)if(e[t.route.id]){_=e[t.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}if(si(_)){let r;return r=g&&g.replace!=null?g.replace:Hr(_.response.headers.get(`Location`),new URL(t.url),s,e.history)===w.location.pathname+w.location.search,await De(t,_,!0,n,{submission:c,replace:r}),{shortCircuited:!0}}if(oi(_)){let e=Xr(d,v.route.id);return(g&&g.replace)!==!0&&(T=`PUSH`),{matches:d,pendingActionResult:[e.route.id,_,v.route.id]}}return{matches:d,pendingActionResult:[v.route.id,_]}}async function xe(t,n,i,s,d,f,p,m,h,g,_,v,y,b,x){let S=m||vi(i,s,d,h),C=h||g||_i(S),T=!P&&!v;if(p){if(T){let e=Se(b);L({navigation:S,...e===void 0?{}:{actionData:e}},{flushSync:y})}let e=await Ze(s,i.pathname,t.signal);if(o.unstable_customRouteDiscovery&&t.signal.aborted||e.type===`aborted`)return{shortCircuited:!0};if(e.type===`cancelled`)return await ye(),{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=Zr(u.activeRoutes);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=Xr(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)s=e.matches,v&&!t.signal.aborted&&L({matches:s});else{let{error:e,notFoundMatches:t,route:n}=Ge(i.pathname);return{matches:t,loaderData:{},errors:{[n.id]:e}}}}let{dsMatches:E,revalidatingFetchers:D}=hr(t,f,a,l,e.history,w,s,C,i,v?[]:r,v===!0,F,ee,se,ae,ie,c,b,x);if(ne=++te,!e.dataStrategy&&!E.some(e=>e.shouldLoad)&&!E.some(e=>e.route.middleware&&e.route.middleware.length>0)&&D.length===0){let e=new Map(w.fetchers),t=ze(e);return me(i,{matches:s,loaderData:{},errors:b&&oi(b[1])?{[b[0]]:b[1].error}:null,...Yr(b),...t?{fetchers:e}:{}},{flushSync:y}),{shortCircuited:!0}}if(T){let e={};if(!p){e.navigation=S;let t=Se(b);t!==void 0&&(e.actionData=t)}D.length>0&&(e.fetchers=Ce(D)),L(e,{flushSync:y})}D.forEach(e=>{Le(e.key),e.controller&&I.set(e.key,e.controller)});let O=()=>D.forEach(e=>{I.get(e.key)===e.controller&&Le(e.key)});A&&A.signal.addEventListener(`abort`,O);let{loaderResults:k,fetcherResults:j}=await ke(E,D,t,i,f,n,d);if(t.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener(`abort`,O),D.forEach(e=>{I.get(e.key)===e.controller&&I.delete(e.key)});let M=$r(k);if(M)return await De(t,M.result,!0,n,{replace:_}),{shortCircuited:!0};if(M=$r(j),M)return ie.add(M.key),await De(t,M.result,!0,n,{replace:_}),{shortCircuited:!0};let N=new Map(w.fetchers),{loaderData:re,errors:oe}=qr(w,s,k,b,D,j,N);if(v&&w.errors){let e=oe??null;oe={...w.errors,...oe},ur.set(oe,e)}let ce=ze(N),le=Be(ne,N),ue=ce||le||D.length>0;return{matches:s,loaderData:re,errors:oe,...ue?{workingFetchers:N}:{}}}function Se(e){if(e&&!oi(e[1]))return{[e[0]]:e[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function Ce(e){let t=new Map(w.fetchers);return e.forEach(e=>{let n=t.get(e.key),r=bi(void 0,n?n.data:void 0);t.set(e.key,r)}),t}async function we(t,n,r,i){D&&await D,Le(t);let a=(i&&i.flushSync)===!0,o=Ln(C),l=pr(w.location,w.matches,s,r,n,i?.relative),u=c.match(l),d=Xe(u,l);if(d.active&&d.matches&&(u=d.matches),o&&o(gi(e.history,l,u)),!u){Me(t,n,Qr(404,{pathname:l}),{flushSync:a});return}let{path:f,submission:p,error:m}=mr(!0,l,i);if(m){Me(t,n,m,{flushSync:a});return}let h=e.getContext?await e.getContext():new Ot,g=(i&&i.preventScrollReset)===!0;if(p&&pi(p.formMethod)){await Te(t,n,f,u,h,d.active,a,g,p,i&&i.defaultShouldRevalidate);return}let _={routeId:n,path:f,isDiscovering:d.active};ae.set(t,_),await Ee(t,_,u,h,a,g,p)}async function Te(t,n,i,s,u,d,f,p,m,h){o.unstable_customRouteDiscovery||Ae(),ae.delete(t);let g=w.fetchers.get(t);je(t,xi(m,g),{flushSync:f});let _=new AbortController;o.unstable_customRouteDiscovery&&I.set(t,_);let v=Ur(e.history,i,_.signal,m);if(d){let e=await Ze(s,new URL(v.url).pathname,v.signal,t);if(o.unstable_customRouteDiscovery&&v.signal.aborted||e.type===`aborted`)return;if(e.type===`cancelled`){I.delete(t),ae.delete(t),je(t,Si(g?.data),{flushSync:f});return}if(e.type===`error`){Me(t,n,e.error,{flushSync:f});return}if(e.matches)s=e.matches;else{Me(t,n,Qr(404,{pathname:i}),{flushSync:f});return}}let y=hi(s,i);if(!y.route.action&&!y.route.lazy){Me(t,n,Qr(405,{method:m.formMethod,pathname:i,routeId:n}),{flushSync:f});return}o.unstable_customRouteDiscovery&&Ae(),I.set(t,_);let b=te,x=Pr(a,l,v,i,s,y,r,u),S=await Oe(v,i,x,u,t,`fetcher`),C=S[y.route.id];if(!C){for(let e of x)if(S[e.route.id]){C=S[e.route.id];break}}if(v.signal.aborted){I.get(t)===_&&I.delete(t);return}if(se.has(t)){if(oi(C)){je(t,Si(void 0));return}si(C)&&(F=!0,C={type:`data`,data:void 0})}else{if(si(C)){if(ne>b)F=!0,C={type:`data`,data:void 0};else return I.delete(t),ie.add(t),je(t,bi(m)),De(v,C,!1,`fetcher`,{fetcherSubmission:m,preventScrollReset:p})}if(oi(C)){Me(t,n,C.error);return}}F=!0;let E=w.navigation.location||w.location,D=Ur(e.history,E,_.signal),O=w.navigation.state===`idle`?w.matches:c.match(w.navigation.location);yt(O,`Didn't find any matches after fetcher action`);let k=++te;re.set(t,k);let{dsMatches:j,revalidatingFetchers:M}=hr(D,u,a,l,e.history,w,O,m,E,r,!1,F,ee,se,ae,ie,c,[y.route.id,C],h),N=bi(m,C.data),P=new Map(w.fetchers);P.set(t,N),M.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=P.get(t),r=bi(void 0,n?n.data:void 0);P.set(t,r),Le(t),e.controller&&I.set(t,e.controller)}),L({fetchers:P});let oe=()=>M.forEach(e=>{I.get(e.key)===e.controller&&Le(e.key)});_.signal.addEventListener(`abort`,oe);let{loaderResults:ce,fetcherResults:le}=await ke(j,M,D,E,u,`fetcher`);if(_.signal.aborted){re.get(t)===k&&re.delete(t);return}_.signal.removeEventListener(`abort`,oe),re.delete(t),I.delete(t),M.forEach(e=>{I.get(e.key)===e.controller&&I.delete(e.key)});let ue=w.fetchers.has(t),de=e=>{if(!ue)return e;let n=new Map(e.fetchers);return n.set(t,Si(C.data)),{...e,fetchers:n}},fe=$r(ce);if(fe)return w=de(w),De(D,fe.result,!1,`fetcher`,{preventScrollReset:p});if(fe=$r(le),fe)return ie.add(fe.key),w=de(w),De(D,fe.result,!1,`fetcher`,{preventScrollReset:p});let pe=new Map(w.fetchers);ue&&pe.set(t,Si(C.data));let{loaderData:he,errors:ge}=qr(w,O,ce,void 0,M,le,pe);Be(k,pe),w.navigation.state===`loading`&&k>ne?(yt(T,`Expected pending action`),A&&A.abort(),ze(pe),me(w.navigation.location,{matches:O,loaderData:he,errors:ge,fetchers:pe})):(L({errors:ge,loaderData:Jr(w.loaderData,he,O,ge),fetchers:pe}),F=re.size>0)}async function Ee(t,n,i,s,c,u,d){let{routeId:f,path:p}=n,m=w.fetchers.get(t);je(t,bi(d,m?m.data:void 0),{flushSync:c});let h=new AbortController;o.unstable_customRouteDiscovery&&I.set(t,h);let g=Ur(e.history,p,h.signal);if(n.isDiscovering){let e=await Ze(i,new URL(g.url).pathname,g.signal,t);if(o.unstable_customRouteDiscovery&&g.signal.aborted||e.type===`aborted`)return;if(e.type===`cancelled`){I.delete(t),ae.delete(t),je(t,Si(m?.data),{flushSync:c});return}if(e.type===`error`){Me(t,f,e.error,{flushSync:c});return}if(e.matches)i=e.matches,n.isDiscovering=!1;else{Me(t,f,Qr(404,{pathname:p}),{flushSync:c});return}}let _=hi(i,p);I.set(t,h);let v=te,y=await Oe(g,p,Pr(a,l,g,p,i,_,r,s),s,t,`fetcher`),b=y[_.route.id];if(!b){for(let e of i)if(y[e.route.id]){b=y[e.route.id];break}}if(I.get(t)===h&&I.delete(t),!g.signal.aborted){if(se.has(t))je(t,Si(void 0));else{if(si(b)){if(ne>v){je(t,Si(void 0));return}ie.add(t),await De(g,b,!1,`fetcher`,{preventScrollReset:u});return}oi(b)?Me(t,f,b.error):je(t,Si(b.data))}}}async function De(r,i,a,o,{submission:c,fetcherSubmission:l,preventScrollReset:u,replace:d}={}){a||(O?.resolve(),O=null),i.response.headers.has(`X-Remix-Revalidate`)&&(F=!0);let f=i.response.headers.get(`Location`);yt(f,`Expected a Location header on the redirect Response`);let p=f,m=new URL(r.url);f=Hr(f,m,s,e.history),Xn(p,f,m,`allow-explicit`);let h=Ct(w.location,f,{_isRedirect:!0});if(n){let e=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))e=!0;else if(un(f)){let n=Dt(t,f,!0);e=n.origin!==t.location.origin||cn(n.pathname,s)==null}if(e){d?t.location.replace(f):t.location.assign(f);return}}A=null;let g=d===!0||i.response.headers.has(`X-Remix-Replace`)?`REPLACE`:`PUSH`,{formMethod:_,formAction:v,formEncType:y}=w.navigation;!c&&!l&&_&&v&&y&&(c=_i(w.navigation));let b=c||l;nr.has(i.response.status)&&b&&pi(b.formMethod)?await ve(g,h,{submission:{...b,formAction:f},preventScrollReset:u||k,enableViewTransition:a?j:void 0,dataStrategyInitiator:o}):await ve(g,h,{overrideNavigation:vi(h,[],g,c),fetcherSubmission:l,preventScrollReset:u||k,enableViewTransition:a?j:void 0,dataStrategyInitiator:o})}async function Oe(e,t,n,r,i,a,o=null){let c,l={};try{c=await Fr(d,e,t,n,i,a,r,!1,o)}catch(e){return n.filter(e=>e.shouldLoad).forEach(t=>{l[t.route.id]={type:`error`,error:e}}),l}if(e.signal.aborted)return l;if(!pi(e.method))for(let e of n){if(c[e.route.id]?.type===`error`)break;c.hasOwnProperty(e.route.id)||w.loaderData.hasOwnProperty(e.route.id)||w.errors&&w.errors.hasOwnProperty(e.route.id)||!e.shouldCallHandler()||(c[e.route.id]={type:`error`,result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(c))if(ai(r)){let i=r.result;l[t]={type:`redirect`,response:zr(i,e,t,n,s)}}else l[t]=await Rr(r);return l}async function ke(e,t,n,r,i,a,o=null){let s=Oe(n,r,e,i,null,a,o),c=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await Oe(e.request,e.path,e.matches,i,e.key,a,o))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:`error`,error:Qr(404,{pathname:e.path})}})}));return{loaderResults:await s,fetcherResults:(await c).reduce((e,t)=>Object.assign(e,t),{})}}function Ae(){F=!0,ae.forEach((e,t)=>{o.unstable_customRouteDiscovery&&e.isDiscovering||(I.has(t)&&ee.add(t),Le(t))})}function je(e,t,n={}){let r=new Map(w.fetchers);r.set(e,t),L({fetchers:r},{flushSync:(n&&n.flushSync)===!0})}function Me(e,t,n,r={}){let i=Xr(w.matches,t),a=new Map(w.fetchers);Fe(a,e),L({errors:{[i.route.id]:n},fetchers:a},{flushSync:(r&&r.flushSync)===!0})}function Ne(e){return oe.set(e,(oe.get(e)||0)+1),se.has(e)&&se.delete(e),w.fetchers.get(e)||ir}function Pe(e,t){Le(e,t?.reason),ae.delete(e),ee.delete(e),je(e,Si(null))}function Fe(e,t){let n=w.fetchers.get(t);I.has(t)&&!(n&&n.state===`loading`&&re.has(t))&&Le(t),ae.delete(t),re.delete(t),ie.delete(t),se.delete(t),ee.delete(t),e.delete(t)}function Ie(e){let t=(oe.get(e)||0)-1;t<=0?(oe.delete(e),se.add(e)):oe.set(e,t),L({fetchers:new Map(w.fetchers)})}function Le(e,t){let n=I.get(e);n&&(n.abort(t),I.delete(e))}function Re(e,t){for(let n of e){let e=t.get(n);yt(e,`Expected fetcher: ${n}`);let r=Si(e.data);t.set(n,r)}}function ze(e){let t=[],n=!1;for(let r of ie){let i=e.get(r);yt(i,`Expected fetcher: ${r}`),i.state===`loading`&&(ie.delete(r),t.push(r),n=!0)}return Re(t,e),n}function Be(e,t){let n=[];for(let[r,i]of re)if(i<e){let e=t.get(r);yt(e,`Expected fetcher: ${r}`),e.state===`loading`&&(Le(r),re.delete(r),n.push(r))}return Re(n,t),n.length>0}function Ve(e,t){let n=w.blockers.get(e)||ar;return ce.get(e)!==t&&ce.set(e,t),n}function He(e){w.blockers.delete(e),ce.delete(e)}function Ue(e,t){let n=w.blockers.get(e)||ar;yt(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(w.blockers);r.set(e,t),L({blockers:r})}function We({currentLocation:e,nextLocation:t,historyAction:n}){if(ce.size===0)return;ce.size>1&&bt(!1,`A router only supports one blocker at a time`);let r=Array.from(ce.entries()),[i,a]=r[r.length-1],o=w.blockers.get(i);if(!(o&&o.state===`proceeding`)&&a({currentLocation:e,nextLocation:t,historyAction:n}))return i}function Ge(e){let t=Qr(404,{pathname:e}),n=u.activeRoutes,{matches:r,route:i}=Zr(n);return{notFoundMatches:r,route:i,error:t}}function Ke(e,t,n){if(m=e,g=t,h=n||null,!_&&w.navigation===rr){_=!0;let e=Ye(w.location,w.matches);e!=null&&L({restoreScrollPosition:e})}return()=>{m=null,g=null,h=null}}function qe(e,t){return h&&h(e,t.map(e=>Bt(e,w.loaderData)))||e.key}function Je(e,t){if(m&&g){let n=qe(e,t);m[n]=g()}}function Ye(e,t){if(m){let n=qe(e,t),r=m[n];if(typeof r==`number`)return r}return null}function Xe(t,n){if(e.patchRoutesOnNavigation){if(!t)return{active:!0,matches:c.match(n,!0)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:c.match(n,!0)}}return{active:!1,matches:null}}async function Ze(t,n,r,i){if(!e.patchRoutesOnNavigation)return{type:`success`,matches:t};let s=t;for(;;){let t=l;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:s,fetcherKey:i,patch:(e,n)=>{r.aborted||xr(e,n,u,t,a,!1)}})}catch(e){if(o.unstable_customRouteDiscovery){if(r.aborted)return{type:`aborted`};if(e instanceof kt)return{type:`cancelled`}}return{type:`error`,error:e,partialMatches:s}}if(r.aborted)return{type:`aborted`};let d=c.match(n),f=null;if(d&&(Object.keys(d[0].params).length===0||(f=c.match(n,!0),!(f&&s.length<f.length&&Qe(s,f.slice(0,s.length))))))return{type:`success`,matches:d};if(f||=c.match(n,!0),!f||Qe(s,f))return{type:`success`,matches:null};s=f}}function Qe(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}function $e(e){l={},u.setHmrRoutes(It(e,a,void 0,l))}function et(e,t,n=!1){xr(e,t,u,l,a,n),u.hasHMRRoutes||L({})}return C={get basename(){return s},get future(){return o},get state(){return w},get routes(){return u.stableRoutes},match(e){return c.match(e)},get manifest(){return l},get window(){return t},initialize:de,subscribe:pe,enableScrollRestoration:Ke,navigate:ge,fetch:we,revalidate:_e,createHref:t=>e.history.createHref(t),createURL:t=>e.history.createURL(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Ne,resetFetcher:Pe,deleteFetcher:Ie,dispose:fe,getBlocker:Ve,deleteBlocker:He,patchRoutes:et,_internalFetchControllers:I,_internalSetRoutes:$e,_internalSetStateDoNotUseOrYouWillBreakYourApp(e){L(e)}},e.instrumentations&&(C=Nn(C,e.instrumentations.map(e=>e.router).filter(Boolean))),C}function fr(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function pr(e,t,n,r,i,a){let o,s;if(i){o=[];for(let e of t)if(o.push(e),e.route.id===i){s=e;break}}else o=t,s=t[t.length-1];let c=gn(r||`.`,hn(o),cn(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=mi(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,`?index&`):`?index`;else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();c.search=n?`?${n}`:``}}return n!==`/`&&(c.pathname=ln({basename:n,pathname:c.pathname})),wt(c)}function mr(e,t,n){if(!n||!fr(n))return{path:t};if(n.formMethod&&!fi(n.formMethod))return{path:t,error:Qr(405,{method:n.formMethod})};let r=()=>({path:t,error:Qr(400,{type:`invalid-body`})}),i=(n.formMethod||`get`).toUpperCase(),a=ei(t);if(n.body!==void 0){if(n.formEncType===`text/plain`){if(!pi(i))return r();let e=typeof n.body==`string`?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n}\n`,``):String(n.body);return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if(n.formEncType===`application/json`){if(!pi(i))return r();try{let e=typeof n.body==`string`?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch{return r()}}}yt(typeof FormData==`function`,`FormData is not available in this environment`);let o,s;if(n.formData)o=Wr(n.formData),s=n.formData;else if(n.body instanceof FormData)o=Wr(n.body),s=n.body;else if(n.body instanceof URLSearchParams)o=n.body,s=Gr(o);else if(n.body==null)o=new URLSearchParams,s=new FormData;else try{o=new URLSearchParams(n.body),s=Gr(o)}catch{return r()}let c={formMethod:i,formAction:a,formEncType:n&&n.formEncType||`application/x-www-form-urlencoded`,formData:s,json:void 0,text:void 0};if(pi(c.formMethod))return{path:t,submission:c};let l=Tt(t);return e&&l.search&&mi(l.search)&&o.append(`index`,``),l.search=`?${o}`,{path:wt(l),submission:c}}function hr(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v){let y=_?oi(_[1])?_[1].error:_[1].data:void 0,b=i.createURL(a.location),x=i.createURL(c),S;if(u&&a.errors){let e=Object.keys(a.errors)[0];S=o.findIndex(t=>t.route.id===e)}else if(_&&oi(_[1])){let e=_[0];S=o.findIndex(t=>t.route.id===e)-1}let C=_?_[1].statusCode:void 0,w=C&&C>=400,T={currentUrl:b,currentParams:a.matches[0]?.params||{},nextUrl:x,nextParams:o[0].params,...s,actionResult:y,actionStatus:C},E=En(o),D=o.map((i,o)=>{let{route:s}=i,f=null;if(S!=null&&o>S)f=!1;else if(s.lazy)f=!0;else if(!gr(s))f=!1;else if(u){let{shouldLoad:e}=_r(s,a.loaderData,a.errors);f=e}else vr(a.loaderData,a.matches[o],i)&&(f=!0);if(f!==null)return Nr(n,r,e,c,E,i,l,t,f);let p=!1;typeof v==`boolean`?p=v:w?p=!1:d||b.pathname+b.search===x.pathname+x.search?p=!0:b.search===x.search?yr(a.matches[o],i)&&(p=!0):p=!0;let m={...T,defaultShouldRevalidate:p};return Nr(n,r,e,c,E,i,l,t,br(i,m),m,v)}),O=[];return m.forEach((e,s)=>{if(u||!o.some(t=>t.route.id===e.routeId)||p.has(s)||e.isDiscovering)return;let c=a.fetchers.get(s),m=c&&c.state!==`idle`&&c.data===void 0,_=g.match(e.path);if(!_){O.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null});return}if(h.has(s))return;let y=hi(_,e.path),b=new AbortController,x=Ur(i,e.path,b.signal),S=null;if(f.has(s))f.delete(s),S=Pr(n,r,x,e.path,_,y,l,t);else if(m)d&&(S=Pr(n,r,x,e.path,_,y,l,t));else{let i;i=typeof v==`boolean`?v:!w&&d;let a={...T,defaultShouldRevalidate:i};br(y,a)&&(S=Pr(n,r,x,e.path,_,y,l,t,a))}S&&O.push({key:s,routeId:e.routeId,path:e.path,matches:S,match:y,request:x,controller:b})}),{dsMatches:D,revalidatingFetchers:O}}function gr(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function _r(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!gr(e))return{shouldLoad:!1,renderFallback:!1};let r=t!=null&&e.id in t,i=n!=null&&n[e.id]!==void 0;if(!r&&i)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader==`function`&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!i;return{shouldLoad:a,renderFallback:a}}function vr(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function yr(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function br(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function xr(e,t,n,r,i,a){let o;if(e){let t=r[e];yt(t,`No route found to patch children into: routeId = ${e}`),t.children||=[],o=t.children}else o=n.activeRoutes;let s=[],c=[];if(t.forEach(e=>{let t=o.find(t=>Sr(e,t));t?c.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=It(s,i,[e||`_`,`patch`,String(o?.length||`0`)],r);o.push(...t)}if(a&&c.length>0)for(let e=0;e<c.length;e++){let{existingRoute:t,newRoute:n}=c[e],r=t,[a]=It([n],i,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}n.hasHMRRoutes||n.setRoutes([...n.activeRoutes])}function Sr(e,t){return`id`in e&&`id`in t&&e.id===t.id?!0:e.index!==t.index||e.path!==t.path||e.caseSensitive!==t.caseSensitive?!1:(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((e,n)=>t.children?.some(t=>Sr(e,t)))??!1}var Cr=new WeakMap,wr=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(yt(i,`No route found in manifest`),!i.lazy||typeof i.lazy!=`object`)return;let a=i.lazy[e];if(!a)return;let o=Cr.get(i);o||(o={},Cr.set(i,o));let s=o[e];if(s)return s;let c=(async()=>{let t=jt(e),n=i[e]!==void 0;if(t)bt(!t,`Route property `+e+` is not a supported lazy route property. This property will be ignored.`),o[e]=Promise.resolve();else if(n)bt(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();t!=null&&(Object.assign(i,{[e]:t}),Object.assign(i,r(i)))}typeof i.lazy==`object`&&(i.lazy[e]=void 0,Object.values(i.lazy).every(e=>e===void 0)&&(i.lazy=void 0))})();return o[e]=c,c.catch(()=>{o[e]===c&&delete o[e]}),c},Tr=new WeakMap;function Er(e,t,n,r,i){let a=n[e.id];if(yt(a,`No route found in manifest`),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy==`function`){let t=Tr.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{yt(typeof e.lazy==`function`,`No lazy route function found`);let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(r===void 0)continue;let i=Nt(e),o=a[e]!==void 0;i?bt(!i,`Route property `+e+` is not a supported property to be returned from a lazy route function. This property will be ignored.`):o?bt(!o,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return Tr.set(a,n),n.catch(()=>{Tr.get(a)===n&&Tr.delete(a)}),{lazyRoutePromise:n,lazyHandlerPromise:n}}let o=Object.keys(e.lazy),s=[],c;for(let a of o){if(i&&i.includes(a))continue;let o=wr({key:a,route:e,manifest:n,mapRouteProperties:r});o&&(s.push(o),a===t&&(c=o))}let l=s.length>0?Promise.all(s).then(()=>{}):void 0;return l?.catch(()=>{}),c?.catch(()=>{}),{lazyRoutePromise:l,lazyHandlerPromise:c}}async function Dr(e){let t=e.matches.filter(e=>e.shouldLoad),n={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,r)=>{n[t[r].route.id]=e}),n}async function Or(e){return e.matches.some(e=>e.route.middleware)?kr(e,()=>Dr(e)):Dr(e)}function kr(e,t){return Ar(e,t,e=>{if(di(e))throw e;return e},ri,n);async function n(t,n,r){if(r)return Object.assign(r.value,{[n]:{type:`error`,result:t}});{let{matches:r}=e,i=Math.min(Math.max(r.findIndex(e=>e.route.id===n),0),Math.max(r.findIndex(e=>e.shouldCallHandler()),0)),a=r[i].route.id;for(let e of r.slice(0,i+1))try{await e._lazyPromises?.route}catch{a=e.route.id;break}return{[Xr(r,a).route.id]:{type:`error`,result:t}}}}}async function Ar(e,t,n,r,i){let{matches:a,...o}=e;return await jr(o,a.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]),t,n,r,i)}async function jr(e,t,n,r,i,a,o=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??Error(`Request aborted: ${s.method} ${s.url}`);let c=t[o];if(!c)return await n();let[l,u]=c,d,f=async()=>{if(d)throw Error("You may only call `next()` once per middleware");try{return d={value:await jr(e,t,n,r,i,a,o+1)},d.value}catch(e){return d={value:await a(e,l,d)},d.value}};try{let t=await u(e,f),n=t==null?void 0:r(t);return i(n)?n:d?n??d.value:(d={value:await f()},d.value)}catch(e){return await a(e,l,d)}}function Mr(e,t,n,r,i){let a=wr({key:`middleware`,route:r.route,manifest:t,mapRouteProperties:e}),o=Er(r.route,pi(n.method)?`action`:`loader`,t,e,i);return{middleware:a,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function Nr(e,t,n,r,i,a,o,s,c,l=null,u){let d=!1,f=Mr(e,t,n,a,o);return{...a,_lazyPromises:f,shouldLoad:c,shouldRevalidateArgs:l,shouldCallHandler(e){return d=!0,l?typeof u==`boolean`?br(a,{...l,defaultShouldRevalidate:u}):typeof e==`boolean`?br(a,{...l,defaultShouldRevalidate:e}):br(a,l):c},resolve(e){let{lazy:t,loader:o,middleware:l}=a.route,u=d||c||e&&!pi(n.method)&&(t||o),p=l&&l.length>0&&!o&&!t;return u&&(pi(n.method)||!p)?Ir({request:n,path:r,pattern:i,match:a,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:e,scopedContext:s}):Promise.resolve({type:`data`,result:void 0})}}}function Pr(e,t,n,r,i,a,o,s,c=null){return i.map(l=>l.route.id===a.route.id?Nr(e,t,n,r,En(i),l,o,s,!0,c):{...l,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:Mr(e,t,n,l,o),resolve:()=>Promise.resolve({type:`data`,result:void 0})})}async function Fr(e,t,n,r,i,a,o,s,c=null){r.some(e=>e._lazyPromises?.middleware)&&await Promise.all(r.map(e=>e._lazyPromises?.middleware));let l={request:t,url:Dn(t,n),pattern:En(r),params:r[0].params,context:o,matches:r,unstable_initiator:a,unstable_navigationType:a===`navigation`?c:null},u=s?()=>{throw Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=l;return kr(t,()=>e({...t,fetcherKey:i,runClientMiddleware:()=>{throw Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},d=await e({...l,fetcherKey:i,runClientMiddleware:u});try{await Promise.all(r.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch{}return d}async function Ir({request:e,path:t,pattern:n,match:r,lazyHandlerPromise:i,lazyRoutePromise:a,handlerOverride:o,scopedContext:s}){let c,l,u=pi(e.method),d=u?`action`:`loader`,f=i=>{let a,c=new Promise((e,t)=>a=t);l=()=>a(),e.signal.addEventListener(`abort`,l);let u=a=>typeof i==`function`?i({request:e,url:Dn(e,t),pattern:n,params:r.params,context:s},...a===void 0?[]:[a]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)),f=(async()=>{try{return{type:`data`,result:await(o?o(e=>u(e)):u())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([f,c])};try{let t=u?r.route.action:r.route.loader;if(i||a){if(t){let e,[n]=await Promise.all([f(t).catch(t=>{e=t}),i,a]);if(e!==void 0)throw e;c=n}else{await i;let t=u?r.route.action:r.route.loader;if(t)[c]=await Promise.all([f(t),a]);else if(d===`action`){let t=new URL(e.url),n=t.pathname+t.search;throw Qr(405,{method:e.method,pathname:n,routeId:r.route.id})}else return await a,{type:`data`,result:void 0}}}else if(t)c=await f(t);else{let t=new URL(e.url);throw Qr(404,{pathname:t.pathname+t.search})}}catch(e){return{type:`error`,result:e}}finally{l&&e.signal.removeEventListener(`abort`,l)}return c}async function Lr(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function Rr(e){let{result:t,type:n}=e;if(li(t)){let e;try{e=await Lr(t)}catch(e){return{type:`error`,error:e}}return n===`error`?{type:`error`,error:new wn(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:`data`,data:e,statusCode:t.status,headers:t.headers}}return n===`error`?ci(t)?t.data instanceof Error?{type:`error`,error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:ni(t),statusCode:Tn(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:t,statusCode:Tn(t)?t.status:void 0}:ci(t)?{type:`data`,data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`data`,data:t}}function zr(e,t,n,r,i){let a=e.headers.get(`Location`);if(yt(a,`Redirects returned/thrown from loaders/actions must have a Location header`),!un(a)){let o=r.slice(0,r.findIndex(e=>e.route.id===n)+1);a=pr(new URL(t.url),o,i,a),e.headers.set(`Location`,a)}return e}var Br=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function Vr(e){try{return Br.includes(new URL(e).protocol)}catch{return!1}}function Hr(e,t,n,r){if(un(e)){let r=e,i=pt.test(r)?new URL(mt(r,t.protocol)):new URL(r);if(Vr(i.toString()))throw Error(`Invalid redirect location`);let a=cn(i.pathname,n)!=null;if(i.origin===t.origin&&a)return _n(i.pathname)+i.search+i.hash}try{if(Vr(r.createURL(e).toString()))throw Error(`Invalid redirect location`)}catch{}return e}function Ur(e,t,n,r){let i=e.createURL(ei(t)).toString(),a={signal:n};if(r&&pi(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),t===`application/json`?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):a.body=t===`text/plain`?r.text:t===`application/x-www-form-urlencoded`&&r.formData?Wr(r.formData):r.formData}return new Request(i,a)}function Wr(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function Gr(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Kr(e,t,n,r=!1,i=!1){let a={},o=null,s,c=!1,l={},u=n&&oi(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(yt(!si(f),`Cannot handle redirect results in processLoaderData`),oi(f)){let t=f.error;if(u!==void 0&&(t=u,u=void 0),o||={},i)o[d]=t;else{let n=Xr(e,d);o[n.route.id]??(o[n.route.id]=t)}r||(a[d]=sr),c||(c=!0,s=Tn(f.error)?f.error.status:500),f.headers&&(l[d]=f.headers)}else a[d]=f.data,f.statusCode&&f.statusCode!==200&&!c&&(s=f.statusCode),f.headers&&(l[d]=f.headers)}),u!==void 0&&n&&(o={[n[0]]:u},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:l}}function qr(e,t,n,r,i,a,o){let{loaderData:s,errors:c}=Kr(t,n,r);return i.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:n,routeId:r,controller:i}=t;if(i&&i.signal.aborted)return;let s=a[n];if(yt(s,`Did not find corresponding fetcher result`),oi(s)){let t=Xr(e.matches,r);c&&c[t.route.id]||(c={...c,[t.route.id]:s.error}),o.delete(n)}else if(si(s))yt(!1,`Unhandled fetcher revalidation redirect`);else{let e=Si(s.data);o.set(n,e)}}),{loaderData:s,errors:c}}function Jr(e,t,n,r){let i=Object.entries(t).filter(([,e])=>e!==sr).reduce((e,[t,n])=>(e[t]=n,e),{}),a=0;for(let o of n){let n=o.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&o.route.loader&&(i[n]=e[n],a++),r&&r.hasOwnProperty(n))break}return Object.keys(t).length===0&&a===Object.keys(e).length?e:i}function Yr(e){return e?oi(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Xr(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.ErrorBoundary!=null||e.route.errorElement!=null)||e[0]}function Zr(e){let t=e.length===1?e[0]:e.find(e=>e.index||!e.path||e.path===`/`)||{id:`__shim-error-route__`};return{matches:[{params:{},pathname:``,pathnameBase:``,route:t}],route:t}}function Qr(e,{pathname:t,routeId:n,method:r,type:i,message:a}={}){let o=`Unknown Server Error`,s=`Unknown @remix-run/router error`;return e===400?(o=`Bad Request`,r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i===`invalid-body`&&(s=`Unable to encode submission body`)):e===403?(o=`Forbidden`,s=`Route "${n}" does not match URL "${t}"`):e===404?(o=`Not Found`,s=`No route matches URL "${t}"`):e===405&&(o=`Method Not Allowed`,r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new wn(e||500,o,Error(s),!0)}function $r(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(si(r))return{key:n,result:r}}}function ei(e){return wt({...typeof e==`string`?Tt(e):e,hash:``})}function ti(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash||t.hash!==``}function ni(e){return new wn(e.init?.status??500,e.init?.statusText??`Internal Server Error`,e.data)}function ri(e){return typeof e==`object`&&!!e&&Object.entries(e).every(([e,t])=>typeof e==`string`&&ii(t))}function ii(e){return typeof e==`object`&&!!e&&`type`in e&&`result`in e&&(e.type===`data`||e.type===`error`)}function ai(e){return li(e.result)&&tr.has(e.result.status)}function oi(e){return e.type===`error`}function si(e){return(e&&e.type)===`redirect`}function ci(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function li(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function ui(e){return tr.has(e)}function di(e){return li(e)&&ui(e.status)&&e.headers.has(`Location`)}function fi(e){return er.has(e.toUpperCase())}function pi(e){return Qn.has(e.toUpperCase())}function mi(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function hi(e,t){let n=typeof t==`string`?Tt(t).search:t.search;if(e[e.length-1].route.index&&mi(n||``))return e[e.length-1];let r=mn(e);return r[r.length-1]}function gi(e,t,n){return{url:Dn(e.createURL(t),t),pattern:n?En(n):``,params:n?.[0]?.params?{...n[0].params}:{}}}function _i(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(t&&n&&r){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function vi(e,t,n,r){return r?{state:`loading`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{state:`loading`,location:e,matches:t,historyAction:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function yi(e,t,n,r){return{state:`submitting`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}function bi(e,t){return e?{state:`loading`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:`loading`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function xi(e,t){return{state:`submitting`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Si(e){return{state:`idle`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Ci(e,t){try{let n=e.sessionStorage.getItem(or);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch{}}function wi(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(or,JSON.stringify(n))}catch(e){bt(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}function Ti(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var Ei=x.createContext(null);Ei.displayName=`DataRouter`;var Di=x.createContext(null);Di.displayName=`DataRouterState`;var Oi=x.createContext(null);Oi.displayName=`DataRouterData`;var ki=x.createContext(null);ki.displayName=`DataRouterNavigation`;var Ai=x.createContext(!1);function ji(){return x.useContext(Ai)}var Mi=x.createContext({isTransitioning:!1});Mi.displayName=`ViewTransition`;var Ni=x.createContext(null);Ni.displayName=`Fetchers`;var Pi=x.createContext(null);Pi.displayName=`Await`;var Fi=x.createContext(null);Fi.displayName=`Navigation`;var Ii=x.createContext(null);Ii.displayName=`Location`;var Li=x.createContext({outlet:null,matches:[],isDataRoute:!1});Li.displayName=`Route`;var Ri=x.createContext(!1);Ri.displayName=`IsDataRoute`;var zi=x.createContext(void 0);zi.displayName=`RouteId`;var Bi=x.createContext(null);Bi.displayName=`RouteError`;var Vi=`REACT_ROUTER_ERROR`,Hi=`REDIRECT`,Ui=`ROUTE_ERROR_RESPONSE`;function Wi(e){if(e.startsWith(`${Vi}:${Hi}:{`))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 Gi(e){if(e.startsWith(`${Vi}:${Ui}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new wn(t.status,t.statusText,t.data)}catch{}}function Ki(e,{relative:t}={}){yt(qi(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=x.useContext(Fi),{hash:i,pathname:a,search:o}=ta(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:vn([n,a])),r.createHref({pathname:s,search:o,hash:i})}function qi(){return x.useContext(Ii)!=null}function Ji(){return yt(qi(),`useLocation() may be used only in the context of a <Router> component.`),x.useContext(Ii).location}var Yi=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Xi(){return x.useContext(Ri)?va():Zi()}function Zi(){yt(qi(),`useNavigate() may be used only in the context of a <Router> component.`);let e=x.useContext(Ei),{basename:t,navigator:n}=x.useContext(Fi),{matches:r}=x.useContext(Li),{pathname:i}=Ji(),a=JSON.stringify(hn(r)),o=x.useRef(!1);return x.useLayoutEffect(()=>{o.current=!0}),x.useCallback((r,s={})=>{if(bt(o.current,Yi),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=gn(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:vn([t,c.pathname])),Xn(typeof r==`string`?r:wt(r),n.createHref(c),qn(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var Qi=x.createContext(null);function $i(e){let t=x.useContext(Li).outlet;return x.useMemo(()=>t&&x.createElement(Qi.Provider,{value:e},t),[t,e])}function ea(){let{matches:e}=x.useContext(Li);return e[e.length-1]?.params??{}}function ta(e,{relative:t}={}){let{matches:n}=x.useContext(Li),{pathname:r}=Ji(),i=JSON.stringify(hn(n));return x.useMemo(()=>gn(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function na(e,t,n){yt(qi(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=x.useContext(Fi),{matches:i}=x.useContext(Li),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:`/`;a&&a.route;let c=Ji(),l;if(t){let e=typeof t==`string`?Tt(t):t;yt(s===`/`||e.pathname?.startsWith(s),`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 "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`),l=e}else l=c;let u=l.pathname||`/`,d=u;if(s!==`/`){let e=s.replace(/^\//,``).split(`/`);d=`/`+u.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let f;f=n?n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):n.router.match(n.state.location):Rt(e,{pathname:d});let p=la(f&&f.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:vn([s,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?s:vn([s,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&p?x.createElement(Ii.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...l},navigationType:`POP`}},p):p}function ra(){let e=ha(),t=Tn(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return x.createElement(x.Fragment,null,x.createElement(`h2`,null,`Unexpected Application Error!`),x.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?x.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}var ia=x.createElement(ra,null),aa=class extends x.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static contextType=Ai;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=Gi(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:x.createElement(Li.Provider,{value:this.props.routeContext},x.createElement(Ri.Provider,{value:this.props.routeContext.isDataRoute},x.createElement(zi.Provider,{value:this.props.routeContext.matches[this.props.routeContext.matches.length-1]?.route.id},x.createElement(Bi.Provider,{value:e,children:this.props.component}))));return this.context?x.createElement(sa,{error:e},t):t}},oa=new WeakMap;function sa({children:e,error:t}){let{basename:n,navigator:r}=x.useContext(Fi);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Wi(t.digest);if(e){let i=oa.get(t);if(i)throw i;let a=kn(e.location,n),o=a.absoluteURL||a.to;if(Xn(e.location,o,qn(r),`allow-explicit`),Vr(o))throw Error(`Invalid redirect location`);if(On&&!oa.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 oa.set(t,n),n}}return x.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function ca({routeContext:e,match:t,children:n}){let r=x.useContext(Ei);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),x.createElement(Li.Provider,{value:e},x.createElement(Ri.Provider,{value:e.isDataRoute},x.createElement(zi.Provider,{value:t.route.id},n)))}function la(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);yt(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:En(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||ia,o&&(s<0&&c===0?(ba(`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?x.createElement(n.route.Component,null):n.route.element?n.route.element:e,x.createElement(ca,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?x.createElement(aa,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}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=x.useContext(Ei);return yt(t,ua(e)),t}function fa(e){let t=x.useContext(Di);return yt(t,ua(e)),t}function pa(e){let t=x.useContext(Oi);return yt(t,ua(e)),t}function ma(e){let t=x.useContext(zi);return yt(t,`${e} can only be used on routes that contain a unique "id"`),t}function ha(){let e=x.useContext(Bi),t=pa(`useRouteError`),n=ma(`useRouteError`);return e===void 0?t.errors?.[n]:e}var ga=0;function _a(e){let{router:t,basename:n}=da(`useBlocker`),r=fa(`useBlocker`),[i,a]=x.useState(``),o=x.useCallback(t=>{if(typeof e!=`function`)return!!e;if(n===`/`)return e(t);let{currentLocation:r,nextLocation:i,historyAction:a}=t;return e({currentLocation:{...r,pathname:cn(r.pathname,n)||r.pathname},nextLocation:{...i,pathname:cn(i.pathname,n)||i.pathname},historyAction:a})},[n,e]);return x.useEffect(()=>{let e=String(++ga);return a(e),()=>t.deleteBlocker(e)},[t]),x.useEffect(()=>{i!==``&&t.getBlocker(i,o)},[t,i,o]),i&&r.blockers.has(i)?r.blockers.get(i):ar}function va(){let{router:e}=da(`useNavigate`),t=ma(`useNavigate`),n=x.useRef(!1);return x.useLayoutEffect(()=>{n.current=!0}),x.useCallback(async(r,i={})=>{bt(n.current,Yi),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var ya={};function ba(e,t,n){!t&&!ya[e]&&(ya[e]=!0,bt(!1,n))}function xa(e,t){if(e===!1||e==null)throw Error(t)}function Sa(e,t,n){let r=typeof e==`string`?new URL(e,n??(typeof window>`u`?`server://singlefetch/`:window.location.origin)):new URL(e);return n&&r.origin!==n&&(r=new URL(r.pathname+r.search+r.hash,n)),r.pathname.endsWith(`/`)?r.pathname=`${r.pathname}_.${t}`:r.pathname=`${r.pathname}.${t}`,r}async function Ca(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(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 wa(e){return e!=null&&typeof e.page==`string`}function Ta(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 Ea(e,t,n){return ja((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Ca(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Ta).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Da(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 Oa(e,t,{includeHydrateFallback:n}={}){return ka(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 ka(e){return[...new Set(e)]}function Aa(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function ja(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!wa(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Aa(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}var Ma={};function Na(e,t){!e&&!Ma[t]&&(Ma[t]=!0,console.warn(t))}var Pa=x.createContext(void 0);Pa.displayName=`FrameworkContext`;function Fa(){let e=x.useContext(Pa);return xa(e,`You must render this element inside a <HydratedRouter> element`),e}function Ia(e,t){let n=x.useContext(Pa),[r,i]=x.useState(!1),[a,o]=x.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=x.useRef(null);x.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]),x.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:La(s,p),onBlur:La(c,m),onMouseEnter:La(l,p),onMouseLeave:La(u,m),onTouchStart:La(d,p)}]:[a,f,{}]:[!1,f,{}]}function La(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Ra({page:e,...t}){let n=ji(),{nonce:r}=Fa(),{router:i}=da(`PrefetchPageLinks`),a=x.useMemo(()=>i.match(e),[i,i.routes,e]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?x.createElement(Ba,{page:e,matches:a,...t}):x.createElement(Va,{page:e,matches:a,...t})):null}function za(e){let{manifest:t,routeModules:n}=Fa(),[r,i]=x.useState([]);return x.useEffect(()=>{let r=!1;return Ea(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Ba({page:e,matches:t,...n}){let r=Ji(),{unstable_apiServerOrigin:i}=Fa(),a=x.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Sa(e,`rsc`,i),a=!1,o=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?a=!0:o.push(e.route.id);return a&&o.length>0&&n.searchParams.set(`_routes`,o.join(`,`)),[i?n.toString():n.pathname+n.search]},[e,r,t,i]);return x.createElement(x.Fragment,null,a.map(e=>x.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Va({page:e,matches:t,...n}){let r=Ji(),{manifest:i,routeModules:a,unstable_apiServerOrigin:o}=Fa(),{matches:s}=fa(`PrefetchPageLinks`),{loaderData:c}=pa(`PrefetchPageLinks`),l=x.useMemo(()=>Da(e,t,s,i,r,`data`),[e,t,s,i,r]),u=x.useMemo(()=>Da(e,t,s,i,r,`assets`),[e,t,s,i,r]),d=x.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,s=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!l.some(t=>t.route.id===e.route.id)&&e.route.id in c&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?s=!0:n.add(e.route.id))}),n.size===0)return[];let u=Sa(e,`data`,o);return s&&n.size>0&&u.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[o?u.toString():u.pathname+u.search]},[c,r,i,l,t,e,a,o]),f=x.useMemo(()=>Oa(u,i),[u,i]),p=za(u);return x.createElement(x.Fragment,null,d.map(e=>x.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),f.map(e=>x.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),p.map(({key:e,link:t})=>x.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Ha(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}var Ua=[`HydrateFallback`,`hydrateFallbackElement`];function Wa(e,t){return dr({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:_t({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,mapRouteProperties:Ft,hydrationRouteProperties:Ua,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,instrumentations:t?.instrumentations}).initialize()}var Ga=class{status=`pending`;promise;resolve;reject;constructor(){this.promise=new Promise((e,t)=>{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}};function Ka(e,t){e.ready.catch(e=>{if(!(t.visibilityState===`hidden`||typeof e==`object`&&e&&`name`in e&&e.name===`AbortError`))throw e})}function qa({router:e,flushSync:t,onError:n,useTransitions:r}){r=ji()||r;let[i,a]=x.useState(e.state),[o,s]=(0,x.useOptimistic)(i),c=x.useRef(o),[l,u]=x.useState(),[d,f]=x.useState({isTransitioning:!1}),[p,m]=x.useState(),[h,g]=x.useState(),[_,v]=x.useState(),y=x.useRef(new Map),b=x.useRef(new WeakSet),S=x.useCallback((i,{deletedFetchers:o,newErrors:l,flushSync:d,viewTransitionOpts:_})=>{c.current=i,l&&i.errors&&ur.has(i.errors)&&(b.current.has(i.errors)?l=null:b.current.add(i.errors)),l&&n&&Object.values(l).forEach(e=>n(e,{location:i.location,params:i.matches[0]?.params??{},pattern:En(i.matches)})),i.fetchers.forEach((e,t)=>{e.data!==void 0&&y.current.set(t,e.data)}),o.forEach(e=>y.current.delete(e)),Na(d===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let S=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition==`function`;if(Na(_==null||S,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!_||!S)t&&d?t(()=>a(i)):r===!1?a(i):x.startTransition(()=>{r===!0&&s(e=>Ja(e,i)),a(i)});else if(t&&d){t(()=>{h&&(p?.resolve(),h.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:_.currentLocation,nextLocation:_.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>a(i))});Ka(n,e.window.document),n.finished.finally(()=>{t(()=>{m(void 0),g(void 0),u(void 0),f({isTransitioning:!1})})}),t(()=>g(n))}else h?(p?.resolve(),h.skipTransition(),v({state:i,currentLocation:_.currentLocation,nextLocation:_.nextLocation})):(u(i),f({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}))},[e.window,t,h,p,r,s,n]);x.useLayoutEffect(()=>e.subscribe(S),[e,S]),x.useLayoutEffect(()=>{let t=e.state.errors,n=t?ur.get(t):null;(c.current!==e.state||t&&n&&!b.current.has(t))&&S(e.state,{deletedFetchers:[],flushSync:!1,newErrors:n??null})},[e,S]),x.useEffect(()=>{d.isTransitioning&&!d.flushSync&&m(new Ga)},[d]),x.useEffect(()=>{if(p&&l&&e.window){let t=l,n=p.promise,i=e.window.document.startViewTransition(async()=>{r===!1?a(t):x.startTransition(()=>{r===!0&&s(e=>Ja(e,t)),a(t)}),await n});Ka(i,e.window.document),i.finished.finally(()=>{m(void 0),g(void 0),u(void 0),f({isTransitioning:!1})}),g(i)}},[l,p,e.window,r,s]),x.useEffect(()=>{p&&l&&o.location.key===l.location.key&&p.resolve()},[p,h,o.location,l]),x.useEffect(()=>{!d.isTransitioning&&_&&(u(_.state),f({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}),v(void 0))},[d.isTransitioning,_]);let C=x.useMemo(()=>({createHref:e.createHref,createURL:e.createURL,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})}),[e]),w=e.basename||`/`,T=x.useMemo(()=>({router:e,navigator:C,static:!1,basename:w,onError:n}),[e,C,w,n]),E=x.useMemo(()=>({historyAction:o.historyAction,location:o.location,matches:o.matches,initialized:o.initialized,renderFallback:o.renderFallback,restoreScrollPosition:o.restoreScrollPosition,preventScrollReset:o.preventScrollReset,blockers:o.blockers}),[o.historyAction,o.location,o.matches,o.initialized,o.renderFallback,o.restoreScrollPosition,o.preventScrollReset,o.blockers]),D=x.useMemo(()=>({navigation:o.navigation,revalidation:o.revalidation}),[o.navigation,o.revalidation]),O=x.useMemo(()=>({loaderData:o.loaderData,actionData:o.actionData,errors:o.errors}),[o.loaderData,o.actionData,o.errors]),k=x.useMemo(()=>({fetchers:o.fetchers,fetcherData:y.current}),[o.fetchers]);return x.createElement(x.Fragment,null,x.createElement(Ei.Provider,{value:T},x.createElement(Di.Provider,{value:E},x.createElement(ki.Provider,{value:D},x.createElement(Oi.Provider,{value:O},x.createElement(Ni.Provider,{value:k},x.createElement(Mi.Provider,{value:d},x.createElement($a,{basename:w,location:o.location,navigationType:o.historyAction,navigator:C,useTransitions:r},x.createElement(Ya,{routes:e.routes,manifest:e.manifest,state:o,isStatic:!1,onError:n})))))))),null)}function Ja(e,t){return{...e,navigation:t.navigation.state===`idle`?e.navigation:t.navigation,revalidation:t.revalidation===`idle`?e.revalidation:t.revalidation,actionData:t.navigation.state===`submitting`?e.actionData:t.actionData,fetchers:t.fetchers}}var Ya=x.memo(Xa);function Xa({routes:e,manifest:t,state:n,isStatic:r,onError:i}){let a=x.useContext(Ei);yt(a,`You must render this element inside a <DataRouterContext.Provider> element`);let o=x.useContext(Pa)?.routeDiscoveryRuntime;return x.useEffect(()=>{n.initialized&&o?.markReady()},[n.initialized,o]),na(e,void 0,{router:a.router,manifest:t,state:n,isStatic:r,onError:i})}function Za({to:e,replace:t,state:n,relative:r}){yt(qi(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i,navigator:a}=x.useContext(Fi);bt(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:o}=x.useContext(Li),{pathname:s}=Ji(),c=Xi(),l=gn(e,hn(o),s,r===`path`);Xn(typeof e==`string`?e:wt(e),a.createHref(l),qn(a),`reject`);let u=JSON.stringify(l);return x.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function Qa(e){return $i(e.context)}function $a({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){yt(!qi(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=x.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=Tt(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=x.useMemo(()=>{let e=cn(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 bt(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:x.createElement(Fi.Provider,{value:c},x.createElement(Ii.Provider,{children:t,value:h}))}x.Component;var eo=`application/x-www-form-urlencoded`;function to(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function no(e){return to(e)&&e.tagName.toLowerCase()===`button`}function ro(e){return to(e)&&e.tagName.toLowerCase()===`form`}function io(e){return to(e)&&e.tagName.toLowerCase()===`input`}function ao(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function oo(e,t){return e.button===0&&(!t||t===`_self`)&&!ao(e)}function so(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 co(e,t){let n=so(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var lo=null;function uo(){if(lo===null)try{new FormData(document.createElement(`form`),0),lo=!1}catch{lo=!0}return lo}var fo=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function po(e){return e!=null&&!fo.has(e)?(bt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${eo}"`),null):e}function mo(e,t){let n,r,i,a,o;if(ro(e)){let o=e.getAttribute(`action`);r=o?cn(o,t):null,n=e.getAttribute(`method`)||`get`,i=po(e.getAttribute(`enctype`))||eo,a=new FormData(e)}else if(no(e)||io(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?cn(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||`get`,i=po(e.getAttribute(`formenctype`))||po(o.getAttribute(`enctype`))||eo,a=new FormData(o,e),!uo()){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(to(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=`get`,r=null,i=eo,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}var ho=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{ho&&(window.__reactRouterVersion=`8`)}catch{}function go(e,t){return dr({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:vt({window:t?.window}),hydrationData:t?.hydrationData||_o(),routes:e,mapRouteProperties:Ft,hydrationRouteProperties:Ua,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function _o(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:vo(e.errors)}),e}function vo(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new wn(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(typeof r.__subType==`string`&&Cn.includes(r.__subType)){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=``,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=``,n[e]=t}}else n[e]=r;return n}var yo=x.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:_}=x.useContext(Fi),v=typeof l==`string`&&ft.test(l),y=kn(l,h);l=y.to;let b=Ki(l,{relative:r}),S=Ji(),C=null;if(o){let e=gn(o,[],S.mask?S.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:vn([h,e.pathname])),C=g.createHref(e)}let[w,T,E]=Ia(n,p),D=So(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),A=x.createElement(`a`,{...p,...E,href:(k?C:void 0)||y.absoluteURL||b,onClick:k?O:e,ref:Ha(m,T),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return w&&!v?x.createElement(x.Fragment,null,A,x.createElement(Ra,{page:b})):A});yo.displayName=`Link`;var bo=x.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=ta(a,{relative:c.relative}),d=Ji(),f=x.useContext(ki),{navigator:p,basename:m}=x.useContext(Fi),h=f!=null&&Oo(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f?.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=cn(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,S=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(y)===`/`),C={isActive:b,isPending:S,isTransitioning:h},w=b?e:void 0,T;T=typeof n==`function`?n(C):[n,b?`active`:null,S?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return x.createElement(yo,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});bo.displayName=`NavLink`;var xo=x.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=`get`,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=x.useContext(Fi),g=Eo(),_=Do(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&ft.test(s);return x.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?x.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});xo.displayName=`Form`;function So(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=Xi(),d=Ji(),f=ta(e,{relative:o});return x.useCallback(p=>{if(oo(p,t)){p.preventDefault();let t=n===void 0?wt(d)===wt(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?x.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function Co(e){bt(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=x.useRef(so(e)),n=x.useRef(!1),r=Ji(),i=x.useMemo(()=>co(r.search,n.current?null:t.current),[r.search]),a=Xi();return[i,x.useCallback((e,t)=>{let r=so(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var wo=0,To=()=>`__${String(++wo)}__`;function Eo(){let{router:e}=da(`useSubmit`),{basename:t}=x.useContext(Fi),n=ma(`useSubmit`),r=e.fetch,i=e.navigate;return x.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=mo(e,t);a.navigate===!1?await r(a.fetcherKey||To(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,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 Do(e,{relative:t}={}){let{basename:n}=x.useContext(Fi),r=x.useContext(Li);yt(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...ta(e||`.`,{relative:t})},o=Ji();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:vn([n,a.pathname])),wt(a)}function Oo(e,{relative:t}={}){let n=x.useContext(Mi);yt(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=ta(e,{relative:t});if(!n.isTransitioning)return!1;let a=cn(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=cn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return rn(i.pathname,o)!=null||rn(i.pathname,a)!=null}var ko=v(),Ao=(0,x.createContext)(null);function jo({client:e,children:t}){return(0,S.jsx)(Ao,{value:e,children:t})}function z(){let e=(0,x.useContext)(Ao);if(!e)throw Error(`useClient() was called outside <AdminApp>. Render the screen inside it.`);return e}var Mo=class extends Error{code;issues;constructor(e,t,n=[]){super(e),this.code=t,this.issues=n,this.name=`AdminRequestError`}},B={session:[`session`],contentTypes:[`content-types`],archivedContentTypes:[`archived-content-types`],fieldTypes:[`field-types`],images:[`images`],people:[`people`],profile:[`profile`],justUploaded:[`just-uploaded`],tokens:[`tokens`],passkeys:[`passkeys`],plugins:[`plugins`],pluginEditors:[`plugin-editors`],pluginSettings:e=>[`plugins`,e,`settings`],pluginTasks:e=>[`plugins`,e,`tasks`],entryLists:[`entries`],trash:[`entries`,`trash`],entries:e=>[`entries`,e],entry:e=>[`entry`,e],forms:[`forms`],trashedForms:[`forms`,`trash`],submissions:[`submissions`],submissionList:e=>[`submissions`,`list`,e],submissionCounts:e=>[`submissions`,`counts`,e],contacts:[`contacts`],contactList:e=>[`contacts`,`list`,e],contact:e=>[`contacts`,`one`,e],contactTimeline:e=>[`contacts`,`timeline`,e],pipeline:[`contacts`,`pipeline`],customFields:[`contacts`,`custom-fields`],deals:[`contacts`,`deals`],dealList:e=>[`contacts`,`deals`,`list`,e],forecast:[`contacts`,`deals`,`forecast`],team:[`team`],emailSettings:[`settings`,`email`],storageSettings:[`settings`,`storage`],formsSettings:[`settings`,`forms`],generalSettings:[`settings`,`general`]};function No(){let e=e=>{e instanceof Mo&&e.code===`unauthenticated`&&t.setQueryData(B.session,null)},t=new Ze({queryCache:new Xe({onError:e}),mutationCache:new Ge({onError:e}),defaultOptions:{queries:{retry:!1,staleTime:3e4,networkMode:`always`},mutations:{networkMode:`always`}}});return t}function Po(){let e=z();return dt({queryKey:B.session,queryFn:()=>e.getSession()})}function Fo(){let e=z();return dt({queryKey:B.contentTypes,queryFn:()=>e.listContentTypes()})}function Io(){let e=w();return t=>{e.setQueryData(B.contentTypes,e=>e&&[...e.filter(e=>e.id!==t.id),t].sort((e,t)=>e.key.localeCompare(t.key))),e.invalidateQueries({queryKey:B.entryLists})}}function Lo(){let e=z();return R({mutationFn:t=>e.createContentType(t),onSuccess:Io()})}function Ro(){let e=z();return dt({queryKey:B.archivedContentTypes,queryFn:()=>e.listArchivedContentTypes()})}function zo(){let e=w();return()=>{e.invalidateQueries({queryKey:B.contentTypes}),e.invalidateQueries({queryKey:B.archivedContentTypes}),e.invalidateQueries({queryKey:B.entryLists})}}function Bo(){let e=z();return R({mutationFn:t=>e.archiveContentType(t),onSuccess:zo()})}function Vo(){let e=z();return R({mutationFn:t=>e.restoreContentType(t),onSuccess:zo()})}function Ho(){let e=z();return R({mutationFn:({id:t,changes:n})=>e.updateContentType(t,n),onSuccess:Io()})}function Uo(){let e=z();return R({mutationFn:({typeId:t,field:n,within:r})=>e.addField(t,n,r),onSuccess:Io()})}function Wo(){let e=z();return R({mutationFn:async({typeId:t,fieldId:n,changes:r,arrangement:i,within:a})=>{let o=await e.changeField(t,n,r,a);return i?e.arrangeFields(t,i):o},onSuccess:Io()})}function Go(){let e=z();return R({mutationFn:({typeId:t,fieldId:n,within:r})=>e.removeField(t,n,r),onSuccess:Io()})}function Ko(){let e=z();return R({mutationFn:({typeId:t,fieldId:n,within:r})=>e.restoreField(t,n,r),onSuccess:Io()})}function qo(){let e=z();return R({mutationFn:({typeId:t,sections:n})=>e.setSections(t,n),onSuccess:Io()})}function Jo(){let e=z();return R({mutationFn:({typeId:t,arrangement:n})=>e.arrangeFields(t,n),onSuccess:Io()})}var Yo=200,Xo=1e4;async function Zo(e,t){let n=await t(e);if(e.limit!==Yo||e.offset!==void 0)return n;let r=[...n.items];for(;r.length<n.total&&r.length<Xo;){let n=await t({...e,offset:r.length});if(n.items.length===0)break;r.push(...n.items)}return{items:r,total:n.total}}function Qo(e){let t=z();return dt({queryKey:B.entries(e),queryFn:()=>Zo(e,e=>t.listEntries(e))})}function $o(e,t){let n=z(),r={search:e,limit:24};return dt({queryKey:B.entries(r),queryFn:()=>n.listEntries(r),enabled:t&&e!==``,placeholderData:e=>e})}function es(e){let t=z();return lt({queries:e.map(e=>({queryKey:B.entries(e),queryFn:()=>Zo(e,e=>t.listEntries(e))}))})}function ts(){let e=z();return dt({queryKey:B.fieldTypes,queryFn:()=>e.listFieldTypes(),staleTime:1/0})}function ns(){let e=z();return dt({queryKey:B.images,queryFn:()=>e.listImages(),staleTime:1/0,select:e=>e.items})}function rs(){let e=z();return dt({queryKey:B.images,queryFn:()=>e.listImages(),staleTime:1/0,select:e=>e.upload})}function is(){let e=z(),t=w();return R({mutationFn:t=>e.removeImage(t),onSuccess:(e,n)=>{t.setQueryData(B.images,e=>e&&{...e,items:e.items.filter(e=>e.name!==n)})}})}function as(){let e=z(),t=w();return R({mutationFn:t=>e.uploadImage(t),onSuccess:e=>{t.setQueryData(B.images,t=>t&&{...t,items:[...t.items,e].sort((e,t)=>e.name.localeCompare(t.name))}),t.setQueryData(B.justUploaded,(t=[])=>[e.name,...t.filter(t=>t!==e.name)])}})}function os(){let e=w(),t=dt({queryKey:B.justUploaded,queryFn:()=>e.getQueryData(B.justUploaded)??[],initialData:[],staleTime:1/0});return new Set(t.data)}function ss(e){let t=z();return dt({queryKey:B.entry(e??``),queryFn:()=>t.getEntry(e??``),enabled:e!==null})}function cs(){let e=w();return t=>{e.setQueryData(B.entry(t.id),t),e.invalidateQueries({queryKey:B.entryLists}),e.invalidateQueries({queryKey:[...B.entry(t.id),`history`]})}}function ls(){let e=z();return R({mutationFn:t=>e.createEntry(t),onSuccess:cs()})}function us(){let e=z();return R({mutationFn:({id:t,changes:n})=>e.updateEntry(t,n),onSuccess:cs()})}function ds(){let e=z();return R({mutationFn:({id:t,expectedRevision:n})=>e.publishEntry(t,n),onSuccess:cs()})}function fs(){let e=z();return R({mutationFn:t=>e.unpublishEntry(t),onSuccess:cs()})}function ps(){let e=z();return dt({queryKey:B.trash,queryFn:()=>Zo({limit:Yo},t=>e.listTrash(t))})}function ms(){let e=z();return R({mutationFn:t=>e.duplicateEntry(t),onSuccess:cs()})}function hs(){let e=z();return R({mutationFn:({id:t,...n})=>e.scheduleEntry(t,n),onSuccess:cs()})}function gs(){let e=z();return R({mutationFn:t=>e.unscheduleEntry(t),onSuccess:cs()})}function _s(e,t=!0){let n=z();return dt({queryKey:[...B.entry(e),`history`],queryFn:()=>n.entryHistory(e),enabled:t})}function vs(){let e=z();return R({mutationFn:({id:t,...n})=>e.revertEntry(t,n),onSuccess:cs()})}function ys(){let e=z();return R({mutationFn:t=>e.trashEntry(t),onSuccess:cs()})}function bs(){let e=z();return R({mutationFn:t=>e.restoreEntry(t),onSuccess:cs()})}function xs(){let e=z(),t=w();return R({mutationFn:t=>e.deleteEntry(t),onSuccess:(e,n)=>{t.removeQueries({queryKey:B.entry(n)}),t.invalidateQueries({queryKey:B.entryLists})}})}function Ss(){let e=z();return dt({queryKey:B.forms,queryFn:()=>e.listForms()})}function Cs(e=!0){let t=z();return dt({queryKey:B.trashedForms,queryFn:()=>t.listTrashedForms(),enabled:e})}function ws(){let e=w();return t=>{e.setQueryData(B.forms,e=>e&&[...e.filter(e=>e.id!==t.id),t].sort((e,t)=>e.key.localeCompare(t.key)))}}function Ts(){let e=w();return()=>{e.invalidateQueries({queryKey:B.forms}),e.invalidateQueries({queryKey:B.submissions})}}function Es(){let e=z();return R({mutationFn:t=>e.createForm(t),onSuccess:ws()})}function Ds(){let e=z();return R({mutationFn:({id:t,changes:n})=>e.updateForm(t,n),onSuccess:ws()})}function Os(){let e=z();return R({mutationFn:t=>e.trashForm(t),onSuccess:Ts()})}function ks(){let e=z();return R({mutationFn:t=>e.restoreForm(t),onSuccess:Ts()})}function As(){let e=z();return R({mutationFn:t=>e.deleteForm(t),onSuccess:Ts()})}function js(e,t=!0){let n=z();return dt({queryKey:B.submissionList(e),queryFn:()=>Zo(e,e=>n.listSubmissions(e)),enabled:t})}function Ms(e,t=!0){let n=z();return dt({queryKey:B.submissionCounts(e),queryFn:()=>n.countSubmissions(e),enabled:t})}function Ns(e,t=!0){let n=z();return lt({queries:e.map(e=>({queryKey:B.submissionCounts(e),queryFn:()=>n.countSubmissions(e),enabled:t}))})}function Ps(e,t=!0){let n=z();return lt({queries:e.map(e=>{let r={formId:e,limit:Yo};return{queryKey:B.submissionList(r),queryFn:()=>Zo(r,e=>n.listSubmissions(e)),enabled:t}})})}function Fs(){let e=w();return()=>void e.invalidateQueries({queryKey:B.submissions})}function Is(){let e=z();return R({mutationFn:({id:t,status:n})=>e.markSubmission(t,n),onSuccess:Fs()})}function Ls(){let e=z();return R({mutationFn:t=>e.deleteSubmission(t),onSuccess:Fs()})}function Rs(){let e=z();return R({mutationFn:t=>e.exportSubmissions(t)})}function zs(){let e=z(),t=w(),n=Fs();return R({mutationFn:t=>e.forgetSender(t),onSuccess:()=>{n(),t.invalidateQueries({queryKey:B.contacts})}})}function Bs(e={}){let t=z();return dt({queryKey:B.contactList(e),queryFn:()=>Zo(e,e=>t.listContacts(e)),placeholderData:e=>e})}function Vs(e,t){let n=z(),r={search:e,limit:6};return dt({queryKey:B.contactList(r),queryFn:()=>n.listContacts(r),enabled:t&&e!==``,placeholderData:e=>e})}function Hs(e){let t=z();return lt({queries:e.map(e=>({queryKey:B.contactList(e),queryFn:()=>t.listContacts(e),placeholderData:e=>e}))})}function Us(){let e=z(),t=w();return R({mutationFn:({contact:t,stage:n})=>e.updateContact(t.id,{stage:n,expectedRevision:t.revision}),onSettled:()=>t.invalidateQueries({queryKey:B.contacts})})}function Ws(e={}){let t=z();return dt({queryKey:B.dealList(e),queryFn:()=>Zo(e,e=>t.listDeals(e)),placeholderData:e=>e})}function Gs(e){let t=z();return lt({queries:e.map(e=>({queryKey:B.dealList(e),queryFn:()=>t.listDeals(e)}))})}function Ks(e){let t=z();return lt({queries:e.map(e=>{let n={stage:e,limit:Yo};return{queryKey:B.dealList(n),queryFn:()=>Zo(n,e=>t.listDeals(e))}})})}function qs(){let e=z();return dt({queryKey:B.forecast,queryFn:()=>e.getForecast()})}function Js(){let e=w();return()=>e.invalidateQueries({queryKey:B.deals})}function Ys(){let e=z();return R({mutationFn:t=>e.createDeal(t),onSettled:Js()})}function Xs(){let e=z();return R({mutationFn:({id:t,changes:n})=>e.updateDeal(t,n),onSettled:Js()})}function Zs(){let e=z();return R({mutationFn:t=>e.deleteDeal(t),onSettled:Js()})}function Qs(){let e=z();return dt({queryKey:B.emailSettings,queryFn:()=>e.getEmailSettings()})}function $s(){let e=z(),t=w();return R({mutationFn:t=>e.saveEmailSettings(t),onSuccess:e=>t.setQueryData(B.emailSettings,e)})}function ec(){let e=z();return R({mutationFn:()=>e.sendTestEmail()})}function tc(){let e=z();return dt({queryKey:B.generalSettings,queryFn:()=>e.getGeneralSettings()})}function nc(){let e=z(),t=w();return R({mutationFn:t=>e.saveGeneralSettings(t),onSuccess:e=>t.setQueryData(B.generalSettings,e)})}function rc(){let e=z();return dt({queryKey:B.formsSettings,queryFn:()=>e.getFormsSettings()})}function ic(){let e=z(),t=w();return R({mutationFn:t=>e.saveFormsSettings(t),onSuccess:e=>t.setQueryData(B.formsSettings,e)})}function ac(){let e=z();return R({mutationFn:()=>e.testFormsSettings()})}function oc(){let e=z();return dt({queryKey:B.storageSettings,queryFn:()=>e.getStorageSettings()})}function sc(){let e=z(),t=w();return R({mutationFn:t=>e.saveStorageSettings(t),onSuccess:e=>{t.setQueryData(B.storageSettings,e),t.invalidateQueries({queryKey:B.images})}})}function cc(){let e=z();return R({mutationFn:()=>e.testStorage()})}function lc(){let e=z();return dt({queryKey:B.pipeline,queryFn:()=>e.getPipeline()})}function uc(){let e=z();return R({mutationFn:t=>e.savePipeline(t),onSuccess:gc()})}function dc(){let e=z();return dt({queryKey:B.customFields,queryFn:()=>e.getCustomFields()})}function fc(){let e=z(),t=w();return R({mutationFn:t=>e.saveCustomFields(t),onSuccess:e=>t.setQueryData(B.customFields,e)})}function pc(){let e=z();return dt({queryKey:B.team,queryFn:()=>e.listTeam()})}function mc(e){let t=z();return dt({queryKey:B.contact(e),queryFn:()=>t.getContact(e)})}function hc(e){let t=z();return dt({queryKey:B.contactTimeline(e),queryFn:()=>t.contactTimeline(e)})}function gc(){let e=w();return()=>void e.invalidateQueries({queryKey:B.contacts})}function _c(){let e=z();return R({mutationFn:t=>e.createContact(t),onSuccess:gc()})}var vc=50;function yc(){let e=z();return R({mutationFn:async t=>{let n={added:0,filled:0,unchanged:0,problems:[]};for(let r=0;r<t.length;r+=vc){let i=await e.importContacts(t.slice(r,r+vc));n.added+=i.added,n.filled+=i.filled,n.unchanged+=i.unchanged,n.problems.push(...i.problems.map(e=>({...e,row:e.row+r})))}return n},onSettled:gc()})}function bc(){let e=z();return R({mutationFn:({id:t,changes:n})=>e.updateContact(t,n),onSuccess:gc()})}function xc(){let e=z(),t=w();return R({mutationFn:t=>e.eraseContact(t),onSuccess:(e,n)=>{t.removeQueries({queryKey:B.contact(n)}),t.removeQueries({queryKey:B.contactTimeline(n)}),t.invalidateQueries({queryKey:B.contactList({}).slice(0,2)}),t.invalidateQueries({queryKey:B.submissions})}})}function Sc(){let e=z();return R({mutationFn:({id:t,text:n})=>e.addContactNote(t,n),onSuccess:gc()})}function Cc(){let e=z();return R({mutationFn:({id:t,noteId:n})=>e.deleteContactNote(t,n),onSuccess:gc()})}function wc(){let e=z();return R({mutationFn:t=>e.exportContact(t)})}function Tc(){let e=z();return R({mutationFn:t=>e.previewEntry(t)})}var Ec=18e5;function Dc(e,t){let n=z();return dt({queryKey:[`page-preview`,e,t],queryFn:()=>n.previewEntry(e??``),enabled:e!==void 0,placeholderData:e=>e,staleTime:Ec,refetchInterval:Ec,retry:!1})}function Oc(){let e=z();return dt({queryKey:B.people,queryFn:()=>e.listPeople()})}function kc(){let e=w();return()=>void e.invalidateQueries({queryKey:B.people})}function Ac(){let e=z();return R({mutationFn:t=>e.invitePerson(t),onSuccess:kc()})}function jc(){let e=z();return R({mutationFn:({id:t,role:n})=>e.changePersonRole(t,n),onSuccess:kc()})}function Mc(){let e=w(),t=z();return R({mutationFn:({id:e,name:n})=>t.renamePerson(e,n),onSuccess:()=>{e.invalidateQueries({queryKey:B.people}),e.invalidateQueries({queryKey:B.session}),e.invalidateQueries({queryKey:B.profile})}})}function Nc(){let e=z();return dt({queryKey:B.profile,queryFn:()=>e.getProfile()})}function Pc(){let e=w();return t=>{e.setQueryData(B.profile,t),e.setQueryData(B.session,t),e.invalidateQueries({queryKey:B.people})}}function Fc(){let e=z();return R({mutationFn:t=>e.saveProfile(t),onSuccess:Pc()})}function Ic(){let e=z();return R({mutationFn:t=>e.askEmailChange(t)})}function Lc(){let e=z();return R({mutationFn:t=>e.confirmEmailChange(t),onSuccess:Pc()})}function Rc(){let e=z();return R({mutationFn:t=>e.removePerson(t),onSuccess:kc()})}function zc(){let e=z();return dt({queryKey:B.tokens,queryFn:()=>e.listTokens()})}function Bc(){let e=w();return()=>void e.invalidateQueries({queryKey:B.tokens})}function Vc(){let e=z();return R({mutationFn:t=>e.createToken(t),onSuccess:Bc()})}function Hc(){let e=z();return R({mutationFn:t=>e.revokeToken(t),onSuccess:Bc()})}function Uc(){let e=z();return dt({queryKey:B.plugins,queryFn:()=>e.listPlugins()})}function Wc(e){let t=z();return dt({queryKey:B.pluginEditors,queryFn:()=>t.listPluginEditors(),enabled:e})}function Gc(){let e=z(),t=w();return R({mutationFn:({name:t,enabled:n})=>e.setPluginEnabled(t,n),onSuccess:()=>void t.invalidateQueries()})}function Kc(e){let t=z();return dt({queryKey:B.pluginSettings(e),queryFn:()=>t.getPluginSettings(e)})}function qc(e){let t=z(),n=w();return R({mutationFn:n=>t.savePluginSettings(e,n),onSuccess:t=>n.setQueryData(B.pluginSettings(e),t)})}function Jc(e){let t=z(),n=w();return R({mutationFn:({key:n,value:r})=>t.setPluginSecret(e,n,r),onSuccess:t=>n.setQueryData(B.pluginSettings(e),t)})}function Yc(e,t){let n=z();return dt({queryKey:B.pluginTasks(e),queryFn:()=>n.listPluginTasks(e),enabled:t,refetchOnMount:`always`})}function Xc(e){let t=z(),n=w();return R({mutationFn:n=>t.retryPluginTask(e,n),onSettled:()=>n.invalidateQueries({queryKey:B.pluginTasks(e)})})}function Zc(){let e=z();return dt({queryKey:B.passkeys,queryFn:()=>e.listPasskeys()})}function Qc(){let e=w();return()=>void e.invalidateQueries({queryKey:B.passkeys})}function $c(){let e=z();return R({mutationFn:t=>e.addPasskey(t),onSuccess:Qc()})}function el(){let e=z();return R({mutationFn:t=>e.removePasskey(t),onSuccess:Qc()})}function tl(){let e=z();return R({mutationFn:t=>e.requestSignInLink(t)})}function nl(){let e=z(),t=w();return R({mutationFn:()=>e.signInWithPasskey(),onSuccess:e=>t.setQueryData(B.session,e)})}function rl(){let e=z(),t=w();return R({mutationFn:()=>e.signOut(),onSuccess:()=>{t.clear(),t.setQueryData(B.session,null)}})}var il=class extends Error{constructor(e){super(e),this.name=new.target.name}},al=class extends il{code=`conflict`},ol=[`editor`,`author`],sl=[`owner`,`editor`,`author`];function cl(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function ll(e,t=`|`){return e.map(e=>Il(e)).join(t)}function ul(e,t){return typeof t==`bigint`?t.toString():t}var dl=class{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function fl(e){return new dl(e)}function pl(e){return e==null}function ml(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}var hl=Symbol(`evaluating`);function gl(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==hl)return r===void 0&&(r=hl,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function _l(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function vl(e){let t=Object.getOwnPropertyDescriptor(e,`shape`);return t?.get?t.get.raw:t?.value}function yl(e){return vl(e._zod.def)??e._zod.def.shape}function bl(e,t,n){Object.defineProperty(e,t,{get(){let e=n();return _l(this,t,e),e},enumerable:!0,configurable:!0})}function xl(e,t,n){t in e?_l(e,t,n):e[t]=n}function Sl(e,t,n,r){let i=yl(t);for(let a of n){let n=Object.getOwnPropertyDescriptor(i,a);n.enumerable&&(n.get?bl(e,a,()=>{let e=t._zod.def.shape[a];return r?r(e,a):e}):xl(e,a,r?r(n.value,a):n.value))}}function Cl(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?bl(e,n,()=>t[n]):xl(e,n,r.value))}}function wl(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function Tl(e){return JSON.stringify(e)}function El(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var Dl=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function Ol(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var kl=fl(()=>{if(Eu.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Al(e){if(Ol(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return Ol(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function jl(e){return Al(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var Ml=new Set([`string`,`number`,`symbol`]);function Nl(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Pl(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Fl(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Il(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function Ll(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout===`optional`)}var Rl={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},zl={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]};function Bl(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);let i={};return Sl(i,e,Vl(e,t)),Pl(e,wl(n,{shape:i,checks:[]}))}function Vl(e,t){let n=yl(e),r=[];for(let e of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,e)?.enumerable)throw Error(`Unrecognized key: "${String(e)}"`);t[e]&&r.push(e)}return r}function Hl(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);let i=new Set(Vl(e,t)),a={};return Sl(a,e,Reflect.ownKeys(yl(e)).filter(e=>!i.has(e))),Pl(e,wl(n,{shape:a,checks:[]}))}function Ul(e,t){if(!Al(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=yl(e);for(let e of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Pl(e,wl(e._zod.def,{shape:Wl(e,t)}))}function Wl(e,t){let n={};return Sl(n,e,Reflect.ownKeys(yl(e))),Cl(n,t),n}function Gl(e,t){if(!Al(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Pl(e,wl(e._zod.def,{shape:Wl(e,t)}))}function Kl(e,t){if(!t?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);let n={};return Sl(n,e,Reflect.ownKeys(yl(e))),Sl(n,t,Reflect.ownKeys(yl(t))),Pl(e,wl(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function ql(e,t,n,r=`partial`){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${r}() cannot be used on object schemas containing refinements`);let a=n?new Set(Vl(t,n)):void 0,o={};return Sl(o,t,Reflect.ownKeys(yl(t)),e&&((t,n)=>a&&!a.has(n)?t:new e({type:`optional`,innerType:t}))),Pl(t,wl(t._zod.def,{shape:o,checks:[]}))}function Jl(e,t,n){let r=n?new Set(Vl(t,n)):void 0,i={};return Sl(i,t,Reflect.ownKeys(yl(t)),(t,n)=>r&&!r.has(n)?t:new e({type:`nonoptional`,innerType:t})),Pl(t,wl(t._zod.def,{shape:i}))}function Yl(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Xl(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function Zl(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Ql(e){return typeof e==`string`?e:e?.message}function $l(e){let t=[];for(let n of e??[]){let e=n._zod.def;if(!/_(length|size)$|_equals$/.test(e.check))break;let r=e.maximum??e.length??e.size;r>=0&&t.push([r,n])}return t}function eu(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function tu(e,t,n){var r;let i=e.inst?._zod?.traits;i?.has(`$ZodType`)&&(i.has(`$ZodCheck`)?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let a=e.schema===e.inst?void 0:e.schema?._zod.def?.error,o=e.message?e.message:Ql(e.inst?._zod.def?.error?.(e))??Ql(a?.(e))??Ql(t?.error?.(e))??Ql(n.customError?.(e))??Ql(n.localeError?.(e))??`Invalid input`,s={};for(let t of Object.keys(e))t!==`inst`&&t!==`schema`&&t!==`continue`&&t!==`input`&&t!==`__proto__`&&(s[t]=e[t]);return s.path??=[],s.message=o,t?.reportInput&&(s.input=e.input),s}var nu=/[\uD800-\uDBFF]/;function ru(e){let t=e.length;if(!nu.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320&&(n--,r++);return n}function iu(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function au(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function ou(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function su(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):du(e,n,r.value)}}function cu(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function lu(e,t,n){return cu(e,t,n,!1)}function uu(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return cu(this,n,r(this))},set(e){cu(this,n,e)}})}return t}function du(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:cu(this,t,n.bind(this))},set(e){cu(this,t,e)}})}function fu(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var pu,mu=!1,hu={configurable:!0,get(){mu=!0}};function gu(e,t,n){let r=Object.getPrototypeOf(e._zod);t in r&&pu!==e._zod?pu=void 0:(pu=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,hu);let e=mu;mu=!1;try{let r=n(this);return mu?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),mu||=e,r}catch(n){throw delete this[t],mu||=e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}}))}function _u(e,t,n,r){let i=fu(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){let e={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,e),e.value=n(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:e})}})}var vu=`~constantCatch`;function yu(e){let t=()=>e;return t[vu]=!0,t}var bu,xu={value:void 0,enumerable:!1},Su=`captureStackTrace`in Error?Error:null;function Cu(e){let t=Su;if(t){let n=t.stackTraceLimit;if(typeof n==`number`){try{t.stackTraceLimit=0}catch{return Su=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function V(e,t,n,r){let i={};function a(e){this.def=e,this.constr=d,this.traits=new Set}a.prototype=i;let o=n,s=o&&new WeakSet;function c(n,r){if(!n._zod){xu.value=new a(r);try{Object.defineProperty(n,"_zod",xu)}finally{xu.value=void 0}}else if(n._zod.traits.has(e))return;if(n._zod.traits.add(e),t(n,r),s){let e=Object.getPrototypeOf(n),t=n._zod.constr.prototype,r=e;for(;r&&r!==t;)r=Object.getPrototypeOf(r);let i=r??e;s.has(i)||(s.add(i),su(i,o))}let i=d.prototype;for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(e in n||(n[e]=i[e].bind(n)))}let l=r?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function d(e){let t=r?.Parent?Cu(u):this;c(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:t=>r?.Parent&&t instanceof r.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var wu=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},Tu=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(bu=globalThis).__zod_globalConfig??(bu.__zod_globalConfig={});var Eu=globalThis.__zod_globalConfig;function Du(e){return e&&Object.assign(Eu,e),Eu}function Ou(){let e=this._zod;return e.message??=JSON.stringify(e.def,ul,2),e.message}function ku(e){this._zod.message=e}var Au={get:Ou,set:ku,enumerable:!0,configurable:!0},ju={value:void 0,enumerable:!1},Mu=new WeakSet([Object.prototype,Error.prototype]),Nu=V(`$ZodError`,(e,t)=>{e.name=`$ZodError`,ju.value=t,Object.defineProperty(e,"issues",ju),ju.value=void 0,Object.defineProperty(e,"message",Au);let n=Object.getPrototypeOf(e);Mu.has(n)||(Mu.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))});function Pu(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t===`__proto__`?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function Fu(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?Pu(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Iu(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i],o=i===e.length-1;if(n===`_errors`){o&&r._errors.push(t(a)),i++;continue}Object.prototype.hasOwnProperty.call(r,n)||Object.defineProperty(r,n,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let s=r[n];o&&s._errors.push(t(a)),r=s,i++}}}};return r(e),n}function Lu(e,t){return{callee:t?.callee??e,Err:t?.Err}}var Ru=e=>{let t=(n,r,i,a)=>{let o=i?{...i,async:!1}:{async:!1},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new wu;if(s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>tu(e,o,Du())));throw Dl(n,a?.callee??t),n}return s.value};return t},zu=e=>{let t=async(n,r,i,a)=>{let o=i?{...i,async:!0}:{async:!0},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>tu(e,o,Du())));throw Dl(n,a?.callee??t),n}return s.value};return t},Bu=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new wu;return a.issues.length?Vu(e,a.issues,i):{success:!0,data:a.value}};function Vu(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(e=>tu(e,n,Du()))),t=void 0,n=void 0),r},set error(e){r=e,t=void 0,n=void 0}}}var Hu=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?Vu(e,a.issues,i):{success:!0,data:a.value}},Uu=Symbol.for(`zod.compile.invalid`),Wu=Symbol.for(`zod.compile.fallback`),Gu=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==Uu)return!0;if(r.definite===!0&&n===void 0)return!1}return Ku(e,t,n)});function Ku(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},i=e._zod.bag.fallbackRun,a;if(i?(r[Wu]=!0,a=i({value:t,issues:[]},r)):a=e._zod.run({value:t,issues:[]},r),a instanceof Promise)throw new wu;return a.issues.length===0}var qu=async(e,t,n)=>{let r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},i=e._zod.run({value:t,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length===0},Ju=e=>{let t=Ru(e),n=(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return t(e,r,o,Lu(n,a))};return n},Yu=e=>{let t=Ru(e),n=(e,r,i,a)=>t(e,r,i,Lu(n,a));return n},Xu=e=>{let t=zu(e),n=async(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return await t(e,r,o,Lu(n,a))};return n},Zu=e=>{let t=zu(e),n=async(e,r,i,a)=>await t(e,r,i,Lu(n,a));return n},Qu=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Bu(e)(t,n,i)},$u=e=>(t,n,r)=>Bu(e)(t,n,r),ed=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Hu(e)(t,n,i)},td=e=>async(t,n,r)=>Hu(e)(t,n,r),nd=/^[cC][0-9a-z]{6,}$/,rd=/^[0-9a-z]+$/,id=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,ad=/^[0-9a-vA-V]{20}$/,od=/^[A-Za-z0-9]{27}$/,sd=/^[a-zA-Z0-9_-]{21}$/;function cd(e){return RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var ld=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ud=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,dd=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,fd=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,pd=`^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`;function md(){return new RegExp(pd,`u`)}var hd=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,gd=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,_d=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,vd=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,yd=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,bd=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,xd=/^https?$/,Sd=/^\+[1-9]\d{6,14}$/,Cd=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;function wd(e){return RegExp(`^${e}$`)}var Td=wd(Cd);function Ed(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Dd(e){return RegExp(`^${Ed(e)}$`)}function Od(e){let t=[`Z`];e.offset&&t.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let n=`${Ed({precision:e.precision,seconds:!0})}(?:${t.join(`|`)})`,r=e.local?`${n}|${Ed({precision:e.precision})}`:n;return RegExp(`^${Cd}T(?:${r})$`)}var kd=/^[\s\S]{0,}$/,Ad=/^[^A-Z]*$/,jd=/^[^a-z]*$/,Md=V(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Nd=e=>{let t=e.value;return!pl(t)&&t.length!==void 0},Pd=V(`$ZodCheckMaxLength`,(e,t)=>{var n;Md.init(e,t),(n=e._zod.def).when??(n.when=Nd),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>t.maximum?ru(r):i)<=t.maximum)return;let a=iu(r);n.issues.push({origin:a,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Fd=V(`$ZodCheckMinLength`,(e,t)=>{var n;Md.init(e,t),(n=e._zod.def).when??(n.when=Nd),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>=t.minimum&&i<t.minimum*2?ru(r):i)>=t.minimum)return;let a=iu(r);n.issues.push({origin:a,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Id=V(`$ZodCheckLengthEquals`,(e,t)=>{var n;Md.init(e,t),(n=e._zod.def).when??(n.when=Nd),e._zod.check=n=>{let r=n.value,i=r.length,a=typeof r==`string`&&i>=t.length&&i<=t.length*2?ru(r):i;if(a===t.length)return;let o=iu(r),s=a>t.length;n.issues.push({origin:o,...s?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Ld=V(`$ZodCheckStringFormat`,(e,t)=>{var n,r;Md.init(e,t),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Rd=V(`$ZodCheckRegex`,(e,t)=>{Ld.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),zd=V(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Ad,Ld.init(e,t)}),Bd=V(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=jd,Ld.init(e,t)}),Vd=V(`$ZodCheckIncludes`,(e,t)=>{Md.init(e,t);let n=Nl(t.includes);t.pattern=new RegExp(typeof t.position==`number`?`^.{${t.position},}${n}`:n),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Hd=V(`$ZodCheckStartsWith`,(e,t)=>{Md.init(e,t);let n=RegExp(`^${Nl(t.prefix)}.*`);t.pattern??=n,e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Ud=V(`$ZodCheckEndsWith`,(e,t)=>{Md.init(e,t);let n=RegExp(`.*${Nl(t.suffix)}$`);t.pattern??=n,e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Wd=V(`$ZodCheckOverwrite`,(e,t)=>{Md.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),Gd=class{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1;try{e(this)}finally{--this.indent}}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
10
+ `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.content??[``];return new e(...Object.keys(this.closed),`return function (${this.args.join(`, `)}) {\n${t.join(`
11
+ `)}\n};`)(...Object.values(this.closed))}},Kd={major:4,minor:6,patch:7},qd=V(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Kd;let r=e._zod.def.checks,i=e._zod.traits.has(`$ZodCheck`)?[e,...r??[]]:r?.length?[...r]:[];for(let t of i)for(let n of t._zod.onattach)n(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(t,n,r)=>{if(t.memo)return t;let i=Yl(t),a;for(let o of n){if(o._zod.def.when){if(Xl(t)||!o._zod.def.when(t))continue}else if(i)continue;let n=t.issues.length,s=o._zod.check(t);if(s instanceof Promise&&r?.async===!1)throw new wu;if(a||s instanceof Promise)a=(a??Promise.resolve()).then(async()=>{await s,t.issues.length!==n&&(eu(t.issues,n,e),i||=Yl(t,n))});else{if(t.issues.length===n)continue;eu(t.issues,n,e),i||=Yl(t,n)}}return a?a.then(()=>t):t},n=(n,r,a)=>{if(Yl(n))return n.aborted=!0,n;let o=t(r,i,a);if(o instanceof Promise){if(a.async===!1)throw new wu;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(r,a)=>{if(a.skipChecks)return e._zod.parse(r,a);if(a.direction===`backward`){let t=e._zod.parse({value:r.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,r,a)):n(t,r,a)}let o=e._zod.parse(r,a);if(o instanceof Promise){if(a.async===!1)throw new wu;return o.then(e=>t(e,i,a))}return t(o,i,a)}}},{get"~standard"(){return lu(this,`~standard`,Xd(this))},set"~standard"(e){cu(this,`~standard`,e)}}),Jd=(e,t)=>e.issues.length?{issues:e.issues.map(e=>tu(e,t,Du()))}:{value:e.value};async function Yd(e,t){let n={async:!0};return Jd(await e._zod.run({value:t,issues:[]},n),n)}function Xd(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return Jd(r,n)}catch{}return Yd(e,t)},vendor:`zod`,version:1}}var Zd=V(`$ZodString`,(e,t)=>{qd.init(e,t),e._zod.pattern=t.pattern??kd,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),Qd=V(`$ZodStringFormat`,(e,t)=>{Ld.init(e,t),Zd.init(e,t)}),$d=V(`$ZodGUID`,(e,t)=>{t.pattern??=ud,Qd.init(e,t)}),ef=V(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=dd(e)}else t.pattern??=dd();Qd.init(e,t)}),tf=V(`$ZodEmail`,(e,t)=>{t.pattern??=fd,Qd.init(e,t)});function nf(e){try{return typeof URL<`u`&&typeof URL.canParse==`function`?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function rf(e,t){return!(`normalize`in t)&&!(`hostname`in t)&&!(`protocol`in t)?nf(e)||2:af(e,t)}function af(e,t){if(!t.normalize&&t.protocol?.source===xd.source&&!/^https?:\/\//i.test(e))return 1;try{if(typeof URL<`u`){let t=URL;if(typeof t.parse==`function`)return t.parse(e)??2}return new URL(e)}catch{return 2}}var of=/[\t\n\r]/g;function sf(e){return e.replace(of,``)}function cf(e,t){return t.lastIndex=0,t.test(e.hostname)}function lf(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(`:`)?e.protocol.slice(0,-1):e.protocol)}var uf=V(`$ZodURL`,(e,t)=>{Qd.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=rf(r,t);if(i===1){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}if(i===2){n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort});return}if(i===!0){n.value=sf(r);return}t.hostname&&!cf(i,t.hostname)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!lf(i,t.protocol)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?i.href:sf(r);return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),df=V(`$ZodEmoji`,(e,t)=>{t.pattern??=md(),Qd.init(e,t)}),ff=V(`$ZodNanoID`,(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw Error(`Invalid nanoid length: ${t.length}`);t.pattern??=t.length===void 0?sd:cd(t.length),Qd.init(e,t)}),pf=V(`$ZodCUID`,(e,t)=>{t.pattern??=nd,Qd.init(e,t)}),mf=V(`$ZodCUID2`,(e,t)=>{t.pattern??=rd,Qd.init(e,t)}),hf=V(`$ZodULID`,(e,t)=>{t.pattern??=id,Qd.init(e,t)}),gf=V(`$ZodXID`,(e,t)=>{t.pattern??=ad,Qd.init(e,t)}),_f=V(`$ZodKSUID`,(e,t)=>{t.pattern??=od,Qd.init(e,t)}),vf=V(`$ZodISODateTime`,(e,t)=>{t.pattern??=Od(t),Qd.init(e,t)}),yf=V(`$ZodISODate`,(e,t)=>{t.pattern??=Td,Qd.init(e,t)}),bf=V(`$ZodISOTime`,(e,t)=>{t.pattern??=Dd(t),Qd.init(e,t)}),xf=V(`$ZodISODuration`,(e,t)=>{t.pattern??=ld,Qd.init(e,t)}),Sf=V(`$ZodIPv4`,(e,t)=>{t.pattern??=hd,Qd.init(e,t)}),Cf=/^[0-9a-fA-F:.]+$/;function wf(e){return Cf.test(e)?nf(`http://[${e}]`):!1}var Tf=V(`$ZodIPv6`,(e,t)=>{t.pattern??=gd,Qd.init(e,t),e._zod.check=n=>{wf(n.value)||n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}),Ef=V(`$ZodCIDRv4`,(e,t)=>{t.pattern??=_d,Qd.init(e,t)});function Df(e){let t=e.split(`/`);if(t.length!==2)return!1;let[n,r]=t;if(!r)return!1;let i=Number(r);return`${i}`!==r||i<0||i>128?!1:wf(n)}var Of=V(`$ZodCIDRv6`,(e,t)=>{t.pattern??=vd,Qd.init(e,t),e._zod.check=n=>{Df(n.value)||n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}});function kf(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var Af=/^[0-9a-zA-Z+/]*={0,2}$/,jf=V(`$ZodBase64`,(e,t)=>{t.pattern??=Af,Qd.init(e,t),e._zod.check=n=>{kf(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),Mf=/^[A-Za-z0-9_-]*$/;function Nf(e){if(!Mf.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return kf(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var Pf=V(`$ZodBase64URL`,(e,t)=>{t.pattern??=Mf,Qd.init(e,t),e._zod.check=n=>{Nf(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),Ff=V(`$ZodE164`,(e,t)=>{t.pattern??=Sd,Qd.init(e,t)});function If(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var Lf=V(`$ZodJWT`,(e,t)=>{Qd.init(e,t),e._zod.check=n=>{If(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Rf=V(`$ZodUnknown`,(e,t)=>{qd.init(e,t),e._zod.parse=e=>e}),zf=V(`$ZodNever`,(e,t)=>{qd.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function Bf(e,t){let n=$l(e._zod.def.checks);if(!n.length)return;let r=Math.min(...n.map(e=>e[0])),i=e._zod.parse;e._zod.parse=(n,a)=>{let o=t(n.value);if(o>r&&!a?.skipChecks&&a?.direction!==`backward`){for(let[t,r]of $l(e._zod.def.checks))if(o>t&&r._zod.def.when(n)){let t=n.issues.length;return r._zod.check(n),n.issues[t].continue=!1,eu(n.issues,t,e),n}}return i(n,a)}}var Vf=e=>Array.isArray(e)?e.length:-1;function Hf(e,t,n){e.issues.length&&t.issues.push(...Zl(n,e.issues)),t.value[n]=e.value}var Uf=V(`$ZodArray`,(e,t)=>{qd.init(e,t);let n=Eu.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({expected:`array`,code:`invalid_type`,input:a,inst:e}),r;r.value=n?n.alloc(e,r,Array(a.length),i):Array(a.length);let o=[],s=i?.abortEarly;for(let e=0;e<a.length;e++){let n=a[e],c=t.element._zod.run({value:n,issues:[]},i);if(c instanceof Promise)o.push(c.then(t=>Hf(t,r,e)));else if(Hf(c,r,e),s&&c.issues.length!==0&&Yl(c))break}return o.length?Promise.all(o).then(()=>r):r},Bf(e,Vf)});function Wf(e,t,n,r,i,a){let o=n in r,s=a===`optional`;if(o||!s||i!==`optional`){if(e.issues.length){if(i!==void 0&&s&&!o)return;t.issues.push(...Zl(n,e.issues))}!o&&i===void 0?e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]}):e.value===void 0?(o||i===`defaulted`&&!s)&&(t.value[n]=void 0):t.value[n]=e.value}}var Gf=[];function Kf(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:Gf,i=r.length?[...t,...r]:t;for(let t of i)if(!e.shape?.[t]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);let a=Ll(e.shape);return{...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function qf(e,t,n,r,i,a,o){let s=[],c=i.keySet,l=i.catchall._zod,u=l.def.type,d=l.optin,f=l.optout,p=0;for(let i in t){if(o&&n.issues.length!==p){if(Yl(n,p))break;p=n.issues.length}if(c.has(i))continue;if(i===`__proto__`){u===`never`&&s.push(i);continue}if(u===`never`){s.push(i);continue}let a=l.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Wf(e,n,i,t,d,f))):Wf(a,n,i,t,d,f)}return s.length&&n.issues.push({code:`unrecognized_keys`,keys:s,input:t,inst:a,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var Jf=V(`$ZodObject`,(e,t)=>{qd.init(e,t);let n=Object.getOwnPropertyDescriptor(t,`shape`),r=n?.get?n.get.raw:t.shape??{};if(r){let e=()=>{let n={...r};return Object.defineProperty(t,"shape",{value:n}),e.raw=n,n};e.raw=r,Object.defineProperty(t,"shape",{get:e})}let i=fl(()=>Kf(t));gu(e,`propValues`,e=>{let t=e.def.shape,n={};for(let e in t){let r=t[e]._zod;if(r.values){Object.prototype.hasOwnProperty.call(n,e)||_l(n,e,new Set);for(let t of r.values)n[e].add(t);r.optin!==void 0&&n[e].add(void 0)}}return n});let a=Ol,o=t.catchall,s,c=Eu.memoizer;c?.attach(e),e._zod.parse=(t,n)=>{s??=i.value;let r=t.value;if(!a(r))return t.issues.push({expected:`object`,code:`invalid_type`,input:r,inst:e}),t;t.value=c?c.alloc(e,t,{},n):{};let l=[],u=s.shape,d=n?.abortEarly,f=t.issues.length;for(let e of s.allKeys){if(d&&t.issues.length!==f){if(Yl(t,f))break;f=t.issues.length}if(e===`__proto__`)continue;let i=u[e],a=i._zod.optin,o=i._zod.optout,s=i._zod.run({value:r[e],issues:[]},n);s instanceof Promise?l.push(s.then(n=>Wf(n,t,e,r,a,o))):Wf(s,t,e,r,a,o)}return o?qf(l,r,t,n,i.value,e,d===!0):l.length?Promise.all(l).then(()=>t):t}}),Yf=V(`$ZodObjectJIT`,(e,t)=>{Jf.init(e,t);let n=e._zod.parse,r=fl(()=>Kf(t)),i=Eu.memoizer,a=t=>{let n=r.value,a=n.symbolKeys,o=new Gd([`payload`,`ctx`],{shape:t,inst:e,memo:i,syms:a}),s=e=>`shape[${e}]._zod.run({ value: input[${e}], issues: [] }, ctx)`,c=(e,t)=>`
12
+ let ${e}_ab = false;
13
+ for (let i = 0; i < ${e}.issues.length; i++) {
14
+ const iss = ${e}.issues[i];
15
+ iss.path = iss.path ? [${t}, ...iss.path] : [${t}];
16
+ payload.issues.push(iss);
17
+ if (iss.continue !== true) ${e}_ab = true;
18
+ }
19
+ if (${e}_ab && ctx && ctx.abortEarly) {
20
+ payload.value = newResult;
21
+ return payload;
22
+ }`;o.write(`const input = payload.value;`);let l=Object.create(null),u=0;for(let e of n.allKeys)l[e]=`key_${u++}`;o.write(i?`const newResult = memo.alloc(inst, payload, {}, ctx);`:`const newResult = {};`);for(let e of n.allKeys){if(e===`__proto__`)continue;let n=l[e],r=typeof e==`symbol`?`syms[${a.indexOf(e)}]`:Tl(e),i=`${r} in input`,u=t[e],d=u?._zod?.optin,f=d!==void 0,p=u?._zod?.optout===`optional`;if(o.write(`const ${n} = ${s(r)};`),f&&p){let e=d===`optional`?`${n}_present`:`${n}.value !== undefined || ${n}_present`;o.write(`
23
+ const ${n}_present = ${i};
24
+ if (!${n}.issues.length || ${n}_present) {
25
+ if (${n}.issues.length) {${c(n,r)}
26
+ }
27
+
28
+ if (${e}) {
29
+ newResult[${r}] = ${n}.value;
30
+ }
31
+ }
32
+
33
+ `)}else f?(o.write(`
34
+ if (${n}.issues.length) {${c(n,r)}
35
+ }
36
+ `),d===`defaulted`?o.write(`newResult[${r}] = ${n}.value;`):o.write(`
37
+ if (${n}.value !== undefined || ${i}) {
38
+ newResult[${r}] = ${n}.value;
39
+ }
40
+ `)):o.write(`
41
+ const ${n}_present = ${i};
42
+ if (${n}.issues.length) {${c(n,r)}
43
+ }
44
+ if (!${n}_present && !${n}.issues.length) {
45
+ payload.issues.push({
46
+ code: "invalid_type",
47
+ expected: "nonoptional",
48
+ input: undefined,
49
+ path: [${r}]
50
+ });
51
+ if (ctx && ctx.abortEarly) {
52
+ payload.value = newResult;
53
+ return payload;
54
+ }
55
+ }
56
+
57
+ if (${n}_present) {
58
+ newResult[${r}] = ${n}.value;
59
+ }
60
+
61
+ `)}return o.write(`payload.value = newResult;`),o.write(`return payload;`),o.compile()},o,s=Ol,c=!Eu.jitless,l=c&&kl.value,u=t.catchall,d;e._zod.parse=(i,f)=>{d??=r.value;let p=i.value;return s(p)?c&&l&&f?.async===!1&&f.jitless!==!0?(o||=a(t.shape),i=o(i,f),u?qf([],p,i,f,d,e,f?.abortEarly===!0):i):n(i,f):(i.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),i)}});function Xf(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Yl(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>tu(e,r,Du())))}),t)}var Zf=V(`$ZodUnion`,(e,t)=>{qd.init(e,t),gu(e,`optin`,e=>e.def.options.some(e=>e._zod.optin===`defaulted`)?`defaulted`:e.def.options.some(e=>e._zod.optin!==void 0)?`optional`:void 0),gu(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),gu(e,`values`,e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),gu(e,`pattern`,e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>ml(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>Xf(t,r,e,i)):Xf(o,r,e,i)}});function Qf(e){let t=new Map;for(let n of e.options){let r=n._zod.propValues?.[e.discriminator];if(!r||r.size===0)throw Error(`Invalid discriminated union option at index "${e.options.indexOf(n)}"`);for(let e of r)if(t.has(e)){if(e!==void 0)throw Error(`Duplicate discriminator value "${String(e)}"`);t.set(e,null)}else t.set(e,n)}return t}var $f=V(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,Zf.init(e,t);let n=e._zod.parse;gu(e,`propValues`,e=>{let t={},n=0;for(let r of e.def.options){let i=r._zod.propValues;if(!i||Object.keys(i).length===0)throw Error(`Invalid discriminated union option at index "${e.def.options.indexOf(r)}"`);i[e.def.discriminator]?.has(void 0)&&n++;for(let[e,n]of Object.entries(i)){Object.prototype.hasOwnProperty.call(t,e)||_l(t,e,new Set);for(let r of n)t[e].add(r)}}return!e.def.unionFallback&&n>1&&t[e.def.discriminator]?.delete(void 0),t}),t.options.forEach((e,n)=>{let r=vl(e._zod.def);if(r&&!Object.prototype.hasOwnProperty.call(r,t.discriminator))throw Error(`Invalid discriminated union option at index "${n}"`)});let r=fl(()=>Qf(t));e._zod.parse=(i,a)=>{let o=i.value;if(!Ol(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=o?.[t.discriminator],c=r.value.get(s);return c&&(s!==void 0||a.direction!==`backward`)?c._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()).filter(e=>r.value.get(e)!==null),input:o,path:[t.discriminator],inst:e}),i)}}),ep=V(`$ZodIntersection`,(e,t)=>{qd.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>np(e,t,n)):np(e,i,a)}});function tp(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Al(e)&&Al(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};Object.prototype.hasOwnProperty.call(i,`__proto__`)&&delete i.__proto__;for(let n of r){if(n===`__proto__`)continue;let r=tp(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=tp(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function np(e,t,n){let r=new Map,i,a=new Map,o=(e,t)=>{let n;if(e.code===`unrecognized_keys`&&!e.path?.length)i??=e,n=e.keys;else if(e.code===`invalid_key`&&e.origin===`record`&&e.path?.length===1){let t=String(e.path[0]);a.has(t)||a.set(t,e),n=[t]}else return!1;for(let e of n)r.has(e)||r.set(e,{}),r.get(e)[t]=!0;return!0};for(let n of t.issues)o(n,`l`)||e.issues.push(n);for(let t of n.issues)o(t,`r`)||e.issues.push(t);let s=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(s.length){let t=i?s.filter(e=>i.keys.includes(e)):[];t.length&&e.issues.push({...i,keys:t});for(let n of s)!t.includes(n)&&a.has(n)&&e.issues.push(a.get(n))}let c=tp(t.value,n.value);if(!c.valid){if(Yl(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var rp=V(`$ZodEnum`,(e,t)=>{qd.init(e,t);let n=cl(t.entries),r=new Set(n);e._zod.values=r,gu(e,`pattern`,e=>{let t=cl(e.def.entries).filter(e=>Ml.has(typeof e));return RegExp(t.length?`^(${t.map(e=>Nl(e.toString())).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),ip=V(`$ZodLiteral`,(e,t)=>{qd.init(e,t);let n=new Set(t.values);e._zod.values=n,gu(e,`pattern`,e=>{let t=e.def.values;return RegExp(t.length?`^(${t.map(e=>typeof e==`string`?Nl(e):e?Nl(e.toString()):String(e)).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),ap=V(`$ZodTransform`,(e,t)=>{qd.init(e,t),e._zod.optin=`optional`,Eu.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Tu(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new wu;return n.value=i,n}});function op(e,t){return e.value=t.issues.length?void 0:t.value,e}var sp=V(`$ZodOptional`,(e,t)=>{qd.init(e,t),gu(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,gu(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),gu(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${ml(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(e.value===void 0){if(t.innerType._zod.optin!==`defaulted`)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>op(e,t)):op(e,r)}return t.innerType._zod.run(e,n)}}),cp=V(`$ZodExactOptional`,(e,t)=>{sp.init(e,t),gu(e,`values`,e=>e.def.innerType._zod.values),gu(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),lp=V(`$ZodNullable`,(e,t)=>{qd.init(e,t),gu(e,`optin`,e=>e.def.innerType._zod.optin),gu(e,`optout`,e=>e.def.innerType._zod.optout),gu(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${ml(t.source)}|null)$`):void 0}),gu(e,`values`,e=>e.def.innerType._zod.values?new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),up=V(`$ZodDefault`,(e,t)=>{qd.init(e,t),e._zod.optin=`defaulted`,gu(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>dp(e,t)):dp(r,t)}});function dp(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var fp=V(`$ZodPrefault`,(e,t)=>{qd.init(e,t),e._zod.optin=`defaulted`,gu(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),pp=V(`$ZodNonOptional`,(e,t)=>{qd.init(e,t),gu(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>mp(t,e)):mp(i,e)}});function mp(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function hp(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>tu(e,r,Du()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var gp=V(`$ZodCatch`,(e,t)=>{qd.init(e,t),gu(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),gu(e,`optout`,e=>e.def.innerType._zod.optout),gu(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(r=>hp(e,r,t,n)):hp(e,r,t,n)}}),_p=V(`$ZodPipe`,(e,t)=>{qd.init(e,t),gu(e,`values`,e=>e.def.in._zod.values),gu(e,`optin`,e=>e.def.in._zod.optin),gu(e,`optout`,e=>e.def.out._zod.optout),gu(e,`propValues`,e=>e.def.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>vp(e,t.in,n)):vp(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>vp(e,t.out,n)):vp(r,t.out,n)}});function vp(e,t,n){return e.issues.some(e=>e.code!==`unrecognized_keys`)?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var yp=V(`$ZodPreprocess`,(e,t)=>{_p.init(e,t)}),bp=V(`$ZodReadonly`,(e,t)=>{qd.init(e,t),gu(e,`propValues`,e=>e.def.innerType._zod.propValues),gu(e,`values`,e=>e.def.innerType._zod.values),gu(e,`optin`,e=>e.def.innerType?._zod?.optin),gu(e,`optout`,e=>e.def.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(xp):xp(r)}});function xp(e){return e.memo||(e.value=Object.freeze(e.value)),e}var Sp=V(`$ZodLazy`,(e,t)=>{qd.init(e,t),gl(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),gu(e,`pattern`,e=>e.innerType?._zod?.pattern),gu(e,`propValues`,e=>e.innerType?._zod?.propValues),gu(e,`optin`,e=>e.innerType?._zod?.optin??void 0),gu(e,`optout`,e=>e.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),Cp=V(`$ZodCustom`,(e,t)=>{Md.init(e,t),qd.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>wp(t,n,r,e));wp(i,n,r,e)}});function wp(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(ou(e))}}var Tp=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}},Ep=`~memo`,Dp=[];function Op(e){return typeof e==`object`&&!!e}function kp(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}var Ap=new WeakMap,jp=0,Mp=1,Np=2;function Pp(e,t,n){let r=Ap.get(e);if(r!==void 0)return r?Np:jp;if(t.has(e))return Np;t.add(e);let i=jp,a=e=>{if(i!==Np&&e?._zod){let r=Pp(e,t,n);r>i&&(i=r)}},o=(e,r)=>{let i=jp;for(let a of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,a);if(r&&!o.enumerable)continue;let s=o.get?Mp:o.value?._zod?Pp(o.value,t,n):jp;s>i&&(i=s)}return i},s=e=>{e>i&&(i=e)},c=e._zod.def;switch(c.type){case`object`:{let e=vl(c);s(e?o(e,!0):Mp),a(c.catchall);break}case`array`:a(c.element);break;case`tuple`:for(let e of c.items)a(e);a(c.rest);break;case`record`:case`map`:a(c.keyType),a(c.valueType);break;case`set`:a(c.valueType);break;case`union`:for(let e of c.options)a(e);break;case`intersection`:a(c.left),a(c.right);break;case`optional`:case`nullable`:case`default`:case`prefault`:case`catch`:case`readonly`:case`nonoptional`:case`promise`:case`success`:a(c.innerType);break;case`pipe`:a(c.in),a(c.out);break;case`function`:a(c.input),a(c.output);break;case`lazy`:{let r=c._cachedInner??(n?e._zod.innerType:void 0);s(r?Pp(r,t,!1):Mp);break}case`template_literal`:case`string`:case`number`:case`int`:case`boolean`:case`bigint`:case`symbol`:case`undefined`:case`null`:case`void`:case`never`:case`any`:case`unknown`:case`date`:case`nan`:case`enum`:case`literal`:case`file`:case`transform`:case`custom`:break;default:for(let e in c){let t=Object.getOwnPropertyDescriptor(c,e);if(!t||t.get)continue;let n=t.value;if(n&&typeof n==`object`){if(n._zod)a(n);else if(Array.isArray(n))for(let e of n)a(e)}}}return t.delete(e),Fp(e,i)}function Fp(e,t){return t!==Mp&&Ap.set(e,t===Np),t}function Ip(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var Lp,Rp=[],zp={alloc(e,t,n){let r=Lp;if(!r)return n;Lp=void 0;let i={value:n,issues:null};return r.set(t.value,i),Rp.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{if(n.direction!==`backward`&&Vp(n,e.value))throw new Tp;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let n,r=!1,i,a;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,o=(s,c)=>{if(n===void 0){let i=Pp(e,new Set,!1);if(i===jp)return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,c);i===Np||r?n=!0:r=!0}let l=s.value;if(!Op(l))return t(s,c);let u=c[Ep];u||(u={buckets:new WeakMap,backEdges:void 0},c[Ep]=u);let d;i===c?d=a:(d=Ip(u,e),i=c,a=d);let f=d.get(l);if(f)return s.value=f.value,f.issues?f.issues.length&&s.issues.push(...kp(f.issues)):(s.memo=!0,u.backEdges??(u.backEdges=new WeakSet),u.backEdges.add(f.value)),s;Lp=d;let p=Rp.length,m=t(s,c);Lp=void 0;let h=Rp.length>p?Rp.pop():void 0;return m instanceof Promise?m.then(e=>(h&&(h.issues=e.issues.length?kp(e.issues):Dp),e)):(h&&(h.issues=m.issues.length?kp(m.issues):Dp),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o)})}};function Bp(){return zp}function Vp(e,t){let n=e[Ep]?.backEdges;return n!==void 0&&Op(t)&&n.has(t)}var Hp=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,currency_code:`currency code`,credit_card:`credit card number`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};function i(e,t){return e===`number`&&typeof t==`number`&&!Number.isFinite(t)?String(t):r[e]??e}return e=>{switch(e.code){case`invalid_type`:return`Invalid input: expected ${i(e.expected)}, received ${i(au(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${Il(e.values[0])}`:`Invalid option: expected one of ${ll(e.values,`|`)}`;case`too_big`:{let n=e.exact?`exactly `:e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.exact?`exactly `:e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${ll(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:e.inclusive===!1?`Invalid input: more than one option matched`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}};function Up(){return{localeError:Hp()}}var Wp,Gp=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Kp(){return new Gp}(Wp=globalThis).__zod_globalRegistry??(Wp.__zod_globalRegistry=Kp());var qp=globalThis.__zod_globalRegistry;function Jp(e){return e.checks&&=[...e.checks],e}function Yp(e,t){return new e(Jp({type:`string`,...Fl(t)}))}function Xp(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...Fl(t)})}function Zp(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...Fl(t)})}function Qp(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...Fl(t)})}function $p(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...Fl(t)})}function em(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...Fl(t)})}function tm(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...Fl(t)})}function nm(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...Fl(t)})}function rm(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...Fl(t)})}function im(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...Fl(t)})}function am(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...Fl(t)})}function om(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...Fl(t)})}function sm(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...Fl(t)})}function cm(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...Fl(t)})}function lm(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...Fl(t)})}function um(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...Fl(t)})}function dm(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...Fl(t)})}function fm(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...Fl(t)})}function pm(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...Fl(t)})}function mm(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...Fl(t)})}function hm(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...Fl(t)})}function gm(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...Fl(t)})}function _m(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...Fl(t)})}function vm(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...Fl(t)})}function ym(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...Fl(t)})}function bm(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...Fl(t)})}function xm(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...Fl(t)})}function Sm(e){return new e({type:`unknown`})}function Cm(e,t){return new e({type:`never`,...Fl(t)})}function wm(e,t){return new Pd({check:`max_length`,...Fl(t),maximum:e})}function Tm(e,t){return new Fd({check:`min_length`,...Fl(t),minimum:e})}function Em(e,t){return new Id({check:`length_equals`,...Fl(t),length:e})}function Dm(e,t){return new Rd({check:`string_format`,format:`regex`,...Fl(t),pattern:e})}function Om(e){return new zd({check:`string_format`,format:`lowercase`,...Fl(e)})}function km(e){return new Bd({check:`string_format`,format:`uppercase`,...Fl(e)})}function Am(e,t){return new Vd({check:`string_format`,format:`includes`,...Fl(t),includes:e})}function jm(e,t){return new Hd({check:`string_format`,format:`starts_with`,...Fl(t),prefix:e})}function Mm(e,t){return new Ud({check:`string_format`,format:`ends_with`,...Fl(t),suffix:e})}function Nm(e){return new Wd({check:`overwrite`,tx:e})}function Pm(e){return Nm(t=>t.normalize(e))}function Fm(){return Nm(e=>e.trim())}function Im(){return Nm(e=>e.toLowerCase())}function Lm(){return Nm(e=>e.toUpperCase())}function Rm(){return Nm(e=>El(e))}function zm(e,t,n){return new e({type:`array`,element:t,...Fl(n)})}function Bm(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...Fl(n)})}function Vm(e,t){let n=Hm(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(ou(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,`input`in r||(r.input=t.value),r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(ou(r))}},e(t.value,t)),t);return n}function Hm(e,t){let n=new Md({check:`custom`,...Fl(t)});return n._zod.check=e,n}function Um(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&_l(e,t,n[t]);return e}function Wm(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??qp,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,intersections:[],deferred:[],external:e?.external??void 0}}function Gm(e,t,n,r,i){let a=typeof t.unrepresentable==`function`?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(a===`any`)return!1;if(a===void 0||a===`throw`)throw Error(i);return Object.assign(n,a),!0}function Km(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,Km(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Um(o.schema,c),t.io===`input`&&nh(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function qm(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function Jm(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${qm(a)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return{ref:`#`};let a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+qm(a)}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
62
+
63
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0])a(n);else{if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&e.reused===`ref`)&&a(n)}}e.external&&(e.sharedDefsExtractedFor=e.external)}function Ym(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;Ym(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var Xm=new Set([`type`,`properties`,`required`,`additionalProperties`]),Zm=[`oneOf`,`anyOf`];function Qm(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function $m(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!Xm.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??Qm(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}_l(n,r,e.length===1?e[0]:$m(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=Qm(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function eh(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of Xm)if(t in e)return;let n=t.filter(e=>Zm.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=$m(t);else{let e=n[0],i=Zm.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>$m([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,Um(e,r))}function th(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Um(i,s),Um(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())Ym(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])eh(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Um(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,_l(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:ih(t,`input`,e.processors),output:ih(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function nh(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return nh(r.element,n);if(r.type===`set`)return nh(r.valueType,n);if(r.type===`lazy`)return nh(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return nh(r.innerType,n);if(r.type===`intersection`)return nh(r.left,n)||nh(r.right,n);if(r.type===`record`||r.type===`map`)return nh(r.keyType,n)||nh(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:nh(r.in,n)||nh(r.out,n);if(r.type===`object`){for(let e in r.shape)if(nh(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(nh(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(nh(e,n))return!0;return!!(r.rest&&nh(r.rest,n))}return!1}var rh=(e,t={})=>n=>{let r=Wm({...n,processors:t});return Km(e,r),Jm(r,e),th(r,e)},ih=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Wm({...i??{},target:a,io:t,processors:n});return Km(e,o),Jm(o,e),th(o,e)},ah=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},oh=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},sh=(e,t)=>{ah(e,`minimum`,t),oh(e,`maximum`,t)},ch=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},lh=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},uh=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},dh=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},fh=(e,t)=>ah(e,`minimum`,t.minimum),ph=(e,t)=>oh(e,`maximum`,t.maximum),mh=e=>(t,n)=>{dh(t,n.format);let[r,i]=e[n.format];ah(t,`minimum`,r),oh(t,`maximum`,i)},hh={greater_than:(e,t)=>ah(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>oh(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>ch(e,t.value),number_format:mh(Rl),bigint_format:mh(zl),min_length:fh,max_length:ph,length_equals:(e,t)=>sh(e,t.length),min_size:fh,max_size:ph,size_equals:(e,t)=>sh(e,t.size),string_format:(e,t)=>{dh(e,t.format),t.pattern&&lh(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>uh(e,t.mime)};function gh(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)hh[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&ah(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&ah(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&oh(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&oh(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&ch(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&uh(t,i.mime);for(let e of i.patterns??[])lh(t,e);return t}var _h={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},vh=new Map([[Af,yd],[Mf,bd]]),yh=e=>vh.get(e)??e,bh=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=gh(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=_h[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map(yh);e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},xh=(e,t,n,r)=>{n.not={}},Sh=(e,t,n,r)=>{let i=e._zod.def,a=cl(i.entries);a.length===0?n.not={}:(a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a)},Ch=(e,t,n,r)=>{let i=e._zod.def;if(i.values.length===0){n.not={};return}let a=[];for(let o of i.values)if(o===void 0){if(Gm(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(Gm(e,t,n,r,`BigInt literals cannot be represented in JSON Schema`))return;a.push(Number(o))}else a.push(o);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},wh=(e,t,n,r)=>{Gm(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},Th=(e,t,n,r)=>{Gm(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},Eh=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=gh(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Km(a.element,t,{...r,path:[...r.path,`items`]})};function Dh(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?Dh(t.out):t.type===`catch`?Dh(t.innerType):e._zod.optin}var Oh=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&Gm(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)_l(i.properties,e,Km(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=[];for(let e of Object.keys(o)){let n=a.shape[e];(t.io===`input`?Dh(n)===void 0:n._zod.optout===void 0)&&s.push(e)}s.length>0&&(i.required=s),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Km(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},kh=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Km(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Ah=(e,t,n,r)=>{let i=e._zod.def,a=Km(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Km(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)},jh=(e,t,n,r)=>{let i=e._zod.def,a=Km(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Mh=(e,t,n,r)=>{let i=e._zod.def;Km(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Nh=Symbol();function Ph(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(Gm(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),Nh):JSON.parse(o)}var Fh=(e,t,n,r)=>{let i=e._zod.def;Km(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=Ph(i.defaultValue,e,t,n,r);o!==Nh&&(n.default=o)},Ih=(e,t,n,r)=>{let i=e._zod.def;Km(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=Ph(i.defaultValue,e,t,n,r);o!==Nh&&(n._prefault=o)},Lh=(e,t,n,r)=>{let i=e._zod.def;Km(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{Gm(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},Rh=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;Km(o,t,r);let s=t.seen.get(e);s.ref=o},zh=(e,t,n,r)=>{let i=e._zod.def;Km(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Bh=(e,t,n,r)=>{let i=e._zod.def;Km(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Vh=(e,t,n,r)=>{let i=e._zod.innerType;Km(i,t,r);let a=t.seen.get(e);a.ref=i},Hh=new WeakSet([Object.prototype,Error.prototype]);function Uh(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var Wh=V(`ZodError`,(e,t)=>{Nu.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);Hh.has(n)||(Hh.add(n),Uh(n,`format`,e=>t=>Iu(e,t)),Uh(n,`flatten`,e=>t=>Fu(e,t)),Uh(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,ul,2)}),Uh(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,ul,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},void 0,{Parent:Error}),Gh=Ru(Wh),Kh=zu(Wh),qh=Bu(Wh),Jh=Hu(Wh),Yh=Ju(Wh),Xh=Yu(Wh),Zh=Xu(Wh),Qh=Zu(Wh),$h=Qu(Wh),eg=$u(Wh),tg=ed(Wh),ng=td(Wh);function rg(){Eu.localeError||Du(Up())}function ig(){Eu.memoizer||Du({memoizer:Bp()})}var ag=V(`ZodType`,(e,t)=>(rg(),qd.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(wl(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Pl(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(c_(e,t))},superRefine(e,t){return this.check(l_(e,t))},overwrite(e){return this.check(Nm(e))},optional(){return Jg(this)},exactOptional(){return oee(this)},nullable(){return Xg(this)},nullish(){return Jg(Xg(this))},nonoptional(e){return t_(this,e)},array(){return Rg(this)},or(e){return Hg([this,e])},and(e){return nee(this,e)},transform(e){return a_(this,Kg(e))},default(e){return Qg(this,e)},prefault(e){return $g(this,e)},catch(e){return r_(this,e)},pipe(e){return a_(this,e)},readonly(){return lee(this)},describe(e){let t=this.clone();return qp.add(t,{description:e}),t},meta(...e){if(e.length===0)return qp.get(this);let t=this.clone();return qp.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return lu(this,`~standard`,{...Xd(this),jsonSchema:{input:ih(this,`input`),output:ih(this,`output`)}})},set"~standard"(e){cu(this,`~standard`,e)},parse:function e(t,n){return Gh(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await Kh(this,t,n,{callee:e})},safeParse(e,t){return qh(this,e,t)},async safeParseAsync(e,t){return Jh(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){cu(this,`spa`,e)},validate(e,t){return Gu(this,e,t)},validateAsync(e,t){return qu(this,e,t)},encode:function e(t,n){return Yh(this,t,n,{callee:e})},decode:function e(t,n){return Xh(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await Zh(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await Qh(this,t,n,{callee:e})},safeEncode(e,t){return $h(this,e,t)},safeDecode(e,t){return eg(this,e,t)},async safeEncodeAsync(e,t){return tg(this,e,t)},async safeDecodeAsync(e,t){return ng(this,e,t)},toJSONSchema(e){return rh(this,{})(e)},get description(){return qp.get(this)?.description},get _def(){return this._zod.def}}),og=V(`_ZodString`,(e,t)=>{Zd.init(e,t),ag.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bh(e,t,n,r)},uu({format:e=>gh(e).format??null,minLength:e=>gh(e).minimum??null,maxLength:e=>gh(e).maximum??null},{regex(...e){return this.check(Dm(...e))},includes(...e){return this.check(Am(...e))},startsWith(...e){return this.check(jm(...e))},endsWith(...e){return this.check(Mm(...e))},min(...e){return this.check(Tm(...e))},max(...e){return this.check(wm(...e))},length(...e){return this.check(Em(...e))},nonempty(...e){return this.check(Tm(1,...e))},lowercase(e){return this.check(Om(e))},uppercase(e){return this.check(km(e))},trim(){return this.check(Fm())},normalize(...e){return this.check(Pm(...e))},toLowerCase(){return this.check(Im())},toUpperCase(){return this.check(Lm())},slugify(){return this.check(Rm())}})),sg=V(`ZodString`,(e,t)=>{Zd.init(e,t),og.init(e,t)},{email(e){return this.check(Xp(mg,e))},url(e){return this.check(nm(_g,e))},jwt(e){return this.check(_m(Mg,e))},emoji(e){return this.check(rm(vg,e))},guid(e){return this.check(Zp(hg,e))},uuid(e){return this.check(Qp(gg,e))},uuidv4(e){return this.check($p(gg,e))},uuidv6(e){return this.check(em(gg,e))},uuidv7(e){return this.check(tm(gg,e))},nanoid(e){return this.check(im(yg,e))},cuid(e){return this.check(am(bg,e))},cuid2(e){return this.check(om(xg,e))},ulid(e){return this.check(sm(Sg,e))},base64(e){return this.check(mm(kg,e))},base64url(e){return this.check(hm(Ag,e))},xid(e){return this.check(cm(Cg,e))},ksuid(e){return this.check(lm(wg,e))},ipv4(e){return this.check(um(Tg,e))},ipv6(e){return this.check(dm(Eg,e))},cidrv4(e){return this.check(fm(Dg,e))},cidrv6(e){return this.check(pm(Og,e))},e164(e){return this.check(gm(jg,e))},datetime(e){return this.check(vm(ug,e))},date(e){return this.check(ym(dg,e))},time(e){return this.check(bm(fg,e))},duration(e){return this.check(xm(pg,e))}});function cg(e){return Yp(sg,e)}var lg=V(`ZodStringFormat`,(e,t)=>{Qd.init(e,t),og.init(e,t)}),ug=V(`ZodISODateTime`,(e,t)=>{vf.init(e,t),lg.init(e,t)}),dg=V(`ZodISODate`,(e,t)=>{yf.init(e,t),lg.init(e,t)}),fg=V(`ZodISOTime`,(e,t)=>{bf.init(e,t),lg.init(e,t)}),pg=V(`ZodISODuration`,(e,t)=>{xf.init(e,t),lg.init(e,t)}),mg=V(`ZodEmail`,(e,t)=>{tf.init(e,t),lg.init(e,t)}),hg=V(`ZodGUID`,(e,t)=>{$d.init(e,t),lg.init(e,t)}),gg=V(`ZodUUID`,(e,t)=>{ef.init(e,t),lg.init(e,t)}),_g=V(`ZodURL`,(e,t)=>{uf.init(e,t),lg.init(e,t)}),vg=V(`ZodEmoji`,(e,t)=>{df.init(e,t),lg.init(e,t)}),yg=V(`ZodNanoID`,(e,t)=>{ff.init(e,t),lg.init(e,t)}),bg=V(`ZodCUID`,(e,t)=>{pf.init(e,t),lg.init(e,t)}),xg=V(`ZodCUID2`,(e,t)=>{mf.init(e,t),lg.init(e,t)}),Sg=V(`ZodULID`,(e,t)=>{hf.init(e,t),lg.init(e,t)}),Cg=V(`ZodXID`,(e,t)=>{gf.init(e,t),lg.init(e,t)}),wg=V(`ZodKSUID`,(e,t)=>{_f.init(e,t),lg.init(e,t)}),Tg=V(`ZodIPv4`,(e,t)=>{Sf.init(e,t),lg.init(e,t)}),Eg=V(`ZodIPv6`,(e,t)=>{Tf.init(e,t),lg.init(e,t)}),Dg=V(`ZodCIDRv4`,(e,t)=>{Ef.init(e,t),lg.init(e,t)}),Og=V(`ZodCIDRv6`,(e,t)=>{Of.init(e,t),lg.init(e,t)}),kg=V(`ZodBase64`,(e,t)=>{jf.init(e,t),lg.init(e,t)}),Ag=V(`ZodBase64URL`,(e,t)=>{Pf.init(e,t),lg.init(e,t)}),jg=V(`ZodE164`,(e,t)=>{Ff.init(e,t),lg.init(e,t)}),Mg=V(`ZodJWT`,(e,t)=>{Lf.init(e,t),lg.init(e,t)}),Ng=V(`ZodUnknown`,(e,t)=>{Rf.init(e,t),ag.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Pg(){return Sm(Ng)}var Fg=V(`ZodNever`,(e,t)=>{zf.init(e,t),ag.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xh(e,t,n,r)});function Ig(e){return Cm(Fg,e)}var Lg=V(`ZodArray`,(e,t)=>{ig(),Uf.init(e,t),ag.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Eh(e,t,n,r),e.element=t.element},{min(e,t){return this.check(Tm(e,t))},nonempty(e){return this.check(Tm(1,e))},max(e,t){return this.check(wm(e,t))},length(e,t){return this.check(Em(e,t))},unwrap(){return this.element}});function Rg(e,t){return zm(Lg,e,t)}var zg=V(`ZodObject`,(e,t)=>{ig(),Yf.init(e,t),ag.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Oh(e,t,n,r),_u(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return ree(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(wl(this._zod.def,{catchall:e}))},passthrough(){return this.clone(wl(this._zod.def,{catchall:Pg()}))},loose(){return this.clone(wl(this._zod.def,{catchall:Pg()}))},strict(){return this.clone(wl(this._zod.def,{catchall:Ig()}))},strip(){return this.clone(wl(this._zod.def,{catchall:void 0}))},extend(e){return Ul(this,e)},safeExtend(e){return Gl(this,e)},merge(e){return Kl(this,e)},pick(e){return Bl(this,e)},omit(e){return Hl(this,e)},partial(...e){return ql(qg,this,e[0])},exactPartial(...e){return ql(Yg,this,e[0],`exactPartial`)},required(...e){return Jl(e_,this,e[0])}});function Bg(e,t){return new zg({type:`object`,shape:e??{},...Fl(t)})}var Vg=V(`ZodUnion`,(e,t)=>{Zf.init(e,t),ag.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kh(e,t,n,r),e.options=t.options});function Hg(e,t){return new Vg({type:`union`,options:e,...Fl(t)})}var eee=V(`ZodDiscriminatedUnion`,(e,t)=>{Vg.init(e,t),$f.init(e,t)});function Ug(e,t,n){return new eee({type:`union`,options:t,discriminator:e,...Fl(n)})}var tee=V(`ZodIntersection`,(e,t)=>{ep.init(e,t),ag.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ah(e,t,n,r)});function nee(e,t){return new tee({type:`intersection`,left:e,right:t})}var Wg=V(`ZodEnum`,(e,t)=>{rp.init(e,t),ag.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sh(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Wg({...t,checks:[],...Fl(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Wg({...t,checks:[],...Fl(r),entries:i})}});function ree(e,t){return new Wg({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...Fl(t)})}var iee=V(`ZodLiteral`,(e,t)=>{ip.init(e,t),ag.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ch(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Gg(e,t){return new iee({type:`literal`,values:Array.isArray(e)?e:[e],...Fl(t)})}var aee=V(`ZodTransform`,(e,t)=>{ig(),ap.init(e,t),ag.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Th(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Tu(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(ou(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(ou(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function Kg(e){return new aee({type:`transform`,transform:e})}var qg=V(`ZodOptional`,(e,t)=>{sp.init(e,t),ag.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Jg(e){return new qg({type:`optional`,innerType:e})}var Yg=V(`ZodExactOptional`,(e,t)=>{cp.init(e,t),ag.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function oee(e){return new Yg({type:`optional`,innerType:e})}var see=V(`ZodNullable`,(e,t)=>{lp.init(e,t),ag.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Xg(e){return new see({type:`nullable`,innerType:e})}var Zg=V(`ZodDefault`,(e,t)=>{up.init(e,t),ag.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Qg(e,t){return new Zg({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():jl(t)}})}var cee=V(`ZodPrefault`,(e,t)=>{fp.init(e,t),ag.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ih(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function $g(e,t){return new cee({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():jl(t)}})}var e_=V(`ZodNonOptional`,(e,t)=>{pp.init(e,t),ag.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Mh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function t_(e,t){return new e_({type:`nonoptional`,innerType:e,...Fl(t)})}var n_=V(`ZodCatch`,(e,t)=>{gp.init(e,t),ag.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function r_(e,t){return new n_({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:yu(t)})}var i_=V(`ZodPipe`,(e,t)=>{_p.init(e,t),ag.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rh(e,t,n,r),e.in=t.in,e.out=t.out});function a_(e,t){return new i_({type:`pipe`,in:e,out:t})}var o_=V(`ZodPreprocess`,(e,t)=>{i_.init(e,t),yp.init(e,t)}),s_=V(`ZodReadonly`,(e,t)=>{bp.init(e,t),ag.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function lee(e){return new s_({type:`readonly`,innerType:e})}var uee=V(`ZodLazy`,(e,t)=>{Sp.init(e,t),ag.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vh(e,t,n,r),e.unwrap=()=>e._zod.def.getter()});function dee(e){return new uee({type:`lazy`,getter:e})}var fee=V(`ZodCustom`,(e,t)=>{Cp.init(e,t),ag.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wh(e,t,n,r)});function c_(e,t={}){return Bm(fee,e,t)}function l_(e,t){return Vm(e,t)}function u_(e,t){return new o_({type:`pipe`,in:Kg(e),out:t})}function d_(e){return e.deletedAt===void 0}function f_(e){return e.deletedAt!==void 0}function p_(e){return e.published!==void 0&&e.published.revision!==e.revision}function m_(e){return e.filter(e=>e.deletedAt===void 0)}var h_=class extends il{code=`unknown_type`},g_=class{noun;#e=new Map;constructor(e){this.noun=e}register(e){if(this.#e.has(e.type))throw new al(`A ${this.noun} named "${e.type}" is already registered.`);return this.#e.set(e.type,e),this}has(e){return this.#e.has(e)}get(e){let t=this.#e.get(e);if(!t){let t=[...this.#e.keys()].sort().join(`, `);throw new h_(`There is no ${this.noun} named "${e}". Registered: ${t}.`)}return t}list(){return[...this.#e.values()]}};function __(e){return/^(?:https?:\/\/|mailto:|tel:)\S+$/i.test(e)?!0:/^(?:\/(?!\/)|#)\S*$/.test(e)}var v_=Ug(`type`,[Bg({type:Gg(`bold`)}),Bg({type:Gg(`italic`)}),Bg({type:Gg(`code`)}),Bg({type:Gg(`link`),attrs:Bg({href:cg().max(2e3).refine(__,`A link must be a web address, an email address, a phone number or a page of this site.`)})})]),y_=Ug(`type`,[Bg({type:Gg(`text`),text:cg().min(1),marks:Rg(v_).optional()}),Bg({type:Gg(`hardBreak`)})]),b_=dee(()=>Ug(`type`,[Bg({type:Gg(`paragraph`),content:Rg(y_).optional()}),Bg({type:Gg(`heading`),attrs:Bg({level:Hg([Gg(2),Gg(3)])}),content:Rg(y_).optional()}),Bg({type:Gg(`blockquote`),content:Rg(b_)}),Bg({type:Gg(`bulletList`),content:Rg(x_)}),Bg({type:Gg(`orderedList`),content:Rg(x_)})])),x_=Bg({type:Gg(`listItem`),content:Rg(b_)}),S_=12,C_=e=>{let t=typeof e==`object`&&e?e.content:void 0;return Array.isArray(t)?1+Math.max(0,...t.map(C_)):1};function w_(e){return{type:`doc`,content:(typeof e==`string`?e.split(/\n+/):e).map(e=>e.trim()).filter(e=>e!==``).map(e=>({type:`paragraph`,content:[{type:`text`,text:e}]}))}}var T_=e=>typeof e==`string`||Array.isArray(e)&&e.every(e=>typeof e==`string`);u_(e=>T_(e)?w_(e):e,Bg({type:Gg(`doc`),content:Rg(b_)}).refine(e=>C_(e)<=S_,`Lists and quotes are nested too deeply.`));var E_=[`bold`,`italic`,`code`,`link`,`headings`,`lists`,`quotes`];Bg({});var D_=/^(?:#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})|(?:oklch|oklab|rgb|hsl)\([0-9.%,/ -]+\))$/i;function O_(e){return typeof e==`string`&&e.length<=64&&D_.test(e)}var k_=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;function pee(e){return e.length<=200&&k_.test(e)}function A_(e){let t=e.split(`/`);return e.length<=200&&t.length<=5&&t.every(e=>k_.test(e))}var mee=`...slug`;function j_(e){return[e.urlPattern,...Object.values(e.localizedUrlPatterns??{})].some(e=>e?.includes(`[${mee}]`)===!0)}var hee=`$slug`,gee=[`resend`],M_=(e,t,n)=>[...n].every((n,r)=>e[t+r]===n.charCodeAt(0)),N_=(e,t)=>(e[t]??0)<<8|(e[t+1]??0),P_=(e,t)=>N_(e,t)*65536+N_(e,t+2),F_=(e,t)=>(e[t]??0)|(e[t+1]??0)<<8,I_=(e,t)=>F_(e,t)|(e[t+2]??0)<<16;function L_(e){return e.length<24||![137,80,78,71,13,10,26,10].every((t,n)=>e[n]===t)||!M_(e,12,`IHDR`)?null:{contentType:`image/png`,extension:`png`,width:P_(e,16),height:P_(e,20)}}function R_(e){if(e[0]!==255||e[1]!==216)return null;let t=2;for(;t+9<e.length;){if(e[t]!==255)return null;let n=e[t+1]??0;if(n===255)t+=1;else if(n===1||n>=208&&n<=215)t+=2;else{if(n>=192&&n<=207&&n!==196&&n!==200&&n!==204)return{contentType:`image/jpeg`,extension:`jpg`,width:N_(e,t+7),height:N_(e,t+5)};if(n===218||n===217)return null;t+=2+N_(e,t+2)}}return null}function z_(e){if(e.length<30||!M_(e,0,`RIFF`)||!M_(e,8,`WEBP`))return null;let t=(e,t)=>({contentType:`image/webp`,extension:`webp`,width:e,height:t});if(M_(e,12,`VP8X`))return t(I_(e,24)+1,I_(e,27)+1);if(M_(e,12,`VP8 `))return t(F_(e,26)&16383,F_(e,28)&16383);if(M_(e,12,`VP8L`)&&e[20]===47){let n=F_(e,21)+F_(e,23)*65536;return t((n&16383)+1,(Math.floor(n/16384)&16383)+1)}return null}function B_(e){let t=L_(e)??R_(e)??z_(e);return t&&t.width>0&&t.height>0?t:null}var V_=2560,H_=(e,t,n)=>t===n?e.urlPattern:e.localizedUrlPatterns?.[t],U_=e=>e.urlPattern!==void 0||Object.keys(e.localizedUrlPatterns??{}).length>0;function W_(e,t,n){let r=H_(e,t.locale,n);if(r===void 0)return null;let i=!0,a=r.replace(/\[([^\]]+)\]/g,(n,r)=>{if(r===`...slug`)return A_(t.slug)||(i=!1),t.slug===`index`?``:t.slug;let a=r===`slug`?void 0:m_(e.fields).find(e=>e.key===r),o=r===`slug`?t.slug:a?t.data[a.id]:void 0;return typeof o!=`string`||!/^[A-Za-z0-9][A-Za-z0-9._~-]*$/.test(o)?(i=!1,``):o});return i?`${a.replace(/\/{2,}/g,`/`).replace(/\/+$/,``)}/`:null}function G_(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=G_(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function K_(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=G_(e))&&(r&&(r+=` `),r+=t);return r}var q_=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,J_=K_,H=(e,t)=>n=>{if(t?.variants==null)return J_(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=q_(t)||q_(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return J_(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Y_={0:`gap-0`,1:`gap-1`,2:`gap-2`,3:`gap-3`,4:`gap-4`,5:`gap-5`,6:`gap-6`,8:`gap-8`,10:`gap-10`,12:`gap-12`},X_=H(``,{variants:{padding:{0:`p-0`,1:`p-1`,2:`p-2`,3:`p-3`,4:`p-4`,5:`p-5`,6:`p-6`,8:`p-8`,10:`p-10`,12:`p-12`},paddingX:{0:`px-0`,1:`px-1`,2:`px-2`,3:`px-3`,4:`px-4`,5:`px-5`,6:`px-6`,8:`px-8`,10:`px-10`,12:`px-4 md:px-12`},paddingY:{0:`py-0`,1:`py-1`,2:`py-2`,3:`py-3`,4:`py-4`,5:`py-5`,6:`py-6`,8:`py-8`,10:`py-6 md:py-10`,12:`py-12`},surface:{none:``,page:`bg-background`,subtle:`bg-background-secondary`,card:`bg-card`},border:{true:`border border-border`},radius:{none:``,sm:`rounded-sm`,md:`rounded-md`,lg:`rounded-lg`},shadow:{none:``,sm:`shadow-sm`,md:`shadow-md`},maxWidth:{none:``,xs:`max-w-sm`,sm:`max-w-md`,md:`max-w-2xl`,lg:`max-w-4xl`},grow:{true:`min-w-0 flex-1`}},defaultVariants:{surface:`none`,radius:`none`,shadow:`none`,maxWidth:`none`}});function Z_({as:e=`div`,label:t,children:n,...r}){return(0,S.jsx)(e,{className:X_(r),"aria-label":t,children:n})}var Q_=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function $_(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:Q_(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var ev=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},tv=e=>{let t=ev(e);return t.charAt(0).toUpperCase()+t.slice(1)},nv=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),rv={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function iv(e){return e!=null}function av(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??rv.width,a=e.size??e.height??rv.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?nv(...c):nv(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??rv[`stroke-width`])*Number(e.size??e.width??rv.width)/Number(t.size??t.width??rv.width):t.strokeWidth??rv[`stroke-width`];return[`svg`,{...Object.entries(rv).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&iv(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&iv(t.width)&&{[r(`width`)]:t.width},...`height`in t&&iv(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function ov(e,t={}){return av(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var sv=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},cv=(0,x.createContext)({}),lv=()=>(0,x.useContext)(cv),uv=(0,x.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:v=``}=lv()??{},y=!!c||sv(d),[b,S,C=[]]=ov(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:nv(v,s),hasA11yProp:y,attributes:d});return(0,x.createElement)(b,{ref:f,...S},[...C.map(([e,t])=>(0,x.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function U(e,t=[],n=[]){let r=typeof e==`string`?$_(e,t,n):e,i=(0,x.forwardRef)(({className:e,...t},n)=>(0,x.createElement)(uv,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=tv(r.name)),i}var dv={name:`archive`,size:24,node:[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]};dv.node;var fv=U(dv),pv={name:`arrow-down`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]};pv.node;var mv=U(pv),hv={name:`arrow-right-left`,size:24,node:[[`path`,{d:`m16 3 4 4-4 4`,key:`1x1c3m`}],[`path`,{d:`M20 7H4`,key:`zbl0bi`}],[`path`,{d:`m8 21-4-4 4-4`,key:`h9nckh`}],[`path`,{d:`M4 17h16`,key:`g4d7ey`}]]};hv.node;var gv=U(hv),_v={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};_v.node;var vv=U(_v),yv={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};yv.node;var bv=U(yv),xv={name:`badge-check`,size:24,node:[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`verified`]};xv.node;var Sv=U(xv),Cv={name:`blocks`,size:24,node:[[`path`,{d:`M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2`,key:`1ah6g2`}],[`rect`,{x:`14`,y:`2`,width:`8`,height:`8`,rx:`1`,key:`88lufb`}]]};Cv.node;var wv=U(Cv),Tv={name:`building-complex`,size:24,node:[[`path`,{d:`M10 12h4`,key:`a56b0p`}],[`path`,{d:`M10 8h4`,key:`1sr2af`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2`,key:`secmi2`}],[`path`,{d:`M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16`,key:`16ra0t`}]],aliases:[`building-2`]};Tv.node;var Ev=U(Tv),Dv={name:`calendar-clock`,size:24,node:[[`path`,{d:`M16 14v2.2l1.6 1`,key:`fo4ql5`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`path`,{d:`M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338`,key:`7hb8p4`}],[`path`,{d:`M3 9h5.859`,key:`numkqi`}],[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`circle`,{cx:`16`,cy:`16`,r:`6`,key:`qoo3c4`}]]};Dv.node;var _ee=U(Dv),Ov={name:`calendar-days`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M8 13h.01`,key:`1sbv64`}],[`path`,{d:`M12 13h.01`,key:`y0uutt`}],[`path`,{d:`M16 13h.01`,key:`wip0gl`}],[`path`,{d:`M8 17h.01`,key:`p3bg7i`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M16 17h.01`,key:`ql8jdd`}]]};Ov.node;var kv=U(Ov),Av={name:`chart-no-axes-column`,size:24,node:[[`path`,{d:`M5 21v-6`,key:`1hz6c0`}],[`path`,{d:`M12 21V3`,key:`1lcnhd`}],[`path`,{d:`M19 21V9`,key:`unv183`}]],aliases:[`bar-chart-2`]};Av.node;var vee=U(Av),jv={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};jv.node;var Mv=U(jv),Nv={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};Nv.node;var Pv=U(Nv),Fv={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};Fv.node;var Iv=U(Fv),Lv={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};Lv.node;var Rv=U(Lv),zv={name:`chevrons-up-down`,size:24,node:[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]};zv.node;var Bv=U(zv),Vv={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};Vv.node;var Hv=U(Vv),Uv={name:`circle-exclamation-point`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`,`circle-alert`]};Uv.node;var Wv=U(Uv),Gv={name:`circle-question-mark`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9 9.5a3 2.5 0 016 0c0 2-2 2-3 3.5`,key:`1awbb0`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`help-circle`,`circle-help`]};Gv.node;var Kv=U(Gv),qv={name:`columns-2`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 3v18`,key:`108xh3`}]],aliases:[`columns`]};qv.node;var Jv=U(qv),Yv={name:`columns-3`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]],aliases:[`panels-left-right`]};Yv.node;var Xv=U(Yv),Zv={name:`contact`,size:24,node:[[`path`,{d:`M16 2v2`,key:`scm5qe`}],[`path`,{d:`M7 21v-2a2 2 0 012-2h6a2 2 0 012 2v2`,key:`k82dct`}],[`path`,{d:`M8 2v2`,key:`pbkmx`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]};Zv.node;var Qv=U(Zv),$v={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};$v.node;var ey=U($v),ty={name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]};ty.node;var ny=U(ty),ry={name:`ellipsis`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]],aliases:[`more-horizontal`]};ry.node;var iy=U(ry),ay={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};ay.node;var oy=U(ay),sy={name:`eye-off`,size:24,node:[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]};sy.node;var cy=U(sy),ly={name:`eye`,size:24,node:[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};ly.node;var uy=U(ly),dy={name:`file-question-mark`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M9 9.5a3 2.5 0 016 0c0 2-2 2-3 3.5`,key:`1awbb0`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`file-question`]};dy.node;var fy=U(dy),py={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};py.node;var my=U(py),hy={name:`file-up`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M12 12v6`,key:`3ahymv`}],[`path`,{d:`m15 15-3-3-3 3`,key:`15xj92`}]]};hy.node;var gy=U(hy),_y={name:`gallery-horizontal`,size:24,node:[[`path`,{d:`M2 3v18`,key:`pzttux`}],[`rect`,{width:`12`,height:`18`,x:`6`,y:`3`,rx:`2`,key:`btr8bg`}],[`path`,{d:`M22 3v18`,key:`6jf3v`}]]};_y.node;var vy=U(_y),yy={name:`grip-vertical`,size:24,node:[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]};yy.node;var by=U(yy),xy={name:`hand-coins`,size:24,node:[[`path`,{d:`M11 15h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 17`,key:`geh8rc`}],[`path`,{d:`m7 21 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9`,key:`1fto5m`}],[`path`,{d:`m2 16 6 6`,key:`1pfhp9`}],[`circle`,{cx:`16`,cy:`9`,r:`2.9`,key:`1n0dlu`}],[`circle`,{cx:`6`,cy:`5`,r:`3`,key:`151irh`}]]};xy.node;var Sy=U(xy),Cy={name:`hash`,size:24,node:[[`line`,{x1:`4`,x2:`20`,y1:`9`,y2:`9`,key:`4lhtct`}],[`line`,{x1:`4`,x2:`20`,y1:`15`,y2:`15`,key:`vyu0kd`}],[`line`,{x1:`10`,x2:`8`,y1:`3`,y2:`21`,key:`1ggp8o`}],[`line`,{x1:`16`,x2:`14`,y1:`3`,y2:`21`,key:`weycgp`}]]};Cy.node;var wy=U(Cy),Ty={name:`house`,size:24,node:[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]],aliases:[`home`]};Ty.node;var Ey=U(Ty),Dy={name:`image-off`,size:24,node:[[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}],[`path`,{d:`M10.41 10.41a2 2 0 1 1-2.83-2.83`,key:`1bzlo9`}],[`line`,{x1:`13.5`,x2:`6`,y1:`13.5`,y2:`21`,key:`1q0aeu`}],[`line`,{x1:`18`,x2:`21`,y1:`12`,y2:`15`,key:`5mozeu`}],[`path`,{d:`M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59`,key:`mmje98`}],[`path`,{d:`M21 15V5a2 2 0 0 0-2-2H9`,key:`43el77`}]]};Dy.node;var Oy=U(Dy),ky={name:`image`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]};ky.node;var yee=U(ky),Ay={name:`images`,size:24,node:[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]};Ay.node;var jy=U(Ay),My={name:`inbox`,size:24,node:[[`polyline`,{points:`22 12 16 12 14 15 10 15 8 12 2 12`,key:`o97t9d`}],[`path`,{d:`M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`oot6mr`}]]};My.node;var Ny=U(My),Py={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};Py.node;var Fy=U(Py),Iy={name:`key-round`,size:24,node:[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]};Iy.node;var Ly=U(Iy),Ry={name:`languages`,size:24,node:[[`path`,{d:`m5 8 6 6`,key:`1wu5hv`}],[`path`,{d:`m4 14 6-6 2-3`,key:`1k1g8d`}],[`path`,{d:`M2 5h12`,key:`or177f`}],[`path`,{d:`M7 2h1`,key:`1t2jsx`}],[`path`,{d:`m22 22-5-10-5 10`,key:`don7ne`}],[`path`,{d:`M14 18h6`,key:`1m8k6r`}]]};Ry.node;var zy=U(Ry),By={name:`layers`,size:24,node:[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]],aliases:[`layers-3`]};By.node;var Vy=U(By),Hy={name:`layout-grid`,size:24,node:[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]};Hy.node;var Uy=U(Hy),Wy={name:`layout-list`,size:24,node:[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}],[`path`,{d:`M14 4h7`,key:`3xa0d5`}],[`path`,{d:`M14 9h7`,key:`1icrd9`}],[`path`,{d:`M14 15h7`,key:`1mj8o2`}],[`path`,{d:`M14 20h7`,key:`11slyb`}]]};Wy.node;var Gy=U(Wy),Ky={name:`layout-template`,size:24,node:[[`rect`,{width:`18`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`f1a2em`}],[`rect`,{width:`9`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`jqznyg`}],[`rect`,{width:`5`,height:`7`,x:`16`,y:`14`,rx:`1`,key:`q5h2i8`}]]};Ky.node;var qy=U(Ky),Jy={name:`letter-h`,size:24,node:[[`path`,{d:`M18 20V4`,key:`o2hl4u`}],[`path`,{d:`M6 12H18`,key:`1fx1vx`}],[`path`,{d:`M6 20V4`,key:`1w1bmo`}]],aliases:[`heading`]};Jy.node;var Yy=U(Jy),Xy={name:`list-checks`,size:24,node:[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]};Xy.node;var Zy=U(Xy),Qy={name:`list-filter`,size:24,node:[[`path`,{d:`M2 5h20`,key:`1fs1ex`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M9 19h6`,key:`456am0`}]]};Qy.node;var $y=U(Qy),eb={name:`list-plus`,size:24,node:[[`path`,{d:`M16 5H3`,key:`m91uny`}],[`path`,{d:`M11 12H3`,key:`51ecnj`}],[`path`,{d:`M16 19H3`,key:`zzsher`}],[`path`,{d:`M18 9v6`,key:`1twb98`}],[`path`,{d:`M21 12h-6`,key:`bt1uis`}]]};eb.node;var tb=U(eb),nb={name:`list-tree`,size:24,node:[[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`M3 10a2 2 0 0 0 2 2h3`,key:`1npucw`}],[`path`,{d:`M3 5v12a2 2 0 0 0 2 2h3`,key:`x1gjn2`}]]};nb.node;var rb=U(nb),ib={name:`list`,size:24,node:[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]};ib.node;var ab=U(ib),ob={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};ob.node;var sb=U(ob),cb={name:`lock`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]};cb.node;var bee=U(cb),lb={name:`log-out`,size:24,node:[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]};lb.node;var xee=U(lb),ub={name:`mail`,size:24,node:[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]};ub.node;var db=U(ub),fb={name:`map-pin`,size:24,node:[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]};fb.node;var pb=U(fb),mb={name:`maximize-2`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]};mb.node;var See=U(mb),hb={name:`megaphone`,size:24,node:[[`path`,{d:`M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z`,key:`q8bfy3`}],[`path`,{d:`M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14`,key:`1853fq`}],[`path`,{d:`M8 6v8`,key:`15ugcq`}]]};hb.node;var Cee=U(hb),gb={name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]};gb.node;var wee=U(gb),_b={name:`message-circle`,size:24,node:[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]};_b.node;var vb=U(_b),yb={name:`message-square-quote`,size:24,node:[[`path`,{d:`M14 14a2 2 0 0 0 2-2V8h-2`,key:`1r06pg`}],[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M8 14a2 2 0 0 0 2-2V8H8`,key:`1jzu5j`}]]};yb.node;var Tee=U(yb),bb={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};bb.node;var Eee=U(bb),xb={name:`monitor`,size:24,node:[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]};xb.node;var Dee=U(xb),Sb={name:`mouse-pointer-2`,size:24,node:[[`path`,{d:`M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z`,key:`edeuup`}]]};Sb.node;var Oee=U(Sb),Cb={name:`mouse-pointer-click`,size:24,node:[[`path`,{d:`M14 4.1 12 6`,key:`ita8i4`}],[`path`,{d:`m5.1 8-2.9-.8`,key:`1go3kf`}],[`path`,{d:`m6 12-1.9 2`,key:`mnht97`}],[`path`,{d:`M7.2 2.2 8 5.1`,key:`1cfko1`}],[`path`,{d:`M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z`,key:`s0h3yz`}]]};Cb.node;var kee=U(Cb),wb={name:`newspaper`,size:24,node:[[`path`,{d:`M15 18h-5`,key:`95g1m2`}],[`path`,{d:`M18 14h-8`,key:`sponae`}],[`path`,{d:`M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2`,key:`39pd36`}],[`rect`,{width:`8`,height:`4`,x:`10`,y:`6`,rx:`1`,key:`aywv1n`}]]};wb.node;var Aee=U(wb),Tb={name:`package`,size:24,node:[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]};Tb.node;var jee=U(Tb),Eb={name:`palette`,size:24,node:[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]};Eb.node;var Mee=U(Eb),Db={name:`panel-right-close`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m8 9 3 3-3 3`,key:`12hl5m`}]]};Db.node;var Nee=U(Db),Ob={name:`panel-right-open`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m10 15-3-3 3-3`,key:`1pgupc`}]]};Ob.node;var kb=U(Ob),Ab={name:`panel-top`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]};Ab.node;var jb=U(Ab),Mb={name:`panels-top-left`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M9 21V9`,key:`1oto5p`}]],aliases:[`layout`]};Mb.node;var Nb=U(Mb),Pb={name:`pen-line`,size:24,node:[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]],aliases:[`edit-3`]};Pb.node;var Fb=U(Pb),Ib={name:`pencil`,size:24,node:[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]};Ib.node;var Lb=U(Ib),Rb={name:`phone`,size:24,node:[[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]};Rb.node;var zb=U(Rb),Bb={name:`play`,size:24,node:[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]};Bb.node;var Vb=U(Bb),Hb={name:`plug-zap`,size:24,node:[[`path`,{d:`M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z`,key:`goz73y`}],[`path`,{d:`m2 22 3-3`,key:`19mgm9`}],[`path`,{d:`M7.5 13.5 10 11`,key:`7xgeeb`}],[`path`,{d:`M10.5 16.5 13 14`,key:`10btkg`}],[`path`,{d:`m18 3-4 4h6l-4 4`,key:`16psg9`}]],aliases:[`plug-zap-2`]};Hb.node;var Ub=U(Hb),Wb={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};Wb.node;var Gb=U(Wb),Kb={name:`puzzle`,size:24,node:[[`path`,{d:`M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z`,key:`w46dr5`}]]};Kb.node;var qb=U(Kb),Jb={name:`quote`,size:24,node:[[`path`,{d:`M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`rib7q0`}],[`path`,{d:`M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`1ymkrd`}]]};Jb.node;var Yb=U(Jb),Xb={name:`redo-2`,size:24,node:[[`path`,{d:`m15 14 5-5-5-5`,key:`12vg1m`}],[`path`,{d:`M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13`,key:`6uklza`}]]};Xb.node;var Zb=U(Xb),Qb={name:`rotate-ccw-clock`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],aliases:[`history`]};Qb.node;var $b=U(Qb),ex={name:`rotate-cw`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]};ex.node;var tx=U(ex),nx={name:`rows-3`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M21 9H3`,key:`1338ky`}],[`path`,{d:`M21 15H3`,key:`9uk58r`}]],aliases:[`panels-top-bottom`]};nx.node;var rx=U(nx),ix={name:`save`,size:24,node:[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]};ix.node;var ax=U(ix),ox={name:`search-x`,size:24,node:[[`path`,{d:`m13.5 8.5-5 5`,key:`1cs55j`}],[`path`,{d:`m8.5 8.5 5 5`,key:`a8mexj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]};ox.node;var sx=U(ox),cx={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};cx.node;var lx=U(cx),ux={name:`send`,size:24,node:[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]};ux.node;var dx=U(ux),fx={name:`settings-2`,size:24,node:[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]};fx.node;var px=U(fx),mx={name:`settings`,size:24,node:[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};mx.node;var hx=U(mx),gx={name:`shapes`,size:24,node:[[`path`,{d:`M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z`,key:`1bo67w`}],[`rect`,{x:`3`,y:`14`,width:`7`,height:`7`,rx:`1`,key:`1bkyp8`}],[`circle`,{cx:`17.5`,cy:`17.5`,r:`3.5`,key:`w3z12y`}]]};gx.node;var _x=U(gx),vx={name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]};vx.node;var yx=U(vx),bx={name:`smartphone`,size:24,node:[[`rect`,{width:`14`,height:`20`,x:`5`,y:`2`,rx:`2`,ry:`2`,key:`1yt0o3`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}]]};bx.node;var xx=U(bx),Sx={name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],aliases:[`stars`]};Sx.node;var Pee=U(Sx),Cx={name:`star`,size:24,node:[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]};Cx.node;var Fee=U(Cx),wx={name:`table`,size:24,node:[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]};wx.node;var Iee=U(wx),Tx={name:`tablet`,size:24,node:[[`rect`,{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,ry:`2`,key:`76otgf`}],[`line`,{x1:`12`,x2:`12.01`,y1:`18`,y2:`18`,key:`1dp563`}]]};Tx.node;var Lee=U(Tx),Ex={name:`tag`,size:24,node:[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]};Ex.node;var Dx=U(Ex),Ox={name:`text-align-start`,size:24,node:[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M17 19H3`,key:`z6ezky`}]],aliases:[`text`,`align-left`]};Ox.node;var kx=U(Ox),Ax={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};Ax.node;var jx=U(Ax),Mx={name:`type`,size:24,node:[[`path`,{d:`M12 4v16`,key:`1654pz`}],[`path`,{d:`M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2`,key:`e0r10z`}],[`path`,{d:`M9 20h6`,key:`s66wpe`}]]};Mx.node;var Ree=U(Mx),Nx={name:`undo-2`,size:24,node:[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]};Nx.node;var Px=U(Nx),Fx={name:`upload`,size:24,node:[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]};Fx.node;var Ix=U(Fx),Lx={name:`user-plus`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,key:`1bvyxn`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]};Lx.node;var zee=U(Lx),Rx={name:`user-round`,size:24,node:[[`circle`,{cx:`12`,cy:`8`,r:`5`,key:`1hypcn`}],[`path`,{d:`M20 21a8 8 0 0 0-16 0`,key:`rfgkzh`}]],aliases:[`user-2`]};Rx.node;var zx=U(Rx),Bx={name:`user-x`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`17`,x2:`22`,y1:`8`,y2:`13`,key:`3nzzx3`}],[`line`,{x1:`22`,x2:`17`,y1:`8`,y2:`13`,key:`1swrse`}]]};Bx.node;var Vx=U(Bx),Hx={name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]};Hx.node;var Ux=U(Hx),Wx={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Wx.node;var Gx=U(Wx);function Kx(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}var qx=typeof document<`u`?x.useLayoutEffect:()=>{},Jx={prefix:String(Math.round(Math.random()*1e10)),current:0},Yx=x.createContext(Jx),Xx=x.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement;var Zx=new WeakMap;function Qx(e=!1){let t=(0,x.useContext)(Yx),n=(0,x.useRef)(null);if(n.current===null&&!e){let e=x.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(e){let n=Zx.get(e);n==null?Zx.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,Zx.delete(e))}n.current=++t.current}return n.current}function $x(e){let t=(0,x.useContext)(Yx),n=Qx(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function eS(e){let t=x.useId(),[n]=(0,x.useState)(aS()),r=n?`react-aria`:`react-aria${Jx.prefix}`;return e||`${r}-${t}`}var tS=typeof x.useId==`function`?eS:$x;function nS(){return!1}function rS(){return!0}function iS(e){return()=>{}}function aS(){return typeof x.useSyncExternalStore==`function`?x.useSyncExternalStore(iS,nS,rS):(0,x.useContext)(Xx)}function oS(e){let[t,n]=(0,x.useState)(e),r=(0,x.useRef)(t),i=(0,x.useRef)(null),a=(0,x.useRef)(()=>{if(!i.current)return;let e=i.current.next();e.done?i.current=null:r.current===e.value?a.current():n(e.value)});return qx(()=>{r.current=t,i.current&&a.current()}),[t,(0,x.useCallback)(e=>{i.current=e(r.current),a.current()},[a])]}var sS=!!(typeof window<`u`&&window.document&&window.document.createElement),cS=new Map,lS;typeof FinalizationRegistry<`u`&&(lS=new FinalizationRegistry(e=>{cS.delete(e)}));var uS=new WeakMap;function dS(e){let[t,n]=(0,x.useState)(e),r=(0,x.useRef)(null),i=tS(t),a=(0,x.useRef)(null),o=uS.get(a);if(lS&&o!==i&&(o!=null&&lS.unregister(a),lS.register(a,i,a),uS.set(a,i)),sS){let e=cS.get(i);e&&!e.includes(r)?e.push(r):cS.set(i,[r])}return qx(()=>{let e=i;return()=>{lS&&(lS.unregister(a),uS.delete(a)),cS.delete(e)}},[i]),(0,x.useEffect)(()=>{let e=r.current;return e&&n(e),()=>{e&&(r.current=null)}}),i}function fS(e,t){if(e===t)return e;let n=cS.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=cS.get(t);return r?(r.forEach(t=>t.current=e),e):t}function pS(e=[]){let t=dS(),[n,r]=oS(t),i=(0,x.useCallback)(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return qx(i,[t,i,...e]),n}function mS(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1,r=e.map(e=>{let r=hS(e,t);return n||=typeof r==`function`,r});if(n)return()=>{r.forEach((t,n)=>{typeof t==`function`?t():hS(e[n],null)})}}}function hS(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function W(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];typeof n==`function`&&typeof i==`function`&&e[0]===`o`&&e[1]===`n`&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=Kx(n,i):(e===`className`||e===`UNSAFE_className`)&&typeof n==`string`&&typeof i==`string`?t[e]=K_(n,i):e===`id`&&n&&i?t.id=fS(n,i):e===`ref`&&n&&i?t.ref=mS(n,i):t[e]=i===void 0?n:i}}return t}function gS(e){let t=(0,x.useRef)(null),n=(0,x.useRef)(void 0),r=(0,x.useCallback)(t=>{if(typeof e==`function`){let n=e,r=n(t);return()=>{typeof r==`function`?r():n(null)}}if(e)return e.current=t,()=>{e.current=null}},[e]);return(0,x.useMemo)(()=>({get current(){return t.current},set current(e){t.current=e,n.current&&=(n.current(),void 0),e!=null&&(n.current=r(e))}}),[r])}var _S=Symbol(`default`);function vS({values:e,children:t}){for(let[n,r]of e)t=x.createElement(n.Provider,{value:r},t);return t}function yS(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:o,values:s,render:c}=e;return(0,x.useMemo)(()=>{let e,l,u;return e=typeof t==`function`?t({...s,defaultClassName:i}):t,l=typeof n==`function`?n({...s,defaultStyle:o||{}}):n,u=typeof r==`function`?r({...s,defaultChildren:a}):r??a,{className:e??i,style:l||o?{...o,...l}:void 0,children:u??a,"data-rac":``,render:c?e=>c(e,s):void 0}},[t,n,r,i,a,o,s,c])}function bS(e,t){return n=>t(typeof e==`function`?e(n):e,n)}function xS(e,t){let n=(0,x.useContext)(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||_S;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function SS(e,t,n){let{ref:r,...i}=xS(n,e.slot)||{},a=gS((0,x.useMemo)(()=>mS(t,r),[t,r])),o=W(i,e);return`style`in i&&i.style&&`style`in e&&e.style&&(o.style=typeof i.style==`function`||typeof e.style==`function`?t=>{let n=typeof i.style==`function`?i.style(t):i.style,r={...t.defaultStyle,...n},a=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...a}}:{...i.style,...e.style}),[o,a]}function CS(e=!0){let[t,n]=(0,x.useState)(e),r=(0,x.useRef)(!1),i=(0,x.useCallback)(e=>{r.current=!0,n(!!e)},[]);return qx(()=>{r.current||n(!1)},[]),[i,t]}function wS(e){let t=/^(data-.*)$/,n={};for(let r in e)t.test(r)||(n[r]=e[r]);return n}function TS(e,t,n){let{render:r,...i}=t,a=(0,x.useRef)(null),o=(0,x.useMemo)(()=>mS(n,a),[n,a]);qx(()=>{},[e,r]);let s={...i,ref:o};return r?r(s,void 0):x.createElement(e,s)}var ES={},G=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=ES[t];return n||(n=(0,x.forwardRef)(TS.bind(null,t)),ES[t]=n),n}}),DS=`react-aria-clear-focus`,OS=`react-aria-focus`,kS=e=>MS(e)?e.document:NS(e)?e:e?.ownerDocument??(typeof document<`u`?document:void 0),AS=e=>kS(e)?.defaultView??(typeof window<`u`?window:void 0);function jS(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function MS(e){return typeof e==`object`&&!!e&&`window`in e&&e.window===e}function NS(e){return jS(e)&&e.nodeType===9}function PS(e){return jS(e)&&e.nodeType===11&&`host`in e}function FS(e,t,n,r){if(n==null||e==null)return()=>{};let i=Array.isArray(e)?e:[e];for(let e of i)e.addEventListener(t,n,r);return()=>{for(let e of i)e.removeEventListener(t,n,r)}}function IS(e,t,n,r){if(e==null)return()=>{};let i=[],a=Array.isArray(e)?e:[e];for(let e of a){let a=e.style.getPropertyValue(t),o=e.style.getPropertyPriority(t);e.style.setProperty(t,n,r),i.unshift(()=>{a?e.style.setProperty(t,a,o):e.style.removeProperty(t)})}return()=>{for(let e of i)e()}}var LS=!1;function RS(){return LS}function zS(e,t){if(!RS())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!=null;){if(n===e)return!0;n=typeof n.assignedElements!=`function`&&n.assignedSlot?.parentNode?n.assignedSlot.parentNode:PS(n)?n.host:n.parentNode}return!1}var BS=(e=document)=>{if(!RS())return e.activeElement;let t=e.activeElement;for(;t&&`shadowRoot`in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function K(e){if(RS()&&e.target instanceof Element&&e.target.shadowRoot){if(`composedPath`in e)return e.composedPath()[0]??null;if(`composedPath`in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return e.target}function VS(e,t){if(t===null)return[];t??=AS(e);let n=[t];if(!RS()||!e||e===t)return n;let r=`getRootNode`in t?t.getRootNode():null,i=e.getRootNode()??null;for(;PS(i)&&i!==r;)n.push(i),i=i.host.getRootNode();return n}function HS(e){if(!e)return!1;let t=e.getRootNode(),n=AS(e);if(!(t instanceof n.Document||t instanceof n.ShadowRoot))return!1;let r=t.activeElement;return r!=null&&e.contains(r)}function US(e){let t=KS(kS(e));t!==e&&(t&&WS(t,e),e&&GS(e,t))}function WS(e,t){e.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:t})),e.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:t}))}function GS(e,t){e.dispatchEvent(new FocusEvent(`focus`,{relatedTarget:t})),e.dispatchEvent(new FocusEvent(`focusin`,{bubbles:!0,relatedTarget:t}))}function KS(e){let t=BS(e),n=t?.getAttribute(`aria-activedescendant`);return n&&e.getElementById(n)||t}function qS(e){e.focus({preventScroll:!0})}var JS=typeof Element<`u`&&`checkVisibility`in Element.prototype;function YS(e){let t=AS(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!==`none`&&r!==`hidden`&&r!==`collapse`;if(i){let{getComputedStyle:t}=AS(e),{display:n,visibility:r}=t(e);i=n!==`none`&&r!==`hidden`&&r!==`collapse`}return i}function XS(e,t){return!e.hasAttribute(`hidden`)&&!e.hasAttribute(`data-react-aria-prevent-focus`)&&(e.nodeName===`DETAILS`&&t&&t.nodeName!==`SUMMARY`?e.hasAttribute(`open`):!0)}function ZS(e,t){return JS?e.checkVisibility({visibilityProperty:!0})&&!e.closest(`[data-react-aria-prevent-focus]`):e.nodeName!==`#comment`&&YS(e)&&XS(e,t)&&(!e.parentElement||ZS(e.parentElement,e))}var QS=[`input:not([disabled]):not([type=hidden])`,`select:not([disabled])`,`textarea:not([disabled])`,`button:not([disabled])`,`a[href]`,`area[href]`,`summary`,`iframe`,`object`,`embed`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable^="false"])`,`permission`],$S=QS.join(`:not([hidden]),`)+`,[tabindex]:not([disabled]):not([hidden])`;QS.push(`[tabindex]:not([tabindex="-1"]):not([disabled])`);var eC=QS.join(`:not([hidden]):not([tabindex="-1"]),`);function tC(e,t){return e.matches($S)&&!rC(e)&&(t?.skipVisibilityCheck||ZS(e))}function nC(e){return e.matches(eC)&&ZS(e)&&!rC(e)}function rC(e){let t=e;for(;t!=null;){if(t instanceof AS(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function iC(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function aC(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function oC(e){let t=(0,x.useRef)({isFocused:!1,observer:null});return qx(()=>{let e=t.current;return()=>{e.observer&&=(e.observer.disconnect(),null)}},[]),(0,x.useCallback)(n=>{let r=K(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r;n.addEventListener(`focusout`,r=>{if(t.current.isFocused=!1,n.disabled){let t=iC(r);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){t.current.observer?.disconnect();let e=n===BS()?null:BS();n.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:e})),n.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:[`disabled`]})}},[e])}var sC=!1;function cC(e){for(;e&&!tC(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=BS(AS(e).document);if(!t||t===e)return;let n=e?.getRootNode(),r=n!=null&&PS(n)?n:AS(e),i=t=>t===e||jS(t)&&zS(e,t),a=e=>e===t||t!=null&&jS(e)&&zS(t,e);sC=!0;let o=!1,s=e=>{(a(K(e))||o)&&e.stopImmediatePropagation()},c=n=>{(a(K(n))||o)&&(n.stopImmediatePropagation(),!e&&!o&&(o=!0,qS(t),d()))},l=e=>{(i(K(e))||o)&&e.stopImmediatePropagation()},u=e=>{(i(K(e))||o)&&(e.stopImmediatePropagation(),o||(o=!0,qS(t),d()))};r.addEventListener(`blur`,s,!0),r.addEventListener(`focusout`,c,!0),r.addEventListener(`focusin`,u,!0),r.addEventListener(`focus`,l,!0);let d=()=>{cancelAnimationFrame(f),r.removeEventListener(`blur`,s,!0),r.removeEventListener(`focusout`,c,!0),r.removeEventListener(`focusin`,u,!0),r.removeEventListener(`focus`,l,!0),sC=!1,o=!1},f=requestAnimationFrame(d);return d}function lC(e){if(typeof window>`u`||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function uC(e){return typeof window<`u`&&window.navigator!=null&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function dC(e){let t=null;return()=>(t??=e(),t)}var fC=dC(function(){return uC(/^Mac/i)}),pC=dC(function(){return uC(/^iPhone/i)}),mC=dC(function(){return uC(/^iPad/i)||fC()&&navigator.maxTouchPoints>1}),hC=dC(function(){return pC()||mC()}),gC=dC(function(){return fC()||hC()}),_C=dC(function(){return lC(/AppleWebKit/i)&&(hC()||!vC())}),vC=dC(function(){return lC(/Chrome|CriOS|CrMo/i)}),yC=dC(function(){return lC(/Android/i)});function bC(e){return e.pointerType===``&&e.isTrusted?!0:yC()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function xC(e){return!yC()&&e.width===0&&e.height===0||yC()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`}var SC=(0,x.createContext)({isNative:!0,open:OC,useHref:e=>e});function CC(e){let{children:t,navigate:n,useHref:r}=e,i=(0,x.useMemo)(()=>({isNative:!1,open:(e,t,r,i)=>{DC(e,e=>{TC(e,t)?n(r,i):EC(e,t)})},useHref:r||(e=>e)}),[n,r]);return x.createElement(SC.Provider,{value:i},t)}function wC(){return(0,x.useContext)(SC)}function TC(e,t){let n=e.getAttribute(`target`);return(!n||n===`_self`)&&e.origin===location.origin&&!e.hasAttribute(`download`)&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function EC(e,t,n=!0){let{metaKey:r,ctrlKey:i,altKey:a,shiftKey:o}=t,s=_C()&&fC()&&!mC()?new KeyboardEvent(`keydown`,{keyIdentifier:`Enter`,metaKey:r,ctrlKey:i,altKey:a,shiftKey:o}):new MouseEvent(`click`,{metaKey:r,ctrlKey:i,altKey:a,shiftKey:o,detail:1,bubbles:!0,cancelable:!0});EC.isOpening=n,qS(e),e.dispatchEvent(s),EC.isOpening=!1}EC.isOpening=!1;function DC(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute(`data-href`)){let n=document.createElement(`a`);n.href=e.getAttribute(`data-href`),e.hasAttribute(`data-target`)&&(n.target=e.getAttribute(`data-target`)),e.hasAttribute(`data-rel`)&&(n.rel=e.getAttribute(`data-rel`)),e.hasAttribute(`data-download`)&&(n.download=e.getAttribute(`data-download`)),e.hasAttribute(`data-ping`)&&(n.ping=e.getAttribute(`data-ping`)),e.hasAttribute(`data-referrer-policy`)&&(n.referrerPolicy=e.getAttribute(`data-referrer-policy`)),e.appendChild(n),t(n),e.removeChild(n)}}function OC(e,t){DC(e,e=>EC(e,t))}function kC(e){let t=wC().useHref(e.href??``);return{"data-href":e.href?t:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function AC(e){let t=wC().useHref(e?.href??``),n={};if(e)for(let r of[`href`,`target`,`rel`,`download`,`ping`,`referrerPolicy`])r in e&&e[r]!==void 0&&(n[r]=r===`href`?t:e[r]);return n}function jC(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&TC(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}var MC=null,NC=`keyboard`,PC=new Set,FC=new Map,IC=!1,LC=!1,RC={Tab:!0,Escape:!0};function zC(e,t){for(let n of PC)n(e,t)}function BC(e){return!(e.metaKey||!fC()&&e.altKey||e.ctrlKey||e.key===`Control`||e.key===`Shift`||e.key===`Meta`)}function VC(e){IC=!0,!EC.isOpening&&BC(e)&&(MC=`keyboard`,NC=`keyboard`,zC(`keyboard`,e))}function HC(e){MC=`pointer`,NC=`pointerType`in e?e.pointerType:`mouse`,(e.type===`mousedown`||e.type===`pointerdown`)&&(IC=!0,zC(`pointer`,e))}function UC(e){!EC.isOpening&&bC(e)&&(IC=!0,MC=`virtual`,NC=`virtual`)}function WC(e){if(sC)return;let t=K(e),n=AS(t),r=kS(t);t===n?LC=!0:t!==r&&e.isTrusted&&(!IC&&!LC&&(MC=`virtual`,NC=`virtual`,zC(`virtual`,e)),IC=!1,LC=!1)}function GC(){sC||(IC=!1,LC=!0)}function KC(e){let t=BS(kS(K(e)));queueMicrotask(()=>{BS(kS(K(e)))!==t&&QC(`keyboard`)})}function qC(e){if(typeof window>`u`||typeof document>`u`)return;let t=AS(e),n=kS(e);if(FC.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){IC=!0,r.apply(this,arguments)}}),n.addEventListener(`keydown`,VC,!0),n.addEventListener(`keyup`,VC,!0),n.addEventListener(`click`,UC,!0),n.addEventListener(`invalid`,KC,!0),t.addEventListener(`focus`,WC,!0),t.addEventListener(`blur`,GC,!1),typeof PointerEvent<`u`&&(n.addEventListener(`pointerdown`,HC,!0),n.addEventListener(`pointermove`,HC,!0),n.addEventListener(`pointerup`,HC,!0)),t.addEventListener(`beforeunload`,()=>{JC(e)},{once:!0}),FC.set(t,{focus:r})}var JC=(e,t)=>{let n=AS(e),r=kS(e);t&&r.removeEventListener(`DOMContentLoaded`,t),FC.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:FC.get(n).focus}),r.removeEventListener(`keydown`,VC,!0),r.removeEventListener(`keyup`,VC,!0),r.removeEventListener(`click`,UC,!0),r.removeEventListener(`invalid`,KC,!0),n.removeEventListener(`focus`,WC,!0),n.removeEventListener(`blur`,GC,!1),typeof PointerEvent<`u`&&(r.removeEventListener(`pointerdown`,HC,!0),r.removeEventListener(`pointermove`,HC,!0),r.removeEventListener(`pointerup`,HC,!0)),FC.delete(n))};function YC(e){let t=kS(e),n;return t.readyState===`loading`?(n=()=>{qC(e)},t.addEventListener(`DOMContentLoaded`,n)):qC(e),()=>JC(e,n)}typeof document<`u`&&YC();function XC(){return MC!==`pointer`}function ZC(){return MC}function QC(e){MC=e,NC=e===`pointer`?`mouse`:e,zC(e,null)}function Bee(){return NC}function $C(){qC();let[e,t]=(0,x.useState)(MC);return(0,x.useEffect)(()=>{let e=()=>{t(MC)};return PC.add(e),()=>{PC.delete(e)}},[]),aS()?null:e}var Vee=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function Hee(e,t,n){let r=n?K(n):void 0,i=kS(r),a=AS(r),o=a===void 0?HTMLInputElement:a.HTMLInputElement,s=a===void 0?HTMLTextAreaElement:a.HTMLTextAreaElement,c=a===void 0?HTMLElement:a.HTMLElement,l=a===void 0?KeyboardEvent:a.KeyboardEvent,u=BS(i);return e=e||u instanceof o&&!Vee.has(u.type)||u instanceof s||u instanceof c&&u.isContentEditable,!(e&&t===`keyboard`&&n instanceof l&&!RC[n.key])}function Uee(e,t,n){qC(),(0,x.useEffect)(()=>{if(n?.enabled===!1)return;let t=(t,r)=>{Hee(!!n?.isTextInput,t,r)&&e(XC())};return PC.add(t),()=>{PC.delete(t)}},t)}var ew={};ew={collectionLabel:`مقترحات`};var tw={};tw={collectionLabel:`Предложения`};var nw={};nw={collectionLabel:`Návrhy`};var rw={};rw={collectionLabel:`Forslag`};var iw={};iw={collectionLabel:`Empfehlungen`};var aw={};aw={collectionLabel:`Προτάσεις`};var ow={};ow={collectionLabel:`Suggestions`};var sw={};sw={collectionLabel:`Sugerencias`};var cw={};cw={collectionLabel:`Soovitused`};var lw={};lw={collectionLabel:`Ehdotukset`};var uw={};uw={collectionLabel:`Suggestions`};var dw={};dw={collectionLabel:`הצעות`};var fw={};fw={collectionLabel:`Prijedlozi`};var pw={};pw={collectionLabel:`Javaslatok`};var mw={};mw={collectionLabel:`Suggerimenti`};var hw={};hw={collectionLabel:`候補`};var gw={};gw={collectionLabel:`제안`};var _w={};_w={collectionLabel:`Pasiūlymai`};var vw={};vw={collectionLabel:`Ieteikumi`};var yw={};yw={collectionLabel:`Forslag`};var bw={};bw={collectionLabel:`Suggesties`};var xw={};xw={collectionLabel:`Sugestie`};var Sw={};Sw={collectionLabel:`Sugestões`};var Cw={};Cw={collectionLabel:`Sugestões`};var ww={};ww={collectionLabel:`Sugestii`};var Tw={};Tw={collectionLabel:`Предложения`};var Ew={};Ew={collectionLabel:`Návrhy`};var Dw={};Dw={collectionLabel:`Predlogi`};var Ow={};Ow={collectionLabel:`Predlozi`};var kw={};kw={collectionLabel:`Förslag`};var Aw={};Aw={collectionLabel:`Öneriler`};var jw={};jw={collectionLabel:`Пропозиції`};var Mw={};Mw={collectionLabel:`建议`};var Nw={};Nw={collectionLabel:`建議`};var Pw={};Pw={"ar-AE":ew,"bg-BG":tw,"cs-CZ":nw,"da-DK":rw,"de-DE":iw,"el-GR":aw,"en-US":ow,"es-ES":sw,"et-EE":cw,"fi-FI":lw,"fr-FR":uw,"he-IL":dw,"hr-HR":fw,"hu-HU":pw,"it-IT":mw,"ja-JP":hw,"ko-KR":gw,"lt-LT":_w,"lv-LV":vw,"nb-NO":yw,"nl-NL":bw,"pl-PL":xw,"pt-BR":Sw,"pt-PT":Cw,"ro-RO":ww,"ru-RU":Tw,"sk-SK":Ew,"sl-SI":Dw,"sr-SP":Ow,"sv-SE":kw,"tr-TR":Aw,"uk-UA":jw,"zh-CN":Mw,"zh-TW":Nw};function Fw(e,t){let n=AS(t),r=kS(t);if(r==null||n==null)return;let i,a=`meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`,o=r.querySelector(a);return o&&o instanceof n.HTMLMetaElement&&(e===`csp-nonce`&&o.nonce&&(i??=o.nonce||void 0),o.content&&(i??=o.content||void 0)),e===`csp-nonce`&&(i??=n.__webpack_nonce__||globalThis.__webpack_nonce__||void 0),i}var Iw=100,Lw=600,Rw={isOpen:!1,screenWidth:0,screenHeight:0,screenAngle:0,screenTimeout:0,startTimeStamp:0,endTimeStamp:0,resizeTimeStamp:0,resizeTimeout:0},Wee=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function zw(){let e=Number(window.visualViewport?.width??window.innerWidth),t=Number(window.visualViewport?.height??window.innerHeight),n=Number(window.visualViewport?.scale??1);return{width:e*n,height:t*n,angle:window.screen.orientation?.angle??0}}function Gee(e){Rw.resizeTimeStamp<=e.timeStamp+50&&(Rw.resizeTimeStamp=e.timeStamp+150,window.clearTimeout(Rw.resizeTimeout),Rw.resizeTimeout=window.setTimeout(Bw,150))}function Bw(){let e=Fw(`viewport`);if(yC()&&e?.includes(`overlays-content`))return;let t=performance.now(),n=zw(),r=t-Rw.startTimeStamp,i=Rw.screenHeight-n.height,a=Rw.screenAngle-n.angle;Math.abs(a)%180&&Rw.screenWidth-n.height<Iw&&(Rw.screenWidth=n.width,Rw.screenHeight=n.height,Rw.screenAngle=n.angle,i=0),r>Lw&&(window.clearTimeout(Rw.screenTimeout),Rw.screenTimeout=window.setTimeout(()=>{let e=Uw(document.hasFocus()?BS():null),t=zw();Math.abs(Rw.screenAngle-t.angle)%180||Rw.isOpen&&e||(Rw.screenWidth=t.width,Rw.screenHeight=t.height,Rw.screenAngle=t.angle,Rw.isOpen=!1)},Lw)),r<=Lw&&i>=Iw&&(Rw.endTimeStamp=t),Rw.isOpen=i>=Iw}function Kee(){let e=zw(),t=Rw.screenAngle-e.angle;if(Math.abs(t)%180&&!Rw.isOpen){let e=Rw.screenWidth;Rw.screenWidth=Rw.screenHeight,Rw.screenHeight=e}Rw.isOpen||(Rw.screenAngle=e.angle)}function qee(e){let t=Uw(K(e)),n=performance.now(),r=zw(),i=Rw.screenHeight-r.height;i<Iw&&t&&(Rw.screenWidth=r.width,Rw.screenHeight=r.height,Rw.screenAngle=r.angle,Rw.startTimeStamp=n),t&&window.clearTimeout(Rw.screenTimeout),i>=Iw&&t&&(Rw.endTimeStamp=n)}function Vw(){let e=zw();FS(window.visualViewport,`resize`,_C()?Bw:Gee),FS(window.screen.orientation,`change`,Kee),FS(window,`focus`,qee,{capture:!0,passive:!0}),Rw.screenWidth=e.width,Rw.screenHeight=e.height,Rw.screenAngle=e.angle}typeof document<`u`&&(document.readyState===`loading`?FS(document,`DOMContentLoaded`,Vw):Vw());function Hw(){let e=Fw(`viewport`);return yC()&&e?.includes(`overlays-content`)?!1:Rw.isOpen?!0:Rw.startTimeStamp?Rw.endTimeStamp>=Rw.startTimeStamp?!0:performance.now()-Rw.startTimeStamp<=Lw?Rw.endTimeStamp>0||window.navigator.maxTouchPoints>0:!1:window.navigator.maxTouchPoints>0}function Uw(e){if(!(e instanceof Element)||!tC(e))return!1;let t=e instanceof HTMLTextAreaElement,n=e instanceof HTMLElement&&e.isContentEditable,r=e instanceof HTMLInputElement&&!Wee.has(e.type);return t||n||r}function Ww(e){return fC()?e.metaKey:e.ctrlKey}function Gw(){return Rw.isOpen}var Jee=x.useInsertionEffect??qx;function Kw(e){let t=(0,x.useRef)(null);return Jee(()=>{t.current=e},[e]),(0,x.useCallback)((...e)=>{let n=t.current;return n?.(...e)},[])}function qw(e,t,n,r){let i=Kw(n),a=n==null;(0,x.useEffect)(()=>{if(!(a||e.current==null))return FS(e.current,t,i,r)},[e,t,r,a])}function Jw(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=dS(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(` `):i&&=i.trim().split(/\s+/).join(` `),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}var Yee=new Set([`Arab`,`Syrc`,`Samr`,`Mand`,`Thaa`,`Mend`,`Nkoo`,`Adlm`,`Rohg`,`Hebr`]),Yw=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`glk`,`he`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]);function Xw(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n=typeof t.getTextInfo==`function`?t.getTextInfo():t.textInfo;if(n)return n.direction===`rtl`;if(t.script)return Yee.has(t.script)}let t=e.split(`-`)[0];return Yw.has(t)}var Zw=Symbol.for(`react-aria.i18n.locale`);function Qw(){let e=typeof window<`u`&&window[Zw]||typeof navigator<`u`&&(navigator.language||navigator.userLanguage)||`en-US`;try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e=`en-US`}return{locale:e,direction:Xw(e)?`rtl`:`ltr`}}var $w=Qw(),eT=new Set;function tT(){$w=Qw();for(let e of eT)e($w)}function nT(){let e=aS(),[t,n]=(0,x.useState)($w);return(0,x.useEffect)(()=>(eT.size===0&&window.addEventListener(`languagechange`,tT),eT.add(n),()=>{eT.delete(n),eT.size===0&&window.removeEventListener(`languagechange`,tT)}),[]),e?{locale:typeof window<`u`&&window[Zw]||`en-US`,direction:`ltr`}:t}var rT=x.createContext(null);function iT(){let e=nT();return(0,x.useContext)(rT)||e}var aT=Symbol.for(`react-aria.i18n.locale`),oT=Symbol.for(`react-aria.i18n.strings`),sT=void 0,cT=class e{constructor(e,t=`en-US`){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=Xee(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(t){if(typeof window>`u`)return null;let n=window[aT];if(sT===void 0){let t=window[oT];if(!t)return null;sT={};for(let r in t)sT[r]=new e({[n]:t[r]},n)}let r=sT?.[t];if(!r)throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}};function Xee(e,t,n=`en-US`){if(t[e])return t[e];let r=Zee(e),i=Qee(e);if(i&&t[`${r}-${i}`])return t[`${r}-${i}`];if(t[r])return t[r];for(let e in t)if(e.startsWith(r+`-`))return t[e];return t[n]}function Zee(e){return Intl.Locale?new Intl.Locale(e).language:e.split(`-`)[0]}function Qee(e){if(Intl.Locale)return new Intl.Locale(e).script}var lT=new Map,uT=new Map,dT=class{constructor(e,t){this.locale=e,this.strings=t}format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return typeof n==`function`?n(t,this):n}plural(e,t,n=`cardinal`){let r=t[`=`+e];if(r)return typeof r==`function`?r():r;let i=this.locale+`:`+n,a=lT.get(i);return a||(a=new Intl.PluralRules(this.locale,{type:n}),lT.set(i,a)),r=t[a.select(e)]||t.other,typeof r==`function`?r():r}number(e){let t=uT.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),uT.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return typeof n==`function`?n():n}},fT=new WeakMap;function pT(e){let t=fT.get(e);return t||(t=new cT(e),fT.set(e,t)),t}function mT(e,t){return t&&cT.getGlobalDictionaryForPackage(t)||pT(e)}function hT(e,t){let{locale:n}=iT(),r=mT(e,t);return(0,x.useMemo)(()=>new dT(n,r),[n,r])}function gT(e){return e&&e.__esModule?e.default:e}function _T(e,t){let{inputRef:n,collectionRef:r,filter:i,disableAutoFocusFirst:a=!1,disableVirtualFocus:o=!1}=e,s=dS(),c=(0,x.useRef)(void 0),l=(0,x.useRef)(!1),u=(0,x.useRef)(null),d=ZC()===`virtual`&&(hC()||yC()),[f,p]=(0,x.useState)(!d&&!o),[m,h]=(0,x.useState)(!1),[g,_]=(0,x.useState)(!1);(0,x.useEffect)(()=>()=>clearTimeout(c.current),[]);let v=Kw(e=>{!e.isTrusted&&f&&n.current&&BS(kS(n.current))!==n.current&&Bee()!==`touch`&&n.current.focus();let i=K(e);!e.isTrusted&&i&&u.current!==i.id&&(clearTimeout(c.current),i===r.current?u.current&&!document.getElementById(u.current)&&(u.current=null,t.setFocusedNodeId(null)):l.current?(u.current=i.id,c.current=setTimeout(()=>{t.setFocusedNodeId(i.id)},500)):(u.current=i.id,t.setFocusedNodeId(i.id)),l.current=!1)}),[y,b]=(0,x.useState)(null),S=(0,x.useCallback)(e=>{b(e),e==null?h(!1):(e.getAttribute(`tabindex`)!=null&&p(!1),h(!0))},[]);qx(()=>(y?.addEventListener(`focusin`,v),()=>{y?.removeEventListener(`focusin`,v)}),[y]);let C=gS((0,x.useMemo)(()=>mS(r,S),[r,S])),w=(0,x.useCallback)(()=>{r.current?(l.current=!0,r.current?.dispatchEvent(new CustomEvent(OS,{cancelable:!0,bubbles:!0,detail:{focusStrategy:`first`}}))):_(!0)},[r]),T=(0,x.useCallback)(e=>{_(!1),US(BS()),u.current=null,t.setFocusedNodeId(null);let n=new CustomEvent(DS,{cancelable:!0,bubbles:!0,detail:{clearFocusKey:e}});clearTimeout(c.current),l.current=!1,r.current?.dispatchEvent(n)},[r,t]),E=(0,x.useRef)(``);qw(n,`beforeinput`,e=>{let{inputType:t}=e;E.current=t});let D=e=>{(E.current===`insertText`||E.current===`insertCompositionText`||E.current===`insertFromComposition`)&&!a?w():E.current&&(E.current.includes(`insert`)||E.current.includes(`delete`)||E.current.includes(`history`))&&(T(!0),KS(document)===n.current&&GS(n.current,null)),t.setInputValue(e)},O=(0,x.useRef)(null),k=e=>{if(O.current=K(e),e.nativeEvent.isComposing)return;let t=u.current;switch(t!==null&&kS(n.current).getElementById(t)==null&&(u.current=null,t=null),e.key){case`a`:if(Ww(e))return;break;case`Escape`:if(e.isDefaultPrevented())return;break;case` `:return;case`Tab`:`continuePropagation`in e&&e.continuePropagation();return;case`Home`:case`End`:case`PageDown`:case`PageUp`:case`ArrowUp`:case`ArrowDown`:case`ArrowRight`:case`ArrowLeft`:{if((e.key===`Home`||e.key===`End`)&&t==null&&e.shiftKey)return;if(e.key===`ArrowRight`||e.key===`ArrowLeft`){if(t==null){e.isPropagationStopped()||e.stopPropagation();return}break}e.preventDefault();let n=new CustomEvent(OS,{cancelable:!0,bubbles:!0});r.current?.dispatchEvent(n);break}}e.isPropagationStopped()||e.stopPropagation();let i=!0;if(r.current!==null){if(t==null)i=r.current?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent))||!1;else{let n=document.getElementById(t);n&&(i=n?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent))||!1)}}if(i)switch(e.key){case`ArrowLeft`:case`ArrowRight`:T();break;case`Enter`:t!=null&&document.getElementById(t)?.dispatchEvent(new PointerEvent(`click`,e.nativeEvent))}else e.preventDefault()},A=Kw(e=>{if(K(e)===O.current){e.stopImmediatePropagation();let t=u.current;t==null?r.current?.dispatchEvent(new KeyboardEvent(e.type,e)):document.getElementById(t)?.dispatchEvent(new KeyboardEvent(e.type,e))}});(0,x.useEffect)(()=>(document.addEventListener(`keyup`,A,!0),()=>{document.removeEventListener(`keyup`,A,!0)}),[]);let j=Jw({id:s,"aria-label":hT(gT(Pw),`@react-aria/autocomplete`).format(`collectionLabel`)}),M=(0,x.useCallback)((e,n)=>!i||i(e,t.inputValue,n),[t.inputValue,i]),N=e=>{if(!e.isTrusted)return;let t=u.current?document.getElementById(u.current):null;t&&WS(t,e.relatedTarget)},P=e=>{if(e.isTrusted&&u.current&&document.getElementById(u.current)){let t=K(e);queueMicrotask(()=>{WS(t,r.current),GS(r.current,t)})}},F=e=>{e.button===0&&e.pointerType!==`touch`&&u.current!=null&&n.current!=null&&K(e)===n.current&&T()},ee={value:t.inputValue,onChange:D},I={onKeyDown:k,"aria-activedescendant":t.focusedNodeId??void 0,onBlur:N,onFocus:P,onPointerDown:F};return ee={...ee,...f&&m&&I,enterKeyHint:`go`,"aria-controls":m?s:void 0,"aria-autocomplete":`list`,autoCorrect:`off`,spellCheck:`false`,autoComplete:`off`},{inputProps:ee,collectionProps:W(j,{shouldUseVirtualFocus:f,disallowTypeAhead:f,autoFocus:g?`first`:!1}),collectionRef:C,filter:i==null?void 0:M}}var vT=x.useInsertionEffect??x.useLayoutEffect;function yT(e,t,n){let[r,i]=(0,x.useState)(e||t),a=(0,x.useRef)(r),o=(0,x.useRef)(e!==void 0),s=e!==void 0;(0,x.useEffect)(()=>{o.current,o.current=s},[s]);let c=s?e:r;vT(()=>{a.current=c});let[,l]=(0,x.useReducer)(()=>({}),{});return[c,(0,x.useCallback)((e,...t)=>{let r=typeof e==`function`?e(a.current):e;Object.is(a.current,r)||(a.current=r,i(r),l(),n?.(r,...t))},[n])]}function bT(e){let{onInputChange:t,inputValue:n,defaultInputValue:r=``}=e,i=e=>{t&&t(e)},[a,o]=(0,x.useState)(null),[s,c]=yT(n,r,i);return{inputValue:s,setInputValue:c,focusedNodeId:a,setFocusedNodeId:o}}var xT=(0,x.createContext)(null),ST=(0,x.createContext)(null),CT=(0,x.createContext)(null),wT=(0,x.createContext)(null);function TT(e){e=W(xS(xT,e.slot),e);let{filter:t,disableAutoFocusFirst:n}=e,r=bT(e),i=(0,x.useRef)(null),a=(0,x.useRef)(null),{inputProps:o,collectionProps:s,collectionRef:c,filter:l}=_T({...wS(e),filter:t,disableAutoFocusFirst:n,inputRef:i,collectionRef:a},r);return x.createElement(vS,{values:[[ST,r],[wT,{...o,ref:i}],[CT,{...s,filter:l,ref:c}]]},e.children)}var ET=class{constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue=``,this[`aria-label`]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}get childNodes(){throw Error(`childNodes is not supported`)}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e[`aria-label`]=this[`aria-label`],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}},DT=class extends ET{filter(e,t,n){let[r,i]=NT(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},OT=class extends ET{static{this.type=`header`}},kT=class extends ET{static{this.type=`loader`}},AT=class extends DT{static{this.type=`item`}filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}},jT=class extends DT{static{this.type=`section`}filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}},MT=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey==null?void 0:this.keyMap.get(this.firstKey);for(;e;)yield e,e=e.nextKey==null?void 0:this.keyMap.get(e.nextKey)}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let n=t.get(e),r=n?.firstChildKey==null?null:t.get(n.firstChildKey);for(;r;)yield r,r=r.nextKey==null?void 0:t.get(r.nextKey)}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!==`item`&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!==`item`&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey==null?null:this.keyMap.get(this.lastKey);for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);return e?.key??null}getItem(e){return this.keyMap.get(e)??null}at(){throw Error(`Not implemented`)}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw Error(`Cannot add a node to a frozen collection`);e.type===`item`&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let n=t.getChildren(e.key);for(let e of n)this.addDescendants(e,t)}removeNode(e){if(this.frozen)throw Error(`Cannot remove a node to a frozen collection`);let t=this.keyMap.get(e);t!=null&&t.type===`item`&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,n=!1){if(this.frozen)throw Error(`Cannot commit a frozen collection`);this.firstKey=e,this.lastKey=t,this.frozen=!n}filter(e){let t=new this.constructor,[n,r]=NT(this,t,this.firstKey,e);return t?.commit(n,r),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function NT(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey==null?null:e.getItem(o.nextKey)}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e==null?a=null:(a=t.getItem(e),a.nextKey=null)}return[i?.key??null,a?.key??null]}var PT=class{constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild??=e,this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}},FT=class e extends PT{constructor(e,t){super(t),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof e?this.parentNode.level+ +(this.parentNode.node?.type===`item`):0}getMutableNode(){return this.node==null?null:(this.isMutated||=(this.node=this.node.clone(),!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){let t=this.nextVisibleSibling,n=this.getMutableNode();if(n!=null&&(n.index=this.index,n.level=this.level,n.parentKey=this.parentNode instanceof e?this.parentNode.node?.key??null:null,n.prevKey=this.previousVisibleSibling?.node?.key??null,n.nextKey=t?.node?.key??null,n.hasChildNodes=!!this.firstChild,n.firstChildKey=this.firstVisibleChild?.node?.key??null,n.lastChildKey=this.lastVisibleChild?.node?.key??null,(n.colSpan!=null||n.colIndex!=null)&&t)){let e=(n.colIndex??n.index)+(n.colSpan??1);if(t.node!=null&&e!==t.node.colIndex){let n=t.getMutableNode();n.colIndex=e}}}setProps(e,t,n,r,i){let a,{value:o,textValue:s,id:c,...l}=e;if(this.node==null?(a=new n(c??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),l.ref=t,a.props=l,a.rendered=r,a.render=i,a.value=o,e[`aria-label`]&&(a[`aria-label`]=e[`aria-label`]),a.textValue=s||(typeof l.children==`string`?l.children:``)||e[`aria-label`]||``,c!=null&&c!==a.key)throw Error(`Cannot change the id of an item`);l.colSpan!=null&&(a.colSpan=l.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?`none`:``},set display(t){let n=t===`none`;if(e.isHidden!==n){(e.parentNode?.firstVisibleChild===e||e.parentNode?.lastVisibleChild===e)&&e.ownerDocument.markDirty(e.parentNode);let t=e.previousVisibleSibling,r=e.nextVisibleSibling;t&&e.ownerDocument.markDirty(t),r&&e.ownerDocument.markDirty(r),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}},$ee=class extends PT{constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.keyOwners=new Map,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}get isConnected(){return!0}createElement(e){return new FT(e,this)}getMutableCollection(){return this.nextCollection||=this.collection.clone(),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let t of e)this.addNode(t);t.addNode(e.node)}removeNode(e){for(let t of e)this.removeNode(t);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription||(this.queuedRender=!1,this.updateCollection()),this.collection}updateCollection(){for(let e of this.dirtyNodes)e instanceof FT&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof FT?(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.node&&this.dirtyNodes.delete(e),e.isMutated=!1):this.dirtyNodes.delete(e);this.nextCollection&&(this.nextCollection.commit(this.firstVisibleChild?.node?.key??null,this.lastVisibleChild?.node?.key??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null))}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0,this.isSSR||(this.collection=this.collection.clone());for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),this.queuedRender&&e(),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0,this.keyOwners.clear())}};function IT(e){let{children:t,items:n,idScope:r,addIdAndValue:i,dependencies:a=[]}=e,o=(0,x.useMemo)(()=>void 0,[t]),s=(0,x.useMemo)(()=>new WeakMap,[...a,o]);return(0,x.useMemo)(()=>{if(n&&typeof t==`function`){let e=[];for(let a of n){let n=ete(a)?a:null,o=n?s.get(n):null;if(!o){o=t(a);let c=o.props.id??a?.key??a?.id;r!=null&&o.props.id==null&&c!=null&&(c=r+`:`+c);let l=c??e.length;o=(0,x.cloneElement)(o,i?{key:l,id:c,value:a}:{key:l}),n&&s.set(n,o)}e.push(o)}return e}if(typeof t!=`function`)return t},[t,n,s,r,i])}function ete(e){switch(typeof e){case`object`:return e!=null;case`function`:case`symbol`:return!0;default:return!1}}var LT=new Map,RT=new Set;function zT(e){return`propertyName`in e}function BT(e){let t=K(e);if(!zT(e)||!t)return;let n=LT.get(t);n||(n=new Set,LT.set(t,n),t.addEventListener(`transitioncancel`,VT,{once:!0})),n.add(e.propertyName)}function VT(e){let t=K(e);if(!zT(e)||!t)return;let n=LT.get(t);if(n&&(n.delete(e.propertyName),n.size===0&&(t.removeEventListener(`transitioncancel`,VT),LT.delete(t)),LT.size===0))for(let e of RT)e(!0),RT.delete(e)}function HT(){FS(document,`transitionrun`,BT),FS(document,`transitionend`,VT)}function UT(){for(let[e]of LT)`isConnected`in e&&!e.isConnected&&LT.delete(e)}typeof document<`u`&&(document.readyState===`loading`?FS(document,`DOMContentLoaded`,HT):HT());function WT(e){let t=window.requestAnimationFrame(()=>{if(UT(),LT.size===0)return e(!1);RT.add(e)});return()=>{window.cancelAnimationFrame(t),RT.delete(e)}}function GT(e){if(!e.isConnected)return;let t=kS(e);if(ZC()===`virtual`){let n=BS(t);WT(()=>{let r=BS(t);(r===n||r===t.body)&&e.isConnected&&qS(e)})}else qS(e)}function KT(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e,a=(0,x.useCallback)(e=>{if(K(e)===e.currentTarget)return r&&r(e),i&&i(!1),!0},[r,i]),o=oC(a),s=(0,x.useCallback)(e=>{let t=K(e),r=kS(t),a=r?BS(r):BS();t===e.currentTarget&&t===a&&(n&&n(e),i&&i(!0),o(e))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:!t&&(r||i)?a:void 0}}}function qT(e){if(e)return t=>{let n=!0;e({...t,preventDefault(){t.preventDefault()},isDefaultPrevented(){return t.isDefaultPrevented()},stopPropagation(){n=!0},continuePropagation(){n=!1,typeof t.continuePropagation==`function`&&t.continuePropagation()},isPropagationStopped(){return n}}),n&&!(typeof t.isPropagationStopped==`function`&&t.isPropagationStopped())&&t.stopPropagation()}}var JT=new Set([`shift`,`alt`,`control`,`meta`,`mod`]),YT=[`Alt`,`Control`,`Meta`,`Shift`];function XT(e){let t=new Set;return e.alt&&t.add(`Alt`),e.shift&&t.add(`Shift`),e.ctrl&&t.add(`Control`),e.meta&&t.add(`Meta`),e.mod&&t.add(fC()?`Meta`:`Control`),t}function ZT(e){let t=new Set;return e.altKey&&t.add(`Alt`),e.ctrlKey&&t.add(`Control`),e.metaKey&&t.add(`Meta`),e.shiftKey&&t.add(`Shift`),t}function QT(e){return YT.filter(t=>e.has(t))}function $T(e){let t=e.split(`+`).reduce((e,t)=>{let n=t.toLowerCase();return JT.has(n)?n===`shift`?e.shift=!0:n===`alt`?e.alt=!0:n===`control`?e.ctrl=!0:n===`meta`?e.meta=!0:n===`mod`&&(e.mod=!0):e.key=t,e},{shift:!1,alt:!1,ctrl:!1,meta:!1,mod:!1,key:``});if(t.key===``)throw Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);return t}function eE(e){return e.toLowerCase()}var tE={space:` `,esc:`escape`,del:`delete`,ins:`insert`,left:`arrowleft`,right:`arrowright`,up:`arrowup`,down:`arrowdown`,pageup:`pageup`,pagedown:`pagedown`};function nE(e){let t=eE(e);return tE[t]??t}function rE(e){let t=QT(XT(e)),n=nE(e.key);return t.length>0?`${t.join(`+`)}+${n}`:n}function iE(e){let t=QT(ZT(e)),n=eE(e.key);return(t.length>0?`${t.join(`+`)}+`:``)+n}function aE(e){let t=new Map;for(let[n,r]of Object.entries(e)){let e=$T(n);t.set(rE(e),r)}return e=>{let n=iE(e),r=t.get(n),i=r?.(e);i===void 0&&r!==void 0?i={shouldContinuePropagation:!1,shouldPreventDefault:!0}:typeof i==`boolean`&&(i={shouldContinuePropagation:!i,shouldPreventDefault:i}),i?.shouldPreventDefault&&e.preventDefault(),(!r||i?.shouldContinuePropagation)&&e.continuePropagation()}}function oE(e){let{shortcuts:t,allowRepeats:n=!1,allowComposing:r=!1}=e,i,a;if(t){let o=aE(t),s=qT(e=>{zS(e.currentTarget,K(e))?e.nativeEvent?.repeat&&!n||e.nativeEvent?.isComposing&&!r?e.continuePropagation():o(e):e.continuePropagation()}),c=qT(e=>{zS(e.currentTarget,K(e))&&(e.nativeEvent?.repeat&&!n||e.nativeEvent?.isComposing),e.continuePropagation()});i=e.onKeyDown?Kx(e.onKeyDown,s):s,a=e.onKeyUp?Kx(e.onKeyUp,c):c}else i=qT(e.onKeyDown),a=qT(e.onKeyUp);return{keyboardProps:e.isDisabled?{}:{onKeyDown:i,onKeyUp:a}}}function sE(e,t){qx(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}var cE=x.createContext(null);function lE(e){let t=(0,x.useContext)(cE)||{};sE(t,e);let{ref:n,...r}=t;return r}var uE=x.forwardRef(function(e,t){let{children:n,...r}=e,i=gS(t),a={...r,ref:i};return x.createElement(cE.Provider,{value:a},n)});function dE(e,t){let{focusProps:n}=KT(e),{keyboardProps:r}=oE(e),i=W(n,r),a=lE(t),o=e.isDisabled?{}:a,s=(0,x.useRef)(e.autoFocus);(0,x.useEffect)(()=>{s.current&&t.current&&GT(t.current),s.current=!1},[t]);let c=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(c=void 0),{focusableProps:W({...i,tabIndex:c},o)}}typeof HTMLTemplateElement<`u`&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(e,t){return this.content.insertBefore(e,t)}}));var fE=(0,x.createContext)(!1);function pE(e){if((0,x.useContext)(fE))return x.createElement(x.Fragment,null,e.children);let t=x.createElement(fE.Provider,{value:!0},e.children);return x.createElement(`template`,null,t)}function mE(e){let t=(t,n)=>(0,x.useContext)(fE)?null:e(t,n);return t.displayName=e.displayName||e.name,(0,x.forwardRef)(t)}function hE(){return(0,x.useContext)(fE)}var gE=o((e=>{var t=f();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),_E=o(((e,t)=>{t.exports=gE()})),vE=c(g(),1),yE=_E(),bE=(0,x.createContext)(!1),xE=(0,x.createContext)(null);function SE(e){if((0,x.useContext)(xE))return e.content;let{collection:t,document:n}=EE(e.createCollection);return x.createElement(x.Fragment,null,x.createElement(pE,null,x.createElement(xE.Provider,{value:n},e.content)),x.createElement(CE,{render:e.children,collection:t}))}function CE({collection:e,render:t}){return t(e)}function wE(e,t,n){let r=aS(),i=(0,x.useRef)(r);i.current=r;let a=(0,x.useCallback)(()=>i.current?n():t(),[t,n]);return(0,yE.useSyncExternalStore)(e,a)}var TE=typeof x.useSyncExternalStore==`function`?x.useSyncExternalStore:wE;function EE(e){let[t]=(0,x.useState)(()=>new $ee(e?.()||new MT));return{collection:TE((0,x.useCallback)(e=>t.subscribe(e),[t]),(0,x.useCallback)(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),(0,x.useCallback)(()=>(t.isSSR=!0,t.getCollection()),[t])),document:t}}var DE=(0,x.createContext)(null);function OE(e){return class extends ET{static{this.type=e}}}function kE(e,t,n,r,i,a){typeof e==`string`&&(e=OE(e));let o=(0,x.useCallback)(i=>{i?.setProps(t,n,e,r,a)},[t,n,r,a,e]),s=(0,x.useContext)(DE);if(s){let o=s.ownerDocument.nodesByProps.get(t);return o||(o=s.ownerDocument.createElement(e.type),o.setProps(t,n,e,r,a),s.appendChild(o),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(t,o)),i?x.createElement(DE.Provider,{value:o},i):null}return x.createElement(e.type,{ref:o},i)}function AE(e,t){let n=({node:e})=>t(e.props,e.props.ref,e),r=(0,x.forwardRef)((r,i)=>{let a=(0,x.useContext)(cE);if(!(0,x.useContext)(bE)){if(t.length>=3)throw Error(t.name+` cannot be rendered outside a collection.`);return t(r,i)}return kE(e,r,i,`children`in r?r.children:null,null,e=>x.createElement(cE.Provider,{value:a},x.createElement(n,{node:e})))});return r.displayName=t.name,r}function jE(e,t,n=ME){let r=({node:e})=>t(e.props,e.props.ref,e),i=(0,x.forwardRef)((t,i)=>kE(e,t,i,null,n(t),e=>x.createElement(r,{node:e}))??x.createElement(x.Fragment,null));return i.displayName=t.name,i}function ME(e){return IT({...e,addIdAndValue:!0})}var NE=(0,x.createContext)(null);function PE(e){let t=(0,x.useContext)(NE),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope??t?.idScope,i=ME({...e,idScope:r,dependencies:n});return(0,x.useContext)(xE)&&(i=x.createElement(FE,null,i)),t=(0,x.useMemo)(()=>({dependencies:n,idScope:r}),[r,...n]),x.createElement(NE.Provider,{value:t},i)}function FE({children:e}){let t=(0,x.useContext)(xE),n=(0,x.useMemo)(()=>x.createElement(xE.Provider,{value:null},x.createElement(bE.Provider,{value:!0},e)),[e]);return aS()?x.createElement(DE.Provider,{value:t},n):(0,vE.createPortal)(n,t)}var IE=(0,x.createContext)(null),LE={CollectionRoot({collection:e,renderDropIndicator:t}){return RE(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return RE(e,t,n)}};function RE(e,t,n){return IT({items:t?e.getChildren(t.key):e,dependencies:[n],children(t){if(t.type===`content`)return x.createElement(x.Fragment,null);let r=t.render(t);return!n||t.type!==`item`?r:x.createElement(x.Fragment,null,n({type:`item`,key:t.key,dropPosition:`before`}),r,zE(e,t,n))}})}function zE(e,t,n){let r=t.key,i=e.getKeyAfter(r),a=i==null?null:e.getItem(i);for(;a!=null&&a.type!==`item`;)i=e.getKeyAfter(a.key),a=i==null?null:e.getItem(i);let o=t.nextKey==null?null:e.getItem(t.nextKey);for(;o!=null&&o.type!==`item`;)o=o.nextKey==null?null:e.getItem(o.nextKey);let s=[];if(o==null){let r=t;for(;r?.type===`item`&&(!a||r.parentKey!==a.parentKey&&a.level<r.level);){let t=n({type:`item`,key:r.key,dropPosition:`after`});(0,x.isValidElement)(t)&&s.push((0,x.cloneElement)(t,{key:`${r.key}-after`})),r=r.parentKey==null?null:e.getItem(r.parentKey)}}return s}var BE=(0,x.createContext)(LE);function VE(e){return(0,x.useMemo)(()=>e==null?null:new Set([e]),[e])}var tte=new Set([`id`]),nte=new Set([`aria-label`,`aria-labelledby`,`aria-describedby`,`aria-details`]),rte=new Set([`href`,`hrefLang`,`target`,`rel`,`download`,`ping`,`referrerPolicy`]),ite=new Set([`dir`,`lang`,`hidden`,`inert`,`translate`,`suppressHydrationWarning`]),HE=new Set(`onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart`.split(`.`)),ate=/^(data-.*)$/;function q(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:o}=t,s={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(tte.has(t)||n&&nte.has(t)||r&&rte.has(t)||i&&ite.has(t)||a&&(HE.has(t)||t.endsWith(`Capture`)&&HE.has(t.slice(0,-7)))||o?.has(t)||ate.test(t))&&(s[t]=e[t]);return s}var UE=`default`,WE=``,GE=new WeakMap;function KE(e){if(hC()&&_C()){if(UE==="default"){let t=kS(e);WE=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect=`none`}UE=`disabled`}else if(e instanceof HTMLElement||e instanceof SVGElement){let t=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;GE.set(e,e.style[t]),e.style[t]=`none`}}function qE(e){if(hC()&&_C()){if(UE!==`disabled`)return;UE=`restoring`,setTimeout(()=>{WT(()=>{if(UE===`restoring`){let t=kS(e);t.documentElement.style.webkitUserSelect===`none`&&(t.documentElement.style.webkitUserSelect=WE||``),WE=``,UE=`default`}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&GE.has(e)){let t=GE.get(e),n=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;e.style[n]===`none`&&(e.style[n]=t),e.getAttribute(`style`)===``&&e.removeAttribute(`style`),GE.delete(e)}}var JE=new WeakMap;function YE(e){let t=kS(e),n=JE.get(t);return n??=Fw(`csp-nonce`,t),n!==void 0&&JE.set(t,n),n}var XE=x.createContext({register:()=>{}});XE.displayName=`PressResponderContext`;function ZE(){let e=(0,x.useRef)(new Map),t=(0,x.useCallback)((t,n,r,i)=>{let a=i?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:a,options:i}),t.addEventListener(n,a,i)},[]),n=(0,x.useCallback)((t,n,r,i)=>{let a=e.current.get(r)?.fn||r;t.removeEventListener(n,a,i),e.current.delete(r)},[]),r=(0,x.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,x.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function ote(e){let t=(0,x.useContext)(XE);if(t){let{register:n,ref:r,...i}=t;e=W(i,e),n()}return sE(t,e.ref),e}var QE=class{#e;constructor(e,t,n,r){this.#e=!0;let i=(r?.target??n.currentTarget)?.getBoundingClientRect(),a,o=0,s,c=null;n.clientX!=null&&n.clientY!=null&&(s=n.clientX,c=n.clientY),i&&(s!=null&&c!=null?(a=s-i.left,o=c-i.top):(a=i.width/2,o=i.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=a,this.y=o,this.key=n.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}},$E=Symbol(`linkClicked`),eD=`react-aria-pressable-style`,tD=`data-react-aria-pressable`;function nD(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:o,isDisabled:s,isPressed:c,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:f,...p}=ote(e),[m,h]=(0,x.useState)(!1),g=(0,x.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:_,removeAllGlobalListeners:v}=ZE(),y=(0,x.useCallback)((e,t)=>{let i=g.current;if(s||i.didFirePressStart)return!1;let a=!0;if(i.isTriggeringEvent=!0,r){let n=new QE(`pressstart`,t,e);r(n),a=n.shouldStopPropagation}return n&&n(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,h(!0),a},[s,r,n]),b=(0,x.useCallback)((e,r,a=!0)=>{let o=g.current;if(!o.didFirePressStart)return!1;o.didFirePressStart=!1,o.isTriggeringEvent=!0;let c=!0;if(i){let t=new QE(`pressend`,r,e);i(t),c=t.shouldStopPropagation}if(n&&n(!1),h(!1),t&&a&&!s){let n=new QE(`press`,r,e);t(n),c&&=n.shouldStopPropagation}return o.isTriggeringEvent=!1,c},[s,i,n,t]),S=Kw(b),C=Kw((0,x.useCallback)((e,t)=>{let n=g.current;if(s)return!1;if(a){n.isTriggeringEvent=!0;let r=new QE(`pressup`,t,e);return a(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0},[s,a])),w=(0,x.useCallback)(e=>{let t=g.current;if(t.isPressed&&t.target){t.didFirePressStart&&t.pointerType!=null&&b(aD(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,v(),d||qE(t.target);for(let e of t.disposables)e();t.disposables=[]}},[d,v,b]),T=Kw(w);(0,x.useEffect)(()=>{s&&g.current.isPressed&&T({currentTarget:g.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[s]);let E=(0,x.useCallback)(e=>{u&&w(e)},[u,w]),D=(0,x.useCallback)(e=>{s||o?.(e)},[s,o]),O=(0,x.useCallback)((e,t)=>{if(!s&&o){let n=new MouseEvent(`click`,e);aC(n,t),o(iC(n))}},[s,o]),k=(0,x.useMemo)(()=>{let e=g.current,t={onKeyDown(t){if(iD(t.nativeEvent,t.currentTarget)&&zS(t.currentTarget,K(t))){sD(K(t),t.key)&&t.preventDefault();let r=!0;!e.isPressed&&!t.repeat&&(e.target=t.currentTarget,e.isPressed=!0,e.pointerType=`keyboard`,r=y(t,`keyboard`));let i=t.currentTarget;_(kS(t.currentTarget),`keyup`,Kx(t=>{iD(t,i)&&!t.repeat&&zS(i,K(t))&&e.target&&C(aD(e.target,t),`keyboard`)},n),!0),r&&t.stopPropagation(),t.metaKey&&fC()&&e.metaKeyEvents?.set(t.key,t.nativeEvent)}else t.key===`Meta`&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||zS(t.currentTarget,K(t)))&&t&&t.button===0&&!e.isTriggeringEvent&&!EC.isOpening){let n=!0;if(s&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&(e.pointerType===`virtual`||bC(t.nativeEvent))){let e=y(t,`virtual`),r=C(t,`virtual`),i=S(t,`virtual`);D(t),n=e&&r&&i}else if(e.isPressed&&e.pointerType!==`keyboard`){let r=e.pointerType||t.nativeEvent.pointerType||`virtual`,i=C(aD(t.currentTarget,t),r),a=S(aD(t.currentTarget,t),r,!0);n=i&&a,e.isOverTarget=!1,D(t),T(t)}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{if(e.isPressed&&e.target&&iD(t,e.target)){sD(K(t),t.key)&&t.preventDefault();let n=K(t),r=zS(e.target,n);S(aD(e.target,t),`keyboard`,r),r&&O(t,e.target),v(),t.key!==`Enter`&&rD(e.target)&&zS(e.target,n)&&!t[$E]&&(t[$E]=!0,EC(e.target,t,!1)),e.isPressed=!1,e.metaKeyEvents?.delete(t.key)}else if(t.key===`Meta`&&e.metaKeyEvents?.size){let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())e.target?.dispatchEvent(new KeyboardEvent(`keyup`,n))}};if(typeof PointerEvent<`u`){t.onPointerDown=t=>{if(t.button!==0||!zS(t.currentTarget,K(t)))return;if(xC(t.nativeEvent)){e.pointerType=`virtual`;return}e.pointerType=t.pointerType;let i=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,d||KE(e.target),i=y(t,e.pointerType);let a=K(t);`releasePointerCapture`in a&&(`hasPointerCapture`in a?a.hasPointerCapture(t.pointerId)&&a.releasePointerCapture(t.pointerId):a.releasePointerCapture(t.pointerId)),_(kS(t.currentTarget),`pointerup`,n,!1),_(kS(t.currentTarget),`pointercancel`,r,!1)}i&&t.stopPropagation()},t.onMouseDown=t=>{if(zS(t.currentTarget,K(t))&&t.button===0){if(l){let n=cC(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{zS(t.currentTarget,K(t))&&e.pointerType!==`virtual`&&t.button===0&&!e.isPressed&&C(t,e.pointerType||t.pointerType)},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!0,y(aD(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!1,S(aD(e.target,t),e.pointerType,!1),E(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&t.button===0&&e.target){if(zS(e.target,K(t))&&e.pointerType!=null){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?T(t):(qS(e.target),e.target.click()))},80);_(t.currentTarget,`click`,()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else T(t);e.isOverTarget=!1}},r=e=>{T(e)};t.onDragStart=e=>{zS(e.currentTarget,K(e))&&T(e)}}return t},[_,s,l,v,d,E,y,D,O]);return(0,x.useEffect)(()=>{if(!f)return;let e=kS(f.current);if(!e||!e.head||e.getElementById(eD))return;let t=e.createElement(`style`);t.id=eD;let n=YE(e);n&&(t.nonce=n),t.textContent=`
64
+ @layer {
65
+ [${tD}] {
66
+ touch-action: pan-x pan-y pinch-zoom;
67
+ }
68
+ }
69
+ `.trim(),e.head.prepend(t)},[f]),(0,x.useEffect)(()=>{let e=g.current;return()=>{d||qE(e.target??void 0);for(let t of e.disposables)t();e.disposables=[]}},[d]),{isPressed:c||m,pressProps:W(p,k,{[tD]:!0})}}function rD(e){return e.tagName===`A`&&e.hasAttribute(`href`)}function iD(e,t){let{key:n,code:r}=e,i=t,a=i.getAttribute(`role`);return(n===`Enter`||n===` `||n===`Spacebar`||r===`Space`)&&!(i instanceof AS(i).HTMLInputElement&&!lD(i,n)||i instanceof AS(i).HTMLTextAreaElement||i.isContentEditable)&&!((a===`link`||!a&&rD(i))&&n!==`Enter`)}function aD(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r,key:t.key}}function oD(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!==`submit`&&e.type!==`reset`:!rD(e)}function sD(e,t){return fC()&&t===`Enter`?!1:e instanceof HTMLInputElement?t===`Enter`&&(e.type===`checkbox`||e.type===`radio`)?!1:!lD(e,t):oD(e)}var cD=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function lD(e,t){return e.type===`checkbox`||e.type===`radio`?t===` `:cD.has(e.type)}function uD(e,t){let{elementType:n=`a`,onPress:r,onPressStart:i,onPressEnd:a,onPressChange:o,onClick:s,isDisabled:c,...l}=e,u={};n!==`a`&&(u={role:`link`,tabIndex:c?void 0:0});let{focusableProps:d}=dE(e,t),{pressProps:f,isPressed:p}=nD({onPress:r,onPressStart:i,onPressEnd:a,onPressChange:o,onClick:s,isDisabled:c,ref:t}),m=q(l,{labelable:!0}),h=W(d,f),g=wC();return{isPressed:p,linkProps:W(m,AC(e),{...h,...u,"aria-disabled":c||void 0,"aria-current":e[`aria-current`],onClick:t=>{f.onClick?.(t),jC(t,g,e.href,e.routerOptions)}})}}function dD(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=(0,x.useRef)({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=ZE(),c=(0,x.useCallback)(e=>{zS(e.currentTarget,K(e))&&a.current.isFocusWithin&&!zS(e.currentTarget,e.relatedTarget)&&(a.current.isFocusWithin=!1,s(),n&&n(e),i&&i(!1))},[n,i,a,s]),l=oC(c),u=(0,x.useCallback)(e=>{if(!zS(e.currentTarget,K(e)))return;let t=K(e),n=kS(t),s=BS(n);if(!a.current.isFocusWithin&&s===t){r&&r(e),i&&i(!0),a.current.isFocusWithin=!0,l(e);let t=e.currentTarget;o(n,`focus`,e=>{let r=K(e);if(a.current.isFocusWithin&&!zS(t,r)){let e=new n.defaultView.FocusEvent(`blur`,{relatedTarget:r});aC(e,t);let i=iC(e);c(i)}},{capture:!0})}},[r,i,l,o,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:c}}}function fD(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=(0,x.useRef)({isFocused:!1,isFocusVisible:t||XC()}),[a,o]=(0,x.useState)(!1),[s,c]=(0,x.useState)(()=>i.current.isFocused&&i.current.isFocusVisible),l=(0,x.useCallback)(()=>c(i.current.isFocused&&i.current.isFocusVisible),[]),u=(0,x.useCallback)(e=>{i.current.isFocused=e,i.current.isFocusVisible=XC(),o(e),l()},[l]);Uee(e=>{i.current.isFocusVisible=e,l()},[n,a],{enabled:a,isTextInput:n});let{focusProps:d}=KT({isDisabled:r,onFocusChange:u}),{focusWithinProps:f}=dD({isDisabled:!r,onFocusWithinChange:u});return{isFocused:a,isFocusVisible:s,focusProps:r?f:d}}var pD=!1,mD=0;function hD(){pD=!0,setTimeout(()=>{pD=!1},500)}function gD(e){e.pointerType===`touch`&&hD()}function _D(){let e=kS(null);if(e!==void 0)return mD===0&&typeof PointerEvent<`u`&&e.addEventListener(`pointerup`,gD),mD++,()=>{mD--,mD>0||typeof PointerEvent<`u`&&e.removeEventListener(`pointerup`,gD)}}function vD(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,o]=(0,x.useState)(!1),s=(0,x.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:``,target:null}).current;(0,x.useEffect)(_D,[]);let{addGlobalListener:c,removeAllGlobalListeners:l}=ZE(),{hoverProps:u,triggerHoverEnd:d}=(0,x.useMemo)(()=>{let e=(e,r)=>{if(s.pointerType=r,i||r===`touch`||s.isHovered||!zS(e.currentTarget,K(e)))return;s.isHovered=!0;let l=e.currentTarget;s.target=l,c(kS(K(e)),`pointerover`,e=>{s.isHovered&&s.target&&!zS(s.target,K(e))&&a(e,e.pointerType)},{capture:!0}),t&&t({type:`hoverstart`,target:l,pointerType:r}),n&&n(!0),o(!0)},a=(e,t)=>{let i=s.target;s.pointerType=``,s.target=null,t!==`touch`&&s.isHovered&&i&&(s.isHovered=!1,l(),r&&r({type:`hoverend`,target:i,pointerType:t}),n&&n(!1),o(!1))},u={};return typeof PointerEvent<`u`&&(u.onPointerEnter=t=>{pD&&t.pointerType===`mouse`||e(t,t.pointerType)},u.onPointerLeave=e=>{!i&&zS(e.currentTarget,K(e))&&a(e,e.pointerType)}),{hoverProps:u,triggerHoverEnd:a}},[t,n,r,i,s,c,l]);return(0,x.useEffect)(()=>{i&&d({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:u,isHovered:a}}var yD=(0,x.createContext)(null),bD=(0,x.forwardRef)(function(e,t){[e,t]=SS(e,t,yD);let n=e.href&&!e.isDisabled?`a`:`span`,{linkProps:r,isPressed:i}=uD({...e,elementType:n},t),a=G[n],{hoverProps:o,isHovered:s}=vD(e),{focusProps:c,isFocused:l,isFocusVisible:u}=fD(),d=yS({...e,defaultClassName:`react-aria-Link`,values:{isCurrent:!!e[`aria-current`],isDisabled:e.isDisabled||!1,isPressed:i,isHovered:s,isFocused:l,isFocusVisible:u}}),f=q(e,{global:!0});return delete f.onClick,x.createElement(a,{ref:t,slot:e.slot||void 0,...W(f,d,r,o,c),"data-focused":l||void 0,"data-hovered":s||void 0,"data-pressed":i||void 0,"data-focus-visible":u||void 0,"data-current":!!e[`aria-current`]||void 0,"data-disabled":e.isDisabled||void 0},d.children)}),xD=(0,x.createContext)({}),SD=mE(function(e,t){[e,t]=SS(e,t,xD);let{elementType:n=`label`,...r}=e,i=G[n];return x.createElement(i,{className:`react-aria-Label`,...r,ref:t})});function CD(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a=`label`}=e;t=dS(t);let o=dS(),s={};n&&(r=r?`${o} ${r}`:o,s={id:o,htmlFor:a===`label`?t:void 0});let c=Jw({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:c}}var wD=new Map,TD=!1;try{TD=new Intl.NumberFormat(`de-DE`,{signDisplay:`exceptZero`}).resolvedOptions().signDisplay===`exceptZero`}catch{}var ED=class{constructor(e,t={}){this.numberFormatter=DD(e,t),this.options=t}format(e){let t=``;return t=!TD&&this.options.signDisplay!=null?OD(this.numberFormatter,this.options.signDisplay,e):this.numberFormatter.format(e),t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange==`function`)return this.numberFormatter.formatRange(e,t);if(t<e)throw RangeError(`End date must be >= start date`);return`${this.format(e)} \u{2013} ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts==`function`)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw RangeError(`End date must be >= start date`);let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map(e=>({...e,source:`startRange`})),{type:`literal`,value:` – `,source:`shared`},...r.map(e=>({...e,source:`endRange`}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!TD&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),e}};function DD(e,t={}){let{numberingSystem:n}=t;n&&e.includes(`-nu-`)&&(e.includes(`-u-`)||(e+=`-u-`),e+=`-nu-${n}`);let r=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(wD.has(r))return wD.get(r);let i=new Intl.NumberFormat(e,t);return wD.set(r,i),i}function OD(e,t,n){if(t===`auto`)return e.format(n);if(t===`never`)return e.format(Math.abs(n));{let r=!1;if(t===`always`?r=n>0||Object.is(n,0):t===`exceptZero`&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let t=e.format(-n),r=e.format(n),i=t.replace(r,``).replace(/\u200e|\u061C/,``);return[...i].length!==1&&console.warn(`@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case`),t.replace(r,`!!!`).replace(i,`+`).replace(`!!!`,r)}return e.format(n)}}var kD=RegExp(`^.*\\(.*\\).*$`),AD=[`latn`,`arab`,`hanidec`,`deva`,`beng`,`fullwide`],jD=class{constructor(e,t={}){this.locale=e,this.options=t}parse(e){return ND(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,n){return ND(this.locale,this.options,e).isValidPartialNumber(e,t,n)}getNumberingSystem(e){return ND(this.locale,this.options,e).options.numberingSystem}},MD=new Map;function ND(e,t,n){let r=PD(e,t);if(!e.includes(`-nu-`)&&!r.isValidPartialNumber(n)){for(let i of AD)if(i!==r.options.numberingSystem){let r=PD(e+(e.includes(`-u-`)?`-nu-`:`-u-nu-`)+i,t);if(r.isValidPartialNumber(n))return r}}return r}function PD(e,t){let n=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():``),r=MD.get(n);return r||(r=new FD(e,t),MD.set(n,r)),r}var FD=class{constructor(e,t={}){this.locale=e,t.roundingIncrement!==1&&t.roundingIncrement!=null&&(t.maximumFractionDigits==null&&t.minimumFractionDigits==null?(t.maximumFractionDigits=0,t.minimumFractionDigits=0):t.maximumFractionDigits==null?t.maximumFractionDigits=t.minimumFractionDigits:t.minimumFractionDigits??=t.maximumFractionDigits),this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=RD(e,this.formatter,this.options,t),this.options.style===`percent`&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn(`NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.`)}parse(e){let t=this.formatter.resolvedOptions().useGrouping,n=this.sanitize(e);if(!t&&this.symbols.group&&n.includes(this.symbols.group))return NaN;if(this.symbols.group&&(n=n.replaceAll(this.symbols.group,``)),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,`.`)),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,`-`)),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style===`percent`){let e=n.indexOf(`-`);n=n.replace(`-`,``),n=n.replace(`+`,``);let t=n.indexOf(`.`);t===-1&&(t=n.length),n=n.replace(`.`,``),n=t-2==0?`0.${n}`:t-2==-1?`0.0${n}`:t-2==-2?`0.00`:`${n.slice(0,t-2)}.${n.slice(t-2)}`,e>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style===`percent`){let e={...this.options,style:`decimal`,minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new jD(this.locale,e).parse(new ED(this.locale,e).format(r))}return this.options.currencySign===`accounting`&&kD.test(e)&&(r=-1*r),r}sanitize(e){let t=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(t=>t.unit===e)?this.symbols.noNumeralUnits.find(t=>t.unit===e).value.toString():(e=e.replace(this.symbols.literals,``),this.symbols.minusSign&&(e=e.replace(`-`,this.symbols.minusSign)),this.options.numberingSystem===`arab`&&(this.symbols.decimal&&(e=zD(e,`,`,this.symbols.decimal),e=zD(e,`،`,this.symbols.decimal)),this.symbols.group&&t&&(e=zD(e,`.`,this.symbols.group))),this.symbols.group===`’`&&e.includes(`'`)&&t&&(e=zD(e,`'`,this.symbols.group)),this.symbols.group===`'`&&e.includes(`’`)&&t&&(e=zD(e,`’`,this.symbols.group)),this.options.locale===`fr-FR`&&this.symbols.group&&t&&(e=zD(e,` `,this.symbols.group),e=zD(e,/\u00A0/g,this.symbols.group)),e)}isValidPartialNumber(e,t=-1/0,n=1/0){let r=this.formatter.resolvedOptions().useGrouping;return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&n>0&&(e=e.slice(this.symbols.plusSign.length)),this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&r&&(e=zD(e,this.symbols.group,``)),e=e.replace(this.symbols.numeral,``),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,``)),e.length===0)}},ID=new Set([`decimal`,`fraction`,`integer`,`minusSign`,`plusSign`,`group`]),LD=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function RD(e,t,n,r){let i=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:`auto`,roundingMode:`halfExpand`,useGrouping:!0}),a=i.formatToParts(-10000.111),o=i.formatToParts(10000.111),s=LD.map(e=>i.formatToParts(e)),c=s.map((e,t)=>{let n=e.find(e=>e.type===`unit`);return n&&!e.some(e=>e.type===`integer`||e.type===`fraction`)?{unit:n.value,value:LD[t]}:null}).filter(e=>!!e),l=a.find(e=>e.type===`minusSign`)?.value??`-`,u=o.find(e=>e.type===`plusSign`)?.value;u||r?.signDisplay!==`exceptZero`&&r?.signDisplay!==`always`||(u=`+`);let d=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(e=>e.type===`decimal`)?.value,f=a.find(e=>e.type===`group`)?.value,p=a.filter(e=>!ID.has(e.type)).map(e=>BD(e.value)),m=s.flatMap(e=>e.filter(e=>!ID.has(e.type)).map(e=>BD(e.value))),h=[...new Set([...p,...m])].sort((e,t)=>t.length-e.length),g=h.length===0?RegExp(`\\p{White_Space}|\\p{Cf}`,`gu`):RegExp(`${h.join(`|`)}|\\p{White_Space}|\\p{Cf}`,`gu`),_=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),v=new Map(_.map((e,t)=>[e,t])),y=RegExp(`[${_.join(``)}]`,`g`);return{minusSign:l,plusSign:u,decimal:d,group:f,literals:g,numeral:y,numerals:_,index:e=>String(v.get(e)),noNumeralUnits:c}}function zD(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function BD(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function VD(e={}){let{locale:t}=iT();return(0,x.useMemo)(()=>new ED(t,e),[t,e])}function HD(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function UD(e,t){let n=e,r=0,i=t.toString(),a=i.toLowerCase().indexOf(`e-`);if(a>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+a;else{let e=i.indexOf(`.`);e>=0&&(r=i.length-e)}if(r>0){let e=10**r;n=Math.round(n*e)/e}return n}function WD(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,a=UD(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&a>n&&(a=Math.floor(UD(n/r,r))*r):a<t?a=t:!isNaN(n)&&a>n&&(a=t+Math.floor(UD((n-t)/r,r))*r),a=UD(a,r),a}function GD(e,t,n=10){let r=n**+t;return Math.round(e*r)/r}function KD(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:i,isIndeterminate:a,formatOptions:o={style:`percent`}}=e,s=q(e,{labelable:!0}),{labelProps:c,fieldProps:l}=CD({...e,labelElementType:`span`});t=HD(t,n,r);let u=r-n,d=u===0?0:(t-n)/u,f=VD(o);if(!a&&!i){let e=o.style===`percent`?d:t;i=f.format(e)}return{progressBarProps:W(s,{...l,"aria-valuenow":a?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":a?void 0:i,role:`progressbar`}),labelProps:c}}var qD=(0,x.createContext)(null),JD=7e3,YD=null;function XD(e,t=`assertive`,n=JD){YD?YD.announce(e,t,n):(YD=new QD,(typeof IS_REACT_ACT_ENVIRONMENT==`boolean`?IS_REACT_ACT_ENVIRONMENT:typeof jest<`u`)?YD.announce(e,t,n):setTimeout(()=>{YD?.isAttached()&&YD?.announce(e,t,n)},100))}function ZD(e){YD&&YD.clear(e)}var QD=class{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<`u`&&(this.node=document.createElement(`div`),this.node.dataset.liveAnnouncer=`true`,Object.assign(this.node.style,{border:0,clip:`rect(0 0 0 0)`,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`}),this.assertiveLog=this.createLog(`assertive`),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog(`polite`),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(e){let t=document.createElement(`div`);return t.setAttribute(`role`,`log`),t.setAttribute(`aria-live`,e),t.setAttribute(`aria-relevant`,`additions`),t}destroy(){this.node&&=(document.body.removeChild(this.node),null)}announce(e,t=`assertive`,n=JD){if(!this.node)return;let r=document.createElement(`div`);typeof e==`object`?(r.setAttribute(`role`,`img`),r.setAttribute(`aria-labelledby`,e[`aria-labelledby`])):r.textContent=e,t===`assertive`?this.assertiveLog?.appendChild(r):this.politeLog?.appendChild(r),e!==``&&setTimeout(()=>{r.remove()},n)}clear(e){this.node&&((!e||e===`assertive`)&&this.assertiveLog&&(this.assertiveLog.innerHTML=``),(!e||e===`polite`)&&this.politeLog&&(this.politeLog.innerHTML=``))}};function $D(e,t){let{elementType:n=`button`,isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:s,onPressChange:c,preventFocusOnPress:l,allowFocusWhenDisabled:u,onClick:d,href:f,target:p,rel:m,type:h=`button`}=e,g;g=n===`button`?{type:h,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:{role:`button`,href:n===`a`&&!r?f:void 0,target:n===`a`?p:void 0,type:n===`input`?h:void 0,disabled:n===`input`?r:void 0,"aria-disabled":!r||n===`input`?void 0:r,rel:n===`a`?m:void 0};let{pressProps:_,isPressed:v}=nD({onPressStart:a,onPressEnd:o,onPressChange:c,onPress:i,onPressUp:s,onClick:d,isDisabled:r,preventFocusOnPress:l,ref:t}),{focusableProps:y}=dE(e,t);u&&(y.tabIndex=r?-1:y.tabIndex);let b=W(y,_,q(e,{labelable:!0}));return{isPressed:v,buttonProps:W(g,b,{"aria-haspopup":e[`aria-haspopup`],"aria-expanded":e[`aria-expanded`],"aria-controls":e[`aria-controls`],"aria-pressed":e[`aria-pressed`],"aria-current":e[`aria-current`],"aria-disabled":e[`aria-disabled`]})}}var eO=(0,x.createContext)({}),tO=mE(function(e,t){[e,t]=SS(e,t,eO);let n=e,{isPending:r}=n,{buttonProps:i,isPressed:a}=$D(e,t);i=rO(i,r);let{focusProps:o,isFocused:s,isFocusVisible:c}=fD(e),{hoverProps:l,isHovered:u}=vD({...e,isDisabled:e.isDisabled||r}),d={isHovered:u,isPressed:(n.isPressed||a)&&!r,isFocused:s,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:r??!1},f=yS({...e,values:d,defaultClassName:`react-aria-Button`}),p=dS(i.id),m=dS(),h=i[`aria-labelledby`];r&&(h?h=`${h} ${m}`:i[`aria-label`]&&(h=`${p} ${m}`));let g=(0,x.useRef)(r);(0,x.useEffect)(()=>{let e={"aria-labelledby":h||p};(!g.current&&s&&r||g.current&&s&&!r)&&XD(e,`assertive`),g.current=r},[r,s,h,p]);let _=q(e,{global:!0});return delete _.onClick,x.createElement(G.button,{...W(_,f,i,o,l),type:i.type===`submit`&&r?`button`:i.type,id:p,ref:t,"aria-labelledby":h,slot:e.slot||void 0,"aria-disabled":r?`true`:i[`aria-disabled`],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":u||void 0,"data-focused":s||void 0,"data-pending":r||void 0,"data-focus-visible":c||void 0},x.createElement(qD.Provider,{value:{id:m}},f.children))}),nO=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function rO(e,t){if(t){for(let t in e)t.startsWith(`on`)&&!nO.test(t)&&(e[t]=void 0);e.href=void 0,e.target=void 0}return e}var iO=(0,x.createContext)({}),aO=(0,x.forwardRef)(function(e,t){[e,t]=SS(e,t,iO);let{children:n,level:r=3,className:i,...a}=e,o=G[`h${r}`];return x.createElement(o,{...a,ref:t,className:i??`react-aria-Heading`},n)}),oO=(0,x.createContext)({}),sO=mE(function(e,t){[e,t]=SS(e,t,oO);let{elementType:n=`span`,...r}=e,i=G[n];return x.createElement(i,{className:`react-aria-Text`,...r,ref:t})});function cO(e,t){let n=(0,x.useRef)(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function lO(e,t){return e-t*Math.floor(e/t)}var uO=1721426;function dO(e,t,n,r){t=pO(e,t);let i=t-1,a=-2;return n<=2?a=0:fO(t)&&(a=-1),1721425+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function fO(e){return e%4==0&&(e%100!=0||e%400==0)}function pO(e,t){return e===`BC`?1-t:t}function mO(e){let t=`AD`;return e<=0&&(t=`BC`,e=1-e),[t,e]}var hO={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]},gO=class{fromJulianDay(e){let t=e,n=t-uO,r=Math.floor(n/146097),i=lO(n,146097),a=Math.floor(i/36524),o=lO(i,36524),s=Math.floor(o/1461),c=lO(o,1461),l=Math.floor(c/365),[u,d]=mO(r*400+a*100+s*4+l+ +(a!==4&&l!==4)),f=t-dO(u,d,1,1),p=2;t<dO(u,d,3,1)?p=0:fO(d)&&(p=1);let m=Math.floor(((f+p)*12+373)/367);return new fk(u,d,m,t-dO(u,d,m,1)+1)}toJulianDay(e){return dO(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return hO[fO(e.year)?`leapyear`:`standard`][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return fO(e.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(e){return 9999}getEras(){return[`BC`,`AD`]}isInverseEra(e){return e.era===`BC`}balanceDate(e){e.year<=0&&(e.era=e.era===`BC`?`AD`:`BC`,e.year=1-e.year)}constructor(){this.identifier=`gregory`}};function _O(e,t){return e.isEqual?.(t)??t.isEqual?.(e)??e.identifier===t.identifier}function vO(e){return IO(Date.now(),e)}function yO(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function bO(e,t){return xO(e)-xO(t)}function xO(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}var SO=null,CO=!1;function wO(){return SO??=new Intl.DateTimeFormat().resolvedOptions().timeZone,SO}function TO(){return CO}function EO(e){return e=zO(e,new gO),DO(pO(e.era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function DO(e,t,n,r,i,a,o){let s=new Date;return s.setUTCHours(r,i,a,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function OO(e,t){if(t===`UTC`)return 0;if(e>0&&t===wO()&&!TO())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:s}=AO(e,t);return DO(n,r,i,a,o,s,0)-Math.floor(e/1e3)*1e3}var kO=new Map;function AO(e,t){let n=kO.get(t);n||(n=new Intl.DateTimeFormat(`en-US`,{timeZone:t,hour12:!1,era:`short`,year:`numeric`,month:`numeric`,day:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`}),kO.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let e of r)e.type!==`literal`&&(i[e.type]=e.value);return{year:i.era===`BC`||i.era===`B`?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour===`24`?0:+i.hour,minute:+i.minute,second:+i.second}}var jO=864e5;function MO(e,t,n,r){return(n===r?[n]:[n,r]).filter(n=>NO(e,t,n))}function NO(e,t,n){let r=AO(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function PO(e,t,n=`compatible`){let r=RO(e);if(t===`UTC`)return EO(r);if(t===wO()&&n===`compatible`&&!TO()){r=zO(r,new gO);let e=new Date,t=pO(r.era,r.year);return e.setFullYear(t,r.month-1,r.day),e.setHours(r.hour,r.minute,r.second,r.millisecond),e.getTime()}let i=EO(r),a=OO(i-jO,t),o=OO(i+jO,t),s=MO(r,t,i-a,i-o);if(s.length===1)return s[0];if(s.length>1)switch(n){case`compatible`:case`earlier`:return s[0];case`later`:return s[s.length-1];case`reject`:throw RangeError(`Multiple possible absolute times found`)}switch(n){case`earlier`:return Math.min(i-a,i-o);case`compatible`:case`later`:return Math.max(i-a,i-o);case`reject`:throw RangeError(`No such absolute time found`)}}function FO(e,t,n=`compatible`){return new Date(PO(e,t,n))}function IO(e,t){let n=OO(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,o=r.getUTCDate(),s=r.getUTCHours(),c=r.getUTCMinutes(),l=r.getUTCSeconds(),u=r.getUTCMilliseconds();return new mk(i<1?`BC`:`AD`,i<1?-i+1:i,a,o,t,n,s,c,l,u)}function LO(e){return new fk(e.calendar,e.era,e.year,e.month,e.day)}function RO(e,t){let n=0,r=0,i=0,a=0;if(`timeZone`in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if(`hour`in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new pk(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function zO(e,t){if(_O(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,XO(r),r}function BO(e,t,n){return e instanceof mk?e.timeZone===t?e:HO(e,t):IO(PO(e,t,n),t)}function VO(e){let t=EO(e)-e.offset;return new Date(t)}function HO(e,t){return zO(IO(EO(e)-e.offset,t),e.calendar)}function UO(e){return HO(e,wO())}var WO=36e5;function GO(e,t){let n=e.copy(),r=`hour`in n?lte(n,t):0;KO(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,qO(n),YO(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,JO(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){let e=n.calendar.isInverseEra?.(n);n.year=i,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let a=n.calendar.getMonthsInYear(n);return n.month>a&&(n.month=a,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function KO(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function qO(e){for(;e.month<1;)KO(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,KO(e,1)}function JO(e){for(;e.day<1;)e.month--,qO(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,qO(e)}function YO(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function XO(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),YO(e)}function ZO(e){let t={};for(let n in e)typeof e[n]==`number`&&(t[n]=-e[n]);return t}function QO(e,t){return GO(e,ZO(t))}function $O(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),XO(n),n}function ek(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),cte(n),n}function ste(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=tk(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=tk(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=tk(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=tk(e.hour,24),t}function cte(e){e.millisecond=Math.max(0,Math.min(e.millisecond,999)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function tk(e,t){let n=e%t;return n<0&&(n+=t),n}function lte(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,ste(e)}function nk(e,t,n,r){let i=e.copy();switch(t){case`era`:{let t=e.calendar.getEras(),a=t.indexOf(e.era);if(a<0)throw Error(`Invalid era: `+e.era);a=ik(a,n,0,t.length-1,r?.round),i.era=t[a],XO(i);break}case`year`:i.calendar.isInverseEra?.(i)&&(n=-n),i.year=ik(e.year,n,-1/0,9999,r?.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case`month`:i.month=ik(e.month,n,1,e.calendar.getMonthsInYear(e),r?.round);break;case`day`:i.day=ik(e.day,n,1,e.calendar.getDaysInMonth(e),r?.round);break;default:throw Error(`Unsupported field `+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),XO(i),i}function rk(e,t,n,r){let i=e.copy();switch(t){case`hour`:{let t=e.hour,a=0,o=23;if(r?.hourCycle===12){let e=t>=12;a=e?12:0,o=e?23:11}i.hour=ik(t,n,a,o,r?.round);break}case`minute`:i.minute=ik(e.minute,n,0,59,r?.round);break;case`second`:i.second=ik(e.second,n,0,59,r?.round);break;case`millisecond`:i.millisecond=ik(e.millisecond,n,0,999,r?.round);break;default:throw Error(`Unsupported field `+t)}return i}function ik(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let i=Math.abs(t);e=t>0?Math.ceil(e/i)*i:Math.floor(e/i)*i,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function ak(e,t){let n;return n=t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0?PO(GO(RO(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days}),e.timeZone):EO(e)-e.offset,n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5,zO(IO(n,e.timeZone),e.calendar)}function ute(e,t){return ak(e,ZO(t))}function dte(e,t,n,r){switch(t){case`hour`:{let t=0,i=23;if(r?.hourCycle===12){let n=e.hour>=12;t=n?12:0,i=n?23:11}let a=RO(e),o=zO(ek(a,{hour:t}),new gO),s=[PO(o,e.timeZone,`earlier`),PO(o,e.timeZone,`later`)].filter(t=>IO(t,e.timeZone).day===o.day)[0],c=zO(ek(a,{hour:i}),new gO),l=[PO(c,e.timeZone,`earlier`),PO(c,e.timeZone,`later`)].filter(t=>IO(t,e.timeZone).day===c.day).pop(),u=EO(e)-e.offset,d=Math.floor(u/WO),f=u%WO;return u=ik(d,n,Math.floor(s/WO),Math.floor(l/WO),r?.round)*WO+f,zO(IO(u,e.timeZone),e.calendar)}case`minute`:case`second`:case`millisecond`:return rk(e,t,n,r);case`era`:case`year`:case`month`:case`day`:return zO(IO(PO(nk(RO(e),t,n,r),e.timeZone),e.timeZone),e.calendar);default:throw Error(`Unsupported field `+t)}}function fte(e,t,n){let r=RO(e),i=ek($O(r,t),t);return i.compare(r)===0?e:zO(IO(PO(i,e.timeZone,n),e.timeZone),e.calendar)}var pte=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,mte=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,ok=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function sk(e){let t=e.match(pte);if(!t)throw ok.test(e)?Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`):Error(`Invalid ISO 8601 date string: `+e);let n=new fk(ck(t[1],0,9999),ck(t[2],1,12),1);return n.day=ck(t[3],1,n.calendar.getDaysInMonth(n)),n}function hte(e){let t=e.match(mte);if(!t)throw ok.test(e)?Error(`Invalid ISO 8601 date time string: ${e}. Use parseAbsolute() instead.`):Error(`Invalid ISO 8601 date time string: `+e);let n=ck(t[1],-9999,9999),r=new pk(n<1?`BC`:`AD`,n<1?-n+1:n,ck(t[2],1,12),1,t[4]?ck(t[4],0,23):0,t[5]?ck(t[5],0,59):0,t[6]?ck(t[6],0,59):0,t[7]?ck(t[7],0,1/0)*1e3:0);return r.day=ck(t[3],0,r.calendar.getDaysInMonth(r)),r}function ck(e,t,n){let r=Number(e);if(r<t||r>n)throw RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function gte(e){return`${String(e.hour).padStart(2,`0`)}:${String(e.minute).padStart(2,`0`)}:${String(e.second).padStart(2,`0`)}${e.millisecond?String(e.millisecond/1e3).slice(1):``}`}function lk(e){let t=zO(e,new gO),n;return n=t.era===`BC`?t.year===1?`0000`:`-`+String(Math.abs(1-t.year)).padStart(6,`00`):String(t.year).padStart(4,`0`),`${n}-${String(t.month).padStart(2,`0`)}-${String(t.day).padStart(2,`0`)}`}function uk(e){return`${lk(e)}T${gte(e)}`}function _te(e){let t=Math.sign(e)<0?`-`:`+`;e=Math.abs(e);let n=Math.floor(e/36e5),r=Math.floor(e%36e5/6e4),i=Math.floor(e%36e5%6e4/1e3),a=`${t}${String(n).padStart(2,`0`)}:${String(r).padStart(2,`0`)}`;return i!==0&&(a+=`:${String(i).padStart(2,`0`)}`),a}function vte(e){return`${uk(e)}${_te(e.offset)}[${e.timeZone}]`}function dk(e){let t=typeof e[0]==`object`?e.shift():new gO,n;if(typeof e[0]==`string`)n=e.shift();else{let e=t.getEras();n=e[e.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var fk=class e{constructor(...e){let[t,n,r,i,a]=dk(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,XO(this)}copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day):new e(this.calendar,this.year,this.month,this.day)}add(e){return GO(this,e)}subtract(e){return QO(this,e)}set(e){return $O(this,e)}cycle(e,t,n){return nk(this,e,t,n)}toDate(e){return FO(this,e)}toString(){return lk(this)}compare(e){return yO(this,e)}},pk=class e{constructor(...e){let[t,n,r,i,a]=dk(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,XO(this)}copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return GO(this,e)}subtract(e){return QO(this,e)}set(e){return $O(ek(this,e),e)}cycle(e,t,n){switch(e){case`era`:case`year`:case`month`:case`day`:return nk(this,e,t,n);default:return rk(this,e,t,n)}}toDate(e,t){return FO(this,e,t)}toString(){return uk(this)}compare(e){let t=yO(this,e);return t===0?bO(this,RO(e)):t}},mk=class e{constructor(...e){let[t,n,r,i,a]=dk(e),o=e.shift(),s=e.shift();this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,this.timeZone=o,this.offset=s,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,XO(this)}copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return ak(this,e)}subtract(e){return ute(this,e)}set(e,t){return fte(this,e,t)}cycle(e,t,n){return dte(this,e,t,n)}toDate(){return VO(this)}toString(){return vte(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-BO(e,this.timeZone).toDate().getTime()}},hk=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],yte=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],gk=[1867,1911,1925,1988,2018],_k=[`meiji`,`taisho`,`showa`,`heisei`,`reiwa`];function vk(e){let t=hk.findIndex(([t,n,r])=>e.year<t||e.year===t&&e.month<n||e.year===t&&e.month===n&&e.day<r);return t===-1?hk.length-1:t===0?0:t-1}function yk(e){let t=gk[_k.indexOf(e.era)];if(!t)throw Error(`Unknown era: `+e.era);return new fk(e.year+t,e.month,e.day)}var bte=class extends gO{fromJulianDay(e){let t=super.fromJulianDay(e),n=vk(t);return new fk(this,_k[n],t.year-gk[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(yk(e))}balanceDate(e){let t=yk(e),n=vk(t);_k[n]!==e.era&&(e.era=_k[n],e.year=t.year-gk[n]),this.constrainDate(e)}constrainDate(e){let t=_k.indexOf(e.era),n=yte[t];if(n!=null){let[r,i,a]=n,o=r-gk[t];e.year=Math.max(1,Math.min(o,e.year)),e.year===o&&(e.month=Math.min(i,e.month),e.month===i&&(e.day=Math.min(a,e.day)))}if(e.year===1&&t>=0){let[,n,r]=hk[t];e.month=Math.max(n,e.month),e.month===n&&(e.day=Math.max(r,e.day))}}getEras(){return _k}getYearsInEra(e){let t=_k.indexOf(e.era),n=hk[t],r=hk[t+1];if(r==null)return 9999-n[0]+1;let i=r[0]-n[0];return(e.month<r[1]||e.month===r[1]&&e.day<r[2])&&i++,i}getDaysInMonth(e){return super.getDaysInMonth(yk(e))}getMinimumMonthInYear(e){let t=bk(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=bk(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier=`japanese`}};function bk(e){if(e.year===1)return hk[_k.indexOf(e.era)]}var xk=-543,xte=class extends gO{fromJulianDay(e){let t=super.fromJulianDay(e),n=pO(t.era,t.year);return new fk(this,n-xk,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Sk(e))}getEras(){return[`BE`]}getDaysInMonth(e){return super.getDaysInMonth(Sk(e))}balanceDate(){}constructor(...e){super(...e),this.identifier=`buddhist`}};function Sk(e){let[t,n]=mO(e.year+xk);return new fk(t,n,e.month,e.day)}var Ck=1911;function wk(e){return e.era===`minguo`?e.year+Ck:1-e.year+Ck}function Tk(e){let t=e-Ck;return t>0?[`minguo`,t]:[`before_minguo`,1-t]}var Ek=class extends gO{fromJulianDay(e){let t=super.fromJulianDay(e),[n,r]=Tk(pO(t.era,t.year));return new fk(this,n,r,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Dk(e))}getEras(){return[`before_minguo`,`minguo`]}balanceDate(e){let[t,n]=Tk(wk(e));e.era=t,e.year=n}isInverseEra(e){return e.era===`before_minguo`}getDaysInMonth(e){return super.getDaysInMonth(Dk(e))}getYearsInEra(e){return e.era===`before_minguo`?9999:8088}constructor(...e){super(...e),this.identifier=`roc`}};function Dk(e){let[t,n]=mO(wk(e));return new fk(t,n,e.month,e.day)}var Ok=1948320,kk=[0,31,62,93,124,155,186,216,246,276,306,336],Ak=class{fromJulianDay(e){let t=e-Ok,n=1+Math.floor((33*t+3)/12053),r=t-(365*(n-1)+Math.floor((8*n+21)/33)),i=Math.floor(r<216?r/31:(r-6)/30),a=r-kk[i]+1;return new fk(this,n,i+1,a)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=kk[e.month-1],t+=e.day,t}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||lO(25*e.year+11,33)<8?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return[`AP`]}getYearsInEra(){return 9377}constructor(){this.identifier=`persian`}},jk=78,Mk=80,Nk=class extends gO{fromJulianDay(e){let t=super.fromJulianDay(e),n=t.year-jk,r=e-dO(t.era,t.year,1,1),i;r<Mk?(n--,i=fO(t.year-1)?31:30,r+=i+155+90+10):(i=fO(t.year)?31:30,r-=Mk);let a,o;if(r<i)a=1,o=r+1;else{let e=r-i;e<155?(a=Math.floor(e/31)+2,o=e%31+1):(e-=155,a=Math.floor(e/30)+7,o=e%30+1)}return new fk(this,n,a,o)}toJulianDay(e){let[t,n]=mO(e.year+jk),r,i;return fO(n)?(r=31,i=dO(t,n,3,21)):(r=30,i=dO(t,n,3,22)),e.month===1?i+e.day-1:(i+=r+Math.min(e.month-2,5)*31,e.month>=8&&(i+=(e.month-7)*30),i+=e.day-1,i)}getDaysInMonth(e){return e.month===1&&fO(e.year+jk)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return[`saka`]}balanceDate(){}constructor(...e){super(...e),this.identifier=`indian`}},Pk=1948440,Fk=1948439,Ik=1300,Lk=1600,Rk=460322;function zk(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function Bk(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+zk(t,r,1,1)))/29.5)+1);return new fk(e,r,i,n-zk(t,r,i,1)+1)}function Vk(e){return(14+11*e)%30<11}var Hk=class{fromJulianDay(e){return Bk(this,Pk,e)}toJulianDay(e){return zk(Pk,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return e.month===12&&Vk(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return Vk(e.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return[`AH`]}constructor(){this.identifier=`islamic-civil`}},Uk=class extends Hk{fromJulianDay(e){return Bk(this,Fk,e)}toJulianDay(e){return zk(Fk,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier=`islamic-tbla`}},Wk=`qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=`,Gk,Kk;function qk(e){return Rk+Kk[e-Ik]}function Jk(e,t){let n=e-Ik,r=1<<11-(t-1);return(Gk[n]&r)===0?29:30}function Yk(e,t){let n=qk(e);for(let r=1;r<t;r++)n+=Jk(e,r);return n}function Xk(e){return Kk[e+1-Ik]-Kk[e-Ik]}var Zk=class extends Hk{constructor(){if(super(),this.identifier=`islamic-umalqura`,Gk||=new Uint16Array(Uint8Array.from(atob(Wk),e=>e.charCodeAt(0)).buffer),!Kk){Kk=new Uint32Array(301);let e=0;for(let t=Ik;t<=Lk;t++){Kk[t-Ik]=e;for(let n=1;n<=12;n++)e+=Jk(t,n)}}}fromJulianDay(e){let t=e-Pk,n=qk(Ik),r=qk(Lk);if(t<n||t>r)return super.fromJulianDay(e);{let e=1299,n=1,r=1;for(;r>0;){e++,r=t-qk(e)+1;let i=Xk(e);if(r===i){n=12;break}if(r<i){let t=Jk(e,n);for(n=1;r>t;)r-=t,n++,t=Jk(e,n);break}}return new fk(this,e,n,t-Yk(e,n)+1)}}toJulianDay(e){return e.year<Ik||e.year>Lk?super.toJulianDay(e):Pk+Yk(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<Ik||e.year>Lk?super.getDaysInMonth(e):Jk(e.year,e.month)}getDaysInYear(e){return e.year<Ik||e.year>Lk?super.getDaysInYear(e):Xk(e.year)}},Qk=347997,$k=25920,eA=765433;function tA(e){return lO(e*7+1,19)<7}function nA(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return lO(3*(r+1),7)<3&&(r+=1),r}function rA(e){let t=nA(e-1),n=nA(e);return nA(e+1)-n===356?2:+(n-t===382)}function iA(e){return nA(e)+rA(e)}function aA(e){return iA(e+1)-iA(e)}function oA(e){let t=aA(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function sA(e,t){if(t>=6&&!tA(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=oA(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?tA(e)?30:0:30}var cA=class{fromJulianDay(e){let t=e-Qk,n=t*$k/eA,r=Math.floor((19*n+234)/235)+1,i=iA(r),a=Math.floor(t-i);for(;a<1;)r--,i=iA(r),a=Math.floor(t-i);let o=1,s=0;for(;s<a;)s+=sA(r,o),o++;o--,s-=sA(r,o);let c=a-s;return new fk(this,r,o,c)}toJulianDay(e){let t=iA(e.year);for(let n=1;n<e.month;n++)t+=sA(e.year,n);return t+e.day+Qk}getDaysInMonth(e){return sA(e.year,e.month)}getMonthsInYear(e){return tA(e.year)?13:12}getDaysInYear(e){return aA(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return[`AM`]}balanceYearMonth(e,t){t.year!==e.year&&(tA(t.year)&&!tA(e.year)&&t.month>6?e.month--:!tA(t.year)&&tA(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier=`hebrew`}},lA=1723856,uA=1824665,dA=5500;function fA(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function pA(e,t){let n=Math.floor(4*(t-e)/1461);t>=fA(e,n+1,1,1)&&n++;let r=1+Math.floor((t-fA(e,n,1,1))/30),i=t+1-fA(e,n,r,1);return[n,r,i]}function mA(e){return Math.floor(e%4/3)}function hA(e,t){return t%13==0?mA(e)+5:30}var gA=class{fromJulianDay(e){let[t,n,r]=pA(lA,e),i=`AM`;return t<=0&&(i=`AA`,t+=dA),new fk(this,i,t,n,r)}toJulianDay(e){let t=e.year;return e.era===`AA`&&(t-=dA),fA(lA,t,e.month,e.day)}getDaysInMonth(e){return hA(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+mA(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(e){return e.era===`AA`?9999:9991}getEras(){return[`AA`,`AM`]}constructor(){this.identifier=`ethiopic`}},_A=class extends gA{fromJulianDay(e){let[t,n,r]=pA(lA,e);return t+=dA,new fk(this,`AA`,t,n,r)}getEras(){return[`AA`]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier=`ethioaa`}},vA=class extends gA{fromJulianDay(e){let[t,n,r]=pA(uA,e),i=`CE`;return t<=0&&(i=`BCE`,t=1-t),new fk(this,i,t,n,r)}toJulianDay(e){let t=e.year;return e.era===`BCE`&&(t=1-t),fA(uA,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return e.era===`BCE`&&(t=1-t),hA(t,e.month)}isInverseEra(e){return e.era===`BCE`}balanceDate(e){e.year<=0&&(e.era=e.era===`BCE`?`CE`:`BCE`,e.year=1-e.year)}getEras(){return[`BCE`,`CE`]}getYearsInEra(e){return e.era===`BCE`?9999:9715}constructor(...e){super(...e),this.identifier=`coptic`}};function yA(e){switch(e){case`buddhist`:return new xte;case`ethiopic`:return new gA;case`ethioaa`:return new _A;case`coptic`:return new vA;case`hebrew`:return new cA;case`indian`:return new Nk;case`islamic-civil`:return new Hk;case`islamic-tbla`:return new Uk;case`islamic-umalqura`:return new Zk;case`japanese`:return new bte;case`persian`:return new Ak;case`roc`:return new Ek;default:return new gO}}var bA=new Map,xA=class{constructor(e,t={}){this.formatter=CA(e,t),this.options=t}format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if(typeof this.formatter.formatRange==`function`)return this.formatter.formatRange(e,t);if(t<e)throw RangeError(`End date must be >= start date`);return`${this.formatter.format(e)} \u{2013} ${this.formatter.format(t)}`}formatRangeToParts(e,t){if(typeof this.formatter.formatRangeToParts==`function`)return this.formatter.formatRangeToParts(e,t);if(t<e)throw RangeError(`End date must be >= start date`);let n=this.formatter.formatToParts(e),r=this.formatter.formatToParts(t);return[...n.map(e=>({...e,source:`startRange`})),{type:`literal`,value:` – `,source:`shared`},...r.map(e=>({...e,source:`endRange`}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return DA()&&(this.resolvedHourCycle||=OA(e.locale,this.options),e.hourCycle=this.resolvedHourCycle,e.hour12=this.resolvedHourCycle===`h11`||this.resolvedHourCycle===`h12`),e.calendar===`ethiopic-amete-alem`&&(e.calendar=`ethioaa`),e}},SA={true:{ja:`h11`},false:{}};function CA(e,t={}){if(typeof t.hour12==`boolean`&&TA()){t={...t};let n=SA[String(t.hour12)][e.split(`-`)[0]],r=t.hour12?`h12`:`h23`;t.hourCycle=n??r,delete t.hour12}let n=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(bA.has(n))return bA.get(n);let r=new Intl.DateTimeFormat(e,t);return bA.set(n,r),r}var wA=null;function TA(){return wA??=new Intl.DateTimeFormat(`en-US`,{hour:`numeric`,hour12:!1}).format(new Date(2020,2,3,0))===`24`,wA}var EA=null;function DA(){return EA??=new Intl.DateTimeFormat(`fr`,{hour:`numeric`,hour12:!1}).resolvedOptions().hourCycle===`h12`,EA}function OA(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,``),e+=(e.includes(`-u-`)?``:`-u`)+`-nu-latn`;let n=CA(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(e=>e.type===`hour`).value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(e=>e.type===`hour`).value,10);if(r===0&&i===23)return`h23`;if(r===24&&i===23)return`h24`;if(r===0&&i===11)return`h11`;if(r===12&&i===11)return`h12`;throw Error(`Unexpected hour cycle result`)}function kA(e){e=cO(e??{},AA);let{locale:t}=iT();return(0,x.useMemo)(()=>new xA(t,e),[t,e])}function AA(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(t[r]!==e[r])return!1;return!0}function jA(e,t){let n=(0,x.useRef)(!0),r=(0,x.useRef)(null),i=Kw(e);(0,x.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[]),(0,x.useEffect)(()=>{let e=r.current;n.current?n.current=!1:(!e||t.some((t,n)=>!Object.is(t,e[n])))&&i(),r.current=t},t)}function MA(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return e===r&&n.overflow!==`hidden`&&(i=!0),i&&t&&(i=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),i}function NA(e,t){let n=e;for(MA(n,t)&&(n=n.parentElement);n&&!MA(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function PA(e,t){let n=[],r=document.scrollingElement||document.documentElement;for(;e&&(MA(e,t)&&n.push(e),e!==r);)e=e.parentElement;return n}function FA(e,t,n={}){e!==t&&IA(e,t,t.getBoundingClientRect(),n)}function IA(e,t,n,r={}){let{block:i=`nearest`,inline:a=`nearest`}=r,o=e.scrollTop,s=e.scrollLeft,c=e.getBoundingClientRect(),l=window.getComputedStyle(t),u=window.getComputedStyle(e),d=document.scrollingElement||document.documentElement,f=e===d,p=e===d?0:c.top,m=e===d?e.clientHeight:c.bottom,h=e===d?0:c.left,g=e===d?e.clientWidth:c.right,_=parseFloat(l.scrollMarginTop)||0,v=parseFloat(l.scrollMarginBottom)||0,y=parseFloat(l.scrollMarginLeft)||0,b=parseFloat(l.scrollMarginRight)||0,x=parseFloat(u.scrollPaddingTop)||0,S=parseFloat(u.scrollPaddingBottom)||0,C=parseFloat(u.scrollPaddingLeft)||0,w=parseFloat(u.scrollPaddingRight)||0,T=parseFloat(u.borderTopWidth)||0,E=parseFloat(u.borderBottomWidth)||0,D=parseFloat(u.borderLeftWidth)||0,O=parseFloat(u.borderRightWidth)||0,k=n.top-_,A=n.bottom+v,j=n.left-y,M=n.right+b,N=e===d?0:D+O,P=e===d?0:T+E,F=e===d?0:e.offsetWidth-e.clientWidth-N,ee=e===d?0:e.offsetHeight-e.clientHeight-P,I=p+(f?0:T)+x,te=m-(f?0:E)-S-ee,ne=h+(f?0:D)+C,re=g-(f?0:O)-w;hC()&&_C()||u.direction===`ltr`?re-=F:u.direction===`rtl`&&(ne+=F);let ie=k<I||A>te,ae=j<ne||M>re;if(ie&&i===`start`)o+=k-I;else if(ie&&i===`center`)o+=(k+A)/2-(I+te)/2;else if(ie&&i===`end`)o+=A-te;else if(ie&&i===`nearest`){let e=k-I,t=A-te;o+=Math.abs(e)<=Math.abs(t)?e:t}if(ae&&a===`start`)s+=j-ne;else if(ae&&a===`center`)s+=(j+M)/2-(ne+re)/2;else if(ae&&a===`end`)s+=M-re;else if(ae&&a===`nearest`){let e=j-ne,t=M-re;s+=Math.abs(e)<=Math.abs(t)?e:t}e.scrollTo({left:s,top:o})}function LA(e,t={}){let{containingElement:n}=t;if(e&&e.isConnected){let t=document.scrollingElement||document.documentElement;if(window.getComputedStyle(t).overflow!==`hidden`){let{left:t,top:r}=e.getBoundingClientRect();e?.scrollIntoView?.({block:`nearest`});let{left:i,top:a}=e.getBoundingClientRect();(Math.abs(t-i)>1||Math.abs(r-a)>1)&&(n?.scrollIntoView?.({block:`center`,inline:`center`}),e.scrollIntoView?.({block:`nearest`}))}else{let{left:t,top:r}=e.getBoundingClientRect(),i=PA(e,!0);for(let t of i)FA(t,e);let{left:a,top:o}=e.getBoundingClientRect();if(Math.abs(t-a)>1||Math.abs(r-o)>1){i=n?PA(n,!0):[];for(let e of i)FA(e,n,{block:`center`,inline:`center`});for(let t of PA(e,!0))FA(t,e)}}}}var RA=0,zA=new Map;function BA(e){let[t,n]=(0,x.useState)();return qx(()=>{if(!e)return;let t=zA.get(e);if(t)n(t.element.id);else{let r=`react-aria-description-${RA++}`;n(r);let i=document.createElement(`div`);i.id=r,i.style.display=`none`,i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},zA.set(e,t)}return t.refCount++,()=>{t&&--t.refCount===0&&(t.element.remove(),zA.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}var VA={border:0,clip:`rect(0 0 0 0)`,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`};function HA(e={}){let{style:t,isFocusable:n}=e,[r,i]=(0,x.useState)(!1),{focusWithinProps:a}=dD({isDisabled:!n,onFocusWithinChange:e=>i(e)}),o=(0,x.useMemo)(()=>r?t:t?{...VA,...t}:VA,[r]);return{visuallyHiddenProps:{...a,style:o}}}function UA(e){let{children:t,elementType:n=`div`,isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:o}=HA(e);return x.createElement(n,W(a,o),t)}var WA=(0,x.createContext)(null),GA=(0,x.forwardRef)(function(e,t){return(0,x.useContext)(WA)?.isInvalid?x.createElement(KA,{...e,ref:t}):null}),KA=(0,x.forwardRef)((e,t)=>{let n=(0,x.useContext)(WA),{elementType:r,...i}=e,a=q(i,{global:!0}),o=yS({...i,defaultClassName:`react-aria-FieldError`,defaultChildren:n.validationErrors.length===0?void 0:n.validationErrors.join(` `),values:n});return o.children==null?null:x.createElement(sO,{slot:`errorMessage`,elementType:r,...a,...o,ref:t})}),qA={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},JA={...qA,customError:!0,valid:!1},YA={isInvalid:!1,validationDetails:qA,validationErrors:[]},XA=(0,x.createContext)({}),ZA=`__reactAriaFormValidationState`;function QA(e){if(e.__reactAriaFormValidationState){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[ZA];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return $A(e)}function $A(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:o,validationBehavior:s=`aria`}=e;n&&(t||=n===`invalid`);let c=t===void 0?null:{isInvalid:t,validationErrors:[],validationDetails:JA},l=(0,x.useMemo)(()=>!o||i==null?null:nj(tj(o,i)),[o,i]);a?.validationDetails.valid&&(a=void 0);let u=(0,x.useContext)(XA),d=(0,x.useMemo)(()=>r?Array.isArray(r)?r.flatMap(e=>ej(u[e])):ej(u[r]):[],[u,r]),[f,p]=(0,x.useState)(u),[m,h]=(0,x.useState)(!1);u!==f&&(p(u),h(!1));let g=(0,x.useMemo)(()=>nj(m?[]:d),[m,d]),_=(0,x.useRef)(YA),[v,y]=(0,x.useState)(YA),b=(0,x.useRef)(YA),S=()=>{if(!C)return;w(!1);let e=l||a||_.current;rj(e,b.current)||(b.current=e,y(e))},[C,w]=(0,x.useState)(!1);return(0,x.useEffect)(S),{realtimeValidation:c||g||l||a||YA,displayValidation:s===`native`?c||g||v:c||g||l||a||v,updateValidation(e){s===`aria`&&!rj(v,e)?y(e):_.current=e},resetValidation(){let e=YA;rj(e,b.current)||(b.current=e,y(e)),s===`native`&&w(!1),h(!0)},commitValidation(){s===`native`&&w(!0),h(!0)}}}function ej(e){return e?Array.isArray(e)?e:[e]:[]}function tj(e,t){if(typeof e==`function`){let n=e(t);if(n&&typeof n!=`boolean`)return ej(n)}return[]}function nj(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:JA}:null}function rj(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,n)=>e===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([e,n])=>t.validationDetails[e]===n)}var ij=(0,x.createContext)(null),aj=(0,x.forwardRef)(function(e,t){[e,t]=SS(e,t,ij);let{validationErrors:n,validationBehavior:r=`native`,children:i,className:a,...o}=e;return x.createElement(G.form,{noValidate:r!==`native`,...o,ref:t,className:a||`react-aria-Form`},x.createElement(ij.Provider,{value:{...e,validationBehavior:r}},x.createElement(XA.Provider,{value:n??{}},i)))}),oj=new WeakMap;function sj(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=CD(e),s=pS([!!t,!!n,r,i]),c=pS([!!t,!!n,r,i]);return o=W(o,{"aria-describedby":[s,c,e[`aria-describedby`]].filter(Boolean).join(` `)||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:c}}}function cj(e,t,n){let r=Kw(e=>{n&&!e.defaultPrevented&&n(t)});(0,x.useEffect)(()=>{let t=e?.current?.form;return t?.addEventListener(`reset`,r),()=>{t?.removeEventListener(`reset`,r)}},[e])}function lj(e,t,n){let{validationBehavior:r,focus:i}=e;qx(()=>{if(r===`native`&&n?.current&&`setCustomValidity`in n.current&&!n.current.disabled){let e=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(` `)||`Invalid value.`:``;n.current.setCustomValidity(e),n.current.hasAttribute(`title`)||(n.current.title=``),t.realtimeValidation.isInvalid||t.updateValidation(dj(n.current))}});let a=(0,x.useRef)(!1),o=Kw(()=>{a.current||t.resetValidation()}),s=Kw(e=>{t.displayValidation.isInvalid||t.commitValidation();let r=n?.current?.form;!e.defaultPrevented&&n&&r&&fj(r)===n.current&&(i?i():n.current?.focus(),QC(`keyboard`)),e.preventDefault()}),c=Kw(()=>{t.commitValidation()});(0,x.useEffect)(()=>{let e=n?.current;if(!e)return;let t=e.form,r=t?.reset;return t&&(t.reset=()=>{a.current=!window.event||window.event.type===`message`&&K(window.event)instanceof MessagePort,r?.call(t),a.current=!1}),e.addEventListener(`invalid`,s),e.addEventListener(`change`,c),t?.addEventListener(`reset`,o),()=>{e.removeEventListener(`invalid`,s),e.removeEventListener(`change`,c),t?.removeEventListener(`reset`,o),t&&(t.reset=r)}},[n,r])}function uj(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function dj(e){return{isInvalid:!e.validity.valid,validationDetails:uj(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function fj(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(n.validity?.valid===!1)return n}return null}function pj(e=!0){let[t,n]=(0,x.useState)(e),r=(0,x.useRef)(!1),i=(0,x.useCallback)(e=>{r.current=!0,n(!!e)},[]);return qx(()=>{r.current||n(!1)},[]),[i,t]}function mj(e=!0){let t=dS(),[n,r]=pj(e);return{id:r?t:void 0,ref:n}}function hj(e,t,n){let{isDisabled:r=!1,isReadOnly:i=!1,value:a,name:o,form:s,children:c,isRequired:l,validationBehavior:u=`aria`,"aria-label":d,"aria-labelledby":f,"aria-describedby":p,onPressStart:m,onPressEnd:h,onPressChange:g,onPress:_,onPressUp:v,onClick:y}=e,b=QA({...e,value:t.isSelected}),{isInvalid:S,validationErrors:C,validationDetails:w}=b.displayValidation;lj(e,b,n);let T=e=>{e.stopPropagation(),t.setSelected(K(e).checked)},{pressProps:E,isPressed:D}=nD({onPressStart:m,onPressEnd:h,onPressChange:g,onPress:_,onPressUp:v,onClick:y,isDisabled:r}),[O,k]=(0,x.useState)(!1),{pressProps:A}=nD({onPressStart(e){e.pointerType===`keyboard`||e.pointerType===`virtual`?e.continuePropagation():(m?.(e),g?.(!0),k(!0))},onPressEnd(e){e.pointerType===`keyboard`||e.pointerType===`virtual`?e.continuePropagation():(h?.(e),g?.(!1),k(!1))},onPressUp(e){e.pointerType===`keyboard`||e.pointerType===`virtual`?e.continuePropagation():v?.(e)},onClick:y,onPress(r){if(r.pointerType===`keyboard`||r.pointerType===`virtual`){r.continuePropagation();return}_?.(r),t.toggle(),n.current?.focus();let{[ZA]:i}=e,{commitValidation:a}=i||b;a()},isDisabled:r||i}),{focusableProps:j}=dE(e,n),M=W(E,j),N=q(e,{labelable:!0});cj(n,t.defaultSelected,t.setSelected);let P=mj(),F=mj();return{labelProps:W(A,{onClick:e=>e.preventDefault()}),inputProps:W(N,{checked:t.isSelected,"aria-required":l&&u===`aria`||void 0,required:l&&u===`native`,"aria-invalid":S||e.validationState===`invalid`||void 0,"aria-errormessage":e[`aria-errormessage`],"aria-controls":e[`aria-controls`],"aria-readonly":i||void 0,"aria-describedby":[P.id,F.id,p].filter(Boolean).join(` `)||void 0,onChange:T,disabled:r,...a==null?{}:{value:a},name:o,form:s,type:`checkbox`,...M}),descriptionProps:P,errorMessageProps:F,isSelected:t.isSelected,isPressed:D||O,isDisabled:r,isReadOnly:i,isInvalid:S||e.validationState===`invalid`,validationErrors:C,validationDetails:w}}function gj(e,t,n){let{labelProps:r,inputProps:i,descriptionProps:a,errorMessageProps:o,isSelected:s,isPressed:c,isDisabled:l,isReadOnly:u,isInvalid:d,validationErrors:f,validationDetails:p}=hj(e,t,n),{isIndeterminate:m}=e;return(0,x.useEffect)(()=>{n.current&&(n.current.indeterminate=!!m)}),{labelProps:W(r,(0,x.useMemo)(()=>({onMouseDown:e=>e.preventDefault()}),[])),inputProps:i,descriptionProps:a,errorMessageProps:o,isSelected:s,isPressed:c,isDisabled:l,isReadOnly:u,isInvalid:d,validationErrors:f,validationDetails:p}}function _j(e={}){let{isReadOnly:t}=e,[n,r]=yT(e.isSelected,e.defaultSelected||!1,e.onChange),[i]=(0,x.useState)(n);function a(e){t||r(e)}function o(){t||r(!n)}return{isSelected:n,defaultSelected:e.defaultSelected??i,setSelected:a,toggle:o}}function vj(e,t,n){let r=_j({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),defaultSelected:t.defaultValue.includes(e.value),onChange(n){n?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(n)}}),{name:i,form:a,descriptionId:o,errorMessageId:s,validationBehavior:c}=oj.get(t);c=e.validationBehavior??c;let{realtimeValidation:l}=QA({...e,value:r.isSelected,name:void 0,validationBehavior:`aria`}),u=(0,x.useRef)(YA),d=()=>{t.setInvalid(e.value,l.isInvalid?l:u.current)};(0,x.useEffect)(d);let f=t.realtimeValidation.isInvalid?t.realtimeValidation:l,p=c===`native`?t.displayValidation:f,m=gj({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||i,form:e.form||a,isRequired:e.isRequired??t.isRequired,validationBehavior:c,[ZA]:{realtimeValidation:f,displayValidation:p,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(e){u.current=e,d()}}},r,n);return{...m,inputProps:{...m.inputProps,"aria-describedby":[m.inputProps[`aria-describedby`],t.isInvalid?s:null,o].filter(Boolean).join(` `)||void 0}}}var yj=(0,x.createContext)(null),bj=(0,x.createContext)(null),xj=(0,x.createContext)(null),Sj=(0,x.createContext)(null);function Cj(e,t){let{validationBehavior:n}=xS(ij)||{},r=e.validationBehavior??n??`native`,i=(0,x.useContext)(xj),a=gS((0,x.useMemo)(()=>mS(t,e.inputRef===void 0?null:e.inputRef),[t,e.inputRef])),o={...wS(e),children:typeof e.children==`function`||e.children,value:e.value,validationBehavior:r};return[i?vj(o,i,a):gj(o,_j(e),a),a]}var wj=(0,x.forwardRef)(function(e,t){let{inputRef:n=null,...r}=e;[e,t]=SS(r,t,yj);let[i,a]=Cj(e,n);return x.createElement(Sj.Provider,{value:{...i,inputRef:a,defaultClassName:`react-aria-Checkbox`,isIndeterminate:e.isIndeterminate,isRequired:e.isRequired}},x.createElement(Tj,{...e,ref:t}))}),Tj=(0,x.forwardRef)(function(e,t){let{labelProps:n,inputProps:r,isSelected:i,isDisabled:a,isReadOnly:o,isPressed:s,isInvalid:c,inputRef:l,defaultClassName:u,isIndeterminate:d,isRequired:f}=(0,x.useContext)(Sj),{isFocused:p,isFocusVisible:m,focusProps:h}=fD(),g=a||o,{hoverProps:_,isHovered:v}=vD({...e,isDisabled:g}),y=yS({...e,defaultClassName:u,values:{isSelected:i,isIndeterminate:d||!1,isPressed:s,isHovered:v,isFocused:p,isFocusVisible:m,isDisabled:a,isReadOnly:o,isInvalid:c,isRequired:f||!1}}),b=q(e,{global:!0});return delete b.id,delete b.onClick,x.createElement(G.label,{...W(b,n,_,y),ref:t,slot:e.slot||void 0,"data-selected":i||void 0,"data-indeterminate":d||void 0,"data-pressed":s||void 0,"data-hovered":v||void 0,"data-focused":p||void 0,"data-focus-visible":m||void 0,"data-disabled":a||void 0,"data-readonly":o||void 0,"data-invalid":c||void 0,"data-required":f||void 0},x.createElement(UA,{elementType:`span`},x.createElement(`input`,{...W(r,h),ref:l})),y.children)}),Ej=(0,x.createContext)(null),Dj=(0,x.forwardRef)(function(e,t){let{state:n,thumbProps:r,inputXRef:i,inputYRef:a,xInputProps:o,yInputProps:s,isDisabled:c=!1}=(0,x.useContext)(Ej),{focusProps:l,isFocused:u,isFocusVisible:d}=fD(),{hoverProps:f,isHovered:p}=vD(e),m=yS({...e,defaultClassName:`react-aria-ColorThumb`,defaultStyle:{...r.style,backgroundColor:n.getDisplayColor().toString()},values:{color:n.getDisplayColor(),isHovered:p,isDragging:n.isDragging,isFocused:u,isFocusVisible:d,isDisabled:c}}),h=q(e,{global:!0});return delete h.id,x.createElement(G.div,{...W(r,f,h),...m,ref:t,"data-hovered":p||void 0,"data-dragging":n.isDragging||void 0,"data-focused":u||void 0,"data-focus-visible":d||void 0,"data-disabled":c||void 0},x.createElement(`input`,{ref:i,...o,...l}),s&&x.createElement(`input`,{ref:a,...s,...l}),m.children)}),Oj={};Oj={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`أداة انتقاء اللون`,colorSwatch:`تغيير الألوان`,transparent:`شفاف`,twoDimensionalSlider:`مُنزلق 2D`};var kj={};kj={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Средство за избиране на цвят`,colorSwatch:`цветна мостра`,transparent:`прозрачен`,twoDimensionalSlider:`2D плъзгач`};var Aj={};Aj={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Výběr barvy`,colorSwatch:`barevný vzorek`,transparent:`průhledný`,twoDimensionalSlider:`2D posuvník`};var jj={};jj={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Farvevælger`,colorSwatch:`farveprøve`,transparent:`gennemsigtig`,twoDimensionalSlider:`2D-skyder`};var Mj={};Mj={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Farbwähler`,colorSwatch:`Farbfeld`,transparent:`transparent`,twoDimensionalSlider:`2D-Schieberegler`};var Nj={};Nj={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Επιλογέας χρωμάτων`,colorSwatch:`χρωματικό δείγμα`,transparent:`διαφανές`,twoDimensionalSlider:`Ρυθμιστικό 2D`};var Pj={};Pj={colorPicker:`Color picker`,twoDimensionalSlider:`2D slider`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorSwatch:`color swatch`,transparent:`transparent`};var Fj={};Fj={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Selector de color`,colorSwatch:`muestra de color`,transparent:`transparente`,twoDimensionalSlider:`Regulador 2D`};var Ij={};Ij={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Värvivalija`,colorSwatch:`värvinäidis`,transparent:`läbipaistev`,twoDimensionalSlider:`2D-liugur`};var Lj={};Lj={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Värimuokkain`,colorSwatch:`värimalli`,transparent:`läpinäkyvä`,twoDimensionalSlider:`2D-liukusäädin`};var Rj={};Rj={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}\xa0: ${e.value}`,colorPicker:`Sélecteur de couleurs`,colorSwatch:`Échantillon de couleurs`,transparent:`Transparent`,twoDimensionalSlider:`Curseur\xA02D`};var zj={};zj={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`בוחר הצבעים`,colorSwatch:`דוגמית צבע`,transparent:`שקוף`,twoDimensionalSlider:`מחוון דו מימדי`};var Bj={};Bj={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Odabir boje`,colorSwatch:`uzorak boje`,transparent:`transparentno`,twoDimensionalSlider:`2D klizač`};var Vj={};Vj={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Színválasztó`,colorSwatch:`színtár`,transparent:`átlátszó`,twoDimensionalSlider:`2D-csúszka`};var Hj={};Hj={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Selettore colore`,colorSwatch:`campione di colore`,transparent:`trasparente`,twoDimensionalSlider:`Cursore 2D`};var Uj={};Uj={colorInputLabel:e=>`${e.label}\u{3001}${e.channelLabel}`,colorNameAndValue:e=>`${e.name} : ${e.value}`,colorPicker:`カラーピッカー`,colorSwatch:`カラースウォッチ`,transparent:`透明`,twoDimensionalSlider:`2D スライダー`};var Wj={};Wj={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`색상 피커`,colorSwatch:`색상 견본`,transparent:`투명도`,twoDimensionalSlider:`2D 슬라이더`};var Gj={};Gj={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Spalvų parinkiklis`,colorSwatch:`spalvų pavyzdys`,transparent:`skaidrus`,twoDimensionalSlider:`2D slankiklis`};var Kj={};Kj={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Krāsu atlasītājs`,colorSwatch:`krāsu paraugs`,transparent:`caurspīdīgs`,twoDimensionalSlider:`2D slīdnis`};var qj={};qj={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Fargevelger`,colorSwatch:`fargekart`,transparent:`gjennomsiktig`,twoDimensionalSlider:`2D-glidebryter`};var Jj={};Jj={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Kleurkiezer`,colorSwatch:`kleurstaal`,transparent:`transparant`,twoDimensionalSlider:`2D-schuifregelaar`};var Yj={};Yj={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Próbnik kolorów`,colorSwatch:`próbka koloru`,transparent:`przezroczysty`,twoDimensionalSlider:`Suwak 2D`};var Xj={};Xj={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Seletor de cores`,colorSwatch:`amostra de cores`,transparent:`transparente`,twoDimensionalSlider:`Controle deslizante 2D`};var Zj={};Zj={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Seletor de cores`,colorSwatch:`amostra de cor`,transparent:`transparente`,twoDimensionalSlider:`Controle deslizante 2D`};var Qj={};Qj={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Selector de culori`,colorSwatch:`specimen de culoare`,transparent:`transparent`,twoDimensionalSlider:`Glisor 2D`};var $j={};$j={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Палитра цветов`,colorSwatch:`цветовой образец`,transparent:`прозрачный`,twoDimensionalSlider:`Ползунок 2D`};var eM={};eM={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Výber farieb`,colorSwatch:`vzorkovník farieb`,transparent:`transparentný`,twoDimensionalSlider:`2D jazdec`};var tM={};tM={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Izbirnik barv`,colorSwatch:`barvna paleta`,transparent:`prozorno`,twoDimensionalSlider:`2D drsnik`};var nM={};nM={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Birač boja`,colorSwatch:`Uzorak boje`,transparent:`providno`,twoDimensionalSlider:`2D klizač`};var rM={};rM={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Färgväljaren`,colorSwatch:`färgruta`,transparent:`genomskinlig`,twoDimensionalSlider:`2D-reglage`};var iM={};iM={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Renk Seçici`,colorSwatch:`renk örneği`,transparent:`saydam`,twoDimensionalSlider:`2D sürgü`};var aM={};aM={colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:`Палітра кольорів`,colorSwatch:`зразок кольору`,transparent:`прозорий`,twoDimensionalSlider:`Повзунок 2D`};var oM={};oM={colorInputLabel:e=>`${e.label}\u{3001}${e.channelLabel}`,colorNameAndValue:e=>`${e.name}\u{FF1A}${e.value}`,colorPicker:`拾色器`,colorSwatch:`颜色色板`,transparent:`透明`,twoDimensionalSlider:`2D 滑块`};var sM={};sM={colorInputLabel:e=>`${e.label}\u{FF0C}${e.channelLabel}`,colorNameAndValue:e=>`${e.name}\u{FF1A}${e.value}`,colorPicker:`檢色器`,colorSwatch:`色票`,transparent:`透明`,twoDimensionalSlider:`2D 滑桿`};var cM={};cM={"ar-AE":Oj,"bg-BG":kj,"cs-CZ":Aj,"da-DK":jj,"de-DE":Mj,"el-GR":Nj,"en-US":Pj,"es-ES":Fj,"et-EE":Ij,"fi-FI":Lj,"fr-FR":Rj,"he-IL":zj,"hr-HR":Bj,"hu-HU":Vj,"it-IT":Hj,"ja-JP":Uj,"ko-KR":Wj,"lt-LT":Gj,"lv-LV":Kj,"nb-NO":qj,"nl-NL":Jj,"pl-PL":Yj,"pt-BR":Xj,"pt-PT":Zj,"ro-RO":Qj,"ru-RU":$j,"sk-SK":eM,"sl-SI":tM,"sr-SP":nM,"sv-SE":rM,"tr-TR":iM,"uk-UA":aM,"zh-CN":oM,"zh-TW":sM};var lM={};lM={alpha:`ألفا`,black:`أسود`,blue:`أزرق`,"blue purple":`أرجواني مزرق`,brightness:`السطوع`,brown:`بني`,"brown yellow":`أصفر بني`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`سماوي`,"cyan blue":`أزرق سماوي`,dark:`داكن`,gray:`رمادي`,grayish:`مائل للرمادي`,green:`أخضر`,"green cyan":`سماوي مخضر`,hue:`درجة اللون`,light:`فاتح`,lightness:`الإضاءة`,magenta:`أرجواني`,"magenta pink":`أرجواني وردي`,orange:`برتقالي`,"orange yellow":`أصفر برتقالي`,pale:`باهت`,pink:`وردي`,"pink red":`أحمر وردي`,purple:`أرجواني`,"purple magenta":`بنفسجي`,red:`أحمر`,"red orange":`برتقالي محمر`,saturation:`التشبع`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} \u{634}\u{641}\u{627}\u{641}`,"very dark":`داكن جدًا`,"very light":`فاتح جدًا`,vibrant:`ساطع`,white:`أبيض`,yellow:`أصفر`,"yellow green":`أخضر مصفر`};var uM={};uM={alpha:`Алфа`,black:`черно`,blue:`Синьо`,"blue purple":`синьо лилаво`,brightness:`Яркост`,brown:`кафяво`,"brown yellow":`кафяво жълто`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`циан`,"cyan blue":`циан синьо`,dark:`тъмно`,gray:`сиво`,grayish:`сивкав`,green:`Зелено`,"green cyan":`зелен циан`,hue:`Оттенък`,light:`светло`,lightness:`Лекота`,magenta:`магента`,"magenta pink":`магента розово`,orange:`оранжево`,"orange yellow":`оранжево жълто`,pale:`бледо`,pink:`розово`,"pink red":`розово червено`,purple:`лилаво`,"purple magenta":`лилаво магента`,red:`Червено`,"red orange":`червен портокал`,saturation:`Наситеност`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} \u{43F}\u{440}\u{43E}\u{437}\u{440}\u{430}\u{447}\u{435}\u{43D}`,"very dark":`много тъмно`,"very light":`много светло`,vibrant:` ярко`,white:`бяло`,yellow:`жълто`,"yellow green":`жълто зелен`};var dM={};dM={alpha:`Alfa`,black:`černá`,blue:`Modrá`,"blue purple":`modrofialová`,brightness:`Jas`,brown:`hnědá`,"brown yellow":`hnědožlutá`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`tyrkysová`,"cyan blue":`tyrkysovomodrá`,dark:`tmavá`,gray:`šedá`,grayish:`našedlá`,green:`Zelená`,"green cyan":`zelenotyrkysová`,hue:`Odstín`,light:`světlá`,lightness:`Světlost`,magenta:`purpurová`,"magenta pink":`purpurově růžová`,orange:`oranžová`,"orange yellow":`oranžovožlutá`,pale:`bledá`,pink:`růžová`,"pink red":`růžovočervená`,purple:`fialová`,"purple magenta":`fialově purpurová`,red:`Červená`,"red orange":`červenooranžová`,saturation:`Sytost`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} pr\u{16F}hledn\xe9`,"very dark":`velmi tmavá`,"very light":`velmi světlá`,vibrant:`zářivá`,white:`bílá`,yellow:`žlutá`,"yellow green":`žlutozelená`};var fM={};fM={alpha:`Alfa`,black:`sort`,blue:`Blå`,"blue purple":`blålilla`,brightness:`Lysstyrke`,brown:`brun`,"brown yellow":`brungul`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`cyan`,"cyan blue":`cyan blå`,dark:`mørk`,gray:`grå`,grayish:`grålig`,green:`Grøn`,"green cyan":`grøn cyan`,hue:`Tone`,light:`lys`,lightness:`Lyshed`,magenta:`magenta`,"magenta pink":`magenta pink`,orange:`orange`,"orange yellow":`orangegul`,pale:`bleg`,pink:`lyserød`,"pink red":`lyserødlig rød`,purple:`lilla`,"purple magenta":`lilla magenta`,red:`Rød`,"red orange":`rødorange`,saturation:`Farvemætning`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} gennemsigtig`,"very dark":`meget mørk`,"very light":`meget lys`,vibrant:`klar`,white:`hvid`,yellow:`gul`,"yellow green":`gulgrøn`};var pM={};pM={alpha:`Alpha`,black:`Schwarz`,blue:`Blau`,"blue purple":`Blaulila`,brightness:`Helligkeit`,brown:`Braun`,"brown yellow":`Braungelb`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`Cyan`,"cyan blue":`Cyanblau`,dark:`dunkles`,gray:`Grau`,grayish:`gräuliches`,green:`Grün`,"green cyan":`Grüncyan`,hue:`Farbton`,light:`helles`,lightness:`Leuchtkraft`,magenta:`Magenta`,"magenta pink":`Magentarosa`,orange:`Orange`,"orange yellow":`Orangegelb`,pale:`blasses`,pink:`Rosa`,"pink red":`Rosarot`,purple:`Lila`,"purple magenta":`Lilamagenta`,red:`Rot`,"red orange":`Rotorange`,saturation:`Sättigung`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, zu ${e.percentTransparent} transparent`,"very dark":`sehr dunkles`,"very light":`sehr helles`,vibrant:`lebhaftes`,white:`Weiß`,yellow:`Gelb`,"yellow green":`Gelbgrün`};var mM={};mM={alpha:`Άλφα`,black:`μαύρο`,blue:`Μπλε`,"blue purple":`μπλε μωβ`,brightness:`Φωτεινότητα`,brown:`καφέ`,"brown yellow":`καφέ κίτρινο`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`κυανό`,"cyan blue":`κυανό μπλε`,dark:`σκούρο`,gray:`γκρι`,grayish:`γκριζωπό`,green:`Πράσινο`,"green cyan":`πράσινο κυανό`,hue:`Τόνος`,light:`ανοιχτό`,lightness:`Φωτεινότητα`,magenta:`ματζέντα`,"magenta pink":`ματζέντα ροζ`,orange:`πορτοκαλί`,"orange yellow":`πορτοκαλί κίτρινο`,pale:`ανοιχτό`,pink:`ροζ`,"pink red":`ροζ κόκκινο`,purple:`μωβ`,"purple magenta":`μωβ ματζέντα`,red:`Κόκκινο`,"red orange":`κόκκινο πορτοκαλί`,saturation:`Κορεσμός`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} \u{3B4}\u{3B9}\u{3B1}\u{3C6}\u{3B1}\u{3BD}\u{3AD}\u{3C2}`,"very dark":`πολύ σκούρο`,"very light":`πολύ ανοιχτό`,vibrant:`έντονο`,white:`λευκό`,yellow:`κίτρινο`,"yellow green":`κίτρινο πράσινο`};var hM={};hM={hue:`Hue`,saturation:`Saturation`,lightness:`Lightness`,brightness:`Brightness`,red:`Red`,green:`Green`,blue:`Blue`,alpha:`Alpha`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":`very dark`,dark:`dark`,light:`light`,"very light":`very light`,pale:`pale`,grayish:`grayish`,vibrant:`vibrant`,black:`black`,white:`white`,gray:`gray`,pink:`pink`,"pink red":`pink red`,"red orange":`red orange`,brown:`brown`,orange:`orange`,"orange yellow":`orange yellow`,"brown yellow":`brown yellow`,yellow:`yellow`,"yellow green":`yellow green`,"green cyan":`green cyan`,cyan:`cyan`,"cyan blue":`cyan blue`,"blue purple":`blue purple`,purple:`purple`,"purple magenta":`purple magenta`,magenta:`magenta`,"magenta pink":`magenta pink`};var gM={};gM={alpha:`Alpha`,black:`negro`,blue:`Azul`,"blue purple":`púrpura azulado`,brightness:`Brillo`,brown:`marrón`,"brown yellow":`amarillo amarronado`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`cian`,"cyan blue":`azul cian`,dark:`oscuro`,gray:`gris`,grayish:`grisáceo`,green:`Verde`,"green cyan":`cian verdoso`,hue:`Tono`,light:`claro`,lightness:`Luminosidad`,magenta:`magenta`,"magenta pink":`rosa magenta`,orange:`naranja`,"orange yellow":`amarillo anaranjado`,pale:`pálido`,pink:`rosa`,"pink red":`rojo rosado`,purple:`morado`,"purple magenta":`magenta violáceo`,red:`Rojo`,"red orange":`naranja rojizo`,saturation:`Saturación`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":`muy oscuro`,"very light":`muy claro`,vibrant:`intenso`,white:`blanco`,yellow:`amarillo`,"yellow green":`verde amarillento`};var _M={};_M={alpha:`Alfa`,black:`must`,blue:`Sinine`,"blue purple":`sinakaslilla`,brightness:`Heledus`,brown:`pruun`,"brown yellow":`pruunikaskollane`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`tsüaan`,"cyan blue":`tsüaansinine`,dark:`tume`,gray:`hall`,grayish:`hallikas`,green:`Roheline`,"green cyan":`tsüaanroheline`,hue:`Värv`,light:`valgus`,lightness:`Valgus`,magenta:`magentapunane`,"magenta pink":`magentaroosa`,orange:`oranž`,"orange yellow":`oranžikaskollane`,pale:`kahvatu`,pink:`roosa`,"pink red":`vaarikapunane`,purple:`lilla`,"purple magenta":`purpurne magenta`,red:`Punane`,"red orange":`punakasoranž`,saturation:`Küllastus`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} l\xe4bipaistev`,"very dark":`väga tume`,"very light":`väga hele`,vibrant:`ere`,white:`valge`,yellow:`kollane`,"yellow green":`kollakasroheline`};var vM={};vM={alpha:`Alpha`,black:`musta`,blue:`Sininen`,"blue purple":`sinivioletti`,brightness:`Kirkkaus`,brown:`ruskea`,"brown yellow":`ruskeankeltainen`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`syaani`,"cyan blue":`syaaninsininen`,dark:`tumma`,gray:`harmaa`,grayish:`harmahtava`,green:`Vihreä`,"green cyan":`vihreänsyaani`,hue:`Sävy`,light:`vaalea`,lightness:`Valomäärä`,magenta:`magenta`,"magenta pink":`magentapinkki`,orange:`oranssi`,"orange yellow":`oranssinkeltainen`,pale:`vaalea`,pink:`pinkki`,"pink red":`vaaleanpunainen`,purple:`violetti`,"purple magenta":`violettimagenta`,red:`Punainen`,"red orange":`punaoranssi`,saturation:`Värikylläisyys`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} l\xe4pin\xe4kyv\xe4`,"very dark":`hyvin tumma`,"very light":`erittäin vaalea`,vibrant:`eloisa`,white:`valkea`,yellow:`keltainen`,"yellow green":`keltavihreä`};var yM={};yM={alpha:`Alpha`,black:`Noir`,blue:`Bleu`,"blue purple":`Violet bleu`,brightness:`Luminosité`,brown:`Brun`,"brown yellow":`Jaune brun`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`Cyan`,"cyan blue":`Bleu cyan`,dark:`Sombre`,gray:`Gris`,grayish:`Grisâtre`,green:`Vert`,"green cyan":`Cyan vert`,hue:`Teinte`,light:`Clair`,lightness:`Luminosité`,magenta:`Magenta`,"magenta pink":`Rose magenta`,orange:`Orange`,"orange yellow":`Jaune orangé`,pale:`Pâle`,pink:`Rose`,"pink red":`Rouge rosé`,purple:`Violet`,"purple magenta":`Magenta violet`,red:`Rouge`,"red orange":`Orange rouge`,saturation:`Saturation`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":`Très sombre`,"very light":`Très clair`,vibrant:`Vif`,white:`Blanc`,yellow:`Jaune`,"yellow green":`Vert jaune`};var bM={};bM={alpha:`אלפא`,black:`שחור`,blue:`כחול`,"blue purple":`כחול סגול`,brightness:`בהירות`,brown:`חום`,"brown yellow":`חום צהוב`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`טורקיז`,"cyan blue":`כחול ציאן`,dark:`כהה`,gray:`אפור`,grayish:`אפרפר`,green:`ירוק`,"green cyan":`ציאן ירוק`,hue:`גוון`,light:`אור`,lightness:`כמות אור`,magenta:`מג'נטה`,"magenta pink":`ורוד מג'נטה`,orange:`כתום`,"orange yellow":`כתום צהוב`,pale:`חיוור`,pink:`ורוד`,"pink red":`ורוד אדום`,purple:`סגול`,"purple magenta":`מג'נטה סגול`,red:`אדום`,"red orange":`כתום אדום`,saturation:`רוויה`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} \u{5E9}\u{5E7}\u{5D5}\u{5E3}`,"very dark":`כהה מאוד`,"very light":`בהיר מאוד`,vibrant:`תוסס`,white:`לבן`,yellow:`צהוב`,"yellow green":`צהוב ירוק`};var xM={};xM={alpha:`Alfa`,black:`crno`,blue:`Plava`,"blue purple":`plavo ljubičasta`,brightness:`Svjetlina`,brown:`smeđa`,"brown yellow":`smeđe žuta`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`cijan`,"cyan blue":`cijan plava`,dark:`tamno`,gray:`siva`,grayish:`sivkasto`,green:`Zelena`,"green cyan":`zelena cijan`,hue:`Nijansa`,light:`svjetlo`,lightness:`Osvijetljenost`,magenta:`magenta`,"magenta pink":`magentno ružičasta`,orange:`narančasta`,"orange yellow":`narančasto žuta`,pale:`blijeda`,pink:`ružičasta`,"pink red":`ružičasto crvena`,purple:`ljubičasta`,"purple magenta":`ljubičasta magenta`,red:`Crvena`,"red orange":`crveno narančasta`,saturation:`Zasićenost`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozirnosti`,"very dark":`jako tamna`,"very light":`vrlo svijetlo`,vibrant:`vibrantna`,white:`bijela`,yellow:`žuto`,"yellow green":`žuto zelena`};var SM={};SM={alpha:`Alfa`,black:`fekete`,blue:`Kék`,"blue purple":`kék lila`,brightness:`Fényesség`,brown:`barna`,"brown yellow":`barna sárga`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`ciánkék`,"cyan blue":`ciánkék`,dark:`sötét`,gray:`szürke`,grayish:`szürkés`,green:`Zöld`,"green cyan":`zöld ciánkék`,hue:`Színárnyalat`,light:`világos`,lightness:`Világosság`,magenta:`bíbor`,"magenta pink":`bíbor rózsaszín`,orange:`narancs`,"orange yellow":`narancssárga`,pale:`halvány`,pink:`rózsaszín`,"pink red":`rózsaszín piros`,purple:`lila`,"purple magenta":`lila bíbor`,red:`Piros`,"red orange":`piros narancs`,saturation:`Telítettség`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} \xe1tl\xe1tsz\xf3`,"very dark":`nagyon sötét`,"very light":`nagyon világos`,vibrant:`élénk`,white:`fehér`,yellow:`sárga`,"yellow green":`sárga zöld`};var CM={};CM={alpha:`Alfa`,black:`nero`,blue:`Blu`,"blue purple":`blu viola`,brightness:`Luminosità`,brown:`marrone`,"brown yellow":`giallo bruno`,colorName:e=>`${e.hue} ${e.chroma} ${e.lightness}`,cyan:`ciano`,"cyan blue":`blu ciano`,dark:`scuro`,gray:`grigio`,grayish:`grigiastro`,green:`Verde`,"green cyan":`verde ciano`,hue:`Tonalità`,light:`chiaro`,lightness:`Luminosità`,magenta:`magenta`,"magenta pink":`rosa magenta`,orange:`arancio`,"orange yellow":`giallo arancio`,pale:`tenue`,pink:`rosa`,"pink red":`rosa rosso`,purple:`viola`,"purple magenta":`viola magenta`,red:`Rosso`,"red orange":`rosso arancio`,saturation:`Saturazione`,transparentColorName:e=>`${e.hue} ${e.chroma} ${e.lightness}, trasparenza ${e.percentTransparent}`,"very dark":`molto scuro`,"very light":`molto chiaro`,vibrant:`vivace`,white:`bianco`,yellow:`giallo`,"yellow green":`giallo verde`};var wM={};wM={alpha:`アルファ`,black:`ブラック`,blue:`青`,"blue purple":`ブルーパープル`,brightness:`明るさ`,brown:`ブラウン`,"brown yellow":`ブラウンイエロー`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`シアン`,"cyan blue":`シアンブルー`,dark:`ダーク`,gray:`グレー`,grayish:`グレイッシュ`,green:`緑`,"green cyan":`グリーンシアン`,hue:`色相`,light:`ライト`,lightness:`明度`,magenta:`マゼンタ`,"magenta pink":`マゼンタピンク`,orange:`オレンジ`,"orange yellow":`オレンジイエロー`,pale:`ペール`,pink:`ピンク`,"pink red":`ピンクレッド`,purple:`パープル`,"purple magenta":`パープルマゼンタ`,red:`赤`,"red orange":`レッドオレンジ`,saturation:`彩度`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} \u{900F}\u{660E}`,"very dark":`最も暗い`,"very light":`ベリーライト`,vibrant:`鮮やか`,white:`ホワイト`,yellow:`イエロー`,"yellow green":`イエローグリーン`};var TM={};TM={alpha:`알파`,black:`검은색`,blue:`파랑`,"blue purple":`청자색`,brightness:`명도`,brown:`갈색`,"brown yellow":`황갈색`,colorName:e=>`${e.lightness}, ${e.chroma}, ${e.hue}`,cyan:`청록색`,"cyan blue":`청록색`,dark:`다크`,gray:`회색`,grayish:`회갈색`,green:`초록`,"green cyan":`청록색`,hue:`색조`,light:`라이트`,lightness:`밝기`,magenta:`자홍색`,"magenta pink":`마젠타 핑크`,orange:`주황색`,"orange yellow":`불그스름한 노랑`,pale:`흙색`,pink:`분홍색`,"pink red":`핑크 레드`,purple:`자주색`,"purple magenta":`보라빛 자홍색`,red:`빨강`,"red orange":`붉은 주황색`,saturation:`채도`,transparentColorName:e=>`${e.lightness}, ${e.chroma}, ${e.hue}, ${e.percentTransparent} \u{D22C}\u{BA85}\u{B3C4}`,"very dark":`매우 어두운`,"very light":`매우 연함`,vibrant:`강렬한`,white:`흰색`,yellow:`노란색`,"yellow green":`연두색`};var EM={};EM={alpha:`Alfa`,black:`juoda`,blue:`Mėlyna`,"blue purple":`melsvai violetinė`,brightness:`Ryškumas`,brown:`ruda`,"brown yellow":`rusvai geltona`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`žalsvai mėlyna`,"cyan blue":`žalsvai mėlyna`,dark:`tamsi`,gray:`pilka`,grayish:`pilkšva`,green:`Žalia`,"green cyan":`žalsvai mėlyna`,hue:`Atspalvis`,light:`šviesi`,lightness:`Šviesumas`,magenta:`rausvai raudona`,"magenta pink":`purpurinė`,orange:`oranžinė`,"orange yellow":`oranžinio atspalvio geltona`,pale:`blyški`,pink:`rožinė`,"pink red":`rožinė raudona`,purple:`violetinė`,"purple magenta":`purpurinė rausvai raudona`,red:`Raudona`,"red orange":`rausvai oranžinė`,saturation:`Įsotinimas`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} skaidri`,"very dark":`labai tamsi`,"very light":`labai šviesi`,vibrant:`ryški`,white:`balta`,yellow:`geltona`,"yellow green":`gelsvai žalia`};var DM={};DM={alpha:`Alfa`,black:`melns`,blue:`Zila`,"blue purple":`zili violets`,brightness:`Spilgtums`,brown:`brūns`,"brown yellow":`brūni dzeltens`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`ciāns`,"cyan blue":`ciāna zils`,dark:`tumšs`,gray:`pelēks`,grayish:`pelēcīgs`,green:`Zaļa`,"green cyan":`zaļš ciāns`,hue:`Nokrāsa`,light:`gaišs`,lightness:`Gaišums`,magenta:`fuksiju`,"magenta pink":`fuksiju rozā`,orange:`oranžs`,"orange yellow":`oranži dzeltens`,pale:`bāls`,pink:`rozā`,"pink red":`rozīgi sarkans`,purple:`violets`,"purple magenta":`violets fuksiju`,red:`Sarkana`,"red orange":`sarkanīgi oranžs`,saturation:`Piesātinājums`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} caursp\u{12B}d\u{12B}gs`,"very dark":`ļoti tumšs`,"very light":`ļoti gaišs`,vibrant:`košs`,white:`balts`,yellow:`dzeltens`,"yellow green":`dzelteni zaļš`};var OM={};OM={alpha:`Alfa`,black:`svart`,blue:`Blå`,"blue purple":`blålilla`,brightness:`Lysstyrke`,brown:`brun`,"brown yellow":`brungul`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`cyan`,"cyan blue":`cyanblå`,dark:`mørk`,gray:`grå`,grayish:`gråaktig`,green:`Grønn`,"green cyan":`grønncyan`,hue:`Fargetone`,light:`lys`,lightness:`Lyshet`,magenta:`magenta`,"magenta pink":`magentarosa`,orange:`oransje`,"orange yellow":`oransjegul`,pale:`blek`,pink:`rosa`,"pink red":`rosarød`,purple:`lilla`,"purple magenta":`lillamagenta`,red:`Rød`,"red orange":`rødoransje`,saturation:`Metning`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} gjennomsiktig`,"very dark":`svært mørk`,"very light":`svært lys`,vibrant:`levende`,white:`hvit`,yellow:`gul`,"yellow green":`gulgrønn`};var kM={};kM={alpha:`Alfa`,black:`zwart`,blue:`Blauw`,"blue purple":`paarsblauw`,brightness:`Helderheid`,brown:`bruin`,"brown yellow":`bruingeel`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`cyaan`,"cyan blue":`cyaanblauw`,dark:`donker`,gray:`grijs`,grayish:`grijsachtig`,green:`Groen`,"green cyan":`cyaangroen`,hue:`Kleurtoon`,light:`licht`,lightness:`Lichtsterkte`,magenta:`magenta`,"magenta pink":`magentaroze`,orange:`oranje`,"orange yellow":`oranjegeel`,pale:`bleek`,pink:`roze`,"pink red":`rozerood`,purple:`paars`,"purple magenta":`magentapaars`,red:`Rood`,"red orange":`roodoranje`,saturation:`Verzadiging`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparant`,"very dark":`heel donker`,"very light":`heel licht`,vibrant:`levendig`,white:`wit`,yellow:`geel`,"yellow green":`geelgroen`};var AM={};AM={alpha:`Alfa`,black:`czarny`,blue:`Niebieski`,"blue purple":`niebiesko-fioletowy`,brightness:`Jasność`,brown:`brązowy`,"brown yellow":`brązowo-żółty`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`cyjanowy`,"cyan blue":`cyjanowo-niebieski`,dark:`ciemny`,gray:`szary`,grayish:`szarawy`,green:`Zielony`,"green cyan":`zielono-cyjanowy`,hue:`Odcień`,light:`jasny`,lightness:`Jaskrawość`,magenta:`purpurowy`,"magenta pink":`purpurowo-różowy`,orange:`pomarańczowy`,"orange yellow":`pomarańczowo-żółty`,pale:`blady`,pink:`różowy`,"pink red":`różowo-czerwony`,purple:`fioletowy`,"purple magenta":`fioletowo-purpurowy`,red:`Czerwony`,"red orange":`czerwono-pomarańczowy`,saturation:`Nasycenie`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} przezroczysto\u{15B}ci`,"very dark":`bardzo ciemny`,"very light":`bardzo jasny`,vibrant:`intensywny`,white:`biały`,yellow:`żółty`,"yellow green":`żółto-zielony`};var jM={};jM={alpha:`Alfa`,black:`preto`,blue:`Azul`,"blue purple":`roxo azulado`,brightness:`Brilho`,brown:`marrom`,"brown yellow":`marrom amarelado`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`ciano`,"cyan blue":`azul-ciano`,dark:`escuro`,gray:`cinza`,grayish:`acinzentado`,green:`Verde`,"green cyan":`verde-ciano`,hue:`Matiz`,light:`claro`,lightness:`Luminosidade`,magenta:`magenta`,"magenta pink":`rosa-magenta`,orange:`laranja`,"orange yellow":`amarelo alaranjado`,pale:`pálido`,pink:`rosa`,"pink red":`rosa avermelhado`,purple:`roxo`,"purple magenta":`roxo-magenta`,red:`Vermelho`,"red orange":`laranja avermelhado`,saturation:`Saturação`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":`muito escuro`,"very light":`muito claro`,vibrant:`vibrante`,white:`branco`,yellow:`amarelo`,"yellow green":`verde amarelado`};var MM={};MM={alpha:`Alfa`,black:`preto`,blue:`Azul`,"blue purple":`azul-púrpura`,brightness:`Luminosidade`,brown:`castanho`,"brown yellow":`amarelo-castanho`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`ciano`,"cyan blue":`azul-ciano`,dark:`escuro`,gray:`cinzento`,grayish:`acinzentado`,green:`Verde`,"green cyan":`verde-ciano`,hue:`Tonalidade`,light:`claro`,lightness:`Claridade`,magenta:`magenta`,"magenta pink":`rosa-magenta`,orange:`laranja`,"orange yellow":`amarelo-laranja`,pale:`pálido`,pink:`cor-de-rosa`,"pink red":`vermelho-rosa`,purple:`púrpura`,"purple magenta":`púrpura-magenta`,red:`Vermelho`,"red orange":`laranja-vermelho`,saturation:`Saturação`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":`muito escuro`,"very light":`muito claro`,vibrant:`vibrante`,white:`branco`,yellow:`amarelo`,"yellow green":`verde-amarelo`};var NM={};NM={alpha:`Alfa`,black:`negru`,blue:`Albastru`,"blue purple":`albastru-violet`,brightness:`Luminozitate`,brown:`maro`,"brown yellow":`galben maro`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`bleu`,"cyan blue":`albastru-bleu`,dark:`închis`,gray:`gri`,grayish:`cenușiu`,green:`Verde`,"green cyan":`verde bleu`,hue:`Nuanță`,light:`deschis`,lightness:`Luminozitate`,magenta:`fucsia`,"magenta pink":`roz-fucsia`,orange:`portocaliu`,"orange yellow":`galben-portocaliu`,pale:`pal`,pink:`roz`,"pink red":`roz-roșu`,purple:`violet`,"purple magenta":`violet-fucsia`,red:`Roșu`,"red orange":`portocaliu-roșu`,saturation:`Saturație`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":`foarte închis`,"very light":`foarte deschis`,vibrant:`plin de viață`,white:`alb`,yellow:`galben`,"yellow green":`galben-verde`};var PM={};PM={alpha:`Альфа`,black:`черный`,blue:`Синий`,"blue purple":`сине-фиолетовый`,brightness:`Яркость`,brown:`коричневый`,"brown yellow":`коричнево-желтый`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`голубой`,"cyan blue":`цвет морской волны`,dark:`темный`,gray:`серый`,grayish:`сероватый`,green:`Зеленый`,"green cyan":`сине-зеленый`,hue:`Оттенок`,light:`светлый`,lightness:`Освещенность`,magenta:`пурпурный`,"magenta pink":`пурпурно-розовый`,orange:`оранжевый`,"orange yellow":`оранжево-желтый`,pale:`бледный`,pink:`розовый`,"pink red":`розово-красный`,purple:`фиолетовый`,"purple magenta":`фиолетово-пурпурный`,red:`Красный`,"red orange":`красно-оранжевый`,saturation:`Насыщенность`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, \u{43F}\u{440}\u{43E}\u{437}\u{440}\u{430}\u{447}\u{43D}\u{44B}\u{439} \u{43D}\u{430} ${e.percentTransparent}`,"very dark":`очень темный`,"very light":`очень светлый`,vibrant:`яркий`,white:`белый`,yellow:`желтый`,"yellow green":`желто-зеленый`};var FM={};FM={alpha:`Alfa`,black:`čierna`,blue:`Modrá`,"blue purple":`modrofialová`,brightness:`Jas`,brown:`hnedá`,"brown yellow":`hnedožltá`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`azúrová`,"cyan blue":`azúrová modrá`,dark:`tmavá`,gray:`sivá`,grayish:`sivastá`,green:`Zelená`,"green cyan":`zelená azúrová`,hue:`Odtieň`,light:`svetlá`,lightness:`Svetlosť`,magenta:`purpurová`,"magenta pink":`ružová purpurová`,orange:`oranžová`,"orange yellow":`oranžovožltá`,pale:`bledá`,pink:`ružová`,"pink red":`ružovočervená`,purple:`fialová`,"purple magenta":`fialová purpurová`,red:`Červená`,"red orange":`červenooranžová`,saturation:`Sýtosť`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prieh\u{13E}adn\xe1`,"very dark":`veľmi tmavá`,"very light":`veľmi svetlá`,vibrant:`energická`,white:`biela`,yellow:`žltá`,"yellow green":`žltozelená`};var IM={};IM={alpha:`Alfa`,black:`črna`,blue:`Modra`,"blue purple":`modro vijolična`,brightness:`Svetlost`,brown:`rjava`,"brown yellow":`rjavo rumena`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`cian`,"cyan blue":`cian modra`,dark:`temna`,gray:`siva`,grayish:`sivkasta`,green:`Zelena`,"green cyan":`zelena cian`,hue:`Barva`,light:`svetla`,lightness:`Lahkost`,magenta:`škrlatna`,"magenta pink":`škrlatno roza`,orange:`oranžna`,"orange yellow":`oranžno rumena`,pale:`bleda`,pink:`roza`,"pink red":`roza rdeča`,purple:`vijolična`,"purple magenta":`vijolično škrlatna`,red:`Rdeča`,"red orange":`rdeče oranžna`,saturation:`Nasičenost`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozorna`,"very dark":`zelo temna`,"very light":`zelo svetla`,vibrant:`živahna`,white:`bela`,yellow:`rumena`,"yellow green":`rumeno zelena`};var LM={};LM={alpha:`Alfa`,black:`crno`,blue:`Plava`,"blue purple":`plavoljubičasta`,brightness:`Osvetljenost`,brown:`smeđa`,"brown yellow":`smeđežuta`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`cijan`,"cyan blue":`cijan plava`,dark:`tamno`,gray:`siva`,grayish:`sivkasta`,green:`Zelena`,"green cyan":`zeleno cijan`,hue:`Nijansa`,light:`svetla`,lightness:`Osvetljenje`,magenta:`purpurnocrvena`,"magenta pink":`magenta ružičasta`,orange:`narandžasta`,"orange yellow":`narandžastožuta`,pale:`bledo`,pink:`ružičasta`,"pink red":`ružičastocrvena`,purple:`ljubičasta`,"purple magenta":`ljubičasta magenta`,red:`Crvena`,"red orange":`crvenonarandžasta`,saturation:`Zasićenje`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozirna`,"very dark":`veoma tamno`,"very light":`vrlo svetlo`,vibrant:`živopisna`,white:`bela`,yellow:`žuto`,"yellow green":`žutozelena`};var RM={};RM={alpha:`Alfa`,black:`svart`,blue:`Blått`,"blue purple":`blålila`,brightness:`Ljusstyrka`,brown:`brun`,"brown yellow":`brungul`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`cyan`,"cyan blue":`cyanblå`,dark:`mörk`,gray:`grå`,grayish:`gråaktig`,green:`Grönt`,"green cyan":`grön cyan`,hue:`Nyans`,light:`ljus`,lightness:`Ljushet`,magenta:`magenta`,"magenta pink":`magentarosa`,orange:`orange`,"orange yellow":`orangegul`,pale:`blek`,pink:`rosa`,"pink red":`rosaröd`,purple:`lila`,"purple magenta":`lila magenta`,red:`Rött`,"red orange":`rödorange`,saturation:`Mättnad`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} genomskinlig`,"very dark":`mycket mörk`,"very light":`mycket ljus`,vibrant:`livfull`,white:`vit`,yellow:`gul`,"yellow green":`gulgrön`};var zM={};zM={alpha:`Alfa`,black:`siyah`,blue:`Mavi`,"blue purple":`mavi mor`,brightness:`Parlaklık`,brown:`kahverengi`,"brown yellow":`kahverengi sarı`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`camgöbeği`,"cyan blue":`camgöbeği mavi`,dark:`koyu`,gray:`gri`,grayish:`grimsi`,green:`Yeşil`,"green cyan":`yeşil camgöbeği`,hue:`Ton`,light:`açık`,lightness:`Canlılık`,magenta:`eflatun`,"magenta pink":`eflatun pembe`,orange:`turuncu`,"orange yellow":`turuncu sarı`,pale:`solgun`,pink:`pembe`,"pink red":`pembe kırmızı`,purple:`mor`,"purple magenta":`mor eflatun`,red:`Kırmızı`,"red orange":`kırmızı portakal`,saturation:`Doygunluk`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} saydam`,"very dark":`çok koyu`,"very light":`çok açık`,vibrant:`canlı`,white:`beyaz`,yellow:`sarı`,"yellow green":`sarı yeşil`};var BM={};BM={alpha:`Альфа`,black:`чорний`,blue:`Синій`,"blue purple":`синьо-фіолетовий`,brightness:`Яскравість`,brown:`коричневий`,"brown yellow":`коричнево-жовтий`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`блакитний`,"cyan blue":`синьо-блакитний`,dark:`темний`,gray:`сірий`,grayish:`сіруватий`,green:`Зелений`,"green cyan":`зелено-блакитний`,hue:`Тон`,light:`світлий`,lightness:`Освітленість`,magenta:`пурпуровий`,"magenta pink":`пурпурово-рожевий`,orange:`помаранчевий`,"orange yellow":`помаранчево-жовтий`,pale:`блідий`,pink:`рожевий`,"pink red":`рожево-червоний`,purple:`фіолетовий`,"purple magenta":`фіолетово-пурпуровий`,red:`Червоний`,"red orange":`червоно-помаранчевий`,saturation:`Насиченість`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, \u{43F}\u{440}\u{43E}\u{437}\u{43E}\u{440}\u{438}\u{439} \u{43D}\u{430} ${e.percentTransparent}`,"very dark":`дуже темний`,"very light":`дуже світлий`,vibrant:`яскравий`,white:`білий`,yellow:`жовтий`,"yellow green":`жовто-зелений`};var VM={};VM={alpha:`Alpha`,black:`黑色`,blue:`蓝色`,"blue purple":`蓝紫色`,brightness:`亮度`,brown:`棕色的`,"brown yellow":`棕黄色`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`蓝绿色`,"cyan blue":`青蓝色`,dark:`深色`,gray:`灰色`,grayish:`浅灰色的`,green:`绿色`,"green cyan":`绿青色`,hue:`色相`,light:`浅色`,lightness:`明亮度`,magenta:`紫红色`,"magenta pink":`紫粉色`,orange:`橙色`,"orange yellow":`橙黄色`,pale:`苍白的`,pink:`粉色`,"pink red":`粉红色`,purple:`紫色`,"purple magenta":`紫洋红色`,red:`红色`,"red orange":`红橙色`,saturation:`饱和度`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} \u{900F}\u{660E}`,"very dark":`很暗`,"very light":`很浅`,vibrant:`生机勃勃`,white:`白色`,yellow:`黄色`,"yellow green":`黄色/绿色`};var HM={};HM={alpha:`Alpha`,black:`黑`,blue:`藍色`,"blue purple":`藍紫`,brightness:`亮度`,brown:`棕`,"brown yellow":`棕黃`,colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:`青`,"cyan blue":`青藍`,dark:`暗`,gray:`灰`,grayish:`偏灰`,green:`綠色`,"green cyan":`青綠`,hue:`色相`,light:`淺`,lightness:`明亮`,magenta:`洋紅`,"magenta pink":`淺洋紅`,orange:`橙`,"orange yellow":`橙黃`,pale:`淡`,pink:`粉紅`,"pink red":`粉紅`,purple:`紫`,"purple magenta":`紫洋紅`,red:`紅色`,"red orange":`橙紅`,saturation:`飽和度`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} \u{900F}\u{660E}`,"very dark":`很暗`,"very light":`很淺`,vibrant:`鮮豔`,white:`白`,yellow:`黃`,"yellow green":`黃綠`};var UM={};UM={"ar-AE":lM,"bg-BG":uM,"cs-CZ":dM,"da-DK":fM,"de-DE":pM,"el-GR":mM,"en-US":hM,"es-ES":gM,"et-EE":_M,"fi-FI":vM,"fr-FR":yM,"he-IL":bM,"hr-HR":xM,"hu-HU":SM,"it-IT":CM,"ja-JP":wM,"ko-KR":TM,"lt-LT":EM,"lv-LV":DM,"nb-NO":OM,"nl-NL":kM,"pl-PL":AM,"pt-BR":jM,"pt-PT":MM,"ro-RO":NM,"ru-RU":PM,"sk-SK":FM,"sl-SI":IM,"sr-SP":LM,"sv-SE":RM,"tr-TR":zM,"uk-UA":BM,"zh-CN":VM,"zh-TW":HM};function Ste(e){return e&&e.__esModule?e.default:e}var WM=new cT(Ste(UM));function GM(e){let t=$M.parse(e)||tN.parse(e)||rN.parse(e);if(t)return t;throw Error(`Invalid color value: `+e)}function KM(e){return typeof e==`string`?GM(e):e}function qM(e){return e===360?e:(e%360+360)%360}var JM=.68,Cte=.85,YM=.55,XM=.001,ZM=[[0,`pink`],[15,`red`],[48,`orange`],[94,`yellow`],[135,`green`],[175,`cyan`],[264,`blue`],[284,`purple`],[320,`magenta`],[349,`pink`]],QM=class{toHexInt(){return this.toFormat(`rgb`).toHexInt()}getChannelValue(e){if(e in this)return this[e];throw Error(`Unsupported color channel: `+e)}withChannelValue(e,t){if(e in this){let n=this.clone();return n[e]=t,n}throw Error(`Unsupported color channel: `+e)}getChannelName(e,t){return(cT.getGlobalDictionaryForPackage(`@react-stately/color`)||WM).getStringForLocale(e,t)}getColorSpaceAxes(e){let{xChannel:t,yChannel:n}=e,r=t||this.getColorChannels().find(e=>e!==n),i=n||this.getColorChannels().find(e=>e!==r);return{xChannel:r,yChannel:i,zChannel:this.getColorChannels().find(e=>e!==r&&e!==i)}}getColorName(e){let[t,n,r]=iN(this),i=cT.getGlobalDictionaryForPackage(`@react-stately/color`)||WM;if(t>.999)return i.getStringForLocale(`white`,e);if(t<.001)return i.getStringForLocale(`black`,e);let a;[a,t]=this.getOklchHue(t,n,r,e);let o=``,s=``;n<=.1&&n>=XM?s=t>=.7?`pale`:`grayish`:n>=.15&&(s=`vibrant`),t<.3?o=`very dark`:t<YM?o=`dark`:t<.7||(o=t<.85?`light`:`very light`),s&&=i.getStringForLocale(s,e),o&&=i.getStringForLocale(o,e);let c=this.getChannelValue(`alpha`),l=new dT(e,i);if(c<1){let t=new ED(e,{style:`percent`}).format(1-c);return l.format(`transparentColorName`,{lightness:o,chroma:s,hue:a,percentTransparent:t}).replace(/\s+/g,` `).trim()}return l.format(`colorName`,{lightness:o,chroma:s,hue:a}).replace(/\s+/g,` `).trim()}getOklchHue(e,t,n,r){let i=cT.getGlobalDictionaryForPackage(`@react-stately/color`)||WM;if(t<XM)return[i.getStringForLocale(`gray`,r),e];for(let t=0;t<ZM.length;t++){let[a,o]=ZM[t],[s,c]=ZM[t+1]||[360,`pink`];if(n>=a&&n<s)return o===`orange`&&(e<JM?o=`brown`:e=e-JM+YM),n>a+(s-a)/2&&o!==c?o=`${o} ${c}`:o===`yellow`&&e<Cte&&(o=`yellow green`),[i.getStringForLocale(o,r).toLocaleLowerCase(r),e]}throw Error(`Unexpected hue`)}getHueName(e){let[t,n,r]=iN(this),[i]=this.getOklchHue(t,n,r,e);return i}},$M=class e extends QM{constructor(e,t,n,r){super(),this.red=e,this.green=t,this.blue=n,this.alpha=r}static parse(t){let n=[];if(/^#[\da-f]+$/i.test(t)&&[4,5,7,9].includes(t.length)){let e=(t.length<6?t.replace(/[^#]/gi,`$&$&`):t).slice(1).split(``);for(;e.length>0;)n.push(parseInt(e.splice(0,2).join(``),16));n[3]=n[3]===void 0?void 0:n[3]/255}let r=t.match(/^rgba?\((.*)\)$/);if(r?.[1]){let e=r[1].split(`,`).map(e=>e.trim());if(e.some(e=>e===``||!Number.isFinite(Number(e))))return;n=e.map((e,t)=>HD(Number(e),0,t<3?255:1))}if(n[0]!==void 0&&n[1]!==void 0&&n[2]!==void 0)return n.length<3?void 0:new e(n[0],n[1],n[2],n[3]??1)}toString(e=`css`){switch(e){case`hex`:return`#`+(this.red.toString(16).padStart(2,`0`)+this.green.toString(16).padStart(2,`0`)+this.blue.toString(16).padStart(2,`0`)).toUpperCase();case`hexa`:return`#`+(this.red.toString(16).padStart(2,`0`)+this.green.toString(16).padStart(2,`0`)+this.blue.toString(16).padStart(2,`0`)+Math.round(this.alpha*255).toString(16).padStart(2,`0`)).toUpperCase();case`rgb`:return`rgb(${this.red}, ${this.green}, ${this.blue})`;case`css`:case`rgba`:return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case`hex`:case`hexa`:case`rgb`:case`rgba`:return this;case`hsb`:case`hsba`:return this.toHSB();case`hsl`:case`hsla`:return this.toHSL();default:throw Error(`Unsupported color conversion: rgb -> `+e)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){let e=this.red/255,t=this.green/255,n=this.blue/255,r=Math.min(e,t,n),i=Math.max(e,t,n),a=i-r,o=i===0?0:a/i,s=0;if(a!==0){switch(i){case e:s=(t-n)/a+(t<n?6:0);break;case t:s=(n-e)/a+2;break;case n:s=(e-t)/a+4}s/=6}return new tN(GD(s*360,2),GD(o*100,2),GD(i*100,2),this.alpha)}toHSL(){let e=this.red/255,t=this.green/255,n=this.blue/255,r=Math.min(e,t,n),i=Math.max(e,t,n),a=(i+r)/2,o=i-r,s,c;if(o===0)s=c=0;else{switch(c=o/(a<.5?i+r:2-i-r),i){case e:s=(t-n)/o+(t<n?6:0);break;case t:s=(n-e)/o+2;break;case n:default:s=(e-t)/o+4}s/=6}return new rN(GD(s*360,2),GD(c*100,2),GD(a*100,2),this.alpha)}clone(){return new e(this.red,this.green,this.blue,this.alpha)}getChannelRange(e){switch(e){case`red`:case`green`:case`blue`:return{minValue:0,maxValue:255,step:1,pageSize:17};case`alpha`:return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw Error(`Unknown color channel: `+e)}}getChannelFormatOptions(e){switch(e){case`red`:case`green`:case`blue`:return{style:`decimal`};case`alpha`:return{style:`percent`};default:throw Error(`Unknown color channel: `+e)}}formatChannelValue(e,t){let n=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return new ED(t,n).format(r)}getColorSpace(){return`rgb`}static{this.colorChannels=[`red`,`green`,`blue`]}getColorChannels(){return e.colorChannels}},eN=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,tN=class e extends QM{constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.brightness=n,this.alpha=r}static parse(t){let n;if(n=t.match(eN)){let[t,r,i,a]=(n[1]??n[2]).split(`,`).map(e=>Number(e.trim().replace(`%`,``)));return new e(qM(t),HD(r,0,100),HD(i,0,100),HD(a??1,0,1))}}toString(e=`css`){switch(e){case`css`:return this.toHSL().toString(`css`);case`hex`:return this.toRGB().toString(`hex`);case`hexa`:return this.toRGB().toString(`hexa`);case`hsb`:return`hsb(${this.hue}, ${GD(this.saturation,2)}%, ${GD(this.brightness,2)}%)`;case`hsba`:return`hsba(${this.hue}, ${GD(this.saturation,2)}%, ${GD(this.brightness,2)}%, ${this.alpha})`;default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case`hsb`:case`hsba`:return this;case`hsl`:case`hsla`:return this.toHSL();case`rgb`:case`rgba`:return this.toRGB();default:throw Error(`Unsupported color conversion: hsb -> `+e)}}toHSL(){let e=this.saturation/100,t=this.brightness/100,n=t*(1-e/2);return e=n===0||n===1?0:(t-n)/Math.min(n,1-n),new rN(GD(this.hue,2),GD(e*100,2),GD(n*100,2),this.alpha)}toRGB(){let e=this.hue,t=this.saturation/100,n=this.brightness/100,r=(r,i=(r+e/60)%6)=>n-t*n*Math.max(Math.min(i,4-i,1),0);return new $M(Math.round(r(5)*255),Math.round(r(3)*255),Math.round(r(1)*255),this.alpha)}clone(){return new e(this.hue,this.saturation,this.brightness,this.alpha)}getChannelRange(e){switch(e){case`hue`:return{minValue:0,maxValue:360,step:1,pageSize:15};case`saturation`:case`brightness`:return{minValue:0,maxValue:100,step:1,pageSize:10};case`alpha`:return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw Error(`Unknown color channel: `+e)}}getChannelFormatOptions(e){switch(e){case`hue`:return{style:`unit`,unit:`degree`,unitDisplay:`narrow`};case`saturation`:case`brightness`:case`alpha`:return{style:`percent`};default:throw Error(`Unknown color channel: `+e)}}formatChannelValue(e,t){let n=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return(e===`saturation`||e===`brightness`)&&(r/=100),new ED(t,n).format(r)}getColorSpace(){return`hsb`}static{this.colorChannels=[`hue`,`saturation`,`brightness`]}getColorChannels(){return e.colorChannels}},nN=/hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsla\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,rN=class e extends QM{constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.lightness=n,this.alpha=r}static parse(t){let n;if(n=t.match(nN)){let[t,r,i,a]=(n[1]??n[2]).split(`,`).map(e=>Number(e.trim().replace(`%`,``)));return new e(qM(t),HD(r,0,100),HD(i,0,100),HD(a??1,0,1))}}toString(e=`css`){switch(e){case`hex`:return this.toRGB().toString(`hex`);case`hexa`:return this.toRGB().toString(`hexa`);case`hsl`:return`hsl(${this.hue}, ${GD(this.saturation,2)}%, ${GD(this.lightness,2)}%)`;case`css`:case`hsla`:return`hsla(${this.hue}, ${GD(this.saturation,2)}%, ${GD(this.lightness,2)}%, ${this.alpha})`;default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case`hsl`:case`hsla`:return this;case`hsb`:case`hsba`:return this.toHSB();case`rgb`:case`rgba`:return this.toRGB();default:throw Error(`Unsupported color conversion: hsl -> `+e)}}toHSB(){let e=this.saturation/100,t=this.lightness/100,n=t+e*Math.min(t,1-t);return e=n===0?0:2*(1-t/n),new tN(GD(this.hue,2),GD(e*100,2),GD(n*100,2),this.alpha)}toRGB(){let e=this.hue,t=this.saturation/100,n=this.lightness/100,r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return new $M(Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255),this.alpha)}clone(){return new e(this.hue,this.saturation,this.lightness,this.alpha)}getChannelRange(e){switch(e){case`hue`:return{minValue:0,maxValue:360,step:1,pageSize:15};case`saturation`:case`lightness`:return{minValue:0,maxValue:100,step:1,pageSize:10};case`alpha`:return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw Error(`Unknown color channel: `+e)}}getChannelFormatOptions(e){switch(e){case`hue`:return{style:`unit`,unit:`degree`,unitDisplay:`narrow`};case`saturation`:case`lightness`:case`alpha`:return{style:`percent`};default:throw Error(`Unknown color channel: `+e)}}formatChannelValue(e,t){let n=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return(e===`saturation`||e===`lightness`)&&(r/=100),new ED(t,n).format(r)}getColorSpace(){return`hsl`}static{this.colorChannels=[`hue`,`saturation`,`lightness`]}getColorChannels(){return e.colorChannels}};function iN(e){let t=e.toFormat(`rgb`),n=t.getChannelValue(`red`)/255,r=t.getChannelValue(`green`)/255,i=t.getChannelValue(`blue`)/255;[n,r,i]=oN(n,r,i);let[a,o,s]=cN(n,r,i),[c,l,u]=lN(a,o,s);return aN(c,l,u)}function aN(e,t,n){var r=Math.atan2(n,t)*180/Math.PI;return[e,Math.sqrt(t**2+n**2),r>=0?r:r+360]}function oN(e,t,n){return[sN(e),sN(t),sN(n)]}function sN(e){let t=e<0?-1:1,n=Math.abs(e);return n<=.04045?e/12.92:t*((n+.055)/1.055)**2.4}function cN(e,t,n){return uN([506752/1228815,87881/245763,12673/70218,87098/409605,175762/245763,12673/175545,7918/409605,87881/737289,1001167/1053270],e,t,n)}function lN(e,t,n){let r=[.819022437996703,.3619062600528904,-.1288737815209879,.0329836539323885,.9292868615863434,.0361446663506424,.0481771893596242,.2642395317527308,.6335478284694309],i=[.210454268309314,.7936177747023054,-.0040720430116193,1.9779985324311684,-2.42859224204858,.450593709617411,.0259040424655478,.7827717124575296,-.8086757549230774],[a,o,s]=uN(r,e,t,n);return uN(i,Math.cbrt(a),Math.cbrt(o),Math.cbrt(s))}function uN(e,t,n,r){return[e[0]*t+e[1]*n+e[2]*r,e[3]*t+e[4]*n+e[5]*r,e[6]*t+e[7]*n+e[8]*r]}var dN=e=>[0,60,120,180,240,300,360].map(t=>e.withChannelValue(`hue`,t).toString(`css`)).join(`, `),fN=e=>`${e.withChannelValue(`saturation`,0)}, transparent`,pN={hue:dN,saturation:fN,lightness:()=>`black, transparent, white`},mN={hue:dN,saturation:fN,brightness:()=>`black, transparent`};function hN({direction:e,state:t,zChannel:n,xChannel:r,yChannel:i}){return(0,x.useMemo)(()=>{let a=e===`rtl`?`left`:`right`,o={},s=t.value.getChannelValue(n);switch(t.value.getColorSpace()){case`rgb`:{let e=GM(`rgb(0, 0, 0)`);o={background:[`linear-gradient(to ${a}, ${e.withChannelValue(r,0)}, ${e.withChannelValue(r,255)})`,`linear-gradient(to top, ${e.withChannelValue(i,0)}, ${e.withChannelValue(i,255)})`,e.withChannelValue(n,s)].join(`,`),backgroundBlendMode:`screen`};break}case`hsl`:{let e=t.value.getColorChannels(),i=GM(`hsl(0, 100%, 50%)`).withChannelValue(n,s),c=e.filter(e=>e!==n).map(e=>`linear-gradient(to ${e===r?a:`top`}, ${pN[e](i)})`).reverse();n===`hue`&&c.push(i.toString(`css`)),o={background:c.join(`, `)};break}case`hsb`:{let e=t.value.getColorChannels(),i=GM(`hsb(0, 100%, 100%)`).withChannelValue(n,s),c=e.filter(e=>e!==n).map(e=>`linear-gradient(to ${e===r?a:`top`}, ${mN[e](i)})`).reverse();n===`hue`&&c.push(i.toString(`css`)),o={background:c.join(`, `)};break}}let{x:c,y:l}=t.getThumbPosition();e===`rtl`&&(c=1-c);let u={forcedColorAdjust:`none`};return{colorAreaStyleProps:{style:{position:`relative`,touchAction:`none`,...u,...o}},thumbStyleProps:{style:{position:`absolute`,left:`${c*100}%`,top:`${l*100}%`,transform:`translate(-50%, -50%)`,touchAction:`none`,...u}}}},[e,t,n,r,i])}function gN(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=(0,x.useRef)({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:o}=ZE(),s=Kw((0,x.useCallback)((e,r,a,o)=>{(a!==0||o!==0)&&(i.current.didMove||(i.current.didMove=!0,t?.({type:`movestart`,pointerType:r,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})),n?.({type:`move`,pointerType:r,deltaX:a,deltaY:o,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))},[t,n,i])),c=Kw((0,x.useCallback)((e,t)=>{qE(),i.current.didMove&&r?.({type:`moveend`,pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})},[r,i]));return{moveProps:(0,x.useMemo)(()=>{let e={},t=()=>{KE(),i.current.didMove=!1};{let n=e=>{if(e.pointerId===i.current.id){let t=e.pointerType||`mouse`;s(e,t,e.pageX-(i.current.lastPosition?.pageX??0),e.pageY-(i.current.lastPosition?.pageY??0)),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}},r=e=>{if(e.pointerId===i.current.id){let t=e.pointerType||`mouse`;c(e,t),i.current.id=null;let a=AS(K(e));o(a,`pointermove`,n,!1),o(a,`pointerup`,r,!1),o(a,`pointercancel`,r,!1)}};e.onPointerDown=e=>{if(e.button===0&&i.current.id==null){t(),e.stopPropagation(),e.preventDefault(),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY},i.current.id=e.pointerId;let o=AS(K(e));a(o,`pointermove`,n,!1),a(o,`pointerup`,r,!1),a(o,`pointercancel`,r,!1)}}}let n=(e,n,r)=>{t(),s(e,`keyboard`,n,r),c(e,`keyboard`)};return e.onKeyDown=e=>{switch(e.key){case`Left`:case`ArrowLeft`:e.preventDefault(),e.stopPropagation(),n(e,-1,0);break;case`Right`:case`ArrowRight`:e.preventDefault(),e.stopPropagation(),n(e,1,0);break;case`Up`:case`ArrowUp`:e.preventDefault(),e.stopPropagation(),n(e,0,-1);break;case`Down`:case`ArrowDown`:e.preventDefault(),e.stopPropagation(),n(e,0,1)}},e},[a,o,i])}}function _N(e){return e&&e.__esModule?e.default:e}function vN(e,t){let{isDisabled:n,inputXRef:r,inputYRef:i,containerRef:a,"aria-label":o,xName:s,yName:c,form:l}=e,u=hT(_N(cM),`@react-aria/color`),{addGlobalListener:d,removeGlobalListener:f}=ZE(),{direction:p,locale:m}=iT(),[h,g]=(0,x.useState)(null),_=(0,x.useCallback)((e=r)=>{e.current&&qS(e.current)},[r]);cj(r,t.defaultValue,t.setValue);let[v,y]=(0,x.useState)(!1),[b,S]=(0,x.useState)(!1),{xChannel:C,yChannel:w,zChannel:T}=t.channels,E=t.xChannelStep,D=t.yChannelStep,O=(0,x.useRef)(null),k=(e,n,r)=>{t.setDragging(!0),y(!0),e(),t.setDragging(!1),_(n),g(r)},{keyboardProps:A}=oE({shortcuts:{PageUp:()=>k(()=>{t.incrementY(t.yChannelPageStep)},i,`y`),PageDown:()=>k(()=>{t.decrementY(t.yChannelPageStep)},i,`y`),Home:()=>k(()=>{p===`rtl`?t.incrementX(t.xChannelPageStep):t.decrementX(t.xChannelPageStep)},r,`x`),End:()=>k(()=>{p===`rtl`?t.decrementX(t.xChannelPageStep):t.incrementX(t.xChannelPageStep)},r,`x`)},allowRepeats:!0}),j={onMoveStart(){O.current=null,t.setDragging(!0)},onMove({deltaX:e,deltaY:n,pointerType:r,shiftKey:i}){let{incrementX:o,decrementX:s,incrementY:c,decrementY:l,xChannelPageStep:u,xChannelStep:d,yChannelPageStep:f,yChannelStep:m,getThumbPosition:_,setColorFromPoint:v}=t;O.current??=_();let{width:b,height:x}=a.current?.getBoundingClientRect()||{width:0,height:0},S=e!==0||n!==0;if(r===`keyboard`){let t=i&&u>d?u:d,r=i&&f>m?f:m;e>0&&p===`ltr`||e<0&&p===`rtl`?o(t):e<0&&p===`ltr`||e>0&&p===`rtl`?s(t):n>0?l(r):n<0&&c(r),y(S),h=S&&Math.abs(n)>Math.abs(e)?`y`:`x`,g(h)}else O.current.x+=(p===`rtl`?-1:1)*e/b,O.current.y+=n/x,v(O.current.x,O.current.y)},onMoveEnd(){F.current=!1,t.setDragging(!1),_(h===`x`?r:i)}},{moveProps:M}=gN(j),{focusWithinProps:N}=dD({onFocusWithinChange:e=>{e||(y(!1),S(!1))}}),P=(0,x.useRef)(void 0),F=(0,x.useRef)(!1),{moveProps:ee}=gN({onMoveStart(){F.current&&j.onMoveStart()},onMove(e){F.current&&j.onMove(e)},onMoveEnd(){F.current&&j.onMoveEnd()}}),I=e=>{t.isDragging||(P.current=e,y(!1),_(),t.setDragging(!0),typeof PointerEvent<`u`?d(window,`pointerup`,te,!1):(d(window,`mouseup`,te,!1),d(window,`touchend`,te,!1)))},te=e=>{(e.pointerId??e.changedTouches?.[0].identifier)===P.current&&(y(!1),_(),t.setDragging(!1),P.current=void 0,F.current=!1,typeof PointerEvent<`u`?f(window,`pointerup`,te,!1):(f(window,`mouseup`,te,!1),f(window,`touchend`,te,!1)))},ne=(e,n,r,i)=>{let a=e.getBoundingClientRect(),{width:o,height:s}=a,c=(r-a.x)/o,l=(i-a.y)/s;p===`rtl`&&(c=1-c),c>=0&&c<=1&&l>=0&&l<=1&&!t.isDragging&&P.current===void 0&&(F.current=!0,y(!1),P.current=n,t.setColorFromPoint(c,l),_(),t.setDragging(!0),typeof PointerEvent<`u`?d(window,`pointerup`,re,!1):(d(window,`mouseup`,re,!1),d(window,`touchend`,re,!1)))},re=e=>{let n=e.pointerId??e.changedTouches?.[0].identifier;F.current&&n===P.current&&(F.current=!1,y(!1),P.current=void 0,t.setDragging(!1),_(),typeof PointerEvent<`u`?f(window,`pointerup`,re,!1):(f(window,`mouseup`,re,!1),f(window,`touchend`,re,!1)))},ie=n?{}:W({...typeof PointerEvent<`u`?{onPointerDown:e=>{e.pointerType===`mouse`&&(e.button!==0||e.altKey||e.ctrlKey||e.metaKey)||ne(e.currentTarget,e.pointerId,e.clientX,e.clientY)}}:{onMouseDown:e=>{e.button!==0||e.altKey||e.ctrlKey||e.metaKey||ne(e.currentTarget,void 0,e.clientX,e.clientY)},onTouchStart:e=>{ne(e.currentTarget,e.changedTouches[0].identifier,e.changedTouches[0].clientX,e.changedTouches[0].clientY)}}},ee),ae=n?{}:W({...typeof PointerEvent<`u`?{onPointerDown:e=>{e.pointerType===`mouse`&&(e.button!==0||e.altKey||e.ctrlKey||e.metaKey)||I(e.pointerId)}}:{onMouseDown:e=>{e.button!==0||e.altKey||e.ctrlKey||e.metaKey||I(void 0)},onTouchStart:e=>{I(e.changedTouches[0].identifier)}}},N,A,M),{focusProps:oe}=KT({onFocus:()=>{g(`x`)}}),{focusProps:se}=KT({onFocus:()=>{g(`y`)}}),ce=e=>{let{target:n}=e;S(!0),n===r.current?t.setXValue(parseFloat(n.value)):n===i.current&&t.setYValue(parseFloat(n.value))},le=hC()||yC(),ue=t.getDisplayColor(),de=(0,x.useCallback)(e=>`${b||v?u.format(`colorNameAndValue`,{name:ue.getChannelName(e,m),value:ue.formatChannelValue(e,m)}):[u.format(`colorNameAndValue`,{name:ue.getChannelName(e,m),value:ue.formatChannelValue(e,m)}),u.format(`colorNameAndValue`,{name:ue.getChannelName(e===w?C:w,m),value:ue.formatChannelValue(e===w?C:w,m)}),u.format(`colorNameAndValue`,{name:ue.getChannelName(T,m),value:ue.formatChannelValue(T,m)})].join(`, `)}, ${ue.getColorName(m)}`,[m,ue,u,b,v,C,w,T]),fe=u.format(`colorPicker`),pe=Jw({...e,"aria-label":o?u.format(`colorInputLabel`,{label:o,channelLabel:fe}):fe}),L=Jw({...e,"aria-label":o?u.format(`colorInputLabel`,{label:o,channelLabel:fe}):fe}),me=Jw({...e,"aria-label":o?`${o}, ${fe}`:void 0},le?fe:void 0),he=u.format(`twoDimensionalSlider`),{visuallyHiddenProps:ge}=HA({style:{opacity:`0.0001`,width:`100%`,height:`100%`,pointerEvents:`none`}}),{colorAreaStyleProps:_e,thumbStyleProps:ve}=hN({direction:p,state:t,xChannel:C,yChannel:w,zChannel:T});return{colorAreaProps:{...me,...ie,..._e,role:`group`},thumbProps:{...ae,...ve,role:`presentation`},xInputProps:{...pe,...ge,...oe,type:`range`,min:t.value.getChannelRange(C).minValue,max:t.value.getChannelRange(C).maxValue,step:E,"aria-roledescription":he,"aria-valuetext":de(C),"aria-orientation":`horizontal`,"aria-describedby":e[`aria-describedby`],"aria-details":e[`aria-details`],disabled:n,value:t.value.getChannelValue(C),name:s,form:l,tabIndex:le||!h||h===`x`?void 0:-1,"aria-hidden":le||!h||h===`x`||v?void 0:`true`,onChange:ce},yInputProps:{...L,...ge,...se,type:`range`,min:t.value.getChannelRange(w).minValue,max:t.value.getChannelRange(w).maxValue,step:D,"aria-roledescription":he,"aria-valuetext":de(w),"aria-orientation":`vertical`,"aria-describedby":e[`aria-describedby`],"aria-details":e[`aria-details`],disabled:n,value:t.value.getChannelValue(w),name:c,form:l,tabIndex:le||h===`y`?void 0:-1,"aria-hidden":le||h===`y`||v?void 0:`true`,onChange:ce}}}var yN=GM(`#ffffff`);function bN(e){let{value:t,defaultValue:n,colorSpace:r,xChannel:i,yChannel:a,onChange:o,onChangeEnd:s}=e;!t&&!n&&(n=yN),t&&=KM(t),n&&=KM(n);let[c,l]=yT(t,n,o),[u]=(0,x.useState)(c),d=(0,x.useMemo)(()=>r&&c?c.toFormat(r):c,[c,r]),f=(0,x.useRef)(d),p=e=>{f.current=e,l(e)},m=(0,x.useMemo)(()=>d.getColorSpaceAxes({xChannel:i,yChannel:a}),[d,i,a]),h=d.getChannelRange(m.xChannel),g=d.getChannelRange(m.yChannel),{minValue:_,maxValue:v,step:y,pageSize:b}=h,{minValue:S,maxValue:C,step:w,pageSize:T}=g,[E,D]=(0,x.useState)(!1),O=(0,x.useRef)(!1),k=d.getChannelValue(m.xChannel),A=d.getChannelValue(m.yChannel),j=e=>{if(e===k)return;let t=d.withChannelValue(m.xChannel,e);p(t)},M=e=>{if(e===A)return;let t=d.withChannelValue(m.yChannel,e);p(t)};return{channels:m,xChannelStep:y,yChannelStep:w,xChannelPageStep:b,yChannelPageStep:T,value:d,defaultValue:t===void 0?n:u,setValue(e){p(KM(e))},xValue:k,setXValue:j,yValue:A,setYValue:M,setColorFromPoint(e,t){let n=_+HD(e,0,1)*(v-_),r=S+(1-HD(t,0,1))*(C-S),i;n!==k&&(n=WD(n,_,v,y),i=d.withChannelValue(m.xChannel,n)),r!==A&&(r=WD(r,S,C,w),i=(i||d).withChannelValue(m.yChannel,r)),i&&p(i)},getThumbPosition(){return{x:(k-_)/(v-_),y:1-(A-S)/(C-S)}},incrementX(e=1){j(k+e>v?v:WD(k+e,_,v,y))},incrementY(e=1){M(A+e>C?C:WD(A+e,S,C,w))},decrementX(e=1){j(WD(k-e,_,v,y))},decrementY(e=1){M(WD(A-e,S,C,w))},setDragging(e){let t=O.current;O.current=e,s&&!e&&t&&s(f.current),D(e)},isDragging:E,getDisplayColor(){return d.withChannelValue(`alpha`,1)}}}var xN=(0,x.createContext)(null),SN=(0,x.createContext)(null),CN=(0,x.forwardRef)(function(e,t){[e,t]=SS(e,t,xN);let n=(0,x.useRef)(null),r=(0,x.useRef)(null),i=bN(e),{colorAreaProps:a,xInputProps:o,yInputProps:s,thumbProps:c}=vN({...e,inputXRef:n,inputYRef:r,containerRef:t},i),l=yS({...e,defaultClassName:`react-aria-ColorArea`,defaultStyle:a.style,values:{state:i,isDisabled:e.isDisabled||!1}}),u=q(e,{global:!0});return delete u.id,x.createElement(G.div,{ref:t,...W(u,a,l),slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0},x.createElement(vS,{values:[[SN,i],[Ej,{state:i,thumbProps:c,inputXRef:n,xInputProps:o,inputYRef:r,yInputProps:s,isDisabled:e.isDisabled}]]},l.children))}),wN=(0,x.createContext)({}),TN=(0,x.forwardRef)(function(e,t){[e,t]=SS(e,t,wN);let{isDisabled:n,isInvalid:r,isReadOnly:i,onHoverStart:a,onHoverChange:o,onHoverEnd:s,...c}=e;n??=!!e[`aria-disabled`]&&e[`aria-disabled`]!==`false`,r??=!!e[`aria-invalid`]&&e[`aria-invalid`]!==`false`;let{hoverProps:l,isHovered:u}=vD({onHoverStart:a,onHoverChange:o,onHoverEnd:s,isDisabled:n}),{isFocused:d,isFocusVisible:f,focusProps:p}=fD({within:!0}),m=yS({...e,values:{isHovered:u,isFocusWithin:d,isFocusVisible:f,isDisabled:n,isInvalid:r},defaultClassName:`react-aria-Group`});return x.createElement(G.div,{...W(c,p,l),...m,ref:t,role:e.role??`group`,slot:e.slot??void 0,"data-focus-within":d||void 0,"data-hovered":u||void 0,"data-focus-visible":f||void 0,"data-disabled":n||void 0,"data-invalid":r||void 0,"data-readonly":i||void 0},m.children)}),EN=(0,x.createContext)({}),DN=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i},ON=mE(function(e,t){[e,t]=SS(e,t,EN);let{hoverProps:n,isHovered:r}=vD({...e,isDisabled:e.disabled}),{isFocused:i,isFocusVisible:a,focusProps:o}=fD({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e[`aria-invalid`]&&e[`aria-invalid`]!==`false`,c=yS({...e,values:{isHovered:r,isFocused:i,isFocusVisible:a,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:`react-aria-Input`});return x.createElement(G.input,{...W(DN(e),o,n),...c,ref:t,"data-focused":i||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":a||void 0,"data-invalid":s||void 0})});function kN(e,t){let{inputElementType:n=`input`,isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,type:o=`text`,validationBehavior:s=`aria`}=e,[c,l]=yT(e.value,e.defaultValue||``,e.onChange),{focusableProps:u}=dE(e,t),d=QA({...e,value:c}),{isInvalid:f,validationErrors:p,validationDetails:m}=d.displayValidation,{labelProps:h,fieldProps:g,descriptionProps:_,errorMessageProps:v}=sj({...e,isInvalid:f,errorMessage:e.errorMessage||p}),y=q(e,{labelable:!0}),b={type:o,pattern:e.pattern},[S]=(0,x.useState)(c);return cj(t,e.defaultValue??S,l),lj(e,d,t),{labelProps:h,inputProps:W(y,n===`input`?b:void 0,{disabled:r,readOnly:a,required:i&&s===`native`,"aria-required":i&&s===`aria`||void 0,"aria-invalid":f||void 0,"aria-errormessage":e[`aria-errormessage`],"aria-activedescendant":e[`aria-activedescendant`],"aria-autocomplete":e[`aria-autocomplete`],"aria-haspopup":e[`aria-haspopup`],"aria-controls":e[`aria-controls`],value:c,onChange:e=>l(K(e).value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,enterKeyHint:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...u,...g}),descriptionProps:_,errorMessageProps:v,isInvalid:f,validationErrors:p,validationDetails:m}}function AN(){return typeof window<`u`&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges==`function`}function jN(e,t,n){let r=Kw(e=>{let r=n.current;if(!r)return;let i=null;switch(e.inputType){case`historyUndo`:case`historyRedo`:return;case`insertLineBreak`:return;case`deleteContent`:case`deleteByCut`:case`deleteByDrag`:i=r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case`deleteContentForward`:i=r.selectionEnd===r.selectionStart?r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd+1):r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case`deleteContentBackward`:i=r.selectionEnd===r.selectionStart?r.value.slice(0,r.selectionStart-1)+r.value.slice(r.selectionStart):r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case`deleteSoftLineBackward`:case`deleteHardLineBackward`:i=r.value.slice(r.selectionStart);break;default:e.data!=null&&(i=r.value.slice(0,r.selectionStart)+e.data+r.value.slice(r.selectionEnd))}i!=null&&t.validate(i)||e.preventDefault()});(0,x.useEffect)(()=>{if(!AN()||!n.current)return;let e=n.current;return e.addEventListener(`beforeinput`,r,!1),()=>{e.removeEventListener(`beforeinput`,r,!1)}},[n]);let i=AN()?null:e=>{let n=K(e).value.slice(0,K(e).selectionStart)+e.data+K(e).value.slice(K(e).selectionEnd);t.validate(n)||e.preventDefault()},{labelProps:a,inputProps:o,descriptionProps:s,errorMessageProps:c,...l}=kN(e,n),u=(0,x.useRef)(null);return{inputProps:W(o,{onBeforeInput:i,onCompositionStart(){let{value:e,selectionStart:t,selectionEnd:r}=n.current;u.current={value:e,selectionStart:t,selectionEnd:r}},onCompositionEnd(){if(n.current&&!t.validate(n.current.value)){let{value:e,selectionStart:r,selectionEnd:i}=u.current;n.current.value=e,n.current.setSelectionRange(r,i),t.setInputValue(e)}}}),labelProps:a,descriptionProps:s,errorMessageProps:c,...l}}function MN(e,t){let{onScroll:n,isDisabled:r}=e,i=(0,x.useCallback)(e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))},[n]);qw(t,`wheel`,r?void 0:i)}var NN={};NN={Empty:`فارغ`};var PN={};PN={Empty:`Изпразни`};var FN={};FN={Empty:`Prázdné`};var IN={};IN={Empty:`Tom`};var LN={};LN={Empty:`Leer`};var RN={};RN={Empty:`Άδειο`};var zN={};zN={Empty:`Empty`};var BN={};BN={Empty:`Vacío`};var VN={};VN={Empty:`Tühjenda`};var HN={};HN={Empty:`Tyhjä`};var UN={};UN={Empty:`Vide`};var WN={};WN={Empty:`ריק`};var GN={};GN={Empty:`Prazno`};var KN={};KN={Empty:`Üres`};var qN={};qN={Empty:`Vuoto`};var JN={};JN={Empty:`空`};var YN={};YN={Empty:`비어 있음`};var XN={};XN={Empty:`Tuščias`};var ZN={};ZN={Empty:`Tukšs`};var QN={};QN={Empty:`Tom`};var $N={};$N={Empty:`Leeg`};var eP={};eP={Empty:`Pusty`};var tP={};tP={Empty:`Vazio`};var nP={};nP={Empty:`Vazio`};var rP={};rP={Empty:`Gol`};var iP={};iP={Empty:`Не заполнено`};var aP={};aP={Empty:`Prázdne`};var oP={};oP={Empty:`Prazen`};var sP={};sP={Empty:`Prazno`};var cP={};cP={Empty:`Tomt`};var lP={};lP={Empty:`Boş`};var uP={};uP={Empty:`Пусто`};var dP={};dP={Empty:`空`};var fP={};fP={Empty:`空白`};var pP={};pP={"ar-AE":NN,"bg-BG":PN,"cs-CZ":FN,"da-DK":IN,"de-DE":LN,"el-GR":RN,"en-US":zN,"es-ES":BN,"et-EE":VN,"fi-FI":HN,"fr-FR":UN,"he-IL":WN,"hr-HR":GN,"hu-HU":KN,"it-IT":qN,"ja-JP":JN,"ko-KR":YN,"lt-LT":XN,"lv-LV":ZN,"nb-NO":QN,"nl-NL":$N,"pl-PL":eP,"pt-BR":tP,"pt-PT":nP,"ro-RO":rP,"ru-RU":iP,"sk-SK":aP,"sl-SI":oP,"sr-SP":sP,"sv-SE":cP,"tr-TR":lP,"uk-UA":uP,"zh-CN":dP,"zh-TW":fP};function mP(e){return e&&e.__esModule?e.default:e}var hP=()=>{};function gP(e){let t=(0,x.useRef)(void 0),{value:n,textValue:r,minValue:i,maxValue:a,isDisabled:o,isReadOnly:s,isRequired:c,onIncrement:l,onIncrementPage:u,onDecrement:d,onDecrementPage:f,onDecrementToMin:p,onIncrementToMax:m}=e,h=hT(mP(pP),`@react-aria/spinbutton`),g=(0,x.useRef)(!1),_=(0,x.useCallback)(()=>{clearTimeout(t.current),g.current=!1},[]),v=Kw(()=>{_()});(0,x.useEffect)(()=>()=>v(),[]);let{keyboardProps:y}=oE({isDisabled:o||s,shortcuts:{PageUp:()=>{if(u)u();else if(l)l();else return!1},ArrowUp:()=>{if(l)l();else return!1},PageDown:()=>{if(f)f();else if(d)d();else return!1},ArrowDown:()=>{if(d)d();else return!1},Home:()=>{if(p)p();else return!1},End:()=>{if(m)m();else return!1}},allowRepeats:!0}),b=(0,x.useRef)(!1),S=()=>{b.current=!0},C=()=>{b.current=!1},w=r===``?h.format(`Empty`):(r||`${n}`).replace(`-`,`−`);(0,x.useEffect)(()=>{b.current&&(ZD(`assertive`),XD(w,`assertive`))},[w]);let T=(0,x.useCallback)(()=>{_()},[_]),E=Kw(l??hP),D=Kw(d??hP),O=Kw(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&(E(),k(60))}),k=Kw(e=>{v(),g.current=!0,t.current=window.setTimeout(O,e)}),A=Kw(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&(D(),j(60))}),j=Kw(e=>{v(),g.current=!0,t.current=window.setTimeout(A,e)}),M=e=>{e.preventDefault()},{addGlobalListener:N,removeAllGlobalListeners:P}=ZE(),F=(0,x.useRef)(!1),[ee,I]=(0,x.useState)(null);(0,x.useEffect)(()=>{ee===`touch`?k(600):ee?k(400):ee||v()},[ee]);let[te,ne]=(0,x.useState)(null);return(0,x.useEffect)(()=>{te===`touch`?j(600):te?j(400):te||v()},[te]),{spinButtonProps:{role:`spinbutton`,"aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":w,"aria-valuemin":i,"aria-valuemax":a,"aria-disabled":o||void 0,"aria-readonly":s||void 0,"aria-required":c||void 0,...y,onFocus:S,onBlur:C},incrementButtonProps:{onPressStart:e=>{_(),e.pointerType===`touch`?(N(window,`pointercancel`,T,{capture:!0}),F.current=!1,I(`touch`)):(l?.(),I(`mouse`)),N(window,`contextmenu`,M)},onPressUp:e=>{_(),e.pointerType===`touch`&&(F.current=!0),P(),I(null)},onPressEnd:e=>{_(),e.pointerType===`touch`&&!g.current&&F.current&&l?.(),F.current=!1,I(null)},onFocus:S,onBlur:C},decrementButtonProps:{onPressStart:e=>{_(),e.pointerType===`touch`?(N(window,`pointercancel`,T,{capture:!0}),F.current=!1,ne(`touch`)):(d?.(),ne(`mouse`))},onPressUp:e=>{_(),e.pointerType===`touch`&&(F.current=!0),P(),ne(null)},onPressEnd:e=>{_(),e.pointerType===`touch`&&!g.current&&F.current&&d?.(),F.current=!1,ne(null)},onFocus:S,onBlur:C}}}function _P(e,t,n){let{isDisabled:r,isReadOnly:i,isRequired:a,isWheelDisabled:o,validationBehavior:s=`aria`,onKeyDown:c,onKeyUp:l}=e,{colorValue:u,inputValue:d,increment:f,decrement:p,incrementToMax:m,decrementToMin:h,commit:g,commitValidation:_}=t,v=dS(),{spinButtonProps:y}=gP({isDisabled:r,isReadOnly:i,isRequired:a,maxValue:16777215,minValue:0,onIncrement:f,onIncrementToMax:m,onDecrement:p,onDecrementToMin:h,value:u?u.toHexInt():void 0,textValue:u?u.toString(`hex`):void 0}),[b,S]=(0,x.useState)(!1),{focusWithinProps:C}=dD({isDisabled:r,onFocusWithinChange:S});MN({onScroll:(0,x.useCallback)(e=>{Math.abs(e.deltaY)<=Math.abs(e.deltaX)||(e.deltaY>0?f():e.deltaY<0&&p())},[p,f]),isDisabled:o||r||i||!b},n);let{keyboardProps:w}=oE({isDisabled:r||i,shortcuts:{Enter:()=>((0,vE.flushSync)(()=>{g()}),_(),{shouldPreventDefault:!1})},onKeyDown:c,onKeyUp:l}),T=e=>{t.validate(e)&&t.setInputValue(e)},{inputProps:E,...D}=jN({...e,id:v,value:d,defaultValue:`!`,validate:void 0,[ZA]:t,type:`text`,autoComplete:`off`,onChange:T,onKeyDown:void 0,onKeyUp:void 0},t,n);return cj(n,t.defaultColorValue,t.setColorValue),E=W(w,E,y,C,{role:`textbox`,"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:`off`,spellCheck:`false`,onBlur:g}),s===`native`&&(E[`aria-required`]=void 0),{inputProps:E,...D}}var vP={};vP={decrease:e=>`\u{62E}\u{641}\u{636} ${e.fieldLabel}`,increase:e=>`\u{632}\u{64A}\u{627}\u{62F}\u{629} ${e.fieldLabel}`,numberField:`حقل رقمي`};var yP={};yP={decrease:e=>`\u{41D}\u{430}\u{43C}\u{430}\u{43B}\u{44F}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{441}\u{438}\u{43B}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,numberField:`Номер на полето`};var bP={};bP={decrease:e=>`Sn\xed\u{17E}it ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}it ${e.fieldLabel}`,numberField:`Číselné pole`};var xP={};xP={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`\xd8g ${e.fieldLabel}`,numberField:`Talfelt`};var SP={};SP={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erh\xf6hen`,numberField:`Nummernfeld`};var CP={};CP={decrease:e=>`\u{39C}\u{3B5}\u{3AF}\u{3C9}\u{3C3}\u{3B7} ${e.fieldLabel}`,increase:e=>`\u{391}\u{3CD}\u{3BE}\u{3B7}\u{3C3}\u{3B7} ${e.fieldLabel}`,numberField:`Πεδίο αριθμού`};var wP={};wP={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:`Number field`};var TP={};TP={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:`Campo de número`};var EP={};EP={decrease:e=>`V\xe4henda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:`Numbri väli`};var DP={};DP={decrease:e=>`V\xe4henn\xe4 ${e.fieldLabel}`,increase:e=>`Lis\xe4\xe4 ${e.fieldLabel}`,numberField:`Numerokenttä`};var OP={};OP={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:`Champ de nombre`};var kP={};kP={decrease:e=>`\u{5D4}\u{5E7}\u{5D8}\u{5DF} ${e.fieldLabel}`,increase:e=>`\u{5D4}\u{5D2}\u{5D3}\u{5DC} ${e.fieldLabel}`,numberField:`שדה מספר`};var AP={};AP={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:`Polje broja`};var jP={};jP={decrease:e=>`${e.fieldLabel} cs\xf6kkent\xe9se`,increase:e=>`${e.fieldLabel} n\xf6vel\xe9se`,numberField:`Számmező`};var MP={};MP={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:`Campo numero`};var NP={};NP={decrease:e=>`${e.fieldLabel}\u{3092}\u{7E2E}\u{5C0F}`,increase:e=>`${e.fieldLabel}\u{3092}\u{62E1}\u{5927}`,numberField:`数値フィールド`};var PP={};PP={decrease:e=>`${e.fieldLabel} \u{AC10}\u{C18C}`,increase:e=>`${e.fieldLabel} \u{C99D}\u{AC00}`,numberField:`번호 필드`};var FP={};FP={decrease:e=>`Suma\u{17E}inti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:`Numerio laukas`};var IP={};IP={decrease:e=>`Samazin\u{101}\u{161}ana ${e.fieldLabel}`,increase:e=>`Palielin\u{101}\u{161}ana ${e.fieldLabel}`,numberField:`Skaitļu lauks`};var LP={};LP={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`\xd8k ${e.fieldLabel}`,numberField:`Tallfelt`};var RP={};RP={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:`Getalveld`};var zP={};zP={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwi\u{119}ksz ${e.fieldLabel}`,numberField:`Pole numeru`};var BP={};BP={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:`Campo de número`};var VP={};VP={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:`Campo numérico`};var HP={};HP={decrease:e=>`Sc\u{103}dere ${e.fieldLabel}`,increase:e=>`Cre\u{219}tere ${e.fieldLabel}`,numberField:`Câmp numeric`};var UP={};UP={decrease:e=>`\u{423}\u{43C}\u{435}\u{43D}\u{44C}\u{448}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{432}\u{435}\u{43B}\u{438}\u{447}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,numberField:`Числовое поле`};var WP={};WP={decrease:e=>`Zn\xed\u{17E}i\u{165} ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}i\u{165} ${e.fieldLabel}`,numberField:`Číselné pole`};var GP={};GP={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Pove\u{10D}ajte ${e.fieldLabel}`,numberField:`Številčno polje`};var KP={};KP={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:`Polje broja`};var qP={};qP={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xd6ka ${e.fieldLabel}`,numberField:`Nummerfält`};var JP={};JP={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} artt\u{131}r`,numberField:`Sayı alanı`};var YP={};YP={decrease:e=>`\u{417}\u{43C}\u{435}\u{43D}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,increase:e=>`\u{417}\u{431}\u{456}\u{43B}\u{44C}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,numberField:`Поле номера`};var XP={};XP={decrease:e=>`\u{964D}\u{4F4E} ${e.fieldLabel}`,increase:e=>`\u{63D0}\u{9AD8} ${e.fieldLabel}`,numberField:`数字字段`};var ZP={};ZP={decrease:e=>`\u{7E2E}\u{5C0F} ${e.fieldLabel}`,increase:e=>`\u{653E}\u{5927} ${e.fieldLabel}`,numberField:`數字欄位`};var QP={};QP={"ar-AE":vP,"bg-BG":yP,"cs-CZ":bP,"da-DK":xP,"de-DE":SP,"el-GR":CP,"en-US":wP,"es-ES":TP,"et-EE":EP,"fi-FI":DP,"fr-FR":OP,"he-IL":kP,"hr-HR":AP,"hu-HU":jP,"it-IT":MP,"ja-JP":NP,"ko-KR":PP,"lt-LT":FP,"lv-LV":IP,"nb-NO":LP,"nl-NL":RP,"pl-PL":zP,"pt-BR":BP,"pt-PT":VP,"ro-RO":HP,"ru-RU":UP,"sk-SK":WP,"sl-SI":GP,"sr-SP":KP,"sv-SE":qP,"tr-TR":JP,"uk-UA":YP,"zh-CN":XP,"zh-TW":ZP};function $P(e){return e&&e.__esModule?e.default:e}function eF(e,t,n){let{id:r,decrementAriaLabel:i,incrementAriaLabel:a,isDisabled:o,isReadOnly:s,isRequired:c,minValue:l,maxValue:u,autoFocus:d,label:f,formatOptions:p,onBlur:m=()=>{},onFocus:h,onFocusChange:g,onKeyDown:_,onKeyUp:v,description:y,errorMessage:b,isWheelDisabled:S,...C}=e,{increment:w,incrementToMax:T,decrement:E,decrementToMin:D,numberValue:O,inputValue:k,commit:A,commitValidation:j}=t,M=hT($P(QP),`@react-aria/numberfield`),N=(0,x.useCallback)(()=>{let e=n.current?.value??``;(0,vE.flushSync)(()=>{A()}),n.current?.value!==e&&XD(n.current?.value??``,`assertive`)},[A,n]),P=dS(r),{focusProps:F}=KT({onBlur(){N()}}),ee=VD(p),I=(0,x.useMemo)(()=>ee.resolvedOptions(),[ee]),te=VD({...p,currencySign:void 0}),{spinButtonProps:ne,incrementButtonProps:re,decrementButtonProps:ie}=gP({isDisabled:o,isReadOnly:s,isRequired:c,maxValue:u,minValue:l,onIncrement:w,onIncrementToMax:T,onDecrement:E,onDecrementToMin:D,value:O,textValue:(0,x.useMemo)(()=>isNaN(O)?``:te.format(O),[te,O])}),[ae,oe]=(0,x.useState)(!1),{focusWithinProps:se}=dD({isDisabled:o,onFocusWithinChange:oe});MN({onScroll:(0,x.useCallback)(e=>{Math.abs(e.deltaY)<=Math.abs(e.deltaX)||(e.deltaY>0?w():e.deltaY<0&&E())},[E,w]),isDisabled:S||o||s||!ae},n);let ce=(I.maximumFractionDigits??0)>0,le=t.minValue===void 0||isNaN(t.minValue)||t.minValue<0,ue=`numeric`;pC()?le?ue=`text`:ce&&(ue=`decimal`):yC()&&(le?ue=`numeric`:ce&&(ue=`decimal`));let de=e=>{t.validate(e)&&t.setInputValue(e)},fe=t=>{e.onPaste?.(t);let n=K(t);n&&(n.selectionEnd??-1)-(n.selectionStart??0)===n.value.length&&(t.preventDefault(),A(t.clipboardData?.getData?.(`text/plain`)?.trim()??``))},pe=q(e),{keyboardProps:L}=oE({isDisabled:o||s,shortcuts:{Enter:()=>((0,vE.flushSync)(()=>{A()}),j(),{shouldPreventDefault:!1})},onKeyDown:_,onKeyUp:v}),{isInvalid:me,validationErrors:he,validationDetails:ge}=t.displayValidation,{labelProps:_e,inputProps:ve,descriptionProps:ye,errorMessageProps:be}=jN({...C,...pe,name:void 0,form:void 0,label:f,autoFocus:d,isDisabled:o,isReadOnly:s,isRequired:c,validate:void 0,[ZA]:t,value:k,defaultValue:`!`,autoComplete:`off`,"aria-label":e[`aria-label`]||void 0,"aria-labelledby":e[`aria-labelledby`]||void 0,id:P,type:`text`,inputMode:ue,onChange:de,onBlur:m,onFocus:h,onFocusChange:g,onPaste:fe,description:y,errorMessage:b},t,n),xe=W(L,ve);cj(n,t.defaultNumberValue,t.setNumberValue),nF(t,e.validationBehavior,e.commitBehavior,n,t.minValue,t.maxValue,e.step,t.numberValue);let Se=W(ne,F,xe,{role:null,"aria-roledescription":hC()?null:M.format(`numberField`),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:`off`,spellCheck:`false`});e.validationBehavior===`native`&&(Se[`aria-required`]=void 0);let Ce=e=>{BS()!==n.current&&(e.pointerType===`mouse`?n.current?.focus():e.target.focus())},we=e[`aria-label`]||(typeof e.label==`string`?e.label:``),Te;we||(Te=e.label==null?e[`aria-labelledby`]:_e.id);let Ee=dS(),De=dS(),Oe=W(re,{"aria-label":a||M.format(`increase`,{fieldLabel:we}).trim(),id:Te&&!a?Ee:null,"aria-labelledby":Te&&!a?`${Ee} ${Te}`:null,"aria-controls":P,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:Ce}),ke=W(ie,{"aria-label":i||M.format(`decrease`,{fieldLabel:we}).trim(),id:Te&&!i?De:null,"aria-labelledby":Te&&!i?`${De} ${Te}`:null,"aria-controls":P,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:Ce});return{groupProps:{...se,role:`group`,"aria-disabled":o,"aria-invalid":me?`true`:void 0},labelProps:_e,inputProps:Se,incrementButtonProps:Oe,decrementButtonProps:ke,errorMessageProps:be,descriptionProps:ye,isInvalid:me,validationErrors:he,validationDetails:ge}}var tF=null;function nF(e,t,n,r,i,a,o,s){qx(()=>{let c=r.current;if(n!==`validate`||e.realtimeValidation.isInvalid||!c||c.disabled||(!tF&&typeof document<`u`&&(tF=document.createElement(`input`),tF.type=`number`),!tF))return;tF.min=i!=null&&!isNaN(i)?String(i):``,tF.max=a!=null&&!isNaN(a)?String(a):``,tF.step=o!=null&&!isNaN(o)?String(o):``,tF.value=s!=null&&!isNaN(s)?String(s):``;let l=c.validity.valid&&tF.validity.valid,u=c.validationMessage||tF.validationMessage,d={isInvalid:!l,validationErrors:u?[u]:[],validationDetails:{badInput:c.validity.badInput,customError:c.validity.customError,patternMismatch:c.validity.patternMismatch,rangeOverflow:tF.validity.rangeOverflow,rangeUnderflow:tF.validity.rangeUnderflow,stepMismatch:tF.validity.stepMismatch,tooLong:c.validity.tooLong,tooShort:c.validity.tooShort,typeMismatch:c.validity.typeMismatch,valueMissing:c.validity.valueMissing,valid:l}};e.updateValidation(d),t===`native`&&!tF.validity.valid&&c.setCustomValidity(tF.validationMessage)})}function rF(e,t,n){let{locale:r}=iT();return eF({...e,value:void 0,defaultValue:void 0,onChange:void 0,validate:void 0,"aria-label":e[`aria-label`]||(e.label||e[`aria-labelledby`]?void 0:t.colorValue.getChannelName(e.channel,r))},t,n)}function iF(e){return(0,x.useMemo)(()=>{if(typeof e==`string`)try{return GM(e)}catch{return}return e},[e])}var aF=GM(`#000000`),oF=GM(`#FFFFFF`),sF=aF.toHexInt(),cF=oF.toHexInt();function lF(e){let{value:t,defaultValue:n,onChange:r}=e,{step:i}=aF.getChannelRange(`red`),a=iF(n),[o,s]=yT(iF(t),a,r),[c]=(0,x.useState)(o),[l,u]=(0,x.useState)(()=>(t||n)&&o?o.toString(`hex`):``),d=QA({...e,value:o}),f=e=>{o&&e&&e.toHexInt()===o.toHexInt()||s(e)},[p,m]=(0,x.useState)(o);p!==o&&(u(o?o.toString(`hex`):``),m(o));let h=(0,x.useMemo)(()=>{let e;try{e=GM(l.startsWith(`#`)?l:`#${l}`)}catch{e=null}return e},[l]),g=()=>{if(!l.length){f(null),u(t===void 0||o===null?``:o.toString(`hex`));return}if(h==null){u(o?o.toString(`hex`):``);return}f(h);let e=``;o&&(e=o.toString(`hex`)),u(e),d.commitValidation()},_=()=>{let e=uF(h,i);e===o&&u(e.toString(`hex`)),f(e),d.commitValidation()},v=()=>{let e=uF(h,-i);e===o&&u(e.toString(`hex`)),f(e),d.commitValidation()},y=()=>f(oF),b=()=>f(aF),S=e=>e===``||!!e.match(/^#?[0-9a-f]{0,6}$/i)?.[0];return{...d,validate:S,colorValue:o,defaultColorValue:a??c,setColorValue:s,inputValue:l,setInputValue:u,commit:g,increment:_,incrementToMax:y,decrement:v,decrementToMin:b}}function uF(e,t){let n=e||aF,r=n.toHexInt(),i=Math.min(Math.max(r+t,sF),cF);return i!==r&&(n=GM(`#${i.toString(16).padStart(6,`0`).toUpperCase()}`)),n}function dF(e){let{minValue:t,maxValue:n,step:r,formatOptions:i,value:a,defaultValue:o=NaN,onChange:s,locale:c,isDisabled:l,isReadOnly:u,commitBehavior:d=`snap`}=e;a===null&&(a=NaN);let f=(0,x.useCallback)(e=>r===void 0||isNaN(r)?HD(e,t,n):WD(e,t,n,r),[r,t,n]);a!==void 0&&!isNaN(a)&&d===`snap`&&(a=f(a)),!isNaN(o)&&d===`snap`&&(o=f(o));let[p,m]=yT(a,isNaN(o)?NaN:o,s),[h]=(0,x.useState)(p),[g,_]=(0,x.useState)(()=>isNaN(p)?``:new ED(c,i).format(p)),v=(0,x.useMemo)(()=>new jD(c,i),[c,i]),y=(0,x.useMemo)(()=>v.getNumberingSystem(g),[v,g]),b=(0,x.useMemo)(()=>new ED(c,{...i,numberingSystem:y}),[c,i,y]),S=(0,x.useMemo)(()=>b.resolvedOptions(),[b]),C=(0,x.useCallback)(e=>isNaN(e)||e===null?``:b.format(e),[b]),w=QA({...e,value:p}),T=r!==void 0&&!isNaN(r)?r:1;S.style===`percent`&&(r===void 0||isNaN(r))&&(T=.01);let[E,D]=(0,x.useState)(p),[O,k]=(0,x.useState)(c),[A,j]=(0,x.useState)(i);Object.is(p,E)&&c===O&&fF(i,A)||(_(C(p)),D(p),k(c),j(i));let M=(0,x.useMemo)(()=>v.parse(g),[v,g]),N=e=>{let t=e===void 0?g:e,n=M;if(e!==void 0&&(n=v.parse(t)),!t.length){m(NaN),_(a===void 0?``:C(p));return}if(isNaN(n)){_(C(p));return}let r=d===`snap`?f(n):n;r=v.parse(C(r));let i=r!==p;m(r),_(C(a===void 0?r:p)),i&&w.commitValidation()},P=(e,r=0)=>{let i=M;if(isNaN(i))return WD(isNaN(r)?0:r,t,n,T);{let r=WD(i,t,n,T);return e===`+`&&r>i||e===`-`&&r<i?r:WD(pF(e,i,T),t,n,T)}},F=()=>{let e=P(`+`,t);e===p&&_(C(e)),m(e),w.commitValidation()},ee=()=>{let e=P(`-`,n);e===p&&_(C(e)),m(e),w.commitValidation()},I=()=>{n!=null&&(m(WD(n,t,n,T)),w.commitValidation())},te=()=>{t!=null&&(m(t),w.commitValidation())},ne=(0,x.useMemo)(()=>!l&&!u&&(isNaN(M)||n===void 0||isNaN(n)||WD(M,t,n,T)>M||pF(`+`,M,T)<=n),[l,u,t,n,T,M]),re=(0,x.useMemo)(()=>!l&&!u&&(isNaN(M)||t===void 0||isNaN(t)||WD(M,t,n,T)<M||pF(`-`,M,T)>=t),[l,u,t,n,T,M]),ie=e=>v.isValidPartialNumber(e,t,n);return{...w,validate:ie,increment:F,incrementToMax:I,decrement:ee,decrementToMin:te,canIncrement:ne,canDecrement:re,minValue:t,maxValue:n,numberValue:M,defaultNumberValue:isNaN(o)?h:o,setNumberValue:m,setInputValue:_,inputValue:g,commit:N}}function fF(e,t){if(e===t)return!0;if(!e||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(t[r]!==e[r])return!1;return!0}function pF(e,t,n){let r=e===`+`?t+n:t-n;if(t%1!=0||n%1!=0){let i=t.toString().split(`.`),a=n.toString().split(`.`),o=i[1]&&i[1].length||0,s=a[1]&&a[1].length||0,c=10**Math.max(o,s);t=Math.round(t*c),n=Math.round(n*c),r=e===`+`?t+n:t-n,r/=c}return r}function mF(e){let{channel:t,colorSpace:n,locale:r}=e,i=iF(e.value),a=iF(e.defaultValue),[o,s]=yT(i,a??null,e.onChange),c=hF(o,n),[l]=(0,x.useState)(o),u=a??l,d=hF(u,n),f=c.getChannelValue(t),p=c.getChannelRange(t),m=(0,x.useMemo)(()=>c.getChannelFormatOptions(t),[c,t]),h=m.style===`percent`&&p.maxValue===100?100:1;return{...dF({locale:r,value:o===null?NaN:f/h,defaultValue:u===null?NaN:d.getChannelValue(t)/h,onChange:e=>{s(Number.isNaN(e)?null:c.withChannelValue(t,e*h))},minValue:p.minValue/h,maxValue:p.maxValue/h,step:p.step/h,formatOptions:m}),colorValue:c,defaultColorValue:u,setColorValue:s}}function hF(e,t){let n=iF(`#000`);return(0,x.useMemo)(()=>{let r=e||n;return t&&r?r.toFormat(t):r},[n,e,t])}var gF=(0,x.createContext)(null),_F=(0,x.createContext)(null),vF=(0,x.forwardRef)(function(e,t){return[e,t]=SS(e,t,gF),e.channel?x.createElement(yF,{...e,channel:e.channel,forwardedRef:t}):x.createElement(bF,{...e,forwardedRef:t})});function yF(e){let{locale:t}=iT(),n=mF({...e,locale:t}),r=(0,x.useRef)(null),[i,a]=CS(!e[`aria-label`]&&!e[`aria-labelledby`]),{labelProps:o,inputProps:s,descriptionProps:c,errorMessageProps:l,...u}=rF({...wS(e),label:a,validationBehavior:e.validationBehavior??`native`},n,r);return x.createElement(x.Fragment,null,xF(e,n,e.forwardedRef,s,r,o,i,c,l,u),e.name&&x.createElement(`input`,{type:`hidden`,name:e.name,form:e.form,value:isNaN(n.numberValue)?``:n.numberValue}))}function bF(e){let t=lF({...e,validationBehavior:e.validationBehavior??`native`}),n=(0,x.useRef)(null),[r,i]=CS(!e[`aria-label`]&&!e[`aria-labelledby`]),{labelProps:a,inputProps:o,descriptionProps:s,errorMessageProps:c,...l}=_P({...wS(e),label:i,validationBehavior:e.validationBehavior??`native`},t,n);return xF(e,t,e.forwardedRef,o,n,a,r,s,c,l)}function xF(e,t,n,r,i,a,o,s,c,l){let u=yS({...e,values:{state:t,channel:e.channel||`hex`,isDisabled:e.isDisabled||!1,isInvalid:l.isInvalid||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:`react-aria-ColorField`}),d=q(e,{global:!0});return delete d.id,x.createElement(vS,{values:[[_F,t],[EN,{...r,ref:i}],[xD,{...a,ref:o}],[wN,{role:`presentation`,isInvalid:l.isInvalid,isDisabled:e.isDisabled||!1}],[oO,{slots:{description:s,errorMessage:c}}],[WA,l]]},x.createElement(G.div,{...d,...u,ref:n,slot:e.slot||void 0,"data-channel":e.channel||`hex`,"data-disabled":e.isDisabled||void 0,"data-invalid":l.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0}))}var SF=new WeakMap;function CF(e,t){let n=SF.get(e);if(!n)throw Error(`Unknown slider state`);return`${n.id}-${t}`}function wF(e,t,n){let{labelProps:r,fieldProps:i}=CD(e),a=e.orientation===`vertical`;SF.set(t,{id:r.id??i.id,"aria-describedby":e[`aria-describedby`],"aria-details":e[`aria-details`]});let{direction:o}=iT(),{addGlobalListener:s,removeGlobalListener:c}=ZE(),l=(0,x.useRef)(null),u=o===`rtl`,d=(0,x.useRef)(null),{moveProps:f}=gN({onMoveStart(){d.current=null},onMove({deltaX:e,deltaY:r}){if(!n.current)return;let{height:i,width:o}=n.current.getBoundingClientRect(),s=a?i:o;d.current==null&&l.current!=null&&(d.current=t.getThumbPercent(l.current)*s);let c=a?r:e;if((a||u)&&(c=-c),d.current+=c,l.current!=null&&n.current){let e=HD(d.current/s,0,1);t.setThumbPercent(l.current,e)}},onMoveEnd(){l.current!=null&&(t.setThumbDragging(l.current,!1),l.current=null)}}),p=(0,x.useRef)(void 0),m=(r,i,c,u)=>{if(n.current&&!e.isDisabled&&t.values.every((e,n)=>!t.isThumbDragging(n))){let{height:e,width:d,top:f,left:m}=n.current.getBoundingClientRect(),g=a?e:d,_=((a?u:c)-(a?f:m))/g;(o===`rtl`||a)&&(_=1-_);let v=t.getPercentValue(_),y,b=t.values.findIndex(e=>v-e<0);if(b===0)y=b;else if(b===-1)y=t.values.length-1;else{let e=t.values[b-1],n=t.values[b];y=Math.abs(e-v)<Math.abs(n-v)?b-1:b}y>=0&&t.isThumbEditable(y)?(r.preventDefault(),l.current=y,t.setFocusedThumb(y),p.current=i,t.setThumbDragging(l.current,!0),t.setThumbValue(y,v),s(window,`mouseup`,h,!1),s(window,`touchend`,h,!1),s(window,`pointerup`,h,!1)):l.current=null}},h=e=>{(e.pointerId??e.changedTouches?.[0].identifier)===p.current&&(l.current!=null&&(t.setThumbDragging(l.current,!1),l.current=null),c(window,`mouseup`,h,!1),c(window,`touchend`,h,!1),c(window,`pointerup`,h,!1))};return`htmlFor`in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{document.getElementById(CF(t,0))?.focus(),QC(`keyboard`)}),{labelProps:r,groupProps:{role:`group`,...i},trackProps:W({onMouseDown(e){e.button!==0||e.altKey||e.ctrlKey||e.metaKey||m(e,void 0,e.clientX,e.clientY)},onPointerDown(e){e.pointerType===`mouse`&&(e.button!==0||e.altKey||e.ctrlKey||e.metaKey)||m(e,e.pointerId,e.clientX,e.clientY)},onTouchStart(e){m(e,e.changedTouches[0].identifier,e.changedTouches[0].clientX,e.changedTouches[0].clientY)},style:{position:`relative`,touchAction:`none`}},f),outputProps:{htmlFor:t.values.map((e,n)=>CF(t,n)).join(` `),"aria-live":`off`}}}function TF(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:a,trackRef:o,inputRef:s,orientation:c=t.orientation,name:l,form:u}=e,d=e.isDisabled||t.isDisabled,f=c===`vertical`,{direction:p}=iT(),{addGlobalListener:m,removeGlobalListener:h}=ZE(),g=SF.get(t),{labelProps:_,fieldProps:v}=CD({...e,id:CF(t,n),"aria-labelledby":`${g.id} ${e[`aria-labelledby`]??``}`.trim()}),y=t.values[n],b=(0,x.useCallback)(()=>{s.current&&qS(s.current)},[s]),S=t.focusedThumb===n;(0,x.useEffect)(()=>{S&&b()},[S,b]);let C=p===`rtl`,w=(0,x.useRef)(null),T=e=>{t.setThumbDragging(n,!0),e(),t.setThumbDragging(n,!1)},{keyboardProps:E}=oE({shortcuts:{PageUp:()=>T(()=>{t.incrementThumb(n,t.pageSize)}),PageDown:()=>T(()=>{t.decrementThumb(n,t.pageSize)}),Home:()=>T(()=>{t.setThumbValue(n,t.getThumbMinValue(n))}),End:()=>T(()=>{t.setThumbValue(n,t.getThumbMaxValue(n))})},allowRepeats:!0}),{moveProps:D}=gN({onMoveStart(){w.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:e,deltaY:r,pointerType:i,shiftKey:a}){let{getThumbPercent:s,setThumbPercent:c,decrementThumb:l,incrementThumb:u,step:d,pageSize:p}=t;if(!o.current)return;let{width:m,height:h}=o.current.getBoundingClientRect(),g=f?h:m;if(w.current??=s(n)*g,i===`keyboard`)e>0&&C||e<0&&!C||r>0?l(n,a?p:d):u(n,a?p:d);else{let t=f?r:e;(f||C)&&(t=-t),w.current+=t,c(n,HD(w.current/g,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!d);let{focusableProps:O}=dE(W(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),s),k=(0,x.useRef)(void 0),A=e=>{b(),k.current=e,t.setThumbDragging(n,!0),m(window,`mouseup`,j,!1),m(window,`touchend`,j,!1),m(window,`pointerup`,j,!1)},j=e=>{(e.pointerId??e.changedTouches?.[0].identifier)===k.current&&(b(),t.setThumbDragging(n,!1),h(window,`mouseup`,j,!1),h(window,`touchend`,j,!1),h(window,`pointerup`,j,!1))},M=t.getThumbPercent(n);(f||p===`rtl`)&&(M=1-M);let N=d?{}:W(E,D,{onMouseDown:e=>{e.button!==0||e.altKey||e.ctrlKey||e.metaKey||A()},onPointerDown:e=>{e.button!==0||e.altKey||e.ctrlKey||e.metaKey||A(e.pointerId)},onTouchStart:e=>{A(e.changedTouches[0].identifier)}});return cj(s,t.defaultValues[n],e=>{t.setThumbValue(n,e)}),{inputProps:W(O,v,{type:`range`,tabIndex:d?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:y,name:l,form:u,disabled:d,"aria-orientation":c,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":a||i===`invalid`||void 0,"aria-errormessage":e[`aria-errormessage`],"aria-describedby":[g[`aria-describedby`],e[`aria-describedby`]].filter(Boolean).join(` `),"aria-details":[g[`aria-details`],e[`aria-details`]].filter(Boolean).join(` `),onChange:e=>{t.setThumbValue(n,parseFloat(K(e).value))}}),thumbProps:{...N,style:{position:`absolute`,[f?`top`:`left`]:`${M*100}%`,transform:`translate(-50%, -50%)`,touchAction:`none`}},labelProps:_,isDragging:t.isThumbDragging(n),isDisabled:d,isFocused:S}}var EF=0,DF=100,OF=1;function kF(e){let{isDisabled:t=!1,minValue:n=EF,maxValue:r=DF,numberFormatter:i,step:a=OF,orientation:o=`horizontal`}=e,s=(0,x.useMemo)(()=>{let e=(r-n)/10;return e=WD(e,0,e+a,a),Math.max(e,a)},[a,r,n]),c=(0,x.useCallback)(e=>e?.map((t,i)=>WD(t,i===0?n:e[i-1],i===e.length-1?r:e[i+1],a)),[n,r,a]),l=(0,x.useMemo)(()=>c(jF(e.value)),[e.value,c]),u=(0,x.useMemo)(()=>c(jF(e.defaultValue)??[n]),[e.defaultValue,n,c]),d=MF(e.value,e.defaultValue,e.onChange),f=MF(e.value,e.defaultValue,e.onChangeEnd),[p,m]=yT(l,u,d),[h]=(0,x.useState)(p),[g,_]=(0,x.useState)(Array(p.length).fill(!1)),v=(0,x.useRef)(Array(p.length).fill(!0)),[y,b]=(0,x.useState)(void 0),S=(0,x.useRef)(p),C=(0,x.useRef)(g),w=e=>{S.current=e,m(e)},T=e=>{C.current=e,_(e)};function E(e){return(e-n)/(r-n)}function D(e){return e===0?n:p[e-1]}function O(e){return e===p.length-1?r:p[e+1]}function k(e){return v.current[e]}function A(e,t){v.current[e]=t}function j(e,n){if(t||!k(e))return;let r=D(e),i=O(e);n=WD(n,r,i,a);let o=AF(S.current,e,n);w(o)}function M(e,n){if(t||!k(e))return;n&&(S.current=p);let r=C.current[e];C.current=AF(C.current,e,n),T(C.current),f&&r&&!C.current.some(Boolean)&&f(S.current)}let N=(0,x.useRef)(null);function P(e=p){switch(typeof e==`number`&&(e=[e]),e.length){case 0:return``;case 1:return i.format(e[0]);case 2:return i.formatRange(e[0],e[1]);default:{let t=e.map(e=>i.format(e)),n=N.current;return n&&n.resolvedOptions().locale===i.resolvedOptions().locale||(n=N.current=new Intl.ListFormat(i.resolvedOptions().locale,{type:`unit`})),n.format(t)}}}function F(e,t){j(e,I(t))}function ee(e){return Math.round((e-n)/a)*a+n}function I(e){return HD(ee(e*(r-n)+n),n,r)}function te(e,t=1){let i=Math.max(t,a);j(e,WD(p[e]+i,n,r,a))}function ne(e,t=1){let i=Math.max(t,a);j(e,WD(p[e]-i,n,r,a))}return{values:p,defaultValues:e.defaultValue===void 0?h:u,getThumbValue:e=>p[e],setThumbValue:j,setThumbPercent:F,isThumbDragging:e=>g[e],setThumbDragging:M,focusedThumb:y,setFocusedThumb:b,getThumbPercent:e=>E(p[e]),getValuePercent:E,getThumbValueLabel:e=>P(p[e]),getFormattedValue:P,getThumbMinValue:D,getThumbMaxValue:O,getPercentValue:I,isThumbEditable:k,setThumbEditable:A,incrementThumb:te,decrementThumb:ne,step:a,pageSize:s,orientation:o,isDisabled:t}}function AF(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function jF(e){if(e!=null)return Array.isArray(e)?e:[e]}function MF(e,t,n){return r=>{typeof e==`number`||typeof t==`number`?n?.(r[0]):n?.(r)}}var NF=(0,x.createContext)(null),PF=(0,x.createContext)(null),FF=(0,x.createContext)(null),IF=(0,x.forwardRef)(function(e,t){[e,t]=SS(e,t,PF);let n=(0,x.useContext)(NF),{onHoverStart:r,onHoverEnd:i,onHoverChange:a,...o}=e,{hoverProps:s,isHovered:c}=vD({onHoverStart:r,onHoverEnd:i,onHoverChange:a}),l=yS({...e,defaultClassName:`react-aria-SliderTrack`,values:{orientation:n.orientation,isDisabled:n.isDisabled,isHovered:c,state:n}});return x.createElement(G.div,{...W(o,s),...l,ref:t,"data-hovered":c||void 0,"data-orientation":n.orientation||void 0,"data-disabled":n.isDisabled||void 0})});function LF(e,t){let{trackRef:n,inputRef:r,orientation:i,channel:a,"aria-label":o,name:s,form:c}=e,{locale:l,direction:u}=iT();e.label||o||e[`aria-labelledby`]||(o=t.value.getChannelName(a,l));let{groupProps:d,trackProps:f,labelProps:p,outputProps:m}=wF({...e,"aria-label":o},t,n),{inputProps:h,thumbProps:g}=TF({index:0,orientation:i,isDisabled:e.isDisabled,name:s,form:c,trackRef:n,inputRef:r},t),_=t.getDisplayColor(),v=()=>{let e;switch(e=i===`vertical`?`top`:u===`ltr`?`right`:`left`,a){case`hue`:{let t=[0,60,120,180,240,300,360].map(e=>_.withChannelValue(`hue`,e).toString(`css`)).join(`, `);return`linear-gradient(to ${e}, ${t})`}case`lightness`:{let n=t.getThumbMinValue(0),r=t.getThumbMaxValue(0),i=_.withChannelValue(a,n).toString(`css`),o=_.withChannelValue(a,(r-n)/2).toString(`css`),s=_.withChannelValue(a,r).toString(`css`);return`linear-gradient(to ${e}, ${i}, ${o}, ${s})`}case`saturation`:case`brightness`:case`red`:case`green`:case`blue`:case`alpha`:{let n=_.withChannelValue(a,t.getThumbMinValue(0)).toString(`css`),r=_.withChannelValue(a,t.getThumbMaxValue(0)).toString(`css`);return`linear-gradient(to ${e}, ${n}, ${r})`}default:throw Error(`Unknown color channel: `+a)}},y={forcedColorAdjust:`none`};a===`hue`?h[`aria-valuetext`]+=`, ${_.getHueName(l)}`:a!==`alpha`&&(h[`aria-valuetext`]+=`, ${_.getColorName(l)}`);let{visuallyHiddenProps:b}=HA({style:{opacity:`0.0001`,width:`100%`,height:`100%`,pointerEvents:`none`}});return{trackProps:{...W(d,f),style:{...f.style,...y,background:v()}},inputProps:{...h,style:{...h.style,...b.style}},thumbProps:{...g,style:{...g.style,...y}},labelProps:p,outputProps:m}}function RF(e){let{channel:t,colorSpace:n,value:r,defaultValue:i,onChange:a,locale:o,...s}=e;if(r==null&&i==null)throw Error(`useColorSliderState requires a value or defaultValue`);r&&=KM(r),i&&=KM(i);let[c,l]=yT(r,i,a),u=(0,x.useMemo)(()=>n&&c?c.toFormat(n):c,[c,n]),[d]=(0,x.useState)(c),f=i??d,p=(0,x.useMemo)(()=>n&&f?f.toFormat(n):f,[f,n]),m=(0,x.useMemo)(()=>new Intl.NumberFormat,[]),h=kF({...u.getChannelRange(t),...s,numberFormatter:m,value:u.getChannelValue(t),defaultValue:p.getChannelValue(t),onChange(e){l(u.withChannelValue(t,e))},onChangeEnd(n){e.onChangeEnd&&e.onChangeEnd(u.withChannelValue(t,n))}}),{step:g,pageSize:_}=u.getChannelRange(t);return{...h,value:u,setValue(e){l(KM(e))},getDisplayColor(){switch(t){case`hue`:return GM(`hsl(${u.getChannelValue(`hue`)}, 100%, 50%)`);case`lightness`:case`brightness`:case`saturation`:case`red`:case`green`:case`blue`:return u.withChannelValue(`alpha`,1);case`alpha`:return u;default:throw Error(`Unknown color channel: `+t)}},getThumbValueLabel(){return u.formatChannelValue(t,o)},getFormattedValue(){return u.formatChannelValue(t,o)},step:g,pageSize:_,isDragging:h.isThumbDragging(0)}}var zF=(0,x.createContext)(null),BF=(0,x.createContext)(null),VF=(0,x.forwardRef)(function(e,t){[e,t]=SS(e,t,zF);let{locale:n}=iT(),r=RF({...e,locale:n}),i=x.useRef(null),a=x.useRef(null),[o,s]=CS(!e[`aria-label`]&&!e[`aria-labelledby`]),{trackProps:c,thumbProps:l,inputProps:u,labelProps:d,outputProps:f}=LF({...e,label:s,trackRef:i,inputRef:a},r),p=yS({...e,values:{orientation:r.orientation,isDisabled:r.isDisabled,state:r},defaultClassName:`react-aria-ColorSlider`}),m=q(e,{global:!0});return delete m.id,x.createElement(vS,{values:[[BF,r],[NF,r],[PF,{...c,ref:i}],[FF,f],[xD,{...d,ref:o,children:r.value.getChannelName(e.channel,n)}],[Ej,{state:r,thumbProps:l,inputXRef:a,xInputProps:u,isDisabled:e.isDisabled}]]},x.createElement(G.div,{...m,...p,ref:t,slot:e.slot||void 0,"data-orientation":r.orientation,"data-disabled":r.isDisabled||void 0}))});function HF(e){return e&&e.__esModule?e.default:e}function UF(e){let{color:t,colorName:n}=e,r=t||`#fff0`,i=(0,x.useMemo)(()=>typeof r==`string`?GM(r):r,[r]),{locale:a}=iT(),o=q(e,{labelable:!0}),s=hT(HF(cM),`@react-aria/color`),c=dS(e.id);return n||=i.getChannelValue(`alpha`)===0?s.format(`transparent`):i.getColorName(a),{colorSwatchProps:{...o,role:`img`,"aria-roledescription":s.format(`colorSwatch`),"aria-label":[n,e[`aria-label`]||``].filter(Boolean).join(`, `),"aria-labelledby":e[`aria-labelledby`]?`${c} ${e[`aria-labelledby`]}`:void 0,id:c,style:{backgroundColor:i.toString(`css`),forcedColorAdjust:`none`}},color:i||null}}var WF=(0,x.createContext)(null),GF=(0,x.forwardRef)(function(e,t){[e,t]=SS(e,t,WF);let{colorSwatchProps:n,color:r}=UF(e),i=yS({...e,defaultClassName:`react-aria-ColorSwatch`,defaultStyle:n.style,values:{color:r}}),a=q(e,{global:!0});return x.createElement(G.div,{...W(a,n,i),slot:e.slot||void 0,ref:t})}),KF={};KF={colorSwatchPicker:`تغييرات الألوان`,dropzoneLabel:`DropZone`,selectPlaceholder:`حدد عنصرًا`,tableResizer:`أداة تغيير الحجم`};var qF={};qF={colorSwatchPicker:`Цветови мостри`,dropzoneLabel:`DropZone`,selectPlaceholder:`Изберете предмет`,tableResizer:`Преоразмерител`};var JF={};JF={colorSwatchPicker:`Vzorky barev`,dropzoneLabel:`Místo pro přetažení`,selectPlaceholder:`Vyberte položku`,tableResizer:`Změna velikosti`};var YF={};YF={colorSwatchPicker:`Farveprøver`,dropzoneLabel:`DropZone`,selectPlaceholder:`Vælg et element`,tableResizer:`Størrelsesændring`};var XF={};XF={colorSwatchPicker:`Farbfelder`,dropzoneLabel:`Ablegebereich`,selectPlaceholder:`Element wählen`,tableResizer:`Größenanpassung`};var ZF={};ZF={colorSwatchPicker:`Χρωματικά δείγματα`,dropzoneLabel:`DropZone`,selectPlaceholder:`Επιλέξτε ένα αντικείμενο`,tableResizer:`Αλλαγή μεγέθους`};var QF={};QF={selectPlaceholder:`Select an item`,tableResizer:`Resizer`,dropzoneLabel:`DropZone`,colorSwatchPicker:`Color swatches`};var $F={};$F={colorSwatchPicker:`Muestras de colores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Seleccionar un artículo`,tableResizer:`Cambiador de tamaño`};var eI={};eI={colorSwatchPicker:`Värvinäidised`,dropzoneLabel:`DropZone`,selectPlaceholder:`Valige üksus`,tableResizer:`Suuruse muutja`};var tI={};tI={colorSwatchPicker:`Värimallit`,dropzoneLabel:`DropZone`,selectPlaceholder:`Valitse kohde`,tableResizer:`Koon muuttaja`};var nI={};nI={colorSwatchPicker:`Échantillons de couleurs`,dropzoneLabel:`DropZone`,selectPlaceholder:`Sélectionner un élément`,tableResizer:`Redimensionneur`};var rI={};rI={colorSwatchPicker:`דוגמיות צבע`,dropzoneLabel:`DropZone`,selectPlaceholder:`בחר פריט`,tableResizer:`שינוי גודל`};var iI={};iI={colorSwatchPicker:`Uzorci boja`,dropzoneLabel:`Zona spuštanja`,selectPlaceholder:`Odaberite stavku`,tableResizer:`Promjena veličine`};var aI={};aI={colorSwatchPicker:`Színtárak`,dropzoneLabel:`DropZone`,selectPlaceholder:`Válasszon ki egy elemet`,tableResizer:`Átméretező`};var oI={};oI={colorSwatchPicker:`Campioni di colore`,dropzoneLabel:`Zona di rilascio`,selectPlaceholder:`Seleziona un elemento`,tableResizer:`Ridimensionamento`};var sI={};sI={colorSwatchPicker:`カラースウォッチ`,dropzoneLabel:`ドロップゾーン`,selectPlaceholder:`項目を選択`,tableResizer:`サイズ変更ツール`};var cI={};cI={colorSwatchPicker:`색상 견본`,dropzoneLabel:`드롭 영역`,selectPlaceholder:`항목 선택`,tableResizer:`크기 조정기`};var lI={};lI={colorSwatchPicker:`Spalvų pavyzdžiai`,dropzoneLabel:`„DropZone“`,selectPlaceholder:`Pasirinkite elementą`,tableResizer:`Dydžio keitiklis`};var uI={};uI={colorSwatchPicker:`Krāsu paraugi`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izvēlēties vienumu`,tableResizer:`Izmēra mainītājs`};var dI={};dI={colorSwatchPicker:`Fargekart`,dropzoneLabel:`Droppsone`,selectPlaceholder:`Velg et element`,tableResizer:`Størrelsesendrer`};var fI={};fI={colorSwatchPicker:`kleurstalen`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecteer een item`,tableResizer:`Resizer`};var pI={};pI={colorSwatchPicker:`Próbki kolorów`,dropzoneLabel:`Strefa upuszczania`,selectPlaceholder:`Wybierz element`,tableResizer:`Zmiana rozmiaru`};var mI={};mI={colorSwatchPicker:`Amostras de cores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecione um item`,tableResizer:`Redimensionador`};var hI={};hI={colorSwatchPicker:`Amostras de cores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecione um item`,tableResizer:`Redimensionador`};var gI={};gI={colorSwatchPicker:`Specimene de culoare`,dropzoneLabel:`Zonă de plasare`,selectPlaceholder:`Selectați un element`,tableResizer:`Instrument de redimensionare`};var _I={};_I={colorSwatchPicker:`Цветовые образцы`,dropzoneLabel:`DropZone`,selectPlaceholder:`Выберите элемент`,tableResizer:`Средство изменения размера`};var vI={};vI={colorSwatchPicker:`Vzorkovníky farieb`,dropzoneLabel:`DropZone`,selectPlaceholder:`Vyberte položku`,tableResizer:`Nástroj na zmenu veľkosti`};var yI={};yI={colorSwatchPicker:`Barvne palete`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izberite element`,tableResizer:`Spreminjanje velikosti`};var bI={};bI={colorSwatchPicker:`Uzorci boje`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izaberite stavku`,tableResizer:`Promena veličine`};var xI={};xI={colorSwatchPicker:`Färgrutor`,dropzoneLabel:`DropZone`,selectPlaceholder:`Välj en artikel`,tableResizer:`Storleksändrare`};var SI={};SI={colorSwatchPicker:`Renk örnekleri`,dropzoneLabel:`Bırakma Bölgesi`,selectPlaceholder:`Bir öğe seçin`,tableResizer:`Yeniden boyutlandırıcı`};var CI={};CI={colorSwatchPicker:`Зразки кольорів`,dropzoneLabel:`DropZone`,selectPlaceholder:`Виберіть елемент`,tableResizer:`Засіб змінення розміру`};var wI={};wI={colorSwatchPicker:`颜色色板`,dropzoneLabel:`放置区域`,selectPlaceholder:`选择一个项目`,tableResizer:`尺寸调整器`};var TI={};TI={colorSwatchPicker:`色票`,dropzoneLabel:`放置區`,selectPlaceholder:`選取項目`,tableResizer:`大小調整器`};var EI={};EI={"ar-AE":KF,"bg-BG":qF,"cs-CZ":JF,"da-DK":YF,"de-DE":XF,"el-GR":ZF,"en-US":QF,"es-ES":$F,"et-EE":eI,"fi-FI":tI,"fr-FR":nI,"he-IL":rI,"hr-HR":iI,"hu-HU":aI,"it-IT":oI,"ja-JP":sI,"ko-KR":cI,"lt-LT":lI,"lv-LV":uI,"nb-NO":dI,"nl-NL":fI,"pl-PL":pI,"pt-BR":mI,"pt-PT":hI,"ro-RO":gI,"ru-RU":_I,"sk-SK":vI,"sl-SI":yI,"sr-SP":bI,"sv-SE":xI,"tr-TR":SI,"uk-UA":CI,"zh-CN":wI,"zh-TW":TI};var DI=(0,x.createContext)({}),OI=(0,x.createContext)(null),kI=(0,x.forwardRef)(function(e,t){let{render:n}=(0,x.useContext)(OI);return x.createElement(x.Fragment,null,n(e,t))});function AI(e,t){let n=e?.renderDropIndicator,r=e?.isVirtualDragging?.(),i=(0,x.useCallback)(e=>{if(r||t?.isDropTarget(e))return n?n(e):x.createElement(kI,{target:e})},[t?.target,r,n]);return e?.useDropIndicator?i:void 0}function jI(e,t,n){let r=e.focusedKey,i=null;if(t?.isVirtualDragging?.()&&n?.target?.type===`item`&&(i=n.target.key,n.target.dropPosition===`after`)){let e=n.collection.getKeyAfter(i),t=null;if(e!=null){let r=n.collection.getItem(i)?.level??0;for(;e!=null;){let i=n.collection.getItem(e);if(!i)break;if(i.type!==`item`)e=n.collection.getKeyAfter(e);else{if((i.level??0)<=r)break;t=e,e=n.collection.getKeyAfter(e)}}}i=e??t??i}return(0,x.useMemo)(()=>new Set([r,i].filter(e=>e!=null)),[r,i])}var MI=(0,x.createContext)({}),NI=AE(OT,function(e,t){return[e,t]=SS(e,t,MI),x.createElement(G.header,{className:`react-aria-Header`,...e,ref:t},e.children)}),PI=(0,x.createContext)(null);function FI(e){let t=(0,x.useRef)({});return x.createElement(PI.Provider,{value:t},e.children)}var II=(0,x.createContext)({isSelected:!1});function LI(e){let t=q(e,{labelable:!0}),n;return e.orientation===`vertical`&&(n=`vertical`),e.elementType===`hr`?{separatorProps:t}:{separatorProps:{...t,role:`separator`,"aria-orientation":n}}}var RI=(0,x.createContext)({}),zI=AE(class extends ET{static{this.type=`separator`}filter(e,t){let n=t.getItem(this.prevKey);if(n&&n.type!==`separator`){let n=this.clone();return t.addDescendants(n,e),n}return null}},function(e,t){[e,t]=SS(e,t,RI);let{elementType:n,orientation:r,style:i,className:a,slot:o,...s}=e,c=n||`hr`;c===`hr`&&r===`vertical`&&(c=`div`);let l=G[c],{separatorProps:u}=LI({...s,elementType:n,orientation:r}),d=q(e,{global:!0});return x.createElement(l,{render:e.render,...W(d,u),style:i,className:a??`react-aria-Separator`,ref:t,slot:o||void 0})}),BI=new WeakMap;function VI(e){return typeof e==`string`?e.replace(/\s*/g,``):``+e}function HI(e,t){let n=BI.get(e);if(!n)throw Error(`Unknown list`);return`${n.id}-option-${VI(t)}`}var UI=class{constructor(e,t,n,r){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){let t=e.shadowRoot;if(t){let e=this._doc.createTreeWalker(t,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}if(typeof this.filter==`function`)return this.filter(e);if(this.filter?.acceptNode)return this.filter.acceptNode(e);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=r??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,n,this._acceptNode));let i=t.shadowRoot;if(i){let e=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}get currentNode(){return this._currentNode}set currentNode(e){if(!zS(this.root,e))throw Error(`Cannot set currentNode to a node that is not contained by the root node.`);let t=[],n=e,r=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let e=n,i=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),n=r=e.host}else n=n.parentNode;let i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return zS(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){let e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){let t;if(typeof this.filter==`function`?t=this.filter(e):this.filter?.acceptNode&&(t=this.filter.acceptNode(e)),t===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let n=this.nextNode();return n&&(this.currentNode=n),n}return e&&(this.currentNode=e),e}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}return null}previousNode(){let e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e)){if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}return null}let t=e.previousNode();if(t){if(t.shadowRoot){let e;if(typeof this.filter==`function`?e=this.filter(t):this.filter?.acceptNode&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let n=this.lastChild();return n&&(this.currentNode=n),n}return t&&(this.currentNode=t),t}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}};function WI(e,t,n,r){return RS()?new UI(e,t,n,r):e.createTreeWalker(t,n,r)}var GI=x.createContext(null),KI=`react-aria-focus-scope-restore`,qI=null;function JI(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=(0,x.useRef)(null),o=(0,x.useRef)(null),s=(0,x.useRef)([]),{parentNode:c}=(0,x.useContext)(GI)||{},l=(0,x.useMemo)(()=>new lL({scopeRef:s}),[s]);qx(()=>{let e=c||uL.root;if(uL.getTreeNode(e.scopeRef)&&qI&&!eL(qI,e.scopeRef)){let t=uL.getTreeNode(qI);t&&(e=t)}e.addChild(l),uL.addNode(l)},[l,c]),qx(()=>{let e=uL.getTreeNode(s);e&&(e.contain=!!n)},[n]),qx(()=>{let e=a.current?.nextSibling,t=[],n=e=>e.stopPropagation();for(;e&&e!==o.current;)t.push(e),e.addEventListener(KI,n),e=e.nextSibling;return s.current=t,()=>{for(let e of t)e.removeEventListener(KI,n)}},[t]),Ate(s,r,n),Dte(s,n),jte(s,r,n),kte(s,i),(0,x.useEffect)(()=>{let e=BS(kS(s.current?s.current[0]:void 0)),t=null;if(QI(e,s.current)){for(let n of uL.traverse())n.scopeRef&&QI(e,n.scopeRef.current)&&(t=n);t===uL.getTreeNode(s)&&(qI=t.scopeRef)}},[s]),qx(()=>()=>{let e=uL.getTreeNode(s)?.parent?.scopeRef??null;s!==qI&&!eL(s,qI)||e&&!uL.getTreeNode(e)||(qI=e),uL.removeTreeNode(s)},[s]);let u=(0,x.useMemo)(()=>wte(s),[]),d=(0,x.useMemo)(()=>({focusManager:u,parentNode:l}),[l,u]);return x.createElement(GI.Provider,{value:d},x.createElement(`span`,{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,x.createElement(`span`,{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function wte(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,s=r||BS(kS(n[0]??void 0)),c=n[0].previousElementSibling,l=oL(YI(n),{tabbable:i,accept:o},n);l.currentNode=QI(s,n)?s:c;let u=l.nextNode();return!u&&a&&(l.currentNode=c,u=l.nextNode()),u&&tL(u,!0),u},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,s=r||BS(kS(n[0]??void 0)),c=n[n.length-1].nextElementSibling,l=oL(YI(n),{tabbable:i,accept:o},n);l.currentNode=QI(s,n)?s:c;let u=l.previousNode();return!u&&a&&(l.currentNode=c,u=l.previousNode()),u&&tL(u,!0),u},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=oL(YI(n),{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let o=a.nextNode();return o&&tL(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=oL(YI(n),{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let o=a.previousNode();return o&&tL(o,!0),o}}}function YI(e){return e[0].parentElement}function XI(e){let t=uL.getTreeNode(qI);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Tte(e){if(!e.form)return Array.from(kS(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(e=>!e.form);let t=e.form.elements.namedItem(e.name),n=AS(e);return t instanceof n.RadioNodeList?Array.from(t).filter(e=>e instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}function Ete(e){if(e.checked)return!0;let t=Tte(e);return t.length>0&&!t.some(e=>e.checked)}function Dte(e,t){let n=(0,x.useRef)(void 0),r=(0,x.useRef)(void 0);qx(()=>{let i=e.current;if(!t){r.current&&=(cancelAnimationFrame(r.current),void 0);return}let a=kS(i?i[0]:void 0),o=t=>{if(t.key!==`Tab`||t.altKey||t.ctrlKey||t.metaKey||!XI(e)||t.isComposing)return;let n=BS(a),r=e.current;if(!r||!QI(n,r))return;let i=oL(YI(r),{tabbable:!0},r);if(!n)return;i.currentNode=n;let o=t.shiftKey?i.previousNode():i.nextNode();o||=(i.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,t.shiftKey?i.previousNode():i.nextNode()),t.preventDefault(),o&&(tL(o,!0),o instanceof AS(o).HTMLInputElement&&o.select())},s=t=>{(!qI||eL(qI,e))&&QI(K(t),e.current)?(qI=e,n.current=K(t)):XI(e)&&!$I(K(t),e)?n.current?tL(n.current):qI&&qI.current&&rL(qI.current):XI(e)&&(n.current=K(t))},c=t=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let r=ZC(),i=(r===`virtual`||r===null)&&yC()&&vC(),o=BS(a);if(!i&&o&&XI(e)&&!$I(o,e)){qI=e;let r=K(t);r&&r.isConnected?(n.current=r,tL(n.current)):qI.current&&rL(qI.current)}})};return a.addEventListener(`keydown`,o,!1),a.addEventListener(`focusin`,s,!1),i?.forEach(e=>e.addEventListener(`focusin`,s,!1)),i?.forEach(e=>e.addEventListener(`focusout`,c,!1)),()=>{a.removeEventListener(`keydown`,o,!1),a.removeEventListener(`focusin`,s,!1),i?.forEach(e=>e.removeEventListener(`focusin`,s,!1)),i?.forEach(e=>e.removeEventListener(`focusout`,c,!1))}},[e,t]),qx(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function ZI(e){return $I(e)}function QI(e,t){return!e||!t?!1:t.some(t=>zS(t,e))}function $I(e,t=null){if(e instanceof Element&&e.closest(`[data-react-aria-top-layer]`))return!0;for(let{scopeRef:n}of uL.traverse(uL.getTreeNode(t)))if(n&&QI(e,n.current))return!0;return!1}function Ote(e){return $I(e,qI)}function eL(e,t){let n=uL.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function tL(e,t=!1){if(e!=null&&!t)try{GT(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function nL(e,t=!0){let n=e[0].previousElementSibling,r=YI(e),i=oL(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=YI(e),i=oL(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function rL(e,t=!0){tL(nL(e,t))}function kte(e,t){let n=x.useRef(t);(0,x.useEffect)(()=>{n.current&&(qI=e,!QI(BS(kS(e.current?e.current[0]:void 0)),qI.current)&&e.current&&rL(e.current)),n.current=!1},[e])}function Ate(e,t,n){qx(()=>{if(t||n)return;let r=e.current,i=kS(r?r[0]:void 0),a=t=>{let n=K(t);QI(n,e.current)?qI=e:ZI(n)||(qI=null)};return i.addEventListener(`focusin`,a,!1),r?.forEach(e=>e.addEventListener(`focusin`,a,!1)),()=>{i.removeEventListener(`focusin`,a,!1),r?.forEach(e=>e.removeEventListener(`focusin`,a,!1))}},[e,t,n])}function iL(e){let t=uL.getTreeNode(qI);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function jte(e,t,n){let r=(0,x.useRef)(typeof document<`u`?BS(kS(e.current?e.current[0]:void 0)):null);qx(()=>{let r=e.current,i=kS(r?r[0]:void 0);if(!t||n)return;let a=()=>{(!qI||eL(qI,e))&&QI(BS(i),e.current)&&(qI=e)};return i.addEventListener(`focusin`,a,!1),r?.forEach(e=>e.addEventListener(`focusin`,a,!1)),()=>{i.removeEventListener(`focusin`,a,!1),r?.forEach(e=>e.removeEventListener(`focusin`,a,!1))}},[e,n]),qx(()=>{let r=kS(e.current?e.current[0]:void 0);if(!t)return;let i=t=>{if(t.key!==`Tab`||t.altKey||t.ctrlKey||t.metaKey||!XI(e)||t.isComposing)return;let n=r.activeElement;if(!$I(n,e)||!iL(e))return;let i=uL.getTreeNode(e);if(!i)return;let a=i.nodeToRestore,o=oL(r.body,{tabbable:!0});o.currentNode=n;let s=t.shiftKey?o.previousNode():o.nextNode();if(a&&a.isConnected&&a!==r.body||(a=void 0,i.nodeToRestore=void 0),(!s||!$I(s,e))&&a){o.currentNode=a;do s=t.shiftKey?o.previousNode():o.nextNode();while($I(s,e));t.preventDefault(),t.stopPropagation(),s?tL(s,!0):ZI(a)?tL(a,!0):n.blur()}};return n||r.addEventListener(`keydown`,i,!0),()=>{n||r.removeEventListener(`keydown`,i,!0)}},[e,t,n]),qx(()=>{let n=kS(e.current?e.current[0]:void 0);if(!t)return;let i=uL.getTreeNode(e);if(i)return i.nodeToRestore=r.current??void 0,()=>{let r=uL.getTreeNode(e);if(!r)return;let i=r.nodeToRestore,a=BS(n);if(t&&i&&(a&&$I(a,e)||a===n.body&&iL(e))){let t=uL.clone();requestAnimationFrame(()=>{if(n.activeElement===n.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&n.nodeToRestore.isConnected){aL(n.nodeToRestore);return}n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&n.scopeRef.current&&uL.getTreeNode(n.scopeRef)){let e=nL(n.scopeRef.current,!0);if(e){aL(e);return}}n=n.parent}}})}}},[e,t])}function aL(e){e.dispatchEvent(new CustomEvent(KI,{bubbles:!0,cancelable:!0}))&&tL(e)}function oL(e,t,n){let r=t?.tabbable?nC:tC,i=kS(e?.nodeType===Node.ELEMENT_NODE?e:null),a=WI(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(e){return zS(t?.from,e)||t?.tabbable&&e.tagName===`INPUT`&&e.getAttribute(`type`)===`radio`&&(!Ete(e)||a.currentNode.tagName===`INPUT`&&a.currentNode.type===`radio`&&a.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:r(e)&&(!n||QI(e,n))&&(!t?.accept||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(a.currentNode=t.from),a}function sL(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,c=i||BS(kS(r)),l=oL(r,{tabbable:a,accept:s});zS(r,c)&&(l.currentNode=c);let u=l.nextNode();return!u&&o&&(l.currentNode=r,u=l.nextNode()),u&&tL(u,!0),u},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,c=i||BS(kS(r)),l=oL(r,{tabbable:a,accept:s});if(zS(r,c))l.currentNode=c;else{let e=cL(l);return e&&tL(e,!0),e??null}let u=l.previousNode();if(!u&&o){l.currentNode=r;let e=cL(l);if(!e)return null;u=e}return u&&tL(u,!0),u??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=oL(r,{tabbable:i,accept:a}).nextNode();return o&&tL(o,!0),o},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=cL(oL(r,{tabbable:i,accept:a}));return o&&tL(o,!0),o??null}}}function cL(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}var Mte=class e{constructor(){this.fastMap=new Map,this.root=new lL({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(t??null);if(!r)return;let i=new lL({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&QI(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let t=new e;for(let e of this.traverse())t.addTreeNode(e.scopeRef,e.parent?.scopeRef??null,e.nodeToRestore);return t}},lL=class{constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}},uL=new Mte;function dL(e){return gC()?e.altKey:e.ctrlKey}function fL(e,t){let n=`[data-key="${CSS.escape(String(t))}"]`,r=e.current?.dataset.collection;return r&&(n=`[data-collection="${CSS.escape(r)}"]${n}`),e.current?.querySelector(n)}var pL=new WeakMap;function Nte(e){let t=dS();return pL.set(e,t),t}function Pte(e){return pL.get(e)}var mL=1e3;function hL(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=(0,x.useRef)({search:``,timeout:void 0});return(0,x.useEffect)(()=>{let e=i.current.timeout;return()=>{clearTimeout(e)}},[i]),{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{if(i.current.search.length>0&&e.key===` `){if(e.preventDefault(),(!(`continuePropagation`in e)||`continuePropagation`in e&&!e.isPropagationStopped())&&e.stopPropagation(),i.current.search+=` `,t.getKeyForSearch!=null){let e=t.getKeyForSearch(i.current.search,n.focusedKey);e??=t.getKeyForSearch(i.current.search),e!=null&&(n.setFocusedKey(e),r&&r(e))}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=``},mL)}}:void 0,onKeyDown:t.getKeyForSearch?e=>{let a=Fte(e.key);if(!(!a||e.ctrlKey||e.metaKey||e.altKey||!zS(e.currentTarget,K(e))||i.current.search.length===0&&a===` `)){if(i.current.search+=a,t.getKeyForSearch!=null){let a=t.getKeyForSearch(i.current.search,n.focusedKey);if(a??=t.getKeyForSearch(i.current.search),a!=null)n.setFocusedKey(a),r&&r(a),e.preventDefault(),`continuePropagation`in e||e.stopPropagation();else{i.current.search=``,clearTimeout(i.current.timeout),i.current.timeout=void 0;return}}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=``},mL)}}:void 0}}}function Fte(e){return e.length===1||!/^[A-Z]/i.test(e)?e:``}function gL(e,t){let n=(0,x.useRef)(!0),r=(0,x.useRef)(null);qx(()=>(n.current=!0,()=>{n.current=!1}),[]),qx(()=>{n.current?n.current=!1:(!r.current||t.some((e,t)=>!Object.is(e,r[t])))&&e(),r.current=t},t)}function _L(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:o=!1,disallowSelectAll:s=!1,escapeKeyBehavior:c=`clearSelection`,selectOnFocus:l=t.selectionBehavior===`replace`,disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,scrollRef:p=r,linkBehavior:m=`action`,UNSTABLE_focusOnEntry:h}=e,{direction:g}=iT(),_=wC(),v=(e,n,i)=>{if(n!=null){if(t.isLink(n)&&m===`selection`&&l&&!dL(e)){(0,vE.flushSync)(()=>{t.setFocusedKey(n,i)});let a=fL(r,n),o=t.getItemProps(n);if(a){_.open(a,e,o.href,o.routerOptions);return}return!1}if(t.setFocusedKey(n,i),t.isLink(n)&&m===`override`)return!1;if(e.shiftKey&&t.selectionMode===`multiple`){t.extendSelection(n);return}if(l&&!dL(e)){t.replaceSelection(n);return}}return!1},y=e=>{if(n.getKeyBelow){let r=t.focusedKey==null?n.getFirstKey?.():n.getKeyBelow?.(t.focusedKey);if(r==null&&a&&(r=n.getFirstKey?.(t.focusedKey)),r!=null){v(e,r);return}}return!1},b=e=>{if(n.getKeyAbove){let r=t.focusedKey==null?n.getLastKey?.():n.getKeyAbove?.(t.focusedKey);if(r==null&&a&&(r=n.getLastKey?.(t.focusedKey)),r!=null){v(e,r);return}}return!1},S=e=>{if(n.getFirstKey){if(t.focusedKey===null&&e.shiftKey)return!1;let r=n.getFirstKey(t.focusedKey,Ww(e));if(t.setFocusedKey(r),r!=null){if(Ww(e)&&e.shiftKey&&t.selectionMode===`multiple`){t.extendSelection(r);return}if(l){t.replaceSelection(r);return}}}return!1},C=e=>{if(n.getKeyLeftOf){let r=t.focusedKey==null?n.getFirstKey?.():n.getKeyLeftOf?.(t.focusedKey);if(r==null&&a&&(r=g===`rtl`?n.getFirstKey?.(t.focusedKey):n.getLastKey?.(t.focusedKey)),r!=null){v(e,r,g===`rtl`?`first`:`last`);return}}return!1},w=e=>{if(n.getKeyRightOf){let r=t.focusedKey==null?n.getFirstKey?.():n.getKeyRightOf?.(t.focusedKey);if(r==null&&a&&(r=g===`rtl`?n.getLastKey?.(t.focusedKey):n.getFirstKey?.(t.focusedKey)),r!=null){v(e,r,g===`rtl`?`last`:`first`);return}}return!1},T=e=>{if(n.getLastKey){if(t.focusedKey===null&&e.shiftKey)return!1;let r=n.getLastKey(t.focusedKey,Ww(e));if(t.setFocusedKey(r),r!=null){if(Ww(e)&&e.shiftKey&&t.selectionMode===`multiple`){t.extendSelection(r);return}if(l){t.replaceSelection(r);return}}}return!1},E=e=>{if(n.getKeyPageBelow&&t.focusedKey!=null){let r=n.getKeyPageBelow(t.focusedKey);if(r!=null)return v(e,r)}return!1},D=e=>{if(n.getKeyPageAbove&&t.focusedKey!=null){let r=n.getKeyPageAbove(t.focusedKey);if(r!=null)return v(e,r)}return!1},O=()=>{if(t.selectionMode===`multiple`&&s!==!0)t.selectAll();else return!1},k=()=>{if(c===`clearSelection`&&!o&&t.selectedKeys.size!==0)t.clearSelection();else return!1},A=()=>{if(!f&&r.current){let e=oL(r.current,{tabbable:!0}),t,n;do n=e.lastChild(),n&&(t=n);while(n);let i=BS();t&&(!HS(t)||i&&!nC(i))&&qS(t)}return{shouldContinuePropagation:!0,shouldPreventDefault:!1}},j=()=>(!f&&r.current&&r.current.focus(),{shouldContinuePropagation:!0,shouldPreventDefault:!1}),M=(e,t)=>({[fC()?e+`+Shift+Alt`:e+`+Shift+Control`]:t,[e+`+Shift`]:t,[fC()?e+`+Alt`:e+`+Control`]:t,[e]:t}),{keyboardProps:N}=oE({shortcuts:{...M(`ArrowDown`,y),...M(`ArrowUp`,b),...M(`ArrowLeft`,C),...M(`ArrowRight`,w),...M(`PageDown`,E),...M(`PageUp`,D)},allowRepeats:!0}),{keyboardProps:P}=oE({shortcuts:{...M(`Home`,S),...M(`End`,T),"Mod+A":O,Escape:k,Tab:A,"Tab+Shift":j}}),F=(0,x.useRef)({top:0,left:0});qw(p,`scroll`,()=>{F.current={top:p.current?.scrollTop??0,left:p.current?.scrollLeft??0}});let ee=e=>{if(t.isFocused){zS(e.currentTarget,K(e))||t.setFocused(!1);return}if(!zS(e.currentTarget,K(e)))return;let i=ZC();t.setFocused(!0);let a=e=>{e!=null&&(t.setFocusedKey(e),l&&!t.isSelected(e)&&t.replaceSelection(e))};if(h&&(i===`keyboard`||i===`virtual`))a(h===`first`?n.getFirstKey?.():n.getLastKey?.());else if(t.focusedKey==null){let r=e.relatedTarget;r&&e.currentTarget.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING?a(t.lastSelectedKey??n.getLastKey?.()):a(t.firstSelectedKey??n.getFirstKey?.())}else p.current&&(p.current.scrollTop=F.current.top,p.current.scrollLeft=F.current.left);if(t.focusedKey!=null&&p.current){let e=fL(r,t.focusedKey);e instanceof HTMLElement&&(!HS(e)&&!d&&qS(e),(i===`keyboard`||h&&i===`virtual`)&&LA(e,{containingElement:r.current}))}},I=e=>{zS(e.currentTarget,e.relatedTarget)||t.setFocused(!1)},te=(0,x.useRef)(!1);qw(r,OS,d?e=>{let{detail:n}=e;e.stopPropagation(),t.setFocused(!0),n?.focusStrategy===`first`&&(te.current=!0)}:void 0);let ne=n.getFirstKey?.()??null;gL(()=>{if(te.current){if(ne==null){let e=BS();US(r.current),GS(e,null),t.collection.size>0&&(te.current=!1)}else t.setFocusedKey(ne),te.current=!1}},[ne,t.collection.size]),gL(()=>{t.collection.size>0&&(te.current=!1)},[t.focusedKey]),qw(r,DS,d?e=>{e.stopPropagation(),t.setFocused(!1),e.detail?.clearFocusKey&&t.setFocusedKey(null)}:void 0);let re=(0,x.useRef)(i),ie=(0,x.useRef)(!1);(0,x.useEffect)(()=>{if(re.current){let e=null;i===`first`&&(e=n.getFirstKey?.()??null),i===`last`&&(e=n.getLastKey?.()??null);let a=t.selectedKeys;if(a.size){for(let n of a)if(t.canSelectItem(n)){e=n;break}}t.setFocused(!0),t.setFocusedKey(e),e!=null&&l&&!a.size&&t.canSelectItem(e)&&t.replaceSelection(e),e==null&&!d&&r.current&&GT(r.current),t.collection.size>0&&(re.current=!1,ie.current=!0)}});let ae=(0,x.useRef)(t.focusedKey),oe=(0,x.useRef)(null);(0,x.useEffect)(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==ae.current||ie.current)&&p.current&&r.current){let e=ZC(),n=fL(r,t.focusedKey);if(!(n instanceof HTMLElement))return;(e===`keyboard`||ie.current)&&(oe.current&&cancelAnimationFrame(oe.current),oe.current=requestAnimationFrame(()=>{p.current&&(FA(p.current,n),e!==`virtual`&&LA(n,{containingElement:r.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&ae.current!=null&&r.current&&GT(r.current),ae.current=t.focusedKey,ie.current=!1}),(0,x.useEffect)(()=>()=>{oe.current&&cancelAnimationFrame(oe.current)},[]),qw(r,`react-aria-focus-scope-restore`,e=>{e.preventDefault(),t.setFocused(!0)});let se={...W(P,N),onFocus:ee,onBlur:I,onMouseDown(e){p.current===K(e)&&e.preventDefault()}},{typeSelectProps:ce}=hL({keyboardDelegate:n,selectionManager:t});u||(se=W(ce,se));let le;d||(le=t.focusedKey==null?0:-1);let ue=Nte(t.collection);return{collectionProps:W(se,{tabIndex:le,"data-collection":ue})}}var vL=class{constructor(e){this.ref=e}getItemRect(e){let t=this.ref.current;if(!t)return null;let n=e==null?null:fL(this.ref,e);if(!n)return null;let r=t.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-r.left-t.clientLeft+t.scrollLeft,y:i.top-r.top-t.clientTop+t.scrollTop,width:i.width,height:i.height}}getContentSize(){let e=this.ref.current;return{width:e?.scrollWidth??0,height:e?.scrollHeight??0}}getVisibleRect(){let e=this.ref.current;return{x:e?.scrollLeft??0,y:e?.scrollTop??0,width:e?.clientWidth??0,height:e?.clientHeight??0}}},yL=class{constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||`all`,this.orientation=t.orientation||`vertical`,this.direction=t.direction,this.layout=t.layout||`stack`,this.layoutDelegate=t.layoutDelegate||new vL(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout=`stack`,this.orientation=`vertical`,this.disabledBehavior=`all`,this.layoutDelegate=new vL(this.ref);this.layout===`stack`&&this.orientation===`vertical`&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}isDisabled(e){return this.disabledBehavior===`all`&&(e.props?.isDisabled||this.disabledKeys.has(e.key))&&e.props?.disabledBehavior!==`selection`}findNextNonDisabled(e,t,n=!1){let r=e;for(;r!=null;){let e=this.collection.getItem(r);if(e?.type===`item`&&(n||!this.isDisabled(e)))return r;r=t(r)}return null}getNextKey(e,t){let n=e;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,e=>this.collection.getKeyAfter(e),t?.includeDisabled)}getPreviousKey(e,t){let n=e;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,e=>this.collection.getKeyBefore(e),t?.includeDisabled)}findKey(e,t,n){let r=e,i=this.layoutDelegate.getItemRect(r);if(!i||r==null)return null;let a=i;do{if(r=t(r),r==null)break;i=this.layoutDelegate.getItemRect(r)}while(i&&n(a,i)&&r!=null);return r}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}isReversed(e){let t=this.getNextKey(e),n=fL(this.ref,e);if(t!=null){let e=fL(this.ref,t);return!n||!e?!1:n.getBoundingClientRect().top>e.getBoundingClientRect().top}let r=this.getPreviousKey(e);if(r!=null){let e=fL(this.ref,r);return!n||!e?!1:e.getBoundingClientRect().top>n.getBoundingClientRect().top}return!1}getKeyBelow(e,t){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getNextKey(e,t),this.isSameRow):this.orientation===`vertical`&&this.isReversed(e)?this.getPreviousKey(e,t):this.getNextKey(e,t)}getKeyAbove(e,t){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getPreviousKey(e,t),this.isSameRow):this.orientation===`vertical`&&this.isReversed(e)?this.getNextKey(e,t):this.getPreviousKey(e,t)}getNextColumn(e,t,n){return t?this.getPreviousKey(e,n):this.getNextKey(e,n)}getKeyRightOf(e,t){let n=this.direction===`ltr`?`getKeyRightOf`:`getKeyLeftOf`;return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[n](e),t?.includeDisabled)):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`rtl`,t):this.findKey(e,e=>this.getNextColumn(e,this.direction===`rtl`,t),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`rtl`,t):null}getKeyLeftOf(e,t){let n=this.direction===`ltr`?`getKeyLeftOf`:`getKeyRightOf`;return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[n](e),t?.includeDisabled)):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`ltr`,t):this.findKey(e,e=>this.getNextColumn(e,this.direction===`ltr`,t),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`ltr`,t):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;let r=this.isReversed(e);if(t&&!MA(t))return this.getFirstKey();let i=e;if(this.orientation===`horizontal`){let e=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>e&&i!=null;)i=this.getKeyAbove(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}else{let e=this.layoutDelegate.getVisibleRect(),t=r?n.y-e.height:Math.max(0,n.y+n.height-e.height);for(;n&&n.y>t&&i!=null;)i=this.getKeyAbove(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}return i??(r?this.getLastKey():this.getFirstKey())}getKeyPageBelow(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;let r=this.isReversed(e);if(t&&!MA(t))return this.getLastKey();let i=e;if(this.orientation===`horizontal`){let e=Math.min(this.layoutDelegate.getContentSize().width,n.x-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<e&&i!=null;)i=this.getKeyBelow(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<e&&i!=null;)i=this.getKeyBelow(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}return i??(r?this.getFirstKey():this.getLastKey())}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;r!=null;){let t=n.getItem(r);if(!t)return null;let i=t.textValue.slice(0,e.length);if(t.textValue&&this.collator.compare(i,e)===0)return r;r=this.getNextKey(r)}return null}},bL=new Map;function xL(e){let{locale:t}=iT(),n=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(bL.has(n))return bL.get(n);let r=new Intl.Collator(t,e);return bL.set(n,r),r}function SL(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:o,orientation:s}=e,c=xL({usage:`search`,sensitivity:`base`}),l=t.disabledBehavior,u=(0,x.useMemo)(()=>a||new yL({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:c,layoutDelegate:o,orientation:s}),[a,o,n,r,i,c,l,s]),{collectionProps:d}=_L({...e,ref:i,selectionManager:t,keyboardDelegate:u});return{listProps:d}}function Ite(e,t,n){let r=q(e,{labelable:!0}),i=e.selectionBehavior||`toggle`,a=e.orientation||`vertical`,o=e.linkBehavior||(i===`replace`?`action`:`override`);i===`toggle`&&o===`action`&&(o=`override`);let{listProps:s}=SL({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:o}),{focusWithinProps:c}=dD({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=dS(e.id);BI.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:o,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:u,fieldProps:d}=CD({...e,id:l,labelElementType:`span`});return{labelProps:u,listBoxProps:W(r,c,t.selectionManager.selectionMode===`multiple`?{"aria-multiselectable":`true`}:{},{role:`listbox`,"aria-orientation":a,...W(d,s)})}}var Lte=500;function CL(e){let{isDisabled:t,pointerType:n,onLongPressStart:r,onLongPressEnd:i,onLongPress:a,threshold:o=Lte,accessibilityDescription:s}=e,c=(0,x.useRef)(void 0),{addGlobalListener:l,removeAllGlobalListeners:u}=ZE(),d=e=>n?e.pointerType===n:e.pointerType===`mouse`||e.pointerType===`touch`,{pressProps:f}=nD({isDisabled:t,onPressStart(e){if(e.continuePropagation(),d(e)){r&&r({...e,type:`longpressstart`}),c.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent(`pointercancel`,{bubbles:!0})),l(e.target,`click`,e=>e.preventDefault(),{once:!0}),kS(e.target).activeElement!==e.target&&qS(e.target),a&&a({...e,type:`longpress`}),c.current=void 0},o),e.pointerType===`touch`&&l(e.target,`contextmenu`,e=>e.preventDefault(),{once:!0});let t=AS(e.target);l(t,`pointerup`,()=>{setTimeout(()=>{u()},100)},{once:!0})}},onPressEnd(e){c.current&&clearTimeout(c.current),i&&d(e)&&i({...e,type:`longpressend`})}});return{longPressProps:W(f,BA(a&&!t?s:void 0))}}function wL(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:o,focus:s,isDisabled:c,onAction:l,allowsDifferentPressOrigin:u,linkBehavior:d=`action`}=e,f=wC();t=dS(t);let p=e=>{if(e.pointerType===`keyboard`&&dL(e))n.toggleSelection(r);else{if(n.selectionMode===`none`)return;if(n.isLink(r)){if(d===`selection`&&i.current){let t=n.getItemProps(r);f.open(i.current,e,t.href,t.routerOptions),n.setSelectedKeys(n.selectedKeys);return}if(d===`override`||d===`none`)return}n.selectionMode===`single`?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):e&&e.shiftKey?n.extendSelection(r):n.selectionBehavior===`toggle`||e&&(Ww(e)||e.pointerType===`touch`||e.pointerType===`virtual`)?n.toggleSelection(r):n.replaceSelection(r)}};(0,x.useEffect)(()=>{r===n.focusedKey&&n.isFocused&&(o?US(i.current):s?s():BS()!==i.current&&i.current&&GT(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),c||=n.isDisabled(r);let m={};!o&&!c?m={tabIndex:r===n.focusedKey?0:-1,onFocus(e){K(e)===i.current&&n.setFocusedKey(r)}}:c&&(m.onMouseDown=e=>{e.preventDefault()}),(0,x.useEffect)(()=>{c&&n.focusedKey===r&&n.setFocusedKey(null)},[n,c,r]);let h=n.isLink(r)&&d===`override`,g=l&&e.UNSTABLE_itemBehavior===`action`,_=n.isLink(r)&&d!==`selection`&&d!==`none`,v=!c&&n.canSelectItem(r)&&!h&&!g,y=(l||_)&&!c,b=y&&(n.selectionBehavior===`replace`?!v:!v||n.isEmpty),S=y&&v&&n.selectionBehavior===`replace`,C=b||S,w=(0,x.useRef)(null),T=C&&v,E=(0,x.useRef)(!1),D=(0,x.useRef)(!1),O=n.getItemProps(r),k=e=>{l&&(l(),i.current?.dispatchEvent(new CustomEvent(`react-aria-item-action`,{bubbles:!0}))),_&&i.current&&f.open(i.current,e,O.href,O.routerOptions)},A={ref:i};a?(A.onPressStart=e=>{w.current=e.pointerType,E.current=T,e.pointerType===`keyboard`&&(!C||EL(e.key))&&p(e)},u?(A.onPressUp=b?void 0:e=>{e.pointerType===`mouse`&&v&&p(e)},A.onPress=b?k:e=>{e.pointerType!==`keyboard`&&e.pointerType!==`mouse`&&v&&p(e)}):A.onPress=e=>{if(b||S&&e.pointerType!==`mouse`){if(e.pointerType===`keyboard`&&!TL(e.key))return;k(e)}else e.pointerType!==`keyboard`&&v&&p(e)}):(A.onPressStart=e=>{w.current=e.pointerType,E.current=T,D.current=b,v&&(e.pointerType===`mouse`&&!b||e.pointerType===`keyboard`&&(!y||EL(e.key)))&&p(e)},A.onPress=e=>{(e.pointerType===`touch`||e.pointerType===`pen`||e.pointerType===`virtual`||e.pointerType===`keyboard`&&C&&TL(e.key)||e.pointerType===`mouse`&&D.current)&&(C?k(e):v&&p(e))});let j=Pte(n.collection);if(m[`data-collection`]=j,m[`data-key`]=r,A.preventFocusOnPress=o,o&&(A=W(A,{onPressStart(e){e.pointerType!==`touch`&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(e){e.pointerType===`touch`&&(n.setFocused(!0),n.setFocusedKey(r))}})),O)for(let e of[`onPressStart`,`onPressEnd`,`onPressChange`,`onPress`,`onPressUp`,`onClick`])O[e]&&(A[e]=Kx(A[e],O[e]));let{pressProps:M,isPressed:N}=nD(A),P=S?e=>{w.current===`mouse`&&(e.stopPropagation(),e.preventDefault(),k(e))}:void 0,{longPressProps:F}=CL({isDisabled:!T,onLongPress(e){e.pointerType===`touch`&&(p(e),n.setSelectionBehavior(`toggle`))}}),ee=e=>{w.current===`touch`&&E.current&&e.preventDefault()},I=d!==`none`&&n.isLink(r)?e=>{EC.isOpening||e.preventDefault()}:void 0,te=W(m,v||b||o&&!c?M:{},T?F:{},{onDoubleClick:P,onDragStartCapture:ee,onClick:I,id:t},o?{onMouseDown:e=>e.preventDefault()}:void 0),ne=e=>{let t=e;for(;t&&t!==i.current;){let e=t.getAttribute(`data-collection`);if(e!=null)return e!==j;t=t.parentElement}return nC(e)},re=te.onPointerDown;te.onPointerDown=e=>{let t=K(e);t&&t!==i.current&&ne(t)?e.stopPropagation():re?.(e)};let ie=te.onMouseDown;return te.onMouseDown=e=>{let t=K(e);t&&t!==i.current&&ne(t)?e.stopPropagation():ie?.(e)},{itemProps:te,isPressed:N,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:c,allowsSelection:v,hasAction:C}}function TL(e){return e===`Enter`}function EL(e){return e===` `}function DL(e,t){return typeof t.getChildren==`function`?t.getChildren(e.key):e.childNodes}function OL(e){return kL(e,0)}function kL(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function AL(e){let t;for(let n of e)t=n;return t}function jL(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...ML(e,t),t],i=[...ML(e,n),n],a=r.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return a===-1?r.findIndex(e=>e===n)>=0?1:(i.findIndex(e=>e===t),-1):(t=r[a],n=i[a],t.index-n.index)}function ML(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}var NL=new WeakMap;function PL(e){let t=NL.get(e);if(t!=null)return t;let n=0,r=t=>{for(let i of t)i.type===`section`?r(DL(i,e)):i.type===`item`&&n++};return r(e),NL.set(e,n),n}function Rte(e,t,n){let{key:r}=e,i=BI.get(t),a=e.isDisabled??t.selectionManager.isDisabled(r),o=e.isSelected??t.selectionManager.isSelected(r),s=e.shouldSelectOnPressUp??i?.shouldSelectOnPressUp,c=e.shouldFocusOnHover??i?.shouldFocusOnHover,l=e.shouldUseVirtualFocus??i?.shouldUseVirtualFocus,u=e.isVirtualized??i?.isVirtualized,d=pS(),f=pS(),p={role:`option`,"aria-disabled":a||void 0,"aria-selected":t.selectionManager.selectionMode===`none`?void 0:o,"aria-label":e[`aria-label`],"aria-labelledby":d,"aria-describedby":f},m=t.collection.getItem(r);if(u){let e=Number(m?.index);p[`aria-posinset`]=Number.isNaN(e)?void 0:e+1,p[`aria-setsize`]=PL(t.collection)}let h=i?.onAction?()=>i?.onAction?.(r):void 0,g=HI(t,r),{itemProps:_,isPressed:v,isFocused:y,hasAction:b,allowsSelection:x}=wL({selectionManager:t.selectionManager,key:r,ref:n,shouldSelectOnPressUp:s,allowsDifferentPressOrigin:s&&c,isVirtualized:u,shouldUseVirtualFocus:l,isDisabled:a,onAction:h||m?.props?.onAction?Kx(m?.props?.onAction,h):void 0,linkBehavior:i?.linkBehavior,UNSTABLE_itemBehavior:i?.UNSTABLE_itemBehavior,id:g}),{hoverProps:S}=vD({isDisabled:a||!c,onHoverStart(){XC()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(r))}}),C=q(m?.props);delete C.id;let w=AC(m?.props);return{optionProps:{...p,...W(C,_,S,w),id:g},labelProps:{id:d},descriptionProps:{id:f},isFocused:y,isFocusVisible:y&&t.selectionManager.isFocused&&XC(),isSelected:o,isDisabled:a,isPressed:v,allowsSelection:x,hasAction:b}}function zte(e){let{heading:t,"aria-label":n}=e,r=dS();return{itemProps:{role:`presentation`},headingProps:t?{id:r,role:`presentation`,onMouseDown:e=>{e.preventDefault()}}:{},groupProps:{role:`group`,"aria-label":n,"aria-labelledby":t?r:void 0}}}function FL(e){let t=x.version.split(`.`);return parseInt(t[0],10)>=19?e:e?`true`:void 0}var IL=class{constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&e.type===`section`)for(let n of e.childNodes)t(n)};for(let n of e)t(n);let n=null,r=0,i=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),t.type===`item`&&(t.index=r++),(t.type===`section`||t.type===`item`)&&i++,n=t,n.nextKey=void 0;this._size=i,this.lastKey=n?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey??null:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){return this.keyMap.get(e)?.childNodes||[]}},LL=class e extends Set{constructor(t,n,r){super(t),t instanceof e?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}};function Bte(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function RL(e){let{selectionMode:t=`none`,disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i=`toggle`,disabledBehavior:a=`all`}=e,o=(0,x.useRef)(!1),[,s]=(0,x.useState)(!1),c=(0,x.useRef)(null),l=(0,x.useRef)(null),[,u]=(0,x.useState)(null),[d,f]=yT((0,x.useMemo)(()=>zL(e.selectedKeys),[e.selectedKeys]),(0,x.useMemo)(()=>zL(e.defaultSelectedKeys,new LL),[e.defaultSelectedKeys]),e.onSelectionChange),p=(0,x.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[m,h]=(0,x.useState)(i);i===`replace`&&m===`toggle`&&typeof d==`object`&&d.size===0&&h(`replace`);let g=(0,x.useRef)(i);return(0,x.useEffect)(()=>{i!==g.current&&(h(i),g.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:m,setSelectionBehavior:h,get isFocused(){return o.current},setFocused(e){o.current=e,s(e)},get focusedKey(){return c.current},get childFocusStrategy(){return l.current},setFocusedKey(e,t=`first`){c.current=e,l.current=t,u(e)},selectedKeys:d,setSelectedKeys(e){(r||!Bte(e,d))&&f(e)},disabledKeys:p,disabledBehavior:a}}function zL(e,t){return e?e===`all`?`all`:new LL(e):t}var BL=class e{constructor(e,t,n){this.collection=e,this.state=t,this.allowsCellSelection=n?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null,this.fullCollection=n?.fullCollection||null}get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return this.state.selectedKeys===`all`?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode===`none`)return!1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys===`all`?this.canSelectItem(t):this.state.selectedKeys.has(t)}get isEmpty(){return this.state.selectedKeys!==`all`&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys===`all`)return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&jL(this.collection,n,e)<0)&&(e=n)}return e?.key??null}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&jL(this.collection,n,e)>0)&&(e=n)}return e?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n;if(this.state.selectedKeys===`all`)n=new LL([t],t,t);else{let e=this.state.selectedKeys,r=e.anchorKey??t;n=new LL(e,r,t);for(let i of this.getKeyRange(r,e.currentKey??t))n.delete(i);for(let e of this.getKeyRange(t,r))this.canSelectItem(e)&&n.add(e)}this.state.setSelectedKeys(n)}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?jL(this.collection,n,r)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){if(this.layoutDelegate?.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let n=[],r=e;for(;r!=null;){let e=this.collection.getItem(r);if(e&&(e.type===`item`||e.type===`cell`&&this.allowsCellSelection)&&n.push(r),r===t)return n;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||t.type===`cell`&&this.allowsCellSelection)return e;for(;t&&t.type!==`item`&&t.parentKey!=null;)t=this.collection.getItem(t.parentKey);return!t||t.type!==`item`?null:t.key}toggleSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=new LL(this.state.selectedKeys===`all`?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),this.disallowEmptySelection&&n.size===0||this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode===`none`)return;let t=this.getKey(e);if(t==null)return;let n=this.canSelectItem(t)?new LL([t],t,t):new LL;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode===`none`)return;let t=new LL;for(let n of e){let e=this.getKey(n);if(e!=null&&(t.add(e),this.selectionMode===`single`))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=this.fullCollection??this.collection,t=[],n=r=>{for(;r!=null;){if(this.canSelectItemIn(r,e)){let i=e.getItem(r);i?.type===`item`&&t.push(r),i?.hasChildNodes&&(this.allowsCellSelection||i.type!==`item`)&&n(OL(DL(i,e))?.key??null)}r=e.getKeyAfter(r)}};return n(e.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode===`multiple`&&this.state.setSelectedKeys(`all`)}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys===`all`||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new LL)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode!==`none`&&(this.selectionMode===`single`?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior===`toggle`||t&&(t.pointerType===`touch`||t.pointerType===`virtual`)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){return this.canSelectItemIn(e,this.collection)}canSelectItemIn(e,t){if(this.state.selectionMode===`none`||this.state.disabledKeys.has(e))return!1;let n=t.getItem(e);return!(!n||n?.props?.isDisabled||n.type===`cell`&&!this.allowsCellSelection)}isDisabled(e){let t=this.collection.getItem(e);return this.state.disabledBehavior===`all`&&(this.state.disabledKeys.has(e)||!!t?.props?.isDisabled)&&t?.props?.disabledBehavior!==`selection`}isLink(e){return!!this.collection.getItem(e)?.props?.href}getItemProps(e){return this.collection.getItem(e)?.props}withCollection(t){return new e(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}},Vte=class{build(e,t){return this.context=t,VL(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:n}=e;if(x.isValidElement(t)&&t.type===x.Fragment)yield*this.iterateCollection({children:t.props.children,items:n});else if(typeof t==`function`){if(!n)throw Error(`props.children was a function but props.items is missing`);let e=0;for(let r of n)yield*this.getFullNode({value:r,index:e},{renderer:t}),e++}else{let e=[];x.Children.forEach(t,t=>{t&&e.push(t)});let n=0;for(let t of e){let e=this.getFullNode({element:t,index:n},{});for(let t of e)n++,yield t}}}getKey(e,t,n,r){if(e.key!=null)return e.key;if(t.type===`cell`&&t.key!=null)return`${r}${t.key}`;let i=t.value;if(i!=null){let e=i.key??i.id;if(e==null)throw Error(`No key found for item`);return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,r){if(x.isValidElement(e.element)&&e.element.type===x.Fragment){let i=[];x.Children.forEach(e.element.props.children,e=>{i.push(e)});let a=e.index??0;for(let e of i)yield*this.getFullNode({element:e,index:a++},t,n,r);return}let i=e.element;if(!i&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context))){n.index=e.index,n.parentKey=r?r.key:null,yield n;return}i=t.renderer(e.value)}if(x.isValidElement(i)){let a=i.type;if(typeof a!=`function`&&typeof a.getCollectionNode!=`function`){let e=i.type;throw Error(`Unknown element <${e}> in collection.`)}let o=a.getCollectionNode(i.props,this.context),s=e.index??0,c=o.next();for(;!c.done&&c.value;){let a=c.value;e.index=s;let l=a.key??null;l??=a.element?null:this.getKey(i,e,t,n);let u=[...this.getFullNode({...a,key:l,index:s,wrapper:Hte(e.wrapper,a.wrapper)},this.getChildState(t,a),n?`${n}${i.key}`:i.key,r)];for(let t of u){if(t.value=a.value??e.value??null,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error(`Unsupported type <${HL(t.type)}> in <${HL(r?.type??`unknown parent type`)}>. Only <${HL(e.type)}> is supported.`);s++,yield t}c=o.next(u)}return}if(e.key==null||e.type==null)return;let a=this,o={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:e.value??null,level:(r?.level??0)+ +(r?.type===`item`),index:e.index,rendered:e.rendered,textValue:e.textValue??``,"aria-label":e[`aria-label`],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:VL(function*(){if(!e.hasChildNodes||!e.childNodes)return;let n=0;for(let r of e.childNodes()){r.key!=null&&(r.key=`${o.key}${r.key}`);let e=a.getFullNode({...r,index:n},a.getChildState(t,r),o.key,o);for(let t of e)n++,yield t}})};yield o}constructor(){this.cache=new WeakMap}};function VL(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||=e();for(let e of n)t.push(e),yield e}}}function Hte(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function HL(e){return e[0].toUpperCase()+e.slice(1)}function UL(e,t,n){let r=(0,x.useMemo)(()=>new Vte,[]),{children:i,items:a,collection:o}=e;return(0,x.useMemo)(()=>o||t(r.build({children:i,items:a},n)),[r,i,a,o,n,t])}function WL(e){let{filter:t,layoutDelegate:n}=e,r=RL(e),i=(0,x.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=UL(e,(0,x.useCallback)(e=>t?new IL(t(e)):new IL(e),[t]),(0,x.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning])),o=(0,x.useMemo)(()=>new BL(a,r,{layoutDelegate:n}),[a,r,n]);return KL(a,o),{collection:a,disabledKeys:i,selectionManager:o}}function GL(e,t){let n=(0,x.useMemo)(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),r=e.selectionManager.withCollection(n);return KL(n,r),{collection:n,selectionManager:r,disabledKeys:e.disabledKeys}}function KL(e,t){let n=(0,x.useRef)(null);(0,x.useEffect)(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){let r=n.current.getKeyAfter(t.focusedKey),i=null;for(;r!=null;){let a=e.getItem(r);if(a&&a.type===`item`&&!t.isDisabled(r)){i=r;break}r=n.current.getKeyAfter(r)}if(i==null)for(r=n.current.getKeyBefore(t.focusedKey);r!=null;){let a=e.getItem(r);if(a&&a.type===`item`&&!t.isDisabled(r)){i=r;break}r=n.current.getKeyBefore(r)}t.setFocusedKey(i)}n.current=e},[e,t])}function qL(e,t){let{collection:n,onLoadMore:r,scrollOffset:i=1,direction:a=`end`}=e,o=(0,x.useRef)(null),s=Kw(e=>{for(let t of e)t.isIntersecting&&r&&r()});qx(()=>{if(t.current){let e=100*i,n=a===`start`?`${e}% 0px 0px 0px`:`0px ${e}% ${e}% ${e}%`;o.current=new IntersectionObserver(s,{root:NA(t?.current),rootMargin:n}),o.current.observe(t.current)}return()=>{o.current&&o.current.disconnect()}},[n,t,i,a])}var JL=(0,x.createContext)(null),YL=(0,x.createContext)(null),XL=(0,x.forwardRef)(function(e,t){[e,t]=SS(e,t,JL);let n=(0,x.useContext)(YL);return n?x.createElement(QL,{state:n,props:e,listBoxRef:t}):x.createElement(SE,{content:x.createElement(PE,e)},n=>x.createElement(ZL,{props:e,listBoxRef:t,collection:n}))});function ZL({props:e,listBoxRef:t,collection:n}){e={...e,collection:n,children:null,items:null};let{layoutDelegate:r}=(0,x.useContext)(BE),i=WL({...e,layoutDelegate:r});return x.createElement(QL,{state:i,props:e,listBoxRef:t})}function QL({state:e,props:t,listBoxRef:n}){[t,n]=SS(t,n,CT);let{dragAndDropHooks:r,layout:i=`stack`,orientation:a=`vertical`,filter:o}=t,s=GL(e,o),{collection:c,selectionManager:l}=s,u=!!r?.useDraggableCollectionState,d=!!r?.useDroppableCollectionState,{direction:f}=iT(),{disabledBehavior:p,disabledKeys:m}=l,h=xL({usage:`search`,sensitivity:`base`}),{isVirtualized:g,layoutDelegate:_,dropTargetDelegate:v,CollectionRoot:y}=(0,x.useContext)(BE),b=(0,x.useMemo)(()=>t.keyboardDelegate||new yL({collection:c,collator:h,ref:n,disabledKeys:m,disabledBehavior:p,layout:i,orientation:a,direction:f,layoutDelegate:_}),[c,h,n,p,m,a,f,t.keyboardDelegate,i,_]),{listBoxProps:S}=Ite({...t,shouldSelectOnPressUp:u||t.shouldSelectOnPressUp,keyboardDelegate:b,isVirtualized:g},s,n);(0,x.useRef)(u),(0,x.useRef)(d),(0,x.useEffect)(()=>{},[u,d]);let C,w,T,E=!1,D=null,O=(0,x.useRef)(null);if(u&&r){C=r.useDraggableCollectionState({collection:c,selectionManager:l,preview:r.renderDragPreview?O:void 0}),r.useDraggableCollection({},C,n);let e=r.DragPreview;D=r.renderDragPreview?x.createElement(e,{ref:O},r.renderDragPreview):null}if(d&&r){w=r.useDroppableCollectionState({collection:c,selectionManager:l});let e=r.dropTargetDelegate||v||new r.ListDropTargetDelegate(c,n,{orientation:a,layout:i,direction:f});T=r.useDroppableCollection({keyboardDelegate:b,dropTargetDelegate:e},w,n),E=w.isDropTarget({type:`root`})}let{focusProps:k,isFocused:A,isFocusVisible:j}=fD(),M=s.collection.size===0,N={isDropTarget:E,isEmpty:M,isFocused:A,isFocusVisible:j,layout:t.layout||`stack`,orientation:a,state:s},P=yS({...t,children:void 0,defaultClassName:`react-aria-ListBox`,values:N}),F=null;M&&t.renderEmptyState&&(F=x.createElement(`div`,{role:`option`,style:{display:`contents`}},t.renderEmptyState(N)));let ee=q(t,{global:!0});return x.createElement(JI,null,x.createElement(G.div,{...W(ee,P,S,k,T?.collectionProps),ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":E||void 0,"data-empty":M||void 0,"data-focused":A||void 0,"data-focus-visible":j||void 0,"data-layout":t.layout||`stack`,"data-orientation":a},x.createElement(vS,{values:[[JL,t],[YL,s],[DI,{dragAndDropHooks:r,dragState:C,dropState:w}],[RI,{elementType:`div`}],[OI,{render:nR}],[IE,{name:`ListBoxSection`,render:$L}]]},x.createElement(FI,null,x.createElement(y,{collection:c,scrollRef:n,persistedKeys:jI(l,r,w),renderDropIndicator:AI(r,w)}))),F,D))}function $L(e,t,n,r=`react-aria-ListBoxSection`){let i=(0,x.useContext)(YL),{dragAndDropHooks:a,dropState:o}=(0,x.useContext)(DI),{CollectionBranch:s}=(0,x.useContext)(BE),[c,l]=CS(),{headingProps:u,groupProps:d}=zte({heading:l,"aria-label":e[`aria-label`]??void 0}),f=yS({...e,id:void 0,children:void 0,defaultClassName:r,values:void 0}),p=q(e,{global:!0});return delete p.id,x.createElement(G.section,{...W(p,f,d),ref:t},x.createElement(MI.Provider,{value:{...u,ref:c}},x.createElement(s,{collection:i.collection,parent:n,renderDropIndicator:AI(a,o)})))}var eR=jE(jT,$L),tR=AE(AT,function(e,t,n){let r=gS(t),i=(0,x.useContext)(YL),{dragAndDropHooks:a,dragState:o,dropState:s}=(0,x.useContext)(DI),c=o&&!(o.isDisabled||o.selectionManager.isDisabled(n.key)),{optionProps:l,labelProps:u,descriptionProps:d,...f}=Rte({key:n.key,"aria-label":e?.[`aria-label`]},i,r),{hoverProps:p,isHovered:m}=vD({isDisabled:!f.allowsSelection&&!f.hasAction&&!c,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),{keyboardProps:h}=oE(e),{focusProps:g}=KT(e),_=null;o&&a&&(_=a.useDraggableItem({key:n.key,hasAction:f.hasAction},o));let v=null;s&&a&&(v=a.useDroppableItem({target:{type:`item`,key:n.key,dropPosition:`on`}},s,r));let y=o&&o.isDragging(n.key),b=yS({...e,id:void 0,children:e.children,defaultClassName:`react-aria-ListBoxItem`,values:{...f,isHovered:m,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!o,isDragging:y,isDropTarget:v?.isDropTarget}});(0,x.useEffect)(()=>{n.textValue},[n.textValue]);let S=e.href?G.a:G.div,C=q(e,{global:!0});return delete C.id,delete C.onClick,e.href&&l.tabIndex==null&&(l.tabIndex=-1),x.createElement(S,{...W(C,b,l,p,h,g,_?.dragProps,v?.dropProps),ref:r,"data-allows-dragging":!!o||void 0,"data-selected":f.isSelected||void 0,"data-disabled":f.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-dragging":y||void 0,"data-drop-target":v?.isDropTarget||void 0,"data-selection-mode":i.selectionManager.selectionMode===`none`?void 0:i.selectionManager.selectionMode},x.createElement(vS,{values:[[oO,{slots:{[_S]:u,label:u,description:d}}],[II,{isSelected:f.isSelected}]]},b.children))});function nR(e,t){t=gS(t);let{dragAndDropHooks:n,dropState:r}=(0,x.useContext)(DI),{dropIndicatorProps:i,isHidden:a,isDropTarget:o}=n.useDropIndicator(e,r,t);return a?null:x.createElement(iR,{...e,dropIndicatorProps:i,isDropTarget:o,ref:t})}function rR(e,t){let{dropIndicatorProps:n,isDropTarget:r,...i}=e,a=yS({...i,defaultClassName:`react-aria-DropIndicator`,values:{isDropTarget:r}});return x.createElement(x.Fragment,null,x.createElement(G.div,{...n,...a,role:`option`,ref:t,"data-drop-target":r||void 0}))}var iR=(0,x.forwardRef)(rR);AE(kT,function(e,t,n){let r=(0,x.useContext)(YL),{isLoading:i,onLoadMore:a,scrollOffset:o,...s}=e,c=(0,x.useRef)(null);qL((0,x.useMemo)(()=>({onLoadMore:a,collection:r?.collection,sentinelRef:c,scrollOffset:o}),[a,o,r?.collection]),c);let l=yS({...s,id:void 0,children:n.rendered,defaultClassName:`react-aria-ListBoxLoadingIndicator`,values:void 0});return x.createElement(x.Fragment,null,x.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:FL(!0)},x.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:c,style:{position:`absolute`,height:1,width:1}})),i&&l.children&&x.createElement(x.Fragment,null,x.createElement(G.div,{...W(q(e,{global:!0}),{tabIndex:-1}),...l,role:`option`,ref:t},l.children)))});function aR(e){let t=iF(e.value),n=iF(e.defaultValue||`#000000`),[r,i]=yT(t||void 0,n,e.onChange);return{color:r,setColor(e){e!=null&&i(e||GM(`#000000`))}}}function oR(e){return e&&e.__esModule?e.default:e}var sR=(0,x.createContext)(null),cR=(0,x.createContext)(null),lR=(0,x.forwardRef)(function(e,t){[e,t]=SS(e,t,sR);let n=aR(e),r=(0,x.useMemo)(()=>new Map,[]),i=hT(oR(EI),`react-aria-components`);return x.createElement(XL,{...q(e,{labelable:!0}),ref:t,className:e.className||`react-aria-ColorSwatchPicker`,style:e.style,"aria-label":e[`aria-label`]||(e[`aria-labelledby`]?void 0:i.format(`colorSwatchPicker`)),layout:e.layout||`grid`,selectionMode:`single`,selectedKeys:[n.color.toString(`hexa`)],onSelectionChange:e=>{e!==`all`&&n.setColor(r.get([...e][0]))},disallowEmptySelection:!0},x.createElement(cR.Provider,{value:r},e.children))}),uR=(0,x.forwardRef)(function(e,t){let n=e.color||`#0000`,r=(0,x.useMemo)(()=>typeof n==`string`?GM(n):n,[n]),{locale:i}=iT(),a=(0,x.useContext)(cR);(0,x.useEffect)(()=>{let e=r.toString(`hexa`);return a.set(e,r),()=>{a.delete(e)}},[r,a]);let o=e=>typeof e==`function`?t=>e({...t,color:r}):e;return x.createElement(tR,{...e,render:e.render,ref:t,id:r.toString(`hexa`),textValue:r.getColorName(i),className:o(e.className||`react-aria-ColorSwatchPickerItem`),style:o(e.style)},bS(o(e.children),e=>x.createElement(WF.Provider,{value:{color:r}},e)))}),dR=(0,x.createContext)({placement:`bottom`}),fR=typeof HTMLElement<`u`&&`inert`in HTMLElement.prototype;function pR(e){return e.dataset.liveAnnouncer===`true`||e.dataset.reactAriaTopLayer!==void 0}var mR=new WeakMap,hR=[];function gR(e,t){let n=AS(e?.[0]),r=t instanceof n.Element?{root:t}:t,i=r?.root??document.body,a=r?.shouldUseInert&&fR,o=new Set(e),s=new Set,c=e=>a&&e instanceof n.HTMLElement?e.inert:e.getAttribute(`aria-hidden`)===`true`,l=(e,t)=>{a&&e instanceof n.HTMLElement?e.inert=t:t?e.setAttribute(`aria-hidden`,`true`):(e.removeAttribute(`aria-hidden`),e instanceof n.HTMLElement&&(e.inert=!1))},u=new Set;if(RS()){let t=i.getRootNode();for(let n of e){let e=n.getRootNode();for(;PS(e)&&e!==t;)u.add(e),e=e.host.getRootNode()}}let d=e=>{for(let t of e.querySelectorAll(`[data-live-announcer], [data-react-aria-top-layer]`))o.add(t);let t=e=>{if(s.has(e)||o.has(e)||e.parentElement&&s.has(e.parentElement)&&e.parentElement.getAttribute(`role`)!==`row`)return NodeFilter.FILTER_REJECT;for(let t of o)if(zS(e,t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=WI(kS(e),e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),r=t(e);if(r===NodeFilter.FILTER_ACCEPT&&f(e),r!==NodeFilter.FILTER_REJECT){let e=n.nextNode();for(;e!=null;)f(e),e=n.nextNode()}},f=e=>{let t=mR.get(e)??0;c(e)&&t===0||(t===0&&l(e,!0),s.add(e),mR.set(e,t+1))};hR.length&&hR[hR.length-1].disconnect(),d(i);let p=new MutationObserver(e=>{for(let t of e)if(t.type===`childList`){if(t.target.isConnected&&![...o,...s].some(e=>zS(e,t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&pR(e)?o.add(e):e instanceof Element&&d(e);if(RS()){for(let e of u)if(!e.isConnected){p.disconnect();break}}}});p.observe(i,{childList:!0,subtree:!0});let m=new Set;if(RS())for(let e of u){let t=new MutationObserver(e=>{for(let t of e)if(t.type===`childList`){if(t.target.isConnected&&![...o,...s].some(e=>zS(e,t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&pR(e)?o.add(e):e instanceof Element&&d(e);if(RS()){for(let e of u)if(!e.isConnected){p.disconnect();break}}}});t.observe(e,{childList:!0,subtree:!0}),m.add(t)}let h={visibleNodes:o,hiddenNodes:s,observe(){p.observe(i,{childList:!0,subtree:!0})},disconnect(){p.disconnect()}};return hR.push(h),()=>{if(p.disconnect(),RS())for(let e of m)e.disconnect();for(let e of s){let t=mR.get(e);t!=null&&(t===1?(l(e,!1),mR.delete(e)):mR.set(e,t-1))}h===hR[hR.length-1]?(hR.pop(),hR.length&&hR[hR.length-1].observe()):hR.splice(hR.indexOf(h),1)}}function _R(e){let t=hR[hR.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}var vR={top:`top`,bottom:`top`,left:`left`,right:`left`},yR={top:`bottom`,bottom:`top`,left:`right`,right:`left`},bR={top:`left`,left:`top`},xR={top:`height`,left:`width`},SR={width:`totalWidth`,height:`totalHeight`},CR={},wR=()=>typeof document<`u`?window.visualViewport:null;function TR(e,t){let n=0,r=0,i=0,a=0,o=0,s=0,c={},l=(t?.scale??1)>1;if(e.tagName===`BODY`||e.tagName===`HTML`){let l=document.documentElement;i=l.clientWidth,a=l.clientHeight,n=t?.width??i,r=t?.height??a,c.top=l.scrollTop||e.scrollTop,c.left=l.scrollLeft||e.scrollLeft,t&&(o=Math.max(0,t.pageTop-(c.top??0)),s=Math.max(0,t.pageLeft-(c.left??0)))}else({width:n,height:r,top:o,left:s}=IR(e,!1)),c.top=e.scrollTop,c.left=e.scrollLeft,i=n,a=r;return _C()&&(e.tagName===`BODY`||e.tagName===`HTML`)&&l&&(c.top=0,c.left=0,o=t?.pageTop??0,s=t?.pageLeft??0),{width:n,height:r,totalWidth:i,totalHeight:a,scroll:c,top:o,left:s}}function ER(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function DR(e,t,n,r,i,a,o){let s=i.scroll[e]??0,c=r[xR[e]],l=o[e]+r.scroll[vR[e]]+a,u=o[e]+r.scroll[vR[e]]+c-a,d=t-s+r.scroll[vR[e]]+o[e]-r[vR[e]],f=t-s+n+r.scroll[vR[e]]+o[e]-r[vR[e]];return d<l?l-d:f>u?Math.max(u-f,l-d):0}function OR(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function kR(e){if(CR[e])return CR[e];let[t,n]=e.split(` `),r=vR[t]||`right`,i=bR[r];vR[n]||(n=`center`);let a=xR[r],o=xR[i];return CR[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:o},CR[e]}function AR(e,t,n,r,i,a,o,s,c,l,u){let{placement:d,crossPlacement:f,axis:p,crossAxis:m,size:h,crossSize:g}=r,_={};_[m]=e[m]??0,f===`center`?_[m]+=((e[g]??0)-(n[g]??0))/2:f!==m&&(_[m]+=(e[g]??0)-(n[g]??0)),_[m]+=a;let v=e[m]-n[g]+c+l,y=e[m]+e[g]-c-l;if(_[m]=HD(_[m],v,y),d===p){let t=s?u[h]:u[SR[h]];_[yR[p]]=Math.floor(t-e[p]+i)}else _[p]=Math.floor(e[p]+e[h]+i);return _}function jR(e,t,n,r,i,a,o,s,c,l,u){let d=(e.top==null?c[SR.height]-(e.bottom??0)-o:e.top)-(c.scroll.top??0),f=l?n.top:0,p={top:Math.max(t.top+f,(u?.offsetTop??t.top)+f),bottom:Math.min(t.top+t.height+f,(u?.offsetTop??0)+(u?.height??0))};return s===`top`?Math.max(0,d+o-p.top-((i.top??0)+(i.bottom??0)+a)):Math.max(0,p.bottom-d-((i.top??0)+(i.bottom??0)+a))}function MR(e,t,n,r,i,a,o,s){let{placement:c,axis:l,size:u}=a;return c===l?Math.max(0,n[l]-(o.scroll[l]??0)-(e[l]+(s?t[l]:0))-(r[l]??0)-r[yR[l]]-i):Math.max(0,e[u]+e[l]+(s?t[l]:0)-n[l]-n[u]+(o.scroll[l]??0)-(r[l]??0)-r[yR[l]]-i)}function NR(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_){let v=kR(e),{size:y,crossAxis:b,crossSize:x,placement:S,crossPlacement:C}=v,w=AR(t,s,n,v,u,d,l,f,m,h,c),T=u,E=MR(s,l,t,i,a+u,v,c,g);if(o&&n[y]>E){let e=kR(`${yR[S]} ${C}`),r=AR(t,s,n,e,u,d,l,f,m,h,c);MR(s,l,t,i,a+u,e,c,g)>E&&(v=e,w=r,T=u)}let D=`bottom`;v.axis===`top`?v.placement===`top`?D=`top`:v.placement===`bottom`&&(D=`bottom`):v.crossAxis===`top`&&(v.crossPlacement===`top`?D=`bottom`:v.crossPlacement===`bottom`&&(D=`top`));let O=DR(b,w[b],n[x],s,c,a,l);w[b]+=O;let k=jR(w,s,l,f,i,a,n.height,D,c,g,_);p&&p<k&&(k=p),n.height=Math.min(n.height,k),w=AR(t,s,n,v,T,d,l,f,m,h,c),O=DR(b,w[b],n[x],s,c,a,l),w[b]+=O;let A={},j=t[b]-w[b]-i[vR[b]],M=j+.5*t[x],N=m/2+h,P=vR[b]===`left`?(i.left??0)+(i.right??0):(i.top??0)+(i.bottom??0),F=n[x]-P-m/2-h;A[b]=HD(HD(M,t[b]+m/2-(w[b]+i[vR[b]]),t[b]+t[x]-m/2-(w[b]+i[vR[b]])),N,F),{placement:S,crossPlacement:C}=v,m?j=A[b]:C===`right`?j+=t[x]:C===`center`&&(j+=t[x]/2);let ee=S===`left`||S===`top`?n[y]:0,I={x:S===`top`||S===`bottom`?j:ee,y:S===`left`||S===`right`?j:ee};return{position:w,maxHeight:k,arrowOffsetLeft:A.left,arrowOffsetTop:A.top,placement:S,triggerAnchorPoint:I}}function PR(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:o,boundaryElement:s,offset:c,crossOffset:l,maxHeight:u,arrowSize:d=0,arrowBoundaryOffset:f=0,targetRect:p}=e,m=wR(),h=r instanceof HTMLElement?RR(r):document.documentElement,g=h===document.documentElement,_=window.getComputedStyle(h).position,v=!!_&&_!==`static`,y=g?IR(n,!1,p):LR(n,h,!1,p);if(!g){let{marginTop:e,marginLeft:t}=window.getComputedStyle(n);y.top+=parseInt(e,10)||0,y.left+=parseInt(t,10)||0}let b=IR(r,!0),x=OR(r);b.width+=(x.left??0)+(x.right??0),b.height+=(x.top??0)+(x.bottom??0);let S=ER(i),C=TR(s,m),w=TR(h,m),T;if((s.tagName===`BODY`||s.tagName===`HTML`)&&!g){let e=FR(h,!1);T={top:-(e.top-C.top),left:-(e.left-C.left),width:0,height:0}}else T=(s.tagName===`BODY`||s.tagName===`HTML`)&&g?{top:0,left:0,width:0,height:0}:LR(s,h,!1);let E=zS(s,h);return NR(t,y,b,S,x,a,o,C,w,T,c,l,v,u,d,f,E,m)}function FR(e,t){let{top:n,left:r,width:i,height:a}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(i=e.offsetWidth,a=e.offsetHeight),{top:n,left:r,width:i,height:a}}function IR(e,t,n){let{top:r,left:i,width:a,height:o}=n||FR(e,t),{scrollTop:s,scrollLeft:c,clientTop:l,clientLeft:u}=document.documentElement;return{top:r+s-l,left:i+c-u,width:a,height:o}}function LR(e,t,n,r){let i=window.getComputedStyle(e),a;if(i.position===`fixed`)a=r||FR(e,n);else{a=IR(e,n,r);let i=IR(t,n),o=window.getComputedStyle(t);i.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,a.top-=i.top,a.left-=i.left}return a.top-=parseInt(i.marginTop,10)||0,a.left-=parseInt(i.marginLeft,10)||0,a}function RR(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position===`static`&&!zR(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!zR(t);)t=t.parentElement;return t||document.documentElement}function zR(e){let t=window.getComputedStyle(e);return t.transform!==`none`||/transform|perspective/.test(t.willChange)||t.filter!==`none`||t.contain===`paint`||`backdropFilter`in t&&t.backdropFilter!==`none`||`WebkitBackdropFilter`in t&&t.WebkitBackdropFilter!==`none`}var BR=new WeakMap;function VR(e){let{triggerRef:t,isOpen:n,onClose:r}=e;(0,x.useEffect)(()=>!n||r===null?void 0:FS(VS(t.current),`scroll`,e=>{let n=K(e);if(!t.current||n instanceof Node&&!zS(n,t.current)||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return;let i=r||BR.get(t.current);i&&i()},!0),[n,r,t])}function HR(){return window.ResizeObserver!==void 0}function UR(e){let{ref:t,box:n,onResize:r}=e,i=Kw(r);(0,x.useEffect)(()=>{let e=t?.current;if(e){if(HR()){let t=new window.ResizeObserver(e=>{e.length&&i()});return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}return window.addEventListener(`resize`,i,!1),()=>{window.removeEventListener(`resize`,i,!1)}}},[t,n])}var WR=typeof document<`u`?window.visualViewport:null;function GR(e){let{direction:t}=iT(),{arrowSize:n,targetRef:r,overlayRef:i,arrowRef:a,scrollRef:o=i,placement:s=`bottom`,containerPadding:c=12,shouldFlip:l=!0,boundaryElement:u=typeof document<`u`?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:m=!0,onClose:h,maxHeight:g,arrowBoundaryOffset:_=0,getTargetRect:v}=e,[y,b]=(0,x.useState)(null),S=[p,s,i.current,r.current,a?.current,o.current,c,l,u,d,f,m,t,g,_,n],C=(0,x.useRef)(WR?.scale);(0,x.useEffect)(()=>{m&&(C.current=WR?.scale)},[m]);let w=(0,x.useCallback)(()=>{if(p===!1||!m||!i.current||!r.current||!u||WR?.scale!==C.current)return;let e=null;if(o.current&&HS(o.current)){let t=BS()?.getBoundingClientRect(),n=o.current.getBoundingClientRect();e={type:`top`,offset:(t?.top??0)-n.top},e.offset>n.height/2&&(e.type=`bottom`,e.offset=(t?.bottom??0)-n.bottom)}let h=i.current;!g&&i.current&&(h.style.top=`0px`,h.style.bottom=``,h.style.maxHeight=(window.visualViewport?.height??window.innerHeight)+`px`);let y=PR({placement:qR(s,t),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:c,shouldFlip:l,boundaryElement:u,offset:d,crossOffset:f,maxHeight:g,arrowSize:n??(a?.current?FR(a.current,!0).width:0),arrowBoundaryOffset:_,targetRect:v?.(r.current)});if(!y.position)return;h.style.top=``,h.style.bottom=``,h.style.left=``,h.style.right=``,Object.keys(y.position).forEach(e=>h.style[e]=y.position[e]+`px`),h.style.maxHeight=y.maxHeight==null?``:y.maxHeight+`px`;let x=BS();if(e&&x&&o.current){let t=x.getBoundingClientRect(),n=o.current.getBoundingClientRect(),r=t[e.type]-n[e.type];o.current.scrollTop+=r-e.offset}b(y)},S);qx(w,S),KR(w),UR({ref:i,onResize:w}),UR({ref:r,onResize:w});let T=(0,x.useRef)(!1);qx(()=>{let e,t=()=>{T.current=!0,clearTimeout(e),e=setTimeout(()=>{T.current=!1},500),w()},n=()=>{T.current&&t()};WR?.addEventListener(`resize`,t),WR?.addEventListener(`scroll`,n);let r=FS(VS(window),`scroll`,n);return()=>{WR?.removeEventListener(`resize`,t),WR?.removeEventListener(`scroll`,n),r()}},[w]);let E=(0,x.useCallback)(()=>{T.current||h?.()},[h,T]);return VR({triggerRef:r,isOpen:m,onClose:h&&E}),{overlayProps:{style:{position:y?`absolute`:`fixed`,top:y?void 0:0,left:y?void 0:0,zIndex:1e5,...y?.position,maxHeight:y?.maxHeight??`100vh`}},placement:y?.placement??null,triggerAnchorPoint:y?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":`true`,role:`presentation`,style:{left:y?.arrowOffsetLeft,top:y?.arrowOffsetTop}},updatePosition:w}}function KR(e){qx(()=>(window.addEventListener(`resize`,e,!1),()=>{window.removeEventListener(`resize`,e,!1)}),[e])}function qR(e,t){return t===`rtl`?e.replace(`start`,`right`).replace(`end`,`left`):e.replace(`start`,`left`).replace(`end`,`right`)}function JR(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=(0,x.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=Kw(e=>{n&&YR(e,t)&&(i&&i(e),a.current.isPointerDown=!0)}),s=Kw(e=>{n&&n(e)});(0,x.useEffect)(()=>{let e=a.current;if(r)return;let n=t.current,i=kS(n);if(typeof PointerEvent<`u`){let n=n=>{e.isPointerDown&&YR(n,t)&&s(n),e.isPointerDown=!1};return i.addEventListener(`pointerdown`,o,!0),i.addEventListener(`click`,n,!0),()=>{i.removeEventListener(`pointerdown`,o,!0),i.removeEventListener(`click`,n,!0)}}},[t,r])}function YR(e,t){if(e.button>0)return!1;let n=K(e);if(n){let e=n.ownerDocument;if(!e||!zS(e.documentElement,n)||n.closest(`[data-react-aria-top-layer]`))return!1}return t.current?!e.composedPath().includes(t.current):!1}var XR=[];function ZR(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:s}=e,c=(0,x.useRef)(void 0);(0,x.useEffect)(()=>{if(i&&!XR.includes(t))return XR.push(t),()=>{let e=XR.indexOf(t);e>=0&&XR.splice(e,1)}},[i,t]);let l=()=>{XR[XR.length-1]===t&&n&&n()},u=e=>{let n=XR[XR.length-1];c.current=n,(!s||s(K(e)))&&n===t&&e.stopPropagation()},d=e=>{(!s||s(K(e)))&&(XR[XR.length-1]===t&&e.stopPropagation(),c.current===t&&l()),c.current=void 0},{keyboardProps:f}=oE({shortcuts:{Escape:()=>{if(!o)l();else return!1}}});JR({ref:t,onInteractOutside:a&&i?d:void 0,onInteractOutsideStart:u});let{focusWithinProps:p}=dD({isDisabled:!r,onBlurWithin:e=>{e.relatedTarget&&!Ote(e.relatedTarget)&&(!s||s(e.relatedTarget))&&n?.()}});return{overlayProps:{...f,...p},underlayProps:{}}}var QR=200,$R=50,ez=600,tz=new WeakMap,nz=new Set,rz=new Set;function iz(e,t){let n=Gw();if(e!==n||t.aborted)for(let e of rz)e(n),rz.delete(e);if(!e&&n&&_C()&&!t.aborted)window.clearInterval(tz.get(window)),tz.set(window,az(QR));else{if(e!==n||t.aborted)for(let e of nz)e(n),nz.delete(e);(rz.size+nz.size<=0||t.aborted)&&(window.clearInterval(tz.get(window)),tz.delete(window))}}function az(e=ez){return window.setInterval(iz,$R,Gw(),AbortSignal.timeout(e))}function oz(e){if(!Hw())return e(!1),()=>{};let t=window.requestAnimationFrame(()=>{t=window.requestAnimationFrame(()=>{let t=Uw(document.hasFocus()?BS():null);if(Gw()===t||Gw()&&!t)return e(t);rz.add(e),tz.has(window)||tz.set(window,az())})});return()=>{window.cancelAnimationFrame(t),rz.delete(e)}}function sz(e){if(!Hw())return e(!1),()=>{};let t=window.requestAnimationFrame(()=>{t=window.requestAnimationFrame(()=>{let t=Uw(document.hasFocus()?BS():null);if(Gw()===t)return e(t);nz.add(e),tz.has(window)||tz.set(window,az())})});return()=>{window.cancelAnimationFrame(t),nz.delete(e)}}var cz=typeof document<`u`&&window.visualViewport,lz=0,uz;function dz(e={}){let{isDisabled:t,UNSTABLE_overrideFocus:n}=e;qx(()=>{if(!t)return lz++,lz===1&&(uz=hC()&&_C()?pz():fz(n)),()=>{lz--,lz===0&&uz()}},[t,n])}function fz(e){let t=window.innerWidth-document.documentElement.clientWidth;return Kx(t>0&&(`scrollbarGutter`in document.documentElement.style?IS(document.documentElement,`scrollbar-gutter`,`stable`):IS(document.documentElement,`padding-right`,`${t}px`)),IS(document.documentElement,`overflow`,`hidden`),e&&hz(),e&&Hw()&&mz())}function pz(){let e=IS(document.documentElement,`overflow`,`hidden`),t,n=!1,r=e=>{let r=K(e);t=MA(r,!0)?r:NA(r,!0),n=!1;let i=r.ownerDocument.defaultView.getSelection();i&&!i.isCollapsed&&i.containsNode(r,!0)&&(n=!0),e.composedPath().some(e=>e instanceof HTMLInputElement&&e.type===`range`)&&(n=!0),`selectionStart`in r&&`selectionEnd`in r&&r.selectionStart<r.selectionEnd&&r.ownerDocument.activeElement===r&&(n=!0)},i=document.createElement(`style`),a=YE();a&&(i.nonce=a),i.textContent=`@layer {
70
+ * {
71
+ overscroll-behavior: contain;
72
+ }
73
+ }`,document.head.prepend(i);let o=e=>{e.touches.length===2||n||(!t||t===document.documentElement||t===document.body||t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth)&&e.preventDefault()},s=hz(),c=Kx(FS(document,`touchstart`,r,{passive:!1,capture:!0}),FS(document,`touchmove`,o,{passive:!1,capture:!0}),mz());return()=>{e(),c(),i.remove(),s()}}function mz(){return FS(document,`blur`,e=>{let t=K(e),n=e.relatedTarget;n&&Uw(n)?n.focus():n||(t.parentElement?.closest(`[tabindex]`))?.focus({preventScroll:!0})},!0)}function hz(){let e=HTMLElement.prototype.focus;return Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(t){if(e.call(this,{...t,preventScroll:!0}),!t||!t.preventScroll){let e=()=>{BS()===this&&gz(this)};oz(t=>t?e():sz(()=>e()))}}}),()=>{Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:e})}}function gz(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t&&n.isConnected;){let e=NA(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top<t.top||r.bottom>t.top+n.clientHeight){let n=t.bottom;cz&&(n=Math.min(n,cz.offsetTop+cz.height));let i=r.top-t.top-((n-t.top)/2-r.height/2);e.scrollTo({top:Math.max(0,Math.min(e.scrollHeight-e.clientHeight,e.scrollTop+i)),behavior:`smooth`})}}n=e.parentElement}}function _z(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:a,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s,...c}=e,l=c.trigger===`SubmenuTrigger`,{overlayProps:u,underlayProps:d}=ZR({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||l,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s},i??r),{overlayProps:f,arrowProps:p,placement:m,triggerAnchorPoint:h}=GR({...c,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!l?t.close:null,getTargetRect:c.getTargetRect??(t.point?()=>new DOMRect(t.point.x,t.point.y,0,0):void 0)});dz({isDisabled:a||!t.isOpen}),(0,x.useEffect)(()=>{if(t.isOpen&&r.current)return a?_R(i?.current??r.current):gR([i?.current??r.current],{shouldUseInert:!0})},[a,t.isOpen,r,i]);let{focusWithinProps:g}=dD(e);return{popoverProps:W(u,f,g),arrowProps:p,underlayProps:d,placement:m,triggerAnchorPoint:h}}var vz={};vz={dismiss:`تجاهل`};var yz={};yz={dismiss:`Отхвърляне`};var bz={};bz={dismiss:`Odstranit`};var xz={};xz={dismiss:`Luk`};var Sz={};Sz={dismiss:`Schließen`};var Cz={};Cz={dismiss:`Απόρριψη`};var wz={};wz={dismiss:`Dismiss`};var Tz={};Tz={dismiss:`Descartar`};var Ez={};Ez={dismiss:`Lõpeta`};var Dz={};Dz={dismiss:`Hylkää`};var Oz={};Oz={dismiss:`Rejeter`};var kz={};kz={dismiss:`התעלם`};var Az={};Az={dismiss:`Odbaci`};var jz={};jz={dismiss:`Elutasítás`};var Mz={};Mz={dismiss:`Ignora`};var Nz={};Nz={dismiss:`閉じる`};var Pz={};Pz={dismiss:`무시`};var Fz={};Fz={dismiss:`Atmesti`};var Iz={};Iz={dismiss:`Nerādīt`};var Lz={};Lz={dismiss:`Lukk`};var Rz={};Rz={dismiss:`Negeren`};var zz={};zz={dismiss:`Zignoruj`};var Bz={};Bz={dismiss:`Descartar`};var Vz={};Vz={dismiss:`Dispensar`};var Hz={};Hz={dismiss:`Revocare`};var Uz={};Uz={dismiss:`Пропустить`};var Wz={};Wz={dismiss:`Zrušiť`};var Gz={};Gz={dismiss:`Opusti`};var Kz={};Kz={dismiss:`Odbaci`};var qz={};qz={dismiss:`Avvisa`};var Jz={};Jz={dismiss:`Kapat`};var Yz={};Yz={dismiss:`Скасувати`};var Xz={};Xz={dismiss:`取消`};var Zz={};Zz={dismiss:`關閉`};var Qz={};Qz={"ar-AE":vz,"bg-BG":yz,"cs-CZ":bz,"da-DK":xz,"de-DE":Sz,"el-GR":Cz,"en-US":wz,"es-ES":Tz,"et-EE":Ez,"fi-FI":Dz,"fr-FR":Oz,"he-IL":kz,"hr-HR":Az,"hu-HU":jz,"it-IT":Mz,"ja-JP":Nz,"ko-KR":Pz,"lt-LT":Fz,"lv-LV":Iz,"nb-NO":Lz,"nl-NL":Rz,"pl-PL":zz,"pt-BR":Bz,"pt-PT":Vz,"ro-RO":Hz,"ru-RU":Uz,"sk-SK":Wz,"sl-SI":Gz,"sr-SP":Kz,"sv-SE":qz,"tr-TR":Jz,"uk-UA":Yz,"zh-CN":Xz,"zh-TW":Zz};function $z(e){return e&&e.__esModule?e.default:e}function eB(e){let{onDismiss:t,...n}=e,r=Jw(n,hT($z(Qz),`@react-aria/overlays`).format(`dismiss`)),i=()=>{t&&t()};return x.createElement(UA,null,x.createElement(`button`,{...r,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}var tB=x.forwardRef(({children:e,...t},n)=>{let r=(0,x.useRef)(!1),i=(0,x.useContext)(XE),a=W(i||{},{...t,register(){r.current=!0,i&&i.register()}});return a.ref=gS(n||i?.ref),sE(i,a.ref),(0,x.useEffect)(()=>{r.current||=!0},[]),x.createElement(XE.Provider,{value:a},e)});function nB({children:e}){let t=(0,x.useMemo)(()=>({register:()=>{}}),[]);return x.createElement(XE.Provider,{value:t},e)}var rB=(0,x.createContext)({});function iB(e){let{getContainer:t}=e,{getContainer:n}=aB();return x.createElement(rB.Provider,{value:{getContainer:t===null?void 0:t??n}},e.children)}function aB(){return(0,x.useContext)(rB)??{}}var oB=x.createContext(null);function sB(e){let t=aS(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=(0,x.useState)(!1),o=(0,x.useMemo)(()=>({contain:i,setContain:a}),[i,a]),{getContainer:s}=aB();if(!e.portalContainer&&s&&(n=s()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=x.createElement(JI,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},c)),c=x.createElement(oB.Provider,{value:o},x.createElement(nB,null,x.createElement(cE.Provider,{value:null},c))),vE.createPortal(c,n)}function cB(){let e=(0,x.useContext)(oB)?.setContain;qx(()=>{e?.(!0)},[e])}function lB(e){let[t,n]=yT(e.isOpen,e.defaultOpen||!1,e.onOpenChange),[r,i]=(0,x.useState)(null);return{isOpen:t,setOpen:n,open:(0,x.useCallback)(()=>{n(!0)},[n]),close:(0,x.useCallback)(()=>{n(!1)},[n]),toggle:(0,x.useCallback)(()=>{n(!t)},[n,t]),point:r,setPoint:i}}function uB(e,t=!0,n){let[r,i]=(0,x.useState)(!0),a=r&&t;return qx(()=>{if(!t&&e.current)return Kx(IS(e.current,`opacity`,`0`),IS(e.current,`clip`,`rect(0 0 0 0)`),IS(e.current,`clip-path`,`inset(50%)`),IS(e.current,`mask-image`,`linear-gradient(#0000, #0000)`))},[e,t]),qx(()=>{if(a&&e.current&&`getAnimations`in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,a]),fB(e,a,n,(0,x.useCallback)(()=>i(!1),[])),a}function dB(e,t,n){let[r,i]=(0,x.useState)(t?`open`:`closed`);switch(r){case`open`:t||i(`exiting`);break;case`closed`:case`exiting`:t&&i(`open`)}let a=r===`exiting`;return fB(e,a,n,(0,x.useCallback)(()=>{i(e=>e===`exiting`?`closed`:e)},[])),a}function fB(e,t,n,r){let i=(0,x.useRef)(null),a=Kw(n);qx(()=>{if(t&&e.current&&i.current!==t){if(i.current=t,!(`getAnimations`in e.current)){r();return}let n=a?.(e.current),o=e.current.getAnimations().filter(e=>(typeof DocumentTimeline>`u`||e.timeline instanceof DocumentTimeline)&&e.playState===`running`);if(o.length===0&&!n){r();return}Promise.all([n,...o.map(e=>e.finished)]).then(()=>{(0,vE.flushSync)(()=>{r()})}).catch(()=>{})}i.current=t},[e,t,r])}var pB=(0,x.createContext)(null),mB=(0,x.createContext)(null),hB=(0,x.forwardRef)(function(e,t){[e,t]=SS(e,t,pB);let n=(0,x.useContext)(EV),r=lB(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=dB(t,i.isOpen),o=e.isExiting||!e.shouldSkipAnimation&&a||!1,s=hE(),{direction:c}=iT();if(s){let t=e.children;return typeof t==`function`&&(t=t({trigger:e.trigger||null,placement:`bottom`,isEntering:!1,isExiting:!1,defaultChildren:null})),x.createElement(x.Fragment,null,t)}return i&&!i.isOpen&&!o?null:x.createElement(gB,{...e,triggerRef:e.triggerRef,state:i,popoverRef:t,isExiting:o,dir:c})});function gB({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...i}){let a=(0,x.useRef)(null),o=(0,x.useRef)(null),s=(0,x.useContext)(mB),c=s&&i.trigger===`SubmenuTrigger`,[l,u]=(0,x.useState)(!1),{popoverProps:d,underlayProps:f,arrowProps:p,placement:m,triggerAnchorPoint:h}=_z({...i,offset:i.offset??8,arrowRef:a,groupRef:c?s:o},e),g=i.popoverRef,_=uB(g,!!m&&l),v=i.isEntering||!i.shouldSkipAnimation&&_||!1,y=yS({...i,defaultClassName:`react-aria-Popover`,values:{trigger:i.trigger||null,placement:m,isEntering:v,isExiting:t}}),b=!i.isNonModal||i.trigger===`SubmenuTrigger`||i.trigger===`PreviewTrigger`,[S,C]=(0,x.useState)(i.trigger===`PreviewTrigger`);qx(()=>{g.current&&C(b&&!g.current.querySelector(`[role=dialog]`))},[g,b]),(0,x.useEffect)(()=>{S&&i.trigger!==`PreviewTrigger`&&(i.trigger!==`SubmenuTrigger`||ZC()!==`pointer`)&&g.current&&!HS(g.current)&&GT(g.current)},[S,g,i.trigger]);let w=(0,x.useMemo)(()=>{let e=y.children;for(let t of[pB,...r??[]])e=x.createElement(t.Provider,{value:null},e);return e},[y.children,r]),[T,E]=(0,x.useState)(null),D=(0,x.useCallback)(()=>{i.triggerRef.current&&E(i.triggerRef.current.getBoundingClientRect().width+`px`)},[i.triggerRef]);qx(D,[D]),UR({ref:y.style?.[`--trigger-width`]?void 0:i.triggerRef,onResize:D});let O={...d.style,"--trigger-anchor-point":h?`${h.x}px ${h.y}px`:void 0,...y.style,"--trigger-width":y.style?.[`--trigger-width`]||T};qx(()=>oz(()=>u(!0)),[]);let k=x.createElement(G.div,{...W(q(i,{global:!0}),d),...y,id:S?i.id:void 0,role:S?`dialog`:void 0,tabIndex:S?-1:void 0,"aria-label":i[`aria-label`],"aria-labelledby":i[`aria-labelledby`],ref:g,slot:i.slot||void 0,style:O,dir:i.dir,"data-trigger":i.trigger,"data-placement":m,"data-entering":v||void 0,"data-exiting":t||void 0},!i.isNonModal&&x.createElement(eB,{onDismiss:e.close}),x.createElement(dR.Provider,{value:{...p,placement:m,ref:a}},w),x.createElement(eB,{onDismiss:e.close}));return c?x.createElement(sB,{...i,shouldContainFocus:S&&i.trigger!==`PreviewTrigger`,isExiting:t,portalContainer:n??s?.current??void 0},k):x.createElement(sB,{...i,shouldContainFocus:S&&i.trigger!==`PreviewTrigger`,isExiting:t,portalContainer:n},!i.isNonModal&&e.isOpen&&x.createElement(`div`,{"data-testid":`underlay`,...f,style:{position:`fixed`,inset:0}}),x.createElement(`div`,{ref:o,style:{display:`contents`}},x.createElement(mB.Provider,{value:o},k)))}var _B=(0,x.createContext)({}),vB={};vB={longPressMessage:`اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة`};var yB={};yB={longPressMessage:`Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто`};var bB={};bB={longPressMessage:`Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku`};var xB={};xB={longPressMessage:`Langt tryk eller tryk på Alt + pil ned for at åbne menuen`};var SB={};SB={longPressMessage:`Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen`};var CB={};CB={longPressMessage:`Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού`};var wB={};wB={longPressMessage:`Long press or press Alt + ArrowDown to open menu`};var TB={};TB={longPressMessage:`Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú`};var EB={};EB={longPressMessage:`Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool`};var DB={};DB={longPressMessage:`Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli`};var OB={};OB={longPressMessage:`Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu.`};var kB={};kB={longPressMessage:`לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט`};var AB={};AB={longPressMessage:`Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika`};var jB={};jB={longPressMessage:`Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához`};var MB={};MB={longPressMessage:`Premi a lungo o premi Alt + Freccia giù per aprire il menu`};var NB={};NB={longPressMessage:`長押しまたは Alt+下矢印キーでメニューを開く`};var PB={};PB={longPressMessage:`길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기`};var FB={};FB={longPressMessage:`Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“.`};var IB={};IB={longPressMessage:`Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa`};var LB={};LB={longPressMessage:`Langt trykk eller trykk Alt + PilNed for å åpne menyen`};var RB={};RB={longPressMessage:`Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen`};var zB={};zB={longPressMessage:`Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu`};var BB={};BB={longPressMessage:`Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu`};var VB={};VB={longPressMessage:`Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu`};var HB={};HB={longPressMessage:`Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul`};var UB={};UB={longPressMessage:`Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню`};var WB={};WB={longPressMessage:`Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol`};var GB={};GB={longPressMessage:`Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol`};var KB={};KB={longPressMessage:`Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni`};var qB={};qB={longPressMessage:`Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn`};var JB={};JB={longPressMessage:`Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın`};var YB={};YB={longPressMessage:`Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню`};var XB={};XB={longPressMessage:`长按或按 Alt + 向下方向键以打开菜单`};var ZB={};ZB={longPressMessage:`長按或按 Alt+向下鍵以開啟功能表`};var QB={};QB={"ar-AE":vB,"bg-BG":yB,"cs-CZ":bB,"da-DK":xB,"de-DE":SB,"el-GR":CB,"en-US":wB,"es-ES":TB,"et-EE":EB,"fi-FI":DB,"fr-FR":OB,"he-IL":kB,"hr-HR":AB,"hu-HU":jB,"it-IT":MB,"ja-JP":NB,"ko-KR":PB,"lt-LT":FB,"lv-LV":IB,"nb-NO":LB,"nl-NL":RB,"pl-PL":zB,"pt-BR":BB,"pt-PT":VB,"ro-RO":HB,"ru-RU":UB,"sk-SK":WB,"sl-SI":GB,"sr-SP":KB,"sv-SE":qB,"tr-TR":JB,"uk-UA":YB,"zh-CN":XB,"zh-TW":ZB};function $B(e){let{onContextMenu:t}=e,n=(0,x.useRef)(!1),{longPressProps:r}=CL({onLongPressStart(){n.current=!1},onLongPress(e){n.current?n.current=!1:t?.({target:e.target,x:e.x,y:e.y})}});return t?{contextMenuProps:W(hC()?r:{},{onContextMenu(e){e.stopPropagation(),e.preventDefault(),n.current=!0;let r=e.currentTarget.getBoundingClientRect();t({target:e.currentTarget,x:e.clientX-r.x,y:e.clientY-r.y})},onKeyDown(e){if(fC()&&e.ctrlKey&&e.key===`Enter`){n.current=!1;let r=e.currentTarget;e.stopPropagation(),setTimeout(()=>{if(n.current)n.current=!1;else{let e=r.getBoundingClientRect();t({target:r,x:e.width/2,y:e.height/2})}},10)}}})}:{contextMenuProps:{}}}function eV(e,t,n){let{type:r}=e,{isOpen:i}=t;(0,x.useEffect)(()=>{n&&n.current&&BR.set(n.current,t.close)});let a;r===`menu`?a=!0:r===`listbox`&&(a=`listbox`);let o=dS();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?o:void 0,onPress:t.toggle},overlayProps:{id:o}}}function tV(e){return e&&e.__esModule?e.default:e}function nV(e,t,n){let{type:r=`menu`,isDisabled:i,trigger:a=`press`}=e,o=dS(),{triggerProps:s,overlayProps:c}=eV({type:r},t,n),l=(e,n,r=`first`)=>{if(!e||n.isDefaultPrevented())return!1;t.toggle(r)},{keyboardProps:u}=oE({isDisabled:i,shortcuts:{Enter:e=>l(a!==`longPress`,e,`first`)," ":e=>l(a!==`longPress`,e,`first`),ArrowDown:e=>l(a!==`longPress`,e,`first`),ArrowUp:e=>l(a!==`longPress`,e,`last`),"Alt+Enter":e=>l(a===`longPress`,e,`first`),"Alt+ ":e=>l(a===`longPress`,e,`first`),"Alt+ArrowDown":e=>l(!0,e,`first`),"Alt+ArrowUp":e=>l(!0,e,`last`)}}),d=hT(tV(QB),`@react-aria/menu`),{longPressProps:f}=CL({isDisabled:i||a!==`longPress`,accessibilityDescription:d.format(`longPressMessage`),onLongPressStart(){t.close()},onLongPress(){t.open(`first`)}}),p={preventFocusOnPress:!0,onPressStart(e){e.pointerType!==`touch`&&e.pointerType!==`keyboard`&&!i&&(qS(e.target),t.open(e.pointerType===`virtual`?`first`:null))},onPress(e){e.pointerType===`touch`&&!i&&(qS(e.target),t.toggle())}};delete s.onPress;let{contextMenuProps:m}=$B({onContextMenu(e){let n=e.target.getBoundingClientRect();t.setPoint({x:n.x+e.x,y:n.y+e.y}),t.open()}});(0,x.useEffect)(()=>{if(t.isOpen&&a===`contextMenu`){let e=e=>{(e.button===2||e.button===0&&e.ctrlKey===!0)&&K(e)===document.body&&t.close()};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)}},[t,a]);let h;if(a===`press`)h={...p,...u};else if(a===`longPress`)h={...f,...u};else if(a===`contextMenu`){h=m;let{"aria-haspopup":e,"aria-expanded":t,"aria-controls":n,...r}=s;s=r}return{menuTriggerProps:{...s,...h,id:o},menuProps:{...c,"aria-labelledby":o,autoFocus:t.focusStrategy||!0,onClose:t.close}}}var rV=new WeakMap;function iV(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:a,...o}=e;!e[`aria-label`]&&e[`aria-labelledby`];let s=q(e,{labelable:!0}),{listProps:c}=SL({...o,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:`override`});return rV.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:W(s,{onKeyDown:i,onKeyUp:a},{role:`menu`,...c,onKeyDown:t=>{(t.key!==`Escape`||e.shouldUseVirtualFocus)&&c.onKeyDown?.(t)}})}}function aV(e,t,n){let{id:r,key:i,closeOnSelect:a,shouldCloseOnSelect:o,isVirtualized:s,"aria-haspopup":c,onPressStart:l,onPressUp:u,onPress:d,onPressChange:f,onPressEnd:p,onClick:m,onHoverStart:h,onHoverChange:g,onHoverEnd:_,onKeyDown:v,onKeyUp:y,onFocus:b,onFocusChange:S,onBlur:C,selectionManager:w=t.selectionManager}=e,T=!!c,E=T&&e[`aria-expanded`]===`true`,D=e.isDisabled??w.isDisabled(i),O=e.isSelected??w.isSelected(i),k=rV.get(t),A=t.collection.getItem(i),j=e.onClose||k.onClose,M=wC(),N=()=>{if(!T&&(A?.props?.onAction?A.props.onAction():e.onAction&&e.onAction(i),k.onAction)){let e=k.onAction;e(i,A?.value)}},P=`menuitem`;T||(w.selectionMode===`single`?P=`menuitemradio`:w.selectionMode===`multiple`&&(P=`menuitemcheckbox`));let F=pS(),ee=pS(),I=pS(),te={id:r,"aria-disabled":D||void 0,role:P,"aria-label":e[`aria-label`],"aria-labelledby":F,"aria-describedby":[e[`aria-describedby`],ee,I].filter(Boolean).join(` `)||void 0,"aria-controls":e[`aria-controls`],"aria-haspopup":c,"aria-expanded":e[`aria-expanded`]};if(w.selectionMode!==`none`&&!T&&(te[`aria-checked`]=O),s){let e=Number(A?.index);te[`aria-posinset`]=Number.isNaN(e)?void 0:e+1,te[`aria-setsize`]=PL(t.collection)}let ne=(0,x.useRef)(!1),re=e=>{f?.(e),ne.current=e},ie=(0,x.useRef)(null),ae=e=>{e.pointerType!==`keyboard`&&(ie.current={pointerType:e.pointerType}),e.pointerType===`mouse`&&(ne.current||e.target.click()),u?.(e)},oe=e=>{m?.(e),N(),jC(e,M,A.props.href,A?.props.routerOptions);let t=ie.current?.pointerType===`keyboard`?ie.current?.key===`Enter`||w.selectionMode===`none`||w.isLink(i):w.selectionMode!==`multiple`||w.isLink(i);t=o??a??t,j&&!T&&t&&j(),ie.current=null},{itemProps:se,isFocused:ce}=wL({id:r,selectionManager:w,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:`none`,shouldUseVirtualFocus:k.shouldUseVirtualFocus}),{pressProps:le,isPressed:ue}=nD({onPressStart:l,onPress:d,onPressUp:ae,onPressChange:re,onPressEnd:p,isDisabled:D}),{hoverProps:de}=vD({isDisabled:D,onHoverStart(e){!XC()&&!(E&&c)&&(w.setFocused(!0),w.setFocusedKey(i)),h?.(e)},onHoverChange:g,onHoverEnd:_}),{keyboardProps:fe}=oE({shortcuts:{" ":e=>{ie.current={pointerType:`keyboard`,key:` `},K(e).click(),QC(`keyboard`)},Enter:e=>{ie.current={pointerType:`keyboard`,key:`Enter`};let t=K(e);if(t.tagName!==`A`)t.click(),QC(`keyboard`);else return QC(`keyboard`),{shouldPreventDefault:!1,shouldContinuePropagation:!1}}},onKeyDown:v,onKeyUp:y}),{focusableProps:pe}=dE({onBlur:C,onFocus:b,onFocusChange:S},n),L=q(A?.props);delete L.id;let me=AC(A?.props);return{menuItemProps:{...te,...W(L,me,T?{onFocus:se.onFocus,"data-collection":se[`data-collection`],"data-key":se[`data-key`]}:se,le,de,fe,pe,k.shouldUseVirtualFocus||T?{onMouseDown:e=>e.preventDefault()}:void 0,D?void 0:{onClick:oe}),tabIndex:se.tabIndex!=null&&E&&!k.shouldUseVirtualFocus?-1:se.tabIndex},labelProps:{id:F},descriptionProps:{id:ee},keyboardShortcutProps:{id:I},isFocused:ce,isFocusVisible:ce&&w.isFocused&&XC()&&!E,isSelected:O,isPressed:ue,isDisabled:D}}function oV(e){let{heading:t,"aria-label":n}=e,r=dS();return{itemProps:{role:`presentation`},headingProps:t?{id:r,role:`presentation`}:{},groupProps:{role:`group`,"aria-label":n,"aria-labelledby":t?r:void 0}}}function sV(e){let t=lB(e),[n,r]=(0,x.useState)(null),[i,a]=(0,x.useState)([]),o=()=>{a([]),t.close()},s=(e,t)=>{a(n=>t>n.length?n:[...n.slice(0,t),e])},c=(e,t)=>{a(n=>n[t]===e?n.slice(0,t):n)};return{focusStrategy:n,...t,open(e=null){r(e),t.open()},toggle(e=null){r(e),t.toggle()},close(){o()},expandedKeysStack:i,openSubmenu:s,closeSubmenu:c}}var cV=class{constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,t||=new Set;let n=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&(e.type===`section`||t.has(e.key)))for(let t of e.childNodes)n(t)};for(let t of e)n(t);let r=null,i=0;for(let[e,t]of this.keyMap)r?(r.nextKey=e,t.prevKey=r.key):(this.firstKey=e,t.prevKey=void 0),t.type===`item`&&(t.index=i++),r=t,r.nextKey=void 0;this.lastKey=r?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey??null:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}};function lV(e){let{onExpandedChange:t}=e,[n,r]=yT(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),i=RL(e),a=(0,x.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=UL(e,(0,x.useCallback)(e=>new cV(e,{expandedKeys:n}),[n]),null);return(0,x.useEffect)(()=>{i.focusedKey!=null&&!o.getItem(i.focusedKey)&&i.setFocusedKey(null)},[o,i.focusedKey]),{collection:o,expandedKeys:n,disabledKeys:a,toggleKey:e=>{r(uV(n,e))},setExpandedKeys:r,selectionManager:new BL(o,i)}}function uV(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}var dV=(0,x.createContext)(null),fV=(0,x.createContext)(null),pV=(0,x.createContext)(null),mV=(0,x.createContext)(null);function hV(e){let t=sV(e),n=(0,x.useRef)(null),{menuTriggerProps:r,menuProps:i}=nV({...e,type:`menu`},t,n),a=(0,x.useRef)(null);return hE()?null:x.createElement(vS,{values:[[dV,{...i,ref:a}],[EV,t],[pV,t],[pB,{trigger:`MenuTrigger`,triggerRef:n,scrollRef:a,placement:`bottom start`,"aria-labelledby":i[`aria-labelledby`],offset:e.trigger===`contextMenu`?0:void 0}]]},x.createElement(tB,{...r,ref:n,isPressed:t.isOpen},e.children))}var gV=(0,x.createContext)(null);(class extends ET{static{this.type=`submenutrigger`}filter(e,t,n){let r=e.getItem(this.firstChildKey);if(r&&n(r.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}});var _V=(0,x.forwardRef)(function(e,t){return[e,t]=SS(e,t,dV),x.createElement(SE,{content:x.createElement(PE,e)},n=>x.createElement(vV,{props:e,collection:n,menuRef:t}))});function vV({props:e,collection:t,menuRef:n}){[e,n]=SS(e,n,CT);let{filter:r,...i}=e,a=(0,x.useMemo)(()=>r?t.filter(r):t,[t,r]),o=lV({...e,collection:a,children:void 0}),s=(0,x.useContext)(pV),{isVirtualized:c,CollectionRoot:l}=(0,x.useContext)(BE),{menuProps:u}=iV({...e,isVirtualized:c,onClose:e.onClose||s?.close},o,n),d=yS({...e,children:void 0,defaultClassName:`react-aria-Menu`,values:{isEmpty:o.collection.size===0}}),f=null;o.collection.size===0&&e.renderEmptyState&&(f=x.createElement(`div`,{role:`menuitem`,style:{display:`contents`}},e.renderEmptyState()));let p=q(e,{global:!0});return x.createElement(JI,null,x.createElement(G.div,{...W(p,d,u),ref:n,slot:e.slot||void 0,"data-empty":o.collection.size===0||void 0,onScroll:e.onScroll},x.createElement(vS,{values:[[fV,o],[RI,{elementType:`div`}],[IE,{name:`MenuSection`,render:bV}],[gV,{parentMenuRef:n,shouldUseVirtualFocus:i?.shouldUseVirtualFocus}],[SV,{shouldCloseOnSelect:e.shouldCloseOnSelect}],[CT,null],[wT,null],[mV,o.selectionManager],[pV,s??sV({})]]},x.createElement(FI,null,x.createElement(l,{collection:o.collection,persistedKeys:VE(o.selectionManager.focusedKey),scrollRef:n}))),f))}var yV=class extends BL{constructor(e,t){super(e.collection,t),this.parent=e}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}};function bV(e,t,n,r=`react-aria-MenuSection`){let i=(0,x.useContext)(fV),{CollectionBranch:a}=(0,x.useContext)(BE),[o,s]=CS(),{headingProps:c,groupProps:l}=oV({heading:s,"aria-label":n.props[`aria-label`]??void 0}),u=yS({...e,id:void 0,children:void 0,defaultClassName:r,className:n.props?.className,style:n.props?.style,values:void 0}),d=(0,x.useContext)(mV),f=RL(e),p=e.selectionMode==null?d:new yV(d,f),m=xS(SV)?.shouldCloseOnSelect,h=q(e,{global:!0});return delete h.id,x.createElement(G.section,{...W(h,u,l),ref:t},x.createElement(vS,{values:[[MI,{...c,ref:o}],[mV,p],[SV,{shouldCloseOnSelect:e.shouldCloseOnSelect??m}]]},x.createElement(a,{collection:i.collection,parent:n})))}var xV=jE(jT,bV),SV=(0,x.createContext)(null),CV=AE(AT,function(e,t,n){[e,t]=SS(e,t,SV);let r=xS(SV)?.id,i=(0,x.useContext)(fV),a=gS(t),o=(0,x.useContext)(mV),{isVirtualized:s}=(0,x.useContext)(BE),{menuItemProps:c,labelProps:l,descriptionProps:u,keyboardShortcutProps:d,...f}=aV({...e,id:r,key:n.key,selectionManager:o,isVirtualized:s},i,a),{hoverProps:p,isHovered:m}=vD({isDisabled:f.isDisabled}),h=yS({...e,id:void 0,children:n.rendered,defaultClassName:`react-aria-MenuItem`,values:{...f,isHovered:m,isFocusVisible:f.isFocusVisible,selectionMode:o.selectionMode,selectionBehavior:o.selectionBehavior,hasSubmenu:!!e[`aria-haspopup`],isOpen:e[`aria-expanded`]===`true`}}),g=e.href?G.a:G.div,_=q(e,{global:!0});return delete _.id,delete _.onClick,x.createElement(g,{...W(_,h,c,p),ref:a,"data-disabled":f.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-selected":f.isSelected||void 0,"data-selection-mode":o.selectionMode===`none`?void 0:o.selectionMode,"data-has-submenu":!!e[`aria-haspopup`]||void 0,"data-open":e[`aria-expanded`]===`true`||void 0},x.createElement(vS,{values:[[oO,{slots:{[_S]:l,label:l,description:u}}],[_B,d],[II,{isSelected:f.isSelected}]]},h.children))});AE(kT,function(e,t,n){let r=(0,x.useContext)(fV),{isLoading:i,onLoadMore:a,scrollOffset:o,...s}=e,c=(0,x.useRef)(null);qL((0,x.useMemo)(()=>({onLoadMore:a,collection:r?.collection,sentinelRef:c,scrollOffset:o}),[a,o,r?.collection]),c);let l=yS({...s,id:void 0,children:n.rendered,defaultClassName:`react-aria-MenuLoadingIndicator`,values:void 0});return x.createElement(x.Fragment,null,x.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:FL(!0)},x.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:c,style:{position:`absolute`,height:1,width:1}})),i&&l.children&&x.createElement(x.Fragment,null,x.createElement(G.div,{...W(q(e,{global:!0}),{tabIndex:-1}),...l,role:`menuitem`,ref:t},l.children)))});function wV(e,t){let{role:n=`dialog`,isEntering:r}=e,i=pS();i=e[`aria-label`]?void 0:i;let a=pS();a=n===`alertdialog`&&!e[`aria-describedby`]?a:void 0;let o=(0,x.useRef)(!1);(0,x.useEffect)(()=>{if(!r&&t.current&&!HS(t.current)){GT(t.current);let e=setTimeout(()=>{(BS()===t.current||BS()===document.body)&&(o.current=!0,t.current&&(t.current.blur(),GT(t.current)),o.current=!1)},500);return()=>{clearTimeout(e)}}},[t,r]),cB(),(0,x.useRef)(!1),(0,x.useEffect)(()=>{});let s=e[`aria-describedby`]??a;return{dialogProps:{...q(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e[`aria-labelledby`]??i,"aria-describedby":s,onBlur:e=>{o.current&&e.stopPropagation()}},titleProps:{id:i},contentProps:{id:a}}}var TV=(0,x.createContext)(null),EV=(0,x.createContext)(null);function DV(e){let t=sV(e),n=(0,x.useRef)(null),{triggerProps:r,overlayProps:i}=eV({type:`dialog`},t,n);return r.id=dS(),i[`aria-labelledby`]=r.id,hE()?null:x.createElement(vS,{values:[[EV,t],[pV,t],[TV,i],[pB,{trigger:`DialogTrigger`,triggerRef:n,id:i.id,"aria-labelledby":i[`aria-labelledby`]}]]},x.createElement(tB,{...r,ref:n,isPressed:t.isOpen},e.children))}var OV=(0,x.forwardRef)(function(e,t){let n=e[`aria-labelledby`];[e,t]=SS(e,t,TV);let{dialogProps:r,titleProps:i,contentProps:a}=wV({...e,"aria-labelledby":n},t),o=(0,x.useContext)(EV);!r[`aria-label`]&&!r[`aria-labelledby`]&&e[`aria-labelledby`]&&(r[`aria-labelledby`]=e[`aria-labelledby`]);let s=yS({defaultClassName:`react-aria-Dialog`,className:e.className,style:e.style,children:e.children,values:{close:o?.close||(()=>{})}}),c=q(e,{global:!0});return x.createElement(G.section,{...W(c,s,r),render:e.render,ref:t,slot:e.slot||void 0},x.createElement(vS,{values:[[iO,{slots:{[_S]:{},title:{...i,level:2}}}],[oO,{slots:{[_S]:{},description:a}}],[eO,{slots:{[_S]:{},close:{onPress:()=>o?.close()}}}]]},s.children))});function kV(e){let t=xL({usage:`search`,...e}),n=(0,x.useCallback)((e,n)=>n.length===0||(e=e.normalize(`NFC`),n=n.normalize(`NFC`),t.compare(e.slice(0,n.length),n)===0),[t]),r=(0,x.useCallback)((e,n)=>n.length===0||(e=e.normalize(`NFC`),n=n.normalize(`NFC`),t.compare(e.slice(-n.length),n)===0),[t]),i=(0,x.useCallback)((e,n)=>{if(n.length===0)return!0;e=e.normalize(`NFC`),n=n.normalize(`NFC`);let r=0,i=n.length;for(;r+i<=e.length;r++){let a=e.slice(r,r+i);if(t.compare(n,a)===0)return!0}return!1},[t]);return(0,x.useMemo)(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function AV(e={}){let{locale:t}=iT();return(0,x.useMemo)(()=>new Intl.ListFormat(t,e),[t,e])}var jV=[`day`,`month`,`year`],MV={hour:1,minute:2,second:3};function NV(e,t){let{autoComplete:n,isDisabled:r,name:i}=e,{visuallyHiddenProps:a}=HA({style:{position:`fixed`,top:0,left:0}}),o=60;t.granularity===`second`?o=1:t.granularity===`hour`&&(o=3600);let s=``;t.value&&(s=t.granularity===`day`?LO(t.value).toString():RO(`timeZone`in t.value?UO(t.value):t.value).toString());let c=t.granularity===`day`?`date`:`datetime-local`,l=[`hour`,`minute`,`second`],u=0;return l.includes(t.granularity)&&(u=MV[t.granularity],l=l.slice(0,u)),{containerProps:{...a,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":`aria-hidden-focus`},inputProps:{tabIndex:-1,autoComplete:n,disabled:r,type:c,form:``,name:i,step:o,value:s,onChange:e=>{let n=K(e).value.toString();if(n)try{let e=hte(n);if(t.granularity===`day`&&(e=sk(n)),`setSegment`in t)for(let n in e)jV.includes(n)&&t.setSegment(n,e[n]),l.includes(n)&&t.setSegment(n,e[n]);t.setValue(e)}catch{}}}}}function PV(e){let{state:t}=e,{containerProps:n,inputProps:r}=NV({...e},t);return x.createElement(`div`,{...n,"data-testid":`hidden-dateinput-container`},x.createElement(`input`,r))}var FV={};FV={calendar:`التقويم`,day:`يوم`,dayPeriod:`ص/م`,endDate:`تاريخ الانتهاء`,era:`العصر`,hour:`الساعات`,minute:`الدقائق`,month:`الشهر`,second:`الثواني`,selectedDateDescription:e=>`\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{645}\u{62D}\u{62F}\u{62F}: ${e.date}`,selectedRangeDescription:e=>`\u{627}\u{644}\u{645}\u{62F}\u{649} \u{627}\u{644}\u{632}\u{645}\u{646}\u{64A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.startDate} \u{625}\u{644}\u{649} ${e.endDate}`,selectedTimeDescription:e=>`\u{627}\u{644}\u{648}\u{642}\u{62A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.time}`,startDate:`تاريخ البدء`,timeZoneName:`التوقيت`,weekday:`اليوم`,year:`السنة`};var IV={};IV={calendar:`Календар`,day:`ден`,dayPeriod:`пр.об./сл.об.`,endDate:`Крайна дата`,era:`ера`,hour:`час`,minute:`минута`,month:`месец`,second:`секунда`,selectedDateDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.startDate} \u{434}\u{43E} ${e.endDate}`,selectedTimeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{43E} \u{432}\u{440}\u{435}\u{43C}\u{435}: ${e.time}`,startDate:`Начална дата`,timeZoneName:`часова зона`,weekday:`ден от седмицата`,year:`година`};var LV={};LV={calendar:`Kalendář`,day:`den`,dayPeriod:`část dne`,endDate:`Konečné datum`,era:`letopočet`,hour:`hodina`,minute:`minuta`,month:`měsíc`,second:`sekunda`,selectedDateDescription:e=>`Vybran\xe9 datum: ${e.date}`,selectedRangeDescription:e=>`Vybran\xe9 obdob\xed: ${e.startDate} a\u{17E} ${e.endDate}`,selectedTimeDescription:e=>`Vybran\xfd \u{10D}as: ${e.time}`,startDate:`Počáteční datum`,timeZoneName:`časové pásmo`,weekday:`den v týdnu`,year:`rok`};var RV={};RV={calendar:`Kalender`,day:`dag`,dayPeriod:`AM/PM`,endDate:`Slutdato`,era:`æra`,hour:`time`,minute:`minut`,month:`måned`,second:`sekund`,selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:`Startdato`,timeZoneName:`tidszone`,weekday:`ugedag`,year:`år`};var zV={};zV={calendar:`Kalender`,day:`Tag`,dayPeriod:`Tageshälfte`,endDate:`Enddatum`,era:`Epoche`,hour:`Stunde`,minute:`Minute`,month:`Monat`,second:`Sekunde`,selectedDateDescription:e=>`Ausgew\xe4hltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgew\xe4hlter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgew\xe4hlte Zeit: ${e.time}`,startDate:`Startdatum`,timeZoneName:`Zeitzone`,weekday:`Wochentag`,year:`Jahr`};var BV={};BV={calendar:`Ημερολόγιο`,day:`ημέρα`,dayPeriod:`π.μ./μ.μ.`,endDate:`Ημερομηνία λήξης`,era:`περίοδος`,hour:`ώρα`,minute:`λεπτό`,month:`μήνας`,second:`δευτερόλεπτο`,selectedDateDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1}: ${e.date}`,selectedRangeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3B5}\u{3CD}\u{3C1}\u{3BF}\u{3C2}: ${e.startDate} \u{3AD}\u{3C9}\u{3C2} ${e.endDate}`,selectedTimeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3CE}\u{3C1}\u{3B1}: ${e.time}`,startDate:`Ημερομηνία έναρξης`,timeZoneName:`ζώνη ώρας`,weekday:`καθημερινή`,year:`έτος`};var VV={};VV={era:`era`,year:`year`,month:`month`,day:`day`,hour:`hour`,minute:`minute`,second:`second`,dayPeriod:`AM/PM`,calendar:`Calendar`,startDate:`Start Date`,endDate:`End Date`,weekday:`day of the week`,timeZoneName:`time zone`,selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var HV={};HV={calendar:`Calendario`,day:`día`,dayPeriod:`a.\xA0m./p.\xA0m.`,endDate:`Fecha final`,era:`era`,hour:`hora`,minute:`minuto`,month:`mes`,second:`segundo`,selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:`Fecha de inicio`,timeZoneName:`zona horaria`,weekday:`día de la semana`,year:`año`};var UV={};UV={calendar:`Kalender`,day:`päev`,dayPeriod:`enne/pärast lõunat`,endDate:`Lõppkuupäev`,era:`ajastu`,hour:`tund`,minute:`minut`,month:`kuu`,second:`sekund`,selectedDateDescription:e=>`Valitud kuup\xe4ev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:`Alguskuupäev`,timeZoneName:`ajavöönd`,weekday:`nädalapäev`,year:`aasta`};var WV={};WV={calendar:`Kalenteri`,day:`päivä`,dayPeriod:`vuorokaudenaika`,endDate:`Päättymispäivä`,era:`aikakausi`,hour:`tunti`,minute:`minuutti`,month:`kuukausi`,second:`sekunti`,selectedDateDescription:e=>`Valittu p\xe4iv\xe4m\xe4\xe4r\xe4: ${e.date}`,selectedRangeDescription:e=>`Valittu aikav\xe4li: ${e.startDate} \u{2013} ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:`Alkamispäivä`,timeZoneName:`aikavyöhyke`,weekday:`viikonpäivä`,year:`vuosi`};var GV={};GV={calendar:`Calendrier`,day:`jour`,dayPeriod:`cadran`,endDate:`Date de fin`,era:`ère`,hour:`heure`,minute:`minute`,month:`mois`,second:`seconde`,selectedDateDescription:e=>`Date s\xe9lectionn\xe9e\xa0: ${e.date}`,selectedRangeDescription:e=>`Plage s\xe9lectionn\xe9e\xa0: ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie\xa0: ${e.time}`,startDate:`Date de début`,timeZoneName:`fuseau horaire`,weekday:`jour de la semaine`,year:`année`};var KV={};KV={calendar:`לוח שנה`,day:`יום`,dayPeriod:`לפנה״צ/אחה״צ`,endDate:`תאריך סיום`,era:`תקופה`,hour:`שעה`,minute:`דקה`,month:`חודש`,second:`שנייה`,selectedDateDescription:e=>`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.date}`,selectedRangeDescription:e=>`\u{5D8}\u{5D5}\u{5D5}\u{5D7} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.startDate} \u{5E2}\u{5D3} ${e.endDate}`,selectedTimeDescription:e=>`\u{5D6}\u{5DE}\u{5DF} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.time}`,startDate:`תאריך התחלה`,timeZoneName:`אזור זמן`,weekday:`יום בשבוע`,year:`שנה`};var qV={};qV={calendar:`Kalendar`,day:`dan`,dayPeriod:`AM/PM`,endDate:`Datum završetka`,era:`era`,hour:`sat`,minute:`minuta`,month:`mjesec`,second:`sekunda`,selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:`Datum početka`,timeZoneName:`vremenska zona`,weekday:`dan u tjednu`,year:`godina`};var JV={};JV={calendar:`Naptár`,day:`nap`,dayPeriod:`napszak`,endDate:`Befejező dátum`,era:`éra`,hour:`óra`,minute:`perc`,month:`hónap`,second:`másodperc`,selectedDateDescription:e=>`Kijel\xf6lt d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Kijel\xf6lt tartom\xe1ny: ${e.startDate}\u{2013}${e.endDate}`,selectedTimeDescription:e=>`Kijel\xf6lt id\u{151}: ${e.time}`,startDate:`Kezdő dátum`,timeZoneName:`időzóna`,weekday:`hét napja`,year:`év`};var YV={};YV={calendar:`Calendario`,day:`giorno`,dayPeriod:`AM/PM`,endDate:`Data finale`,era:`era`,hour:`ora`,minute:`minuto`,month:`mese`,second:`secondo`,selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:`Data iniziale`,timeZoneName:`fuso orario`,weekday:`giorno della settimana`,year:`anno`};var XV={};XV={calendar:`カレンダー`,day:`日`,dayPeriod:`午前/午後`,endDate:`終了日`,era:`時代`,hour:`時`,minute:`分`,month:`月`,second:`秒`,selectedDateDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{65E5}\u{4ED8} : ${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{629E}\u{7BC4}\u{56F2} : ${e.startDate} \u{304B}\u{3089} ${e.endDate}`,selectedTimeDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{6642}\u{9593} : ${e.time}`,startDate:`開始日`,timeZoneName:`タイムゾーン`,weekday:`曜日`,year:`年`};var ZV={};ZV={calendar:`달력`,day:`일`,dayPeriod:`오전/오후`,endDate:`종료일`,era:`연호`,hour:`시`,minute:`분`,month:`월`,second:`초`,selectedDateDescription:e=>`\u{C120}\u{D0DD} \u{C77C}\u{C790}: ${e.date}`,selectedRangeDescription:e=>`\u{C120}\u{D0DD} \u{BC94}\u{C704}: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`\u{C120}\u{D0DD} \u{C2DC}\u{AC04}: ${e.time}`,startDate:`시작일`,timeZoneName:`시간대`,weekday:`요일`,year:`년`};var QV={};QV={calendar:`Kalendorius`,day:`diena`,dayPeriod:`iki pietų / po pietų`,endDate:`Pabaigos data`,era:`era`,hour:`valanda`,minute:`minutė`,month:`mėnuo`,second:`sekundė`,selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:`Pradžios data`,timeZoneName:`laiko juosta`,weekday:`savaitės diena`,year:`metai`};var $V={};$V={calendar:`Kalendārs`,day:`diena`,dayPeriod:`priekšpusdienā/pēcpusdienā`,endDate:`Beigu datums`,era:`ēra`,hour:`stundas`,minute:`minūtes`,month:`mēnesis`,second:`sekundes`,selectedDateDescription:e=>`Atlas\u{12B}tais datums: ${e.date}`,selectedRangeDescription:e=>`Atlas\u{12B}tais diapazons: no ${e.startDate} l\u{12B}dz ${e.endDate}`,selectedTimeDescription:e=>`Atlas\u{12B}tais laiks: ${e.time}`,startDate:`Sākuma datums`,timeZoneName:`laika josla`,weekday:`nedēļas diena`,year:`gads`};var eH={};eH={calendar:`Kalender`,day:`dag`,dayPeriod:`a.m./p.m.`,endDate:`Sluttdato`,era:`tidsalder`,hour:`time`,minute:`minutt`,month:`måned`,second:`sekund`,selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt omr\xe5de: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:`Startdato`,timeZoneName:`tidssone`,weekday:`ukedag`,year:`år`};var tH={};tH={calendar:`Kalender`,day:`dag`,dayPeriod:`a.m./p.m.`,endDate:`Einddatum`,era:`tijdperk`,hour:`uur`,minute:`minuut`,month:`maand`,second:`seconde`,selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:`Startdatum`,timeZoneName:`tijdzone`,weekday:`dag van de week`,year:`jaar`};var nH={};nH={calendar:`Kalendarz`,day:`dzień`,dayPeriod:`rano / po południu / wieczorem`,endDate:`Data końcowa`,era:`era`,hour:`godzina`,minute:`minuta`,month:`miesiąc`,second:`sekunda`,selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:`Data początkowa`,timeZoneName:`strefa czasowa`,weekday:`dzień tygodnia`,year:`rok`};var rH={};rH={calendar:`Calendário`,day:`dia`,dayPeriod:`AM/PM`,endDate:`Data final`,era:`era`,hour:`hora`,minute:`minuto`,month:`mês`,second:`segundo`,selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:`Data inicial`,timeZoneName:`fuso horário`,weekday:`dia da semana`,year:`ano`};var iH={};iH={calendar:`Calendário`,day:`dia`,dayPeriod:`am/pm`,endDate:`Data de Término`,era:`era`,hour:`hora`,minute:`minuto`,month:`mês`,second:`segundo`,selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:`Data de Início`,timeZoneName:`fuso horário`,weekday:`dia da semana`,year:`ano`};var aH={};aH={calendar:`Calendar`,day:`zi`,dayPeriod:`a.m/p.m.`,endDate:`Dată final`,era:`eră`,hour:`oră`,minute:`minut`,month:`lună`,second:`secundă`,selectedDateDescription:e=>`Dat\u{103} selectat\u{103}: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} p\xe2n\u{103} la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectat\u{103}: ${e.time}`,startDate:`Dată început`,timeZoneName:`fus orar`,weekday:`ziua din săptămână`,year:`an`};var oH={};oH={calendar:`Календарь`,day:`день`,dayPeriod:`AM/PM`,endDate:`Дата окончания`,era:`эра`,hour:`час`,minute:`минута`,month:`месяц`,second:`секунда`,selectedDateDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{430}\u{44F} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{439} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: \u{441} ${e.startDate} \u{43F}\u{43E} ${e.endDate}`,selectedTimeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{43E}\u{435} \u{432}\u{440}\u{435}\u{43C}\u{44F}: ${e.time}`,startDate:`Дата начала`,timeZoneName:`часовой пояс`,weekday:`день недели`,year:`год`};var sH={};sH={calendar:`Kalendár`,day:`deň`,dayPeriod:`AM/PM`,endDate:`Dátum ukončenia`,era:`letopočet`,hour:`hodina`,minute:`minúta`,month:`mesiac`,second:`sekunda`,selectedDateDescription:e=>`Vybrat\xfd d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Vybrat\xfd rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybrat\xfd \u{10D}as: ${e.time}`,startDate:`Dátum začatia`,timeZoneName:`časové pásmo`,weekday:`deň týždňa`,year:`rok`};var cH={};cH={calendar:`Koledar`,day:`dan`,dayPeriod:`dop/pop`,endDate:`Datum konca`,era:`doba`,hour:`ura`,minute:`minuta`,month:`mesec`,second:`sekunda`,selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano obmo\u{10D}je: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani \u{10D}as: ${e.time}`,startDate:`Datum začetka`,timeZoneName:`časovni pas`,weekday:`dan v tednu`,year:`leto`};var lH={};lH={calendar:`Kalendar`,day:`дан`,dayPeriod:`пре подне/по подне`,endDate:`Datum završetka`,era:`ера`,hour:`сат`,minute:`минут`,month:`месец`,second:`секунд`,selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:`Datum početka`,timeZoneName:`временска зона`,weekday:`дан у недељи`,year:`година`};var uH={};uH={calendar:`Kalender`,day:`dag`,dayPeriod:`fm/em`,endDate:`Slutdatum`,era:`era`,hour:`timme`,minute:`minut`,month:`månad`,second:`sekund`,selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:`Startdatum`,timeZoneName:`tidszon`,weekday:`veckodag`,year:`år`};var dH={};dH={calendar:`Takvim`,day:`gün`,dayPeriod:`ÖÖ/ÖS`,endDate:`Bitiş Tarihi`,era:`çağ`,hour:`saat`,minute:`dakika`,month:`ay`,second:`saniye`,selectedDateDescription:e=>`Se\xe7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xe7ilen Aral\u{131}k: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Se\xe7ilen Zaman: ${e.time}`,startDate:`Başlangıç Tarihi`,timeZoneName:`saat dilimi`,weekday:`haftanın günü`,year:`yıl`};var fH={};fH={calendar:`Календар`,day:`день`,dayPeriod:`дп/пп`,endDate:`Дата завершення`,era:`ера`,hour:`година`,minute:`хвилина`,month:`місяць`,second:`секунда`,selectedDateDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{434}\u{456}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.startDate} \u{2014} ${e.endDate}`,selectedTimeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{447}\u{430}\u{441}: ${e.time}`,startDate:`Дата початку`,timeZoneName:`часовий пояс`,weekday:`день тижня`,year:`рік`};var pH={};pH={calendar:`日历`,day:`日`,dayPeriod:`上午/下午`,endDate:`结束日期`,era:`纪元`,hour:`小时`,minute:`分钟`,month:`月`,second:`秒`,selectedDateDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{8303}\u{56F4}\u{FF1A}${e.startDate} \u{81F3} ${e.endDate}`,selectedTimeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65F6}\u{95F4}\u{FF1A}${e.time}`,startDate:`开始日期`,timeZoneName:`时区`,weekday:`工作日`,year:`年`};var mH={};mH={calendar:`日曆`,day:`日`,dayPeriod:`上午/下午`,endDate:`結束日期`,era:`纪元`,hour:`小时`,minute:`分钟`,month:`月`,second:`秒`,selectedDateDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{7BC4}\u{570D}\u{FF1A}${e.startDate} \u{81F3} ${e.endDate}`,selectedTimeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{6642}\u{9593}\u{FF1A}${e.time}`,startDate:`開始日期`,timeZoneName:`时区`,weekday:`工作日`,year:`年`};var hH={};hH={"ar-AE":FV,"bg-BG":IV,"cs-CZ":LV,"da-DK":RV,"de-DE":zV,"el-GR":BV,"en-US":VV,"es-ES":HV,"et-EE":UV,"fi-FI":WV,"fr-FR":GV,"he-IL":KV,"hr-HR":qV,"hu-HU":JV,"it-IT":YV,"ja-JP":XV,"ko-KR":ZV,"lt-LT":QV,"lv-LV":$V,"nb-NO":eH,"nl-NL":tH,"pl-PL":nH,"pt-BR":rH,"pt-PT":iH,"ro-RO":aH,"ru-RU":oH,"sk-SK":sH,"sl-SI":cH,"sr-SP":lH,"sv-SE":uH,"tr-TR":dH,"uk-UA":fH,"zh-CN":pH,"zh-TW":mH};function gH(e,t,n){let{direction:r}=iT(),i=(0,x.useMemo)(()=>sL(t),[t]),{keyboardProps:a}=oE({shortcuts:{"Alt+ArrowDown":()=>{if(`setOpen`in e)e.setOpen(!0);else return!1},"Alt+ArrowUp":()=>{if(`setOpen`in e)e.setOpen(!0);else return!1},ArrowLeft:e=>{if(n)return!1;if(r===`rtl`){if(t.current){let n=K(e),r=_H(t.current,n.getBoundingClientRect().left,-1);if(r){r.focus();return}}}else{i.focusPrevious();return}return!1},ArrowRight:e=>{if(n)return!1;if(r===`rtl`){if(t.current){let n=K(e),r=_H(t.current,n.getBoundingClientRect().left,1);if(r){r.focus();return}}}else{i.focusNext();return}return!1}},allowRepeats:!0}),o=()=>{if(!t.current)return;let e=window.event?K(window.event):null,n=oL(t.current,{tabbable:!0});if(e&&=(n.currentNode=e,n.previousNode()),!e){let t;do t=n.lastChild(),t&&(e=t);while(t)}for(;e?.hasAttribute(`data-placeholder`);){let t=n.previousNode();if(t&&t.hasAttribute(`data-placeholder`))e=t;else break}e&&e.focus()},{pressProps:s}=nD({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(e){e.pointerType===`mouse`&&o()},onPress(e){(e.pointerType===`touch`||e.pointerType===`pen`)&&o()}});return W(s,a)}function _H(e,t,n){let r=oL(e,{tabbable:!0}),i=r.nextNode(),a=null,o=1/0;for(;i;){let e=i.getBoundingClientRect().left-t,s=Math.abs(e);Math.sign(e)===n&&s<o&&(a=i,o=s),i=r.nextNode()}return a}function vH(e){return e&&e.__esModule?e.default:e}var yH=new WeakMap,bH=`__reactAriaDateFieldRole`,xH=`__reactAriaDateFieldFocusManager`;function SH(e,t,n){let{isInvalid:r,validationErrors:i,validationDetails:a}=t.displayValidation,{labelProps:o,fieldProps:s,descriptionProps:c,errorMessageProps:l}=sj({...e,labelElementType:`span`,isInvalid:r,errorMessage:e.errorMessage||i}),u=(0,x.useRef)(null),{focusWithinProps:d}=dD({...e,onFocusWithin(n){u.current=t.value,e.onFocus?.(n)},onBlurWithin:n=>{t.confirmPlaceholder(),t.value!==u.current&&t.commitValidation(),e.onBlur?.(n)},onFocusWithinChange:e.onFocusChange}),f=hT(vH(hH),`@react-aria/datepicker`),p=t.maxGranularity===`hour`?`selectedTimeDescription`:`selectedDateDescription`,m=t.maxGranularity===`hour`?`time`:`date`,h=BA(t.value?f.format(p,{[m]:t.formatValue({month:`long`})}):``),g=e.__reactAriaDateFieldRole===`presentation`?s[`aria-describedby`]:[h[`aria-describedby`],s[`aria-describedby`]].filter(Boolean).join(` `)||void 0,_=e[xH],v=(0,x.useMemo)(()=>_||sL(n),[_,n]),y=gH(t,n,e[bH]===`presentation`);yH.set(t,{ariaLabel:e[`aria-label`],ariaLabelledBy:[o.id,e[`aria-labelledby`]].filter(Boolean).join(` `)||void 0,ariaDescribedBy:g,focusManager:v});let b=(0,x.useRef)(e.autoFocus),S;S=e.__reactAriaDateFieldRole===`presentation`?{role:`presentation`}:W(s,{role:`group`,"aria-disabled":e.isDisabled||void 0,"aria-describedby":g}),(0,x.useEffect)(()=>{b.current&&v.focusFirst(),b.current=!1},[v]),cj(e.inputRef,t.defaultValue,t.setValue),lj({...e,focus(){v.focusFirst()}},t,e.inputRef);let C={type:`hidden`,name:e.name,form:e.form,value:t.value?.toString()||``,disabled:e.isDisabled};e.validationBehavior===`native`&&(C.type=`text`,C.hidden=!0,C.required=e.isRequired,C.onChange=()=>{});let w=q(e);return{labelProps:{...o,onClick:()=>{v.focusFirst()}},fieldProps:W(w,S,y,d,{onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,style:{unicodeBidi:`isolate`}}),inputProps:C,descriptionProps:c,errorMessageProps:l,isInvalid:r,validationErrors:i,validationDetails:a}}function CH(e){return e&&e.__esModule?e.default:e}function wH(){let{locale:e}=iT(),t=mT(CH(hH),`@react-aria/datepicker`);return(0,x.useMemo)(()=>{try{return new Intl.DisplayNames(e,{type:`dateTimeField`})}catch{return new TH(e,t)}},[e,t])}var TH=class{constructor(e,t){this.locale=e,this.dictionary=t}of(e){return this.dictionary.getStringForLocale(e,this.locale)}};function EH(e,t,n){let r=(0,x.useRef)(``),{locale:i,direction:a}=iT(),o=wH(),{ariaLabel:s,ariaLabelledBy:c,ariaDescribedBy:l,focusManager:u}=yH.get(t),d=e.isPlaceholder?``:e.text,f=(0,x.useMemo)(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),p=kA({month:`long`,timeZone:f.timeZone}),m=kA({hour:`numeric`,hour12:f.hour12,timeZone:f.timeZone});if(e.type===`month`&&!e.isPlaceholder){let e=p.format(t.dateValue);d=e===d?e:`${d} \u{2013} ${e}`}else e.type===`hour`&&!e.isPlaceholder&&(d=m.format(t.dateValue));let{spinButtonProps:h}=gP({value:e.value??void 0,textValue:d,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current=``,t.increment(e.type)},onDecrement:()=>{r.current=``,t.decrement(e.type)},onIncrementPage:()=>{r.current=``,t.incrementPage(e.type)},onDecrementPage:()=>{r.current=``,t.decrementPage(e.type)},onIncrementToMax:()=>{r.current=``,t.incrementToMax(e.type)},onDecrementToMin:()=>{r.current=``,t.decrementToMin(e.type)}}),g=(0,x.useMemo)(()=>new jD(i,{maximumFractionDigits:0}),[i]),_=()=>{if(e.text===e.placeholder&&u.focusPrevious(),g.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let n=e.text.slice(0,-1),i=g.parse(n);n=i===0?``:n,n.length===0||i===0?t.clearSegment(e.type):t.setSegment(e.type,i),r.current=n}else(e.type===`dayPeriod`||e.type===`era`)&&t.clearSegment(e.type)},{keyboardProps:v}=oE({shortcuts:{Backspace:()=>{_()},Delete:()=>{_()},"Mod+a":()=>{}},allowRepeats:!0}),{startsWith:y}=kV({sensitivity:`base`}),b=kA({hour:`numeric`,hour12:!0}),S=(0,x.useMemo)(()=>{let e=new Date;return e.setHours(0),b.formatToParts(e).find(e=>e.type===`dayPeriod`).value},[b]),C=(0,x.useMemo)(()=>{let e=new Date;return e.setHours(12),b.formatToParts(e).find(e=>e.type===`dayPeriod`).value},[b]),w=kA({year:`numeric`,era:`narrow`,timeZone:`UTC`}),T=(0,x.useMemo)(()=>{if(e.type!==`era`)return[];let n=zO(new fk(1,1,1),t.calendar),r=t.calendar.getEras().map(e=>{let t=n.set({year:1,month:1,day:1,era:e}).toDate(`UTC`);return{era:e,formatted:w.formatToParts(t).find(e=>e.type===`era`)?.value??e}}),i=DH(r.map(e=>e.formatted));if(i)for(let e of r)e.formatted=e.formatted.slice(i);return r},[w,t.calendar,e.type]),E=n=>{if(t.isDisabled||t.isReadOnly)return;let i=r.current+n;switch(e.type){case`dayPeriod`:if(y(S,n))t.setSegment(`dayPeriod`,0);else if(y(C,n))t.setSegment(`dayPeriod`,1);else break;u.focusNext();break;case`era`:{let e=T.find(e=>y(e.formatted,n));e&&(t.setSegment(`era`,e.era),u.focusNext());break}case`day`:case`hour`:case`minute`:case`second`:case`month`:case`year`:{if(!g.isValidPartialNumber(i))return;let a=g.parse(i),o=a;if(e.maxValue!==void 0&&a>e.maxValue&&(o=g.parse(n)),isNaN(a))return;t.setSegment(e.type,o),e.maxValue!==void 0&&(Number(a+`0`)>e.maxValue||i.length>=String(e.maxValue).length)?(r.current=``,u.focusNext()):r.current=i;break}}},D=()=>{r.current=``,n.current&&LA(n.current,{containingElement:NA(n.current)}),window.getSelection()?.collapse(n.current)};qw((0,x.useRef)(typeof document<`u`?document:null),`selectionchange`,()=>{let e=window.getSelection();e?.anchorNode&&zS(n.current,e?.anchorNode)&&BS()===n.current&&e.collapse(n.current)});let O=(0,x.useRef)(``);qw(n,`beforeinput`,r=>{if(n.current)switch(r.preventDefault(),r.inputType){case`deleteContentBackward`:case`deleteContentForward`:g.isValidPartialNumber(e.text)&&!t.isReadOnly&&_();break;case`insertCompositionText`:O.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:r.data!=null&&E(r.data)}}),qw(n,`input`,e=>{let{inputType:t,data:r}=e;t===`insertCompositionText`&&(n.current&&(n.current.textContent=O.current),r!=null&&(y(S,r)||y(C,r))&&E(r))}),qx(()=>{let e=n.current;return()=>{BS()===e&&(u.focusPrevious()||u.focusNext())}},[n,u]);let k=hC()||e.type===`timeZoneName`?{role:`textbox`,"aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{};e!==(0,x.useMemo)(()=>t.segments.find(e=>e.isEditable),[t.segments])&&!t.isInvalid&&(l=void 0);let A=dS(),j=!t.isDisabled&&!t.isReadOnly&&e.isEditable,M=Jw({"aria-label":`${e.type===`literal`?``:o.of(e.type)}${s?`, ${s}`:``}${c?`, `:``}`,"aria-labelledby":c});if(e.type===`literal`)return{segmentProps:{"aria-hidden":!0}};let N={caretColor:`transparent`};if(a===`rtl`){N.unicodeBidi=`embed`;let t=f[e.type];(t===`numeric`||t===`2-digit`)&&(N.direction=`ltr`)}return{segmentProps:W(h,M,{id:A,...k,...v,"aria-invalid":t.isInvalid?`true`:void 0,"aria-describedby":l,"aria-readonly":t.isReadOnly||!e.isEditable?`true`:void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:j,suppressContentEditableWarning:j,spellCheck:j?`false`:void 0,autoCorrect:j?`off`:void 0,enterKeyHint:j?`next`:void 0,inputMode:t.isDisabled||e.type===`dayPeriod`||e.type===`era`||!j?void 0:`numeric`,tabIndex:t.isDisabled?void 0:0,onFocus:D,style:N,onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}})}}function DH(e){e.sort();let t=e[0],n=e[e.length-1];for(let e=0;e<t.length;e++)if(t[e]!==n[e])return e;return 0}var OH={};OH={rangeOverflow:e=>`\u{64A}\u{62C}\u{628} \u{623}\u{646} \u{62A}\u{643}\u{648}\u{646} \u{627}\u{644}\u{642}\u{64A}\u{645}\u{629} ${e.maxValue} \u{623}\u{648} \u{642}\u{628}\u{644} \u{630}\u{644}\u{643}.`,rangeReversed:`تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.`,rangeUnderflow:e=>`\u{64A}\u{62C}\u{628} \u{623}\u{646} \u{62A}\u{643}\u{648}\u{646} \u{627}\u{644}\u{642}\u{64A}\u{645}\u{629} ${e.minValue} \u{623}\u{648} \u{628}\u{639}\u{62F} \u{630}\u{644}\u{643}.`,unavailableDate:`البيانات المحددة غير متاحة.`};var kH={};kH={rangeOverflow:e=>`\u{421}\u{442}\u{43E}\u{439}\u{43D}\u{43E}\u{441}\u{442}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} ${e.maxValue} \u{438}\u{43B}\u{438} \u{43F}\u{43E}-\u{440}\u{430}\u{43D}\u{43D}\u{430}.`,rangeReversed:`Началната дата трябва да е преди крайната.`,rangeUnderflow:e=>`\u{421}\u{442}\u{43E}\u{439}\u{43D}\u{43E}\u{441}\u{442}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} ${e.minValue} \u{438}\u{43B}\u{438} \u{43F}\u{43E}-\u{43A}\u{44A}\u{441}\u{43D}\u{43E}.`,unavailableDate:`Избраната дата не е налична.`};var AH={};AH={rangeOverflow:e=>`Hodnota mus\xed b\xfdt ${e.maxValue} nebo d\u{159}\xedv\u{11B}j\u{161}\xed.`,rangeReversed:`Datum zahájení musí předcházet datu ukončení.`,rangeUnderflow:e=>`Hodnota mus\xed b\xfdt ${e.minValue} nebo pozd\u{11B}j\u{161}\xed.`,unavailableDate:`Vybrané datum není k dispozici.`};var jH={};jH={rangeOverflow:e=>`V\xe6rdien skal v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:`Startdatoen skal være før slutdatoen.`,rangeUnderflow:e=>`V\xe6rdien skal v\xe6re ${e.minValue} eller nyere.`,unavailableDate:`Den valgte dato er ikke tilgængelig.`};var MH={};MH={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder fr\xfcher sein.`,rangeReversed:`Das Startdatum muss vor dem Enddatum liegen.`,rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder sp\xe4ter sein.`,unavailableDate:`Das ausgewählte Datum ist nicht verfügbar.`};var NH={};NH={rangeOverflow:e=>`\u{397} \u{3C4}\u{3B9}\u{3BC}\u{3AE} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} ${e.maxValue} \u{3AE} \u{3C0}\u{3B1}\u{3BB}\u{3B1}\u{3B9}\u{3CC}\u{3C4}\u{3B5}\u{3C1}\u{3B7}.`,rangeReversed:`Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.`,rangeUnderflow:e=>`\u{397} \u{3C4}\u{3B9}\u{3BC}\u{3AE} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} ${e.minValue} \u{3AE} \u{3BC}\u{3B5}\u{3C4}\u{3B1}\u{3B3}\u{3B5}\u{3BD}\u{3AD}\u{3C3}\u{3C4}\u{3B5}\u{3C1}\u{3B7}.`,unavailableDate:`Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη.`};var PH={};PH={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:`Start date must be before end date.`,unavailableDate:`Selected date unavailable.`};var FH={};FH={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:`La fecha de inicio debe ser anterior a la fecha de finalización.`,rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:`Fecha seleccionada no disponible.`};var IH={};IH={rangeOverflow:e=>`V\xe4\xe4rtus peab olema ${e.maxValue} v\xf5i varasem.`,rangeReversed:`Alguskuupäev peab olema enne lõppkuupäeva.`,rangeUnderflow:e=>`V\xe4\xe4rtus peab olema ${e.minValue} v\xf5i hilisem.`,unavailableDate:`Valitud kuupäev pole saadaval.`};var LH={};LH={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sit\xe4 aikaisempi.`,rangeReversed:`Aloituspäivän on oltava ennen lopetuspäivää.`,rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sit\xe4 my\xf6h\xe4isempi.`,unavailableDate:`Valittu päivämäärä ei ole käytettävissä.`};var RH={};RH={rangeOverflow:e=>`La valeur doit \xeatre ${e.maxValue} ou ant\xe9rieure.`,rangeReversed:`La date de début doit être antérieure à la date de fin.`,rangeUnderflow:e=>`La valeur doit \xeatre ${e.minValue} ou ult\xe9rieure.`,unavailableDate:`La date sélectionnée n’est pas disponible.`};var zH={};zH={rangeOverflow:e=>`\u{5D4}\u{5E2}\u{5E8}\u{5DA} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} ${e.maxValue} \u{5D0}\u{5D5} \u{5DE}\u{5D5}\u{5E7}\u{5D3}\u{5DD} \u{5D9}\u{5D5}\u{5EA}\u{5E8}.`,rangeReversed:`תאריך ההתחלה חייב להיות לפני תאריך הסיום.`,rangeUnderflow:e=>`\u{5D4}\u{5E2}\u{5E8}\u{5DA} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} ${e.minValue} \u{5D0}\u{5D5} \u{5DE}\u{5D0}\u{5D5}\u{5D7}\u{5E8} \u{5D9}\u{5D5}\u{5EA}\u{5E8}.`,unavailableDate:`התאריך הנבחר אינו זמין.`};var BH={};BH={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:`Datum početka mora biti prije datuma završetka.`,rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:`Odabrani datum nije dostupan.`};var VH={};VH={rangeOverflow:e=>`Az \xe9rt\xe9knek ${e.maxValue} vagy kor\xe1bbinak kell lennie.`,rangeReversed:`A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.`,rangeUnderflow:e=>`Az \xe9rt\xe9knek ${e.minValue} vagy k\xe9s\u{151}bbinek kell lennie.`,unavailableDate:`A kiválasztott dátum nem érhető el.`};var HH={};HH={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:`La data di inizio deve essere antecedente alla data di fine.`,rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:`Data selezionata non disponibile.`};var UH={};UH={rangeOverflow:e=>`\u{5024}\u{306F} ${e.maxValue} \u{4EE5}\u{4E0B}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,rangeReversed:`開始日は終了日より前にする必要があります。`,rangeUnderflow:e=>`\u{5024}\u{306F} ${e.minValue} \u{4EE5}\u{4E0A}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,unavailableDate:`選択した日付は使用できません。`};var WH={};WH={rangeOverflow:e=>`\u{AC12}\u{C740} ${e.maxValue} \u{C774}\u{C804}\u{C774}\u{C5B4}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,rangeReversed:`시작일은 종료일 이전이어야 합니다.`,rangeUnderflow:e=>`\u{AC12}\u{C740} ${e.minValue} \u{C774}\u{D6C4}\u{C5EC}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,unavailableDate:`선택한 날짜를 사용할 수 없습니다.`};var GH={};GH={rangeOverflow:e=>`Reik\u{161}m\u{117} turi b\u{16B}ti ${e.maxValue} arba ankstesn\u{117}.`,rangeReversed:`Pradžios data turi būti ankstesnė nei pabaigos data.`,rangeUnderflow:e=>`Reik\u{161}m\u{117} turi b\u{16B}ti ${e.minValue} arba naujesn\u{117}.`,unavailableDate:`Pasirinkta data nepasiekiama.`};var KH={};KH={rangeOverflow:e=>`V\u{113}rt\u{12B}bai ir j\u{101}b\u{16B}t ${e.maxValue} vai agr\u{101}kai.`,rangeReversed:`Sākuma datumam ir jābūt pirms beigu datuma.`,rangeUnderflow:e=>`V\u{113}rt\u{12B}bai ir j\u{101}b\u{16B}t ${e.minValue} vai v\u{113}l\u{101}kai.`,unavailableDate:`Atlasītais datums nav pieejams.`};var qH={};qH={rangeOverflow:e=>`Verdien m\xe5 v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:`Startdatoen må være før sluttdatoen.`,rangeUnderflow:e=>`Verdien m\xe5 v\xe6re ${e.minValue} eller senere.`,unavailableDate:`Valgt dato utilgjengelig.`};var JH={};JH={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:`De startdatum moet voor de einddatum liggen.`,rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:`Geselecteerde datum niet beschikbaar.`};var YH={};YH={rangeOverflow:e=>`Warto\u{15B}\u{107} musi mie\u{107} warto\u{15B}\u{107} ${e.maxValue} lub wcze\u{15B}niejsz\u{105}.`,rangeReversed:`Data rozpoczęcia musi być wcześniejsza niż data zakończenia.`,rangeUnderflow:e=>`Warto\u{15B}\u{107} musi mie\u{107} warto\u{15B}\u{107} ${e.minValue} lub p\xf3\u{17A}niejsz\u{105}.`,unavailableDate:`Wybrana data jest niedostępna.`};var XH={};XH={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:`A data inicial deve ser anterior à data final.`,rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:`Data selecionada indisponível.`};var ZH={};ZH={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:`A data de início deve ser anterior à data de fim.`,rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:`Data selecionada indisponível.`};var QH={};QH={rangeOverflow:e=>`Valoarea trebuie s\u{103} fie ${e.maxValue} sau anterioar\u{103}.`,rangeReversed:`Data de început trebuie să fie anterioară datei de sfârșit.`,rangeUnderflow:e=>`Valoarea trebuie s\u{103} fie ${e.minValue} sau ulterioar\u{103}.`,unavailableDate:`Data selectată nu este disponibilă.`};var $H={};$H={rangeOverflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{438}\u{435} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{43E} \u{431}\u{44B}\u{442}\u{44C} \u{43D}\u{435} \u{43F}\u{43E}\u{437}\u{436}\u{435} ${e.maxValue}.`,rangeReversed:`Дата начала должна предшествовать дате окончания.`,rangeUnderflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{438}\u{435} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{43E} \u{431}\u{44B}\u{442}\u{44C} \u{43D}\u{435} \u{440}\u{430}\u{43D}\u{44C}\u{448}\u{435} ${e.minValue}.`,unavailableDate:`Выбранная дата недоступна.`};var eU={};eU={rangeOverflow:e=>`Hodnota mus\xed by\u{165} ${e.maxValue} alebo skor\u{161}ia.`,rangeReversed:`Dátum začiatku musí byť skorší ako dátum konca.`,rangeUnderflow:e=>`Hodnota mus\xed by\u{165} ${e.minValue} alebo neskor\u{161}ia.`,unavailableDate:`Vybratý dátum je nedostupný.`};var tU={};tU={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starej\u{161}a.`,rangeReversed:`Začetni datum mora biti pred končnim datumom.`,rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novej\u{161}a.`,unavailableDate:`Izbrani datum ni na voljo.`};var nU={};nU={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:`Datum početka mora biti pre datuma završetka.`,rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:`Izabrani datum nije dostupan.`};var rU={};rU={rangeOverflow:e=>`V\xe4rdet m\xe5ste vara ${e.maxValue} eller tidigare.`,rangeReversed:`Startdatumet måste vara före slutdatumet.`,rangeUnderflow:e=>`V\xe4rdet m\xe5ste vara ${e.minValue} eller senare.`,unavailableDate:`Det valda datumet är inte tillgängligt.`};var iU={};iU={rangeOverflow:e=>`De\u{11F}er, ${e.maxValue} veya \xf6ncesi olmal\u{131}d\u{131}r.`,rangeReversed:`Başlangıç tarihi bitiş tarihinden önce olmalıdır.`,rangeUnderflow:e=>`De\u{11F}er, ${e.minValue} veya sonras\u{131} olmal\u{131}d\u{131}r.`,unavailableDate:`Seçilen tarih kullanılamıyor.`};var aU={};aU={rangeOverflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{43D}\u{44F} \u{43C}\u{430}\u{454} \u{431}\u{443}\u{442}\u{438} \u{43D}\u{435} \u{43F}\u{456}\u{437}\u{43D}\u{456}\u{448}\u{435} ${e.maxValue}.`,rangeReversed:`Дата початку має передувати даті завершення.`,rangeUnderflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{43D}\u{44F} \u{43C}\u{430}\u{454} \u{431}\u{443}\u{442}\u{438} \u{43D}\u{435} \u{440}\u{430}\u{43D}\u{456}\u{448}\u{435} ${e.minValue}.`,unavailableDate:`Вибрана дата недоступна.`};var oU={};oU={rangeOverflow:e=>`\u{503C}\u{5FC5}\u{987B}\u{662F} ${e.maxValue} \u{6216}\u{66F4}\u{65E9}\u{65E5}\u{671F}\u{3002}`,rangeReversed:`开始日期必须早于结束日期。`,rangeUnderflow:e=>`\u{503C}\u{5FC5}\u{987B}\u{662F} ${e.minValue} \u{6216}\u{66F4}\u{665A}\u{65E5}\u{671F}\u{3002}`,unavailableDate:`所选日期不可用。`};var sU={};sU={rangeOverflow:e=>`\u{503C}\u{5FC5}\u{9808}\u{662F} ${e.maxValue} \u{6216}\u{66F4}\u{65E9}\u{3002}`,rangeReversed:`開始日期必須在結束日期之前。`,rangeUnderflow:e=>`\u{503C}\u{5FC5}\u{9808}\u{662F} ${e.minValue} \u{6216}\u{66F4}\u{665A}\u{3002}`,unavailableDate:`所選日期無法使用。`};var cU={};cU={"ar-AE":OH,"bg-BG":kH,"cs-CZ":AH,"da-DK":jH,"de-DE":MH,"el-GR":NH,"en-US":PH,"es-ES":FH,"et-EE":IH,"fi-FI":LH,"fr-FR":RH,"he-IL":zH,"hr-HR":BH,"hu-HU":VH,"it-IT":HH,"ja-JP":UH,"ko-KR":WH,"lt-LT":GH,"lv-LV":KH,"nb-NO":qH,"nl-NL":JH,"pl-PL":YH,"pt-BR":XH,"pt-PT":ZH,"ro-RO":QH,"ru-RU":$H,"sk-SK":eU,"sl-SI":tU,"sr-SP":nU,"sv-SE":rU,"tr-TR":iU,"uk-UA":aU,"zh-CN":oU,"zh-TW":sU};function lU(e){return e&&e.__esModule?e.default:e}var uU=new cT(lU(cU));function dU(){let e=typeof navigator<`u`&&(navigator.language||navigator.userLanguage)||`en-US`;try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e=`en-US`}return e}function fU(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,o=e!=null&&t!=null&&e.compare(t)<0,s=e!=null&&r?.(e)||!1,c=a||o||s,l=[];if(c){let e=dU(),r=new dT(e,cT.getGlobalDictionaryForPackage(`@react-stately/datepicker`)||uU),c=new xA(e,hU({},i)),u=c.resolvedOptions().timeZone;o&&t!=null&&l.push(r.format(`rangeUnderflow`,{minValue:c.format(t.toDate(u))})),a&&n!=null&&l.push(r.format(`rangeOverflow`,{maxValue:c.format(n.toDate(u))})),s&&l.push(r.format(`unavailableDate`))}return{isInvalid:c,validationErrors:l,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!c}}}var pU={year:`numeric`,month:`numeric`,day:`numeric`,hour:`numeric`,minute:`2-digit`,second:`2-digit`},mU={year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`};function hU(e,t){e={...t.shouldForceLeadingZeros?mU:pU,...e};let n=t.granularity||`minute`,r=Object.keys(e),i=r.indexOf(t.maxGranularity??`year`);i<0&&(i=0);let a=r.indexOf(n);if(a<0&&(a=2),i>a)throw Error(`maxGranularity must be greater than granularity`);let o=r.slice(i,a+1).reduce((t,n)=>(t[n]=e[n],t),{});return t.hourCycle!=null&&(o.hour12=t.hourCycle===12),o.timeZone=t.timeZone||`UTC`,(n===`hour`||n===`minute`||n===`second`)&&t.timeZone&&!t.hideTimeZone&&(o.timeZoneName=`short`),t.showEra&&i===0&&(o.era=`short`),o}function gU(e,t){if(e===null)return null;if(e)return zO(e,t)}function _U(e,t,n,r){if(e)return gU(e,n);let i=zO(vO(r??wO()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t===`year`||t===`month`||t===`day`?LO(i):r?i:RO(i)}function vU(e,t){let n=e&&`timeZone`in e?e.timeZone:void 0,r=e&&`minute`in e?`minute`:`day`;if(e&&t&&!(t in e))throw Error(`Invalid granularity `+t+` for value `+e.toString());let[i,a]=(0,x.useState)([r,n]);e&&(i[0]!==r||i[1]!==n)&&a([r,n]),t||=e?r:i[0];let o=e?n:i[1];return[t,o]}var yU=new cT({ach:{year:`mwaka`,month:`dwe`,day:`nino`},af:{year:`jjjj`,month:`mm`,day:`dd`},am:{year:`ዓዓዓዓ`,month:`ሚሜ`,day:`ቀቀ`},an:{year:`aaaa`,month:`mm`,day:`dd`},ar:{year:`سنة`,month:`شهر`,day:`يوم`},ast:{year:`aaaa`,month:`mm`,day:`dd`},az:{year:`iiii`,month:`aa`,day:`gg`},be:{year:`гггг`,month:`мм`,day:`дд`},bg:{year:`гггг`,month:`мм`,day:`дд`},bn:{year:`yyyy`,month:`মিমি`,day:`dd`},br:{year:`bbbb`,month:`mm`,day:`dd`},bs:{year:`gggg`,month:`mm`,day:`dd`},ca:{year:`aaaa`,month:`mm`,day:`dd`},cak:{year:`jjjj`,month:`ii`,day:`q'q'`},ckb:{year:`ساڵ`,month:`مانگ`,day:`ڕۆژ`},cs:{year:`rrrr`,month:`mm`,day:`dd`},cy:{year:`bbbb`,month:`mm`,day:`dd`},da:{year:`åååå`,month:`mm`,day:`dd`},de:{year:`jjjj`,month:`mm`,day:`tt`},dsb:{year:`llll`,month:`mm`,day:`źź`},el:{year:`εεεε`,month:`μμ`,day:`ηη`},en:{year:`yyyy`,month:`mm`,day:`dd`},eo:{year:`jjjj`,month:`mm`,day:`tt`},es:{year:`aaaa`,month:`mm`,day:`dd`},et:{year:`aaaa`,month:`kk`,day:`pp`},eu:{year:`uuuu`,month:`hh`,day:`ee`},fa:{year:`سال`,month:`ماه`,day:`روز`},ff:{year:`hhhh`,month:`ll`,day:`ññ`},fi:{year:`vvvv`,month:`kk`,day:`pp`},fr:{year:`aaaa`,month:`mm`,day:`jj`},fy:{year:`jjjj`,month:`mm`,day:`dd`},ga:{year:`bbbb`,month:`mm`,day:`ll`},gd:{year:`bbbb`,month:`mm`,day:`ll`},gl:{year:`aaaa`,month:`mm`,day:`dd`},he:{year:`שנה`,month:`חודש`,day:`יום`},hr:{year:`gggg`,month:`mm`,day:`dd`},hsb:{year:`llll`,month:`mm`,day:`dd`},hu:{year:`éééé`,month:`hh`,day:`nn`},ia:{year:`aaaa`,month:`mm`,day:`dd`},id:{year:`tttt`,month:`bb`,day:`hh`},is:{year:`áááá`,month:`mm`,day:`dd`},it:{year:`aaaa`,month:`mm`,day:`gg`},ja:{year:`年`,month:`月`,day:`日`},ka:{year:`წწწწ`,month:`თთ`,day:`რრ`},kk:{year:`жжжж`,month:`аа`,day:`кк`},kn:{year:`ವವವವ`,month:`ಮಿಮೀ`,day:`ದಿದಿ`},ko:{year:`연도`,month:`월`,day:`일`},lb:{year:`jjjj`,month:`mm`,day:`dd`},lo:{year:`ປປປປ`,month:`ດດ`,day:`ວວ`},lt:{year:`mmmm`,month:`mm`,day:`dd`},lv:{year:`gggg`,month:`mm`,day:`dd`},meh:{year:`aaaa`,month:`mm`,day:`dd`},ml:{year:`വർഷം`,month:`മാസം`,day:`തീയതി`},ms:{year:`tttt`,month:`mm`,day:`hh`},nb:{year:`åååå`,month:`mm`,day:`dd`},nl:{year:`jjjj`,month:`mm`,day:`dd`},nn:{year:`åååå`,month:`mm`,day:`dd`},no:{year:`åååå`,month:`mm`,day:`dd`},oc:{year:`aaaa`,month:`mm`,day:`jj`},pl:{year:`rrrr`,month:`mm`,day:`dd`},pt:{year:`aaaa`,month:`mm`,day:`dd`},rm:{year:`oooo`,month:`mm`,day:`dd`},ro:{year:`aaaa`,month:`ll`,day:`zz`},ru:{year:`гггг`,month:`мм`,day:`дд`},sc:{year:`aaaa`,month:`mm`,day:`dd`},scn:{year:`aaaa`,month:`mm`,day:`jj`},sk:{year:`rrrr`,month:`mm`,day:`dd`},sl:{year:`llll`,month:`mm`,day:`dd`},sr:{year:`гггг`,month:`мм`,day:`дд`},"sr-Latn":{year:`gggg`,month:`mm`,day:`dd`},sv:{year:`åååå`,month:`mm`,day:`dd`},szl:{year:`rrrr`,month:`mm`,day:`dd`},tg:{year:`сссс`,month:`мм`,day:`рр`},th:{year:`ปปปป`,month:`ดด`,day:`วว`},tr:{year:`yyyy`,month:`aa`,day:`gg`},uk:{year:`рррр`,month:`мм`,day:`дд`},"zh-CN":{year:`年`,month:`月`,day:`日`},"zh-TW":{year:`年`,month:`月`,day:`日`}},`en`);function bU(e,t,n){return e===`era`||e===`dayPeriod`?t:e===`year`||e===`month`||e===`day`?yU.getStringForLocale(e,n):`––`}var xU=class e{constructor(e,t,n){if(this.era=n?.era??null,this.calendar=e,this.year=n?.year??null,this.month=n?.month??null,this.day=n?.day??null,this.hour=n?.hour??null,this.hourCycle=t,this.dayPeriod=null,this.minute=n?.minute??null,this.second=n?.second??null,this.millisecond=n?.millisecond??null,this.offset=`offset`in(n??{})?n.offset:null,this.hour!=null){let[e,n]=CU(this.hour,t);this.dayPeriod=e,this.hour=n}}copy(){let t=new e(this.calendar,this.hourCycle);return t.era=this.era,t.year=this.year,t.month=this.month,t.day=this.day,t.hour=this.hour,t.dayPeriod=this.dayPeriod,t.minute=this.minute,t.second=this.second,t.millisecond=this.millisecond,t.offset=this.offset,t}isComplete(e){return e.every(e=>this[e]!=null)}validate(e,t){return t.every(t=>{if((t===`hour`||t===`dayPeriod`)&&`hour`in e){let[t,n]=CU(e.hour,this.hourCycle);return this.dayPeriod===t&&this.hour===n}return this[t]===e[t]})}isCleared(e){return e.every(e=>this[e]===null)}set(e,t,n){let r=this.copy();return r[e]=t,e===`hour`&&r.dayPeriod==null&&`hour`in n&&(r.dayPeriod=CU(n.hour,this.hourCycle)[0]),e===`year`&&r.era==null&&(r.era=n.era),e!==`second`&&e!==`literal`&&e!==`timeZoneName`&&(r.offset=null),r}clear(e){let t=this.copy();return t[e]=null,e===`year`&&(t.era=null),t.offset=null,t}cycle(e,t,n,r){let i=this.copy();if(i[e]==null&&e!==`dayPeriod`&&e!==`era`){if(e===`hour`&&`hour`in n){let[e,t]=CU(n.hour,this.hourCycle);i.dayPeriod=e,i.hour=t}else i[e]=n[e];return e===`year`&&i.era==null&&(i.era=n.era),i}switch(e){case`era`:{let e=this.calendar.getEras(),n=e.indexOf(i.era);n=SU(n,t,0,e.length-1),i.era=e[n];break}case`year`:{let r=new fk(this.calendar,this.era??n.era,this.year??n.year,this.month??1,this.day??1);r=r.cycle(e,t,{round:e===`year`}),i.era=r.era,i.year=r.year;break}case`month`:i.month=SU(i.month??1,t,1,this.calendar.getMaximumMonthsInYear());break;case`day`:i.day=SU(i.day??1,t,1,this.calendar.getMaximumDaysInMonth());break;case`hour`:{let e=r.some(e=>[`year`,`month`,`day`].includes(e));if(`timeZone`in n&&(!e||i.year!=null&&i.month!=null&&i.day!=null)){let e=this.toValue(n);e=e.cycle(`hour`,t,{hourCycle:this.hourCycle===`h12`?12:24,round:!1});let[r,a]=CU(e.hour,this.hourCycle);i.hour=a,i.dayPeriod=r,i.offset=e.offset}else{let e=i.hour??0,r=this.getSegmentLimits(`hour`);i.hour=SU(e,t,r.minValue,r.maxValue),i.dayPeriod==null&&`hour`in n&&(i.dayPeriod=CU(n.hour,this.hourCycle)[0])}break}case`dayPeriod`:i.dayPeriod=SU(i.dayPeriod??0,t,0,1);break;case`minute`:i.minute=SU(i.minute??0,t,0,59,!0);break;case`second`:i.second=SU(i.second??0,t,0,59,!0)}return i}toValue(e){if(`hour`in e){let t=this.hour;t==null?(this.hourCycle===`h12`||this.hourCycle===`h11`)&&(t=this.dayPeriod===1?12:0):t=wU(t,this.dayPeriod??0,this.hourCycle);let n=e.set({era:this.era??e.era,year:this.year??e.year,month:this.month??e.month,day:this.day??e.day,hour:t??e.hour,minute:this.minute??e.minute,second:this.second??e.second,millisecond:this.millisecond??e.millisecond});return`offset`in n&&this.offset!=null&&n.offset!==this.offset&&(n=n.add({milliseconds:n.offset-this.offset})),n}return e.set({era:this.era??e.era,year:this.year??e.year,month:this.month??e.month,day:this.day??e.day})}getSegmentLimits(e){switch(e){case`era`:{let e=this.calendar.getEras();return{value:this.era==null?e.length-1:e.indexOf(this.era),minValue:0,maxValue:e.length-1}}case`year`:return{value:this.year,minValue:1,maxValue:9999};case`month`:return{value:this.month,minValue:1,maxValue:this.calendar.getMaximumMonthsInYear()};case`day`:return{value:this.day,minValue:1,maxValue:this.calendar.getMaximumDaysInMonth()};case`dayPeriod`:return{value:this.dayPeriod,minValue:0,maxValue:1};case`hour`:{let e=0,t=23;return this.hourCycle===`h12`?(e=1,t=12):this.hourCycle===`h11`&&(e=0,t=11),{value:this.hour,minValue:e,maxValue:t}}case`minute`:return{value:this.minute,minValue:0,maxValue:59};case`second`:return{value:this.second,minValue:0,maxValue:59}}}};function SU(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let i=Math.abs(t);e=t>0?Math.ceil(e/i)*i:Math.floor(e/i)*i,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function CU(e,t){let n=+(e>=12);switch(t){case`h11`:e>=12&&(e-=12);break;case`h12`:e===0?e=12:e>12&&(e-=12);break;case`h23`:n=null;break;case`h24`:e+=1,n=null}return[n,e]}function wU(e,t,n){switch(n){case`h11`:t===1&&(e+=12);break;case`h12`:e===12&&(e=0),t===1&&(e+=12);break;case`h24`:--e}return e}var TU={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},EU={year:5,month:2,day:7,hour:2,minute:15,second:15},Ute={dayperiod:`dayPeriod`,relatedYear:`year`,yearName:`literal`,unknown:`literal`};function DU(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:a=!1,isRequired:o=!1,minValue:s,maxValue:c,isDateUnavailable:l}=e,u=e.value||e.defaultValue||e.placeholderValue||null,[d,f]=vU(u,e.granularity),p=f||`UTC`;if(u&&!(d in u))throw Error(`Invalid granularity `+d+` for value `+u.toString());let[m,h]=(0,x.useMemo)(()=>{let r=new xA(t,{dateStyle:`short`,timeStyle:`short`,hour12:e.hourCycle==null?void 0:e.hourCycle===12}).resolvedOptions();return[n(r.calendar),r.hourCycle]},[t,e.hourCycle,n]),[g,_]=yT(e.value,e.defaultValue??null,e.onChange),[v]=(0,x.useState)(g),y=(0,x.useMemo)(()=>gU(g,m)??null,[g,m]),[b,S]=(0,x.useState)(()=>new xU(m,h,y)),C=m.identifier===`gregory`&&b.era===`BC`,w=(0,x.useMemo)(()=>({granularity:d,maxGranularity:e.maxGranularity??`year`,timeZone:f,hideTimeZone:r,hourCycle:e.hourCycle,showEra:C,shouldForceLeadingZeros:e.shouldForceLeadingZeros}),[e.maxGranularity,d,e.hourCycle,e.shouldForceLeadingZeros,f,r,C]),T=(0,x.useMemo)(()=>hU({},w),[w]),E=(0,x.useMemo)(()=>new xA(t,T),[t,T]),D=(0,x.useMemo)(()=>E.resolvedOptions(),[E]),O=(0,x.useMemo)(()=>_U(e.placeholderValue,d,m,f),[e.placeholderValue,d,m,f]),k=(0,x.useMemo)(()=>{let t=h===`h11`||h===`h12`,n=[`era`,`year`,`month`,`day`,`hour`,...t?[`dayPeriod`]:[],`minute`,`second`],r=n.indexOf(e.maxGranularity||`era`),i=n.indexOf(d===`hour`&&t?`dayPeriod`:d);return n.slice(r,i+1)},[e.maxGranularity,d,h]),[A,j]=(0,x.useState)(y),[M,N]=(0,x.useState)(m),[P,F]=(0,x.useState)(h);y===A&&h===P&&_O(m,M)||(b=new xU(m,h,y),j(y),N(m),F(h),S(b));let ee=t=>{if(!(e.isDisabled||e.isReadOnly)){if(t==null||t instanceof xU&&t.isCleared(k))S(new xU(m,h,y)),_(null);else if(!(t instanceof xU))t=zO(t,u?.calendar||new gO),S(new xU(m,h,y)),_(t);else{if(t.isComplete(k)){let e=t.toValue(y??O);if(t.validate(e,k)){let t=zO(e,u?.calendar||new gO);if(!g||t.compare(g)!==0){S(new xU(m,h,y)),_(t);return}}}S(t)}}},I=(0,x.useMemo)(()=>b.toValue(y??O).toDate(p),[b,p,y,O]),te=(0,x.useMemo)(()=>Wte(I,b,E,D,m,t,d),[I,E,D,b,m,t,d]),ne=(e,t)=>{ee(b.cycle(e,t,O,k))},re=(0,x.useMemo)(()=>fU(g,s,c,l,w),[g,s,c,l,w]),ie=QA({...e,value:g,builtinValidation:re}),ae=ie.displayValidation.isInvalid,oe=e.validationState||(ae?`invalid`:null);return{...ie,value:y,defaultValue:e.defaultValue??v,dateValue:I,calendar:m,setValue:ee,segments:te,dateFormatter:E,validationState:oe,isInvalid:ae,granularity:d,maxGranularity:e.maxGranularity??`year`,isDisabled:i,isReadOnly:a,isRequired:o,increment(e){ne(e,1)},decrement(e){ne(e,-1)},incrementPage(e){ne(e,EU[e]||1)},decrementPage(e){ne(e,-(EU[e]||1))},incrementToMax(e){let t=e===`hour`&&h===`h12`?11:b.getSegmentLimits(e).maxValue;ee(b.set(e,t,O))},decrementToMin(e){let t=e===`hour`&&h===`h12`?12:b.getSegmentLimits(e).minValue;ee(b.set(e,t,O))},setSegment(e,t){ee(b.set(e,t,O))},confirmPlaceholder(){if(!(e.isDisabled||e.isReadOnly)&&b.isComplete(k)){let e=zO(b.toValue(y??O),u?.calendar||new gO);g&&e.compare(g)===0||_(e),S(new xU(m,h,y))}},clearSegment(e){let t=b;e!==`timeZoneName`&&e!==`literal`&&(t=b.clear(e)),ee(t)},formatValue(e){if(!y)return``;let n=hU(e,w);return new xA(t,n).format(I)},getDateFormatter(e,t){return new xA(e,hU({},{...w,...t}))}}}function Wte(e,t,n,r,i,a,o){let s=[`hour`,`minute`,`second`],c=n.formatToParts(e),l=new ED(a,{useGrouping:!1}),u=new ED(a,{useGrouping:!1,minimumIntegerDigits:2});for(let e of c)if(e.type===`year`||e.type===`month`||e.type===`day`||e.type===`hour`){let n=t[e.type]??0;e.value=r[e.type]===`2-digit`?u.format(n):l.format(n)}let d=[];for(let e of c){let n=Ute[e.type]||e.type,r=TU[n];n===`era`&&i.getEras().length===1&&(r=!1);let c=TU[n]&&t[e.type]==null,l=TU[n]?bU(n,e.value,a):null,u={type:n,text:c?l:e.value,...t.getSegmentLimits(n),isPlaceholder:c,placeholder:l,isEditable:r};n===`hour`?(d.push({type:`literal`,text:`⁦`,isPlaceholder:!1,placeholder:``,isEditable:!1}),d.push(u),n===o&&d.push({type:`literal`,text:`⁩`,isPlaceholder:!1,placeholder:``,isEditable:!1})):s.includes(n)&&n===o?(d.push(u),d.push({type:`literal`,text:`⁩`,isPlaceholder:!1,placeholder:``,isEditable:!1})):d.push(u)}return d}var OU=(0,x.createContext)(null),kU=(0,x.createContext)(null),AU=(0,x.createContext)(null),Gte=(0,x.forwardRef)(function(e,t){[e,t]=SS(e,t,OU);let{validationBehavior:n}=xS(ij)||{},r=e.validationBehavior??n??`native`,{locale:i}=iT(),a=DU({...e,locale:i,createCalendar:yA,validationBehavior:r}),o=(0,x.useRef)(null),[s,c]=CS(!e[`aria-label`]&&!e[`aria-labelledby`]),l=(0,x.useRef)(null),{labelProps:u,fieldProps:d,inputProps:f,descriptionProps:p,errorMessageProps:m,...h}=SH({...wS(e),label:c,inputRef:l,validationBehavior:r},a,o),g=yS({...wS(e),values:{state:a,isInvalid:a.isInvalid,isDisabled:a.isDisabled,isReadOnly:a.isReadOnly,isRequired:e.isRequired||!1},defaultClassName:`react-aria-DateField`}),_=q(e,{global:!0});return delete _.id,x.createElement(vS,{values:[[kU,a],[wN,{...d,ref:o,isInvalid:a.isInvalid,isDisabled:a.isDisabled}],[EN,{...f,ref:l}],[xD,{...u,ref:s,elementType:`span`}],[oO,{slots:{description:p,errorMessage:m}}],[WA,h]]},x.createElement(G.div,{..._,...g,ref:t,slot:e.slot||void 0,"data-invalid":a.isInvalid||void 0,"data-disabled":a.isDisabled||void 0,"data-readonly":a.isReadOnly||void 0,"data-required":e.isRequired||void 0}),x.createElement(PV,{autoComplete:e.autoComplete,name:e.name,isDisabled:e.isDisabled,state:a}))}),Kte=(0,x.forwardRef)(function(e,t){let n=(0,x.useContext)(kU),r=(0,x.useContext)(AU);return n||r?x.createElement(jU,{...e,ref:t}):x.createElement(qte,{...e,ref:t})}),qte=(0,x.forwardRef)((e,t)=>{let[n,r]=SS({slot:e.slot},t,OU),{locale:i}=iT(),a=DU({...n,locale:i,createCalendar:yA}),o=(0,x.useRef)(null),{fieldProps:s,inputProps:c}=SH({...n,inputRef:o},a,r);return x.createElement(vS,{values:[[kU,a],[EN,{...c,ref:o}],[wN,{...s,ref:r,isInvalid:a.isInvalid,isDisabled:a.isDisabled}]]},x.createElement(jU,e))}),jU=(0,x.forwardRef)((e,t)=>{let{className:n,children:r}=e,i=(0,x.useContext)(kU),a=(0,x.useContext)(AU),o=i??a;return x.createElement(x.Fragment,null,x.createElement(TN,{...e,ref:t,slot:e.slot||void 0,className:n??`react-aria-DateInput`,isReadOnly:o.isReadOnly,isInvalid:o.isInvalid,isDisabled:o.isDisabled},o.segments.map((e,t)=>(0,x.cloneElement)(r(e),{key:t}))),x.createElement(ON,{className:``}))}),Jte=(0,x.forwardRef)(function({segment:e,...t},n){let r=(0,x.useContext)(kU),i=(0,x.useContext)(AU),a=r??i,o=gS(n),{segmentProps:s}=EH(e,a,o),{focusProps:c,isFocused:l,isFocusVisible:u}=fD(),{hoverProps:d,isHovered:f}=vD({...t,isDisabled:a.isDisabled||e.type===`literal`}),p=yS({...t,values:{...e,isReadOnly:a.isReadOnly,isInvalid:a.isInvalid,isDisabled:a.isDisabled,isHovered:f,isFocused:l,isFocusVisible:u},defaultChildren:e.text,defaultClassName:`react-aria-DateSegment`});return x.createElement(G.span,{...W(q(t,{global:!0}),s,c,d),...p,style:s.style,ref:o,"data-placeholder":e.isPlaceholder||void 0,"data-invalid":a.isInvalid||void 0,"data-readonly":a.isReadOnly||void 0,"data-disabled":a.isDisabled||void 0,"data-type":e.type,"data-hovered":f||void 0,"data-focused":l||void 0,"data-focus-visible":u||void 0})});function Yte(e,t,n){let{isDisabled:r}=e,i=dS(),a=dS(),o=aS(),s=(0,x.useRef)(null);qw(n,`beforematch`,(0,x.useCallback)(()=>{s.current=requestAnimationFrame(()=>{n.current&&n.current.setAttribute(`hidden`,`until-found`)}),(0,vE.flushSync)(()=>{t.toggle()})},[n,t]));let c=(0,x.useRef)(null);return qx(()=>{if(s.current&&cancelAnimationFrame(s.current),n.current&&!o){let e=n.current;c.current==null||typeof e.getAnimations!=`function`?t.isExpanded?(e.removeAttribute(`hidden`),e.style.setProperty(`--disclosure-panel-width`,`auto`),e.style.setProperty(`--disclosure-panel-height`,`auto`)):(e.setAttribute(`hidden`,`until-found`),e.style.setProperty(`--disclosure-panel-width`,`0px`),e.style.setProperty(`--disclosure-panel-height`,`0px`)):t.isExpanded!==c.current&&(t.isExpanded?(e.removeAttribute(`hidden`),e.style.setProperty(`--disclosure-panel-width`,e.scrollWidth+`px`),e.style.setProperty(`--disclosure-panel-height`,e.scrollHeight+`px`),Promise.all(e.getAnimations().map(e=>e.finished)).then(()=>{e.style.setProperty(`--disclosure-panel-width`,`auto`),e.style.setProperty(`--disclosure-panel-height`,`auto`)}).catch(()=>{})):(e.style.setProperty(`--disclosure-panel-width`,e.scrollWidth+`px`),e.style.setProperty(`--disclosure-panel-height`,e.scrollHeight+`px`),window.getComputedStyle(e).height,e.style.setProperty(`--disclosure-panel-width`,`0px`),e.style.setProperty(`--disclosure-panel-height`,`0px`),Promise.all(e.getAnimations().map(e=>e.finished)).then(()=>e.setAttribute(`hidden`,`until-found`)).catch(()=>{}))),c.current=t.isExpanded}},[r,n,t.isExpanded,o]),(0,x.useEffect)(()=>()=>{s.current&&cancelAnimationFrame(s.current)},[]),{buttonProps:{id:i,"aria-expanded":t.isExpanded,"aria-controls":a,onPress:e=>{!r&&e.pointerType!==`keyboard`&&t.toggle()},isDisabled:r,onPressStart(e){e.pointerType===`keyboard`&&!r&&t.toggle()}},panelProps:{id:a,role:`group`,"aria-labelledby":i,"aria-hidden":!t.isExpanded,hidden:o?!t.isExpanded:void 0}}}function Xte(e){let[t,n]=yT(e.isExpanded,e.defaultExpanded||!1,e.onExpandedChange);return{isExpanded:t,setExpanded:n,expand:(0,x.useCallback)(()=>{n(!0)},[n]),collapse:(0,x.useCallback)(()=>{n(!1)},[n]),toggle:(0,x.useCallback)(()=>{n(!t)},[n,t])}}var Zte=(0,x.createContext)(null),Qte=(0,x.createContext)(null),$te=(0,x.createContext)(null),MU=(0,x.createContext)(null),ene=(0,x.forwardRef)(function(e,t){[e,t]=SS(e,t,Qte);let n=(0,x.useContext)(Zte),{id:r,...i}=e,a=dS();r||=a;let o=n?n.expandedKeys.has(r):e.isExpanded,s=Xte({...e,isExpanded:o,onExpandedChange(t){n&&n.toggleKey(r),e.onExpandedChange?.(t)}}),c=x.useRef(null),l=e.isDisabled||n?.isDisabled||!1,{buttonProps:u,panelProps:d}=Yte({...e,isExpanded:o,isDisabled:l},s,c),{isFocusVisible:f,focusProps:p}=fD({within:!0}),m=yS({...e,id:void 0,defaultClassName:`react-aria-Disclosure`,values:{isExpanded:s.isExpanded,isDisabled:l,isFocusVisibleWithin:f,state:s}}),h=q(i,{global:!0});return x.createElement(vS,{values:[[eO,{slots:{[_S]:{},trigger:u}}],[MU,{panelProps:d,panelRef:c}],[$te,s]]},x.createElement(G.div,{...W(h,m,p),ref:t,"data-expanded":s.isExpanded||void 0,"data-disabled":l||void 0,"data-focus-visible-within":f||void 0},m.children))}),tne=(0,x.forwardRef)(function(e,t){let{role:n=`group`}=e,{panelProps:r,panelRef:i}=(0,x.useContext)(MU),{isFocusVisible:a,focusProps:o}=fD({within:!0}),s=yS({...e,defaultClassName:`react-aria-DisclosurePanel`,values:{isFocusVisibleWithin:a}}),c=q(e,{global:!0,labelable:!0});return x.createElement(G.div,{...W(c,s,r,o),ref:mS(t,i),role:n,"data-focus-visible-within":a||void 0},x.createElement(vS,{values:[[eO,null]]},e.children))}),NU=function(e){return e[e.none=0]=`none`,e[e.cancel=0]=`cancel`,e[e.move=1]=`move`,e[e.copy=2]=`copy`,e[e.link=4]=`link`,e[e.all=7]=`all`,e}({}),PU={...NU,copyMove:3,copyLink:6,linkMove:5,all:7,uninitialized:7},FU=RU(PU);FU[7]=`all`;var IU={none:`cancel`,link:`link`,copy:`copy`,move:`move`},LU=RU(IU);function RU(e){let t={};for(let n in e)t[e[n]]=n;return t}var nne=new Set([`text/plain`,`text/uri-list`,`text/html`]),zU=`application/vnd.react-aria.items+json`,rne=`application/octet-stream`,ine=Symbol();function BU(e){let t=new Set;for(let n of e)for(let e of Object.keys(n))t.add(e);return t}function VU(e){return e||=`virtual`,e===`pointer`&&(e=`virtual`),e===`virtual`&&typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(`(pointer: coarse)`).matches&&(e=`touch`),e}function HU(){return VU($C())}function UU(){return VU(ZC())}function ane(e,t){let n=new Map,r=!1,i=[];for(let e of t){let t=Object.keys(e);t.length>1&&(r=!0);let a={};for(let i of t){let t=n.get(i);t?r=!0:(t=[],n.set(i,t));let o=e[i];a[i]=o,t.push(o)}i.push(a)}for(let[t,r]of n)if(nne.has(t)){let n=r.join(`
74
+ `);e.items.add(n,t)}else e.items.add(r[0],t);if(r){let t=JSON.stringify(i);e.items.add(t,zU)}}var WU=class{constructor(e){this.types=new Set;let t=!1;for(let n of e.items)n.type!==`application/vnd.react-aria.items+json`&&(n.kind===`file`&&(t=!0),n.type?this.types.add(n.type):this.types.add(rne));this.includesUnknownTypes=!t&&e.types.includes(`Files`)}has(e){if(Array.isArray(e))return e.some(e=>this.has(e));if(this.includesUnknownTypes||e===ine&&this.types.has(`application/octet-stream`)||e===`*/*`)return!0;if(typeof e==`string`){if(e.endsWith(`/*`)){for(let t of this.types)if(t.startsWith(e.slice(0,-2)))return!0;return!1}return this.types.has(e)}return!1}};function one(e){let t=[];if(!e)return t;let n=!1;if(e.types.includes(`application/vnd.react-aria.items+json`))try{let r=e.getData(zU),i=JSON.parse(r);for(let e of i)t.push({kind:`text`,types:new Set(Object.keys(e)),getText:t=>Promise.resolve(e[t])});n=!0}catch{}if(!n){let n=new Map;for(let r of e.items)if(r.kind===`string`)n.set(r.type||`application/octet-stream`,e.getData(r.type));else if(r.kind===`file`){if(typeof r.webkitGetAsEntry==`function`){let e=r.webkitGetAsEntry();if(!e)continue;e.isFile?t.push(GU(r.getAsFile())):e.isDirectory&&t.push(KU(e))}else t.push(GU(r.getAsFile()))}n.size>0&&t.push({kind:`text`,types:new Set(n.keys()),getText:e=>Promise.resolve(n.get(e))})}return t}function sne(e){return typeof e.text==`function`?e.text():new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{t(r.result)},r.onerror=n,r.readAsText(e)})}function GU(e){if(!e)throw Error(`No file provided`);return{kind:`file`,type:e.type||`application/octet-stream`,name:e.name,getText:()=>sne(e),getFile:()=>Promise.resolve(e)}}function KU(e){return{kind:`directory`,name:e.name,getEntries:()=>cne(e)}}async function*cne(e){let t=e.createReader(),n;do{n=await new Promise((e,n)=>{t.readEntries(e,n)});for(let e of n)e.isFile?yield GU(await lne(e)):e.isDirectory&&(yield KU(e))}while(n.length>0)}function lne(e){return new Promise((t,n)=>e.file(t,n))}function qU(e){return e.kind===`text`}var JU={draggingKeys:new Set};function une(e){JU=e}var YU;function XU(e){YU=e}var ZU=NU.none;function QU(e){ZU=e}var $U=new Map,eW=new Map,tW=null,nW=new Set;function dne(e){return $U.set(e.element,e),tW?.updateValidDropTargets(),()=>{$U.delete(e.element),tW?.updateValidDropTargets()}}function fne(e,t){if(tW)throw Error(`Cannot begin dragging while already dragging`);tW=new _ne(e,t),requestAnimationFrame(()=>{tW&&(tW.setup(),UU()===`keyboard`&&tW.next())});for(let e of nW)e()}function pne(){let[e,t]=(0,x.useState)(tW);return(0,x.useEffect)(()=>{let e=()=>t(tW);return nW.add(e),()=>{nW.delete(e)}},[]),e}function mne(){tW=null;for(let e of nW)e()}var rW=[`pointerdown`,`pointermove`,`pointerenter`,`pointerleave`,`pointerover`,`pointerout`,`pointerup`,`mousedown`,`mousemove`,`mouseenter`,`mouseleave`,`mouseover`,`mouseout`,`mouseup`,`touchstart`,`touchmove`,`touchend`,`focusin`,`focusout`],hne=[`pointerup`,`mouseup`,`touchend`],gne={keyboard:`dragStartedKeyboard`,touch:`dragStartedTouch`,virtual:`dragStartedVirtual`},_ne=class{constructor(e,t){this.validDropTargets=[],this.currentDropTarget=null,this.currentDropItem=null,this.dropOperation=null,this.mutationObserver=null,this.restoreAriaHidden=null,this.isVirtualClick=!1,this.dragTarget=e,this.stringFormatter=t,this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onClick=this.onClick.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.cancelEvent=this.cancelEvent.bind(this),this.initialFocused=!1}setup(){document.addEventListener(`keydown`,this.onKeyDown,!0),document.addEventListener(`keyup`,this.onKeyUp,!0),window.addEventListener(`focus`,this.onFocus,!0),window.addEventListener(`blur`,this.onBlur,!0),document.addEventListener(`click`,this.onClick,!0),document.addEventListener(`pointerdown`,this.onPointerDown,!0);for(let e of rW)document.addEventListener(e,this.cancelEvent,!0);this.mutationObserver=new MutationObserver(()=>this.updateValidDropTargets()),this.updateValidDropTargets(),XD(this.stringFormatter.format(gne[UU()]))}teardown(){document.removeEventListener(`keydown`,this.onKeyDown,!0),document.removeEventListener(`keyup`,this.onKeyUp,!0),window.removeEventListener(`focus`,this.onFocus,!0),window.removeEventListener(`blur`,this.onBlur,!0),document.removeEventListener(`click`,this.onClick,!0),document.removeEventListener(`pointerdown`,this.onPointerDown,!0);for(let e of rW)document.removeEventListener(e,this.cancelEvent,!0);this.mutationObserver?.disconnect(),this.restoreAriaHidden?.()}onKeyDown(e){this.cancelEvent(e),e.key===`Escape`?this.cancel():(e.key===`Tab`&&!(e.metaKey||e.altKey||e.ctrlKey)&&(e.shiftKey?this.previous():this.next()),typeof this.currentDropTarget?.onKeyDown==`function`&&this.currentDropTarget.onKeyDown(e,this.dragTarget))}onKeyUp(e){this.cancelEvent(e),e.key===`Enter`&&(e.altKey||zS(this.getCurrentActivateButton(),K(e))?this.activate(this.currentDropTarget,this.currentDropItem):this.drop())}getCurrentActivateButton(){return this.currentDropItem?.activateButtonRef?.current??this.currentDropTarget?.activateButtonRef?.current??null}onFocus(e){let t=this.getCurrentActivateButton(),n=K(e);if(n===t){this.cancelEvent(e);return}if(n!==this.dragTarget.element&&this.cancelEvent(e),!(n instanceof HTMLElement)||n===this.dragTarget.element)return;let r=this.validDropTargets.find(e=>e.element===n)||this.validDropTargets.find(e=>zS(e.element,n));if(!r){this.currentDropTarget?this.currentDropTarget.element.focus():this.dragTarget.element.focus();return}let i=eW.get(n);r&&this.setCurrentDropTarget(r,i)}onBlur(e){let t=this.getCurrentActivateButton();t&&e.relatedTarget===t?this.cancelEvent(e):(K(e)!==this.dragTarget.element&&this.cancelEvent(e),e.relatedTarget&&e.relatedTarget instanceof HTMLElement||(this.currentDropTarget?this.currentDropTarget.element.focus():this.dragTarget.element.focus()))}onClick(e){if(this.cancelEvent(e),bC(e)||this.isVirtualClick){let t=eW.values(),n=K(e),r=[...t].find(e=>e.element===n||zS(e.activateButtonRef?.current,n)),i=this.validDropTargets.find(e=>zS(e.element,n));if(zS(r?.activateButtonRef?.current??i?.activateButtonRef?.current,n)&&i){this.activate(i,r);return}if(K(e)===this.dragTarget.element){this.cancel();return}i&&(this.setCurrentDropTarget(i,r),this.drop(r))}}onPointerDown(e){this.cancelEvent(e),this.isVirtualClick=xC(e)}cancelEvent(e){let t=K(e);(e.type!==`focusin`&&e.type!==`focusout`||t!==this.dragTarget?.element&&t!==this.getCurrentActivateButton())&&(hne.includes(e.type)||e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation())}updateValidDropTargets(){if(!this.mutationObserver)return;if(this.mutationObserver.disconnect(),this.restoreAriaHidden&&this.restoreAriaHidden(),this.validDropTargets=vne(this.dragTarget),this.validDropTargets.length>0){let e=this.findNearestDropTarget();this.validDropTargets=[...this.validDropTargets.slice(e),...this.validDropTargets.slice(0,e)]}this.currentDropTarget&&!this.validDropTargets.includes(this.currentDropTarget)&&this.setCurrentDropTarget(this.validDropTargets[0]);let e=BU(this.dragTarget.items),t=[...eW.values()].filter(t=>typeof t.getDropOperation!=`function`||t.getDropOperation(e,this.dragTarget.allowedDropOperations)!==`cancel`),n=this.validDropTargets.filter(e=>!t.some(t=>zS(e.element,t.element)));this.restoreAriaHidden=gR([this.dragTarget.element,...t.flatMap(e=>e.activateButtonRef?.current?[e.element,e.activateButtonRef?.current]:[e.element]),...n.flatMap(e=>e.activateButtonRef?.current?[e.element,e.activateButtonRef?.current]:[e.element])],{shouldUseInert:!0}),this.mutationObserver.observe(document.body,{subtree:!0,attributes:!0,attributeFilter:[`aria-hidden`,`inert`]})}next(){if(!this.currentDropTarget){this.setCurrentDropTarget(this.validDropTargets[0]);return}let e=this.validDropTargets.indexOf(this.currentDropTarget);e<0?this.setCurrentDropTarget(this.validDropTargets[0]):e===this.validDropTargets.length-1?this.dragTarget.element.closest(`[aria-hidden="true"], [inert]`)?this.setCurrentDropTarget(this.validDropTargets[0]):(this.setCurrentDropTarget(null),this.dragTarget.element.focus()):this.setCurrentDropTarget(this.validDropTargets[e+1])}previous(){if(!this.currentDropTarget){this.setCurrentDropTarget(this.validDropTargets[this.validDropTargets.length-1]);return}let e=this.validDropTargets.indexOf(this.currentDropTarget);e<0?this.setCurrentDropTarget(this.validDropTargets[this.validDropTargets.length-1]):e===0?this.dragTarget.element.closest(`[aria-hidden="true"], [inert]`)?this.setCurrentDropTarget(this.validDropTargets[this.validDropTargets.length-1]):(this.setCurrentDropTarget(null),this.dragTarget.element.focus()):this.setCurrentDropTarget(this.validDropTargets[e-1])}findNearestDropTarget(){let e=this.dragTarget.element.getBoundingClientRect(),t=1/0,n=-1,r=-1;for(let i=0;i<this.validDropTargets.length;i++){let a=this.validDropTargets[i];r<0&&zS(a.element,this.dragTarget.element)&&(r=i);let o=a.element.getBoundingClientRect(),s=o.left-e.left,c=o.top-e.top,l=s*s+c*c;l<t&&(t=l,n=i)}return r>=0?r:n}setCurrentDropTarget(e,t){if(e!==this.currentDropTarget){if(this.currentDropTarget&&typeof this.currentDropTarget.onDropExit==`function`){let e=this.currentDropTarget.element.getBoundingClientRect();this.currentDropTarget.onDropExit({type:`dropexit`,x:e.left+e.width/2,y:e.top+e.height/2})}if(this.currentDropTarget=e,e){if(typeof e.onDropEnter==`function`){let t=e.element.getBoundingClientRect();e.onDropEnter({type:`dropenter`,x:t.left+t.width/2,y:t.top+t.height/2},this.dragTarget)}t||e?.element.focus()}}if(t!=null&&t!==this.currentDropItem&&(this.currentDropTarget&&typeof this.currentDropTarget.onDropTargetEnter==`function`&&this.currentDropTarget.onDropTargetEnter(t.target),t.element.focus(),this.currentDropItem=t,!this.initialFocused)){let e=t?.element.getAttribute(`aria-label`);e&&XD(e,`polite`),this.initialFocused=!0}}end(){if(this.teardown(),mne(),typeof this.dragTarget.onDragEnd==`function`){let e=(this.currentDropTarget&&this.dropOperation!==`cancel`?this.currentDropTarget:this.dragTarget).element.getBoundingClientRect();this.dragTarget.onDragEnd({type:`dragend`,x:e.x+e.width/2,y:e.y+e.height/2,dropOperation:this.dropOperation||`cancel`})}this.currentDropTarget&&!this.currentDropTarget.preventFocusOnDrop&&BS()?.dispatchEvent(new FocusEvent(`focusin`,{bubbles:!0})),this.setCurrentDropTarget(null)}cancel(){this.setCurrentDropTarget(null),this.end(),this.dragTarget.element.closest(`[aria-hidden="true"], [inert]`)||this.dragTarget.element.focus(),BS()?.dispatchEvent(new FocusEvent(`focusin`,{bubbles:!0})),XD(this.stringFormatter.format(`dropCanceled`))}drop(e){if(!this.currentDropTarget)this.cancel();else{if(typeof e?.getDropOperation==`function`){let t=BU(this.dragTarget.items);this.dropOperation=e.getDropOperation(t,this.dragTarget.allowedDropOperations)}else if(typeof this.currentDropTarget.getDropOperation==`function`){let e=BU(this.dragTarget.items);this.dropOperation=this.currentDropTarget.getDropOperation(e,this.dragTarget.allowedDropOperations)}else this.dropOperation=this.dragTarget.allowedDropOperations[0];if(typeof this.currentDropTarget.onDrop==`function`){let t=this.dragTarget.items.map(e=>({kind:`text`,types:new Set(Object.keys(e)),getText:t=>Promise.resolve(e[t])})),n=this.currentDropTarget.element.getBoundingClientRect();this.currentDropTarget.onDrop({type:`drop`,x:n.left+n.width/2,y:n.top+n.height/2,items:t,dropOperation:this.dropOperation},e?.target??null)}this.end(),XD(this.stringFormatter.format(`dropComplete`))}}activate(e,t){if(e&&typeof e.onDropActivate==`function`){let n=t?.target??null,r=e.element.getBoundingClientRect();e.onDropActivate({type:`dropactivate`,x:r.left+r.width/2,y:r.top+r.height/2},n)}}};function vne(e){let t=BU(e.items);return[...$U.values()].filter(n=>n.element.closest(`[aria-hidden="true"], [inert]`)?!1:typeof n.getDropOperation!=`function`||n.getDropOperation(t,e.allowedDropOperations)!==`cancel`)}var iW={};iW={dragDescriptionKeyboard:`اضغط Enter لبدء السحب.`,dragDescriptionKeyboardAlt:`اضغط على Alt + Enter لبدء السحب.`,dragDescriptionLongPress:`اضغط باستمرار لبدء السحب.`,dragDescriptionTouch:`اضغط مرتين لبدء السحب.`,dragDescriptionVirtual:`انقر لبدء السحب.`,dragItem:e=>`\u{627}\u{633}\u{62D}\u{628} ${e.itemText}`,dragSelectedItems:(e,t)=>`\u{627}\u{633}\u{62D}\u{628} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{639}\u{646}\u{635}\u{631} \u{645}\u{62D}\u{62F}\u{62F}`,other:()=>`${t.number(e.count)} \u{639}\u{646}\u{627}\u{635}\u{631} \u{645}\u{62D}\u{62F}\u{62F}\u{629}`})}`,dragSelectedKeyboard:(e,t)=>`\u{627}\u{636}\u{63A}\u{637} \u{639}\u{644}\u{649} Enter \u{644}\u{644}\u{633}\u{62D}\u{628} ${t.plural(e.count,{one:`عدد العناصر المختارة`,other:`عدد العناصر المختارة`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u{627}\u{636}\u{63A}\u{637} \u{639}\u{644}\u{649} \u{645}\u{641}\u{62A}\u{627}\u{62D}\u{64A} Alt + Enter \u{644}\u{644}\u{633}\u{62D}\u{628} ${t.plural(e.count,{one:`عدد العناصر المختارة`,other:`عدد العناصر المختارة`})}.`,dragSelectedLongPress:(e,t)=>`\u{627}\u{636}\u{63A}\u{637} \u{628}\u{627}\u{633}\u{62A}\u{645}\u{631}\u{627}\u{631} \u{644}\u{644}\u{633}\u{62D}\u{628} ${t.plural(e.count,{one:`عدد العناصر المختارة`,other:`عدد العناصر المختارة`})}.`,dragStartedKeyboard:`بدأ السحب. اضغط Tab للانتقال إلى موضع الإفلات، ثم اضغط Enter للإفلات، أو اضغط Escape للإلغاء.`,dragStartedTouch:`بدأ السحب. انتقل إلى موضع الإفلات، ثم اضغط مرتين للإفلات.`,dragStartedVirtual:`بدأ السحب. انتقل إلى مكان الإفلات، ثم انقر أو اضغط Enter للإفلات.`,dropCanceled:`تم إلغاء الإفلات.`,dropComplete:`اكتمل الإفلات.`,dropDescriptionKeyboard:`اضغط Enter للإفلات. اضغط Escape لإلغاء السحب.`,dropDescriptionTouch:`اضغط مرتين للإفلات.`,dropDescriptionVirtual:`انقر للإفلات.`,dropIndicator:`مؤشر الإفلات`,dropOnItem:e=>`\u{625}\u{641}\u{644}\u{627}\u{62A} ${e.itemText}`,dropOnRoot:`الإفلات`,endDragKeyboard:`السحب. اضغط Enter لإلغاء السحب.`,endDragTouch:`السحب. اضغط مرتين لإلغاء السحب.`,endDragVirtual:`السحب. انقر لإلغاء السحب.`,insertAfter:e=>`\u{623}\u{62F}\u{62E}\u{644} \u{628}\u{639}\u{62F} ${e.itemText}`,insertBefore:e=>`\u{623}\u{62F}\u{62E}\u{644} \u{642}\u{628}\u{644} ${e.itemText}`,insertBetween:e=>`\u{623}\u{62F}\u{62E}\u{644} \u{628}\u{64A}\u{646} ${e.beforeItemText} \u{648} ${e.afterItemText}`};var aW={};aW={dragDescriptionKeyboard:`Натиснете „Enter“, за да започнете да плъзгате.`,dragDescriptionKeyboardAlt:`Натиснете Alt + Enter, за да започнете да плъзгате.`,dragDescriptionLongPress:`Натиснете продължително, за да започнете да плъзгате.`,dragDescriptionTouch:`Натиснете двукратно, за да започнете да плъзгате.`,dragDescriptionVirtual:`Щракнете, за да започнете да плъзгате.`,dragItem:e=>`\u{41F}\u{43B}\u{44A}\u{437}\u{43D}\u{438} ${e.itemText}`,dragSelectedItems:(e,t)=>`\u{41F}\u{43B}\u{44A}\u{437}\u{43D}\u{438} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{430}`})}`,dragSelectedKeyboard:(e,t)=>`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435} Enter, \u{437}\u{430} \u{434}\u{430} \u{43F}\u{43B}\u{44A}\u{437}\u{43D}\u{435}\u{442}\u{435} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{438}`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435} Alt \u{438} Enter, \u{437}\u{430} \u{434}\u{430} \u{43F}\u{43B}\u{44A}\u{437}\u{43D}\u{435}\u{442}\u{435} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{438}`})}.`,dragSelectedLongPress:(e,t)=>`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435} \u{43F}\u{440}\u{43E}\u{434}\u{44A}\u{43B}\u{436}\u{438}\u{442}\u{435}\u{43B}\u{43D}\u{43E}, \u{437}\u{430} \u{434}\u{430} \u{43F}\u{43B}\u{44A}\u{437}\u{43D}\u{435}\u{442}\u{435} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{438}`})}.`,dragStartedKeyboard:`Започна плъзгане. Натиснете „Tab“, за да се придвижите до целта, след което натиснете „Enter“ за пускане или натиснете „Escape“ за отмяна.`,dragStartedTouch:`Започна плъзгане. Придвижете се до целта, след което натиснете двукратно, за да пуснете.`,dragStartedVirtual:`Започна плъзгане. Придвижете се до целта, след което щракнете или натиснете „Enter“ за пускане.`,dropCanceled:`Пускането е отменено.`,dropComplete:`Пускането е завършено.`,dropDescriptionKeyboard:`Натиснете „Enter“ за пускане. Натиснете „Escape“ за отмяна на плъзгането.`,dropDescriptionTouch:`Натиснете двукратно за пускане.`,dropDescriptionVirtual:`Щракнете за пускане.`,dropIndicator:`индикатор за пускане`,dropOnItem:e=>`\u{41F}\u{443}\u{441}\u{43D}\u{438} \u{432}\u{44A}\u{440}\u{445}\u{443} ${e.itemText}`,dropOnRoot:`Пусни върху`,endDragKeyboard:`Плъзгане. Натиснете „Enter“ за отмяна на плъзгането.`,endDragTouch:`Плъзгане. Натиснете двукратно за отмяна на плъзгането.`,endDragVirtual:`Плъзгане. Щракнете за отмяна.`,insertAfter:e=>`\u{412}\u{43C}\u{44A}\u{43A}\u{43D}\u{438} \u{441}\u{43B}\u{435}\u{434} ${e.itemText}`,insertBefore:e=>`\u{412}\u{43C}\u{44A}\u{43A}\u{43D}\u{438} \u{43F}\u{440}\u{435}\u{434}\u{438} ${e.itemText}`,insertBetween:e=>`\u{412}\u{43C}\u{44A}\u{43A}\u{43D}\u{438} \u{43C}\u{435}\u{436}\u{434}\u{443} ${e.beforeItemText} \u{438} ${e.afterItemText}`};var oW={};oW={dragDescriptionKeyboard:`Stisknutím klávesy Enter začnete s přetahováním.`,dragDescriptionKeyboardAlt:`Stisknutím Alt + Enter zahájíte přetahování.`,dragDescriptionLongPress:`Dlouhým stisknutím zahájíte přetahování.`,dragDescriptionTouch:`Poklepáním začnete s přetahováním.`,dragDescriptionVirtual:`Kliknutím začnete s přetahováním.`,dragItem:e=>`P\u{159}et\xe1hnout ${e.itemText}`,dragSelectedItems:(e,t)=>`P\u{159}et\xe1hnout ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou polo\u{17E}ku`,few:()=>`${t.number(e.count)} vybran\xe9 polo\u{17E}ky`,other:()=>`${t.number(e.count)} vybran\xfdch polo\u{17E}ek`})}`,dragSelectedKeyboard:(e,t)=>`Stisknut\xedm kl\xe1vesy Enter p\u{159}et\xe1hn\u{11B}te ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou polo\u{17E}ku`,other:()=>`${t.number(e.count)} vybran\xe9 polo\u{17E}ky`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Stisknut\xedm Alt + Enter p\u{159}et\xe1hn\u{11B}te ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou polo\u{17E}ku`,other:()=>`${t.number(e.count)} vybran\xe9 polo\u{17E}ky`})}.`,dragSelectedLongPress:(e,t)=>`Dlouh\xfdm stisknut\xedm p\u{159}et\xe1hnete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou polo\u{17E}ku`,other:()=>`${t.number(e.count)} vybran\xe9 polo\u{17E}ky`})}.`,dragStartedKeyboard:`Začněte s přetahováním. Po stisknutí klávesy Tab najděte požadovaný cíl a stisknutím klávesy Enter přetažení dokončete nebo stisknutím klávesy Esc akci zrušte.`,dragStartedTouch:`Začněte s přetahováním. Najděte požadovaný cíl a poklepáním přetažení dokončete.`,dragStartedVirtual:`Začněte s přetahováním. Najděte požadovaný cíl a kliknutím nebo stisknutím klávesy Enter přetažení dokončete.`,dropCanceled:`Přetažení bylo zrušeno.`,dropComplete:`Přetažení bylo dokončeno.`,dropDescriptionKeyboard:`Stisknutím klávesy Enter přetažení dokončete nebo stisknutím klávesy Esc akci zrušte.`,dropDescriptionTouch:`Poklepáním přetažení dokončete.`,dropDescriptionVirtual:`Kliknutím objekt přetáhněte.`,dropIndicator:`indikátor přetažení`,dropOnItem:e=>`P\u{159}et\xe1hnout na ${e.itemText}`,dropOnRoot:`Přetáhnout na`,endDragKeyboard:`Probíhá přetahování. Stisknutím klávesy Enter přetažení zrušíte.`,endDragTouch:`Probíhá přetahování. Poklepáním přetažení zrušíte.`,endDragVirtual:`Probíhá přetahování. Kliknutím přetažení zrušíte.`,insertAfter:e=>`Vlo\u{17E}it za ${e.itemText}`,insertBefore:e=>`Vlo\u{17E}it p\u{159}ed ${e.itemText}`,insertBetween:e=>`Vlo\u{17E}it mezi ${e.beforeItemText} a ${e.afterItemText}`};var sW={};sW={dragDescriptionKeyboard:`Tryk på Enter for at starte med at trække.`,dragDescriptionKeyboardAlt:`Tryk på Alt + Enter for at starte med at trække.`,dragDescriptionLongPress:`Tryk længe for at starte med at trække.`,dragDescriptionTouch:`Dobbelttryk for at starte med at trække.`,dragDescriptionVirtual:`Klik for at starte med at trække.`,dragItem:e=>`Tr\xe6k ${e.itemText}`,dragSelectedItems:(e,t)=>`Tr\xe6k ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}`,dragSelectedKeyboard:(e,t)=>`Tryk p\xe5 Enter for at tr\xe6kke ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Tryk p\xe5 Alt + Enter for at tr\xe6kke ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedLongPress:(e,t)=>`Tryk l\xe6nge for at tr\xe6kke ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragStartedKeyboard:`Startet med at trække. Tryk på Tab for at gå til et slip-mål, tryk derefter på Enter for at slippe, eller tryk på Escape for at annullere.`,dragStartedTouch:`Startet med at trække. Gå til et slip-mål, og dobbelttryk derefter for at slippe.`,dragStartedVirtual:`Startet med at trække. Gå til et slip-mål, og klik eller tryk derefter på enter for at slippe.`,dropCanceled:`Slip annulleret.`,dropComplete:`Slip fuldført.`,dropDescriptionKeyboard:`Tryk på Enter for at slippe. Tryk på Escape for at annullere trækning.`,dropDescriptionTouch:`Dobbelttryk for at slippe.`,dropDescriptionVirtual:`Klik for at slippe.`,dropIndicator:`slip-indikator`,dropOnItem:e=>`Slip p\xe5 ${e.itemText}`,dropOnRoot:`Slip på`,endDragKeyboard:`Trækning. Tryk på enter for at annullere træk.`,endDragTouch:`Trækning. Dobbelttryk for at annullere træk.`,endDragVirtual:`Trækning. Klik for at annullere trækning.`,insertAfter:e=>`Inds\xe6t efter ${e.itemText}`,insertBefore:e=>`Inds\xe6t f\xf8r ${e.itemText}`,insertBetween:e=>`Inds\xe6t mellem ${e.beforeItemText} og ${e.afterItemText}`};var cW={};cW={dragDescriptionKeyboard:`Drücken Sie die Eingabetaste, um den Ziehvorgang zu starten.`,dragDescriptionKeyboardAlt:`Alt + Eingabe drücken, um den Ziehvorgang zu starten.`,dragDescriptionLongPress:`Lang drücken, um mit dem Ziehen zu beginnen.`,dragDescriptionTouch:`Tippen Sie doppelt, um den Ziehvorgang zu starten.`,dragDescriptionVirtual:`Zum Starten des Ziehvorgangs klicken.`,dragItem:e=>`${e.itemText} ziehen`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgew\xe4hltes Objekt`,other:()=>`${t.number(e.count)} ausgew\xe4hlte Objekte`})} ziehen`,dragSelectedKeyboard:(e,t)=>`Eingabetaste dr\xfccken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgew\xe4hltes Element`,other:()=>`${t.number(e.count)} ausgew\xe4hlte Elemente`})} zu ziehen.`,dragSelectedKeyboardAlt:(e,t)=>`Alt + Eingabetaste dr\xfccken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgew\xe4hltes Element`,other:()=>`${t.number(e.count)} ausgew\xe4hlte Elemente`})} zu ziehen.`,dragSelectedLongPress:(e,t)=>`Lang dr\xfccken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgew\xe4hltes Element`,other:()=>`${t.number(e.count)} ausgew\xe4hlte Elemente`})} zu ziehen.`,dragStartedKeyboard:`Ziehvorgang gestartet. Drücken Sie die Tabulatortaste, um zu einem Ablegeziel zu navigieren und drücken Sie dann die Eingabetaste, um das Objekt abzulegen, oder Escape, um den Vorgang abzubrechen.`,dragStartedTouch:`Ziehvorgang gestartet. Navigieren Sie zu einem Ablegeziel und tippen Sie doppelt, um das Objekt abzulegen.`,dragStartedVirtual:`Ziehvorgang gestartet. Navigieren Sie zu einem Ablegeziel und klicken Sie oder drücken Sie die Eingabetaste, um das Objekt abzulegen.`,dropCanceled:`Ablegen abgebrochen.`,dropComplete:`Ablegen abgeschlossen.`,dropDescriptionKeyboard:`Drücken Sie die Eingabetaste, um das Objekt abzulegen. Drücken Sie Escape, um den Vorgang abzubrechen.`,dropDescriptionTouch:`Tippen Sie doppelt, um das Objekt abzulegen.`,dropDescriptionVirtual:`Zum Ablegen klicken.`,dropIndicator:`Ablegeanzeiger`,dropOnItem:e=>`Auf ${e.itemText} ablegen`,dropOnRoot:`Ablegen auf`,endDragKeyboard:`Ziehvorgang läuft. Drücken Sie die Eingabetaste, um den Vorgang abzubrechen.`,endDragTouch:`Ziehvorgang läuft. Tippen Sie doppelt, um den Vorgang abzubrechen.`,endDragVirtual:`Ziehvorgang läuft. Klicken Sie, um den Vorgang abzubrechen.`,insertAfter:e=>`Nach ${e.itemText} einf\xfcgen`,insertBefore:e=>`Vor ${e.itemText} einf\xfcgen`,insertBetween:e=>`Zwischen ${e.beforeItemText} und ${e.afterItemText} einf\xfcgen`};var lW={};lW={dragDescriptionKeyboard:`Πατήστε Enter για έναρξη της μεταφοράς.`,dragDescriptionKeyboardAlt:`Πατήστε Alt + Enter για έναρξη της μεταφοράς.`,dragDescriptionLongPress:`Πατήστε παρατεταμένα για να ξεκινήσετε τη μεταφορά.`,dragDescriptionTouch:`Πατήστε δύο φορές για έναρξη της μεταφοράς.`,dragDescriptionVirtual:`Κάντε κλικ για να ξεκινήσετε τη μεταφορά.`,dragItem:e=>`\u{39C}\u{3B5}\u{3C4}\u{3B1}\u{3C6}\u{3BF}\u{3C1}\u{3AC} ${e.itemText}`,dragSelectedItems:(e,t)=>`\u{39C}\u{3B5}\u{3C4}\u{3B1}\u{3C6}\u{3BF}\u{3C1}\u{3AC} \u{3C3}\u{3B5} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF}`,other:()=>`${t.number(e.count)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B1} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3B1}`})}`,dragSelectedKeyboard:(e,t)=>`\u{3A0}\u{3B1}\u{3C4}\u{3AE}\u{3C3}\u{3C4}\u{3B5} Enter \u{3B3}\u{3B9}\u{3B1} \u{3BD}\u{3B1} \u{3C3}\u{3CD}\u{3C1}\u{3B5}\u{3C4}\u{3B5} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF}`,other:()=>`${t.number(e.count)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B1} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3B1}`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u{3A0}\u{3B1}\u{3C4}\u{3AE}\u{3C3}\u{3C4}\u{3B5} Alt + Enter \u{3B3}\u{3B9}\u{3B1} \u{3BD}\u{3B1} \u{3C3}\u{3CD}\u{3C1}\u{3B5}\u{3C4}\u{3B5} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF}`,other:()=>`${t.number(e.count)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B1} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3B1}`})}.`,dragSelectedLongPress:(e,t)=>`\u{3A0}\u{3B1}\u{3C4}\u{3AE}\u{3C3}\u{3C4}\u{3B5} \u{3C0}\u{3B1}\u{3C1}\u{3B1}\u{3C4}\u{3B5}\u{3C4}\u{3B1}\u{3BC}\u{3AD}\u{3BD}\u{3B1} \u{3B3}\u{3B9}\u{3B1} \u{3BD}\u{3B1} \u{3C3}\u{3CD}\u{3C1}\u{3B5}\u{3C4}\u{3B5} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF}`,other:()=>`${t.number(e.count)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B1} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3B1}`})}.`,dragStartedKeyboard:`Η μεταφορά ξεκίνησε. Πατήστε το πλήκτρο Tab για να μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, πατήστε Enter για απόθεση ή πατήστε Escape για ακύρωση.`,dragStartedTouch:`Η μεταφορά ξεκίνησε. Μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, πατήστε δύο φορές για απόθεση.`,dragStartedVirtual:`Η μεταφορά ξεκίνησε. Μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, κάντε κλικ ή πατήστε Enter για απόθεση.`,dropCanceled:`Η απόθεση ακυρώθηκε.`,dropComplete:`Η απόθεση ολοκληρώθηκε.`,dropDescriptionKeyboard:`Πατήστε Enter για απόθεση. Πατήστε Escape για ακύρωση της μεταφοράς.`,dropDescriptionTouch:`Πατήστε δύο φορές για απόθεση.`,dropDescriptionVirtual:`Κάντε κλικ για απόθεση.`,dropIndicator:`δείκτης απόθεσης`,dropOnItem:e=>`\u{391}\u{3C0}\u{3CC}\u{3B8}\u{3B5}\u{3C3}\u{3B7} \u{3C3}\u{3B5} ${e.itemText}`,dropOnRoot:`Απόθεση σε`,endDragKeyboard:`Μεταφορά σε εξέλιξη. Πατήστε Enter για ακύρωση της μεταφοράς.`,endDragTouch:`Μεταφορά σε εξέλιξη. Πατήστε δύο φορές για ακύρωση της μεταφοράς.`,endDragVirtual:`Μεταφορά σε εξέλιξη. Κάντε κλικ για ακύρωση της μεταφοράς.`,insertAfter:e=>`\u{395}\u{3B9}\u{3C3}\u{3B1}\u{3B3}\u{3C9}\u{3B3}\u{3AE} \u{3BC}\u{3B5}\u{3C4}\u{3AC} \u{3B1}\u{3C0}\u{3CC} ${e.itemText}`,insertBefore:e=>`\u{395}\u{3B9}\u{3C3}\u{3B1}\u{3B3}\u{3C9}\u{3B3}\u{3AE} \u{3C0}\u{3C1}\u{3B9}\u{3BD} \u{3B1}\u{3C0}\u{3CC} ${e.itemText}`,insertBetween:e=>`\u{395}\u{3B9}\u{3C3}\u{3B1}\u{3B3}\u{3C9}\u{3B3}\u{3AE} \u{3BC}\u{3B5}\u{3C4}\u{3B1}\u{3BE}\u{3CD} ${e.beforeItemText} \u{3BA}\u{3B1}\u{3B9} ${e.afterItemText}`};var uW={};uW={dragItem:e=>`Drag ${e.itemText}`,dragSelectedItems:(e,t)=>`Drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}`,dragDescriptionKeyboard:`Press Enter to start dragging.`,dragDescriptionKeyboardAlt:`Press Alt + Enter to start dragging.`,dragDescriptionTouch:`Double tap to start dragging.`,dragDescriptionVirtual:`Click to start dragging.`,dragDescriptionLongPress:`Long press to start dragging.`,dragSelectedKeyboard:(e,t)=>`Press Enter to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Press Alt + Enter to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragSelectedLongPress:(e,t)=>`Long press to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragStartedKeyboard:`Started dragging. Press Tab to navigate to a drop target, then press Enter to drop, or press Escape to cancel.`,dragStartedTouch:`Started dragging. Navigate to a drop target, then double tap to drop.`,dragStartedVirtual:`Started dragging. Navigate to a drop target, then click or press Enter to drop.`,endDragKeyboard:`Dragging. Press Enter to cancel drag.`,endDragTouch:`Dragging. Double tap to cancel drag.`,endDragVirtual:`Dragging. Click to cancel drag.`,dropDescriptionKeyboard:`Press Enter to drop. Press Escape to cancel drag.`,dropDescriptionTouch:`Double tap to drop.`,dropDescriptionVirtual:`Click to drop.`,dropCanceled:`Drop canceled.`,dropComplete:`Drop complete.`,dropIndicator:`drop indicator`,dropOnRoot:`Drop on`,dropOnItem:e=>`Drop on ${e.itemText}`,insertBefore:e=>`Insert before ${e.itemText}`,insertBetween:e=>`Insert between ${e.beforeItemText} and ${e.afterItemText}`,insertAfter:e=>`Insert after ${e.itemText}`};var dW={};dW={dragDescriptionKeyboard:`Pulse Intro para empezar a arrastrar.`,dragDescriptionKeyboardAlt:`Pulse Intro para empezar a arrastrar.`,dragDescriptionLongPress:`Mantenga pulsado para comenzar a arrastrar.`,dragDescriptionTouch:`Pulse dos veces para iniciar el arrastre.`,dragDescriptionVirtual:`Haga clic para iniciar el arrastre.`,dragItem:e=>`Arrastrar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}`,dragSelectedKeyboard:(e,t)=>`Pulse Intro para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pulse Alt + Intro para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragSelectedLongPress:(e,t)=>`Mantenga pulsado para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragStartedKeyboard:`Se ha empezado a arrastrar. Pulse el tabulador para ir al destino donde se vaya a colocar y, a continuación, pulse Intro para soltar, o pulse Escape para cancelar.`,dragStartedTouch:`Se ha empezado a arrastrar. Vaya al destino donde se vaya a colocar y, a continuación, pulse dos veces para soltar.`,dragStartedVirtual:`Se ha empezado a arrastrar. Vaya al destino donde se vaya a colocar y, a continuación, haga clic o pulse Intro para soltar.`,dropCanceled:`Se ha cancelado la colocación.`,dropComplete:`Colocación finalizada.`,dropDescriptionKeyboard:`Pulse Intro para soltar. Pulse Escape para cancelar el arrastre.`,dropDescriptionTouch:`Pulse dos veces para soltar.`,dropDescriptionVirtual:`Haga clic para soltar.`,dropIndicator:`indicador de colocación`,dropOnItem:e=>`Soltar en ${e.itemText}`,dropOnRoot:`Soltar en`,endDragKeyboard:`Arrastrando. Pulse Intro para cancelar el arrastre.`,endDragTouch:`Arrastrando. Pulse dos veces para cancelar el arrastre.`,endDragVirtual:`Arrastrando. Haga clic para cancelar el arrastre.`,insertAfter:e=>`Insertar despu\xe9s de ${e.itemText}`,insertBefore:e=>`Insertar antes de ${e.itemText}`,insertBetween:e=>`Insertar entre ${e.beforeItemText} y ${e.afterItemText}`};var fW={};fW={dragDescriptionKeyboard:`Lohistamise alustamiseks vajutage klahvi Enter.`,dragDescriptionKeyboardAlt:`Lohistamise alustamiseks vajutage klahvikombinatsiooni Alt + Enter.`,dragDescriptionLongPress:`Vajutage pikalt lohistamise alustamiseks.`,dragDescriptionTouch:`Topeltpuudutage lohistamise alustamiseks.`,dragDescriptionVirtual:`Klõpsake lohistamise alustamiseks.`,dragItem:e=>`Lohista ${e.itemText}`,dragSelectedItems:(e,t)=>`Lohista ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud \xfcksust`,other:()=>`${t.number(e.count)} valitud \xfcksust`})}`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud \xfcksuse`,other:()=>`${t.number(e.count)} valitud \xfcksuse`})} lohistamiseks vajutage sisestusklahvi Enter.`,dragSelectedKeyboardAlt:(e,t)=>`Lohistamiseks vajutage klahvikombinatsiooni Alt + Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud \xfcksuse`,other:()=>`${t.number(e.count)} valitud \xfcksuse`})} jaoks.`,dragSelectedLongPress:(e,t)=>`Pikk vajutus ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud \xfcksuse`,other:()=>`${t.number(e.count)} valitud \xfcksuse`})} lohistamiseks.`,dragStartedKeyboard:`Alustati lohistamist. Kukutamise sihtmärgi juurde navigeerimiseks vajutage klahvi Tab, seejärel vajutage kukutamiseks klahvi Enter või loobumiseks klahvi Escape.`,dragStartedTouch:`Alustati lohistamist. Navigeerige kukutamise sihtmärgi juurde ja topeltpuudutage kukutamiseks.`,dragStartedVirtual:`Alustati lohistamist. Navigeerige kukutamise sihtmärgi juurde ja kukutamiseks klõpsake või vajutage klahvi Enter.`,dropCanceled:`Lohistamisest loobuti.`,dropComplete:`Lohistamine on tehtud.`,dropDescriptionKeyboard:`Kukutamiseks vajutage klahvi Enter. Lohistamisest loobumiseks vajutage klahvi Escape.`,dropDescriptionTouch:`Kukutamiseks topeltpuudutage.`,dropDescriptionVirtual:`Kukutamiseks klõpsake.`,dropIndicator:`lohistamise indikaator`,dropOnItem:e=>`Kukuta asukohta ${e.itemText}`,dropOnRoot:`Kukuta asukohta`,endDragKeyboard:`Lohistamine. Lohistamisest loobumiseks vajutage klahvi Enter.`,endDragTouch:`Lohistamine. Lohistamisest loobumiseks topeltpuudutage.`,endDragVirtual:`Lohistamine. Lohistamisest loobumiseks klõpsake.`,insertAfter:e=>`Sisesta ${e.itemText} j\xe4rele`,insertBefore:e=>`Sisesta ${e.itemText} ette`,insertBetween:e=>`Sisesta ${e.beforeItemText} ja ${e.afterItemText} vahele`};var pW={};pW={dragDescriptionKeyboard:`Aloita vetäminen painamalla Enter-näppäintä.`,dragDescriptionKeyboardAlt:`Aloita vetäminen painamalla Alt + Enter -näppäinyhdistelmää.`,dragDescriptionLongPress:`Aloita vetäminen pitämällä painettuna.`,dragDescriptionTouch:`Aloita vetäminen kaksoisnapauttamalla.`,dragDescriptionVirtual:`Aloita vetäminen napsauttamalla.`,dragItem:e=>`Ved\xe4 kohdetta ${e.itemText}`,dragSelectedItems:(e,t)=>`Ved\xe4 ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittua kohdetta`,other:()=>`${t.number(e.count)} valittua kohdetta`})}`,dragSelectedKeyboard:(e,t)=>`Ved\xe4 painamalla Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Ved\xe4 painamalla Alt + Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragSelectedLongPress:(e,t)=>`Ved\xe4 pit\xe4m\xe4ll\xe4 painettuna ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragStartedKeyboard:`Vetäminen aloitettu. Siirry pudotuskohteeseen painamalla sarkainnäppäintä ja sitten pudota painamalla Enter-näppäintä tai peruuta painamalla Escape-näppäintä.`,dragStartedTouch:`Vetäminen aloitettu. Siirry pudotuskohteeseen ja pudota kaksoisnapauttamalla.`,dragStartedVirtual:`Vetäminen aloitettu. Siirry pudotuskohteeseen ja pudota napsauttamalla tai painamalla Enter-näppäintä.`,dropCanceled:`Pudotus peruutettu.`,dropComplete:`Pudotus suoritettu.`,dropDescriptionKeyboard:`Pudota painamalla Enter-näppäintä. Peruuta vetäminen painamalla Escape-näppäintä.`,dropDescriptionTouch:`Pudota kaksoisnapauttamalla.`,dropDescriptionVirtual:`Pudota napsauttamalla.`,dropIndicator:`pudotuksen ilmaisin`,dropOnItem:e=>`Pudota kohteeseen ${e.itemText}`,dropOnRoot:`Pudota kohteeseen`,endDragKeyboard:`Vedetään. Peruuta vetäminen painamalla Enter-näppäintä.`,endDragTouch:`Vedetään. Peruuta vetäminen kaksoisnapauttamalla.`,endDragVirtual:`Vedetään. Peruuta vetäminen napsauttamalla.`,insertAfter:e=>`Lis\xe4\xe4 kohteen ${e.itemText} j\xe4lkeen`,insertBefore:e=>`Lis\xe4\xe4 ennen kohdetta ${e.itemText}`,insertBetween:e=>`Lis\xe4\xe4 kohteiden ${e.beforeItemText} ja ${e.afterItemText} v\xe4liin`};var mW={};mW={dragDescriptionKeyboard:`Appuyez sur Entrée pour commencer le déplacement.`,dragDescriptionKeyboardAlt:`Appuyez sur Alt\xA0+\xA0Entrée pour commencer à faire glisser.`,dragDescriptionLongPress:`Appuyez de manière prolongée pour commencer à faire glisser.`,dragDescriptionTouch:`Touchez deux fois pour commencer le déplacement.`,dragDescriptionVirtual:`Cliquez pour commencer le déplacement.`,dragItem:e=>`D\xe9placer ${e.itemText}`,dragSelectedItems:(e,t)=>`D\xe9placer ${t.plural(e.count,{one:()=>`${t.number(e.count)} \xe9l\xe9ment s\xe9lectionn\xe9`,other:()=>`${t.number(e.count)} \xe9l\xe9ments s\xe9lectionn\xe9s`})}`,dragSelectedKeyboard:(e,t)=>`Appuyez sur Entr\xe9e pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} \xe9l\xe9ment s\xe9lectionn\xe9`,other:()=>`${t.number(e.count)} \xe9l\xe9ments s\xe9lectionn\xe9s`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Appuyez sur Alt\xa0+\xa0Entr\xe9e pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} \xe9l\xe9ment s\xe9lectionn\xe9`,other:()=>`${t.number(e.count)} \xe9l\xe9ments s\xe9lectionn\xe9s`})}.`,dragSelectedLongPress:(e,t)=>`Appuyez de mani\xe8re prolong\xe9e pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} \xe9l\xe9ment s\xe9lectionn\xe9`,other:()=>`${t.number(e.count)} \xe9l\xe9ments s\xe9lectionn\xe9s`})}.`,dragStartedKeyboard:`Déplacement commencé. Appuyez sur Tabulation pour accéder à une cible de dépôt, puis appuyez sur Entrée pour déposer, ou appuyez sur Échap pour annuler.`,dragStartedTouch:`Déplacement commencé. Accédez à une cible de dépôt, puis touchez deux fois pour déposer.`,dragStartedVirtual:`Déplacement commencé. Accédez à une cible de dépôt, puis cliquez ou appuyez sur Entrée pour déposer.`,dropCanceled:`Dépôt annulé.`,dropComplete:`Dépôt terminé.`,dropDescriptionKeyboard:`Appuyez sur Entrée pour déposer. Appuyez sur Échap pour annuler le déplacement.`,dropDescriptionTouch:`Touchez deux fois pour déposer.`,dropDescriptionVirtual:`Cliquez pour déposer.`,dropIndicator:`indicateur de dépôt`,dropOnItem:e=>`D\xe9poser sur ${e.itemText}`,dropOnRoot:`Déposer sur`,endDragKeyboard:`Déplacement. Appuyez sur Entrée pour annuler le déplacement.`,endDragTouch:`Déplacement. Touchez deux fois pour annuler le déplacement.`,endDragVirtual:`Déplacement. Cliquez pour annuler le déplacement.`,insertAfter:e=>`Ins\xe9rer apr\xe8s ${e.itemText}`,insertBefore:e=>`Ins\xe9rer avant ${e.itemText}`,insertBetween:e=>`Ins\xe9rer entre ${e.beforeItemText} et ${e.afterItemText}`};var hW={};hW={dragDescriptionKeyboard:`הקש על Enter כדי להתחיל לגרור.`,dragDescriptionKeyboardAlt:`הקש Alt + Enter כדי להתחיל לגרור.`,dragDescriptionLongPress:`לחץ לחיצה ארוכה כדי להתחיל לגרור.`,dragDescriptionTouch:`הקש פעמיים כדי להתחיל בגרירה.`,dragDescriptionVirtual:`לחץ כדי להתחיל לגרור.`,dragItem:e=>`\u{5D2}\u{5E8}\u{5D5}\u{5E8} \u{5D0}\u{5EA} ${e.itemText}`,dragSelectedItems:(e,t)=>`\u{5D2}\u{5E8}\u{5D5}\u{5E8} ${t.plural(e.count,{one:()=>`\u{5E4}\u{5E8}\u{5D9}\u{5D8} \u{5E0}\u{5D1}\u{5D7}\u{5E8} ${t.number(e.count)}`,other:()=>`${t.number(e.count)} \u{5E4}\u{5E8}\u{5D9}\u{5D8}\u{5D9}\u{5DD} \u{5E9}\u{5E0}\u{5D1}\u{5D7}\u{5E8}\u{5D5}`})}`,dragSelectedKeyboard:(e,t)=>`\u{5D4}\u{5E7}\u{5E9} \u{5E2}\u{5DC} Enter \u{5DB}\u{5D3}\u{5D9} \u{5DC}\u{5D2}\u{5E8}\u{5D5}\u{5E8} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{5E4}\u{5E8}\u{5D9}\u{5D8} \u{5E9}\u{5E0}\u{5D1}\u{5D7}\u{5E8}`,other:()=>`${t.number(e.count)} \u{5E4}\u{5E8}\u{5D9}\u{5D8}\u{5D9}\u{5DD} \u{5E9}\u{5E0}\u{5D1}\u{5D7}\u{5E8}\u{5D5}`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u{5D4}\u{5E7}\u{5E9} Alt + Enter \u{5DB}\u{5D3}\u{5D9} \u{5DC}\u{5D2}\u{5E8}\u{5D5}\u{5E8} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{5E4}\u{5E8}\u{5D9}\u{5D8} \u{5E9}\u{5E0}\u{5D1}\u{5D7}\u{5E8}`,other:()=>`${t.number(e.count)} \u{5E4}\u{5E8}\u{5D9}\u{5D8}\u{5D9}\u{5DD} \u{5E9}\u{5E0}\u{5D1}\u{5D7}\u{5E8}\u{5D5}`})}.`,dragSelectedLongPress:(e,t)=>`\u{5DC}\u{5D7}\u{5E5} \u{5DC}\u{5D7}\u{5D9}\u{5E6}\u{5D4} \u{5D0}\u{5E8}\u{5D5}\u{5DB}\u{5D4} \u{5DB}\u{5D3}\u{5D9} \u{5DC}\u{5D2}\u{5E8}\u{5D5}\u{5E8} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{5E4}\u{5E8}\u{5D9}\u{5D8} \u{5E9}\u{5E0}\u{5D1}\u{5D7}\u{5E8}`,other:()=>`${t.number(e.count)} \u{5E4}\u{5E8}\u{5D9}\u{5D8}\u{5D9}\u{5DD} \u{5E9}\u{5E0}\u{5D1}\u{5D7}\u{5E8}\u{5D5}`})}.`,dragStartedKeyboard:`התחלת לגרור. הקש על Tab כדי לנווט לנקודת הגרירה ולאחר מכן הקש על Enter כדי לשחרר או על Escape כדי לבטל.`,dragStartedTouch:`התחלת לגרור. נווט לנקודת השחרור ולאחר מכן הקש פעמיים כדי לשחרר.`,dragStartedVirtual:`התחלת לגרור. נווט לנקודת השחרור ולאחר מכן לחץ או הקש על Enter כדי לשחרר.`,dropCanceled:`השחרור בוטל.`,dropComplete:`השחרור הושלם.`,dropDescriptionKeyboard:`הקש על Enter כדי לשחרר. הקש על Escape כדי לבטל את הגרירה.`,dropDescriptionTouch:`הקש פעמיים כדי לשחרר.`,dropDescriptionVirtual:`לחץ כדי לשחרר.`,dropIndicator:`מחוון שחרור`,dropOnItem:e=>`\u{5E9}\u{5D7}\u{5E8}\u{5E8} \u{5E2}\u{5DC} ${e.itemText}`,dropOnRoot:`שחרר על`,endDragKeyboard:`גורר. הקש על Enter כדי לבטל את הגרירה.`,endDragTouch:`גורר. הקש פעמיים כדי לבטל את הגרירה.`,endDragVirtual:`גורר. לחץ כדי לבטל את הגרירה.`,insertAfter:e=>`\u{5D4}\u{5D5}\u{5E1}\u{5E3} \u{5D0}\u{5D7}\u{5E8}\u{5D9} ${e.itemText}`,insertBefore:e=>`\u{5D4}\u{5D5}\u{5E1}\u{5E3} \u{5DC}\u{5E4}\u{5E0}\u{5D9} ${e.itemText}`,insertBetween:e=>`\u{5D4}\u{5D5}\u{5E1}\u{5E3} \u{5D1}\u{5D9}\u{5DF} ${e.beforeItemText} \u{5DC}\u{5D1}\u{5D9}\u{5DF} ${e.afterItemText}`};var gW={};gW={dragDescriptionKeyboard:`Pritisnite Enter da biste počeli povlačiti.`,dragDescriptionKeyboardAlt:`Pritisnite Alt + Enter za početak povlačenja.`,dragDescriptionLongPress:`Dugo pritisnite za početak povlačenja.`,dragDescriptionTouch:`Dvaput dodirnite da biste počeli povlačiti.`,dragDescriptionVirtual:`Kliknite da biste počeli povlačiti.`,dragItem:e=>`Povucite stavku ${e.itemText}`,dragSelectedItems:(e,t)=>`Povucite ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabranu stavku`,other:()=>`ovoliko odabranih stavki: ${t.number(e.count)}`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite Enter za povla\u{10D}enje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite Alt + Enter za povla\u{10D}enje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragSelectedLongPress:(e,t)=>`Dugo pritisnite za povla\u{10D}enje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragStartedKeyboard:`Počeli ste povlačiti. Pritisnite tipku tabulatora da biste došli do cilja ispuštanja, a zatim Enter da biste ispustili stavku ili Escape da biste prekinuli povlačenje.`,dragStartedTouch:`Počeli ste povlačiti. Dođite do cilja ispuštanja, a zatim dvaput dodirnite da biste ispustili stavku.`,dragStartedVirtual:`Počeli ste povlačiti. Dođite do cilja ispuštanja, a zatim kliknite ili pritisnite Enter da biste ispustili stavku.`,dropCanceled:`Povlačenje je prekinuto.`,dropComplete:`Ispuštanje je dovršeno.`,dropDescriptionKeyboard:`Pritisnite Enter da biste ispustili stavku. Pritisnite Escape da biste prekinuli povlačenje.`,dropDescriptionTouch:`Dvaput dodirnite da biste ispustili stavku.`,dropDescriptionVirtual:`Kliknite da biste ispustili stavku.`,dropIndicator:`pokazatelj ispuštanja`,dropOnItem:e=>`Ispustite na stavku ${e.itemText}`,dropOnRoot:`Ispustite na`,endDragKeyboard:`Povlačenje. Pritisnite Enter da biste prekinuli povlačenje.`,endDragTouch:`Povlačenje. Dvaput dodirnite da biste prekinuli povlačenje.`,endDragVirtual:`Povlačenje. Kliknite da biste prekinuli povlačenje.`,insertAfter:e=>`Umetnite iza stavke ${e.itemText}`,insertBefore:e=>`Ispustite ispred stavke ${e.itemText}`,insertBetween:e=>`Umetnite izme\u{111}u stavki ${e.beforeItemText} i ${e.afterItemText}`};var _W={};_W={dragDescriptionKeyboard:`Nyomja le az Enter billentyűt a húzás megkezdéséhez.`,dragDescriptionKeyboardAlt:`Nyomja le az Alt + Enter billentyűket a húzás megkezdéséhez.`,dragDescriptionLongPress:`Hosszan nyomja meg a húzás elindításához.`,dragDescriptionTouch:`Koppintson duplán a húzás megkezdéséhez.`,dragDescriptionVirtual:`Kattintson a húzás megkezdéséhez.`,dragItem:e=>`${e.itemText} h\xfaz\xe1sa`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} kijel\xf6lt elem`,other:()=>`${t.number(e.count)} kijel\xf6lt elem`})} h\xfaz\xe1sa`,dragSelectedKeyboard:(e,t)=>`Nyomja meg az Entert ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijel\xf6lt elem`,other:()=>`${t.number(e.count)} kijel\xf6lt elem`})} h\xfaz\xe1s\xe1hoz.`,dragSelectedKeyboardAlt:(e,t)=>`Nyomja meg az Alt + Enter billenty\u{171}ket ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijel\xf6lt elem`,other:()=>`${t.number(e.count)} kijel\xf6lt elem`})} h\xfaz\xe1s\xe1hoz.`,dragSelectedLongPress:(e,t)=>`Tartsa lenyomva hosszan ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijel\xf6lt elem`,other:()=>`${t.number(e.count)} kijel\xf6lt elem`})} h\xfaz\xe1s\xe1hoz.`,dragStartedKeyboard:`Húzás megkezdve. Nyomja le a Tab billentyűt az elengedési célhoz navigálásához, majd nyomja le az Enter billentyűt az elengedéshez, vagy nyomja le az Escape billentyűt a megszakításhoz.`,dragStartedTouch:`Húzás megkezdve. Navigáljon egy elengedési célhoz, majd koppintson duplán az elengedéshez.`,dragStartedVirtual:`Húzás megkezdve. Navigáljon egy elengedési célhoz, majd kattintson vagy nyomja le az Enter billentyűt az elengedéshez.`,dropCanceled:`Elengedés megszakítva.`,dropComplete:`Elengedés teljesítve.`,dropDescriptionKeyboard:`Nyomja le az Enter billentyűt az elengedéshez. Nyomja le az Escape billentyűt a húzás megszakításához.`,dropDescriptionTouch:`Koppintson duplán az elengedéshez.`,dropDescriptionVirtual:`Kattintson az elengedéshez.`,dropIndicator:`elengedésjelző`,dropOnItem:e=>`Elenged\xe9s erre: ${e.itemText}`,dropOnRoot:`Elengedés erre:`,endDragKeyboard:`Húzás folyamatban. Nyomja le az Enter billentyűt a húzás megszakításához.`,endDragTouch:`Húzás folyamatban. Koppintson duplán a húzás megszakításához.`,endDragVirtual:`Húzás folyamatban. Kattintson a húzás megszakításához.`,insertAfter:e=>`Besz\xfar\xe1s ${e.itemText} ut\xe1n`,insertBefore:e=>`Besz\xfar\xe1s ${e.itemText} el\xe9`,insertBetween:e=>`Besz\xfar\xe1s ${e.beforeItemText} \xe9s ${e.afterItemText} k\xf6z\xe9`};var vW={};vW={dragDescriptionKeyboard:`Premi Invio per iniziare a trascinare.`,dragDescriptionKeyboardAlt:`Premi Alt + Invio per iniziare a trascinare.`,dragDescriptionLongPress:`Premi a lungo per iniziare a trascinare.`,dragDescriptionTouch:`Tocca due volte per iniziare a trascinare.`,dragDescriptionVirtual:`Fai clic per iniziare a trascinare.`,dragItem:e=>`Trascina ${e.itemText}`,dragSelectedItems:(e,t)=>`Trascina ${t.plural(e.count,{one:()=>`${t.number(e.count)} altro elemento selezionato`,other:()=>`${t.number(e.count)} altri elementi selezionati`})}`,dragSelectedKeyboard:(e,t)=>`Premi Invio per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Premi Alt + Invio per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragSelectedLongPress:(e,t)=>`Premi a lungo per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragStartedKeyboard:`Hai iniziato a trascinare. Premi Tab per arrivare sull’area di destinazione, quindi premi Invio per rilasciare o Esc per annullare.`,dragStartedTouch:`Hai iniziato a trascinare. Arriva sull’area di destinazione, quindi tocca due volte per rilasciare.`,dragStartedVirtual:`Hai iniziato a trascinare. Arriva sull’area di destinazione, quindi fai clic o premi Invio per rilasciare.`,dropCanceled:`Rilascio annullato.`,dropComplete:`Rilascio completato.`,dropDescriptionKeyboard:`Premi Invio per rilasciare. Premi Esc per annullare.`,dropDescriptionTouch:`Tocca due volte per rilasciare.`,dropDescriptionVirtual:`Fai clic per rilasciare.`,dropIndicator:`indicatore di rilascio`,dropOnItem:e=>`Rilascia su ${e.itemText}`,dropOnRoot:`Rilascia su`,endDragKeyboard:`Trascinamento. Premi Invio per annullare.`,endDragTouch:`Trascinamento. Tocca due volte per annullare.`,endDragVirtual:`Trascinamento. Fai clic per annullare.`,insertAfter:e=>`Inserisci dopo ${e.itemText}`,insertBefore:e=>`Inserisci prima di ${e.itemText}`,insertBetween:e=>`Inserisci tra ${e.beforeItemText} e ${e.afterItemText}`};var yW={};yW={dragDescriptionKeyboard:`Enter キーを押してドラッグを開始してください。`,dragDescriptionKeyboardAlt:`Alt+Enter キーを押してドラッグを開始します。`,dragDescriptionLongPress:`長押ししてドラッグを開始します。`,dragDescriptionTouch:`ダブルタップしてドラッグを開始します。`,dragDescriptionVirtual:`クリックしてドラッグを開始します。`,dragItem:e=>`${e.itemText} \u{3092}\u{30C9}\u{30E9}\u{30C3}\u{30B0}`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{500B}\u{306E}\u{9078}\u{629E}\u{9805}\u{76EE}`,other:()=>`${t.number(e.count)} \u{500B}\u{306E}\u{9078}\u{629E}\u{9805}\u{76EE}`})} \u{3092}\u{30C9}\u{30E9}\u{30C3}\u{30B0}`,dragSelectedKeyboard:(e,t)=>`Enter \u{30AD}\u{30FC}\u{3092}\u{62BC}\u{3057}\u{3066}\u{3001}${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{9078}\u{629E}\u{3057}\u{305F}\u{9805}\u{76EE}`,other:()=>`${t.number(e.count)} \u{9078}\u{629E}\u{3057}\u{305F}\u{9805}\u{76EE}`})}\u{3092}\u{30C9}\u{30E9}\u{30C3}\u{30B0}\u{3057}\u{307E}\u{3059}\u{3002}`,dragSelectedKeyboardAlt:(e,t)=>`Alt+Enter \u{30AD}\u{30FC}\u{3092}\u{62BC}\u{3057}\u{3066}\u{3001}${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{9078}\u{629E}\u{3057}\u{305F}\u{9805}\u{76EE}`,other:()=>`${t.number(e.count)} \u{9078}\u{629E}\u{3057}\u{305F}\u{9805}\u{76EE}`})}\u{3092}\u{30C9}\u{30E9}\u{30C3}\u{30B0}\u{3057}\u{307E}\u{3059}\u{3002}`,dragSelectedLongPress:(e,t)=>`\u{9577}\u{62BC}\u{3057}\u{3057}\u{3066}\u{3001}${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{9078}\u{629E}\u{3057}\u{305F}\u{9805}\u{76EE}`,other:()=>`${t.number(e.count)} \u{9078}\u{629E}\u{3057}\u{305F}\u{9805}\u{76EE}`})}\u{3092}\u{30C9}\u{30E9}\u{30C3}\u{30B0}\u{3057}\u{307E}\u{3059}\u{3002}`,dragStartedKeyboard:`ドラッグを開始します。Tab キーを押してドロップターゲットにいどうし、Enter キーを押してドロップするか、Esc キーを押してキャンセルします。`,dragStartedTouch:`ドラッグを開始しました。ドロップのターゲットに移動し、ダブルタップしてドロップします。`,dragStartedVirtual:`ドラッグを開始しました。ドロップのターゲットに移動し、クリックまたは Enter キーを押してドロップします。`,dropCanceled:`ドロップがキャンセルされました。`,dropComplete:`ドロップが完了しました。`,dropDescriptionKeyboard:`Enter キーを押してドロップします。Esc キーを押してドラッグをキャンセルします。`,dropDescriptionTouch:`ダブルタップしてドロップします。`,dropDescriptionVirtual:`クリックしてドロップします。`,dropIndicator:`ドロップインジケーター`,dropOnItem:e=>`${e.itemText} \u{306B}\u{30C9}\u{30ED}\u{30C3}\u{30D7}`,dropOnRoot:`ドロップ場所`,endDragKeyboard:`ドラッグしています。Enter キーを押してドラッグをキャンセルします。`,endDragTouch:`ドラッグしています。ダブルタップしてドラッグをキャンセルします。`,endDragVirtual:`ドラッグしています。クリックしてドラッグをキャンセルします。`,insertAfter:e=>`${e.itemText} \u{306E}\u{5F8C}\u{306B}\u{633F}\u{5165}`,insertBefore:e=>`${e.itemText} \u{306E}\u{524D}\u{306B}\u{633F}\u{5165}`,insertBetween:e=>`${e.beforeItemText} \u{3068} ${e.afterItemText} \u{306E}\u{9593}\u{306B}\u{633F}\u{5165}`};var bW={};bW={dragDescriptionKeyboard:`드래그를 시작하려면 Enter를 누르세요.`,dragDescriptionKeyboardAlt:`드래그를 시작하려면 Alt + Enter를 누르십시오.`,dragDescriptionLongPress:`드래그를 시작하려면 길게 누르십시오.`,dragDescriptionTouch:`드래그를 시작하려면 더블 탭하세요.`,dragDescriptionVirtual:`드래그를 시작하려면 클릭하세요.`,dragItem:e=>`${e.itemText} \u{B4DC}\u{B798}\u{ADF8}`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}\u{AC1C} \u{C120}\u{D0DD} \u{D56D}\u{BAA9}`,other:()=>`${t.number(e.count)}\u{AC1C} \u{C120}\u{D0DD} \u{D56D}\u{BAA9}`})} \u{B4DC}\u{B798}\u{ADF8}`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}\u{AC1C} \u{C120}\u{D0DD} \u{D56D}\u{BAA9}`,other:()=>`${t.number(e.count)}\u{AC1C} \u{C120}\u{D0DD} \u{D56D}\u{BAA9}`})}\u{C744} \u{B4DC}\u{B798}\u{ADF8}\u{D558}\u{B824}\u{BA74} Enter\u{B97C} \u{B204}\u{B974}\u{C2ED}\u{C2DC}\u{C624}.`,dragSelectedKeyboardAlt:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}\u{AC1C} \u{C120}\u{D0DD} \u{D56D}\u{BAA9}`,other:()=>`${t.number(e.count)}\u{AC1C} \u{C120}\u{D0DD} \u{D56D}\u{BAA9}`})}\u{C744} \u{B4DC}\u{B798}\u{ADF8}\u{D558}\u{B824}\u{BA74} Alt + Enter\u{B97C} \u{B204}\u{B974}\u{C2ED}\u{C2DC}\u{C624}.`,dragSelectedLongPress:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}\u{AC1C} \u{C120}\u{D0DD} \u{D56D}\u{BAA9}`,other:()=>`${t.number(e.count)}\u{AC1C} \u{C120}\u{D0DD} \u{D56D}\u{BAA9}`})}\u{C744} \u{B4DC}\u{B798}\u{ADF8}\u{D558}\u{B824}\u{BA74} \u{AE38}\u{AC8C} \u{B204}\u{B974}\u{C2ED}\u{C2DC}\u{C624}.`,dragStartedKeyboard:`드래그가 시작되었습니다. Tab을 눌러 드롭 대상으로 이동한 다음 Enter를 눌러 드롭하거나 Esc를 눌러 취소하세요.`,dragStartedTouch:`드래그가 시작되었습니다. 드롭 대상으로 이동한 다음 더블 탭하여 드롭하세요.`,dragStartedVirtual:`드래그가 시작되었습니다. 드롭 대상으로 이동한 다음 클릭하거나 Enter를 눌러 드롭하세요.`,dropCanceled:`드롭이 취소되었습니다.`,dropComplete:`드롭이 완료되었습니다.`,dropDescriptionKeyboard:`드롭하려면 Enter를 누르세요. 드래그를 취소하려면 Esc를 누르세요.`,dropDescriptionTouch:`더블 탭하여 드롭하세요.`,dropDescriptionVirtual:`드롭하려면 클릭하세요.`,dropIndicator:`드롭 표시기`,dropOnItem:e=>`${e.itemText}\u{C5D0} \u{B4DC}\u{B86D}`,dropOnRoot:`드롭 대상`,endDragKeyboard:`드래그 중입니다. 드래그를 취소하려면 Enter를 누르세요.`,endDragTouch:`드래그 중입니다. 드래그를 취소하려면 더블 탭하세요.`,endDragVirtual:`드래그 중입니다. 드래그를 취소하려면 클릭하세요.`,insertAfter:e=>`${e.itemText} \u{C774}\u{D6C4}\u{C5D0} \u{C0BD}\u{C785}`,insertBefore:e=>`${e.itemText} \u{C774}\u{C804}\u{C5D0} \u{C0BD}\u{C785}`,insertBetween:e=>`${e.beforeItemText} \u{BC0F} ${e.afterItemText} \u{C0AC}\u{C774}\u{C5D0} \u{C0BD}\u{C785}`};var xW={};xW={dragDescriptionKeyboard:`Paspauskite „Enter“, kad pradėtumėte vilkti.`,dragDescriptionKeyboardAlt:`Paspauskite „Alt + Enter“, kad pradėtumėte vilkti.`,dragDescriptionLongPress:`Palaikykite nuspaudę, kad pradėtumėte vilkti.`,dragDescriptionTouch:`Palieskite dukart, kad pradėtumėte vilkti.`,dragDescriptionVirtual:`Spustelėkite, kad pradėtumėte vilkti.`,dragItem:e=>`Vilkti ${e.itemText}`,dragSelectedItems:(e,t)=>`Vilkti ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinkt\u{105} element\u{105}`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}`,dragSelectedKeyboard:(e,t)=>`Paspauskite \u{201E}Enter\u{201C}, jei norite nuvilkti ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinkt\u{105} element\u{105}`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Paspauskite \u{201E}Alt + Enter\u{201C}, kad nuvilktum\u{117}te ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinkt\u{105} element\u{105}`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragSelectedLongPress:(e,t)=>`Nuspaud\u{119} palaikykite, kad nuvilktum\u{117}te ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinkt\u{105} element\u{105}`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragStartedKeyboard:`Pradėta vilkti. Paspauskite „Tab“, kad pereitumėte į tiesioginę paskirties vietą, tada paspauskite „Enter“, kad numestumėte, arba „Escape“, kad atšauktumėte.`,dragStartedTouch:`Pradėta vilkti. Eikite į tiesioginę paskirties vietą, tada palieskite dukart, kad numestumėte.`,dragStartedVirtual:`Pradėta vilkti. Eikite į tiesioginę paskirties vietą ir spustelėkite arba paspauskite „Enter“, kad numestumėte.`,dropCanceled:`Numetimas atšauktas.`,dropComplete:`Numesta.`,dropDescriptionKeyboard:`Paspauskite „Enter“, kad numestumėte. Paspauskite „Escape“, kad atšauktumėte vilkimą.`,dropDescriptionTouch:`Palieskite dukart, kad numestumėte.`,dropDescriptionVirtual:`Spustelėkite, kad numestumėte.`,dropIndicator:`numetimo indikatorius`,dropOnItem:e=>`Numesti ant ${e.itemText}`,dropOnRoot:`Numesti ant`,endDragKeyboard:`Velkama. Paspauskite „Enter“, kad atšauktumėte vilkimą.`,endDragTouch:`Velkama. Spustelėkite dukart, kad atšauktumėte vilkimą.`,endDragVirtual:`Velkama. Spustelėkite, kad atšauktumėte vilkimą.`,insertAfter:e=>`\u{12E}terpti po ${e.itemText}`,insertBefore:e=>`\u{12E}terpti prie\u{161} ${e.itemText}`,insertBetween:e=>`\u{12E}terpti tarp ${e.beforeItemText} ir ${e.afterItemText}`};var SW={};SW={dragDescriptionKeyboard:`Nospiediet Enter, lai sāktu vilkšanu.`,dragDescriptionKeyboardAlt:`Nospiediet taustiņu kombināciju Alt+Enter, lai sāktu vilkšanu.`,dragDescriptionLongPress:`Turiet nospiestu, lai sāktu vilkšanu.`,dragDescriptionTouch:`Veiciet dubultskārienu, lai sāktu vilkšanu.`,dragDescriptionVirtual:`Noklikšķiniet, lai sāktu vilkšanu.`,dragItem:e=>`Velciet ${e.itemText}`,dragSelectedItems:(e,t)=>`Velciet ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlas\u{12B}to vienumu`,other:()=>`${t.number(e.count)} atlas\u{12B}tos vienumus`})}`,dragSelectedKeyboard:(e,t)=>`Nospiediet tausti\u{146}u Enter, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlas\u{12B}to vienumu`,other:()=>`${t.number(e.count)} atlas\u{12B}tos vienumus`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Nospiediet tausti\u{146}u kombin\u{101}ciju Alt+Enter, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlas\u{12B}to vienumu`,other:()=>`${t.number(e.count)} atlas\u{12B}tos vienumus`})}.`,dragSelectedLongPress:(e,t)=>`Turiet nospiestu, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlas\u{12B}to vienumu`,other:()=>`${t.number(e.count)} atlas\u{12B}tos vienumus`})}.`,dragStartedKeyboard:`Uzsākta vilkšana. Nospiediet taustiņu Tab, lai pārietu uz nomešanas mērķi, pēc tam nospiediet Enter, lai nomestu, vai nospiediet Escape, lai atceltu.`,dragStartedTouch:`Uzsākta vilkšana. Pārejiet uz nomešanas mērķi, pēc tam veiciet dubultskārienu, lai nomestu.`,dragStartedVirtual:`Uzsākta vilkšana. Pārejiet uz nomešanas mērķi, pēc tam nospiediet Enter, lai nomestu.`,dropCanceled:`Nomešana atcelta.`,dropComplete:`Nomešana pabeigta.`,dropDescriptionKeyboard:`Nospiediet Enter, lai nomestu. Nospiediet Escape, lai atceltu vilkšanu.`,dropDescriptionTouch:`Veiciet dubultskārienu, lai nomestu.`,dropDescriptionVirtual:`Noklikšķiniet, lai nomestu.`,dropIndicator:`nomešanas indikators`,dropOnItem:e=>`Nometiet uz ${e.itemText}`,dropOnRoot:`Nometiet uz`,endDragKeyboard:`Notiek vilkšana. Nospiediet Enter, lai atceltu vilkšanu.`,endDragTouch:`Notiek vilkšana. Veiciet dubultskārienu, lai atceltu vilkšanu.`,endDragVirtual:`Notiek vilkšana. Noklikšķiniet, lai atceltu vilkšanu.`,insertAfter:e=>`Ievietojiet p\u{113}c ${e.itemText}`,insertBefore:e=>`Ievietojiet pirms ${e.itemText}`,insertBetween:e=>`Ievietojiet starp ${e.beforeItemText} un ${e.afterItemText}`};var CW={};CW={dragDescriptionKeyboard:`Trykk på Enter for å begynne å dra.`,dragDescriptionKeyboardAlt:`Trykk på Alt + Enter for å begynne å dra.`,dragDescriptionLongPress:`Trykk lenge for å begynne å dra.`,dragDescriptionTouch:`Dobbelttrykk for å begynne å dra.`,dragDescriptionVirtual:`Klikk for å begynne å dra.`,dragItem:e=>`Dra ${e.itemText}`,dragSelectedItems:(e,t)=>`Dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} merket element`,other:()=>`${t.number(e.count)} merkede elementer`})}`,dragSelectedKeyboard:(e,t)=>`Trykk Enter for \xe5 dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Trykk p\xe5 Alt + Enter for \xe5 dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedLongPress:(e,t)=>`Trykk lenge for \xe5 dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragStartedKeyboard:`Begynte å dra. Trykk på Tab for å navigere til et mål, og trykk deretter på Enter for å slippe eller på Esc for å avbryte.`,dragStartedTouch:`Begynte å dra. Naviger til et mål, og dobbelttrykk for å slippe.`,dragStartedVirtual:`Begynte å dra. Naviger til et mål, og klikk eller trykk på Enter for å slippe.`,dropCanceled:`Avbrøt slipping.`,dropComplete:`Slippingen er fullført.`,dropDescriptionKeyboard:`Trykk på Enter for å slippe. Trykk på Esc hvis du vil avbryte draingen.`,dropDescriptionTouch:`Dobbelttrykk for å slippe.`,dropDescriptionVirtual:`Klikk for å slippe.`,dropIndicator:`slippeindikator`,dropOnItem:e=>`Slipp p\xe5 ${e.itemText}`,dropOnRoot:`Slipp på`,endDragKeyboard:`Drar. Trykk på Enter hvis du vil avbryte.`,endDragTouch:`Drar. Dobbelttrykk hvis du vil avbryte.`,endDragVirtual:`Drar. Klikk hvis du vil avbryte.`,insertAfter:e=>`Sett inn etter ${e.itemText}`,insertBefore:e=>`Sett inn f\xf8r ${e.itemText}`,insertBetween:e=>`Sett inn mellom ${e.beforeItemText} og ${e.afterItemText}`};var wW={};wW={dragDescriptionKeyboard:`Druk op Enter om te slepen.`,dragDescriptionKeyboardAlt:`Druk op Alt + Enter om te slepen.`,dragDescriptionLongPress:`Houd lang ingedrukt om te slepen.`,dragDescriptionTouch:`Dubbeltik om te slepen.`,dragDescriptionVirtual:`Klik om met slepen te starten.`,dragItem:e=>`${e.itemText} slepen`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} slepen`,dragSelectedKeyboard:(e,t)=>`Druk op Enter om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragSelectedKeyboardAlt:(e,t)=>`Druk op Alt + Enter om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragSelectedLongPress:(e,t)=>`Houd lang ingedrukt om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragStartedKeyboard:`Begonnen met slepen. Druk op Tab om naar een locatie te gaan. Druk dan op Enter om neer te zetten, of op Esc om te annuleren.`,dragStartedTouch:`Begonnen met slepen. Ga naar de gewenste locatie en dubbeltik om neer te zetten.`,dragStartedVirtual:`Begonnen met slepen. Ga naar de gewenste locatie en klik of druk op Enter om neer te zetten.`,dropCanceled:`Neerzetten geannuleerd.`,dropComplete:`Neerzetten voltooid.`,dropDescriptionKeyboard:`Druk op Enter om neer te zetten. Druk op Esc om het slepen te annuleren.`,dropDescriptionTouch:`Dubbeltik om neer te zetten.`,dropDescriptionVirtual:`Klik om neer te zetten.`,dropIndicator:`aanwijzer voor neerzetten`,dropOnItem:e=>`Neerzetten op ${e.itemText}`,dropOnRoot:`Neerzetten op`,endDragKeyboard:`Bezig met slepen. Druk op Enter om te annuleren.`,endDragTouch:`Bezig met slepen. Dubbeltik om te annuleren.`,endDragVirtual:`Bezig met slepen. Klik om te annuleren.`,insertAfter:e=>`Plaatsen na ${e.itemText}`,insertBefore:e=>`Plaatsen v\xf3\xf3r ${e.itemText}`,insertBetween:e=>`Plaatsen tussen ${e.beforeItemText} en ${e.afterItemText}`};var TW={};TW={dragDescriptionKeyboard:`Naciśnij Enter, aby rozpocząć przeciąganie.`,dragDescriptionKeyboardAlt:`Naciśnij Alt + Enter, aby rozpocząć przeciąganie.`,dragDescriptionLongPress:`Naciśnij i przytrzymaj, aby rozpocząć przeciąganie.`,dragDescriptionTouch:`Dotknij dwukrotnie, aby rozpocząć przeciąganie.`,dragDescriptionVirtual:`Kliknij, aby rozpocząć przeciąganie.`,dragItem:e=>`Przeci\u{105}gnij ${e.itemText}`,dragSelectedItems:(e,t)=>`Przeci\u{105}gnij ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybranych element\xf3w`})}`,dragSelectedKeyboard:(e,t)=>`Naci\u{15B}nij Enter, aby przeci\u{105}gn\u{105}\u{107} ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-\xf3w)`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Naci\u{15B}nij Alt + Enter, aby przeci\u{105}gn\u{105}\u{107} ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-\xf3w)`})}.`,dragSelectedLongPress:(e,t)=>`Naci\u{15B}nij i przytrzymaj, aby przeci\u{105}gn\u{105}\u{107} ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-\xf3w)`})}.`,dragStartedKeyboard:`Rozpoczęto przeciąganie. Naciśnij Tab, aby wybrać miejsce docelowe, a następnie naciśnij Enter, aby upuścić, lub Escape, aby anulować.`,dragStartedTouch:`Rozpoczęto przeciąganie. Wybierz miejsce, w którym chcesz upuścić element, a następnie dotknij dwukrotnie, aby upuścić.F`,dragStartedVirtual:`Rozpoczęto przeciąganie. Wybierz miejsce, w którym chcesz upuścić element, a następnie kliknij lub naciśnij Enter, aby upuścić.`,dropCanceled:`Anulowano upuszczenie.`,dropComplete:`Zakończono upuszczanie.`,dropDescriptionKeyboard:`Naciśnij Enter, aby upuścić. Naciśnij Escape, aby anulować przeciągnięcie.`,dropDescriptionTouch:`Dotknij dwukrotnie, aby upuścić.`,dropDescriptionVirtual:`Kliknij, aby upuścić.`,dropIndicator:`wskaźnik upuszczenia`,dropOnItem:e=>`Upu\u{15B}\u{107} na ${e.itemText}`,dropOnRoot:`Upuść`,endDragKeyboard:`Przeciąganie. Naciśnij Enter, aby anulować przeciągnięcie.`,endDragTouch:`Przeciąganie. Kliknij dwukrotnie, aby anulować przeciągnięcie.`,endDragVirtual:`Przeciąganie. Kliknij, aby anulować przeciąganie.`,insertAfter:e=>`Umie\u{15B}\u{107} za ${e.itemText}`,insertBefore:e=>`Umie\u{15B}\u{107} przed ${e.itemText}`,insertBetween:e=>`Umie\u{15B}\u{107} mi\u{119}dzy ${e.beforeItemText} i ${e.afterItemText}`};var EW={};EW={dragDescriptionKeyboard:`Pressione Enter para começar a arrastar.`,dragDescriptionKeyboardAlt:`Pressione Alt + Enter para começar a arrastar.`,dragDescriptionLongPress:`Pressione e segure para começar a arrastar.`,dragDescriptionTouch:`Toque duas vezes para começar a arrastar.`,dragDescriptionVirtual:`Clique para começar a arrastar.`,dragItem:e=>`Arrastar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}`,dragSelectedKeyboard:(e,t)=>`Pressione Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pressione Alt + Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedLongPress:(e,t)=>`Pressione e segure para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragStartedKeyboard:`Comece a arrastar. Pressione Tab para navegar até um alvo e, em seguida, pressione Enter para soltar ou pressione Escape para cancelar.`,dragStartedTouch:`Comece a arrastar. Navegue até um alvo e toque duas vezes para soltar.`,dragStartedVirtual:`Comece a arrastar. Navegue até um alvo e clique ou pressione Enter para soltar.`,dropCanceled:`Liberação cancelada.`,dropComplete:`Liberação concluída.`,dropDescriptionKeyboard:`Pressione Enter para soltar. Pressione Escape para cancelar.`,dropDescriptionTouch:`Toque duas vezes para soltar.`,dropDescriptionVirtual:`Clique para soltar.`,dropIndicator:`indicador de liberação`,dropOnItem:e=>`Soltar em ${e.itemText}`,dropOnRoot:`Soltar`,endDragKeyboard:`Arrastando. Pressione Enter para cancelar.`,endDragTouch:`Arrastando. Toque duas vezes para cancelar.`,endDragVirtual:`Arrastando. Clique para cancelar.`,insertAfter:e=>`Inserir ap\xf3s ${e.itemText}`,insertBefore:e=>`Inserir antes de ${e.itemText}`,insertBetween:e=>`Inserir entre ${e.beforeItemText} e ${e.afterItemText}`};var DW={};DW={dragDescriptionKeyboard:`Prima Enter para iniciar o arrasto.`,dragDescriptionKeyboardAlt:`Prima Alt + Enter para iniciar o arrasto.`,dragDescriptionLongPress:`Prima longamente para começar a arrastar.`,dragDescriptionTouch:`Faça duplo toque para começar a arrastar.`,dragDescriptionVirtual:`Clique para iniciar o arrasto.`,dragItem:e=>`Arrastar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}`,dragSelectedKeyboard:(e,t)=>`Prima Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Prima Alt + Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedLongPress:(e,t)=>`Prima longamente para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragStartedKeyboard:`Arrasto iniciado. Prima a tecla de tabulação para navegar para um destino para largar, e em seguida prima Enter para largar ou prima Escape para cancelar.`,dragStartedTouch:`Arrasto iniciado. Navegue para um destino para largar, e em seguida faça duplo toque para largar.`,dragStartedVirtual:`Arrasto iniciado. Navegue para um destino para largar, e em seguida clique ou prima Enter para largar.`,dropCanceled:`Largar cancelado.`,dropComplete:`Largar completo.`,dropDescriptionKeyboard:`Prima Enter para largar. Prima Escape para cancelar o arrasto.`,dropDescriptionTouch:`Faça duplo toque para largar.`,dropDescriptionVirtual:`Clique para largar.`,dropIndicator:`Indicador de largar`,dropOnItem:e=>`Largar em ${e.itemText}`,dropOnRoot:`Largar em`,endDragKeyboard:`A arrastar. Prima Enter para cancelar o arrasto.`,endDragTouch:`A arrastar. Faça duplo toque para cancelar o arrasto.`,endDragVirtual:`A arrastar. Clique para cancelar o arrasto.`,insertAfter:e=>`Inserir depois de ${e.itemText}`,insertBefore:e=>`Inserir antes de ${e.itemText}`,insertBetween:e=>`Inserir entre ${e.beforeItemText} e ${e.afterItemText}`};var OW={};OW={dragDescriptionKeyboard:`Apăsați pe Enter pentru a începe glisarea.`,dragDescriptionKeyboardAlt:`Apăsați pe Alt + Enter pentru a începe glisarea.`,dragDescriptionLongPress:`Apăsați lung pentru a începe glisarea.`,dragDescriptionTouch:`Atingeți de două ori pentru a începe să glisați.`,dragDescriptionVirtual:`Faceți clic pentru a începe glisarea.`,dragItem:e=>`Glisa\u{21B}i ${e.itemText}`,dragSelectedItems:(e,t)=>`Glisa\u{21B}i ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}`,dragSelectedKeyboard:(e,t)=>`Ap\u{103}sa\u{21B}i pe Enter pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Ap\u{103}sa\u{21B}i pe Alt + Enter pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragSelectedLongPress:(e,t)=>`Ap\u{103}sa\u{21B}i lung pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragStartedKeyboard:`A început glisarea. Apăsați pe Tab pentru a naviga la o țintă de fixare, apoi apăsați pe Enter pentru a fixa sau apăsați pe Escape pentru a anula glisarea.`,dragStartedTouch:`A început glisarea. Navigați la o țintă de fixare, apoi atingeți de două ori pentru a fixa.`,dragStartedVirtual:`A început glisarea. Navigați la o țintă de fixare, apoi faceți clic sau apăsați pe Enter pentru a fixa.`,dropCanceled:`Fixare anulată.`,dropComplete:`Fixare finalizată.`,dropDescriptionKeyboard:`Apăsați pe Enter pentru a fixa. Apăsați pe Escape pentru a anula glisarea.`,dropDescriptionTouch:`Atingeți de două ori pentru a fixa.`,dropDescriptionVirtual:`Faceți clic pentru a fixa.`,dropIndicator:`indicator de fixare`,dropOnItem:e=>`Fixa\u{21B}i pe ${e.itemText}`,dropOnRoot:`Fixare pe`,endDragKeyboard:`Se glisează. Apăsați pe Enter pentru a anula glisarea.`,endDragTouch:`Se glisează. Atingeți de două ori pentru a anula glisarea.`,endDragVirtual:`Se glisează. Faceți clic pentru a anula glisarea.`,insertAfter:e=>`Insera\u{21B}i dup\u{103} ${e.itemText}`,insertBefore:e=>`Insera\u{21B}i \xeenainte de ${e.itemText}`,insertBetween:e=>`Insera\u{21B}i \xeentre ${e.beforeItemText} \u{219}i ${e.afterItemText}`};var kW={};kW={dragDescriptionKeyboard:`Нажмите клавишу Enter для начала перетаскивания.`,dragDescriptionKeyboardAlt:`Нажмите Alt + Enter, чтобы начать перетаскивать.`,dragDescriptionLongPress:`Нажмите и удерживайте, чтобы начать перетаскивать.`,dragDescriptionTouch:`Дважды нажмите для начала перетаскивания.`,dragDescriptionVirtual:`Щелкните для начала перетаскивания.`,dragItem:e=>`\u{41F}\u{435}\u{440}\u{435}\u{442}\u{430}\u{449}\u{438}\u{442}\u{44C} ${e.itemText}`,dragSelectedItems:(e,t)=>`\u{41F}\u{435}\u{440}\u{435}\u{442}\u{430}\u{449}\u{438}\u{442}\u{44C} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{439} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{445} \u{44D}\u{43B}\u{435}\u{43C}`})}`,dragSelectedKeyboard:(e,t)=>`\u{41D}\u{430}\u{436}\u{43C}\u{438}\u{442}\u{435} Enter \u{434}\u{43B}\u{44F} \u{43F}\u{435}\u{440}\u{435}\u{442}\u{430}\u{441}\u{43A}\u{438}\u{432}\u{430}\u{43D}\u{438}\u{44F} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{43E}\u{433}\u{43E} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{430}`,other:()=>`${t.number(e.count)} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{445} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{43E}\u{432}`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u{41D}\u{430}\u{436}\u{43C}\u{438}\u{442}\u{435} Alt + Enter \u{434}\u{43B}\u{44F} \u{43F}\u{435}\u{440}\u{435}\u{442}\u{430}\u{441}\u{43A}\u{438}\u{432}\u{430}\u{43D}\u{438}\u{44F} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{43E}\u{433}\u{43E} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{430}`,other:()=>`${t.number(e.count)} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{445} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{43E}\u{432}`})}.`,dragSelectedLongPress:(e,t)=>`\u{41D}\u{430}\u{436}\u{43C}\u{438}\u{442}\u{435} \u{438} \u{443}\u{434}\u{435}\u{440}\u{436}\u{438}\u{432}\u{430}\u{439}\u{442}\u{435} \u{434}\u{43B}\u{44F} \u{43F}\u{435}\u{440}\u{435}\u{442}\u{430}\u{441}\u{43A}\u{438}\u{432}\u{430}\u{43D}\u{438}\u{44F} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{43E}\u{433}\u{43E} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{430}`,other:()=>`${t.number(e.count)} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{445} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{43E}\u{432}`})}.`,dragStartedKeyboard:`Начато перетаскивание. Нажмите клавишу Tab для выбора цели, затем нажмите клавишу Enter, чтобы применить перетаскивание, или клавишу Escape для отмены действия.`,dragStartedTouch:`Начато перетаскивание. Выберите цель, затем дважды нажмите, чтобы применить перетаскивание.`,dragStartedVirtual:`Начато перетаскивание. Нажмите клавишу Tab для выбора цели, затем нажмите клавишу Enter, чтобы применить перетаскивание.`,dropCanceled:`Перетаскивание отменено.`,dropComplete:`Перетаскивание завершено.`,dropDescriptionKeyboard:`Нажмите клавишу Enter, чтобы применить перетаскивание. Нажмите клавишу Escape для отмены.`,dropDescriptionTouch:`Дважды нажмите, чтобы применить перетаскивание.`,dropDescriptionVirtual:`Щелкните, чтобы применить перетаскивание.`,dropIndicator:`индикатор перетаскивания`,dropOnItem:e=>`\u{41F}\u{435}\u{440}\u{435}\u{442}\u{430}\u{449}\u{438}\u{442}\u{44C} \u{43D}\u{430} ${e.itemText}`,dropOnRoot:`Перетащить на`,endDragKeyboard:`Перетаскивание. Нажмите клавишу Enter для отмены.`,endDragTouch:`Перетаскивание. Дважды нажмите для отмены.`,endDragVirtual:`Перетаскивание. Щелкните для отмены.`,insertAfter:e=>`\u{412}\u{441}\u{442}\u{430}\u{432}\u{438}\u{442}\u{44C} \u{43F}\u{43E}\u{441}\u{43B}\u{435} ${e.itemText}`,insertBefore:e=>`\u{412}\u{441}\u{442}\u{430}\u{432}\u{438}\u{442}\u{44C} \u{43F}\u{435}\u{440}\u{435}\u{434} ${e.itemText}`,insertBetween:e=>`\u{412}\u{441}\u{442}\u{430}\u{432}\u{438}\u{442}\u{44C} \u{43C}\u{435}\u{436}\u{434}\u{443} ${e.beforeItemText} \u{438} ${e.afterItemText}`};var AW={};AW={dragDescriptionKeyboard:`Stlačením klávesu Enter začnete presúvanie.`,dragDescriptionKeyboardAlt:`Stlačením klávesov Alt + Enter začnete presúvanie.`,dragDescriptionLongPress:`Dlhým stlačením začnete presúvanie.`,dragDescriptionTouch:`Dvojitým kliknutím začnete presúvanie.`,dragDescriptionVirtual:`Kliknutím začnete presúvanie.`,dragItem:e=>`Presun\xfa\u{165} polo\u{17E}ku ${e.itemText}`,dragSelectedItems:(e,t)=>`Presun\xfa\u{165} ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybrat\xfa polo\u{17E}ku`,other:()=>`${t.number(e.count)} vybrat\xe9 polo\u{17E}ky`})}`,dragSelectedKeyboard:(e,t)=>`Stla\u{10D}en\xedm kl\xe1vesu Enter presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybrat\xfa polo\u{17E}ku`,other:()=>`${t.number(e.count)} vybrat\xfdch polo\u{17E}iek`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Stla\u{10D}en\xedm kl\xe1vesov Alt + Enter presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybrat\xfa polo\u{17E}ku`,other:()=>`${t.number(e.count)} vybrat\xfdch polo\u{17E}iek`})}.`,dragSelectedLongPress:(e,t)=>`Dlh\xfdm stla\u{10D}en\xedm presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybrat\xfa polo\u{17E}ku`,other:()=>`${t.number(e.count)} vybrat\xfdch polo\u{17E}iek`})}.`,dragStartedKeyboard:`Presúvanie sa začalo. Do cieľového umiestnenia prejdete stlačením klávesu Tab. Ak chcete položku umiestniť, stlačte kláves Enter alebo stlačte kláves Esc, ak chcete presúvanie zrušiť.`,dragStartedTouch:`Presúvanie sa začalo. Prejdite na cieľové umiestnenie a dvojitým kliknutím umiestnite položku.`,dragStartedVirtual:`Presúvanie sa začalo. Prejdite na cieľové umiestnenie a kliknutím alebo stlačením klávesu Enter umiestnite položku.`,dropCanceled:`Umiestnenie zrušené.`,dropComplete:`Umiestnenie dokončené.`,dropDescriptionKeyboard:`Stlačením klávesu Enter umiestnite položku. Stlačením klávesu Esc zrušíte presúvanie.`,dropDescriptionTouch:`Dvojitým kliknutím umiestnite položku.`,dropDescriptionVirtual:`Kliknutím umiestnite položku.`,dropIndicator:`indikátor umiestnenia`,dropOnItem:e=>`Umiestni\u{165} na polo\u{17E}ku ${e.itemText}`,dropOnRoot:`Umiestniť na`,endDragKeyboard:`Prebieha presúvanie. Ak ho chcete zrušiť, stlačte kláves Enter.`,endDragTouch:`Prebieha presúvanie. Dvojitým kliknutím ho môžete zrušiť.`,endDragVirtual:`Prebieha presúvanie.`,insertAfter:e=>`Vlo\u{17E}i\u{165} za polo\u{17E}ku ${e.itemText}`,insertBefore:e=>`Vlo\u{17E}i\u{165} pred polo\u{17E}ku ${e.itemText}`,insertBetween:e=>`Vlo\u{17E}i\u{165} medzi polo\u{17E}ky ${e.beforeItemText} a ${e.afterItemText}`};var jW={};jW={dragDescriptionKeyboard:`Pritisnite tipko Enter za začetek vlečenja.`,dragDescriptionKeyboardAlt:`Pritisnite tipki Alt + Enter za začetek vlečenja.`,dragDescriptionLongPress:`Pritisnite in zadržite za začetek vlečenja.`,dragDescriptionTouch:`Dvotapnite za začetek vlečenja.`,dragDescriptionVirtual:`Kliknite za začetek vlečenja.`,dragItem:e=>`Povleci ${e.itemText}`,dragSelectedItems:(e,t)=>`Povlecite ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbran element`,other:()=>`izbrane elemente (${t.number(e.count)})`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite tipko Enter, da povle\u{10D}ete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite tipki Alt + Enter, da povle\u{10D}ete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragSelectedLongPress:(e,t)=>`Pritisnite in zadr\u{17E}ite, da povle\u{10D}ete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragStartedKeyboard:`Vlečenje se je začelo. Pritisnite tipko Tab za pomik na mesto, kamor želite spustiti elemente, in pritisnite tipko Enter, da jih spustite, ali tipko Escape, da prekličete postopek.`,dragStartedTouch:`Vlečenje se je začelo. Pomaknite se na mesto, kamor želite spustiti elemente, in dvotapnite, da jih spustite.`,dragStartedVirtual:`Vlečenje se je začelo. Pomaknite se na mesto, kamor želite spustiti elemente, in kliknite ali pritisnite tipko Enter, da jih spustite.`,dropCanceled:`Spust je preklican.`,dropComplete:`Spust je končan.`,dropDescriptionKeyboard:`Pritisnite tipko Enter, da spustite. Pritisnite tipko Escape, da prekličete vlečenje.`,dropDescriptionTouch:`Dvotapnite, da spustite.`,dropDescriptionVirtual:`Kliknite, da spustite.`,dropIndicator:`indikator spusta`,dropOnItem:e=>`Spusti na mesto ${e.itemText}`,dropOnRoot:`Spusti na mesto`,endDragKeyboard:`Vlečenje. Pritisnite tipko Enter za preklic vlečenja.`,endDragTouch:`Vlečenje. Dvotapnite za preklic vlečenja.`,endDragVirtual:`Vlečenje. Kliknite, da prekličete vlečenje.`,insertAfter:e=>`Vstavi za ${e.itemText}`,insertBefore:e=>`Vstavi pred ${e.itemText}`,insertBetween:e=>`Vstavi med ${e.beforeItemText} in ${e.afterItemText}`};var MW={};MW={dragDescriptionKeyboard:`Pritisnite Enter da biste započeli prevlačenje.`,dragDescriptionKeyboardAlt:`Pritisnite Alt + Enter da biste započeli prevlačenje.`,dragDescriptionLongPress:`Pritisnite dugo da biste započeli prevlačenje.`,dragDescriptionTouch:`Dvaput dodirnite da biste započeli prevlačenje.`,dragDescriptionVirtual:`Kliknite da biste započeli prevlačenje.`,dragItem:e=>`Prevucite ${e.itemText}`,dragSelectedItems:(e,t)=>`Prevucite ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabrane stavke`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite Enter da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite Alt + Enter da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragSelectedLongPress:(e,t)=>`Pritisnite dugo da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragStartedKeyboard:`Prevlačenje je započeto. Pritisnite Tab da biste otišli do cilja za otpuštanje, zatim pritisnite Enter za ispuštanje ili pritisnite Escape za otkazivanje.`,dragStartedTouch:`Prevlačenje je započeto. Idite do cilja za otpuštanje, a zatim dvaput dodirnite za otpuštanje.`,dragStartedVirtual:`Prevlačenje je započeto. Idite do cilja za otpuštanje, a zatim kliknite ili pritinite Enter za otpuštanje.`,dropCanceled:`Otpuštanje je otkazano.`,dropComplete:`Prevlačenje je završeno.`,dropDescriptionKeyboard:`Pritisnite Enter da biste otpustili. Pritisnite Escape da biste otkazali prevlačenje.`,dropDescriptionTouch:`Dvaput dodirnite za otpuštanje.`,dropDescriptionVirtual:`Kliknite za otpuštanje.`,dropIndicator:`Indikator otpuštanja`,dropOnItem:e=>`Otpusti na ${e.itemText}`,dropOnRoot:`Otpusti na`,endDragKeyboard:`Prevlačenje u toku. Pritisnite Enter da biste otkazali prevlačenje.`,endDragTouch:`Prevlačenje u toku. Dvaput dodirnite da biste otkazali prevlačenje.`,endDragVirtual:`Prevlačenje u toku. Kliknite da biste otkazali prevlačenje.`,insertAfter:e=>`Umetnite posle ${e.itemText}`,insertBefore:e=>`Umetnite ispred ${e.itemText}`,insertBetween:e=>`Umetnite izme\u{111}u ${e.beforeItemText} i ${e.afterItemText}`};var NW={};NW={dragDescriptionKeyboard:`Tryck på enter för att börja dra.`,dragDescriptionKeyboardAlt:`Tryck på Alt + Retur för att börja dra.`,dragDescriptionLongPress:`Tryck länge för att börja dra.`,dragDescriptionTouch:`Dubbeltryck för att börja dra.`,dragDescriptionVirtual:`Klicka för att börja dra.`,dragItem:e=>`Dra ${e.itemText}`,dragSelectedItems:(e,t)=>`Dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valt objekt`,other:()=>`${t.number(e.count)} valda objekt`})}`,dragSelectedKeyboard:(e,t)=>`Tryck p\xe5 Retur f\xf6r att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Tryck p\xe5 Alt + Retur f\xf6r att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragSelectedLongPress:(e,t)=>`Tryck l\xe4nge f\xf6r att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragStartedKeyboard:`Börja dra. Tryck på tabb för att navigera till målet, tryck på enter för att släppa eller på escape för att avbryta.`,dragStartedTouch:`Börja dra. Navigera till ett mål och dubbeltryck för att släppa.`,dragStartedVirtual:`Börja dra. Navigera till ett mål och klicka eller tryck på enter för att släppa.`,dropCanceled:`Släppåtgärd avbröts.`,dropComplete:`Släppåtgärd klar.`,dropDescriptionKeyboard:`Tryck på enter för att släppa. Tryck på escape för att avbryta dragåtgärd.`,dropDescriptionTouch:`Dubbeltryck för att släppa.`,dropDescriptionVirtual:`Klicka för att släppa.`,dropIndicator:`släppindikator`,dropOnItem:e=>`Sl\xe4pp p\xe5 ${e.itemText}`,dropOnRoot:`Släpp på`,endDragKeyboard:`Drar. Tryck på enter för att avbryta dragåtgärd.`,endDragTouch:`Drar. Dubbeltryck för att avbryta dragåtgärd.`,endDragVirtual:`Drar. Klicka för att avbryta dragåtgärd.`,insertAfter:e=>`Infoga efter ${e.itemText}`,insertBefore:e=>`Infoga f\xf6re ${e.itemText}`,insertBetween:e=>`Infoga mellan ${e.beforeItemText} och ${e.afterItemText}`};var PW={};PW={dragDescriptionKeyboard:`Sürüklemeyi başlatmak için Enter'a basın.`,dragDescriptionKeyboardAlt:`Sürüklemeyi başlatmak için Alt + Enter'a basın.`,dragDescriptionLongPress:`Sürüklemeye başlamak için uzun basın.`,dragDescriptionTouch:`Sürüklemeyi başlatmak için çift tıklayın.`,dragDescriptionVirtual:`Sürüklemeyi başlatmak için tıklayın.`,dragItem:e=>`${e.itemText}\u{2019}i s\xfcr\xfckle`,dragSelectedItems:(e,t)=>`S\xfcr\xfckle ${t.plural(e.count,{one:()=>`${t.number(e.count)} se\xe7ili \xf6ge`,other:()=>`${t.number(e.count)} se\xe7ili \xf6ge`})}`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} se\xe7ilmi\u{15F} \xf6\u{11F}e`,other:()=>`${t.number(e.count)} se\xe7ilmi\u{15F} \xf6\u{11F}e`})} \xf6\u{11F}esini s\xfcr\xfcklemek i\xe7in Enter'a bas\u{131}n.`,dragSelectedKeyboardAlt:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} se\xe7ilmi\u{15F} \xf6\u{11F}e`,other:()=>`${t.number(e.count)} se\xe7ilmi\u{15F} \xf6\u{11F}e`})} \xf6\u{11F}esini s\xfcr\xfcklemek i\xe7in Alt + Enter tu\u{15F}una bas\u{131}n.`,dragSelectedLongPress:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} se\xe7ilmi\u{15F} \xf6\u{11F}e`,other:()=>`${t.number(e.count)} se\xe7ilmi\u{15F} \xf6\u{11F}e`})} \xf6\u{11F}esini s\xfcr\xfcklemek i\xe7in uzun bas\u{131}n.`,dragStartedKeyboard:`Sürükleme başlatıldı. Bir bırakma hedefine gitmek için Tab’a basın, ardından bırakmak için Enter’a basın veya iptal etmek için Escape’e basın.`,dragStartedTouch:`Sürükleme başlatıldı. Bir bırakma hedefine gidin, ardından bırakmak için çift tıklayın.`,dragStartedVirtual:`Sürükleme başlatıldı. Bir bırakma hedefine gidin, ardından bırakmak için Enter’a tıklayın veya basın.`,dropCanceled:`Bırakma iptal edildi.`,dropComplete:`Bırakma tamamlandı.`,dropDescriptionKeyboard:`Bırakmak için Enter'a basın. Sürüklemeyi iptal etmek için Escape'e basın.`,dropDescriptionTouch:`Bırakmak için çift tıklayın.`,dropDescriptionVirtual:`Bırakmak için tıklayın.`,dropIndicator:`bırakma göstergesi`,dropOnItem:e=>`${e.itemText} \xfczerine b\u{131}rak`,dropOnRoot:`Bırakın`,endDragKeyboard:`Sürükleme. Sürüklemeyi iptal etmek için Enter'a basın.`,endDragTouch:`Sürükleme. Sürüklemeyi iptal etmek için çift tıklayın.`,endDragVirtual:`Sürükleme. Sürüklemeyi iptal etmek için tıklayın.`,insertAfter:e=>`${e.itemText}\u{2019}den sonra gir`,insertBefore:e=>`${e.itemText}\u{2019}den \xf6nce gir`,insertBetween:e=>`${e.beforeItemText} ve ${e.afterItemText} aras\u{131}na gir`};var FW={};FW={dragDescriptionKeyboard:`Натисніть Enter, щоб почати перетягування.`,dragDescriptionKeyboardAlt:`Натисніть Alt + Enter, щоб почати перетягування.`,dragDescriptionLongPress:`Натисніть і утримуйте, щоб почати перетягування.`,dragDescriptionTouch:`Натисніть двічі, щоб почати перетягування.`,dragDescriptionVirtual:`Натисніть, щоб почати перетягування.`,dragItem:e=>`\u{41F}\u{435}\u{440}\u{435}\u{442}\u{44F}\u{433}\u{43D}\u{443}\u{442}\u{438} ${e.itemText}`,dragSelectedItems:(e,t)=>`\u{41F}\u{435}\u{440}\u{435}\u{442}\u{44F}\u{433}\u{43D}\u{456}\u{442}\u{44C} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{445} \u{435}\u{43B}\u{435}\u{43C}`})}`,dragSelectedKeyboard:(e,t)=>`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{456}\u{442}\u{44C} Enter, \u{449}\u{43E}\u{431} \u{43F}\u{435}\u{440}\u{435}\u{442}\u{44F}\u{433}\u{43D}\u{443}\u{442}\u{438} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{445} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{438}(-\u{456}\u{432})`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{456}\u{442}\u{44C} Alt + Enter, \u{449}\u{43E}\u{431} \u{43F}\u{435}\u{440}\u{435}\u{442}\u{44F}\u{433}\u{43D}\u{443}\u{442}\u{438} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{445} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{438}(-\u{456}\u{432})`})}.`,dragSelectedLongPress:(e,t)=>`\u{423}\u{442}\u{440}\u{438}\u{43C}\u{443}\u{439}\u{442}\u{435}, \u{449}\u{43E}\u{431} \u{43F}\u{435}\u{440}\u{435}\u{442}\u{44F}\u{433}\u{43D}\u{443}\u{442}\u{438} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{445} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{438}(-\u{456}\u{432})`})}.`,dragStartedKeyboard:`Перетягування почалося. Натисніть Tab, щоб перейти до цілі перетягування, потім натисніть Enter, щоб перетягнути, або Escape, щоб скасувати.`,dragStartedTouch:`Перетягування почалося. Перейдіть до цілі перетягування, потім натисніть двічі, щоб перетягнути.`,dragStartedVirtual:`Перетягування почалося. Перейдіть до цілі перетягування, потім натисніть Enter, щоб перетягнути.`,dropCanceled:`Перетягування скасовано.`,dropComplete:`Перетягування завершено.`,dropDescriptionKeyboard:`Натисніть Enter, щоб перетягнути. Натисніть Escape, щоб скасувати перетягування.`,dropDescriptionTouch:`Натисніть двічі, щоб перетягнути.`,dropDescriptionVirtual:`Натисніть, щоб перетягнути.`,dropIndicator:`індикатор перетягування`,dropOnItem:e=>`\u{41F}\u{435}\u{440}\u{435}\u{442}\u{44F}\u{433}\u{43D}\u{443}\u{442}\u{438} \u{43D}\u{430} ${e.itemText}`,dropOnRoot:`Перетягнути на`,endDragKeyboard:`Триває перетягування. Натисніть Enter, щоб скасувати перетягування.`,endDragTouch:`Триває перетягування. Натисніть двічі, щоб скасувати перетягування.`,endDragVirtual:`Триває перетягування. Натисніть, щоб скасувати перетягування.`,insertAfter:e=>`\u{412}\u{441}\u{442}\u{430}\u{432}\u{438}\u{442}\u{438} \u{43F}\u{456}\u{441}\u{43B}\u{44F} ${e.itemText}`,insertBefore:e=>`\u{412}\u{441}\u{442}\u{430}\u{432}\u{438}\u{442}\u{438} \u{43F}\u{435}\u{440}\u{435}\u{434} ${e.itemText}`,insertBetween:e=>`\u{412}\u{441}\u{442}\u{430}\u{432}\u{438}\u{442}\u{438} \u{43C}\u{456}\u{436} ${e.beforeItemText} \u{456} ${e.afterItemText}`};var IW={};IW={dragDescriptionKeyboard:`按 Enter 开始拖动。`,dragDescriptionKeyboardAlt:`按 Alt + Enter 开始拖动。`,dragDescriptionLongPress:`长按以开始拖动。`,dragDescriptionTouch:`双击开始拖动。`,dragDescriptionVirtual:`单击开始拖动。`,dragItem:e=>`\u{62D6}\u{52A8} ${e.itemText}`,dragSelectedItems:(e,t)=>`\u{62D6}\u{52A8} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{9009}\u{4E2D}\u{9879}\u{76EE}`,other:()=>`${t.number(e.count)} \u{9009}\u{4E2D}\u{9879}\u{76EE}`})}`,dragSelectedKeyboard:(e,t)=>`\u{6309} Enter \u{4EE5}\u{62D6}\u{52A8} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{4E2A}\u{9009}\u{5B9A}\u{9879}`,other:()=>`${t.number(e.count)} \u{4E2A}\u{9009}\u{5B9A}\u{9879}`})}\u{3002}`,dragSelectedKeyboardAlt:(e,t)=>`\u{6309} Alt + Enter \u{4EE5}\u{62D6}\u{52A8} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{4E2A}\u{9009}\u{5B9A}\u{9879}`,other:()=>`${t.number(e.count)} \u{4E2A}\u{9009}\u{5B9A}\u{9879}`})}\u{3002}`,dragSelectedLongPress:(e,t)=>`\u{957F}\u{6309}\u{4EE5}\u{62D6}\u{52A8} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{4E2A}\u{9009}\u{5B9A}\u{9879}`,other:()=>`${t.number(e.count)} \u{4E2A}\u{9009}\u{5B9A}\u{9879}`})}\u{3002}`,dragStartedKeyboard:`已开始拖动。按 Tab 导航到放置目标,然后按 Enter 放置或按 Escape 取消。`,dragStartedTouch:`已开始拖动。导航到放置目标,然后双击放置。`,dragStartedVirtual:`已开始拖动。导航到放置目标,然后单击或按 Enter 放置。`,dropCanceled:`放置已取消。`,dropComplete:`放置已完成。`,dropDescriptionKeyboard:`按 Enter 放置。按 Escape 取消拖动。`,dropDescriptionTouch:`双击放置。`,dropDescriptionVirtual:`单击放置。`,dropIndicator:`放置标记`,dropOnItem:e=>`\u{653E}\u{7F6E}\u{4E8E} ${e.itemText}`,dropOnRoot:`放置于`,endDragKeyboard:`正在拖动。按 Enter 取消拖动。`,endDragTouch:`正在拖动。双击取消拖动。`,endDragVirtual:`正在拖动。单击取消拖动。`,insertAfter:e=>`\u{63D2}\u{5165}\u{5230} ${e.itemText} \u{4E4B}\u{540E}`,insertBefore:e=>`\u{63D2}\u{5165}\u{5230} ${e.itemText} \u{4E4B}\u{524D}`,insertBetween:e=>`\u{63D2}\u{5165}\u{5230} ${e.beforeItemText} \u{548C} ${e.afterItemText} \u{4E4B}\u{95F4}`};var LW={};LW={dragDescriptionKeyboard:`按 Enter 鍵以開始拖曳。`,dragDescriptionKeyboardAlt:`按 Alt+Enter 鍵以開始拖曳。`,dragDescriptionLongPress:`長按以開始拖曳。`,dragDescriptionTouch:`輕點兩下以開始拖曳。`,dragDescriptionVirtual:`按一下滑鼠以開始拖曳。`,dragItem:e=>`\u{62D6}\u{66F3}\u{300C}${e.itemText}\u{300D}`,dragSelectedItems:(e,t)=>`\u{62D6}\u{66F3} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{500B}\u{9078}\u{5B9A}\u{9805}\u{76EE}`,other:()=>`${t.number(e.count)} \u{500B}\u{9078}\u{5B9A}\u{9805}\u{76EE}`})}`,dragSelectedKeyboard:(e,t)=>`\u{6309} Enter \u{9375}\u{4EE5}\u{62D6}\u{66F3} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{500B}\u{9078}\u{5B9A}\u{9805}\u{76EE}`,other:()=>`${t.number(e.count)} \u{500B}\u{9078}\u{5B9A}\u{9805}\u{76EE}`})}\u{3002}`,dragSelectedKeyboardAlt:(e,t)=>`\u{6309} Alt+Enter \u{9375}\u{4EE5}\u{62D6}\u{66F3} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{500B}\u{9078}\u{5B9A}\u{9805}\u{76EE}`,other:()=>`${t.number(e.count)} \u{500B}\u{9078}\u{5B9A}\u{9805}\u{76EE}`})}\u{3002}`,dragSelectedLongPress:(e,t)=>`\u{9577}\u{6309}\u{4EE5}\u{62D6}\u{66F3} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{500B}\u{9078}\u{5B9A}\u{9805}\u{76EE}`,other:()=>`${t.number(e.count)} \u{500B}\u{9078}\u{5B9A}\u{9805}\u{76EE}`})}\u{3002}`,dragStartedKeyboard:`已開始拖曳。按 Tab 鍵以瀏覽至放置目標,然後按 Enter 鍵以放置,或按 Escape 鍵以取消。`,dragStartedTouch:`已開始拖曳。瀏覽至放置目標,然後輕點兩下以放置。`,dragStartedVirtual:`已開始拖曳。瀏覽至放置目標,然後按一下滑鼠或按 Enter 鍵以放置。`,dropCanceled:`放置已取消。`,dropComplete:`放置已完成。`,dropDescriptionKeyboard:`按 Enter 鍵以放置。按 Escape 鍵以取消拖曳。`,dropDescriptionTouch:`輕點兩下以放置。`,dropDescriptionVirtual:`按一下滑鼠以放置。`,dropIndicator:`放置指示器`,dropOnItem:e=>`\u{653E}\u{7F6E}\u{5728}\u{300C}${e.itemText}\u{300D}\u{4E0A}`,dropOnRoot:`放置在`,endDragKeyboard:`拖曳中。按 Enter 鍵以取消拖曳。`,endDragTouch:`拖曳中。輕點兩下以取消拖曳。`,endDragVirtual:`拖曳中。按一下滑鼠以取消拖曳。`,insertAfter:e=>`\u{63D2}\u{5165}\u{81F3}\u{300C}${e.itemText}\u{300D}\u{4E4B}\u{5F8C}`,insertBefore:e=>`\u{63D2}\u{5165}\u{81F3}\u{300C}${e.itemText}\u{300D}\u{4E4B}\u{524D}`,insertBetween:e=>`\u{63D2}\u{5165}\u{81F3}\u{300C}${e.beforeItemText}\u{300D}\u{548C}\u{300C}${e.afterItemText}\u{300D}\u{4E4B}\u{9593}`};var RW={};RW={"ar-AE":iW,"bg-BG":aW,"cs-CZ":oW,"da-DK":sW,"de-DE":cW,"el-GR":lW,"en-US":uW,"es-ES":dW,"et-EE":fW,"fi-FI":pW,"fr-FR":mW,"he-IL":hW,"hr-HR":gW,"hu-HU":_W,"it-IT":vW,"ja-JP":yW,"ko-KR":bW,"lt-LT":xW,"lv-LV":SW,"nb-NO":CW,"nl-NL":wW,"pl-PL":TW,"pt-BR":EW,"pt-PT":DW,"ro-RO":OW,"ru-RU":kW,"sk-SK":AW,"sl-SI":jW,"sr-SP":MW,"sv-SE":NW,"tr-TR":PW,"uk-UA":FW,"zh-CN":IW,"zh-TW":LW};function yne(e){return e&&e.__esModule?e.default:e}var bne={keyboard:`dropDescriptionKeyboard`,touch:`dropDescriptionTouch`,virtual:`dropDescriptionVirtual`};function xne(){let e=hT(yne(RW),`@react-aria/dnd`),t=HU();return{dropProps:{...BA(pne()?e.format(bne[t]):``),onClick:()=>{}}}}var Sne=800;function zW(e){let{hasDropButton:t,isDisabled:n}=e,[r,i]=(0,x.useState)(!1),a=(0,x.useRef)({x:0,y:0,dragOverElements:new Set,dropEffect:`none`,allowedOperations:NU.all,dropActivateTimer:void 0}).current,o=t=>{if(i(!0),typeof e.onDropEnter==`function`){let n=t.currentTarget.getBoundingClientRect();e.onDropEnter({type:`dropenter`,x:t.clientX-n.x,y:t.clientY-n.y})}},s=t=>{if(i(!1),typeof e.onDropExit==`function`){let n=t.currentTarget.getBoundingClientRect();e.onDropExit({type:`dropexit`,x:t.clientX-n.x,y:t.clientY-n.y})}},c=t=>{t.preventDefault(),t.stopPropagation();let n=BW(t);if(t.clientX===a.x&&t.clientY===a.y&&n===a.allowedOperations){t.dataTransfer.dropEffect=a.dropEffect;return}a.x=t.clientX,a.y=t.clientY;let r=a.dropEffect;if(n!==a.allowedOperations){let r=VW(n),i=r[0];if(typeof e.getDropOperation==`function`){let a=new WU(t.dataTransfer);i=HW(n,e.getDropOperation(a,r))}a.dropEffect=LU[i]||`none`}if(typeof e.getDropOperationForPoint==`function`){let r=new WU(t.dataTransfer),i=t.currentTarget.getBoundingClientRect(),o=HW(n,e.getDropOperationForPoint(r,VW(n),a.x-i.x,a.y-i.y));a.dropEffect=LU[o]||`none`}if(a.allowedOperations=n,t.dataTransfer.dropEffect=a.dropEffect,a.dropEffect===`none`&&r!==`none`?s(t):a.dropEffect!==`none`&&r===`none`&&o(t),typeof e.onDropMove==`function`&&a.dropEffect!==`none`){let n=t.currentTarget.getBoundingClientRect();e.onDropMove({type:`dropmove`,x:a.x-n.x,y:a.y-n.y})}if(clearTimeout(a.dropActivateTimer),e.onDropActivate&&typeof e.onDropActivate==`function`&&a.dropEffect!==`none`){let n=e.onDropActivate,r=t.currentTarget.getBoundingClientRect();a.dropActivateTimer=setTimeout(()=>{n({type:`dropactivate`,x:a.x-r.x,y:a.y-r.y})},Sne)}},l=t=>{if(t.preventDefault(),t.stopPropagation(),a.dragOverElements.add(K(t)),a.dragOverElements.size>1)return;let n=BW(t),r=VW(n),i=r[0];if(typeof e.getDropOperation==`function`){let a=new WU(t.dataTransfer);i=HW(n,e.getDropOperation(a,r))}if(typeof e.getDropOperationForPoint==`function`){let a=new WU(t.dataTransfer),o=t.currentTarget.getBoundingClientRect();i=HW(n,e.getDropOperationForPoint(a,r,t.clientX-o.x,t.clientY-o.y))}a.x=t.clientX,a.y=t.clientY,a.allowedOperations=n,a.dropEffect=LU[i]||`none`,t.dataTransfer.dropEffect=a.dropEffect,i!==`cancel`&&o(t)},u=e=>{e.preventDefault(),e.stopPropagation();let t=K(e);if(a.dragOverElements.delete(t),t===e.currentTarget)for(let t of a.dragOverElements)zS(e.currentTarget,t)||a.dragOverElements.delete(t);a.dragOverElements.size>0||(a.dropEffect!==`none`&&s(e),clearTimeout(a.dropActivateTimer))},d=t=>{if(t.preventDefault(),t.stopPropagation(),XU(a.dropEffect),typeof e.onDrop==`function`){let n=IU[a.dropEffect],r=one(t.dataTransfer),i=t.currentTarget.getBoundingClientRect(),o={type:`drop`,x:t.clientX-i.x,y:t.clientY-i.y,items:r,dropOperation:n};e.onDrop(o)}let n={...JU};a.dragOverElements.clear(),s(t),clearTimeout(a.dropActivateTimer),n.draggingCollectionRef==null?XU(void 0):une(n)},f=Kw(t=>{typeof e.onDropEnter==`function`&&e.onDropEnter(t)}),p=Kw(t=>{typeof e.onDropExit==`function`&&e.onDropExit(t)}),m=Kw(t=>{typeof e.onDropActivate==`function`&&e.onDropActivate(t)}),h=Kw(t=>{typeof e.onDrop==`function`&&e.onDrop(t)}),g=Kw((t,n)=>e.getDropOperation?e.getDropOperation(t,n):n[0]),{ref:_}=e;qx(()=>{if(!n&&_.current)return dne({element:_.current,getDropOperation:g,onDropEnter(e){i(!0),f(e)},onDropExit(e){i(!1),p(e)},onDrop:h,onDropActivate:m})},[n,_]);let{dropProps:v}=xne();return n?{dropProps:{},dropButtonProps:{isDisabled:!0},isDropTarget:!1}:{dropProps:{...!t&&v,onDragEnter:l,onDragOver:c,onDragLeave:u,onDrop:d},dropButtonProps:{...t&&v},isDropTarget:r}}function BW(e){let t=PU[e.dataTransfer.effectAllowed];ZU&&(t&=ZU);let n=NU.none;return fC()?(e.altKey&&(n|=NU.copy),e.ctrlKey&&!mC()&&(n|=NU.link),e.metaKey&&(n|=NU.move)):(e.altKey&&(n|=NU.link),e.shiftKey&&(n|=NU.move),e.ctrlKey&&(n|=NU.copy)),n?t&n:t}function VW(e){let t=[];return e&NU.move&&t.push(`move`),e&NU.copy&&t.push(`copy`),e&NU.link&&t.push(`link`),t}function HW(e,t){return e&NU[t]?t:`cancel`}var UW=(0,x.forwardRef)(function(e,t){let{onSelect:n,acceptedFileTypes:r,allowsMultiple:i,defaultCamera:a,children:o,acceptDirectory:s,...c}=e,l=gS(t),u=q(c,{global:!0});return x.createElement(x.Fragment,null,x.createElement(tB,{onPress:()=>{l.current?.value&&(l.current.value=``),l.current?.click()}},o),x.createElement(ON,{...u,className:``,type:`file`,ref:l,onClick:e=>e.stopPropagation(),style:{display:`none`},accept:r?.toString(),onChange:e=>n?.(K(e).files),capture:a,multiple:i,webkitdirectory:s?``:void 0}))}),WW=new WeakMap;function GW(e,t){let{id:n}=WW.get(e)??{};if(!n)throw Error(`Unknown list`);return`${n}-${Cne(t)}`}function Cne(e){return typeof e==`string`?e.replace(/\s*/g,``):``+e}var KW={};KW={deselectedItem:e=>`${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,longPressToSelect:`اضغط مطولًا للدخول إلى وضع التحديد.`,select:`تحديد`,selectedAll:`جميع العناصر المحددة.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`لم يتم تحديد عناصر`,one:()=>`${t.number(e.count)} \u{639}\u{646}\u{635}\u{631} \u{645}\u{62D}\u{62F}\u{62F}`,other:()=>`${t.number(e.count)} \u{639}\u{646}\u{635}\u{631} \u{645}\u{62D}\u{62F}\u{62F}`})}.`,selectedItem:e=>`${e.item} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`};var qW={};qW={deselectedItem:e=>`${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,longPressToSelect:`Натиснете и задръжте за да влезете в избирателен режим.`,select:`Изберете`,selectedAll:`Всички елементи са избрани.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Няма избрани елементи`,one:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{438}`})}.`,selectedItem:e=>`${e.item} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`};var JW={};JW={deselectedItem:e=>`Polo\u{17E}ka ${e.item} nen\xed vybr\xe1na.`,longPressToSelect:`Dlouhým stisknutím přejdete do režimu výběru.`,select:`Vybrat`,selectedAll:`Vybrány všechny položky.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Nevybrány žádné položky`,one:()=>`Vybr\xe1na ${t.number(e.count)} polo\u{17E}ka`,other:()=>`Vybr\xe1no ${t.number(e.count)} polo\u{17E}ek`})}.`,selectedItem:e=>`Vybr\xe1na polo\u{17E}ka ${e.item}.`};var YW={};YW={deselectedItem:e=>`${e.item} ikke valgt.`,longPressToSelect:`Lav et langt tryk for at aktivere valgtilstand.`,select:`Vælg`,selectedAll:`Alle elementer valgt.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Ingen elementer valgt`,one:()=>`${t.number(e.count)} element valgt`,other:()=>`${t.number(e.count)} elementer valgt`})}.`,selectedItem:e=>`${e.item} valgt.`};var XW={};XW={deselectedItem:e=>`${e.item} nicht ausgew\xe4hlt.`,longPressToSelect:`Gedrückt halten, um Auswahlmodus zu öffnen.`,select:`Auswählen`,selectedAll:`Alle Elemente ausgewählt.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Keine Elemente ausgewählt`,one:()=>`${t.number(e.count)} Element ausgew\xe4hlt`,other:()=>`${t.number(e.count)} Elemente ausgew\xe4hlt`})}.`,selectedItem:e=>`${e.item} ausgew\xe4hlt.`};var ZW={};ZW={deselectedItem:e=>`\u{394}\u{3B5}\u{3BD} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`,longPressToSelect:`Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.`,select:`Επιλογή`,selectedAll:`Επιλέχθηκαν όλα τα στοιχεία.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Δεν επιλέχθηκαν στοιχεία`,one:()=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} ${t.number(e.count)} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF}`,other:()=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B1}\u{3BD} ${t.number(e.count)} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3B1}`})}.`,selectedItem:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`};var QW={};QW={deselectedItem:e=>`${e.item} not selected.`,select:`Select`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`No items selected`,one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:`All items selected.`,selectedItem:e=>`${e.item} selected.`,longPressToSelect:`Long press to enter selection mode.`};var $W={};$W={deselectedItem:e=>`${e.item} no seleccionado.`,longPressToSelect:`Mantenga pulsado para abrir el modo de selección.`,select:`Seleccionar`,selectedAll:`Todos los elementos seleccionados.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Ningún elemento seleccionado`,one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,selectedItem:e=>`${e.item} seleccionado.`};var eG={};eG={deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:`Valikurežiimi sisenemiseks vajutage pikalt.`,select:`Vali`,selectedAll:`Kõik üksused valitud.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Üksusi pole valitud`,one:()=>`${t.number(e.count)} \xfcksus valitud`,other:()=>`${t.number(e.count)} \xfcksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`};var tG={};tG={deselectedItem:e=>`Kohdetta ${e.item} ei valittu.`,longPressToSelect:`Siirry valintatilaan painamalla pitkään.`,select:`Valitse`,selectedAll:`Kaikki kohteet valittu.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Ei yhtään kohdetta valittu`,one:()=>`${t.number(e.count)} kohde valittu`,other:()=>`${t.number(e.count)} kohdetta valittu`})}.`,selectedItem:e=>`${e.item} valittu.`};var nG={};nG={deselectedItem:e=>`${e.item} non s\xe9lectionn\xe9.`,longPressToSelect:`Appuyez de manière prolongée pour passer en mode de sélection.`,select:`Sélectionner`,selectedAll:`Tous les éléments sélectionnés.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Aucun élément sélectionné`,one:()=>`${t.number(e.count)} \xe9l\xe9ment s\xe9lectionn\xe9`,other:()=>`${t.number(e.count)} \xe9l\xe9ments s\xe9lectionn\xe9s`})}.`,selectedItem:e=>`${e.item} s\xe9lectionn\xe9.`};var rG={};rG={deselectedItem:e=>`${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,longPressToSelect:`הקשה ארוכה לכניסה למצב בחירה.`,select:`בחר`,selectedAll:`כל הפריטים נבחרו.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`לא נבחרו פריטים`,one:()=>`\u{5E4}\u{5E8}\u{5D9}\u{5D8} ${t.number(e.count)} \u{5E0}\u{5D1}\u{5D7}\u{5E8}`,other:()=>`${t.number(e.count)} \u{5E4}\u{5E8}\u{5D9}\u{5D8}\u{5D9}\u{5DD} \u{5E0}\u{5D1}\u{5D7}\u{5E8}\u{5D5}`})}.`,selectedItem:e=>`${e.item} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`};var iG={};iG={deselectedItem:e=>`Stavka ${e.item} nije odabrana.`,longPressToSelect:`Dugo pritisnite za ulazak u način odabira.`,select:`Odaberite`,selectedAll:`Odabrane su sve stavke.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Nije odabrana nijedna stavka`,one:()=>`Odabrana je ${t.number(e.count)} stavka`,other:()=>`Odabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`Stavka ${e.item} je odabrana.`};var aG={};aG={deselectedItem:e=>`${e.item} nincs kijel\xf6lve.`,longPressToSelect:`Nyomja hosszan a kijelöléshez.`,select:`Kijelölés`,selectedAll:`Az összes elem kijelölve.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Egy elem sincs kijelölve`,one:()=>`${t.number(e.count)} elem kijel\xf6lve`,other:()=>`${t.number(e.count)} elem kijel\xf6lve`})}.`,selectedItem:e=>`${e.item} kijel\xf6lve.`};var oG={};oG={deselectedItem:e=>`${e.item} non selezionato.`,longPressToSelect:`Premi a lungo per passare alla modalità di selezione.`,select:`Seleziona`,selectedAll:`Tutti gli elementi selezionati.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Nessun elemento selezionato`,one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,selectedItem:e=>`${e.item} selezionato.`};var sG={};sG={deselectedItem:e=>`${e.item} \u{304C}\u{9078}\u{629E}\u{3055}\u{308C}\u{3066}\u{3044}\u{307E}\u{305B}\u{3093}\u{3002}`,longPressToSelect:`長押しして選択モードを開きます。`,select:`選択`,selectedAll:`すべての項目を選択しました。`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`項目が選択されていません`,one:()=>`${t.number(e.count)} \u{9805}\u{76EE}\u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}`,other:()=>`${t.number(e.count)} \u{9805}\u{76EE}\u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}`})}\u{3002}`,selectedItem:e=>`${e.item} \u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}\u{3002}`};var cG={};cG={deselectedItem:e=>`${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C9C0} \u{C54A}\u{C558}\u{C2B5}\u{B2C8}\u{B2E4}.`,longPressToSelect:`선택 모드로 들어가려면 길게 누르십시오.`,select:`선택`,selectedAll:`모든 항목이 선택되었습니다.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`선택된 항목이 없습니다`,one:()=>`${t.number(e.count)}\u{AC1C} \u{D56D}\u{BAA9}\u{C774} \u{C120}\u{D0DD}\u{B418}\u{C5C8}\u{C2B5}\u{B2C8}\u{B2E4}`,other:()=>`${t.number(e.count)}\u{AC1C} \u{D56D}\u{BAA9}\u{C774} \u{C120}\u{D0DD}\u{B418}\u{C5C8}\u{C2B5}\u{B2C8}\u{B2E4}`})}.`,selectedItem:e=>`${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C5C8}\u{C2B5}\u{B2C8}\u{B2E4}.`};var lG={};lG={deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:`Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.`,select:`Pasirinkti`,selectedAll:`Pasirinkti visi elementai.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Nepasirinktas nė vienas elementas`,one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta element\u{173}: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`};var uG={};uG={deselectedItem:e=>`Vienums ${e.item} nav atlas\u{12B}ts.`,longPressToSelect:`Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.`,select:`Atlasīt`,selectedAll:`Atlasīti visi vienumi.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Nav atlasīts neviens vienums`,one:()=>`Atlas\u{12B}to vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlas\u{12B}to vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlas\u{12B}ts vienums ${e.item}.`};var dG={};dG={deselectedItem:e=>`${e.item} er ikke valgt.`,longPressToSelect:`Bruk et langt trykk for å gå inn i valgmodus.`,select:`Velg`,selectedAll:`Alle elementer er valgt.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Ingen elementer er valgt`,one:()=>`${t.number(e.count)} element er valgt`,other:()=>`${t.number(e.count)} elementer er valgt`})}.`,selectedItem:e=>`${e.item} er valgt.`};var fG={};fG={deselectedItem:e=>`${e.item} niet geselecteerd.`,longPressToSelect:`Druk lang om de selectiemodus te openen.`,select:`Selecteren`,selectedAll:`Alle items geselecteerd.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Geen items geselecteerd`,one:()=>`${t.number(e.count)} item geselecteerd`,other:()=>`${t.number(e.count)} items geselecteerd`})}.`,selectedItem:e=>`${e.item} geselecteerd.`};var pG={};pG={deselectedItem:e=>`Nie zaznaczono ${e.item}.`,longPressToSelect:`Naciśnij i przytrzymaj, aby wejść do trybu wyboru.`,select:`Zaznacz`,selectedAll:`Wszystkie zaznaczone elementy.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Nie zaznaczono żadnych elementów`,one:()=>`${t.number(e.count)} zaznaczony element`,other:()=>`${t.number(e.count)} zaznaczonych element\xf3w`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`};var mG={};mG={deselectedItem:e=>`${e.item} n\xe3o selecionado.`,longPressToSelect:`Mantenha pressionado para entrar no modo de seleção.`,select:`Selecionar`,selectedAll:`Todos os itens selecionados.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Nenhum item selecionado`,one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var hG={};hG={deselectedItem:e=>`${e.item} n\xe3o selecionado.`,longPressToSelect:`Prima continuamente para entrar no modo de seleção.`,select:`Selecionar`,selectedAll:`Todos os itens selecionados.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Nenhum item selecionado`,one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var gG={};gG={deselectedItem:e=>`${e.item} neselectat.`,longPressToSelect:`Apăsați lung pentru a intra în modul de selectare.`,select:`Selectare`,selectedAll:`Toate elementele selectate.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Niciun element selectat`,one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,selectedItem:e=>`${e.item} selectat.`};var _G={};_G={deselectedItem:e=>`${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,longPressToSelect:`Нажмите и удерживайте для входа в режим выбора.`,select:`Выбрать`,selectedAll:`Выбраны все элементы.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Нет выбранных элементов`,one:()=>`${t.number(e.count)} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}`,other:()=>`${t.number(e.count)} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{43E}\u{432} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}`})}.`,selectedItem:e=>`${e.item} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`};var vG={};vG={deselectedItem:e=>`Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,longPressToSelect:`Dlhším stlačením prejdite do režimu výberu.`,select:`Vybrať`,selectedAll:`Všetky vybraté položky.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Žiadne vybraté položky`,one:()=>`${t.number(e.count)} vybrat\xe1 polo\u{17E}ka`,other:()=>`Po\u{10D}et vybrat\xfdch polo\u{17E}iek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybrat\xe9 polo\u{17E}ky: ${e.item}.`};var yG={};yG={deselectedItem:e=>`Element ${e.item} ni izbran.`,longPressToSelect:`Za izbirni način pritisnite in dlje časa držite.`,select:`Izberite`,selectedAll:`Vsi elementi so izbrani.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Noben element ni izbran`,one:()=>`${t.number(e.count)} element je izbran`,other:()=>`${t.number(e.count)} elementov je izbranih`})}.`,selectedItem:e=>`Element ${e.item} je izbran.`};var bG={};bG={deselectedItem:e=>`${e.item} nije izabrano.`,longPressToSelect:`Dugo pritisnite za ulazak u režim biranja.`,select:`Izaberite`,selectedAll:`Izabrane su sve stavke.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Nije izabrana nijedna stavka`,one:()=>`Izabrana je ${t.number(e.count)} stavka`,other:()=>`Izabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`${e.item} je izabrano.`};var xG={};xG={deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:`Tryck länge när du vill öppna väljarläge.`,select:`Markera`,selectedAll:`Alla markerade objekt.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Inga markerade objekt`,one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`};var SG={};SG={deselectedItem:e=>`${e.item} se\xe7ilmedi.`,longPressToSelect:`Seçim moduna girmek için uzun basın.`,select:`Seç`,selectedAll:`Tüm ögeler seçildi.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Hiçbir öge seçilmedi`,one:()=>`${t.number(e.count)} \xf6ge se\xe7ildi`,other:()=>`${t.number(e.count)} \xf6ge se\xe7ildi`})}.`,selectedItem:e=>`${e.item} se\xe7ildi.`};var CG={};CG={deselectedItem:e=>`${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,longPressToSelect:`Виконайте довге натиснення, щоб перейти в режим вибору.`,select:`Вибрати`,selectedAll:`Усі елементи вибрано.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Жодних елементів не вибрано`,one:()=>`${t.number(e.count)} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}`,other:()=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{456}\u{432}: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`};var wG={};wG={deselectedItem:e=>`\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,longPressToSelect:`长按以进入选择模式。`,select:`选择`,selectedAll:`已选择所有项目。`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`未选择项目`,one:()=>`\u{5DF2}\u{9009}\u{62E9} ${t.number(e.count)} \u{4E2A}\u{9879}\u{76EE}`,other:()=>`\u{5DF2}\u{9009}\u{62E9} ${t.number(e.count)} \u{4E2A}\u{9879}\u{76EE}`})}\u{3002}`,selectedItem:e=>`\u{5DF2}\u{9009}\u{62E9} ${e.item}\u{3002}`};var TG={};TG={deselectedItem:e=>`\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,longPressToSelect:`長按以進入選擇模式。`,select:`選取`,selectedAll:`已選取所有項目。`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`未選取任何項目`,one:()=>`\u{5DF2}\u{9078}\u{53D6} ${t.number(e.count)} \u{500B}\u{9805}\u{76EE}`,other:()=>`\u{5DF2}\u{9078}\u{53D6} ${t.number(e.count)} \u{500B}\u{9805}\u{76EE}`})}\u{3002}`,selectedItem:e=>`\u{5DF2}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`};var EG={};EG={"ar-AE":KW,"bg-BG":qW,"cs-CZ":JW,"da-DK":YW,"de-DE":XW,"el-GR":ZW,"en-US":QW,"es-ES":$W,"et-EE":eG,"fi-FI":tG,"fr-FR":nG,"he-IL":rG,"hr-HR":iG,"hu-HU":aG,"it-IT":oG,"ja-JP":sG,"ko-KR":cG,"lt-LT":lG,"lv-LV":uG,"nb-NO":dG,"nl-NL":fG,"pl-PL":pG,"pt-BR":mG,"pt-PT":hG,"ro-RO":gG,"ru-RU":_G,"sk-SK":vG,"sl-SI":yG,"sr-SP":bG,"sv-SE":xG,"tr-TR":SG,"uk-UA":CG,"zh-CN":wG,"zh-TW":TG};function DG(e){return e&&e.__esModule?e.default:e}function OG(e,t){let{getRowText:n=e=>t.collection.getTextValue?.(e)??t.collection.getItem(e)?.textValue}=e,r=hT(DG(EG),`@react-aria/grid`),i=t.selectionManager.rawSelection,a=(0,x.useRef)(i),o=(0,x.useCallback)(()=>{if(!t.selectionManager.isFocused||i===a.current){a.current=i;return}let e=kG(i,a.current),o=kG(a.current,i),s=t.selectionManager.selectionBehavior===`replace`,c=[];if(t.selectionManager.selectedKeys.size===1&&s){let e=t.selectionManager.selectedKeys.keys().next().value;if(e!=null&&t.collection.getItem(e)){let t=n(e);t&&c.push(r.format(`selectedItem`,{item:t}))}}else if(e.size===1&&o.size===0){let t=e.keys().next().value;if(t!=null){let e=n(t);e&&c.push(r.format(`selectedItem`,{item:e}))}}else if(o.size===1&&e.size===0){let e=o.keys().next().value;if(e!=null&&t.collection.getItem(e)){let t=n(e);t&&c.push(r.format(`deselectedItem`,{item:t}))}}t.selectionManager.selectionMode===`multiple`&&(c.length===0||i===`all`||i.size>1||a.current===`all`||a.current?.size>1)&&c.push(i===`all`?r.format(`selectedAll`):r.format(`selectedCount`,{count:i.size})),c.length>0&&XD(c.join(` `)),a.current=i},[i,t.selectionManager.selectedKeys,t.selectionManager.isFocused,t.selectionManager.selectionBehavior,t.selectionManager.selectionMode,t.collection,n,r]);jA(()=>{if(t.selectionManager.isFocused)o();else{let e=requestAnimationFrame(o);return()=>cancelAnimationFrame(e)}},[i,t.selectionManager.isFocused])}function kG(e,t){let n=new Set;if(e===`all`||t===`all`)return n;for(let r of e.keys())t.has(r)||n.add(r);return n}function AG(e,t){let n=t?.isDisabled,[r,i]=(0,x.useState)(!1);return qx(()=>{if(e?.current&&!n){let t=()=>{if(e.current){let t=oL(e.current,{tabbable:!0});i(!!t.nextNode())}};t();let n=new MutationObserver(t);return n.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`tabIndex`,`disabled`]}),()=>{n.disconnect()}}}),!n&&r}function jG(e){return e&&e.__esModule?e.default:e}function MG(e){let t=hT(jG(EG),`@react-aria/grid`),n=$C(),r=(n===`pointer`||n===`virtual`||n==null)&&typeof window<`u`&&`ontouchstart`in window;return BA((0,x.useMemo)(()=>{let n=e.selectionManager.selectionMode,i=e.selectionManager.selectionBehavior,a;return r&&(a=t.format(`longPressToSelect`)),i===`replace`&&n!==`none`&&e.hasItemActions?a:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,r]))}function NG(e,t,n){let{isVirtualized:r,keyboardDelegate:i,layoutDelegate:a,onAction:o,disallowTypeAhead:s,linkBehavior:c=`action`,keyboardNavigationBehavior:l=`arrow`,escapeKeyBehavior:u=`clearSelection`,shouldSelectOnPressUp:d}=e;!e[`aria-label`]&&!e[`aria-labelledby`]&&console.warn(`An aria-label or aria-labelledby prop is required for accessibility.`);let{listProps:f}=SL({selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,ref:n,keyboardDelegate:i,layoutDelegate:a,isVirtualized:r,selectOnFocus:t.selectionManager.selectionBehavior===`replace`,shouldFocusWrap:e.shouldFocusWrap,linkBehavior:c,disallowTypeAhead:s,autoFocus:e.autoFocus,escapeKeyBehavior:u,UNSTABLE_focusOnEntry:e.UNSTABLE_focusOnEntry}),p=dS(e.id);WW.set(t,{id:p,onAction:o,linkBehavior:c,keyboardNavigationBehavior:l,shouldSelectOnPressUp:d});let m=MG({selectionManager:t.selectionManager,hasItemActions:!!o}),h=AG(n,{isDisabled:t.collection.size!==0}),g=W(q(e,{labelable:!0}),{role:`grid`,id:p,"aria-multiselectable":t.selectionManager.selectionMode===`multiple`?`true`:void 0},t.collection.size===0?{tabIndex:h?-1:0}:f,m);return r&&(g[`aria-rowcount`]=t.collection.size,g[`aria-colcount`]=1),OG({},t),{gridProps:g}}var PG={expand:{ltr:`ArrowRight`,rtl:`ArrowLeft`},collapse:{ltr:`ArrowLeft`,rtl:`ArrowRight`}};function FG(e,t,n){let{node:r,isVirtualized:i,focusMode:a=`row`,allowsArrowNavigation:o}=e,{direction:s}=iT(),{onAction:c,linkBehavior:l,keyboardNavigationBehavior:u,shouldSelectOnPressUp:d}=WW.get(t),f=pS(),p=(0,x.useRef)(null),m=()=>{if(n.current!==null){if(a===`child`){if(HS(n.current)&&n.current!==BS(kS(n.current)))return;let e=oL(n.current,{tabbable:!0}).firstChild();if(e){GT(e),LA(e,{containingElement:NA(e)});return}}(p.current!=null&&r.key!==p.current||!HS(n.current))&&GT(n.current)}},h={},g=e.hasChildItems,_=t.selectionManager.isLink(r.key);if(r!=null&&`expandedKeys`in t){let e=t.collection.getChildren?.(r.key);g||=[...e??[]].length>1,c==null&&!_&&t.selectionManager.selectionMode===`none`&&g&&(c=()=>t.toggleKey(r.key));let n=g?t.expandedKeys.has(r.key):void 0,i=1,a=r.index;if(r.level>=0&&r?.parentKey!=null){let e=t.collection.getItem(r.parentKey);if(e){let n=RG(e,t.collection);i=[...n].filter(e=>e.type===`item`).length,a>0&&n[0].type!==`item`&&--a}}else i=[...t.collection].filter(e=>e.level===0&&e.type===`item`).length;h={"aria-expanded":n,"aria-level":r.level+1,"aria-posinset":a+1,"aria-setsize":i}}let{itemProps:v,...y}=wL({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:i,shouldSelectOnPressUp:e.shouldSelectOnPressUp||d,onAction:c||r.props?.onAction?Kx(r.props?.onAction,c?()=>c(r.key):void 0):void 0,focus:m,linkBehavior:l}),b=e=>{let i=BS(kS(n.current));if(!zS(e.currentTarget,K(e))||!n.current||!i)return;let a=oL(n.current);if(a.currentNode=i,!IG(e,t,r,g,s,i,n.current,o))switch(e.key){case`ArrowLeft`:if(u===`arrow`){let t=s===`rtl`?a.nextNode():a.previousNode();if(t)e.preventDefault(),e.stopPropagation(),GT(t),LA(t,{containingElement:NA(n.current)});else if(e.preventDefault(),e.stopPropagation(),s===`rtl`)GT(n.current),LA(n.current,{containingElement:NA(n.current)});else{a.currentNode=n.current;let e=LG(a);e&&(GT(e),LA(e,{containingElement:NA(n.current)}))}}break;case`ArrowRight`:if(u===`arrow`){let t=s===`rtl`?a.previousNode():a.nextNode();if(t)e.preventDefault(),e.stopPropagation(),GT(t),LA(t,{containingElement:NA(n.current)});else if(e.preventDefault(),e.stopPropagation(),s===`ltr`)GT(n.current),LA(n.current,{containingElement:NA(n.current)});else{a.currentNode=n.current;let e=LG(a);e&&(GT(e),LA(e,{containingElement:NA(n.current)}))}}break;case`ArrowUp`:case`ArrowDown`:!e.altKey&&zS(n.current,K(e))&&(e.stopPropagation(),e.preventDefault(),n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent)))}},S=e=>{p.current=r.key,K(e)===n.current?a===`child`&&e.relatedTarget&&zS(n.current,e.relatedTarget)||requestAnimationFrame(()=>{a===`child`&&BS(kS(n.current))===n.current&&m()}):XC()||t.selectionManager.setFocusedKey(r.key)},C=e=>{let i=BS(kS(n.current));if(zS(e.currentTarget,K(e))&&n.current&&i){if(u===`tab`){if(K(e)!==n.current&&e.key!==`Tab`){e.stopPropagation();return}if(IG(e,t,r,g,s,i,n.current,o))return}if(e.key===`Tab`&&u===`tab`){let t=oL(n.current,{tabbable:!0});t.currentNode=i,(e.shiftKey?t.previousNode():t.nextNode())&&e.stopPropagation()}}},w=kC(r.props),T=W(v,y.hasAction?w:{},{role:`row`,onKeyDownCapture:u===`arrow`||o?b:void 0,onFocus:S,"aria-label":r[`aria-label`]||r.textValue||void 0,"aria-selected":t.selectionManager.canSelectItem(r.key)?t.selectionManager.isSelected(r.key):void 0,"aria-disabled":t.selectionManager.isDisabled(r.key)||void 0,"aria-labelledby":f&&(r[`aria-label`]||r.textValue)?`${GW(t,r.key)} ${f}`:void 0,id:GW(t,r.key)});a===`child`&&o&&u===`tab`&&(T.tabIndex=-1);let E=T.onKeyDown;if(T.onKeyDown=e=>{C(e),e.isPropagationStopped()||E?.(e)},i){let{collection:e}=t;T[`aria-rowindex`]=[...e].find(e=>e.type===`section`)?[...e.getKeys()].filter(t=>e.getItem(t)?.type!==`section`).findIndex(e=>e===r.key)+1:r.index+1}let D={role:`gridcell`,"aria-colindex":1};return{rowProps:{...W(T,h)},gridCellProps:D,descriptionProps:{id:f},...y}}function IG(e,t,n,r,i,a,o,s){if(!(`expandedKeys`in t)||!s&&a!==o)return!1;if(e.key===PG.expand[i]&&t.selectionManager.focusedKey===n.key&&r&&!t.expandedKeys.has(n.key))return t.toggleKey(n.key),e.stopPropagation(),!0;if(e.key===PG.collapse[i]&&t.selectionManager.focusedKey===n.key){if(r&&t.expandedKeys.has(n.key))return t.toggleKey(n.key),e.stopPropagation(),!0;if(!t.expandedKeys.has(n.key)&&n.parentKey&&t.collection.getItem(n.parentKey)?.type===`item`)return t.selectionManager.setFocusedKey(n.parentKey),e.stopPropagation(),!0}return!1}function LG(e){let t=null,n=null;do n=e.lastChild(),n&&(t=n);while(n);return t}function RG(e,t){let n=t.getChildren?.(e.key),r=n?Array.from(n):[],i=r.length>0?r[0]:null,a=[];for(;i;)a.push(i),i=i.nextKey==null?null:t.getItem(i.nextKey);return a}function zG(e){return e&&e.__esModule?e.default:e}function BG(e,t){let{key:n}=e,r=t.selectionManager,i=dS(),a=!t.selectionManager.canSelectItem(n),o=t.selectionManager.isSelected(n);return{checkboxProps:{id:i,"aria-label":hT(zG(EG),`@react-aria/grid`).format(`select`),isSelected:o,isDisabled:a,onChange:()=>r.toggleSelection(n)}}}function VG(e,t){let{key:n}=e,{checkboxProps:r}=BG(e,t);return{checkboxProps:{...r,"aria-labelledby":`${r.id} ${GW(t,n)}`}}}var HG=(0,x.createContext)(null),UG=(0,x.forwardRef)(function(e,t){return[e,t]=SS(e,t,HG),x.createElement(SE,{content:x.createElement(PE,e)},n=>x.createElement(WG,{props:e,collection:n,gridListRef:t}))});function WG({props:e,collection:t,gridListRef:n}){[e,n]=SS(e,n,CT);let{shouldUseVirtualFocus:r,filter:i,disallowTypeAhead:a,UNSTABLE_focusOnEntry:o,...s}=e,{dragAndDropHooks:c,keyboardNavigationBehavior:l=`arrow`,layout:u=`stack`,orientation:d=`vertical`}=e,{CollectionRoot:f,isVirtualized:p,layoutDelegate:m,dropTargetDelegate:h}=(0,x.useContext)(BE),g=GL(WL({...s,collection:t,children:void 0,layoutDelegate:m}),i),_=xL({usage:`search`,sensitivity:`base`}),{disabledBehavior:v,disabledKeys:y}=g.selectionManager,{direction:b}=iT(),S=(0,x.useMemo)(()=>new yL({collection:g.collection,collator:_,ref:n,disabledKeys:y,disabledBehavior:v,layoutDelegate:m,layout:u,orientation:d,direction:b}),[g.collection,n,u,d,y,v,m,_,b]),{gridProps:C}=NG({...s,keyboardDelegate:S,keyboardNavigationBehavior:u===`grid`?`tab`:l,isVirtualized:p,shouldSelectOnPressUp:e.shouldSelectOnPressUp,disallowTypeAhead:a,UNSTABLE_focusOnEntry:o},g,n),w=g.selectionManager,T=!!c?.useDraggableCollectionState,E=!!c?.useDroppableCollectionState;(0,x.useRef)(T),(0,x.useRef)(E),(0,x.useEffect)(()=>{},[T,E]);let D,O,k,A=!1,j=null,M=(0,x.useRef)(null);if(T&&c){D=c.useDraggableCollectionState({collection:g.collection,selectionManager:w,preview:c.renderDragPreview?M:void 0}),c.useDraggableCollection({},D,n);let e=c.DragPreview;j=c.renderDragPreview?x.createElement(e,{ref:M},c.renderDragPreview):null}if(E&&c){O=c.useDroppableCollectionState({collection:g.collection,selectionManager:w});let e=c.dropTargetDelegate||h||new c.ListDropTargetDelegate(t,n,{layout:u,direction:b,orientation:d});k=c.useDroppableCollection({keyboardDelegate:S,dropTargetDelegate:e},O,n),A=O.isDropTarget({type:`root`})}let{focusProps:N,isFocused:P,isFocusVisible:F}=fD(),ee=g.collection.size===0,I={isDropTarget:A,orientation:d,isEmpty:ee,isFocused:P,isFocusVisible:F,layout:u,state:g},te=yS({...e,children:void 0,defaultClassName:`react-aria-GridList`,values:I}),ne=null;if(ee&&e.renderEmptyState){let t=e.renderEmptyState(I);ne=x.createElement(`div`,{role:`row`,"aria-rowindex":1,style:{display:`contents`}},x.createElement(`div`,{role:`gridcell`,style:{display:`contents`}},t))}let re=q(e,{global:!0});return x.createElement(JI,null,x.createElement(G.div,{...W(re,te,C,N,k?.collectionProps,null),ref:n,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":A||void 0,"data-empty":ee||void 0,"data-focused":P||void 0,"data-focus-visible":F||void 0,"data-layout":u,"data-orientation":d},x.createElement(vS,{values:[[YL,g],[DI,{dragAndDropHooks:c,dragState:D,dropState:O}],[OI,{render:KG}]]},E&&x.createElement(YG,null),x.createElement(FI,null,x.createElement(f,{collection:g.collection,scrollRef:n,persistedKeys:jI(w,c,O),renderDropIndicator:AI(c,O)}))),ne,j))}var GG=AE(AT,function(e,t,n){let r=(0,x.useContext)(YL),{dragAndDropHooks:i,dragState:a,dropState:o}=(0,x.useContext)(DI),s=gS(t),{isVirtualized:c}=(0,x.useContext)(BE),l=a&&!(a.isDisabled||a.selectionManager.isDisabled(n.key)),{rowProps:u,gridCellProps:d,descriptionProps:f,...p}=FG({node:n,shouldSelectOnPressUp:!!a,isVirtualized:c,focusMode:e.focusMode,allowsArrowNavigation:e.allowsArrowNavigation},r,s),{hoverProps:m,isHovered:h}=vD({isDisabled:!p.allowsSelection&&!p.hasAction&&!l,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),{isFocusVisible:g,focusProps:_}=fD(),{isFocusVisible:v,focusProps:y}=fD({within:!0}),{checkboxProps:b}=VG({key:n.key},r),S=r.selectionManager.disabledBehavior===`all`&&p.isDisabled?{isDisabled:!0}:{},C=null;a&&i&&(C=i.useDraggableItem({key:n.key,hasDragButton:!0},a));let w=null,T=(0,x.useRef)(null),{visuallyHiddenProps:E}=HA();o&&i&&(w=i.useDropIndicator({target:{type:`item`,key:n.key,dropPosition:`on`}},o,T));let D=a&&a.isDragging(n.key),O=yS({...e,id:void 0,children:n.rendered,defaultClassName:`react-aria-GridListItem`,values:{...p,isHovered:h,isFocusVisible:g,isFocusVisibleWithin:v,selectionMode:r.selectionManager.selectionMode,selectionBehavior:r.selectionManager.selectionBehavior,allowsDragging:!!a,isDragging:D,isDropTarget:w?.isDropTarget,id:n.key,state:r}}),k=(0,x.useRef)(null);(0,x.useEffect)(()=>{a&&!k.current&&console.warn(`Draggable items in a GridList must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.`)},[]),(0,x.useEffect)(()=>{n.textValue},[n.textValue]);let A=q(e,{global:!0});return delete A.id,delete A.onClick,x.createElement(x.Fragment,null,w&&!w.isHidden&&x.createElement(`div`,{role:`row`,style:{position:`absolute`}},x.createElement(`div`,{role:`gridcell`},x.createElement(`div`,{role:`button`,...E,...w?.dropIndicatorProps,ref:T}))),x.createElement(G.div,{...W(A,O,u,_,y,m,C?.dragProps),ref:s,"data-selected":p.isSelected||void 0,"data-disabled":p.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":g||void 0,"data-focus-visible-within":v||void 0,"data-pressed":p.isPressed||void 0,"data-allows-dragging":!!a||void 0,"data-dragging":D||void 0,"data-drop-target":w?.isDropTarget||void 0,"data-selection-mode":r.selectionManager.selectionMode===`none`?void 0:r.selectionManager.selectionMode},x.createElement(`div`,{...d,style:{display:`contents`}},x.createElement(vS,{values:[[yj,{slots:{[_S]:{},selection:b}}],[bj,{slots:{[_S]:{},selection:b}}],[eO,{slots:{[_S]:S,drag:{...C?.dragButtonProps,ref:k,style:{pointerEvents:`none`}}}}],[oO,{slots:{[_S]:{},description:f}}],[BE,LE],[YL,null],[CT,null],[wT,null],[II,{isSelected:p.isSelected}]]},O.children))))});function KG(e,t){t=gS(t);let{dragAndDropHooks:n,dropState:r}=(0,x.useContext)(DI),i=(0,x.useRef)(null),{dropIndicatorProps:a,isHidden:o,isDropTarget:s}=n.useDropIndicator(e,r,i);return o?null:x.createElement(JG,{...e,dropIndicatorProps:a,isDropTarget:s,buttonRef:i,ref:t})}function qG(e,t){let{dropIndicatorProps:n,isDropTarget:r,buttonRef:i,...a}=e,{visuallyHiddenProps:o}=HA(),s=yS({...a,defaultClassName:`react-aria-DropIndicator`,values:{isDropTarget:r}});return x.createElement(G.div,{...s,role:`row`,ref:t,"data-drop-target":r||void 0},x.createElement(`div`,{role:`gridcell`},x.createElement(`div`,{...o,role:`button`,...n,ref:i}),s.children))}var JG=(0,x.forwardRef)(qG);function YG(){let{dragAndDropHooks:e,dropState:t}=(0,x.useContext)(DI),n=(0,x.useRef)(null),{dropIndicatorProps:r}=e.useDropIndicator({target:{type:`root`}},t,n),i=t.isDropTarget({type:`root`}),{visuallyHiddenProps:a}=HA();return!i&&r[`aria-hidden`]?null:x.createElement(`div`,{role:`row`,"aria-hidden":r[`aria-hidden`],style:{position:`absolute`}},x.createElement(`div`,{role:`gridcell`},x.createElement(`div`,{role:`button`,...a,...r,ref:n})))}AE(kT,function(e,t,n){let r=(0,x.useContext)(YL),{isVirtualized:i}=(0,x.useContext)(BE),{isLoading:a,onLoadMore:o,scrollOffset:s,...c}=e,l=(0,x.useRef)(null);qL((0,x.useMemo)(()=>({onLoadMore:o,collection:r?.collection,sentinelRef:l,scrollOffset:s}),[o,s,l,r?.collection]),l);let u=yS({...c,id:void 0,children:n.rendered,defaultClassName:`react-aria-GridListLoadingIndicator`,values:void 0});return x.createElement(x.Fragment,null,x.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:FL(!0)},x.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:l,style:{position:`absolute`,height:1,width:1}})),a&&u.children&&x.createElement(G.div,{...u,...q(e,{global:!0}),role:`row`,ref:t},x.createElement(`div`,{"aria-colindex":i?1:void 0,role:`gridcell`},u.children)))});var XG=1500,ZG=500,QG={},$G=0,eK=!1,tK=null,nK=null;function rK(e={}){let{delay:t=XG,closeDelay:n=ZG}=e,{isOpen:r,open:i,close:a}=lB(e),[o,s]=(0,x.useState)(!1),c=(0,x.useMemo)(()=>`${++$G}`,[]),l=(0,x.useRef)(null),u=(0,x.useRef)(a),d=()=>{QG[c]=m},f=()=>{for(let e in QG)e!==c&&(QG[e](!0,!0),delete QG[e])},p=e=>{l.current&&clearTimeout(l.current),l.current=null,f(),d(),s(!!e),eK=!0,i(),tK&&=(clearTimeout(tK),null),nK&&=(clearTimeout(nK),null)},m=(e,t)=>{s(!!t),e||n<=0?(l.current&&clearTimeout(l.current),l.current=null,u.current()):l.current||=setTimeout(()=>{l.current=null,u.current()},n),tK&&=(clearTimeout(tK),null),eK&&(nK&&clearTimeout(nK),nK=setTimeout(()=>{delete QG[c],nK=null,eK=!1},Math.max(ZG,n)))},h=()=>{f(),d(),!r&&!eK?(tK&&clearTimeout(tK),tK=setTimeout(()=>{tK=null,eK=!0,p(!1)},t)):r||p(!0)};return(0,x.useEffect)(()=>{u.current=a},[a]),(0,x.useEffect)(()=>()=>{l.current&&clearTimeout(l.current),QG[c]&&delete QG[c]},[c]),{isOpen:r,shouldSkipAnimation:o,open:e=>{!e&&t>0&&!l.current?h():p(eK)},close:m}}function iK(e){let{progressBarProps:t,labelProps:n}=KD(e);return{meterProps:{...t,role:`meter`},labelProps:n}}var aK=(0,x.createContext)(null),oK=(0,x.forwardRef)(function(e,t){[e,t]=SS(e,t,aK);let{value:n=0,minValue:r=0,maxValue:i=100}=e;n=HD(n,r,i);let a=i-r,[o,s]=CS(!e[`aria-label`]&&!e[`aria-labelledby`]),{meterProps:c,labelProps:l}=iK({...e,label:s}),u=a===0?0:(n-r)/a*100,d=yS({...e,defaultClassName:`react-aria-Meter`,values:{percentage:u,valueText:c[`aria-valuetext`]}}),f=q(e,{global:!0});return x.createElement(G.div,{...W(f,d,c),ref:t,slot:e.slot||void 0},x.createElement(xD.Provider,{value:{...l,ref:o,elementType:`span`}},d.children))});function sK(e,t,n){let{overlayProps:r,underlayProps:i}=ZR({...e,isOpen:t.isOpen,onClose:t.close},n);dz({isDisabled:!t.isOpen,UNSTABLE_overrideFocus:e.UNSTABLE_overrideFocus}),cB();let{isEntering:a}=e;return(0,x.useEffect)(()=>{if(t.isOpen&&n.current)return a?_R(n.current):gR([n.current],{shouldUseInert:!0})},[t.isOpen,a,n]),{modalProps:W(r),underlayProps:i}}var cK=typeof document<`u`&&window.visualViewport;function lK(){let e=aS(),t=(0,x.useRef)(null),[n,r]=(0,x.useState)(()=>e?{width:0,height:0}:uK());return(0,x.useEffect)(()=>{let e=e=>{r(t=>e.width===t.width&&e.height===t.height?t:e)},n=()=>{cK&&cK.scale>1||e(uK())},i=n=>{cK&&cK.scale>1||Uw(K(n))&&(t.current=oz(t=>{t||e({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return e(uK()),hC()&&_C()&&window.addEventListener(`blur`,i,!0),cK?cK.addEventListener(`resize`,n):window.addEventListener(`resize`,n),()=>{t.current?.(),hC()&&_C()&&window.removeEventListener(`blur`,i,!0),cK?cK.removeEventListener(`resize`,n):window.removeEventListener(`resize`,n)}},[]),n}function uK(){return{width:cK?Math.min(cK.width*cK.scale,document.documentElement.clientWidth):document.documentElement.clientWidth,height:cK?cK.height*cK.scale:document.documentElement.clientHeight}}var dK=(0,x.createContext)(null),fK=(0,x.createContext)(null),pK=(0,x.forwardRef)(function(e,t){if((0,x.useContext)(fK))return x.createElement(vK,{...e,modalRef:t},e.children);let{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:i,defaultOpen:a,onOpenChange:o,children:s,isEntering:c,isExiting:l,UNSTABLE_portalContainer:u,shouldCloseOnInteractOutside:d,...f}=e;return x.createElement(hK,{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:i,defaultOpen:a,onOpenChange:o,isEntering:c,isExiting:l,UNSTABLE_portalContainer:u,shouldCloseOnInteractOutside:d},x.createElement(vK,{...f,modalRef:t},s))});function mK(e,t){[e,t]=SS(e,t,dK);let n=(0,x.useContext)(EV),r=lB(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=gS(t),o=(0,x.useRef)(null),s=dB(a,i.isOpen,e.onExit),c=(0,x.useRef)(null),l=dB(o,i.isOpen,e=>c.current?.(e)),u=s||l||e.isExiting||!1,d=aS();return!i.isOpen&&!u||d?null:x.createElement(gK,{...e,state:i,isExiting:u,overlayRef:a,modalRef:o,onExitRef:c})}var hK=(0,x.forwardRef)(mK);function gK({UNSTABLE_portalContainer:e,UNSTABLE_deferUntilEntered:t,...n}){let r=n.modalRef,{state:i}=n,[a,o]=(0,x.useState)(!1),s=uB(n.overlayRef,a,n.onEnter)||n.isEntering||!1,c=!!t&&(!a||s),{modalProps:l,underlayProps:u}=sK({...n,isEntering:c},i,r),d=(0,x.useContext)(TV),f=t?_K(d,{isEntering:c}):d,p=yS({...n,defaultClassName:`react-aria-ModalOverlay`,values:{isEntering:s,isExiting:n.isExiting,state:i}}),m=lK(),h,g;if(typeof document<`u`){let e=MA(document.body)?document.body:document.scrollingElement||document.documentElement,t=e.getBoundingClientRect().width%1,n=e.getBoundingClientRect().height%1;h=e.scrollWidth-t,g=e.scrollHeight-n}let _={...p.style,"--visual-viewport-width":m.width+`px`,"--visual-viewport-height":m.height+`px`,"--page-width":h===void 0?void 0:h+`px`,"--page-height":g===void 0?void 0:g+`px`};return qx(()=>oz(()=>o(!0)),[]),x.createElement(sB,{isExiting:n.isExiting,portalContainer:e},x.createElement(G.div,{...W(q(n,{global:!0}),u),...p,style:_,ref:n.overlayRef,"data-entering":s||void 0,"data-exiting":n.isExiting||void 0},x.createElement(vS,{values:[[fK,{modalProps:l,modalRef:r,isExiting:n.isExiting,onExitRef:n.onExitRef,isOpen:a,isDismissable:n.isDismissable}],[EV,i],[TV,f]]},p.children)))}function _K(e,t){if(e&&`slots`in e&&e.slots){let n={};for(let r in e.slots)n[r]={...e.slots[r],...t};return{...e,slots:n}}return{...e,...t}}function vK(e){let{modalProps:t,modalRef:n,isExiting:r,onExitRef:i,isDismissable:a,isOpen:o}=(0,x.useContext)(fK),s=(0,x.useContext)(EV),c=gS((0,x.useMemo)(()=>mS(e.modalRef,n),[e.modalRef,n])),l=uB(c,o,e.onEnter),u=yS({...e,defaultClassName:`react-aria-Modal`,values:{isEntering:l,isExiting:r,state:s}});return qx(()=>{i&&(i.current=e.onExit)}),x.createElement(G.div,{...W(q(e,{global:!0}),t),...u,ref:c,"data-entering":l||void 0,"data-exiting":r||void 0},a&&x.createElement(eB,{onDismiss:s.close}),u.children)}var yK=(0,x.createContext)(null),bK=(0,x.createContext)(null),xK=(0,x.forwardRef)(function(e,t){[e,t]=SS(e,t,yK);let{validationBehavior:n}=xS(ij)||{},r=e.validationBehavior??n??`native`,{locale:i}=iT(),a=dF({...e,locale:i,validationBehavior:r}),o=(0,x.useRef)(null),[s,c]=CS(!e[`aria-label`]&&!e[`aria-labelledby`]),{labelProps:l,groupProps:u,inputProps:d,incrementButtonProps:f,decrementButtonProps:p,descriptionProps:m,errorMessageProps:h,...g}=eF({...wS(e),label:c,validationBehavior:r},a,o),_=yS({...e,values:{state:a,isDisabled:e.isDisabled||!1,isInvalid:g.isInvalid||!1,isRequired:e.isRequired||!1,isReadOnly:e.isReadOnly||!1},defaultClassName:`react-aria-NumberField`}),v=q(e,{global:!0});return delete v.id,x.createElement(vS,{values:[[bK,a],[wN,u],[EN,{...d,ref:o}],[xD,{...l,ref:s}],[eO,{slots:{increment:f,decrement:p}}],[oO,{slots:{description:m,errorMessage:h}}],[WA,g]]},x.createElement(G.div,{...v,..._,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-invalid":g.isInvalid||void 0}),e.name&&x.createElement(`input`,{type:`hidden`,name:e.name,form:e.form,value:isNaN(a.numberValue)?``:a.numberValue,disabled:e.isDisabled||void 0}))}),SK={};SK={"Clear search":`مسح البحث`};var CK={};CK={"Clear search":`Изчистване на търсене`};var wK={};wK={"Clear search":`Vymazat hledání`};var TK={};TK={"Clear search":`Ryd søgning`};var EK={};EK={"Clear search":`Suche zurücksetzen`};var DK={};DK={"Clear search":`Απαλοιφή αναζήτησης`};var OK={};OK={"Clear search":`Clear search`};var kK={};kK={"Clear search":`Borrar búsqueda`};var AK={};AK={"Clear search":`Tühjenda otsing`};var jK={};jK={"Clear search":`Tyhjennä haku`};var MK={};MK={"Clear search":`Effacer la recherche`};var NK={};NK={"Clear search":`נקה חיפוש`};var PK={};PK={"Clear search":`Obriši pretragu`};var FK={};FK={"Clear search":`Keresés törlése`};var IK={};IK={"Clear search":`Cancella ricerca`};var LK={};LK={"Clear search":`検索をクリア`};var RK={};RK={"Clear search":`검색 지우기`};var zK={};zK={"Clear search":`Išvalyti iešką`};var BK={};BK={"Clear search":`Notīrīt meklēšanu`};var VK={};VK={"Clear search":`Tøm søk`};var HK={};HK={"Clear search":`Zoekactie wissen`};var UK={};UK={"Clear search":`Wyczyść zawartość wyszukiwania`};var WK={};WK={"Clear search":`Limpar pesquisa`};var GK={};GK={"Clear search":`Limpar pesquisa`};var KK={};KK={"Clear search":`Ştergeţi căutarea`};var qK={};qK={"Clear search":`Очистить поиск`};var JK={};JK={"Clear search":`Vymazať vyhľadávanie`};var YK={};YK={"Clear search":`Počisti iskanje`};var XK={};XK={"Clear search":`Obriši pretragu`};var ZK={};ZK={"Clear search":`Rensa sökning`};var QK={};QK={"Clear search":`Aramayı temizle`};var $K={};$K={"Clear search":`Очистити пошук`};var eq={};eq={"Clear search":`清除搜索`};var tq={};tq={"Clear search":`清除搜尋條件`};var nq={};nq={"ar-AE":SK,"bg-BG":CK,"cs-CZ":wK,"da-DK":TK,"de-DE":EK,"el-GR":DK,"en-US":OK,"es-ES":kK,"et-EE":AK,"fi-FI":jK,"fr-FR":MK,"he-IL":NK,"hr-HR":PK,"hu-HU":FK,"it-IT":IK,"ja-JP":LK,"ko-KR":RK,"lt-LT":zK,"lv-LV":BK,"nb-NO":VK,"nl-NL":HK,"pl-PL":UK,"pt-BR":WK,"pt-PT":GK,"ro-RO":KK,"ru-RU":qK,"sk-SK":JK,"sl-SI":YK,"sr-SP":XK,"sv-SE":ZK,"tr-TR":QK,"uk-UA":$K,"zh-CN":eq,"zh-TW":tq};function rq(e){return e&&e.__esModule?e.default:e}function iq(e,t,n){let r=hT(rq(nq),`@react-aria/searchfield`),{isDisabled:i,isReadOnly:a,onSubmit:o,onClear:s,type:c=`search`}=e,{keyboardProps:l}=oE({isDisabled:i||a,shortcuts:{Enter:()=>{if(o)o(t.value);else return!1},Escape:()=>{if(t.value===``&&(!n.current||n.current.value===``))return!1;t.setValue(``),s?.()}}}),u=()=>{t.setValue(``),s&&s()},d=()=>{n.current?.focus()},{labelProps:f,inputProps:p,descriptionProps:m,errorMessageProps:h,...g}=kN({...e,value:t.value,onChange:t.setValue,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,type:c},n);return{labelProps:f,inputProps:W(l,{...p,defaultValue:void 0}),clearButtonProps:{"aria-label":r.format(`Clear search`),excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:i||a,onPress:u,onPressStart:d},descriptionProps:m,errorMessageProps:h,...g}}function aq(e){let[t,n]=yT(oq(e.value),oq(e.defaultValue)||``,e.onChange);return{value:t,setValue:n}}function oq(e){if(e!=null)return e.toString()}var sq=(0,x.createContext)(null),cq=mE(function(e,t){[e,t]=SS(e,t,sq);let{validationBehavior:n}=xS(ij)||{},r=e.validationBehavior??n??`native`,i=(0,x.useRef)(null);[e,i]=SS(e,i,wT);let[a,o]=CS(!e[`aria-label`]&&!e[`aria-labelledby`]),s=aq({...e,validationBehavior:r}),{labelProps:c,inputProps:l,clearButtonProps:u,descriptionProps:d,errorMessageProps:f,...p}=iq({...wS(e),label:o,validationBehavior:r},s,i),m=yS({...e,values:{isEmpty:s.value===``,isDisabled:e.isDisabled||!1,isInvalid:p.isInvalid||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,state:s},defaultClassName:`react-aria-SearchField`}),h=q(e,{global:!0});return delete h.id,x.createElement(G.div,{...h,...m,ref:t,slot:e.slot||void 0,"data-empty":s.value===``||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":p.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},x.createElement(vS,{values:[[xD,{...c,ref:a}],[EN,{...l,ref:i}],[eO,u],[oO,{slots:{description:d,errorMessage:f}}],[wN,{isInvalid:p.isInvalid,isDisabled:e.isDisabled||!1}],[WA,p]]},m.children))}),lq=new WeakMap;function uq(e,t,n){let{keyboardDelegate:r,isDisabled:i,isRequired:a,name:o,form:s,validationBehavior:c=`aria`}=e,l=xL({usage:`search`,sensitivity:`base`}),u=(0,x.useMemo)(()=>r||new yL(t.collection,t.disabledKeys,n,l),[r,t.collection,t.disabledKeys,l,n]),{menuTriggerProps:d,menuProps:f}=nV({isDisabled:i,type:`listbox`},t,n),{keyboardProps:p}=oE({shortcuts:{ArrowLeft:()=>{if(t.selectionManager.selectionMode===`multiple`)return!1;let e=t.selectedKey==null?u.getFirstKey?.():u.getKeyAbove?.(t.selectedKey);e!=null&&t.setSelectedKey(e)},ArrowRight:()=>{if(t.selectionManager.selectionMode===`multiple`)return!1;let e=t.selectedKey==null?u.getFirstKey?.():u.getKeyBelow?.(t.selectedKey);e!=null&&t.setSelectedKey(e)}},allowRepeats:!0,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp}),{typeSelectProps:m}=hL({keyboardDelegate:u,selectionManager:t.selectionManager,onTypeSelect(e){t.setSelectedKey(e)}}),{isInvalid:h,validationErrors:g,validationDetails:_}=t.displayValidation,{labelProps:v,fieldProps:y,descriptionProps:b,errorMessageProps:S}=sj({...e,labelElementType:`span`,isInvalid:h,errorMessage:e.errorMessage||g});t.selectionManager.selectionMode===`multiple`&&(m={});let C=q(e,{labelable:!0}),w=W(m,d,y),T=dS();return lq.set(t,{isDisabled:i,isRequired:a,name:o,form:s,validationBehavior:c}),{labelProps:{...v,onClick:()=>{e.isDisabled||(n.current?.focus(),QC(`keyboard`))}},triggerProps:W(C,{...w,isDisabled:i,onKeyDown:Kx(w.onKeyDown,p.onKeyDown),onKeyUp:p.onKeyUp,"aria-labelledby":[T,w[`aria-labelledby`],w[`aria-label`]&&!w[`aria-labelledby`]?w.id:null].filter(Boolean).join(` `),onFocus(n){t.isFocused||(e.onFocus&&e.onFocus(n),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(n){t.isOpen||(e.onBlur&&e.onBlur(n),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:T},menuProps:{...f,onAction:void 0,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:`selection`,onBlur:n=>{zS(n.currentTarget,n.relatedTarget)||(e.onBlur&&e.onBlur(n),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[y[`aria-labelledby`],w[`aria-label`]&&!y[`aria-labelledby`]?w.id:null].filter(Boolean).join(` `)},descriptionProps:b,errorMessageProps:S,isInvalid:h,validationErrors:g,validationDetails:_,hiddenSelectProps:{isDisabled:i,name:o,label:e.label,state:t,triggerRef:n,form:s}}}function dq(e,t,n){let r=lq.get(t)||{},{autoComplete:i,name:a=r.name,form:o=r.form,isDisabled:s=r.isDisabled}=e,{validationBehavior:c,isRequired:l}=r,{visuallyHiddenProps:u}=HA({style:{position:`fixed`,top:0,left:0}});cj(e.selectRef,t.defaultValue,t.setValue),lj({validationBehavior:c,focus:()=>n.current?.focus()},t,e.selectRef);let d=t.setValue,f=(0,x.useCallback)(e=>{let t=K(e);t.multiple?d(Array.from(t.selectedOptions,e=>e.value)):d(e.currentTarget.value)},[d]);return{containerProps:{...u,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":`aria-hidden-focus`},inputProps:{style:{display:`none`}},selectProps:{tabIndex:-1,autoComplete:i,disabled:s,multiple:t.selectionManager.selectionMode===`multiple`,required:c===`native`&&l,name:a,form:o,value:t.value??``,onChange:f,onInput:f}}}function fq(e){let{state:t,triggerRef:n,label:r,name:i,form:a,isDisabled:o}=e,s=(0,x.useRef)(null),c=(0,x.useRef)(null),{containerProps:l,selectProps:u}=dq({...e,selectRef:t.collection.size<=300?s:c},t,n),d=Array.isArray(t.value)?t.value:[t.value];if(t.collection.size<=300)return x.createElement(`div`,{...l,"data-testid":`hidden-select-container`},x.createElement(`label`,null,r,x.createElement(`select`,{...u,ref:s},x.createElement(`option`,{value:``,label:`\xA0`},`\xA0`),[...t.collection.getKeys()].map(e=>{let n=t.collection.getItem(e);if(n&&n.type===`item`)return x.createElement(`option`,{key:n.key,value:n.key},n.textValue)}),t.collection.size===0&&i&&d.map((e,t)=>x.createElement(`option`,{key:t,value:e??``})))));if(i){let{validationBehavior:e}=lq.get(t)||{};d.length===0&&(d=[null]);let n=d.map((t,n)=>{let r={type:`hidden`,autoComplete:u.autoComplete,name:i,form:a,disabled:o,value:t??``};return e===`native`?x.createElement(`input`,{key:n,...r,ref:n===0?c:null,style:{display:`none`},type:`text`,required:n===0&&u.required,onChange:()=>{}}):x.createElement(`input`,{key:n,...r,ref:n===0?c:null})});return x.createElement(x.Fragment,null,n)}return null}function pq(e){let{selectionMode:t=`single`,shouldCloseOnSelect:n=t===`single`}=e,r=lB(e),[i,a]=(0,x.useState)(null),o=(0,x.useMemo)(()=>e.defaultValue===void 0?t===`single`?e.defaultSelectedKey??null:[]:e.defaultValue,[e.defaultValue,e.defaultSelectedKey,t]),[s,c]=yT((0,x.useMemo)(()=>e.value===void 0?t===`single`?e.selectedKey:void 0:e.value,[e.value,e.selectedKey,t]),o,e.onChange),l=t===`single`&&Array.isArray(s)?s[0]:s,u=n=>{if(t===`single`){let t=Array.isArray(n)?n[0]??null:n;c(t),t!==l&&e.onSelectionChange?.(t)}else{let e=[];Array.isArray(n)?e=n:n!=null&&(e=[n]),c(e)}},d=WL({...e,selectionMode:t,disallowEmptySelection:t===`single`,allowDuplicateSelectionEvents:!0,selectedKeys:(0,x.useMemo)(()=>mq(l),[l]),onSelectionChange:e=>{if(e!==`all`){if(t===`single`){let t=e.values().next().value??null;u(t)}else u([...e]);n&&r.close(),m.commitValidation()}}}),f=d.selectionManager.firstSelectedKey,p=(0,x.useMemo)(()=>[...d.selectionManager.selectedKeys].map(e=>d.collection.getItem(e)).filter(e=>e!=null),[d.selectionManager.selectedKeys,d.collection]),m=QA({...e,value:Array.isArray(l)&&l.length===0?null:l}),[h,g]=(0,x.useState)(!1),[_]=(0,x.useState)(l);return{...m,...d,...r,value:l,defaultValue:o??_,setValue:u,selectedKey:f,setSelectedKey:u,selectedItem:p[0]??null,selectedItems:p,defaultSelectedKey:e.defaultSelectedKey??(e.selectionMode===`single`?_:null),focusStrategy:i,open(t=null){(d.collection.size!==0||e.allowsEmptyCollection)&&(a(t),r.open())},toggle(t=null){(d.collection.size!==0||e.allowsEmptyCollection)&&(a(t),r.toggle())},isFocused:h,setFocused:g}}function mq(e){if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]}function hq(e){return e&&e.__esModule?e.default:e}var gq=(0,x.createContext)(null),_q=(0,x.createContext)(null),vq=mE(function(e,t){[e,t]=SS(e,t,gq);let{children:n,isDisabled:r=!1,isInvalid:i=!1,isRequired:a=!1}=e,o=(0,x.useMemo)(()=>typeof n==`function`?n({isOpen:!1,isDisabled:r,isInvalid:i,isRequired:a,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):n,[n,r,i,a]);return x.createElement(SE,{content:o},n=>x.createElement(bq,{props:e,collection:n,selectRef:t}))}),yq=[xD,eO,oO];function bq({props:e,selectRef:t,collection:n}){let{validationBehavior:r}=xS(ij)||{},i=e.validationBehavior??r??`native`,a=pq({...e,collection:n,children:void 0,validationBehavior:i}),{isFocusVisible:o,focusProps:s}=fD({within:!0}),c=(0,x.useRef)(null),[l,u]=CS(!e[`aria-label`]&&!e[`aria-labelledby`]),{labelProps:d,triggerProps:f,valueProps:p,menuProps:m,descriptionProps:h,errorMessageProps:g,hiddenSelectProps:_,...v}=uq({...wS(e),label:u,validationBehavior:i},a,c),y=(0,x.useMemo)(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:o,isDisabled:e.isDisabled||!1,isInvalid:v.isInvalid||!1,isRequired:e.isRequired||!1}),[a.isOpen,a.isFocused,o,e.isDisabled,v.isInvalid,e.isRequired]),b=yS({...e,values:y,defaultClassName:`react-aria-Select`}),S=q(e,{global:!0});delete S.id;let C=(0,x.useRef)(null);return x.createElement(vS,{values:[[gq,e],[_q,a],[xq,p],[xD,{...d,ref:l,elementType:`span`}],[eO,{...f,ref:c,isPressed:a.isOpen,autoFocus:e.autoFocus}],[EV,a],[pB,{trigger:`Select`,triggerRef:c,scrollRef:C,placement:`bottom start`,"aria-labelledby":m[`aria-labelledby`],clearContexts:yq}],[JL,{...m,ref:C}],[YL,a],[oO,{slots:{description:h,errorMessage:g}}],[WA,v]]},x.createElement(G.div,{...W(S,b,s),ref:t,slot:e.slot||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":o||void 0,"data-open":a.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":v.isInvalid||void 0,"data-required":e.isRequired||void 0},b.children,x.createElement(fq,{..._,autoComplete:e.autoComplete})))}var xq=(0,x.createContext)(null),Sq=mE(function(e,t){[e,t]=SS(e,t,xq);let n=(0,x.useContext)(_q),{placeholder:r}=xS(gq),i=n.selectedItems.map(e=>{let t=e.props?.children;return typeof t==`function`&&(t=t({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:`single`,selectionBehavior:`toggle`})),t}),a=AV(),o=(0,x.useMemo)(()=>n.selectedItems.map(e=>e?.textValue),[n.selectedItems]),s=n.selectionManager.selectionMode,c=(0,x.useMemo)(()=>s===`single`?o[0]??``:a.format(o),[s,a,o]),l=(0,x.useMemo)(()=>{if(s===`single`)return i[0];let e=a.formatToParts(o);if(e.length===0)return null;let t=0;return e.map(e=>e.type===`element`?x.createElement(x.Fragment,{key:t},i[t++]):e.value)},[s,a,o,i]),u=hT(hq(EI),`react-aria-components`),d=yS({...e,defaultChildren:l??r??u.format(`selectPlaceholder`),defaultClassName:`react-aria-SelectValue`,values:{selectedItem:n.selectedItems[0]?.value??null,selectedItems:(0,x.useMemo)(()=>n.selectedItems.map(e=>e.value??null),[n.selectedItems]),selectedText:c,isPlaceholder:n.selectedItems.length===0,state:n}}),f=q(e,{global:!0});return x.createElement(G.span,{ref:t,...f,...d,"data-placeholder":n.selectedItems.length===0||void 0},x.createElement(oO.Provider,{value:void 0},d.children))});function Cq(e,t,n){let{labelProps:r,inputProps:i,isSelected:a,...o}=hj(e,t,n);return{labelProps:r,inputProps:{...i,role:`switch`,checked:a},isSelected:a,...o}}for(var wq=(0,x.createContext)(null),Tq=(0,x.createContext)(null),Eq=(0,x.forwardRef)(function(e,t){let{inputRef:n=null,...r}=e;[e,t]=SS(r,t,wq);let i=gS((0,x.useMemo)(()=>mS(n,e.inputRef===void 0?null:e.inputRef),[n,e.inputRef])),a=_j(e),o=Cq({...wS(e),children:typeof e.children==`function`||e.children},a,i);return x.createElement(vS,{values:[[Tq,a],[Dq,{...o,inputRef:i,defaultClassName:`react-aria-Switch`}]]},x.createElement(Oq,{...e,ref:t}))}),Dq=(0,x.createContext)(null),Oq=(0,x.forwardRef)(function(e,t){let{labelProps:n,inputProps:r,isSelected:i,isDisabled:a,isReadOnly:o,isPressed:s,isInvalid:c,inputRef:l,defaultClassName:u,isRequired:d}=(0,x.useContext)(Dq),{isFocused:f,isFocusVisible:p,focusProps:m}=fD(),h=a||o,g=(0,x.useContext)(Tq),{hoverProps:_,isHovered:v}=vD({...e,isDisabled:h}),y=yS({...e,defaultClassName:u,values:{isSelected:i,isPressed:s,isHovered:v,isFocused:f,isFocusVisible:p,isDisabled:a,isReadOnly:o,isInvalid:c,isRequired:d||!1,state:g}}),b=q(e,{global:!0});return delete b.id,delete b.onClick,x.createElement(G.label,{...W(b,n,_,y),ref:t,slot:e.slot||void 0,"data-selected":i||void 0,"data-pressed":s||void 0,"data-hovered":v||void 0,"data-focused":f||void 0,"data-focus-visible":p||void 0,"data-disabled":a||void 0,"data-readonly":o||void 0,"data-invalid":c||void 0,"data-required":d||void 0},x.createElement(UA,{elementType:`span`},x.createElement(`input`,{...W(r,m),ref:l})),y.children)}),kq=10,Aq=5,jq=class{setup(e,t,n){this.delegate=e,this.state=t,this.direction=n}getDropTargetFromPoint(e,t,n){let r=this.delegate.getDropTargetFromPoint(e,t,n);return!r||r.type===`root`?r:this.resolveDropTarget(r,e,t,n)}resolveDropTarget(e,t,n,r){let i=this.pointerTracking,a=n-i.lastY,o=t-i.lastX,s=i.yDirection,c=i.xDirection;if(Math.abs(a)>Aq&&(s=a>0?`down`:`up`,i.yDirection=s,i.lastY=n),Math.abs(o)>kq&&(c=o>0?`right`:`left`,i.xDirection=c,i.lastX=t),e.dropPosition===`before`){let t=this.state.collection.getKeyBefore(e.key);for(;t!=null;){let e=this.state.collection.getItem(t);if(e?.type===`item`)break;t=e?.parentKey??null}if(t!=null){let n={type:`item`,key:t,dropPosition:`after`};r(n)&&(e=n)}}let l=this.getPotentialTargets(e,r);if(l.length===0)return{type:`root`};let u;return l.length>1?u=this.selectTarget(l,e,t,n,s,c):(u=l[0],i.boundaryContext=null),u}getPotentialTargets(e,t){if(e.dropPosition===`on`)return[e];let n=e,r=this.state.collection,i=r.getItem(n.key);for(;i&&i?.type!==`item`&&i.nextKey!=null;)n.key=i.nextKey,i=r.getItem(i.nextKey);let a=[n];if(i&&i.hasChildNodes&&this.state.expandedKeys.has(i.key)&&r.getChildren&&n.dropPosition===`after`){let e=i.firstChildKey==null?null:r.getItem(i.firstChildKey);for(;e&&e.type!==`item`;)e=e.nextKey==null?null:r.getItem(e.nextKey);if(e?.type===`item`){let n={type:`item`,key:e.key,dropPosition:`before`};return t(n)?[n]:[]}}if(i?.nextKey!=null)return[e];let o=i?.parentKey,s=[];for(;o!=null;){let e=r.getItem(o),n=e?.nextKey==null?null:r.getItem(e.nextKey);if(!n||n.parentKey!==o){if(e?.type===`item`){let e={type:`item`,key:o,dropPosition:`after`};t(e)&&s.push(e)}if(n)break}o=e?.parentKey}if(s.length>0&&a.push(...s),a.length===1){let e=r.getKeyAfter(n.key),a=e==null?null:r.getItem(e);if(e!=null&&a&&i&&a.level!=null&&i.level!=null&&a.level>i.level){let n={type:`item`,key:e,dropPosition:`before`};if(t(n))return[n]}}return a.filter(t)}selectTarget(e,t,n,r,i,a){if(e.length<2)return e[0];let o=this.pointerTracking,s=this.state.collection.getItem(t.key)?.parentKey;if(s==null)return e[0];o.boundaryContext&&o.boundaryContext.parentKey===s||(o.boundaryContext={parentKey:s,preferredTargetIndex:o.yDirection===`up`?e.length-1:0,lastSwitchY:r,lastSwitchX:n});let c=o.boundaryContext,l=Math.abs(n-c.lastSwitchX);if(Math.abs(r-c.lastSwitchY)>Aq&&i){let t=c.preferredTargetIndex||0;i===`down`&&t===0?c.preferredTargetIndex=e.length-1:i===`up`&&t===e.length-1&&(c.preferredTargetIndex=0),o.xDirection=null}if(l>kq&&a){let t=c.preferredTargetIndex||0;a===`left`?this.direction===`ltr`?t<e.length-1&&(c.preferredTargetIndex=t+1,c.lastSwitchX=n):t>0&&(c.preferredTargetIndex=t-1,c.lastSwitchX=n):a===`right`&&(this.direction===`ltr`?t>0&&(c.preferredTargetIndex=t-1,c.lastSwitchX=n):t<e.length-1&&(c.preferredTargetIndex=t+1,c.lastSwitchX=n)),o.yDirection=null}return e[Math.max(0,Math.min(c.preferredTargetIndex||0,e.length-1))]}constructor(){this.delegate=null,this.state=null,this.direction=`ltr`,this.pointerTracking={lastY:0,lastX:0,yDirection:null,xDirection:null,boundaryContext:null}}},Mq=class{constructor(e){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=e?.columnCount,this.rows=[];let t=r=>{let i=this.keyMap.get(r.key);e.visitNode&&(r=e.visitNode(r)),this.keyMap.set(r.key,r);let a=new Set,o=null,s=!1;if(r.type===`item`){for(let e of r.childNodes)if(e.props?.colSpan!==void 0){s=!0;break}}for(let e of r.childNodes)e.type===`cell`&&s&&(e.colspan=e.props?.colSpan,e.colSpan=e.props?.colSpan,e.colIndex=o?(o.colIndex??o.index)+(o.colSpan??1):e.index),e.type===`cell`&&e.parentKey==null&&(e.parentKey=r.key),a.add(e.key),o?(o.nextKey=e.key,e.prevKey=o.key):e.prevKey=null,t(e),o=e;if(o&&(o.nextKey=null),i)for(let e of i.childNodes)a.has(e.key)||n(e)},n=e=>{this.keyMap.delete(e.key);for(let t of e.childNodes)this.keyMap.get(t.key)===t&&n(t)},r=null;for(let[n,i]of e.items.entries()){let e={...i,level:i.level??0,key:i.key??`row-`+n,type:i.type??`row`,value:i.value??null,hasChildNodes:!0,childNodes:[...i.childNodes],rendered:i.rendered,textValue:i.textValue??``,index:i.index??n};r?(r.nextKey=e.key,e.prevKey=r.key):e.prevKey=null,this.rows.push(e),t(e),r=e}r&&(r.nextKey=null)}*[Symbol.iterator](){yield*[...this.rows]}get size(){return[...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey??null:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey??null:null}getFirstKey(){return[...this.rows][0]?.key}getLastKey(){let e=[...this.rows];return e[e.length-1]?.key}getItem(e){return this.keyMap.get(e)??null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){return this.keyMap.get(e)?.childNodes||[]}},Nq=`row-header-column-`+Math.random().toString(36).slice(2),Pq=`row-header-column-`+Math.random().toString(36).slice(2);Nq===Pq;)Pq=`row-header-column-`+Math.random().toString(36).slice(2);function Fq(e,t){if(t.length===0)return[];let n=[],r=new Map;for(let i of t){let t=i.parentKey,a=[i];for(;t!=null;){let n=e.get(t);if(!n)break;if(r.has(n)){n.colSpan??=0,n.colSpan++,n.colspan=n.colSpan;let{column:e,index:t}=r.get(n);if(t>a.length)break;for(let n=t;n<a.length;n++)e.splice(n,0,null);for(let t=a.length;t<e.length;t++)e[t]&&r.has(e[t])&&(r.get(e[t]).index=t)}else n.colSpan=1,n.colspan=1,a.push(n),r.set(n,{column:a,index:a.length-1});t=n.parentKey}n.push(a),i.index=n.length-1}let i=Math.max(...n.map(e=>e.length)),a=Array(i).fill(0).map(()=>[]),o=0;for(let e of n){let t=i-1;for(let n of e){if(n){let e=a[t],r=e.reduce((e,t)=>e+(t.colSpan??1),0);if(r<o){let i={type:`placeholder`,key:`placeholder-`+n.key,colspan:o-r,colSpan:o-r,index:r,value:null,rendered:null,level:t,hasChildNodes:!1,childNodes:[],textValue:``};e.length>0&&(e[e.length-1].nextKey=i.key,i.prevKey=e[e.length-1].key),e.push(i)}e.length>0&&(e[e.length-1].nextKey=n.key,n.prevKey=e[e.length-1].key),n.level=t,n.colIndex=o,e.push(n)}t--}o++}let s=0;for(let e of a){let n=e.reduce((e,t)=>e+(t.colSpan??1),0);if(n<t.length){let r={type:`placeholder`,key:`placeholder-`+e[e.length-1].key,colSpan:t.length-n,colspan:t.length-n,index:n,value:null,rendered:null,level:s,hasChildNodes:!1,childNodes:[],textValue:``,prevKey:e[e.length-1].key};e.push(r)}s++}return a.map((e,t)=>({type:`headerrow`,key:`headerrow-`+t,index:t,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:e,textValue:``}))}var Iq=class extends Mq{constructor(e,t,n){let r=new Set,i=null,a=[];if(n?.showSelectionCheckboxes){let e={type:`column`,key:Nq,value:null,textValue:``,level:0,index:+!!n?.showDragButtons,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};a.unshift(e)}if(n?.showDragButtons){let e={type:`column`,key:Pq,value:null,textValue:``,level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isDragButtonCell:!0}};a.unshift(e)}let o=[],s=new Map,c=e=>{switch(e.type){case`body`:i=e;break;case`column`:s.set(e.key,e),e.hasChildNodes||(a.push(e),e.props.isRowHeader&&r.add(e.key));break;case`item`:o.push(e);return}for(let t of e.childNodes)c(t)};for(let t of e)c(t);let l=Fq(s,a);if(l.forEach((e,t)=>o.splice(t,0,e)),super({columnCount:a.length,items:o,visitNode:e=>(e.column=a[e.index],e)}),this._size=0,this.columns=a,this.rowHeaderColumnKeys=r,this.body=i,this.headerRows=l,this._size=[...i.childNodes].length,this.rowHeaderColumnKeys.size===0){let e=this.columns.find(e=>!e.props?.isDragButtonCell&&!e.props?.isSelectionCell);e&&this.rowHeaderColumnKeys.add(e.key)}}*[Symbol.iterator](){yield*this.body.childNodes}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){return this.keyMap.get(e)?.prevKey??null}getKeyAfter(e){return this.keyMap.get(e)?.nextKey??null}getFirstKey(){return OL(this.body.childNodes)?.key??null}getLastKey(){return AL(this.body.childNodes)?.key??null}getItem(e){return e===this.body.key?this.body:this.keyMap.get(e)??null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){if(e===this.body.key)return this.body.childNodes;let t=this.getItem(e);return t?.type===`item`?[...t.childNodes].filter(e=>e.type===`cell`):super.getChildren(e)}getTextValue(e){let t=this.getItem(e);if(!t)return``;if(t.textValue)return t.textValue;let n=this.rowHeaderColumnKeys;if(n){let e=[];for(let r of t.childNodes){let t=this.columns[r.index];if(n.has(t.key)&&r.textValue&&e.push(r.textValue),e.length===n.size)break}return e.join(` `)}return``}};function Lq(e){let{collection:t,focusMode:n}=e,r=e.UNSAFE_selectionState||RL(e),i=(0,x.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=r.setFocusedKey;r.setFocusedKey=(e,r)=>{if(n===`cell`&&e!=null){let n=t.getItem(e);if(n?.type===`item`){let i=DL(n,t);e=r===`last`?AL(i)?.key??null:OL(i)?.key??null}}a(e,r)};let o=(0,x.useMemo)(()=>new BL(t,r),[t,r]),s=(0,x.useRef)(null);return(0,x.useEffect)(()=>{if(r.focusedKey!=null&&s.current&&!t.getItem(r.focusedKey)){let e=s.current.getItem(r.focusedKey),n=e?.parentKey!=null&&(e.type===`cell`||e.type===`rowheader`||e.type===`column`)?s.current.getItem(e.parentKey):e;if(!n){r.setFocusedKey(null);return}let i=s.current.rows,a=t.rows,c=i.length-a.length,l=Math.min(c>1?Math.max(n.index-c+1,0):n.index,a.length-1),u=null;for(let e=Math.max(0,l);e<a.length;e++)if(!o.isDisabled(a[e].key)&&a[e].type!==`headerrow`){u=a[e];break}if(u===null){for(let e=l-1;e>=0;e--)if(!o.isDisabled(a[e].key)&&a[e].type!==`headerrow`){u=a[e];break}}if(u){let i=u.hasChildNodes?[...DL(u,t)]:[],a=u.hasChildNodes&&n!==e&&e&&e.index<i.length?i[e.index].key:u.key;r.setFocusedKey(a)}else r.setFocusedKey(null)}s.current=t},[t,o,r,r.focusedKey]),{collection:t,disabledKeys:i,isKeyboardNavigationDisabled:!1,selectionManager:o}}var Rq={ascending:`descending`,descending:`ascending`};function zq(e){let[t,n]=(0,x.useState)(!1),{selectionMode:r=`none`,showSelectionCheckboxes:i,showDragButtons:a,treeColumn:o=null}=e,s=(0,x.useMemo)(()=>({showSelectionCheckboxes:i&&r!==`none`,showDragButtons:a,selectionMode:r,columns:[]}),[e.children,i,r,a]),c=UL(e,(0,x.useCallback)(e=>new Iq(e,null,s),[s]),s),{disabledKeys:l,selectionManager:u}=Lq({...e,collection:c,disabledBehavior:e.disabledBehavior||`selection`}),[d,f]=yT(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange);return{collection:c,disabledKeys:l,selectionManager:u,showSelectionCheckboxes:e.showSelectionCheckboxes||!1,sortDescriptor:e.sortDescriptor??null,isKeyboardNavigationDisabled:c.size===0||t,setKeyboardNavigationDisabled:n,sort(t,n){e.onSortChange?.({column:t,direction:n??(e.sortDescriptor?.column===t?Rq[e.sortDescriptor.direction]:`ascending`)})},expandedKeys:d,toggleKey(e){f(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},treeColumn:o}}function Bq(e,t){let n=(0,x.useMemo)(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),r=e.selectionManager.withCollection(n);return{...e,collection:n,selectionManager:r}}var Vq=class{constructor(e){if(this.collection=e.collection,this.disabledKeys=e.disabledKeys,this.disabledBehavior=e.disabledBehavior||`all`,this.direction=e.direction,this.collator=e.collator,!e.layout&&!e.ref)throw Error(`Either a layout or a ref must be specified.`);this.layoutDelegate=e.layoutDelegate||(e.layout?new Hq(e.layout):new vL(e.ref)),this.focusMode=e.focusMode??`row`}isCell(e){return e.type===`cell`}isRow(e){return e.type===`row`||e.type===`item`}isDisabled(e){return this.disabledBehavior===`all`&&(e.props?.isDisabled||this.disabledKeys.has(e.key))&&e.props?.disabledBehavior!==`selection`}findPreviousKey(e,t,n=!1){let r=e==null?this.collection.getLastKey():this.collection.getKeyBefore(e);for(;r!=null;){let e=this.collection.getItem(r);if(!e)return null;if((n||!this.isDisabled(e))&&(!t||t(e)))return r;r=this.collection.getKeyBefore(r)}return null}findNextKey(e,t,n=!1){let r=e==null?this.collection.getFirstKey():this.collection.getKeyAfter(e);for(;r!=null;){let e=this.collection.getItem(r);if(!e)return null;if((n||!this.isDisabled(e))&&(!t||t(e)))return r;if(r=this.collection.getKeyAfter(r),r==null)return null}return null}getKeyForItemInRowByIndex(e,t=0){if(t<0)return null;let n=this.collection.getItem(e);if(!n)return null;let r=0;for(let e of DL(n,this.collection)){if(e.colSpan&&e.colSpan+r>t||(e.colSpan&&(r=r+e.colSpan-1),r===t))return e.key??null;r++}return null}getKeyBelow(e,t){let n=e,r=this.collection.getItem(n);if(!r||(this.isCell(r)&&(n=r.parentKey??null),n==null))return null;if(n=this.findNextKey(n,e=>e.type===`item`,t?.includeDisabled),n!=null){if(this.isCell(r)){let e=r.colIndex?r.colIndex:r.index;return this.getKeyForItemInRowByIndex(n,e)}if(this.focusMode===`row`)return n}return null}getKeyAbove(e,t){let n=e,r=this.collection.getItem(n);if(!r||(this.isCell(r)&&(n=r.parentKey??null),n==null))return null;if(n=this.findPreviousKey(n,e=>e.type===`item`,t?.includeDisabled),n!=null){if(this.isCell(r)){let e=r.colIndex?r.colIndex:r.index;return this.getKeyForItemInRowByIndex(n,e)}if(this.focusMode===`row`)return n}return null}getKeyRightOf(e){let t=this.collection.getItem(e);if(!t)return null;if(this.isRow(t)){let e=DL(t,this.collection);return(this.direction===`rtl`?AL(e)?.key:OL(e)?.key)??null}if(this.isCell(t)&&t.parentKey!=null){let n=this.collection.getItem(t.parentKey);if(!n)return null;let r=DL(n,this.collection),i=(this.direction===`rtl`?kL(r,t.index-1):kL(r,t.index+1))??null;return i?i.key??null:this.focusMode===`row`?t.parentKey??null:(this.direction===`rtl`?this.getFirstKey(e):this.getLastKey(e))??null}return null}getKeyLeftOf(e){let t=this.collection.getItem(e);if(!t)return null;if(this.isRow(t)){let e=DL(t,this.collection);return(this.direction===`rtl`?OL(e)?.key:AL(e)?.key)??null}if(this.isCell(t)&&t.parentKey!=null){let n=this.collection.getItem(t.parentKey);if(!n)return null;let r=DL(n,this.collection),i=(this.direction===`rtl`?kL(r,t.index+1):kL(r,t.index-1))??null;return i?i.key??null:this.focusMode===`row`?t.parentKey??null:(this.direction===`rtl`?this.getLastKey(e):this.getFirstKey(e))??null}return null}getFirstKey(e,t){let n=e??null,r;if(n!=null){if(r=this.collection.getItem(n),!r)return null;if(this.isCell(r)&&!t&&r.parentKey!=null){let e=this.collection.getItem(r.parentKey);return e?OL(DL(e,this.collection))?.key??null:null}}if(n=this.findNextKey(void 0,e=>e.type===`item`),n!=null&&(r&&this.isCell(r)&&t||this.focusMode===`cell`)){let e=this.collection.getItem(n);if(!e)return null;n=OL(DL(e,this.collection))?.key??null}return n}getLastKey(e,t){let n=e??null,r;if(n!=null){if(r=this.collection.getItem(n),!r)return null;if(this.isCell(r)&&!t&&r.parentKey!=null){let e=this.collection.getItem(r.parentKey);return e?AL(DL(e,this.collection))?.key??null:null}}if(n=this.findPreviousKey(void 0,e=>e.type===`item`),n!=null&&(r&&this.isCell(r)&&t||this.focusMode===`cell`)){let e=this.collection.getItem(n);if(!e)return null;n=AL(DL(e,this.collection))?.key??null}return n}getKeyPageAbove(e){let t=e,n=this.layoutDelegate.getItemRect(t);if(!n)return null;let r=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>r&&t!=null&&(t=this.getKeyAbove(t)??null,t!=null);)n=this.layoutDelegate.getItemRect(t);return t}getKeyPageBelow(e){let t=e,n=this.layoutDelegate.getItemRect(t);if(!n)return null;let r=this.layoutDelegate.getVisibleRect().height,i=Math.min(this.layoutDelegate.getContentSize().height,n.y+r);for(;n&&n.y+n.height<i;){let e=this.getKeyBelow(t);if(e==null)break;n=this.layoutDelegate.getItemRect(e),t=e}return t}getKeyForSearch(e,t){let n=t??null;if(!this.collator)return null;let r=this.collection;if(n=t??this.getFirstKey(),n==null)return null;let i=r.getItem(n);if(!i)return null;i.type===`cell`&&(n=i.parentKey??null);let a=!1;for(;n!=null;){let t=r.getItem(n);if(!t)return null;if(t.textValue){let n=t.textValue.slice(0,e.length);if(this.collator.compare(n,e)===0)return this.isRow(t)&&this.focusMode===`cell`?OL(DL(t,this.collection))?.key??null:t.key}n=this.findNextKey(n,e=>e.type===`item`),n==null&&!a&&(n=this.getFirstKey(),a=!0)}return null}},Hq=class{constructor(e){this.layout=e}getContentSize(){return this.layout.getContentSize()}getItemRect(e){return this.layout.getLayoutInfo(e)?.rect||null}getVisibleRect(){return this.layout.virtualizer.visibleRect}},Uq=new WeakMap;function Wq(e,t,n){let{isVirtualized:r,disallowTypeAhead:i,keyboardDelegate:a,focusMode:o,scrollRef:s,getRowText:c,onRowAction:l,onCellAction:u,escapeKeyBehavior:d=`clearSelection`,shouldSelectOnPressUp:f,keyboardNavigationBehavior:p=`arrow`}=e,{selectionManager:m}=t;!e[`aria-label`]&&!e[`aria-labelledby`]&&console.warn(`An aria-label or aria-labelledby prop is required for accessibility.`);let h=xL({usage:`search`,sensitivity:`base`}),{direction:g}=iT(),_=t.selectionManager.disabledBehavior,v=(0,x.useMemo)(()=>a||new Vq({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:_,ref:n,direction:g,collator:h,focusMode:o}),[a,t.collection,t.disabledKeys,_,n,g,h,o]),{collectionProps:y}=_L({ref:n,selectionManager:m,keyboardDelegate:v,isVirtualized:r,scrollRef:s,disallowTypeAhead:i,escapeKeyBehavior:d}),b=dS(e.id);Uq.set(t,{keyboardDelegate:v,actions:{onRowAction:l,onCellAction:u},shouldSelectOnPressUp:f,keyboardNavigationBehavior:p});let S=MG({selectionManager:m,hasItemActions:!!(l||u)}),C=q(e,{labelable:!0}),w=(0,x.useCallback)(e=>{m.isFocused?zS(e.currentTarget,K(e))||m.setFocused(!1):zS(e.currentTarget,K(e))&&m.setFocused(!0)},[m]),T=(0,x.useMemo)(()=>({onBlur:y.onBlur,onFocus:w}),[w,y.onBlur]),E=AG(n,{isDisabled:t.collection.size!==0}),D=W(C,{role:`grid`,id:b,"aria-multiselectable":m.selectionMode===`multiple`?`true`:void 0},t.isKeyboardNavigationDisabled?T:y,t.collection.size===0&&{tabIndex:E?-1:0}||void 0,S);return r&&(D[`aria-rowcount`]=t.collection.size,D[`aria-colcount`]=t.collection.columnCount),OG({getRowText:c},t),{gridProps:D}}var Gq=new WeakMap;function Kq(e){return typeof e==`string`?e.replace(/\s*/g,``):``+e}function qq(e,t){let n=Gq.get(e);if(!n)throw Error(`Unknown grid`);return`${n}-${Kq(t)}`}function Jq(e,t,n){let r=Gq.get(e);if(!r)throw Error(`Unknown grid`);return`${r}-${Kq(t)}-${Kq(n)}`}function Yq(e,t){return[...e.collection.rowHeaderColumnKeys].map(n=>Jq(e,t,n)).join(` `)}var Xq={};Xq={ascending:`تصاعدي`,ascendingSort:e=>`\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62D}\u{633}\u{628} \u{627}\u{644}\u{639}\u{645}\u{648}\u{62F} ${e.columnName} \u{628}\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62A}\u{635}\u{627}\u{639}\u{62F}\u{64A}`,collapse:`طي`,columnSize:e=>`${e.value} \u{628}\u{627}\u{644}\u{628}\u{643}\u{633}\u{644}`,descending:`تنازلي`,descendingSort:e=>`\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62D}\u{633}\u{628} \u{627}\u{644}\u{639}\u{645}\u{648}\u{62F} ${e.columnName} \u{628}\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62A}\u{646}\u{627}\u{632}\u{644}\u{64A}`,expand:`تمديد`,resizerDescription:`اضغط على مفتاح Enter لبدء تغيير الحجم`,select:`تحديد`,selectAll:`تحديد الكل`,sortable:`عمود قابل للترتيب`};var Zq={};Zq={ascending:`възходящ`,ascendingSort:e=>`\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{430}\u{43D}\u{43E} \u{43F}\u{43E} \u{43A}\u{43E}\u{43B}\u{43E}\u{43D}\u{430} ${e.columnName} \u{432}\u{44A}\u{432} \u{432}\u{44A}\u{437}\u{445}\u{43E}\u{434}\u{44F}\u{449} \u{440}\u{435}\u{434}`,collapse:`Свиване`,columnSize:e=>`${e.value} \u{43F}\u{438}\u{43A}\u{441}\u{435}\u{43B}\u{430}`,descending:`низходящ`,descendingSort:e=>`\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{430}\u{43D}\u{43E} \u{43F}\u{43E} \u{43A}\u{43E}\u{43B}\u{43E}\u{43D}\u{430} ${e.columnName} \u{432} \u{43D}\u{438}\u{437}\u{445}\u{43E}\u{434}\u{44F}\u{449} \u{440}\u{435}\u{434}`,expand:`Разширяване`,resizerDescription:`Натиснете „Enter“, за да започнете да преоразмерявате`,select:`Изберете`,selectAll:`Изберете всичко`,sortable:`сортираща колона`};var Qq={};Qq={ascending:`vzestupně`,ascendingSort:e=>`\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,collapse:`Sbalit`,columnSize:e=>`${e.value} pixel\u{16F}`,descending:`sestupně`,descendingSort:e=>`\u{159}azeno sestupn\u{11B} podle sloupce ${e.columnName}`,expand:`Roztáhnout`,resizerDescription:`Stisknutím klávesy Enter začnete měnit velikost`,select:`Vybrat`,selectAll:`Vybrat vše`,sortable:`sloupec s možností řazení`};var $q={};$q={ascending:`stigende`,ascendingSort:e=>`sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,collapse:`Skjul`,columnSize:e=>`${e.value} pixels`,descending:`faldende`,descendingSort:e=>`sorteret efter kolonne ${e.columnName} i faldende r\xe6kkef\xf8lge`,expand:`Udvid`,resizerDescription:`Tryk på Enter for at ændre størrelse`,select:`Vælg`,selectAll:`Vælg alle`,sortable:`sorterbar kolonne`};var eJ={};eJ={ascending:`aufsteigend`,ascendingSort:e=>`sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,collapse:`Reduzieren`,columnSize:e=>`${e.value} Pixel`,descending:`absteigend`,descendingSort:e=>`sortiert nach Spalte ${e.columnName} in absteigender Reihenfolge`,expand:`Erweitern`,resizerDescription:`Eingabetaste zum Starten der Größenänderung drücken`,select:`Auswählen`,selectAll:`Alles auswählen`,sortable:`sortierbare Spalte`};var tJ={};tJ={ascending:`αύξουσα`,ascendingSort:e=>`\u{3B4}\u{3B9}\u{3B1}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B1}\u{3BD}\u{3AC} \u{3C3}\u{3C4}\u{3AE}\u{3BB}\u{3B7} ${e.columnName} \u{3C3}\u{3B5} \u{3B1}\u{3CD}\u{3BE}\u{3BF}\u{3C5}\u{3C3}\u{3B1} \u{3C3}\u{3B5}\u{3B9}\u{3C1}\u{3AC}`,collapse:`Σύμπτυξη`,columnSize:e=>`${e.value} pixel`,descending:`φθίνουσα`,descendingSort:e=>`\u{3B4}\u{3B9}\u{3B1}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B1}\u{3BD}\u{3AC} \u{3C3}\u{3C4}\u{3AE}\u{3BB}\u{3B7} ${e.columnName} \u{3C3}\u{3B5} \u{3C6}\u{3B8}\u{3AF}\u{3BD}\u{3BF}\u{3C5}\u{3C3}\u{3B1} \u{3C3}\u{3B5}\u{3B9}\u{3C1}\u{3AC}`,expand:`Ανάπτυξη`,resizerDescription:`Πατήστε Enter για έναρξη της αλλαγής μεγέθους`,select:`Επιλογή`,selectAll:`Επιλογή όλων`,sortable:`Στήλη διαλογής`};var nJ={};nJ={select:`Select`,selectAll:`Select All`,sortable:`sortable column`,ascending:`ascending`,descending:`descending`,ascendingSort:e=>`sorted by column ${e.columnName} in ascending order`,descendingSort:e=>`sorted by column ${e.columnName} in descending order`,columnSize:e=>`${e.value} pixels`,resizerDescription:`Press Enter to start resizing`,expand:`Expand`,collapse:`Collapse`};var rJ={};rJ={ascending:`ascendente`,ascendingSort:e=>`ordenado por columna ${e.columnName} en sentido ascendente`,collapse:`Contraer`,columnSize:e=>`${e.value} p\xedxeles`,descending:`descendente`,descendingSort:e=>`ordenado por columna ${e.columnName} en orden descendente`,expand:`Ampliar`,resizerDescription:`Pulse Intro para empezar a redimensionar`,select:`Seleccionar`,selectAll:`Seleccionar todos`,sortable:`columna ordenable`};var iJ={};iJ={ascending:`tõusev järjestus`,ascendingSort:e=>`sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,collapse:`Ahenda`,columnSize:e=>`${e.value} pikslit`,descending:`laskuv järjestus`,descendingSort:e=>`sorditud veeru j\xe4rgi ${e.columnName} laskuvas j\xe4rjestuses`,expand:`Laienda`,resizerDescription:`Suuruse muutmise alustamiseks vajutage klahvi Enter`,select:`Vali`,selectAll:`Vali kõik`,sortable:`sorditav veerg`};var aJ={};aJ={ascending:`nouseva`,ascendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,collapse:`Pienennä`,columnSize:e=>`${e.value} pikseli\xe4`,descending:`laskeva`,descendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan laskevassa j\xe4rjestyksess\xe4`,expand:`Laajenna`,resizerDescription:`Aloita koon muutos painamalla Enter-näppäintä`,select:`Valitse`,selectAll:`Valitse kaikki`,sortable:`lajiteltava sarake`};var oJ={};oJ={ascending:`croissant`,ascendingSort:e=>`tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,collapse:`Réduire`,columnSize:e=>`${e.value}\xa0pixels`,descending:`décroissant`,descendingSort:e=>`tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre d\xe9croissant`,expand:`Développer`,resizerDescription:`Appuyez sur Entrée pour commencer le redimensionnement.`,select:`Sélectionner`,selectAll:`Sélectionner tout`,sortable:`colonne triable`};var sJ={};sJ={ascending:`עולה`,ascendingSort:e=>`\u{5DE}\u{5D5}\u{5D9}\u{5DF} \u{5DC}\u{5E4}\u{5D9} \u{5E2}\u{5DE}\u{5D5}\u{5D3}\u{5D4} ${e.columnName} \u{5D1}\u{5E1}\u{5D3}\u{5E8} \u{5E2}\u{5D5}\u{5DC}\u{5D4}`,collapse:`כווץ`,columnSize:e=>`${e.value} \u{5E4}\u{5D9}\u{5E7}\u{5E1}\u{5DC}\u{5D9}\u{5DD}`,descending:`יורד`,descendingSort:e=>`\u{5DE}\u{5D5}\u{5D9}\u{5DF} \u{5DC}\u{5E4}\u{5D9} \u{5E2}\u{5DE}\u{5D5}\u{5D3}\u{5D4} ${e.columnName} \u{5D1}\u{5E1}\u{5D3}\u{5E8} \u{5D9}\u{5D5}\u{5E8}\u{5D3}`,expand:`הרחב`,resizerDescription:`הקש Enter כדי לשנות את הגודל`,select:`בחר`,selectAll:`בחר הכול`,sortable:`עמודה שניתן למיין`};var cJ={};cJ={ascending:`rastući`,ascendingSort:e=>`razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,collapse:`Sažmi`,columnSize:e=>`${e.value} piksela`,descending:`padajući`,descendingSort:e=>`razvrstano po stupcima ${e.columnName} padaju\u{107}im redoslijedom`,expand:`Proširi`,resizerDescription:`Pritisnite Enter da biste započeli promenu veličine`,select:`Odaberite`,selectAll:`Odaberite sve`,sortable:`stupac koji se može razvrstati`};var lJ={};lJ={ascending:`növekvő`,ascendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,collapse:`Összecsukás`,columnSize:e=>`${e.value} k\xe9ppont`,descending:`csökkenő`,descendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, cs\xf6kken\u{151} sorrendben`,expand:`Kibontás`,resizerDescription:`Nyomja le az Enter billentyűt az átméretezés megkezdéséhez`,select:`Kijelölés`,selectAll:`Összes kijelölése`,sortable:`rendezendő oszlop`};var uJ={};uJ={ascending:`crescente`,ascendingSort:e=>`in ordine crescente in base alla colonna ${e.columnName}`,collapse:`Comprimi`,columnSize:e=>`${e.value} pixel`,descending:`decrescente`,descendingSort:e=>`in ordine decrescente in base alla colonna ${e.columnName}`,expand:`Espandi`,resizerDescription:`Premi Invio per iniziare a ridimensionare`,select:`Seleziona`,selectAll:`Seleziona tutto`,sortable:`colonna ordinabile`};var dJ={};dJ={ascending:`昇順`,ascendingSort:e=>`\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,collapse:`折りたたむ`,columnSize:e=>`${e.value} \u{30D4}\u{30AF}\u{30BB}\u{30EB}`,descending:`降順`,descendingSort:e=>`\u{5217} ${e.columnName} \u{3092}\u{964D}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,expand:`展開`,resizerDescription:`Enter キーを押してサイズ変更を開始`,select:`選択`,selectAll:`すべて選択`,sortable:`並べ替え可能な列`};var fJ={};fJ={ascending:`오름차순`,ascendingSort:e=>`${e.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{C624}\u{B984}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,collapse:`접기`,columnSize:e=>`${e.value} \u{D53D}\u{C140}`,descending:`내림차순`,descendingSort:e=>`${e.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{B0B4}\u{B9BC}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,expand:`펼치기`,resizerDescription:`크기 조정을 시작하려면 Enter를 누르세요.`,select:`선택`,selectAll:`모두 선택`,sortable:`정렬 가능한 열`};var pJ={};pJ={ascending:`didėjančia tvarka`,ascendingSort:e=>`surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,collapse:`Sutraukti`,columnSize:e=>`${e.value} piks.`,descending:`mažėjančia tvarka`,descendingSort:e=>`surikiuota pagal stulpel\u{12F} ${e.columnName} ma\u{17E}\u{117}jan\u{10D}ia tvarka`,expand:`Išskleisti`,resizerDescription:`Paspauskite „Enter“, kad pradėtumėte keisti dydį`,select:`Pasirinkti`,selectAll:`Pasirinkti viską`,sortable:`rikiuojamas stulpelis`};var mJ={};mJ={ascending:`augošā secībā`,ascendingSort:e=>`k\u{101}rtots p\u{113}c kolonnas ${e.columnName} augo\u{161}\u{101} sec\u{12B}b\u{101}`,collapse:`Sakļaut`,columnSize:e=>`${e.value} pikse\u{13C}i`,descending:`dilstošā secībā`,descendingSort:e=>`k\u{101}rtots p\u{113}c kolonnas ${e.columnName} dilsto\u{161}\u{101} sec\u{12B}b\u{101}`,expand:`Izvērst`,resizerDescription:`Nospiediet Enter, lai sāktu izmēru mainīšanu`,select:`Atlasīt`,selectAll:`Atlasīt visu`,sortable:`kārtojamā kolonna`};var hJ={};hJ={ascending:`stigende`,ascendingSort:e=>`sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,collapse:`Skjul`,columnSize:e=>`${e.value} piksler`,descending:`synkende`,descendingSort:e=>`sortert etter kolonne ${e.columnName} i synkende rekkef\xf8lge`,expand:`Utvid`,resizerDescription:`Trykk på Enter for å starte størrelsesendring`,select:`Velg`,selectAll:`Velg alle`,sortable:`kolonne som kan sorteres`};var gJ={};gJ={ascending:`oplopend`,ascendingSort:e=>`gesorteerd in oplopende volgorde in kolom ${e.columnName}`,collapse:`Samenvouwen`,columnSize:e=>`${e.value} pixels`,descending:`aflopend`,descendingSort:e=>`gesorteerd in aflopende volgorde in kolom ${e.columnName}`,expand:`Uitvouwen`,resizerDescription:`Druk op Enter om het formaat te wijzigen`,select:`Selecteren`,selectAll:`Alles selecteren`,sortable:`sorteerbare kolom`};var _J={};_J={ascending:`rosnąco`,ascendingSort:e=>`posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,collapse:`Zwiń`,columnSize:e=>`Liczba pikseli: ${e.value}`,descending:`malejąco`,descendingSort:e=>`posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku malej\u{105}cym`,expand:`Rozwiń`,resizerDescription:`Naciśnij Enter, aby rozpocząć zmienianie rozmiaru`,select:`Zaznacz`,selectAll:`Zaznacz wszystko`,sortable:`kolumna z możliwością sortowania`};var vJ={};vJ={ascending:`crescente`,ascendingSort:e=>`classificado pela coluna ${e.columnName} em ordem crescente`,collapse:`Recolher`,columnSize:e=>`${e.value} pixels`,descending:`decrescente`,descendingSort:e=>`classificado pela coluna ${e.columnName} em ordem decrescente`,expand:`Expandir`,resizerDescription:`Pressione Enter para começar a redimensionar`,select:`Selecionar`,selectAll:`Selecionar tudo`,sortable:`coluna classificável`};var yJ={};yJ={ascending:`ascendente`,ascendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem ascendente`,collapse:`Colapsar`,columnSize:e=>`${e.value} pixels`,descending:`descendente`,descendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem descendente`,expand:`Expandir`,resizerDescription:`Prima Enter para iniciar o redimensionamento`,select:`Selecionar`,selectAll:`Selecionar tudo`,sortable:`Coluna ordenável`};var bJ={};bJ={ascending:`crescătoare`,ascendingSort:e=>`sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,collapse:`Restrângeți`,columnSize:e=>`${e.value} pixeli`,descending:`descrescătoare`,descendingSort:e=>`sortate dup\u{103} coloana ${e.columnName} \xeen ordine descresc\u{103}toare`,expand:`Extindeți`,resizerDescription:`Apăsați pe Enter pentru a începe redimensionarea`,select:`Selectare`,selectAll:`Selectare totală`,sortable:`coloană sortabilă`};var xJ={};xJ={ascending:`возрастание`,ascendingSort:e=>`\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{441}\u{442}\u{43E}\u{43B}\u{431}\u{435}\u{446} ${e.columnName} \u{432} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{435} \u{432}\u{43E}\u{437}\u{440}\u{430}\u{441}\u{442}\u{430}\u{43D}\u{438}\u{44F}`,collapse:`Свернуть`,columnSize:e=>`${e.value} \u{43F}\u{438}\u{43A}\u{441}.`,descending:`убывание`,descendingSort:e=>`\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{441}\u{442}\u{43E}\u{43B}\u{431}\u{435}\u{446} ${e.columnName} \u{432} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{435} \u{443}\u{431}\u{44B}\u{432}\u{430}\u{43D}\u{438}\u{44F}`,expand:`Развернуть`,resizerDescription:`Нажмите клавишу Enter для начала изменения размеров`,select:`Выбрать`,selectAll:`Выбрать все`,sortable:`сортируемый столбец`};var SJ={};SJ={ascending:`vzostupne`,ascendingSort:e=>`zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,collapse:`Zbaliť`,columnSize:e=>`Po\u{10D}et pixelov: ${e.value}`,descending:`zostupne`,descendingSort:e=>`zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,expand:`Rozbaliť`,resizerDescription:`Stlačením klávesu Enter začnete zmenu veľkosti`,select:`Vybrať`,selectAll:`Vybrať všetko`,sortable:`zoraditeľný stĺpec`};var CJ={};CJ={ascending:`naraščajoče`,ascendingSort:e=>`razvr\u{161}\u{10D}eno po stolpcu ${e.columnName} v nara\u{161}\u{10D}ajo\u{10D}em vrstnem redu`,collapse:`Strni`,columnSize:e=>`${e.value} slikovnih pik`,descending:`padajoče`,descendingSort:e=>`razvr\u{161}\u{10D}eno po stolpcu ${e.columnName} v padajo\u{10D}em vrstnem redu`,expand:`Razširi`,resizerDescription:`Pritisnite tipko Enter da začnete spreminjati velikost`,select:`Izberite`,selectAll:`Izberite vse`,sortable:`razvrstljivi stolpec`};var wJ={};wJ={ascending:`rastući`,ascendingSort:e=>`sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,collapse:`Skupi`,columnSize:e=>`${e.value} piksela`,descending:`padajući`,descendingSort:e=>`sortirano po kolonama ${e.columnName} padaju\u{107}im redosledom`,expand:`Proširi`,resizerDescription:`Pritisnite Enter da biste započeli promenu veličine`,select:`Izaberite`,selectAll:`Izaberite sve`,sortable:`kolona koja se može sortirati`};var TJ={};TJ={ascending:`stigande`,ascendingSort:e=>`sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,collapse:`Dölj`,columnSize:e=>`${e.value} pixlar`,descending:`fallande`,descendingSort:e=>`sorterat p\xe5 kolumn ${e.columnName} i fallande ordning`,expand:`Expandera`,resizerDescription:`Tryck på Retur för att börja ändra storlek`,select:`Markera`,selectAll:`Markera allt`,sortable:`sorterbar kolumn`};var EJ={};EJ={ascending:`artan sırada`,ascendingSort:e=>`${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,collapse:`Daralt`,columnSize:e=>`${e.value} piksel`,descending:`azalan sırada`,descendingSort:e=>`${e.columnName} s\xfctuna g\xf6re azalan d\xfczende s\u{131}rala`,expand:`Genişlet`,resizerDescription:`Yeniden boyutlandırmak için Enter'a basın`,select:`Seç`,selectAll:`Tümünü Seç`,sortable:`Sıralanabilir sütun`};var DJ={};DJ={ascending:`висхідний`,ascendingSort:e=>`\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${e.columnName} \u{443} \u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,collapse:`Згорнути`,columnSize:e=>`${e.value} \u{43F}\u{456}\u{43A}\u{441}.`,descending:`низхідний`,descendingSort:e=>`\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${e.columnName} \u{443} \u{43D}\u{438}\u{437}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,expand:`Розгорнути`,resizerDescription:`Натисніть Enter, щоб почати зміну розміру`,select:`Вибрати`,selectAll:`Вибрати все`,sortable:`сортувальний стовпець`};var OJ={};OJ={ascending:`升序`,ascendingSort:e=>`\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,collapse:`折叠`,columnSize:e=>`${e.value} \u{50CF}\u{7D20}`,descending:`降序`,descendingSort:e=>`\u{6309}\u{5217} ${e.columnName} \u{964D}\u{5E8F}\u{6392}\u{5E8F}`,expand:`扩展`,resizerDescription:`按 Enter 开始调整大小。`,select:`选择`,selectAll:`全选`,sortable:`可排序的列`};var kJ={};kJ={ascending:`遞增`,ascendingSort:e=>`\u{5DF2}\u{4F9D}\u{64DA}\u{300C}${e.columnName}\u{300D}\u{6B04}\u{905E}\u{589E}\u{6392}\u{5E8F}`,collapse:`收合`,columnSize:e=>`${e.value} \u{50CF}\u{7D20}`,descending:`遞減`,descendingSort:e=>`\u{5DF2}\u{4F9D}\u{64DA}\u{300C}${e.columnName}\u{300D}\u{6B04}\u{905E}\u{6E1B}\u{6392}\u{5E8F}`,expand:`展開`,resizerDescription:`按 Enter 鍵以開始調整大小`,select:`選取`,selectAll:`全選`,sortable:`可排序的欄`};var AJ={};AJ={"ar-AE":Xq,"bg-BG":Zq,"cs-CZ":Qq,"da-DK":$q,"de-DE":eJ,"el-GR":tJ,"en-US":nJ,"es-ES":rJ,"et-EE":iJ,"fi-FI":aJ,"fr-FR":oJ,"he-IL":sJ,"hr-HR":cJ,"hu-HU":lJ,"it-IT":uJ,"ja-JP":dJ,"ko-KR":fJ,"lt-LT":pJ,"lv-LV":mJ,"nb-NO":hJ,"nl-NL":gJ,"pl-PL":_J,"pt-BR":vJ,"pt-PT":yJ,"ro-RO":bJ,"ru-RU":xJ,"sk-SK":SJ,"sl-SI":CJ,"sr-SP":wJ,"sv-SE":TJ,"tr-TR":EJ,"uk-UA":DJ,"zh-CN":OJ,"zh-TW":kJ};var jJ=class extends Vq{isCell(e){return e.type===`cell`||e.type===`rowheader`||e.type===`column`}getKeyBelow(e,t){let n=this.collection.getItem(e);if(!n)return null;if(n.type===`column`){let e=OL(DL(n,this.collection));if(e)return e.key;let t=this.getFirstKey();return t==null||!this.collection.getItem(t)?null:super.getKeyForItemInRowByIndex(t,n.index)}return super.getKeyBelow(e,t)}getKeyAbove(e,t){let n=this.collection.getItem(e);if(!n)return null;if(n.type===`column`){let e=n.parentKey==null?null:this.collection.getItem(n.parentKey);return e&&e.type===`column`?e.key:null}let r=super.getKeyAbove(e,t),i=r==null?null:this.collection.getItem(r);return i&&i.type!==`headerrow`?r:this.isCell(n)?this.collection.columns[n.index].key:this.collection.columns[0].key}findNextColumnKey(e){let t=this.findNextKey(e.key,e=>e.type===`column`);if(t!=null)return t;let n=this.collection.headerRows[e.level];for(let e of DL(n,this.collection))if(e.type===`column`)return e.key;return null}findPreviousColumnKey(e){let t=this.findPreviousKey(e.key,e=>e.type===`column`);if(t!=null)return t;let n=this.collection.headerRows[e.level],r=[...DL(n,this.collection)];for(let e=r.length-1;e>=0;e--){let t=r[e];if(t.type===`column`)return t.key}return null}getKeyRightOf(e){let t=this.collection.getItem(e);return t?t.type===`column`?this.direction===`rtl`?this.findPreviousColumnKey(t):this.findNextColumnKey(t):super.getKeyRightOf(e):null}getKeyLeftOf(e){let t=this.collection.getItem(e);return t?t.type===`column`?this.direction===`rtl`?this.findNextColumnKey(t):this.findPreviousColumnKey(t):super.getKeyLeftOf(e):null}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t??this.getFirstKey();if(r==null)return null;let i=n.getItem(r);i?.type===`cell`&&(r=i.parentKey??null);let a=!1;for(;r!=null;){let o=n.getItem(r);if(!o)return null;if(o.textValue){let t=o.textValue.slice(0,e.length);if(this.collator.compare(t,e)===0)return o.key}for(let r of DL(o,this.collection)){let a=n.columns[r.index];if(n.rowHeaderColumnKeys.has(a.key)&&r.textValue){let a=r.textValue.slice(0,e.length);if(this.collator.compare(a,e)===0)return(t==null?i:n.getItem(t))?.type===`cell`?r.key:o.key}}r=this.getKeyBelow(r),r==null&&!a&&(r=this.getFirstKey(),a=!0)}return null}};function MJ(e){return e&&e.__esModule?e.default:e}function NJ(e,t,n){let{keyboardDelegate:r,isVirtualized:i,layoutDelegate:a,layout:o}=e,s=xL({usage:`search`,sensitivity:`base`}),{direction:c}=iT(),l=t.selectionManager.disabledBehavior,u=(0,x.useMemo)(()=>r||new jJ({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:l,ref:n,direction:c,collator:s,layoutDelegate:a,layout:o}),[r,t.collection,t.disabledKeys,l,n,c,s,a,o]),d=dS(e.id);Gq.set(t,d);let{gridProps:f}=Wq({...e,id:d,keyboardDelegate:u},t,n);i&&(f[`aria-rowcount`]=t.collection.size+t.collection.headerRows.length),t.treeColumn!=null&&(f.role=`treegrid`);let{column:p,direction:m}=t.sortDescriptor||{},h=hT(MJ(AJ),`@react-aria/table`),g=(0,x.useMemo)(()=>{let e=t.collection.columns.find(e=>e.key===p)?.textValue??``;return m&&p?h.format(`${m}Sort`,{columnName:e}):void 0},[m,p,t.collection.columns]),_=BA(g);return jA(()=>{g&&XD(g,`assertive`,500)},[g]),{gridProps:W(f,_,{"aria-describedby":[_[`aria-describedby`],f[`aria-describedby`]].filter(Boolean).join(` `)})}}function PJ(e,t,n){let{node:r,isVirtualized:i,focusMode:a,allowsArrowNavigation:o,shouldSelectOnPressUp:s,onAction:c}=e,{direction:l}=iT(),{keyboardDelegate:u,actions:{onCellAction:d},keyboardNavigationBehavior:f}=Uq.get(t),p=a??(f===`tab`?`cell`:`child`),m=(0,x.useRef)(null),h=(0,x.useRef)(null),g=()=>{if(n.current){let e=oL(n.current);if(p===`child`){let i=BS(kS(n.current));if(HS(n.current)&&n.current!==i)return;let a=kS(n.current);if(!i||i===a.body||i===n.current){let e=h.current;if(e&&m.current===r.key&&zS(n.current,e)){GT(e);return}}let o=t.selectionManager.childFocusStrategy===`last`?FJ(e):e.firstChild();if(o){GT(o);return}}(m.current!=null&&r.key!==m.current||!HS(n.current))&&GT(n.current)}},{itemProps:_,isPressed:v}=wL({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:i,focus:g,shouldSelectOnPressUp:s,onAction:d?()=>d(r.key):c,isDisabled:t.collection.size===0}),y=W(_,{role:`gridcell`,onKeyDownCapture:f!==`tab`||o?e=>{let i=BS(kS(n.current));if(!zS(e.currentTarget,K(e))||t.isKeyboardNavigationDisabled||!n.current||!i)return;let a=oL(n.current);switch(a.currentNode=i,e.key){case`ArrowLeft`:{let t=l===`rtl`?a.nextNode():a.previousNode();if(p===`child`&&t===n.current&&(t=null),e.preventDefault(),e.stopPropagation(),t)GT(t),LA(t,{containingElement:NA(n.current)});else{if(u.getKeyLeftOf?.(r.key)!==r.key){n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent));break}p===`cell`&&l===`rtl`?(GT(n.current),LA(n.current,{containingElement:NA(n.current)})):(a.currentNode=n.current,t=l===`rtl`?a.firstChild():FJ(a),t&&(GT(t),LA(t,{containingElement:NA(n.current)})))}break}case`ArrowRight`:{let t=l===`rtl`?a.previousNode():a.nextNode();if(p===`child`&&t===n.current&&(t=null),e.preventDefault(),e.stopPropagation(),t)GT(t),LA(t,{containingElement:NA(n.current)});else{if(u.getKeyRightOf?.(r.key)!==r.key){n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent));break}p===`cell`&&l===`ltr`?(GT(n.current),LA(n.current,{containingElement:NA(n.current)})):(a.currentNode=n.current,t=l===`rtl`?FJ(a):a.firstChild(),t&&(GT(t),LA(t,{containingElement:NA(n.current)})))}break}case`ArrowUp`:case`ArrowDown`:!e.altKey&&zS(n.current,K(e))&&(e.stopPropagation(),e.preventDefault(),n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent)))}}:void 0,onKeyDown:f===`tab`?e=>{let r=BS(kS(n.current));if(zS(e.currentTarget,K(e))&&!t.isKeyboardNavigationDisabled&&n.current&&r){if(f===`tab`&&K(e)!==n.current&&e.key!==`Tab`)e.stopPropagation();else if(e.key===`Tab`&&f===`tab`){let t=oL(n.current,{tabbable:!0});t.currentNode=r,(e.shiftKey?t.previousNode():t.nextNode())&&e.stopPropagation()}}}:void 0,"aria-colspan":r.colSpan,"aria-colindex":r.colIndex==null?void 0:r.colIndex+1,colSpan:i?void 0:r.colSpan,onFocus:e=>{if(m.current=r.key,K(e)!==n.current){let i=K(e);n.current&&zS(n.current,i)&&(h.current=i),XC()||t.selectionManager.setFocusedKey(r.key)}else p===`child`&&e.relatedTarget&&zS(n.current,e.relatedTarget)||requestAnimationFrame(()=>{p===`child`&&BS(kS(n.current))===n.current&&g()})},...p===`child`&&f===`tab`?{tabIndex:-1}:{}});return i&&(y[`aria-colindex`]=(r.colIndex??r.index)+1),s&&y.tabIndex!=null&&y.onPointerDown==null&&(y.onPointerDown=e=>{let t=e.currentTarget,n=t.getAttribute(`tabindex`);t.removeAttribute(`tabindex`),requestAnimationFrame(()=>{n!=null&&t.setAttribute(`tabindex`,n)})}),{gridCellProps:y,isPressed:v}}function FJ(e){let t=null,n=null;do n=e.lastChild(),n&&(t=n);while(n);return t}function IJ(e){return e&&e.__esModule?e.default:e}function LJ(e,t,n){let{node:r}=e,i=r.props.allowsSorting,{gridCellProps:a}=PJ({focusMode:`child`,...e},t,n),o=r.props.isSelectionCell&&t.selectionManager.selectionMode===`single`,{pressProps:s,isPressed:c}=nD({isDisabled:!i||o,onPress(){t.sort(r.key)},ref:n}),{focusableProps:l}=dE({},n),u,d=t.sortDescriptor?.column===r.key,f=t.sortDescriptor?.direction;r.props.allowsSorting&&!yC()&&(u=d?f:`none`);let p=hT(IJ(AJ),`@react-aria/table`),m;i&&(m=`${p.format(`sortable`)}`,d&&f&&yC()&&(m=`${m}, ${p.format(f)}`));let h=BA(m),g=t.collection.size===0;return(0,x.useEffect)(()=>{g&&t.selectionManager.focusedKey===r.key&&t.selectionManager.setFocusedKey(null)},[g,t.selectionManager,r.key]),{columnHeaderProps:{...W(l,a,s,h,g?{tabIndex:-1}:null),role:`columnheader`,id:qq(t,r.key),"aria-colspan":r.colSpan&&r.colSpan>1?r.colSpan:void 0,"aria-sort":u},isPressed:c}}function RJ(e,t,n){let{node:r,isVirtualized:i,shouldSelectOnPressUp:a,onAction:o}=e,{actions:s,shouldSelectOnPressUp:c}=Uq.get(t),l=s.onRowAction?()=>s.onRowAction?.(r.key):o,{itemProps:u,...d}=wL({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:i,shouldSelectOnPressUp:c||a,onAction:l||r?.props?.onAction?Kx(r?.props?.onAction,l):void 0,isDisabled:t.collection.size===0}),f=t.selectionManager.isSelected(r.key),p={role:`row`,"aria-selected":t.selectionManager.selectionMode===`none`?void 0:f,"aria-disabled":d.isDisabled||void 0,...u};return i&&(p[`aria-rowindex`]=r.index+1),{rowProps:p,...d}}function zJ(e){return e&&e.__esModule?e.default:e}var BJ={expand:{ltr:`ArrowRight`,rtl:`ArrowLeft`},collapse:{ltr:`ArrowLeft`,rtl:`ArrowRight`}};function VJ(e,t,n){let{node:r,isVirtualized:i}=e,{rowProps:a,...o}=RJ(e,t,n),{direction:s}=iT();i&&t.treeColumn==null?a[`aria-rowindex`]=r.index+1+t.collection.headerRows.length:delete a[`aria-rowindex`];let c=t.treeColumn!=null&&(t.expandedKeys===`all`||t.expandedKeys.has(r.key)),l=hT(zJ(AJ),`@react-aria/table`),u=Jw({"aria-label":c?l.format(`collapse`):l.format(`expand`),"aria-labelledby":Yq(t,r.key)}),d={},f={};if(t.treeColumn!=null){let e=t.collection.getItem(r.key);if(e!=null){let n=HJ(t.collection,r),i=e.props?.hasChildRows||e.props?.UNSTABLE_childItems||n?.type!==`cell`,a=t.collection.getItem(r.parentKey),c=a.type===`tablebody`||a.type===`body`,l=HJ(t.collection,a);for(;l&&l.type!==`item`&&l.prevKey!=null;)l=t.collection.getItem(l.prevKey);d={onKeyDown:n=>{n.key===BJ.expand[s]&&t.selectionManager.focusedKey===e.key&&i&&t.expandedKeys!==`all`&&!t.expandedKeys.has(e.key)?(t.toggleKey(e.key),n.stopPropagation()):n.key===BJ.collapse[s]&&t.selectionManager.focusedKey===e.key&&(t.expandedKeys===`all`?t.expandedKeys===`all`&&(t.toggleKey(e.key),n.stopPropagation()):i&&t.expandedKeys.has(e.key)?(t.toggleKey(e.key),n.stopPropagation()):!t.expandedKeys.has(e.key)&&e.parentKey!=null&&e.level>0&&(t.selectionManager.setFocusedKey(e.parentKey),n.stopPropagation()))},"aria-expanded":i?t.expandedKeys===`all`||t.expandedKeys.has(r.key):void 0,"aria-level":e.level+1,"aria-posinset":e.index-(c?0:t.collection.columnCount)+1,"aria-setsize":l.index-(c?0:t.collection.columnCount)+1},f={isDisabled:o.isDisabled,onPress:()=>{o.isDisabled||(t.toggleKey(r.key),t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(r.key))},excludeFromTabOrder:!0,preventFocusOnPress:!0,"data-react-aria-prevent-focus":!0,...u}}}let p=kC(r.props),m=o.hasAction?p:{};return{rowProps:{...W(a,d,m),"aria-labelledby":Yq(t,r.key)},expandButtonProps:f,...o}}function HJ(e,t){return`lastChildKey`in t?t.lastChildKey==null?null:e.getItem(t.lastChildKey):Array.from(t.childNodes).findLast(e=>e.parentKey===t.key)}function UJ(e,t,n){let{node:r,isVirtualized:i}=e,a={role:`row`};return i&&t.treeColumn==null&&(a[`aria-rowindex`]=r.index+1),{rowProps:a}}function WJ(e,t,n){let{gridCellProps:r,isPressed:i}=PJ(e,t,n),a=e.node.column?.key;return a!=null&&t.collection.rowHeaderColumnKeys.has(a)&&(r.role=`rowheader`,r.id=Jq(t,e.node.parentKey,a)),{gridCellProps:r,isPressed:i}}function GJ(e){return e&&e.__esModule?e.default:e}function KJ(e,t){let{key:n}=e,{checkboxProps:r}=BG(e,t);return{checkboxProps:{...r,"aria-labelledby":`${r.id} ${Yq(t,n)}`}}}function qJ(e){let{isEmpty:t,isSelectAll:n,selectionMode:r}=e.selectionManager;return{checkboxProps:{"aria-label":hT(GJ(AJ),`@react-aria/table`).format(r===`single`?`select`:`selectAll`),isSelected:n,isDisabled:r!==`multiple`||e.collection.size===0||e.collection.rows.length===1&&e.collection.rows[0].type===`loader`,isIndeterminate:!t&&!n,onChange:()=>e.selectionManager.toggleSelectAll()}}}function JJ(){return{rowGroupProps:{role:`rowgroup`}}}function YJ(){return JJ()}var XJ=class extends MT{withExpandedKeys(e){let t=this.clone();return t.expandedKeys=e,t.frozen=this.frozen,t.rows=Array.from(t.getRows()),t}addNode(e){super.addNode(e),this.columnsDirty||=e.type===`column`,e.type===`tableheader`&&(this.head=e)}getRows(){let e=[];for(let t of this)(t.type===`tablebody`||t.type===`tablefooter`)&&e.push(...this.getChildren(t.key));return e}get body(){for(let e of this)if(e.type===`tablebody`)return e;return new hY(-2)}commit(e,t,n=!1){this.updateColumns(n),this.firstKey=e,this.lastKey=t,this.rows=[];for(let e of this.getRows()){let t=e.lastChildKey;if(t!=null){let e=this.getItem(t);for(;e&&e.type!==`cell`;)e=e.prevKey==null?null:this.getItem(e.prevKey);if(e){let t=(e.colIndex??e.index)+(e.colSpan??1);if(t!==this.columns.length&&!n)throw Error(`Cell count must match column count. Found ${t} cells and ${this.columns.length} columns.`)}}this.rows.push(e)}super.commit(e,t,n)}updateColumns(e){if(!this.columnsDirty)return;this.rowHeaderColumnKeys=new Set,this.columns=[];let t=new Map,n=e=>{e.type===`column`&&(t.set(e.key,e),e.hasChildNodes||(e.index=this.columns.length,this.columns.push(e),e.props.isRowHeader&&this.rowHeaderColumnKeys.add(e.key)));for(let t of this.getChildren(e.key))n(t)};for(let e of this.getChildren(this.head.key))n(e);if(this.headerRows=Fq(t,this.columns),this.columnsDirty=!1,this.rowHeaderColumnKeys.size===0&&this.columns.length>0&&!e)throw Error(`A table must have at least one Column with the isRowHeader prop set to true`)}get columnCount(){return this.columns.length}*[Symbol.iterator](){let e=this.firstKey;for(;e!=null;){let t=this.getItem(e);t&&(yield t),e=t?.nextKey??null}}getFirstKey(){for(let e of this)if(e.type===`tablebody`)return e.firstChildKey??null;return null}getLastKey(){let e=this.lastKey;if(e==null)return null;let t=this.getItem(e);for(;t?.lastChildKey!=null&&(t.type!==`item`||this.expandedKeys.has(t.key));)t=this.getItem(t.lastChildKey);return t?.key}getKeyAfter(e){let t=this.getItem(e);if(t?.type===`column`)return t.nextKey??null;if(!t)return null;if(t.type===`item`&&t.firstChildKey!=null&&this.expandedKeys.has(t.key)){let e=this.getItem(t.firstChildKey);for(;e;){if(e.type===`item`)return e.key;e=e.nextKey==null?null:this.getItem(e.nextKey)}}return super.getKeyAfter(e)}getKeyBefore(e){let t=this.getItem(e);if(t?.type===`column`)return t.prevKey??null;if(!t)return null;let n=null;if(t.prevKey!=null){for(t=this.getItem(t.prevKey);t&&(t.type!==`item`||this.expandedKeys.has(t.key))&&t.lastChildKey!=null;)t=this.getItem(t.lastChildKey);n=t?.key??null}return n??=t.parentKey,n!=null&&this.getItem(n)?.type===`tableheader`?null:n}getChildren(e){let t=this.getItem(e);if(!t){for(let t of this.headerRows)if(t.key===e)return t.childNodes}let n=this;return t?.type===`tablebody`||t?.type===`tablefooter`?{*[Symbol.iterator](){let e=t.firstChildKey,r=e==null?null:n.getItem(e);for(;r;){yield r;let e=n.getKeyAfter(r.key);if(r=e==null?null:n.getItem(e),r&&r.parentKey===t.parentKey)break}}}:{*[Symbol.iterator](){let t=n.getItem(e),r=t?.firstChildKey==null?null:n.getItem(t.firstChildKey);for(;r&&(yield r,r=r.nextKey==null?null:n.getItem(r.nextKey),t?.type!==`item`||r?.type===`cell`););}}}clone(){let e=super.clone();return e.headerRows=this.headerRows,e.columns=this.columns,e.rows=this.rows,e.rowHeaderColumnKeys=this.rowHeaderColumnKeys,e.head=this.head,e}getTextValue(e){let t=this.getItem(e);if(!t)return``;if(t.textValue)return t.textValue;let n=this.rowHeaderColumnKeys,r=[];for(let t of this.getChildren(e)){let e=this.columns[t.index];if(n.has(e.key)&&t.textValue&&r.push(t.textValue),r.length===n.size)break}return r.join(` `)}constructor(...e){super(...e),this.headerRows=[],this.columns=[],this.rows=[],this.rowHeaderColumnKeys=new Set,this.head=new oY(-1),this.columnsDirty=!0,this.expandedKeys=new Set}},ZJ=(0,x.createContext)(null),QJ=(0,x.createContext)(null),$J=(0,x.createContext)(null),eY=(0,x.createContext)(null),tY=(0,x.forwardRef)(function(e,t){[e,t]=SS(e,t,QJ);let n=RL(e),{selectionBehavior:r,selectionMode:i,disallowEmptySelection:a}=n,o=!!e.dragAndDropHooks?.useDraggableCollectionState,s=(0,x.useMemo)(()=>({selectionBehavior:i===`none`?null:r,selectionMode:i,disallowEmptySelection:a,allowsDragging:o}),[r,i,a,o]),c=x.createElement(aY.Provider,{value:s},x.createElement(PE,e));return x.createElement(SE,{content:c,createCollection:()=>new XJ},r=>x.createElement(iY,{props:e,forwardedRef:t,selectionState:n,collection:r}))}),nY=(0,x.forwardRef)(function(e,t){let{isVirtualized:n}=(0,x.useContext)(BE);return n?x.createElement(G.div,{...e,ref:t}):x.createElement(G.table,{...e,ref:t})}),rY={expand:{ltr:`ArrowRight`,rtl:`ArrowLeft`},collapse:{ltr:`ArrowLeft`,rtl:`ArrowRight`}};function iY({props:e,forwardedRef:t,selectionState:n,collection:r}){[e,t]=SS(e,t,CT);let{shouldUseVirtualFocus:i,disallowTypeAhead:a,filter:o,...s}=e,c=(0,x.useContext)(ZJ);t=gS((0,x.useMemo)(()=>mS(t,c?.tableRef),[t,c?.tableRef]));let[l,u]=yT(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange);r=(0,x.useMemo)(()=>r.withExpandedKeys(l),[r,l]);let d=zq({...s,collection:r,children:void 0,UNSAFE_selectionState:n,expandedKeys:l,onExpandedChange:u}),f=Bq(d,o),{isVirtualized:p,layoutDelegate:m,dropTargetDelegate:h,CollectionRoot:g}=(0,x.useContext)(BE),{dragAndDropHooks:_}=e,{gridProps:v}=NJ({...s,layoutDelegate:m,isVirtualized:p},f,t),y=f.selectionManager,b=!!_?.useDraggableCollectionState,S=!!_?.useDroppableCollectionState;(0,x.useRef)(b),(0,x.useRef)(S),(0,x.useEffect)(()=>{},[b,S]);let C,w,T,E=!1,D=null,O=(0,x.useRef)(null),{direction:k}=iT(),[A]=(0,x.useState)(()=>new jq);if(b&&_){C=_.useDraggableCollectionState({collection:f.collection,selectionManager:y,preview:_.renderDragPreview?O:void 0}),_.useDraggableCollection({},C,t);let e=_.DragPreview;D=_.renderDragPreview?x.createElement(e,{ref:O},_.renderDragPreview):null}if(S&&_){w=_.useDroppableCollectionState({collection:f.collection,selectionManager:y});let e=new yL({collection:f.collection,disabledKeys:y.disabledKeys,disabledBehavior:y.disabledBehavior,ref:t,layoutDelegate:m}),n=_.dropTargetDelegate||h||new _.ListDropTargetDelegate(r.rows,t);A.setup(n,d,k),T=_.useDroppableCollection({keyboardDelegate:e,dropTargetDelegate:A,onDropActivate:e=>{if(e.target.type===`item`){let t=e.target.key,n=d.collection.getItem(t),r=l.has(t);n&&n.hasChildNodes&&(!r||_?.isVirtualDragging?.())&&d.toggleKey(t)}},onKeyDown:e=>{let t=w?.target;if(t&&t.type===`item`&&t.dropPosition===`on`){let n=d.collection.getItem(t.key);(e.key===rY.expand[k]&&n?.hasChildNodes&&!d.expandedKeys.has(t.key)||e.key===rY.collapse[k]&&n?.hasChildNodes&&d.expandedKeys.has(t.key))&&d.toggleKey(t.key)}}},w,t),E=w.isDropTarget({type:`root`})}let{focusProps:j,isFocused:M,isFocusVisible:N}=fD(),P=yS({...e,children:void 0,defaultClassName:`react-aria-Table`,values:{isDropTarget:E,isFocused:M,isFocusVisible:N,state:f}}),F=!(!b||C?.isDisabled),ee=P.style,I=null;c&&(I=c.useTableColumnResizeState({tableWidth:c.tableWidth},f),p||(ee={...ee,tableLayout:`fixed`,width:`min-content`}));let te=q(e,{global:!0});return x.createElement(vS,{values:[[$J,f],[eY,I],[DI,{dragAndDropHooks:_,dragState:C,dropState:w}],[OI,{render:TY}],[CT,null],[wT,null]]},x.createElement(JI,null,x.createElement(nY,{...W(te,P,v,j,T?.collectionProps),style:ee,ref:t,slot:e.slot||void 0,onScroll:e.onScroll,"data-allows-dragging":F||void 0,"data-drop-target":E||void 0,"data-focused":M||void 0,"data-focus-visible":N||void 0},x.createElement(FI,null,x.createElement(g,{collection:f.collection,scrollRef:c?.scrollRef??t,persistedKeys:jI(y,_,w)})))),D)}var aY=(0,x.createContext)(null),oY=class extends ET{static{this.type=`tableheader`}},sY=(0,x.forwardRef)(function(e,t){let{isVirtualized:n}=(0,x.useContext)(BE);return n?x.createElement(G.div,{...e,ref:t}):x.createElement(G.thead,{...e,ref:t})}),cY=jE(oY,(e,t)=>{let n=(0,x.useContext)($J).collection,r=IT({items:n.headerRows,children:(0,x.useCallback)(e=>{switch(e.type){case`headerrow`:return x.createElement(uY,{item:e});default:throw Error(`Unsupported node type in TableHeader: `+e.type)}},[])}),{rowGroupProps:i}=YJ(),{hoverProps:a,isHovered:o}=vD({onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),s=yS({...e,children:void 0,defaultClassName:`react-aria-TableHeader`,values:{isHovered:o}});return x.createElement(sY,{...W(q(e,{global:!0}),i,a),...s,ref:t,"data-hovered":o||void 0},r)},e=>x.createElement(PE,{dependencies:e.dependencies,items:e.columns},e.children)),lY=(0,x.forwardRef)(function(e,t){let{isVirtualized:n}=(0,x.useContext)(BE);return n?x.createElement(`div`,{...e,ref:t}):x.createElement(`tr`,{...e,ref:t})});function uY({item:e}){let t=(0,x.useRef)(null),n=(0,x.useContext)($J),{isVirtualized:r,CollectionBranch:i}=(0,x.useContext)(BE),{rowProps:a}=UJ({node:e,isVirtualized:r},n,t),{checkboxProps:o}=qJ(n);return x.createElement(lY,{...a,ref:t},x.createElement(vS,{values:[[yj,{slots:{selection:o}}],[bj,{slots:{selection:o}}]]},x.createElement(i,{collection:n.collection,parent:e})))}var dY=class extends ET{static{this.type=`column`}},fY=(0,x.forwardRef)(function(e,t){let{isVirtualized:n}=(0,x.useContext)(BE);return n?x.createElement(G.div,{...e,ref:t}):x.createElement(G.th,{...e,ref:t})}),pY=AE(dY,(e,t,n)=>{let r=gS(t),i=(0,x.useContext)($J),{isVirtualized:a}=(0,x.useContext)(BE),{columnHeaderProps:o,isPressed:s}=LJ({node:n,isVirtualized:a,focusMode:e.focusMode,allowsArrowNavigation:e.allowsArrowNavigation},i,r),{isFocused:c,isFocusVisible:l,focusProps:u}=fD(),d=(0,x.useContext)(eY),f=!1;d&&(f=d.resizingColumn===n.key);let{hoverProps:p,isHovered:m}=vD({isDisabled:!e.allowsSorting}),h=yS({...e,id:void 0,children:n.rendered,defaultClassName:`react-aria-Column`,values:{isHovered:m,isPressed:s,isFocused:c,isFocusVisible:l,allowsSorting:n.props.allowsSorting,sortDirection:i.sortDescriptor?.column===n.key?i.sortDescriptor.direction:void 0,isResizing:f,startResize:()=>{if(d)d.startResize(n.key),i.setKeyboardNavigationDisabled(!0);else throw Error(`Wrap your <Table> in a <ResizableTableContainer> to enable column resizing`)},sort:e=>{i.sort(n.key,e)}}}),g=h.style;d&&(g={...g,width:d.getColumnWidth(n.key)});let _=q(e,{global:!0});return delete _.id,x.createElement(fY,{...W(_,o,u,p),...h,style:g,ref:r,"data-hovered":m||void 0,"data-pressed":s||void 0,"data-focused":c||void 0,"data-focus-visible":l||void 0,"data-resizing":f||void 0,"data-allows-sorting":n.props.allowsSorting||void 0,"data-sort-direction":i.sortDescriptor?.column===n.key?i.sortDescriptor.direction:void 0},x.createElement(vS,{values:[[mY,{column:n,triggerRef:r}],[BE,LE]]},h.children))}),mY=(0,x.createContext)(null),hY=class extends DT{static{this.type=`tablebody`}},gY=(0,x.forwardRef)(function(e,t){let{isVirtualized:n}=(0,x.useContext)(BE);return n?x.createElement(G.div,{...e,ref:t}):x.createElement(G.tbody,{...e,ref:t})}),_Y=jE(hY,(e,t,n)=>{let r=(0,x.useContext)($J),{isVirtualized:i}=(0,x.useContext)(BE),a=r.collection,{CollectionBranch:o}=(0,x.useContext)(BE),{dragAndDropHooks:s,dropState:c}=(0,x.useContext)(DI),l=!!s?.useDroppableCollectionState&&!c?.isDisabled,u=l&&!!c&&(c.isDropTarget({type:`root`})??!1),d=a.size===0,f={isDropTarget:u,isEmpty:d},p=yS({...e,id:void 0,children:void 0,defaultClassName:`react-aria-TableBody`,values:f}),m,h=a.columnCount;if(d&&e.renderEmptyState&&r){let t={},n={},r={};i?(n[`aria-colspan`]=h,r={display:`contents`}):n.colSpan=h,m=x.createElement(bY,{role:`row`,...t,style:r},x.createElement(CY,{role:`rowheader`,...n,style:r},e.renderEmptyState(f)))}let{rowGroupProps:g}=YJ(),_=q(e,{global:!0});return x.createElement(gY,{...W(_,p,g),ref:t,"data-empty":d||void 0},l&&x.createElement(AY,null),x.createElement(o,{collection:a,parent:n,renderDropIndicator:AI(s,c)}),m)});(class extends DT{static{this.type=`tablefooter`}});var vY=(0,x.createContext)({isFocusVisibleWithinRow:!1}),yY=class extends ET{static{this.type=`item`}filter(e,t,n){let r=e.getChildren(this.key);for(let i of r)if(n(i.textValue,i)){let n=this.clone();return t.addDescendants(n,e),n}return null}},bY=(0,x.forwardRef)(function(e,t){let{isVirtualized:n}=(0,x.useContext)(BE);return n?x.createElement(G.div,{...e,ref:t}):x.createElement(G.tr,{...e,ref:t})}),xY=jE(yY,(e,t,n)=>{let r=gS(t),i=(0,x.useContext)($J),{dragAndDropHooks:a,dragState:o,dropState:s}=(0,x.useContext)(DI),{isVirtualized:c,CollectionBranch:l}=(0,x.useContext)(BE),u=o&&!(o.isDisabled||o.selectionManager.isDisabled(n.key)),{rowProps:d,expandButtonProps:f,...p}=VJ({node:n,shouldSelectOnPressUp:!!o,isVirtualized:c},i,r),{isFocused:m,isFocusVisible:h,focusProps:g}=fD(),{isFocusVisible:_,focusProps:v}=fD({within:!0}),{hoverProps:y,isHovered:b}=vD({isDisabled:!p.allowsSelection&&!p.hasAction&&!u,onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),{checkboxProps:S}=KJ({key:n.key},i),C;o&&a&&(C=a.useDraggableItem({key:n.key,hasDragButton:!0},o));let w,T=(0,x.useRef)(null),{visuallyHiddenProps:E}=HA();s&&a&&(w=a.useDropIndicator({target:{type:`item`,key:n.key,dropPosition:`on`}},s,T));let D=(0,x.useRef)(null);(0,x.useEffect)(()=>{o&&D.current},[]);let O=o&&o.isDragging(n.key),{children:k,...A}=e,j=e.hasChildItems||i.collection.getItem(n.lastChildKey)?.type!==`cell`,M=j&&i.expandedKeys.has(n.key),N=yS({...A,id:void 0,defaultClassName:`react-aria-Row`,defaultStyle:{"--table-row-level":n.level+1},values:{...p,state:i,isHovered:b,isFocused:m,isFocusVisible:h,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,isDragging:O,isDropTarget:w?.isDropTarget,isFocusVisibleWithin:_,id:n.key,hasChildItems:j,isExpanded:M,level:n.level+1}}),P=q(e,{global:!0});return delete P.id,delete P.onClick,x.createElement(x.Fragment,null,w&&!w.isHidden&&x.createElement(bY,{role:`row`,style:{height:0}},x.createElement(CY,{role:`gridcell`,colSpan:i.collection.columnCount,style:{padding:0}},x.createElement(`div`,{role:`button`,...E,...w.dropIndicatorProps,ref:T}))),x.createElement(bY,{...W(P,N,d,g,y,C?.dragProps,v),ref:r,"data-disabled":p.isDisabled||void 0,"data-selected":p.isSelected||void 0,"data-hovered":b||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":h||void 0,"data-pressed":p.isPressed||void 0,"data-dragging":O||void 0,"data-drop-target":w?.isDropTarget||void 0,"data-selection-mode":i.selectionManager.selectionMode===`none`?void 0:i.selectionManager.selectionMode,"data-focus-visible-within":_||void 0,"data-expanded":M||void 0,"data-has-child-items":j||void 0,"data-level":n.level+1},x.createElement(vS,{values:[[yj,{slots:{[_S]:{},selection:S}}],[bj,{slots:{[_S]:{},selection:S}}],[eO,{slots:{[_S]:{},chevron:f,drag:{...C?.dragButtonProps,ref:D,style:{pointerEvents:`none`}}}}],[II,{isSelected:p.isSelected}],[vY,{isFocusVisibleWithinRow:_}]]},x.createElement(l,{collection:i.collection,parent:n}))))},e=>{if(e.id==null&&typeof e.children==`function`)throw Error(`No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.`);let t=[e.value].concat(e.dependencies);return x.createElement(PE,{dependencies:t,items:e.columns,idScope:e.id},e.children)}),SY=class extends ET{static{this.type=`cell`}},CY=(0,x.forwardRef)(function(e,t){let{isVirtualized:n}=(0,x.useContext)(BE);return n?x.createElement(G.div,{...e,ref:t}):x.createElement(G.td,{...e,ref:t})}),wY=AE(SY,(e,t,n)=>{let r=gS(t),i=(0,x.useContext)($J),{dragState:a}=(0,x.useContext)(DI),{isVirtualized:o}=(0,x.useContext)(BE);n.column=i.collection.columns[n.index];let{gridCellProps:s,isPressed:c}=WJ({node:n,shouldSelectOnPressUp:!!a,isVirtualized:o,focusMode:e.focusMode,allowsArrowNavigation:e.allowsArrowNavigation},i,r),{isFocused:l,isFocusVisible:u,focusProps:d}=fD(),{hoverProps:f,isHovered:p}=vD({}),{isFocusVisibleWithinRow:m}=(0,x.useContext)(vY),h=n.parentKey!=null&&i.selectionManager.isSelected(n.parentKey),g=n.colIndex||n.index,_=i.collection.getItem(n.parentKey),v=_.props.hasChildItems||i.collection.getItem(_.lastChildKey)?.type!==`cell`,y=v&&i.expandedKeys.has(n.parentKey),b=i.selectionManager.isDisabled(n.parentKey),S=yS({...e,id:void 0,defaultClassName:`react-aria-Cell`,values:{isFocused:l,isFocusVisible:u,isFocusVisibleWithinRow:m,isPressed:c,isHovered:p,isSelected:h,id:n.key,columnIndex:g,hasChildItems:v,isExpanded:y,isDisabled:b,level:_.level+1,isTreeColumn:n.column.key===i.treeColumn}}),C=q(e,{global:!0});return delete C.id,x.createElement(CY,{...W(C,S,s,d,f),ref:r,"data-focused":l||void 0,"data-focus-visible":u||void 0,"data-focus-visible-within-row":m||void 0,"data-pressed":c||void 0,"data-selected":h||void 0,"data-column-index":g,"data-expanded":y||void 0,"data-has-child-items":v||void 0,"data-level":_.level+1,"data-tree-column":n.column.key===i.treeColumn||void 0,"data-disabled":b||void 0},x.createElement(BE.Provider,{value:LE},S.children))});function TY(e,t){t=gS(t);let{dragAndDropHooks:n,dropState:r}=(0,x.useContext)(DI),i=(0,x.useRef)(null),{dropIndicatorProps:a,isHidden:o,isDropTarget:s}=n.useDropIndicator(e,r,i);if(o)return null;let c=r&&e.target.type===`item`?(r.collection.getItem(e.target.key)?.level||0)+1:1;return x.createElement(kY,{...e,dropIndicatorProps:a,isDropTarget:s,buttonRef:i,level:c,ref:t})}var EY=(0,x.forwardRef)(function(e,t){let{isVirtualized:n}=(0,x.useContext)(BE);return n?x.createElement(G.div,{...e,ref:t}):x.createElement(G.tr,{...e,ref:t})}),DY=(0,x.forwardRef)(function(e,t){let{isVirtualized:n}=(0,x.useContext)(BE);return n?x.createElement(G.div,{...e,ref:t}):x.createElement(G.td,{...e,ref:t})});function OY(e,t){let{dropIndicatorProps:n,isDropTarget:r,buttonRef:i,level:a,...o}=e,s=(0,x.useContext)($J),{visuallyHiddenProps:c}=HA(),l=yS({...o,defaultClassName:`react-aria-DropIndicator`,defaultStyle:{"--table-row-level":a+1},values:{isDropTarget:r}});return x.createElement(EY,{...q(e,{global:!0}),...l,role:`row`,ref:t,"data-drop-target":r||void 0,"aria-level":a},x.createElement(DY,{role:`gridcell`,colSpan:s.collection.columnCount,style:{padding:0}},x.createElement(`div`,{...c,role:`button`,...n,ref:i}),l.children))}var kY=(0,x.forwardRef)(OY);function AY(){let e=(0,x.useContext)($J),{dragAndDropHooks:t,dropState:n}=(0,x.useContext)(DI),r=(0,x.useRef)(null),{dropIndicatorProps:i}=t.useDropIndicator({target:{type:`root`}},n,r),a=n.isDropTarget({type:`root`}),{visuallyHiddenProps:o}=HA();return!a&&i[`aria-hidden`]?null:x.createElement(bY,{role:`row`,"aria-hidden":i[`aria-hidden`],style:{height:0}},x.createElement(CY,{role:`gridcell`,colSpan:e.collection.columnCount,style:{padding:0}},x.createElement(`div`,{role:`button`,...o,...i,ref:r})))}AE(kT,function(e,t,n){let r=(0,x.useContext)($J),{isVirtualized:i}=(0,x.useContext)(BE),{isLoading:a,onLoadMore:o,scrollOffset:s,...c}=e,l=r.collection.columns.length,u=(0,x.useRef)(null);qL((0,x.useMemo)(()=>({onLoadMore:o,collection:r?.collection,sentinelRef:u,scrollOffset:s}),[o,s,r?.collection]),u);let d=yS({...c,id:void 0,children:n.rendered,defaultClassName:`react-aria-TableLoadingIndicator`,defaultStyle:{"--table-row-level":n.level+1},values:void 0}),f={},p={},m={};return i?(p[`aria-colspan`]=l,m={display:`contents`}):p.colSpan=l,x.createElement(x.Fragment,null,x.createElement(bY,{style:{height:0},inert:FL(!0)},x.createElement(CY,{style:{padding:0,border:0}},x.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:u,style:{position:`relative`,height:1,width:1}}))),a&&d.children&&x.createElement(bY,{...W(q(e,{global:!0}),f),...d,role:`row`,ref:t,"aria-level":n.level+1,"data-level":n.level+1},x.createElement(CY,{role:`rowheader`,...p,style:m},d.children)))});var jY=new WeakMap;function MY(e,t,n){return e?(typeof t==`string`&&(t=t.replace(/\s+/g,``)),`${jY.get(e)}-${n}-${t}`):``}function NY(e,t,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:a}=e,{selectionManager:o,selectedKey:s}=t,c=r===s,l=i||t.isDisabled||t.selectionManager.isDisabled(r),u=t.collection.getItem(r),{itemProps:d,isPressed:f}=wL({selectionManager:o,key:r,ref:n,isDisabled:l,shouldSelectOnPressUp:a??u?.props.href!=null,linkBehavior:`selection`}),p=MY(t,r,`tab`),m=MY(t,r,`tabpanel`),{tabIndex:h}=d,g=q(u?.props,{labelable:!0});delete g.id;let _=AC(u?.props),{focusableProps:v}=dE({...u?.props,isDisabled:l},n);return{tabProps:W(g,v,_,d,{id:p,"aria-selected":c,"aria-disabled":l||void 0,"aria-controls":c?m:void 0,tabIndex:l?void 0:h,role:`tab`}),isSelected:c,isDisabled:l,isPressed:f}}function PY(e,t,n){let r=AG(n)?void 0:0,i=MY(t,e.id??t?.selectedKey,`tabpanel`);return{tabPanelProps:W(Jw({...e,id:i,"aria-labelledby":MY(t,t?.selectedKey,`tab`)}),{tabIndex:r,role:`tabpanel`,"aria-describedby":e[`aria-describedby`],"aria-details":e[`aria-details`]})}}var FY=class{constructor(e,t,n,r=new Set){this.collection=e,this.flipDirection=t===`rtl`,this.disabledKeys=r,this.tabDirection=n===`horizontal`}getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){return this.disabledKeys.has(e)||!!this.collection.getItem(e)?.props?.isDisabled}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do t=this.collection.getKeyAfter(t),t??=this.collection.getFirstKey();while(t!=null&&this.isDisabled(t)&&t!==e);return t}getPreviousKey(e){let t=e;do t=this.collection.getKeyBefore(t),t??=this.collection.getLastKey();while(t!=null&&this.isDisabled(t)&&t!==e);return t}};function IY(e,t,n){let{orientation:r=`horizontal`,keyboardActivation:i=`automatic`}=e,{collection:a,selectionManager:o,disabledKeys:s}=t,{direction:c}=iT(),{collectionProps:l}=_L({ref:n,selectionManager:o,keyboardDelegate:(0,x.useMemo)(()=>new FY(a,c,r,s),[a,s,r,c]),selectOnFocus:i===`automatic`,disallowEmptySelection:!0,scrollRef:n,linkBehavior:`selection`}),u=dS();return jY.set(t,u),{tabListProps:{...W(l,Jw({...e,id:u})),role:`tablist`,"aria-orientation":r,tabIndex:void 0}}}function LY(e){let[t,n]=yT(e.selectedKey,e.defaultSelectedKey??null,e.onSelectionChange),r=(0,x.useMemo)(()=>t==null?[]:[t],[t]),{collection:i,disabledKeys:a,selectionManager:o}=WL({...e,selectionMode:`single`,disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:r,onSelectionChange:r=>{if(r===`all`)return;let i=r.values().next().value??null;i===t&&e.onSelectionChange&&e.onSelectionChange(i),n(i)}});return{collection:i,disabledKeys:a,selectionManager:o,selectedKey:t,setSelectedKey:n,selectedItem:t==null?null:i.getItem(t)}}function RY(e){let t=LY({...e,onSelectionChange:e.onSelectionChange?t=>{t!=null&&e.onSelectionChange?.(t)}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:e.defaultSelectedKey??zY(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)??void 0}),{selectionManager:n,collection:r,selectedKey:i}=t,a=(0,x.useRef)(i);return(0,x.useEffect)(()=>{let o=i;e.selectedKey==null&&(n.isEmpty||o==null||!r.getItem(o))&&(o=zY(r,t.disabledKeys),o!=null&&n.setSelectedKeys([o])),(o!=null&&n.focusedKey==null||!n.isFocused&&o!==a.current)&&n.setFocusedKey(o),a.current=o}),{...t,isDisabled:e.isDisabled||!1}}function zY(e,t){let n=null;if(e){for(n=e.getFirstKey();n!=null&&(t.has(n)||e.getItem(n)?.props?.isDisabled)&&n!==e.getLastKey();)n=e.getKeyAfter(n);n!=null&&(t.has(n)||e.getItem(n)?.props?.isDisabled)&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}var BY=(0,x.createContext)(null),VY=(0,x.createContext)(null),HY=(0,x.forwardRef)(function(e,t){[e,t]=SS(e,t,BY);let{children:n,orientation:r=`horizontal`}=e;return n=(0,x.useMemo)(()=>typeof n==`function`?n({orientation:r,defaultChildren:null}):n,[n,r]),x.createElement(SE,{content:n},n=>x.createElement(UY,{props:e,collection:n,tabsRef:t}))});function UY({props:e,tabsRef:t,collection:n}){let{orientation:r=`horizontal`}=e,i=RY({...e,collection:n,children:void 0}),{focusProps:a,isFocused:o,isFocusVisible:s}=fD({within:!0}),c=(0,x.useMemo)(()=>({orientation:r,isFocusWithin:o,isFocusVisible:s}),[r,o,s]),l=yS({...e,defaultClassName:`react-aria-Tabs`,values:c}),u=q(e,{global:!0});return x.createElement(G.div,{...W(u,l,a),ref:t,slot:e.slot||void 0,"data-focused":o||void 0,"data-orientation":r,"data-focus-visible":s||void 0,"data-disabled":i.isDisabled||void 0},x.createElement(vS,{values:[[BY,e],[VY,i]]},l.children))}var WY=(0,x.forwardRef)(function(e,t){return(0,x.useContext)(VY)?x.createElement(GY,{props:e,forwardedRef:t}):x.createElement(PE,e)});function GY({props:e,forwardedRef:t}){let n=(0,x.useContext)(VY),{CollectionRoot:r}=(0,x.useContext)(BE),{orientation:i=`horizontal`,keyboardActivation:a=`automatic`}=xS(BY),o=gS(t),{tabListProps:s}=IY({...e,orientation:i,keyboardActivation:a},n,o),c=yS({...e,children:null,defaultClassName:`react-aria-TabList`,values:{orientation:i,state:n}}),l=q(e,{global:!0});return delete l.id,x.createElement(G.div,{...W(l,c,s),ref:o,"data-orientation":i||void 0},x.createElement(FI,null,x.createElement(r,{collection:n.collection,persistedKeys:VE(n.selectionManager.focusedKey)})))}var KY=AE(class extends ET{static{this.type=`item`}},(e,t,n)=>{let r=(0,x.useContext)(VY),i=gS(t),{tabProps:a,isSelected:o,isDisabled:s,isPressed:c}=NY({key:n.key,...e},r,i),{focusProps:l,isFocused:u,isFocusVisible:d}=fD(),{hoverProps:f,isHovered:p}=vD({isDisabled:s,onHoverStart:e.onHoverStart,onHoverEnd:e.onHoverEnd,onHoverChange:e.onHoverChange}),m=yS({...e,id:void 0,children:n.rendered,defaultClassName:`react-aria-Tab`,values:{isSelected:o,isDisabled:s,isFocused:u,isFocusVisible:d,isPressed:c,isHovered:p}}),h=n.props.href?G.a:G.div,g=q(e,{global:!0});return delete g.id,delete g.onClick,x.createElement(h,{...W(g,m,a,l,f),ref:i,"data-selected":o||void 0,"data-disabled":s||void 0,"data-focused":u||void 0,"data-focus-visible":d||void 0,"data-pressed":c||void 0,"data-hovered":p||void 0},x.createElement(II.Provider,{value:{isSelected:o}},m.children))}),qY=mE(function(e,t){let n=(0,x.useContext)(VY),r=gS(t),i=n.selectedKey===e.id,[a,o]=(0,x.useState)(n.selectedKey==null?null:i);a==null&&n.selectedKey!=null?o(i):!i&&a&&o(!1);let s=dB(r,i);return!i&&!e.shouldForceMount&&!s?null:x.createElement(JY,{...e,tabPanelRef:r,isInitiallySelected:a||!1,isExiting:s})});function JY(e){let t=(0,x.useContext)(VY),{id:n,tabPanelRef:r,isInitiallySelected:i,isExiting:a,...o}=e,{tabPanelProps:s}=PY(e,t,r),{focusProps:c,isFocused:l,isFocusVisible:u}=fD(),d=t.selectedKey===e.id,f=uB(r)&&!i,p=yS({...e,defaultClassName:`react-aria-TabPanel`,values:{isFocused:l,isFocusVisible:u,isInert:FL(!d),isEntering:f,isExiting:a,state:t}}),m=q(o,{global:!0});delete m.id;let h=d?W(m,s,c,p):W(m,p);return x.createElement(G.div,{...h,ref:r,"data-focused":l||void 0,"data-focus-visible":u||void 0,inert:FL(!d||e.inert),"data-inert":d?void 0:`true`,"data-entering":f||void 0,"data-exiting":a||void 0},x.createElement(vS,{values:[[BY,null],[VY,null]]},x.createElement(BE.Provider,{value:LE},p.children)))}var YY=(0,x.createContext)({}),XY=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i},ZY=(0,x.forwardRef)(function(e,t){[e,t]=SS(e,t,YY);let{hoverProps:n,isHovered:r}=vD(e),{isFocused:i,isFocusVisible:a,focusProps:o}=fD({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e[`aria-invalid`]&&e[`aria-invalid`]!==`false`,c=yS({...e,values:{isHovered:r,isFocused:i,isFocusVisible:a,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:`react-aria-TextArea`});return x.createElement(G.textarea,{...W(XY(e),o,n),...c,ref:t,"data-focused":i||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":a||void 0,"data-invalid":s||void 0})}),QY=(0,x.createContext)(null),$Y=mE(function(e,t){[e,t]=SS(e,t,QY);let{validationBehavior:n}=xS(ij)||{},r=e.validationBehavior??n??`native`,i=(0,x.useRef)(null);[e,i]=SS(e,i,wT);let[a,o]=CS(!e[`aria-label`]&&!e[`aria-labelledby`]),[s,c]=(0,x.useState)(`input`),{labelProps:l,inputProps:u,descriptionProps:d,errorMessageProps:f,...p}=kN({...wS(e),inputElementType:s,label:o,validationBehavior:r},i),m=(0,x.useCallback)(e=>{i.current=e,e&&c(e instanceof HTMLTextAreaElement?`textarea`:`input`)},[i]),h=yS({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:p.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:`react-aria-TextField`}),g=q(e,{global:!0});return delete g.id,x.createElement(G.div,{...g,...h,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":p.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},x.createElement(vS,{values:[[xD,{...l,ref:a}],[EN,{...u,ref:m}],[YY,{...u,ref:m}],[wN,{role:`presentation`,isInvalid:p.isInvalid,isDisabled:e.isDisabled||!1}],[oO,{slots:{description:d,errorMessage:f}}],[WA,p]]},h.children))}),eX={};eX={close:`إغلاق`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{625}\u{634}\u{639}\u{627}\u{631}`,other:()=>`${t.number(e.count)} \u{625}\u{634}\u{639}\u{627}\u{631}\u{627}\u{62A}`})}.`};var tX={};tX={close:`Затвори`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{438}\u{437}\u{432}\u{435}\u{441}\u{442}\u{438}\u{435}`,other:()=>`${t.number(e.count)} \u{438}\u{437}\u{432}\u{435}\u{441}\u{442}\u{438}\u{44F}`})}.`};var nX={};nX={close:`Zavřít`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ozn\xe1men\xed`,other:()=>`${t.number(e.count)} ozn\xe1men\xed`})}.`};var rX={};rX={close:`Luk`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} besked`,other:()=>`${t.number(e.count)} beskeder`})}.`};var iX={};iX={close:`Schließen`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} Benachrichtigung`,other:()=>`${t.number(e.count)} Benachrichtigungen`})}.`};var aX={};aX={close:`Κλείσιμο`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{3B5}\u{3B9}\u{3B4}\u{3BF}\u{3C0}\u{3BF}\u{3AF}\u{3B7}\u{3C3}\u{3B7}`,other:()=>`${t.number(e.count)} \u{3B5}\u{3B9}\u{3B4}\u{3BF}\u{3C0}\u{3BF}\u{3B9}\u{3AE}\u{3C3}\u{3B5}\u{3B9}\u{3C2}`})}.`};var oX={};oX={close:`Close`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notification`,other:()=>`${t.number(e.count)} notifications`})}.`};var sX={};sX={close:`Cerrar`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notificaci\xf3n`,other:()=>`${t.number(e.count)} notificaciones`})}.`};var cX={};cX={close:`Sule`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} teatis`,other:()=>`${t.number(e.count)} teatist`})}.`};var lX={};lX={close:`Sulje`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ilmoitus`,other:()=>`${t.number(e.count)} ilmoitusta`})}.`};var uX={};uX={close:`Fermer`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notification`,other:()=>`${t.number(e.count)} notifications`})}.`};var dX={};dX={close:`סגור`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{5D4}\u{5EA}\u{5E8}\u{5D0}\u{5D4}`,other:()=>`${t.number(e.count)} \u{5D4}\u{5EA}\u{5E8}\u{5D0}\u{5D5}\u{5EA}`})}.`};var fX={};fX={close:`Zatvori`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} obavijest`,other:()=>`${t.number(e.count)} obavijesti`})}.`};var pX={};pX={close:`Bezárás`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \xe9rtes\xedt\xe9s`,other:()=>`${t.number(e.count)} \xe9rtes\xedt\xe9s`})}.`};var mX={};mX={close:`Chiudi`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notifica`,other:()=>`${t.number(e.count)} notifiche`})}.`};var hX={};hX={close:`閉じる`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{500B}\u{306E}\u{901A}\u{77E5}`,other:()=>`${t.number(e.count)} \u{500B}\u{306E}\u{901A}\u{77E5}`})}\u{3002}`};var gX={};gX={close:`닫기`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}\u{AC1C} \u{C54C}\u{B9BC}`,other:()=>`${t.number(e.count)}\u{AC1C} \u{C54C}\u{B9BC}`})}.`};var _X={};_X={close:`Uždaryti`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} prane\u{161}imas`,other:()=>`${t.number(e.count)} prane\u{161}imai`})}.`};var vX={};vX={close:`Aizvērt`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} pazi\u{146}ojums`,other:()=>`${t.number(e.count)} pazi\u{146}ojumi`})}.`};var yX={};yX={close:`Lukk`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} varsling`,other:()=>`${t.number(e.count)} varsler`})}.`};var bX={};bX={close:`Sluiten`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} melding`,other:()=>`${t.number(e.count)} meldingen`})}.`};var xX={};xX={close:`Zamknij`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} powiadomienie`,few:()=>`${t.number(e.count)} powiadomienia`,many:()=>`${t.number(e.count)} powiadomie\u{144}`,other:()=>`${t.number(e.count)} powiadomienia`})}.`};var SX={};SX={close:`Fechar`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notifica\xe7\xe3o`,other:()=>`${t.number(e.count)} notifica\xe7\xf5es`})}.`};var CX={};CX={close:`Fechar`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notifica\xe7\xe3o`,other:()=>`${t.number(e.count)} notifica\xe7\xf5es`})}.`};var wX={};wX={close:`Închideţi`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notificare`,other:()=>`${t.number(e.count)} notific\u{103}ri`})}.`};var TX={};TX={close:`Закрыть`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{443}\u{432}\u{435}\u{434}\u{43E}\u{43C}\u{43B}\u{435}\u{43D}\u{438}\u{435}`,other:()=>`${t.number(e.count)} \u{443}\u{432}\u{435}\u{434}\u{43E}\u{43C}\u{43B}\u{435}\u{43D}\u{438}\u{44F}`})}.`};var EX={};EX={close:`Zatvoriť`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ozn\xe1menie`,few:()=>`${t.number(e.count)} ozn\xe1menia`,other:()=>`${t.number(e.count)} ozn\xe1men\xed`})}.`};var DX={};DX={close:`Zapri`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} obvestilo`,two:()=>`${t.number(e.count)} obvestili`,few:()=>`${t.number(e.count)} obvestila`,other:()=>`${t.number(e.count)} obvestil`})}.`};var OX={};OX={close:`Zatvori`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} obave\u{161}tenje`,other:()=>`${t.number(e.count)} obave\u{161}tenja`})}.`};var kX={};kX={close:`Stäng`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} meddelande`,other:()=>`${t.number(e.count)} meddelanden`})}.`};var AX={};AX={close:`Kapat`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} bildirim`,other:()=>`${t.number(e.count)} bildirim`})}.`};var jX={};jX={close:`Закрити`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{441}\u{43F}\u{43E}\u{432}\u{456}\u{449}\u{435}\u{43D}\u{43D}\u{44F}`,other:()=>`${t.number(e.count)} \u{441}\u{43F}\u{43E}\u{432}\u{456}\u{449}\u{435}\u{43D}\u{43D}\u{44F}`})}.`};var MX={};MX={close:`关闭`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{4E2A}\u{901A}\u{77E5}`,other:()=>`${t.number(e.count)} \u{4E2A}\u{901A}\u{77E5}`})}\u{3002}`};var NX={};NX={close:`關閉`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{500B}\u{901A}\u{77E5}`,other:()=>`${t.number(e.count)} \u{500B}\u{901A}\u{77E5}`})}\u{3002}`};var PX={};PX={"ar-AE":eX,"bg-BG":tX,"cs-CZ":nX,"da-DK":rX,"de-DE":iX,"el-GR":aX,"en-US":oX,"es-ES":sX,"et-EE":cX,"fi-FI":lX,"fr-FR":uX,"he-IL":dX,"hr-HR":fX,"hu-HU":pX,"it-IT":mX,"ja-JP":hX,"ko-KR":gX,"lt-LT":_X,"lv-LV":vX,"nb-NO":yX,"nl-NL":bX,"pl-PL":xX,"pt-BR":SX,"pt-PT":CX,"ro-RO":wX,"ru-RU":TX,"sk-SK":EX,"sl-SI":DX,"sr-SP":OX,"sv-SE":kX,"tr-TR":AX,"uk-UA":jX,"zh-CN":MX,"zh-TW":NX};function FX(e){return e&&e.__esModule?e.default:e}function IX(e,t,n){let{key:r,timer:i,timeout:a}=e.toast;(0,x.useEffect)(()=>{if(i!=null&&a!=null)return i.reset(a),()=>{i.pause()}},[i,a]);let o=dS(),s=pS(),c=hT(FX(PX),`@react-aria/toast`),[l,u]=(0,x.useState)(!1);return qx(()=>{u(!0)},[]),{toastProps:{...q(e,{labelable:!0}),role:`alertdialog`,"aria-modal":`false`,"aria-labelledby":e[`aria-labelledby`]||o,"aria-describedby":e[`aria-describedby`]||s,tabIndex:0},contentProps:{role:`alert`,"aria-atomic":`true`,"aria-hidden":l?void 0:`true`},titleProps:{id:o},descriptionProps:{id:s},closeButtonProps:{"aria-label":c.format(`close`),onPress:()=>t.close(r)}}}var LX=1,RX=Symbol.for(`react-aria-landmark-manager`);function zX(e){return document.addEventListener(`react-aria-landmark-manager-change`,e),()=>document.removeEventListener(`react-aria-landmark-manager-change`,e)}function BX(){if(typeof document>`u`)return null;let e=document[RX];return e&&e.version>=LX?e:(document[RX]=new HX,document.dispatchEvent(new CustomEvent(`react-aria-landmark-manager-change`)),document[RX])}function VX(){return(0,yE.useSyncExternalStore)(zX,BX,BX)}var HX=class{constructor(){this.landmarks=[],this.isListening=!1,this.refCount=0,this.version=LX,this.f6Handler=this.f6Handler.bind(this),this.focusinHandler=this.focusinHandler.bind(this),this.focusoutHandler=this.focusoutHandler.bind(this)}setupIfNeeded(){this.isListening||=(document.addEventListener(`keydown`,this.f6Handler,{capture:!0}),document.addEventListener(`focusin`,this.focusinHandler,{capture:!0}),document.addEventListener(`focusout`,this.focusoutHandler,{capture:!0}),!0)}teardownIfNeeded(){!this.isListening||this.landmarks.length>0||this.refCount>0||(document.removeEventListener(`keydown`,this.f6Handler,{capture:!0}),document.removeEventListener(`focusin`,this.focusinHandler,{capture:!0}),document.removeEventListener(`focusout`,this.focusoutHandler,{capture:!0}),this.isListening=!1)}focusLandmark(e,t){this.landmarks.find(t=>t.ref.current===e)?.focus?.(t)}getLandmarksByRole(e){return new Set(this.landmarks.filter(t=>t.role===e))}getLandmarkByRole(e){return this.landmarks.find(t=>t.role===e)}addLandmark(e){if(this.setupIfNeeded(),this.landmarks.find(t=>t.ref===e.ref)||!e.ref.current)return;if(this.landmarks.filter(e=>e.role===`main`).length,this.landmarks.length===0){this.landmarks=[e],this.checkLabels(e.role);return}let t=0,n=this.landmarks.length-1;for(;t<=n;){let r=Math.floor((t+n)/2),i=e.ref.current.compareDocumentPosition(this.landmarks[r].ref.current);i&Node.DOCUMENT_POSITION_PRECEDING||i&Node.DOCUMENT_POSITION_CONTAINS?t=r+1:n=r-1}this.landmarks.splice(t,0,e),this.checkLabels(e.role)}updateLandmark(e){let t=this.landmarks.findIndex(t=>t.ref===e.ref);t>=0&&(this.landmarks[t]={...this.landmarks[t],...e},this.checkLabels(this.landmarks[t].role))}removeLandmark(e){this.landmarks=this.landmarks.filter(t=>t.ref!==e),this.teardownIfNeeded()}checkLabels(e){let t=this.getLandmarksByRole(e);t.size>1&&[...t].filter(e=>!e.label).length}closestLandmark(e){let t=new Map(this.landmarks.map(e=>[e.ref.current,e])),n=e;for(;n&&!t.has(n)&&n!==document.body&&n.parentElement;)n=n.parentElement;return t.get(n)}getNextLandmark(e,{backward:t}){let n=this.closestLandmark(e),r=t?this.landmarks.length-1:0;n&&(r=this.landmarks.indexOf(n)+(t?-1:1));let i=()=>{if(r<0){if(!e.dispatchEvent(new CustomEvent(`react-aria-landmark-navigation`,{detail:{direction:`backward`},bubbles:!0,cancelable:!0})))return!0;r=this.landmarks.length-1}else if(r>=this.landmarks.length){if(!e.dispatchEvent(new CustomEvent(`react-aria-landmark-navigation`,{detail:{direction:`forward`},bubbles:!0,cancelable:!0})))return!0;r=0}return r<0||r>=this.landmarks.length};if(i())return;let a=r;for(;this.landmarks[r].ref.current?.closest(`[aria-hidden=true]`);){if(r+=t?-1:1,i())return;if(r===a)break}return this.landmarks[r]}f6Handler(e){e.key===`F6`&&(e.altKey?this.focusMain():this.navigate(K(e),e.shiftKey))&&(e.preventDefault(),e.stopPropagation())}focusMain(){let e=this.getLandmarkByRole(`main`);return e&&e.ref.current&&e.ref.current.isConnected?(this.focusLandmark(e.ref.current,`forward`),!0):!1}navigate(e,t){let n=this.getNextLandmark(e,{backward:t});if(!n)return!1;if(n.lastFocused){let e=n.lastFocused;if(zS(document.body,e))return e.focus(),!0}return n.ref.current&&n.ref.current.isConnected?(this.focusLandmark(n.ref.current,t?`backward`:`forward`),!0):!1}focusinHandler(e){let t=this.closestLandmark(K(e));t&&t.ref.current!==K(e)&&this.updateLandmark({ref:t.ref,lastFocused:K(e)});let n=e.relatedTarget;if(n){let e=this.closestLandmark(n);e&&e.ref.current===n&&e.blur()}}focusoutHandler(e){let t=K(e),n=e.relatedTarget;if(!n||n===document){let e=this.closestLandmark(t);e&&e.ref.current===t&&e.blur()}}createLandmarkController(){let e=this;return e.refCount++,e.setupIfNeeded(),{navigate(t,n){let r=n?.from||document.activeElement;return e.navigate(r,t===`backward`)},focusNext(t){let n=t?.from||document.activeElement;return e.navigate(n,!1)},focusPrevious(t){let n=t?.from||document.activeElement;return e.navigate(n,!0)},focusMain(){return e.focusMain()},dispose(){e&&=(e.refCount--,e.teardownIfNeeded(),null)}}}registerLandmark(e){return this.landmarks.find(t=>t.ref===e.ref)?this.updateLandmark(e):this.addLandmark(e),()=>this.removeLandmark(e.ref)}};function UX(e,t){let{role:n,"aria-label":r,"aria-labelledby":i,focus:a}=e,o=VX(),s=r||i,[c,l]=(0,x.useState)(!1),u=(0,x.useCallback)(()=>{l(!0)},[l]),d=(0,x.useCallback)(()=>{l(!1)},[l]);return qx(()=>{if(o)return o.registerLandmark({ref:t,label:s,role:n,focus:a||u,blur:d})},[o,s,t,n,a,u,d]),(0,x.useEffect)(()=>{c&&t.current?.focus()},[c,t]),{landmarkProps:{role:n,tabIndex:c?-1:void 0,"aria-label":r,"aria-labelledby":i}}}function WX(e){return e&&e.__esModule?e.default:e}function GX(e,t,n){let r=hT(WX(PX),`@react-aria/toast`),{landmarkProps:i}=UX({role:`region`,"aria-label":e[`aria-label`]||r.format(`notifications`,{count:t.visibleToasts.length})},n),a=(0,x.useRef)(!1),o=(0,x.useRef)(!1),s=(0,x.useCallback)(()=>{a.current||o.current?t.pauseAll():t.resumeAll()},[t]),{hoverProps:c}=vD({onHoverStart:()=>{a.current=!0,s()},onHoverEnd:()=>{a.current=!1,s()}}),l=(0,x.useRef)([]),u=(0,x.useRef)(t.visibleToasts),d=(0,x.useRef)(null);qx(()=>{if(d.current===-1||t.visibleToasts.length===0||!n.current){l.current=[],u.current=t.visibleToasts;return}if(l.current=[...n.current.querySelectorAll(`[role="alertdialog"]`)],u.current.length===t.visibleToasts.length&&t.visibleToasts.every((e,t)=>e.key===u.current[t].key)){u.current=t.visibleToasts;return}let e=u.current.map((e,n)=>({...e,i:n,isRemoved:!t.visibleToasts.some(t=>e.key===t.key)})),r=e.findIndex(e=>e.i===d.current&&e.isRemoved);if(r>-1){if(ZC()===`pointer`&&f.current?.isConnected)qS(f.current);else{let t=0,n,i;for(;t<=r;)e[t].isRemoved||(i=Math.max(0,t-1)),t++;for(;t<e.length;){if(!e[t].isRemoved){n=t-1;break}t++}i===void 0&&n===void 0&&(i=0),i>=0&&i<l.current.length?qS(l.current[i]):n>=0&&n<l.current.length&&qS(l.current[n])}}u.current=t.visibleToasts},[t.visibleToasts,n]);let f=(0,x.useRef)(null),{focusWithinProps:p}=dD({onFocusWithin:e=>{o.current=!0,f.current=e.relatedTarget,s()},onBlurWithin:()=>{o.current=!1,f.current=null,s()}});return(0,x.useEffect)(()=>{t.visibleToasts.length===0&&f.current?.isConnected&&(ZC()===`pointer`?qS(f.current):f.current.focus(),f.current=null)},[n,t.visibleToasts.length]),(0,x.useEffect)(()=>()=>{f.current?.isConnected&&(ZC()===`pointer`?qS(f.current):f.current.focus(),f.current=null)},[n]),{regionProps:W(i,c,p,{tabIndex:-1,"data-react-aria-top-layer":!0,onFocus:e=>{let t=K(e).closest(`[role="alertdialog"]`);d.current=l.current.findIndex(e=>e===t)},onBlur:()=>{d.current=-1}})}}function KX(e){let t=(0,x.useCallback)(t=>e.subscribe(t),[e]),n=(0,x.useCallback)(()=>e.visibleToasts,[e]);return{visibleToasts:(0,yE.useSyncExternalStore)(t,n,n),add:(t,n)=>e.add(t,n),close:t=>e.close(t),pauseAll:()=>e.pauseAll(),resumeAll:()=>e.resumeAll()}}var qX=class{constructor(e){this.queue=[],this.subscriptions=new Set,this.visibleToasts=[],this.maxVisibleToasts=e?.maxVisibleToasts??1/0,this.wrapUpdate=e?.wrapUpdate}runWithWrapUpdate(e,t){this.wrapUpdate?this.wrapUpdate(e,t):e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}add(e,t={}){let n=`_`+Math.random().toString(36).slice(2),r={...t,content:e,key:n,timer:t.timeout?new JX(()=>this.close(n),t.timeout):void 0};return this.queue.unshift(r),this.updateVisibleToasts(`add`),n}close(e){let t=this.queue.findIndex(t=>t.key===e);t>=0&&(this.queue[t].onClose?.(),this.queue.splice(t,1)),this.updateVisibleToasts(`remove`)}updateVisibleToasts(e){this.visibleToasts=this.queue.slice(0,this.maxVisibleToasts),this.runWithWrapUpdate(()=>{for(let e of this.subscriptions)e()},e)}pauseAll(){for(let e of this.visibleToasts)e.timer&&e.timer.pause()}resumeAll(){for(let e of this.visibleToasts)e.timer&&e.timer.resume()}clear(){this.queue=[],this.updateVisibleToasts(`clear`)}},JX=class{constructor(e,t){this.startTime=null,this.remaining=t,this.callback=e}reset(e){this.remaining=e,this.resume()}pause(){this.timerId!=null&&(clearTimeout(this.timerId),this.timerId=null,this.remaining-=Date.now()-this.startTime)}resume(){this.remaining<=0||(this.startTime=Date.now(),this.timerId=setTimeout(()=>{this.timerId=null,this.remaining=0,this.callback()},this.remaining))}},YX=(0,x.createContext)(null),XX=(0,x.forwardRef)(function(e,t){let n=aS(),r=KX(e.queue),i=gS(t),{regionProps:a}=GX(e,r,i),{focusProps:o,isFocused:s,isFocusVisible:c}=fD(),{hoverProps:l,isHovered:u}=vD({}),d=yS({...e,children:void 0,defaultClassName:`react-aria-ToastRegion`,values:{visibleToasts:r.visibleToasts,isHovered:u,isFocused:s,isFocusVisible:c}}),{direction:f}=iT(),p,{getContainer:m}=aB();n||(p=document.body,m&&(p=m()));let h=q(e,{global:!0}),g=x.createElement(YX.Provider,{value:r},x.createElement(G.div,{...W(h,d,a,o,l),dir:f,ref:i,"data-hovered":u||void 0,"data-focused":s||void 0,"data-focus-visible":c||void 0},typeof e.children==`function`?x.createElement(ZX,{...e,render:void 0,className:void 0,style:{display:`contents`}},e.children):e.children));return r.visibleToasts.length>0&&p?(0,vE.createPortal)(g,p):null}),ZX=(0,x.forwardRef)(function(e,t){let n=(0,x.useContext)(YX),{hoverProps:r,isHovered:i}=vD({}),a=yS({...e,children:void 0,defaultClassName:`react-aria-ToastList`,values:{visibleToasts:n.visibleToasts,isFocused:!1,isFocusVisible:!1,isHovered:i}});return x.createElement(G.ol,{...r,...a,ref:t},n.visibleToasts.map(t=>x.createElement(`li`,{key:t.key,style:{display:`contents`}},e.children({toast:t}))))}),QX=(0,x.forwardRef)(function(e,t){let n=(0,x.useContext)(YX),r=gS(t),{toastProps:i,contentProps:a,titleProps:o,descriptionProps:s,closeButtonProps:c}=IX(e,n,r),{focusProps:l,isFocused:u,isFocusVisible:d}=fD(),f=yS({...e,defaultClassName:`react-aria-Toast`,values:{toast:e.toast,isFocused:u,isFocusVisible:d}}),p=q(e,{global:!0});return x.createElement(G.div,{...W(p,f,i,l),ref:r,"data-focused":u||void 0,"data-focus-visible":d||void 0},x.createElement(vS,{values:[[$X,a],[oO,{slots:{[_S]:{},title:o,description:s}}],[eO,{slots:{[_S]:{},close:c}}]]},f.children))}),$X=(0,x.createContext)({}),eZ=(0,x.forwardRef)(function(e,t){return[e,t]=SS(e,t,$X),x.createElement(G.div,{render:e.render,className:`react-aria-ToastContent`,...e,ref:t},e.children)});function tZ(e,t,n){let{isSelected:r}=t,{isPressed:i,buttonProps:a}=$D({...e,onPress:Kx(t.toggle,e.onPress)},n);return{isPressed:i,isSelected:r,isDisabled:e.isDisabled||!1,buttonProps:W(a,{"aria-pressed":r})}}function nZ(e,t){let{"aria-label":n,"aria-labelledby":r,orientation:i=`horizontal`}=e,[a,o]=(0,x.useState)(!1);qx(()=>{o(!!(t.current&&t.current.parentElement?.closest(`[role="toolbar"]`)))});let{direction:s}=iT(),c=s===`rtl`&&i===`horizontal`,l=sL(t),u=e=>{if(zS(e.currentTarget,K(e))){if(i===`horizontal`&&e.key===`ArrowRight`||i===`vertical`&&e.key===`ArrowDown`)c?l.focusPrevious():l.focusNext();else if(i===`horizontal`&&e.key===`ArrowLeft`||i===`vertical`&&e.key===`ArrowUp`)c?l.focusNext():l.focusPrevious();else if(e.key===`Tab`){d.current=BS(),e.shiftKey?l.focusFirst():l.focusLast();return}else return;e.stopPropagation(),e.preventDefault()}},d=(0,x.useRef)(null),f=e=>{!zS(e.currentTarget,e.relatedTarget)&&!d.current&&(d.current=K(e))},p=e=>{d.current&&!zS(e.currentTarget,e.relatedTarget)&&zS(t.current,K(e))&&(d.current?.focus(),d.current=null)};return{toolbarProps:{...q(e,{labelable:!0}),role:a?`group`:`toolbar`,"aria-orientation":i,"aria-label":n,"aria-labelledby":n==null?r:void 0,onKeyDownCapture:a?void 0:u,onFocusCapture:a?void 0:p,onBlurCapture:a?void 0:f}}}function rZ(e,t,n){let{isDisabled:r}=e,{toolbarProps:i}=nZ(e,n);return{groupProps:{...i,role:t.selectionMode===`single`?`radiogroup`:i.role,"aria-disabled":r}}}function iZ(e,t,n){let r={isSelected:t.selectedKeys.has(e.id),defaultSelected:!1,setSelected(n){t.setSelected(e.id,n)},toggle(){t.toggleKey(e.id)}},{isPressed:i,isSelected:a,isDisabled:o,buttonProps:s}=tZ({...e,id:void 0,isDisabled:e.isDisabled||t.isDisabled},r,n);return t.selectionMode===`single`&&(s.role=`radio`,s[`aria-checked`]=r.isSelected,delete s[`aria-pressed`]),{isPressed:i,isSelected:a,isDisabled:o,buttonProps:s}}function aZ(e){let{selectionMode:t=`single`,disallowEmptySelection:n,isDisabled:r=!1}=e,[i,a]=yT((0,x.useMemo)(()=>e.selectedKeys?new Set(e.selectedKeys):void 0,[e.selectedKeys]),(0,x.useMemo)(()=>e.defaultSelectedKeys?new Set(e.defaultSelectedKeys):new Set,[e.defaultSelectedKeys]),e.onSelectionChange);return{selectionMode:t,isDisabled:r,selectedKeys:i,setSelectedKeys:a,toggleKey(e){let r;t===`multiple`?(r=new Set(i),r.has(e)&&(!n||r.size>1)?r.delete(e):r.add(e)):r=new Set(i.has(e)&&!n?[]:[e]),a(r)},setSelected(e,t){t!==i.has(e)&&this.toggleKey(e)}}}var oZ=(0,x.createContext)({}),sZ=(0,x.createContext)(null),cZ=(0,x.forwardRef)(function(e,t){[e,t]=SS(e,t,oZ);let n=aZ(e),{groupProps:r}=rZ(e,n,t),i=yS({...e,values:{orientation:e.orientation||`horizontal`,isDisabled:n.isDisabled,state:n},defaultClassName:`react-aria-ToggleButtonGroup`}),a=q(e,{global:!0});return x.createElement(G.div,{...W(a,i,r),ref:t,slot:e.slot||void 0,"data-orientation":e.orientation||`horizontal`,"data-disabled":e.isDisabled||void 0},x.createElement(sZ.Provider,{value:n},x.createElement(FI,null,i.children)))}),lZ=(0,x.createContext)({}),uZ=(0,x.forwardRef)(function(e,t){[e,t]=SS(e,t,lZ);let n=(0,x.useContext)(sZ),r=_j(n&&e.id!=null?{isSelected:n.selectedKeys.has(e.id),onChange(t){n.setSelected(e.id,t)}}:e),{buttonProps:i,isPressed:a,isSelected:o,isDisabled:s}=n&&e.id!=null?iZ({...e,id:e.id},n,t):tZ({...e,id:e.id==null?void 0:String(e.id)},r,t),{focusProps:c,isFocused:l,isFocusVisible:u}=fD(e),{hoverProps:d,isHovered:f}=vD({...e,isDisabled:s}),p=yS({...e,id:void 0,values:{isHovered:f,isPressed:a,isFocused:l,isSelected:r.isSelected,isFocusVisible:u,isDisabled:s,state:r},defaultClassName:`react-aria-ToggleButton`}),m=q(e,{global:!0});return delete m.id,delete m.onClick,x.createElement(G.button,{...W(m,p,i,c,d),ref:t,slot:e.slot||void 0,"data-focused":l||void 0,"data-disabled":s||void 0,"data-pressed":a||void 0,"data-selected":o||void 0,"data-hovered":f||void 0,"data-focus-visible":u||void 0},x.createElement(II.Provider,{value:{isSelected:o}},p.children))}),dZ=x.createContext(null);function fZ(e){let{children:t}=e,n=(0,x.useContext)(dZ),[r,i]=(0,x.useState)(0),a=(0,x.useMemo)(()=>({parent:n,modalCount:r,addModal(){i(e=>e+1),n&&n.addModal()},removeModal(){i(e=>e-1),n&&n.removeModal()}}),[n,r]);return x.createElement(dZ.Provider,{value:a},t)}function pZ(){let e=(0,x.useContext)(dZ);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function mZ(e){let{modalProviderProps:t}=pZ();return x.createElement(`div`,{"data-overlay-container":!0,...e,...t})}function hZ(e){return x.createElement(fZ,null,x.createElement(mZ,e))}function gZ(e){let t=aS(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:i}=aB();if(!e.portalContainer&&i&&(n=i()),x.useEffect(()=>{if(n?.closest(`[data-overlay-container]`))throw Error(`An OverlayContainer must not be inside another container. Please change the portalContainer prop.`)},[n]),!n)return null;let a=x.createElement(hZ,r);return vE.createPortal(a,n)}function _Z(e,t){let n=q(e,{labelable:!0}),{hoverProps:r}=vD({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:W(n,r,{role:`tooltip`})}}function vZ(e,t,n){let{isDisabled:r,trigger:i,shouldCloseOnPress:a=!0}=e,o=dS(),s=(0,x.useRef)(!1),c=(0,x.useRef)(!1),l=()=>{(s.current||c.current)&&t.open(c.current)},u=e=>{!s.current&&!c.current&&t.close(e)};(0,x.useEffect)(()=>{let e=e=>{n&&n.current&&e.key===`Escape`&&(e.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener(`keydown`,e,!0),()=>{document.removeEventListener(`keydown`,e,!0)}},[n,t]);let d=()=>{i!==`focus`&&(ZC()===`pointer`?s.current=!0:s.current=!1,l())},f=()=>{i!==`focus`&&(c.current=!1,s.current=!1,u())},p=()=>{a&&(c.current=!1,s.current=!1,u(!0))},m=()=>{XC()&&(c.current=!0,l())},h=()=>{c.current=!1,s.current=!1,u(!0)},{hoverProps:g}=vD({isDisabled:r,onHoverStart:d,onHoverEnd:f}),{focusableProps:_}=dE({isDisabled:r,onFocus:m,onBlur:h},n);return{triggerProps:{"aria-describedby":t.isOpen?o:void 0,...W(_,g,{onPointerDown:p,onKeyDown:p}),tabIndex:void 0},tooltipProps:{id:o}}}var yZ=(0,x.createContext)(null),bZ=(0,x.createContext)(null);function xZ(e){let t=rK(e),n=(0,x.useRef)(null),{triggerProps:r,tooltipProps:i}=vZ(e,t,n);return x.createElement(vS,{values:[[yZ,t],[bZ,{...i,triggerRef:n}]]},x.createElement(uE,{...r,ref:n},e.children))}var SZ=(0,x.forwardRef)(function({UNSTABLE_portalContainer:e,...t},n){[t,n]=SS(t,n,bZ);let r=(0,x.useContext)(yZ),i=rK(t),a=t.isOpen!=null||t.defaultOpen!=null||!r?i:r,o=dB(n,a.isOpen),s=t.isExiting||!a.shouldSkipAnimation&&o||!1;return!a.isOpen&&!s?null:x.createElement(gZ,{portalContainer:e},x.createElement(CZ,{...t,tooltipRef:n,isExiting:s}))});function CZ(e){let t=(0,x.useContext)(yZ),n=(0,x.useRef)(null),{overlayProps:r,arrowProps:i,placement:a,triggerAnchorPoint:o}=GR({placement:e.placement||`top`,targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:n,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),s=uB(e.tooltipRef,!!a),c=e.isEntering||!t.shouldSkipAnimation&&s||!1,l=yS({...e,defaultClassName:`react-aria-Tooltip`,values:{placement:a,isEntering:c,isExiting:e.isExiting,state:t}});e=W(e,r);let{tooltipProps:u}=_Z(e,t),d=q(e,{global:!0});return x.createElement(G.div,{...W(d,l,u),ref:e.tooltipRef,style:{...r.style,"--trigger-anchor-point":o?`${o.x}px ${o.y}px`:void 0,...l.style},"data-placement":a??void 0,"data-entering":c||void 0,"data-exiting":e.isExiting||void 0},x.createElement(dR.Provider,{value:{...i,placement:a,ref:n}},l.children))}function wZ(e){return e&&e.__esModule?e.default:e}var TZ={keyboard:{start:`dragDescriptionKeyboard`,end:`endDragKeyboard`},touch:{start:`dragDescriptionTouch`,end:`endDragTouch`},virtual:{start:`dragDescriptionVirtual`,end:`endDragVirtual`}};function EZ(e){let{hasDragButton:t,isDisabled:n}=e,r=hT(wZ(RW),`@react-aria/dnd`),i=(0,x.useRef)({options:e,x:0,y:0}).current;i.options=e;let a=(0,x.useRef)(null),[o,s]=(0,x.useState)(!1),c=e=>{a.current=e,s(!!e)},{addGlobalListener:l,removeAllGlobalListeners:u}=ZE(),d=(0,x.useRef)(null),f=t=>{if(t.defaultPrevented)return;if(t.stopPropagation(),d.current===`virtual`){t.preventDefault(),g(K(t)),d.current=null;return}typeof e.onDragStart==`function`&&e.onDragStart({type:`dragstart`,x:t.clientX,y:t.clientY});let n=e.getItems();t.dataTransfer.clearData?.(),ane(t.dataTransfer,n);let r=NU.all;if(typeof e.getAllowedDropOperations==`function`){let t=e.getAllowedDropOperations();r=NU.none;for(let e of t)r|=NU[e]||NU.none}QU(r);let a=FU[r]||`none`;t.dataTransfer.effectAllowed=a===`cancel`?`none`:a,typeof e.preview?.current==`function`&&e.preview.current(n,(e,n,r)=>{if(!e)return;let i=e.getBoundingClientRect(),a=t.currentTarget.getBoundingClientRect(),o=t.clientX-a.x,s=t.clientY-a.y;(o>i.width||s>i.height)&&(o=i.width/2,s=i.height/2);let c=o,l=s;typeof n==`number`&&typeof r==`number`&&(c=n,l=r),c=Math.max(0,Math.min(c,i.width)),l=Math.max(0,Math.min(l,i.height));let u=2*Math.round(i.height/2);e.style.height=`${u}px`,t.dataTransfer.setDragImage(e,c,l)}),l(window,`drop`,e=>{e.preventDefault(),e.stopPropagation(),console.warn(`Drags initiated from the React Aria useDrag hook may only be dropped on a target created with useDrop. This ensures that a keyboard and screen reader accessible alternative is available.`)},{once:!0}),i.x=t.clientX,i.y=t.clientY;let o=K(t);requestAnimationFrame(()=>{c(o)})},p=t=>{t.stopPropagation(),(t.clientX!==i.x||t.clientY!==i.y)&&(typeof e.onDragMove==`function`&&e.onDragMove({type:`dragmove`,x:t.clientX,y:t.clientY}),i.x=t.clientX,i.y=t.clientY)},m=t=>{if(t.stopPropagation(),typeof e.onDragEnd==`function`){let n={type:`dragend`,x:t.clientX,y:t.clientY,dropOperation:IU[t.dataTransfer.dropEffect]};YU&&(n.dropOperation=IU[YU]),e.onDragEnd(n)}c(null),u(),QU(NU.none),XU(void 0)};(0,x.useEffect)(()=>()=>{if(a.current&&(!a.current.isConnected||parseInt(x.version,10)<17)){if(typeof i.options.onDragEnd==`function`){let e={type:`dragend`,x:0,y:0,dropOperation:IU[YU||`none`]};i.options.onDragEnd(e)}c(null),QU(NU.none),XU(void 0)}},[i]);let h=e=>{(e.pointerType===`keyboard`||e.pointerType===`virtual`)&&g(e.target)},g=e=>{if(typeof i.options.onDragStart==`function`){let t=e.getBoundingClientRect();i.options.onDragStart({type:`dragstart`,x:t.x+t.width/2,y:t.y+t.height/2})}fne({element:e,items:i.options.getItems(),allowedDropOperations:typeof i.options.getAllowedDropOperations==`function`?i.options.getAllowedDropOperations():[`move`,`copy`,`link`],onDragEnd(e){c(null),typeof i.options.onDragEnd==`function`&&i.options.onDragEnd(e)}},r),c(e)},_=HU(),v=o?TZ[_].end:TZ[_].start,y=BA(r.format(v)),b={};return t||(b={...y,onPointerDown(e){if(d.current=xC(e.nativeEvent)?`virtual`:e.pointerType,e.width<1&&e.height<1&&hC()&&_C())d.current=`virtual`;else{let t=e.currentTarget.getBoundingClientRect(),n=e.clientX-t.x,r=e.clientY-t.y,i=t.width/2,a=t.height/2;Math.abs(n-i)<=.5&&Math.abs(r-a)<=.5?d.current=`virtual`:d.current=e.pointerType}},onKeyDownCapture(e){K(e)===e.currentTarget&&e.key===`Enter`&&(e.preventDefault(),e.stopPropagation())},onKeyUpCapture(e){K(e)===e.currentTarget&&e.key===`Enter`&&(e.preventDefault(),e.stopPropagation(),g(K(e)))},onClick(e){(bC(e.nativeEvent)||d.current===`virtual`)&&(e.preventDefault(),e.stopPropagation(),g(K(e)))}}),n?{dragProps:{draggable:`false`},dragButtonProps:{},isDragging:!1}:{dragProps:{...b,draggable:`true`,onDragStart:f,onDrag:p,onDragEnd:m},dragButtonProps:{...y,onPress:h},isDragging:o}}var DZ=H([`inline-flex shrink-0 cursor-default items-center justify-center gap-2 rounded-md font-medium whitespace-nowrap`,`motion-press`,`outline-none data-focus-visible:ring-2 data-focus-visible:ring-ring data-focus-visible:ring-offset-2 data-focus-visible:ring-offset-background`,`data-disabled:opacity-50`,`data-pending:opacity-70`],{variants:{variant:{primary:`bg-primary text-primary-foreground data-hovered:bg-primary-hover data-pressed:bg-primary-hover`,secondary:`border border-border bg-secondary text-secondary-foreground data-hovered:border-border-strong data-hovered:bg-secondary-hover data-pressed:bg-secondary-hover`,ghost:`text-foreground-secondary data-hovered:bg-secondary data-hovered:text-foreground data-pressed:bg-secondary-hover`,danger:`bg-destructive text-destructive-foreground data-hovered:opacity-90 data-pressed:opacity-90`,brand:`bg-brand-fill text-brand-ink data-hovered:bg-brand-fill-hover data-pressed:bg-brand-fill-hover`},size:{sm:`h-8 px-3 text-sm`,md:`h-10 px-4 text-base`},fullWidth:{true:`w-full`},collapses:{true:`max-md:aspect-square max-md:px-0`,false:``}},defaultVariants:{variant:`primary`,size:`md`,collapses:!1}}),OZ=H(``,{variants:{collapses:{true:`max-md:sr-only`,false:``}},defaultVariants:{collapses:!1}}),kZ={sm:14,md:16};function J({children:e,icon:t,onPress:n,type:r=`button`,isDisabled:i=!1,isPending:a=!1,autoFocus:o=!1,collapses:s=!1,size:c,...l}){let u=a?sb:t,d=s&&t!==void 0;return(0,S.jsxs)(tO,{className:DZ({size:c,...l,collapses:d}),type:r,isDisabled:i,isPending:a,autoFocus:o,...n&&{onPress:n},children:[u&&(0,S.jsx)(u,{"aria-hidden":!0,size:kZ[c??`md`],...a&&{className:`animate-spin`}}),d?(0,S.jsx)(`span`,{className:OZ({collapses:!0}),children:e}):e]})}var AZ=`flex min-w-0 flex-col rounded-xl border border-border bg-card`,jZ=H(`flex flex-1 flex-col`,{variants:{isFlush:{true:``,false:`gap-5 p-6`}},defaultVariants:{isFlush:!1}});function MZ({title:e,description:t,actions:n,footer:r,isFlush:i=!1,children:a}){let o=(0,x.useId)();return(0,S.jsxs)(`section`,{className:AZ,...e!==void 0&&{"aria-labelledby":o},children:[e!==void 0&&(0,S.jsxs)(`div`,{className:`flex items-start justify-between gap-4 border-b border-border px-6 py-4`,children:[(0,S.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,S.jsx)(`h2`,{id:o,className:`font-display text-lg font-semibold text-foreground`,children:e}),t!==void 0&&(0,S.jsx)(`p`,{className:`text-sm text-foreground-muted`,children:t})]}),n!==void 0&&(0,S.jsx)(`div`,{className:`flex shrink-0 items-center gap-3`,children:n})]}),a!==void 0&&(0,S.jsx)(`div`,{className:jZ({isFlush:i}),children:a}),r!==void 0&&(0,S.jsx)(`div`,{className:`flex flex-wrap items-center gap-2 border-t border-border px-6 py-3`,children:r})]})}var NZ=`group inline-flex cursor-default items-center gap-2 text-base text-foreground data-disabled:text-foreground-muted`,PZ=`flex size-4 shrink-0 items-center justify-center rounded-sm border border-input-border bg-input text-primary-foreground transition-colors motion-fast group-data-hovered:border-border-strong group-data-selected:border-primary group-data-selected:bg-primary group-data-indeterminate:border-primary group-data-indeterminate:bg-primary group-data-focus-visible:ring-2 group-data-focus-visible:ring-ring group-data-focus-visible:ring-offset-2 group-data-focus-visible:ring-offset-background group-data-disabled:opacity-50`;function FZ({label:e,isSelected:t,defaultSelected:n,onChange:r,isIndeterminate:i=!1,isDisabled:a=!1,name:o,value:s}){return(0,S.jsx)(wj,{className:NZ,isIndeterminate:i,isDisabled:a,...t!==void 0&&{isSelected:t},...n!==void 0&&{defaultSelected:n},...r&&{onChange:r},...o!==void 0&&{name:o},...s!==void 0&&{value:s},children:t=>(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`span`,{className:PZ,children:t.isIndeterminate?(0,S.jsx)(Eee,{"aria-hidden":!0,size:12}):t.isSelected&&(0,S.jsx)(Mv,{"aria-hidden":!0,size:12})}),e]})})}var IZ=`text-sm font-medium text-foreground`,LZ=`sr-only`,RZ=`text-destructive`,zZ=`text-sm text-foreground-muted`,BZ=`motion-rise text-sm text-destructive`,VZ=`w-full rounded-md border border-input-border bg-input px-3 text-base text-foreground transition-colors motion-fast outline-none data-hovered:border-border-strong data-focused:border-input-focus data-focused:ring-1 data-focused:ring-input-focus data-focus-visible:border-input-focus data-focus-visible:ring-1 data-focus-visible:ring-input-focus data-invalid:border-destructive data-invalid:data-focused:ring-destructive data-disabled:bg-background-secondary data-disabled:text-foreground-muted`,HZ=`${VZ} h-10`,UZ=`layer-overlay motion-float overflow-auto rounded-md border border-border bg-background-elevated p-1 shadow-lg outline-none`,WZ=`flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-base outline-none data-focused:bg-secondary data-hovered:bg-secondary data-disabled:text-foreground-subtle`,GZ=H(`flex flex-col gap-1.5`,{variants:{width:{full:`w-full`,md:`w-80`,sm:`w-48`}},defaultVariants:{width:`full`}}),KZ=`flex items-center gap-2`,qZ=`flex size-10 shrink-0 cursor-default items-center justify-center rounded-md border border-input-border bg-input p-1 outline-none transition-colors motion-fast data-hovered:border-border-strong data-focus-visible:ring-2 data-focus-visible:ring-ring data-disabled:opacity-50`,JZ=`size-full rounded-sm`,YZ=`${HZ} min-w-0 flex-1 font-mono uppercase`,XZ=`${UZ} p-3`,ZZ=`flex w-56 flex-col gap-3 outline-none`,QZ=`aspect-square w-full rounded-md`,$Z=`size-5 rounded-full border-2 border-background shadow-md data-focus-visible:size-6 data-dragging:size-6`,eQ=`flex w-full flex-col`,tQ=`h-6 w-full rounded-md`,nQ=`${$Z} top-1/2`,rQ=`size-7 cursor-default rounded-md outline-none data-selected:ring-2 data-selected:ring-ring data-selected:ring-offset-2 data-selected:ring-offset-background-elevated data-focus-visible:ring-2 data-focus-visible:ring-ring`,iQ=`hsb(0, 0%, 50%)`;function aQ(e){if(e===void 0||e===``)return null;try{return GM(e)}catch{return null}}function oQ({label:e,isLabelHidden:t=!1,value:n,onChange:r,pickLabel:i,hueLabel:a,presets:o=[],presetsLabel:s,description:c,errorMessage:l,isRequired:u=!1,isDisabled:d=!1,width:f}){let p=aQ(n),m=p??GM(iQ),h=e=>r(e===null?void 0:e.toString(`hex`).toLowerCase()),g=o.flatMap(e=>aQ(e)===null?[]:[e]);return(0,S.jsxs)(vF,{className:GZ({width:f}),value:p,onChange:h,isRequired:u,isDisabled:d,isInvalid:l!==void 0,children:[(0,S.jsxs)(SD,{className:t?LZ:IZ,children:[e,u&&(0,S.jsx)(`span`,{"aria-hidden":!0,className:`text-destructive`,children:` *`})]}),(0,S.jsxs)(`div`,{className:KZ,children:[(0,S.jsxs)(DV,{children:[(0,S.jsx)(tO,{"aria-label":i,isDisabled:d,className:qZ,children:(0,S.jsx)(GF,{color:m,className:JZ})}),(0,S.jsx)(hB,{placement:`bottom start`,className:XZ,children:(0,S.jsxs)(OV,{"aria-label":i,className:ZZ,children:[(0,S.jsx)(CN,{value:m,onChange:h,colorSpace:`hsb`,xChannel:`saturation`,yChannel:`brightness`,className:QZ,children:(0,S.jsx)(Dj,{className:$Z})}),(0,S.jsxs)(VF,{value:m,onChange:h,colorSpace:`hsb`,channel:`hue`,className:eQ,children:[(0,S.jsx)(SD,{className:LZ,children:a}),(0,S.jsx)(IF,{className:tQ,children:(0,S.jsx)(Dj,{className:nQ})})]}),g.length>0&&(0,S.jsx)(lR,{"aria-label":s??i,...p!==null&&{value:p},onChange:h,className:`grid grid-cols-6 gap-2`,children:g.map(e=>(0,S.jsx)(uR,{color:e,className:rQ,children:(0,S.jsx)(GF,{className:`size-full rounded-md`})},e))})]})})]}),(0,S.jsx)(ON,{className:YZ})]}),c!==void 0&&(0,S.jsx)(sO,{slot:`description`,className:`text-sm text-foreground-muted`,children:c}),(0,S.jsx)(GA,{className:BZ,children:l})]})}var sQ=H(`flex flex-col gap-1.5`,{variants:{width:{full:`w-full`,md:`w-80`,sm:`w-48`}},defaultVariants:{width:`sm`}}),cQ=`${HZ} flex items-center tabular-nums data-focus-within:border-input-focus data-focus-within:ring-1 data-focus-within:ring-input-focus`,lQ=`rounded-sm px-0.5 outline-none data-placeholder:text-foreground-subtle data-focused:bg-primary data-focused:text-primary-foreground`;function uQ(e){if(e===null)return null;try{return sk(e)}catch{return null}}function dQ({label:e,isLabelHidden:t=!1,description:n,errorMessage:r,value:i,defaultValue:a,onChange:o,name:s,isRequired:c=!1,isDisabled:l=!1,isReadOnly:u=!1,width:d}){let f=a===void 0?null:uQ(a);return(0,S.jsxs)(Gte,{className:sQ({width:d}),isRequired:c,isDisabled:l,isReadOnly:u,isInvalid:r!==void 0,...i!==void 0&&{value:uQ(i)},...f&&{defaultValue:f},...o&&{onChange:e=>o(e?e.toString():null)},...s!==void 0&&{name:s},children:[(0,S.jsxs)(SD,{className:t?LZ:IZ,children:[e,c&&(0,S.jsx)(`span`,{"aria-hidden":!0,className:`text-destructive`,children:` *`})]}),(0,S.jsx)(Kte,{className:cQ,children:e=>(0,S.jsx)(Jte,{segment:e,className:lQ})}),n!==void 0&&(0,S.jsx)(sO,{slot:`description`,className:`text-sm text-foreground-muted`,children:n}),(0,S.jsx)(GA,{className:BZ,children:r})]})}var fQ=`layer-toast motion-float rounded-md bg-foreground px-2 py-1 text-xs font-medium text-background shadow-md`;function pQ({content:e,children:t,placement:n=`top`}){return(0,S.jsxs)(xZ,{delay:500,children:[t,(0,S.jsx)(SZ,{className:fQ,placement:n,offset:6,children:e})]})}var mQ=H([`inline-flex shrink-0 cursor-default items-center justify-center rounded-md`,`motion-press`,`outline-none data-focus-visible:ring-2 data-focus-visible:ring-ring data-focus-visible:ring-offset-2 data-focus-visible:ring-offset-background`,`data-disabled:opacity-50`],{variants:{variant:{ghost:`text-foreground-secondary data-hovered:bg-secondary data-hovered:text-foreground data-pressed:bg-secondary-hover`,secondary:`border border-border bg-secondary text-secondary-foreground data-hovered:border-border-strong data-hovered:bg-secondary-hover data-pressed:bg-secondary-hover`},size:{sm:`size-8`,md:`size-10`}},defaultVariants:{variant:`ghost`,size:`md`}}),hQ={sm:16,md:18};function gQ({label:e,icon:t,onPress:n,isDisabled:r=!1,size:i,variant:a}){return(0,S.jsx)(pQ,{content:e,children:(0,S.jsx)(tO,{className:mQ({size:i,variant:a}),"aria-label":e,isDisabled:r,...n&&{onPress:n},children:(0,S.jsx)(t,{"aria-hidden":!0,size:hQ[i??`md`]})})})}var _Q=H(`fixed inset-0 layer-overlay flex bg-scrim motion-scrim`,{variants:{placement:{center:`items-center justify-center p-4`,side:`justify-end`}},defaultVariants:{placement:`center`}}),vQ=H(`flex w-full flex-col overflow-hidden border-border bg-background-elevated shadow-xl outline-none`,{variants:{placement:{center:`max-h-full rounded-lg border motion-pop`,side:`h-full border-l motion-sheet`},size:{sm:`max-w-sm`,md:`max-w-lg`,lg:`max-w-2xl`}},defaultVariants:{placement:`center`,size:`md`}}),yQ=H(`flex min-h-0 flex-col outline-none`,{variants:{placement:{center:``,side:`h-full`}},defaultVariants:{placement:`center`}}),bQ=`flex items-start justify-between gap-4 px-6 pt-5 pb-2`,xQ=`pt-1 text-lg font-semibold tracking-tight text-foreground`,SQ=`min-h-0 flex-1 overflow-auto px-6 py-2 text-base text-foreground-secondary`;function CQ({isOpen:e,onOpenChange:t,onClosed:n,title:r,children:i,footer:a,closeLabel:o,role:s=`dialog`,size:c,placement:l}){let u=(0,x.useRef)({isOpen:e,onClosed:n});(0,x.useEffect)(()=>{u.current={isOpen:e,onClosed:n}});let d=(0,x.useCallback)(()=>()=>{u.current.isOpen||u.current.onClosed?.()},[]);return(0,S.jsx)(hK,{ref:d,className:_Q({placement:l}),isOpen:e,onOpenChange:t,isDismissable:s===`dialog`,children:(0,S.jsx)(pK,{className:vQ({size:c,placement:l}),children:(0,S.jsx)(OV,{className:yQ({placement:l}),role:s,children:({close:e})=>(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(`div`,{className:bQ,children:[(0,S.jsx)(aO,{slot:`title`,className:xQ,children:r}),o!==void 0&&(0,S.jsx)(gQ,{label:o,icon:Gx,size:`sm`,onPress:e})]}),(0,S.jsx)(`div`,{className:SQ,children:i}),a!==void 0&&(0,S.jsx)(`div`,{className:`flex items-center justify-end gap-2 px-6 pt-4 pb-5`,children:a})]})})})})}var wQ=H(`flex min-w-0 flex-col gap-4`,{variants:{frame:{box:`rounded-md border border-border p-4`,none:``}},defaultVariants:{frame:`box`}}),TQ=H(``,{variants:{hidden:{false:`${IZ} px-1`,true:`sr-only`}},defaultVariants:{hidden:!1}}),EQ=zZ;function DQ({legend:e,description:t,isLegendHidden:n=!1,children:r}){return(0,S.jsxs)(`fieldset`,{className:wQ({frame:n?`none`:`box`}),children:[(0,S.jsx)(`legend`,{className:TQ({hidden:n}),children:e}),t!==void 0&&(0,S.jsx)(`p`,{className:EQ,children:t}),r]})}var OQ={image:[`image/jpeg`,`image/png`,`image/webp`],csv:[`text/csv`,`.csv`]};function kQ({children:e,icon:t,accept:n,onSelect:r,isPending:i=!1,variant:a=`secondary`,size:o=`md`,collapses:s=!1}){return(0,S.jsx)(UW,{acceptedFileTypes:[...OQ[n]],onSelect:e=>{let t=e?.[0];t&&r(t)},children:(0,S.jsx)(J,{variant:a,size:o,isPending:i,collapses:s,...t&&{icon:t},children:e})})}var AQ=H(`flex flex-col`,{variants:{gap:Y_},defaultVariants:{gap:4}});function jQ({onSubmit:e,label:t,children:n,gap:r}){return(0,S.jsx)(aj,{className:AQ({gap:r}),validationBehavior:`aria`,...t!==void 0&&{"aria-label":t},onSubmit:t=>{t.preventDefault(),e()},children:n})}var MQ=H(`grid`,{variants:{gap:Y_,columns:{1:`grid-cols-1`,2:`grid-cols-1 md:grid-cols-2`,3:`grid-cols-1 md:grid-cols-3`,4:`grid-cols-2 md:grid-cols-4`}},defaultVariants:{gap:4,columns:2}});function NQ({as:e=`div`,children:t,...n}){return(0,S.jsx)(e,{className:MQ(n),children:t})}var PQ=H(`text-foreground tracking-tight`,{variants:{size:{sm:`text-base font-semibold`,md:`text-lg font-semibold`,lg:`text-xl font-semibold`,xl:`text-2xl font-semibold`,display:`font-display text-3xl font-bold`},truncate:{true:`truncate`,false:``}}}),FQ={1:`display`,2:`lg`,3:`md`,4:`sm`},IQ={1:`h1`,2:`h2`,3:`h3`,4:`h4`};function LQ({level:e,size:t,truncate:n,children:r}){let i=IQ[e];return(0,S.jsx)(i,{className:PQ({size:t??FQ[e],truncate:n}),children:r})}var RQ=H(`flex flex-row`,{variants:{gap:Y_,align:{start:`items-start`,center:`items-center`,end:`items-end`,baseline:`items-baseline`,stretch:`items-stretch`},justify:{start:`justify-start`,center:`justify-center`,end:`justify-end`,between:`justify-between`},wrap:{true:`flex-wrap`}},defaultVariants:{gap:2,align:`center`,justify:`start`}});function zQ({as:e=`div`,children:t,...n}){return(0,S.jsx)(e,{className:RQ(n),children:t})}var BQ=H([`rounded-sm underline underline-offset-2 transition-colors motion-fast`,`outline-none data-focus-visible:ring-2 data-focus-visible:ring-ring data-focus-visible:ring-offset-2 data-focus-visible:ring-offset-background`,`data-disabled:no-underline data-disabled:opacity-50`],{variants:{tone:{default:`text-foreground decoration-border-strong data-hovered:decoration-current`,muted:`text-foreground-secondary decoration-border data-hovered:text-foreground data-hovered:decoration-current`}},defaultVariants:{tone:`default`}});function VQ({href:e,children:t,opensInNewTab:n=!1,isDisabled:r=!1,tone:i}){return(0,S.jsx)(bD,{className:BQ({tone:i}),href:e,isDisabled:r,...n&&{target:`_blank`,rel:`noopener noreferrer`},children:t})}var HQ=H(`shrink-0`,{variants:{size:{sm:`h-5 w-5`,md:`h-6 w-6`,lg:`h-8 w-8`}},defaultVariants:{size:`md`}}),UQ=`fill-brand-fill`,WQ=H(``,{variants:{tone:{default:`fill-foreground`,rail:`fill-rail-foreground`}},defaultVariants:{tone:`default`}}),GQ=`0 0 90 101`,KQ=`M35.1288 23.8398L45.1667 49.4151L56.2482 23.8398H87.1082C86.5647 23.3764 85.9776 22.9637 85.3616 22.5944L48.6165 0.704798C46.377 -0.0699896 43.4273 -0.439281 41.2675 0.842377L3.36286 23.3692C3.13819 23.5067 2.92801 23.666 2.72508 23.8326H35.1288V23.8398Z`,qQ=`M0.144951 28.8578C0.079723 29.2851 0.0434853 29.7123 0.0434853 30.1323L0 72.036C0 76.1778 1.95684 78.3936 5.26172 80.3631L39.4919 100.703L0.144951 28.8578Z`,JQ=`M89.9203 28.7058L50.0588 101L86.6661 79.1539C88.7027 77.9374 90 75.0265 90 72.6442L89.9783 29.6037C89.9783 29.2923 89.9493 28.9954 89.913 28.6985L89.9203 28.7058Z`;function YQ({label:e,size:t,tone:n}){return(0,S.jsxs)(`svg`,{role:`img`,"aria-label":e,viewBox:GQ,className:HQ({size:t}),children:[(0,S.jsx)(`path`,{className:UQ,d:KQ}),(0,S.jsx)(`path`,{className:WQ({tone:n}),d:qQ}),(0,S.jsx)(`path`,{className:WQ({tone:n}),d:JQ})]})}var XQ=`flex min-h-dvh w-full flex-col items-center justify-center gap-5 bg-background bg-grid-clearing`,ZQ=`h-auto w-16 overflow-visible`,QQ=`fill-border`,$Q={top:`motion-mark-top`,left:`motion-mark-left`,right:`motion-mark-right`},e$={top:`fill-brand-fill motion-mark-colour-top`,left:`fill-foreground motion-mark-colour-left`,right:`fill-foreground motion-mark-colour-right`},t$=`text-sm font-medium text-foreground-subtle`,n$=[{id:`top`,d:KQ},{id:`left`,d:qQ},{id:`right`,d:JQ}];function r$({label:e}){return(0,S.jsxs)(`div`,{role:`status`,className:XQ,children:[(0,S.jsx)(`svg`,{viewBox:GQ,"aria-hidden":`true`,className:ZQ,children:n$.map(e=>(0,S.jsxs)(`g`,{className:$Q[e.id],children:[(0,S.jsx)(`path`,{className:QQ,d:e.d}),(0,S.jsx)(`path`,{className:e$[e.id],d:e.d})]},e.id))}),(0,S.jsx)(`span`,{className:t$,children:e})]})}var i$=`${UZ} min-w-40`,a$=`outline-none`,o$=H(WZ,{variants:{tone:{default:`text-foreground`,danger:`text-destructive`}},defaultVariants:{tone:`default`}});function s$({trigger:e,actions:t,onAction:n,placement:r=`bottom end`}){return(0,S.jsxs)(hV,{children:[e,(0,S.jsx)(hB,{className:i$,placement:r,children:(0,S.jsx)(_V,{className:a$,onAction:e=>n(String(e)),disabledKeys:t.filter(e=>e.isDisabled).map(e=>e.id),children:t.map(({id:e,label:t,icon:n,tone:r})=>(0,S.jsxs)(CV,{id:e,className:o$({tone:r}),textValue:t,children:[n&&(0,S.jsx)(n,{"aria-hidden":!0,size:16}),t]},e))})})]})}var c$=H(`flex flex-col gap-1.5`,{variants:{width:{full:`w-full`,md:`w-80`,sm:`w-48`}},defaultVariants:{width:`sm`}}),l$=`${HZ} tabular-nums placeholder:text-foreground-subtle`;function u$({label:e,isLabelHidden:t=!1,description:n,errorMessage:r,value:i,defaultValue:a,onChange:o,minValue:s,maxValue:c,isInteger:l=!1,name:u,isRequired:d=!1,isDisabled:f=!1,isReadOnly:p=!1,width:m}){return(0,S.jsxs)(xK,{className:c$({width:m}),isRequired:d,isDisabled:f,isReadOnly:p,isInvalid:r!==void 0,formatOptions:l?{maximumFractionDigits:0}:{maximumFractionDigits:6},...i!==void 0&&{value:i??NaN},...a!==void 0&&{defaultValue:a},...o&&{onChange:e=>o(Number.isNaN(e)?null:e)},...s!==void 0&&{minValue:s},...c!==void 0&&{maxValue:c},...u!==void 0&&{name:u},children:[(0,S.jsxs)(SD,{className:t?LZ:IZ,children:[e,d&&(0,S.jsx)(`span`,{"aria-hidden":!0,className:`text-destructive`,children:` *`})]}),(0,S.jsx)(ON,{className:l$}),n!==void 0&&(0,S.jsx)(sO,{slot:`description`,className:`text-sm text-foreground-muted`,children:n}),(0,S.jsx)(GA,{className:BZ,children:r})]})}var d$=`group relative flex w-full items-center`,f$=`pointer-events-none absolute left-3 text-foreground-muted`,p$=`h-10 w-full rounded-lg border border-border-strong bg-background pr-9 pl-9 text-base text-foreground placeholder:text-foreground-subtle outline-none transition-colors motion-fast data-hovered:border-foreground-subtle data-focused:border-ring data-focused:ring-2 data-focused:ring-ring`,m$=`absolute right-2 flex h-6 w-6 items-center justify-center rounded-sm text-foreground-muted outline-none data-hovered:text-foreground data-focus-visible:ring-2 data-focus-visible:ring-ring group-data-empty:hidden`;function h$({label:e,placeholder:t,value:n,onChange:r,clearLabel:i}){return(0,S.jsxs)(cq,{"aria-label":e,className:d$,value:n,onChange:r,children:[(0,S.jsx)(lx,{"aria-hidden":!0,size:16,className:f$}),(0,S.jsx)(ON,{className:p$,...t!==void 0&&{placeholder:t}}),(0,S.jsx)(tO,{"aria-label":i,className:m$,children:(0,S.jsx)(Gx,{"aria-hidden":!0,size:16})})]})}var g$=`inline-flex flex-wrap gap-1`,_$=H([`inline-flex h-8 cursor-default items-center gap-2 rounded-md text-sm font-medium text-foreground-secondary`,`transition-colors motion-fast`,`outline-none data-hovered:text-foreground data-selected:bg-background-tertiary data-selected:text-foreground`,`data-focus-visible:ring-2 data-focus-visible:ring-ring data-disabled:text-foreground-subtle`],{variants:{isIconOnly:{true:`w-8 justify-center`,false:`px-3`}},defaultVariants:{isIconOnly:!1}}),v$=`sr-only`,y$=`flex min-w-0 flex-col items-start gap-2`,b$=IZ,x$=zZ,S$=BZ;function C$({label:e,options:t,selected:n,onChange:r,isLabelShown:i=!1,description:a,errorMessage:o,areLabelsHidden:s=!1}){let c=(0,S.jsx)(cZ,{"aria-label":e,className:g$,selectionMode:`single`,disallowEmptySelection:!0,selectedKeys:[n],onSelectionChange:e=>{let[t]=e;t!==void 0&&String(t)!==n&&r(String(t))},children:t.map(e=>{let t=e.icon,n=s&&t!==void 0,r=(0,S.jsxs)(uZ,{id:e.id,className:_$({isIconOnly:n}),isDisabled:e.isDisabled??!1,children:[e.swatch!==void 0&&(0,S.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 16 16`,className:`h-4 w-4 shrink-0 stroke-border-strong`,children:(0,S.jsx)(`circle`,{cx:`8`,cy:`8`,r:`7`,fill:e.swatch})}),t&&(0,S.jsx)(t,{"aria-hidden":!0,size:16}),n?(0,S.jsx)(`span`,{className:v$,children:e.label}):e.label]},e.id);return n?(0,S.jsx)(pQ,{content:e.label,placement:`bottom`,children:r},e.id):r})});return!i&&a===void 0&&o===void 0?c:(0,S.jsxs)(`div`,{className:y$,children:[i&&(0,S.jsx)(`span`,{"aria-hidden":`true`,className:b$,children:e}),c,o===void 0?a!==void 0&&(0,S.jsx)(`p`,{className:x$,children:a}):(0,S.jsx)(`p`,{className:S$,children:o})]})}var w$=H(`flex flex-col gap-1.5`,{variants:{width:{full:`w-full`,md:`w-80`,sm:`w-48`}},defaultVariants:{width:`full`}}),T$=`${HZ} flex cursor-default items-center justify-between gap-2 text-left`,E$=`min-w-0 flex-1 truncate data-placeholder:text-foreground-subtle`,D$=`shrink-0 text-foreground-muted`,O$=`${UZ} max-h-72 min-w-(--trigger-width)`,k$=`outline-none`,A$=`${WZ} justify-between text-foreground`;function j$({label:e,isLabelHidden:t=!1,options:n,value:r,defaultValue:i,onChange:a,placeholder:o,description:s,errorMessage:c,isRequired:l=!1,isDisabled:u=!1,name:d,width:f}){return(0,S.jsxs)(vq,{className:w$({width:f}),isRequired:l,isDisabled:u,isInvalid:c!==void 0,...r!==void 0&&{value:r},...i!==void 0&&{defaultValue:i},...a&&{onChange:e=>e!==null&&a(String(e))},...o!==void 0&&{placeholder:o},...d!==void 0&&{name:d},children:[(0,S.jsxs)(SD,{className:t?LZ:IZ,children:[e,l&&(0,S.jsx)(`span`,{"aria-hidden":!0,className:`text-destructive`,children:` *`})]}),(0,S.jsxs)(tO,{className:T$,children:[(0,S.jsx)(Sq,{className:E$}),(0,S.jsx)(Pv,{"aria-hidden":!0,size:16,className:D$})]}),s!==void 0&&(0,S.jsx)(sO,{slot:`description`,className:`text-sm text-foreground-muted`,children:s}),(0,S.jsx)(GA,{className:BZ,children:c}),(0,S.jsx)(hB,{className:O$,children:(0,S.jsx)(XL,{className:k$,children:n.map(e=>(0,S.jsx)(tR,{id:e.id,className:A$,textValue:e.label,children:t=>(0,S.jsxs)(S.Fragment,{children:[e.label,t.isSelected&&(0,S.jsx)(Mv,{"aria-hidden":!0,size:16,className:`shrink-0 text-foreground-secondary`})]})},e.id))})})]})}var M$=H(`motion-skeleton block shrink-0 bg-background-tertiary`,{variants:{shape:{text:`h-4 rounded-sm`,title:`h-8 rounded-md`,control:`h-10 rounded-md`,block:`h-32 rounded-lg`,square:`size-10 rounded-md`},width:{full:`w-full`,"3/4":`w-3/4`,"1/2":`w-1/2`,"1/3":`w-1/3`,"1/4":`w-1/4`,sm:`w-24`,xs:`w-16`}},compoundVariants:[{shape:`square`,className:`w-10`}],defaultVariants:{shape:`text`,width:`full`}}),N$=`contents`,P$=`sr-only`;function F$({shape:e,width:t}){return(0,S.jsx)(`span`,{"aria-hidden":!0,className:M$({shape:e,width:e===`square`?null:t})})}function I$({label:e,children:t}){return(0,S.jsxs)(`div`,{role:`status`,className:N$,children:[(0,S.jsx)(`span`,{className:P$,children:e}),t]})}var L$=H(`inline-flex items-center gap-2 text-foreground-secondary`,{variants:{size:{sm:`text-sm`,md:`text-base`}},defaultVariants:{size:`md`}}),R$=`animate-spin`,z$=`sr-only`,B$={sm:16,md:20};function V$({label:e,showLabel:t=!1,size:n}){return(0,S.jsxs)(`span`,{role:`status`,className:L$({size:n}),children:[(0,S.jsx)(sb,{"aria-hidden":!0,size:B$[n??`md`],className:R$}),(0,S.jsx)(`span`,{className:t?void 0:z$,children:e})]})}var H$=H(`min-w-0 rounded-md transition-shadow motion-base`,{variants:{lit:{true:`ring-2 ring-ring ring-offset-4 ring-offset-card`,false:`ring-0 ring-transparent`}},defaultVariants:{lit:!1}}),U$=1600;function W$({at:e,children:t}){let n=(0,x.useRef)(null),[r,i]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{if(e===void 0){i(!1);return}typeof n.current?.scrollIntoView==`function`&&n.current.scrollIntoView({block:`nearest`}),i(!0);let t=setTimeout(()=>i(!1),U$);return()=>clearTimeout(t)},[e]),(0,S.jsx)(`div`,{ref:n,className:H$({lit:r}),...r&&{"data-lit":``},children:t})}var G$=H(`flex flex-col`,{variants:{gap:Y_,align:{stretch:`items-stretch`,start:`items-start`,center:`items-center`,end:`items-end`},fill:{true:`min-h-full`}},defaultVariants:{gap:4,align:`stretch`}});function Y({as:e=`div`,children:t,...n}){return(0,S.jsx)(e,{className:G$(n),children:t})}var K$=`flex flex-col gap-1 rounded-xl border border-border bg-card px-5 py-4`,q$=`text-sm font-medium text-foreground-muted`,J$=`font-display text-3xl font-bold text-foreground`;function Y$({label:e,value:t,detail:n}){return(0,S.jsxs)(`div`,{role:`group`,"aria-label":e,className:K$,children:[(0,S.jsx)(`span`,{"aria-hidden":!0,className:q$,children:e}),(0,S.jsx)(`span`,{className:J$,children:t}),n!==void 0&&(0,S.jsx)(`span`,{className:`text-sm text-foreground-muted`,children:n})]})}var X$=`group inline-flex cursor-default items-center gap-2 text-base text-foreground data-disabled:text-foreground-muted`,Z$=`flex h-5 w-9 shrink-0 items-center rounded-full border border-transparent bg-border-strong p-0.5 transition-colors motion-base group-data-selected:bg-primary group-data-focus-visible:ring-2 group-data-focus-visible:ring-ring group-data-focus-visible:ring-offset-2 group-data-focus-visible:ring-offset-background group-data-disabled:opacity-50`,Q$=`size-3.5 rounded-full bg-background shadow-sm transition-transform motion-base group-data-selected:translate-x-4`,$$=`sr-only`;function e1({label:e,isLabelHidden:t=!1,isSelected:n,defaultSelected:r,onChange:i,isDisabled:a=!1,name:o}){return(0,S.jsxs)(Eq,{className:X$,isDisabled:a,...n!==void 0&&{isSelected:n},...r!==void 0&&{defaultSelected:r},...i&&{onChange:i},...o!==void 0&&{name:o},children:[(0,S.jsx)(`span`,{className:Z$,children:(0,S.jsx)(`span`,{className:Q$})}),t?(0,S.jsx)(`span`,{className:$$,children:e}):e]})}var t1=H(`overflow-x-auto`,{variants:{frame:{card:`rounded-xl border border-border bg-card`,none:``}},defaultVariants:{frame:`card`}}),n1=`w-full border-separate border-spacing-0 text-left text-base outline-none`,r1={start:`text-left`,end:`text-right`},i1={true:`hidden md:table-cell`,false:``},a1=H([`border-b border-border px-4 py-2.5 text-xs font-semibold whitespace-nowrap text-foreground-muted`,`outline-none data-focus-visible:ring-2 data-focus-visible:ring-ring data-focus-visible:ring-inset`,`data-allows-sorting:cursor-default data-hovered:text-foreground`],{variants:{align:r1,isSecondary:i1},defaultVariants:{align:`start`,isSecondary:!1}}),o1=`inline-flex items-center gap-1`,s1=`group outline-none transition-colors motion-fast data-hovered:bg-background-secondary data-pressed:bg-background-tertiary data-focus-visible:ring-2 data-focus-visible:ring-ring data-focus-visible:ring-inset data-href:cursor-pointer data-action:cursor-pointer`,c1=H(`border-b border-border px-4 py-3 align-middle text-foreground outline-none group-last:border-b-0 data-focus-visible:ring-2 data-focus-visible:ring-ring data-focus-visible:ring-inset`,{variants:{align:r1,isSecondary:i1},defaultVariants:{align:`start`,isSecondary:!1}}),l1=`px-4 py-12 text-center text-foreground-muted`;function u1({label:e,columns:t,rows:n,onRowAction:r,sort:i,onSortChange:a,empty:o,frame:s=`card`}){return(0,S.jsx)(`div`,{className:t1({frame:s}),children:(0,S.jsxs)(tY,{"aria-label":e,className:n1,...i&&{sortDescriptor:i},...a&&{onSortChange:e=>a({column:String(e.column),direction:e.direction})},...r&&{onRowAction:e=>r(String(e))},children:[(0,S.jsx)(cY,{children:t.map((e,t)=>(0,S.jsx)(pY,{id:e.id,className:a1({align:e.align,isSecondary:t>0&&e.isSecondary===!0}),isRowHeader:t===0,allowsSorting:e.isSortable??!1,textValue:e.label,children:t=>(0,S.jsxs)(`span`,{className:o1,children:[e.label,t.sortDirection===`ascending`&&(0,S.jsx)(bv,{"aria-hidden":!0,size:14}),t.sortDirection===`descending`&&(0,S.jsx)(mv,{"aria-hidden":!0,size:14})]})},e.id))}),(0,S.jsx)(_Y,{renderEmptyState:()=>(0,S.jsx)(`div`,{className:l1,children:o}),children:n.map(e=>(0,S.jsx)(xY,{id:e.id,className:s1,children:t.map((t,n)=>(0,S.jsx)(wY,{className:c1({align:t.align,isSecondary:n>0&&t.isSecondary===!0}),children:e.cells[t.id]},t.id))},e.id))})]})})}var d1=`flex flex-col gap-4`,f1=`flex gap-1 border-b border-border`,p1=`-mb-px cursor-default border-b-2 border-transparent px-3 py-2 text-base font-medium text-foreground-secondary transition-colors motion-fast outline-none data-hovered:text-foreground data-selected:border-primary data-selected:text-foreground data-focus-visible:rounded-sm data-focus-visible:ring-2 data-focus-visible:ring-ring data-disabled:text-foreground-subtle`,m1=`outline-none data-focus-visible:rounded-sm data-focus-visible:ring-2 data-focus-visible:ring-ring`;function h1({label:e,tabs:t,selected:n,defaultSelected:r,onChange:i}){return(0,S.jsxs)(HY,{className:d1,...n!==void 0&&{selectedKey:n},...r!==void 0&&{defaultSelectedKey:r},...i&&{onSelectionChange:e=>i(String(e))},children:[(0,S.jsx)(WY,{"aria-label":e,className:f1,children:t.map(e=>(0,S.jsx)(KY,{id:e.id,className:p1,isDisabled:e.isDisabled??!1,children:e.label},e.id))}),t.map(e=>(0,S.jsx)(qY,{id:e.id,className:m1,children:e.content},e.id))]})}var g1=H(`inline-flex h-6 items-center gap-1 rounded-md px-2 text-xs font-medium whitespace-nowrap`,{variants:{tone:{neutral:`bg-secondary text-secondary-foreground`,success:`bg-success-light text-success-foreground`,warning:`bg-warning-light text-warning-foreground`,danger:`bg-error-light text-error-foreground`,info:`bg-info-light text-info-foreground`}},defaultVariants:{tone:`neutral`}});function _1({icon:e,children:t,...n}){return(0,S.jsxs)(`span`,{className:g1(n),children:[e&&(0,S.jsx)(e,{"aria-hidden":!0,size:12}),t]})}var v1=H(``,{variants:{size:{xs:`text-xs`,sm:`text-sm`,base:`text-base`,lg:`text-lg`},tone:{default:`text-foreground`,secondary:`text-foreground-secondary`,muted:`text-foreground-muted`,danger:`text-destructive`,success:`text-success-foreground`},weight:{regular:`font-normal`,medium:`font-medium`,semibold:`font-semibold`},truncate:{true:`truncate`},mono:{true:`font-mono`}},defaultVariants:{size:`base`,tone:`default`,weight:`regular`}});function X({as:e=`p`,children:t,...n}){return(0,S.jsx)(e,{className:v1(n),children:t})}var y1=H(`flex flex-col gap-1.5`,{variants:{width:{full:`w-full`,md:`w-80`,sm:`w-48`}},defaultVariants:{width:`full`}}),b1=`${HZ} placeholder:text-foreground-subtle`;function x1({label:e,isLabelHidden:t=!1,description:n,errorMessage:r,value:i,defaultValue:a,onChange:o,name:s,type:c=`text`,placeholder:l,autoComplete:u,isRequired:d=!1,isDisabled:f=!1,isReadOnly:p=!1,autoFocus:m=!1,width:h}){return(0,S.jsxs)($Y,{className:y1({width:h}),type:c,isRequired:d,isDisabled:f,isReadOnly:p,isInvalid:r!==void 0,autoFocus:m,...i!==void 0&&{value:i},...a!==void 0&&{defaultValue:a},...o&&{onChange:o},...s!==void 0&&{name:s},...u!==void 0&&{autoComplete:u},children:[(0,S.jsxs)(SD,{className:t?LZ:IZ,children:[e,d&&(0,S.jsx)(`span`,{"aria-hidden":!0,className:`text-destructive`,children:` *`})]}),(0,S.jsx)(ON,{className:b1,...l!==void 0&&{placeholder:l}}),n!==void 0&&(0,S.jsx)(sO,{slot:`description`,className:`text-sm text-foreground-muted`,children:n}),(0,S.jsx)(GA,{className:BZ,children:r})]})}var S1=H(`flex flex-col gap-1.5`,{variants:{width:{full:`w-full`,md:`w-80`}},defaultVariants:{width:`full`}}),C1=`${VZ} min-h-20 resize-y py-2 placeholder:text-foreground-subtle`;function w1({label:e,isLabelHidden:t=!1,description:n,errorMessage:r,value:i,defaultValue:a,onChange:o,name:s,placeholder:c,rows:l=4,isRequired:u=!1,isDisabled:d=!1,isReadOnly:f=!1,width:p}){return(0,S.jsxs)($Y,{className:S1({width:p}),isRequired:u,isDisabled:d,isReadOnly:f,isInvalid:r!==void 0,...i!==void 0&&{value:i},...a!==void 0&&{defaultValue:a},...o&&{onChange:o},...s!==void 0&&{name:s},children:[(0,S.jsxs)(SD,{className:t?LZ:IZ,children:[e,u&&(0,S.jsx)(`span`,{"aria-hidden":!0,className:`text-destructive`,children:` *`})]}),(0,S.jsx)(ZY,{className:C1,rows:l,...c!==void 0&&{placeholder:c}}),n!==void 0&&(0,S.jsx)(sO,{slot:`description`,className:`text-sm text-foreground-muted`,children:n}),(0,S.jsx)(GA,{className:BZ,children:r})]})}var T1={size:{sm:`h-8 w-8`,md:`h-10 w-14`,lg:`h-14 w-20`,full:`aspect-video w-full`},shape:{rounded:`rounded-md`,circle:`rounded-full`}},E1={size:`md`,shape:`rounded`},D1=H(`shrink-0 border border-border bg-background-secondary object-cover`,{variants:T1,defaultVariants:E1}),O1=H(`flex shrink-0 items-center justify-center border border-dashed border-border-strong bg-background-secondary`,{variants:T1,defaultVariants:E1}),k1=`size-4 text-foreground-subtle`;function A1({src:e,size:t,shape:n}){return e===void 0?(0,S.jsx)(`span`,{"aria-hidden":`true`,className:O1({size:t,shape:n}),children:(0,S.jsx)(Oy,{className:k1})}):(0,S.jsx)(`img`,{src:e,alt:``,loading:`lazy`,className:D1({size:t,shape:n})})}var j1=H(`flex shrink-0 items-center justify-center overflow-hidden rounded-full border border-border bg-background-tertiary font-semibold text-foreground select-none`,{variants:{size:{sm:`h-8 w-8 text-xs`,md:`h-12 w-12 text-sm`,lg:`h-20 w-20 text-xl`}},defaultVariants:{size:`md`}}),M1=`h-full w-full object-cover`,N1=e=>e.split(/\s+/).filter(Boolean).slice(0,2).map(e=>[...e][0]?.toUpperCase()??``).join(``);function P1({name:e,src:t,size:n}){return(0,S.jsx)(`span`,{"aria-hidden":`true`,className:j1({size:n}),children:t===void 0?N1(e):(0,S.jsx)(`img`,{src:t,alt:``,className:M1})})}var F1=`fixed bottom-4 right-4 layer-toast w-full max-w-sm outline-none`,I1=`toast-stack`,L1=`flex items-start gap-3 rounded-lg border border-border bg-background-elevated p-3 shadow-lg outline-none data-focus-visible:ring-2 data-focus-visible:ring-ring`,R1=H(`mt-0.5 shrink-0`,{variants:{tone:{neutral:`text-foreground-secondary`,success:`text-success`,danger:`text-destructive`}},defaultVariants:{tone:`neutral`}}),z1=`flex min-w-0 flex-1 flex-col gap-0.5 pt-0.5`,B1=`text-sm font-medium text-foreground`,V1=6e3,H1={neutral:Fy,success:Hv,danger:Wv},U1=new qX({maxVisibleToasts:4});function Z(e){let t=U1.add(e,e.tone===`danger`?{}:{timeout:V1});return()=>U1.close(t)}function W1(){U1.clear()}function G1({label:e,closeLabel:t}){return(0,S.jsx)(XX,{queue:U1,"aria-label":e,className:F1,children:(0,S.jsx)(ZX,{className:I1,children:({toast:e})=>{let n=e.content.tone??`neutral`,r=H1[n];return(0,S.jsxs)(QX,{toast:e,className:L1,children:[(0,S.jsx)(r,{"aria-hidden":!0,size:18,className:R1({tone:n})}),(0,S.jsxs)(eZ,{className:z1,children:[(0,S.jsx)(sO,{slot:`title`,className:B1,children:e.content.title}),e.content.description!==void 0&&(0,S.jsx)(sO,{slot:`description`,className:`text-sm text-foreground-secondary`,children:e.content.description})]}),(0,S.jsx)(gQ,{label:t,icon:Gx,size:`sm`,onPress:()=>U1.close(e.key)})]})}})})}var K1=`flex w-full flex-col gap-2`,q1=`flex items-baseline justify-between gap-3 text-sm`,J1=`font-medium text-foreground-muted`,Y1=`font-semibold text-foreground tabular-nums`,X1=`flex h-2 w-full overflow-hidden rounded-full bg-background-tertiary`,Z1=H(`h-full rounded-full bg-brand-fill transition-all motion-slide`,{variants:{step:{0:`w-0`,1:`w-1/20`,2:`w-2/20`,3:`w-3/20`,4:`w-4/20`,5:`w-5/20`,6:`w-6/20`,7:`w-7/20`,8:`w-8/20`,9:`w-9/20`,10:`w-10/20`,11:`w-11/20`,12:`w-12/20`,13:`w-13/20`,14:`w-14/20`,15:`w-15/20`,16:`w-16/20`,17:`w-17/20`,18:`w-18/20`,19:`w-19/20`,20:`w-full`}},defaultVariants:{step:0}});function Q1({label:e,value:t,max:n,valueText:r}){return(0,S.jsx)(oK,{className:K1,value:Math.min(t,n),minValue:0,maxValue:n,valueLabel:r,children:({percentage:t,valueText:n})=>(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(`span`,{className:q1,children:[(0,S.jsx)(SD,{className:J1,children:e}),(0,S.jsx)(`span`,{className:Y1,children:n})]}),(0,S.jsx)(`span`,{className:X1,children:(0,S.jsx)(`span`,{className:Z1({step:Math.min(20,Math.max(0,Math.round(t/5)))})})})]})})}var $1=`flex w-full flex-col gap-3`,e0=`flex h-40 w-full items-end gap-1.5`,t0=`flex h-full min-w-0 flex-1 flex-col items-center justify-end gap-1.5`,n0=`flex w-full flex-1 items-end border-b border-border`,r0=H(`w-full rounded-t-sm transition-all motion-slide`,{variants:{step:{0:`h-0`,1:`h-1/20`,2:`h-2/20`,3:`h-3/20`,4:`h-4/20`,5:`h-5/20`,6:`h-6/20`,7:`h-7/20`,8:`h-8/20`,9:`h-9/20`,10:`h-10/20`,11:`h-11/20`,12:`h-12/20`,13:`h-13/20`,14:`h-14/20`,15:`h-15/20`,16:`h-16/20`,17:`h-17/20`,18:`h-18/20`,19:`h-19/20`,20:`h-full`},isHighlighted:{true:`bg-brand-fill`,false:`bg-foreground-subtle`}},defaultVariants:{step:0,isHighlighted:!1}}),i0=`w-full truncate text-center text-xs text-foreground-muted`,a0=`flex w-full flex-col gap-3`,o0=`grid grid-cols-3 items-center gap-3`,s0=`truncate text-sm text-foreground-secondary`,c0=`col-span-2 flex items-center gap-3`,l0=`flex h-2.5 min-w-0 flex-1 rounded-full bg-background-tertiary`,u0=H(`h-full rounded-full transition-all motion-slide`,{variants:{step:{0:`w-0`,1:`w-1/20`,2:`w-2/20`,3:`w-3/20`,4:`w-4/20`,5:`w-5/20`,6:`w-6/20`,7:`w-7/20`,8:`w-8/20`,9:`w-9/20`,10:`w-10/20`,11:`w-11/20`,12:`w-12/20`,13:`w-13/20`,14:`w-14/20`,15:`w-15/20`,16:`w-16/20`,17:`w-17/20`,18:`w-18/20`,19:`w-19/20`,20:`w-full`},isHighlighted:{true:`bg-brand-fill`,false:`bg-foreground-subtle`}},defaultVariants:{step:0,isHighlighted:!1}}),d0=`w-20 shrink-0 text-right text-sm font-semibold text-foreground tabular-nums`,f0=`sr-only`,p0=(e,t)=>t<=0||e<=0?0:Math.min(20,Math.max(1,Math.round(e/t*20)));function m0({label:e,bars:t,layout:n=`columns`,highlightId:r}){let i=(0,x.useId)(),a=Math.max(0,...t.map(e=>e.value));return(0,S.jsxs)(`figure`,{className:$1,"aria-labelledby":i,children:[(0,S.jsx)(`figcaption`,{id:i,className:f0,children:e}),(0,S.jsx)(`ul`,{className:f0,children:t.map(e=>(0,S.jsx)(`li`,{children:`${e.label}: ${e.valueText}`},e.id))}),n===`columns`?(0,S.jsx)(`div`,{"aria-hidden":!0,className:e0,children:t.map(e=>(0,S.jsxs)(`div`,{className:t0,children:[(0,S.jsx)(`div`,{className:n0,children:(0,S.jsx)(`div`,{className:r0({step:p0(e.value,a),isHighlighted:e.id===r})})}),(0,S.jsx)(`span`,{className:i0,children:e.label})]},e.id))}):(0,S.jsx)(`div`,{"aria-hidden":!0,className:a0,children:t.map(e=>(0,S.jsxs)(`div`,{className:o0,children:[(0,S.jsx)(`span`,{className:s0,children:e.label}),(0,S.jsxs)(`span`,{className:c0,children:[(0,S.jsx)(`span`,{className:l0,children:(0,S.jsx)(`span`,{className:u0({step:p0(e.value,a),isHighlighted:e.id===r})})}),(0,S.jsx)(`span`,{className:d0,children:e.valueText})]})]},e.id))})]})}var h0=(0,x.createContext)(void 0);function g0(){return(0,x.useContext)(h0)}var _0=(0,x.createContext)(void 0);function v0(){return(0,x.useContext)(_0)}var y0=`flex h-dvh flex-col overflow-hidden bg-background text-foreground md:flex-row md:bg-rail`,b0=`sr-only layer-toast rounded-md bg-primary px-4 py-2 text-base font-medium text-primary-foreground focus:not-sr-only focus:fixed focus:top-2 focus:left-2`,x0=`hidden w-16 shrink-0 flex-col items-center gap-1 bg-rail px-2 py-3 md:flex`,S0=`flex h-11 w-11 shrink-0 items-center justify-center pb-2`,C0=`flex min-h-0 w-full flex-1 flex-col items-center gap-1 overflow-y-auto`,w0=H(`flex w-full flex-col items-center gap-1`,{variants:{place:{start:`border-t border-rail-border pt-2 first:border-t-0 first:pt-0`,end:`mt-auto pt-2`}},defaultVariants:{place:`start`}}),T0=`flex flex-col items-center gap-1`,E0=H([`relative flex h-11 w-11 items-center justify-center rounded-lg transition-colors motion-fast`,`outline-none data-focus-visible:ring-2 data-focus-visible:ring-rail-foreground`],{variants:{isCurrent:{true:`bg-rail-current text-rail-foreground`,false:`text-rail-muted data-hovered:bg-rail-hover data-hovered:text-rail-foreground`}},defaultVariants:{isCurrent:!1}}),D0=`sr-only`,O0=`flex h-11 w-11 shrink-0 items-center justify-center rounded-lg transition-colors motion-fast outline-none data-hovered:bg-rail-hover data-pressed:bg-rail-hover data-focus-visible:ring-2 data-focus-visible:ring-rail-foreground`,k0=H(`dark hidden shrink-0 overflow-hidden text-foreground transition-all motion-slide view-shell-places md:flex`,{variants:{isOpen:{true:`w-56`,false:`w-0`}},defaultVariants:{isOpen:!1}}),A0=H(`flex w-56 shrink-0 flex-col gap-5 overflow-y-auto px-3 py-5 transition-all motion-slide`,{variants:{isOpen:{true:`translate-x-0 opacity-100`,false:`-translate-x-4 opacity-0`}},defaultVariants:{isOpen:!1}}),j0=`flex min-w-0 flex-col gap-0.5 px-2.5`,M0=`truncate text-base font-bold text-foreground`,N0=`flex flex-col gap-0.5`,P0=H([`flex min-h-9 items-center gap-2.5 rounded-lg px-2.5 text-base transition-colors motion-fast`,`outline-none data-focus-visible:ring-2 data-focus-visible:ring-ring`],{variants:{isCurrent:{true:`bg-background-tertiary font-semibold text-foreground`,false:`font-medium text-foreground-muted data-hovered:bg-background-secondary data-hovered:text-foreground`}},defaultVariants:{isCurrent:!1}}),F0=`min-w-0 flex-1 truncate`,I0=`flex min-h-0 min-w-0 flex-1 flex-col view-shell-panel md:my-2 md:mr-2 md:overflow-hidden md:rounded-2xl md:border md:border-border md:bg-card md:shadow-sm`,L0=H(`flex min-h-14 shrink-0 items-center gap-2 border-b border-border bg-card px-3 md:min-h-16 md:gap-3 md:px-6`,{variants:{isHidden:{true:`md:hidden`,false:``}},defaultVariants:{isHidden:!1}}),R0=`flex min-w-0 flex-1 items-center`,z0=H([`flex h-10 min-w-0 shrink-0 items-center gap-2.5 rounded-lg border border-border bg-background px-3 text-base text-foreground-subtle transition-colors motion-fast`,`outline-none data-hovered:border-border-strong data-hovered:text-foreground-muted data-focus-visible:ring-2 data-focus-visible:ring-ring`],{variants:{isScreenLeadingBack:{true:`max-md:hidden`,false:`xl:w-52`}},defaultVariants:{isScreenLeadingBack:!1}}),B0=H(`sr-only min-w-0 flex-1 truncate text-left`,{variants:{isScreenLeadingBack:{true:``,false:`xl:not-sr-only xl:overflow-hidden xl:whitespace-nowrap`}},defaultVariants:{isScreenLeadingBack:!1}}),V0=H(`hidden shrink-0 rounded-sm border border-border px-1.5 font-mono text-xs text-foreground-subtle`,{variants:{isScreenLeadingBack:{true:``,false:`xl:block`}},defaultVariants:{isScreenLeadingBack:!1}}),H0=H([`h-10 w-10 shrink-0 items-center justify-center rounded-md text-foreground transition-colors motion-fast md:hidden`,`outline-none data-hovered:bg-background-tertiary data-pressed:bg-background-tertiary data-focus-visible:ring-2 data-focus-visible:ring-ring`],{variants:{isScreenLeadingBack:{true:`hidden`,false:`flex`}},defaultVariants:{isScreenLeadingBack:!1}}),U0=`fixed inset-0 layer-overlay flex bg-scrim motion-scrim`,W0=`h-full w-72 max-w-full border-r border-border bg-card shadow-xl outline-none motion-sheet-start`,G0=`flex h-full flex-col gap-4 overflow-y-auto px-3 py-5 outline-none`,K0=`flex flex-col gap-4`,q0=`flex w-full items-center gap-2.5 rounded-md px-2 py-1.5 text-left text-foreground-muted transition-colors motion-fast outline-none data-hovered:bg-background-tertiary data-pressed:bg-background-tertiary data-focus-visible:ring-2 data-focus-visible:ring-ring`,J0=`relative min-h-0 min-w-0 flex-1 overflow-auto bg-background outline-none`,Y0=`main`,X0=e=>e.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e.charAt(0).toUpperCase()).join(``);function Z0({item:e,onPress:t}){let{label:n,href:r,icon:i,isCurrent:a=!1,count:o}=e;return(0,S.jsxs)(bD,{className:P0({isCurrent:a}),href:r,...a&&{"aria-current":`page`},...t&&{onPress:t},children:[i&&(0,S.jsx)(i,{"aria-hidden":!0,size:16}),(0,S.jsx)(`span`,{className:F0,children:n}),o!==void 0&&(0,S.jsx)(`span`,{className:`shrink-0 text-xs font-medium text-foreground-muted tabular-nums`,children:o})]})}function Q0({groups:e,onPress:t}){return e.map(e=>(0,S.jsxs)(`div`,{role:`group`,...e.label!==void 0&&{"aria-label":e.label},children:[e.label!==void 0&&(0,S.jsx)(`div`,{"aria-hidden":!0,className:`px-2.5 pb-1.5 text-xs font-semibold tracking-widest text-foreground-subtle uppercase`,children:e.label}),(0,S.jsx)(`ul`,{className:N0,children:e.items.map(e=>(0,S.jsx)(`li`,{children:(0,S.jsx)(Z0,{item:e,onPress:t})},e.id))})]},e.id))}function $0({logoLabel:e,siteName:t,siteDetail:n,navLabel:r,nav:i,menuLabel:a,skipLabel:o,search:s,account:c,isBarHidden:l=!1,children:u}){let[d,f]=(0,x.useState)(null),[p,m]=(0,x.useState)(0),h=(0,x.useCallback)(e=>m(t=>Math.max(0,t+(e?1:-1))),[]),g=p>0,_=(0,S.jsxs)(`div`,{className:j0,children:[(0,S.jsx)(`span`,{className:M0,children:t}),n!==void 0&&(0,S.jsx)(`span`,{className:`truncate text-xs text-foreground-subtle`,children:n})]}),v=i.flatMap(e=>e.items).find(e=>e.isCurrent===!0&&(e.children?.length??0)>0),y=(0,x.useRef)(void 0);v!==void 0&&(y.current=v);let b=v??y.current,C=v!==void 0,w=c!==void 0&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`span`,{className:`sr-only`,children:c.label}),(0,S.jsx)(`span`,{"aria-hidden":!0,className:`flex h-8 w-8 shrink-0 items-center justify-center overflow-hidden rounded-full bg-rail-current text-xs font-bold text-rail-foreground`,children:c.image===void 0?X0(c.name):(0,S.jsx)(`img`,{src:c.image,alt:``,className:`h-full w-full object-cover`})})]});return(0,S.jsxs)(`div`,{className:y0,children:[(0,S.jsx)(`a`,{className:b0,href:`#${Y0}`,onClick:e=>{e.preventDefault(),document.getElementById(Y0)?.focus()},children:o}),(0,S.jsxs)(`aside`,{className:x0,children:[(0,S.jsx)(`div`,{className:S0,children:(0,S.jsx)(YQ,{label:e,tone:`rail`})}),(0,S.jsx)(`nav`,{"aria-label":r,className:C0,children:i.map(e=>(0,S.jsx)(`div`,{role:`group`,className:w0({place:e.place}),...e.label!==void 0&&{"aria-label":e.label},children:(0,S.jsx)(`ul`,{className:T0,children:e.items.map(({id:e,label:t,href:n,icon:r,isCurrent:i=!1,count:a})=>(0,S.jsx)(`li`,{children:(0,S.jsx)(pQ,{content:t,placement:`right`,children:(0,S.jsxs)(bD,{className:E0({isCurrent:i}),href:n,...i&&{"aria-current":`page`},children:[r&&(0,S.jsx)(r,{"aria-hidden":!0,size:20}),(0,S.jsx)(`span`,{className:D0,children:t}),a!==void 0&&(0,S.jsx)(`span`,{"aria-hidden":!0,className:`absolute top-1 right-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-rail-foreground px-1 text-xs font-bold text-rail`,children:a})]})})},e))})},e.id))}),c!==void 0&&(0,S.jsx)(s$,{placement:`top start`,actions:c.actions,onAction:c.onAction,trigger:(0,S.jsxs)(tO,{className:O0,children:[w,(0,S.jsxs)(`span`,{className:`sr-only`,children:[(0,S.jsx)(`span`,{children:c.name}),c.detail!==void 0&&(0,S.jsx)(`span`,{children:c.detail})]})]})})]}),(0,S.jsx)(`div`,{className:k0({isOpen:C}),inert:!C,...!C&&{"aria-hidden":!0},children:b?.children!==void 0&&(0,S.jsxs)(`nav`,{"aria-label":b.label,className:A0({isOpen:C}),children:[_,(0,S.jsx)(Q0,{groups:b.children})]})}),(0,S.jsxs)(`div`,{className:I0,children:[(0,S.jsxs)(`header`,{className:L0({isHidden:l}),children:[(0,S.jsxs)(DV,{children:[(0,S.jsx)(tO,{"aria-label":a,className:H0({isScreenLeadingBack:g}),children:(0,S.jsx)(wee,{"aria-hidden":!0,size:20})}),(0,S.jsx)(hK,{isDismissable:!0,className:U0,children:(0,S.jsx)(pK,{className:W0,children:(0,S.jsx)(OV,{"aria-label":a,className:G0,children:({close:e})=>(0,S.jsxs)(S.Fragment,{children:[_,(0,S.jsx)(`nav`,{"aria-label":r,className:K0,children:i.map(t=>(0,S.jsxs)(`div`,{role:`group`,...t.label!==void 0&&{"aria-label":t.label},children:[t.label!==void 0&&(0,S.jsx)(`div`,{"aria-hidden":!0,className:`px-2.5 pb-1.5 text-xs font-semibold tracking-widest text-foreground-subtle uppercase`,children:t.label}),(0,S.jsx)(`ul`,{className:N0,children:t.items.map(t=>(0,S.jsxs)(`li`,{children:[(0,S.jsx)(Z0,{item:t,onPress:e}),t.children!==void 0&&t.children.length>0&&(0,S.jsx)(`div`,{className:`flex flex-col gap-0.5 border-l border-border pl-3 ml-4.5`,children:(0,S.jsx)(Q0,{groups:t.children,onPress:e})})]},t.id))})]},t.id))}),c!==void 0&&(0,S.jsx)(`div`,{className:`mt-auto border-t border-border pt-3`,children:(0,S.jsx)(s$,{placement:`top start`,actions:c.actions,onAction:c.onAction,trigger:(0,S.jsxs)(tO,{className:q0,children:[(0,S.jsx)(`span`,{className:`sr-only`,children:c.label}),(0,S.jsx)(`span`,{"aria-hidden":!0,className:`flex h-8 w-8 shrink-0 items-center justify-center overflow-hidden rounded-full border border-border bg-background-tertiary text-xs font-semibold text-foreground`,children:c.image===void 0?X0(c.name):(0,S.jsx)(`img`,{src:c.image,alt:``,className:`h-full w-full object-cover`})}),(0,S.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,S.jsx)(`span`,{className:`truncate text-sm font-semibold text-foreground`,children:c.name}),c.detail!==void 0&&(0,S.jsx)(`span`,{className:`truncate text-xs text-foreground-muted`,children:c.detail})]}),(0,S.jsx)(Bv,{"aria-hidden":!0,size:14})]})})})]})})})})]}),(0,S.jsx)(`div`,{ref:f,className:R0}),s!==void 0&&(0,S.jsxs)(tO,{className:z0({isScreenLeadingBack:g}),onPress:s.onPress,children:[(0,S.jsx)(lx,{"aria-hidden":!0,size:16}),(0,S.jsx)(`span`,{className:B0({isScreenLeadingBack:g}),children:s.label}),s.shortcut!==void 0&&(0,S.jsx)(`kbd`,{"aria-hidden":!0,className:V0({isScreenLeadingBack:g}),children:s.shortcut})]})]}),(0,S.jsx)(`main`,{id:Y0,tabIndex:-1,className:J0,children:(0,S.jsx)(h0,{value:d,children:(0,S.jsx)(_0,{value:h,children:u})})})]})]})}var e2=`flex min-h-dvh items-center justify-center bg-background-secondary p-4 text-foreground`,t2=`flex w-full max-w-sm flex-col gap-6 rounded-lg border border-border bg-background p-8 shadow-sm`,n2=`flex items-center`,r2=`flex flex-col gap-1`;function i2({brand:e,title:t,description:n,children:r,footer:i}){return(0,S.jsx)(`main`,{className:e2,children:(0,S.jsxs)(`div`,{className:t2,children:[(0,S.jsx)(`div`,{className:n2,children:e}),(0,S.jsxs)(`div`,{className:r2,children:[(0,S.jsx)(LQ,{level:1,size:`lg`,children:t}),n!==void 0&&(0,S.jsx)(X,{tone:`secondary`,children:n})]}),r,i!==void 0&&(0,S.jsx)(`div`,{className:`border-t border-border pt-4`,children:i})]})})}var a2={default:`primary`,danger:`danger`};function o2({isOpen:e,onOpenChange:t,title:n,children:r,confirmLabel:i,cancelLabel:a,onConfirm:o,tone:s=`default`,isPending:c=!1}){return(0,S.jsx)(CQ,{isOpen:e,onOpenChange:t,title:n,role:`alertdialog`,size:`sm`,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(J,{variant:`secondary`,onPress:()=>t(!1),isDisabled:c,autoFocus:!0,children:a}),(0,S.jsx)(J,{variant:a2[s],onPress:o,isPending:c,children:i})]}),children:r})}var s2=`motion-rise flex flex-col items-center gap-4 px-6 py-12 text-center`,c2=`flex max-w-sm flex-col gap-1`;function l2({title:e,description:t,icon:n,action:r,level:i=2}){return(0,S.jsxs)(`div`,{className:s2,children:[n&&(0,S.jsx)(`span`,{className:`flex size-12 items-center justify-center rounded-full bg-secondary text-foreground-secondary`,children:(0,S.jsx)(n,{"aria-hidden":!0,size:24})}),(0,S.jsxs)(`div`,{className:c2,children:[(0,S.jsx)(LQ,{level:i,size:`md`,children:e}),t!==void 0&&(0,S.jsx)(X,{tone:`secondary`,children:t})]}),r]})}var u2=H(`flex min-w-0 justify-between`,{variants:{place:{page:`flex-wrap items-start gap-x-6 gap-y-4`,bar:`flex-1 items-center gap-2 md:gap-4 md:py-2`}},defaultVariants:{place:`page`}}),d2=H(`flex min-w-0`,{variants:{place:{page:`flex-col gap-1`,bar:`flex-1 items-baseline gap-3`}},defaultVariants:{place:`page`}}),f2=H(`min-w-0`,{variants:{place:{page:``,bar:`hidden flex-1 md:block`}},defaultVariants:{place:`page`}}),p2=H(`flex max-w-full shrink-0 items-center`,{variants:{place:{page:`flex-wrap gap-2`,bar:`gap-1 md:gap-2`}},defaultVariants:{place:`page`}});function m2({title:e,description:t,actions:n,secondary:r}){let i=g0();if(i===null)return null;let a=i===void 0?`page`:`bar`,o=a===`bar`,s=o?`div`:`header`,c=r!==void 0&&r.actions.length>0?r:void 0,l=(0,S.jsxs)(s,{className:u2({place:a}),children:[(0,S.jsxs)(`div`,{className:d2({place:a}),children:[(0,S.jsx)(LQ,{level:1,...o&&{size:`lg`,truncate:!0},children:e}),t!==void 0&&(0,S.jsx)(`div`,{className:f2({place:a}),children:(0,S.jsx)(X,{tone:o?`muted`:`secondary`,size:o?`sm`:`base`,truncate:o,children:t})})]}),(c!==void 0||n!==void 0)&&(0,S.jsxs)(`div`,{className:p2({place:a}),children:[c!==void 0&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`div`,{className:`hidden items-center gap-2 md:flex`,children:c.actions.map(e=>(0,S.jsx)(J,{variant:e.variant??`secondary`,icon:e.icon,onPress:e.onPress,...e.isDisabled!==void 0&&{isDisabled:e.isDisabled},...e.isPending!==void 0&&{isPending:e.isPending},children:e.label},e.id))}),(0,S.jsx)(`div`,{className:`flex md:hidden`,children:(0,S.jsx)(s$,{placement:`bottom end`,trigger:(0,S.jsx)(gQ,{label:c.moreLabel,icon:iy}),actions:c.actions.map(({id:e,label:t,icon:n,tone:r,isDisabled:i})=>({id:e,label:t,icon:n,...r!==void 0&&{tone:r},...i!==void 0&&{isDisabled:i}})),onAction:e=>c.actions.find(t=>t.id===e)?.onPress()})})]}),n]})]});return i===void 0?l:(0,vE.createPortal)(l,i)}var h2=`flex min-w-0 flex-col gap-2`,g2=IZ,_2=zZ,v2=BZ,y2=`flex flex-col gap-2`,b2=`flex items-start gap-1`,x2=`min-w-0 flex-1`,S2=`flex h-10 shrink-0 items-center`,C2=`rounded-md border border-dashed border-border px-3 py-4 text-sm text-foreground-muted`,w2=`flex`;function T2({label:e,description:t,errorMessage:n,items:r,emptyText:i,addLabel:a,onAdd:o,onRemove:s,onMove:c,removeLabel:l,moveUpLabel:u,moveDownLabel:d,isFull:f=!1}){let p=(0,x.useId)();return(0,S.jsxs)(`div`,{role:`group`,"aria-labelledby":p,className:h2,children:[(0,S.jsx)(`span`,{id:p,className:g2,children:e}),t!==void 0&&(0,S.jsx)(`p`,{className:_2,children:t}),r.length===0?(0,S.jsx)(`p`,{className:C2,children:i}):(0,S.jsx)(`ol`,{className:y2,children:r.map((e,t)=>(0,S.jsxs)(`li`,{className:b2,children:[(0,S.jsx)(`div`,{className:x2,children:e.content}),(0,S.jsxs)(`div`,{className:S2,children:[(0,S.jsx)(gQ,{size:`sm`,icon:bv,label:u(t+1),isDisabled:t===0,onPress:()=>c(t,t-1)}),(0,S.jsx)(gQ,{size:`sm`,icon:mv,label:d(t+1),isDisabled:t===r.length-1,onPress:()=>c(t,t+1)}),(0,S.jsx)(gQ,{size:`sm`,icon:jx,label:l(t+1),onPress:()=>s(t)})]})]},e.id))}),n!==void 0&&(0,S.jsx)(`p`,{className:v2,children:n}),(0,S.jsx)(`div`,{className:w2,children:(0,S.jsx)(J,{variant:`secondary`,size:`sm`,icon:Gb,isDisabled:f,onPress:o,children:a})})]})}var E2=H(`flex items-center`,{variants:{across:{screen:`sticky top-0 layer-sticky flex-wrap gap-x-4 gap-y-2 border-b border-border bg-background px-4 py-3 md:px-6`,shell:`min-w-0 flex-1 gap-2 py-2 md:gap-4`,section:`sticky top-0 layer-sticky flex-wrap gap-x-4 gap-y-2 border-b border-border bg-background px-4 py-3 md:px-6`,window:`shrink-0 gap-2 border-b border-border bg-card px-3 py-2 md:gap-4`}},defaultVariants:{across:`screen`}}),D2=`inline-flex h-8 shrink-0 items-center justify-center gap-1.5 rounded-md border border-border-strong bg-background text-sm font-medium text-foreground w-8 md:w-auto md:pr-3 md:pl-2 transition-colors motion-fast outline-none data-hovered:bg-background-secondary data-focus-visible:ring-2 data-focus-visible:ring-ring`,O2=H(`flex min-w-0 items-center gap-3`,{variants:{hasCenter:{true:`flex-1 md:flex-none md:shrink`,false:`flex-1 basis-0 md:basis-48`}},defaultVariants:{hasCenter:!1}}),k2=`flex shrink-0 items-center gap-2 whitespace-nowrap`,A2=`flex max-w-full shrink-0 flex-wrap items-center justify-end gap-1 md:gap-2`;function j2({label:e,back:t,title:n,status:r,note:i,actions:a,center:o,across:s=`screen`}){let c=g0(),l=s===`screen`&&c!==void 0,u=v0(),d=l&&t!==void 0;if((0,x.useEffect)(()=>{if(d&&u!==void 0)return u(!0),()=>u(!1)},[d,u]),l&&c===null)return null;let f=(0,S.jsxs)(`div`,{role:`region`,"aria-label":e,className:E2({across:l?`shell`:s}),children:[t?.href!==void 0&&(0,S.jsxs)(bD,{href:t.href,className:D2,children:[(0,S.jsx)(Iv,{"aria-hidden":!0,size:16}),(0,S.jsx)(`span`,{className:`sr-only md:not-sr-only`,children:t.label})]}),t!==void 0&&t.href===void 0&&(0,S.jsxs)(tO,{className:D2,...t.onPress&&{onPress:t.onPress},children:[(0,S.jsx)(Iv,{"aria-hidden":!0,size:16}),(0,S.jsx)(`span`,{className:`sr-only md:not-sr-only`,children:t.label})]}),(0,S.jsxs)(`div`,{className:O2({hasCenter:o!==void 0}),children:[n!==void 0&&(0,S.jsx)(`h1`,{className:`min-w-0 truncate text-lg font-semibold text-foreground`,children:n}),(0,S.jsxs)(`div`,{className:k2,"aria-live":`polite`,children:[r,i!==void 0&&(0,S.jsx)(`span`,{className:`sr-only text-sm text-foreground-muted lg:not-sr-only`,children:i})]})]}),o!==void 0&&(0,S.jsx)(`div`,{className:`hidden min-w-0 flex-1 items-center justify-center md:flex`,children:o}),(0,S.jsx)(`div`,{className:A2,children:a})]});return l&&c?(0,vE.createPortal)(f,c):f}var M2=`flex min-w-0 flex-col gap-1.5`,N2=H(``,{variants:{isLabelHidden:{true:LZ,false:IZ}},defaultVariants:{isLabelHidden:!1}}),P2=RZ,F2=zZ,I2=BZ,L2=`flex min-w-0 items-center gap-3`,R2=`h-14 w-20 shrink-0 rounded-md border border-border bg-background-secondary object-cover`,z2=`flex h-14 w-20 shrink-0 items-center justify-center rounded-md border border-dashed border-border-strong bg-background-secondary`,B2=`size-5 text-foreground-subtle`,V2=`min-w-0 flex-1 truncate text-sm text-foreground-secondary`,H2=`grid grid-cols-2 gap-3 py-2 outline-none sm:grid-cols-3`,U2=H(`flex cursor-default flex-col gap-1.5 rounded-md border bg-card p-1.5 outline-none transition-colors motion-fast data-hovered:border-border-strong data-focus-visible:ring-2 data-focus-visible:ring-input-focus data-selected:border-input-focus data-selected:ring-1 data-selected:ring-input-focus`,{variants:{isMarked:{true:`border-brand-fill ring-2 ring-brand-fill`,false:`border-border`}},defaultVariants:{isMarked:!1}}),W2=`aspect-video w-full rounded-sm bg-background-secondary object-cover`,G2=`truncate px-0.5 text-sm text-foreground`,K2=`py-6 text-center text-sm text-foreground-muted`,q2=[`image/jpeg`,`image/png`,`image/webp`];function J2({label:e,isLabelHidden:t=!1,description:n,errorMessage:r,isRequired:i=!1,value:a,images:o,onChange:s,chooseLabel:c,changeLabel:l,noneText:u,dialogTitle:d,closeLabel:f,emptyText:p,onUpload:m,uploadLabel:h,uploadHint:g,uploadError:_,window:v,search:y}){let[b,C]=(0,x.useState)(``),w=b.trim().toLowerCase(),T=w===``?o:o.filter(e=>e.name.toLowerCase().includes(w)),E=(0,x.useId)(),[D,O]=(0,x.useState)(!1),k=v?v.isOpen:D,A=v?v.onOpenChange:O,[j,M]=(0,x.useState)(!1),N=async e=>{if(e&&m){M(!0);try{await m(e),A(!1)}catch{}finally{M(!1)}}},P=o.find(e=>e.name===a),F=(0,S.jsxs)(CQ,{isOpen:k,onOpenChange:A,title:d,closeLabel:f,size:`lg`,children:[m&&h!==void 0&&(0,S.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-3 pt-2`,children:[(0,S.jsx)(UW,{acceptedFileTypes:q2,onSelect:e=>void N(e?.[0]),children:(0,S.jsx)(J,{variant:`secondary`,size:`sm`,icon:Ix,isPending:j,children:h})}),_===void 0?g!==void 0&&(0,S.jsx)(`p`,{className:`min-w-0 text-sm text-foreground-muted`,children:g}):(0,S.jsx)(`p`,{role:`alert`,className:`min-w-0 text-sm text-destructive`,children:_})]}),y&&o.length>0&&(0,S.jsx)(`div`,{className:`pt-2`,children:(0,S.jsx)(h$,{label:y.label,placeholder:y.placeholder,clearLabel:y.clearLabel,value:b,onChange:C})}),(0,S.jsx)(XL,{"aria-label":d,layout:`grid`,selectionMode:`single`,autoFocus:!0,selectedKeys:a===null?[]:[a],onSelectionChange:e=>{let[t]=e===`all`?[]:[...e];typeof t==`string`&&s(t),A(!1)},renderEmptyState:()=>(0,S.jsx)(`p`,{className:K2,children:o.length>0&&y?y.noMatchesText:p}),className:H2,children:T.map(e=>(0,S.jsxs)(tR,{id:e.name,textValue:e.badge===void 0?e.name:`${e.name}, ${e.badge}`,className:U2({isMarked:e.badge!==void 0}),children:[(0,S.jsx)(`img`,{src:e.url,alt:``,loading:`lazy`,className:W2}),e.badge!==void 0&&(0,S.jsx)(`span`,{className:`self-start rounded-full bg-brand-fill px-2 py-0.5 text-xs font-semibold text-brand-ink`,children:e.badge}),(0,S.jsx)(`span`,{className:G2,children:e.name})]},e.name))})]});return v?F:(0,S.jsxs)(`div`,{role:`group`,"aria-labelledby":E,className:M2,children:[(0,S.jsxs)(`span`,{id:E,className:N2({isLabelHidden:t}),children:[e,i&&(0,S.jsx)(`span`,{"aria-hidden":`true`,className:P2,children:` *`})]}),(0,S.jsxs)(`div`,{className:L2,children:[P?(0,S.jsx)(`img`,{src:P.url,alt:``,loading:`lazy`,className:R2}):(0,S.jsx)(`span`,{className:z2,children:(0,S.jsx)(Oy,{"aria-hidden":`true`,className:B2})}),(0,S.jsx)(`span`,{className:V2,children:a??u}),(0,S.jsx)(J,{variant:`secondary`,size:`sm`,onPress:()=>A(!0),children:a===null?c:l})]}),n!==void 0&&(0,S.jsx)(`p`,{className:F2,children:n}),r!==void 0&&(0,S.jsx)(`p`,{className:I2,children:r}),F]})}var Y2=`mx-auto flex w-full max-w-7xl flex-col gap-6 xl:flex-row xl:items-start`,X2=`flex min-w-0 flex-1 flex-col gap-6`,Z2=`flex w-full shrink-0 flex-col gap-6 xl:sticky xl:top-8 xl:w-80`;function Q2({asideLabel:e,children:t,aside:n}){return(0,S.jsxs)(`div`,{className:Y2,children:[(0,S.jsx)(`div`,{className:X2,children:t}),(0,S.jsx)(`aside`,{"aria-label":e,className:Z2,children:n})]})}var $2=`grid grid-cols-2 gap-4 outline-none sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5`,e4=H(`motion-press flex cursor-default flex-col gap-2 rounded-lg border bg-card p-2 outline-none data-hovered:border-border-strong data-hovered:shadow-sm data-focus-visible:ring-2 data-focus-visible:ring-input-focus`,{variants:{isMarked:{true:`border-brand-fill ring-2 ring-brand-fill`,false:`border-border`}},defaultVariants:{isMarked:!1}}),t4=`aspect-video w-full rounded-md bg-background-secondary object-cover`,n4=`flex min-w-0 flex-col px-1 pb-1`,r4=`truncate text-sm font-medium text-foreground`,i4=`col-span-full py-10 text-center text-sm text-foreground-muted`;function a4({label:e,items:t,onAction:n,emptyText:r}){return(0,S.jsx)(UG,{"aria-label":e,layout:`grid`,onAction:e=>n(String(e)),renderEmptyState:()=>(0,S.jsx)(`p`,{className:i4,children:r}),className:$2,children:t.map(e=>(0,S.jsxs)(GG,{id:e.id,textValue:e.badge===void 0?e.name:`${e.name}, ${e.badge}`,className:e4({isMarked:e.badge!==void 0}),children:[(0,S.jsx)(`img`,{src:e.url,alt:``,loading:`lazy`,className:t4}),(0,S.jsxs)(`span`,{className:n4,children:[e.badge!==void 0&&(0,S.jsx)(`span`,{className:`self-start rounded-full bg-brand-fill px-2 py-0.5 text-xs font-semibold text-brand-ink`,children:e.badge}),(0,S.jsx)(`span`,{className:r4,children:e.name}),e.note!==void 0&&(0,S.jsx)(`span`,{className:`truncate text-sm text-foreground-muted`,children:e.note})]})]},e.id))})}var o4=`flex flex-col gap-4 pb-4 outline-none`,s4=`py-6 text-center text-sm text-foreground-muted`,c4=H(``,{variants:{layout:{rows:`flex flex-col gap-1`,cards:`grid grid-cols-2 gap-2 sm:grid-cols-3`}}}),l4=`col-span-full px-2 pb-1 text-xs font-medium tracking-wide text-foreground-muted uppercase`,u4=H([`flex cursor-default rounded-md p-2 outline-none`,`transition-colors motion-fast data-hovered:bg-secondary data-focused:bg-secondary`,`data-focus-visible:ring-2 data-focus-visible:ring-input-focus`],{variants:{layout:{rows:`items-center gap-3`,cards:`flex-col gap-2`}}}),d4=H(`grid shrink-0 place-items-center rounded-md bg-secondary text-secondary-foreground`,{variants:{layout:{rows:`size-9`,cards:`aspect-video w-full border border-border`}}}),f4=`flex min-w-0 flex-col`,p4=`text-sm font-medium text-foreground`;function m4({isOpen:e,onOpenChange:t,onClosed:n,title:r,closeLabel:i,groups:a,onChoose:o,emptyText:s}){let c=a.filter(e=>e.options.length>0),l=c.some(e=>e.options.some(e=>e.image!==void 0))?`cards`:`rows`;return(0,S.jsx)(CQ,{isOpen:e,onOpenChange:t,...n!==void 0&&{onClosed:n},title:r,closeLabel:i,size:l===`cards`?`lg`:`md`,children:c.length===0?(0,S.jsx)(`p`,{className:s4,children:s}):(0,S.jsx)(XL,{"aria-label":r,autoFocus:`first`,selectionMode:`none`,layout:l===`cards`?`grid`:`stack`,className:o4,onAction:e=>{o(String(e)),t(!1)},children:c.map(e=>(0,S.jsxs)(eR,{id:`group:${e.id}`,className:c4({layout:l}),children:[(0,S.jsx)(NI,{className:l4,children:e.label}),e.options.map(({id:e,label:t,description:n,icon:r,image:i})=>(0,S.jsxs)(tR,{id:e,textValue:n===void 0?t:`${t} ${n}`,className:u4({layout:l}),children:[i===void 0?(r||l===`cards`)&&(0,S.jsx)(`span`,{className:d4({layout:l}),children:r&&(0,S.jsx)(r,{"aria-hidden":!0,size:18})}):(0,S.jsx)(A1,{src:i,size:`full`}),(0,S.jsxs)(`span`,{className:f4,children:[(0,S.jsx)(`span`,{className:p4,children:t}),n!==void 0&&(0,S.jsx)(`span`,{className:`text-sm text-foreground-secondary`,children:n})]})]},e))]},e.id))})})}var h4=`flex min-w-0 items-start gap-3 overflow-x-auto pb-2`,g4=H(`flex min-w-48 flex-1 basis-0 flex-col gap-2 rounded-lg border bg-background-secondary p-2 transition-colors motion-fast`,{variants:{state:{default:`border-border`,target:`border-ring ring-2 ring-ring`}},defaultVariants:{state:`default`}}),_4=`flex items-center justify-between gap-2 px-1 pt-1`,v4=`flex min-w-0 items-center gap-2 text-sm font-semibold text-foreground`,y4=`truncate`,b4=`shrink-0 text-sm text-foreground-muted`,x4=H(`size-2 shrink-0 rounded-full`,{variants:{tone:{neutral:`bg-foreground-subtle`,success:`bg-success`,danger:`bg-destructive`}},defaultVariants:{tone:`neutral`}}),S4=`flex flex-col gap-2`,C4=`rounded-md border border-dashed border-border px-3 py-6 text-center text-sm text-foreground-muted`,w4=H(`motion-rise flex min-w-0 items-start gap-1 rounded-md border border-border bg-card p-1 shadow-sm`,{variants:{state:{default:``,dragging:`opacity-50`}},defaultVariants:{state:`default`}}),T4=`flex min-w-0 flex-1 cursor-grab flex-col gap-1 rounded-sm px-2 py-1 text-left outline-none transition-colors motion-fast data-hovered:bg-secondary data-pressed:cursor-grabbing data-focus-visible:ring-2 data-focus-visible:ring-input-focus`,E4=`truncate text-sm font-medium text-foreground`,D4=`application/x-velocity-cms-board-card`;function O4({label:e,columns:t,emptyText:n,onOpen:r,onMove:i,moveLabel:a}){let o=new Map(t.flatMap(e=>e.items.map(t=>[t.id,e.id]))),s=(e,t)=>{o.get(e)!==t&&i(e,t)};return(0,S.jsx)(`div`,{role:`group`,"aria-label":e,className:h4,children:t.map(e=>(0,S.jsx)(k4,{column:e,columns:t,emptyText:n,onOpen:r,onMove:s,moveLabel:a},e.id))})}function k4({column:e,columns:t,emptyText:n,onOpen:r,onMove:i,moveLabel:a}){let o=(0,x.useId)(),s=(0,x.useRef)(null),[c,l]=(0,x.useState)(!1),{dropProps:u}=zW({ref:s,getDropOperation:e=>e.has(D4)?`move`:`cancel`,onDropEnter:()=>l(!0),onDropExit:()=>l(!1),onDrop:t=>{l(!1);let[n]=t.items.filter(qU);n?.getText(D4).then(t=>i(t,e.id))}}),d=t.filter(t=>t.id!==e.id).map(e=>({id:e.id,label:e.title}));return(0,S.jsxs)(`section`,{ref:s,"aria-labelledby":o,className:g4({state:c?`target`:`default`}),...u,children:[(0,S.jsxs)(`div`,{className:_4,children:[(0,S.jsxs)(`h3`,{id:o,className:v4,children:[(0,S.jsx)(`span`,{className:x4({tone:e.tone})}),(0,S.jsx)(`span`,{className:y4,children:e.title})]}),(0,S.jsx)(`span`,{className:b4,children:e.count})]}),e.items.length===0?(0,S.jsx)(`p`,{className:C4,children:n}):(0,S.jsx)(`ul`,{className:S4,children:e.items.map(e=>(0,S.jsx)(A4,{item:e,elsewhere:d,onOpen:r,onMove:i,moveLabel:a},e.id))}),e.more!==void 0&&(0,S.jsx)(`p`,{className:`px-1 text-sm text-foreground-muted`,children:e.more})]})}function A4({item:e,elsewhere:t,onOpen:n,onMove:r,moveLabel:i}){let{dragProps:a,isDragging:o}=EZ({getItems:()=>[{[D4]:e.id}],getAllowedDropOperations:()=>[`move`]});return(0,S.jsxs)(`li`,{className:w4({state:o?`dragging`:`default`}),...a,children:[(0,S.jsxs)(tO,{className:T4,onPress:()=>n(e.id),children:[(0,S.jsx)(`span`,{className:E4,children:e.title}),e.detail!==void 0&&(0,S.jsx)(`span`,{className:`truncate text-sm text-foreground-muted`,children:e.detail}),e.notes!==void 0&&e.notes.length>0&&(0,S.jsx)(`span`,{className:`flex flex-wrap items-center gap-1 pt-1`,children:e.notes.map(e=>(0,S.jsx)(_1,{tone:e.tone??`neutral`,children:e.text},e.text))})]}),t.length>0&&(0,S.jsx)(s$,{trigger:(0,S.jsx)(gQ,{size:`sm`,icon:gv,label:i(e.title)}),actions:t,onAction:t=>r(e.id,t)})]})}var j4=`flex min-w-0 flex-col gap-2`,M4=IZ,N4=zZ,P4=BZ,F4=`flex flex-col gap-2`,I4=`rounded-md border border-dashed border-border px-3 py-6 text-center text-sm text-foreground-muted`,L4=`flex`,R4=H(`motion-rise min-w-0 rounded-lg border bg-card`,{variants:{state:{default:`border-border`,problem:`border-destructive`,dragging:`border-border opacity-50`,target:`border-ring ring-2 ring-ring`}},defaultVariants:{state:`default`}}),z4=`flex items-center gap-1 py-1 pr-2 pl-1`,B4=`grid h-8 w-6 shrink-0 cursor-grab place-items-center rounded-md text-foreground-subtle outline-none transition-colors motion-fast data-hovered:bg-secondary data-hovered:text-foreground data-pressed:cursor-grabbing data-focus-visible:ring-2 data-focus-visible:ring-input-focus`,V4=`min-w-0 flex-1`,H4=`flex w-full min-w-0 cursor-default items-center gap-3 rounded-md px-2 py-2 text-left outline-none transition-colors motion-fast data-hovered:bg-secondary data-focus-visible:ring-2 data-focus-visible:ring-input-focus`,U4=`shrink-0 text-foreground-muted`,W4=H(`hidden size-8 shrink-0 place-items-center rounded-md sm:grid`,{variants:{tone:{default:`bg-secondary text-secondary-foreground`,quiet:`bg-background-secondary text-foreground-subtle`}},defaultVariants:{tone:`default`}}),wne=`flex min-w-0 flex-1 flex-col`,G4=H(`truncate text-sm font-medium`,{variants:{tone:{default:`text-foreground`,quiet:`text-foreground-muted`}},defaultVariants:{tone:`default`}}),K4=`flex shrink-0 items-center`,q4=`border-t border-border p-4`;function J4({label:e,description:t,errorMessage:n,items:r,openIds:i,onOpenChange:a,emptyText:o,addLabel:s,onAdd:c,isFull:l=!1,onMove:u,onAction:d,moveUpLabel:f,moveDownLabel:p,moreLabel:m,dragLabel:h,revealId:g}){let _=(0,x.useId)(),v=r.map(e=>e.id),y=(0,x.useRef)(null);return(0,x.useEffect)(()=>{if(g===void 0)return;let e=[...y.current?.children??[]].find(e=>e instanceof HTMLElement&&e.dataset.section===g);e&&typeof e.scrollIntoView==`function`&&e.scrollIntoView({block:`nearest`})},[g]),(0,S.jsxs)(`div`,{role:`group`,"aria-labelledby":_,className:j4,children:[(0,S.jsx)(`span`,{id:_,className:M4,children:e}),t!==void 0&&(0,S.jsx)(`p`,{className:N4,children:t}),r.length===0?(0,S.jsx)(`p`,{className:I4,children:o}):(0,S.jsx)(`ol`,{ref:y,className:F4,children:r.map((e,t)=>(0,S.jsx)(X4,{item:e,index:t,ids:v,isOpen:i.includes(e.id),onOpenChange:a,onMove:u,onAction:d,moveUpLabel:f,moveDownLabel:p,moreLabel:m,dragLabel:h},e.id))}),n!==void 0&&(0,S.jsx)(`p`,{className:P4,children:n}),(0,S.jsx)(`div`,{className:L4,children:(0,S.jsx)(J,{variant:`secondary`,size:`sm`,icon:Gb,isDisabled:l,onPress:c,children:s})})]})}var Y4=`application/x-velocity-cms-section`;function X4({item:e,index:t,ids:n,isOpen:r,onOpenChange:i,onMove:a,onAction:o,moveUpLabel:s,moveDownLabel:c,moreLabel:l,dragLabel:u}){let{id:d,title:f,summary:p,icon:m,tag:h,problem:g,content:_,actions:v}=e,y=(0,x.useRef)(null),[b,C]=(0,x.useState)(null),{dragProps:w,dragButtonProps:T,isDragging:E}=EZ({hasDragButton:!0,getItems:()=>[{[Y4]:d}],getAllowedDropOperations:()=>[`move`]}),{dropProps:D}=zW({ref:y,getDropOperation:e=>e.has(Y4)?`move`:`cancel`,onDropEnter:()=>C(e=>e??`here`),onDropMove:e=>C(e.y<(y.current?.offsetHeight??0)/2?`before`:`after`),onDropExit:()=>C(null),onDrop:e=>{let r=b;C(null);let[i]=e.items.filter(qU);i?.getText(Y4).then(e=>{let i=n.indexOf(e);if(i===-1)return;let o=r===`before`?t:r===`after`||i<t?t+1:t,s=i<o?o-1:o;s!==i&&a(i,s)})}}),O=h===void 0?`default`:`quiet`,k=r?Pv:Rv;return(0,S.jsxs)(`li`,{ref:y,"data-section":d,...D,children:[b===`before`&&(0,S.jsx)(`div`,{className:`my-1 h-0.5 rounded-full bg-ring`}),(0,S.jsxs)(ene,{className:R4({state:g===void 0?b===`here`?`target`:E?`dragging`:`default`:`problem`}),isExpanded:r,onExpandedChange:e=>i(d,e),children:[(0,S.jsxs)(`div`,{className:z4,...w,children:[(0,S.jsx)(tO,{...T,"aria-label":u(t+1),className:B4,children:(0,S.jsx)(by,{"aria-hidden":!0,size:16})}),(0,S.jsx)(aO,{level:3,className:V4,children:(0,S.jsxs)(tO,{slot:`trigger`,className:H4,children:[(0,S.jsx)(k,{"aria-hidden":!0,size:16,className:U4}),m&&(0,S.jsx)(`span`,{className:W4({tone:O}),children:(0,S.jsx)(m,{"aria-hidden":!0,size:16})}),(0,S.jsxs)(`span`,{className:wne,children:[(0,S.jsx)(`span`,{className:G4({tone:O}),children:f}),(h!==void 0||p!==void 0)&&(0,S.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[p!==void 0&&(0,S.jsx)(`span`,{className:`min-w-0 truncate text-sm text-foreground-muted`,children:p}),h!==void 0&&(0,S.jsx)(_1,{children:h})]})]})]})}),(0,S.jsxs)(`div`,{className:K4,children:[(0,S.jsx)(gQ,{size:`sm`,icon:bv,label:s(t+1),isDisabled:t===0,onPress:()=>a(t,t-1)}),(0,S.jsx)(gQ,{size:`sm`,icon:mv,label:c(t+1),isDisabled:t===n.length-1,onPress:()=>a(t,t+1)}),(0,S.jsx)(s$,{trigger:(0,S.jsx)(gQ,{size:`sm`,icon:iy,label:l(t+1)}),actions:v,onAction:e=>o(d,e)})]})]}),g!==void 0&&!r&&(0,S.jsx)(`p`,{className:`px-4 pb-3 text-sm text-destructive`,children:g}),(0,S.jsx)(tne,{children:(0,S.jsx)(`div`,{className:q4,children:_})})]}),b===`after`&&(0,S.jsx)(`div`,{className:`my-1 h-0.5 rounded-full bg-ring`})]})}var Z4=H(`flex h-full min-h-0 flex-col overflow-hidden bg-background-secondary`,{variants:{isBare:{true:``,false:`rounded-lg border border-border`}},defaultVariants:{isBare:!1}}),Q4=H(`flex min-h-0 flex-1`,{variants:{isFitted:{true:`justify-start overflow-hidden`,false:`justify-center`}},defaultVariants:{isFitted:!1}}),$4={phone:384,tablet:768,full:1280},e3=`m-auto max-w-sm px-6 text-center text-sm text-foreground-muted`,t3=H(`bg-background`,{variants:{width:{phone:`border-x border-border`,tablet:`border-x border-border`,full:``},isFitted:{true:`max-w-none shrink-0 origin-top-left`,false:`h-full w-full transition-all motion-base`}},compoundVariants:[{width:`phone`,isFitted:!1,class:`max-w-sm`},{width:`tablet`,isFitted:!1,class:`max-w-3xl`}],defaultVariants:{width:`full`,isFitted:!1}}),n3=500,r3=`velocity-cms`,i3=250,a3=100,o3=.9,s3=[`up`,`down`,`duplicate`,`remove`,`addBefore`,`addAfter`],c3=[`up`,`down`,`duplicate`,`remove`];function l3({label:e,address:t,draft:n,note:r,toolbar:i,action:a,emptyText:o,onSectionPress:s,shownSectionId:c,shownAt:l=0,typable:u,onWords:d,tools:f,onSectionAction:p,onSectionMove:m,onSectionPicture:h,onSectionLink:g,onSectionItem:_,onSectionSwatch:v,onSectionSlot:y,onTextLink:b,onUndo:C,onRedo:w,onSave:T,escapes:E=0,isBare:D=!1,width:O}){let k=`preview-${(0,x.useId)().replaceAll(`:`,``)}`,A=(0,x.useRef)(null),j=(0,x.useRef)(null),M=(0,x.useRef)(!1),N=u===void 0?void 0:JSON.stringify(u),P=f===void 0?void 0:JSON.stringify(f),F=(0,x.useRef)({onSectionPress:s,shownSectionId:c,onWords:d,places:N,offered:P,onSectionAction:p,onSectionMove:m,onSectionPicture:h,onSectionLink:g,onSectionItem:_,onSectionSwatch:v,onSectionSlot:y,onTextLink:b,onUndo:C,onRedo:w,onSave:T});(0,x.useEffect)(()=>{F.current={onSectionPress:s,shownSectionId:c,onWords:d,places:N,offered:P,onSectionAction:p,onSectionMove:m,onSectionPicture:h,onSectionLink:g,onSectionItem:_,onSectionSwatch:v,onSectionSlot:y,onTextLink:b,onUndo:C,onRedo:w,onSave:T}});let ee=(0,x.useRef)(0),I=(0,x.useRef)(0),te=(0,x.useRef)(!1),ne=(0,x.useRef)(0),re=(0,x.useRef)(0),ie=(0,x.useRef)(!1);(0,x.useEffect)(()=>{if(re.current=Date.now(),t===void 0)return;let e=()=>{M.current=!0,te.current=!1,A.current?.submit()};if(!M.current){e();return}if(Date.now()-ee.current<i3&&!te.current)return;if(te.current=!0,Date.now()-I.current<500){I.current=0,e();return}let n=setTimeout(e,n3);return()=>clearTimeout(n)},[t,n]);let ae=(0,x.useRef)(null),[oe,se]=(0,x.useState)(null);(0,x.useEffect)(()=>{let e=ae.current;if(!e||typeof ResizeObserver>`u`)return;let t=()=>se({width:e.clientWidth,height:e.clientHeight}),n=new ResizeObserver(t);return n.observe(e),t(),()=>n.disconnect()},[t===void 0]);let ce=$4[O??`full`],le=oe===null||oe.width<=0||oe.width>=ce*o3?1:oe.width/ce,ue=le<1,de=(0,x.useRef)(1),fe=e=>{e!==de.current&&(de.current=e,j.current?.contentWindow?.postMessage({source:r3,type:`zoom`,scale:e},window.location.origin))},pe=(0,x.useRef)(le);(0,x.useEffect)(()=>{pe.current=le,fe(le)},[le]),(0,x.useEffect)(()=>{E>0&&j.current?.contentWindow?.postMessage({source:r3,type:`escape`},window.location.origin)},[E]);let L=(e,t=!1)=>{e!==void 0&&j.current?.contentWindow?.postMessage({source:r3,type:`show`,id:e,...t&&{still:t}},window.location.origin)},me=e=>{e!==void 0&&j.current?.contentWindow?.postMessage({source:r3,type:`typable`,places:JSON.parse(e)},window.location.origin)},he=e=>{e!==void 0&&j.current?.contentWindow?.postMessage({source:r3,type:`tools`,...JSON.parse(e)},window.location.origin)};return(0,x.useEffect)(()=>{let e=e=>{if(e.origin!==window.location.origin||e.source!==j.current?.contentWindow)return;let t=e.data;if(t?.source===r3){if(t.type===`section`&&typeof t.id==`string`&&(typeof t.field==`string`?F.current.onSectionPress?.(t.id,t.field,t.form===!0):F.current.onSectionPress?.(t.id)),t.type===`words`&&typeof t.id==`string`&&typeof t.field==`string`&&typeof t.words==`string`&&(ee.current=Date.now(),F.current.onWords?.(t.id,t.field,t.words)),(t.type===`act`||t.type===`move`||t.type===`item`||t.type===`swatch`||t.type===`undo`||t.type===`redo`)&&(I.current=Date.now()),t.type===`act`&&typeof t.id==`string`){let e=s3.find(e=>e===t.action);e&&F.current.onSectionAction?.(t.id,e)}if(t.type===`move`&&typeof t.id==`string`&&(typeof t.before==`string`||t.before===null)&&(typeof t.into==`string`?F.current.onSectionMove?.(t.id,t.before,t.into):F.current.onSectionMove?.(t.id,t.before)),t.type===`slot`&&typeof t.id==`string`&&typeof t.field==`string`&&F.current.onSectionSlot?.(t.id,t.field),t.type===`picture`&&typeof t.id==`string`&&typeof t.field==`string`&&F.current.onSectionPicture?.(t.id,t.field),t.type===`link`&&typeof t.id==`string`&&typeof t.field==`string`&&F.current.onSectionLink?.(t.id,t.field),t.type===`item`&&typeof t.id==`string`&&typeof t.field==`string`&&typeof t.at==`number`){let e=c3.find(e=>e===t.action);e&&F.current.onSectionItem?.(t.id,t.field,t.at,e)}if(t.type===`swatch`&&typeof t.id==`string`&&typeof t.field==`string`&&typeof t.value==`string`&&F.current.onSectionSwatch?.(t.id,t.field,t.value),t.type===`linkAsk`&&typeof t.href==`string`){let e=j.current?.contentWindow,n=t=>e?.postMessage({source:r3,type:`linkAnswer`,href:t},window.location.origin);F.current.onTextLink?F.current.onTextLink(t.href,n):n(null)}(t.type===`undo`||t.type===`redo`)&&(ee.current=0,t.type===`undo`?F.current.onUndo?.():F.current.onRedo?.()),t.type===`save`&&F.current.onSave?.(),t.type===`ready`&&(de.current=1,fe(pe.current),me(F.current.places),he(F.current.offered),L(F.current.shownSectionId,ie.current&&Math.abs(ne.current-re.current)>a3),ie.current=!0,ne.current=0)}};return window.addEventListener(`message`,e),()=>window.removeEventListener(`message`,e)},[]),(0,x.useEffect)(()=>{ne.current=Date.now(),L(c)},[c,l]),(0,x.useEffect)(()=>me(N),[N]),(0,x.useEffect)(()=>he(P),[P]),(0,S.jsxs)(`div`,{className:Z4({isBare:D}),children:[(r!==void 0||i!==void 0||a!==void 0)&&(0,S.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 border-b border-border bg-background px-3 py-2`,children:[a??(0,S.jsx)(`span`,{className:`min-w-0 truncate text-sm text-foreground-muted`,children:r}),i]}),(0,S.jsx)(`div`,{ref:ae,className:Q4({isFitted:ue}),children:t===void 0?(0,S.jsx)(`p`,{className:e3,children:o}):(0,S.jsxs)(S.Fragment,{children:[(0,vE.createPortal)((0,S.jsx)(`form`,{ref:A,method:`post`,action:t,target:k,hidden:!0,children:(0,S.jsx)(`input`,{type:`hidden`,name:`draft`,value:n,readOnly:!0})}),document.body),(0,S.jsx)(`iframe`,{ref:j,name:k,title:e,className:t3({width:O,isFitted:ue}),...ue&&oe!==null&&{style:{width:`${ce}px`,height:`${oe.height/le}px`,transform:`scale(${le})`}}})]})})]})}var u3=H(``,{variants:{view:{beside:`w-full`,whole:`dark fixed inset-0 layer-overlay flex flex-col bg-background text-foreground`}},defaultVariants:{view:`beside`}}),d3=H(`flex`,{variants:{view:{beside:`w-full flex-col gap-6 xl:flex-row xl:items-start`,whole:`min-h-0 flex-1`}},defaultVariants:{view:`beside`}}),f3=H(`flex min-w-0 flex-col gap-6`,{variants:{view:{beside:`xl:w-lg xl:shrink-0`,whole:`order-last max-w-full shrink-0 overflow-auto border-l border-border bg-card p-4`},isAway:{true:``,false:``}},compoundVariants:[{view:`whole`,isAway:!0,class:`hidden`}],defaultVariants:{view:`beside`,isAway:!1}}),p3=H(`flex min-w-0 max-w-full flex-col gap-6`,{variants:{width:{0:`md:w-80`,1:`md:w-88`,2:`md:w-96`,3:`md:w-104`,4:`md:w-112`,5:`md:w-120`,6:`md:w-128`,7:`md:w-136`,8:`md:w-144`,9:`md:w-160`}}}),m3=H(``,{variants:{width:{0:`w-48`,1:`w-52`,2:`w-56`,3:`w-60`,4:`w-64`,5:`w-72`,6:`w-80`,7:`w-96`}}}),h3=`flex min-w-0 flex-col gap-6`,g3=H(`min-w-0`,{variants:{view:{beside:`pane-tall xl:sticky xl:top-8 xl:flex-1`,whole:`min-h-0 flex-1 p-3`},isResizing:{true:`pointer-events-none select-none`,false:``}},defaultVariants:{view:`beside`,isResizing:!1}}),_3=H(`relative z-10 w-px shrink-0 cursor-col-resize touch-none bg-transparent transition-colors motion-fast outline-none hover:bg-border-strong before:absolute before:inset-y-0 before:-inset-x-1.5`,{variants:{place:{outline:`hidden lg:block`,form:`order-last max-md:hidden`},isActive:{true:`bg-brand-fill hover:bg-brand-fill`,false:``}},defaultVariants:{place:`outline`,isActive:!1}}),v3=(e,t)=>Math.min(t,Math.max(0,e));function y3({label:e,place:t,step:n,most:r,grows:i,onStep:a,onResizing:o}){let s=(0,x.useRef)(0),c=(0,x.useRef)(n),[l,u]=(0,x.useState)(!1),{focusProps:d,isFocusVisible:f}=fD(),{moveProps:p}=gN({onMoveStart:()=>{s.current=0,c.current=n,u(!0),o(!0)},onMove:({deltaX:e,pointerType:t})=>{t===`keyboard`?a(v3(n+Math.sign(e)*i,r)):(s.current+=e,a(v3(c.current+Math.round(s.current*i/32),r)))},onMoveEnd:()=>{u(!1),o(!1)}});return(0,S.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,"aria-label":e,"aria-valuemin":0,"aria-valuemax":r,"aria-valuenow":n,tabIndex:0,...p,...d,className:_3({place:t,isActive:l||f})})}function b3({paneLabel:e,children:t,pane:n,bar:r,isFormAway:i=!1,outline:a,outlineLabel:o,sizes:s,onSizesChange:c,resizeLabels:l,view:u=`beside`}){let d=u===`whole`,[f,p]=(0,x.useState)({outline:3,form:6}),m=s??f,h=e=>{p(e),c?.(e)},[g,_]=(0,x.useState)(!1),v=(0,x.useRef)(null),y=(0,S.jsx)(`div`,{className:f3({view:u,isAway:d&&i}),children:(0,S.jsx)(`div`,{className:d?p3({width:m.form}):h3,children:t})});return(0,S.jsx)(JI,{contain:d,children:(0,S.jsx)(iB,{getContainer:()=>d&&v.current!==null?v.current:document.body,children:(0,S.jsxs)(`div`,{ref:v,className:u3({view:u}),children:[d&&r,(0,S.jsxs)(`div`,{className:d3({view:u}),children:[d&&a!==void 0&&(0,S.jsx)(`aside`,{"aria-label":o,className:`hidden shrink-0 flex-col overflow-auto border-r border-border bg-card p-3 lg:flex`,children:(0,S.jsx)(`div`,{className:m3({width:m.outline}),children:a})}),d&&a!==void 0&&l!==void 0&&(0,S.jsx)(y3,{label:l.outline,place:`outline`,step:m.outline,most:7,grows:1,onStep:e=>h({...m,outline:e}),onResizing:_}),d&&!i&&l!==void 0&&(0,S.jsx)(y3,{label:l.form,place:`form`,step:m.form,most:9,grows:-1,onStep:e=>h({...m,form:e}),onResizing:_}),y,(0,S.jsx)(`section`,{"aria-label":e,className:g3({view:u,isResizing:g}),children:n})]})]})})})}var x3=`fixed inset-0 layer-overlay flex items-start justify-center bg-scrim px-4 pt-24 motion-scrim`,S3=`flex max-h-112 w-full max-w-xl flex-col overflow-hidden rounded-xl border border-border bg-background-elevated shadow-xl outline-none motion-pop`,C3=`flex min-h-0 flex-col overflow-y-auto outline-none`,w3=`sticky top-0 layer-raised flex shrink-0 items-center gap-3 border-b border-border bg-background-elevated px-4 text-foreground-muted`,T3=`h-14 w-full min-w-0 bg-transparent text-lg text-foreground outline-none placeholder:text-foreground-subtle`,E3=`p-2 outline-none`,D3=`pb-1`,O3=`px-3 pt-2 pb-1 text-xs font-semibold tracking-widest text-foreground-subtle uppercase`,k3=`flex cursor-default items-center gap-3 rounded-lg px-3 py-2 text-base text-foreground outline-none data-focused:bg-background-tertiary data-hovered:bg-background-secondary`,A3=`min-w-0 flex-1 truncate font-medium`,j3=`px-3 py-8 text-center text-base text-foreground-muted`;function M3({isOpen:e,onOpenChange:t,label:n,placeholder:r,emptyText:i,groups:a,onAction:o,onSearch:s}){let{contains:c}=kV({sensitivity:`base`}),l=new Set(a.filter(e=>e.isFound===!0).flatMap(e=>e.items.map(e=>e.id)));return(0,S.jsx)(hK,{isOpen:e,onOpenChange:t,isDismissable:!0,className:x3,children:(0,S.jsx)(pK,{className:S3,children:(0,S.jsx)(OV,{"aria-label":n,className:C3,children:({close:e})=>(0,S.jsxs)(TT,{filter:(e,t,n)=>l.has(String(n.key))||c(e,t),...s!==void 0&&{onInputChange:s},children:[(0,S.jsxs)(cq,{"aria-label":r,autoFocus:!0,className:w3,children:[(0,S.jsx)(lx,{"aria-hidden":!0,size:18}),(0,S.jsx)(ON,{placeholder:r,className:T3})]}),(0,S.jsx)(_V,{"aria-label":n,className:E3,renderEmptyState:()=>(0,S.jsx)(`div`,{className:j3,children:i}),onAction:t=>{e(),o(String(t))},children:a.filter(e=>e.items.length>0).map(e=>(0,S.jsxs)(xV,{id:e.id,className:D3,children:[(0,S.jsx)(NI,{className:O3,children:e.label}),e.items.map(({id:e,label:t,detail:n,icon:r,keywords:i})=>(0,S.jsxs)(CV,{id:e,className:k3,textValue:[t,n,i].filter(e=>e!==void 0).join(` `),children:[r&&(0,S.jsx)(`span`,{"aria-hidden":!0,className:`flex h-8 w-8 shrink-0 items-center justify-center rounded-md border border-border bg-background text-foreground-muted`,children:(0,S.jsx)(r,{size:16})}),(0,S.jsx)(`span`,{className:A3,children:t}),n!==void 0&&(0,S.jsx)(`span`,{className:`shrink-0 text-sm text-foreground-subtle`,children:n})]},e))]},e.id))})]})})})})}var N3=`flex min-h-0 flex-col gap-2`,P3=`px-2 text-xs font-semibold tracking-widest text-foreground-subtle uppercase`,F3=`flex flex-col gap-0.5 outline-none`,I3=H([`flex min-h-9 cursor-default items-center gap-2.5 rounded-lg px-2 text-base text-foreground-secondary transition-colors motion-fast outline-none`,`data-hovered:bg-background-secondary data-hovered:text-foreground`,`data-focus-visible:ring-2 data-focus-visible:ring-ring data-focus-visible:ring-inset`,`data-selected:bg-background-tertiary data-selected:font-semibold data-selected:text-foreground`],{variants:{depth:{0:``,1:`pl-6`,2:`pl-10`,3:`pl-14`}},defaultVariants:{depth:0}}),L3=`min-w-0 flex-1 truncate`,R3=`px-2 py-3 text-sm text-foreground-muted`;function z3({title:e,items:t,currentId:n,onChoose:r,emptyText:i}){let a=(0,x.useId)();return(0,S.jsxs)(`div`,{className:N3,children:[(0,S.jsx)(`div`,{id:a,className:P3,children:e}),(0,S.jsx)(XL,{"aria-labelledby":a,className:F3,items:t,selectionMode:`single`,selectedKeys:n===void 0?[]:[n],onSelectionChange:e=>{if(e===`all`)return;let[t]=[...e],i=t===void 0?n:String(t);i!==void 0&&r(i)},renderEmptyState:()=>(0,S.jsx)(`div`,{className:R3,children:i}),children:({id:e,label:t,depth:n=0,icon:r})=>(0,S.jsxs)(tR,{id:e,textValue:t,className:I3({depth:n}),children:[r&&(0,S.jsx)(`span`,{"aria-hidden":!0,className:`flex h-6 w-6 shrink-0 items-center justify-center rounded-md border border-border bg-background text-foreground-muted`,children:(0,S.jsx)(r,{size:14})}),(0,S.jsx)(`span`,{className:L3,children:t})]})})]})}var B3=`border-b border-border bg-background bg-grid`,V3=`mx-auto flex max-w-7xl flex-wrap items-center gap-10 px-4 py-8 sm:px-6 md:px-12 md:py-12`,H3=`flex min-w-0 flex-1 basis-96 flex-col gap-4`,U3=`max-w-2xl font-display text-4xl font-bold tracking-tight text-balance text-foreground md:text-5xl`,W3=`bg-transparent text-brand-text`;function G3(e,t){let n=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),r=RegExp(`(?<![\\p{L}\\p{N}])${n}(?![\\p{L}\\p{N}])`,`u`).exec(e);return r?r.index:e.indexOf(t)}function K3(e,t){let n=t===void 0||t===``?-1:G3(e,t);return t===void 0||n<0?e:(0,S.jsxs)(S.Fragment,{children:[e.slice(0,n),(0,S.jsx)(`mark`,{className:W3,children:t}),e.slice(n+t.length)]})}function q3({eyebrow:e,title:t,highlight:n,description:r,actions:i,aside:a}){return(0,S.jsx)(`section`,{className:B3,children:(0,S.jsxs)(`div`,{className:V3,children:[(0,S.jsxs)(`div`,{className:H3,children:[e!==void 0&&(0,S.jsx)(`p`,{className:`text-xs font-semibold tracking-widest text-foreground-subtle uppercase`,children:e}),(0,S.jsx)(`h1`,{className:U3,children:K3(t,n)}),r!==void 0&&(0,S.jsx)(`p`,{className:`max-w-xl text-lg text-foreground-muted`,children:r}),i!==void 0&&(0,S.jsx)(`div`,{className:`flex flex-wrap gap-2 pt-2`,children:i})]}),a!==void 0&&(0,S.jsx)(`div`,{className:`hidden min-w-0 flex-1 basis-96 justify-center md:flex lg:justify-end`,children:a})]})})}var J3=`group relative w-full min-w-0 max-w-xl overflow-hidden rounded-xl border border-border bg-card shadow-xl transition-colors motion-base has-data-hovered:border-border-strong has-data-focus-visible:ring-2 has-data-focus-visible:ring-ring`,Y3=`flex items-center gap-3 border-b border-border bg-background-secondary px-3.5 py-2.5`,X3=`flex shrink-0 gap-1.5`,Z3=`h-2.5 w-2.5 rounded-full bg-border-strong`,Q3=`min-w-0 flex-1 truncate text-center font-mono text-xs text-foreground-subtle`,$3=`w-10 shrink-0`,e6=H(`relative overflow-hidden bg-background`,{variants:{size:{md:`h-72`,sm:`h-40`}},defaultVariants:{size:`md`}}),t6=H(`pointer-events-none absolute top-0 left-0 origin-top-left border-0`,{variants:{size:{md:`h-144 w-288 scale-50`,sm:`h-200 w-320 scale-20`}},defaultVariants:{size:`md`}}),n6=`flex items-center gap-3 border-t border-border px-4 py-3 text-sm`,r6=`shrink-0 font-semibold text-foreground outline-none after:absolute after:inset-0 group-hover:underline`;function i6({address:e,src:t,title:n,label:r,meta:i,href:a,onPress:o,size:s}){return(0,S.jsxs)(`div`,{className:J3,children:[(0,S.jsxs)(`div`,{"aria-hidden":!0,className:Y3,children:[(0,S.jsxs)(`span`,{className:X3,children:[(0,S.jsx)(`span`,{className:Z3}),(0,S.jsx)(`span`,{className:Z3}),(0,S.jsx)(`span`,{className:Z3})]}),(0,S.jsx)(`span`,{className:Q3,children:e}),(0,S.jsx)(`span`,{className:$3})]}),(0,S.jsx)(`div`,{className:e6({size:s}),children:(0,S.jsx)(`iframe`,{src:t,title:n,loading:`lazy`,tabIndex:-1,"aria-hidden":!0,className:t6({size:s})})}),(0,S.jsxs)(`div`,{className:n6,children:[i!==void 0&&(0,S.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-foreground-muted`,children:i}),(0,S.jsx)(bD,{className:r6,...a!==void 0&&{href:a},...o!==void 0&&{onPress:o},children:r})]})]})}function a6({navigate:e,children:t}){return(0,S.jsx)(CC,{navigate:e,children:t})}function o6(e,t){return e[t]??e[t.split(`-`)[0]??t]??Object.values(e)[0]??``}function s6(e,t){try{return new Intl.DisplayNames(t,{type:`language`}).of(e)??e}catch{return e}}function c6(e,t){let n=e.titlePath??m_(e.fields).filter(e=>e.type===`text`).slice(0,1).map(e=>e.id),r=t;for(let e of n)r=typeof r==`object`&&r?r[e]:void 0;return typeof r==`string`&&r.trim()!==``?r:null}var l6=new Set([`id`,`block`]);function u6(e,t){return typeof e==`string`?t!==void 0&&l6.has(t)?[]:[e]:Array.isArray(e)?e.flatMap(e=>u6(e)):typeof e==`object`&&e?Object.entries(e).flatMap(([e,t])=>u6(t,e)):[]}function d6(e,t){let n=t.toLowerCase().split(/\s+/u).filter(e=>e.length>0);if(n.length===0)return!0;let r=[e.slug,...u6(e.data)].map(e=>e.toLowerCase());return n.every(e=>r.some(t=>t.includes(e)))}function f6(e,t,n){let r=e.fields,i=t,a;for(let e of n){if(a=r.find(t=>t.id===e&&t.deletedAt===void 0),!a)return null;i=typeof i==`object`&&i?i[e]:void 0,r=Array.isArray(a.options.fields)?a.options.fields:[]}return a?{field:a,value:i}:null}function p6(e,t){let n=e.list?.imagePath?f6(e,t,e.list.imagePath):null,r=Array.isArray(n?.value)?n.value[0]:n?.value;return typeof r==`string`&&r!==``?r:null}function m6(e){return e.publishAt===void 0?p_(e)?`unpublishedChanges`:e.status:`scheduled`}function h6(e,t,n){let{[t]:r,...i}=e;return n===void 0?i:{...i,[t]:n}}function g6(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e===null||t===null||Array.isArray(e)!==Array.isArray(t))return!1;let n=e,r=t,i=Object.keys(n);return i.length===Object.keys(r).length&&i.every(e=>e in r&&g6(n[e],r[e]))}function _6(e,t){let n=t.split(`-`)[0]??t,r=new Map;for(let t of e)r.set(t.translationGroup,[...r.get(t.translationGroup)??[],t]);return[...r.values()].map(e=>{let r=e.find(e=>e.locale===t)??e.find(e=>e.locale.split(`-`)[0]===n)??e[0];if(!r)throw Error(`A group of translations has no entries.`);return{primary:r,versions:[r,...e.filter(e=>e!==r)]}})}function v6(e,t){let n=e.localizedUrlPatterns?.[t.locale]??e.urlPattern;return n===void 0?null:W_({urlPattern:n,fields:e.fields},t,t.locale)}var y6=new Set([`P`,`DIV`,`H1`,`H2`,`H3`,`H4`,`H5`,`H6`,`BLOCKQUOTE`,`UL`,`OL`,`LI`]),b6=e=>e.nodeType===1,x6=e=>b6(e)&&y6.has(e.tagName);function S6(e,t){let n=e=>t.some(t=>t.type===e);if((e.tagName===`B`||e.tagName===`STRONG`)&&!n(`bold`))return[{type:`bold`},...t];if((e.tagName===`I`||e.tagName===`EM`)&&!n(`italic`))return[{type:`italic`},...t];if(e.tagName===`CODE`&&!n(`code`))return[{type:`code`},...t];let r=e.tagName===`A`?(e.getAttribute(`href`)??``).trim():``;return r!==``&&__(r)&&!n(`link`)?[{type:`link`,attrs:{href:r}},...t]:t}function C6(e,t=[]){let n=[];for(let r of e)if(r.nodeType===3){let e=(r.nodeValue??``).replace(/[\t\n\r ]+/g,` `);e!==``&&n.push(t.length>0?{type:`text`,text:e,marks:t}:{type:`text`,text:e})}else b6(r)&&(r.tagName===`BR`?n.push({type:`hardBreak`}):n.push(...C6(r.childNodes,S6(r,t))));return n}function w6(e){let t=[];for(let n of e){let e=t.at(-1);n.type===`text`&&e?.type===`text`&&JSON.stringify(e.marks??[])===JSON.stringify(n.marks??[])?t.splice(-1,1,{...e,text:`${e.text}${n.text}`.replace(/ {2,}/g,` `)}):t.push(n)}for(;t.at(-1)?.type===`hardBreak`;)t.pop();let n=(e,n)=>{let r=t.at(e);if(r?.type!==`text`)return;let i=n(r.text);i===``?t.splice(e,1):t.splice(e,1,{...r,text:i})};return n(0,e=>e.replace(/^ +/,``)),n(-1,e=>e.replace(/ +$/,``)),t.length>0?t:void 0}var T6=e=>{let t=w6(e);return t?{type:`paragraph`,content:t}:{type:`paragraph`}};function E6(e){let t=[],n=[],r=()=>{let e=w6(C6(n));e&&t.push({type:`paragraph`,content:e}),n=[]};for(let i of e){if(!x6(i)){n.push(i);continue}r();let e=i.tagName,a=[...i.childNodes].some(x6);if(e===`UL`||e===`OL`){let n=[...i.children].filter(e=>e.tagName===`LI`).map(e=>({type:`listItem`,content:D6(e)}));n.length>0&&t.push({type:e===`UL`?`bulletList`:`orderedList`,content:n})}else if(e===`BLOCKQUOTE`)t.push({type:`blockquote`,content:D6(i)});else if(a)t.push(...E6(i.childNodes));else if(/^H[1-6]$/.test(e)){let n=w6(C6(i.childNodes));t.push({type:`heading`,attrs:{level:e===`H1`||e===`H2`?2:3},...n&&{content:n}})}else t.push(T6(C6(i.childNodes)))}return r(),t}function D6(e){let t=E6(e.childNodes);return t.length>0?t:[{type:`paragraph`}]}function O6(e){let t=E6(new DOMParser().parseFromString(`<!doctype html><body>${e}`,`text/html`).body.childNodes);for(;t.at(-1)?.type===`paragraph`&&t.at(-1).content===void 0;)t.pop();return t.length>0?{type:`doc`,content:t}:void 0}var k6={app:{product:`Velocity`,moreActions:`More actions`,contentGroup:`Content`,home:`Home`,skipToContent:`Skip to content`,openMenu:`Open the menu`,mainNavigation:`Main`,notifications:`Notifications`,dismiss:`Dismiss`,loading:`Loading`,opening:`Opening the editor`,accountMenu:`Account`,signOut:`Sign out`,profile:`Your profile`,signedOut:`Signed out`,notSignedOut:`Not signed out`,sessionEnded:`You were signed out`,sessionEndedDescription:`Your session ended. Sign in again to continue.`,siteGroup:`Site`,people:`People`,settings:`Settings`,media:`Media`,trash:`Trash`,forms:`Forms`,contacts:`Contacts`,deals:`Deals`,plugins:`Manage plugins`,pluginsGroup:`Plugins`,types:`Content types`,audienceGroup:`Audience`,collectionsGroup:`Collections`,workspaceGroup:`Workspace`,search:`Search`,searchPlaceholder:`Search, jump to or create anything`,searchTitle:`Search and commands`,searchEmpty:`Nothing matches that.`,searching:`Searching…`,searchContentGroup:`Content`,searchContactsGroup:`Contacts`,searchUntitled:`Untitled`,searchShortcutCommand:`⌘K`,searchShortcutControl:`Ctrl K`,goToGroup:`Go to`,createGroup:`Create`,create:`Create`,createIn:e=>`New in ${e}`,passkeys:`Passkeys`,passkeyTitle:`Add a passkey`,passkeyDescription:`A passkey signs you in with your fingerprint, face or screen lock, with no email to wait for. Add one on each device you use, and remove one when you stop using its device.`,passkeyColumnName:`Passkey`,passkeyColumnAdded:`Added`,passkeyColumnActions:`Remove`,passkeyNone:`You have no passkeys yet.`,passkeyUnnamed:`Passkey with no name`,passkeyAddedUnknown:`Not known`,passkeyRemove:e=>`Remove ${e}`,passkeyRemoved:e=>`${e} removed`,passkeyRemovedDescription:`It can no longer sign you in. You can still use a sign-in link.`,passkeyNotRemoved:`The passkey was not removed`,passkeyDone:`Done`,passkeyName:`Name for this passkey`,passkeyNameHelp:`So you can tell your passkeys apart, such as "Work laptop".`,passkeyDefaultName:`This device`,passkeyAdd:`Add passkey`,passkeyAdded:`Passkey added`,passkeyAddedDescription:`Next time, choose "Sign in with a passkey".`,passkeyNotAdded:`No passkey was added`,somethingWentWrong:`Something went wrong`,screenFailed:`This screen could not be shown. Try again, and if it happens again, reload the page.`,screenNotFound:`There is no screen at this address. Choose one from the menu.`,tryAgain:`Try again`},signIn:{title:`Sign in`,description:`Use a passkey, or get a sign-in link by email. There is no password to remember.`,email:`Email`,emailMissing:`Enter your email address.`,emailInvalid:`Enter an email address, such as name@example.com.`,sendLink:`Email me a sign-in link`,usePasskey:`Sign in with a passkey`,linkSentTitle:`Check your email`,linkSent:e=>`If ${e} belongs to someone on this site, a sign-in link is on its way. It works once and expires in 10 minutes.`,useAnotherEmail:`Use a different email`,linkFailed:`That sign-in link has expired or was already used. Ask for a new one below.`,signedIn:e=>`Signed in as ${e}`,passkeyFailed:`The passkey did not work. Try again, or use a sign-in link instead.`},contentList:{description:e=>e===1?`1 entry`:`${e} entries`,columnTitle:`Title`,columnStatus:`Status`,columnLanguages:`Languages`,filter:`Show`,filterAll:`All`,filterPublished:`Published`,filterDrafts:`Drafts`,filterChanged:`Unpublished changes`,search:e=>`Search ${e.toLowerCase()}`,searchPlaceholder:`Search by title or address`,clearSearch:`Clear search`,noMatchesTitle:`Nothing matches`,noMatchesDescription:`Try another word, or show all entries.`,columnUpdated:`Updated`,untitled:`Untitled`,homePage:`Home page`,newEntry:`New entry`,emptyTitle:e=>`No ${e.toLowerCase()} yet`,emptyDescription:`Entries appear on the site as soon as they are published.`,noTypesTitle:`No content types yet`,noTypesDescription:`A content type describes one kind of content, such as listings or blog posts.`,typeNotFoundTitle:`This content type does not exist`,typeNotFoundDescription:`It may have been renamed or removed.`},schedule:{title:`Schedule`,close:`Close`,help:`What is saved when the time comes goes on the site, so you can keep working on it until then.`,saveFirst:`Save what you have typed first: what goes out is what is saved.`,current:e=>`Set to go on the site ${e}.`,missed:e=>`This did not go on the site at its time. ${e}`,day:`Day`,dayMissing:`Choose a day.`,time:`Time`,zone:e=>`Times are in your time zone, ${e.replaceAll(`_`,` `)}.`,confirm:`Schedule`,change:`Change the time`,cancel:`Cancel`,remove:`Take off the schedule`,set:`Scheduled`,setDescription:e=>`It goes on the site ${e}.`,notSet:`Not scheduled`,removed:`Taken off the schedule`,notRemoved:`Still scheduled`},history:{title:`History`,close:`Close`,help:`Every save, the latest first. Saves made in one go are shown as one. Bringing a version back makes a new save: nothing is lost, and the site changes only when you publish.`,saveFirst:`Save or undo what you have typed before bringing a version back.`,current:`Now`,onSite:`On the site`,when:(e,t)=>t?`${e}, by ${t}`:e,first:`First saved`,changed:e=>`Changed ${e.join(`, `)}`,published:`Published`,unpublished:`Taken off the site`,saved:`Saved`,sitting:e=>`${e} saves in one go`,showEach:`Show each`,showAsOne:`Show as one`,bringBack:`Bring back this version`,broughtBack:e=>`Version from ${e} brought back`,broughtBackDescription:`It is the working version now. Publish it to put it on the site.`,notBroughtBack:`Not brought back`},editor:{back:e=>`All ${e.toLowerCase()}`,newTitle:`New entry`,form:`Entry`,slug:`Slug`,slugDescription:e=>`The page's address on the site: ${e}`,slugAsIdentifier:`A short name other entries link to. It is not shown on the site, and stays the same in every language.`,slugMissing:`Enter a slug. It is the last part of the page's address.`,slugInvalid:`Use lowercase letters, numbers and hyphens, such as lake-house.`,slugPathDescription:e=>`The page's address on the site: ${e}. Put a slash between the parts to place it under another page, such as services/roofing. The slug index is the page at the top.`,slugHomeDescription:e=>`The page's address on the site: ${e}. The page whose slug is index is the one at the top.`,slugPathInvalid:`Use lowercase letters, numbers and hyphens, with a slash between the parts of a longer address, such as services/roofing.`,choose:`Choose one`,linkMissing:e=>`${e} (not found)`,formMissing:`A form that is no longer here`,formLoading:`Loading…`,formClosed:e=>`${e} (closed)`,noForms:`This site has no forms yet. Make one under Forms.`,linkNotLoaded:`The list to choose from could not be loaded. Reload the page to try again.`,linkAddressChoice:`Another address`,linkAddress:`Address`,linkAddressHelp:`A whole address such as https://example.com, or a path on this site such as /contact/.`,linkWhich:e=>`Which of ${e}`,linkGone:`No longer on the site`,linkLoading:`Loading…`,listEmpty:`Nothing here yet`,listAdd:`Add`,listItem:(e,t)=>`${e} ${t}`,listRemove:(e,t)=>`Remove ${e} ${t}`,listMoveUp:(e,t)=>`Move ${e} ${t} up`,listMoveDown:(e,t)=>`Move ${e} ${t} down`,listMore:(e,t)=>`More for ${e} ${t}`,listDrag:(e,t)=>`Drag ${e} ${t}`,listDuplicate:`Duplicate`,listRemoveRow:`Remove`,listProblems:e=>e===1?`1 thing to fix in here.`:`${e} things to fix in here.`,pagePane:`The page`,pageFrame:e=>`${e}, as it would look`,pageWidth:`Width`,pagePhone:`Phone`,pageTablet:`Tablet`,pageDesktop:`Desktop`,pageMoveUp:`Move up`,pageMoveDown:`Move down`,pageDuplicate:`Duplicate`,pageRemove:`Remove`,pageAdd:`Add section`,pageReorder:`Reorder sections`,pageReorderDone:`Done`,pageAddBefore:`Add a section above`,pageAddAfter:`Add a section below`,pagePicture:`Change image`,pageLink:`Edit link`,pageTextLinkProblem:`A link must be a web address, an email address, a phone number or a page of this site such as /contact/.`,pageItemUp:`Move earlier`,pageItemDown:`Move later`,pageItemDuplicate:`Duplicate`,pageItemRemove:`Remove`,pageLinkDone:`Done`,visualOpen:`Visual editor`,visualClose:`Exit`,resizeOutline:`Width of the sections`,resizeForm:`Width of the form`,switchLanguage:e=>`Edit in ${e}`,outlineTitle:`Sections`,outlineLabel:`Sections of the page`,outlineEmpty:`No sections yet. Add one in the panel on the right.`,visualShowForm:`Show the form`,visualHideForm:`Hide the form`,pageNotYet:`Save the page once to see it here.`,pageLoading:`Getting the page…`,pageNotShown:e=>`The page cannot be shown here. ${e}`,sectionsEmpty:`No sections yet. Add the first one to start the page.`,sectionAdd:`Add section`,sectionPickerTitle:`Add a section`,sectionPickerEmpty:`This site has no kinds of section to add yet. They come with its template.`,sectionOtherGroup:`Other`,sectionMoveUp:(e,t)=>`Move section ${t}, ${e}, up`,sectionMoveDown:(e,t)=>`Move section ${t}, ${e}, down`,sectionMore:(e,t)=>`More for section ${t}, ${e}`,sectionDrag:(e,t)=>`Drag section ${t}, ${e}`,sectionDuplicate:`Duplicate`,sectionHide:`Hide from the site`,sectionShow:`Show on the site`,sectionRemove:`Remove`,sectionHidden:`Hidden`,sectionRetired:`No longer used`,sectionRetiredNote:`The site's template no longer has this kind of section, so it is left off the site. Its content is kept in case the kind comes back.`,sectionUnknown:`Unknown section`,sectionNoFields:`This section has nothing to fill in.`,sectionProblems:e=>e===1?`1 thing to fix in this section.`:`${e} things to fix in this section.`,sectionRemoveTitle:e=>`Remove this ${e.toLowerCase()} section?`,sectionRemoveDescription:`What was written in it goes with it. Nothing changes on the site until you publish.`,sectionRemoveConfirm:`Remove section`,imageChoose:`Choose an image`,imageChange:`Change`,imageNone:`No image chosen`,imageMissing:`This image is no longer on the site. Choose another.`,imagesEmpty:`This site has no images to choose from yet.`,imagesLoading:`Loading the images…`,imagesNotLoaded:`The images could not be loaded. Reload the page to try again.`,imageUpload:`Upload an image`,imageUploadHint:e=>`JPEG, PNG or WebP, up to ${e} MB. Larger photos are made smaller first.`,imageNotRead:`The file could not be read. Choose it again.`,close:`Close`,richText:{toolbar:`Formatting`,bold:`Bold`,italic:`Italic`,code:`Code`,heading:`Heading`,subheading:`Subheading`,bulletList:`Bulleted list`,numberedList:`Numbered list`,quote:`Quote`,link:`Link`,linkAddress:`Link address`,linkHelp:`A web address, or a page of this site such as /contact/.`,linkApply:`Apply`,linkRemove:`Remove link`},otherFields:`Other details`,addressSection:`Address on the site`,identifierSection:`Identifier`,aside:`Publishing details`,unsupportedField:`This kind of field cannot be edited here yet. Its content is kept as it is.`,saveBar:`Save and publish`,language:`Language`,saveDraft:`Save draft`,publish:`Publish`,publishChanges:`Publish changes`,viewOnSite:`View on the site`,unpublish:`Unpublish`,more:`More actions`,theme:`Theme`,pickColour:e=>`Choose ${e.toLowerCase()}`,hue:`Hue`,suggestedColours:`Suggested colours`,chooseFont:`Choose a font`,themeHide:`Hide the theme`,themeTitle:`Site theme`,themeHelp:e=>`The colors and fonts of the whole site, from the template's own. Try them on this page, then publish them. They are kept in Settings, under ${e}, and publishing them publishes what is saved there.`,themePublish:`Publish theme`,themeDiscard:`Discard`,themePublished:`Theme published`,themePublishedDescription:`Every page of the site now shows it.`,themeNotPublished:`The theme was not published`,undo:`Undo`,redo:`Redo`,trash:`Move to trash`,trashTitle:`Move this to the trash?`,trashDescription:`It leaves the lists and can be restored from the trash whenever you need it. Changes you have not saved are not kept.`,trashDescriptionPublished:`Visitors will no longer find it, and links to it will stop working. It can be restored from the trash as a draft. Changes you have not saved are not kept.`,schedule:`Schedule`,scheduleChange:`Change the schedule`,goesOut:e=>`Goes on the site ${e}`,missedSchedule:`Missed its time`,history:`History`,duplicate:`Duplicate`,duplicated:e=>`${e} duplicated`,duplicatedDescription:`This is the copy, as a draft. It holds what was last saved.`,notDuplicated:`Not duplicated`,trashed:e=>`${e} moved to the trash`,trashedDescription:`Restore it from Trash, under Site, whenever you need it.`,notTrashed:`Not moved to the trash`,inTrashTitle:`This is in the trash`,inTrashDescription:`Restore it to open it and change it again.`,openTrash:`Open the trash`,preview:`Preview`,imageUploaded:`Image uploaded`,imageUploadedDescription:`It is chosen for this field. Save the entry to keep it.`,notPreviewed:`No preview`,notSavedYet:`Not saved yet`,unsavedChanges:`Unsaved changes`,notAutosaved:`Not saved. Press "Save draft" to see why.`,saved:e=>`Saved ${e}`,draftSaved:`Draft saved`,draftSavedDescription:`Visitors do not see it until you publish.`,published:`Published`,publishedDescription:`Visitors can see it now.`,unpublished:`Unpublished`,unpublishedDescription:`It is off the site. Its content is kept as a draft.`,notSaved:`Not saved`,notPublished:`Not published`,notUnpublished:`Not unpublished`,fieldsNeedAttention:e=>e===1?`1 field needs attention.`:`${e} fields need attention.`,leaveTitle:`Leave without saving?`,leaveDescription:`What you changed here has not been saved. If you leave now, it is lost.`,leave:`Leave without saving`,keepEditing:`Keep editing`,unpublishTitle:`Take this off the site?`,unpublishDescription:`Visitors will no longer find it, and links to it will stop working. Its content is kept as a draft.`,cancel:`Cancel`,notFoundTitle:`This entry does not exist`,notFoundDescription:`It may have been deleted.`},trash:{title:`Trash`,description:`What was moved here is off the site and out of the lists. Restore anything you still need.`,columnName:`Name`,columnType:`Kind`,columnMoved:`Moved here`,columnActions:`Actions`,detail:(e,t)=>`${e} · ${t}`,typeArchived:`An archived content type`,restore:e=>`Restore ${e}`,restored:e=>`${e} restored`,restoredDescription:`It is back as a draft. Publish it to put it on the site again.`,notRestored:`Not restored`,delete:e=>`Delete ${e} for good`,deleteTitle:e=>`Delete ${e} for good?`,deleteDescription:`Its content and its history are removed and cannot be brought back.`,deleteConfirm:`Delete for good`,deleted:e=>`${e} deleted for good`,notDeleted:`Not deleted`,emptyTitle:`The trash is empty`,emptyDescription:`An entry you move to the trash waits here until you restore it or delete it for good.`},contactImport:{button:`Import`,title:`Import contacts`,lead:`Bring in contacts from a spreadsheet saved as a CSV file. Its first row should be the headings, and one column must hold email addresses. People you already have are never overwritten: they only gain what they lack.`,chooseFile:`Choose a CSV file`,emptyFile:`This file has no rows under its headings. Choose a CSV file with a row of headings and at least one row of contacts.`,tooManyRows:e=>`This file has more than ${e} rows. Split it into smaller files and import each.`,matchLead:e=>`${e} ${e===1?`row`:`rows`} found. Say what each column holds.`,column:e=>`Column "${e}"`,example:e=>`For example: ${e}`,skip:`Leave it out`,emailNeeded:`Say which column holds the email addresses. A contact needs one.`,bringIn:e=>`Import ${e} ${e===1?`row`:`rows`}`,done:e=>`${e} ${e===1?`contact`:`contacts`} added`,failed:`The import stopped`,added:e=>`${e} ${e===1?`contact was`:`contacts were`} added.`,filled:e=>`${e} you already had gained details they lacked.`,unchanged:e=>`${e} you already had were left as they are.`,leftOut:e=>`${e} ${e===1?`row was`:`rows were`} left out:`,rowProblem:(e,t)=>`Row ${e}: ${t}`,andMore:e=>`And ${e} more.`,close:`Done`},contacts:{title:`Contacts`,description:`Everyone who wrote to you through a form, and the people you added yourself.`,newContact:`New contact`,newContactTitle:`New contact`,search:`Search contacts`,searchPlaceholder:`Search by name, email or phone`,clearSearch:`Clear search`,columnName:`Name`,columnPhone:`Phone`,columnSource:`First came from`,columnAdded:`Added`,noName:`No name yet`,addedByHand:`Added by hand`,fromForm:e=>`${e} form`,fromFormOn:(e,t)=>`${e} form on ${t}`,aFormNowGone:`A form that is no longer here`,count:e=>e===1?`1 contact`:`${e} contacts`,emptyTitle:`No contacts yet`,emptyDescription:`When someone sends a form that asks for their email, they appear here. You can also add a contact yourself.`,nothingFoundTitle:`Nobody matches`,nothingFoundDescription:e=>`No contact has "${e}" in their name, email or phone.`,name:`Name`,email:`Email`,phone:`Phone`,emailNeeded:`Give the contact an email address.`,create:`Add contact`,created:e=>`${e} added`,notCreated:`The contact was not added`,backToContacts:`All contacts`,notFoundTitle:`No such contact`,notFoundDescription:`This contact was erased, or the address is wrong.`,noAccess:`Contacts are for owners and editors.`,edit:`Edit details`,editTitle:e=>`Edit ${e}`,save:`Save details`,saved:e=>`${e} saved`,notSaved:`The details were not saved`,details:`Details`,detailsLabel:`About this contact`,firstCameFrom:`First came from`,added:`Added`,notGiven:`Not given`,timeline:`Timeline`,timelineHelp:`What they sent you and what your team noted, newest first.`,timelineEmpty:`Nothing yet. Notes you add and forms they send will be listed here.`,sent:e=>`Sent the ${e} form`,sentUnknown:`Sent a form that is no longer here`,fromPage:e=>`From ${e}`,noteLabel:`Note`,movedLabel:`Moved`,movedFromTo:(e,t,n)=>`From ${e} to ${t}${n===void 0?``:`, by ${n}`}`,stageGone:`a stage that was removed`,note:`Add a note`,notePlaceholder:`Called back, wants a tour on Saturday`,noteHelp:`Only your team sees notes.`,addNote:`Add note`,noteAdded:`Note added`,noteNotAdded:`The note was not added`,deleteNote:`Delete note`,noteDeleted:`Note deleted`,noteNotDeleted:`The note was not deleted`,export:`Export`,exported:`File downloaded`,exportedDescription:`The file holds personal details. Keep it somewhere safe.`,notExported:`The file could not be made`,erase:`Erase`,eraseTitle:e=>`Erase ${e}?`,eraseDescription:`This deletes the contact, your notes about them and everything they sent through every form, for good. Use it when someone asks you to remove their details.`,eraseConfirm:`Erase for good`,erased:(e,t)=>t===0?`${e} erased`:t===1?`${e} erased, with 1 submission`:`${e} erased, with ${t} submissions`,notErased:`The contact was not erased`,view:`View`,viewList:`List`,viewBoard:`Board`,columnStage:`Stage`,columnOwner:`Looked after by`,columnFollowUp:`Follow up`,filterStage:`Stage`,allStages:`All stages`,filterOwner:`Looked after by`,everyone:`Everyone`,mine:`Me`,nobody:`Nobody`,someoneWhoLeft:`Someone who left`,nothingMatchesTitle:`Nobody matches`,nothingMatchesDescription:`No contact fits what you chose. Change the stage or who looks after them.`,stages:{new:`New`,contacted:`Contacted`,qualified:`Qualified`,won:`Won`,lost:`Lost`},board:`Pipeline`,boardEmpty:`Nobody here`,boardMore:e=>`${e} more, in the list`,move:e=>`Move ${e}`,moved:(e,t)=>`${e} moved to ${t}`,notMoved:`The contact was not moved`,work:`Follow-up`,workLabel:`Stage, owner and follow-up`,stage:`Stage`,owner:`Looked after by`,followUp:`Follow up on`,followUpHelp:`It shows on your Home screen when the day comes.`,stageSaved:e=>`Moved to ${e}`,ownerSaved:e=>`Now looked after by ${e}`,ownerCleared:`Nobody looks after this contact now`,followUpSaved:e=>`Follow-up set for ${e}`,followUpCleared:`Follow-up cleared`,notChanged:`The contact was not changed`,due:{overdue:`Overdue`,today:`Due today`},editStages:`Edit stages`,editStagesTitle:`Stages`,stagesHelp:`The steps a contact moves through, in order. New contacts start in the first.`,stagesRemoveNote:`Contacts in a stage you remove move to the first stage.`,stagesEmpty:`No stages. Add one.`,addStage:`Add stage`,stageName:`Name`,stageKind:`Counts as`,stageKinds:{open:`Open`,won:`Won`,lost:`Lost`},removeStage:e=>`Remove stage ${e}`,moveStageUp:e=>`Move stage ${e} up`,moveStageDown:e=>`Move stage ${e} down`,saveStages:`Save stages`,stagesSaved:`Stages saved`,stagesNotSaved:`The stages were not saved`,stageChance:`Chance, %`,pipelineSettings:`Deals and new contacts`,currency:`Currency`,currencyHelp:`Three letters, such as USD or EUR. Deal values are shown in it.`,monthlyTarget:`Monthly target`,monthlyTargetHelp:`What the team means to win each month, in the currency above. The deals screen shows how close this month is. Leave it empty for none.`,assignTo:`Give new contacts to`,assignToHelp:`A contact made by a form goes to whichever of these people looks after the fewest. Tick nobody to leave new contacts unassigned.`},deals:{title:`Deals`,description:`What your contacts may buy, by stage, and what it is likely to bring in.`,noAccess:`Deals are for owners and editors.`,open:`Open`,openDetail:`Worth of every deal still in play`,forecast:`Forecast`,forecastDetail:`Open deals, each counted by its stage's chance`,won:`Won`,wonDetail:`Worth of the deals you won`,targetLabel:e=>`${e} target`,targetProgress:(e,t,n)=>`${e} of ${t} · ${n}`,board:`Deals by stage`,boardEmpty:`No deals here`,boardMore:e=>`${e} more`,emptyTitle:`No deals yet`,emptyDescription:`Add a deal from a contact's page, with what it is worth. It then moves through your stages here.`,toContacts:`Go to contacts`,move:e=>`Move ${e}`,moved:(e,t)=>`${e} moved to ${t}`,notMoved:`The deal was not moved`,cardTitle:`Deals`,cardEmpty:`No deals with this contact yet.`,add:`Add deal`,addTitle:`New deal`,editTitle:e=>`Edit ${e}`,columnTitle:`Deal`,columnStage:`Stage`,columnValue:`Worth`,columnClose:`Expected`,name:`What it is about`,namePlaceholder:`Sale of 18 Alder Court`,nameNeeded:`Say what the deal is about.`,value:e=>`Worth, in ${e}`,stage:`Stage`,owner:`Looked after by`,closeOn:`Expected to close on`,create:`Add deal`,save:`Save deal`,created:e=>`${e} added`,saved:e=>`${e} saved`,notSaved:`The deal was not saved`,delete:`Delete deal`,deleted:e=>`${e} deleted`,notDeleted:`The deal was not deleted`,closes:e=>`Closes ${e}`,about:`On the site, it is about`,aboutNothing:`Nothing on the site`,aboutWhich:e=>`Which of ${e}`,aboutWhichOne:`Which one`,aboutGone:`No longer on the site`,aboutLoading:`Loading…`,entryCardEmpty:`No deals about this yet. Add one from a contact's page and choose this as what it is about.`,entryDeals:`Deals about this`},forms:{title:`Forms`,description:`The forms on your site, and what visitors sent through them.`,newForm:`New form`,newFormTitle:`New form`,formName:`Name`,formNameHelp:`What the form is called here and in the emails about it, such as Contact us.`,formKey:`Key`,formKeyHelp:`The name the site's pages use for it. Lowercase letters, numbers and hyphens.`,nameNeeded:`Give the form a name.`,keyNeeded:`Give the form a key.`,create:`Create form`,created:e=>`${e} created`,createdDescription:`Add the fields a visitor fills in.`,notCreated:`Not created`,columnName:`Name`,columnFields:`Fields`,columnNew:`New`,columnStatus:`Status`,columnActions:`Actions`,columnTrashed:`Moved here`,fieldCount:e=>e===1?`1 field`:`${e} fields`,newCount:e=>`${e} new`,noneNew:`None`,open:`Open`,closed:`Closed`,emptyTitle:`No forms yet`,emptyDescription:`A form collects what visitors send: a question, a request for a tour, a sign-up. Start with a contact form.`,trashedTitle:`Forms in the trash`,trashedHelp:`A form here takes no more submissions. What it was sent is kept until the form is deleted for good.`,restore:e=>`Restore ${e}`,restored:e=>`${e} restored`,notRestored:`Not restored`,delete:e=>`Delete ${e} for good`,deleteTitle:e=>`Delete ${e} for good?`,deleteDescription:`The form and everything visitors sent through it are removed and cannot be brought back.`,deleteConfirm:`Delete for good`,deleted:e=>`${e} deleted for good`,notDeleted:`Not deleted`,forget:`Forget a person`,forgetTitle:`Forget a person`,forgetHelp:`Deletes everything this person sent, through every form, for good. Use it when someone asks you to remove their details.`,forgetEmail:`Their email address`,forgetEmailNeeded:`Give the email address of the person to forget.`,forgetConfirm:`Delete what they sent`,forgotten:e=>e===0?`Nothing was found from that address`:e===1?`1 submission deleted`:`${e} submissions deleted`,notForgotten:`Not deleted`,notFoundTitle:`This form is not here`,notFoundDescription:`It may have been moved to the trash or deleted.`,backToForms:`All forms`,detail:(e,t)=>`Key: ${e} · ${t}`,tabs:`Parts of this form`,tabSubmissions:`Submissions`,tabFields:`Fields`,settings:`Settings`,trash:`Move to trash`,trashTitle:e=>`Move ${e} to the trash?`,trashDescription:`It takes no more submissions and leaves any page that shows it. What it was sent is kept, and the form can be restored.`,trashConfirm:`Move to trash`,trashed:e=>`${e} moved to the trash`,notTrashed:`Not moved`,statusFilter:`Which submissions to show`,statuses:{new:`New`,handled:`Handled`,spam:`Spam`},statusWithCount:(e,t)=>`${e} (${t})`,export:`Export as CSV`,exported:`Export saved`,exportedDescription:`The file holds personal details. Keep it somewhere safe.`,notExported:`Not exported`,columnFrom:`From`,columnSummary:`What they wrote`,columnReceived:`Received`,submissionsOf:e=>`Submissions of ${e}`,unknownSender:`No name given`,emptyNewTitle:`Nothing new`,emptyNewDescription:`What visitors send through this form arrives here.`,emptyHandledTitle:`Nothing handled yet`,emptyHandledDescription:`Mark a submission as handled once you have answered it.`,emptySpamTitle:`No spam`,emptySpamDescription:`Submissions that look automated are kept here, so a real one is never lost.`,noAccess:`Only owners and editors can read what visitors sent.`,submissionTitle:e=>`From ${e}`,received:e=>`Received ${e}`,sentFrom:e=>`Sent from ${e}`,handledAt:e=>`Handled ${e}`,yes:`Yes`,removedField:e=>`${e} (removed field)`,markHandled:`Mark as handled`,markNew:`Mark as new`,markSpam:`Mark as spam`,notSpam:`Not spam`,marked:{new:`Marked as new`,handled:`Marked as handled`,spam:`Marked as spam`},notMarked:`Not changed`,deleteSubmission:`Delete`,deleteSubmissionTitle:`Delete this submission?`,deleteSubmissionDescription:`It is removed for good and cannot be brought back.`,submissionDeleted:`Submission deleted`,submissionNotDeleted:`Not deleted`,addField:`Add field`,addFieldTitle:`Add a field`,editFieldTitle:e=>`Change ${e}`,fieldsOf:e=>`Fields of ${e}`,columnField:`Field`,columnKind:`Kind`,columnRules:`Rules`,required:`Required`,holds:{name:`Sender's name`,email:`Sender's email`,phone:`Sender's phone`},noFieldsTitle:`No fields yet`,noFieldsDescription:`Add what a visitor fills in: their name, their email, a message.`,fieldName:`Label`,fieldNameHelp:`What the visitor reads above the field.`,fieldKey:`Key`,fieldKeyHelp:`The name the site's pages and exports use for it.`,fieldHelp:`Help text`,fieldHelpHelp:`A short note shown with the field.`,fieldKind:`Kind`,fieldKindIs:e=>`Kind: ${e}. A different kind is a new field.`,fieldRequired:`A visitor must fill this in`,fieldNameNeeded:`Give the field a label.`,fieldKeyNeeded:`Give the field a key.`,fieldAdd:`Add field`,fieldSave:`Save field`,fieldAdded:e=>`${e} added`,fieldSaved:e=>`${e} saved`,fieldNotSaved:`Not saved`,moveUp:e=>`Move ${e} up`,moveDown:e=>`Move ${e} down`,edit:e=>`Change ${e}`,remove:e=>`Remove ${e}`,removeTitle:e=>`Remove ${e}?`,removeDescription:`Visitors are no longer asked for it. What was already sent under it is kept and still exported.`,removeConfirm:`Remove field`,removed:e=>`${e} removed`,notRemoved:`Not removed`,notMoved:`Not moved`,settingsTitle:e=>`Settings of ${e}`,isOpen:`Taking submissions`,isOpenHelp:`Switched off, the form leaves the site and what is sent to it is refused.`,notify:`Who is emailed`,notifyHelp:`One email address on each line. Each is told when the form is sent. Leave empty to tell nobody.`,senderName:`Field with the sender's name`,senderEmail:`Field with the sender's email`,senderPhone:`Field with the sender's phone`,senderHelp:`So a submission can be tied to a person, and a reply goes to them.`,noField:`None`,success:`Thank-you message`,successHelp:`What a visitor reads after sending. Left empty, the site's own words are used.`,submitLabel:`Button label`,submitLabelHelp:`Left empty, the site's own word is used.`,fills:e=>`Field that fills a contact's "${e}"`,fillsHelp:`The answer is kept on the sender's contact, in a field you added to contacts. It never replaces what is already there.`,startsDeal:`Start a deal about the page it was sent from`,startsDealHelp:`When this form is sent from the page of something deals can be about, such as a listing, the sender gets a deal about it. Turn that on for a kind of content in its settings.`,retention:`Days to keep submissions`,retentionHelp:`Older ones are deleted. Leave empty to keep them until someone deletes them.`,save:`Save settings`,saved:`Settings saved`,notSaved:`Not saved`},media:{title:`Media`,description:e=>e===1?`1 image`:`${e} images`,upload:`Upload an image`,uploadHint:e=>`JPEG, PNG or WebP, up to ${e} MB.`,uploaded:e=>`${e} was uploaded`,uploadedDescription:`It is first in the library, marked "Just uploaded". Choose it in any image field.`,notUploaded:`The image was not uploaded`,notRead:`The file could not be read. Choose it again.`,search:`Search images`,searchPlaceholder:`Search by name`,clearSearch:`Clear search`,grid:`Images`,emptyTitle:`No images yet`,emptyDescription:`Images you upload here can be chosen in any image field.`,emptyNoUploads:`This site has nowhere to keep uploads yet. Images in the site's image folder appear here.`,noMatches:`No images match your search.`,noMatchesFiltered:`No images match. Clear the search or show every image.`,showAll:`Show every image`,source:`Show`,sources:{all:`All images`,uploaded:`Uploaded`,site:`Came with the site`},kind:`File type`,kinds:{all:`Any type`,jpeg:`JPEG`,png:`PNG`,webp:`WebP`,svg:`SVG`,gif:`GIF`,avif:`AVIF`},sort:`Sort`,sorts:{newest:`Newest first`,oldest:`Oldest first`,name:`Name, A to Z`,largest:`Largest file first`},justUploaded:`Just uploaded`,shownCount:(e,t)=>`Showing ${e} of ${t}`,fromSite:`Comes with the site`,dimensions:(e,t)=>`${e} × ${t}`,detailName:`Name`,detailNameHelp:`What an image field stores, and what the site's pages look it up by.`,detailSize:`Size`,detailFile:`File`,detailUploaded:`Uploaded`,fromSiteHelp:`It is part of the site's own files, so it is changed there and can't be removed here.`,kilobytes:e=>`${e} KB`,megabytes:e=>`${e} MB`,close:`Close`,remove:`Remove image`,removeTitle:e=>`Remove ${e}?`,removeDescription:`The file is deleted for good. An entry that shows this image will show nothing in its place until another is chosen.`,removed:e=>`${e} was removed`,notRemoved:`The image was not removed`},customFields:{button:`Custom fields`,close:`Close`,nameHelp:`What the team reads above the field.`,removeDescription:`The field is no longer shown or exported. What was filled in under it is kept.`,contact:{name:`Contacts`,title:`Custom fields for contacts`,help:`What you keep about each contact beyond their name, email and phone, such as a membership type or a budget.`,emptyDescription:`Add what you want to know about each contact. It shows on every contact, ready to fill in.`},deal:{name:`Deals`,title:`Custom fields for deals`,help:`What you keep about each deal beyond its name, value and stage, such as a product or a number of seats.`,emptyDescription:`Add what you want to know about each deal. It shows in every deal, ready to fill in.`}},plugins:{title:`Plugins`,description:`What you can add to this site. Activate a plugin to switch it on, and switch it off again at any time.`,may:e=>`May ${e.map(e=>`${e.charAt(0).toLowerCase()}${e.slice(1)}`).join(`, `)}`,version:e=>`Version ${e}`,states:{on:`Active`,off:`Available`,failed:`Could not start`,unsupported:`Needs another version`,invalid:`Left out`},active:e=>`${e} is active`,activated:e=>`${e} is active`,activatedDescription:`It is running on the whole site now.`,deactivated:e=>`${e} was switched off`,deactivatedDescription:`Its settings are kept for when you activate it again.`,notActivated:e=>`${e} could not start`,notSwitched:`The plugin was not switched`,settings:`Settings`,settingsTitle:e=>`${e} settings`,settingsSave:`Save settings`,settingsSaved:e=>`${e} settings saved`,settingsNotSaved:`The settings were not saved`,secretsTitle:`Keys and passwords`,secretsHelp:`Each is saved by itself, sealed, and never shown again.`,secretSaved:`Saved. It is not shown again.`,secretSave:e=>`Save ${e}`,secretReplace:e=>`Replace ${e}`,secretRemove:e=>`Remove ${e}`,secretKeep:`Keep the saved one`,secretWasSaved:e=>`${e} saved`,secretWasRemoved:e=>`${e} removed`,secretNotSaved:e=>`${e} was not saved`,activity:`Activity`,activityTitle:e=>`${e} activity`,activityHelp:`What this plugin was asked to send or do. Something that fails is tried again for about a day before it is given up on.`,activityEmptyTitle:`Nothing yet`,activityEmptyDescription:`What this plugin sends or does will be listed here as it happens.`,activityClose:`Close`,taskWhat:`What`,taskState:`State`,taskWhen:`Asked`,taskActions:`Try again`,taskStates:{waiting:`Waiting`,done:`Done`,failed:`Gave up`},taskTries:e=>e===1?`Tried once`:`Tried ${e} times`,taskNext:e=>`Next try ${e}`,taskNextSoon:`Next try within a minute`,taskRetry:e=>`Try ${e} again`,taskRetried:`It worked this time`,taskRetriedWaiting:`It failed again`,taskNotRetried:`It could not be tried again`,hasFailed:`Has failed`,failedAt:(e,t,n,r)=>`Failed ${e===1?`once`:`${e} times`} since the site started, last ${n} on "${t}": ${r}`,mayNothing:`Change nothing`,permissions:{"schema:write":`Change content types`,"entry:read":`Read content`,"entry:write":`Write drafts`,"entry:publish":`Publish`,"entry:delete":`Delete for good`,"form:write":`Change forms`,"submission:read":`Read what visitors send through forms`,"submission:manage":`Handle and delete what visitors send`,"contact:read":`Read contacts`,"contact:manage":`Change and erase contacts`,"user:manage":`Manage people`,"plugin:manage":`Manage plugins`,"settings:manage":`Change the site's settings`},adds:e=>`Adds ${e.join(`, `)}.`,addsScreen:e=>`the "${e}" screen in the sidebar`,addsPanel:e=>`the "${e}" panel on entries`,addsFieldTypes:e=>e===1?`a kind of field`:`${e} kinds of field`,addsChecks:e=>e===1?`a check before publishing`:`${e} checks before publishing`,addsPageHead:`what the site's pages tell search engines, social sites and analytics`,addsRedirects:`moves from old addresses to new ones`,addsTasks:`deliveries that are tried again when they fail`,open:e=>`Open ${e}`,editorFailed:e=>`Its part of the editor could not be loaded: ${e}`,screenMissingTitle:`This screen is not here`,screenMissingDescription:`The plugin that added it may have been switched off. An owner can activate it again under Plugins.`,emptyTitle:`No plugins yet`,emptyDescription:`Plugins that are available for this site will be listed here, ready to activate.`},settings:{title:`Settings`,description:`What this site is and what it needs to run, set up here instead of on the server.`,tabsLabel:`Parts of the settings`,areas:{general:`General`,email:`Email`,storage:`Storage`,forms:`Forms and spam`,tokens:`Access tokens`},namesSite:e=>`${e} is also what this editor and the site's emails call the site, once it is published.`,ownersTitle:`Settings are for owners`,ownersDescription:`An owner of this site sets up its email, storage and forms here. Ask one if something needs changing.`,general:{title:`Site name`,description:`What this site is called in the editor, in the emails it sends and when someone adds a passkey.`,states:{server:`Set on the server`,code:`Set in the site's code`,host:`Set by your host`},fixed:e=>`Your host names this site: ${e}. Change it where you manage the site with your host.`,name:`Site name`,nameHelp:`Leave this empty to use the name the site's code gives.`,nameHelpWithDefault:e=>`Leave this empty to use the name the site's code gives: ${e}.`,save:`Save site name`,saved:`Site name saved`,savedDescription:`Emails use it from now on. The editor shows it once you reload the page.`,notSaved:`Site name not saved`},email:{title:`Email`,description:`Sign-in links, invitations and notices from forms are sent this way.`,states:{sending:`Sending`,off:`Not set up`,server:`Set on the server`,code:`Set in the site's code`,host:`Handled by your host`},offHelp:`Until this is set up, nobody is emailed: sign-in links are printed in the server's log, and notices from forms are not sent.`,fixed:{server:`This site's email is set up on the server, with the VELOCITY_CMS_RESEND_API_KEY and VELOCITY_CMS_EMAIL_FROM settings. They win over anything saved here. To set email up in the editor instead, remove both from the server.`,code:`This site sends email with a mailer of its own, named in its Astro config. It wins over anything saved here. To set email up in the editor instead, take the mailer out of the config.`,host:`Your host sends this site's email, so there is nothing to set up here.`},provider:`Email service`,providers:{resend:`Resend`},providerHelp:`Make an account with the service, verify your domain there, then create an API key.`,providerLinks:{resend:`https://resend.com/api-keys`},providerLink:e=>`Open your API keys at ${e}`,key:`API key`,keyHelp:`It is kept encrypted and never shown again once it is saved.`,keySaved:`A key is saved. It is kept encrypted and is not shown again.`,keyReplace:`Replace the key`,keyKeep:`Keep the saved key`,from:`Sender address`,fromHelp:`The address your emails come from, on the domain you verified, such as hello@lakeshore.example.`,senderName:`Sender name`,senderNameHelp:`The name people see your emails come from, such as Lakeshore Realty. Leave it empty to use the site's name.`,senderNameFixed:`The sender set on the server already has a name, so emails come from it. To choose the name here, set VELOCITY_CMS_EMAIL_FROM to the address alone.`,saveSenderName:`Save sender name`,look:`Emails wear your site's logo and brand colour, from the Branding part of your site's details.`,save:`Save email settings`,saved:`Email settings saved`,savedDescription:`Email is now sent through these settings. Send a test to see it arrive.`,notSaved:`Email settings not saved`,test:`Send a test email`,testHelp:e=>`A test goes to you, at ${e}, and to nobody else.`,testAfterSave:`Save your changes before sending a test.`,testSent:`Test email sent`,testSentDescription:e=>`Look for it at ${e}. It can take a minute, and it may land in spam the first time.`,testNotSent:`Test email not sent`,stop:`Stop sending email`,stopTitle:`Stop sending email?`,stopDescription:`The saved API key is removed. Sign-in links will be printed in the server's log instead of emailed, so people can sign in only with a passkey or with help from whoever runs the server. Notices from forms stop too.`,stopConfirm:`Remove the key`,stopped:`Email is no longer sent`,stoppedDescription:`The API key was removed. Paste a new one to send email again.`},storage:{title:`Uploads`,description:`Where the images people upload in the editor are kept.`,states:{bucket:`Kept in your bucket`,folder:`Kept on the server's disk`,none:`No uploads yet`,server:`Set on the server`,code:`Set in the site's code`,host:`Handled by your host`},keepingHelp:{bucket:`Uploads are kept in the bucket below, which stays private: the site reads from it and serves the images itself.`,folder:`Uploads are kept in a folder on the server's disk. That suits a server of your own. On a host with no lasting disk, such as Vercel or Netlify, name a bucket here so uploads are not lost on the next deploy.`,none:`This site has nowhere to keep uploads, so people can only choose from the images it came with. Name a bucket here to take uploads.`},fixed:{server:`This site's uploads are set up on the server, with the VELOCITY_CMS_S3_ settings. They win over anything saved here. To choose the bucket in the editor instead, remove them from the server.`,code:`This site's code decides where uploads are kept, so there is nothing to set up here.`,host:`Your host keeps this site's uploads, so there is nothing to set up here.`},endpoint:`Service address`,endpointHelp:`Any service that speaks the S3 protocol. Cloudflare R2: https://<account id>.r2.cloudflarestorage.com. Amazon S3: https://s3.<region>.amazonaws.com.`,bucket:`Bucket name`,region:`Region`,regionHelp:`Leave this empty for Cloudflare R2. For Amazon S3, give the region the bucket is in, such as eu-west-1.`,accessKeyId:`Access key ID`,accessKeyIdHelp:`From a key that may read, write and delete in this bucket, and nothing else.`,secret:`Secret access key`,secretHelp:`It is kept encrypted and never shown again once it is saved.`,secretSaved:`A secret key is saved. It is kept encrypted and is not shown again.`,secretReplace:`Replace the secret key`,secretKeep:`Keep the saved secret key`,save:`Save storage settings`,saved:`Storage settings saved`,savedDescription:`New uploads go to this bucket. Test it to see that the keys work.`,notSaved:`Storage settings not saved`,test:`Test the bucket`,testAfterSave:`Save your changes before testing the bucket.`,testWorked:`The bucket works`,testWorkedDescription:`A small file was kept there, read back and removed.`,testFailed:`The bucket could not be used`,moveHelp:`Images uploaded so far are not moved. Ones on the server's disk keep showing from there; ones in another bucket need copying to the new one.`,stop:`Stop using this bucket`,stopTitle:`Stop using this bucket?`,stopDescription:`The saved secret key is removed. Images kept in the bucket stop showing on the site until it is connected again, and new uploads go to the server's disk, if it has one.`,stopConfirm:`Remove the secret key`,stopped:`The bucket is no longer used`,stoppedDescription:`The secret key was removed. Paste one to use the bucket again.`},forms:{title:`Spam check`,description:`Ask whoever sends a form to pass Cloudflare Turnstile, a check that they are a person. Most people never see it.`,states:{checking:`Checking senders`,off:`No spam check`},help:{checking:`Every form on the site shows the check. What is sent without passing it is kept under Spam, never lost. Someone whose browser runs no scripts cannot pass, so look at Spam now and then.`,off:`Forms already catch simple bots with a hidden field and a timer. To add Turnstile, make a widget for this site's domain in the Cloudflare dashboard, under Turnstile, and paste its two keys here. It is free.`},siteKey:`Site key`,siteKeyHelp:`The public one. It is part of every page that has a form.`,secret:`Secret key`,secretHelp:`It is kept encrypted and never shown again once it is saved.`,secretSaved:`A secret key is saved. It is kept encrypted and is not shown again.`,secretReplace:`Replace the secret key`,secretKeep:`Keep the saved secret key`,save:`Save spam check`,saved:`Spam check saved`,savedDescription:`Forms now show the check. Check the keys to see that Cloudflare knows them.`,notSaved:`Spam check not saved`,test:`Check the keys`,testAfterSave:`Save your changes before checking the keys.`,testHelp:`Checking asks Cloudflare whether it knows the secret key. To see the site key work, open a page with a form.`,testWorked:`Cloudflare knows the secret key`,testWorkedDescription:`Open a page with a form to see the check appear.`,testFailed:`The keys could not be checked`,stop:`Stop checking`,stopTitle:`Stop checking senders?`,stopDescription:`Both keys are removed and forms no longer show the check. The hidden field, the timer and the limit below still stand.`,stopConfirm:`Remove the keys`,stopped:`Senders are no longer checked`,stoppedDescription:`Both keys were removed. Paste them again to bring the check back.`,limitTitle:`Limit`,limitDescription:`How much one visitor can send before the forms ask them to wait.`,limit:`Messages from one address in ten minutes`,limitHelp:e=>`From 1 to ${e}. The CMS comes with 8. Raise it for an office where many people share one connection.`,limitSave:`Save limit`,limitSaved:`Limit saved`,limitSavedDescription:e=>e===1?`Forms take 1 message from one address in ten minutes.`:`Forms take ${e} messages from one address in ten minutes.`,limitNotSaved:`Limit not saved`},tokens:{title:`Access tokens`,description:`Let an AI agent or a script work with this site's content: Claude, ChatGPT, Cursor, or the velocity-cms command. A token acts through the same rules as a person.`,make:`Make a token`,empty:`No tokens yet`,emptyDescription:`Make one to connect an AI agent to this site. What it writes is a draft until someone publishes it, unless you allow it to publish.`,columnName:`Name`,columnMay:`May`,columnEnds:`Ends`,columnActions:`Take away`,hint:e=>`Ends in …${e}`,madeBy:e=>`Made by ${e}`,madeOnServer:`Made from the command line`,lastUsed:e=>`Last used ${e}`,neverUsed:`Not used yet`,roles:{owner:`Owner`,editor:`Writes and edits`,author:`Writes drafts`},publishes:`Publishes`,drafts:`Drafts only`,personal:`Contacts and forms`,revoke:e=>`Take away ${e}`,revokeTitle:e=>`Take away ${e}?`,revokeDescription:`Whatever uses it is refused from its next request. What it wrote stays.`,revokeConfirm:`Take it away`,revoked:e=>`${e} was taken away`,notRevoked:`Not taken away`,makeTitle:`Make an access token`,name:`What it is for`,nameHelp:`So you know it later, such as "Claude on my laptop".`,role:`What it may do`,roleMeans:{owner:``,editor:`Writes and edits every kind of content, and manages forms.`,author:`Writes and edits content, and nothing else.`},publish:`May publish`,publishHelp:`Left off, everything it writes waits as a draft for someone to publish.`,personalData:`May read contacts, deals and what forms received`,personalDataHelp:`These are people's personal details. Allow it only for an agent you trust with them.`,days:`Works for (days)`,daysHelp:`From 1 to 365. Make a new one when it ends.`,makeSend:`Make token`,made:`Token made`,notMade:`Token not made`,shownTitle:`Copy your token now`,shownDescription:`It is not shown again. Keep it like a password: whoever has it can do what it allows.`,shownField:`Token`,shownMcp:`To connect an agent, give it this site's MCP address and the token:`,mcpField:`MCP address`,mcpAddress:e=>`${e}/api/cms/mcp`,shownCommand:`Or for the velocity-cms command, put it in the site's .env as VELOCITY_CMS_TOKEN.`,done:`I have copied it`}},profile:{title:`Your profile`,description:`How you appear in the editor and in the emails it sends.`,detailsTitle:`Your details`,photo:`Photo`,photoHelp:`A square photo looks best. It is shown beside your name in the editor.`,photoChoose:`Upload a photo`,photoReplace:`Replace photo`,photoRemove:`Remove photo`,photoSaved:`Photo saved`,photoRemoved:`Photo removed`,photoNotSaved:`Photo not saved`,photoUnreadable:`That file could not be read as a photo. Choose a JPEG, PNG or WebP.`,name:`Name`,nameHelp:`Shown to your team, and in invitations you send.`,save:`Save details`,saved:`Details saved`,notSaved:`Details not saved`,emailTitle:`Email address`,emailDescription:`You sign in with links sent to this address.`,emailCurrent:e=>`You sign in as ${e}.`,emailChange:`Change email address`,emailNew:`New email address`,emailNewHelp:`We send a link to the new address. It becomes yours once you open the link here, signed in.`,emailSend:`Send link`,emailCancel:`Cancel`,emailSent:`Check your new inbox`,emailSentDescription:e=>`A link is on its way to ${e}. It works for 30 minutes.`,emailNotSent:`Link not sent`,emailConfirmed:`Email address changed`,emailConfirmedDescription:e=>`You now sign in as ${e}.`,emailNotConfirmed:`Email address not changed`,passkeysTitle:`Passkeys`,passkeysDescription:`Sign in with your fingerprint, face or device code instead of waiting for an email.`,passkeysManage:`Manage passkeys`,role:e=>`Your role: ${e}`},people:{title:`People`,description:`Everyone who can sign in to this site, and what each may do.`,invite:`Invite someone`,columnName:`Name`,columnRole:`Role`,columnActions:`Actions`,you:`You`,rename:e=>`Rename ${e}`,renameTitle:e=>`Rename ${e}`,renameHelp:`What the editor and the site's emails call them.`,renameSave:`Save name`,renamed:e=>`Renamed to ${e}`,notRenamed:`The name was not changed`,invitedTag:`Invited`,invitedHelp:`Has not signed in yet.`,roles:{owner:`Owner`,editor:`Editor`,author:`Author`},roleMeans:{owner:`Owners can do everything, including inviting and removing people.`,editor:`Editors write and publish content.`,author:`Authors write drafts. Someone else publishes them.`},roleOf:e=>`Role of ${e}`,roleChanged:(e,t)=>`${e}'s role is now ${t}`,roleNotChanged:`The role was not changed`,remove:e=>`Remove ${e}`,removeTitle:e=>`Remove ${e}?`,removeDescription:`They are signed out everywhere at once and can no longer sign in. What they wrote stays.`,removeConfirm:`Remove`,removed:e=>`${e} was removed`,notRemoved:`Not removed`,inviteTitle:`Invite someone`,name:`Name`,email:`Email`,emailHelp:`They sign in with a link sent to this address. There is no password.`,role:`Role`,inviteSend:`Send invitation`,invited:e=>`${e} was invited`,invitedDescription:e=>`An invitation is on its way to ${e}.`},builder:{title:`Content types`,description:`The kinds of content this site has, and the fields each one is made of.`,newType:`New content type`,columnName:`Name`,columnFields:`Fields`,columnAddress:`Address`,noAddress:`No page of its own`,fieldCount:e=>e===1?`1 field`:`${e} fields`,emptyTitle:`No content types yet`,emptyDescription:`A content type is one kind of thing the site shows, such as news, team members or testimonials.`,newTypeTitle:`New content type`,typeName:`Name`,typeNameHelp:`What its entries are, in the plural: "Testimonials".`,typeKey:`Key`,typeKeyHelp:`What the site's code calls it. It cannot be changed later.`,archive:`Archive`,archiveTitle:e=>`Archive ${e}?`,archiveDescription:`It leaves the editor, and its pages leave the site. Its fields and entries are kept, so you can restore it later from Content types.`,archiveConfirm:`Archive content type`,archived:e=>`${e} was archived`,archivedDescription:`Restore it from the list of archived content types.`,notArchived:`The content type was not archived`,archivedTitle:`Archived`,archivedHelp:`Out of the editor and off the site, with everything kept.`,archivedTypes:`Archived content types`,columnArchived:`Archived`,restoreType:e=>`Restore ${e}`,typeRestored:e=>`${e} was restored`,typeRestoredDescription:`It is back in the editor, and its published entries are back on the site.`,typeNotRestored:`The content type was not restored`,typeKind:`Kind`,kindCollection:`Many entries`,kindSingle:`One page`,kindCollectionHelp:`A collection, such as news posts or listings. It has a list, and each entry can have a page of its own.`,kindSingleHelp:`A single page, such as the home page or the contact page. It has one entry in each language.`,typeNameHelpSingle:`What the page is: "About".`,typeAddressSingle:`Address of the page`,typeAddressHelpSingle:`Where the page lives on the site, such as /about. Leave empty when it is only shown as part of other pages.`,typeAddress:`Address of its pages`,typeAddressHelp:`Where one entry lives on the site, such as /news/[slug]. Write [...slug] where pages may sit under other pages, as in /services/roofing. Leave empty when entries have no page of their own.`,typeCreate:`Create content type`,typeCreated:e=>`${e} was created`,typeCreatedDescription:`Add its fields next.`,typeNotCreated:`The content type was not created`,settings:`Settings`,settingsTitle:e=>`Settings for ${e}`,settingsSave:`Save settings`,settingsSaved:`Settings saved`,settingsNotSaved:`The settings were not saved`,keyIs:e=>`Key: ${e}`,viewEntries:`View entries`,notFoundTitle:`This content type does not exist`,notFoundDescription:`Check the address, or choose a content type from the list.`,backToTypes:`All content types`,backTo:e=>`Back to ${e}`,insideOf:(e,t)=>`The fields each ${e} of ${t} is made of.`,fieldsInside:e=>`Fields inside ${e}`,holdsFields:e=>e===1?`Holds 1 field`:`Holds ${e} fields`,sections:`Sections`,sectionsTitle:`Sections`,sectionsDescription:`The headings the editor groups this type's fields under. Removing a section removes no field: its fields move after the others.`,sectionsEmpty:`No sections. Every field is shown in one list.`,sectionAdd:`Add section`,sectionName:e=>`Name of section ${e}`,sectionAside:e=>`Show section ${e} beside the content`,sectionAsideLabel:`Beside the content`,sectionRemove:e=>`Remove section ${e}`,sectionMoveUp:e=>`Move section ${e} up`,sectionMoveDown:e=>`Move section ${e} down`,sectionsSave:`Save sections`,sectionsSaved:`Sections saved`,sectionsNotSaved:`The sections were not saved`,sectionNameNeeded:`Give every section a name.`,titleField:`Entries are called by`,titleFieldHelp:`The field whose value names an entry in lists.`,titleAutomatic:`The first text field`,listImage:`Picture in lists`,listImageHelp:`An image field shown before each entry's name.`,listImageNone:`No picture`,listColumns:`Columns in lists`,listColumnsHelp:`Fields that get a column each in the list of entries.`,crm:`Deals`,forDeals:`Deals can be about these`,forDealsHelp:`A deal can then name one of these entries as what it is about, and each entry lists the deals about it.`,fields:`Fields`,fieldsOf:e=>`Fields in ${e}`,otherFields:`Other fields`,otherFieldsDescription:`Shown after the sections.`,noFieldsTitle:`No fields yet`,noFieldsDescription:`Fields are what someone fills in for each entry: a title, a photo, a date.`,noFieldsHere:`No fields here yet.`,addField:`Add field`,columnField:`Field`,columnKind:`Kind`,columnRules:`Rules`,columnActions:`Actions`,required:`Required`,sameInEveryLanguage:`Same in every language`,moveUp:e=>`Move ${e} up`,moveDown:e=>`Move ${e} down`,edit:e=>`Edit ${e}`,remove:e=>`Remove ${e}`,notMoved:`The field was not moved`,addFieldTitle:`Add a field`,editFieldTitle:e=>`Edit ${e}`,kind:`Kind of field`,kindIs:e=>`Kind: ${e}. A field keeps its kind, so its content stays readable.`,fieldName:`Name`,fieldNameHelp:`What the editor calls this field.`,fieldKey:`Key`,fieldKeyHelp:`What the site's code calls it.`,fieldKeyHelpEdit:`What the site's code calls it. Pages that read this field need the new key if you change it. The content stays.`,fieldHelp:`Help text`,fieldHelpHelp:`A sentence under the field on what to put in it. Optional.`,fieldRequired:`Must be filled in before publishing`,fieldTranslated:`Each language has its own value`,section:`Section`,sectionHelp:`Where the editor shows this field.`,noSection:`After the sections`,fieldAdd:`Add field`,fieldSave:`Save field`,fieldAdded:e=>`${e} was added`,fieldNotAdded:`The field was not added`,fieldSaved:e=>`${e} was saved`,fieldNotSaved:`The field was not saved`,nameNeeded:`Give the field a name.`,typeNameNeeded:`Give the content type a name.`,keyNeeded:`Give it a key: lowercase letters and numbers, starting with a letter.`,settingsElsewhere:`This kind of field has settings that cannot be changed here yet. They are kept as they are.`,removeTitle:e=>`Remove ${e}?`,removeDescription:`The field disappears from the editor and the site. Its content is kept, so you can restore the field later.`,removeConfirm:`Remove field`,removed:e=>`${e} was removed`,notRemoved:`The field was not removed`,removedFields:`Removed fields`,removedFieldsDescription:`Their content is kept. Restore one to bring it back as it was.`,restore:`Restore`,restoreField:e=>`Restore ${e}`,restored:e=>`${e} was restored`,notRestored:`The field was not restored`,kinds:{text:{name:`Text`,description:`A line or a few paragraphs of plain words.`},richtext:{name:`Formatted text`,description:`Text with headings, lists, bold and links.`},number:{name:`Number`,description:`A price, a count, a measurement.`},boolean:{name:`Yes or no`,description:`A switch that is on or off.`},date:{name:`Date`,description:`A day on the calendar.`},url:{name:`Web address`,description:`A link to a page anywhere.`},email:{name:`Email address`,description:`An address to write to, such as an agent's.`},phone:{name:`Phone number`,description:`A number to call, as you would write it.`},select:{name:`Choice`,description:`One option from a list you write.`},color:{name:`Colour`,description:`A colour of the site, such as its brand colour, typed or picked.`},font:{name:`Font`,description:`One of the fonts the site's template offers, such as for headings.`},image:{name:`Image`,description:`One of the site's images, or a new upload.`},reference:{name:`Link to an entry`,description:`An entry of another content type, such as a listing's agent.`},link:{name:`Link`,description:`A page of this site, or an address anywhere. For menus and buttons.`},form:{name:`Form`,description:`One of the site's forms, for a section that shows it.`},list:{name:`List`,description:`Several of the same thing, in order: photos, features.`},group:{name:`Group`,description:`Several fields kept together, such as an address.`},blocks:{name:`Sections`,description:`The sections of a page, in order, each one a block the site's template provides.`}},textMultiline:`Several lines`,textMaxLength:`Longest text allowed`,textMaxLengthHelp:`In characters. Leave empty for no limit.`,richTextFormats:`What the text can have`,richTextFormatsHelp:`Paragraphs always. Untick what the page has no room for: the editor stops offering it, and anything pasted becomes plain paragraphs.`,richTextFormat:{bold:`Bold`,italic:`Italics`,code:`Code`,link:`Links`,headings:`Headings`,lists:`Lists`,quotes:`Quotes`},numberMin:`Smallest number allowed`,numberMax:`Largest number allowed`,numberInteger:`Whole numbers only`,choices:`Options`,choicesHelp:`One per line. Entries store the option exactly as written here.`,choicesNeeded:`Write at least one option.`,referenceTo:`Links to entries of`,referenceNeeded:`Choose which content type it links to.`,listOf:`Each item is`,listOfHelp:`What the list holds. It cannot be changed once the field exists.`,listOfNeeded:`Choose what each item is.`},home:{greeting:{morning:e=>`Good morning, ${e}`,afternoon:e=>`Good afternoon, ${e}`,evening:e=>`Good evening, ${e}`},description:e=>`Here is where ${e} stands.`,headline:(e,t)=>t===0?`${e}. Everything is published.`:`${e}. ${t===1?`1 draft is`:`${t} drafts are`} waiting.`,siteWindowTitle:e=>`The home page of ${e}, as visitors see it`,editHomeShort:`Edit this page`,openSite:`Open the site`,publishedWhen:e=>`Published ${e}`,carryOn:e=>`Continue “${e}”`,asideLabel:`What came in`,byTypeTitle:`Content by type`,byTypeHelp:`How many entries each kind of content has.`,byTypeEmpty:`No entries yet.`,submissionsTitle:`Submissions`,submissionsHelp:e=>e===1?`1 in the last 14 days, spam left out`:`${e} in the last 14 days, spam left out`,submissionsOn:(e,t)=>`${e}: ${t===1?`1 submission`:`${t} submissions`}`,inboxTitle:`Inbox`,inboxNew:e=>`${e} new from your forms`,inboxEmpty:`Nothing new. Everything sent through your forms has been seen.`,allForms:`All forms`,pipelineTitle:`Pipeline`,pipelineDetail:(e,t)=>`${e} in open deals · ${t} forecast`,published:`Published`,publishedDetail:`On the site now`,drafts:`Drafts`,draftsDetail:`Not on the site yet`,changed:`Unpublished changes`,changedDetail:`Saved, waiting to be published`,editHome:`Edit the home page`,viewSite:`View the site`,recentTitle:`Recent changes`,recentEmpty:`Nothing has been written yet`,recentEmptyDescription:`Entries appear here as soon as someone saves one.`,columnType:`Type`,followUpsTitle:`Follow-ups`,followUpsHelp:`Contacts you look after that are due today or overdue.`,followUpsMore:e=>e===1?`1 more in Contacts`:`${e} more in Contacts`,allContacts:`All contacts`},status:{draft:`Draft`,scheduled:`Scheduled`,published:`Published`,unpublishedChanges:`Unpublished changes`}},A6=(0,x.createContext)({messages:k6,locale:`en`});function j6({messages:e=k6,locale:t=`en`,children:n}){return(0,S.jsx)(A6,{value:{messages:e,locale:t},children:n})}function Q(){return(0,x.useContext)(A6).messages}function M6(){return(0,x.useContext)(A6).locale}function N6(){return new g_(`field control`)}var P6=(0,x.createContext)(null);function F6({controls:e,children:t}){return(0,S.jsx)(P6,{value:e,children:t})}function I6(){let e=(0,x.useContext)(P6);if(!e)throw Error(`useFieldControls() was called outside <AdminApp>. Render the screen inside it.`);return e}function L6(e){let[t,n]=(0,x.useState)(!0);return{close:()=>n(!1),dialog:{isOpen:t,onOpenChange:n,onClosed:e}}}function R6(e){let[t,n]=(0,x.useState)(e);return e!==null&&e!==t&&n(e),e??t}var z6={"align-left":kx,"badge-check":Sv,blocks:wv,"building-2":Ev,"calendar-days":kv,"chart-no-axes-column":vee,"circle-help":Kv,"columns-2":Jv,"columns-3":Xv,contact:Qv,"gallery-horizontal":vy,hash:wy,heading:Yy,house:Ey,image:yee,images:jy,"layout-grid":Uy,"layout-list":Gy,"layout-template":qy,list:ab,"list-checks":Zy,mail:db,"map-pin":pb,megaphone:Cee,"message-circle":vb,"message-square-quote":Tee,"mouse-pointer-click":kee,newspaper:Aee,"panel-top":jb,phone:zb,play:Vb,quote:Yb,"rows-3":rx,sparkles:Pee,star:Fee,table:Iee,tag:Dx,text:kx,type:Ree,users:Ux};function B6(e){return(e===void 0?void 0:z6[e])??wv}var V6=e=>typeof e==`object`&&!!e&&typeof e.id==`string`&&typeof e.block==`string`;function H6(e,t,n,r){let i={};for(let a of m_([...e])){let e=n[a.id];if(e===void 0)continue;let o=m_([...t]).find(e=>e.key===a.key&&e.type===a.type);if(!o)return;let s=r(a.type)?.carried,c=s?s(a,o,e,r):e;if(c===void 0)return;i[o.id]=c}return i}function U6(e,t,n,r){let i=e.find(e=>e.id===n.block),a=i&&t.find(e=>e.key===i.key&&e.retiredAt===void 0);if(!i||!a)return;if(a.id===i.id)return n;let o=H6(i.fields,a.fields,n.data,r);return o&&{...n,block:a.id,data:o}}var W6=e=>Array.isArray(e.options.fields)?e.options.fields:[],G6=e=>Array.isArray(e.options.blocks)?e.options.blocks:[],K6=(e,t,n,r)=>typeof n==`object`&&n?H6(W6(e),W6(t),n,r):n,q6=(e,t,n,r)=>{if(!Array.isArray(n))return n;let i=e=>{let t=e.options.of??{type:`text`};return{...e,type:t.type,options:t.options??{}}},a=r(i(e).type)?.carried;if(!a||i(e).type!==i(t).type)return i(e).type===i(t).type?n:void 0;let o=n.map(n=>a(i(e),i(t),n,r));return o.includes(void 0)?void 0:o},J6=(e,t,n,r)=>{if(!Array.isArray(n))return n;let i=n.map(n=>V6(n)?U6(G6(e),G6(t),n,r):void 0);return i.includes(void 0)?void 0:i};function Y6({field:e,value:t,onChange:n,path:r,problems:i,isLabelHidden:a=!1}){let o=Q(),s=M6(),c=I6(),l=ts(),u=o6(e.label,s),d=l.data?.find(t=>t.type===e.type)?.editor;if(d===void 0||!c.has(d))return(0,S.jsx)(DQ,{legend:u,description:o.editor.unsupportedField});let{Component:f}=c.get(d),p=e.help?o6(e.help,s):void 0;return(0,S.jsx)(f,{field:e,label:u,help:p,isLabelHidden:a,value:t,onChange:n,path:r,problem:i.get(r),problems:i})}var X6=(0,x.createContext)(3);function Z6({fields:e,values:t,onChange:n,pathOf:r,problems:i,perRow:a,spotlight:o}){let s=(0,x.useContext)(X6),c=a??s,l=I6(),u=ts(),d=e=>{let t=u.data?.find(t=>t.type===e.type)?.editor;return t!==void 0&&l.has(t)&&l.get(t).width===`compact`},f=[];for(let t of e){let e=f.at(-1),[n]=e??[];e&&n&&d(t)&&d(n)&&e.length<c?e.push(t):f.push([t])}let p=e=>(0,S.jsx)(Y6,{field:e,value:t[e.id],onChange:t=>n(e,t),path:r(e),problems:i},e.id),m=e=>o===void 0?p(e):(0,S.jsx)(W$,{at:o.key===e.key?o.at:void 0,children:p(e)},e.id);return(0,S.jsx)(X6,{value:c,children:(0,S.jsx)(Y,{gap:5,children:f.map(e=>{let[t]=e;return t?d(t)&&c>1?(0,S.jsx)(NQ,{columns:c,gap:4,children:e.map(m)},t.id):m(t):null})})})}function Q6(){let e=I6(),t=ts();return n=>{let r=t.data?.find(e=>e.type===n)?.editor;return r!==void 0&&e.has(r)?e.get(r):void 0}}function $6({field:e,value:t}){let n=Q6()(e.type);return t==null||t===``?null:n?.Summary?(0,S.jsx)(n.Summary,{field:e,value:t}):typeof t!=`string`&&typeof t!=`number`?null:(0,S.jsx)(X,{size:`sm`,children:String(t)})}var e8={},t8=(0,x.createContext)(null);function n8({children:e}){let[t,n]=(0,x.useState)(void 0),[r,i]=(0,x.useState)(void 0),[a,o]=(0,x.useState)(0),[s,c]=(0,x.useState)(e8),l=(0,x.useRef)(new Set),[u,d]=(0,x.useState)(void 0),f=(0,x.useRef)(new Set),p=(0,x.useRef)(new Set),m=(0,x.useRef)(new Set),h=(0,x.useRef)(new Set),g=(0,x.useRef)(new Set),_=(0,x.useRef)(new Set),v=(0,x.useRef)(new Set),y=(0,x.useMemo)(()=>({pressed:t,press:(e,t)=>n(n=>({id:e,...t!==void 0&&{field:t},at:(n?.at??0)+1})),opened:r,openedAt:a,open:e=>{i(e),o(e=>e+1)},typable:s,setTypable:e=>c(t=>JSON.stringify(t)===JSON.stringify(e)?t:e),typed:(e,t,n)=>l.current.forEach(r=>r(e,t,n)),onTyped:e=>(l.current.add(e),()=>void l.current.delete(e)),tools:u,setTools:e=>d(t=>JSON.stringify(t)===JSON.stringify(e)?t:e),acted:(e,t)=>f.current.forEach(n=>n(e,t)),onActed:e=>(f.current.add(e),()=>void f.current.delete(e)),dragged:(e,t,n)=>p.current.forEach(r=>r(e,t,n)),onDragged:e=>(p.current.add(e),()=>void p.current.delete(e)),pictured:(e,t)=>m.current.forEach(n=>n(e,t)),onPictured:e=>(m.current.add(e),()=>void m.current.delete(e)),linked:(e,t)=>h.current.forEach(n=>n(e,t)),onLinked:e=>(h.current.add(e),()=>void h.current.delete(e)),itemActed:(e,t,n,r)=>g.current.forEach(i=>i(e,t,n,r)),onItemActed:e=>(g.current.add(e),()=>void g.current.delete(e)),swatched:(e,t,n)=>_.current.forEach(r=>r(e,t,n)),onSwatched:e=>(_.current.add(e),()=>void _.current.delete(e)),slotted:(e,t)=>v.current.forEach(n=>n(e,t)),onSlotted:e=>(v.current.add(e),()=>void v.current.delete(e))}),[t,r,a,s,u]);return(0,S.jsx)(t8,{value:y,children:e})}function r8(){return(0,x.useContext)(t8)}var i8=()=>()=>void 0;function a8({children:e}){let t=(0,x.useContext)(t8),n=(0,x.useMemo)(()=>t&&{...t,setTypable:()=>void 0,setTools:()=>void 0,onTyped:i8,onActed:i8,onDragged:i8,onPictured:i8,onLinked:i8,onItemActed:i8,onSwatched:i8,onSlotted:i8,isInside:!0},[t]);return(0,S.jsx)(t8,{value:n,children:e})}var o8=[`all`,`uploaded`,`site`],s8=[`all`,`jpeg`,`png`,`webp`,`svg`,`gif`,`avif`],c8=[`newest`,`oldest`,`name`,`largest`],l8={query:``,source:`all`,kind:`all`,sort:`newest`};function u8(e){let t=/\.([a-z0-9]+)(?:[?#].*)?$/i.exec(e.url)?.[1]?.toLowerCase();return t===`jpg`||t===`jpeg`?`jpeg`:t===`png`||t===`webp`||t===`svg`||t===`gif`||t===`avif`?t:null}var d8=(e,t)=>e.name.localeCompare(t.name),f8=e=>e.uploadedAt===void 0?null:Date.parse(e.uploadedAt);function p8(e,{query:t,source:n,kind:r,sort:i}){let a=t.trim().toLowerCase();return e.filter(e=>(a===``||e.name.toLowerCase().includes(a))&&(n===`all`||n===`uploaded`==(e.uploadedAt!==void 0))&&(r===`all`||u8(e)===r)).sort((e,t)=>{if(i===`name`)return d8(e,t);if(i===`largest`)return(t.size??-1)-(e.size??-1)||d8(e,t);let[n,r]=[f8(e),f8(t)];return n===null||r===null?n===r?d8(e,t):n===null?1:-1:(i===`newest`?r-n:n-r)||d8(e,t)})}var m8=.86,h8=(e,t)=>`${e.replace(/\.[^.]*$/,``)}.${t}`;function g8(e,t,n){let r=document.createElement(`canvas`);r.width=Math.max(1,Math.round(e.width*t)),r.height=Math.max(1,Math.round(e.height*t));let i=r.getContext(`2d`);return i?(n===`image/jpeg`&&(i.fillStyle=`#fff`,i.fillRect(0,0,r.width,r.height)),i.drawImage(e,0,0,r.width,r.height),new Promise(e=>r.toBlob(e,n,m8))):Promise.resolve(null)}async function _8(e,t){let n=new Uint8Array(await e.arrayBuffer()),r={fileName:e.name,bytes:n},i=B_(n);if(i!==null&&Math.max(i.width,i.height)<=2560&&n.length<=t||typeof createImageBitmap!=`function`)return r;let a=await createImageBitmap(e).catch(()=>null);if(!a)return r;try{let t=Math.min(1,V_/Math.max(a.width,a.height)),n=i?.contentType===`image/png`?`image/png`:`image/jpeg`,o=await g8(a,t,n);return o?{fileName:h8(e.name,n===`image/png`?`png`:`jpg`),bytes:new Uint8Array(await o.arrayBuffer())}:r}finally{a.close()}}var v8=e=>e.thumbnail??e.url,y8=e=>String(Math.round(e/1e5)/10);function b8({label:e,isLabelHidden:t=!1,help:n,problem:r,isRequired:i=!1,value:a,onChange:o,window:s}){let c=Q(),l=ns(),u=rs().data??null,d=as(),f=os(),[p,m]=(0,x.useState)(!1),h=async e=>{m(!1),d.reset();let t=await _8(e,u?.maxBytes??0).catch(()=>null);if(!t)throw m(!0),Error(c.editor.imageNotRead);o((await d.mutateAsync(t)).name),Z({title:c.editor.imageUploaded,description:c.editor.imageUploadedDescription,tone:`success`})},g=p?c.editor.imageNotRead:d.error?.message,_=typeof a==`string`&&a!==``?a:null,v=_!==null&&l.isSuccess&&!l.data.some(e=>e.name===_),y=r??(l.isError?c.editor.imagesNotLoaded:v?c.editor.imageMissing:void 0);return(0,S.jsx)(J2,{label:e,isLabelHidden:t,value:_,images:p8(l.data??[],l8).map(e=>({name:e.name,url:v8(e),...f.has(e.name)&&{badge:c.media.justUploaded}})),search:{label:c.media.search,placeholder:c.media.searchPlaceholder,clearLabel:c.media.clearSearch,noMatchesText:c.media.noMatches},onChange:o,isRequired:i,chooseLabel:c.editor.imageChoose,changeLabel:c.editor.imageChange,noneText:c.editor.imageNone,dialogTitle:c.editor.imageChoose,closeLabel:c.editor.close,emptyText:l.isPending?c.editor.imagesLoading:c.editor.imagesEmpty,...u&&{onUpload:h,uploadLabel:c.editor.imageUpload,uploadHint:c.editor.imageUploadHint(y8(u.maxBytes))},...g!==void 0&&{uploadError:g},...n!==void 0&&{description:n},...y!==void 0&&{errorMessage:y},...s!==void 0&&{window:s}})}var x8=e=>typeof e==`object`&&!!e&&typeof e.id==`string`&&typeof e.block==`string`;function S8(e,t,n){for(let r of m_(e.fields)){let e=t.data[r.id];if(typeof e==`string`&&e.trim()!==``&&n(r))return e}}var C8=e=>Array.isArray(e.options.blocks)?e.options.blocks:[],w8=e=>typeof e.options.max==`number`?e.options.max:void 0,T8=e=>e.max!==void 0&&e.sections.length>=e.max,E8=(e,t,n)=>e.to(e.sections.map(e=>e.id===t?{...e,data:n}:e));function D8(e,t){return[e,...e.sections.flatMap((n,r)=>{let i=M8(e.blocks,n);return!i||i.retiredAt!==void 0?[]:m_(i.fields).flatMap(i=>(t(i.type)?.sections?.(i,n.data[i.id],t)??[]).flatMap(a=>{let o=a.place===``?i.key:`${i.key}.${a.place}`;return D8({key:`${n.id}:${o}`,group:C8(a.field).filter(e=>e.retiredAt===void 0).map(e=>e.key).sort().join(`|`),blocks:C8(a.field),sections:a.sections.filter(x8),max:w8(a.field),path:`${e.path}.${r}.${o}`,inside:[...e.inside,n.id],to:t=>E8(e,n.id,h6(n.data,i.id,a.put(t)))},t)}))})]}function O8(e,t){for(let n of e){let e=n.sections.findIndex(e=>e.id===t),r=n.sections[e];if(r)return{list:n,at:e,section:r}}}function k8(e){if(Array.isArray(e))return e.map(e=>k8(e));if(typeof e!=`object`||!e)return e;let t=Object.fromEntries(Object.entries(e).map(([e,t])=>[e,k8(t)]));return x8(e)?{...t,id:crypto.randomUUID()}:t}function A8(e,t,n,r){let i=M8(e.blocks,t);return!i||i.retiredAt!==void 0?[]:m_(i.fields).flatMap(e=>{let i=r(e.type);return((i&&n(i,e,t.data[e.id]))??[]).map(n=>({...n,place:n.place===``?e.key:`${e.key}.${n.place}`,put:r=>h6(t.data,e.id,n.put(r))}))})}function j8({field:e,label:t,help:n,value:r,onChange:i,path:a,problem:o,problems:s}){let c=Q(),l=M6(),u=C8(e),d=Array.isArray(r)?r.filter(x8):[],f=w8(e),[p,m]=(0,x.useState)([]),[h,g]=(0,x.useState)(!1),[_,v]=(0,x.useState)({key:``,at:null}),[y,b]=(0,x.useState)(null),[C,w]=(0,x.useState)(null),[T,E]=(0,x.useState)(null),[D,O]=(0,x.useState)(null),k=Q6(),A=r8(),j=A?.pressed,M=A?.opened,N=e=>i(e.length===0?void 0:e),P=e=>D8({key:``,group:``,blocks:u,sections:e,max:f,path:a,inside:[],to:e=>e},k),F=P(d),ee=F[0],I=(e,t)=>A8(e,t,(e,t,n)=>e.words?.(t,n,k),k),te=(e,t)=>A8(e,t,(e,t,n)=>e.pictures?.(t,n,k),k),ne=(e,t)=>A8(e,t,(e,t,n)=>e.links?.(t,n,k),k),re=(e,t)=>A8(e,t,(e,t,n)=>e.lists?.(t,n,k),k),ie=(e,t)=>A8(e,t,(e,t,n)=>e.swatches?.(t,n,k),k),ae=(0,x.useRef)({sections:d,lists:F,listsOf:P,change:N,wordsOf:I,itemsOf:re,swatchesOf:ie});(0,x.useEffect)(()=>{ae.current={sections:d,lists:F,listsOf:P,change:N,wordsOf:I,itemsOf:re,swatchesOf:ie}});let oe=e=>{m(t=>t.includes(e)?t:[...t,e]),A?.open(e)},se=e=>{let t=[...O8(ae.current.lists,e)?.list.inside??[],e];m(e=>t.every(t=>e.includes(t))?e:[...new Set([...e,...t])])};(0,x.useEffect)(()=>{if(!j)return;se(j.id);let[e]=j.field?.split(`.`)??[];O(e===void 0?null:{section:j.id,key:e,at:j.at})},[j]),(0,x.useEffect)(()=>{M!==void 0&&se(M)},[M]);let ce=A?.isInside===!0,le=ce?{}:Object.fromEntries(F.flatMap(e=>e.sections.map(t=>[t.id,I(e,t).map(({place:e})=>e)]))),ue=JSON.stringify(le),de=A?.setTypable;(0,x.useEffect)(()=>de?.(JSON.parse(ue)),[de,ue]);let fe=A?.onTyped;(0,x.useEffect)(()=>fe?.((e,t,n)=>{let r=ae.current,i=O8(r.lists,e),a=i&&r.wordsOf(i.list,i.section).find(e=>e.place===t);if(!i||!a)return;let o=E8(i.list,e,a.put(n));ae.current={...r,sections:o,lists:r.listsOf(o)},r.change(o)}),[fe]);let pe=e=>e?o6(e.label,l):c.editor.sectionUnknown,L=ce?void 0:{labels:{up:c.editor.pageMoveUp,down:c.editor.pageMoveDown,duplicate:c.editor.pageDuplicate,remove:c.editor.pageRemove,add:c.editor.pageAdd,reorder:c.editor.pageReorder,done:c.editor.pageReorderDone,addBefore:c.editor.pageAddBefore,addAfter:c.editor.pageAddAfter,picture:c.editor.pagePicture,link:c.editor.pageLink,bold:c.editor.richText.bold,italic:c.editor.richText.italic,textLink:c.editor.richText.link,itemUp:c.editor.pageItemUp,itemDown:c.editor.pageItemDown,itemDuplicate:c.editor.pageItemDuplicate,itemRemove:c.editor.pageItemRemove},sections:Object.fromEntries(F.flatMap(e=>e.sections.map((t,n)=>[t.id,{name:pe(M8(e.blocks,t)),up:n>0,down:n<e.sections.length-1,copy:!T8(e),add:!T8(e),pictures:te(e,t).map(({place:e})=>e),links:ne(e,t).map(({place:e})=>e),lists:re(e,t).map(e=>({field:e.place,count:e.items.length,full:e.isFull})),swatches:ie(e,t).map(e=>({field:e.place,name:o6(e.field.label,l),...e.chosen!==void 0&&{chosen:e.chosen},choices:e.choices.map(e=>({value:e.value,name:e.name(l),colour:e.colour}))})),list:e.key,group:e.group}]))),slots:Object.fromEntries(F.slice(1).map(e=>[e.key,{group:e.group,empty:e.sections.length===0,full:T8(e)}]))},me=JSON.stringify(L),he=A?.setTools;(0,x.useEffect)(()=>{me!==void 0&&he?.(JSON.parse(me))},[he,me]);let ge=e=>{let t=O8(F,e);t&&N(t.list.to(t.list.sections.filter(t=>t.id!==e))),m(t=>t.filter(t=>t!==e))},_e=(e,t)=>{let n=O8(ae.current.lists,e);if(!n)return;let{list:r,at:i,section:a}=n;if(t===`duplicate`){if(T8(r))return;let e=k8(a);N(r.to([...r.sections.slice(0,i+1),e,...r.sections.slice(i+1)])),oe(e.id)}else t===`hide`?N(r.to(r.sections.map(t=>t.id===e?{...t,hidden:!0}:t))):t===`show`?N(r.to(r.sections.map(t=>t.id===e?{id:t.id,block:t.block,data:t.data}:t))):t===`remove`&&(Object.keys(a.data).length===0?ge(e):b(e))},ve=(e,t,n)=>{let r=[...e.sections],[i]=r.splice(t,1);i&&r.splice(n,0,i),N(e.to(r))},ye=(0,x.useRef)({act:_e,moveIn:ve});(0,x.useEffect)(()=>{ye.current={act:_e,moveIn:ve}});let be=A?.onActed,xe=A?.open;(0,x.useEffect)(()=>be?.((e,t)=>{let n=O8(ae.current.lists,e);if(!n)return;let{list:r,at:i}=n;if(t===`up`||t===`down`){let n=t===`up`?i-1:i+1;if(n<0||n>=r.sections.length)return;ye.current.moveIn(r,i,n),xe?.(e)}else if(t===`addBefore`||t===`addAfter`){if(T8(r))return;v({key:r.key,at:t===`addBefore`?i:i+1}),g(!0)}else ye.current.act(e,t)}),[be,xe]);let Se=A?.onSlotted;(0,x.useEffect)(()=>Se?.((e,t)=>{let n=ae.current.lists.find(n=>n.key===`${e}:${t}`);n&&!T8(n)&&(v({key:n.key,at:null}),g(!0))}),[Se]);let Ce=A?.onSwatched;(0,x.useEffect)(()=>Ce?.((e,t,n)=>{let r=ae.current,i=O8(r.lists,e),a=i&&r.swatchesOf(i.list,i.section).find(e=>e.place===t);i&&a&&a.chosen!==n&&a.choices.some(e=>e.value===n)&&r.change(E8(i.list,e,a.put(n)))}),[Ce]);let we=A?.onPictured;(0,x.useEffect)(()=>we?.((e,t)=>w({section:e,place:t})),[we]);let Te=R6(C),Ee=Te?O8(F,Te.section):void 0,De=Ee&&te(Ee.list,Ee.section).find(e=>e.place===Te?.place),Oe=A?.onItemActed;(0,x.useEffect)(()=>Oe?.((e,t,n,r)=>{let i=ae.current,a=O8(i.lists,e),o=a&&i.itemsOf(a.list,a.section).find(e=>e.place===t),s=o?.items[n];if(!a||!o||n<0||n>=o.items.length)return;let c=[...o.items];if(r===`remove`)c.splice(n,1);else if(r===`duplicate`){if(o.isFull)return;c.splice(n+1,0,k8(s))}else{let e=r===`up`?n-1:n+1;if(e<0||e>=c.length)return;c.splice(n,1),c.splice(e,0,s)}i.change(E8(a.list,e,o.put(c)))}),[Oe]);let ke=A?.onLinked;(0,x.useEffect)(()=>ke?.((e,t)=>E({section:e,place:t})),[ke]);let Ae=R6(T),je=Ae?O8(F,Ae.section):void 0,Me=je&&ne(je.list,je.section).find(e=>e.place===Ae?.place),Ne=A?.onDragged;(0,x.useEffect)(()=>Ne?.((e,t,n)=>{let r=ae.current,i=O8(r.lists,e);if(!i)return;let a=i.list;if(n===void 0||n===a.key){let e=t===null?a.sections.length:a.sections.findIndex(e=>e.id===t);if(e<0)return;let n=e>i.at?e-1:e;if(n===i.at)return;ye.current.moveIn(a,i.at,n)}else{let o=r.lists.find(e=>e.key===n);if(!o||o.group!==a.group||T8(o)||o.inside.includes(e))return;let s=a.to(a.sections.filter(t=>t.id!==e)),c=r.listsOf(s).find(e=>e.key===n);if(!c)return;let l=t===null?c.sections.length:c.sections.findIndex(e=>e.id===t);if(l<0)return;let u=U6(a.blocks,c.blocks,i.section,k);if(!u)return;r.change(c.to([...c.sections.slice(0,l),u,...c.sections.slice(l)]))}xe?.(e)}),[Ne,xe]);let Pe=F.find(e=>e.key===_.key)??ee,Fe=new Map;for(let e of Pe?.blocks??[]){if(e.retiredAt!==void 0)continue;let t=e.group??c.editor.sectionOtherGroup,n=Fe.get(t)??[];n.push({id:e.id,label:o6(e.label,l),icon:B6(e.icon),...e.description!==void 0&&{description:o6(e.description,l)},...e.thumbnail!==void 0&&{image:e.thumbnail}}),Fe.set(t,n)}let Ie=[...Fe].map(([e,t])=>({id:e,label:e,options:t})),Le=y===null?void 0:O8(F,y),Re=R6(Le?pe(M8(Le.list.blocks,Le.section)):null);return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(J4,{label:t,...n!==void 0&&{description:n},...o!==void 0&&{errorMessage:o},emptyText:c.editor.sectionsEmpty,addLabel:c.editor.sectionAdd,onAdd:()=>{v({key:``,at:null}),g(!0)},isFull:ee!==void 0&&T8(ee),openIds:p,revealId:j?.id,onOpenChange:(e,t)=>{O(null),t?oe(e):m(t=>t.filter(t=>t!==e))},onMove:(e,t)=>{ee&&ve(ee,e,t)},onAction:_e,moveUpLabel:e=>c.editor.sectionMoveUp(pe(M8(u,d[e-1])),e),moveDownLabel:e=>c.editor.sectionMoveDown(pe(M8(u,d[e-1])),e),moreLabel:e=>c.editor.sectionMore(pe(M8(u,d[e-1])),e),dragLabel:e=>c.editor.sectionDrag(pe(M8(u,d[e-1])),e),items:d.map((e,t)=>{let n=M8(u,e),r=n===void 0||n.retiredAt!==void 0,i=n?m_(n.fields):[],o=`${a}.${t}.`,l=[...s.keys()].filter(e=>e.startsWith(o)).length,p=n?S8(n,e,e=>k(e.type)?.width!==`compact`&&k(e.type)?.pictures===void 0):void 0,m=e.hidden===!0;return{id:e.id,title:pe(n),icon:B6(n?.icon),...p!==void 0&&{summary:p},...r?{tag:c.editor.sectionRetired}:m&&{tag:c.editor.sectionHidden},...l>0&&{problem:c.editor.sectionProblems(l)},actions:[...r?[]:[{id:`duplicate`,label:c.editor.sectionDuplicate,icon:ey,isDisabled:f!==void 0&&d.length>=f},m?{id:`show`,label:c.editor.sectionShow,icon:uy}:{id:`hide`,label:c.editor.sectionHide,icon:cy}],{id:`remove`,label:c.editor.sectionRemove,icon:jx,tone:`danger`}],content:r?(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:c.editor.sectionRetiredNote}):i.length===0?(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:c.editor.sectionNoFields}):(0,S.jsx)(a8,{children:(0,S.jsx)(Z6,{fields:i,values:e.data,onChange:(t,n)=>N(d.map(r=>r.id===e.id?{...r,data:h6(r.data,t.id,n)}:r)),pathOf:e=>`${o}${e.key}`,problems:s,spotlight:D?.section===e.id?D:{}})})}})}),(0,S.jsx)(m4,{isOpen:h,onOpenChange:g,title:c.editor.sectionPickerTitle,closeLabel:c.editor.close,emptyText:c.editor.sectionPickerEmpty,groups:Ie,onChoose:e=>{let t={id:crypto.randomUUID(),block:e,data:{}};if(!Pe)return;let n=_.at??Pe.sections.length;N(Pe.to([...Pe.sections.slice(0,n),t,...Pe.sections.slice(n)])),oe(t.id)}}),Ee&&De&&(0,S.jsx)(b8,{label:c.editor.pagePicture,value:De.name,onChange:e=>N(E8(Ee.list,Ee.section.id,De.put(e))),window:{isOpen:C!==null,onOpenChange:e=>{e||w(null)}}}),je&&Me&&(0,S.jsx)(CQ,{isOpen:T!==null,onOpenChange:e=>{e||E(null)},title:c.editor.pageLink,closeLabel:c.editor.close,footer:(0,S.jsx)(J,{variant:`primary`,onPress:()=>E(null),children:c.editor.pageLinkDone}),children:(0,S.jsx)(Z6,{fields:[Me.field],values:{[Me.field.id]:Me.link},onChange:(e,t)=>N(E8(je.list,je.section.id,Me.put(t))),pathOf:()=>`${je.list.path}.${je.at}.${Me.place}`,problems:s,perRow:1})}),(0,S.jsx)(o2,{isOpen:y!==null,onOpenChange:e=>{e||b(null)},title:c.editor.sectionRemoveTitle(Re??c.editor.sectionUnknown),confirmLabel:c.editor.sectionRemoveConfirm,cancelLabel:c.editor.cancel,tone:`danger`,onConfirm:()=>{y!==null&&ge(y),b(null)},children:c.editor.sectionRemoveDescription})]})}function M8(e,t){return t?e.find(e=>e.id===t.block):void 0}var N8=200,P8=`:address`,F8=e=>typeof e==`object`&&!!e&&!Array.isArray(e);function I8({type:e,chosen:t,onChange:n,problem:r}){let i=Q(),a=M6(),o=Qo({type:e.key,limit:N8}),s=_6(o.data?.items??[],a).map(({primary:t})=>({id:t.translationGroup,label:c6(e,t.data)??t.slug})).sort((e,t)=>e.label.localeCompare(t.label,a)),c=t!==void 0&&!s.some(e=>e.id===t),l=r??(o.isError?i.editor.linkNotLoaded:void 0);return(0,S.jsx)(j$,{label:i.editor.linkWhich(o6(e.label,a)),options:c?[{id:t,label:o.isSuccess?i.editor.linkGone:i.editor.linkLoading},...s]:s,placeholder:i.editor.choose,onChange:n,isRequired:!0,...t!==void 0&&{value:t},...l!==void 0&&{errorMessage:l}})}function L8({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,path:o,problem:s,problems:c}){let l=Q(),u=M6(),d=Fo(),f=Array.isArray(e.options.to)?e.options.to:void 0,p=(d.data??[]).filter(e=>d_(e)&&e.urlPattern!==void 0&&(f===void 0||f.includes(e.key))),m=F8(i)?i:void 0,h=m?.kind===`address`?P8:typeof m?.type==`string`?m.type:void 0,[g,_]=(0,x.useState)(h),v=h??g,y=p.find(e=>e.key===v),b=c.get(`${o}.href`)??c.get(`${o}.entry`)??c.get(`${o}.type`)??c.get(`${o}.kind`)??s,C=[...p.map(e=>({id:e.key,label:o6(e.label,u)})),{id:P8,label:l.editor.linkAddressChoice}],w=v===void 0||C.some(e=>e.id===v);return(0,S.jsxs)(NQ,{columns:2,gap:4,children:[(0,S.jsx)(j$,{label:t,isLabelHidden:r,options:w||v===void 0?C:[{id:v,label:d.isSuccess?l.editor.linkMissing(v):v},...C],placeholder:l.editor.choose,isRequired:e.required,onChange:e=>{e!==v&&(_(e),a(void 0))},...v!==void 0&&{value:v},...n!==void 0&&{description:n},...v===void 0&&b!==void 0&&{errorMessage:b}}),v===P8&&(0,S.jsx)(x1,{label:l.editor.linkAddress,description:l.editor.linkAddressHelp,value:typeof m?.href==`string`?m.href:``,onChange:e=>a(e.trim()===``?void 0:{kind:`address`,href:e.trim()}),isRequired:!0,...b!==void 0&&{errorMessage:b}}),y!==void 0&&(0,S.jsx)(I8,{type:y,chosen:typeof m?.entry==`string`?m.entry:void 0,onChange:e=>a({kind:`entry`,type:y.key,entry:e}),problem:b})]})}var R8=`velocity-cms:reloaded-for-update`,z8=()=>{try{return window.sessionStorage.getItem(R8)!==null}catch{return!1}},B8=e=>{try{e?window.sessionStorage.setItem(R8,`1`):window.sessionStorage.removeItem(R8)}catch{}};async function V8(e){try{let t=await e();return B8(!1),t}catch(t){try{let t=await e();return B8(!1),t}catch{if(z8())throw t;return B8(!0),window.location.reload(),new Promise(()=>void 0)}}}var H8=`modulepreload`,U8=function(e,t){return new URL(e,t).href},W8={},G8=function(e){return e.pathname.endsWith(`.css`)},K8=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},q8=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=U8(t,n);let r=s(t),i=G8(r);return K8(W8,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:H8,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{let i=a=>{t.removeEventListener(`load`,i),t.removeEventListener(`error`,i),a.type===`error`?n(Error(`Unable to preload CSS for ${r}`)):e(a)};t.addEventListener(`load`,i),t.addEventListener(`error`,i)})})}).filter(e=>e!==void 0))}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)})};function J8(e,t){let n=e.options[t];return typeof n==`number`?n:void 0}function Y8({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,problem:o}){let s={label:t,isLabelHidden:r,...n!==void 0&&{description:n},value:typeof i==`string`?i:``,onChange:e=>a(e===``?void 0:e),isRequired:e.required,...o!==void 0&&{errorMessage:o}};return e.options.multiline===!0?(0,S.jsx)(w1,{...s}):(0,S.jsx)(x1,{...s})}var X8=e=>function({field:t,label:n,help:r,isLabelHidden:i=!1,value:a,onChange:o,problem:s}){return(0,S.jsx)(x1,{type:e,label:n,isLabelHidden:i,value:typeof a==`string`?a:``,onChange:e=>o(e===``?void 0:e),isRequired:t.required,...r!==void 0&&{description:r},...s!==void 0&&{errorMessage:s}})},Z8=X8(`url`),Q8=X8(`email`),$8=X8(`tel`);function e5({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,problem:o}){let s=J8(e,`min`),c=J8(e,`max`);return(0,S.jsx)(u$,{label:t,isLabelHidden:r,value:typeof i==`number`?i:null,onChange:e=>a(e??void 0),width:`full`,isInteger:e.options.integer===!0,isRequired:e.required,...s!==void 0&&{minValue:s},...c!==void 0&&{maxValue:c},...n!==void 0&&{description:n},...o!==void 0&&{errorMessage:o}})}function t5({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,problem:o}){return(0,S.jsx)(dQ,{width:`full`,label:t,isLabelHidden:r,value:typeof i==`string`?i:null,onChange:e=>a(e??void 0),isRequired:e.required,...n!==void 0&&{description:n},...o!==void 0&&{errorMessage:o}})}function n5({label:e,value:t,onChange:n}){return(0,S.jsx)(e1,{label:e,isSelected:t===!0,onChange:n})}function r5({value:e}){let t=M6();return(0,S.jsx)(X,{size:`sm`,children:typeof e==`number`?new Intl.NumberFormat(t).format(e):String(e)})}function i5(e,t,n){let r=(e.options.labels??{})[t];return r?o6(r,n):t}function a5({field:e,value:t}){let n=M6();return(0,S.jsx)(X,{size:`sm`,children:i5(e,String(t),n)})}function o5(e){let t=Array.isArray(e.options.choices)?e.options.choices.filter(e=>typeof e==`string`):[],n=e.options.swatches??{},r=t.flatMap(e=>O_(n[e])?[{value:e,colour:n[e]}]:[]);return r.length===t.length?r:[]}var s5=(e,t)=>typeof t==`string`&&e.some(e=>e.value===t)?t:e[0]?.value,c5=(e,t)=>{let n=o5(e);return n.length===0?[]:[{place:``,field:e,choices:n.map(t=>({...t,name:n=>i5(e,t.value,n)})),chosen:s5(n,t),put:e=>e}]};function l5({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,problem:o}){let s=Q(),c=M6(),l=Array.isArray(e.options.choices)?e.options.choices.filter(e=>typeof e==`string`):[],u=o5(e);return u.length>0?(0,S.jsx)(C$,{label:t,isLabelShown:!r,...n!==void 0&&{description:n},options:u.map(t=>({id:t.value,label:i5(e,t.value,c),swatch:t.colour})),selected:s5(u,i)??``,onChange:a,...o!==void 0&&{errorMessage:o}}):(0,S.jsx)(j$,{label:t,isLabelHidden:r,...n!==void 0&&{description:n},options:l.map(t=>({id:t,label:i5(e,t,c)})),placeholder:s.editor.choose,onChange:a,isRequired:e.required,...typeof i==`string`&&{value:i},...o!==void 0&&{errorMessage:o}})}function u5({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,problem:o}){let s=Q(),c=Array.isArray(e.options.presets)?e.options.presets.filter(e=>typeof e==`string`):[];return(0,S.jsx)(oQ,{label:t,isLabelHidden:r,pickLabel:s.editor.pickColour(t),hueLabel:s.editor.hue,...c.length>0&&{presets:c,presetsLabel:s.editor.suggestedColours},...typeof i==`string`&&{value:i},onChange:a,isRequired:e.required,...n!==void 0&&{description:n},...o!==void 0&&{errorMessage:o}})}function d5({value:e}){return(0,S.jsx)(X,{size:`sm`,children:typeof e==`string`?e.toUpperCase():``})}function f5({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,problem:o}){let s=Q(),c=M6(),l=Array.isArray(e.options.choices)?e.options.choices.filter(e=>typeof e==`string`):[];return(0,S.jsx)(j$,{label:t,isLabelHidden:r,...n!==void 0&&{description:n},options:l.map(t=>({id:t,label:i5(e,t,c)})),placeholder:s.editor.chooseFont,onChange:a,isRequired:e.required,...typeof i==`string`&&{value:i},...o!==void 0&&{errorMessage:o}})}var p5=200;function m5({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,problem:o}){let s=Q(),c=M6(),l=typeof e.options.to==`string`?e.options.to:``,u=Fo(),d=Qo({type:l,limit:p5}),f=u.data?.find(e=>e.key===l),p=f?_6(d.data?.items??[],c).map(({primary:e})=>({id:e.slug,label:c6(f,e.data)??e.slug})):[],m=p.filter((e,t)=>p.findIndex(t=>t.id===e.id)===t).sort((e,t)=>e.label.localeCompare(t.label,c)),h=typeof i==`string`?i:void 0,g=h!==void 0&&!m.some(e=>e.id===h),_=o??(d.isError?s.editor.linkNotLoaded:void 0);return(0,S.jsx)(j$,{label:t,isLabelHidden:r,options:g?[{id:h,label:d.isSuccess?s.editor.linkMissing(h):h},...m]:m,placeholder:s.editor.choose,onChange:a,isRequired:e.required,...h!==void 0&&{value:h},...n!==void 0&&{description:n},..._!==void 0&&{errorMessage:_}})}function h5({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,problem:o}){let s=Q(),c=M6(),l=Ss(),u=(l.data??[]).map(e=>({id:e.id,label:e.open?o6(e.label,c):s.editor.formClosed(o6(e.label,c))})).sort((e,t)=>e.label.localeCompare(t.label,c)),d=typeof i==`string`?i:void 0,f=d!==void 0&&!u.some(e=>e.id===d),p=o??(l.isError?s.editor.linkNotLoaded:void 0),m=(l.isSuccess&&u.length===0?s.editor.noForms:void 0)??n;return(0,S.jsx)(j$,{label:t,isLabelHidden:r,options:f?[{id:d,label:l.isSuccess?s.editor.formMissing:s.editor.formLoading},...u]:u,placeholder:s.editor.choose,onChange:a,isRequired:e.required,...d!==void 0&&{value:d},...m!==void 0&&{description:m},...p!==void 0&&{errorMessage:p}})}function g5({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,problem:o}){return(0,S.jsx)(b8,{label:t,isLabelHidden:r,value:i,onChange:a,isRequired:e.required,...n!==void 0&&{help:n},...o!==void 0&&{problem:o}})}var _5=e=>typeof e==`string`||Array.isArray(e)&&e.every(e=>typeof e==`string`),v5=(0,x.lazy)(async()=>({default:(await V8(()=>q8(()=>import(`./RichTextEditor-DZQ46tza.js`),[],import.meta.url))).RichTextEditor}));function y5({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,problem:o}){let s=Q(),c=_5(i)?w_(i):typeof i==`object`&&i?i:null,l=e.options.formats,u=Array.isArray(l)?E_.filter(e=>l.includes(e)):void 0;return(0,S.jsx)(x.Suspense,{fallback:(0,S.jsx)(I$,{label:s.app.loading,children:(0,S.jsxs)(Y,{gap:2,children:[(0,S.jsx)(F$,{width:`sm`}),(0,S.jsx)(F$,{shape:`block`})]})}),children:(0,S.jsx)(v5,{label:t,isLabelHidden:r,value:c,onChange:e=>a(e??void 0),isRequired:e.required,words:s.editor.richText,...u!==void 0&&{formats:u},...n!==void 0&&{description:n},...o!==void 0&&{errorMessage:o}})})}function b5({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,path:o,problem:s,problems:c}){let l=Array.isArray(e.options.fields)?m_(e.options.fields):[],u=typeof i==`object`&&i?i:{};return(0,S.jsxs)(DQ,{legend:t,isLegendHidden:r,...n!==void 0&&{description:n},children:[s!==void 0&&(0,S.jsx)(X,{size:`sm`,tone:`danger`,children:s}),(0,S.jsx)(Z6,{fields:l,values:u,onChange:(e,t)=>{let n=h6(u,e.id,t);a(Object.keys(n).length===0?void 0:n)},pathOf:e=>`${o}.${e.key}`,problems:c})]})}var x5=e=>e!=null,S5=(e,t)=>t===``?e:`${e}.${t}`,C5=(e,t)=>t==null||typeof t==`string`?[{place:``,put:e=>e===``?void 0:e}]:[],w5=(e,t)=>e.put(t),T5=()=>[{place:``,put:e=>O6(e)}];function E5(e,t,n,r){let i=Array.isArray(t.options.fields)?m_(t.options.fields):[],a=typeof n==`object`&&n?n:{};return i.flatMap(t=>(r(t.type)?.[e]?.(t,a[t.id],r)??[]).map(e=>({...e,place:S5(t.key,e.place),put:n=>{let r=h6(a,t.id,w5(e,n));return Object.keys(r).length===0?void 0:r}})))}function D5(e,t,n,r){let i=Array.isArray(n)?n:[],a=t.options.of??{type:`text`},o=r(a.type)?.[e];return o?i.flatMap((e,n)=>o({...t,id:`${t.id}.${n}`,key:String(n),type:a.type,required:!1,options:a.options??{}},e,r).map(e=>({...e,place:S5(String(n),e.place),put:t=>i.map((r,i)=>i===n?w5(e,t)??(typeof r==`string`?``:{}):r)}))):[]}var O5=(e,t,n)=>E5(`words`,e,t,n),k5=(e,t,n)=>D5(`words`,e,t,n),A5=(e,t,n)=>E5(`pictures`,e,t,n),Tne=(e,t,n)=>D5(`pictures`,e,t,n),Ene=(e,t,n)=>E5(`links`,e,t,n),Dne=(e,t,n)=>D5(`links`,e,t,n),One=(e,t,n)=>E5(`lists`,e,t,n),kne=(e,t,n)=>{let r=Array.isArray(t)?t:[],i=typeof e.options.max==`number`?e.options.max:void 0;return[{place:``,items:r,isFull:i!==void 0&&r.length>=i,put:e=>e.length===0?void 0:e},...D5(`lists`,e,t,n)]},Ane=(e,t,n)=>E5(`sections`,e,t,n),jne=(e,t,n)=>D5(`sections`,e,t,n),Mne=(e,t)=>[{place:``,field:e,sections:Array.isArray(t)?t:[],put:e=>e.length===0?void 0:e}],Nne=(e,t)=>[{place:``,field:e,link:t,put:e=>e}],Pne=(e,t)=>[{place:``,name:typeof t==`string`&&t!==``?t:null,put:e=>e}],j5=(e,t)=>({id:`stored-${t}`,value:e});function Fne(e,t){let n=Array.isArray(e.options.fields)?m_(e.options.fields):[],r=typeof t==`object`&&t?t:{};for(let e of n){let t=r[e.id];if(typeof t==`string`&&t.trim()!==``)return t}}function Ine({field:e,label:t,help:n,value:r,onChange:i,path:a,problem:o,problems:s}){let c=Q(),l=Array.isArray(r)?r:[],[u,d]=(0,x.useState)(()=>l.map(j5)),f=g6(u.map(e=>e.value).filter(x5),l)?u:l.map(j5),[p,m]=(0,x.useState)([]),h=e.options.of??{type:`text`},g=typeof e.options.max==`number`?e.options.max:void 0,_=e=>{d(e);let t=e.map(e=>e.value).filter(x5);i(t.length===0?void 0:t)},v=Q6()(h.type)?.titleOf,y=n=>({id:`${e.id}.${n}`,key:String(n),type:h.type,label:{[Lne]:c.editor.listItem(t,n+1)},translated:e.translated,required:!1,options:h.options??{}}),b=(e,t)=>{let n=[...f],[r]=n.splice(e,1);r&&n.splice(t,0,r),_(n)},C=(e,t)=>(0,S.jsx)(Y6,{field:y(t),value:e.value,onChange:t=>_(f.map(n=>n.id===e.id?{...n,value:t}:n)),path:`${a}.${t}`,problems:s,isLabelHidden:!0}),w={label:t,...n!==void 0&&{description:n},...o!==void 0&&{errorMessage:o},emptyText:c.editor.listEmpty,addLabel:c.editor.listAdd,isFull:g!==void 0&&f.length>=g,onMove:b,moveUpLabel:e=>c.editor.listMoveUp(t,e),moveDownLabel:e=>c.editor.listMoveDown(t,e)},T=()=>{let e={id:crypto.randomUUID(),value:void 0};_([...f,e]),m(t=>[...t,e.id])};return v?(0,S.jsx)(J4,{...w,onAdd:T,openIds:p,onOpenChange:(e,t)=>m(n=>t?[...n,e]:n.filter(t=>t!==e)),moreLabel:e=>c.editor.listMore(t,e),dragLabel:e=>c.editor.listDrag(t,e),onAction:(e,t)=>{let n=f.findIndex(t=>t.id===e),r=f[n];r&&(t===`remove`?_(f.filter(t=>t.id!==e)):t===`duplicate`&&_([...f.slice(0,n+1),{id:crypto.randomUUID(),value:k8(r.value)},...f.slice(n+1)]))},items:f.map((e,n)=>{let r=`${a}.${n}`,i=[...s.keys()].filter(e=>e===r||e.startsWith(`${r}.`)).length;return{id:e.id,title:v(y(n),e.value)??c.editor.listItem(t,n+1),...i>0&&{problem:c.editor.listProblems(i)},actions:[{id:`duplicate`,label:c.editor.listDuplicate,icon:ey,isDisabled:w.isFull},{id:`remove`,label:c.editor.listRemoveRow,icon:jx,tone:`danger`}],content:C(e,n)}})}):(0,S.jsx)(T2,{...w,onAdd:T,removeLabel:e=>c.editor.listRemove(t,e),onRemove:e=>_(f.filter((t,n)=>n!==e)),items:f.map((e,t)=>({id:e.id,content:C(e,t)}))})}var Lne=`en`;function Rne(){return N6().register({type:`text-input`,Component:Y8,words:C5}).register({type:`url-input`,Component:Z8}).register({type:`email-input`,Component:Q8}).register({type:`phone-input`,Component:$8}).register({type:`number-input`,Component:e5,width:`compact`,Summary:r5,summaryAlign:`end`}).register({type:`date-picker`,Component:t5,width:`compact`}).register({type:`switch`,Component:n5}).register({type:`select`,Component:l5,width:`compact`,Summary:a5,swatches:c5}).register({type:`color-picker`,Component:u5,width:`compact`,Summary:d5,isLook:!0}).register({type:`font-picker`,Component:f5,width:`compact`,Summary:a5,isLook:!0}).register({type:`reference`,Component:m5,width:`compact`}).register({type:`form-picker`,Component:h5,width:`compact`}).register({type:`link`,Component:L8,links:Nne}).register({type:`image`,Component:g5,pictures:Pne}).register({type:`rich-text`,Component:y5,words:T5}).register({type:`group`,Component:b5,titleOf:Fne,words:O5,pictures:A5,links:Ene,lists:One,sections:Ane,carried:K6}).register({type:`list`,Component:Ine,words:k5,pictures:Tne,links:Dne,lists:kne,sections:jne,carried:q6}).register({type:`blocks`,Component:j8,showsPage:!0,sections:Mne,carried:J6})}var M5=[`general`,`email`,`storage`,`forms`,`tokens`],$={home:`/`,signIn:`/sign-in`,people:`/people`,profile:`/profile`,media:`/media`,trash:`/trash`,forms:`/forms`,form:e=>`/forms/${encodeURIComponent(e)}`,contacts:`/contacts`,contact:e=>`/contacts/${encodeURIComponent(e)}`,deals:`/deals`,plugins:`/plugins`,pluginScreen:(e,t)=>`/plugins/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,settings:(e=M5[0])=>`/settings/${e}`,settingsPage:e=>`/settings/page/${encodeURIComponent(e)}`,types:`/types`,type:(e,t=[])=>`/types/${encodeURIComponent(e)}${t.length>0?`?${new URLSearchParams(t.map(e=>[`in`,e]))}`:``}`,contentList:e=>`/content/${encodeURIComponent(e)}`,entry:(e,t)=>`/content/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,visualEntry:(e,t)=>`/content/${encodeURIComponent(e)}/${encodeURIComponent(t)}?view=visual`,newEntry:e=>`/content/${encodeURIComponent(e)}/new`},zne={Box:Z_,Button:J,Card:MZ,Checkbox:FZ,ConfirmDialog:o2,DateField:dQ,Dialog:CQ,EmptyState:l2,Fieldset:DQ,Form:jQ,Grid:NQ,Heading:LQ,Inline:zQ,Link:VQ,NumberField:u$,PageHeader:m2,SearchField:h$,Segmented:C$,Select:j$,Skeleton:F$,SkeletonGroup:I$,Spinner:V$,Split:Q2,Stack:Y,Stat:Y$,Switch:e1,Table:u1,Tabs:h1,Tag:_1,Text:X,TextArea:w1,TextField:x1,Tooltip:pQ,toast:Z};function Bne(e){let t=e.endsWith(`/`)?e.slice(0,-1):e;return e=>import(new URL(`${t}/plugins/${encodeURIComponent(e)}.js`,location.origin).href)}var Vne=/^[a-z][a-z0-9-]{0,39}$/,Hne=e=>e instanceof Error?e.message:String(e),Une=class{#e={screens:[],panels:[],problems:new Map,settled:new Set};#t=new Set;#n=new Set;subscribe=e=>(this.#n.add(e),()=>void this.#n.delete(e));snapshot=()=>this.#e;#r(e){this.#e={...this.#e,...e};for(let e of this.#n)e()}follow(e,t){let n=new Set(e),r=[...this.#t].filter(e=>!n.has(e));if(r.length>0){for(let e of r)this.#t.delete(e);this.#r({screens:this.#e.screens.filter(e=>n.has(e.plugin)),panels:this.#e.panels.filter(e=>n.has(e.plugin)),problems:new Map([...this.#e.problems].filter(([e])=>n.has(e))),settled:new Set([...this.#e.settled].filter(e=>n.has(e)))})}for(let n of e)this.#t.has(n)||(this.#t.add(n),this.#i(n,t))}async#i(e,{loader:t,client:n,controls:r}){let i=[],a=[],o=(e,t)=>{if(typeof t!=`string`||!Vne.test(t))throw Error(`A ${e} needs an id of lower-case letters, digits and dashes, and "${String(t)}" is not one.`)},s={name:e,React:x,ui:zne,client:{get:(t,r)=>n.callPlugin(e,`GET`,t,r?{query:r}:{}),post:(t,r)=>n.callPlugin(e,`POST`,t,{body:r}),put:(t,r)=>n.callPlugin(e,`PUT`,t,{body:r}),delete:(t,r)=>n.callPlugin(e,`DELETE`,t,{body:r})},links:{entry:(e,t)=>$.entry(e,t)},register:{control:e=>void(r.has(e.type)||r.register(e)),screen:t=>{o(`screen`,t.id),i.push({...t,plugin:e})},entryPanel:t=>{o(`panel`,t.id),a.push({...t,plugin:e})}}},c=null;try{let n=await t(e);if(typeof n.default!=`function`)throw Error(`Its editor file has no default export to run.`);n.default(s)}catch(e){c=Hne(e)}this.#t.has(e)&&this.#r({...c===null&&{screens:[...this.#e.screens,...i],panels:[...this.#e.panels,...a]},...c!==null&&{problems:new Map([...this.#e.problems,[e,c]])},settled:new Set([...this.#e.settled,e])})}},N5=(0,x.createContext)(null);function Wne({extensions:e,loader:t,children:n}){return(0,S.jsx)(N5,{value:{extensions:e,loader:t},children:n})}function P5(){let e=(0,x.useContext)(N5);if(!e)throw Error(`Plugin extensions were asked for outside <AdminApp>. Render the screen inside it.`);return e}function F5(){let{extensions:e}=P5();return(0,x.useSyncExternalStore)(e.subscribe,e.snapshot,e.snapshot)}function Gne(e){let{extensions:t,loader:n}=P5(),r=z(),i=I6(),a=Wc(e),{settled:o}=F5(),s=a.data?.map(e=>e.name),c=s?.join(`,`);return(0,x.useEffect)(()=>{c!==void 0&&t.follow(c===``?[]:c.split(`,`),{loader:n,client:r,controls:i})},[c,t,n,r,i]),!e||a.isError?!0:s!==void 0&&s.every(e=>o.has(e))}var Kne=`cms-boot`,qne=300,Jne=1e4,I5=1,L5=0,R5=!1,z5=!1,B5;function V5(){if(z5=!0,B5!==void 0&&clearTimeout(B5),typeof document>`u`)return;let e=document.getElementById(Kne);e!==null&&(e.dataset.ending=`true`,setTimeout(()=>e.remove(),qne))}function H5(){if(!(z5||I5>0)){if(L5===0)return V5();B5??=setTimeout(()=>{B5=void 0,I5===0&&V5()},Jne)}}function U5(e){if(z5)return()=>{};e===`frame`?I5+=1:L5+=1;let t=!1;return()=>{t||(t=!0,e===`frame`?--I5:--L5,setTimeout(H5,0))}}function Yne(){return U5(`frame`)}function Xne(){return U5(`screen`)}function Zne(){R5||(R5=!0,--I5,setTimeout(H5,0))}var Qne=[0,1,2,3,4];function W5(){return(0,S.jsx)(MZ,{children:(0,S.jsx)(Y,{gap:5,children:Qne.map(e=>(0,S.jsxs)(zQ,{gap:6,children:[(0,S.jsx)(Z_,{grow:!0,children:(0,S.jsxs)(Y,{gap:2,children:[(0,S.jsx)(F$,{width:e%2==0?`1/3`:`1/4`}),(0,S.jsx)(F$,{width:`xs`})]})}),(0,S.jsx)(F$,{width:`sm`}),(0,S.jsx)(F$,{width:`sm`})]},e))})})}function G5(){return(0,S.jsxs)(Y,{gap:3,children:[(0,S.jsx)(F$,{shape:`title`,width:`1/4`}),(0,S.jsx)(F$,{width:`1/3`})]})}var $ne={table:()=>(0,S.jsx)(W5,{}),page:()=>(0,S.jsx)(Z_,{paddingX:12,paddingY:10,children:(0,S.jsxs)(Y,{gap:6,children:[(0,S.jsx)(G5,{}),(0,S.jsx)(W5,{})]})}),summary:()=>(0,S.jsxs)(Y,{gap:6,children:[(0,S.jsx)(NQ,{columns:3,gap:4,children:[0,1,2].map(e=>(0,S.jsx)(MZ,{children:(0,S.jsxs)(Y,{gap:3,children:[(0,S.jsx)(F$,{width:`1/2`}),(0,S.jsx)(F$,{shape:`title`,width:`1/4`}),(0,S.jsx)(F$,{width:`3/4`})]})},e))}),(0,S.jsx)(W5,{})]}),form:()=>(0,S.jsx)(Z_,{paddingX:12,paddingY:8,children:(0,S.jsxs)(Y,{gap:6,children:[(0,S.jsx)(G5,{}),(0,S.jsx)(MZ,{children:(0,S.jsxs)(Y,{gap:5,children:[[0,1,2].map(e=>(0,S.jsxs)(Y,{gap:2,children:[(0,S.jsx)(F$,{width:`sm`}),(0,S.jsx)(F$,{shape:`control`})]},e)),(0,S.jsxs)(Y,{gap:2,children:[(0,S.jsx)(F$,{width:`sm`}),(0,S.jsx)(F$,{shape:`block`})]})]})})]})})};function K5({label:e,shape:t=`page`}){let n=Q();(0,x.useEffect)(Xne,[]);let r=e??n.app.loading;return t===`spinner`?(0,S.jsx)(Z_,{padding:8,children:(0,S.jsx)(V$,{label:r,showLabel:!0})}):(0,S.jsx)(I$,{label:r,children:$ne[t]()})}function q5({error:e,onRetry:t}){let n=Q();return(0,S.jsx)(l2,{icon:Wv,title:n.app.somethingWentWrong,description:e.message,action:(0,S.jsx)(J,{variant:`secondary`,onPress:t,children:n.app.tryAgain})})}function J5(){let e=Xi();return(0,x.useCallback)((t,n)=>void e(t,{viewTransition:!0,...n}),[e])}function Y5(){let e=Q().contacts.stages;return t=>t===void 0?``:t.label??e[t.id]??t.id}var X5={open:`neutral`,won:`success`,lost:`danger`};function Z5(){let e=new Date,t=e=>String(e).padStart(2,`0`);return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}`}function Q5(){let e=Q(),t=M6(),n=Z5();return r=>r<n?{text:e.contacts.due.overdue,tone:`danger`}:r===n?{text:e.contacts.due.today,tone:`warning`}:{text:$5(r,t),tone:`neutral`}}function $5(e,t){let n=new Date(`${e}T00:00:00`);return Number.isNaN(n.getTime())?e:new Intl.DateTimeFormat(t,{day:`numeric`,month:`short`,year:`numeric`}).format(n)}function e7(e){let t=Q();return n=>n===void 0?``:e?.find(e=>e.id===n)?.name??(e===void 0?``:t.contacts.someoneWhoLeft)}function t7(e){let t=M6();return n=>{try{return new Intl.NumberFormat(t,{style:`currency`,currency:e??`USD`,maximumFractionDigits:0}).format(n)}catch{return`${new Intl.NumberFormat(t).format(n)} ${e??``}`.trim()}}}var ere=new Map;function n7(e,t){let n=dc(),[r,i]=(0,x.useState)({}),[a,o]=(0,x.useState)(ere);return{fields:m_(n.data?.[e]??[]),values:{...t,...r},problems:a,change:(e,t)=>i(n=>({...n,[e]:t})),toSend:()=>Object.keys(r).length===0?{}:{data:Object.fromEntries(Object.entries(r).map(([e,t])=>[e,t??null]))},refused:e=>{let t=e instanceof Mo?e.issues.filter(e=>e.path[0]===`data`):[];o(new Map(t.map(e=>[e.path.slice(1).join(`.`),e.message])))}}}function r7({custom:e}){return(0,S.jsx)(S.Fragment,{children:e.fields.map(t=>(0,S.jsx)(Y6,{field:t,value:e.values[t.id],onChange:n=>e.change(t.id,n),path:t.key,problems:e.problems},t.id))})}function i7(e,t,n){let r=URL.createObjectURL(new Blob([t],{type:n})),i=document.createElement(`a`);i.href=r,i.download=e,i.click(),URL.revokeObjectURL(r)}var tre=[[`year`,31536e6],[`month`,2592e6],[`day`,864e5],[`hour`,36e5],[`minute`,6e4]];function a7(e,t,n=new Date){let r=new Intl.RelativeTimeFormat(t,{numeric:`auto`}),i=new Date(e).getTime()-n.getTime();for(let[e,t]of tre)if(Math.abs(i)>=t)return r.format(Math.round(i/t),e);return r.format(0,`second`)}function o7(e){let t=Q(),n=M6();return r=>{if(!r.source)return t.contacts.addedByHand;let i=e?.find(e=>e.id===r.source?.formId);if(!i)return e===void 0?``:t.contacts.aFormNowGone;let a=o6(i.label,n);return r.source.page===void 0?t.contacts.fromForm(a):t.contacts.fromFormOn(a,r.source.page)}}function s7(e,t){return e==null?``:e===!0?t:typeof e==`string`?e:typeof e==`number`?String(e):JSON.stringify(e)}var nre=200,c7=`:nothing`;function l7(){let e=M6(),t=Fo(),n=(t.data??[]).filter(e=>d_(e)&&e.forDeals===!0),r=es(n.map(e=>({type:e.key,limit:nre}))),i=new Map;return n.forEach((t,n)=>{i.set(t.id,_6(r[n]?.data?.items??[],e).map(({primary:e})=>({id:e.translationGroup,label:c6(t,e.data)??e.slug})).sort((t,n)=>t.label.localeCompare(n.label,e)))}),{types:n,entriesOf:e=>i.get(e)??[],nameOf:e=>e===void 0?void 0:i.get(e.typeId)?.find(t=>t.id===e.entry)?.label,isLoaded:t.isSuccess&&r.every(e=>e.isSuccess)}}function rre({subjects:e,about:t,onChange:n,problem:r}){let i=Q(),a=M6(),[o,s]=(0,x.useState)(t?.typeId??c7),c=t?.typeId??o;if(e.types.length===0&&t===void 0)return null;let l=[{id:c7,label:i.deals.aboutNothing},...e.types.map(e=>({id:e.id,label:o6(e.label,a)}))],u=e.types.find(e=>e.id===c),d=c===c7?[]:e.entriesOf(c),f=l.some(e=>e.id===c),p=t===void 0||d.some(e=>e.id===t.entry),m=e.isLoaded?i.deals.aboutGone:i.deals.aboutLoading;return(0,S.jsxs)(NQ,{columns:2,gap:3,children:[(0,S.jsx)(j$,{label:i.deals.about,options:f?l:[...l,{id:c,label:m}],value:c,onChange:e=>{e!==c&&(s(e),n(void 0))},...c===c7&&r!==void 0&&{errorMessage:r}}),c!==c7&&(0,S.jsx)(j$,{label:u?i.deals.aboutWhich(o6(u.label,a)):i.deals.aboutWhichOne,options:p||t===void 0?d:[{id:t.entry,label:m},...d],placeholder:i.editor.choose,onChange:e=>n({typeId:c,entry:e},d.find(t=>t.id===e)?.label),...t!==void 0&&{value:t.entry},...r!==void 0&&{errorMessage:r}})]})}var u7=`nobody`,d7={},f7=e=>e instanceof Error?e.message:String(e);function p7({deal:e,contact:t,pipeline:n,team:r,onClose:i}){let{close:a,dialog:o}=L6(i),s=Q(),c=Y5(),l=Ys(),u=Xs(),d=Zs(),[f,p]=(0,x.useState)(e?.title??``),[m,h]=(0,x.useState)(e?.about),g=l7(),[_,v]=(0,x.useState)(e?.value??null),[y,b]=(0,x.useState)(e?.stage??n.stages[0]?.id??``),[C,w]=(0,x.useState)(e?e.ownerId??u7:t.ownerId??u7),[T,E]=(0,x.useState)(e?.closeOn??null),[D,O]=(0,x.useState)(d7),k=n7(`deal`,e?.data),A=n.currency??`USD`,j=e=>{e instanceof Mo&&O(Object.fromEntries(e.issues.map(e=>[String(e.path[0]),e.message]))),k.refused(e),Z({title:s.deals.notSaved,description:f7(e),tone:`danger`})},M=()=>{if(f.trim()===``)return O({title:s.deals.nameNeeded});O(d7);let n=_??0;e?u.mutate({id:e.id,changes:{title:f,about:m??null,value:n,stage:y,ownerId:C===u7?null:C,closeOn:T,...k.toSend(),expectedRevision:e.revision}},{onSuccess:e=>{Z({title:s.deals.saved(e.title),tone:`success`}),a()},onError:j}):l.mutate({contactId:t.id,title:f,...m&&{about:m},value:n,stage:y,...C!==u7&&{ownerId:C},...T!==null&&{closeOn:T},...k.toSend()},{onSuccess:e=>{Z({title:s.deals.created(e.title),tone:`success`}),a()},onError:j})},N=e?s.deals.editTitle(e.title):s.deals.addTitle,P=[{id:u7,label:s.contacts.nobody},...r.map(e=>({id:e.id,label:e.name})),...C!==u7&&!r.some(e=>e.id===C)?[{id:C,label:s.contacts.someoneWhoLeft}]:[]];return(0,S.jsx)(CQ,{...o,title:N,closeLabel:s.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[e&&(0,S.jsx)(J,{variant:`ghost`,icon:jx,isPending:d.isPending,onPress:()=>d.mutate(e.id,{onSuccess:()=>{Z({title:s.deals.deleted(e.title),tone:`success`}),a()},onError:e=>Z({title:s.deals.notDeleted,description:f7(e),tone:`danger`})}),children:s.deals.delete}),(0,S.jsx)(J,{variant:`secondary`,onPress:a,children:s.editor.cancel}),(0,S.jsx)(J,{isPending:l.isPending||u.isPending,onPress:M,children:e?s.deals.save:s.deals.create})]}),children:(0,S.jsxs)(jQ,{label:N,gap:4,onSubmit:M,children:[(0,S.jsx)(x1,{label:s.deals.name,placeholder:s.deals.namePlaceholder,value:f,onChange:p,isRequired:!0,autoFocus:!0,autoComplete:`off`,...D.title!==void 0&&{errorMessage:D.title}}),(0,S.jsx)(rre,{subjects:g,about:m,problem:D.about,onChange:(e,t)=>{h(e),t!==void 0&&f.trim()===``&&p(t)}}),(0,S.jsxs)(NQ,{columns:2,gap:3,children:[(0,S.jsx)(u$,{label:s.deals.value(A),value:_,onChange:v,minValue:0,isInteger:!0,...D.value!==void 0&&{errorMessage:D.value}}),(0,S.jsx)(j$,{label:s.deals.stage,options:n.stages.map(e=>({id:e.id,label:c(e)})),value:y,onChange:b,...D.stage!==void 0&&{errorMessage:D.stage}}),(0,S.jsx)(j$,{label:s.deals.owner,options:P,value:C,onChange:w,...D.ownerId!==void 0&&{errorMessage:D.ownerId}}),(0,S.jsx)(dQ,{label:s.deals.closeOn,value:T,onChange:E,...D.closeOn!==void 0&&{errorMessage:D.closeOn}})]}),(0,S.jsx)(r7,{custom:k})]})})}function ire({contact:e}){let t=Q(),n=M6(),r=Ws({contactId:e.id,limit:200}),i=lc(),a=pc(),o=Y5(),s=t7(i.data?.currency),[c,l]=(0,x.useState)(null),u=[{id:`title`,label:t.deals.columnTitle},{id:`stage`,label:t.deals.columnStage},{id:`close`,label:t.deals.columnClose,isSecondary:!0},{id:`value`,label:t.deals.columnValue,align:`end`}],d=(r.data?.items??[]).map(e=>{let t=i.data?.stages.find(t=>t.id===e.stage);return{id:e.id,cells:{title:(0,S.jsx)(X,{weight:`semibold`,children:e.title}),stage:t?(0,S.jsx)(_1,{tone:X5[t.kind],children:o(t)}):``,close:(0,S.jsx)(X,{tone:`secondary`,children:e.closeOn===void 0?``:$5(e.closeOn,n)}),value:(0,S.jsx)(X,{weight:`semibold`,children:s(e.value)})}}});return(0,S.jsxs)(MZ,{title:t.deals.cardTitle,children:[(0,S.jsxs)(Y,{gap:4,children:[r.isPending&&(0,S.jsx)(K5,{shape:`table`}),r.isError&&(0,S.jsx)(q5,{error:r.error,onRetry:()=>void r.refetch()}),r.isSuccess&&d.length===0&&(0,S.jsx)(X,{tone:`muted`,children:t.deals.cardEmpty}),r.isSuccess&&d.length>0&&(0,S.jsx)(u1,{label:t.deals.cardTitle,columns:u,rows:d,onRowAction:e=>l(r.data.items.find(t=>t.id===e)??null)}),(0,S.jsx)(zQ,{children:(0,S.jsx)(J,{variant:`secondary`,size:`sm`,icon:Gb,isDisabled:!i.isSuccess,onPress:()=>l(`new`),children:t.deals.add})})]}),c!==null&&i.data&&(0,S.jsx)(p7,{...c!==`new`&&{deal:c},contact:e,pipeline:i.data,team:a.data??[],onClose:()=>l(null)})]})}var m7=`nobody`,are=`2000-01-01`,ore=e=>e instanceof Error?e.message:String(e);function sre({contact:e}){let t=Q(),n=M6(),r=lc(),i=pc(),a=bc(),o=Y5(),[s,c]=(0,x.useState)(e.followUpAt??null),l=(n,r)=>a.mutate({id:e.id,changes:{...n,expectedRevision:e.revision}},{onSuccess:()=>Z({title:r,tone:`success`}),onError:e=>Z({title:t.contacts.notChanged,description:ore(e),tone:`danger`})}),u=r.data?.stages??[],d=i.data??[],f=[{id:m7,label:t.contacts.nobody},...d.map(e=>({id:e.id,label:e.name})),...e.ownerId!==void 0&&i.isSuccess&&!d.some(t=>t.id===e.ownerId)?[{id:e.ownerId,label:t.contacts.someoneWhoLeft}]:[]];return(0,S.jsx)(MZ,{title:t.contacts.work,children:(0,S.jsxs)(Y,{gap:4,children:[(0,S.jsx)(j$,{label:t.contacts.stage,options:u.map(e=>({id:e.id,label:o(e)})),value:e.stage,isDisabled:a.isPending||!r.isSuccess,onChange:n=>n!==e.stage&&l({stage:n},t.contacts.stageSaved(o(u.find(e=>e.id===n))))}),(0,S.jsx)(j$,{label:t.contacts.owner,options:f,value:e.ownerId??m7,isDisabled:a.isPending||!i.isSuccess,onChange:n=>{n!==(e.ownerId??m7)&&(n===m7?l({ownerId:null},t.contacts.ownerCleared):l({ownerId:n},t.contacts.ownerSaved(d.find(e=>e.id===n)?.name??``)))}}),(0,S.jsx)(dQ,{label:t.contacts.followUp,description:t.contacts.followUpHelp,value:s,isDisabled:a.isPending,onChange:r=>{c(r),r!==(e.followUpAt??null)&&(r===null?l({followUpAt:null},t.contacts.followUpCleared):r>=are&&l({followUpAt:r},t.contacts.followUpSaved($5(r,n))))}})]})})}var h7={},cre={},g7=e=>e instanceof Error?e.message:String(e);function lre(){let{contactId:e=``}=ea(),t=Q(),n=Po();return n.data===null||n.data===void 0||n.data.role===`author`?(0,S.jsx)(l2,{icon:Qv,title:t.contacts.title,description:t.contacts.noAccess}):(0,S.jsx)(ure,{id:e},e)}function ure({id:e}){let t=Q(),n=mc(e);return n.isPending?(0,S.jsx)(K5,{}):n.isError?n.error instanceof Mo&&n.error.code===`not_found`?(0,S.jsx)(l2,{icon:Qv,title:t.contacts.notFoundTitle,description:t.contacts.notFoundDescription,action:(0,S.jsx)(VQ,{href:$.contacts,children:t.contacts.backToContacts})}):(0,S.jsx)(q5,{error:n.error,onRetry:()=>void n.refetch()}):(0,S.jsx)(dre,{contact:n.data})}function dre({contact:e}){let t=Q(),n=M6(),r=J5(),i=o7(Ss().data),a=wc(),o=xc(),[s,c]=(0,x.useState)(!1),[l,u]=(0,x.useState)(!1),d=e.name??e.email,f=dc(),p=e.data??cre,m=[[t.contacts.email,e.email],[t.contacts.phone,e.phone??t.contacts.notGiven],...m_(f.data?.contact??[]).map(e=>[o6(e.label,n),s7(p[e.id],t.forms.yes)||t.contacts.notGiven]),[t.contacts.firstCameFrom,i(e)],[t.contacts.added,a7(e.createdAt,n)]];return(0,S.jsxs)(Z_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(Y,{gap:6,children:[(0,S.jsxs)(Y,{gap:2,children:[(0,S.jsx)(VQ,{href:$.contacts,children:t.contacts.backToContacts}),(0,S.jsx)(m2,{title:d,...e.name!==void 0&&{description:e.email},secondary:{moreLabel:t.app.moreActions,actions:[{id:`erase`,label:t.contacts.erase,icon:Vx,variant:`ghost`,tone:`danger`,onPress:()=>u(!0)},{id:`export`,label:t.contacts.export,icon:ny,isPending:a.isPending,onPress:()=>a.mutate(e.id,{onSuccess:n=>{i7(`contact-${e.email}.json`,n,`application/json;charset=utf-8`),Z({title:t.contacts.exported,description:t.contacts.exportedDescription,tone:`success`})},onError:e=>Z({title:t.contacts.notExported,description:g7(e),tone:`danger`})})}]},actions:(0,S.jsx)(J,{icon:Lb,collapses:!0,onPress:()=>c(!0),children:t.contacts.edit})})]}),(0,S.jsx)(Q2,{asideLabel:t.contacts.detailsLabel,aside:(0,S.jsxs)(Y,{gap:4,children:[(0,S.jsx)(sre,{contact:e}),(0,S.jsx)(MZ,{title:t.contacts.details,children:(0,S.jsx)(Y,{gap:4,children:m.map(([e,t])=>(0,S.jsxs)(Y,{gap:0,children:[(0,S.jsx)(X,{size:`sm`,weight:`semibold`,tone:`secondary`,children:e}),(0,S.jsx)(X,{children:t})]},e))})})]}),children:(0,S.jsxs)(Y,{gap:6,children:[(0,S.jsx)(ire,{contact:e}),(0,S.jsx)(fre,{contact:e})]})})]}),s&&(0,S.jsx)(pre,{contact:e,onClose:()=>c(!1)}),(0,S.jsx)(o2,{isOpen:l,onOpenChange:u,title:t.contacts.eraseTitle(d),confirmLabel:t.contacts.eraseConfirm,cancelLabel:t.editor.cancel,tone:`danger`,isPending:o.isPending,onConfirm:()=>o.mutate(e.id,{onSuccess:e=>{Z({title:t.contacts.erased(d,e),tone:`success`}),r($.contacts)},onError:e=>{Z({title:t.contacts.notErased,description:g7(e),tone:`danger`}),u(!1)}}),children:t.contacts.eraseDescription})]})}function fre({contact:e}){let t=Q(),n=M6(),r=hc(e.id),i=Sc(),a=Cc(),[o,s]=(0,x.useState)(``),[c,l]=(0,x.useState)(null),u=lc(),d=pc(),f=Y5(),p=e=>f((u.data?.stages??[]).find(t=>t.id===e))||t.contacts.stageGone,m=()=>{l(null),i.mutate({id:e.id,text:o},{onSuccess:()=>{s(``),Z({title:t.contacts.noteAdded,tone:`success`})},onError:e=>{e instanceof Mo&&e.code===`validation_failed`&&l(e.issues[0]?.message??e.message),Z({title:t.contacts.noteNotAdded,description:g7(e),tone:`danger`})}})},h=e=>e.split(`
75
+ `).map((e,t)=>(0,S.jsx)(X,{children:e},t)),g=r=>r.kind===`stage`?(0,S.jsxs)(Y,{gap:1,children:[(0,S.jsxs)(zQ,{gap:2,children:[(0,S.jsx)(_1,{children:t.contacts.movedLabel}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:a7(r.at,n)})]}),(0,S.jsx)(X,{children:t.contacts.movedFromTo(p(r.from),p(r.to),(d.data??[]).find(e=>e.id===r.by)?.name)})]},r.id):r.kind===`note`?(0,S.jsxs)(Y,{gap:2,children:[(0,S.jsxs)(zQ,{gap:2,justify:`between`,children:[(0,S.jsxs)(zQ,{gap:2,children:[(0,S.jsx)(_1,{children:t.contacts.noteLabel}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:a7(r.at,n)})]}),(0,S.jsx)(J,{variant:`ghost`,size:`sm`,isPending:a.isPending&&a.variables.noteId===r.note.id,onPress:()=>a.mutate({id:e.id,noteId:r.note.id},{onSuccess:()=>Z({title:t.contacts.noteDeleted,tone:`success`}),onError:e=>Z({title:t.contacts.noteNotDeleted,description:g7(e),tone:`danger`})}),children:t.contacts.deleteNote})]}),(0,S.jsx)(Y,{gap:0,children:h(r.note.text)})]},r.note.id):(0,S.jsxs)(Y,{gap:3,children:[(0,S.jsxs)(Y,{gap:0,children:[(0,S.jsxs)(zQ,{gap:2,children:[(0,S.jsx)(_1,{tone:`info`,children:r.formLabel?t.contacts.sent(o6(r.formLabel,n)):t.contacts.sentUnknown}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:a7(r.at,n)})]}),r.submission.page!==void 0&&(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:t.contacts.fromPage(r.submission.page)})]}),r.answers.map(e=>(0,S.jsxs)(Y,{gap:0,children:[(0,S.jsx)(X,{size:`sm`,weight:`semibold`,tone:`secondary`,children:o6(e.label,n)}),h(s7(e.value,t.forms.yes))]},e.key))]},r.submission.id);return(0,S.jsxs)(Y,{gap:6,children:[(0,S.jsx)(MZ,{title:t.contacts.note,children:(0,S.jsxs)(jQ,{label:t.contacts.note,gap:3,onSubmit:m,children:[(0,S.jsx)(w1,{label:t.contacts.note,isLabelHidden:!0,description:t.contacts.noteHelp,placeholder:t.contacts.notePlaceholder,value:o,onChange:s,...c!==null&&{errorMessage:c}}),(0,S.jsx)(zQ,{justify:`end`,children:(0,S.jsx)(J,{variant:`secondary`,isPending:i.isPending,isDisabled:o.trim()===``,onPress:m,children:t.contacts.addNote})})]})}),(0,S.jsxs)(MZ,{title:t.contacts.timeline,description:t.contacts.timelineHelp,children:[r.isPending&&(0,S.jsx)(K5,{shape:`summary`}),r.isError&&(0,S.jsx)(q5,{error:r.error,onRetry:()=>void r.refetch()}),r.isSuccess&&r.data.length===0&&(0,S.jsx)(X,{tone:`muted`,children:t.contacts.timelineEmpty}),r.isSuccess&&r.data.length>0&&(0,S.jsx)(Y,{gap:6,children:r.data.map(g)})]})]})}function pre({contact:e,onClose:t}){let{close:n,dialog:r}=L6(t),i=Q(),a=bc(),[o,s]=(0,x.useState)(e.name??``),[c,l]=(0,x.useState)(e.email),[u,d]=(0,x.useState)(e.phone??``),[f,p]=(0,x.useState)(h7),m=n7(`contact`,e.data),h=()=>{if(c.trim()===``)return p({email:i.contacts.emailNeeded});p(h7),a.mutate({id:e.id,changes:{email:c,name:o.trim()===``?null:o,phone:u.trim()===``?null:u,...m.toSend(),expectedRevision:e.revision}},{onSuccess:e=>{Z({title:i.contacts.saved(e.name??e.email),tone:`success`}),n()},onError:e=>{e instanceof Mo&&p(Object.fromEntries(e.issues.map(e=>[String(e.path[0]),e.message]))),m.refused(e),Z({title:i.contacts.notSaved,description:g7(e),tone:`danger`})}})};return(0,S.jsx)(CQ,{...r,title:i.contacts.editTitle(e.name??e.email),closeLabel:i.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(J,{variant:`secondary`,onPress:n,children:i.editor.cancel}),(0,S.jsx)(J,{isPending:a.isPending,onPress:h,children:i.contacts.save})]}),children:(0,S.jsxs)(jQ,{label:i.contacts.editTitle(e.name??e.email),gap:4,onSubmit:h,children:[(0,S.jsx)(x1,{label:i.contacts.name,value:o,onChange:s,autoFocus:!0,autoComplete:`off`,...f.name!==void 0&&{errorMessage:f.name}}),(0,S.jsx)(x1,{label:i.contacts.email,type:`email`,value:c,onChange:l,isRequired:!0,autoComplete:`off`,...f.email!==void 0&&{errorMessage:f.email}}),(0,S.jsx)(x1,{label:i.contacts.phone,type:`tel`,value:u,onChange:d,autoComplete:`off`,...f.phone!==void 0&&{errorMessage:f.phone}}),(0,S.jsx)(r7,{custom:m})]})})}var _7=e=>typeof e==`number`?e:null,v7=(e,t,n)=>{let{[t]:r,...i}=e;return n==null?i:{...i,[t]:n}};function mre({options:e,onChange:t}){let n=Q();return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(FZ,{label:n.builder.textMultiline,isSelected:e.multiline===!0,onChange:n=>t(v7(e,`multiline`,n))}),(0,S.jsx)(u$,{label:n.builder.textMaxLength,description:n.builder.textMaxLengthHelp,value:_7(e.maxLength),minValue:1,isInteger:!0,onChange:n=>t(v7(e,`maxLength`,n))})]})}function hre({options:e,onChange:t}){let n=Q(),r=Array.isArray(e.formats)?e.formats:E_,i=(n,i)=>{let a=E_.filter(e=>e===n?i:r.includes(e));t(v7(e,`formats`,a.length===E_.length?void 0:a))};return(0,S.jsx)(DQ,{legend:n.builder.richTextFormats,description:n.builder.richTextFormatsHelp,children:E_.map(e=>(0,S.jsx)(FZ,{label:n.builder.richTextFormat[e],isSelected:r.includes(e),onChange:t=>i(e,t)},e))})}function gre({options:e,onChange:t}){let n=Q();return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(u$,{label:n.builder.numberMin,value:_7(e.min),onChange:n=>t(v7(e,`min`,n))}),(0,S.jsx)(u$,{label:n.builder.numberMax,value:_7(e.max),onChange:n=>t(v7(e,`max`,n))}),(0,S.jsx)(FZ,{label:n.builder.numberInteger,isSelected:e.integer===!0,onChange:n=>t(v7(e,`integer`,n))})]})}var _re=e=>[...new Set(e.split(`
76
+ `).map(e=>e.trim()).filter(Boolean))];function y7({options:e,onChange:t,problem:n}){let r=Q(),[i,a]=(0,x.useState)(()=>(e.choices??[]).join(`
77
+ `));return(0,S.jsx)(w1,{label:r.builder.choices,description:r.builder.choicesHelp,rows:5,isRequired:!0,value:i,onChange:n=>{a(n),t({...e,choices:_re(n)})},...n!==void 0&&{errorMessage:n}})}function vre({options:e,onChange:t,problem:n}){let r=Q(),i=M6(),a=Fo();return(0,S.jsx)(j$,{label:r.builder.referenceTo,isRequired:!0,options:(a.data??[]).map(e=>({id:e.key,label:o6(e.label,i)})),...typeof e.to==`string`&&e.to!==``&&{value:e.to},onChange:n=>t({...e,to:n}),...n!==void 0&&{errorMessage:n}})}function yre({options:e,onChange:t,isExisting:n,problem:r}){let i=Q(),a=e.of,o=b7.list().filter(e=>e.canBeListed===!0||e.type===a?.type);return(0,S.jsx)(j$,{label:i.builder.listOf,description:i.builder.listOfHelp,isRequired:!0,isDisabled:n,options:o.map(e=>({id:e.type,label:i.builder.kinds[e.type]?.name??e.type})),...a?.type!==void 0&&{value:a.type},onChange:n=>t({...e,of:{type:n,options:b7.get(n).initial}}),...r!==void 0&&{errorMessage:r}})}var b7=new g_(`field settings`).register({type:`text`,initial:{},Component:mre,canBeListed:!0}).register({type:`richtext`,initial:{},Component:hre,canBeListed:!0}).register({type:`number`,initial:{},Component:gre,canBeListed:!0}).register({type:`boolean`,initial:{}}).register({type:`date`,initial:{},canBeListed:!0}).register({type:`url`,initial:{},canBeListed:!0}).register({type:`email`,initial:{},canBeListed:!0}).register({type:`phone`,initial:{},canBeListed:!0}).register({type:`select`,initial:{choices:[]},Component:y7,problem:(e,t)=>(e.choices??[]).length===0?t.builder.choicesNeeded:void 0}).register({type:`color`,initial:{}}).register({type:`font`,initial:{choices:[]},Component:y7,problem:(e,t)=>(e.choices??[]).length===0?t.builder.choicesNeeded:void 0}).register({type:`image`,initial:{},canBeListed:!0}).register({type:`reference`,initial:{},Component:vre,problem:(e,t)=>typeof e.to==`string`&&e.to!==``?void 0:t.builder.referenceNeeded}).register({type:`link`,initial:{},canBeListed:!0}).register({type:`form`,initial:{}}).register({type:`group`,initial:{fields:[]},canBeListed:!0,inner:e=>Array.isArray(e.fields)?e.fields:[]}).register({type:`list`,initial:{},Component:yre,inner:e=>{let t=e.of;return t?.type!==void 0&&b7.has(t.type)?b7.get(t.type).inner?.(t.options??{})??null:null},problem:(e,t)=>typeof e.of?.type==`string`?void 0:t.builder.listOfNeeded});function x7(e){return b7.has(e.type)?b7.get(e.type).inner?.(e.options)??null:null}function S7(e){return e.normalize(`NFKD`).replace(/[̀-ͯ]/g,``).toLowerCase().split(/[^a-z0-9]+/).filter(Boolean)}var C7=e=>{let[t=``,...n]=e,r=t.replace(/^[0-9]+/,``);return r===``?n.length>0?C7(n):[]:[r,...n]};function w7(e){return C7(S7(e)).map((e,t)=>t===0?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`).join(``)}function T7(e){return C7(S7(e)).join(`-`)}function E7(e){return{id:e.id,key:e.key,type:e.type,label:e.label,...e.help!==void 0&&{help:e.help},required:e.required,options:e.options}}function bre(e,t,n){let r=e.findIndex(e=>e.id===t),i=r+n;if(r<0||i<0||i>=e.length)return[...e];let a=[...e],[o]=a.splice(r,1);return o&&a.splice(i,0,o),a}var D7={},O7=e=>e instanceof Error?e.message:String(e);function k7({set:e,field:t,onClose:n}){let{close:r,dialog:i}=L6(n),a=Q(),o=M6(),s=o.split(`-`)[0]??o,c=ts(),[l,u]=(0,x.useState)(t?.type??`text`),[d,f]=(0,x.useState)(t?o6(t.label,o):``),[p,m]=(0,x.useState)(t?.key??null),[h,g]=(0,x.useState)(t?.help?o6(t.help,o):``),[_,v]=(0,x.useState)(t?.required??!1),[y,b]=(0,x.useState)(t?.options??b7.get(`text`).initial),[C,w]=(0,x.useState)(D7),T=p??w7(d),E=b7.has(l)?b7.get(l):null,D=e=>a.builder.kinds[e]?.name??e,O=(c.data??[]).filter(e=>e.takesSubmissions&&b7.has(e.type)).map(e=>({id:e.type,label:D(e.type)})),k=()=>{let n={...d.trim()===``&&{label:a.forms.fieldNameNeeded},...T===``&&{key:a.forms.fieldKeyNeeded},...E?.problem?.(y,a)!==void 0&&{options:E.problem(y,a)}};if(w(n),Object.keys(n).length>0)return;let i=h.trim(),{help:o,...c}=t?E7(t):{key:T,type:l,label:{}},u={...c,key:T,label:{...t?.label,[s]:d.trim()},...i!==``&&{help:{...t?.help,[s]:i}},required:e.canRequire&&_,options:y},f=e.fields.map(E7);e.save(t?f.map(e=>e.id===t.id?u:e):[...f,u],{onSuccess:()=>{Z({title:t?a.forms.fieldSaved(d.trim()):a.forms.fieldAdded(d.trim()),tone:`success`}),r()},onError:e=>{w({[e instanceof Mo&&e.code===`conflict`?`key`:`options`]:O7(e)}),Z({title:a.forms.fieldNotSaved,description:O7(e),tone:`danger`})}})},A=t?a.forms.editFieldTitle(o6(t.label,o)):a.forms.addFieldTitle;return(0,S.jsx)(CQ,{...i,placement:`side`,title:A,closeLabel:a.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(J,{variant:`secondary`,onPress:r,children:a.editor.cancel}),(0,S.jsx)(J,{isPending:e.isPending,onPress:k,children:t?a.forms.fieldSave:a.forms.fieldAdd})]}),children:(0,S.jsxs)(jQ,{label:A,gap:4,onSubmit:k,children:[t?(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:a.forms.fieldKindIs(D(l))}):(0,S.jsx)(j$,{label:a.forms.fieldKind,options:O,value:l,description:a.builder.kinds[l]?.description??``,onChange:e=>{u(e),b(b7.get(e).initial),w(D7)}}),(0,S.jsx)(x1,{label:a.forms.fieldName,description:e.words.nameHelp,value:d,onChange:f,isRequired:!0,autoFocus:!0,autoComplete:`off`,...C.label!==void 0&&{errorMessage:C.label}}),(0,S.jsx)(x1,{label:a.forms.fieldKey,description:a.forms.fieldKeyHelp,value:T,onChange:m,isRequired:!0,autoComplete:`off`,...C.key!==void 0&&{errorMessage:C.key}}),(0,S.jsx)(x1,{label:a.forms.fieldHelp,description:a.forms.fieldHelpHelp,value:h,onChange:g,autoComplete:`off`}),E?.Component&&(0,S.jsx)(E.Component,{options:y,onChange:b,isExisting:t!==void 0,problem:C.options}),!E?.Component&&C.options!==void 0&&(0,S.jsx)(X,{tone:`danger`,children:C.options}),e.canRequire&&(0,S.jsx)(FZ,{label:a.forms.fieldRequired,isSelected:_,onChange:v})]})})}var A7=e=>e instanceof Error?e.message:String(e);function j7({set:e,mayChange:t}){let n=Q(),r=M6(),[i,a]=(0,x.useState)(!1),[o,s]=(0,x.useState)(null),[c,l]=(0,x.useState)(null),u=R6(c),{fields:d}=e,f=d.map(E7),p=e=>o6(e.label,r),m=(t,r)=>e.save(bre(f,t.id,r),{onError:e=>Z({title:n.forms.notMoved,description:A7(e),tone:`danger`})}),h=[{id:`field`,label:n.forms.columnField},{id:`kind`,label:n.forms.columnKind},{id:`rules`,label:n.forms.columnRules,isSecondary:!0},...t?[{id:`actions`,label:n.forms.columnActions,align:`end`}]:[]],g=d.map((t,r)=>({id:t.id,cells:{field:(0,S.jsxs)(Y,{gap:0,children:[(0,S.jsx)(X,{weight:`semibold`,children:p(t)}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:t.key})]}),kind:(0,S.jsx)(_1,{children:n.builder.kinds[t.type]?.name??t.type}),rules:(0,S.jsxs)(zQ,{gap:2,children:[t.required&&(0,S.jsx)(_1,{tone:`info`,children:n.forms.required}),e.tagsOf?.(t)]}),actions:(0,S.jsxs)(zQ,{gap:1,justify:`end`,children:[(0,S.jsx)(gQ,{size:`sm`,label:n.forms.moveUp(p(t)),icon:bv,isDisabled:r===0||e.isPending,onPress:()=>m(t,-1)}),(0,S.jsx)(gQ,{size:`sm`,label:n.forms.moveDown(p(t)),icon:mv,isDisabled:r===d.length-1||e.isPending,onPress:()=>m(t,1)}),(0,S.jsx)(gQ,{size:`sm`,label:n.forms.edit(p(t)),icon:Lb,onPress:()=>s(t)}),(0,S.jsx)(gQ,{size:`sm`,label:n.forms.remove(p(t)),icon:jx,onPress:()=>l(t)})]})}})),_=(0,S.jsx)(J,{icon:Gb,onPress:()=>a(!0),children:n.forms.addField});return(0,S.jsxs)(Y,{gap:4,children:[d.length===0&&(0,S.jsx)(l2,{icon:tb,title:n.forms.noFieldsTitle,description:e.words.emptyDescription,...t&&{action:_}}),d.length>0&&(0,S.jsxs)(S.Fragment,{children:[t&&(0,S.jsx)(zQ,{justify:`end`,children:_}),(0,S.jsx)(u1,{label:n.forms.fieldsOf(e.name),columns:h,rows:g})]}),i&&(0,S.jsx)(k7,{set:e,onClose:()=>a(!1)}),o&&(0,S.jsx)(k7,{set:e,field:o,onClose:()=>s(null)}),(0,S.jsx)(o2,{isOpen:c!==null,onOpenChange:e=>!e&&l(null),title:n.forms.removeTitle(u?p(u):``),confirmLabel:n.forms.removeConfirm,cancelLabel:n.editor.cancel,tone:`danger`,isPending:e.isPending,onConfirm:()=>{c&&e.save(f.filter(e=>e.id!==c.id),{onSuccess:()=>Z({title:n.forms.removed(p(c)),tone:`success`}),onError:e=>Z({title:n.forms.notRemoved,description:A7(e),tone:`danger`}),onSettled:()=>l(null)})},children:e.words.removeDescription})]})}function M7({of:e,onClose:t}){let{close:n,dialog:r}=L6(t),i=Q(),a=dc(),o=fc(),s=i.customFields[e],c=a.data?{name:s.name,fields:m_(a.data[e]),isPending:o.isPending,save:(t,n)=>o.mutate({[e]:t,expectedRevision:a.data.revision},n),canRequire:!1,words:{emptyDescription:s.emptyDescription,nameHelp:i.customFields.nameHelp,removeDescription:i.customFields.removeDescription}}:null;return(0,S.jsx)(CQ,{...r,title:s.title,closeLabel:i.app.dismiss,size:`lg`,footer:(0,S.jsx)(J,{variant:`secondary`,onPress:n,children:i.customFields.close}),children:(0,S.jsxs)(Y,{gap:4,children:[(0,S.jsx)(X,{tone:`secondary`,children:s.help}),a.isPending&&(0,S.jsx)(K5,{shape:`table`}),a.isError&&(0,S.jsx)(q5,{error:a.error,onRetry:()=>void a.refetch()}),c&&(0,S.jsx)(j7,{set:c,mayChange:!0})]})})}var xre=50,Sre=e=>e instanceof Error?e.message:String(e);function Cre(){let e=Q(),t=Po(),n=lc(),[r,i]=(0,x.useState)(!1);return t.data===null||t.data===void 0||t.data.role===`author`?(0,S.jsx)(l2,{icon:Sy,title:e.deals.title,description:e.deals.noAccess}):(0,S.jsxs)(Z_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(Y,{gap:6,children:[(0,S.jsx)(m2,{title:e.deals.title,description:e.deals.description,secondary:{moreLabel:e.app.moreActions,actions:[{id:`fields`,label:e.customFields.button,icon:tb,onPress:()=>i(!0)}]}}),n.isPending&&(0,S.jsx)(K5,{shape:`summary`}),n.isError&&(0,S.jsx)(q5,{error:n.error,onRetry:()=>void n.refetch()}),n.isSuccess&&(0,S.jsx)(wre,{pipeline:n.data})]}),r&&(0,S.jsx)(M7,{of:`deal`,onClose:()=>i(!1)})]})}function wre({pipeline:e}){let t=Q(),n=M6(),r=Y5(),i=t7(e.currency),a=qs(),o=pc(),s=Bs({limit:200}),c=Gs(e.stages.map(e=>({stage:e.id,limit:xre}))),l=l7(),u=Xs(),[d,f]=(0,x.useState)(null),p=c.find(e=>e.isError);if(p)return(0,S.jsx)(q5,{error:p.error,onRetry:()=>void p.refetch()});if(a.isError)return(0,S.jsx)(q5,{error:a.error,onRetry:()=>void a.refetch()});if(a.isPending||c.some(e=>e.isPending))return(0,S.jsx)(K5,{shape:`summary`});let m=a.data;if(m.stages.reduce((e,t)=>e+t.count,0)===0)return(0,S.jsx)(l2,{icon:Sy,title:t.deals.emptyTitle,description:t.deals.emptyDescription,action:(0,S.jsx)(VQ,{href:$.contacts,children:t.deals.toContacts})});let h=new Map((s.data?.items??[]).map(e=>[e.id,e.name??e.email])),g=u.isPending&&u.variables.changes.stage!==void 0?{id:u.variables.id,stage:u.variables.changes.stage}:void 0,_=c.flatMap(e=>e.data?.items??[]),v=new Map(_.map(e=>[e.id,e])),y=e.stages.map((e,a)=>{let o=c[a]?.data?.items??[],s=g?o.filter(e=>e.id!==g.id):o,u=g&&g.stage===e.id?v.get(g.id):void 0,d=u?[u,...s]:s,f=m.stages.find(t=>t.stage===e.id),p=f?.count??0;return{id:e.id,title:r(e),count:i(f?.value??0),tone:X5[e.kind],items:d.map(r=>{let a=h.get(r.contactId),o=l.nameOf(r.about);return{id:r.id,title:r.title,...a!==void 0&&{detail:a},notes:[{text:i(r.value)},...o!==void 0&&o!==r.title?[{text:o}]:[],...r.closeOn!==void 0&&e.kind===`open`?[{text:t.deals.closes($5(r.closeOn,n))}]:[]]}}),...p>o.length&&{more:t.deals.boardMore(p-o.length)}}});return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(NQ,{columns:3,gap:4,children:[(0,S.jsx)(Y$,{label:t.deals.open,value:i(m.open),detail:t.deals.openDetail}),(0,S.jsx)(Y$,{label:t.deals.forecast,value:i(m.weighted),detail:t.deals.forecastDetail}),(0,S.jsx)(Y$,{label:t.deals.won,value:i(m.won),detail:t.deals.wonDetail})]}),e.monthlyTarget!==void 0&&(0,S.jsx)(Tre,{pipeline:e,target:e.monthlyTarget}),(0,S.jsx)(O4,{label:t.deals.board,columns:y,emptyText:t.deals.boardEmpty,onOpen:e=>f(v.get(e)??null),moveLabel:t.deals.move,onMove:(n,i)=>{let a=v.get(n);a&&!u.isPending&&u.mutate({id:n,changes:{stage:i,expectedRevision:a.revision}},{onSuccess:()=>Z({title:t.deals.moved(a.title,r(e.stages.find(e=>e.id===i))),tone:`success`}),onError:e=>Z({title:t.deals.notMoved,description:Sre(e),tone:`danger`})})}}),d&&(0,S.jsx)(p7,{deal:d,contact:{id:d.contactId},pipeline:e,team:o.data??[],onClose:()=>f(null)})]})}function Tre({pipeline:e,target:t}){let n=Q(),r=M6(),i=t7(e.currency),a=Ks(e.stages.filter(e=>e.kind===`won`).map(e=>e.id)),o=a.find(e=>e.isError);if(o)return(0,S.jsx)(q5,{error:o.error,onRetry:()=>void o.refetch()});if(a.some(e=>e.isPending))return(0,S.jsx)(K5,{shape:`summary`});let s=new Date,c=new Date(s.getFullYear(),s.getMonth(),1).getTime(),l=a.flatMap(e=>e.data?.items??[]).filter(e=>e.closedAt!==void 0&&new Date(e.closedAt).getTime()>=c).reduce((e,t)=>e+t.value,0),u=new Intl.DateTimeFormat(r,{month:`long`}).format(s),d=new Intl.NumberFormat(r,{style:`percent`,maximumFractionDigits:0}).format(l/t);return(0,S.jsx)(Z_,{surface:`card`,border:!0,radius:`lg`,padding:5,children:(0,S.jsx)(Q1,{label:n.deals.targetLabel(u),value:l,max:t,valueText:n.deals.targetProgress(i(l),i(t),d)})})}var Ere=5e3;function Dre(e){let t=e.replace(/^\uFEFF/,``),n=t.split(/\r?\n/,1)[0]??``,r=e=>n.split(e).length-1,i=[`,`,`;`,` `].reduce((e,t)=>r(t)>r(e)?t:e,`,`),a=[],o=[],s=``,c=!1,l=()=>{o.push(s.trim()),s=``},u=()=>{l(),o.some(e=>e!==``)&&a.push(o),o=[]};for(let e=0;e<t.length;e+=1){let n=t[e];c?n===`"`?t[e+1]===`"`?(s+=`"`,e+=1):c=!1:s+=n:n===`"`&&s.trim()===``?(s=``,c=!0):n===i?l():n===`
78
+ `?u():n!==`\r`&&(s+=n)}return u(),a}var N7=`:none`,P7=`:name`,F7=`:email`,I7=`:phone`,L7=20,Ore=e=>e instanceof Error?e.message:String(e);function kre({onClose:e}){let{close:t,dialog:n}=L6(e),r=Q(),i=M6(),a=m_(dc().data?.contact??[]),o=yc(),[s,c]=(0,x.useState)(null),[l,u]=(0,x.useState)([]),[d,f]=(0,x.useState)(null),[p,m]=(0,x.useState)(null),h=[{id:N7,label:r.contactImport.skip},{id:F7,label:r.contacts.email},{id:P7,label:r.contacts.name},{id:I7,label:r.contacts.phone},...a.map(e=>({id:e.id,label:o6(e.label,i)}))],g=e=>{let t=new Set;return e.map(e=>{let n=e.trim().toLowerCase(),r=a.find(e=>e.key.toLowerCase()===n||o6(e.label,i).toLowerCase()===n),o=r?r.id:/mail/.test(n)?F7:/phone|mobile|tel/.test(n)?I7:/name/.test(n)?P7:N7;return o===N7||t.has(o)?N7:(t.add(o),o)})},_=async e=>{f(null);let[t,...n]=Dre(await e.text());if(!t||n.length===0)return f(r.contactImport.emptyFile);if(n.length>5e3)return f(r.contactImport.tooManyRows(Ere));c({headers:t,rows:n}),u(g(t))},v=(e,t)=>u(l.map((n,r)=>r===e?t:n===t&&t!==N7?N7:n)),y=()=>{if(!s)return;if(!l.includes(F7))return f(r.contactImport.emailNeeded);f(null);let e=s.rows.map(e=>{let t=t=>{let n=e[l.indexOf(t)]?.trim();return n===void 0||n===``?void 0:n},n=t(P7),r=t(I7),i=Object.fromEntries(a.flatMap(e=>t(e.id)===void 0?[]:[[e.id,t(e.id)??``]]));return{email:t(F7)??``,...n!==void 0&&{name:n},...r!==void 0&&{phone:r},...Object.keys(i).length>0&&{data:i}}});o.mutate(e,{onSuccess:e=>{m(e),Z({title:r.contactImport.done(e.added),tone:`success`})},onError:e=>Z({title:r.contactImport.failed,description:Ore(e),tone:`danger`})})};return(0,S.jsx)(CQ,{...n,title:r.contactImport.title,closeLabel:r.app.dismiss,footer:p?(0,S.jsx)(J,{onPress:t,children:r.contactImport.close}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(J,{variant:`secondary`,onPress:t,children:r.editor.cancel}),s&&(0,S.jsx)(J,{isPending:o.isPending,onPress:y,children:r.contactImport.bringIn(s.rows.length)})]}),children:(0,S.jsxs)(Y,{gap:4,children:[!s&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(X,{tone:`secondary`,children:r.contactImport.lead}),(0,S.jsx)(kQ,{accept:`csv`,icon:gy,onSelect:e=>void _(e),children:r.contactImport.chooseFile})]}),s&&!p&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(X,{tone:`secondary`,children:r.contactImport.matchLead(s.rows.length)}),s.headers.map((e,t)=>(0,S.jsx)(j$,{label:r.contactImport.column(e===``?String(t+1):e),...s.rows[0]?.[t]!==void 0&&s.rows[0][t]!==``&&{description:r.contactImport.example(s.rows[0][t]??``)},options:h,value:l[t]??N7,onChange:e=>v(t,e)},t))]}),d!==null&&!p&&(0,S.jsx)(X,{tone:`danger`,children:d}),p&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(X,{weight:`semibold`,children:r.contactImport.added(p.added)}),p.filled>0&&(0,S.jsx)(X,{tone:`secondary`,children:r.contactImport.filled(p.filled)}),p.unchanged>0&&(0,S.jsx)(X,{tone:`secondary`,children:r.contactImport.unchanged(p.unchanged)}),p.problems.length>0&&(0,S.jsxs)(Y,{gap:1,children:[(0,S.jsx)(X,{tone:`danger`,children:r.contactImport.leftOut(p.problems.length)}),p.problems.slice(0,L7).map(e=>(0,S.jsx)(X,{size:`sm`,tone:`secondary`,children:r.contactImport.rowProblem(e.row+2,e.message)},e.row)),p.problems.length>L7&&(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:r.contactImport.andMore(p.problems.length-L7)})]})]})]})})}var Are=50,jre=e=>e instanceof Error?e.message:String(e);function Mre({pipeline:e,team:t,filter:n}){let r=Q(),i=M6(),a=J5(),o=Y5(),s=e7(t),c=Q5(),l=Hs(e.stages.map(e=>({...n,stage:e.id,limit:Are}))),u=Us(),d=l.find(e=>e.isError);if(d)return(0,S.jsx)(q5,{error:d.error,onRetry:()=>void d.refetch()});if(l.some(e=>e.isPending))return(0,S.jsx)(K5,{shape:`summary`});let f=u.isPending?u.variables:void 0,p=new Map,m=e.stages.map((e,t)=>{let n=l[t]?.data??{items:[],total:0},a=n.items,u=n.total;if(f){let t=a.some(e=>e.id===f.contact.id);e.id===f.stage&&!t?(a=[{...f.contact,stage:e.id},...a],u+=1):e.id!==f.stage&&t&&(a=a.filter(e=>e.id!==f.contact.id),--u)}for(let e of a)p.set(e.id,e);return{id:e.id,title:o(e),count:new Intl.NumberFormat(i).format(u),tone:X5[e.kind],items:a.map(e=>({id:e.id,title:e.name??e.email,...e.name!==void 0&&{detail:e.email},notes:[...e.ownerId!==void 0&&s(e.ownerId)!==``?[{text:s(e.ownerId)}]:[],...e.followUpAt===void 0?[]:[c(e.followUpAt)]]})),...u>a.length&&{more:r.contacts.boardMore(u-a.length)}}});return(0,S.jsx)(O4,{label:r.contacts.board,columns:m,emptyText:r.contacts.boardEmpty,onOpen:e=>a($.contact(e)),moveLabel:r.contacts.move,onMove:(t,n)=>{let i=p.get(t);i&&!u.isPending&&u.mutate({contact:i,stage:n},{onSuccess:()=>Z({title:r.contacts.moved(i.name??i.email,o(e.stages.find(e=>e.id===n))),tone:`success`}),onError:e=>Z({title:r.contacts.notMoved,description:jre(e),tone:`danger`})})}})}var R7=[`open`,`won`,`lost`],Nre=12,Pre=e=>e instanceof Error?e.message:String(e);function Fre({pipeline:e,team:t,onClose:n}){let{close:r,dialog:i}=L6(n),a=Q(),o=uc(),s=(0,x.useRef)(0),c=a.contacts.stages,[l,u]=(0,x.useState)(()=>e.stages.map(e=>({row:e.id,id:e.id,label:e.label??``,kind:e.kind,chance:e.chance??50}))),[d,f]=(0,x.useState)(e.currency??`USD`),[p,m]=(0,x.useState)(e.assignTo??[]),[h,g]=(0,x.useState)(e.monthlyTarget??null),[_,v]=(0,x.useState)({}),y=(e,t)=>u(l.map(n=>n.row===e?{...n,...t}:n)),b=()=>{v({}),o.mutate({stages:l.map(({id:e,label:t,kind:n,chance:r})=>({...e!==void 0&&{id:e},label:t,kind:n,...n===`open`&&r!==null&&{chance:r}})),currency:d,assignTo:p.filter(e=>t.some(t=>t.id===e)),monthlyTarget:h,expectedRevision:e.revision},{onSuccess:()=>{Z({title:a.contacts.stagesSaved,tone:`success`}),r()},onError:e=>{e instanceof Mo&&v(Object.fromEntries(e.issues.map(e=>[e.path.join(`.`),e.message]))),Z({title:a.contacts.stagesNotSaved,description:Pre(e),tone:`danger`})}})};return(0,S.jsx)(CQ,{...i,title:a.contacts.editStagesTitle,closeLabel:a.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(J,{variant:`secondary`,onPress:r,children:a.editor.cancel}),(0,S.jsx)(J,{isPending:o.isPending,onPress:b,children:a.contacts.saveStages})]}),children:(0,S.jsxs)(jQ,{label:a.contacts.editStagesTitle,gap:4,onSubmit:b,children:[(0,S.jsxs)(Y,{gap:1,children:[(0,S.jsx)(X,{tone:`secondary`,children:a.contacts.stagesHelp}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:a.contacts.stagesRemoveNote})]}),(0,S.jsx)(T2,{label:a.contacts.editStagesTitle,..._.stages!==void 0&&{errorMessage:_.stages},items:l.map((e,t)=>({id:e.row,content:(0,S.jsxs)(NQ,{columns:3,gap:3,children:[(0,S.jsx)(x1,{label:a.contacts.stageName,value:e.label,onChange:t=>y(e.row,{label:t}),autoComplete:`off`,...e.id!==void 0&&c[e.id]!==void 0&&{placeholder:c[e.id]},..._[`stages.${t}.label`]!==void 0&&{errorMessage:_[`stages.${t}.label`]}}),(0,S.jsx)(j$,{label:a.contacts.stageKind,options:R7.map(e=>({id:e,label:a.contacts.stageKinds[e]})),value:e.kind,onChange:t=>y(e.row,{kind:R7.find(e=>e===t)??`open`}),..._[`stages.${t}.kind`]!==void 0&&{errorMessage:_[`stages.${t}.kind`]}}),e.kind===`open`&&(0,S.jsx)(u$,{label:a.contacts.stageChance,value:e.chance,onChange:t=>y(e.row,{chance:t}),minValue:0,maxValue:100,isInteger:!0,..._[`stages.${t}.chance`]!==void 0&&{errorMessage:_[`stages.${t}.chance`]}})]})})),emptyText:a.contacts.stagesEmpty,addLabel:a.contacts.addStage,isFull:l.length>=Nre,onAdd:()=>{s.current+=1,u([...l,{row:`added-${s.current}`,label:``,kind:`open`,chance:50}])},onRemove:e=>u(l.filter((t,n)=>n!==e)),onMove:(e,t)=>{let n=[...l],[r]=n.splice(e,1);r&&n.splice(t,0,r),u(n)},removeLabel:a.contacts.removeStage,moveUpLabel:a.contacts.moveStageUp,moveDownLabel:a.contacts.moveStageDown}),(0,S.jsx)(DQ,{legend:a.contacts.pipelineSettings,children:(0,S.jsxs)(Y,{gap:4,children:[(0,S.jsx)(x1,{label:a.contacts.currency,description:a.contacts.currencyHelp,value:d,onChange:f,autoComplete:`off`,..._.currency!==void 0&&{errorMessage:_.currency}}),(0,S.jsx)(u$,{label:a.contacts.monthlyTarget,description:a.contacts.monthlyTargetHelp,value:h,onChange:e=>g(e===null||Number.isNaN(e)?null:e),minValue:1,isInteger:!0,..._.monthlyTarget!==void 0&&{errorMessage:_.monthlyTarget}}),t.length>0&&(0,S.jsx)(DQ,{legend:a.contacts.assignTo,description:a.contacts.assignToHelp,children:(0,S.jsx)(Y,{gap:2,children:t.map(e=>(0,S.jsx)(FZ,{label:e.name,isSelected:p.includes(e.id),onChange:t=>m(t?[...p,e.id]:p.filter(t=>t!==e.id))},e.id))})})]})})]})})}var z7=`all`,B7=`mine`,V7=`nobody`,H7={},Ire=e=>e instanceof Error?e.message:String(e);function Lre(){let e=Q(),t=Po();return t.data===null||t.data===void 0||t.data.role===`author`?(0,S.jsx)(l2,{icon:Qv,title:e.contacts.title,description:e.contacts.noAccess}):(0,S.jsx)(Rre,{})}function Rre(){let e=Q(),t=M6(),n=J5(),[r,i]=(0,x.useState)(``),a=(0,x.useDeferredValue)(r.trim()),o=Po(),[s,c]=Co(),l=s.get(`view`)===`board`?`board`:`list`,[u,d]=(0,x.useState)(z7),[f,p]=(0,x.useState)(z7),m=f===z7?void 0:f===V7?null:f===B7?o.data?.id:f,h={...a!==``&&{search:a},...m!==void 0&&{ownerId:m}},g=Bs({limit:200,...h,...u!==z7&&{stage:u}}),_=Ss(),v=lc(),y=pc(),b=o7(_.data),C=Y5(),w=e7(y.data),T=Q5(),[E,D]=(0,x.useState)(!1),[O,k]=(0,x.useState)(!1),[A,j]=(0,x.useState)(!1),[M,N]=(0,x.useState)(!1),P=v.data?.stages??[],F=u!==z7||f!==z7,ee=[{id:`name`,label:e.contacts.columnName},{id:`stage`,label:e.contacts.columnStage},{id:`owner`,label:e.contacts.columnOwner,isSecondary:!0},{id:`followUp`,label:e.contacts.columnFollowUp,isSecondary:!0},{id:`source`,label:e.contacts.columnSource,isSecondary:!0},{id:`added`,label:e.contacts.columnAdded,align:`end`,isSecondary:!0}],I=(g.data?.items??[]).map(e=>{let n=P.find(t=>t.id===e.stage),r=e.followUpAt===void 0?void 0:T(e.followUpAt);return{id:e.id,cells:{name:(0,S.jsxs)(Y,{gap:0,children:[(0,S.jsx)(X,{weight:`semibold`,children:e.name??e.email}),e.name!==void 0&&(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:e.email})]}),stage:n?(0,S.jsx)(_1,{tone:X5[n.kind],children:C(n)}):``,owner:(0,S.jsx)(X,{tone:`secondary`,children:w(e.ownerId)}),followUp:r?r.tone===`neutral`?(0,S.jsx)(X,{tone:`secondary`,children:r.text}):(0,S.jsx)(_1,{tone:r.tone,children:r.text}):``,source:(0,S.jsx)(X,{size:`sm`,tone:`secondary`,children:b(e)}),added:(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:a7(e.createdAt,t)})}}}),te=(0,S.jsx)(J,{icon:Gb,collapses:!0,onPress:()=>D(!0),children:e.contacts.newContact}),ne=g.isSuccess&&I.length===0;return(0,S.jsxs)(Z_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(Y,{gap:6,children:[(0,S.jsx)(m2,{title:e.contacts.title,description:e.contacts.description,secondary:{moreLabel:e.app.moreActions,actions:[{id:`fields`,label:e.customFields.button,icon:tb,onPress:()=>j(!0)},{id:`import`,label:e.contactImport.button,icon:gy,onPress:()=>N(!0)}]},actions:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(C$,{label:e.contacts.view,areLabelsHidden:!0,options:[{id:`list`,label:e.contacts.viewList,icon:ab},{id:`board`,label:e.contacts.viewBoard,icon:Xv}],selected:l,onChange:e=>c(e===`board`?{view:`board`}:{},{replace:!0})}),te]})}),(0,S.jsxs)(Y,{gap:2,children:[(0,S.jsx)(h$,{label:e.contacts.search,placeholder:e.contacts.searchPlaceholder,value:r,onChange:i,clearLabel:e.contacts.clearSearch}),(0,S.jsxs)(zQ,{gap:3,align:`end`,justify:`between`,wrap:!0,children:[(0,S.jsxs)(zQ,{gap:3,align:`end`,wrap:!0,children:[l===`list`&&(0,S.jsx)(j$,{label:e.contacts.filterStage,width:`sm`,options:[{id:z7,label:e.contacts.allStages},...P.map(e=>({id:e.id,label:C(e)}))],value:u,onChange:d}),(0,S.jsx)(j$,{label:e.contacts.filterOwner,width:`sm`,options:[{id:z7,label:e.contacts.everyone},{id:B7,label:e.contacts.mine},{id:V7,label:e.contacts.nobody},...(y.data??[]).filter(e=>e.id!==o.data?.id).map(e=>({id:e.id,label:e.name}))],value:f,onChange:p})]}),l===`board`&&v.isSuccess&&(0,S.jsx)(J,{variant:`secondary`,icon:px,onPress:()=>k(!0),children:e.contacts.editStages})]}),l===`list`&&g.isSuccess&&(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:e.contacts.count(g.data.total)})]}),l===`board`&&v.isPending&&(0,S.jsx)(K5,{shape:`summary`}),l===`board`&&v.isError&&(0,S.jsx)(q5,{error:v.error,onRetry:()=>void v.refetch()}),l===`board`&&v.isSuccess&&(0,S.jsx)(Mre,{pipeline:v.data,team:y.data,filter:h}),l===`list`&&(0,S.jsxs)(S.Fragment,{children:[g.isPending&&(0,S.jsx)(K5,{shape:`table`}),g.isError&&(0,S.jsx)(q5,{error:g.error,onRetry:()=>void g.refetch()}),ne&&a===``&&F&&(0,S.jsx)(l2,{icon:$y,title:e.contacts.nothingMatchesTitle,description:e.contacts.nothingMatchesDescription}),ne&&a===``&&!F&&(0,S.jsx)(l2,{icon:Qv,title:e.contacts.emptyTitle,description:e.contacts.emptyDescription,action:te}),ne&&a!==``&&(0,S.jsx)(l2,{icon:sx,title:e.contacts.nothingFoundTitle,description:e.contacts.nothingFoundDescription(a)}),g.isSuccess&&I.length>0&&(0,S.jsx)(u1,{label:e.contacts.title,columns:ee,rows:I,onRowAction:e=>n($.contact(e))})]})]}),M&&(0,S.jsx)(kre,{onClose:()=>N(!1)}),A&&(0,S.jsx)(M7,{of:`contact`,onClose:()=>j(!1)}),O&&v.data&&(0,S.jsx)(Fre,{pipeline:v.data,team:y.data??[],onClose:()=>k(!1)}),E&&(0,S.jsx)(zre,{onClose:()=>D(!1)})]})}function zre({onClose:e}){let{close:t,dialog:n}=L6(e),r=Q(),i=J5(),a=_c(),[o,s]=(0,x.useState)(``),[c,l]=(0,x.useState)(``),[u,d]=(0,x.useState)(``),[f,p]=(0,x.useState)(H7),m=()=>{if(c.trim()===``)return p({email:r.contacts.emailNeeded});p(H7),a.mutate({email:c,...o.trim()!==``&&{name:o},...u.trim()!==``&&{phone:u}},{onSuccess:e=>{Z({title:r.contacts.created(e.name??e.email),tone:`success`}),t(),i($.contact(e.id))},onError:e=>{e instanceof Mo&&p(Object.fromEntries(e.issues.map(e=>[String(e.path[0]),e.message]))),Z({title:r.contacts.notCreated,description:Ire(e),tone:`danger`})}})};return(0,S.jsx)(CQ,{...n,title:r.contacts.newContactTitle,closeLabel:r.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(J,{variant:`secondary`,onPress:t,children:r.editor.cancel}),(0,S.jsx)(J,{isPending:a.isPending,onPress:m,children:r.contacts.create})]}),children:(0,S.jsxs)(jQ,{label:r.contacts.newContactTitle,gap:4,onSubmit:m,children:[(0,S.jsx)(x1,{label:r.contacts.name,value:o,onChange:s,autoFocus:!0,autoComplete:`off`,...f.name!==void 0&&{errorMessage:f.name}}),(0,S.jsx)(x1,{label:r.contacts.email,type:`email`,value:c,onChange:l,isRequired:!0,autoComplete:`off`,...f.email!==void 0&&{errorMessage:f.email}}),(0,S.jsx)(x1,{label:r.contacts.phone,type:`tel`,value:u,onChange:d,autoComplete:`off`,...f.phone!==void 0&&{errorMessage:f.phone}})]})})}function U7(e){let t=new Map(m_(e.fields).map(e=>[e.id,e])),n=(e.sections??[]).map(e=>({key:e.key,fields:e.fieldIds.flatMap(e=>t.get(e)??[])})),r=new Set(n.flatMap(e=>e.fields.map(e=>e.id)));return[...n,{key:``,fields:[...t.values()].filter(e=>!r.has(e.id))}]}function W7(e,t){return e.sections?.find(e=>e.fieldIds.includes(t))?.key??``}function G7(e){return{order:e.flatMap(e=>e.ids),sections:Object.fromEntries(e.filter(e=>e.key!==``).map(e=>[e.key,e.ids]))}}function Bre(e,t,n){return G7(U7(e).map(e=>{let r=e.fields.map(e=>e.id),i=r.indexOf(t),a=i+n;return i===-1||a<0||a>=r.length||r.splice(a,0,...r.splice(i,1)),{key:e.key,ids:r}}))}function Vre(e,t,n){return G7(U7(e).map(e=>{let r=e.fields.map(e=>e.id).filter(e=>e!==t);return{key:e.key,ids:e.key===n?[...r,t]:r}}))}function Hre(e,t,n,r){let i=m_([...e]).map(e=>e.id),a=i.indexOf(t),o=a+n;return a!==-1&&o>=0&&o<i.length&&i.splice(o,0,...i.splice(a,1)),{order:i,within:r}}var K7={},q7=e=>e instanceof Error?e.message:String(e);function J7({type:e,field:t,within:n,onClose:r}){let{close:i,dialog:a}=L6(r),o=Q(),s=M6(),c=s.split(`-`)[0]??s,l=ts(),u=Uo(),d=Wo(),[f,p]=(0,x.useState)(t?.type??`text`),[m,h]=(0,x.useState)(t?o6(t.label,s):``),[g,_]=(0,x.useState)(t?.key??null),[v,y]=(0,x.useState)(t?.help?o6(t.help,s):``),[b,C]=(0,x.useState)(t?.required??!1),[w,T]=(0,x.useState)(t?.translated??!0),E=n.length>0,[D,O]=(0,x.useState)(t?W7(e,t.id):e.sections?.[0]?.key??``),[k,A]=(0,x.useState)(t?.options??b7.get(`text`).initial),[j,M]=(0,x.useState)(K7),N=g??w7(m),P=b7.has(f)?b7.get(f):null,F=e=>o.builder.kinds[e]?.name??e,ee=(l.data??[]).filter(e=>b7.has(e.type)).map(e=>({id:e.type,label:F(e.type)})),I=[...(e.sections??[]).map(e=>({id:e.key,label:o6(e.label,s)})),{id:``,label:o.builder.noSection}],te=u.isPending||d.isPending,ne=e=>t=>{let n=(t instanceof Mo?t.issues:[]).map(e=>String(e.path[0]??``)).find(e=>e===`key`||e===`label`);M({[n??(t instanceof Mo&&t.code===`conflict`?`key`:`options`)]:q7(t)}),Z({title:e,description:q7(t),tone:`danger`})},re=()=>{let r={...m.trim()===``&&{label:o.builder.nameNeeded},...N===``&&{key:o.builder.keyNeeded},...P?.problem?.(k,o)!==void 0&&{options:P.problem(k,o)}};if(M(r),Object.keys(r).length>0)return;let a=v.trim();t?d.mutate({typeId:e.id,fieldId:t.id,within:n,changes:{key:N,label:{...t.label,[c]:m.trim()},help:a===``?null:{...t.help,[c]:a},required:b,translated:w,options:k},...!E&&D!==W7(e,t.id)&&{arrangement:Vre(e,t.id,D)}},{onSuccess:()=>{Z({title:o.builder.fieldSaved(m.trim()),tone:`success`}),i()},onError:ne(o.builder.fieldNotSaved)}):u.mutate({typeId:e.id,within:n,field:{key:N,type:f,label:{[c]:m.trim()},...a!==``&&{help:{[c]:a}},required:b,translated:w,options:k,...!E&&D!==``&&{section:D}}},{onSuccess:()=>{Z({title:o.builder.fieldAdded(m.trim()),tone:`success`}),i()},onError:ne(o.builder.fieldNotAdded)})},ie=t?o.builder.editFieldTitle(o6(t.label,s)):o.builder.addFieldTitle;return(0,S.jsx)(CQ,{...a,placement:`side`,title:ie,closeLabel:o.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(J,{variant:`secondary`,onPress:i,children:o.editor.cancel}),(0,S.jsx)(J,{isPending:te,onPress:re,children:t?o.builder.fieldSave:o.builder.fieldAdd})]}),children:(0,S.jsxs)(jQ,{label:ie,gap:4,onSubmit:re,children:[t?(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:o.builder.kindIs(F(f))}):(0,S.jsx)(j$,{label:o.builder.kind,options:ee,value:f,description:o.builder.kinds[f]?.description??``,onChange:e=>{p(e),A(b7.get(e).initial),M(K7)}}),(0,S.jsx)(x1,{label:o.builder.fieldName,description:o.builder.fieldNameHelp,value:m,onChange:h,isRequired:!0,autoFocus:!0,autoComplete:`off`,...j.label!==void 0&&{errorMessage:j.label}}),(0,S.jsx)(x1,{label:o.builder.fieldKey,description:t?o.builder.fieldKeyHelpEdit:o.builder.fieldKeyHelp,value:N,onChange:_,isRequired:!0,autoComplete:`off`,...j.key!==void 0&&{errorMessage:j.key}}),(0,S.jsx)(x1,{label:o.builder.fieldHelp,description:o.builder.fieldHelpHelp,value:v,onChange:y,autoComplete:`off`}),P?.Component&&(0,S.jsx)(P.Component,{options:k,onChange:A,isExisting:t!==void 0,problem:j.options}),!P?.Component&&j.options!==void 0&&(0,S.jsx)(X,{tone:`danger`,children:j.options}),t&&!P&&(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:o.builder.settingsElsewhere}),(0,S.jsx)(FZ,{label:o.builder.fieldRequired,isSelected:b,onChange:C}),(0,S.jsx)(FZ,{label:o.builder.fieldTranslated,isSelected:w,onChange:T}),!E&&I.length>1&&(0,S.jsx)(j$,{label:o.builder.section,description:o.builder.sectionHelp,options:I,value:D,onChange:O})]})})}var Y7=e=>e instanceof Error?e.message:String(e);function Ure(e,t){let n=T7(e)||`section`,r=n;for(let e=2;t.has(r);e+=1)r=`${n}-${e}`;return r}function Wre({type:e,onClose:t}){let{close:n,dialog:r}=L6(t),i=Q(),a=M6(),o=a.split(`-`)[0]??a,s=qo(),[c,l]=(0,x.useState)(()=>(e.sections??[]).map(e=>({id:e.key,section:e,name:o6(e.label,a),aside:e.aside===!0}))),[u,d]=(0,x.useState)(0),[f,p]=(0,x.useState)(null),m=(e,t)=>l(n=>n.map(n=>n.id===e?{...n,...t}:n)),h=()=>{if(c.some(e=>e.name.trim()===``))return p(i.builder.sectionNameNeeded);p(null);let t=new Set(c.flatMap(e=>e.section?.key??[])),r=c.map(e=>{let n=e.section?.key??Ure(e.name,t);return t.add(n),{key:n,label:{...e.section?.label,[o]:e.name.trim()},fieldIds:e.section?.fieldIds??[],...e.aside&&{aside:!0}}});s.mutate({typeId:e.id,sections:r},{onSuccess:()=>{Z({title:i.builder.sectionsSaved,tone:`success`}),n()},onError:e=>{p(Y7(e)),Z({title:i.builder.sectionsNotSaved,description:Y7(e),tone:`danger`})}})};return(0,S.jsx)(CQ,{...r,placement:`side`,title:i.builder.sectionsTitle,closeLabel:i.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(J,{variant:`secondary`,onPress:n,children:i.editor.cancel}),(0,S.jsx)(J,{isPending:s.isPending,onPress:h,children:i.builder.sectionsSave})]}),children:(0,S.jsxs)(jQ,{label:i.builder.sectionsTitle,gap:4,onSubmit:h,children:[(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:i.builder.sectionsDescription}),(0,S.jsx)(T2,{label:i.builder.sections,items:c.map((e,t)=>({id:e.id,content:(0,S.jsxs)(Y,{gap:2,children:[(0,S.jsx)(x1,{label:i.builder.sectionName(t+1),isLabelHidden:!0,value:e.name,onChange:t=>m(e.id,{name:t}),autoComplete:`off`}),(0,S.jsx)(FZ,{label:i.builder.sectionAsideLabel,isSelected:e.aside,onChange:t=>m(e.id,{aside:t})})]})})),emptyText:i.builder.sectionsEmpty,addLabel:i.builder.sectionAdd,onAdd:()=>{l(e=>[...e,{id:`new-${u}`,section:null,name:``,aside:!1}]),d(u+1)},onRemove:e=>l(t=>t.filter((t,n)=>n!==e)),onMove:(e,t)=>l(n=>{let r=[...n];return r.splice(t,0,...r.splice(e,1)),r}),removeLabel:i.builder.sectionRemove,moveUpLabel:i.builder.sectionMoveUp,moveDownLabel:i.builder.sectionMoveDown,...f!==null&&{errorMessage:f}})]})})}var X7=``,Z7=e=>e instanceof Error?e.message:String(e),Q7=e=>e.join(`/`);function Gre({type:e,onClose:t}){let{close:n,dialog:r}=L6(t),i=Q(),a=M6(),o=Ho(),s=ts(),[c,l]=(0,x.useState)(o6(e.label,a)),[u,d]=(0,x.useState)(e.urlPattern??``),[f,p]=(0,x.useState)(e.titlePath?Q7(e.titlePath):X7),[m,h]=(0,x.useState)(e.list?.imagePath?Q7(e.list.imagePath):X7),[g,_]=(0,x.useState)((e.list?.fieldPaths??[]).map(Q7)),[v,y]=(0,x.useState)(e.forDeals===!0),[b,C]=(0,x.useState)({}),w=m_([...e.fields]),T=t=>{let n=[],r=e.fields;for(let e of t){let i=r.find(t=>t.id===e);if(!i)return Q7(t);n.push(o6(i.label,a)),r=x7(i)??[]}return n.join(`, `)},E=(e,t=w)=>[...new Set([...t.map(e=>e.id),...e.filter(e=>e!==X7)])].map(e=>({id:e,label:T(e.split(`/`))})),D=new Map((s.data??[]).map(e=>[e.type,e.editor])),O=w.filter(e=>D.get(e.type)===`image`),k=()=>{if(c.trim()===``)return C({label:i.builder.typeNameNeeded});C({}),o.mutate({id:e.id,changes:{label:{...e.label,[a.split(`-`)[0]??a]:c.trim()},urlPattern:u.trim()===``?null:u.trim(),titlePath:f===X7?null:f.split(`/`),list:m===X7&&g.length===0?null:{...m!==X7&&{imagePath:m.split(`/`)},...g.length>0&&{fieldPaths:g.map(e=>e.split(`/`))}},forDeals:v}},{onSuccess:()=>{Z({title:i.builder.settingsSaved,tone:`success`}),n()},onError:e=>{let t=e instanceof Mo?e.issues:[];C({[String(t[0]?.path[0]??`urlPattern`)]:Z7(e)}),Z({title:i.builder.settingsNotSaved,description:Z7(e),tone:`danger`})}})},A=i.builder.settingsTitle(o6(e.label,a));return(0,S.jsx)(CQ,{...r,placement:`side`,title:A,closeLabel:i.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(J,{variant:`secondary`,onPress:n,children:i.editor.cancel}),(0,S.jsx)(J,{isPending:o.isPending,onPress:k,children:i.builder.settingsSave})]}),children:(0,S.jsxs)(jQ,{label:A,gap:4,onSubmit:k,children:[(0,S.jsx)(x1,{label:i.builder.typeName,value:c,onChange:l,isRequired:!0,autoFocus:!0,autoComplete:`off`,...b.label!==void 0&&{errorMessage:b.label}}),(0,S.jsx)(x1,{label:i.builder.typeAddress,description:i.builder.typeAddressHelp,value:u,onChange:d,autoComplete:`off`,...b.urlPattern!==void 0&&{errorMessage:b.urlPattern}}),(0,S.jsx)(j$,{label:i.builder.titleField,description:i.builder.titleFieldHelp,options:[{id:X7,label:i.builder.titleAutomatic},...E([f])],value:f,onChange:p,...b.fields!==void 0&&{errorMessage:b.fields}}),(0,S.jsx)(j$,{label:i.builder.listImage,description:i.builder.listImageHelp,options:[{id:X7,label:i.builder.listImageNone},...E([m],O)],value:m,onChange:h}),(0,S.jsx)(DQ,{legend:i.builder.listColumns,description:i.builder.listColumnsHelp,children:E(g).map(e=>(0,S.jsx)(FZ,{label:e.label,isSelected:g.includes(e.id),onChange:t=>_(n=>t?[...n,e.id]:n.filter(t=>t!==e.id))},e.id))}),(0,S.jsx)(DQ,{legend:i.builder.crm,description:i.builder.forDealsHelp,children:(0,S.jsx)(FZ,{label:i.builder.forDeals,isSelected:v,onChange:y})})]})})}var $7=e=>e instanceof Error?e.message:String(e);function Kre(){let{typeKey:e=``}=ea(),[t]=Co(),n=Q(),r=Fo();if(r.isPending)return(0,S.jsx)(K5,{});if(r.isError)return(0,S.jsx)(q5,{error:r.error,onRetry:()=>void r.refetch()});let i=r.data.find(t=>t.key===e);if(!i)return(0,S.jsx)(l2,{icon:_x,title:n.builder.notFoundTitle,description:n.builder.notFoundDescription,action:(0,S.jsx)(VQ,{href:$.types,children:n.builder.backToTypes})});let a=[],o=i.fields;for(let e of t.getAll(`in`)){let t=o.find(t=>t.id===e&&t.deletedAt===void 0),r=t?x7(t):null;if(!t||!r)return(0,S.jsx)(l2,{icon:_x,title:n.builder.notFoundTitle,description:n.builder.notFoundDescription,action:(0,S.jsx)(VQ,{href:$.type(i.key),children:n.builder.backTo(i.key)})});a.push(t),o=r}return(0,S.jsx)(qre,{type:i,holders:a,fields:o},a.map(e=>e.id).join(`/`))}function qre({type:e,holders:t,fields:n}){let r=Q(),i=M6(),a=Jo(),o=Go(),s=Ko(),[c,l]=(0,x.useState)(!1),[u,d]=(0,x.useState)(!1),[f,p]=(0,x.useState)(!1),m=Bo(),[h,g]=(0,x.useState)(!1),_=J5(),v=t.map(e=>e.id),y=t.at(-1),[b,C]=(0,x.useState)(null),[w,T]=(0,x.useState)(null),E=R6(w),D=o6(e.label,i),O=y?[{key:``,fields:n.filter(e=>e.deletedAt===void 0)}]:U7(e),k=O.length>1,A=n.filter(e=>e.deletedAt!==void 0),j=O.some(e=>e.fields.length>0),M=e=>o6(e.label,i),N=(t,i)=>a.mutate({typeId:e.id,arrangement:y?Hre(n,t.id,i,v):Bre(e,t.id,i)},{onError:e=>Z({title:r.builder.notMoved,description:$7(e),tone:`danger`})}),P=[{id:`field`,label:r.builder.columnField},{id:`kind`,label:r.builder.columnKind},{id:`rules`,label:r.builder.columnRules,isSecondary:!0},{id:`actions`,label:r.builder.columnActions,align:`end`}],F=e=>{let t=x7(e);return(0,S.jsxs)(Y,{gap:0,children:[(0,S.jsx)(X,{weight:`semibold`,children:M(e)}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:t?`${e.key} · ${r.builder.holdsFields(t.filter(e=>e.deletedAt===void 0).length)}`:e.key})]})},ee=e=>(0,S.jsx)(_1,{children:r.builder.kinds[e.type]?.name??e.type}),I=t=>t.map((n,i)=>({id:n.id,cells:{field:F(n),kind:ee(n),rules:(0,S.jsxs)(zQ,{gap:2,children:[n.required&&(0,S.jsx)(_1,{tone:`info`,children:r.builder.required}),!n.translated&&(0,S.jsx)(_1,{children:r.builder.sameInEveryLanguage})]}),actions:(0,S.jsxs)(zQ,{gap:1,justify:`end`,children:[x7(n)&&(0,S.jsx)(gQ,{size:`sm`,label:r.builder.fieldsInside(M(n)),icon:rb,onPress:()=>_($.type(e.key,[...v,n.id]))}),(0,S.jsx)(gQ,{size:`sm`,label:r.builder.moveUp(M(n)),icon:bv,isDisabled:i===0||a.isPending,onPress:()=>N(n,-1)}),(0,S.jsx)(gQ,{size:`sm`,label:r.builder.moveDown(M(n)),icon:mv,isDisabled:i===t.length-1||a.isPending,onPress:()=>N(n,1)}),(0,S.jsx)(gQ,{size:`sm`,label:r.builder.edit(M(n)),icon:Lb,onPress:()=>C(n)}),(0,S.jsx)(gQ,{size:`sm`,label:r.builder.remove(M(n)),icon:jx,onPress:()=>T(n)})]})}})),te=(0,S.jsx)(J,{icon:Gb,collapses:!0,onPress:()=>l(!0),children:r.builder.addField});return(0,S.jsxs)(Z_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(Y,{gap:8,children:[y?(0,S.jsxs)(Y,{gap:2,children:[(0,S.jsx)(VQ,{href:$.type(e.key,v.slice(0,-1)),children:r.builder.backTo(t.length>1?M(t.at(-2)):D)}),(0,S.jsx)(m2,{title:M(y),description:r.builder.insideOf(M(y),D),actions:te})]}):(0,S.jsxs)(Y,{gap:2,children:[(0,S.jsx)(VQ,{href:$.types,children:r.builder.backToTypes}),(0,S.jsx)(m2,{title:D,description:[r.builder.keyIs(e.key),e.urlPattern??r.builder.noAddress].join(` · `),secondary:{moreLabel:r.app.moreActions,actions:[{id:`archive`,label:r.builder.archive,icon:fv,variant:`ghost`,onPress:()=>g(!0)},{id:`settings`,label:r.builder.settings,icon:px,onPress:()=>d(!0)},{id:`sections`,label:r.builder.sections,icon:Gy,onPress:()=>p(!0)}]},actions:te}),(0,S.jsx)(VQ,{href:$.contentList(e.key),children:r.builder.viewEntries})]}),!j&&(0,S.jsx)(l2,{icon:tb,title:r.builder.noFieldsTitle,description:r.builder.noFieldsDescription,action:te}),j&&O.map(t=>{let n=e.sections?.find(e=>e.key===t.key),a=n?o6(n.label,i):r.builder.otherFields;return k?t.key===``&&t.fields.length===0?null:(0,S.jsxs)(Y,{gap:3,children:[(0,S.jsxs)(Y,{gap:0,children:[(0,S.jsx)(LQ,{level:2,size:`md`,children:a}),!n&&(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:r.builder.otherFieldsDescription})]}),(0,S.jsx)(u1,{label:r.builder.fieldsOf(a),columns:P,rows:I(t.fields),empty:r.builder.noFieldsHere})]},t.key):(0,S.jsx)(u1,{label:r.builder.fields,columns:P,rows:I(t.fields)},t.key)}),A.length>0&&(0,S.jsxs)(Y,{gap:3,children:[(0,S.jsxs)(Y,{gap:0,children:[(0,S.jsx)(LQ,{level:2,size:`md`,children:r.builder.removedFields}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:r.builder.removedFieldsDescription})]}),(0,S.jsx)(u1,{label:r.builder.removedFields,columns:P.filter(e=>e.id!==`rules`),rows:A.map(t=>({id:t.id,cells:{field:F(t),kind:ee(t),actions:(0,S.jsx)(J,{variant:`secondary`,size:`sm`,isDisabled:s.isPending,onPress:()=>s.mutate({typeId:e.id,fieldId:t.id,within:v},{onSuccess:()=>Z({title:r.builder.restored(M(t)),tone:`success`}),onError:e=>Z({title:r.builder.notRestored,description:$7(e),tone:`danger`})}),children:r.builder.restoreField(M(t))})}}))})]})]}),c&&(0,S.jsx)(J7,{type:e,within:v,onClose:()=>l(!1)}),b&&(0,S.jsx)(J7,{type:e,field:b,within:v,onClose:()=>C(null)}),f&&(0,S.jsx)(Wre,{type:e,onClose:()=>p(!1)}),u&&(0,S.jsx)(Gre,{type:e,onClose:()=>d(!1)}),(0,S.jsx)(o2,{isOpen:w!==null,onOpenChange:e=>!e&&T(null),title:r.builder.removeTitle(E?M(E):``),confirmLabel:r.builder.removeConfirm,cancelLabel:r.editor.cancel,tone:`danger`,isPending:o.isPending,onConfirm:()=>{w&&o.mutate({typeId:e.id,fieldId:w.id,within:v},{onSuccess:()=>Z({title:r.builder.removed(M(w)),tone:`success`}),onError:e=>Z({title:r.builder.notRemoved,description:$7(e),tone:`danger`}),onSettled:()=>T(null)})},children:r.builder.removeDescription}),(0,S.jsx)(o2,{isOpen:h,onOpenChange:g,title:r.builder.archiveTitle(D),confirmLabel:r.builder.archiveConfirm,cancelLabel:r.editor.cancel,tone:`danger`,isPending:m.isPending,onConfirm:()=>m.mutate(e.id,{onSuccess:()=>{Z({title:r.builder.archived(D),description:r.builder.archivedDescription,tone:`success`}),_($.types)},onError:e=>{Z({title:r.builder.notArchived,description:$7(e),tone:`danger`}),g(!1)}}),children:r.builder.archiveDescription})]})}var Jre={},e9=e=>e instanceof Error?e.message:String(e);function Yre(){let e=Q(),t=M6(),n=J5(),r=Fo(),[i,a]=(0,x.useState)(!1),o=Ro(),s=Vo(),c=[{id:`name`,label:e.builder.columnName},{id:`archived`,label:e.builder.columnArchived},{id:`actions`,label:e.builder.columnActions,align:`end`}],l=(o.data??[]).map(n=>{let r=o6(n.label,t);return{id:n.key,cells:{name:(0,S.jsxs)(Y,{gap:0,children:[(0,S.jsx)(X,{weight:`semibold`,children:r}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:n.key})]}),archived:(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:n.deletedAt===void 0?``:a7(n.deletedAt,t)}),actions:(0,S.jsx)(J,{variant:`secondary`,size:`sm`,isPending:s.isPending&&s.variables===n.id,onPress:()=>s.mutate(n.id,{onSuccess:()=>Z({title:e.builder.typeRestored(r),description:e.builder.typeRestoredDescription,tone:`success`}),onError:t=>Z({title:e.builder.typeNotRestored,description:e9(t),tone:`danger`})}),children:e.builder.restoreType(r)})}}}),u=[{id:`name`,label:e.builder.columnName},{id:`kind`,label:e.builder.columnKind,isSecondary:!0},{id:`fields`,label:e.builder.columnFields},{id:`address`,label:e.builder.columnAddress,isSecondary:!0}],d=(r.data??[]).map(n=>({id:n.key,cells:{name:(0,S.jsxs)(Y,{gap:0,children:[(0,S.jsx)(X,{weight:`semibold`,children:o6(n.label,t)}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:n.key})]}),kind:n.kind===`single`?e.builder.kindSingle:e.builder.kindCollection,fields:e.builder.fieldCount(m_(n.fields).length),address:n.urlPattern??(0,S.jsx)(X,{tone:`muted`,children:e.builder.noAddress})}})),f=(0,S.jsx)(J,{icon:Gb,collapses:!0,onPress:()=>a(!0),children:e.builder.newType});return(0,S.jsxs)(Z_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(Y,{gap:6,children:[(0,S.jsx)(m2,{title:e.builder.title,description:e.builder.description,actions:f}),r.isPending&&(0,S.jsx)(K5,{shape:`table`}),r.isError&&(0,S.jsx)(q5,{error:r.error,onRetry:()=>void r.refetch()}),r.isSuccess&&d.length===0&&(0,S.jsx)(l2,{icon:_x,title:e.builder.emptyTitle,description:e.builder.emptyDescription,action:f}),r.isSuccess&&d.length>0&&(0,S.jsx)(u1,{label:e.builder.title,columns:u,rows:d,onRowAction:e=>n($.type(e))}),o.isError&&(0,S.jsx)(q5,{error:o.error,onRetry:()=>void o.refetch()}),o.isSuccess&&l.length>0&&(0,S.jsxs)(Y,{gap:3,children:[(0,S.jsxs)(Y,{gap:0,children:[(0,S.jsx)(LQ,{level:2,size:`md`,children:e.builder.archivedTitle}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:e.builder.archivedHelp})]}),(0,S.jsx)(u1,{label:e.builder.archivedTypes,columns:c,rows:l})]})]}),i&&(0,S.jsx)(Xre,{onClose:()=>a(!1)})]})}function Xre({onClose:e}){let{close:t,dialog:n}=L6(e),r=Q(),i=M6(),a=J5(),o=Lo(),[s,c]=(0,x.useState)(`collection`),l=s===`single`,[u,d]=(0,x.useState)(``),[f,p]=(0,x.useState)(null),[m,h]=(0,x.useState)(``),[g,_]=(0,x.useState)(Jre),v=f??T7(u),y=()=>{let e={...u.trim()===``&&{label:r.builder.typeNameNeeded},...v===``&&{key:r.builder.keyNeeded}};_(e),Object.keys(e).length>0||o.mutate({key:v,kind:s,label:{[i.split(`-`)[0]??i]:u.trim()},...m.trim()!==``&&{urlPattern:m.trim()}},{onSuccess:e=>{Z({title:r.builder.typeCreated(u.trim()),description:r.builder.typeCreatedDescription,tone:`success`}),t(),a($.type(e.key))},onError:e=>{let t=e instanceof Mo?e.issues:[];_(t.length>0?Object.fromEntries(t.map(t=>[String(t.path[0]??`key`),e.message])):{key:e9(e)}),Z({title:r.builder.typeNotCreated,description:e9(e),tone:`danger`})}})};return(0,S.jsx)(CQ,{...n,title:r.builder.newTypeTitle,closeLabel:r.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(J,{variant:`secondary`,onPress:t,children:r.editor.cancel}),(0,S.jsx)(J,{isPending:o.isPending,onPress:y,children:r.builder.typeCreate})]}),children:(0,S.jsxs)(jQ,{label:r.builder.newTypeTitle,gap:4,onSubmit:y,children:[(0,S.jsxs)(Y,{gap:2,children:[(0,S.jsx)(C$,{label:r.builder.typeKind,selected:s,onChange:e=>c(e),options:[{id:`collection`,label:r.builder.kindCollection},{id:`single`,label:r.builder.kindSingle}]}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:l?r.builder.kindSingleHelp:r.builder.kindCollectionHelp})]}),(0,S.jsx)(x1,{label:r.builder.typeName,description:l?r.builder.typeNameHelpSingle:r.builder.typeNameHelp,value:u,onChange:d,isRequired:!0,autoFocus:!0,autoComplete:`off`,...g.label!==void 0&&{errorMessage:g.label}}),(0,S.jsx)(x1,{label:r.builder.typeKey,description:r.builder.typeKeyHelp,value:v,onChange:p,isRequired:!0,autoComplete:`off`,...g.key!==void 0&&{errorMessage:g.key}}),(0,S.jsx)(x1,{label:l?r.builder.typeAddressSingle:r.builder.typeAddress,description:l?r.builder.typeAddressHelpSingle:r.builder.typeAddressHelp,value:m,onChange:h,autoComplete:`off`,...g.urlPattern!==void 0&&{errorMessage:g.urlPattern}})]})})}var Zre={draft:`neutral`,scheduled:`info`,published:`success`,unpublishedChanges:`warning`},Qre={all:()=>!0,published:e=>e===`published`||e===`unpublishedChanges`,drafts:e=>e===`draft`,changed:e=>e===`unpublishedChanges`},$re=e=>e===void 0?{}:{src:e},eie=200;function tie(){let e=Q(),t=M6(),n=J5(),{typeKey:r=``}=ea(),i=Fo(),a=Qo({type:r,limit:eie}),o=ns(),s=Q6(),[c,l]=(0,x.useState)(`all`),[u,d]=(0,x.useState)(``);if(i.isPending)return(0,S.jsx)(K5,{});if(i.isError)return(0,S.jsx)(q5,{error:i.error,onRetry:()=>void i.refetch()});let f=i.data.find(e=>e.key===r);if(!f)return(0,S.jsx)(l2,{icon:fy,title:e.contentList.typeNotFoundTitle,description:e.contentList.typeNotFoundDescription});let p=o6(f.label,t),m=_6(a.data?.items??[],t),h=m.some(e=>e.versions.length>1)||new Set(m.map(e=>e.primary.locale)).size>1;if(f.kind===`single`){if(f.inSettings===!0)return(0,S.jsx)(Za,{to:$.settingsPage(f.key),replace:!0});if(a.isPending)return(0,S.jsx)(K5,{shape:`form`});if(a.isError)return(0,S.jsx)(q5,{error:a.error,onRetry:()=>void a.refetch()});let e=m[0]?.primary;return(0,S.jsx)(Za,{to:e?$.entry(f.key,e.id):$.newEntry(f.key),replace:!0})}let g=e=>j_(f)&&e.slug===`index`,_=u.trim(),v=[...m.filter(({primary:e})=>g(e)),...m.filter(({primary:e})=>!g(e))].filter(({primary:e,versions:t})=>Qre[c](m6(e))?_===``||t.some(e=>d6(e,_)):!1),y=(f.list?.fieldPaths??[]).flatMap((e,t)=>{let n=f6(f,{},e);return n?[{id:`field-${t}`,path:e,field:n.field}]:[]}),b=f.list?.imagePath!==void 0,C=new Map((o.data??[]).map(e=>[e.name,v8(e)])),w=[{id:`title`,label:e.contentList.columnTitle},...y.map(({id:e,field:n})=>({id:e,label:o6(n.label,t),align:s(n.type)?.summaryAlign??`start`})),{id:`status`,label:e.contentList.columnStatus},...h?[{id:`languages`,label:e.contentList.columnLanguages,isSecondary:!0}]:[],{id:`updated`,label:e.contentList.columnUpdated,isSecondary:!0}],T=v.map(({primary:n,versions:r})=>{let i=m6(n),a=r.reduce((e,t)=>t.updatedAt>e?t.updatedAt:e,n.updatedAt);return{id:n.id,cells:{title:(0,S.jsxs)(zQ,{gap:3,children:[b&&(0,S.jsx)(A1,{...$re(C.get(p6(f,n.data)??``))}),(0,S.jsxs)(Y,{gap:0,children:[(0,S.jsxs)(zQ,{gap:2,children:[(0,S.jsx)(X,{weight:`semibold`,children:c6(f,n.data)??e.contentList.untitled}),g(n)&&(0,S.jsx)(_1,{tone:`info`,children:e.contentList.homePage})]}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,mono:!0,children:v6(f,n)??n.slug})]})]}),...Object.fromEntries(y.map(({id:e,path:t,field:r})=>[e,(0,S.jsx)($6,{field:r,value:f6(f,n.data,t)?.value},e)])),status:(0,S.jsx)(_1,{tone:Zre[i],children:e.status[i]}),...h&&{languages:(0,S.jsx)(zQ,{gap:1,children:r.map(e=>(0,S.jsx)(_1,{children:e.locale.toUpperCase()},e.id))})},updated:(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:a7(a,t)})}}}),E=(0,S.jsx)(J,{icon:Gb,collapses:!0,onPress:()=>n($.newEntry(f.key)),children:e.contentList.newEntry});return(0,S.jsx)(Z_,{paddingX:12,paddingY:10,children:(0,S.jsxs)(Y,{gap:6,children:[(0,S.jsx)(m2,{title:p,actions:E,...a.data&&{description:e.contentList.description(m.length)}}),a.isPending&&(0,S.jsx)(K5,{shape:`table`}),a.isError&&(0,S.jsx)(q5,{error:a.error,onRetry:()=>void a.refetch()}),a.isSuccess&&m.length===0&&(0,S.jsx)(l2,{icon:Ny,title:e.contentList.emptyTitle(p),description:e.contentList.emptyDescription}),a.isSuccess&&m.length>0&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(zQ,{justify:`between`,gap:4,wrap:!0,children:[(0,S.jsx)(C$,{label:e.contentList.filter,selected:c,onChange:e=>l(e),options:[{id:`all`,label:e.contentList.filterAll},{id:`published`,label:e.contentList.filterPublished},{id:`drafts`,label:e.contentList.filterDrafts},{id:`changed`,label:e.contentList.filterChanged}]}),(0,S.jsx)(Z_,{maxWidth:`xs`,grow:!0,children:(0,S.jsx)(h$,{label:e.contentList.search(p),placeholder:e.contentList.searchPlaceholder,clearLabel:e.contentList.clearSearch,value:u,onChange:d})})]}),T.length===0?(0,S.jsx)(l2,{icon:sx,title:e.contentList.noMatchesTitle,description:e.contentList.noMatchesDescription}):(0,S.jsx)(u1,{label:p,columns:w,rows:T,onRowAction:e=>n($.entry(f.key,e))})]})]})})}function nie(e,t){let n=[],r;for(let i of e){let e=n.at(-1);e!==void 0&&r!==void 0&&r.actorId===i.actorId&&r.status===i.status&&r.revision!==t&&i.revision!==t&&Date.parse(r.createdAt)-Date.parse(i.createdAt)<6e5?e.earlier.push(i):n.push({latest:i,earlier:[]}),r=i}return n}var t9=(e,t)=>JSON.stringify(e??null)===JSON.stringify(t??null);function rie({type:e,entry:t,hasChanges:n,onReverted:r,onClose:i}){let a=Q(),o=M6(),s=_s(t.id),c=pc(),l=vs(),{close:u,dialog:d}=L6(i),f=m_(e.fields),p=s.data??[],m=nie(p,t.published?.revision),[h,g]=(0,x.useState)(new Set),_=(e,t)=>{if(!t)return a.history.first;let n=f.filter(n=>!t9(e.data[n.id],t.data[n.id])).map(e=>o6(e.label,o));return n.length>0?a.history.changed(n):e.status===t.status?e.status===`published`?a.history.published:a.history.saved:e.status===`published`?a.history.published:a.history.unpublished},v=e=>{let n=a7(e.createdAt,o);l.mutate({id:t.id,revision:e.revision,expectedRevision:t.revision},{onSuccess:e=>{Z({title:a.history.broughtBack(n),description:a.history.broughtBackDescription,tone:`success`}),r(e),u()},onError:e=>Z({title:a.history.notBroughtBack,description:e.message,tone:`danger`})})};return(0,S.jsx)(CQ,{...d,placement:`side`,title:a.history.title,closeLabel:a.history.close,children:s.isPending?(0,S.jsx)(K5,{shape:`summary`}):s.isError?(0,S.jsx)(q5,{error:s.error,onRetry:()=>void s.refetch()}):(0,S.jsxs)(Y,{gap:6,children:[(0,S.jsx)(X,{tone:`muted`,children:n?a.history.saveFirst:a.history.help}),m.map(e=>{let r=h.has(e.latest.revision),i=r?[e.latest,...e.earlier]:[e.latest],s=p[p.indexOf(e.earlier.at(-1)??e.latest)+1];return(0,S.jsxs)(Y,{gap:4,children:[i.map(e=>{let i=(c.data??[]).find(t=>t.id===e.actorId)?.name,u=e.revision===t.revision;return(0,S.jsxs)(Y,{gap:2,children:[(0,S.jsxs)(zQ,{gap:2,children:[u&&(0,S.jsx)(_1,{tone:`info`,children:a.history.current}),t.published?.revision===e.revision&&(0,S.jsx)(_1,{tone:`success`,children:a.history.onSite}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:a.history.when(a7(e.createdAt,o),i)})]}),(0,S.jsx)(X,{children:_(e,r?p[p.indexOf(e)+1]:s)}),!u&&!t9(e.data,t.data)&&(0,S.jsx)(zQ,{children:(0,S.jsx)(J,{variant:`secondary`,size:`sm`,isDisabled:n||l.isPending,isPending:l.isPending&&l.variables?.revision===e.revision,onPress:()=>v(e),children:a.history.bringBack})})]},e.revision)}),e.earlier.length>0&&(0,S.jsxs)(zQ,{gap:2,children:[(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:a.history.sitting(e.earlier.length+1)}),(0,S.jsx)(J,{variant:`ghost`,size:`sm`,onPress:()=>g(t=>{let n=new Set(t);return r?n.delete(e.latest.revision):n.add(e.latest.revision),n}),children:r?a.history.showAsOne:a.history.showEach})]})]},e.latest.revision)})]})})}var n9=e=>String(e).padStart(2,`0`),iie=e=>`${e.getFullYear()}-${n9(e.getMonth()+1)}-${n9(e.getDate())}`,aie=Array.from({length:48},(e,t)=>`${n9(Math.floor(t/2))}:${t%2==0?`00`:`30`}`);function r9(e,t){return new Intl.DateTimeFormat(t,{dateStyle:`medium`,timeStyle:`short`}).format(new Date(e))}function oie({entry:e,hasChanges:t,onClose:n}){let r=Q(),i=M6(),a=hs(),o=gs(),{close:s,dialog:c}=L6(n),[l]=(0,x.useState)(()=>{if(e.publishAt!==void 0)return new Date(e.publishAt);let t=new Date;return t.setDate(t.getDate()+1),t.setHours(9,0,0,0),t}),[u,d]=(0,x.useState)(iie(l)),[f,p]=(0,x.useState)(`${n9(l.getHours())}:${l.getMinutes()<30?`00`:`30`}`),[m,h]=(0,x.useState)(null),g=a.isPending||o.isPending,_=e=>new Intl.DateTimeFormat(i,{timeStyle:`short`}).format(new Date(`2000-01-01T${e}:00`)),v=()=>{if(u===null){h(r.schedule.dayMissing);return}h(null);let t=new Date(`${u}T${f}:00`).toISOString();a.mutate({id:e.id,at:t,expectedRevision:e.revision},{onSuccess:e=>{Z({title:r.schedule.set,description:r.schedule.setDescription(r9(e.publishAt??t,i)),tone:`success`}),s()},onError:e=>{let t=e instanceof Mo?e.issues.find(e=>e.path[0]===`publishAt`):void 0;t?h(t.message):Z({title:r.schedule.notSet,description:e.message,tone:`danger`})}})},y=()=>o.mutate(e.id,{onSuccess:()=>{Z({title:r.schedule.removed,tone:`success`}),s()},onError:e=>Z({title:r.schedule.notRemoved,description:e.message,tone:`danger`})});return(0,S.jsx)(CQ,{...c,title:r.schedule.title,closeLabel:r.schedule.close,footer:(0,S.jsxs)(S.Fragment,{children:[e.publishAt!==void 0&&(0,S.jsx)(J,{variant:`ghost`,isDisabled:g,isPending:o.isPending,onPress:y,children:r.schedule.remove}),(0,S.jsx)(J,{variant:`secondary`,isDisabled:g,onPress:s,children:r.schedule.cancel}),(0,S.jsx)(J,{isDisabled:g||t,isPending:a.isPending,onPress:v,children:e.publishAt===void 0?r.schedule.confirm:r.schedule.change})]}),children:(0,S.jsxs)(Y,{gap:4,children:[e.publishProblem!==void 0&&(0,S.jsx)(X,{tone:`danger`,children:r.schedule.missed(e.publishProblem)}),e.publishAt!==void 0&&(0,S.jsx)(X,{children:r.schedule.current(r9(e.publishAt,i))}),(0,S.jsx)(X,{tone:`muted`,children:t?r.schedule.saveFirst:r.schedule.help}),(0,S.jsxs)(zQ,{gap:3,align:`start`,children:[(0,S.jsx)(dQ,{label:r.schedule.day,value:u,onChange:d,isRequired:!0,...m!==null&&{errorMessage:m}}),(0,S.jsx)(j$,{label:r.schedule.time,value:f,onChange:p,options:aie.map(e=>({id:e,label:_(e)}))})]}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:r.schedule.zone(Intl.DateTimeFormat().resolvedOptions().timeZone)})]})})}var sie=e=>e.startsWith(`/`)&&!e.startsWith(`//`);function cie(){let e=window.open(``,`_blank`);return{show:t=>{if(!sie(t)){e?.close();return}let n=new URL(t,window.location.origin).href;e?e.location.href=n:window.location.assign(n)},close:()=>e?.close()}}function i9(e=`/`){window.open(new URL(e,window.location.origin).href,`_blank`,`noopener`)}function lie(e){return e.normalize(`NFKD`).replace(/\p{M}/gu,``).toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)}function uie(e,t){if(t.type===`set`){let n=t.next(e.present);return t.same(n,e.present)?e:{past:t.mark!==void 0&&t.mark===e.mark&&t.at-e.at<700&&e.past.length>0?e.past:[...e.past,e.present].slice(-100),present:n,future:[],mark:t.mark,at:t.at}}if(t.type===`settle`)return{...e,present:t.value,mark:void 0};if(t.type===`restart`)return{past:[],present:t.value,future:[],mark:void 0,at:0};if(t.type===`undo`){let t=e.past.at(-1);return t===void 0?e:{past:e.past.slice(0,-1),present:t,future:[e.present,...e.future],mark:void 0,at:0}}let[n,...r]=e.future;return n===void 0?e:{past:[...e.past,e.present],present:n,future:r,mark:void 0,at:0}}function die(e,t){let[n,r]=(0,x.useReducer)(uie,{past:[],present:e,future:[],mark:void 0,at:0}),i=(0,x.useCallback)((e,n)=>r({type:`set`,next:e,mark:n,at:Date.now(),same:t}),[t]),a=(0,x.useCallback)(e=>r({type:`settle`,value:e}),[]),o=(0,x.useCallback)(e=>r({type:`restart`,value:e}),[]),s=(0,x.useCallback)(()=>r({type:`undo`}),[]),c=(0,x.useCallback)(()=>r({type:`redo`}),[]);return{value:n.present,set:i,settle:a,restart:o,undo:s,redo:c,canUndo:n.past.length>0,canRedo:n.future.length>0}}function fie(e){let t=_a(({currentLocation:t,nextLocation:n})=>e&&t.pathname!==n.pathname);return(0,x.useEffect)(()=>{if(!e)return;let t=e=>e.preventDefault();return window.addEventListener(`beforeunload`,t),()=>window.removeEventListener(`beforeunload`,t)},[e]),(0,x.useEffect)(()=>{t.state===`blocked`&&!e&&t.proceed()},[t,e]),{isAsking:t.state===`blocked`,leave:()=>t.proceed?.(),stay:()=>t.reset?.()}}function pie(e){return(e.metaKey||e.ctrlKey)&&!e.altKey&&!e.shiftKey&&e.key.toLowerCase()===`s`}function mie(e){let t=(0,x.useRef)(e);(0,x.useEffect)(()=>{t.current=e}),(0,x.useEffect)(()=>{let e=e=>{!e.defaultPrevented&&pie(e)&&(e.preventDefault(),t.current())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[])}var a9=()=>typeof window.matchMedia==`function`?window.matchMedia(`(max-width: 639px)`):null;function hie(){let[e,t]=(0,x.useState)(()=>a9()?.matches??!1);return(0,x.useEffect)(()=>{let e=a9();if(!e)return;let n=()=>t(e.matches);return e.addEventListener(`change`,n),n(),()=>e.removeEventListener(`change`,n)},[]),e}function gie(e){if(!(e.metaKey||e.ctrlKey)||e.altKey)return null;let t=e.key.toLowerCase();return t===`z`?e.shiftKey?`redo`:`undo`:t===`y`&&e.ctrlKey&&!e.shiftKey?`redo`:null}var _ie=[`checkbox`,`radio`,`button`,`submit`,`reset`,`range`,`color`,`file`,`image`];function vie(e){return e instanceof HTMLElement?e instanceof HTMLInputElement?!_ie.includes(e.type):e instanceof HTMLTextAreaElement||e.isContentEditable:!1}function yie(e,t){let n=(0,x.useRef)({undo:e,redo:t});(0,x.useEffect)(()=>{n.current={undo:e,redo:t}}),(0,x.useEffect)(()=>{let e=e=>{if(e.defaultPrevented||vie(e.target))return;let t=gie(e);t!==null&&(e.preventDefault(),n.current[t]())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[])}var o9=`velocity-cms:visual-editor-sizes`;function bie(){try{let e=JSON.parse(window.localStorage.getItem(o9)??`null`);if(typeof e!=`object`||!e)return;let{outline:t,form:n}=e;return typeof t==`number`&&typeof n==`number`?{outline:t,form:n}:void 0}catch{return}}function xie(){let[e,t]=(0,x.useState)(bie);return[e,e=>{t(e);try{window.localStorage.setItem(o9,JSON.stringify(e))}catch{}}]}var s9=class extends x.Component{state={error:null};static getDerivedStateFromError(e){return{error:e instanceof Error?e:Error(String(e))}}render(){return this.state.error===null?this.props.children:(0,S.jsx)(q5,{error:this.state.error,onRetry:()=>this.setState({error:null})})}};function Sie({type:e,entry:t}){let n=Po(),r=n.data!==null&&n.data!==void 0&&n.data.role!==`author`;return e.forDeals!==!0||t===null||!r?null:(0,S.jsx)(Cie,{typeId:e.id,entry:t.translationGroup})}function Cie({typeId:e,entry:t}){let n=Q(),r=Ws({about:{typeId:e,entry:t},limit:200}),i=lc(),a=pc(),o=Y5(),s=t7(i.data?.currency),[c,l]=(0,x.useState)(null),u=[{id:`title`,label:n.deals.columnTitle},{id:`value`,label:n.deals.columnValue,align:`end`}],d=(r.data?.items??[]).map(e=>{let t=i.data?.stages.find(t=>t.id===e.stage);return{id:e.id,cells:{title:(0,S.jsxs)(Y,{gap:1,children:[(0,S.jsx)(X,{weight:`semibold`,children:e.title}),t&&(0,S.jsx)(_1,{tone:X5[t.kind],children:o(t)})]}),value:(0,S.jsx)(X,{weight:`semibold`,children:s(e.value)})}}});return(0,S.jsxs)(MZ,{title:n.deals.entryDeals,children:[r.isPending&&(0,S.jsx)(K5,{shape:`table`}),r.isError&&(0,S.jsx)(q5,{error:r.error,onRetry:()=>void r.refetch()}),r.isSuccess&&d.length===0&&(0,S.jsx)(X,{tone:`muted`,children:n.deals.entryCardEmpty}),r.isSuccess&&d.length>0&&(0,S.jsx)(u1,{label:n.deals.entryDeals,columns:u,rows:d,onRowAction:e=>l(r.data.items.find(t=>t.id===e)??null)}),c!==null&&i.data&&(0,S.jsx)(p7,{deal:c,contact:{id:c.contactId},pipeline:i.data,team:a.data??[],onClose:()=>l(null)})]})}function wie(){let[e,t]=(0,x.useState)(0);return(0,x.useEffect)(()=>{let e=e=>{e.key===`Escape`&&!e.defaultPrevented&&t(e=>e+1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[]),e}var c9=[`phone`,`tablet`,`full`];function l9({width:e,onChange:t,isIconOnly:n=!1}){let r=Q(),i={phone:r.editor.pagePhone,tablet:r.editor.pageTablet,full:r.editor.pageDesktop},a={phone:xx,tablet:Lee,full:Dee};return(0,S.jsx)(C$,{label:r.editor.pageWidth,selected:e,onChange:e=>t(c9.find(t=>t===e)??`full`),options:c9.map(e=>({id:e,label:i[e],icon:a[e]})),areLabelsHidden:n})}var Tie=12e5,u9=e=>e.split(`?`)[0];function Eie({entry:e,data:t,title:n,width:r,onWidthChange:i,isWhole:a,onWhole:o,onFormWanted:s,onUndo:c,onRedo:l,onSave:u,also:d=[]}){let f=Q(),p=wie(),m=r8(),h=Dc(e?.id,e?.revision),[g,_]=(0,x.useState)(null),v=h.data?.path;v!==void 0&&v!==g?.path&&(g===null||u9(v)!==u9(g.path)||Date.now()-g.at>Tie)&&_({path:v,at:Date.now()});let[y,b]=(0,x.useState)(null),C=R6(y),w=e=>{y?.answer(e),b(null)},T=(C?.typed??``).trim(),E=T!==``&&!__(T),D=e===null?f.editor.pageNotYet:h.error?f.editor.pageNotShown(h.error.message):f.editor.pageLoading;return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(l3,{label:f.editor.pageFrame(n),...e!==null&&g!==null&&{address:g.path},draft:e===null?``:JSON.stringify({id:e.id,data:t,...d.length>0&&{with:d}}),width:r,isBare:a,...!a&&{action:(0,S.jsx)(J,{variant:`secondary`,size:`sm`,icon:See,isDisabled:e===null,onPress:o,children:f.editor.visualOpen}),toolbar:(0,S.jsx)(l9,{width:r,onChange:i})},emptyText:D,...c&&{onUndo:c},...l&&{onRedo:l},...u&&{onSave:u},escapes:p,...m&&{onSectionPress:(e,t,n)=>{m.press(e,t),(n===!0||t===void 0||m.typable[e]?.includes(t)!==!0)&&s()},onTextLink:(e,t)=>b({href:e,typed:e,answer:t}),typable:m.typable,onWords:m.typed,onSectionAction:m.acted,onSectionMove:m.dragged,onSectionPicture:m.pictured,onSectionLink:m.linked,onSectionItem:m.itemActed,onSectionSwatch:m.swatched,onSectionSlot:m.slotted,...m.tools!==void 0&&{tools:m.tools}},...m?.opened!==void 0&&{shownSectionId:m.opened,shownAt:m.openedAt}}),(0,S.jsx)(CQ,{isOpen:y!==null,onOpenChange:e=>{e||w(null)},title:f.editor.richText.link,closeLabel:f.editor.close,size:`sm`,footer:(0,S.jsxs)(S.Fragment,{children:[C?.href!==``&&(0,S.jsx)(J,{variant:`secondary`,onPress:()=>w(``),children:f.editor.richText.linkRemove}),(0,S.jsx)(J,{isDisabled:T===``||E,onPress:()=>w(T),children:f.editor.richText.linkApply})]}),children:(0,S.jsx)(jQ,{label:f.editor.richText.link,onSubmit:()=>{T!==``&&!E&&w(T)},children:(0,S.jsx)(x1,{label:f.editor.richText.linkAddress,description:f.editor.richText.linkHelp,value:C?.typed??``,onChange:e=>b(t=>t&&{...t,typed:e}),autoFocus:!0,...E&&{errorMessage:f.editor.pageTextLinkProblem}})})})]})}function Die({onChosen:e}){let t=Q(),n=r8(),r=n?.tools?.sections??{},i=(e,t=0)=>{let n=r[e]?.list??``;if(n===``||t>3)return t;let[a=``]=n.split(`:`);return i(a,t+1)},a=Object.entries(r).map(([e,t])=>({id:e,label:t.name,depth:Math.min(i(e),3)})),[o,s]=(0,x.useState)(void 0),c=n?.opened,l=n?.pressed;return(0,x.useEffect)(()=>{c!==void 0&&s(c)},[c]),(0,x.useEffect)(()=>{l!==void 0&&s(l.id)},[l]),(0,S.jsx)(z3,{title:t.editor.outlineTitle,emptyText:t.editor.outlineEmpty,items:a,...o!==void 0&&o in r&&{currentId:o},onChoose:t=>{s(t),n?.open(t),e()}})}var Oie=new Map;function kie(e){let t=Q6(),n=(Fo().data??[]).filter(e=>e.kind===`single`&&e.inSettings===!0),r=es(n.map(e=>({type:e.key,limit:200})));return n.flatMap((n,i)=>{let a=[...r[i]?.data?.items??[]].sort((e,t)=>e.locale.localeCompare(t.locale)),o=a.find(t=>t.locale===e)??a[0];if(!o)return[];let s=m_(n.fields).filter(e=>{let n=t(e.type);return n?.isLook===!0||(n?.swatches?.(e,o.data[e.id],t)??[]).length>0});return s.length>0?[{type:n,entry:o,fields:s}]:[]})}function d9(e,t){return e.flatMap(({entry:e})=>{let n=t[e.id];return n!==void 0&&!g6(n,e.data)?[{id:e.id,data:n}]:[]})}function Aie({looks:e,draft:t,onChange:n}){let r=Q(),i=M6(),a=us(),o=ds(),[s,c]=(0,x.useState)(!1),l=d9(e,t);async function u(){c(!0);try{for(let{id:t,data:n}of l){let r=e.find(e=>e.entry.id===t);if(!r)continue;let i=await a.mutateAsync({id:t,changes:{slug:r.entry.slug,data:n,expectedRevision:r.entry.revision}});await o.mutateAsync({id:t,expectedRevision:i.revision})}n({}),Z({title:r.editor.themePublished,description:r.editor.themePublishedDescription,tone:`success`})}catch(e){Z({title:r.editor.themeNotPublished,description:e instanceof Error?e.message:String(e),tone:`danger`})}c(!1)}return(0,S.jsx)(MZ,{title:r.editor.themeTitle,description:r.editor.themeHelp(e.map(e=>o6(e.type.label,i)).join(`, `)),footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(J,{isDisabled:l.length===0,isPending:s,onPress:()=>void u(),children:r.editor.themePublish}),(0,S.jsx)(J,{variant:`ghost`,isDisabled:l.length===0||s,onPress:()=>n({}),children:r.editor.themeDiscard})]}),children:e.map(({type:e,entry:r,fields:i})=>(0,S.jsx)(Z6,{fields:i,values:t[r.id]??r.data,onChange:(e,i)=>n({...t,[r.id]:h6(t[r.id]??r.data,e.id,i)}),pathOf:t=>`${e.key}.${t.key}`,problems:Oie,perRow:1},r.id))})}var jie={draft:`neutral`,scheduled:`info`,published:`success`,unpublishedChanges:`warning`},f9=new Map,p9=`view`,m9=`visual`,Mie=2500;function h9({type:e,entry:t,onCreated:n,versions:r=[],onSwitch:i,onTrashed:a,embedded:o=!1}){let s=Q(),c=M6(),l=ls(),u=us(),d=ds(),f=fs(),p=ys(),m=ms(),h=Tc(),g=Po(),_=die(t?.data??{},g6),v=_.value,[y,b]=(0,x.useState)(null),[C,w]=(0,x.useState)(null),[T,E]=(0,x.useState)(f9),[D,O]=(0,x.useState)(null),[k,A]=(0,x.useState)(0),[j,M]=(0,x.useState)(!1),[N,P]=(0,x.useState)(!1),[F,ee]=(0,x.useState)(!1),[I,te]=xie(),[ne,re]=(0,x.useState)(!1),[ie,ae]=Co(),oe=Xi(),se=ie.get(p9)===m9,ce=(0,x.useRef)(!1),le=e=>{e!==se&&(e?(ce.current=!0,ae(e=>{let t=new URLSearchParams(e);return t.set(p9,m9),t})):ce.current?(ce.current=!1,oe(-1)):ae(e=>{let t=new URLSearchParams(e);return t.delete(p9),t},{replace:!0}))},[ue,de]=(0,x.useState)(!0),[fe,pe]=(0,x.useState)(()=>window.innerWidth<640?`phone`:`full`),[L,me]=(0,x.useState)({}),[he,ge]=(0,x.useState)(!1),_e=kie(t?.locale),ve=d9(_e,L),ye=o6(e.label,c),be=c6(e,v),xe=e.kind===`single`,Se=y??t?.slug??(xe?e.key:lie(be??``)),Ce=j_(e),we=Ce?A_(Se):pee(Se),Te=t===null||Se!==t.slug||!g6(v,t.data),Ee=t?m6(t):`draft`,De=fie(((t===null?y!==null||Object.keys(v).length>0:Te)||ve.length>0)&&D===null),Oe=(0,x.useRef)(t?.revision??0);Oe.current=Math.max(Oe.current,t?.revision??0);let ke=(0,x.useRef)(null),Ae=(0,x.useRef)(null),je=(0,x.useRef)(v);je.current=v;let[Me,Ne]=(0,x.useState)(!1),Pe=_.settle;(0,x.useEffect)(()=>{if(t===null||!Te||D!==null||!we||Ae.current?.data===v&&Ae.current.slug===Se)return;let e=setTimeout(()=>{if(ke.current!==null)return;let e={data:v,slug:Se};Ae.current=e;let n=Le(t.id,Se,v).then(t=>(Ne(!1),je.current===e.data&&(g6(t.data,e.data)||Pe(t.data),b(null)),t),()=>(Ne(!0),null));ke.current={...e,done:n},n.finally(()=>{ke.current=null,A(e=>e+1)})},Mie);return()=>clearTimeout(e)},[v,Se,Te,D,we,t?.id,k]);function Fe(e,t){let n=t instanceof Mo?t.issues:[],r=n.find(e=>e.path[0]===hee);r&&w(r.message),E(new Map(n.map(e=>[e.path.join(`.`),e.message]))),Z({title:e,description:n.length>0?s.editor.fieldsNeedAttention(n.length):t instanceof Error?t.message:String(t),tone:`danger`})}async function Ie(){if(t===null){let t=await l.mutateAsync({type:e.key,slug:Se,data:v});return n(t),t}let r=ke.current;if(r!==null){let e=await r.done;if(e!==null&&r.data===v&&r.slug===Se)return e}else if(!Te)return t;return Le(t.id,Se,v)}async function Le(e,t,n){let r=await u.mutateAsync({id:e,changes:{slug:t,data:n,expectedRevision:Oe.current}});return Oe.current=Math.max(Oe.current,r.revision),r}async function Re(e){if(!we){w(Se===``?s.editor.slugMissing:Ce?s.editor.slugPathInvalid:s.editor.slugInvalid);return}O(e),E(f9);let t;try{t=await Ie(),_.settle(t.data),b(null)}catch(e){Fe(s.editor.notSaved,e),O(null);return}if(e===`save`)Z({title:s.editor.draftSaved,description:s.editor.draftSavedDescription,tone:`success`});else try{await d.mutateAsync({id:t.id,expectedRevision:t.revision}),Z({title:s.editor.published,description:s.editor.publishedDescription,tone:`success`})}catch(e){Fe(s.editor.notPublished,e)}O(null)}async function ze(){if(!we){w(Se===``?s.editor.slugMissing:Ce?s.editor.slugPathInvalid:s.editor.slugInvalid);return}let e=cie();O(`preview`),E(f9);try{let t=await Ie();_.settle(t.data),b(null);try{e.show((await h.mutateAsync(t.id)).path)}catch(t){e.close(),Fe(s.editor.notPreviewed,t)}}catch(t){e.close(),Fe(s.editor.notSaved,t)}O(null)}async function Be(e){O(`unpublish`);try{await f.mutateAsync(e),Z({title:s.editor.unpublished,description:s.editor.unpublishedDescription})}catch(e){Fe(s.editor.notUnpublished,e)}M(!1),O(null)}async function Ve(e){O(`trash`);try{await p.mutateAsync(e),Z({title:s.editor.trashed(be??s.contentList.untitled),description:s.editor.trashedDescription}),a?.()}catch(e){Fe(s.editor.notTrashed,e),P(!1),O(null)}}async function He(e){O(`duplicate`);try{let t=await m.mutateAsync(e);Z({title:s.editor.duplicated(be??s.contentList.untitled),description:s.editor.duplicatedDescription,tone:`success`}),i?.(t.id)}catch(e){Fe(s.editor.notDuplicated,e)}O(null)}let Ue=D!==null,We=()=>{!Ue&&Te&&Re(`save`)};mie(We);let Ge=_e.length>0&&g.data!==null&&g.data!==void 0&&g.data.role!==`author`,{undo:Ke,redo:qe}=_,Je=(0,x.useCallback)(()=>{Ke(),E(f9)},[Ke]),Ye=(0,x.useCallback)(()=>{qe(),E(f9)},[qe]);yie(Je,Ye);let Xe=t?.status===`published`?v6(e,{locale:t.locale,slug:t.slug,data:t.data}):null,Ze=U_(e),Qe=hie(),$e=[...Qe&&Ze?[{id:`preview`,label:s.editor.preview,icon:uy}]:[],...Xe===null?[]:[{id:`view`,label:s.editor.viewOnSite,icon:oy}],...t?.status===`published`?[{id:`unpublish`,label:s.editor.unpublish,icon:cy}]:[],...t!==null&&g.data?.role!==`author`?[{id:`schedule`,label:t.publishAt===void 0?s.editor.schedule:s.editor.scheduleChange,icon:_ee}]:[],...t===null?[]:[{id:`history`,label:s.editor.history,icon:$b}],...t!==null&&!xe?[{id:`duplicate`,label:s.editor.duplicate,icon:ey}]:[],...t!==null&&!xe?[{id:`trash`,label:s.editor.trash,icon:jx,tone:`danger`}]:[]],et=Ce?`[...slug]`:`[slug]`,tt=e.urlPattern?.includes(et)?e.urlPattern:void 0,nt=e=>Ce&&Se===`index`?s.editor.slugHomeDescription(e.replace(et,``)):(Ce?s.editor.slugPathDescription:s.editor.slugDescription)(e.replace(et,Se===``?`…`:Se)),rt=(e,t)=>{_.set(n=>h6(n,e.id,t),e.id),E(t=>new Map([...t].filter(([t])=>t!==e.key&&!t.startsWith(`${e.key}.`))))},it=m_(e.fields),at=new Set((e.sections??[]).flatMap(e=>e.fieldIds)),ot=it.filter(e=>!at.has(e.id)),st=[...(e.sections??[]).map(e=>({key:e.key,title:o6(e.label,c),aside:e.aside===!0,fields:e.fieldIds.flatMap(e=>it.filter(t=>t.id===e))})),...ot.length>0?[{key:`$rest`,...e.sections?.length&&{title:s.editor.otherFields},aside:!1,fields:ot}]:[]],ct=Q6(),lt=Ze&&it.some(e=>ct(e.type)?.showsPage===!0),ut=F5().panels.filter(t=>(t.types===void 0||t.types.includes(e.key))&&(t.pagesOnly!==!0||Ze)).map(n=>(0,S.jsx)(MZ,{title:n.title,children:(0,S.jsx)(s9,{children:(0,S.jsx)(n.Component,{type:e,entry:t,data:v})})},`${n.plugin}/${n.id}`)),dt=e.forDeals===!0&&t!==null&&g.data!==null&&g.data!==void 0&&g.data.role!==`author`,R=dt?(0,S.jsx)(Sie,{type:e,entry:t}):null,ft=t===null?s.editor.notSavedYet:Te?Me?s.editor.notAutosaved:s.editor.unsavedChanges:t.publishAt===void 0?s.editor.saved(a7(t.updatedAt,c)):s.editor.goesOut(r9(t.publishAt,c)),pt=e=>(0,S.jsx)(MZ,{...e.title!==void 0&&{title:e.title},children:(0,S.jsx)(Z6,{fields:e.fields,values:v,onChange:rt,pathOf:e=>e.key,problems:T,...e.aside&&{perRow:1}})},e.key),mt=e=>pt({...e,aside:!0}),ht=xe?ye:be??(t?s.contentList.untitled:s.editor.newTitle),gt=(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(_1,{tone:jie[Ee],children:s.status[Ee]}),t?.publishProblem!==void 0&&(0,S.jsx)(_1,{tone:`danger`,children:s.editor.missedSchedule})]}),_t=e=>{if(e.startsWith(`language:`))return i?.(e.slice(9));if(e===`preview`)return void ze();if(e===`save`)return void Re(`save`);if(e===`undo`)return Je();if(e===`redo`)return Ye();if(e===`theme`)return he||de(!1),ge(!he);if(e===`view`)return i9(Xe??`/`);if(e===`schedule`)return re(!0);if(e===`history`)return ee(!0);if(e===`trash`)return P(!0);if(e===`duplicate`&&t)return void He(t.id);e===`unpublish`&&M(!0)},vt=t===null?[]:r.filter(e=>e.id!==t.id).map(e=>({id:`language:${e.id}`,label:s.editor.switchLanguage(s6(e.locale,c)),icon:zy,isDisabled:Ue})),yt=Qe?[{id:`undo`,label:s.editor.undo,icon:Px,isDisabled:!_.canUndo},{id:`redo`,label:s.editor.redo,icon:Zb,isDisabled:!_.canRedo},{id:`save`,label:s.editor.saveDraft,icon:ax,isDisabled:!Te}]:[],bt=Ze&&!Qe?[{id:`preview`,label:s.editor.preview,icon:uy,isDisabled:D===`preview`}]:[],xt=Qe?[...yt,...vt,...$e]:[...bt,...$e],St=[...yt,...Ge?[{id:`theme`,label:he?s.editor.themeHide:s.editor.theme,icon:Mee}]:[],...vt,...Ze&&!$e.some(e=>e.id===`preview`)?[{id:`preview`,label:s.editor.preview,icon:uy}]:[],...$e],Ct=(0,S.jsxs)(S.Fragment,{children:[t!==null&&r.length>1&&!Qe&&(0,S.jsx)(s$,{trigger:(0,S.jsx)(J,{variant:`ghost`,icon:zy,isDisabled:Ue,children:s6(t.locale,c)}),actions:vt,onAction:_t}),!Qe&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(gQ,{label:s.editor.undo,icon:Px,isDisabled:Ue||!_.canUndo,onPress:Je}),(0,S.jsx)(gQ,{label:s.editor.redo,icon:Zb,isDisabled:Ue||!_.canRedo,onPress:Ye})]}),xt.length>0&&(0,S.jsx)(s$,{trigger:(0,S.jsx)(gQ,{label:s.editor.more,icon:iy,isDisabled:Ue}),actions:xt,onAction:_t}),!Qe&&(0,S.jsx)(J,{variant:`secondary`,isDisabled:Ue||!Te,isPending:D===`save`,onPress:()=>void Re(`save`),children:s.editor.saveDraft}),(0,S.jsx)(J,{isDisabled:Ue||Ee===`published`&&!Te,isPending:D===`publish`,onPress:()=>void Re(`publish`),children:t?.status===`published`&&!Qe?s.editor.publishChanges:s.editor.publish})]});return(0,S.jsxs)(Y,{gap:0,fill:!0,children:[!(lt&&se)&&(0,S.jsx)(j2,{label:s.editor.saveBar,across:o?`section`:`screen`,...!xe&&{back:{href:$.contentList(e.key),label:ye}},title:ht,status:gt,note:ft,actions:Ct}),(0,S.jsx)(Z_,{paddingX:o?0:12,paddingY:8,grow:!0,children:(0,S.jsx)(jQ,{label:s.editor.form,gap:5,onSubmit:()=>void Re(`save`),children:lt?(0,S.jsx)(n8,{children:(0,S.jsxs)(b3,{paneLabel:s.editor.pagePane,view:se?`whole`:`beside`,isFormAway:ue,...I!==void 0&&{sizes:I},onSizesChange:te,resizeLabels:{outline:s.editor.resizeOutline,form:s.editor.resizeForm},outline:(0,S.jsx)(Die,{onChosen:()=>de(!1)}),outlineLabel:s.editor.outlineLabel,bar:(0,S.jsx)(j2,{across:`window`,label:s.editor.saveBar,back:{label:s.editor.visualClose,onPress:()=>le(!1)},title:ht,status:gt,note:ft,...!Qe&&{center:(0,S.jsx)(l9,{width:fe,onChange:pe,isIconOnly:!0})},actions:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(gQ,{label:ue?s.editor.visualShowForm:s.editor.visualHideForm,icon:ue?kb:Nee,onPress:()=>de(!ue)}),!Qe&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(gQ,{label:s.editor.undo,icon:Px,isDisabled:Ue||!_.canUndo,onPress:Je}),(0,S.jsx)(gQ,{label:s.editor.redo,icon:Zb,isDisabled:Ue||!_.canRedo,onPress:Ye})]}),(0,S.jsx)(s$,{trigger:(0,S.jsx)(gQ,{label:s.editor.more,icon:iy,isDisabled:Ue}),actions:St,onAction:_t}),!Qe&&(0,S.jsx)(J,{variant:`secondary`,isDisabled:Ue||!Te,isPending:D===`save`,onPress:()=>void Re(`save`),children:s.editor.saveDraft}),(0,S.jsx)(J,{variant:`brand`,isDisabled:Ue||Ee===`published`&&!Te,isPending:D===`publish`,onPress:()=>void Re(`publish`),children:t?.status===`published`&&!Qe?s.editor.publishChanges:s.editor.publish})]})}),pane:(0,S.jsx)(Eie,{entry:t,data:v,title:be??ye,width:fe,onWidthChange:pe,isWhole:se,onWhole:()=>{de(!0),le(!0)},onFormWanted:()=>de(!1),also:ve,onUndo:Je,onRedo:Ye,onSave:We}),children:[Ge&&he&&(0,S.jsx)(Aie,{looks:_e,draft:L,onChange:me}),st.filter(e=>!e.aside).map(mt),!xe&&(0,S.jsx)(MZ,{title:tt===void 0?s.editor.identifierSection:s.editor.addressSection,children:(0,S.jsx)(x1,{label:s.editor.slug,value:Se,onChange:e=>{b(e),w(null)},isRequired:!0,description:tt===void 0?s.editor.slugAsIdentifier:nt(tt),...C!==null&&{errorMessage:C}})}),R,st.filter(e=>e.aside).map(pt),ut]})}):xe&&ut.length===0&&!dt&&!st.some(e=>e.aside)?(0,S.jsx)(Y,{gap:6,children:st.map(pt)}):(0,S.jsx)(Q2,{asideLabel:s.editor.aside,aside:(0,S.jsxs)(S.Fragment,{children:[!xe&&(0,S.jsx)(MZ,{title:tt===void 0?s.editor.identifierSection:s.editor.addressSection,children:(0,S.jsx)(x1,{label:s.editor.slug,value:Se,onChange:e=>{b(e),w(null)},isRequired:!0,description:tt===void 0?s.editor.slugAsIdentifier:nt(tt),...C!==null&&{errorMessage:C}})}),R,st.filter(e=>e.aside).map(pt),ut]}),children:st.filter(e=>!e.aside).map(pt)})})}),ne&&t!==null&&(0,S.jsx)(oie,{entry:t,hasChanges:Te,onClose:()=>re(!1)}),F&&t!==null&&(0,S.jsx)(rie,{type:e,entry:t,hasChanges:Te,onReverted:e=>{_.restart(e.data),E(f9)},onClose:()=>ee(!1)}),(0,S.jsx)(o2,{isOpen:De.isAsking,onOpenChange:e=>{e||De.stay()},title:s.editor.leaveTitle,confirmLabel:s.editor.leave,cancelLabel:s.editor.keepEditing,tone:`danger`,onConfirm:De.leave,children:s.editor.leaveDescription}),t!==null&&(0,S.jsx)(o2,{isOpen:j,onOpenChange:M,title:s.editor.unpublishTitle,confirmLabel:s.editor.unpublish,cancelLabel:s.editor.cancel,tone:`danger`,isPending:D===`unpublish`,onConfirm:()=>void Be(t.id),children:s.editor.unpublishDescription}),t!==null&&(0,S.jsx)(o2,{isOpen:N,onOpenChange:P,title:s.editor.trashTitle,confirmLabel:s.editor.trash,cancelLabel:s.editor.cancel,tone:`danger`,isPending:D===`trash`,onConfirm:()=>void Ve(t.id),children:t.status===`published`?s.editor.trashDescriptionPublished:s.editor.trashDescription})]})}function Nie(){let e=Q(),t=M6(),n=J5(),{search:r}=Ji(),{typeKey:i=``,entryId:a=`new`}=ea(),o=a===`new`,s=Fo(),c=ts(),l=ss(o?null:a),u=Qo({type:i,limit:200}),[d,f]=(0,x.useState)(null);if(s.isPending||c.isPending)return(0,S.jsx)(K5,{shape:`form`});if(s.isError)return(0,S.jsx)(q5,{error:s.error,onRetry:()=>void s.refetch()});if(c.isError)return(0,S.jsx)(q5,{error:c.error,onRetry:()=>void c.refetch()});let p=s.data.find(e=>e.key===i);if(!p)return(0,S.jsx)(l2,{icon:fy,title:e.contentList.typeNotFoundTitle,description:e.contentList.typeNotFoundDescription});if(p.inSettings===!0)return(0,S.jsx)(Za,{to:$.settingsPage(p.key),replace:!0});let m=(0,S.jsx)(l2,{icon:fy,title:e.editor.notFoundTitle,description:e.editor.notFoundDescription,action:(0,S.jsx)(VQ,{href:$.contentList(p.key),children:e.editor.back(o6(p.label,t))})});if(!o){if(l.isPending)return(0,S.jsx)(K5,{shape:`form`});if(l.isError)return l.error instanceof Mo&&l.error.code===`not_found`?m:(0,S.jsx)(q5,{error:l.error,onRetry:()=>void l.refetch()});if(l.data.typeId!==p.id)return m;if(f_(l.data))return(0,S.jsx)(l2,{icon:jx,title:e.editor.inTrashTitle,description:e.editor.inTrashDescription,action:(0,S.jsx)(VQ,{href:$.trash,children:e.editor.openTrash})})}return(0,S.jsx)(h9,{type:p,entry:o?null:l.data??null,versions:o||!l.data?[]:(u.data?.items??[]).filter(e=>e.translationGroup===l.data.translationGroup).sort((e,t)=>e.locale.localeCompare(t.locale)),onSwitch:e=>n(`${$.entry(p.key,e)}${r}`),onTrashed:()=>n($.contentList(p.key)),onCreated:e=>{f(e.id),n(`${$.entry(p.key,e.id)}${r}`,{replace:!0,viewTransition:!1})}},a===d?`new`:a)}var Pie=[`name`,`email`,`phone`];function Fie({form:e,mayChange:t}){let n=Q(),r=M6(),i=Ds(),a={name:o6(e.label,r),fields:m_(e.fields),isPending:i.isPending,save:(t,n)=>i.mutate({id:e.id,changes:{fields:t,expectedRevision:e.revision}},n),canRequire:!0,tagsOf:t=>Pie.filter(n=>e.contact?.[n]===t.id).map(e=>(0,S.jsx)(_1,{children:n.forms.holds[e]},e)),words:{emptyDescription:n.forms.noFieldsDescription,nameHelp:n.forms.fieldNameHelp,removeDescription:n.forms.removeDescription}};return(0,S.jsx)(j7,{set:a,mayChange:t})}var g9={},_9=`:none`,v9=e=>e instanceof Error?e.message:String(e);function Iie({form:e,onClose:t}){let{close:n,dialog:r}=L6(t),i=Q(),a=M6(),o=a.split(`-`)[0]??a,s=Ds(),c=m_(e.fields),l=e=>c.find(t=>t.id===e)?.key??_9,[u,d]=(0,x.useState)(o6(e.label,a)),[f,p]=(0,x.useState)(e.open),[m,h]=(0,x.useState)(e.notify.join(`
79
+ `)),[g,_]=(0,x.useState)(l(e.contact?.name)),[v,y]=(0,x.useState)(l(e.contact?.email)),[b,C]=(0,x.useState)(l(e.contact?.phone)),[w,T]=(0,x.useState)(e.success?o6(e.success,a):``),[E,D]=(0,x.useState)(e.submitLabel?o6(e.submitLabel,a):``),[O,k]=(0,x.useState)(e.retentionDays??null),[A,j]=(0,x.useState)(e.startsDeal===!0),M=m_(dc().data?.contact??[]),[N,P]=(0,x.useState)(()=>Object.fromEntries(Object.entries(e.fills??{}).map(([e,t])=>[t,l(e)]))),[F,ee]=(0,x.useState)(g9),I=e=>[{id:_9,label:i.forms.noField},...c.filter(t=>t.type===e).map(e=>({id:e.key,label:o6(e.label,a)}))],te=(e,t)=>e.trim()===``?null:{...t,[o]:e.trim()},ne=()=>{if(u.trim()===``)return ee({label:i.forms.nameNeeded});ee(g9),s.mutate({id:e.id,changes:{label:{...e.label,[o]:u.trim()},open:f,notify:m.split(/[\n,;]+/),contact:{...g!==_9&&{name:g},...v!==_9&&{email:v},...b!==_9&&{phone:b}},success:te(w,e.success),submitLabel:te(E,e.submitLabel),retentionDays:O,fills:Object.fromEntries(Object.entries(N).flatMap(([e,t])=>t===_9?[]:[[t,e]])),startsDeal:A,expectedRevision:e.revision}},{onSuccess:()=>{Z({title:i.forms.saved,tone:`success`}),n()},onError:e=>{let t=e instanceof Mo?String(e.issues[0]?.path[0]??``):``;t!==``&&ee({[t]:v9(e)}),Z({title:i.forms.notSaved,description:v9(e),tone:`danger`})}})},re=i.forms.settingsTitle(o6(e.label,a));return(0,S.jsx)(CQ,{...r,placement:`side`,title:re,closeLabel:i.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(J,{variant:`secondary`,onPress:n,children:i.editor.cancel}),(0,S.jsx)(J,{isPending:s.isPending,onPress:ne,children:i.forms.save})]}),children:(0,S.jsxs)(jQ,{label:re,gap:4,onSubmit:ne,children:[(0,S.jsx)(x1,{label:i.forms.formName,value:u,onChange:d,isRequired:!0,autoComplete:`off`,...F.label!==void 0&&{errorMessage:F.label}}),(0,S.jsx)(e1,{label:i.forms.isOpen,isSelected:f,onChange:p}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:i.forms.isOpenHelp}),(0,S.jsx)(w1,{label:i.forms.notify,description:i.forms.notifyHelp,value:m,onChange:h,rows:3,...F.notify!==void 0&&{errorMessage:F.notify}}),(0,S.jsx)(j$,{label:i.forms.senderEmail,description:i.forms.senderHelp,options:I(`email`),value:v,onChange:y}),(0,S.jsx)(j$,{label:i.forms.senderName,options:I(`text`),value:g,onChange:_}),(0,S.jsx)(j$,{label:i.forms.senderPhone,options:I(`phone`),value:b,onChange:C}),M.map((e,t)=>(0,S.jsx)(j$,{label:i.forms.fills(o6(e.label,a)),...t===0&&{description:i.forms.fillsHelp},options:I(e.type),value:N[e.id]??_9,onChange:t=>P({...N,[e.id]:t})},e.id)),(0,S.jsx)(e1,{label:i.forms.startsDeal,isSelected:A,onChange:j}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:i.forms.startsDealHelp}),(0,S.jsx)(x1,{label:i.forms.success,description:i.forms.successHelp,value:w,onChange:T,autoComplete:`off`}),(0,S.jsx)(x1,{label:i.forms.submitLabel,description:i.forms.submitLabelHelp,value:E,onChange:D,autoComplete:`off`}),(0,S.jsx)(u$,{label:i.forms.retention,description:i.forms.retentionHelp,value:O,onChange:k,minValue:1,isInteger:!0,...F.retentionDays!==void 0&&{errorMessage:F.retentionDays}})]})})}var Lie=[`new`,`handled`,`spam`],y9=e=>e instanceof Error?e.message:String(e);function Rie({form:e}){let t=Q(),n=M6(),[r,i]=(0,x.useState)(`new`),a=js({formId:e.id,status:r,limit:200}),o=Ms(e.id),s=Rs(),[c,l]=(0,x.useState)(null),u=o6(e.label,n),d=a.data?.items.find(e=>e.id===c),f=(e,n)=>n===void 0?``:s7(e.data[n],t.forms.yes),p=n=>f(n,e.contact?.name)||n.email||t.forms.unknownSender,m=n=>Object.entries(n.data).filter(([t])=>t!==e.contact?.name&&t!==e.contact?.email&&t!==e.contact?.phone).map(([,e])=>s7(e,t.forms.yes)).sort((e,t)=>t.length-e.length)[0]??``,h=[{id:`from`,label:t.forms.columnFrom},{id:`summary`,label:t.forms.columnSummary,isSecondary:!0},{id:`received`,label:t.forms.columnReceived,align:`end`}],g=(a.data?.items??[]).map(e=>{let t=p(e);return{id:e.id,cells:{from:(0,S.jsxs)(Y,{gap:0,children:[(0,S.jsx)(X,{weight:`semibold`,children:t}),e.email!==void 0&&e.email!==t&&(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:e.email})]}),summary:(0,S.jsx)(X,{tone:`secondary`,truncate:!0,children:m(e).slice(0,120)}),received:(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:a7(e.createdAt,n)})}}}),_={new:[t.forms.emptyNewTitle,t.forms.emptyNewDescription],handled:[t.forms.emptyHandledTitle,t.forms.emptyHandledDescription],spam:[t.forms.emptySpamTitle,t.forms.emptySpamDescription]}[r];return(0,S.jsxs)(Y,{gap:4,children:[(0,S.jsxs)(zQ,{gap:4,justify:`between`,children:[(0,S.jsx)(C$,{label:t.forms.statusFilter,selected:r,onChange:e=>i(e),options:Lie.map(e=>({id:e,label:o.data?t.forms.statusWithCount(t.forms.statuses[e],o.data[e]):t.forms.statuses[e]}))}),(0,S.jsx)(J,{variant:`secondary`,icon:ny,isPending:s.isPending,onPress:()=>s.mutate(e.id,{onSuccess:n=>{i7(`${e.key}-submissions.csv`,n,`text/csv;charset=utf-8`),Z({title:t.forms.exported,description:t.forms.exportedDescription,tone:`success`})},onError:e=>Z({title:t.forms.notExported,description:y9(e),tone:`danger`})}),children:t.forms.export})]}),a.isPending&&(0,S.jsx)(K5,{shape:`table`}),a.isError&&(0,S.jsx)(q5,{error:a.error,onRetry:()=>void a.refetch()}),a.isSuccess&&g.length===0&&(0,S.jsx)(l2,{icon:Ny,title:_[0]??``,description:_[1]??``}),a.isSuccess&&g.length>0&&(0,S.jsx)(u1,{label:t.forms.submissionsOf(u),columns:h,rows:g,onRowAction:l}),d&&(0,S.jsx)(zie,{form:e,submission:d,sender:p(d),onClose:()=>l(null)},d.id)]})}function zie({form:e,submission:t,sender:n,onClose:r}){let{close:i,dialog:a}=L6(r),o=Q(),s=M6(),c=Is(),l=Ls(),[u,d]=(0,x.useState)(!1),f=e.fields.flatMap(e=>{let n=t.data[e.id];if(n===void 0)return[];let r=e.deletedAt===void 0?o6(e.label,s):o.forms.removedField(e.key);return[{id:e.id,label:r,value:s7(n,o.forms.yes)}]}),p=e=>c.mutate({id:t.id,status:e},{onSuccess:()=>{Z({title:o.forms.marked[e],tone:`success`}),i()},onError:e=>Z({title:o.forms.notMarked,description:y9(e),tone:`danger`})}),m=c.isPending||l.isPending;return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(CQ,{...a,placement:`side`,title:o.forms.submissionTitle(n),closeLabel:o.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(J,{variant:`ghost`,isDisabled:m,onPress:()=>d(!0),children:o.forms.deleteSubmission}),t.status===`spam`?(0,S.jsx)(J,{variant:`secondary`,isDisabled:m,onPress:()=>p(`new`),children:o.forms.notSpam}):(0,S.jsx)(J,{variant:`secondary`,isDisabled:m,onPress:()=>p(`spam`),children:o.forms.markSpam}),t.status===`new`&&(0,S.jsx)(J,{isPending:c.isPending,onPress:()=>p(`handled`),children:o.forms.markHandled}),t.status===`handled`&&(0,S.jsx)(J,{isPending:c.isPending,onPress:()=>p(`new`),children:o.forms.markNew})]}),children:(0,S.jsxs)(Y,{gap:5,children:[(0,S.jsxs)(Y,{gap:0,children:[(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:o.forms.received(a7(t.createdAt,s))}),t.page!==void 0&&(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:o.forms.sentFrom(t.page)}),t.handledAt!==void 0&&(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:o.forms.handledAt(a7(t.handledAt,s))})]}),f.map(e=>(0,S.jsxs)(Y,{gap:1,children:[(0,S.jsx)(X,{size:`sm`,weight:`semibold`,tone:`secondary`,children:e.label}),e.value.split(`
80
+ `).map((e,t)=>(0,S.jsx)(X,{children:e},t))]},e.id))]})}),(0,S.jsx)(o2,{isOpen:u,onOpenChange:d,title:o.forms.deleteSubmissionTitle,confirmLabel:o.forms.deleteSubmission,cancelLabel:o.editor.cancel,tone:`danger`,isPending:l.isPending,onConfirm:()=>l.mutate(t.id,{onSuccess:()=>{Z({title:o.forms.submissionDeleted,tone:`success`}),d(!1),i()},onError:e=>{Z({title:o.forms.submissionNotDeleted,description:y9(e),tone:`danger`}),d(!1)}}),children:o.forms.deleteSubmissionDescription})]})}var Bie=e=>e instanceof Error?e.message:String(e);function Vie(){let{formId:e=``}=ea(),t=Q(),n=Ss();if(n.isPending)return(0,S.jsx)(K5,{});if(n.isError)return(0,S.jsx)(q5,{error:n.error,onRetry:()=>void n.refetch()});let r=n.data.find(t=>t.id===e);return r?(0,S.jsx)(Hie,{form:r},r.id):(0,S.jsx)(l2,{icon:Ny,title:t.forms.notFoundTitle,description:t.forms.notFoundDescription,action:(0,S.jsx)(VQ,{href:$.forms,children:t.forms.backToForms})})}function Hie({form:e}){let t=Q(),n=M6(),r=J5(),i=Po(),a=Os(),[o,s]=(0,x.useState)(!1),[c,l]=(0,x.useState)(!1),u=o6(e.label,n),d=i.data!==null&&i.data!==void 0&&i.data.role!==`author`,[f,p]=(0,x.useState)(e.fields.length===0||!d?`fields`:`submissions`);return(0,S.jsxs)(Z_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(Y,{gap:6,children:[(0,S.jsxs)(Y,{gap:2,children:[(0,S.jsx)(VQ,{href:$.forms,children:t.forms.backToForms}),(0,S.jsx)(m2,{title:u,description:t.forms.detail(e.key,e.open?t.forms.open:t.forms.closed),...d&&{secondary:{moreLabel:t.app.moreActions,actions:[{id:`trash`,label:t.forms.trash,icon:jx,variant:`ghost`,tone:`danger`,onPress:()=>l(!0)},{id:`settings`,label:t.forms.settings,icon:px,onPress:()=>s(!0)}]}}})]}),(0,S.jsx)(h1,{label:t.forms.tabs,selected:f,onChange:p,tabs:[{id:`submissions`,label:t.forms.tabSubmissions,content:d?(0,S.jsx)(Rie,{form:e}):(0,S.jsx)(X,{tone:`muted`,children:t.forms.noAccess})},{id:`fields`,label:t.forms.tabFields,content:(0,S.jsx)(Fie,{form:e,mayChange:d})}]})]}),o&&(0,S.jsx)(Iie,{form:e,onClose:()=>s(!1)}),(0,S.jsx)(o2,{isOpen:c,onOpenChange:l,title:t.forms.trashTitle(u),confirmLabel:t.forms.trashConfirm,cancelLabel:t.editor.cancel,tone:`danger`,isPending:a.isPending,onConfirm:()=>a.mutate(e.id,{onSuccess:()=>{Z({title:t.forms.trashed(u),tone:`success`}),r($.forms)},onError:e=>{Z({title:t.forms.notTrashed,description:Bie(e),tone:`danger`}),l(!1)}}),children:t.forms.trashDescription})]})}var Uie={},b9=e=>e instanceof Error?e.message:String(e);function Wie(){let e=Q(),t=M6(),n=J5(),r=Ss(),i=Po(),a=i.data!==null&&i.data!==void 0&&i.data.role!==`author`,o=Cs(a),s=Ns((r.data??[]).map(e=>e.id),a),c=ks(),l=As(),[u,d]=(0,x.useState)(!1),[f,p]=(0,x.useState)(!1),[m,h]=(0,x.useState)(null),g=R6(m),_=e=>o6(e.label,t),v=[{id:`name`,label:e.forms.columnName},{id:`fields`,label:e.forms.columnFields,isSecondary:!0},{id:`fresh`,label:e.forms.columnNew},{id:`status`,label:e.forms.columnStatus}],y=e=>(0,S.jsxs)(Y,{gap:0,children:[(0,S.jsx)(X,{weight:`semibold`,children:_(e)}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:e.key})]}),b=(r.data??[]).map((t,n)=>{let r=s[n]?.data?.new;return{id:t.id,cells:{name:y(t),fields:e.forms.fieldCount(m_(t.fields).length),fresh:r===void 0?``:r>0?(0,S.jsx)(_1,{tone:`info`,children:e.forms.newCount(r)}):(0,S.jsx)(X,{tone:`muted`,children:e.forms.noneNew}),status:t.open?(0,S.jsx)(_1,{tone:`success`,children:e.forms.open}):(0,S.jsx)(_1,{children:e.forms.closed})}}}),C=[{id:`name`,label:e.forms.columnName},{id:`moved`,label:e.forms.columnTrashed},{id:`actions`,label:e.forms.columnActions,align:`end`}],w=(o.data??[]).map(n=>({id:n.id,cells:{name:y(n),moved:(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:n.deletedAt===void 0?``:a7(n.deletedAt,t)}),actions:(0,S.jsxs)(zQ,{gap:2,justify:`end`,children:[(0,S.jsx)(J,{variant:`secondary`,size:`sm`,isPending:c.isPending&&c.variables===n.id,onPress:()=>c.mutate(n.id,{onSuccess:()=>Z({title:e.forms.restored(_(n)),tone:`success`}),onError:t=>Z({title:e.forms.notRestored,description:b9(t),tone:`danger`})}),children:e.forms.restore(_(n))}),(0,S.jsx)(J,{variant:`ghost`,size:`sm`,onPress:()=>h(n),children:e.forms.delete(_(n))})]})}})),T=(0,S.jsx)(J,{icon:Gb,collapses:!0,onPress:()=>d(!0),children:e.forms.newForm});return(0,S.jsxs)(Z_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(Y,{gap:6,children:[(0,S.jsx)(m2,{title:e.forms.title,description:e.forms.description,...a&&{secondary:{moreLabel:e.app.moreActions,actions:[{id:`forget`,label:e.forms.forget,icon:Vx,variant:`ghost`,onPress:()=>p(!0)}]},actions:T}}),r.isPending&&(0,S.jsx)(K5,{shape:`table`}),r.isError&&(0,S.jsx)(q5,{error:r.error,onRetry:()=>void r.refetch()}),r.isSuccess&&b.length===0&&(0,S.jsx)(l2,{icon:Ny,title:e.forms.emptyTitle,description:e.forms.emptyDescription,...a&&{action:T}}),r.isSuccess&&b.length>0&&(0,S.jsx)(u1,{label:e.forms.title,columns:v,rows:b,onRowAction:e=>n($.form(e))}),o.isError&&(0,S.jsx)(q5,{error:o.error,onRetry:()=>void o.refetch()}),o.isSuccess&&w.length>0&&(0,S.jsxs)(Y,{gap:3,children:[(0,S.jsxs)(Y,{gap:0,children:[(0,S.jsx)(LQ,{level:2,size:`md`,children:e.forms.trashedTitle}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:e.forms.trashedHelp})]}),(0,S.jsx)(u1,{label:e.forms.trashedTitle,columns:C,rows:w})]})]}),u&&(0,S.jsx)(Gie,{onClose:()=>d(!1)}),f&&(0,S.jsx)(Kie,{onClose:()=>p(!1)}),(0,S.jsx)(o2,{isOpen:m!==null,onOpenChange:e=>!e&&h(null),title:e.forms.deleteTitle(g?_(g):``),confirmLabel:e.forms.deleteConfirm,cancelLabel:e.editor.cancel,tone:`danger`,isPending:l.isPending,onConfirm:()=>{m&&l.mutate(m.id,{onSuccess:()=>Z({title:e.forms.deleted(_(m)),tone:`success`}),onError:t=>Z({title:e.forms.notDeleted,description:b9(t),tone:`danger`}),onSettled:()=>h(null)})},children:e.forms.deleteDescription})]})}function Gie({onClose:e}){let{close:t,dialog:n}=L6(e),r=Q(),i=M6(),a=J5(),o=Es(),[s,c]=(0,x.useState)(``),[l,u]=(0,x.useState)(null),[d,f]=(0,x.useState)(Uie),p=l??T7(s),m=()=>{let e={...s.trim()===``&&{label:r.forms.nameNeeded},...p===``&&{key:r.forms.keyNeeded}};f(e),Object.keys(e).length>0||o.mutate({key:p,label:{[i.split(`-`)[0]??i]:s.trim()}},{onSuccess:e=>{Z({title:r.forms.created(s.trim()),description:r.forms.createdDescription,tone:`success`}),t(),a($.form(e.id))},onError:e=>{f({key:b9(e)}),Z({title:r.forms.notCreated,description:b9(e),tone:`danger`})}})};return(0,S.jsx)(CQ,{...n,title:r.forms.newFormTitle,closeLabel:r.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(J,{variant:`secondary`,onPress:t,children:r.editor.cancel}),(0,S.jsx)(J,{isPending:o.isPending,onPress:m,children:r.forms.create})]}),children:(0,S.jsxs)(jQ,{label:r.forms.newFormTitle,gap:4,onSubmit:m,children:[(0,S.jsx)(x1,{label:r.forms.formName,description:r.forms.formNameHelp,value:s,onChange:c,isRequired:!0,autoFocus:!0,autoComplete:`off`,...d.label!==void 0&&{errorMessage:d.label}}),(0,S.jsx)(x1,{label:r.forms.formKey,description:r.forms.formKeyHelp,value:p,onChange:u,isRequired:!0,autoComplete:`off`,...d.key!==void 0&&{errorMessage:d.key}})]})})}function Kie({onClose:e}){let{close:t,dialog:n}=L6(e),r=Q(),i=zs(),[a,o]=(0,x.useState)(``),[s,c]=(0,x.useState)(null),l=()=>{if(a.trim()===``)return c(r.forms.forgetEmailNeeded);c(null),i.mutate(a,{onSuccess:e=>{Z({title:r.forms.forgotten(e),...e>0&&{tone:`success`}}),t()},onError:e=>{e instanceof Mo&&e.code===`validation_failed`&&c(e.message),Z({title:r.forms.notForgotten,description:b9(e),tone:`danger`})}})};return(0,S.jsx)(CQ,{...n,title:r.forms.forgetTitle,closeLabel:r.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(J,{variant:`secondary`,onPress:t,children:r.editor.cancel}),(0,S.jsx)(J,{variant:`danger`,isPending:i.isPending,onPress:l,children:r.forms.forgetConfirm})]}),children:(0,S.jsxs)(jQ,{label:r.forms.forgetTitle,gap:4,onSubmit:l,children:[(0,S.jsx)(X,{tone:`secondary`,children:r.forms.forgetHelp}),(0,S.jsx)(x1,{label:r.forms.forgetEmail,type:`email`,value:a,onChange:o,isRequired:!0,autoFocus:!0,autoComplete:`off`,...s!==null&&{errorMessage:s}})]})})}function qie(e=new Date){let t=e.getHours();return t>=5&&t<12?`morning`:t>=12&&t<18?`afternoon`:`evening`}var Jie=5;function Yie({userId:e}){let t=Q(),n=J5(),r=Bs({ownerId:e,followUpBy:Z5(),limit:Jie}),i=lc(),a=Y5(),o=Q5();if(!r.isSuccess||r.data.total===0)return null;let s=[{id:`name`,label:t.contacts.columnName},{id:`stage`,label:t.contacts.columnStage},{id:`due`,label:t.contacts.columnFollowUp,align:`end`}],c=r.data.items.map(e=>{let t=i.data?.stages.find(t=>t.id===e.stage),n=o(e.followUpAt??``);return{id:e.id,cells:{name:(0,S.jsx)(X,{weight:`semibold`,children:e.name??e.email}),stage:t?(0,S.jsx)(_1,{tone:X5[t.kind],children:a(t)}):``,due:(0,S.jsx)(_1,{tone:n.tone,children:n.text})}}}),l=r.data.total-r.data.items.length;return(0,S.jsx)(MZ,{title:t.home.followUpsTitle,description:l>0?`${t.home.followUpsHelp} ${t.home.followUpsMore(l)}`:t.home.followUpsHelp,actions:(0,S.jsx)(VQ,{href:$.contacts,children:t.home.allContacts}),isFlush:!0,children:(0,S.jsx)(u1,{label:t.home.followUpsTitle,columns:s,rows:c,frame:`none`,onRowAction:e=>n($.contact(e))})})}var Xie={draft:`neutral`,scheduled:`info`,published:`success`,unpublishedChanges:`warning`},Zie=200,Qie=8,$ie=14;function eae({siteName:e}){let t=Q(),n=M6(),r=J5(),i=Po(),a=Fo(),o=es((a.data??[]).map(e=>({type:e.key,limit:Zie}))),s=i.data!==void 0&&i.data!==null&&i.data.role!==`author`;if(a.isPending)return(0,S.jsx)(K5,{});if(a.isError)return(0,S.jsx)(q5,{error:a.error,onRetry:()=>void a.refetch()});if(a.data.length===0)return(0,S.jsx)(l2,{icon:_x,title:t.contentList.noTypesTitle,description:t.contentList.noTypesDescription});let c=o.find(e=>e.isError),l=o.some(e=>e.isPending),u=a.data.map((e,t)=>({type:e,listed:_6(o[t]?.data?.items??[],n).map(({primary:t,versions:n})=>({type:e,entry:t,updatedAt:n.reduce((e,t)=>t.updatedAt>e?t.updatedAt:e,t.updatedAt)}))})),d=u.flatMap(({listed:e})=>e),f=e=>new Intl.NumberFormat(n).format(e),p=e=>d.filter(({entry:t})=>e(m6(t))).length,m=[...d].sort((e,t)=>e.updatedAt<t.updatedAt?1:e.updatedAt>t.updatedAt?-1:0),h=m.slice(0,Qie),g=({type:e,entry:r})=>e.kind===`single`?o6(e.label,n):c6(e,r.data)??t.contentList.untitled,_=e=>e===`draft`||e===`unpublishedChanges`,v=p(_),y=m.find(({entry:e})=>_(m6(e))),b=d.find(({type:e,entry:t})=>j_(e)&&t.slug===`index`),x=!c&&!l,C=i.data?t.home.greeting[qie()](i.data.name):t.app.home,w=b?.entry.published?.at,T=[{id:`title`,label:t.contentList.columnTitle},{id:`type`,label:t.home.columnType,isSecondary:!0},{id:`status`,label:t.contentList.columnStatus},{id:`updated`,label:t.contentList.columnUpdated,isSecondary:!0}],E=h.map(e=>{let r=m6(e.entry);return{id:e.entry.id,cells:{title:(0,S.jsx)(X,{weight:`semibold`,children:g(e)}),type:(0,S.jsx)(X,{tone:`secondary`,children:o6(e.type.label,n)}),status:(0,S.jsx)(_1,{tone:Xie[r],children:t.status[r]}),updated:(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:a7(e.updatedAt,n)})}}}),D=new Map(h.map(({type:e,entry:t})=>[t.id,e.key])),O=u.filter(({type:e})=>e.kind!==`single`&&e.inSettings!==!0).sort((e,t)=>t.listed.length-e.listed.length);return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q3,{eyebrow:new Intl.DateTimeFormat(n,{weekday:`long`,day:`numeric`,month:`long`}).format(new Date),title:x?t.home.headline(C,v):C,...i.data&&{highlight:i.data.name},description:t.home.description(e),actions:(0,S.jsxs)(S.Fragment,{children:[y&&(0,S.jsx)(J,{icon:vv,onPress:()=>r($.entry(y.type.key,y.entry.id)),children:t.home.carryOn(g(y))}),b&&(0,S.jsx)(J,{variant:y?`secondary`:`primary`,icon:Oee,onPress:()=>r($.visualEntry(b.type.key,b.entry.id)),children:t.home.editHome}),(0,S.jsx)(J,{variant:`ghost`,icon:oy,onPress:()=>i9(),children:t.home.viewSite})]}),aside:(0,S.jsx)(i6,{address:window.location.host,src:`/`,title:t.home.siteWindowTitle(e),label:b?t.home.editHomeShort:t.home.openSite,...w!==void 0&&{meta:t.home.publishedWhen(a7(w,n))},onPress:()=>b?r($.visualEntry(b.type.key,b.entry.id)):i9()})}),(0,S.jsx)(Z_,{paddingX:12,paddingY:8,children:(0,S.jsxs)(Y,{gap:6,children:[c&&(0,S.jsx)(q5,{error:c.error,onRetry:()=>void c.refetch()}),!c&&l&&(0,S.jsx)(K5,{shape:`summary`}),x&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(NQ,{columns:3,gap:4,children:[(0,S.jsx)(Y$,{label:t.home.published,value:f(p(e=>e===`published`||e===`unpublishedChanges`)),detail:t.home.publishedDetail}),(0,S.jsx)(Y$,{label:t.home.drafts,value:f(p(e=>e===`draft`)),detail:t.home.draftsDetail}),(0,S.jsx)(Y$,{label:t.home.changed,value:f(p(e=>e===`unpublishedChanges`)),detail:t.home.changedDetail})]}),(0,S.jsxs)(NQ,{columns:s?2:1,gap:4,children:[(0,S.jsx)(MZ,{title:t.home.byTypeTitle,description:t.home.byTypeHelp,children:O.length===0?(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:t.home.byTypeEmpty}):(0,S.jsx)(m0,{label:t.home.byTypeTitle,layout:`rows`,bars:O.map(({type:e,listed:r})=>({id:e.id,label:o6(e.label,n),value:r.length,valueText:t.contentList.description(r.length)}))})}),s&&(0,S.jsx)(tae,{})]}),(0,S.jsxs)(Q2,{asideLabel:t.home.asideLabel,aside:s?(0,S.jsx)(nae,{}):null,children:[(0,S.jsx)(MZ,{title:t.home.recentTitle,isFlush:!0,children:E.length===0?(0,S.jsx)(l2,{icon:Ny,title:t.home.recentEmpty,description:t.home.recentEmptyDescription}):(0,S.jsx)(u1,{label:t.home.recentTitle,columns:T,rows:E,frame:`none`,onRowAction:e=>r($.entry(D.get(e)??``,e))})}),i.data&&s&&(0,S.jsx)(Yie,{userId:i.data.id})]})]})]})})]})}var x9=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`;function tae(){let e=Q(),t=M6(),n=Ss(),r=Ps((n.data??[]).map(e=>e.id),n.isSuccess),i=n.isError?n:r.find(e=>e.isError),a=new Date,o=Array.from({length:$ie},(e,t)=>new Date(a.getFullYear(),a.getMonth(),a.getDate()-(13-t))),s=new Map(o.map(e=>[x9(e),0]));for(let e of r.flatMap(e=>e.data?.items??[])){if(e.status===`spam`)continue;let t=x9(new Date(e.createdAt)),n=s.get(t);n!==void 0&&s.set(t,n+1)}let c=[...s.values()].reduce((e,t)=>e+t,0),l=new Intl.DateTimeFormat(t,{weekday:`narrow`}),u=new Intl.DateTimeFormat(t,{weekday:`long`,day:`numeric`,month:`long`});return(0,S.jsx)(MZ,{title:e.home.submissionsTitle,description:e.home.submissionsHelp(c),actions:(0,S.jsx)(VQ,{href:$.forms,children:e.home.allForms}),children:i?(0,S.jsx)(q5,{error:i.error??Error(e.app.somethingWentWrong),onRetry:()=>void i.refetch()}):n.isPending||r.some(e=>e.isPending)?(0,S.jsx)(K5,{shape:`summary`}):(0,S.jsx)(m0,{label:e.home.submissionsTitle,bars:o.map(t=>{let n=x9(t),r=s.get(n)??0;return{id:n,label:l.format(t),value:r,valueText:e.home.submissionsOn(u.format(t),r)}})})})}function nae(){let e=Q(),t=M6(),n=Ss(),r=Ns((n.data??[]).map(e=>e.id)),i=qs(),a=lc(),o=Y5(),s=t7(a.data?.currency??i.data?.currency),c=(n.data??[]).map((e,t)=>({form:e,fresh:r[t]?.data?.new??0})).filter(({fresh:e})=>e>0),l=c.reduce((e,{fresh:t})=>e+t,0),u=e=>new Intl.NumberFormat(t).format(e),d=(i.data?.stages??[]).flatMap(e=>{let t=a.data?.stages.find(t=>t.id===e.stage);return t?.kind===`open`?[{stage:t,total:e}]:[]});return(0,S.jsxs)(S.Fragment,{children:[n.isSuccess&&r.every(e=>e.isSuccess)&&(0,S.jsx)(MZ,{title:e.home.inboxTitle,description:c.length===0?e.home.inboxEmpty:e.home.inboxNew(u(l)),actions:(0,S.jsx)(VQ,{href:$.forms,children:e.home.allForms}),children:c.length===0?void 0:(0,S.jsx)(Y,{gap:2,children:c.map(({form:n,fresh:r})=>(0,S.jsxs)(zQ,{justify:`between`,gap:2,children:[(0,S.jsx)(VQ,{href:$.form(n.id),children:o6(n.label,t)}),(0,S.jsx)(_1,{tone:`info`,children:e.forms.newCount(r)})]},n.id))})}),i.isSuccess&&a.isSuccess&&i.data.stages.some(e=>e.count>0)&&(0,S.jsx)(MZ,{title:e.home.pipelineTitle,description:e.home.pipelineDetail(s(i.data.open),s(i.data.weighted)),actions:(0,S.jsx)(VQ,{href:$.deals,children:e.app.deals}),children:(0,S.jsx)(m0,{label:e.home.pipelineTitle,layout:`rows`,bars:d.map(({stage:e,total:t})=>({id:e.id,label:o(e),value:t.value,valueText:s(t.value)}))})})]})}var S9=e=>e instanceof Error?e.message:String(e),C9=e=>e.toFixed(1).replace(/\.0$/,``);function rae(){let e=Q(),t=ns(),n=rs().data??null,r=as(),i=os(),[a,o]=(0,x.useState)(l8),[s,c]=(0,x.useState)(null),l=e=>o(t=>({...t,...e})),u=t.data??[],d=p8(u,a),f=a.query.trim()!==``||a.source!==`all`||a.kind!==`all`,p=s8.filter(e=>e===`all`||u.some(t=>u8(t)===e)),m=u.some(e=>e.uploadedAt!==void 0)&&u.some(e=>e.uploadedAt===void 0),h=R6(u.find(e=>e.name===s)??null),g=t=>t.uploadedAt===void 0?e.media.fromSite:t.width!==void 0&&t.height!==void 0?e.media.dimensions(t.width,t.height):void 0,_=async t=>{let i=await _8(t,n?.maxBytes??0).catch(()=>null);i?r.mutate(i,{onSuccess:t=>{o(l8),Z({title:e.media.uploaded(t.name),description:e.media.uploadedDescription,tone:`success`})},onError:t=>Z({title:e.media.notUploaded,description:S9(t),tone:`danger`})}):Z({title:e.media.notUploaded,description:e.media.notRead,tone:`danger`})},v=t=>n&&(0,S.jsx)(kQ,{accept:`image`,icon:Ix,variant:t,collapses:t===`primary`,isPending:r.isPending,onSelect:e=>void _(e),children:e.media.upload});return(0,S.jsxs)(Z_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(Y,{gap:6,children:[(0,S.jsx)(m2,{title:e.media.title,actions:v(`primary`),...t.isSuccess&&{description:[e.media.description(u.length),...n?[e.media.uploadHint(C9(n.maxBytes/1e6))]:[]].join(` · `)}}),t.isPending&&(0,S.jsx)(K5,{shape:`table`}),t.isError&&(0,S.jsx)(q5,{error:t.error,onRetry:()=>void t.refetch()}),t.isSuccess&&u.length===0&&(0,S.jsx)(l2,{icon:jy,title:e.media.emptyTitle,description:n?e.media.emptyDescription:e.media.emptyNoUploads,action:v(`secondary`)}),t.isSuccess&&u.length>0&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(NQ,{columns:4,gap:3,children:[(0,S.jsx)(h$,{label:e.media.search,placeholder:e.media.searchPlaceholder,clearLabel:e.media.clearSearch,value:a.query,onChange:e=>l({query:e})}),m&&(0,S.jsx)(j$,{label:e.media.source,options:o8.map(t=>({id:t,label:e.media.sources[t]})),value:a.source,onChange:e=>l({source:e})}),p.length>2&&(0,S.jsx)(j$,{label:e.media.kind,options:p.map(t=>({id:t,label:e.media.kinds[t]})),value:a.kind,onChange:e=>l({kind:e})}),(0,S.jsx)(j$,{label:e.media.sort,options:c8.map(t=>({id:t,label:e.media.sorts[t]})),value:a.sort,onChange:e=>l({sort:e})})]}),f&&(0,S.jsxs)(zQ,{gap:3,children:[(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:e.media.shownCount(d.length,u.length)}),(0,S.jsx)(J,{variant:`ghost`,size:`sm`,onPress:()=>l({query:``,source:`all`,kind:`all`}),children:e.media.showAll})]}),(0,S.jsx)(a4,{label:e.media.grid,items:d.map(t=>{let n=g(t);return{id:t.name,name:t.name,url:v8(t),...n!==void 0&&{note:n},...i.has(t.name)&&{badge:e.media.justUploaded}}}),onAction:c,emptyText:f?e.media.noMatchesFiltered:e.media.noMatches})]})]}),s!==null&&h&&(0,S.jsx)(iae,{image:h,onClose:()=>c(null)},s)]})}function iae({image:e,onClose:t}){let n=Q(),r=M6(),i=Po(),a=is(),{close:o,dialog:s}=L6(t),[c,l]=(0,x.useState)(!1),u=e,d=u.uploadedAt!==void 0&&i.data!==null&&i.data!==void 0&&i.data.role!==`author`,f=u.size===void 0?void 0:u.size>=1e6?n.media.megabytes(C9(u.size/1e6)):n.media.kilobytes(C9(u.size/1e3)),p=(e,t,n)=>(0,S.jsxs)(Y,{gap:0,children:[(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:e}),(0,S.jsx)(X,{children:t}),n!==void 0&&(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:n})]});return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(CQ,{...s,placement:`side`,title:u.name,closeLabel:n.app.dismiss,footer:(0,S.jsxs)(zQ,{gap:2,children:[d&&(0,S.jsx)(J,{variant:`danger`,icon:jx,onPress:()=>l(!0),children:n.media.remove}),(0,S.jsx)(J,{variant:`secondary`,onPress:o,children:n.media.close})]}),children:(0,S.jsxs)(Y,{gap:5,children:[(0,S.jsx)(A1,{src:u.url,size:`full`}),p(n.media.detailName,u.name,n.media.detailNameHelp),u.width!==void 0&&u.height!==void 0&&p(n.media.detailSize,n.media.dimensions(u.width,u.height)),f!==void 0&&p(n.media.detailFile,f),u.uploadedAt===void 0?p(n.media.fromSite,n.media.fromSiteHelp):p(n.media.detailUploaded,a7(u.uploadedAt,r))]})}),(0,S.jsx)(o2,{isOpen:c,onOpenChange:l,title:n.media.removeTitle(u.name),confirmLabel:n.media.remove,cancelLabel:n.editor.cancel,tone:`danger`,isPending:a.isPending,onConfirm:()=>a.mutate(u.name,{onSuccess:()=>{Z({title:n.media.removed(u.name),tone:`success`}),l(!1),o()},onError:e=>{Z({title:n.media.notRemoved,description:S9(e),tone:`danger`}),l(!1)}}),children:n.media.removeDescription})]})}function aae(){let e=Q(),{pluginName:t=``,screenId:n=``}=ea(),{screens:r}=F5(),i=r.find(e=>e.plugin===t&&e.id===n);return(0,S.jsx)(Z_,{paddingX:12,paddingY:10,children:i?(0,S.jsxs)(Y,{gap:6,children:[(0,S.jsx)(m2,{title:i.label,...i.description!==void 0&&{description:i.description}}),(0,S.jsx)(s9,{children:(0,S.jsx)(i.Component,{})},`${i.plugin}/${i.id}`)]}):(0,S.jsx)(l2,{icon:fy,title:e.plugins.screenMissingTitle,description:e.plugins.screenMissingDescription})})}var oae={waiting:`warning`,done:`success`,failed:`danger`},sae=9e4,cae=e=>e instanceof Error?e.message:String(e);function lae({plugin:e,onClose:t}){let{close:n,dialog:r}=L6(t),i=Q(),a=M6(),o=o6(e.label,a),s=Yc(e.name,!0),c=Xc(e.name),l=e=>c.mutate(e.id,{onSuccess:e=>e.status===`done`?Z({title:i.plugins.taskRetried,tone:`success`}):Z({title:i.plugins.taskRetriedWaiting,...e.lastError!==void 0&&{description:e.lastError},tone:`danger`}),onError:e=>Z({title:i.plugins.taskNotRetried,description:cae(e),tone:`danger`})}),u=e=>Date.parse(e)-Date.now()<sae?i.plugins.taskNextSoon:i.plugins.taskNext(a7(e,a)),d=[{id:`what`,label:i.plugins.taskWhat},{id:`state`,label:i.plugins.taskState},{id:`when`,label:i.plugins.taskWhen},{id:`actions`,label:i.plugins.taskActions,align:`end`}],f=(s.data??[]).map(e=>{let t=e.label??e.kind;return{id:e.id,cells:{what:(0,S.jsxs)(Y,{gap:0,children:[(0,S.jsx)(X,{weight:`semibold`,children:t}),e.status!==`done`&&e.lastError!==void 0&&(0,S.jsx)(X,{size:`sm`,children:e.lastError})]}),state:(0,S.jsxs)(Y,{gap:1,children:[(0,S.jsx)(_1,{tone:oae[e.status],children:i.plugins.taskStates[e.status]}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:e.status===`waiting`&&e.nextAt!==void 0?`${i.plugins.taskTries(e.attempts)}. ${u(e.nextAt)}`:i.plugins.taskTries(e.attempts)})]}),when:(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:a7(e.createdAt,a)}),actions:e.canRetry?(0,S.jsx)(J,{variant:`secondary`,size:`sm`,icon:tx,isPending:c.isPending&&c.variables===e.id,onPress:()=>l(e),children:i.plugins.taskRetry(t)}):null}}});return(0,S.jsx)(CQ,{...r,title:i.plugins.activityTitle(o),closeLabel:i.app.dismiss,size:`lg`,footer:(0,S.jsx)(J,{variant:`secondary`,onPress:n,children:i.plugins.activityClose}),children:(0,S.jsxs)(Y,{gap:4,children:[(0,S.jsx)(X,{tone:`secondary`,children:i.plugins.activityHelp}),s.isPending&&(0,S.jsx)(K5,{shape:`table`}),s.isError&&(0,S.jsx)(q5,{error:s.error,onRetry:()=>void s.refetch()}),s.isSuccess&&f.length===0&&(0,S.jsx)(l2,{icon:$b,title:i.plugins.activityEmptyTitle,description:i.plugins.activityEmptyDescription}),s.isSuccess&&f.length>0&&(0,S.jsx)(u1,{label:i.plugins.activityTitle(o),columns:d,rows:f})]})})}var w9=e=>e instanceof Error?e.message:String(e);function uae({plugin:e,secret:t}){let n=Q(),r=M6(),i=o6(t.label,r),a=Jc(e),[o,s]=(0,x.useState)(``),[c,l]=(0,x.useState)(!1),[u,d]=(0,x.useState)(null),f=e=>{d(null),a.mutate({key:t.key,value:e},{onSuccess:()=>{s(``),l(!1),Z({title:e===null?n.plugins.secretWasRemoved(i):n.plugins.secretWasSaved(i),tone:`success`})},onError:e=>{let r=e instanceof Mo?e.issues.find(e=>e.path.join(`.`)===t.key):void 0;d(r?.message??w9(e)),Z({title:n.plugins.secretNotSaved(i),description:w9(e),tone:`danger`})}})};return t.isSet&&!c?(0,S.jsxs)(Y,{gap:2,children:[(0,S.jsx)(X,{weight:`semibold`,children:i}),t.help!==void 0&&(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:o6(t.help,r)}),(0,S.jsx)(X,{tone:`secondary`,children:n.plugins.secretSaved}),(0,S.jsxs)(zQ,{gap:3,children:[(0,S.jsx)(J,{variant:`secondary`,size:`sm`,onPress:()=>l(!0),children:n.plugins.secretReplace(i)}),(0,S.jsx)(J,{variant:`ghost`,size:`sm`,isPending:a.isPending,onPress:()=>f(null),children:n.plugins.secretRemove(i)})]})]}):(0,S.jsxs)(Y,{gap:2,children:[(0,S.jsx)(x1,{label:i,type:`password`,autoComplete:`off`,value:o,onChange:s,...t.help!==void 0&&{description:o6(t.help,r)},...u!==null&&{errorMessage:u}}),(0,S.jsxs)(zQ,{gap:3,children:[(0,S.jsx)(J,{variant:`secondary`,size:`sm`,isPending:a.isPending,isDisabled:o.trim()===``,onPress:()=>f(o),children:n.plugins.secretSave(i)}),t.isSet&&(0,S.jsx)(J,{variant:`ghost`,size:`sm`,onPress:()=>l(!1),children:n.plugins.secretKeep})]})]})}function dae({plugin:e,secrets:t}){let n=Q();return(0,S.jsx)(DQ,{legend:n.plugins.secretsTitle,description:n.plugins.secretsHelp,children:(0,S.jsx)(Y,{gap:4,children:t.map(t=>(0,S.jsx)(uae,{plugin:e,secret:t},t.key))})})}var T9=new Map;function fae({plugin:e,onClose:t}){let{close:n,dialog:r}=L6(t),i=Q(),a=M6(),o=o6(e.label,a),s=Kc(e.name),c=qc(e.name),[l,u]=(0,x.useState)({}),[d,f]=(0,x.useState)(T9),[p,m]=(0,x.useState)(null),h={...s.data?.values,...l},g=()=>{f(T9),m(null),c.mutate(Object.fromEntries(Object.entries(h).filter(([,e])=>e!==void 0)),{onSuccess:()=>{Z({title:i.plugins.settingsSaved(o),tone:`success`}),n()},onError:e=>{let t=e instanceof Mo?e.issues:[];f(new Map(t.map(e=>[e.path.join(`.`),e.message]))),t.length===0&&m(e instanceof Error?e.message:String(e))}})};return(0,S.jsxs)(CQ,{...r,title:i.plugins.settingsTitle(o),closeLabel:i.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(J,{variant:`secondary`,onPress:n,children:i.editor.cancel}),(0,S.jsx)(J,{isPending:c.isPending,isDisabled:!s.isSuccess,onPress:g,children:i.plugins.settingsSave})]}),children:[s.isPending&&(0,S.jsx)(K5,{shape:`form`}),s.isError&&(0,S.jsx)(q5,{error:s.error,onRetry:()=>void s.refetch()}),s.isSuccess&&(0,S.jsxs)(jQ,{label:i.plugins.settingsTitle(o),gap:4,onSubmit:g,children:[p!==null&&(0,S.jsx)(X,{tone:`danger`,children:`${i.plugins.settingsNotSaved}. ${p}`}),s.data.fields.map(e=>(0,S.jsx)(Y6,{field:e,value:h[e.id],onChange:t=>u(n=>({...n,[e.id]:t})),path:e.key,problems:d},e.id)),s.data.secrets.length>0&&(0,S.jsx)(dae,{plugin:e.name,secrets:s.data.secrets})]})]})}var pae={on:`success`,off:`neutral`,failed:`danger`,unsupported:`warning`,invalid:`danger`},mae=new Set([`on`,`off`,`failed`]),hae=e=>e instanceof Error?e.message:String(e);function gae(){let e=Q(),t=M6(),n=Uc(),r=Gc(),i=J5(),a=F5(),[o,s]=(0,x.useState)(null),[c,l]=(0,x.useState)(null),u=(n,i)=>{let a=o6(n.label,t);r.mutate({name:n.name,enabled:i},{onSuccess:t=>{if(!i)return Z({title:e.plugins.deactivated(a),description:e.plugins.deactivatedDescription});if(t.status!==`on`)return Z({title:e.plugins.notActivated(a),...t.problem!==void 0&&{description:t.problem},tone:`danger`});Z({title:e.plugins.activated(a),description:e.plugins.activatedDescription,tone:`success`})},onError:t=>Z({title:e.plugins.notSwitched,description:hae(t),tone:`danger`})})},d=n=>n.problem??(n.lastFault?e.plugins.failedAt(n.faults,n.lastFault.where,a7(n.lastFault.at,t),n.lastFault.message):null),f=(n.data??[]).map(n=>{let o=d(n),c=o6(n.label,t),f=a.screens.filter(e=>e.plugin===n.name),p=[...f.map(t=>e.plugins.addsScreen(t.label)),...a.panels.filter(e=>e.plugin===n.name).map(t=>e.plugins.addsPanel(t.title)),...n.adds.fieldTypes.length>0?[e.plugins.addsFieldTypes(n.adds.fieldTypes.length)]:[],...n.adds.checks>0?[e.plugins.addsChecks(n.adds.checks)]:[],...n.adds.pageHead?[e.plugins.addsPageHead]:[],...n.adds.redirects?[e.plugins.addsRedirects]:[],...n.adds.tasks.length>0?[e.plugins.addsTasks]:[]],m=a.problems.get(n.name),h=n.permissions.length===0?[e.plugins.mayNothing]:n.permissions.map(t=>e.plugins.permissions[t]),g=n.status===`on`,_=f.length>0||n.adds.tasks.length>0||n.hasSettings;return(0,S.jsx)(MZ,{title:c,description:n.description?o6(n.description,t):n.name,actions:(0,S.jsxs)(S.Fragment,{children:[g&&n.faults>0&&(0,S.jsx)(_1,{tone:`warning`,children:e.plugins.hasFailed}),(0,S.jsx)(_1,{tone:pae[n.status],children:e.plugins.states[n.status]}),mae.has(n.status)&&(0,S.jsx)(e1,{label:e.plugins.active(c),isLabelHidden:!0,isSelected:g,isDisabled:r.isPending,onChange:e=>u(n,e)})]}),..._&&{footer:(0,S.jsxs)(S.Fragment,{children:[n.hasSettings&&(0,S.jsx)(J,{variant:`secondary`,size:`sm`,icon:px,onPress:()=>s(n),children:e.plugins.settings}),n.adds.tasks.length>0&&(0,S.jsx)(J,{variant:`ghost`,size:`sm`,icon:$b,onPress:()=>l(n),children:e.plugins.activity}),f.map(t=>(0,S.jsx)(J,{variant:`ghost`,size:`sm`,icon:vv,onPress:()=>i($.pluginScreen(t.plugin,t.id)),children:e.plugins.open(t.label)},t.id))]})},children:(0,S.jsxs)(Y,{gap:2,children:[o!==null&&(0,S.jsx)(X,{size:`sm`,children:o}),m!==void 0&&(0,S.jsx)(X,{size:`sm`,children:e.plugins.editorFailed(m)}),g&&p.length>0&&(0,S.jsx)(X,{size:`sm`,children:e.plugins.adds(p)}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:[...n.version===void 0?[]:[e.plugins.version(n.version)],e.plugins.may(h)].join(` · `)})]})},n.name)});return(0,S.jsxs)(Z_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(Y,{gap:6,children:[(0,S.jsx)(m2,{title:e.plugins.title,description:e.plugins.description}),n.isPending&&(0,S.jsx)(K5,{shape:`summary`}),n.isError&&(0,S.jsx)(q5,{error:n.error,onRetry:()=>void n.refetch()}),n.isSuccess&&f.length===0&&(0,S.jsx)(l2,{icon:qb,title:e.plugins.emptyTitle,description:e.plugins.emptyDescription}),n.isSuccess&&f.length>0&&(0,S.jsx)(NQ,{columns:2,gap:4,children:f})]}),o&&(0,S.jsx)(fae,{plugin:o,onClose:()=>s(null)},o.name),c&&(0,S.jsx)(lae,{plugin:c,onClose:()=>l(null)},c.name)]})}var E9={},D9=e=>e instanceof Error?e.message:String(e);function _ae(){let e=Q(),t=Po(),n=Oc(),r=jc(),i=Rc(),[a,o]=(0,x.useState)(!1),[s,c]=(0,x.useState)(null),[l,u]=(0,x.useState)(null),d=R6(s),f=sl.map(t=>({id:t,label:e.people.roles[t]})),p=t.data?.id,m=[{id:`name`,label:e.people.columnName},{id:`role`,label:e.people.columnRole},{id:`actions`,label:e.people.columnActions,align:`end`}],h=(n.data??[]).map(t=>({id:t.id,cells:{name:(0,S.jsxs)(Y,{gap:0,children:[(0,S.jsxs)(zQ,{gap:2,children:[(0,S.jsx)(X,{weight:`semibold`,children:t.name}),t.id===p&&(0,S.jsx)(_1,{children:e.people.you}),t.hasSignedIn===!1&&(0,S.jsx)(_1,{tone:`warning`,children:e.people.invitedTag})]}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:t.hasSignedIn===!1?`${t.email} · ${e.people.invitedHelp}`:t.email})]}),role:(0,S.jsx)(j$,{label:e.people.roleOf(t.name),isLabelHidden:!0,options:f,value:t.role,isDisabled:t.id===p||r.isPending,onChange:n=>r.mutate({id:t.id,role:n},{onSuccess:t=>Z({title:e.people.roleChanged(t.name,e.people.roles[t.role]),tone:`success`}),onError:t=>Z({title:e.people.roleNotChanged,description:D9(t),tone:`danger`})})}),actions:(0,S.jsxs)(zQ,{gap:1,children:[(0,S.jsx)(gQ,{label:e.people.rename(t.name),icon:Lb,onPress:()=>u(t)}),(0,S.jsx)(gQ,{label:e.people.remove(t.name),icon:jx,isDisabled:t.id===p,onPress:()=>c(t)})]})}}));return(0,S.jsxs)(Z_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(Y,{gap:6,children:[(0,S.jsx)(m2,{title:e.people.title,description:e.people.description,actions:(0,S.jsx)(J,{icon:zee,collapses:!0,onPress:()=>o(!0),children:e.people.invite})}),n.isPending&&(0,S.jsx)(K5,{shape:`table`}),n.isError&&(0,S.jsx)(q5,{error:n.error,onRetry:()=>void n.refetch()}),n.isSuccess&&(0,S.jsx)(u1,{label:e.people.title,columns:m,rows:h}),(0,S.jsx)(Y,{gap:1,children:sl.map(t=>(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:e.people.roleMeans[t]},t))})]}),a&&(0,S.jsx)(yae,{onClose:()=>o(!1)}),l&&(0,S.jsx)(vae,{person:l,onClose:()=>u(null)}),(0,S.jsx)(o2,{isOpen:s!==null,onOpenChange:e=>!e&&c(null),title:e.people.removeTitle(d?.name??``),confirmLabel:e.people.removeConfirm,cancelLabel:e.editor.cancel,tone:`danger`,isPending:i.isPending,onConfirm:()=>{s&&i.mutate(s.id,{onSuccess:()=>Z({title:e.people.removed(s.name),tone:`success`}),onError:t=>Z({title:e.people.notRemoved,description:D9(t),tone:`danger`}),onSettled:()=>c(null)})},children:e.people.removeDescription})]})}function vae({person:e,onClose:t}){let{close:n,dialog:r}=L6(t),i=Q(),a=Mc(),[o,s]=(0,x.useState)(e.name),[c,l]=(0,x.useState)(null),u=()=>{l(null),a.mutate({id:e.id,name:o},{onSuccess:e=>{Z({title:i.people.renamed(e.name),tone:`success`}),n()},onError:e=>l(D9(e))})};return(0,S.jsx)(CQ,{...r,title:i.people.renameTitle(e.name),closeLabel:i.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(J,{variant:`secondary`,onPress:n,children:i.editor.cancel}),(0,S.jsx)(J,{isPending:a.isPending,isDisabled:o.trim()===``||o.trim()===e.name,onPress:u,children:i.people.renameSave})]}),children:(0,S.jsx)(jQ,{label:i.people.renameTitle(e.name),gap:4,onSubmit:u,children:(0,S.jsx)(x1,{label:i.people.name,value:o,onChange:s,isRequired:!0,autoFocus:!0,autoComplete:`off`,description:i.people.renameHelp,...c!==null&&{errorMessage:c}})})})}function yae({onClose:e}){let{close:t,dialog:n}=L6(e),r=Q(),i=Ac(),[a,o]=(0,x.useState)(``),[s,c]=(0,x.useState)(``),[l,u]=(0,x.useState)(`editor`),[d,f]=(0,x.useState)(E9),p=()=>{f(E9),i.mutate({name:a,email:s,role:l},{onSuccess:e=>{Z({title:r.people.invited(e.name),description:r.people.invitedDescription(e.email),tone:`success`}),t()},onError:e=>{let t=e instanceof Mo?e.issues:[];f(t.length>0?Object.fromEntries(t.map(e=>[e.path[0]??`email`,e.message])):{email:D9(e)})}})};return(0,S.jsx)(CQ,{...n,title:r.people.inviteTitle,closeLabel:r.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(J,{variant:`secondary`,onPress:t,children:r.editor.cancel}),(0,S.jsx)(J,{isPending:i.isPending,onPress:p,children:r.people.inviteSend})]}),children:(0,S.jsxs)(jQ,{label:r.people.inviteTitle,gap:4,onSubmit:p,children:[(0,S.jsx)(x1,{label:r.people.name,value:a,onChange:o,isRequired:!0,autoFocus:!0,autoComplete:`off`,...d.name!==void 0&&{errorMessage:d.name}}),(0,S.jsx)(x1,{label:r.people.email,type:`email`,value:s,onChange:c,isRequired:!0,autoComplete:`off`,description:r.people.emailHelp,...d.email!==void 0&&{errorMessage:d.email}}),(0,S.jsx)(j$,{label:r.people.role,options:sl.map(e=>({id:e,label:r.people.roles[e]})),value:l,onChange:e=>u(e),description:r.people.roleMeans[l],...d.role!==void 0&&{errorMessage:d.role}})]})})}var O9=e=>e instanceof Error?e.message:String(e);function k9({onClose:e}){let{close:t,dialog:n}=L6(e),r=Q(),i=M6(),a=Zc(),o=$c(),s=el(),[c,l]=(0,x.useState)(r.app.passkeyDefaultName),[u,d]=(0,x.useState)(null),f=()=>{d(null),o.mutate(c.trim()===``?r.app.passkeyDefaultName:c.trim(),{onSuccess:()=>Z({title:r.app.passkeyAdded,description:r.app.passkeyAddedDescription,tone:`success`}),onError:e=>d(O9(e))})},p=[{id:`name`,label:r.app.passkeyColumnName},{id:`added`,label:r.app.passkeyColumnAdded},{id:`actions`,label:r.app.passkeyColumnActions,align:`end`}],m=(a.data??[]).map(e=>{let t=e.name===``?r.app.passkeyUnnamed:e.name;return{id:e.id,cells:{name:(0,S.jsx)(X,{weight:`semibold`,children:t}),added:(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:e.createdAt===void 0?r.app.passkeyAddedUnknown:a7(e.createdAt,i)}),actions:(0,S.jsx)(gQ,{label:r.app.passkeyRemove(t),icon:jx,isDisabled:s.isPending,onPress:()=>s.mutate(e.id,{onSuccess:()=>Z({title:r.app.passkeyRemoved(t),description:r.app.passkeyRemovedDescription,tone:`success`}),onError:e=>Z({title:r.app.passkeyNotRemoved,description:O9(e),tone:`danger`})})})}}});return(0,S.jsx)(CQ,{...n,title:r.app.passkeys,closeLabel:r.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(J,{variant:`secondary`,onPress:t,children:r.app.passkeyDone}),(0,S.jsx)(J,{isPending:o.isPending,onPress:f,children:r.app.passkeyAdd})]}),children:(0,S.jsxs)(Y,{gap:4,children:[(0,S.jsx)(X,{tone:`secondary`,children:r.app.passkeyDescription}),a.isPending&&(0,S.jsx)(K5,{shape:`table`}),a.isError&&(0,S.jsx)(q5,{error:a.error,onRetry:()=>void a.refetch()}),a.isSuccess&&m.length===0&&(0,S.jsx)(X,{tone:`muted`,children:r.app.passkeyNone}),a.isSuccess&&m.length>0&&(0,S.jsx)(u1,{label:r.app.passkeys,columns:p,rows:m}),(0,S.jsx)(jQ,{label:r.app.passkeyTitle,onSubmit:f,children:(0,S.jsx)(x1,{label:r.app.passkeyName,description:r.app.passkeyNameHelp,value:c,onChange:l,autoFocus:!0,...u!==null&&{errorMessage:`${r.app.passkeyNotAdded}. ${u}`}})})]})})}var A9=256,bae=.85;async function xae(e){let t;try{t=await createImageBitmap(e)}catch{return null}let n=Math.min(t.width,t.height),r=document.createElement(`canvas`);r.width=A9,r.height=A9;let i=r.getContext(`2d`);if(!i||n===0)return null;i.fillStyle=`#fff`,i.fillRect(0,0,A9,A9),i.drawImage(t,(t.width-n)/2,(t.height-n)/2,n,n,0,0,A9,A9),t.close();let a=r.toDataURL(`image/jpeg`,bae);return a.startsWith(`data:image/jpeg;base64,`)?a:null}var j9=e=>e instanceof Error?e.message:String(e),M9=(e,t)=>{let n=e instanceof Mo?e.issues:[];return n.length>0?Object.fromEntries(n.map(e=>[String(e.path[0]??t),e.message])):{[t]:j9(e)}};function Sae(){let e=Q(),t=Nc();return(0,S.jsx)(Z_,{paddingX:12,paddingY:10,children:(0,S.jsxs)(Y,{gap:6,children:[(0,S.jsx)(m2,{title:e.profile.title,description:e.profile.description}),(0,S.jsx)(Cae,{}),t.isPending&&(0,S.jsx)(K5,{shape:`form`}),t.isError&&(0,S.jsx)(q5,{error:t.error,onRetry:()=>void t.refetch()}),t.isSuccess&&(0,S.jsx)(Z_,{maxWidth:`lg`,children:(0,S.jsxs)(Y,{gap:6,children:[(0,S.jsx)(wae,{profile:t.data}),(0,S.jsx)(Tae,{profile:t.data}),(0,S.jsx)(Eae,{})]})})]})})}function Cae(){let e=Q(),[t,n]=Co(),r=Lc(),i=t.get(`email`),a=(0,x.useRef)(null);return(0,x.useEffect)(()=>{i!==null&&a.current!==i&&(a.current=i,n({},{replace:!0}),r.mutate(i,{onSuccess:t=>Z({title:e.profile.emailConfirmed,description:e.profile.emailConfirmedDescription(t.email),tone:`success`}),onError:t=>Z({title:e.profile.emailNotConfirmed,description:j9(t),tone:`danger`})}))},[i,r,n,e]),null}function wae({profile:e}){let t=Q(),n=t.profile,r=Fc(),i=Fc(),[a,o]=(0,x.useState)(e.name),[s,c]=(0,x.useState)({}),l=()=>{c({}),r.mutate({name:a},{onSuccess:e=>{o(e.name),Z({title:n.saved,tone:`success`})},onError:e=>{c(M9(e,`name`)),Z({title:n.notSaved,description:j9(e),tone:`danger`})}})},u=async e=>{let t=await xae(e);t===null?Z({title:n.photoNotSaved,description:n.photoUnreadable,tone:`danger`}):i.mutate({image:t},{onSuccess:()=>Z({title:n.photoSaved,tone:`success`}),onError:e=>Z({title:n.photoNotSaved,description:j9(e),tone:`danger`})})};return(0,S.jsx)(MZ,{title:n.detailsTitle,actions:(0,S.jsx)(X,{tone:`muted`,children:n.role(t.people.roles[e.role])}),children:(0,S.jsxs)(Y,{gap:6,children:[(0,S.jsxs)(zQ,{gap:4,children:[(0,S.jsx)(P1,{name:e.name,src:e.image,size:`lg`}),(0,S.jsxs)(Y,{gap:2,children:[(0,S.jsx)(X,{weight:`semibold`,children:n.photo}),(0,S.jsxs)(zQ,{gap:2,children:[(0,S.jsx)(kQ,{accept:`image`,icon:Ix,size:`sm`,isPending:i.isPending,onSelect:e=>void u(e),children:e.image===void 0?n.photoChoose:n.photoReplace}),e.image!==void 0&&(0,S.jsx)(J,{variant:`ghost`,size:`sm`,icon:jx,isDisabled:i.isPending,onPress:()=>i.mutate({image:null},{onSuccess:()=>Z({title:n.photoRemoved,tone:`success`}),onError:e=>Z({title:n.photoNotSaved,description:j9(e),tone:`danger`})}),children:n.photoRemove})]}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:n.photoHelp})]})]}),(0,S.jsxs)(jQ,{onSubmit:l,children:[(0,S.jsx)(x1,{label:n.name,value:a,onChange:o,isRequired:!0,autoComplete:`name`,description:n.nameHelp,...s.name!==void 0&&{errorMessage:s.name}}),(0,S.jsx)(zQ,{gap:3,children:(0,S.jsx)(J,{type:`submit`,isPending:r.isPending,isDisabled:a.trim()===e.name,children:n.save})})]})]})})}function Tae({profile:e}){let t=Q().profile,n=Ic(),[r,i]=(0,x.useState)(!1),[a,o]=(0,x.useState)(``),[s,c]=(0,x.useState)(null);return(0,S.jsx)(MZ,{title:t.emailTitle,description:t.emailDescription,children:(0,S.jsxs)(Y,{gap:4,children:[(0,S.jsx)(X,{children:t.emailCurrent(e.email)}),r?(0,S.jsxs)(jQ,{onSubmit:()=>{c(null),n.mutate(a,{onSuccess:()=>{Z({title:t.emailSent,description:t.emailSentDescription(a.trim()),tone:`success`}),i(!1),o(``)},onError:e=>{c(M9(e,`email`).email??j9(e)),Z({title:t.emailNotSent,description:j9(e),tone:`danger`})}})},children:[(0,S.jsx)(x1,{label:t.emailNew,type:`email`,value:a,onChange:o,isRequired:!0,autoFocus:!0,autoComplete:`email`,description:t.emailNewHelp,...s!==null&&{errorMessage:s}}),(0,S.jsxs)(zQ,{gap:3,children:[(0,S.jsx)(J,{type:`submit`,icon:db,isPending:n.isPending,isDisabled:a.trim()===``,children:t.emailSend}),(0,S.jsx)(J,{variant:`ghost`,onPress:()=>{i(!1),c(null)},children:t.emailCancel})]})]}):(0,S.jsx)(zQ,{gap:3,children:(0,S.jsx)(J,{variant:`secondary`,icon:db,onPress:()=>i(!0),children:t.emailChange})})]})})}function Eae(){let e=Q().profile,[t,n]=(0,x.useState)(!1);return(0,S.jsxs)(MZ,{title:e.passkeysTitle,description:e.passkeysDescription,children:[(0,S.jsx)(zQ,{gap:3,children:(0,S.jsx)(J,{variant:`secondary`,icon:Ly,onPress:()=>n(!0),children:e.passkeysManage})}),t&&(0,S.jsx)(k9,{onClose:()=>n(!1)})]})}var N9={},Dae=/^\s*"?([^<>"]*?)"?\s*<([^<>]+)>\s*$/,P9=e=>{let t=Dae.exec(e);return t?{name:t[1]?.trim()??``,address:t[2]?.trim()??``}:{name:``,address:e.trim()}},F9=e=>e instanceof Error?e.message:String(e);function Oae(){let e=Qs();return e.isPending?(0,S.jsx)(K5,{shape:`form`}):e.isError?(0,S.jsx)(q5,{error:e.error,onRetry:()=>void e.refetch()}):(0,S.jsx)(Z_,{maxWidth:`lg`,children:(0,S.jsx)(kae,{settings:e.data})})}function kae({settings:e}){let t=Q(),n=t.settings.email,r=Po(),i=$s(),a=ec(),[o,s]=(0,x.useState)(e.provider),c=P9(e.from),l=e.senderName===``?c.name:e.senderName,[u,d]=(0,x.useState)(c.address),[f,p]=(0,x.useState)(l),[m,h]=(0,x.useState)(``),[g,_]=(0,x.useState)(!1),[v,y]=(0,x.useState)(!1),[b,C]=(0,x.useState)(N9),w=!e.hasKey||g,T=u.trim()!==c.address||f.trim()!==l||o!==e.provider||w&&m.trim()!==``,E=r.data?.email??``,D=()=>{C(N9),i.mutate({provider:o,from:u,senderName:f,...w&&m.trim()!==``&&{apiKey:m},expectedRevision:e.revision},{onSuccess:t=>{h(``),_(!1),d(P9(t.from).address),p(t.senderName),Z({title:n.saved,...t.sending&&!e.sending&&{description:n.savedDescription},tone:`success`})},onError:e=>{let t=e instanceof Mo?e.issues:[];C(Object.fromEntries(t.map(e=>[String(e.path[0]??`from`),e.message]))),Z({title:n.notSaved,description:F9(e),tone:`danger`})}})},O=()=>a.mutate(void 0,{onSuccess:()=>Z({title:n.testSent,description:n.testSentDescription(E),tone:`success`}),onError:e=>Z({title:n.testNotSent,description:F9(e),tone:`danger`})}),k=()=>i.mutate({from:e.from,apiKey:null,expectedRevision:e.revision},{onSuccess:()=>{h(``),_(!1),Z({title:n.stopped,description:n.stoppedDescription,tone:`success`})},onError:e=>Z({title:n.notSaved,description:F9(e),tone:`danger`}),onSettled:()=>y(!1)}),A=(0,S.jsx)(J,{variant:`secondary`,icon:dx,isPending:a.isPending,isDisabled:!e.canTest||T,onPress:O,children:n.test}),j=e.fixedBy===void 0?e.sending?(0,S.jsx)(_1,{tone:`success`,children:n.states.sending}):(0,S.jsx)(_1,{tone:`warning`,children:n.states.off}):(0,S.jsx)(_1,{tone:`info`,children:n.states[e.fixedBy]}),M=()=>{C(N9),i.mutate({senderName:f,expectedRevision:e.revision},{onSuccess:e=>{p(e.senderName),Z({title:n.saved,tone:`success`})},onError:e=>{let t=e instanceof Mo?e.issues:[];C(Object.fromEntries(t.map(e=>[String(e.path[0]??`senderName`),e.message]))),Z({title:n.notSaved,description:F9(e),tone:`danger`})}})},N=(0,S.jsx)(x1,{label:n.senderName,value:f,onChange:p,autoComplete:`off`,description:n.senderNameHelp,...b.senderName!==void 0&&{errorMessage:b.senderName}});return e.fixedBy===void 0?(0,S.jsxs)(MZ,{title:n.title,description:n.description,actions:j,children:[(0,S.jsxs)(jQ,{onSubmit:D,children:[!e.sending&&(0,S.jsx)(X,{tone:`secondary`,children:n.offHelp}),(0,S.jsx)(j$,{label:n.provider,options:gee.map(e=>({id:e,label:n.providers[e]})),value:o,onChange:e=>s(e),description:n.providerHelp,...b.provider!==void 0&&{errorMessage:b.provider}}),(0,S.jsx)(VQ,{href:n.providerLinks[o],opensInNewTab:!0,children:n.providerLink(n.providers[o])}),w?(0,S.jsxs)(Y,{gap:2,children:[(0,S.jsx)(x1,{label:n.key,type:`password`,autoComplete:`off`,value:m,onChange:h,description:n.keyHelp,...b.apiKey!==void 0&&{errorMessage:b.apiKey}}),e.hasKey&&(0,S.jsx)(zQ,{gap:3,children:(0,S.jsx)(J,{variant:`ghost`,size:`sm`,onPress:()=>{h(``),_(!1)},children:n.keyKeep})})]}):(0,S.jsxs)(Y,{gap:2,children:[(0,S.jsx)(X,{weight:`semibold`,children:n.key}),(0,S.jsx)(X,{tone:`secondary`,children:n.keySaved}),(0,S.jsx)(zQ,{gap:3,children:(0,S.jsx)(J,{variant:`secondary`,size:`sm`,onPress:()=>_(!0),children:n.keyReplace})})]}),N,(0,S.jsx)(x1,{label:n.from,value:u,onChange:d,autoComplete:`off`,description:n.fromHelp,...b.from!==void 0&&{errorMessage:b.from}}),(0,S.jsxs)(Y,{gap:2,children:[(0,S.jsxs)(zQ,{gap:3,children:[(0,S.jsx)(J,{type:`submit`,isPending:i.isPending&&!v,isDisabled:!T,children:n.save}),A,e.hasKey&&(0,S.jsx)(J,{variant:`ghost`,onPress:()=>y(!0),children:n.stop})]}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:e.canTest&&T?n.testAfterSave:n.testHelp(E)})]}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:n.look})]}),(0,S.jsx)(o2,{isOpen:v,onOpenChange:e=>!e&&y(!1),title:n.stopTitle,confirmLabel:n.stopConfirm,cancelLabel:t.editor.cancel,tone:`danger`,isPending:i.isPending,onConfirm:k,children:n.stopDescription})]}):(0,S.jsx)(MZ,{title:n.title,description:n.description,actions:j,children:(0,S.jsxs)(Y,{gap:4,children:[(0,S.jsx)(X,{children:n.fixed[e.fixedBy]}),e.fixedBy===`server`&&(e.senderNameFixedBy===void 0?(0,S.jsxs)(jQ,{onSubmit:M,children:[N,(0,S.jsx)(zQ,{gap:3,children:(0,S.jsx)(J,{type:`submit`,variant:`secondary`,isPending:i.isPending,isDisabled:f.trim()===e.senderName,children:n.saveSenderName})})]}):(0,S.jsx)(X,{tone:`secondary`,children:n.senderNameFixed})),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:n.look}),e.canTest&&(0,S.jsxs)(Y,{gap:2,children:[(0,S.jsx)(zQ,{gap:3,children:A}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:n.testHelp(E)})]})]})})}var I9={},L9=e=>e instanceof Error?e.message:String(e),R9=e=>Object.fromEntries((e instanceof Mo?e.issues:[]).map(e=>[String(e.path[0]??`siteKey`),e.message]));function Aae(){let e=rc();return e.isPending?(0,S.jsx)(K5,{shape:`form`}):e.isError?(0,S.jsx)(q5,{error:e.error,onRetry:()=>void e.refetch()}):(0,S.jsx)(Z_,{maxWidth:`lg`,children:(0,S.jsxs)(Y,{gap:6,children:[(0,S.jsx)(jae,{settings:e.data}),(0,S.jsx)(Mae,{settings:e.data})]})})}function jae({settings:e}){let t=Q(),n=t.settings.forms,r=ic(),i=ac(),[a,o]=(0,x.useState)(e.siteKey),[s,c]=(0,x.useState)(``),[l,u]=(0,x.useState)(!1),[d,f]=(0,x.useState)(!1),[p,m]=(0,x.useState)(I9),h=!e.hasSecret||l,g=a.trim()!==e.siteKey||h&&s.trim()!==``,_=e=>p[e]===void 0?{}:{errorMessage:p[e]},v=()=>{m(I9),r.mutate({siteKey:a,...h&&s.trim()!==``&&{secretKey:s},postsPerAddress:e.postsPerAddress,expectedRevision:e.revision},{onSuccess:e=>{c(``),u(!1),o(e.siteKey),Z({title:n.saved,...e.checking&&{description:n.savedDescription},tone:`success`})},onError:e=>{m(R9(e)),Z({title:n.notSaved,description:L9(e),tone:`danger`})}})},y=()=>i.mutate(void 0,{onSuccess:()=>Z({title:n.testWorked,description:n.testWorkedDescription,tone:`success`}),onError:e=>Z({title:n.testFailed,description:L9(e),tone:`danger`})}),b=()=>r.mutate({siteKey:``,secretKey:null,postsPerAddress:e.postsPerAddress,expectedRevision:e.revision},{onSuccess:()=>{o(``),c(``),u(!1),Z({title:n.stopped,description:n.stoppedDescription,tone:`success`})},onError:e=>Z({title:n.notSaved,description:L9(e),tone:`danger`}),onSettled:()=>f(!1)});return(0,S.jsxs)(MZ,{title:n.title,description:n.description,actions:(0,S.jsx)(_1,{tone:e.checking?`success`:`neutral`,children:e.checking?n.states.checking:n.states.off}),children:[(0,S.jsxs)(jQ,{onSubmit:v,children:[(0,S.jsx)(X,{tone:`secondary`,children:e.checking?n.help.checking:n.help.off}),(0,S.jsx)(x1,{label:n.siteKey,autoComplete:`off`,value:a,onChange:o,description:n.siteKeyHelp,..._(`siteKey`)}),h?(0,S.jsxs)(Y,{gap:2,children:[(0,S.jsx)(x1,{label:n.secret,type:`password`,autoComplete:`off`,value:s,onChange:c,description:n.secretHelp,..._(`secretKey`)}),e.hasSecret&&(0,S.jsx)(zQ,{gap:3,children:(0,S.jsx)(J,{variant:`ghost`,size:`sm`,onPress:()=>{c(``),u(!1)},children:n.secretKeep})})]}):(0,S.jsxs)(Y,{gap:2,children:[(0,S.jsx)(X,{weight:`semibold`,children:n.secret}),(0,S.jsx)(X,{tone:`secondary`,children:n.secretSaved}),(0,S.jsx)(zQ,{gap:3,children:(0,S.jsx)(J,{variant:`secondary`,size:`sm`,onPress:()=>u(!0),children:n.secretReplace})})]}),(0,S.jsxs)(Y,{gap:2,children:[(0,S.jsxs)(zQ,{gap:3,children:[(0,S.jsx)(J,{type:`submit`,isPending:r.isPending&&!d,isDisabled:!g,children:n.save}),(0,S.jsx)(J,{variant:`secondary`,icon:yx,isPending:i.isPending,isDisabled:!e.checking||g,onPress:y,children:n.test}),e.hasSecret&&(0,S.jsx)(J,{variant:`ghost`,onPress:()=>f(!0),children:n.stop})]}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:e.checking&&g?n.testAfterSave:n.testHelp})]})]}),(0,S.jsx)(o2,{isOpen:d,onOpenChange:e=>!e&&f(!1),title:n.stopTitle,confirmLabel:n.stopConfirm,cancelLabel:t.editor.cancel,tone:`danger`,isPending:r.isPending,onConfirm:b,children:n.stopDescription})]})}function Mae({settings:e}){let t=Q().settings.forms,n=ic(),[r,i]=(0,x.useState)(e.postsPerAddress),[a,o]=(0,x.useState)(void 0);return(0,S.jsx)(MZ,{title:t.limitTitle,description:t.limitDescription,children:(0,S.jsxs)(jQ,{onSubmit:()=>{o(void 0),n.mutate({siteKey:e.siteKey,postsPerAddress:r??0,expectedRevision:e.revision},{onSuccess:e=>{i(e.postsPerAddress),Z({title:t.limitSaved,description:t.limitSavedDescription(e.postsPerAddress),tone:`success`})},onError:e=>{o(R9(e).postsPerAddress),Z({title:t.limitNotSaved,description:L9(e),tone:`danger`})}})},children:[(0,S.jsx)(u$,{label:t.limit,value:r,onChange:i,isInteger:!0,minValue:1,maxValue:100,description:t.limitHelp(100),...a!==void 0&&{errorMessage:a}}),(0,S.jsx)(zQ,{gap:3,children:(0,S.jsx)(J,{type:`submit`,isPending:n.isPending,isDisabled:r===e.postsPerAddress,children:t.limitSave})})]})})}var z9=e=>e instanceof Error?e.message:String(e);function Nae(){let e=tc();return e.isPending?(0,S.jsx)(K5,{shape:`form`}):e.isError?(0,S.jsx)(q5,{error:e.error,onRetry:()=>void e.refetch()}):(0,S.jsx)(Z_,{maxWidth:`lg`,children:(0,S.jsx)(Pae,{settings:e.data})})}function Pae({settings:e}){let t=Q().settings.general,n=nc(),[r,i]=(0,x.useState)(e.siteName),[a,o]=(0,x.useState)(null);return e.fixedBy===void 0?(0,S.jsx)(MZ,{title:t.title,description:t.description,children:(0,S.jsxs)(jQ,{onSubmit:()=>{o(null),n.mutate({siteName:r,expectedRevision:e.revision},{onSuccess:e=>{i(e.siteName),Z({title:t.saved,description:t.savedDescription,tone:`success`})},onError:e=>{let n=e instanceof Mo?e.issues.find(e=>e.path[0]===`siteName`):void 0;o(n?.message??z9(e)),Z({title:t.notSaved,description:z9(e),tone:`danger`})}})},children:[(0,S.jsx)(x1,{label:t.name,value:r,onChange:i,autoComplete:`off`,placeholder:e.defaultSiteName,description:e.defaultSiteName===``?t.nameHelp:t.nameHelpWithDefault(e.defaultSiteName),...a!==null&&{errorMessage:a}}),(0,S.jsx)(zQ,{gap:3,children:(0,S.jsx)(J,{type:`submit`,isPending:n.isPending,isDisabled:r.trim()===e.siteName,children:t.save})})]})}):(0,S.jsx)(MZ,{title:t.title,description:t.description,actions:(0,S.jsx)(_1,{tone:`info`,children:t.states[e.fixedBy]}),children:(0,S.jsx)(X,{children:t.fixed(e.defaultSiteName)})})}var Fae=`new`;function Iae({type:e}){let t=Q(),n=M6(),r=ts(),i=Qo({type:e.key,limit:200}),[a,o]=(0,x.useState)(null),[s,c]=(0,x.useState)(null),l=[...i.data?.items??[]].sort((e,t)=>e.locale.localeCompare(t.locale)),u=l.find(e=>e.id===a)??l[0],d=a??u?.id??null,f=ss(d);if(i.isPending||r.isPending||d!==null&&f.isPending)return(0,S.jsx)(K5,{shape:`form`});if(i.isError)return(0,S.jsx)(q5,{error:i.error,onRetry:()=>void i.refetch()});if(r.isError)return(0,S.jsx)(q5,{error:r.error,onRetry:()=>void r.refetch()});if(d!==null&&f.isError)return(0,S.jsx)(q5,{error:f.error,onRetry:()=>void f.refetch()});let p=e.siteNamePath&&f6(e,{},e.siteNamePath)?.field;return(0,S.jsxs)(Y,{gap:2,children:[p&&(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:t.settings.namesSite(o6(p.label,n))}),(0,S.jsx)(h9,{embedded:!0,type:e,entry:d===null?null:f.data??null,versions:l,onSwitch:o,onCreated:e=>{c(e.id),o(e.id)}},d===null||d===s?Fae:d)]})}var B9={},V9=e=>e instanceof Error?e.message:String(e);function Lae(){let e=oc();return e.isPending?(0,S.jsx)(K5,{shape:`form`}):e.isError?(0,S.jsx)(q5,{error:e.error,onRetry:()=>void e.refetch()}):(0,S.jsx)(Z_,{maxWidth:`lg`,children:(0,S.jsx)(Rae,{settings:e.data})})}function Rae({settings:e}){let t=Q(),n=t.settings.storage,r=sc(),i=cc(),[a,o]=(0,x.useState)(e.endpoint),[s,c]=(0,x.useState)(e.bucket),[l,u]=(0,x.useState)(e.region),[d,f]=(0,x.useState)(e.accessKeyId),[p,m]=(0,x.useState)(``),[h,g]=(0,x.useState)(!1),[_,v]=(0,x.useState)(!1),[y,b]=(0,x.useState)(B9),C=!e.hasSecret||h,w=a.trim()!==e.endpoint||s.trim()!==e.bucket||l.trim()!==e.region||d.trim()!==e.accessKeyId||C&&p.trim()!==``,T=e=>y[e]===void 0?{}:{errorMessage:y[e]},E=()=>{b(B9),r.mutate({endpoint:a,bucket:s,region:l,accessKeyId:d,...C&&p.trim()!==``&&{secretAccessKey:p},expectedRevision:e.revision},{onSuccess:e=>{m(``),g(!1),o(e.endpoint),c(e.bucket),u(e.region),f(e.accessKeyId),Z({title:n.saved,...e.hasSecret&&{description:n.savedDescription},tone:`success`})},onError:e=>{let t=e instanceof Mo?e.issues:[];b(Object.fromEntries(t.map(e=>[String(e.path[0]??`endpoint`),e.message]))),Z({title:n.notSaved,description:V9(e),tone:`danger`})}})},D=()=>i.mutate(void 0,{onSuccess:()=>Z({title:n.testWorked,description:n.testWorkedDescription,tone:`success`}),onError:e=>Z({title:n.testFailed,description:V9(e),tone:`danger`})}),O=()=>r.mutate({endpoint:e.endpoint,bucket:e.bucket,region:e.region,accessKeyId:e.accessKeyId,secretAccessKey:null,expectedRevision:e.revision},{onSuccess:()=>{m(``),g(!1),Z({title:n.stopped,description:n.stoppedDescription,tone:`success`})},onError:e=>Z({title:n.notSaved,description:V9(e),tone:`danger`}),onSettled:()=>v(!1)}),k=e.fixedBy===void 0?(0,S.jsx)(_1,{tone:e.keeping===`bucket`?`success`:e.keeping===`folder`?`neutral`:`warning`,children:n.states[e.keeping]}):(0,S.jsx)(_1,{tone:`info`,children:n.states[e.fixedBy]});return e.fixedBy===void 0?(0,S.jsxs)(MZ,{title:n.title,description:n.description,actions:k,children:[(0,S.jsxs)(jQ,{onSubmit:E,children:[(0,S.jsx)(X,{tone:`secondary`,children:n.keepingHelp[e.keeping]}),(0,S.jsx)(x1,{label:n.endpoint,type:`url`,autoComplete:`off`,value:a,onChange:o,description:n.endpointHelp,...T(`endpoint`)}),(0,S.jsx)(x1,{label:n.bucket,autoComplete:`off`,value:s,onChange:c,...T(`bucket`)}),(0,S.jsx)(x1,{label:n.region,autoComplete:`off`,value:l,onChange:u,description:n.regionHelp,...T(`region`)}),(0,S.jsx)(x1,{label:n.accessKeyId,autoComplete:`off`,value:d,onChange:f,description:n.accessKeyIdHelp,...T(`accessKeyId`)}),C?(0,S.jsxs)(Y,{gap:2,children:[(0,S.jsx)(x1,{label:n.secret,type:`password`,autoComplete:`off`,value:p,onChange:m,description:n.secretHelp,...T(`secretAccessKey`)}),e.hasSecret&&(0,S.jsx)(zQ,{gap:3,children:(0,S.jsx)(J,{variant:`ghost`,size:`sm`,onPress:()=>{m(``),g(!1)},children:n.secretKeep})})]}):(0,S.jsxs)(Y,{gap:2,children:[(0,S.jsx)(X,{weight:`semibold`,children:n.secret}),(0,S.jsx)(X,{tone:`secondary`,children:n.secretSaved}),(0,S.jsx)(zQ,{gap:3,children:(0,S.jsx)(J,{variant:`secondary`,size:`sm`,onPress:()=>g(!0),children:n.secretReplace})})]}),(0,S.jsxs)(Y,{gap:2,children:[(0,S.jsxs)(zQ,{gap:3,children:[(0,S.jsx)(J,{type:`submit`,isPending:r.isPending&&!_,isDisabled:!w,children:n.save}),(0,S.jsx)(J,{variant:`secondary`,icon:Ub,isPending:i.isPending,isDisabled:!e.hasSecret||w,onPress:D,children:n.test}),e.hasSecret&&(0,S.jsx)(J,{variant:`ghost`,onPress:()=>v(!0),children:n.stop})]}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:e.hasSecret&&w?n.testAfterSave:n.moveHelp})]})]}),(0,S.jsx)(o2,{isOpen:_,onOpenChange:e=>!e&&v(!1),title:n.stopTitle,confirmLabel:n.stopConfirm,cancelLabel:t.editor.cancel,tone:`danger`,isPending:r.isPending,onConfirm:O,children:n.stopDescription})]}):(0,S.jsx)(MZ,{title:n.title,description:n.description,actions:k,children:(0,S.jsx)(X,{children:n.fixed[e.fixedBy]})})}function zae(){return typeof window>`u`?``:window.location.origin}var H9={},U9=e=>e instanceof Error?e.message:String(e);function Bae(){let e=Q().settings.tokens,t=Q(),n=M6(),r=zc(),i=Hc(),[a,o]=(0,x.useState)(!1),[s,c]=(0,x.useState)(null),[l,u]=(0,x.useState)(null),d=R6(l);if(r.isPending)return(0,S.jsx)(K5,{shape:`table`});if(r.isError)return(0,S.jsx)(q5,{error:r.error,onRetry:()=>void r.refetch()});let f=[{id:`name`,label:e.columnName},{id:`may`,label:e.columnMay,isSecondary:!0},{id:`ends`,label:e.columnEnds,isSecondary:!0},{id:`actions`,label:e.columnActions,align:`end`}],p=r.data.map(t=>({id:t.id,cells:{name:(0,S.jsxs)(Y,{gap:0,children:[(0,S.jsx)(X,{weight:`semibold`,children:t.name}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:[e.hint(t.hint),t.madeBy===null?e.madeOnServer:e.madeBy(t.madeBy),t.lastUsedAt===null?e.neverUsed:e.lastUsed(a7(t.lastUsedAt,n))].join(` · `)})]}),may:(0,S.jsxs)(zQ,{gap:1,children:[(0,S.jsx)(_1,{children:e.roles[t.role]}),(0,S.jsx)(_1,{tone:t.publish?`warning`:`neutral`,children:t.publish?e.publishes:e.drafts}),t.personalData&&(0,S.jsx)(_1,{tone:`warning`,children:e.personal})]}),ends:(0,S.jsx)(X,{size:`sm`,children:a7(t.expiresAt,n)}),actions:(0,S.jsx)(gQ,{label:e.revoke(t.name),icon:jx,onPress:()=>u(t)})}})),m=(0,S.jsx)(J,{icon:Gb,onPress:()=>o(!0),children:e.make});return(0,S.jsxs)(Y,{gap:6,children:[(0,S.jsx)(MZ,{title:e.title,description:e.description,actions:r.data.length>0?m:void 0,isFlush:r.data.length>0,children:r.data.length===0?(0,S.jsx)(l2,{icon:Ly,title:e.empty,description:e.emptyDescription,action:m,level:3}):(0,S.jsx)(u1,{label:e.title,columns:f,rows:p,frame:`none`})}),a&&(0,S.jsx)(Vae,{onClose:()=>o(!1),onMade:e=>{o(!1),c(e)}}),s&&(0,S.jsx)(Hae,{made:s,onClose:()=>c(null)}),(0,S.jsx)(o2,{isOpen:l!==null,onOpenChange:e=>!e&&u(null),title:e.revokeTitle(d?.name??``),confirmLabel:e.revokeConfirm,cancelLabel:t.editor.cancel,tone:`danger`,isPending:i.isPending,onConfirm:()=>{l&&i.mutate(l.id,{onSuccess:()=>Z({title:e.revoked(l.name),tone:`success`}),onError:t=>Z({title:e.notRevoked,description:U9(t),tone:`danger`}),onSettled:()=>u(null)})},children:e.revokeDescription})]})}function Vae({onClose:e,onMade:t}){let{close:n,dialog:r}=L6(e),i=Q(),a=i.settings.tokens,o=Vc(),[s,c]=(0,x.useState)(``),[l,u]=(0,x.useState)(`editor`),[d,f]=(0,x.useState)(!1),[p,m]=(0,x.useState)(!1),[h,g]=(0,x.useState)(90),[_,v]=(0,x.useState)(H9),y=()=>{v(H9),o.mutate({name:s,role:l,publish:d,personalData:p,days:h??0},{onSuccess:e=>{Z({title:a.made,tone:`success`}),t(e)},onError:e=>{let t=e instanceof Mo?e.issues:[];v(t.length>0?Object.fromEntries(t.map(e=>[e.path[0]??`name`,e.message])):{name:U9(e)}),t.length===0&&Z({title:a.notMade,description:U9(e),tone:`danger`})}})};return(0,S.jsx)(CQ,{...r,title:a.makeTitle,closeLabel:i.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(J,{variant:`secondary`,onPress:n,children:i.editor.cancel}),(0,S.jsx)(J,{isPending:o.isPending,onPress:y,children:a.makeSend})]}),children:(0,S.jsxs)(jQ,{label:a.makeTitle,gap:4,onSubmit:y,children:[(0,S.jsx)(x1,{label:a.name,value:s,onChange:c,isRequired:!0,autoFocus:!0,autoComplete:`off`,description:a.nameHelp,..._.name!==void 0&&{errorMessage:_.name}}),(0,S.jsx)(j$,{label:a.role,options:ol.map(e=>({id:e,label:a.roles[e]})),value:l,onChange:e=>u(e),description:a.roleMeans[l],..._.role!==void 0&&{errorMessage:_.role}}),(0,S.jsxs)(Y,{gap:1,children:[(0,S.jsx)(FZ,{label:a.publish,isSelected:d,onChange:f}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:a.publishHelp})]}),(0,S.jsxs)(Y,{gap:1,children:[(0,S.jsx)(FZ,{label:a.personalData,isSelected:p,onChange:m}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:a.personalDataHelp})]}),(0,S.jsx)(u$,{label:a.days,value:h,onChange:g,minValue:1,maxValue:365,isInteger:!0,description:a.daysHelp,..._.days!==void 0&&{errorMessage:_.days}})]})})}function Hae({made:e,onClose:t}){let{close:n,dialog:r}=L6(t),i=Q(),a=i.settings.tokens;return(0,S.jsx)(CQ,{...r,title:a.shownTitle,closeLabel:i.app.dismiss,footer:(0,S.jsx)(J,{onPress:n,children:a.done}),children:(0,S.jsxs)(Y,{gap:4,children:[(0,S.jsx)(X,{children:a.shownDescription}),(0,S.jsx)(x1,{label:a.shownField,value:e.secret,isReadOnly:!0,autoComplete:`off`}),(0,S.jsx)(X,{size:`sm`,children:a.shownMcp}),(0,S.jsx)(x1,{label:a.mcpField,value:a.mcpAddress(zae()),isReadOnly:!0,autoComplete:`off`}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:a.shownCommand})]})})}var W9=`page:`;function G9(){let e=Q(),t=M6(),n=J5(),{area:r,typeKey:i}=ea(),a=Fo(),o=Po();if(a.isPending)return(0,S.jsx)(K5,{shape:`form`});if(a.isError)return(0,S.jsx)(q5,{error:a.error,onRetry:()=>void a.refetch()});let s=a.data.filter(e=>e.inSettings===!0),c=s.some(e=>e.siteNamePath!==void 0),l={general:(0,S.jsx)(Nae,{}),email:(0,S.jsx)(Oae,{}),storage:(0,S.jsx)(Lae,{}),forms:(0,S.jsx)(Aae,{}),tokens:(0,S.jsx)(Bae,{})},u=[...s.map(e=>({id:`${W9}${e.key}`,label:o6(e.label,t),content:(0,S.jsx)(Iae,{type:e}),href:$.settingsPage(e.key)})),...o.data?.role===`owner`?M5.filter(e=>e!==`general`||!c).map(t=>({id:t,label:e.settings.areas[t],content:l[t],href:$.settings(t)})):[]],d=i===void 0?r:`${W9}${i}`,f=u.find(e=>e.id===d)??u[0];return(0,S.jsx)(Z_,{paddingX:12,paddingY:10,children:(0,S.jsxs)(Y,{gap:6,children:[(0,S.jsx)(m2,{title:e.settings.title,description:e.settings.description}),f===void 0&&(0,S.jsx)(l2,{icon:bee,title:e.settings.ownersTitle,description:e.settings.ownersDescription}),f!==void 0&&(0,S.jsx)(h1,{label:e.settings.tabsLabel,selected:f.id,onChange:e=>{let t=u.find(t=>t.id===e);t&&n(t.href)},tabs:u.map(({id:e,label:t,content:n})=>({id:e,label:t,content:n}))})]})})}var K9=e=>e instanceof Error?e.message:String(e);function Uae(){let e=Q(),t=M6(),n=J5(),r=Po(),i=Fo(),a=ps(),o=bs(),s=xs(),[c,l]=(0,x.useState)(null),[u,d]=(0,x.useState)(!1),f=r.data!==null&&r.data!==void 0&&r.data.role!==`author`,p=e=>i.data?.find(t=>t.id===e.typeId),m=t=>{let n=p(t);return(n&&c6(n,t.data))??e.contentList.untitled},h=[{id:`name`,label:e.trash.columnName},{id:`type`,label:e.trash.columnType,isSecondary:!0},{id:`moved`,label:e.trash.columnMoved,isSecondary:!0},{id:`actions`,label:e.trash.columnActions,align:`end`}],g=(a.data?.items??[]).map(r=>{let i=p(r),a=m(r);return{id:r.id,cells:{name:(0,S.jsxs)(Y,{gap:0,children:[(0,S.jsx)(X,{weight:`semibold`,children:a}),(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:e.trash.detail(r.slug,s6(r.locale,t))})]}),type:i?o6(i.label,t):(0,S.jsx)(X,{tone:`muted`,children:e.trash.typeArchived}),moved:(0,S.jsx)(X,{size:`sm`,tone:`muted`,children:r.deletedAt===void 0?``:a7(r.deletedAt,t)}),actions:(0,S.jsxs)(zQ,{gap:2,justify:`end`,children:[(0,S.jsx)(J,{variant:`secondary`,size:`sm`,isPending:o.isPending&&o.variables===r.id,onPress:()=>o.mutate(r.id,{onSuccess:()=>{Z({title:e.trash.restored(a),description:e.trash.restoredDescription,tone:`success`}),i&&n($.entry(i.key,r.id))},onError:t=>Z({title:e.trash.notRestored,description:K9(t),tone:`danger`})}),children:e.trash.restore(a)}),f&&(0,S.jsx)(J,{variant:`ghost`,size:`sm`,onPress:()=>{l({id:r.id,name:a}),d(!0)},children:e.trash.delete(a)})]})}}});return(0,S.jsxs)(Z_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(Y,{gap:6,children:[(0,S.jsx)(m2,{title:e.trash.title,description:e.trash.description}),(a.isPending||i.isPending)&&(0,S.jsx)(K5,{shape:`table`}),a.isError&&(0,S.jsx)(q5,{error:a.error,onRetry:()=>void a.refetch()}),i.isError&&(0,S.jsx)(q5,{error:i.error,onRetry:()=>void i.refetch()}),a.isSuccess&&i.isSuccess&&g.length===0&&(0,S.jsx)(l2,{icon:jx,title:e.trash.emptyTitle,description:e.trash.emptyDescription}),a.isSuccess&&i.isSuccess&&g.length>0&&(0,S.jsx)(u1,{label:e.trash.title,columns:h,rows:g})]}),c!==null&&(0,S.jsx)(o2,{isOpen:u,onOpenChange:d,title:e.trash.deleteTitle(c.name),confirmLabel:e.trash.deleteConfirm,cancelLabel:e.editor.cancel,tone:`danger`,isPending:s.isPending,onConfirm:()=>s.mutate(c.id,{onSuccess:()=>{Z({title:e.trash.deleted(c.name),tone:`success`}),d(!1)},onError:t=>{Z({title:e.trash.notDeleted,description:K9(t),tone:`danger`}),d(!1)}}),children:e.trash.deleteDescription})]})}var Wae=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,Gae=`link`;function Kae({siteName:e}){let t=Q(),n=J5(),r=Po(),i=tl(),a=nl(),[o,s]=(0,x.useState)(``),[c,l]=(0,x.useState)(),[u]=Co(),d=u.has(Gae)||u.has(`error`);if(r.data)return(0,S.jsx)(Za,{to:$.home,replace:!0});let f=(0,S.jsxs)(zQ,{gap:2,align:`center`,children:[(0,S.jsx)(YQ,{label:t.app.product}),(0,S.jsx)(X,{weight:`semibold`,children:e})]});if(i.isSuccess)return(0,S.jsx)(i2,{brand:f,title:t.signIn.linkSentTitle,description:t.signIn.linkSent(i.variables),children:(0,S.jsx)(J,{variant:`secondary`,fullWidth:!0,onPress:()=>i.reset(),children:t.signIn.useAnotherEmail})});let p=()=>{let e=o.trim();if(e===``)return l(t.signIn.emailMissing);if(!Wae.test(e))return l(t.signIn.emailInvalid);l(void 0),i.mutate(e)},m=i.error?.message??(a.isError?t.signIn.passkeyFailed:d?t.signIn.linkFailed:void 0);return(0,S.jsx)(i2,{brand:f,title:t.signIn.title,description:t.signIn.description,children:(0,S.jsxs)(Y,{gap:3,children:[(0,S.jsxs)(jQ,{onSubmit:p,label:t.signIn.title,children:[(0,S.jsx)(x1,{label:t.signIn.email,type:`email`,name:`email`,autoComplete:`email webauthn`,value:o,onChange:e=>{s(e),l(void 0)},...c!==void 0&&{errorMessage:c}}),(0,S.jsx)(J,{type:`submit`,fullWidth:!0,isPending:i.isPending,children:t.signIn.sendLink})]}),(0,S.jsx)(J,{variant:`secondary`,icon:Ly,fullWidth:!0,isPending:a.isPending,onPress:()=>a.mutate(void 0,{onSuccess:e=>{n($.home),Z({title:t.signIn.signedIn(e.name),tone:`success`})}}),children:t.signIn.usePasskey}),m!==void 0&&(0,S.jsx)(X,{tone:`danger`,size:`sm`,children:m})]})})}function qae(e){return(e.metaKey||e.ctrlKey)&&!e.altKey&&!e.shiftKey&&e.key.toLowerCase()===`k`}function Jae(){return typeof navigator<`u`&&/mac|iphone|ipad/i.test(navigator.platform||navigator.userAgent)}function Yae(e){let t=(0,x.useRef)(e);(0,x.useEffect)(()=>{t.current=e}),(0,x.useEffect)(()=>{let e=e=>{!e.defaultPrevented&&qae(e)&&(e.preventDefault(),t.current())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[])}var Xae={listings:Ev,properties:Ev,agents:zx,team:zx,people:zx,authors:zx,neighborhoods:pb,locations:pb,reviews:vb,testimonials:vb,posts:Fb,blog:Fb,pages:Nb,products:jee,events:kv,faqs:Kv,categories:Dx},q9=e=>Xae[e.toLowerCase()]??my,Zae=2;function Qae({isOpen:e,onOpenChange:t,places:n,creations:r,types:i,findsContacts:a,onGo:o,onCreate:s}){let c=Q(),l=M6(),[u,d]=(0,x.useState)(``),f=(0,x.useDeferredValue)(u.trim()),p=e&&f.length>=Zae,m=$o(f,p),h=Vs(f,p&&a),g=new Map(i.map(e=>[e.id,e])),_=_6(p?m.data?.items??[]:[],l).flatMap(({primary:e})=>{let t=g.get(e.typeId);return t===void 0?[]:[{id:`found:${t.inSettings===!0?$.settingsPage(t.key):$.entry(t.key,e.id)}`,label:c6(t,e.data)??c.app.searchUntitled,detail:o6(t.label,l),icon:q9(t.key)}]}).slice(0,6),v=(p&&a?h.data?.items??[]:[]).map(e=>({id:`found:${$.contact(e.id)}`,label:e.name??e.email,...e.name!==void 0&&{detail:e.email},icon:Qv})),y=[{id:`go`,label:c.app.goToGroup,items:n},{id:`entries`,label:c.app.searchContentGroup,items:_,isFound:!0},{id:`contacts`,label:c.app.searchContactsGroup,items:v,isFound:!0},{id:`create`,label:c.app.createGroup,items:r}],b=p&&(m.isFetching||a&&h.isFetching);return(0,S.jsx)(M3,{isOpen:e,onOpenChange:e=>{e||d(``),t(e)},label:c.app.searchTitle,placeholder:c.app.searchPlaceholder,emptyText:b?c.app.searching:c.app.searchEmpty,groups:y,onSearch:d,onAction:e=>{d(``),e.startsWith(`go:`)?o(e.slice(3)):e.startsWith(`found:`)?o(e.slice(6)):e.startsWith(`new:`)&&s(e.slice(4))}})}function $ae({siteName:e}){let t=Q(),n=M6(),r=Ji(),i=J5(),a=Po(),o=Fo(),s=rl(),[c,l]=(0,x.useState)(!1),[u,d]=(0,x.useState)(!1);Yae(()=>d(!0));let f=(0,x.useRef)(!1),p=(0,x.useRef)(!1),m=a.data!==null&&a.data!==void 0;(0,x.useEffect)(()=>{f.current&&a.data===null&&!p.current&&Z({title:t.app.sessionEnded,description:t.app.sessionEndedDescription}),f.current=m},[m,a.data,t]);let h=Gne(m),{screens:g}=F5(),_=a.isPending||m&&!h;if((0,x.useEffect)(()=>_?Yne():void 0,[_]),_)return(0,S.jsx)(r$,{label:t.app.opening});if(a.isError)return(0,S.jsx)(q5,{error:a.error,onRetry:()=>void a.refetch()});if(a.data===null)return(0,S.jsx)(Za,{to:$.signIn,replace:!0});let v=a.data.role,y=e=>r.pathname===e||r.pathname.startsWith(`${e}/`),b=(o.data??[]).filter(e=>e.inSettings===!0),C=(o.data??[]).filter(e=>e.inSettings!==!0),w=C.map(e=>{let t=$.contentList(e.key);return{id:e.id,label:o6(e.label,n),href:t,icon:q9(e.key),isCurrent:y(t)}}),T=[...v===`owner`?[{id:`types`,label:t.app.types,href:$.types,icon:_x,isCurrent:y($.types)}]:[],{id:`trash`,label:t.app.trash,href:$.trash,icon:jx,isCurrent:y($.trash)}],E=[...w.length>0?[{id:`collections`,label:t.app.collectionsGroup,items:w}]:[],{id:`workspace`,label:t.app.workspaceGroup,items:T}],D=C.find(e=>e.kind!==`single`)??C[0],O=/^\/content\/[^/]+\/[^/]+/.test(r.pathname),k={id:`content`,label:t.app.contentGroup,href:D===void 0?T[0]?.href??$.trash:$.contentList(D.key),icon:Vy,isCurrent:r.pathname.startsWith(`/content/`)||y($.types)||y($.trash),...!O&&{children:E}},A=[...g.map(e=>{let t=$.pluginScreen(e.plugin,e.id);return{id:`plugin:${e.plugin}:${e.id}`,label:e.label,href:t,icon:wv,isCurrent:r.pathname===t}}),...v===`owner`?[{id:`plugins`,label:t.app.plugins,href:$.plugins,icon:qb,isCurrent:r.pathname===$.plugins}]:[]],j=A.length===0?[]:[{id:`plugins`,label:t.app.pluginsGroup,href:A[0]?.href??$.plugins,icon:qb,isCurrent:r.pathname.startsWith(`/plugins`),...g.length>0&&{children:[{id:`plugins`,items:A}]}}],M=[{id:`top`,items:[{id:`home`,label:t.app.home,href:$.home,icon:Ey,isCurrent:r.pathname===$.home}]},{id:`site`,label:t.app.siteGroup,items:[k,{id:`media`,label:t.app.media,href:$.media,icon:jy,isCurrent:y($.media)}]},...v===`owner`||v===`editor`?[{id:`audience`,label:t.app.audienceGroup,items:[{id:`forms`,label:t.app.forms,href:$.forms,icon:Ny,isCurrent:y($.forms)},{id:`contacts`,label:t.app.contacts,href:$.contacts,icon:Qv,isCurrent:y($.contacts)},{id:`deals`,label:t.app.deals,href:$.deals,icon:Sy,isCurrent:y($.deals)}]}]:[],{id:`admin`,place:`end`,items:[...v===`owner`?[{id:`people`,label:t.app.people,href:$.people,icon:Ux,isCurrent:y($.people)}]:[],...j,...v===`owner`||b.length>0?[{id:`settings`,label:t.app.settings,href:`/settings`,icon:hx,isCurrent:r.pathname.startsWith(`/settings`)}]:[]]}],N=C.filter(e=>e.kind!==`single`),P=M.flatMap(e=>e.items.flatMap(e=>[...e.children===void 0?[{id:`go:${e.href}`,label:e.label,...e.icon&&{icon:e.icon}}]:[],...(e.children??[]).flatMap(t=>t.items.map(t=>({id:`go:${t.href}`,label:t.label,detail:e.label,...t.icon&&{icon:t.icon}})))])),F=N.map(e=>({id:`new:${e.key}`,label:t.app.createIn(o6(e.label,n)),icon:Gb}));return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)($0,{logoLabel:t.app.product,siteName:e,siteDetail:window.location.host,navLabel:t.app.mainNavigation,menuLabel:t.app.openMenu,skipLabel:t.app.skipToContent,nav:M,isBarHidden:r.pathname===$.home,search:{label:t.app.search,shortcut:Jae()?t.app.searchShortcutCommand:t.app.searchShortcutControl,onPress:()=>d(!0)},account:{name:a.data.name,detail:a.data.email,image:a.data.image,label:t.app.accountMenu,actions:[{id:`profile`,label:t.app.profile,icon:zx},{id:`passkey`,label:t.app.passkeys,icon:Ly},{id:`sign-out`,label:t.app.signOut,icon:xee}],onAction:e=>{if(e===`profile`)return i($.profile);if(e===`passkey`)return l(!0);p.current=!0,s.mutate(void 0,{onSuccess:()=>{W1(),i($.signIn),Z({title:t.app.signedOut})},onError:e=>{p.current=!1,Z({title:t.app.notSignedOut,description:e instanceof Error?e.message:String(e),tone:`danger`})}})}},children:(0,S.jsx)(Qa,{})}),(0,S.jsx)(Qae,{isOpen:u,onOpenChange:d,places:P,creations:F,types:o.data??[],findsContacts:v===`owner`||v===`editor`,onGo:i,onCreate:e=>i($.newEntry(e))}),c&&(0,S.jsx)(k9,{onClose:()=>l(!1)})]})}function eoe(){let e=J5(),t=Q();return(0,S.jsxs)(a6,{navigate:t=>e(t),children:[(0,S.jsx)(Qa,{}),(0,S.jsx)(G1,{label:t.app.notifications,closeLabel:t.app.dismiss})]})}function J9({isNotFound:e=!1}){let t=Q(),n=ha(),r=e||Tn(n)&&n.status===404?Error(t.app.screenNotFound):n instanceof Error?n:Error(t.app.screenFailed);return(0,S.jsx)(q5,{error:r,onRetry:()=>window.location.reload()})}function toe(e){return[{element:(0,S.jsx)(eoe,{}),errorElement:(0,S.jsx)(J9,{}),children:[{path:`sign-in`,element:(0,S.jsx)(Kae,{siteName:e})},{element:(0,S.jsx)($ae,{siteName:e}),children:[{errorElement:(0,S.jsx)(J9,{}),children:[{index:!0,element:(0,S.jsx)(eae,{siteName:e})},{path:`people`,element:(0,S.jsx)(_ae,{})},{path:`profile`,element:(0,S.jsx)(Sae,{})},{path:`media`,element:(0,S.jsx)(rae,{})},{path:`trash`,element:(0,S.jsx)(Uae,{})},{path:`forms`,element:(0,S.jsx)(Wie,{})},{path:`forms/:formId`,element:(0,S.jsx)(Vie,{})},{path:`contacts`,element:(0,S.jsx)(Lre,{})},{path:`contacts/:contactId`,element:(0,S.jsx)(lre,{})},{path:`deals`,element:(0,S.jsx)(Cre,{})},{path:`plugins`,element:(0,S.jsx)(gae,{})},{path:`plugins/:pluginName/:screenId`,element:(0,S.jsx)(aae,{})},{path:`settings`,element:(0,S.jsx)(G9,{})},{path:`settings/:area`,element:(0,S.jsx)(G9,{})},{path:`settings/page/:typeKey`,element:(0,S.jsx)(G9,{})},{path:`types`,element:(0,S.jsx)(Yre,{})},{path:`types/:typeKey`,element:(0,S.jsx)(Kre,{})},{path:`content/:typeKey`,element:(0,S.jsx)(tie,{})},{path:`content/:typeKey/:entryId`,element:(0,S.jsx)(Nie,{})},{path:`*`,element:(0,S.jsx)(J9,{isNotFound:!0})}]}]}]}]}function noe({client:e,siteName:t,basePath:n=`/admin`,messages:r,locale:i,fieldControls:a,pluginEditors:o,initialPath:s}){let[c]=(0,x.useState)(()=>a??Rne()),[l]=(0,x.useState)(()=>new Une),[u]=(0,x.useState)(()=>o??Bne(n)),[d]=(0,x.useState)(No),[f]=(0,x.useState)(()=>{let e=toe(t);return s===void 0?go(e,{basename:n}):Wa(e,{initialEntries:[s]})});return(0,x.useEffect)(Zne,[]),(0,S.jsx)(T,{client:d,children:(0,S.jsx)(jo,{client:e,children:(0,S.jsx)(j6,{...r&&{messages:r},...i!==void 0&&{locale:i},children:(0,S.jsx)(F6,{controls:c,children:(0,S.jsx)(Wne,{extensions:l,loader:u,children:(0,S.jsx)(qa,{router:f})})})})})})}var roe=new Set([`validation_failed`,`conflict`,`not_found`,`forbidden`,`unauthenticated`]),ioe=class{#e;#t;#n;constructor(e){this.#e=e.auth,this.#t=(e.baseUrl??`/api/cms`).replace(/\/+$/,``),this.#n=e.fetch??((e,t)=>globalThis.fetch(e,t))}async getSession(){return(await this.#r(`/session`)).user}requestSignInLink(e){return this.#e.requestSignInLink(e)}async signInWithPasskey(){await this.#e.signInWithPasskey();let e=await this.getSession();if(!e)throw Error(`The passkey was accepted, but no session was started. Try again.`);return e}signOut(){return this.#e.signOut()}async listContentTypes(){return(await this.#r(`/content-types`)).items}async listArchivedContentTypes(){return(await this.#r(`/content-types/archived`)).items}archiveContentType(e){return this.#i(`DELETE`,`/content-types/${encodeURIComponent(e)}`,{})}restoreContentType(e){return this.#i(`POST`,`/content-types/${encodeURIComponent(e)}/restore`,{})}createContentType(e){return this.#i(`POST`,`/content-types`,e)}updateContentType(e,t){return this.#i(`PATCH`,`/content-types/${encodeURIComponent(e)}`,t)}addField(e,t,n){return this.#i(`POST`,`/content-types/${encodeURIComponent(e)}/fields${Y9(n)}`,t)}changeField(e,t,n,r){return this.#i(`PATCH`,`/content-types/${encodeURIComponent(e)}/fields/${encodeURIComponent(t)}${Y9(r)}`,n)}removeField(e,t,n){return this.#i(`DELETE`,`/content-types/${encodeURIComponent(e)}/fields/${encodeURIComponent(t)}${Y9(n)}`,{})}restoreField(e,t,n){return this.#i(`POST`,`/content-types/${encodeURIComponent(e)}/fields/${encodeURIComponent(t)}/restore${Y9(n)}`,{})}arrangeFields(e,t){return this.#i(`PUT`,`/content-types/${encodeURIComponent(e)}/fields`,t)}setSections(e,t){return this.#i(`PUT`,`/content-types/${encodeURIComponent(e)}/sections`,{sections:t})}async listFieldTypes(){return(await this.#r(`/field-types`)).items}listImages(){return this.#r(`/images`)}uploadImage(e){let t=B_(e.bytes)?.contentType??`image/jpeg`;return this.#a(`/images?${new URLSearchParams({name:e.fileName})}`,{method:`POST`,headers:{accept:`application/json`,"content-type":t},body:e.bytes})}async removeImage(e){await this.#i(`DELETE`,`/images/${encodeURIComponent(e)}`,{})}listEntries(e){let t=new URLSearchParams;return e.type!==void 0&&t.set(`type`,e.type),e.locale!==void 0&&t.set(`locale`,e.locale),e.search!==void 0&&e.search!==``&&t.set(`search`,e.search),e.limit!==void 0&&t.set(`limit`,String(e.limit)),e.offset!==void 0&&t.set(`offset`,String(e.offset)),this.#r(`/entries?${t}`)}getEntry(e){return this.#r(`/entries/${encodeURIComponent(e)}`)}createEntry(e){return this.#i(`POST`,`/entries`,e)}updateEntry(e,t){return this.#i(`PATCH`,`/entries/${encodeURIComponent(e)}`,t)}publishEntry(e,t){return this.#i(`POST`,`/entries/${encodeURIComponent(e)}/publish`,{expectedRevision:t})}unpublishEntry(e){return this.#i(`POST`,`/entries/${encodeURIComponent(e)}/unpublish`,{})}duplicateEntry(e){return this.#i(`POST`,`/entries/${encodeURIComponent(e)}/duplicate`,{})}scheduleEntry(e,t){return this.#i(`POST`,`/entries/${encodeURIComponent(e)}/schedule`,t)}unscheduleEntry(e){return this.#i(`POST`,`/entries/${encodeURIComponent(e)}/unschedule`,{})}async entryHistory(e){return(await this.#r(`/entries/${encodeURIComponent(e)}/history`)).items}revertEntry(e,t){return this.#i(`POST`,`/entries/${encodeURIComponent(e)}/revert`,t)}trashEntry(e){return this.#i(`DELETE`,`/entries/${encodeURIComponent(e)}`,{})}restoreEntry(e){return this.#i(`POST`,`/entries/${encodeURIComponent(e)}/restore`,{})}listTrash(e={}){let t=new URLSearchParams;return e.limit!==void 0&&t.set(`limit`,String(e.limit)),e.offset!==void 0&&t.set(`offset`,String(e.offset)),this.#r(`/trash?${t}`)}async deleteEntry(e){await this.#i(`DELETE`,`/trash/${encodeURIComponent(e)}`,{})}async listForms(){return(await this.#r(`/forms`)).items}createForm(e){return this.#i(`POST`,`/forms`,e)}updateForm(e,t){return this.#i(`PATCH`,`/forms/${encodeURIComponent(e)}`,t)}trashForm(e){return this.#i(`DELETE`,`/forms/${encodeURIComponent(e)}`,{})}restoreForm(e){return this.#i(`POST`,`/forms/${encodeURIComponent(e)}/restore`,{})}async listTrashedForms(){return(await this.#r(`/forms/trash`)).items}async deleteForm(e){await this.#i(`DELETE`,`/forms/trash/${encodeURIComponent(e)}`,{})}listSubmissions(e){let t=new URLSearchParams;return e.status!==void 0&&t.set(`status`,e.status),e.limit!==void 0&&t.set(`limit`,String(e.limit)),e.offset!==void 0&&t.set(`offset`,String(e.offset)),this.#r(`/forms/${encodeURIComponent(e.formId)}/submissions?${t}`)}countSubmissions(e){return this.#r(`/forms/${encodeURIComponent(e)}/submission-counts`)}markSubmission(e,t){return this.#i(`PATCH`,`/submissions/${encodeURIComponent(e)}`,{status:t})}async deleteSubmission(e){await this.#i(`DELETE`,`/submissions/${encodeURIComponent(e)}`,{})}async exportSubmissions(e){return(await this.#r(`/forms/${encodeURIComponent(e)}/export`)).csv}async forgetSender(e){return(await this.#i(`POST`,`/submissions/forget`,{email:e})).removed}listContacts(e={}){let t=new URLSearchParams;return e.search!==void 0&&e.search!==``&&t.set(`search`,e.search),e.stage!==void 0&&t.set(`stage`,e.stage),e.ownerId!==void 0&&t.set(`owner`,e.ownerId??`none`),e.followUpBy!==void 0&&t.set(`due`,e.followUpBy),e.limit!==void 0&&t.set(`limit`,String(e.limit)),e.offset!==void 0&&t.set(`offset`,String(e.offset)),this.#r(`/contacts?${t}`)}listDeals(e={}){let t=new URLSearchParams;return e.about!==void 0&&(t.set(`aboutType`,e.about.typeId),t.set(`aboutEntry`,e.about.entry)),e.contactId!==void 0&&t.set(`contact`,e.contactId),e.stage!==void 0&&t.set(`stage`,e.stage),e.ownerId!==void 0&&t.set(`owner`,e.ownerId??`none`),e.limit!==void 0&&t.set(`limit`,String(e.limit)),e.offset!==void 0&&t.set(`offset`,String(e.offset)),this.#r(`/deals?${t}`)}createDeal(e){return this.#i(`POST`,`/deals`,e)}updateDeal(e,t){return this.#i(`PATCH`,`/deals/${encodeURIComponent(e)}`,t)}async deleteDeal(e){await this.#i(`DELETE`,`/deals/${encodeURIComponent(e)}`,{})}getForecast(){return this.#r(`/deals/forecast`)}getEmailSettings(){return this.#r(`/settings/email`)}saveEmailSettings(e){return this.#i(`PUT`,`/settings/email`,e)}async sendTestEmail(){await this.#i(`POST`,`/settings/email/test`,{})}getGeneralSettings(){return this.#r(`/settings/general`)}saveGeneralSettings(e){return this.#i(`PUT`,`/settings/general`,e)}getFormsSettings(){return this.#r(`/settings/forms`)}saveFormsSettings(e){return this.#i(`PUT`,`/settings/forms`,e)}async testFormsSettings(){await this.#i(`POST`,`/settings/forms/test`,{})}getStorageSettings(){return this.#r(`/settings/storage`)}saveStorageSettings(e){return this.#i(`PUT`,`/settings/storage`,e)}async testStorage(){await this.#i(`POST`,`/settings/storage/test`,{})}getPipeline(){return this.#r(`/pipeline`)}savePipeline(e){return this.#i(`PUT`,`/pipeline`,e)}getCustomFields(){return this.#r(`/custom-fields`)}saveCustomFields(e){return this.#i(`PUT`,`/custom-fields`,e)}async listTeam(){return(await this.#r(`/team`)).items}getContact(e){return this.#r(`/contacts/${encodeURIComponent(e)}`)}createContact(e){return this.#i(`POST`,`/contacts`,e)}importContacts(e){return this.#i(`POST`,`/contacts/import`,{rows:e})}updateContact(e,t){return this.#i(`PATCH`,`/contacts/${encodeURIComponent(e)}`,t)}async eraseContact(e){return(await this.#i(`DELETE`,`/contacts/${encodeURIComponent(e)}`,{})).removed}async contactTimeline(e){return(await this.#r(`/contacts/${encodeURIComponent(e)}/timeline`)).items}addContactNote(e,t){return this.#i(`POST`,`/contacts/${encodeURIComponent(e)}/notes`,{text:t})}async deleteContactNote(e,t){await this.#i(`DELETE`,`/contacts/${encodeURIComponent(e)}/notes/${encodeURIComponent(t)}`,{})}async exportContact(e){return(await this.#r(`/contacts/${encodeURIComponent(e)}/export`)).file}previewEntry(e){return this.#i(`POST`,`/entries/${encodeURIComponent(e)}/preview`,{})}async listPeople(){return(await this.#r(`/people`)).items}invitePerson(e){return this.#i(`POST`,`/people`,e)}changePersonRole(e,t){return this.#i(`PATCH`,`/people/${encodeURIComponent(e)}`,{role:t})}renamePerson(e,t){return this.#i(`PATCH`,`/people/${encodeURIComponent(e)}`,{name:t})}getProfile(){return this.#r(`/profile`)}saveProfile(e){return this.#i(`PATCH`,`/profile`,e)}async askEmailChange(e){await this.#i(`POST`,`/profile/email`,{email:e})}confirmEmailChange(e){return this.#i(`POST`,`/profile/email/confirm`,{token:e})}async removePerson(e){await this.#i(`DELETE`,`/people/${encodeURIComponent(e)}`,{})}async listTokens(){return(await this.#r(`/tokens`)).items}createToken(e){return this.#i(`POST`,`/tokens`,e)}async revokeToken(e){await this.#i(`DELETE`,`/tokens/${encodeURIComponent(e)}`,{})}addPasskey(e){return this.#e.registerPasskey(e)}async listPlugins(){return(await this.#r(`/plugins`)).items}async listPluginEditors(){return(await this.#r(`/plugin-editors`)).items}callPlugin(e,t,n,r={}){let i=new URLSearchParams(r.query).toString(),a=`/plugins/${encodeURIComponent(e)}${n}${i===``?``:`?${i}`}`;return t===`GET`?this.#r(a):this.#i(t,a,r.body??{})}setPluginEnabled(e,t){return this.#i(`PATCH`,`/plugins/${encodeURIComponent(e)}`,{enabled:t})}getPluginSettings(e){return this.#r(`/plugin-settings/${encodeURIComponent(e)}`)}savePluginSettings(e,t){return this.#i(`PUT`,`/plugin-settings/${encodeURIComponent(e)}`,{values:t})}setPluginSecret(e,t,n){return this.#i(`PUT`,`/plugin-secrets/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,{value:n})}async listPluginTasks(e){return(await this.#r(`/plugin-tasks/${encodeURIComponent(e)}`)).items}retryPluginTask(e,t){return this.#i(`POST`,`/plugin-tasks/${encodeURIComponent(e)}/${encodeURIComponent(t)}/retry`,{})}listPasskeys(){return this.#e.listPasskeys()}removePasskey(e){return this.#e.removePasskey(e)}#r(e){return this.#a(e,{headers:{accept:`application/json`}})}#i(e,t,n){return this.#a(t,{method:e,headers:{accept:`application/json`,"content-type":`application/json`},body:JSON.stringify(n)})}async#a(e,t){let n;try{n=await this.#n(`${this.#t}${e}`,{...t,credentials:`same-origin`})}catch{throw Error(`The server could not be reached. Check your connection and try again.`)}let r=await n.json().catch(()=>null);if(n.ok)return r;throw aoe(r,n.status)}};function Y9(e=[]){return e.length>0?`?${new URLSearchParams(e.map(e=>[`within`,e]))}`:``}function aoe(e,t){let n=typeof e==`object`&&e&&`error`in e?e.error:null;return new Mo(typeof n?.message==`string`?n.message:`The server answered with an error (${t}). Try again in a moment.`,typeof n?.code==`string`&&roe.has(n.code)?n.code:`unknown`,Array.isArray(n?.issues)?n.issues:[])}var ooe=`velocity-cms-config`,X9=[`siteName`,`adminPath`,`apiPath`,`authPath`];function soe(e){let t;try{t=JSON.parse(e??``)}catch{t=null}let n=typeof t==`object`&&t?t:{},r=X9.filter(e=>typeof n[e]!=`string`||n[e]===``);if(r.length>0)throw Error(`The editor was opened without its settings (${r.join(`, `)}). It must be served by the Velocity CMS integration, not opened as a file.`);return Object.fromEntries(X9.map(e=>[e,n[e]]))}var Z9=soe(document.getElementById(ooe)?.textContent);document.title=Z9.siteName;var Q9=matchMedia(`(prefers-color-scheme: dark)`),$9=()=>document.documentElement.classList.toggle(`dark`,Q9.matches);Q9.addEventListener(`change`,$9),$9();var coe=new ioe({baseUrl:Z9.apiPath,auth:u({basePath:Z9.authPath,adminPath:Z9.adminPath})});(0,ko.createRoot)(document.getElementById(`root`)).render((0,S.jsx)(x.StrictMode,{children:(0,S.jsx)(noe,{client:coe,siteName:Z9.siteName,basePath:Z9.adminPath})}));export{c as A,ab as C,g as D,b as E,f as O,W as S,H as T,q as _,LZ as a,yS as b,UZ as c,nZ as d,DV as f,TN as g,zI as h,BZ as i,o as k,J as l,hB as m,pQ as n,IZ as o,OV as p,zZ as r,RZ as s,x1 as t,uZ as u,_E as v,U as w,G as x,SS as y};